Peach: Local-first video metadata scraper and media manager.
refactor(web): 配置页各分区按 ADR-0031 迁到 React + BoardUI
longmeidao43d41edf00f1
diff --git a/docs/FRONTEND.md b/docs/FRONTEND.mdindex 6f43d1f54..bc6ef5de8 100644--- a/docs/FRONTEND.md+++ b/docs/FRONTEND.md@@ -30,10 +30,13 @@ island。原因是那一套一上来就打 `/api/items`,而未配置的机器状态,原生 `<form method="post">` 不写一行 JS 就能工作。设置成功以浏览器 cookie 登录并跳入馆藏。它的配色 token 从 `web/css/01-base.css` 的 `:root` 两段抽出来,跟随系统深浅色。-配置好之后改文件夹与端口的那张页由 `frontend/src/islands/configuration.tsx` 渲染,-数据契约是 `/api/configuration`(`src/peach/routes_configuration.py`)。+配置好之后改文件夹与端口的那张页,外壳是 `frontend/src/islands/configuration.tsx`:它同步画出+「通用 / 媒体 / 网络与访问 / 更新与维护」四个 `h2.configgroup` 标题,每个标题下挂一个 `ReactSlot`,+分区本身是 `frontend/src/react/settings/` 里的 React 子树。数据契约是 `/api/configuration`+(`src/peach/routes_configuration.py`)。日常入口是右上角的设置弹层:同一个 island 挂进 `#machineSettings`,左栏「这台电脑」-那一块按它自己的 `.configgroup` 拆成「通用 / 媒体 / 网络与访问 / 更新与维护」四条。+那一块按 `.configgroup` 标题拆成四条。标题留在 Preact 外壳里同步输出,是因为拆分发生在+island 挂载的那一刻,React 子树那时还没加载。`/configuration` 这条路由保留,媒体库选单和首次配置引导都指向它。服务端按两道门放行:托盘管理的服务、发起连接的是本机;并在 `/healthz` 里按调用方回`configurable`,遗留层据此决定这一块是挂 island 还是换成一句「该配置需在服务端设备修改」。@@ -245,15 +248,16 @@ vendor 到 `web/vendor/` 的四个包(video.js、swiper、lucide-static、heal| `happy-dom` | vitest 的 DOM 环境。断言的是真实 DOM 结构,比 jsdom 轻且启动快 || `playwright-core` | `frontend/e2e/` 的浏览器驱动,只驱动本机 Chrome、不下载浏览器。happy-dom 没有布局,横向溢出、等待态卡住这类事实只有真浏览器测得出;不用 `@playwright/test`,用例跑在 `node:test` 上,与 docu.md(`markdown-viewer/markdown-viewer-extension` 的 `test/helpers/browser-render-harness.ts`)同一做法 || `oxlint`、`@shadcn/lint` | `npm run lint`:Oxlint 加载 `@shadcn/lint` 的六条规则,只查 `src/react/`、排除 `boardui/`。不用 ESLint,因为 `@typescript-eslint/parser` 的 peer 只到 TypeScript 6.0;`eslint` 作为 `@shadcn/lint` 的 peer 会装进来,不调用 |-| `react`、`react-dom` | React 子树的渲染层。BoardUI 源码是 React 组件,交互建在 React Aria 上,Preact 的兼容层不在 React Aria 的支持范围内 |-| `react-aria-components` | BoardUI 输入框与勾选框的交互和无障碍语义:标签关联、键盘操作、`aria-invalid` |+| `react`、`react-dom` | React 子树的渲染层。BoardUI 源码是 React 组件,交互建在 React Aria 上;Peach 不经 Preact 兼容层运行 React Aria(ADR-0031) |+| `react-aria-components` | BoardUI 输入框、勾选框、开关、下拉与弹出面板的交互和无障碍语义:标签关联、键盘操作、焦点进出、`aria-invalid` |+| `react-aria` | 只用 `UNSAFE_PortalProvider`:把 Popover 与下拉列表挂进 `body` 末尾同样带 `.peach-react` 的容器,弹层读到与页面内一致的 token 与 Preflight || `tailwind-merge` | BoardUI 的 `cx()` 合并类名时去掉互相冲突的工具类 || `@remixicon/react` | BoardUI 组件内置的图标 || `tailwindcss`、`@tailwindcss/vite` | 按 `src/react/` 里实际用到的类名生成 `peach-react.css` || `@types/react`、`@types/react-dom` | React 子树的类型检查 |-React 子树单独构建(`vite.react.config.ts`)。`peach-react.js` 424 kB(gzip 110.6 kB),-只在页面挂 React 子树时由 island 动态加载;`peach-react.css` 67 kB(gzip 11.8 kB),+React 子树单独构建(`vite.react.config.ts`)。`peach-react.js` 669 kB(gzip 174.0 kB),+只在页面挂 React 子树时由 island 动态加载;`peach-react.css` 86 kB(gzip 14.1 kB),由 `index.html` 在旧样式表之前引入。`@preact/signals` 钉在 2.11.1:它对 `preact` 的 peer 要求是 `>= 10.25.0`,和这里的diff --git a/docs/REUSE.md b/docs/REUSE.mdindex 3ea4bbd6a..d84440b3e 100644--- a/docs/REUSE.md+++ b/docs/REUSE.md@@ -16,7 +16,7 @@- `frontend/src/number-setting.ts` 共用带单位输入、可选 Switch、整数边界和锚定错误提示。关闭保留上次合法值,异步读取后切换也恢复实际值;业务保存仍由调用方负责。- 筛选内层复用 `filterChipHtml`、`sortControlsHtml`、`collectionHeaderHtml`,首页、关注和资料页提供查询键及读数。横向行复用 `wireHorizontalScroller`,拖动、滚轮、渐隐与卸载清理归同一个生命周期。- 选择范围与工具条复用 `frontend/src/selection.ts`;馆藏、关注与复核保持各自身份、可见顺序、默认选择及写入权限。批量失败项的保留由业务负责。-- 设置表单复用 `frontend/src/settings-controls.tsx`:`SelectField` 适配现有 Select,`SettingsSection` 提供表头、正文、错误和底栏,`useSubmitAction` 负责提交互斥及卸载取消。密码字段校验与服务端回执仍归各表单,不自动重试写入。+- React 设置分区复用 `frontend/src/react/settings/section.tsx`:`Section` 提供标题、卡片与表单外壳,`Footer`、`Note`、`ErrorText`、`FactList`、`Progress`、`Disclosure` 补齐 BoardUI 注册表没有的底栏、行内提示、读数、进度与折叠。`use-action.ts` 的 `useAction` 负责提交互斥、卸载取消与原位错误,`busyProps` 写忙态。密码字段校验与服务端回执仍归各分区,不自动重试写入。- 增量列表复用 `wireLoadMore` 的请求锁、原位重试与卸载清理;页面注入读取、追加、代际判定和可用条件。首页页码在读取成功后推进,照片沿用随机种子,关注合并分组。显式页码继续使用 `pagination.ts`。- 后台任务复用 `watchJob`、`followJobProgress` 默认面板及 `jobActivityHtml` 的真实计数/未知总量显示;关注、来源扫描、链接检查和扫描采集共用渲染。业务保留启动、终态回执和结果面板,不新增轮询循环。- 图标按钮统一清除浏览器内边距并居中 SVG,不覆盖业务显隐。Remix Icon 由 `vendor_web_dependencies.mjs` 生成设置导航 symbol;随机按钮保留原有双路径动画。diff --git a/docs/reference-snapshots/vercel-geist-table-ranking.md b/docs/reference-snapshots/vercel-geist-table-ranking.mdindex 54fa6e904..31ce67a0b 100644--- a/docs/reference-snapshots/vercel-geist-table-ranking.md+++ b/docs/reference-snapshots/vercel-geist-table-ranking.md@@ -62,11 +62,11 @@- 使用空间的四个位置属于同形可比较数据,使用原生 `table`(`.insightdatatable`),列为位置、已用、可用与使用率;数字列 tabular numerals。容量拿不到时单元格写 `未取得`/`离线` 而不是`—`:Peach 的取证规则要求区分「不适用」与「取证失败」,这一处主动偏离 Geist。-- 四张表(`.insightdatatable`、`.insighttable`、`.linktable`、`.cloudguide-table`)都采用分隔线变体,+- 三张表(`.insightdatatable`、`.insighttable`、`.linktable`)都采用分隔线变体,不叠加隔栏异色:Geist 的这两个变体互斥,叠起来等于同时用两套分行手段。-- 配置页的 CloudDrive 起步配置是三行同形、四列跨行比较的数据,用原生 `table`(`.cloudguide-table`),- 首列是硬盘档位、其余三列右对齐并走 tabular numerals。表格保留 520px 最小宽度,窄屏由- `.cloudguide-tablewrap` 自己横向滚动,页面本身不出现横向滚动条。+- 配置页的 CloudDrive 起步配置按缓存所在硬盘分三档,每档一项列表,项内用 `dl` 列出缓存上限、+ 读取长度与同时处理视频三项读数。它用列表而不是表格:设置卡片在 390px 下放不下四列,+ 列表不需要横向滚动。- 悬停填充只给可点的行(`.insighttablerow:is(button)`、`.insightrankrow`)。不可点的行不加悬停,那等于给一个不存在的动作画反馈。- 内容标签是固定 Top 30 排行并可直接筛选,不提供虚假的列排序;桌面以两栏有序列表提高扫描diff --git a/frontend/package-lock.json b/frontend/package-lock.jsonindex f2ecb836b..35b5aff04 100644--- a/frontend/package-lock.json+++ b/frontend/package-lock.json@@ -11,6 +11,7 @@"d3-sankey": "0.12.3","preact": "10.29.8","react": "19.3.0",+ "react-aria": "3.52.1","react-aria-components": "1.21.1","react-dom": "19.3.0","tailwind-merge": "3.7.0"diff --git a/frontend/package.json b/frontend/package.jsonindex 66dc86776..1b7f8072a 100644--- a/frontend/package.json+++ b/frontend/package.json@@ -21,6 +21,7 @@"d3-sankey": "0.12.3","preact": "10.29.8","react": "19.3.0",+ "react-aria": "3.52.1","react-aria-components": "1.21.1","react-dom": "19.3.0","tailwind-merge": "3.7.0"diff --git a/frontend/src/configuration-endpoints.ts b/frontend/src/configuration-endpoints.tsnew file mode 100644index 000000000..a543785f4--- /dev/null+++ b/frontend/src/configuration-endpoints.ts@@ -0,0 +1,5 @@+/* 配置页的端点。Preact 外壳取首屏、React 分区刷新挂载状态读的是同一条,两份产物各打包一份这个模块。 */+export const CONFIGURATION_URL = '/api/configuration';++/** 让运行 Peach 的这台电脑弹系统文件夹对话框;浏览器自己拿不到本机绝对路径。 */+export const PICK_FOLDER_URL = '/api/pick-folder';diff --git a/frontend/src/islands/automatic-updates.tsx b/frontend/src/islands/automatic-updates.tsxdeleted file mode 100644index 09db0010e..000000000--- a/frontend/src/islands/automatic-updates.tsx+++ /dev/null@@ -1,25 +0,0 @@-import { useRef, useState } from 'preact/hooks';-import { apiSend } from '../api';-import { SelectField, SettingsSection, useSubmitAction } from '../settings-controls';--export interface AutomaticUpdateState { mode: string; interval_hours: number; available: boolean; download_available: boolean; error?: string }--export function AutomaticUpdateSettings({ initial, receipt }: { initial: AutomaticUpdateState; receipt(message: string): void }) {- const [mode, setMode] = useState(initial.mode);- const [hours, setHours] = useState(initial.interval_hours);- const button = useRef<HTMLButtonElement>(null);- const action = useSubmitAction(button, initial.error);- const save = () => action.run(signal => apiSend<AutomaticUpdateState>('/api/configuration/automatic-updates',{mode,interval_hours:hours},'POST',signal),- () => receipt('已保存自动更新设置'));- return <SettingsSection titleId="automaticUpdatesTitle" title="自动更新" error={action.error}- onSubmit={event => { event.preventDefault(); if(initial.available) void save(); }}- footer={<button ref={button} type="submit" class="geist-button" disabled={!initial.available}>保存自动更新</button>}>- <div class="configoptions" role="group" aria-labelledby="automaticUpdatesTitle">- <label class="configtoggle"><span>自动检查新版本</span><input class="ptoggle" type="checkbox" role="switch" checked={mode !== 'off'} disabled={!initial.available} onChange={event => setMode(event.currentTarget.checked ? 'check' : 'off')} /></label>- <label class="configtoggle"><span>自动下载更新</span><input class="ptoggle" type="checkbox" role="switch" checked={mode === 'download'} disabled={!initial.available || !initial.download_available || mode === 'off'} onChange={event => setMode(event.currentTarget.checked ? 'download' : 'check')} /></label>- </div>- <SelectField value={String(hours)} onChange={value => setHours(Number(value))} label="检查频率" fixed- options={ [['6','每 6 小时'],['24','每天'],['168','每周']] } />- <p class="confighelp">{!initial.available ? '自动更新需要由托盘管理的服务。' : initial.download_available ? '开启后一分钟内开始检查。下载完成后,在此确认重启安装。' : '开启后一分钟内开始检查。源码运行请前往发布页获取新版本。'}</p>- </SettingsSection>;-}diff --git a/frontend/src/islands/clouddrive-guide.tsx b/frontend/src/islands/clouddrive-guide.tsxdeleted file mode 100644index afc7e188b..000000000--- a/frontend/src/islands/clouddrive-guide.tsx+++ /dev/null@@ -1,37 +0,0 @@-import { useLayoutEffect, useRef } from 'preact/hooks';-import { wireCollapse } from '@peach/legacy/ui';--export const CLOUDDRIVE_PROFILES = [- {name: '机械硬盘,或内存 8 GB 以内', cache: '10–20 GiB', read: '256 / 128 KB', task: '1 个'},- {name: 'SATA SSD,内存 8–16 GB', cache: '20–50 GiB', read: '256 / 128 KB', task: '1–2 个'},- {name: 'NVMe SSD,内存 16 GB 以上', cache: '50–100 GiB', read: '256 / 128 KB', task: '2 个起步'},-] as const;--export function CloudDriveGuide() {- const root = useRef<HTMLDivElement>(null);- useLayoutEffect(() => { if (root.current) wireCollapse(root.current, 'details', 'clouddrive-guide'); }, []);- return <div ref={root} class="cloudguide">- <p class="confighelp">先在 CloudDrive 登录网盘并挂载,开启「启动时自动挂载」。<a class="externallink" href="https://www.clouddrive2.com/help.html" target="_blank" rel="noreferrer">挂载帮助<svg class="externalmark" viewBox="0 0 24 24" aria-hidden="true"><use href="#i-external-link" /></svg></a></p>- <details>- <summary><svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-chevron-right" /></svg>CloudDrive 缓存建议</summary>- <p class="confighelp">看缓存放在哪块硬盘上,照那一行填。这是起步值,填得越大不一定越快。</p>- <div class="cloudguide-tablewrap">- <table class="cloudguide-table">- <thead><tr><th scope="col">缓存所在硬盘</th><th scope="col">缓存上限</th><th scope="col">读取长度(默认 / 最小)</th><th scope="col">同时处理视频</th></tr></thead>- <tbody>{CLOUDDRIVE_PROFILES.map(profile => <tr key={profile.name}>- <th scope="row">{profile.name}</th>- <td data-label="缓存上限">{profile.cache}</td>- <td data-label="读取长度(默认 / 最小)">{profile.read}</td>- <td data-label="同时处理视频">{profile.task}</td>- </tr>)}</tbody>- </table>- </div>- <ul class="cloudguide-notes">- <li>缓存上限和清理方式填在 CloudDrive「设置」里,清理方式选 LRU。上限不要填 0,系统盘至少留 40 GiB;填完重开设置页确认存住了。</li>- <li>读取长度和下载线程填在每个网盘各自的下载设置里,线程都从 2 开始。</li>- <li>Buffer Cache 占内存,磁盘缓存和文件夹缓存占硬盘,改一个管不住另外两个。</li>- </ul>- <p class="confighelp">三处缓存分别管什么、这几个值怎么往上调、码率和速度怎么换算、线程上限与直链代理怎么取舍,以及这些起步值的来源,都在<a class="externallink" href="https://github.com/longmeidao/peach/blob/master/docs/CLOUDDRIVE.md" target="_blank" rel="noreferrer">CloudDrive 配置与调优<svg class="externalmark" viewBox="0 0 24 24" aria-hidden="true"><use href="#i-external-link" /></svg></a>。</p>- </details>- </div>;-}diff --git a/frontend/src/islands/configuration.tsx b/frontend/src/islands/configuration.tsxindex bd7e336db..891ad863d 100644--- a/frontend/src/islands/configuration.tsx+++ b/frontend/src/islands/configuration.tsx@@ -1,79 +1,23 @@-/* 配置页(`/configuration`):这台电脑的媒体文件夹与本机端口,加一块运行信息。+/* 配置页(`/configuration`,也挂在设置弹层的「这台电脑」里)的外壳。*- * 数据契约在 `/api/configuration`(`src/peach/routes_configuration.py`)。服务端按两道门- * 放行:托盘管理的服务、且从运行 Peach 的这台电脑打开时 `editable` 才为真;其它情况- * 表单不画,只留一句为什么和运行信息。保存成功后 Peach 会重启,这里给一句持久 Note、- * 一条新地址的链接,并在托盘换好进程后自己跳过去。- *- * 表单校验的原因由服务端按字段给(400 的 `errors`),页面把它们写回原位,不在前端- * 复制一份路径与端口的判定。 */-import { useEffect, useLayoutEffect, useRef, useState } from 'preact/hooks';-import type { JSX } from 'preact';--import { fieldsetTitle, noteHtml, setActionBusy, MEDIA_SOURCE_ICONS, selectOptionIconHtml } from '@peach/legacy/ui';-import { SelectField } from '../settings-controls';-import { ApiError, apiGet, apiSend, errorMessage } from '../api';-import type { AccessState } from '@peach/react';+ * 数据契约在 `/api/configuration`(`src/peach/routes_configuration.py`)。分区本身是 React 子树+ * (`src/react/settings/`);外壳只取首屏数据、画分组小标题,每组交给一个 `ReactSlot`。+ * 遗留层的分区 tab(`web/app.js` 的 `configTabItems`)按 `.configgroup` 小标题把后面的节点切进+ * 面板,所以小标题和槽位要在 Preact 同步画出来的这一层,不能等 React 产物加载完才出现。 */+import { noteHtml } from '@peach/legacy/ui';+import type { ConfigurationData, ConfigurationGroupProps } from '@peach/react';++import { apiGet } from '../api';+import { CONFIGURATION_URL } from '../configuration-endpoints';import { ReactSlot } from '../react-slot';-import { ReleaseUpdates, type ReleaseState, type UpdateJob } from './release-updates';-import { AutomaticUpdateSettings, type AutomaticUpdateState } from './automatic-updates';-import { PeachProxy, type PeachProxyState } from './peach-proxy';-import { StartupSettings, UninstallSettings, type StartupState, type UninstallState } from './desktop-settings';-import { CloudDriveGuide } from './clouddrive-guide';-import { LibraryIconPicker } from '../library-icon-picker';++export type { ConfigurationData };export interface ConfigurationProps {/** 保存成功后的过去时回执(遗留层的 Toast)。 */receipt(message: string): void;}-export interface ConfigurationFact {- term: string;- value: string;- download_url?: string;- download_label?: string;-}--export interface ConfigurationData {- startup?: StartupState;- uninstall?: UninstallState;- peach_proxy?: PeachProxyState;- updates?: ReleaseState;- update_job?: UpdateJob;- automatic_updates?: AutomaticUpdateState;- access?: AccessState;- editable: boolean;- /** 不能编辑时给用户看的原因,可编辑时为空。 */- notice: string;- /** 设置文件的指纹,保存时带回去,服务端据此拒绝盖掉别处的改动。 */- revision: string;- media_dirs: string[];- media_sources?: { location: string; root: string; path: string; online?: boolean; library?: string; library_icon?: string }[];- windows?: boolean;- port: number;- port_editable?: boolean;- mount_dependencies?: { name: string; available: boolean; download_url: string }[];- facts: ConfigurationFact[];-}--interface FieldErrors {- media_dirs?: string[];- port?: string;-}--interface SaveResult {- saved: boolean;- url: string;- revision: string;-}--export const CONFIGURATION_URL = '/api/configuration';-/** 让运行 Peach 的这台电脑弹系统文件夹对话框;浏览器自己拿不到本机绝对路径。 */-export const PICK_FOLDER_URL = '/api/pick-folder';--/** 保存后等托盘换好进程再跳到新地址的时间。首启完成页用的是同一个数。 */-export const RESTART_REDIRECT_MS = 8000;-export const loadConfiguration = (_props: ConfigurationProps,signal: AbortSignal,@@ -81,290 +25,21 @@ export const loadConfiguration = (type State = { data: ConfigurationData | null; error: string };-const Html = ({ html, class: className }: { html: string; class?: string }) => (- <div class={className} dangerouslySetInnerHTML={{ __html: html }} />-);--const fieldErrorsOf = (cause: unknown): FieldErrors | null => {- if (!(cause instanceof ApiError) || cause.status !== 400) return null;- const body = cause.body as { errors?: FieldErrors } | null;- return body?.errors ?? null;-};--function Facts({ facts }: { facts: ConfigurationFact[] }) {- return (- <section class="configfieldset" data-geist-fieldset aria-labelledby="configFactsTitle">- <div class="geist-fieldset-content">- <Html html={fieldsetTitle('configFactsTitle', '运行信息')} />- <dl class="configfacts">- {facts.map((fact) => (- <>- <dt>{fact.term}</dt>- <dd>{fact.value}{fact.download_url ? <span class="confighelp"> <a class="externallink" href={fact.download_url} target="_blank" rel="noreferrer">{fact.download_label}<svg class="externalmark" viewBox="0 0 24 24" aria-hidden="true"><use href="#i-external-link" /></svg></a></span> : null}</dd>- </>- ))}- </dl>- </div>- </section>- );-}--function MountStatus({ data }: { data: ConfigurationData }) {- const [sources, setSources] = useState(data.media_sources);- const [error, setError] = useState('');- const controller = useRef<AbortController | null>(null);- useEffect(() => () => controller.current?.abort(), []);- const refresh = async (button: HTMLButtonElement) => {- if (controller.current) return;- const request = new AbortController(); controller.current = request;- setActionBusy(button, true); setError('');- try {- const result = await apiGet<ConfigurationData>(CONFIGURATION_URL, request.signal);- if (!request.signal.aborted) setSources(result.media_sources);- } catch (cause) {- if (!request.signal.aborted) setError(errorMessage(cause));- } finally { controller.current = null; setActionBusy(button, false); }- };- if (!sources) return null;- return <section class="configfieldset" aria-labelledby="configMountsTitle"><div class="geist-fieldset-content">- <Html html={fieldsetTitle('configMountsTitle', '挂载状态')} />- <dl class="configfacts">{sources.map((row) => <><dt><span aria-hidden="true" dangerouslySetInnerHTML={{__html:selectOptionIconHtml(MEDIA_SOURCE_ICONS[row.location])}} />{({local: '本地磁盘', '115': 'CloudDrive · 115', pikpak: 'CloudDrive · PikPak'} as Record<string, string>)[row.location] || row.location}</dt><dd>{row.path || '未配置挂载点'} <span class={`configstatus ${row.online === true ? 'online' : row.online === false ? 'offline' : 'unknown'}`}>{row.online === true ? '在线' : row.online === false ? '离线' : '未检测'}</span></dd></>)}</dl>- {error ? <p class="configbad" role="alert">{error}</p> : null}- </div><div class="geist-fieldset-footer" data-geist-fieldset-footer>- <button type="button" class="geist-button" onClick={(event) => refresh(event.currentTarget)}>刷新挂载状态</button>- </div></section>;-}--function MediaSourceSelect({ value, label, onChange }: { value: string; label: string; onChange(value: string): void }) {- const options=[['local', '本地磁盘'], ['115', 'CloudDrive · 115'], ['pikpak', 'CloudDrive · PikPak']];- return <SelectField value={value} label={label} onChange={onChange} className="configsourcecontrol"- options={options.map(([kind, text]) => [kind!, text!, MEDIA_SOURCE_ICONS[kind!] || kind || 'database'])} />;-}--function ConfigurationForm({ data, receipt }: { data: ConfigurationData; receipt: ConfigurationProps['receipt'] }) {- const initial = data.media_sources?.filter((row) => ['local', '115', 'pikpak'].includes(row.location));- const [dirs, setDirs] = useState<string[]>(initial?.length ? initial.map((row) => row.path) : data.media_dirs.length ? data.media_dirs : ['']);- const [kinds, setKinds] = useState<string[]>(initial?.map((row) => row.location) ?? []);- const [roots, setRoots] = useState<string[]>(initial?.map((row) => row.root) ?? []);- const [libraries, setLibraries] = useState<string[]>(initial?.map((row) => row.library || '') ?? []);- const [libraryIcons, setLibraryIcons] = useState<string[]>(initial?.map((row) => row.library_icon || '') ?? []);- const [port, setPort] = useState(String(data.port));- const [scanNow, setScanNow] = useState(false);- const [rowErrors, setRowErrors] = useState<string[]>([]);- const [portError, setPortError] = useState('');- const [failure, setFailure] = useState('');- const [saved, setSaved] = useState<SaveResult | null>(null);- const [focusRow, setFocusRow] = useState<number | null>(null);- const busy = useRef(false);- const revision = useRef(data.revision);- const rows = useRef<(HTMLInputElement | null)[]>([]);- const saveButton = useRef<HTMLButtonElement>(null);-- // 新加的一行直接接过焦点:添加之后下一步一定是往里打路径。布局效应在提交 DOM 后立刻跑,焦点不等下一帧。- useLayoutEffect(() => {- if (focusRow === null) return;- rows.current[focusRow]?.focus();- setFocusRow(null);- }, [focusRow]);-- useEffect(() => {- if (!saved) return undefined;- const timer = setTimeout(() => location.assign(saved.url), RESTART_REDIRECT_MS);- return () => clearTimeout(timer);- }, [saved]);-- const update = (index: number, value: string) => {- setDirs((list) => list.map((dir, i) => (i === index ? value : dir)));- };- const add = () => {- setFocusRow(dirs.length);- setDirs((list) => [...list, '']);- };- const remove = (index: number) => {- setKinds((list) => list.filter((_, i) => i !== index));- setRoots((list) => list.filter((_, i) => i !== index));- setLibraries((list) => list.filter((_, i) => i !== index));- setLibraryIcons((list) => list.filter((_, i) => i !== index));- setDirs((list) => list.filter((_, i) => i !== index));- setRowErrors((errors) => errors.filter((_, i) => i !== index));- };- const setRowError = (index: number, message: string) => {- setRowErrors((errors) => {- const next = [...errors];- while (next.length <= index) next.push('');- next[index] = message;- return next;- });- };- // 对话框开着的时候按钮置忙;取消什么也不改,打不开时原因写在这一行下面。- const pick = async (index: number, button: HTMLButtonElement) => {- if (button.getAttribute('aria-busy') === 'true') return;- setActionBusy(button, true);- try {- const { path } = await apiSend<{ path: string | null }>(PICK_FOLDER_URL, { initial: dirs[index] ?? '' });- if (path) {- update(index, path);- setRowError(index, '');- }- } catch (cause) {- setRowError(index, errorMessage(cause));- } finally {- setActionBusy(button, false);- }- };-- const submit = async (event: JSX.TargetedEvent<HTMLFormElement>) => {- event.preventDefault();- if (busy.current) return;- busy.current = true;- setActionBusy(saveButton.current, true);- setFailure('');- try {- const result = await apiSend<SaveResult>(CONFIGURATION_URL, {- revision: revision.current,- media_dirs: dirs,- ...(data.media_sources ? { media_sources: dirs.map((path, i) => ({ path, location: kinds[i] || 'local', root: roots[i] || '', library: libraries[i] || '', library_icon: libraryIcons[i] || '' })) } : {}),- port,- scan_now: scanNow,- });- revision.current = result.revision;- setRowErrors([]);- setPortError('');- receipt('已保存配置');- setSaved(result);- } catch (cause) {- const fields = fieldErrorsOf(cause);- if (fields) {- setRowErrors(fields.media_dirs ?? []);- setPortError(fields.port ?? '');- } else {- setRowErrors([]);- setPortError('');- setFailure(errorMessage(cause));- }- } finally {- busy.current = false;- setActionBusy(saveButton.current, false);- }- };-- if (saved) {- return (- <div class="configsaved" role="status">- <div class="geist-note geist-note-success" role="note">- <svg aria-hidden="true" viewBox="0 0 24 24"><use href="#i-check" /></svg>- <p><span>配置已保存,Peach 正在重新启动。稍后自动跳转,或点击<a href={saved.url}>进入馆藏</a>。</span></p>- </div>- </div>- );- }-- return (- <form class="configfieldset" data-geist-fieldset aria-labelledby="configTitle" onSubmit={submit} noValidate>- <div class="geist-fieldset-content">- <Html html={fieldsetTitle('configTitle', '这台电脑')} />- <div class="configfield">- <span class="configlabel" id="configDirsLabel">媒体文件夹</span>- <div class="configdirs" role="group" aria-labelledby="configDirsLabel">- {dirs.map((value, index) => (- <div class="configdir" key={index}>- <span class="configpathlabel">本机文件夹 {index + 1}</span>- <input- class="geist-input"- type="text"- value={value}- aria-label={`媒体文件夹 ${index + 1}`}- aria-invalid={rowErrors[index] ? 'true' : undefined}- onInput={(event) => update(index, event.currentTarget.value)}- ref={(el) => { rows.current[index] = el; }}- />- <button type="button" class="geist-button configpick" aria-label="选择文件夹" onClick={(event) => pick(index, event.currentTarget)}>- <svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-folder-search" /></svg>- </button>- {dirs.length > 1 ? (- <button type="button" class="geist-button configrm danger" aria-label="移除这个文件夹" onClick={() => remove(index)}>- <svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-x" /></svg>- </button>- ) : null}- <div class="configsource">- <label>媒体库名称- <input class="geist-input" aria-label={`媒体库 ${index + 1}`} maxLength={80} value={libraries[index] || ''} placeholder="同名文件夹归入同一个媒体库"- onInput={(event) => { const next = [...libraries]; next[index] = event.currentTarget.value; setLibraries(next); }} />- </label>- <div class="configsourcelabel">媒体库图标- <LibraryIconPicker label={`媒体库图标 ${index + 1}`} value={libraryIcons[index] || ''} kind={kinds[index] || 'local'}- onChange={(value) => { const next = [...libraryIcons]; next[index] = value; setLibraryIcons(next); }} />- </div>- <div class="configsourcelabel">媒体来源- <MediaSourceSelect label={`媒体来源 ${index + 1}`} value={kinds[index] || 'local'}- onChange={(value) => { const next = [...kinds]; next[index] = value; setKinds(next); }} />- </div>- {data.windows === false ? <label>Windows 中的对应路径- <input class="geist-input" aria-label={`Windows 中的对应路径 ${index + 1}`} value={roots[index] || ''} placeholder="例如 B:\\"- onInput={(event) => { const next = [...roots]; next[index] = event.currentTarget.value; setRoots(next); }} />- </label> : null}- </div>- {rowErrors[index] ? <p class="configbad" role="alert">{rowErrors[index]}</p> : null}- </div>- ))}- </div>- <button type="button" class="geist-button configadd" onClick={add}>添加文件夹</button>- {kinds.some((kind) => kind === '115' || kind === 'pikpak') ? <CloudDriveGuide /> : null}- {kinds.some((kind) => kind === '115' || kind === 'pikpak') ? data.mount_dependencies?.filter((dependency) => !dependency.available).map((dependency) => <p class="confighelp">未检测到 {dependency.name}。<a class="externallink" href={dependency.download_url} target="_blank" rel="noreferrer">下载 {dependency.name}<svg class="externalmark" viewBox="0 0 24 24" aria-hidden="true"><use href="#i-external-link" /></svg></a></p>) : null}- {data.windows === false ? <p class="confighelp">本机文件夹是这台电脑读取媒体的位置。Windows 中的对应路径用于匹配馆藏中已有的路径,例如 B:\ 对应本机挂载文件夹。</p> : null}- </div>- {data.port_editable !== false ? <div class="configfield">- <label for="configPort">本机访问端口</label>- <input- id="configPort"- class="geist-input"- type="text"- inputMode="numeric"- value={port}- aria-invalid={portError ? 'true' : undefined}- onInput={(event) => setPort(event.currentTarget.value)}- />- {portError ? <p class="configbad" role="alert">{portError}</p> : null}- <p class="confighelp">浏览器地址里冒号后面的数字,一般不用改。</p>- </div> : null}- <label class="configcheck">- <span class="pcheck">- <input type="checkbox" checked={scanNow} onChange={(event) => setScanNow(event.currentTarget.checked)} />- <span aria-hidden="true"><svg viewBox="0 0 24 24"><use href="#i-check" /></svg></span>- </span>- <span>保存后扫描并补全资料</span>- </label>- {failure ? <Html html={noteHtml(failure, { variant: 'error', label: '没有保存' })} /> : null}- </div>- <div class="geist-fieldset-footer" data-geist-fieldset-footer>- <p>{data.port_editable === false ? '保存后 Peach 会重新载入配置。' : '保存后 Peach 会重新启动,端口改了就用新地址打开。'}</p>- <button type="submit" class="geist-button primary" ref={saveButton}>保存配置</button>- </div>- </form>- );-}-export function Configuration({ receipt, data, error }: ConfigurationProps & State) {if (error || !data) {- return <Html class="configpage" html={noteHtml(error || '没有读到配置', { variant: 'error', label: '打不开配置' })} />;+ return <div class="configpage" dangerouslySetInnerHTML={{ __html: noteHtml(error || '没有读到配置', { variant: 'error', label: '打不开配置' }) }} />;}+ const props: ConfigurationGroupProps = { data, receipt };return (<div class="configpage">{data.startup ? <h2 class="configgroup">通用</h2> : null}- {data.startup ? <StartupSettings startup={data.startup} receipt={receipt} /> : null}+ {data.startup ? <ReactSlot mount="mountGeneralSettings" props={props} /> : null}<h2 class="configgroup">媒体</h2>- {data.editable- ? <ConfigurationForm data={data} receipt={receipt} />- : <Html html={noteHtml(data.notice, { variant: 'secondary', label: '只读' })} />}- <MountStatus data={data} />+ <ReactSlot mount="mountMediaSettings" props={props} />{data.peach_proxy || data.access ? <h2 class="configgroup">网络与访问</h2> : null}- {data.peach_proxy ? <PeachProxy initial={data.peach_proxy} receipt={receipt} /> : null}- {data.access ? <ReactSlot mount="mountAccessSettings" props={{ initial: data.access, receipt }} /> : null}+ {data.peach_proxy || data.access ? <ReactSlot mount="mountNetworkSettings" props={props} /> : null}<h2 class="configgroup">更新与维护</h2>- {data.automatic_updates ? <AutomaticUpdateSettings initial={data.automatic_updates} receipt={receipt} /> : null}- {data.updates ? <ReleaseUpdates initial={data.updates} initialJob={data.update_job} /> : null}- <Facts facts={data.facts} />- {data.uninstall ? <UninstallSettings uninstall={data.uninstall} /> : null}+ <ReactSlot mount="mountMaintenanceSettings" props={props} /></div>);}diff --git a/frontend/src/islands/desktop-settings.tsx b/frontend/src/islands/desktop-settings.tsxdeleted file mode 100644index 814d41bdf..000000000--- a/frontend/src/islands/desktop-settings.tsx+++ /dev/null@@ -1,99 +0,0 @@-import { useLayoutEffect, useRef, useState } from 'preact/hooks';-import { fieldsetTitle, setActionBusy, confirmModal, wireCollapse } from '@peach/legacy/ui';-import { icon } from '@peach/legacy/core';-import { apiSend, errorMessage } from '../api';--export interface StartupState { available: boolean; enabled: boolean; silent: boolean; message: string; desktop: boolean; desktop_message: string }-export interface UninstallState { available: boolean; full_available: boolean; message: string; data_root: string; directories: string[] }--function SettingCheck({ label, checked, disabled, change }: { label:string; checked:boolean; disabled:boolean; change(value:boolean):void }) {- return <label class="configcheck"><span class="pcheck"><input type="checkbox" checked={checked} disabled={disabled} onChange={event=>change(event.currentTarget.checked)} />- <span aria-hidden="true"><svg viewBox="0 0 24 24"><use href="#i-check" /></svg></span></span><span>{label}</span></label>;-}--function SettingToggle({ label, checked, disabled, change }: { label:string; checked:boolean; disabled:boolean; change(value:boolean):void }) {- return <label class="configtoggle"><span>{label}</span><input class="ptoggle" type="checkbox" role="switch" checked={checked} disabled={disabled} onChange={event=>change(event.currentTarget.checked)} /></label>;-}--export function StartupSettings({ startup, receipt }: { startup: StartupState; receipt(message: string): void }) {- const [enabled,setEnabled] = useState(startup.enabled);- const [silent,setSilent] = useState(startup.silent);- const [desktop,setDesktop] = useState(startup.desktop);- const [error,setError] = useState('');- const busy = useRef(false);- const button = useRef<HTMLButtonElement>(null);- // 桌面快捷方式只有 Windows 有,桌面上已经摆着另一份安装的图标时也不给动;两种情况后端- // 都在 desktop_message 里说了原因,所以这里按它有没有内容判禁用,不再自己判平台。- const desktopReady = startup.available && !startup.desktop_message;- async function save() {- if (busy.current) return;- busy.current = true; setActionBusy(button.current,true); setError('');- try { await apiSend('/api/configuration/startup',{enabled,silent,desktop}); receipt('已保存开机自启'); }- catch (cause) { setError(errorMessage(cause)); }- finally { busy.current = false; setActionBusy(button.current,false); }- }- return (- <form class="configfieldset" data-geist-fieldset onSubmit={event=>{event.preventDefault();void save();}}>- <div class="geist-fieldset-content">- <div dangerouslySetInnerHTML={{__html:fieldsetTitle('startupTitle','开机自启')}} />- <div class="configoptions" role="group" aria-labelledby="startupTitle">- <SettingToggle label="开机后启动 Peach" checked={enabled} disabled={!startup.available} change={setEnabled} />- <div class="configoption"><SettingToggle label="静默启动" checked={silent} disabled={!startup.available || !enabled} change={setSilent} />- <p class="confighelp">静默启动仅显示托盘,开机后启动 Peach 打开时生效。</p></div>- <div class="configoption"><SettingToggle label="在桌面创建快捷方式" checked={desktop} disabled={!desktopReady} change={setDesktop} />- <p class="confighelp">{startup.desktop_message || '双击图标打开 Peach 网页;卸载时一并移除。'}</p></div>- </div>- {startup.message && <p class="confighelp">{startup.message}</p>}- {error && <p class="configbad" role="alert">{error}</p>}- </div>- <footer class="geist-fieldset-footer" data-geist-fieldset-footer><button ref={button} type="submit" class="geist-button primary" disabled={!startup.available}>保存配置</button></footer>- </form>- );-}--function DataDirectories({ data }: { data: UninstallState }) {- const mount = useRef<HTMLDivElement>(null);- useLayoutEffect(()=>{- const root=mount.current!;- const details=document.createElement('details');details.className='configdirectories';- const summary=document.createElement('summary');summary.innerHTML=icon('chevron-right')+'<span>数据目录</span>';- details.append(summary);- for(const path of [...new Set([data.data_root,...data.directories])]) {- const line=document.createElement('p');line.className='confighelp';line.textContent=path;details.append(line);- }- root.replaceChildren(details);wireCollapse(root,'details','uninstall-data');- return ()=>root.replaceChildren();- },[data]);- return <div ref={mount} />;-}--export function UninstallSettings({ uninstall }: { uninstall: UninstallState }) {- const [removeData,setRemoveData] = useState(false);- const [accepted,setAccepted] = useState('');- async function remove() {- await confirmModal({title:'卸载 Peach',danger:true,body:removeData- ? '将退出 Peach,移除程序、开机自启、桌面图标、设置、本地数据库、观看记录、凭据和缓存。原始媒体文件保留。'- : '将退出 Peach 并移除程序、开机自启和桌面图标。设置、本地数据库、观看记录与缓存保留。',- confirmLabel:'卸载 Peach',onConfirm:async () => {- const result = await apiSend<{message:string}>('/api/configuration/uninstall',{delete_data:removeData,confirmation:'卸载 Peach'});- setAccepted(result.message);- }});- }- // 底栏那一行照 Vercel 的 Error Fieldset:左边一句说这颗按钮此刻意味着什么,右边才是按钮。- // 拦住卸载的理由(源码安装、更新还在跑)和按下去之后的回执是同一个位置上的同一件事——- // 都在答「这颗现在能不能按」,摆在正文末尾就得先读完整段说明才找得到答案。- const status = accepted || uninstall.message;- return <section id="uninstallPeach" class="configfieldset" data-geist-fieldset data-fieldset-type="error">- <div class="geist-fieldset-content">- <div class="configfieldset-heading">- <div dangerouslySetInnerHTML={{__html:fieldsetTitle('uninstallTitle','卸载 Peach')}} />- {uninstall.available && <p class="confighelp">卸载会退出 Peach、移除程序、开机自启和桌面图标。原始媒体文件保留。</p>}- </div>- <SettingCheck label="完全卸载:同时删除设置、本地数据库、观看记录、凭据和缓存" checked={removeData} disabled={!uninstall.full_available || !!accepted} change={setRemoveData} />- <DataDirectories data={uninstall} />- </div>- <footer class="geist-fieldset-footer" data-geist-fieldset-footer>- {status && <p role={accepted ? 'status' : undefined}>{status}</p>}- <button type="button" class="geist-button danger" disabled={!uninstall.available || !!accepted} onClick={()=>void remove()}>卸载 Peach</button></footer>- </section>;-}diff --git a/frontend/src/islands/peach-proxy.tsx b/frontend/src/islands/peach-proxy.tsxdeleted file mode 100644index 099f9e816..000000000--- a/frontend/src/islands/peach-proxy.tsx+++ /dev/null@@ -1,24 +0,0 @@-import { useRef, useState } from 'preact/hooks';-import { apiSend } from '../api';-import { SelectField, SettingsSection, useSubmitAction } from '../settings-controls';--export interface PeachProxyState { mode: string; proxy_saved: boolean; needs_selection: boolean }-export function PeachProxy({ initial, receipt }: { initial: PeachProxyState; receipt(message: string): void }) {- const [saved, setSaved] = useState(initial);- const [mode, setMode] = useState(initial.mode);- const [address, setAddress] = useState('');- const button = useRef<HTMLButtonElement>(null);- const action = useSubmitAction(button);- const save = () => action.run(signal => apiSend<PeachProxyState>('/api/configuration/peach-proxy',{mode,proxy:address},'POST',signal),- next => { setSaved(next); setAddress(''); receipt('已保存 Peach 代理'); });- return <SettingsSection id="peachProxy" titleId="peachProxyTitle" title="Peach 代理"- help="采集来源选择“Peach 代理”时共用此设置。" error={action.error}- onSubmit={event => { event.preventDefault(); void save(); }}- footer={<button ref={button} class="geist-button primary" type="submit">保存代理</button>}>- <SelectField value={mode} onChange={setMode} label="Peach 代理" fixed- options={ [['environment','系统代理'],['direct','直连'],['proxy','自定义']] } />- {mode === 'proxy' && <div class="configfield"><label htmlFor="peachProxyAddress">代理地址</label><input id="peachProxyAddress" class="geist-input" type="password" autoComplete="off" value={address}- placeholder={saved.proxy_saved ? '已保存,留空保留' : 'http://127.0.0.1:7890'} onInput={event => setAddress(event.currentTarget.value)} /></div>}- {saved.needs_selection && <p class="configbad">已有来源的代理地址不同,请选择公共连接方式。</p>}- </SettingsSection>;-}diff --git a/frontend/src/islands/release-updates.tsx b/frontend/src/islands/release-updates.tsxdeleted file mode 100644index 83e05fc3d..000000000--- a/frontend/src/islands/release-updates.tsx+++ /dev/null@@ -1,116 +0,0 @@-import { useEffect, useRef, useState } from 'preact/hooks';-import { fieldsetTitle, setActionBusy, progressHtml, confirmModal, noteHtml } from '@peach/legacy/ui';-import { apiGet, apiSend, errorMessage } from '../api';--export interface ReleaseState {- current_version: string;- latest_version: string | null;- channel: string;- installation: string;- state: string;- message: string;- release_url: string;- checked_at?: number;-}--export interface UpdateJob {state: string; progress: number; message?: string; downloaded?: number; total?: number; version?: string}-const active = new Set(['downloading','verifying','extracting','preparing','restarting','installing']);--export function ReleaseUpdates({ initial, initialJob }: { initial: ReleaseState; initialJob?: UpdateJob | undefined }) {- const [data, setData] = useState(initial);- const [job, setJob] = useState<UpdateJob>(initialJob || {state:'idle',progress:0});- const [error, setError] = useState('');- const request = useRef<AbortController | null>(null);- const mounted = useRef(true);- const prompted = useRef(false);- const downloadButton = useRef<HTMLButtonElement>(null);- useEffect(() => { setActionBusy(downloadButton.current,active.has(job.state)); }, [job.state]);- useEffect(() => () => { mounted.current = false; request.current?.abort(); }, []);- const restart = async () => {- const result = await apiSend<UpdateJob>('/api/configuration/update-restart', {});- if (mounted.current) setJob(result);- };- useEffect(() => {- if (job.state !== 'ready' || prompted.current) return;- prompted.current = true;- void confirmModal({title:'更新已准备好',body:`Peach ${job.version || ''} 将在重启后安装。`,confirmLabel:'立即重启',cancelLabel:'稍后',onConfirm:restart});- }, [job.state]);- useEffect(() => {- const controller = new AbortController();- let timer: ReturnType<typeof setTimeout>;- let failures = 0;- const poll = async () => {- try {- const result = await apiGet<UpdateJob>('/api/configuration/update-status',controller.signal);- if (!controller.signal.aborted) {- setJob(result); failures = 0;- if (result.state === 'complete') setData(current => ({...current,current_version:result.version || current.current_version,state:'current',message:'已是最新测试版。'}));- const automatic = await apiGet<{result?: ReleaseState}>('/api/configuration/automatic-updates',controller.signal);- if (!controller.signal.aborted && automatic.result) setData(automatic.result);- }- } catch {- if (++failures >= 120 && !controller.signal.aborted) setError('尚未连接到 Peach,请检查托盘后刷新页面。');- }- if (!controller.signal.aborted && failures < 120) timer = setTimeout(poll,active.has(job.state) ? 1000 : 30000);- };- timer = setTimeout(poll,active.has(job.state) ? 1000 : 30000);- return () => { controller.abort(); clearTimeout(timer); };- }, [job.state]);- const download = async (button: HTMLButtonElement) => {- if (request.current || active.has(job.state)) return;- const controller = new AbortController(); request.current = controller;- prompted.current = false; setError(''); setActionBusy(button,true);- try {- const result = await apiSend<UpdateJob>('/api/configuration/update',{},'POST',controller.signal);- if (!controller.signal.aborted) setJob(result);- } catch (cause) { if (!controller.signal.aborted) setError(errorMessage(cause)); }- finally { request.current = null; setActionBusy(button,false); }- };- const check = async (button: HTMLButtonElement) => {- if (request.current) return;- const controller = new AbortController();- request.current = controller;- setActionBusy(button, true); setError('');- try {- const result = await apiGet<ReleaseState>('/api/configuration/updates', controller.signal);- if (!controller.signal.aborted) setData(result);- } catch (cause) {- if (!controller.signal.aborted) {- setData({ ...initial, state: 'error' });- setError(errorMessage(cause));- }- } finally {- request.current = null;- setActionBusy(button, false);- }- };- return <section class="configfieldset" data-geist-fieldset aria-labelledby="configUpdatesTitle">- <div class="geist-fieldset-content">- <div dangerouslySetInnerHTML={{ __html: fieldsetTitle('configUpdatesTitle', '检查更新') }} />- <dl class="configfacts">- <dt>当前版本</dt><dd>{data.current_version}</dd>- <dt>安装方式</dt><dd>{data.installation}</dd>- <dt>更新通道</dt><dd>{data.channel}</dd>- <dt>最新版本</dt><dd>{data.latest_version || (data.state === 'unchecked' ? '尚未检查' : '未取得')}</dd>- </dl>- {data.checked_at ? <p class="confighelp">检查于 {new Date(data.checked_at * 1000).toLocaleString()}</p> : null}- {data.state === 'available' && !error ? <div role="status" dangerouslySetInnerHTML={{__html:noteHtml(data.message,{label:'有可用更新'})}} /> : <p class={error || data.state === 'error' ? 'configbad' : 'confighelp'} role={error || data.state === 'error' ? 'alert' : 'status'}>- {error || data.message}- </p>}- {job.state !== 'idle' ? <div aria-live="polite">- <p class={job.state === 'error' ? 'configbad' : 'confighelp'}>{job.message}</p>- {job.state !== 'error' ? <>- <div dangerouslySetInnerHTML={{__html:progressHtml('更新准备进度:下载、校验、解压、准备安装',job.progress,100,{stops:[{value:65,label:'下载结束'},{value:67,label:'校验结束'},{value:90,label:'准备安装'}]})}} />- <p class="confighelp">下载 → 校验 → 解压 → 准备安装 · {job.message}</p>- <p class="confighelp">{job.state === 'downloading' && job.total ? `${((job.downloaded || 0)/1048576).toFixed(1)} / ${(job.total/1048576).toFixed(1)} MB` : `${job.progress}%`}</p>- </> : null}- </div> : null}- </div>- <div class="geist-fieldset-footer" data-geist-fieldset-footer>- <a class="externallink" href={data.release_url} target="_blank" rel="noreferrer">查看发布页<svg class="externalmark" viewBox="0 0 24 24" aria-hidden="true"><use href="#i-external-link" /></svg></a>- {job.state === 'ready' ? <button type="button" class="geist-button primary" onClick={() => { void confirmModal({title:'更新已准备好',body:`Peach ${job.version || ''} 将在重启后安装。`,confirmLabel:'立即重启',cancelLabel:'稍后',onConfirm:restart}); }}>重启安装</button> : null}- {data.state === 'available' && data.installation === '独立测试包' && job.state !== 'ready' ? <button ref={downloadButton} type="button" class="geist-button primary" onClick={(event) => download(event.currentTarget)}>下载并安装</button> : null}- <button type="button" class="geist-button" disabled={active.has(job.state)} onClick={(event) => check(event.currentTarget)}>检查更新</button>- </div>- </section>;-}diff --git a/frontend/src/library-icon-picker.tsx b/frontend/src/library-icon-picker.tsxdeleted file mode 100644index e83d2af77..000000000--- a/frontend/src/library-icon-picker.tsx+++ /dev/null@@ -1,41 +0,0 @@-import { useRef, useState } from 'preact/hooks';-import { selectOptionIconHtml, MEDIA_SOURCE_ICONS } from '@peach/legacy/ui';--/* 一行七枚、六行排完。第一枚是「不另选」:网盘库自动用网盘标识,本地路径没有可识别的- 来源,就是默认那枚磁盘。其余按题材成组:身体与情欲、身份与装扮、场景与情境、媒介与归档。 */-export const LIBRARY_ICON_CHOICES = [- ['', '自动识别'], ['hard-drive','磁盘'], ['database','资料库'], ['heart','心动'], ['heart-hand','亲密'], ['flame','热情'], ['cherry','樱桃'],- ['lollipop','甜心'], ['candy','糖果'], ['banana','香蕉'], ['droplets','湿润'], ['venus','女性'], ['mars','男性'], ['venus-and-mars','情侣'],- ['gem','精选'], ['crown','女王'], ['ribbon','丝带'], ['shirt','制服'], ['graduation-cap','学生'], ['stethoscope','护士'], ['glasses','眼镜'],- ['footprints','足迹'], ['hand','手部'], ['flower','花朵'], ['venetian-mask','角色扮演'], ['rabbit','兔女郎'], ['paw-print','兽耳'], ['dumbbell','健身'],- ['bed-double','卧室'], ['bath','浴室'], ['key-round','私密'], ['wine','微醺'], ['cigarette','烟'], ['moon','夜色'], ['sparkles','幻想'],- ['camera','写真'], ['video','影片'], ['film','电影'], ['image','图集'], ['gamepad-2','游戏'], ['star','收藏'], ['tags','主题'],-] as const;--/** 不另选时的字形与说法:网盘库跟着来源走(115、PikPak 的站标),本地路径没有什么可识别,就是默认磁盘。 */-export function libraryAutoChoice(kind:string):[string,string] {- const mark=kind!=='local'?MEDIA_SOURCE_ICONS[kind]:'';- return mark?[mark,'自动识别']:['hard-drive','默认'];-}--export function LibraryIconPicker({value,label,kind='local',onChange}:{value:string;label:string;kind?:string;onChange(value:string):void}) {- const [draft,setDraft]=useState(value);- const popup=useRef<HTMLDialogElement>(null),trigger=useRef<HTMLButtonElement>(null);- const [autoMark,autoLabel]=libraryAutoChoice(kind);- const glyph=(name:string)=><span aria-hidden="true" dangerouslySetInnerHTML={{__html:selectOptionIconHtml(name||autoMark)}}/>;- const choiceLabel=(key:string,name:string)=>key?name:autoLabel;- const open=()=>{setDraft(value);const dialog=popup.current!,rect=trigger.current!.getBoundingClientRect();dialog.showModal();- const box=dialog.getBoundingClientRect();dialog.style.left=`${Math.max(8,Math.min(innerWidth-box.width-8,rect.left))}px`;- dialog.style.top=`${rect.bottom+box.height+8<=innerHeight?rect.bottom+4:Math.max(8,rect.top-box.height-4)}px`;- };- return <div class="board-icon-picker">- <button ref={trigger} type="button" class="geist-button board-icon-trigger" aria-label={label} aria-haspopup="dialog" onClick={open}>{glyph(value)}<span>{choiceLabel(value,LIBRARY_ICON_CHOICES.find(([key])=>key===value)?.[1]||autoLabel)}</span></button>- <dialog ref={popup} class="board-icon-popover" aria-label={`${label}候选`} onCancel={()=>setDraft(value)} onClick={event=>{if(event.target===popup.current){popup.current?.close();setDraft(value)}}}>- {/* 格子里只放图标:名字走 title 与 aria-label,带着字的话 42 个候选要排十几行。 */}- <div class="board-icon-panel"><h3>选择媒体库图标</h3><div role="radiogroup" aria-label="候选图标" class="board-icon-grid">- {LIBRARY_ICON_CHOICES.map(([key,name])=><label title={choiceLabel(key,name)} class={draft===key?'selected':''}><input type="radio" name={`${label}-icon`} aria-label={choiceLabel(key,name)} value={key} checked={draft===key} onChange={()=>setDraft(key)}/>{glyph(key)}</label>)}- </div></div>- <footer><button type="button" class="geist-button" onClick={()=>{setDraft(value);popup.current!.close()}}>取消</button><button type="button" class="geist-button primary" disabled={draft===value} onClick={()=>{onChange(draft);popup.current!.close()}}>应用</button></footer>- </dialog>- </div>;-}diff --git a/frontend/src/react-slot.tsx b/frontend/src/react-slot.tsxindex 255433741..8b9b4e0ef 100644--- a/frontend/src/react-slot.tsx+++ b/frontend/src/react-slot.tsx@@ -6,7 +6,7 @@import { useEffect, useRef, useState } from 'preact/hooks';import type * as ReactBundle from '@peach/react';-type MountName = 'mountAccessSettings';+type MountName = 'mountGeneralSettings' | 'mountMediaSettings' | 'mountNetworkSettings' | 'mountMaintenanceSettings';type PropsOf<N extends MountName> = Parameters<(typeof ReactBundle)[N]>[1];export function ReactSlot<N extends MountName>({ mount, props }: { mount: N; props: PropsOf<N> }) {diff --git a/frontend/src/react/boardui/ORIGIN.md b/frontend/src/react/boardui/ORIGIN.mdindex ba76ea6fe..92e3ba476 100644--- a/frontend/src/react/boardui/ORIGIN.md+++ b/frontend/src/react/boardui/ORIGIN.md@@ -19,6 +19,12 @@| `input` | `ac1e66c9ed15f9db2750dd528bc894c856ac84e79f72ff4acb96f14b1ab9c249` | `components/base/input/{input,label,hint-text}.tsx` || `checkbox` | `6210fdb4c54aab6dd89db3ae1bc387596a2dbacde62896aecaa2a7e15ece859c` | `components/base/checkbox/{checkbox,checkbox-glyph}.tsx` || `settings-modal` | `eb01742ca56daa473f042244176cd697fc20010ab18f680e3a3a8012d69f6c5b` | `components/application/settings/settings-rows.tsx` |+| `switch` | `3412c1910b2fa7f5d17404bf50bd2503e9ca097cf9d741366379cf18e09ebeb6` | `components/base/switch/switch.tsx` |+| `select` | `36a3a2b91508bdb278ecf84d24b35a7324e8be0781677e5bc12d8333eb9ff5ef` | `components/base/select/select.tsx`、`components/base/dropdown/menu-styles.ts` |+| `chevrons` | `b08900e01f7a82dcd38a66f46041a576fcefae667ed7afaba5d177c480ae85b0` | `components/foundations/icons/chevrons.tsx` |+| `use-dismiss-on-outside-press` | `854569e5d2188146c1ebb41ceccc9eaaddb3d4a31b623946e7dd72be650636b1` | `utils/use-dismiss-on-outside-press.ts` |+| `link-button` | `05eb37b3cf1334c153e0702de05fe4989e4359c9c74d5ba55cc552a58e4629bd` | `components/base/buttons/link-button.tsx` |+| `icon-button` | `1441e8301efc6e16e0693194f876ce285ca5fe8d440156a060a9266e012d2c90` | `components/base/buttons/icon-button.tsx` |## 没有逐字复制的部分@@ -27,7 +33,11 @@| `globals`(`693885494e6f229637fe118852efbfb3df820dd8d174a2a7e47f65dadfcd96bf`) | 不复制整份;试点用到的 `check-draw` 动画和根元素的字体平滑搬进 `../styles.css`,作用域是 `.peach-react` | 整份 `@import "tailwindcss"` 会把 Preflight 和 `html`、`body` 的底色铺到整页,未迁移页面仍由旧样式表绘制 || Tailwind Preflight | `../preflight-scoped.css` 逐字包进 `@scope (.peach-react)` | 同上 || 深色模式 | 上游读 `<html class="dark">`;`web/app.js` 的 `applyTheme()` 与 `index.html` 首帧脚本按实际深浅加减这个类 | Peach 的主题选择写在 `data-theme`,跟随系统时不写属性 |-| 与 `web/board.css` 同名的 `--color-*` token | `:root` 上由 `board.css` 定值;`../styles.css` 在 `.peach-react` 与 `.dark .peach-react` 上按 `theme.css` 原文重新声明 | 未迁移页面的颜色保持不变,React 子树读到上游值;渲染到容器外的浮层不在这个范围里,用到时另行处理 |+| 与 `web/board.css` 同名的 `--color-*` token | `:root` 上由 `board.css` 定值;`../styles.css` 在 `.peach-react` 与 `.dark .peach-react` 上按 `theme.css` 原文重新声明 | 未迁移页面的颜色保持不变,React 子树读到上游值 |+| 弹出层的挂载位置 | `../entry.tsx` 用 `react-aria` 的 `UNSAFE_PortalProvider` 把 Popover 渲染进 `body` 末尾一个同样带 `.peach-react` 的容器 | 上游 Popover 渲染到 `body`,落在 token 重声明与 Preflight 的作用域外,读到的是 `board.css` 的值 || 焦点环 | 输入框只画 BoardUI 外框上的 `ring`;`web/css/01-base.css` 的全局 `:focus-visible` 排除 `.peach-react` 子树 | 旧样式表排在后面,同特指度时会盖过 `outline-none`,内层输入框多出一圈 || 提交键忙态 | 写 `aria-busy` 与 `aria-disabled`,不画 Spinner | `button` 条目没有加载态 |-| 行内警示 | `../settings/access-settings.tsx` 的 `Warning` 用 `status-yellow` token 组合 | 注册表里没有行内 Note 组件 |+| 行内提示 | `../settings/section.tsx` 的 `Note` 按语气取 `status-yellow`、`background-tertiary-error`、`notification-*` token 组合 | 注册表里没有行内 Note 组件;`notification` 条目是带关闭键和动效的浮动通知 |+| 进度条 | `../settings/section.tsx` 的 `Progress` 用 SVG 矩形画 | 注册表里没有进度组件 |+| 折叠 | `../settings/section.tsx` 的 `Disclosure` 用原生 `details` | 注册表里没有折叠组件 |+| 图标选择 | `../settings/library-icon-picker.tsx` 用 React Aria 的 `Popover`、`RadioGroup` 组合,面板取 `menu-styles.ts` 的外观 | 注册表里没有网格单选的弹出面板 |diff --git a/frontend/src/react/boardui/UPSTREAM.sha256 b/frontend/src/react/boardui/UPSTREAM.sha256index 22210a30a..fe3b802b8 100644--- a/frontend/src/react/boardui/UPSTREAM.sha256+++ b/frontend/src/react/boardui/UPSTREAM.sha256@@ -1,10 +1,17 @@80ab66fcbaca762d75032deca7279043742b3f8637b4b1b8008993e3dfda6744 components/application/settings/settings-rows.tsxa49800d5cc58a9f8a98c07a7251e5923904b483b2f3e6e63e4fa0797acff101d components/base/buttons/button.tsx+6b67368aadfe2f0e9c409f29ad118dfab52b227741a97e59e67c6e381cfc77c7 components/base/buttons/icon-button.tsx+f56415d9b83cfb4af68d9f359ccb8925f885bce60e6d29d38d73b14966499aaf components/base/buttons/link-button.tsxe71bdc6f0dd28e792be233950df90f7f8ee68252a63e3f2da46d19f84bdf7584 components/base/checkbox/checkbox-glyph.tsx592651a10aaf0e186a08862391fa99fa7d45ee75e8bfd0bc134408bb1c076f5e components/base/checkbox/checkbox.tsx+95c1dd4c81cb48560ba206012314b2ca9a3742bee2d6c38b26548b6b893219b1 components/base/dropdown/menu-styles.ts0426d70de74274486166cf3fd2279b8c70ce184012d613f87c44dbaa484ba8c3 components/base/input/hint-text.tsx7f42e9bbd54ef8db46b280d6fa2f0936ba064f222b7e4c9084a5cfd6cf219920 components/base/input/input.tsxa053bec8ad9f79f15ad8d7f031eac740588781d4e1b34d1cb1b3c5d44a4b2199 components/base/input/label.tsx+c56abf0ad7b554a363a6e2b46045489b6a94c18718324cbf06e64edf0540b116 components/base/select/select.tsx+4b853b8886c471f482e3b2c5a4a6c6436ab30f7d6122f43f571f94d10f5d6c22 components/base/switch/switch.tsx+daa432c30cf80fbfef15f929a2b7ca459c007f5611785286937528d4b7565b97 components/foundations/icons/chevrons.tsxcd4159cd6f121d8693fc3fcfa665126b49d6a23714a265b653c92cecef864136 styles/theme.cssdfd4e9b446998d063efe96a47fc31fd2492639bf641d0da1b60645fe4dcc32a1 styles/typography.cssdb35ea5afa8b2e0fd51319bc49288c4df7c98ec53440b43903636a32e3319d9d utils/cx.ts+01c70c3b25018e9c8d1d6d84ca67facb9392b5d4baf1c7207bbcfe13d4b33699 utils/use-dismiss-on-outside-press.tsdiff --git a/frontend/src/react/boardui/components/base/buttons/icon-button.tsx b/frontend/src/react/boardui/components/base/buttons/icon-button.tsxnew file mode 100644index 000000000..430f2a682--- /dev/null+++ b/frontend/src/react/boardui/components/base/buttons/icon-button.tsx@@ -0,0 +1,108 @@+import type {+ AnchorHTMLAttributes,+ ButtonHTMLAttributes,+ ComponentType,+ Ref,+} from "react";+import { cx, sortCx } from "@/utils/cx";++/**+ * Figma source: Board UI → dashboard 1 icon-only buttons (notification button+ * node 3731:3035, table row actions nodes 3731:3284/3287/3290).+ *+ * Square icon-only button. Unlike `Button` (whose small size is radius/lg with+ * an 18px icon), the icon button keeps radius/2lg (10px) at both sizes:+ *+ * container padding icon+ * medium 36×36 8 20×20+ * small 32×32 8 16×16+ *+ * One variant in the designs: secondary (white fill, border/button/default,+ * shadow/xs). Hover/active/disabled states reuse the secondary Button tokens.+ */++type IconButtonSize = "medium" | "small";++type IconComponent = ComponentType<{+ className?: string;+ "aria-hidden"?: boolean | "true" | "false";+}>;++export interface IconButtonProps+ extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children"> {+ icon: IconComponent;+ size?: IconButtonSize;+ /** Accessible name — required since there is no visible label. */+ "aria-label": string;+ ref?: Ref<HTMLButtonElement>;+}++export interface IconLinkButtonProps+ extends Omit<AnchorHTMLAttributes<HTMLAnchorElement>, "children"> {+ icon: IconComponent;+ size?: IconButtonSize;+ /** Accessible name — required since there is no visible label. */+ "aria-label": string;+ ref?: Ref<HTMLAnchorElement>;+}++const styles = sortCx({+ 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",+ ].join(" "),+ size: {+ medium: "size-9",+ small: "size-8",+ },+ icon: {+ medium: "size-5 shrink-0",+ small: "size-4 shrink-0",+ },+});++export function IconButton({+ icon: Icon,+ size = "medium",+ className,+ type = "button",+ ref,+ ...props+}: IconButtonProps) {+ return (+ <button+ ref={ref}+ type={type}+ className={cx(styles.base, styles.size[size], className)}+ {...props}+ >+ <Icon className={styles.icon[size]} aria-hidden />+ </button>+ );+}++/** Anchor counterpart to IconButton for external and navigational actions. */+export function IconLinkButton({+ icon: Icon,+ size = "medium",+ className,+ ref,+ ...props+}: IconLinkButtonProps) {+ return (+ <a+ ref={ref}+ className={cx(styles.base, styles.size[size], className)}+ {...props}+ >+ <Icon className={styles.icon[size]} aria-hidden />+ </a>+ );+}diff --git a/frontend/src/react/boardui/components/base/buttons/link-button.tsx b/frontend/src/react/boardui/components/base/buttons/link-button.tsxnew file mode 100644index 000000000..65c392cd6--- /dev/null+++ b/frontend/src/react/boardui/components/base/buttons/link-button.tsx@@ -0,0 +1,140 @@+import type {+ AnchorHTMLAttributes,+ ButtonHTMLAttributes,+ ComponentType,+ ReactNode,+ Ref,+} from "react";+import { cx, sortCx } from "@/utils/cx";++/**+ * Link button — an inline text action styled like a link, sized on the same+ * scale as `Button` but without the container: no fill, no border, just the+ * label (plus optional icons) with an underline on hover.+ *+ * Variant / size matrix (mirrors Button's structure):+ * Variant = primary (blue/600 text) | secondary (text/secondary)+ * Size = medium (Body 1/Medium, 20px icons)+ * | small (Body 1/Medium, 18px icons)+ * | xs (Caption 1/Semibold, 14px icons)+ *+ * Renders an `<a>` when `href` is passed, otherwise a `<button>` — the same+ * action can live in copy ("Learn more →") or trigger a handler. Icons are+ * rendered by the component itself via `leadingIcon` / `trailingIcon` (pass+ * the Remix Icon reference, e.g. `RiArrowRightLine`, not an element).+ */++type LinkButtonVariant = "primary" | "secondary";+type LinkButtonSize = "medium" | "small" | "xs";++type IconComponent = ComponentType<{+ className?: string;+ "aria-hidden"?: boolean | "true" | "false";+}>;++interface LinkButtonBaseProps {+ variant?: LinkButtonVariant;+ size?: LinkButtonSize;+ leadingIcon?: IconComponent;+ trailingIcon?: IconComponent;+ children?: ReactNode;+ className?: string;+ disabled?: boolean;+}++export interface LinkButtonAnchorProps+ extends LinkButtonBaseProps,+ Omit<AnchorHTMLAttributes<HTMLAnchorElement>, "children" | "className"> {+ href: string;+ ref?: Ref<HTMLAnchorElement>;+}++export interface LinkButtonButtonProps+ extends LinkButtonBaseProps,+ Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children" | "className"> {+ href?: undefined;+ ref?: Ref<HTMLButtonElement>;+}++export type LinkButtonProps = LinkButtonAnchorProps | LinkButtonButtonProps;++const styles = sortCx({+ 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",+ ].join(" "),++ size: {+ medium: "text-body-medium",+ small: "text-body-medium",+ xs: "text-caption-1-semibold",+ },++ icon: {+ medium: "size-5 shrink-0",+ small: "size-[18px] shrink-0",+ xs: "size-3.5 shrink-0",+ },++ variant: {+ // Hover keeps the resting color — the underline is the hover cue; only+ // the press darkens.+ primary: [+ "text-accent-600 active:text-accent-800",+ "disabled:text-text-tertiary aria-disabled:text-text-tertiary",+ ].join(" "),+ secondary: [+ "text-text-secondary active:text-text-primary",+ "disabled:text-text-tertiary aria-disabled:text-text-tertiary",+ ].join(" "),+ },+});++export function LinkButton({+ variant = "primary",+ size = "medium",+ leadingIcon: Leading,+ trailingIcon: Trailing,+ children,+ className,+ disabled = false,+ ...props+}: LinkButtonProps) {+ const classes = cx(styles.base, styles.size[size], styles.variant[variant], className);+ const content = (+ <>+ {Leading ? <Leading className={styles.icon[size]} aria-hidden /> : null}+ {children !== undefined && children !== null && <span>{children}</span>}+ {Trailing ? <Trailing className={styles.icon[size]} aria-hidden /> : null}+ </>+ );++ if (props.href !== undefined) {+ const { ref, href, ...anchorProps } = props as LinkButtonAnchorProps;+ return (+ <a+ ref={ref}+ href={disabled ? undefined : href}+ aria-disabled={disabled || undefined}+ className={classes}+ {...anchorProps}+ >+ {content}+ </a>+ );+ }++ const { ref, type = "button", ...buttonProps } = props as LinkButtonButtonProps;+ return (+ <button ref={ref} type={type} disabled={disabled} className={classes} {...buttonProps}>+ {content}+ </button>+ );+}++/** Style maps, exported for advanced composition and the dev Design Tuner. */+export const linkButtonStyles = styles;diff --git a/frontend/src/react/boardui/components/base/dropdown/menu-styles.ts b/frontend/src/react/boardui/components/base/dropdown/menu-styles.tsnew file mode 100644index 000000000..b92e0efe2--- /dev/null+++ b/frontend/src/react/boardui/components/base/dropdown/menu-styles.ts@@ -0,0 +1,30 @@+/**+ * Shared visual recipe for BoardUI menu surfaces.+ *+ * Select and Dropdown intentionally keep their distinct React Aria semantics+ * (single-value listbox vs. action menu), while consuming the same panel,+ * motion, and row treatments from here.+ */+export const MENU_POPOVER_SURFACE = [+ "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",+].join(" ");++export const MENU_POPOVER_WIDTH = "w-[266px]";++export const MENU_ITEMS_CONTAINER = "flex w-full flex-col gap-1 outline-none";++export const MENU_ITEM = [+ "flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left",+ "text-text-primary outline-none transition-colors",+].join(" ");++export const MENU_ITEM_ACTIVE = "bg-dropdown-item-hover-background";++export const MENU_ITEM_INTERACTIVE =+ "hover:bg-dropdown-item-hover-background focus-visible:bg-dropdown-item-hover-background";diff --git a/frontend/src/react/boardui/components/base/select/select.tsx b/frontend/src/react/boardui/components/base/select/select.tsxnew file mode 100644index 000000000..389b035bf--- /dev/null+++ b/frontend/src/react/boardui/components/base/select/select.tsx@@ -0,0 +1,183 @@+"use client";++import { createContext, useContext, useRef, useState } from "react";+import type { ReactNode, Ref } from "react";+import {+ Button as AriaButton,+ ListBox as AriaListBox,+ ListBoxItem as AriaListBoxItem,+ Popover as AriaPopover,+ Select as AriaSelect,+ SelectValue as AriaSelectValue,+} from "react-aria-components";+import type {+ ListBoxItemProps as AriaListBoxItemProps,+ SelectProps as AriaSelectProps,+ SelectValueRenderProps as AriaSelectValueRenderProps,+} from "react-aria-components";+import {+ MENU_ITEM,+ MENU_ITEM_ACTIVE,+ MENU_ITEMS_CONTAINER,+ MENU_POPOVER_SURFACE,+ MENU_POPOVER_WIDTH,+} from "@/components/base/dropdown/menu-styles";+import { ChevronDownSmall } from "@/components/foundations/icons/chevrons";+import { cx } from "@/utils/cx";+import { useDismissOnOutsidePress, useTriggerToggle } from "@/utils/use-dismiss-on-outside-press";++/**+ * Figma source: Board UI → dashboard 1 dropdown triggers ("All prices" filter+ * node 3731:3208, table status dropdown node 3731:3264).+ *+ * Select with a button trigger styled 1:1 with Figma:+ * trigger bg color/white, 1px border/button/default, shadow/xs,+ * px 10 py 8, radius/2lg (10px), gap 6,+ * Body 1/Medium text color/neutral/950,+ * 16px chevron (custom stroke glyph) in text/secondary+ *+ * The open popover/listbox shares the BoardUI menu recipe with Dropdown:+ * radius/2xl panel, p 10, shadow/dropdown, 150ms fade/scale/blur motion,+ * and radius/2lg rows with the same hover/selected surface.+ *+ * Item content is free-form: pass a `StatusDot` + text for status selects.+ */++export type SelectSize = "sm" | "md";++const SelectSizeContext = createContext<SelectSize>("md");++export interface SelectProps<T extends object>+ extends Omit<AriaSelectProps<T>, "children"> {+ /** Trigger width. Defaults to hug content; the menu uses the shared 266px width. */+ className?: string;+ triggerClassName?: string;+ /** Classes for the open popover (e.g. constrain its width). */+ popoverClassName?: string;+ /** `md` (default) or `sm` for compact/dense contexts (e.g. compact tables). */+ size?: SelectSize;+ children: ReactNode;+ items?: Iterable<T>;+ /** Customise the trigger's rendered value (e.g. a compact flag + dial code).+ * Falls back to the selected item's own content when omitted. */+ renderValue?: ReactNode | ((values: AriaSelectValueRenderProps<T>) => ReactNode);+ ref?: Ref<HTMLDivElement>;+}++export function Select<T extends object>({+ className,+ triggerClassName,+ popoverClassName,+ size = "md",+ children,+ items,+ renderValue,+ ref,+ ...props+}: SelectProps<T>) {+ // The popover is `isNonModal`: react-aria's modal scroll lock puts+ // `overflow: hidden` on <html>, which — with this app's `h-full` root —+ // collapses the page scroll position and visibly yanks the sticky+ // sidebar upward every time a select opens. Non-modal skips the lock,+ // but also disables react-aria's outside-press dismissal (`isDismissable`+ // is hard-coupled to `!isNonModal` in usePopover), so open state is+ // controlled here and dismissal restored manually — the same fix as the+ // date-picker family (see utils/use-dismiss-on-outside-press.ts).+ const triggerRef = useRef<HTMLButtonElement>(null);+ const popoverRef = useRef<HTMLElement>(null);+ const [isOpen, setIsOpen] = useState(false);+ useDismissOnOutsidePress(isOpen, () => setIsOpen(false), [triggerRef, popoverRef]);+ // Pressing the trigger while open closes the popover instead of reopening+ const allowOpenChange = useTriggerToggle(isOpen, triggerRef);++ return (+ <AriaSelect+ ref={ref}+ {...props}+ isOpen={isOpen}+ onOpenChange={(o) => allowOpenChange(o) && setIsOpen(o)}+ className={cx("group flex flex-col", className)}+ >+ {({ isOpen }) => (+ <>+ <AriaButton+ ref={triggerRef}+ className={cx(+ "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",+ size === "sm"+ ? "gap-1 px-[7px] py-1 text-body-2-medium"+ : "gap-1.5 px-2.5 py-2 text-body-medium",+ triggerClassName,+ )}+ >+ <AriaSelectValue+ className={cx(+ "flex min-w-0 items-center truncate",+ size === "sm" ? "gap-1" : "gap-[5px]",+ )}+ >+ {renderValue as never /* RAC accepts node or render-prop */}+ </AriaSelectValue>+ <ChevronDownSmall+ className={cx(+ "shrink-0 text-text-secondary transition-transform duration-200 ease",+ size === "sm" ? "size-3.5" : "size-4",+ isOpen && "rotate-180",+ )}+ />+ </AriaButton>+ <AriaPopover+ ref={popoverRef}+ isNonModal+ offset={4}+ className={cx(+ MENU_POPOVER_WIDTH,+ MENU_POPOVER_SURFACE,+ // Listbox rows already space themselves 4px apart, so the+ // surface sits a touch tighter than the action-menu Dropdown.+ "p-2",+ popoverClassName,+ )}+ >+ <AriaListBox+ items={items}+ className={cx(MENU_ITEMS_CONTAINER, "max-h-[240px] overflow-auto")}+ >+ <SelectSizeContext.Provider value={size}>{children}</SelectSizeContext.Provider>+ </AriaListBox>+ </AriaPopover>+ </>+ )}+ </AriaSelect>+ );+}++export interface SelectItemProps extends Omit<AriaListBoxItemProps, "children"> {+ children?: ReactNode;+}++export function SelectItem({ className, children, ...props }: SelectItemProps) {+ const size = useContext(SelectSizeContext);+ return (+ <AriaListBoxItem+ {...props}+ className={(state) =>+ cx(+ MENU_ITEM,+ size === "sm" ? "px-2 py-1.5 text-body-2-medium" : "text-body-medium",+ (state.isFocused || state.isSelected) && MENU_ITEM_ACTIVE,+ state.isDisabled && "cursor-not-allowed text-text-disabled",+ typeof className === "function" ? className(state) : className,+ )+ }+ >+ {children}+ </AriaListBoxItem>+ );+}diff --git a/frontend/src/react/boardui/components/base/switch/switch.tsx b/frontend/src/react/boardui/components/base/switch/switch.tsxnew file mode 100644index 000000000..1472c7c4e--- /dev/null+++ b/frontend/src/react/boardui/components/base/switch/switch.tsx@@ -0,0 +1,172 @@+"use client";++import type { ReactNode, Ref } from "react";+import { Switch as AriaSwitch } from "react-aria-components";+import type { SwitchProps as AriaSwitchProps } from "react-aria-components";+import { cx, sortCx } from "@/utils/cx";++/**+ * Figma source: Board UI → "Toogles" (node 3856:3807).+ *+ * Two shapes × three sizes, plus off / on:+ * shape pill (Figma "fully rounded") — track & thumb rounded-full+ * rectangle (Figma "rectangle") — track radius/md-scale, thumb radius/xs-scale+ * size sm 28×16 · md 42×24 · lg 56×32 (track w×h; thumb = h − 2·pad)+ *+ * Anatomy (all values 1:1 with Figma):+ * track off → bg background/tertiary/default (#ebebeb, no border)+ * on → Button/Primary gradient (blue/500 → blue/600) + an inset+ * ring + top highlight that scales with size. lg is exactly+ * the shared `--shadow-checkbox-selected` token; md/sm scale+ * the ring (0.75px / 0.5px) and highlight (1.5px / 1px).+ * thumb theme-stable white gradient + contact shadow,+ * slides by (w − thumb − 2·pad) between states.+ * chip small embossed inset in the thumb centre:+ * off → white→neutral-100 in light mode; in dark mode it matches+ * the track so the mark reads like a hole through the thumb;+ * on → switch-on-chip-start→end (accent mixes matching Figma's+ * raw #2473fe→#0450e2 for blue), accent/600 border.+ *+ * The track visual lives in `SwitchTrack` so `Switch` and `SwitchCard` share it+ * (mirrors how Checkbox / CheckboxCard share `CheckboxGlyph`). Built on+ * react-aria Switch: native toggle semantics, keyboard support, focus-visible+ * ring, optional label via `children`.+ */++export type SwitchSize = "sm" | "md" | "lg";+export type SwitchShape = "pill" | "rectangle";++export const switchSizes = sortCx({+ sm: {+ track: "h-4 w-7",+ trackRadius: { pill: "rounded-full", rectangle: "rounded-[3px]" },+ onShadow: "shadow-[inset_0_1px_0_0_rgb(255_255_255/0.25),inset_0_0_0_0.5px_var(--color-accent-500)]",+ thumb: "size-3",+ thumbRadius: { pill: "rounded-full", rectangle: "rounded-[1px]" },+ offset: "left-0.5 top-0.5",+ travel: "translate-x-3",+ chip: "size-[5px] border-[0.25px] shadow-[0_2px_2px_0_rgb(0_0_0/0.03)]",+ chipRadius: { pill: "rounded-full", rectangle: "rounded-[0.5px]" },+ },+ md: {+ track: "h-6 w-[42px]",+ trackRadius: { pill: "rounded-full", rectangle: "rounded-[4.5px]" },+ onShadow: "shadow-[inset_0_1.5px_0_0_rgb(255_255_255/0.25),inset_0_0_0_0.75px_var(--color-accent-500)]",+ thumb: "size-[18px]",+ thumbRadius: { pill: "rounded-full", rectangle: "rounded-[1.5px]" },+ offset: "left-[3px] top-[3px]",+ travel: "translate-x-[18px]",+ chip: "size-[7.5px] border-[0.375px] shadow-[0_3px_3px_0_rgb(0_0_0/0.03)]",+ chipRadius: { pill: "rounded-full", rectangle: "rounded-[0.75px]" },+ },+ lg: {+ track: "h-8 w-14",+ trackRadius: { pill: "rounded-full", rectangle: "rounded-md" },+ onShadow: "shadow-checkbox-selected",+ thumb: "size-6",+ thumbRadius: { pill: "rounded-full", rectangle: "rounded-xs" },+ offset: "left-1 top-1",+ travel: "translate-x-6",+ chip: "size-[10px] border-[0.5px] shadow-[0_4px_4px_0_rgb(0_0_0/0.03)]",+ chipRadius: { pill: "rounded-full", rectangle: "rounded-[1px]" },+ },+});++export interface SwitchVisualState {+ isSelected: boolean;+ isDisabled: boolean;+ isFocusVisible: boolean;+}++/**+ * The track + thumb + chip visual. Pure presentation — the react-aria Switch+ * (in `Switch` or `SwitchCard`) owns the input and passes its render state in.+ */+export function SwitchTrack({+ state,+ size = "md",+ shape = "pill",+}: {+ state: SwitchVisualState;+ size?: SwitchSize;+ shape?: SwitchShape;+}) {+ const s = switchSizes[size];++ return (+ <span+ aria-hidden+ className={cx(+ "relative shrink-0 transition-colors duration-200 ease",+ s.track,+ s.trackRadius[shape],+ state.isSelected+ ? cx("bg-linear-to-b from-accent-500 to-accent-600", s.onShadow)+ : "bg-background-tertiary-default",+ state.isDisabled && "opacity-50",+ state.isFocusVisible && "ring-2 ring-border-focus-ring ring-offset-2",+ )}+ >+ {/* Thumb */}+ <span+ className={cx(+ "absolute flex items-center justify-center",+ "bg-linear-to-b from-control-indicator-background from-[43.837%] to-control-indicator-background-subtle",+ "shadow-[0_3px_3px_0_rgb(0_0_0/0.03),0_0.75px_0_0_rgb(0_0_0/0.05)]",+ "transition-transform duration-200 ease",+ s.thumb,+ s.thumbRadius[shape],+ s.offset,+ state.isSelected && s.travel,+ )}+ >+ {/* Embossed inner chip. Gradient runs bottom→top (`to-t`) — equivalent+ to the Figma layer's vertical flip — but WITHOUT a transform, so the+ chip stays pixel-snapped/centred (no blurry 1px shift at sub-pixel+ sizes) and its drop shadow points down instead of up. */}+ <span+ className={cx(+ "border-solid bg-linear-to-t from-[43.837%]",+ s.chip,+ s.chipRadius[shape],+ state.isSelected+ ? "border-accent-600 from-switch-on-chip-start to-switch-on-chip-end"+ : "border-border-button-default/50 from-switch-off-chip-start to-switch-off-chip-end",+ )}+ />+ </span>+ </span>+ );+}++export interface SwitchProps extends Omit<AriaSwitchProps, "children"> {+ children?: ReactNode;+ size?: SwitchSize;+ shape?: SwitchShape;+ ref?: Ref<HTMLLabelElement>;+}++export function Switch({ className, children, size = "md", shape = "pill", ref, ...props }: SwitchProps) {+ return (+ <AriaSwitch+ ref={ref}+ {...props}+ className={(state) =>+ cx(+ "group inline-flex items-center gap-2 select-none",+ state.isDisabled ? "cursor-not-allowed" : "cursor-pointer",+ typeof className === "function" ? className(state) : className,+ )+ }+ >+ {(state) => (+ <>+ <SwitchTrack state={state} size={size} shape={shape} />+ {children != null && children !== false && (+ <span className="text-body-medium text-text-primary">{children}</span>+ )}+ </>+ )}+ </AriaSwitch>+ );+}diff --git a/frontend/src/react/boardui/components/foundations/icons/chevrons.tsx b/frontend/src/react/boardui/components/foundations/icons/chevrons.tsxnew file mode 100644index 000000000..026420347--- /dev/null+++ b/frontend/src/react/boardui/components/foundations/icons/chevrons.tsx@@ -0,0 +1,73 @@+import type { SVGProps } from "react";++/**+ * Custom chevron glyphs drawn as vectors in the Board UI Figma file (they are+ * not Remix icons). Paths are copied 1:1 from the Figma export.+ *+ * All icons render `currentColor` and size via Tailwind `size-*` utilities,+ * exactly like the Remix icon components.+ */++type IconProps = SVGProps<SVGSVGElement>;++/** 16×16 rounded 2px-stroke chevron. Select triggers, disclosure affordances. */+export function ChevronDownSmall(props: IconProps) {+ return (+ <svg viewBox="0 0 16 16" fill="none" aria-hidden {...props}>+ <path+ d="M4 7L7.29289 10.2929C7.68342 10.6834 8.31658 10.6834 8.70711 10.2929L12 7"+ stroke="currentColor"+ strokeWidth="2"+ strokeLinecap="round"+ />+ </svg>+ );+}++/** 12×12 rounded 1.5px-stroke chevron. Breadcrumb separator. */+export function ChevronRightSmall(props: IconProps) {+ return (+ <svg viewBox="0 0 12 12" fill="none" aria-hidden {...props}>+ <path+ d="M4.5 3L7.14645 5.64645C7.34171 5.84171 7.34171 6.15829 7.14645 6.35355L4.5 9"+ stroke="currentColor"+ strokeWidth="1.5"+ strokeLinecap="round"+ />+ </svg>+ );+}++/** 16×16 stacked up/down chevrons. Workspace / account switchers. */+export function ChevronUpDownSmall(props: IconProps) {+ return (+ <svg viewBox="0 0 16 16" fill="none" aria-hidden {...props}>+ <g transform="translate(4.25 2.56)">+ <path+ d="M0.75 7.43934L3.21967 9.90901C3.51256 10.2019 3.98744 10.2019 4.28033 9.90901L6.75 7.43934"+ stroke="currentColor"+ strokeWidth="1.5"+ strokeLinecap="round"+ />+ <path+ d="M0.75 3.43934L3.21967 0.96967C3.51256 0.676777 3.98744 0.676777 4.28033 0.96967L6.75 3.43934"+ stroke="currentColor"+ strokeWidth="1.5"+ strokeLinecap="round"+ />+ </g>+ </svg>+ );+}++/** 24×24 filled rounded triangle chevron. Table column sort indicator. */+export function ChevronSortDown(props: IconProps) {+ return (+ <svg viewBox="0 0 24 24" fill="none" aria-hidden {...props}>+ <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>+ );+}diff --git a/frontend/src/react/boardui/utils/use-dismiss-on-outside-press.ts b/frontend/src/react/boardui/utils/use-dismiss-on-outside-press.tsnew file mode 100644index 000000000..0b29249f6--- /dev/null+++ b/frontend/src/react/boardui/utils/use-dismiss-on-outside-press.ts@@ -0,0 +1,76 @@+"use client";++import { useEffect, useRef } from "react";+import type { RefObject } from "react";++/**+ * React Aria's `Popover` couples "non-modal" with "not dismissable on+ * outside interaction" — `isNonModal` (which we set to avoid the scroll+ * lock / focus trap that comes with a modal popover) also silently disables+ * its built-in outside-click-to-close behavior. This restores just that+ * piece manually: closes when a pointerdown lands outside every given ref+ * (typically the trigger + the popover's own content).+ */+export function useDismissOnOutsidePress(+ isOpen: boolean,+ onDismiss: () => void,+ refs: RefObject<HTMLElement | null>[],+) {+ useEffect(() => {+ if (!isOpen) return;++ const handlePointerDown = (event: PointerEvent) => {+ const target = event.target as Node;+ if (refs.some((ref) => ref.current?.contains(target))) return;+ onDismiss();+ };++ document.addEventListener("pointerdown", handlePointerDown, true);+ return () => document.removeEventListener("pointerdown", handlePointerDown, true);+ }, [isOpen, onDismiss, refs]);+}++/**+ * Companion fix for the same `isNonModal` popovers: pressing the trigger+ * while the popover is open should close it (toggle), but React Aria fires+ * `onOpenChange(false)` immediately followed by `onOpenChange(true)` within+ * the same press, so the popover never actually closes.+ *+ * This watches for a pointerdown on the trigger while open and swallows the+ * spurious reopen that follows. Wire the returned guard into the component's+ * `onOpenChange`:+ *+ * const allowOpenChange = useTriggerToggle(isOpen, triggerRef);+ * <AriaSelect onOpenChange={(o) => allowOpenChange(o) && setIsOpen(o)} …+ */+export function useTriggerToggle(+ isOpen: boolean,+ triggerRef: RefObject<HTMLElement | null>,+) {+ const suppressReopenRef = useRef(false);++ useEffect(() => {+ if (!isOpen) return;++ const handlePointerDown = (event: PointerEvent) => {+ if (!triggerRef.current?.contains(event.target as Node)) return;+ suppressReopenRef.current = true;+ // Safety valve: only the very next open within this click may be+ // swallowed; never leave a stale suppression behind.+ setTimeout(() => {+ suppressReopenRef.current = false;+ }, 400);+ };++ document.addEventListener("pointerdown", handlePointerDown, true);+ return () => document.removeEventListener("pointerdown", handlePointerDown, true);+ }, [isOpen, triggerRef]);++ return (next: boolean) => {+ if (next && suppressReopenRef.current) {+ suppressReopenRef.current = false;+ return false;+ }+ return true;+ };+}diff --git a/frontend/src/react/bundle.d.ts b/frontend/src/react/bundle.d.tsindex 2f7985050..fcd4ee3e2 100644--- a/frontend/src/react/bundle.d.ts+++ b/frontend/src/react/bundle.d.ts@@ -1,7 +1,8 @@/* `web/dist/peach-react.js` 的对外契约。** Preact 那一侧按 `@peach/react` 引用这份产物,构建时改写成 `/dist/peach-react.js`;- * `entry.tsx` 按这里的签名实现,两边的类型检查各自对照同一份声明。 */+ * `entry.tsx` 按这里的签名实现,两边的类型检查各自对照同一份声明。+ * 配置数据的形状以 `/api/configuration`(`src/peach/routes_configuration.py`)为准。 */export interface AccessState { mode: 'open' | 'password' | 'legacy' | 'locked'; revision: string }@@ -10,10 +11,82 @@ export interface AccessSettingsProps {receipt(message: string): void;}+export interface StartupState {+ available: boolean; enabled: boolean; silent: boolean; message: string; desktop: boolean; desktop_message: string;+}++export interface UninstallState {+ available: boolean; full_available: boolean; message: string; data_root: string; directories: string[];+}++export interface PeachProxyState { mode: string; proxy_saved: boolean; needs_selection: boolean }++export interface AutomaticUpdateState {+ mode: string; interval_hours: number; available: boolean; download_available: boolean; error?: string;+}++export interface ReleaseState {+ current_version: string;+ latest_version: string | null;+ channel: string;+ installation: string;+ state: string;+ message: string;+ release_url: string;+ checked_at?: number;+}++export interface UpdateJob {+ state: string; progress: number; message?: string; downloaded?: number; total?: number; version?: string;+}++export interface MediaSource {+ location: string; root: string; path: string; online?: boolean; library?: string; library_icon?: string;+}++export interface ConfigurationFact {+ term: string;+ value: string;+ download_url?: string;+ download_label?: string;+}++export interface ConfigurationData {+ startup?: StartupState;+ uninstall?: UninstallState;+ peach_proxy?: PeachProxyState;+ updates?: ReleaseState;+ update_job?: UpdateJob;+ automatic_updates?: AutomaticUpdateState;+ access?: AccessState;+ editable: boolean;+ /** 不能编辑时给用户看的原因,可编辑时为空。 */+ notice: string;+ /** 设置文件的指纹,保存时带回去,服务端据此拒绝盖掉别处的改动。 */+ revision: string;+ media_dirs: string[];+ media_sources?: MediaSource[];+ windows?: boolean;+ port: number;+ port_editable?: boolean;+ mount_dependencies?: { name: string; available: boolean; download_url: string }[];+ facts: ConfigurationFact[];+}++/** 配置页的一个分组(「通用」「媒体」「网络与访问」「更新与维护」)。 */+export interface ConfigurationGroupProps {+ data: ConfigurationData;+ /** 保存成功后的过去时回执(遗留层的 Toast)。 */+ receipt(message: string): void;+}+/** 一棵挂在遗留容器里的 React 根。`unmount` 之后容器归还给挂载方。 */export interface ReactMount<P> {update(props: P): void;unmount(): void;}-export declare function mountAccessSettings(el: Element, props: AccessSettingsProps): ReactMount<AccessSettingsProps>;+export declare function mountGeneralSettings(el: Element, props: ConfigurationGroupProps): ReactMount<ConfigurationGroupProps>;+export declare function mountMediaSettings(el: Element, props: ConfigurationGroupProps): ReactMount<ConfigurationGroupProps>;+export declare function mountNetworkSettings(el: Element, props: ConfigurationGroupProps): ReactMount<ConfigurationGroupProps>;+export declare function mountMaintenanceSettings(el: Element, props: ConfigurationGroupProps): ReactMount<ConfigurationGroupProps>;diff --git a/frontend/src/react/entry.tsx b/frontend/src/react/entry.tsxindex 19f005431..f9de9b647 100644--- a/frontend/src/react/entry.tsx+++ b/frontend/src/react/entry.tsx@@ -2,18 +2,41 @@import './styles.css';import type { ComponentType } from 'react';+import { UNSAFE_PortalProvider } from 'react-aria';import { createRoot } from 'react-dom/client';import type * as Bundle from './bundle';-import { AccessSettings } from './settings/access-settings';+import { GeneralSettings } from './settings/general-settings';+import { MaintenanceSettings } from './settings/maintenance-settings';+import { MediaSettings } from './settings/media-settings';+import { NetworkSettings } from './settings/network-settings';++/* Popover 这类弹出层由 React Aria 渲染到挂载容器外面。落在 `body` 上就出了 `.peach-react`+ * 的作用域:token 读到的是 `board.css` 的值,Preflight 也管不到。所有 React 根的弹出层都进+ * `body` 末尾这一个同样带 `.peach-react` 的容器。 */+let overlays: HTMLElement | null = null;+function overlayContainer(): HTMLElement {+ if (!overlays?.isConnected) {+ overlays = document.createElement('div');+ overlays.className = 'peach-react';+ overlays.dataset.reactOverlays = '';+ document.body.append(overlays);+ }+ return overlays;+}function mounter<P extends object>(Component: ComponentType<P>) {return (el: Element, props: P): Bundle.ReactMount<P> => {const root = createRoot(el);- const paint = (next: P) => root.render(<Component {...next} />);+ const paint = (next: P) => root.render(+ <UNSAFE_PortalProvider getContainer={overlayContainer}><Component {...next} /></UNSAFE_PortalProvider>,+ );paint(props);return { update: paint, unmount: () => root.unmount() };};}-export const mountAccessSettings: typeof Bundle.mountAccessSettings = mounter(AccessSettings);+export const mountGeneralSettings: typeof Bundle.mountGeneralSettings = mounter(GeneralSettings);+export const mountMediaSettings: typeof Bundle.mountMediaSettings = mounter(MediaSettings);+export const mountNetworkSettings: typeof Bundle.mountNetworkSettings = mounter(NetworkSettings);+export const mountMaintenanceSettings: typeof Bundle.mountMaintenanceSettings = mounter(MaintenanceSettings);diff --git a/frontend/src/react/settings/access-settings.tsx b/frontend/src/react/settings/access-settings.tsxindex 945ddcc71..bce734932 100644--- a/frontend/src/react/settings/access-settings.tsx+++ b/frontend/src/react/settings/access-settings.tsx@@ -1,17 +1,17 @@/* 本机访问密码,由 BoardUI 原版组件组合;表单值只留在提交期间的组件内存中。*- * 分区外观取 BoardUI 设置弹层的 `SettingsSectionLabel` + `SettingsCard`,字段是 BoardUI- * `Input`(React Aria TextField),开关是 BoardUI `Checkbox`,提交键是 BoardUI `Button`。- * BoardUI 没有行内持久提示组件,`Warning` 用它的黄色状态 token 组合。 */-import { useEffect, useRef, useState, type FormEvent, type ReactNode } from 'react';+ * 字段是 BoardUI `Input`(React Aria TextField),开关是 BoardUI `Checkbox`,提交键是 BoardUI `Button`;+ * 分区外框与提示用配置页共用的 `./section`。 */+import { useRef, useState, type FormEvent } from 'react';-import { SettingsCard, SettingsSectionLabel } from '@/components/application/settings/settings-rows';import { Button } from '@/components/base/buttons/button';import { Checkbox } from '@/components/base/checkbox/checkbox';import { Input } from '@/components/base/input/input';import { ApiError, apiSend, errorMessage } from '../../api';import type { AccessSettingsProps, AccessState } from '../bundle';+import { ErrorText, Footer, Help, Note, Section, Stack } from './section';+import { busyProps, useAction } from './use-action';type FieldErrors = Partial<Record<'current_password' | 'password' | 'confirmation', string>>;@@ -21,16 +21,6 @@ const HELP: Partial<Record<AccessState['mode'], string>> = {password: '已设置密码。新设备需要登录,保持登录时间在登录页选择。',};-/** 持久警示。没有密码是这台机器当前的状态,不是填表提示,所以不和字段说明共用灰色小字。 */-function Warning({ label, children }: { label: string; children: ReactNode }) {- return (- <div role="note" className="flex flex-col gap-0.5 rounded-2lg bg-status-yellow-background px-3 py-2 text-status-yellow-text">- <p className="text-body-medium">{label}</p>- <p className="text-body-2-regular">{children}</p>- </div>- );-}-export function AccessSettings({ initial, receipt }: AccessSettingsProps) {const [state, setState] = useState(initial);const [current, setCurrent] = useState('');@@ -38,16 +28,11 @@ export function AccessSettings({ initial, receipt }: AccessSettingsProps) {const [confirmation, setConfirmation] = useState('');const [disable, setDisable] = useState(false);const [fields, setFields] = useState<FieldErrors>({});- const [error, setError] = useState('');- const [busy, setBusy] = useState(false);- const form = useRef<HTMLFormElement>(null);- const pending = useRef<AbortController | null>(null);- useEffect(() => () => pending.current?.abort(), []);+ const body = useRef<HTMLDivElement>(null);+ const action = useAction();- const submit = async (event: FormEvent<HTMLFormElement>) => {+ const submit = (event: FormEvent<HTMLFormElement>) => {event.preventDefault();- if (pending.current) return;- setError('');const issues: FieldErrors = {};if (state.mode === 'password' && !current) issues.current_password = '请输入当前访问密码';if (!disable) {@@ -56,42 +41,31 @@ export function AccessSettings({ initial, receipt }: AccessSettingsProps) {}setFields(issues);if (Object.keys(issues).length) {- requestAnimationFrame(() => form.current?.querySelector<HTMLInputElement>('input[aria-invalid="true"]')?.focus());+ requestAnimationFrame(() => body.current?.querySelector<HTMLInputElement>('input[aria-invalid="true"]')?.focus());return;}- const controller = new AbortController();- pending.current = controller;- setBusy(true);- try {- const next = await apiSend<AccessState>('/api/configuration/access', {- revision: state.revision, action: disable ? 'disable' : 'set', confirm_disable: disable,- current_password: current, password: disable ? '' : password, confirmation: disable ? '' : confirmation,- }, 'POST', controller.signal);- if (controller.signal.aborted) return;+ void action.run('save', (signal) => apiSend<AccessState>('/api/configuration/access', {+ revision: state.revision, action: disable ? 'disable' : 'set', confirm_disable: disable,+ current_password: current, password: disable ? '' : password, confirmation: disable ? '' : confirmation,+ }, 'POST', signal), (next) => {setState(next); setCurrent(''); setPassword(''); setConfirmation(''); setDisable(false); setFields({});receipt(next.mode === 'open' ? '已关闭访问密码' : '已保存访问密码');- } catch (cause) {- if (controller.signal.aborted) return;+ }, (cause) => {const payload = cause instanceof ApiError ? cause.body as { errors?: FieldErrors; detail?: { errors?: FieldErrors } } : null;const errors = payload?.errors || payload?.detail?.errors;- if (errors) setFields(errors); else setError(errorMessage(cause));- } finally {- if (pending.current === controller) pending.current = null;- if (!controller.signal.aborted) setBusy(false);- }+ if (errors) setFields(errors); else action.setError(errorMessage(cause));+ });};const help = HELP[state.mode];const editable = state.mode !== 'locked';return (- <form ref={form} aria-label="访问密码" noValidate onSubmit={submit} className="flex w-full flex-col gap-2">- <SettingsSectionLabel>访问密码</SettingsSectionLabel>- <SettingsCard>- {/* 卡片只管左内边距和底色;这里放的不是 SettingsRow,行距和上下内边距由这一层给。 */}- <div className="flex flex-col gap-4 py-4 pr-3">- {help ? <p className="text-body-2-regular text-text-secondary">{help}</p> : null}+ <Section title="访问密码" onSubmit={submit}>+ <div ref={body}>+ <Stack>+ {help ? <Help>{help}</Help> : null}{state.mode === 'open'- ? <Warning label="未设置访问密码">能连接到 Peach 的设备打开地址就能看馆藏,不需要登录。</Warning>+ ? <Note tone="warning" title="未设置访问密码">能连接到 Peach 的设备打开地址就能看馆藏,不需要登录。</Note>: null}{state.mode === 'password' || state.mode === 'legacy'? <Checkbox isSelected={disable} onChange={setDisable}>关闭访问密码,允许能连接到 Peach 的设备直接访问</Checkbox>@@ -111,16 +85,13 @@ export function AccessSettings({ initial, receipt }: AccessSettingsProps) {value={confirmation} onChange={setConfirmation} isDisabled={disable} isRequired={!disable} validationBehavior="aria"isInvalid={!disable && Boolean(fields.confirmation)} hint={disable ? undefined : fields.confirmation} /></> : null}- {disable ? <Warning label="访问范围">保存后,能连接到 Peach 的设备将直接访问馆藏。</Warning> : null}- {error ? <p role="alert" className="text-body-2-regular text-text-error-primary">{error}</p> : null}- {editable- ? <div className="flex items-center justify-between gap-4 border-t border-separator-border pt-3">- <p className="text-body-2-regular text-text-secondary">保存后立即生效。</p>- <Button type="submit" aria-busy={busy || undefined} aria-disabled={busy || undefined}>保存配置</Button>- </div>- : null}- </div>- </SettingsCard>- </form>+ {disable ? <Note tone="warning" title="访问范围">保存后,能连接到 Peach 的设备将直接访问馆藏。</Note> : null}+ {action.error ? <ErrorText>{action.error}</ErrorText> : null}+ </Stack>+ </div>+ {editable+ ? <Footer status="保存后立即生效。"><Button type="submit" {...busyProps(action.busy === 'save')}>保存配置</Button></Footer>+ : null}+ </Section>);}diff --git a/frontend/src/react/settings/clouddrive-guide.tsx b/frontend/src/react/settings/clouddrive-guide.tsxnew file mode 100644index 000000000..2933021f6--- /dev/null+++ b/frontend/src/react/settings/clouddrive-guide.tsx@@ -0,0 +1,52 @@+/* 媒体来源选了网盘时的 CloudDrive 起步配置。+ *+ * 页内只留填哪里、填多少、怎么确认;三处缓存的分工、换算与起步值的来源在+ * `docs/CLOUDDRIVE.md`,这里链过去,同一段话不在两处维护。 */+import { Disclosure, ExternalLink, Help } from './section';++export const CLOUDDRIVE_PROFILES = [+ { name: '机械硬盘,或内存 8 GB 以内', cache: '10–20 GiB', read: '256 / 128 KB', task: '1 个' },+ { name: 'SATA SSD,内存 8–16 GB', cache: '20–50 GiB', read: '256 / 128 KB', task: '1–2 个' },+ { name: 'NVMe SSD,内存 16 GB 以上', cache: '50–100 GiB', read: '256 / 128 KB', task: '2 个起步' },+] as const;++const READINGS = [['cache', '缓存上限'], ['read', '读取长度(默认 / 最小)'], ['task', '同时处理视频']] as const;++export function CloudDriveGuide() {+ return (+ <div className="@container flex flex-col gap-3">+ <Help>+ 先在 CloudDrive 登录网盘并挂载,开启「启动时自动挂载」。+ <ExternalLink href="https://www.clouddrive2.com/help.html">挂载帮助</ExternalLink>+ </Help>+ <Disclosure summary="CloudDrive 缓存建议">+ <Help>看缓存放在哪块硬盘上,照那一档填。这是起步值,填得越大不一定越快。</Help>+ {/* 三档同形、跨档比较:窄处每档一块纵排,宽处三项读数排成三列对齐。 */}+ <ul aria-label="按缓存所在硬盘分档" className="flex flex-col gap-2">+ {CLOUDDRIVE_PROFILES.map((profile) => (+ <li key={profile.name} className="flex flex-col gap-2 rounded-2lg border border-separator-border p-3">+ <p className="text-body-medium text-text-primary">{profile.name}</p>+ <dl className="grid grid-cols-1 gap-2 @md:grid-cols-3">+ {READINGS.map(([key, term]) => (+ <div key={key} className="flex flex-col">+ <dt className="text-caption-1-regular text-text-secondary">{term}</dt>+ <dd className="text-body-regular text-text-primary">{profile[key]}</dd>+ </div>+ ))}+ </dl>+ </li>+ ))}+ </ul>+ <ul className="flex list-disc flex-col gap-1 pl-5 text-body-2-regular text-text-secondary">+ <li>缓存上限和清理方式填在 CloudDrive「设置」里,清理方式选 LRU。上限不要填 0,系统盘至少留 40 GiB;填完重开设置页确认存住了。</li>+ <li>读取长度和下载线程填在每个网盘各自的下载设置里,线程都从 2 开始。</li>+ <li>Buffer Cache 占内存,磁盘缓存和文件夹缓存占硬盘,改一个管不住另外两个。</li>+ </ul>+ <Help>+ 三处缓存分别管什么、这几个值怎么往上调、码率和速度怎么换算、线程上限与直链代理怎么取舍,以及这些起步值的来源,都在+ <ExternalLink href="https://github.com/longmeidao/peach/blob/master/docs/CLOUDDRIVE.md">CloudDrive 配置与调优</ExternalLink>。+ </Help>+ </Disclosure>+ </div>+ );+}diff --git a/frontend/src/react/settings/general-settings.tsx b/frontend/src/react/settings/general-settings.tsxnew file mode 100644index 000000000..cc551e062--- /dev/null+++ b/frontend/src/react/settings/general-settings.tsx@@ -0,0 +1,57 @@+/* 「通用」分组:开机自启与桌面快捷方式。 */+import { useState, type FormEvent } from 'react';++import { SettingsRow } from '@/components/application/settings/settings-rows';+import { Button } from '@/components/base/buttons/button';+import { Switch } from '@/components/base/switch/switch';++import { apiSend } from '../../api';+import type { ConfigurationGroupProps, StartupState } from '../bundle';+import { ErrorText, Footer, Help, Rows, Section, Stack } from './section';+import { busyProps, useAction } from './use-action';++export function GeneralSettings({ data, receipt }: ConfigurationGroupProps) {+ return data.startup ? <StartupSettings startup={data.startup} receipt={receipt} /> : null;+}++export function StartupSettings({ startup, receipt }: { startup: StartupState; receipt(message: string): void }) {+ const [enabled, setEnabled] = useState(startup.enabled);+ const [silent, setSilent] = useState(startup.silent);+ const [desktop, setDesktop] = useState(startup.desktop);+ const action = useAction();+ // 桌面快捷方式只有 Windows 有,桌面上已经摆着另一份安装的图标时也不给动;两种情况后端+ // 都在 desktop_message 里说了原因,所以按它有没有内容判禁用,不在前端判平台。+ const desktopReady = startup.available && !startup.desktop_message;++ const submit = (event: FormEvent<HTMLFormElement>) => {+ event.preventDefault();+ if (!startup.available) return;+ void action.run('save', (signal) => apiSend('/api/configuration/startup', { enabled, silent, desktop }, 'POST', signal),+ () => receipt('已保存开机自启'));+ };++ return (+ <Section title="开机自启" onSubmit={submit}>+ <Rows>+ <SettingsRow label="开机后启动 Peach">+ <Switch aria-label="开机后启动 Peach" isSelected={enabled} isDisabled={!startup.available} onChange={setEnabled} />+ </SettingsRow>+ <SettingsRow label="静默启动" description="静默启动仅显示托盘,开机后启动 Peach 打开时生效。">+ <Switch aria-label="静默启动" isSelected={silent} isDisabled={!startup.available || !enabled} onChange={setSilent} />+ </SettingsRow>+ <SettingsRow label="在桌面创建快捷方式" description={startup.desktop_message || '双击图标打开 Peach 网页;卸载时一并移除。'}>+ <Switch aria-label="在桌面创建快捷方式" isSelected={desktop} isDisabled={!desktopReady} onChange={setDesktop} />+ </SettingsRow>+ </Rows>+ {startup.message || action.error ? (+ <Stack divided>+ {startup.message ? <Help>{startup.message}</Help> : null}+ {action.error ? <ErrorText>{action.error}</ErrorText> : null}+ </Stack>+ ) : null}+ <Footer>+ <Button type="submit" disabled={!startup.available} {...busyProps(action.busy === 'save')}>保存配置</Button>+ </Footer>+ </Section>+ );+}diff --git a/frontend/src/react/settings/library-icon-picker.tsx b/frontend/src/react/settings/library-icon-picker.tsxnew file mode 100644index 000000000..54443eb17--- /dev/null+++ b/frontend/src/react/settings/library-icon-picker.tsx@@ -0,0 +1,72 @@+/* 媒体库图标:触发键显示当前字形,点开是一块七列网格的单选面板,按「应用」才提交。+ *+ * 注册表里没有网格单选的弹出面板,用 React Aria 的 `Popover`、`Dialog`、`RadioGroup` 组合,+ * 面板外观取 BoardUI `menu-styles.ts`。取值是雪碧图里的字形名,服务端按+ * `peach.media_libraries.LIBRARY_ICONS` 校验。 */+import { useRef, useState } from 'react';+import { Dialog, Heading, Popover, Radio, RadioGroup } from 'react-aria-components';+import { MEDIA_SOURCE_ICONS } from '@peach/legacy/ui';++import { Button } from '@/components/base/buttons/button';+import { MENU_POPOVER_SURFACE } from '@/components/base/dropdown/menu-styles';++import { SourceMark } from './section';++/* 一行七枚、六行排完。第一枚是「不另选」:网盘库自动用网盘标识,本地路径没有可识别的+ 来源,就是默认那枚磁盘。其余按题材成组:身体与情欲、身份与装扮、场景与情境、媒介与归档。 */+export const LIBRARY_ICON_CHOICES = [+ ['', '自动识别'], ['hard-drive', '磁盘'], ['database', '资料库'], ['heart', '心动'], ['heart-hand', '亲密'], ['flame', '热情'], ['cherry', '樱桃'],+ ['lollipop', '甜心'], ['candy', '糖果'], ['banana', '香蕉'], ['droplets', '湿润'], ['venus', '女性'], ['mars', '男性'], ['venus-and-mars', '情侣'],+ ['gem', '精选'], ['crown', '女王'], ['ribbon', '丝带'], ['shirt', '制服'], ['graduation-cap', '学生'], ['stethoscope', '护士'], ['glasses', '眼镜'],+ ['footprints', '足迹'], ['hand', '手部'], ['flower', '花朵'], ['venetian-mask', '角色扮演'], ['rabbit', '兔女郎'], ['paw-print', '兽耳'], ['dumbbell', '健身'],+ ['bed-double', '卧室'], ['bath', '浴室'], ['key-round', '私密'], ['wine', '微醺'], ['cigarette', '烟'], ['moon', '夜色'], ['sparkles', '幻想'],+ ['camera', '写真'], ['video', '影片'], ['film', '电影'], ['image', '图集'], ['gamepad-2', '游戏'], ['star', '收藏'], ['tags', '主题'],+] as const;++/** 不另选时的字形与说法:网盘库跟着来源走(115、PikPak 的站标),本地路径没有什么可识别,就是默认磁盘。 */+export function libraryAutoChoice(kind: string): [string, string] {+ const mark = kind !== 'local' ? MEDIA_SOURCE_ICONS[kind] : '';+ return mark ? [mark, '自动识别'] : ['hard-drive', '默认'];+}++/** 「不另选」在单选组里的取值。存下来是空串,而空串做单选值时 React Aria 当作没有选中。 */+const AUTO = 'auto';++export function LibraryIconPicker({ value, label, kind = 'local', onChange }: {+ value: string; label: string; kind?: string; onChange(value: string): void;+}) {+ const trigger = useRef<HTMLButtonElement>(null);+ const [open, setOpen] = useState(false);+ const [draft, setDraft] = useState(value);+ const [autoMark, autoLabel] = libraryAutoChoice(kind);+ const nameOf = (key: string) => (key && LIBRARY_ICON_CHOICES.find(([choice]) => choice === key)?.[1]) || autoLabel;++ return (+ <>+ <Button ref={trigger} variant="secondary" className="self-start" aria-label={label} aria-haspopup="dialog"+ aria-expanded={open} onClick={() => { setDraft(value); setOpen(true); }}>+ <span data-icon-choice className="flex items-center gap-2"><SourceMark mark={value || autoMark} />{nameOf(value)}</span>+ </Button>+ <Popover triggerRef={trigger} isOpen={open} onOpenChange={setOpen} placement="bottom start" offset={4}+ className={MENU_POPOVER_SURFACE}>+ <Dialog aria-label={`${label}候选`} className="flex w-72 flex-col gap-3 outline-none">+ <Heading slot="title" className="px-1 text-body-medium text-text-primary">选择媒体库图标</Heading>+ {/* 格子里只放图标,名字走 aria-label:带着字的话 42 个候选要排十几行。 */}+ <RadioGroup aria-label="候选图标" value={draft || AUTO} onChange={(next) => setDraft(next === AUTO ? '' : next)}+ className="grid grid-cols-7 gap-1">+ {LIBRARY_ICON_CHOICES.map(([key, name]) => (+ <Radio key={key || AUTO} value={key || AUTO} aria-label={key ? name : autoLabel}+ 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">+ <SourceMark mark={key || autoMark} />+ </Radio>+ ))}+ </RadioGroup>+ <div className="flex justify-end gap-2 border-t border-separator-border pt-2.5">+ <Button variant="secondary" onClick={() => setOpen(false)}>取消</Button>+ <Button disabled={draft === value} onClick={() => { onChange(draft); setOpen(false); }}>应用</Button>+ </div>+ </Dialog>+ </Popover>+ </>+ );+}diff --git a/frontend/src/react/settings/maintenance-settings.tsx b/frontend/src/react/settings/maintenance-settings.tsxnew file mode 100644index 000000000..f9f0d338c--- /dev/null+++ b/frontend/src/react/settings/maintenance-settings.tsx@@ -0,0 +1,127 @@+/* 「更新与维护」分组:自动更新、检查更新、运行信息与卸载。 */+import { useState, type FormEvent } from 'react';+import { confirmModal } from '@peach/legacy/ui';++import { SettingsRow } from '@/components/application/settings/settings-rows';+import { Button } from '@/components/base/buttons/button';+import { Checkbox } from '@/components/base/checkbox/checkbox';+import { Select, SelectItem } from '@/components/base/select/select';+import { Switch } from '@/components/base/switch/switch';++import { apiSend } from '../../api';+import type { AutomaticUpdateState, ConfigurationFact, ConfigurationGroupProps, UninstallState } from '../bundle';+import { ReleaseUpdates } from './release-updates';+import { Disclosure, ErrorText, ExternalLink, Fact, FactList, Footer, Help, Rows, Section, Stack } from './section';+import { busyProps, useAction } from './use-action';++const INTERVALS = [['6', '每 6 小时'], ['24', '每天'], ['168', '每周']] as const;++export function MaintenanceSettings({ data, receipt }: ConfigurationGroupProps) {+ return (+ <div className="flex flex-col gap-6">+ {data.automatic_updates ? <AutomaticUpdates initial={data.automatic_updates} receipt={receipt} /> : null}+ {data.updates ? <ReleaseUpdates initial={data.updates} initialJob={data.update_job} /> : null}+ <Facts facts={data.facts} />+ {data.uninstall ? <UninstallSettings uninstall={data.uninstall} /> : null}+ </div>+ );+}++export function AutomaticUpdates({ initial, receipt }: { initial: AutomaticUpdateState; receipt(message: string): void }) {+ const [mode, setMode] = useState(initial.mode);+ const [hours, setHours] = useState(initial.interval_hours);+ const action = useAction(initial.error);++ const submit = (event: FormEvent<HTMLFormElement>) => {+ event.preventDefault();+ if (!initial.available) return;+ void action.run('save', (signal) => apiSend<AutomaticUpdateState>('/api/configuration/automatic-updates',+ { mode, interval_hours: hours }, 'POST', signal), () => receipt('已保存自动更新设置'));+ };++ const help = !initial.available+ ? '自动更新需要由托盘管理的服务。'+ : initial.download_available+ ? '开启后一分钟内开始检查。下载完成后,在此确认重启安装。'+ : '开启后一分钟内开始检查。源码运行请前往发布页获取新版本。';+ return (+ <Section title="自动更新" onSubmit={submit}>+ <Rows>+ <SettingsRow label="自动检查新版本">+ <Switch aria-label="自动检查新版本" isSelected={mode !== 'off'} isDisabled={!initial.available}+ onChange={(on) => setMode(on ? 'check' : 'off')} />+ </SettingsRow>+ <SettingsRow label="自动下载更新">+ <Switch aria-label="自动下载更新" isSelected={mode === 'download'}+ isDisabled={!initial.available || !initial.download_available || mode === 'off'}+ onChange={(on) => setMode(on ? 'download' : 'check')} />+ </SettingsRow>+ <SettingsRow label="检查频率">+ <Select aria-label="检查频率" selectedKey={String(hours)} isDisabled={!initial.available}+ onSelectionChange={(key) => { if (key !== null) setHours(Number(key)); }}>+ {INTERVALS.map(([key, name]) => <SelectItem key={key} id={key}>{name}</SelectItem>)}+ </Select>+ </SettingsRow>+ </Rows>+ <Stack divided>+ <Help>{help}</Help>+ {action.error ? <ErrorText>{action.error}</ErrorText> : null}+ </Stack>+ <Footer>+ <Button variant="secondary" type="submit" disabled={!initial.available} {...busyProps(action.busy === 'save')}>保存自动更新</Button>+ </Footer>+ </Section>+ );+}++function Facts({ facts }: { facts: ConfigurationFact[] }) {+ return (+ <Section title="运行信息">+ <FactList>+ {facts.map((fact) => (+ <Fact key={fact.term} term={fact.term}>+ {fact.value}+ {fact.download_url ? <ExternalLink href={fact.download_url}>{fact.download_label}</ExternalLink> : null}+ </Fact>+ ))}+ </FactList>+ </Section>+ );+}++export function UninstallSettings({ uninstall }: { uninstall: UninstallState }) {+ const [removeData, setRemoveData] = useState(false);+ const [accepted, setAccepted] = useState('');+ const remove = () => void confirmModal({+ title: '卸载 Peach',+ danger: true,+ body: removeData+ ? '将退出 Peach,移除程序、开机自启、桌面图标、设置、本地数据库、观看记录、凭据和缓存。原始媒体文件保留。'+ : '将退出 Peach 并移除程序、开机自启和桌面图标。设置、本地数据库、观看记录与缓存保留。',+ confirmLabel: '卸载 Peach',+ onConfirm: async () => {+ const result = await apiSend<{ message: string }>('/api/configuration/uninstall', { delete_data: removeData, confirmation: '卸载 Peach' });+ setAccepted(result.message);+ },+ });+ // 底栏左边一句说这颗按钮此刻意味着什么:拦住卸载的理由(源码安装、更新还在跑)和按下去+ // 之后的回执都在答「这颗现在能不能按」,摆在正文末尾就得先读完整段说明才找得到。+ const status = accepted || uninstall.message;+ const paths = [...new Set([uninstall.data_root, ...uninstall.directories])];+ return (+ <Section id="uninstallPeach" title="卸载 Peach">+ <Stack>+ {uninstall.available ? <Help>卸载会退出 Peach、移除程序、开机自启和桌面图标。原始媒体文件保留。</Help> : null}+ <Checkbox isSelected={removeData} isDisabled={!uninstall.full_available || Boolean(accepted)} onChange={setRemoveData}>+ 完全卸载:同时删除设置、本地数据库、观看记录、凭据和缓存+ </Checkbox>+ <Disclosure summary="数据目录">+ {paths.map((path) => <p key={path} className="text-body-2-regular break-all text-text-secondary">{path}</p>)}+ </Disclosure>+ </Stack>+ <Footer status={status ? <p role={accepted ? 'status' : undefined}>{status}</p> : null}>+ <Button variant="danger" disabled={!uninstall.available || Boolean(accepted)} onClick={remove}>卸载 Peach</Button>+ </Footer>+ </Section>+ );+}diff --git a/frontend/src/react/settings/media-settings.tsx b/frontend/src/react/settings/media-settings.tsxnew file mode 100644index 000000000..26ddbeac9--- /dev/null+++ b/frontend/src/react/settings/media-settings.tsx@@ -0,0 +1,279 @@+/* 「媒体」分组:这台电脑的媒体文件夹与本机端口,加各来源的挂载状态。+ *+ * 服务端按两道门放行:托盘管理的服务、且从运行 Peach 的这台电脑打开时 `editable` 才为真;+ * 其它情况表单不画,只留一句为什么。保存成功后 Peach 会重启,这里给一句持久提示、一条新地址+ * 的链接,并在托盘换好进程后自己跳过去。+ *+ * 校验原因由服务端按字段给(400 的 `errors`),页面写回原位,不在前端复制一份路径与端口的判定。 */+import { useEffect, useLayoutEffect, useRef, useState, type FormEvent } from 'react';+import { RiCloseLine } from '@remixicon/react';+import { MEDIA_SOURCE_ICONS } from '@peach/legacy/ui';++import { Button } from '@/components/base/buttons/button';+import { IconButton } from '@/components/base/buttons/icon-button';+import { LinkButton } from '@/components/base/buttons/link-button';+import { Checkbox } from '@/components/base/checkbox/checkbox';+import { Input } from '@/components/base/input/input';+import { Select, SelectItem } from '@/components/base/select/select';++import { ApiError, apiGet, apiSend, errorMessage } from '../../api';+import { CONFIGURATION_URL, PICK_FOLDER_URL } from '../../configuration-endpoints';+import type { ConfigurationData, ConfigurationGroupProps } from '../bundle';+import { CloudDriveGuide } from './clouddrive-guide';+import { LibraryIconPicker } from './library-icon-picker';+import {+ ErrorText, ExternalLink, Fact, FactList, FieldLabel, Footer, Help, Note, Section, SourceMark, Stack,+} from './section';+import { busyProps, useAction } from './use-action';++/** 保存后等托盘换好进程再跳到新地址的时间。首启完成页用的是同一个数。 */+export const RESTART_REDIRECT_MS = 8000;++/** 「选择文件夹」弹系统对话框去挑,全站用雪碧图的 `folder-search`;`folder-open` 归「打开位置」,+ * Remix Icon 里没有这一枚。 */+function FolderSearchIcon({ className }: { className?: string }) {+ return (+ <svg aria-hidden viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth={2}+ strokeLinecap="round" strokeLinejoin="round" className={className}>+ <use href="#i-folder-search" />+ </svg>+ );+}++export const MEDIA_SOURCES = [['local', '本地磁盘'], ['115', 'CloudDrive · 115'], ['pikpak', 'CloudDrive · PikPak']] as const;++const sourceName = (location: string) => MEDIA_SOURCES.find(([kind]) => kind === location)?.[1] ?? location;+const sourceMark = (location: string) => MEDIA_SOURCE_ICONS[location] || 'database';++interface FolderRow { path: string; location: string; root: string; library: string; library_icon: string }+interface FieldErrors { media_dirs?: string[]; port?: string }+interface SaveResult { saved: boolean; url: string; revision: string }++const blankRow = (path = ''): FolderRow => ({ path, location: 'local', root: '', library: '', library_icon: '' });++function initialRows(data: ConfigurationData): FolderRow[] {+ const known = data.media_sources?.filter((row) => MEDIA_SOURCES.some(([kind]) => kind === row.location));+ if (known?.length) {+ return known.map((row) => ({+ path: row.path, location: row.location, root: row.root, library: row.library || '', library_icon: row.library_icon || '',+ }));+ }+ return (data.media_dirs.length ? data.media_dirs : ['']).map((path) => blankRow(path));+}++const fieldErrorsOf = (cause: unknown): FieldErrors | null => {+ if (!(cause instanceof ApiError) || cause.status !== 400) return null;+ return (cause.body as { errors?: FieldErrors } | null)?.errors ?? null;+};++export function MediaSettings({ data, receipt }: ConfigurationGroupProps) {+ return (+ <div className="flex flex-col gap-6">+ {data.editable ? <MediaForm data={data} receipt={receipt} /> : <Note tone="neutral" title="只读">{data.notice}</Note>}+ <MountStatus data={data} />+ </div>+ );+}++function MediaForm({ data, receipt }: ConfigurationGroupProps) {+ const [rows, setRows] = useState(() => initialRows(data));+ const [port, setPort] = useState(String(data.port));+ const [scanNow, setScanNow] = useState(false);+ const [rowErrors, setRowErrors] = useState<string[]>([]);+ const [portError, setPortError] = useState('');+ const [failure, setFailure] = useState('');+ const [saved, setSaved] = useState<SaveResult | null>(null);+ const [focusRow, setFocusRow] = useState<number | null>(null);+ const [picking, setPicking] = useState<number | null>(null);+ const pickingNow = useRef(false);+ const revision = useRef(data.revision);+ const inputs = useRef<(HTMLInputElement | null)[]>([]);+ const action = useAction();++ // 新加的一行直接接过焦点:添加之后下一步一定是往里打路径。+ useLayoutEffect(() => {+ if (focusRow === null) return;+ inputs.current[focusRow]?.focus();+ setFocusRow(null);+ }, [focusRow]);++ useEffect(() => {+ if (!saved) return undefined;+ const timer = setTimeout(() => location.assign(saved.url), RESTART_REDIRECT_MS);+ return () => clearTimeout(timer);+ }, [saved]);++ const edit = (index: number, patch: Partial<FolderRow>) =>+ setRows((list) => list.map((row, i) => (i === index ? { ...row, ...patch } : row)));+ const setRowError = (index: number, message: string) => setRowErrors((errors) => {+ const next = [...errors];+ while (next.length <= index) next.push('');+ next[index] = message;+ return next;+ });+ const add = () => {+ setFocusRow(rows.length);+ setRows((list) => [...list, blankRow()]);+ };+ const remove = (index: number) => {+ setRows((list) => list.filter((_, i) => i !== index));+ setRowErrors((errors) => errors.filter((_, i) => i !== index));+ };++ // 对话框开着的时候这一行的选择键置忙;取消什么也不改,打不开时原因写在这一行下面。+ const pick = async (index: number) => {+ if (pickingNow.current) return;+ pickingNow.current = true;+ setPicking(index);+ try {+ const { path } = await apiSend<{ path: string | null }>(PICK_FOLDER_URL, { initial: rows[index]?.path ?? '' });+ if (path) {+ edit(index, { path });+ setRowError(index, '');+ }+ } catch (cause) {+ setRowError(index, errorMessage(cause));+ } finally {+ pickingNow.current = false;+ setPicking(null);+ }+ };++ const submit = (event: FormEvent<HTMLFormElement>) => {+ event.preventDefault();+ setFailure('');+ void action.run('save', (signal) => apiSend<SaveResult>(CONFIGURATION_URL, {+ revision: revision.current,+ media_dirs: rows.map((row) => row.path),+ ...(data.media_sources ? { media_sources: rows } : {}),+ port,+ scan_now: scanNow,+ }, 'POST', signal), (result) => {+ revision.current = result.revision;+ setRowErrors([]);+ setPortError('');+ receipt('已保存配置');+ setSaved(result);+ }, (cause) => {+ const fields = fieldErrorsOf(cause);+ setRowErrors(fields?.media_dirs ?? []);+ setPortError(fields?.port ?? '');+ if (!fields) setFailure(errorMessage(cause));+ });+ };++ if (saved) {+ return (+ <Section title="这台电脑">+ <Stack>+ <Note tone="success" title="配置已保存">+ Peach 正在重新启动。稍后自动跳转,或点击<LinkButton href={saved.url} size="small">进入馆藏</LinkButton>。+ </Note>+ </Stack>+ </Section>+ );+ }++ const cloud = rows.some((row) => row.location === '115' || row.location === 'pikpak');+ const missing = cloud ? (data.mount_dependencies ?? []).filter((dependency) => !dependency.available) : [];+ return (+ <Section title="这台电脑" onSubmit={submit}>+ <Stack>+ <div className="flex flex-col gap-3">+ <FieldLabel>媒体文件夹</FieldLabel>+ <div role="group" aria-label="媒体文件夹" className="flex flex-col gap-3">+ {rows.map((row, index) => (+ <div key={index} data-folder-row className="@container flex flex-col gap-3 rounded-2lg border border-separator-border p-3">+ <div className="flex items-start gap-2">+ <Input className="min-w-0 flex-1" aria-label={`媒体文件夹 ${index + 1}`} placeholder="本机文件夹路径"+ value={row.path} onChange={(path) => edit(index, { path })}+ ref={(el) => { inputs.current[index] = el; }}+ validationBehavior="aria" isInvalid={Boolean(rowErrors[index])} hint={rowErrors[index] || undefined} />+ <IconButton icon={FolderSearchIcon} aria-label="选择文件夹" onClick={() => void pick(index)}+ {...busyProps(picking === index)} />+ {rows.length > 1+ ? <IconButton icon={RiCloseLine} aria-label="移除这个文件夹" onClick={() => remove(index)} />+ : null}+ </div>+ <div className="grid grid-cols-1 gap-3 @lg:grid-cols-2">+ <Input label="媒体库名称" maxLength={80} placeholder="同名文件夹归入同一个媒体库"+ value={row.library} onChange={(library) => edit(index, { library })} />+ <div className="flex flex-col gap-1.5">+ <FieldLabel>媒体库图标</FieldLabel>+ <LibraryIconPicker label={`媒体库图标 ${index + 1}`} value={row.library_icon} kind={row.location}+ onChange={(library_icon) => edit(index, { library_icon })} />+ </div>+ <div className="flex flex-col gap-1.5">+ <FieldLabel>媒体来源</FieldLabel>+ <Select aria-label={`媒体来源 ${index + 1}`} selectedKey={row.location}+ onSelectionChange={(key) => { if (key !== null) edit(index, { location: String(key) }); }}>+ {MEDIA_SOURCES.map(([kind, name]) => (+ <SelectItem key={kind} id={kind} textValue={name}><SourceMark mark={sourceMark(kind)} />{name}</SelectItem>+ ))}+ </Select>+ </div>+ {data.windows === false+ ? <Input label="Windows 中的对应路径" placeholder={'例如 B:\\'} value={row.root}+ onChange={(root) => edit(index, { root })} />+ : null}+ </div>+ </div>+ ))}+ </div>+ <Button variant="secondary" className="self-start" onClick={add}>添加文件夹</Button>+ </div>+ {cloud ? <CloudDriveGuide /> : null}+ {missing.map((dependency) => (+ <Help key={dependency.name}>+ 未检测到 {dependency.name}。<ExternalLink href={dependency.download_url}>下载 {dependency.name}</ExternalLink>+ </Help>+ ))}+ {data.windows === false+ ? <Help>本机文件夹是这台电脑读取媒体的位置。Windows 中的对应路径用于匹配馆藏中已有的路径,例如 B:\ 对应本机挂载文件夹。</Help>+ : null}+ {data.port_editable !== false+ ? <Input id="configPort" label="本机访问端口" inputMode="numeric" value={port} onChange={setPort}+ validationBehavior="aria" isInvalid={Boolean(portError)} hint={portError || '浏览器地址里冒号后面的数字,一般不用改。'} />+ : null}+ <Checkbox isSelected={scanNow} onChange={setScanNow}>保存后扫描并补全资料</Checkbox>+ {failure ? <Note tone="error" title="没有保存">{failure}</Note> : null}+ </Stack>+ <Footer status={data.port_editable === false ? '保存后 Peach 会重新载入配置。' : '保存后 Peach 会重新启动,端口改了就用新地址打开。'}>+ <Button type="submit" {...busyProps(action.busy === 'save')}>保存配置</Button>+ </Footer>+ </Section>+ );+}++function MountBadge({ online }: { online: boolean | undefined }) {+ if (online === true) {+ return <span data-mount="online" className="inline-flex items-center gap-1.5 text-body-2-medium text-notification-success-foreground"><span aria-hidden className="size-1.5 rounded-full bg-current" />在线</span>;+ }+ if (online === false) {+ return <span data-mount="offline" className="inline-flex items-center gap-1.5 text-body-2-medium text-text-error-primary"><span aria-hidden className="size-1.5 rounded-full bg-current" />离线</span>;+ }+ return <span data-mount="unknown" className="inline-flex items-center gap-1.5 text-body-2-medium text-text-secondary"><span aria-hidden className="size-1.5 rounded-full bg-current" />未检测</span>;+}++function MountStatus({ data }: { data: ConfigurationData }) {+ const [sources, setSources] = useState(data.media_sources);+ const action = useAction();+ if (!sources) return null;+ const refresh = () => void action.run('refresh', (signal) => apiGet<ConfigurationData>(CONFIGURATION_URL, signal),+ (result) => setSources(result.media_sources));+ return (+ <Section title="挂载状态">+ <FactList>+ {sources.map((row, index) => (+ <Fact key={index} term={<><SourceMark mark={sourceMark(row.location)} />{sourceName(row.location)}</>}>+ {row.path || '未配置挂载点'}<MountBadge online={row.online} />+ </Fact>+ ))}+ </FactList>+ {action.error ? <Stack divided><ErrorText>{action.error}</ErrorText></Stack> : null}+ <Footer>+ <Button variant="secondary" onClick={refresh} {...busyProps(action.busy === 'refresh')}>刷新挂载状态</Button>+ </Footer>+ </Section>+ );+}diff --git a/frontend/src/react/settings/network-settings.tsx b/frontend/src/react/settings/network-settings.tsxnew file mode 100644index 000000000..9dd77dabf--- /dev/null+++ b/frontend/src/react/settings/network-settings.tsx@@ -0,0 +1,62 @@+/* 「网络与访问」分组:Peach 代理与本机访问密码。 */+import { useState, type FormEvent } from 'react';++import { SettingsRow } from '@/components/application/settings/settings-rows';+import { Button } from '@/components/base/buttons/button';+import { Input } from '@/components/base/input/input';+import { Select, SelectItem } from '@/components/base/select/select';++import { apiSend } from '../../api';+import type { ConfigurationGroupProps, PeachProxyState } from '../bundle';+import { AccessSettings } from './access-settings';+import { ErrorText, Footer, Note, Rows, Section, Stack } from './section';+import { busyProps, useAction } from './use-action';++const PROXY_MODES = [['environment', '系统代理'], ['direct', '直连'], ['proxy', '自定义']] as const;++export function NetworkSettings({ data, receipt }: ConfigurationGroupProps) {+ return (+ <div className="flex flex-col gap-6">+ {data.peach_proxy ? <PeachProxy initial={data.peach_proxy} receipt={receipt} /> : null}+ {data.access ? <AccessSettings initial={data.access} receipt={receipt} /> : null}+ </div>+ );+}++export function PeachProxy({ initial, receipt }: { initial: PeachProxyState; receipt(message: string): void }) {+ const [saved, setSaved] = useState(initial);+ const [mode, setMode] = useState(initial.mode);+ const [address, setAddress] = useState('');+ const action = useAction();++ const submit = (event: FormEvent<HTMLFormElement>) => {+ event.preventDefault();+ void action.run('save', (signal) => apiSend<PeachProxyState>('/api/configuration/peach-proxy', { mode, proxy: address }, 'POST', signal),+ (next) => { setSaved(next); setAddress(''); receipt('已保存 Peach 代理'); });+ };++ return (+ <Section id="peachProxy" title="Peach 代理" onSubmit={submit}>+ <Rows>+ <SettingsRow label="连接方式" description="采集来源选择“Peach 代理”时共用此设置。">+ <Select aria-label="连接方式" selectedKey={mode} onSelectionChange={(key) => { if (key !== null) setMode(String(key)); }}>+ {PROXY_MODES.map(([key, name]) => <SelectItem key={key} id={key}>{name}</SelectItem>)}+ </Select>+ </SettingsRow>+ </Rows>+ {mode === 'proxy' || saved.needs_selection || action.error ? (+ <Stack divided>+ {mode === 'proxy'+ ? <Input id="peachProxyAddress" type="password" label="代理地址" autoComplete="off" value={address} onChange={setAddress}+ placeholder={saved.proxy_saved ? '已保存,留空保留' : 'http://127.0.0.1:7890'} />+ : null}+ {saved.needs_selection ? <Note tone="warning" title="需要选择连接方式">已有来源的代理地址不同,请选择公共连接方式。</Note> : null}+ {action.error ? <ErrorText>{action.error}</ErrorText> : null}+ </Stack>+ ) : null}+ <Footer>+ <Button type="submit" {...busyProps(action.busy === 'save')}>保存代理</Button>+ </Footer>+ </Section>+ );+}diff --git a/frontend/src/react/settings/release-updates.tsx b/frontend/src/react/settings/release-updates.tsxnew file mode 100644index 000000000..5e62656b1--- /dev/null+++ b/frontend/src/react/settings/release-updates.tsx@@ -0,0 +1,119 @@+/* 检查更新:当前与最新版本、下载安装进度,准备好之后确认重启。+ *+ * 更新任务进行中每秒问一次状态,空闲时 30 秒一次;连续 120 次问不到就停下并说明原因。 */+import { useEffect, useRef, useState } from 'react';+import { confirmModal } from '@peach/legacy/ui';++import { Button } from '@/components/base/buttons/button';++import { apiGet, apiSend, errorMessage } from '../../api';+import type { ReleaseState, UpdateJob } from '../bundle';+import { ErrorText, ExternalLink, Fact, FactList, Footer, Help, Note, Progress, Section, Stack } from './section';+import { busyProps, useAction } from './use-action';++const ACTIVE = new Set(['downloading', 'verifying', 'extracting', 'preparing', 'restarting', 'installing']);+const STOPS = [65, 67, 90];+const MAX_FAILURES = 120;++export function ReleaseUpdates({ initial, initialJob }: { initial: ReleaseState; initialJob?: UpdateJob | undefined }) {+ const [data, setData] = useState(initial);+ const [job, setJob] = useState<UpdateJob>(initialJob || { state: 'idle', progress: 0 });+ const [pollError, setPollError] = useState('');+ const action = useAction();+ const prompted = useRef(false);+ const mounted = useRef(true);+ const running = ACTIVE.has(job.state);++ useEffect(() => {+ mounted.current = true;+ return () => { mounted.current = false; };+ }, []);++ const restart = async () => {+ const result = await apiSend<UpdateJob>('/api/configuration/update-restart', {});+ if (mounted.current) setJob(result);+ };+ const confirmRestart = () => void confirmModal({+ title: '更新已准备好', body: `Peach ${job.version || ''} 将在重启后安装。`,+ confirmLabel: '立即重启', cancelLabel: '稍后', onConfirm: restart,+ });++ useEffect(() => {+ if (job.state !== 'ready' || prompted.current) return;+ prompted.current = true;+ confirmRestart();+ }, [job.state]);++ useEffect(() => {+ const controller = new AbortController();+ const delay = ACTIVE.has(job.state) ? 1000 : 30000;+ let timer: ReturnType<typeof setTimeout>;+ let failures = 0;+ const poll = async () => {+ try {+ const result = await apiGet<UpdateJob>('/api/configuration/update-status', controller.signal);+ if (controller.signal.aborted) return;+ setJob(result);+ failures = 0;+ if (result.state === 'complete') {+ setData((current) => ({ ...current, current_version: result.version || current.current_version, state: 'current', message: '已是最新测试版。' }));+ }+ const automatic = await apiGet<{ result?: ReleaseState }>('/api/configuration/automatic-updates', controller.signal);+ if (!controller.signal.aborted && automatic.result) setData(automatic.result);+ } catch {+ failures += 1;+ if (failures >= MAX_FAILURES && !controller.signal.aborted) setPollError('尚未连接到 Peach,请检查托盘后刷新页面。');+ }+ if (!controller.signal.aborted && failures < MAX_FAILURES) timer = setTimeout(poll, delay);+ };+ timer = setTimeout(poll, delay);+ return () => { controller.abort(); clearTimeout(timer); };+ }, [job.state]);++ const download = () => {+ if (running) return;+ prompted.current = false;+ setPollError('');+ void action.run('download', (signal) => apiSend<UpdateJob>('/api/configuration/update', {}, 'POST', signal), setJob);+ };+ const check = () => void action.run('check', (signal) => apiGet<ReleaseState>('/api/configuration/updates', signal), setData,+ (cause) => { setData({ ...initial, state: 'error' }); action.setError(errorMessage(cause)); });++ const error = action.error || pollError;+ const reading = job.state === 'downloading' && job.total+ ? `${((job.downloaded || 0) / 1048576).toFixed(1)} / ${(job.total / 1048576).toFixed(1)} MB`+ : `${job.progress}%`;+ return (+ <Section title="检查更新">+ <FactList>+ <Fact term="当前版本">{data.current_version}</Fact>+ <Fact term="安装方式">{data.installation}</Fact>+ <Fact term="更新通道">{data.channel}</Fact>+ <Fact term="最新版本">{data.latest_version || (data.state === 'unchecked' ? '尚未检查' : '未取得')}</Fact>+ </FactList>+ <Stack divided>+ {data.checked_at ? <Help>检查于 {new Date(data.checked_at * 1000).toLocaleString()}</Help> : null}+ {data.state === 'available' && !error+ ? <Note tone="info" title="有可用更新">{data.message}</Note>+ : error || data.state === 'error'+ ? <ErrorText>{error || data.message}</ErrorText>+ : <Help role="status">{data.message}</Help>}+ {job.state === 'error' ? <ErrorText>{job.message}</ErrorText> : null}+ {job.state !== 'idle' && job.state !== 'error' ? (+ <div aria-live="polite" className="flex flex-col gap-2">+ <Progress label="更新准备进度:下载、校验、解压、准备安装" value={job.progress} stops={STOPS} />+ <Help>下载 → 校验 → 解压 → 准备安装 · {job.message}</Help>+ <Help>{reading}</Help>+ </div>+ ) : null}+ </Stack>+ <Footer status={<ExternalLink href={data.release_url}>查看发布页</ExternalLink>}>+ {job.state === 'ready' ? <Button onClick={confirmRestart}>重启安装</Button> : null}+ {data.state === 'available' && data.installation === '独立测试包' && job.state !== 'ready'+ ? <Button onClick={download} {...busyProps(running || action.busy === 'download')}>下载并安装</Button>+ : null}+ <Button variant="secondary" disabled={running} onClick={check} {...busyProps(action.busy === 'check')}>检查更新</Button>+ </Footer>+ </Section>+ );+}diff --git a/frontend/src/react/settings/section.tsx b/frontend/src/react/settings/section.tsxnew file mode 100644index 000000000..e3f83715e--- /dev/null+++ b/frontend/src/react/settings/section.tsx@@ -0,0 +1,154 @@+/* 配置页各分区共用的组合件。+ *+ * 外框取 BoardUI 设置弹层的 `SettingsSectionLabel` + `SettingsCard`,开关行直接用 `SettingsRow`。+ * 注册表里没有行内提示、进度条和折叠,这三样用 BoardUI token 组合,差异登记在 `boardui/ORIGIN.md`。 */+import type { FormEvent, ReactNode } from 'react';+import { RiArrowRightSLine, RiExternalLinkLine } from '@remixicon/react';++import { SettingsCard, SettingsSectionLabel } from '@/components/application/settings/settings-rows';+import { LinkButton } from '@/components/base/buttons/link-button';++interface SectionProps {+ title: string;+ id?: string;+ /** 给了就画成表单:回车提交,提交键放在 `Footer` 里。 */+ onSubmit?: (event: FormEvent<HTMLFormElement>) => void;+ children: ReactNode;+}++export function Section({ title, id, onSubmit, children }: SectionProps) {+ const body = (+ <>+ <SettingsSectionLabel>{title}</SettingsSectionLabel>+ <SettingsCard>{children}</SettingsCard>+ </>+ );+ return onSubmit+ ? <form id={id} aria-label={title} noValidate onSubmit={onSubmit} className="flex w-full flex-col gap-2">{body}</form>+ : <section id={id} aria-label={title} className="flex w-full flex-col gap-2">{body}</section>;+}++/** 一组 `SettingsRow`。行自己画下边线、最后一行不画,所以要有一层只装行的父元素。 */+export function Rows({ children }: { children: ReactNode }) {+ return <div className="flex flex-col">{children}</div>;+}++/** 卡片只管左内边距和底色;不是 `SettingsRow` 的内容由这一层给行距和上下右内边距。+ * 排在 `Rows` 或 `FactList` 后面时 `divided`,和上面那组行之间补一道分隔线。 */+export function Stack({ divided = false, children }: { divided?: boolean; children: ReactNode }) {+ return divided+ ? <div className="flex flex-col gap-4 border-t border-separator-border py-4 pr-3">{children}</div>+ : <div className="flex flex-col gap-4 py-4 pr-3">{children}</div>;+}++/** 底栏:左边一句说这颗按钮此刻意味着什么,右边是按钮。 */+export function Footer({ status, children }: { status?: ReactNode; children?: ReactNode }) {+ return (+ <div className="flex flex-wrap items-center justify-end gap-3 border-t border-separator-border py-3 pr-3">+ {status ? <div className="mr-auto min-w-0 text-body-2-regular text-text-secondary">{status}</div> : null}+ {children}+ </div>+ );+}++export function Help({ role, children }: { role?: 'status'; children: ReactNode }) {+ return <p role={role} className="text-body-2-regular text-text-secondary">{children}</p>;+}++export function ErrorText({ children }: { children: ReactNode }) {+ return <p role="alert" className="text-body-2-regular text-text-error-primary">{children}</p>;+}++/** 字段上方的名字,外观同 BoardUI `Label`;控件自己的无障碍名称由 `aria-label` 给。 */+export function FieldLabel({ children }: { children: ReactNode }) {+ return <p className="text-body-medium text-text-primary">{children}</p>;+}++type Tone = 'neutral' | 'info' | 'success' | 'warning' | 'error';++/** 字段、分区旁的持久提示。没有密码、保存失败这类是当前状态,不和字段说明共用灰色小字。 */+export function Note({ tone, title, children }: { tone: Tone; title?: string; children: ReactNode }) {+ const content = (+ <>+ {title ? <p className="text-body-medium">{title}</p> : null}+ <p className="text-body-2-regular">{children}</p>+ </>+ );+ switch (tone) {+ case 'info':+ return <div role="status" className="flex flex-col gap-0.5 rounded-2lg bg-notification-information-background px-3 py-2 text-notification-information-foreground">{content}</div>;+ case 'success':+ return <div role="status" className="flex flex-col gap-0.5 rounded-2lg bg-notification-success-background px-3 py-2 text-notification-success-foreground">{content}</div>;+ case 'warning':+ return <div role="note" className="flex flex-col gap-0.5 rounded-2lg bg-status-yellow-background px-3 py-2 text-status-yellow-text">{content}</div>;+ case 'error':+ return <div role="alert" className="flex flex-col gap-0.5 rounded-2lg bg-background-tertiary-error px-3 py-2 text-text-error-primary">{content}</div>;+ default:+ return <div role="note" className="flex flex-col gap-0.5 rounded-2lg bg-background-tertiary-default px-3 py-2 text-text-secondary">{content}</div>;+ }+}++/** 新窗口打开的外部链接,尾部带外链字形。 */+export function ExternalLink({ href, children }: { href: string; children: ReactNode }) {+ return (+ <LinkButton href={href} target="_blank" rel="noreferrer" size="small" trailingIcon={RiExternalLinkLine}>+ {children}+ </LinkButton>+ );+}++/** 只读的名目与读数,一行一对,行距与分隔线同 `SettingsRow`。 */+export function FactList({ children }: { children: ReactNode }) {+ return <dl className="flex flex-col">{children}</dl>;+}++export function Fact({ term, children }: { term: ReactNode; children: ReactNode }) {+ return (+ <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">+ <dt className="flex shrink-0 items-center gap-2 text-body-regular text-text-secondary">{term}</dt>+ <dd className="flex min-w-0 flex-wrap items-center justify-end gap-2 text-right text-body-regular break-all text-text-primary">{children}</dd>+ </div>+ );+}++/** 已知总量的进度。宽度按比例画在 SVG 里:条宽写进 `rect` 的属性,不用内联样式。 */+export function Progress({ label, value, max = 100, stops = [] }: { label: string; value: number; max?: number; stops?: number[] }) {+ const filled = Math.min(Math.max(value, 0), max);+ return (+ <svg role="progressbar" aria-label={label} aria-valuemin={0} aria-valuemax={max} aria-valuenow={value}+ viewBox={`0 0 ${max} 1`} preserveAspectRatio="none" className="h-1.5 w-full overflow-hidden rounded-full">+ <rect width={max} height={1} className="fill-background-tertiary-default" />+ <rect width={filled} height={1} className="fill-border-focus-ring" />+ {stops.map((stop) => <rect key={stop} x={stop} width={0.4} height={1} className="fill-background-secondary-default" />)}+ </svg>+ );+}++/** 展开正文。原生 `details`:键盘、状态与无障碍语义都由浏览器给。 */+export function Disclosure({ summary, children }: { summary: string; children: ReactNode }) {+ return (+ <details className="group">+ <summary className="flex w-fit 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">+ <RiArrowRightSLine aria-hidden className="size-4 shrink-0 transition-transform group-open:rotate-90" />+ {summary}+ </summary>+ <div className="flex flex-col gap-2 pt-3">{children}</div>+ </details>+ );+}++/** 遗留雪碧图(`web/index.html` 的 `#i-*` symbol)里的字形。媒体库图标的取值就是这些名字。 */+export function SpriteIcon({ name }: { name: string }) {+ return (+ <svg aria-hidden viewBox="0 0 24 24" fill="none" className="size-4 shrink-0 stroke-current stroke-2">+ <use href={`#i-${name}`} />+ </svg>+ );+}++/** 来源标识:网盘站标是内嵌 PNG,其余是雪碧图字形(`web/js/media-source-icons.js`)。 */+export function SourceMark({ mark }: { mark: string }) {+ return mark.startsWith('data:image/png;base64,')+ ? <img src={mark} alt="" width={16} height={16} className="size-4 shrink-0" />+ : <SpriteIcon name={mark} />;+}diff --git a/frontend/src/react/settings/use-action.ts b/frontend/src/react/settings/use-action.tsnew file mode 100644index 000000000..fd7164511--- /dev/null+++ b/frontend/src/react/settings/use-action.ts@@ -0,0 +1,38 @@+/* 用户触发的请求:同一分区同一时刻只跑一个,离开页面取消等待,结果只交给仍挂载的组件。+ * 忙态落在触发它的那颗按钮上,同一分区里的几颗按 key 区分。 */+import { useEffect, useRef, useState } from 'react';++import { errorMessage } from '../../api';++export function useAction(initialError = '') {+ const pending = useRef<AbortController | null>(null);+ const [busy, setBusy] = useState('');+ const [error, setError] = useState(initialError);+ useEffect(() => () => pending.current?.abort(), []);++ async function run<T>(key: string, work: (signal: AbortSignal) => Promise<T>, done: (result: T) => void,+ failed?: (cause: unknown) => void) {+ if (pending.current) return;+ const controller = new AbortController();+ pending.current = controller;+ setBusy(key);+ setError('');+ try {+ const result = await work(controller.signal);+ if (!controller.signal.aborted) done(result);+ } catch (cause) {+ if (controller.signal.aborted) return;+ if (failed) failed(cause); else setError(errorMessage(cause));+ } finally {+ if (pending.current === controller) pending.current = null;+ if (!controller.signal.aborted) setBusy('');+ }+ }++ return { run, busy, error, setError };+}++/** 等待期的按钮:写 `aria-busy` 与 `aria-disabled`、保持可聚焦,不用原生 `disabled`。 */+export function busyProps(busy: boolean) {+ return busy ? { 'aria-busy': true, 'aria-disabled': true } as const : {};+}diff --git a/frontend/src/settings-controls.tsx b/frontend/src/settings-controls.tsxdeleted file mode 100644index 15eeeb70b..000000000--- a/frontend/src/settings-controls.tsx+++ /dev/null@@ -1,61 +0,0 @@-import { useEffect, useLayoutEffect, useRef, useState } from 'preact/hooks';-import type { ComponentChildren, JSX, RefObject } from 'preact';-import { fieldsetTitle, selectFieldHtml, wireSelectField, setActionBusy } from '@peach/legacy/ui';-import { errorMessage } from './api';--/** 遗留 Select 的受控适配,挂载和事件各归一个生命周期。 */-export function SelectField({ value, options, label, onChange, disabled = false, className = '', fixed = false }: {- value: string; options: string[][]; label: string; onChange(value: string): void;- disabled?: boolean; className?: string; fixed?: boolean;-}) {- const mount = useRef<HTMLDivElement>(null);- const control = useRef<ReturnType<typeof wireSelectField> | null>(null);- const callback = useRef(onChange); callback.current = onChange;- const signature = JSON.stringify(options);- useLayoutEffect(() => {- const root = mount.current!;- root.innerHTML = selectFieldHtml(options, value, { label, className: 'configselect', attr: fixed ? 'data-fixed-width' : '' });- const field = wireSelectField(root.firstElementChild!); control.current = field;- const change = () => callback.current(field.value);- field.addEventListener('change', change);- return () => { field.disabled = true; field.removeEventListener('change', change); control.current = null; root.replaceChildren(); };- }, [signature, label, fixed]);- useLayoutEffect(() => { if (control.current) { control.current.value = value; control.current.disabled = disabled; } }, [value, disabled, signature, label, fixed]);- return <div ref={mount} class={className} />;-}--/** 写入只执行一次,离页取消等待,结果只交给仍挂载的表单。 */-export function useSubmitAction(button: RefObject<HTMLButtonElement>, initialError = '') {- const busy = useRef(false);- const lifetime = useRef(new AbortController());- const [error, setError] = useState(initialError);- useEffect(() => () => lifetime.current.abort(), []);- async function run<T>(write: (signal: AbortSignal) => Promise<T>, success: (result: T) => void,- failure?: (cause: unknown) => void) {- if (busy.current || lifetime.current.signal.aborted) return;- busy.current = true; setError(''); setActionBusy(button.current, true);- try {- const result = await write(lifetime.current.signal);- if (!lifetime.current.signal.aborted) success(result);- } catch (cause) {- if (!lifetime.current.signal.aborted) { if (failure) failure(cause); else setError(errorMessage(cause)); }- } finally { busy.current = false; if (!lifetime.current.signal.aborted) setActionBusy(button.current, false); }- }- return { run, error, setError, busy };-}--export function SettingsSection({ id, titleId, title, help, error, children, footer, onSubmit, formRef, noValidate, warning }: {- id?: string; titleId: string; title: string; help?: ComponentChildren; error?: string;- children: ComponentChildren; footer: ComponentChildren; onSubmit: JSX.GenericEventHandler<HTMLFormElement>;- formRef?: RefObject<HTMLFormElement>; noValidate?: boolean; warning?: boolean;-}) {- return <form id={id} class="configfieldset" data-geist-fieldset data-fieldset-type={warning ? 'warning' : undefined}- aria-labelledby={titleId} onSubmit={onSubmit} ref={formRef ?? null} noValidate={noValidate}>- <div class="geist-fieldset-content">- <div class="configfieldset-heading"><div dangerouslySetInnerHTML={{ __html: fieldsetTitle(titleId, title) }} />- {help && <p class="confighelp">{help}</p>}</div>- {children}{error && <p class="configbad" role="alert">{error}</p>}- </div>- {footer && <footer class="geist-fieldset-footer" data-geist-fieldset-footer>{footer}</footer>}- </form>;-}diff --git a/frontend/test/automatic-updates.test.tsx b/frontend/test/automatic-updates.test.tsxdeleted file mode 100644index e10947f18..000000000--- a/frontend/test/automatic-updates.test.tsx+++ /dev/null@@ -1,39 +0,0 @@-import { render } from 'preact';-import { act } from 'preact/test-utils';-import { afterEach, expect, it, vi } from 'vitest';-import { AutomaticUpdateSettings } from '../src/islands/automatic-updates';--// @ts-expect-error 遗留组件使用正式实现验证控件。-vi.mock('@peach/legacy/ui', () => import('../../web/js/ui-components.js'));-const host = document.createElement('div');-afterEach(() => { render(null, host); host.remove(); vi.unstubAllGlobals(); });-const initial = {mode:'off',interval_hours:24,available:true,download_available:true};--it('开关互相约束,保存服务端成功后才回执,关闭可持久保存', async () => {- const receipt = vi.fn();- const fetch = vi.fn(async (_url: string, _init: RequestInit) => ({ok:true,status:200,json:async () => initial}));- vi.stubGlobal('fetch', fetch); document.body.append(host);- await act(() => render(<AutomaticUpdateSettings initial={initial} receipt={receipt} />,host));- const controls = host.querySelectorAll<HTMLInputElement>('[role="switch"]');- expect(controls[1]!.disabled).toBe(true);- await act(() => controls[0]!.click());- expect(controls[1]!.disabled).toBe(false);- await act(() => controls[1]!.click());- await act(() => host.querySelector('form')!.requestSubmit());- expect(JSON.parse(fetch.mock.calls[0]![1].body as string)).toEqual({mode:'download',interval_hours:24});- await vi.waitFor(() => expect(receipt).toHaveBeenCalledWith('已保存自动更新设置'));- await act(() => controls[0]!.click());- await act(() => host.querySelector('form')!.requestSubmit());- expect(JSON.parse(fetch.mock.calls[1]![1].body as string).mode).toBe('off');- await vi.waitFor(() => expect(receipt).toHaveBeenCalledTimes(2));-});--it('源码运行禁用自动下载,失败原因留在表单且不报成功', async () => {- const receipt = vi.fn();- vi.stubGlobal('fetch', vi.fn(async () => ({ok:false,status:400,json:async () => ({detail:'设置正在保存'})})));- await act(() => render(<AutomaticUpdateSettings initial={{...initial,mode:'check',download_available:false}} receipt={receipt} />,host));- expect(host.querySelectorAll<HTMLInputElement>('[role="switch"]')[1]!.disabled).toBe(true);- await act(() => host.querySelector('form')!.requestSubmit());- await vi.waitFor(() => expect(host.querySelector('[role="alert"]')?.textContent).toContain('设置正在保存'));- expect(receipt).not.toHaveBeenCalled();-});diff --git a/frontend/test/clouddrive-guide.test.tsx b/frontend/test/clouddrive-guide.test.tsxdeleted file mode 100644index 1c826a78e..000000000--- a/frontend/test/clouddrive-guide.test.tsx+++ /dev/null@@ -1,25 +0,0 @@-import { render } from 'preact';-import { expect, it, vi } from 'vitest';-import { CloudDriveGuide } from '../src/islands/clouddrive-guide';-import { Configuration } from '../src/islands/configuration';--it('配置与首次设置共用按硬盘分档的建议,并链接官方说明', () => {- const host=document.createElement('div');document.body.append(host);- render(<CloudDriveGuide />,host);- expect(host.querySelectorAll('.cloudguide-table tbody tr')).toHaveLength(3);- expect([...host.querySelectorAll('.cloudguide-table thead th')].map(th=>th.textContent)).toEqual(['缓存所在硬盘','缓存上限','读取长度(默认 / 最小)','同时处理视频']);- expect([...host.querySelectorAll('.cloudguide-table tbody th')].every(th=>th.getAttribute('scope')==='row')).toBe(true);- expect(host.textContent).toContain('256 / 128 KB');- expect(host.textContent).toContain('上限不要填 0');- expect(host.querySelector('details')?.open).toBe(false);- // 页内只留「填哪里、填多少、怎么确认」,换算与取证在仓库那一份文档里,所以这里必有它的链接。- expect([...host.querySelectorAll('a')].map(a=>a.href)).toEqual([- 'https://www.clouddrive2.com/help.html',- 'https://github.com/longmeidao/peach/blob/master/docs/CLOUDDRIVE.md',- ]);- const data={editable:true,notice:'',revision:'test',media_dirs:['B:\\Media'],media_sources:[{location:'115',root:'B:\\',path:'B:\\Media'}],port:9123,facts:[]};- render(<Configuration data={data} error="" receipt={vi.fn()} />,host);- expect(host.querySelector('.cloudguide')).not.toBeNull();- render(<Configuration key="local" data={{...data,media_sources:[{location:'local',root:'R:\\',path:'R:\\Media'}]}} error="" receipt={vi.fn()} />,host);- expect(host.querySelector('.cloudguide')).toBeNull();host.remove();-});diff --git a/frontend/test/configuration.test.tsx b/frontend/test/configuration.test.tsxindex 2c702a395..6df9d83a2 100644--- a/frontend/test/configuration.test.tsx+++ b/frontend/test/configuration.test.tsx@@ -1,306 +1,61 @@import { render } from 'preact';-import { afterEach, describe, expect, it, vi } from 'vitest';-import * as legacyUi from '@peach/legacy/ui';+import { afterEach, expect, it, vi } from 'vitest';-import {- CONFIGURATION_URL, Configuration, PICK_FOLDER_URL, loadConfiguration,-} from '../src/islands/configuration';+import { CONFIGURATION_URL } from '../src/configuration-endpoints';+import { Configuration, loadConfiguration } from '../src/islands/configuration';import type { ConfigurationData } from '../src/islands/configuration';-const data = (over: Partial<ConfigurationData> = {}): ConfigurationData => ({- editable: true,- notice: '',- revision: 'rev-1',- media_dirs: ['D:\\Media'],- port: 9123,- facts: [{ term: '版本', value: '0.7.25' }, { term: 'FFmpeg', value: '内置' }],- ...over,-});--const mount = (props: Partial<ConfigurationData> = {}, receipt = vi.fn()) => {- const el = document.createElement('div');- document.body.append(el);- render(<Configuration receipt={receipt} data={data(props)} error="" />, el);- return { el, receipt };-};+// 分区本身由 `test/react/` 的用例覆盖;这里只看外壳把哪一组交给哪个挂载点。+vi.mock('../src/react-slot', () => ({+ ReactSlot: ({ mount }: { mount: string }) => <div data-slot={mount} />,+}));-const inputs = (el: Element) => [...el.querySelectorAll<HTMLInputElement>('.configdir > input')];-const submit = (el: Element) => {- el.querySelector('form')?.dispatchEvent(new Event('submit', { cancelable: true }));-};-// Preact 把状态更新攒到微任务里再画;输入之后、提交之前都要等它落地。-const settle = async () => {- for (let i = 0; i < 4; i += 1) await Promise.resolve();-};--it('配置以通用媒体网络和维护分组,缺少通用选项时省略标题', () => {- const {el}=mount({startup:{available:true,enabled:false,silent:true,message:'',desktop:false,desktop_message:''},peach_proxy:{mode:'direct',proxy_saved:false,needs_selection:false}});- expect([...el.querySelectorAll('.configgroup')].map(e=>e.textContent)).toEqual(['通用','媒体','网络与访问','更新与维护']);- expect(el.querySelector('#peachProxy .configfieldset-heading #peachProxyTitle')).not.toBeNull();- expect(el.querySelector('#peachProxy .configfieldset-heading > .confighelp')?.textContent).toContain('共用此设置');- const readonly=mount({editable:false});- expect([...readonly.el.querySelectorAll('.configgroup')].map(e=>e.textContent)).toEqual(['媒体','更新与维护']);+const data = (over: Partial<ConfigurationData> = {}): ConfigurationData => ({+ editable: true, notice: '', revision: 'rev-1', media_dirs: ['D:\\Media'], port: 9123, facts: [], ...over,});-type FetchCall = [string, RequestInit];-const fetchMock = (status: number, body: unknown) => vi.fn<(...call: FetchCall) => Promise<unknown>>(- async () => ({ ok: status < 400, status, json: async () => body }),-);afterEach(() => {- vi.restoreAllMocks();- vi.useRealTimers();for (const el of [...document.body.children]) render(null, el);document.body.innerHTML = '';vi.unstubAllGlobals();});-it('托盘管理访问端口时仅展示媒体配置和对应保存说明', () => {- const { el } = mount({ port_editable: false });- expect(el.querySelector('#configPort')).toBeNull();- expect(el.textContent).toContain('保存后 Peach 会重新载入配置。');- expect(el.querySelector('form')).not.toBeNull();-});--it('缺失依赖提供带图标的新窗口下载链接且已安装依赖不提示', () => {- const { el } = mount({- media_sources: [{ location: '115', root: 'B:\\', path: 'B:\\' }],- mount_dependencies: [- { name: 'CloudDrive', available: false, download_url: 'https://www.clouddrive2.com/download.html' },- { name: 'WinFsp', available: true, download_url: 'https://winfsp.dev/rel/' },- ],- facts: [{ term: 'FFmpeg', value: '未找到 FFmpeg', download_url: 'https://ffmpeg.org/download.html', download_label: '下载 FFmpeg' }],- });- for (const href of ['https://www.clouddrive2.com/download.html', 'https://ffmpeg.org/download.html']) {- const link = el.querySelector(`a[href="${href}"]`);- expect(link?.getAttribute('target')).toBe('_blank');- expect(link?.querySelector('use')?.getAttribute('href')).toBe('#i-external-link');- }- expect(el.textContent).not.toContain('下载 WinFsp');- expect(el.querySelector('[aria-labelledby="configMountsTitle"] > .geist-fieldset-footer button')?.textContent).toBe('刷新挂载状态');-});--describe('配置页取数', () => {- it('刷新恢复已准备的更新并弹出重启选择,确认前不发送重启', async () => {- vi.useFakeTimers();- const modal = vi.spyOn(legacyUi,'confirmModal');- const fetch = fetchMock(200,{state:'restarting',progress:0});- vi.stubGlobal('fetch',fetch);- const initial = {current_version:'0.9.0',latest_version:null,channel:'测试版',installation:'独立测试包',state:'unchecked',message:'尚未检查',release_url:'https://github.com/longmeidao/peach/releases'};- const {el} = mount({updates:initial,update_job:{state:'ready',progress:100,version:'0.10.0'}});- await vi.advanceTimersByTimeAsync(100);- expect(el.querySelector('[role="progressbar"]')?.getAttribute('aria-valuenow')).toBe('100');- expect(modal).toHaveBeenCalledTimes(1);- expect(modal.mock.calls[0]?.[0]).toMatchObject({title:'更新已准备好',confirmLabel:'立即重启',cancelLabel:'稍后'});- expect(fetch.mock.calls.filter(([url]) => url.startsWith('/api/configuration/update'))).toHaveLength(0);- await modal.mock.calls[0]?.[0].onConfirm?.();- expect(fetch.mock.calls.some(([url]) => url === '/api/configuration/update-restart')).toBe(true);- });- it('版本字段组显式查询测试版,失败后可重试且保留焦点', async () => {- const initial = {current_version:'0.9.0',latest_version:null,channel:'测试版',installation:'独立测试包',state:'unchecked',message:'尚未检查',release_url:'https://github.com/longmeidao/peach/releases'};- const {el} = mount({updates:initial});- const section = el.querySelector('[aria-labelledby="configUpdatesTitle"]')!;- const button = section.querySelector('button')!;- expect(section.textContent).toContain('当前版本0.9.0');- const fetch = fetchMock(200, {...initial,latest_version:'0.10.0',state:'available',message:'有新版本可下载。'});- vi.stubGlobal('fetch',fetch);- button.focus(); button.click(); button.click();- expect(fetch).toHaveBeenCalledTimes(1);- await settle();- expect(fetch.mock.calls[0]?.[0]).toBe('/api/configuration/updates');- expect(section.textContent).toContain('最新版本0.10.0');- expect(section.textContent).toContain('下载并安装');- expect(document.activeElement).toBe(button);- vi.stubGlobal('fetch',fetchMock(503,{detail:'连接失败'}));- button.click(); await settle();- expect(section.querySelector('[role="alert"]')?.textContent).toBe('连接失败');- expect(section.textContent).not.toContain('0.10.0');- expect(button.disabled).toBe(false);- });- it('首屏走 /api/configuration 并带上中止信号', async () => {- const fetch = fetchMock(200, data());- vi.stubGlobal('fetch', fetch);- const controller = new AbortController();- await loadConfiguration({ receipt: vi.fn() }, controller.signal);- const [url, init] = fetch.mock.calls[0] ?? [];- expect(url).toBe(CONFIGURATION_URL);- expect(init?.signal).toBe(controller.signal);- });-});--describe('媒体文件夹列表', () => {- it('Windows 只显示本机路径,CloudDrive 帮助跟随来源', async () => {- const { el } = mount({ windows: true, media_sources: [{location:'local',root:'D:/',path:'D:/'}] });- expect(el.textContent).not.toContain('Windows 中的对应路径');- expect(el.textContent).not.toContain('挂载帮助');- expect(el.querySelector('select')).toBeNull();- const select = el.querySelector<HTMLElement>('.gselect:has([aria-label="媒体来源 1"])')!;- select.dataset.value = '115'; select.dispatchEvent(new Event('change')); await settle();- expect(el.textContent).toContain('挂载帮助');- expect(el.textContent).not.toContain('macOS');- });- it('映射路径与本机文件夹成组,挂载状态保留文字与颜色', () => {- const { el } = mount({windows:false, media_sources:[- {location:'115',root:'B:/',path:'/Volumes/115',online:true},- {location:'pikpak',root:'A:/',path:'/Volumes/PikPak',online:false},- {location:'local',root:'D:/',path:'/Volumes/Media'},- ]});- expect(el.querySelectorAll('.configdir')).toHaveLength(3);- expect(el.querySelectorAll('[aria-label^="Windows 中的对应路径"]')).toHaveLength(3);- expect(el.querySelector('.configstatus.online')?.textContent).toBe('在线');- expect(el.querySelector('.configstatus.offline')?.textContent).toBe('离线');- expect(el.querySelector('.configstatus.unknown')?.textContent).toBe('未检测');- expect([...el.querySelectorAll('.configfacts [data-source-icon]')].map(node => node.getAttribute('data-source-icon')))- .toEqual(['fixture-115', 'fixture-pikpak', 'hard-drive']);- });- it('刷新挂载状态保留未保存的路径', async () => {- const media_sources = [{ location: '115', path: 'B:/', root: 'B:/', online: false }];- vi.stubGlobal('fetch', fetchMock(200, data({media_sources: [{ ...media_sources[0]!, online: true }]})));- const { el } = mount({ windows: true, media_sources });- const input = inputs(el)[0]!;- input.value = 'B:/Movies'; input.dispatchEvent(new Event('input')); await settle();- [...el.querySelectorAll<HTMLButtonElement>('button')].find((button) => button.textContent === '刷新挂载状态')?.click();- await settle();- expect(inputs(el)[0]?.value).toBe('B:/Movies');- expect(el.textContent).toContain('在线');- });- it('按来源回填所有挂载点,提交时保留 macOS 盘符映射', async () => {- const fetch = fetchMock(200, { saved: true, url: '/', revision: 'rev-2' });- vi.stubGlobal('fetch', fetch);- const { el } = mount({ windows: false, media_sources: [- { location: '115', root: 'B:\\', path: '/Volumes/115', online: false, library: '收藏', library_icon: 'heart' },- { location: 'pikpak', root: 'A:\\', path: '/Volumes/PikPak', online: true },- ] });- expect(inputs(el).map((input) => input.value)).toEqual(['/Volumes/115', '/Volumes/PikPak']);- expect(el.textContent).toContain('离线');- expect(el.textContent).toContain('在线');- submit(el); await settle();- const body = JSON.parse(String(fetch.mock.calls[0]?.[1].body));- expect(body.media_sources).toEqual([- { location: '115', root: 'B:\\', path: '/Volumes/115', library: '收藏', library_icon: 'heart' },- { location: 'pikpak', root: 'A:\\', path: '/Volumes/PikPak', library: '', library_icon: '' },- ]);- });- it('一行一个文件夹,只有一行时没有移除键', () => {- const { el } = mount();- expect(inputs(el).map((input) => input.value)).toEqual(['D:\\Media']);- expect(el.querySelector('.configrm')).toBeNull();- });-- it('添加文件夹是次级按钮,新行接过焦点,之后每行都能移除', async () => {- const { el } = mount();- const add = el.querySelector<HTMLButtonElement>('.configadd');- expect(add?.classList.contains('primary'), '每屏只有「保存配置」一个主动作').toBe(false);- add?.click();- await settle();- expect(inputs(el)).toHaveLength(2);- expect(document.activeElement).toBe(inputs(el)[1]);- expect(el.querySelectorAll('.configrm')).toHaveLength(2);- el.querySelectorAll<HTMLButtonElement>('.configrm')[0]?.click();- await settle();- expect(inputs(el)).toHaveLength(1);- expect(inputs(el)[0]?.value).toBe('');- });-});--describe('选择文件夹', () => {- it('让这台电脑弹系统对话框,选中的路径填回这一行', async () => {- const fetch = fetchMock(200, { path: 'E:\\Movies' });- vi.stubGlobal('fetch', fetch);- const { el } = mount();- const pickButtons = el.querySelectorAll('.configpick');- expect(pickButtons).toHaveLength(1);- expect(inputs(el)[0]?.nextElementSibling).toBe(pickButtons[0]);- el.querySelector<HTMLButtonElement>('.configpick')?.click();- await settle();- const [url, init] = fetch.mock.calls[0] ?? [];- expect(url).toBe(PICK_FOLDER_URL);- expect(init?.method).toBe('POST');- expect(JSON.parse(String(init?.body))).toEqual({ initial: 'D:\\Media' });- expect(inputs(el)[0]?.value).toBe('E:\\Movies');- expect(el.querySelector('.configpick')?.getAttribute('aria-busy'), '对话框关了忙态要撤掉').toBeNull();- });-- it('取消什么也不改;打不开对话框时原因写在这一行下面', async () => {- vi.stubGlobal('fetch', fetchMock(200, { path: null }));- const { el } = mount();- el.querySelector<HTMLButtonElement>('.configpick')?.click();- await settle();- expect(inputs(el)[0]?.value).toBe('D:\\Media');- expect(el.querySelector('.configbad')).toBeNull();- vi.stubGlobal('fetch', fetchMock(501, { error: '这个系统上没有可用的文件夹对话框' }));- el.querySelector<HTMLButtonElement>('.configpick')?.click();- await settle();- expect(el.querySelector('.configdir .configbad')?.textContent).toContain('没有可用的文件夹对话框');- });-});--describe('保存', () => {- it('提交带上指纹、全部文件夹、端口与是否扫描,成功后发过去时回执并留下新地址', async () => {- const fetch = fetchMock(200, { saved: true, url: 'http://127.0.0.1:9124/', revision: 'rev-2' });- vi.stubGlobal('fetch', fetch);- const { el, receipt } = mount();- const port = el.querySelector<HTMLInputElement>('#configPort');- if (!port) throw new Error('端口输入框没有画出来');- port.value = '9124';- port.dispatchEvent(new Event('input'));- await settle();- submit(el);- await settle();- const [url, init] = fetch.mock.calls[0] ?? [];- expect(url).toBe(CONFIGURATION_URL);- expect(init?.method).toBe('POST');- expect(JSON.parse(String(init?.body))).toEqual({- revision: 'rev-1', media_dirs: ['D:\\Media'], port: '9124', scan_now: false,- });- expect(receipt).toHaveBeenCalledWith('已保存配置');- expect(el.querySelector('.geist-note-success')?.textContent).toContain('正在重新启动');- expect(el.querySelector('.geist-note-success a')?.previousSibling?.textContent).toMatch(/点击$/);- expect(el.querySelector('.configsaved > .confighelp')).toBeNull();- expect(el.querySelector<HTMLAnchorElement>('.configsaved a')?.getAttribute('href'))- .toBe('http://127.0.0.1:9124/');- expect(el.querySelector('form'), '保存后表单不再留在页面上').toBeNull();- });-- it('服务端按字段退回的原因写回原位,不发回执', async () => {- vi.stubGlobal('fetch', fetchMock(400, {- error: '有几项需要修改',- errors: { media_dirs: ['', '和上面的文件夹重复了'], port: '端口要在 1024 到 65535 之间' },- }));- const { el, receipt } = mount({ media_dirs: ['D:\\Media', 'D:\\Media'] });- submit(el);- await settle();- const rows = el.querySelectorAll('.configdir');- expect(rows[0]?.querySelector('.configbad')).toBeNull();- expect(rows[1]?.querySelector('.configbad')?.textContent).toBe('和上面的文件夹重复了');- expect(inputs(el)[1]?.getAttribute('aria-invalid')).toBe('true');- expect(el.querySelector('#configPort + .configbad')?.textContent).toContain('端口');- expect(receipt).not.toHaveBeenCalled();- expect(el.querySelector('.geist-note-error'), '字段级原因不再叠一条整体 Note').toBeNull();- });-- it('其它失败留在表单下方等重试', async () => {- vi.stubGlobal('fetch', fetchMock(409, { error: '配置已变更,请刷新后再保存' }));- const { el } = mount();- submit(el);- await settle();- expect(el.querySelector('.geist-note-error')?.textContent).toContain('配置已变更');- expect(el.querySelector('form')).not.toBeNull();- expect(el.querySelector('.geist-button.primary')?.getAttribute('aria-busy'), '失败后忙态要撤掉').toBeNull();- });-});--describe('不能编辑时', () => {- it('只说原因和运行信息,不画表单', () => {- const { el } = mount({ editable: false, notice: '请在运行 Peach 的电脑上打开配置' });- expect(el.querySelector('form')).toBeNull();- expect(el.querySelector('.geist-note-secondary')?.textContent).toContain('请在运行 Peach 的电脑上打开配置');- expect([...el.querySelectorAll('.configfacts dt')].map((dt) => dt.textContent)).toEqual(['版本', 'FFmpeg']);- });-- it('首屏取数失败时画原因', () => {- const el = document.createElement('div');- document.body.append(el);- render(<Configuration receipt={vi.fn()} data={null} error="请先完成首次设置" />, el);- expect(el.querySelector('.geist-note-error')?.textContent).toContain('请先完成首次设置');- });+const draw = (state: { data: ConfigurationData | null; error?: string }) => {+ const el = document.createElement('div');+ document.body.append(el);+ render(<Configuration receipt={vi.fn()} data={state.data} error={state.error ?? ''} />, el);+ return el;+};+const groups = (el: Element) => [...el.querySelectorAll('.configgroup')]+ .map((title) => [title.textContent, title.nextElementSibling?.getAttribute('data-slot')]);++it('每组小标题后面紧跟它的分区,没有内容的组连标题一起省略', () => {+ const startup = { available: true, enabled: false, silent: true, message: '', desktop: false, desktop_message: '' };+ const full = draw({ data: data({ startup, peach_proxy: { mode: 'direct', proxy_saved: false, needs_selection: false } }) });+ expect(groups(full)).toEqual([+ ['通用', 'mountGeneralSettings'],+ ['媒体', 'mountMediaSettings'],+ ['网络与访问', 'mountNetworkSettings'],+ ['更新与维护', 'mountMaintenanceSettings'],+ ]);+ const access = draw({ data: data({ access: { mode: 'open', revision: 'r' } }) });+ expect(groups(access).map(([title]) => title)).toEqual(['媒体', '网络与访问', '更新与维护']);+ const readonly = draw({ data: data({ editable: false }) });+ expect(groups(readonly).map(([title]) => title)).toEqual(['媒体', '更新与维护']);+});++it('首屏走 /api/configuration 并带上中止信号', async () => {+ const fetch = vi.fn(async (_url: string, _init: RequestInit) => ({ ok: true, status: 200, json: async () => data() }));+ vi.stubGlobal('fetch', fetch);+ const controller = new AbortController();+ await loadConfiguration({ receipt: vi.fn() }, controller.signal);+ const [url, init] = fetch.mock.calls[0] ?? [];+ expect(url).toBe(CONFIGURATION_URL);+ expect(init?.signal).toBe(controller.signal);+});++it('首屏取数失败时画原因', () => {+ const el = draw({ data: null, error: '请先完成首次设置' });+ expect(el.querySelector('.geist-note-error')?.textContent).toContain('请先完成首次设置');+ expect(el.querySelector('.configgroup')).toBeNull();});diff --git a/frontend/test/desktop-settings.test.tsx b/frontend/test/desktop-settings.test.tsxdeleted file mode 100644index 759d8963e..000000000--- a/frontend/test/desktop-settings.test.tsx+++ /dev/null@@ -1,58 +0,0 @@-import { render } from 'preact';-import { act } from 'preact/test-utils';-import { afterEach, expect, it, vi } from 'vitest';-import { StartupSettings, UninstallSettings } from '../src/islands/desktop-settings';-import { preferredDirection } from '../src/sort-preferences';--// 交互回归直接使用浏览器共用模块,包含 Collapse 的真实接线。-// @ts-expect-error 遗留 JS 的声明由正式 alias 提供。-vi.mock('@peach/legacy/ui',()=>import('../../web/js/ui-components.js'));-// @ts-expect-error 遗留 JS 的声明由正式 alias 提供。-vi.mock('@peach/legacy/core',()=>import('../../web/js/core.js'));--afterEach(()=>{document.body.replaceChildren();vi.unstubAllGlobals();});-it('自启保存实际选项,卸载默认保留数据',async()=>{- const fetch = vi.fn(async(_url:string,_init:RequestInit)=>({ok:true,json:async()=>({})}));vi.stubGlobal('fetch',fetch);- const host=document.createElement('div');document.body.append(host);- await act(async()=>render(<><StartupSettings startup={{available:true,enabled:false,silent:true,message:'',desktop:false,desktop_message:''}} receipt={()=>{}} />- <UninstallSettings uninstall={{available:true,full_available:true,message:'',data_root:'fixture',directories:[]}} /></>,host));- expect(host.querySelector('#uninstallPeach .configfieldset-heading #uninstallTitle')).not.toBeNull();- expect(host.querySelector('#uninstallPeach .configfieldset-heading > .confighelp')?.textContent).toContain('原始媒体文件保留');- const boxes=host.querySelectorAll<HTMLInputElement>('input');- expect(host.querySelectorAll('[role="switch"]')).toHaveLength(3);- expect(host.querySelector('form button')?.textContent).toBe('保存配置');- expect(fetch).not.toHaveBeenCalled();- // 桌面快捷方式那颗开关排在静默启动之后,卸载的复选框因此退到第 4 个。- expect(boxes[3]!.checked).toBe(false);- expect(boxes[2]!.disabled).toBe(false);- expect(boxes[1]!.disabled).toBe(true);- expect(host.querySelector('[data-fieldset-type=error]')).not.toBeNull();- const summary=host.querySelector('summary')!;- expect(summary.getAttribute('aria-expanded')).toBe('false');- expect(host.querySelector('.fcollapse')).not.toBeNull();- await act(async()=>{summary.click();});- expect(summary.getAttribute('aria-expanded')).toBe('true');- await act(async()=>{boxes[0]!.checked=true;boxes[0]!.dispatchEvent(new Event('change',{bubbles:true}));});- expect(boxes[1]!.disabled).toBe(false);- await act(async()=>{host.querySelector('form')!.dispatchEvent(new Event('submit',{bubbles:true,cancelable:true}));});- expect(JSON.parse(String(fetch.mock.calls[0]![1].body))).toEqual({enabled:true,silent:true,desktop:false});- render(null,host);-});-it('桌面快捷方式被别的安装占着时,那颗开关锁住并说出原因',async()=>{- // 只锁住这一颗。桌面上摆着另一份 Peach 的图标不该连开机自启都不让改,那一格自己还是好的。- const host=document.createElement('div');document.body.append(host);- const startup={available:true,enabled:true,silent:true,message:'',desktop:false,desktop_message:'桌面快捷方式属于另一份 Peach 安装'};- await act(async()=>render(<StartupSettings startup={startup} receipt={()=>{}} />,host));- const switches=host.querySelectorAll<HTMLInputElement>('[role="switch"]');- expect(switches[2]!.disabled).toBe(true);- expect(switches[0]!.disabled).toBe(false);- expect(host.querySelector('form button')?.hasAttribute('disabled')).toBe(false);- expect([...host.querySelectorAll('.confighelp')].map(node=>node.textContent))- .toContain('桌面快捷方式属于另一份 Peach 安装');- render(null,host);-});-it('随机无方向,首页偏好与其他排序分别解析',()=>{- expect(preferredDirection('seed','seed','asc')).toBe('');- expect(preferredDirection('new','new','asc')).toBe('asc');- expect(preferredDirection('rating','new','asc')).toBe('desc');-});diff --git a/frontend/test/library-icon-picker.test.tsx b/frontend/test/library-icon-picker.test.tsxdeleted file mode 100644index 2e1f35488..000000000--- a/frontend/test/library-icon-picker.test.tsx+++ /dev/null@@ -1,40 +0,0 @@-import { afterEach, expect, it, vi } from 'vitest';-import { h, render } from 'preact';-import { act } from 'preact/test-utils';-import { LibraryIconPicker, LIBRARY_ICON_CHOICES, libraryAutoChoice } from '../src/library-icon-picker';-let root:HTMLDivElement;-afterEach(()=>{render(null,root);document.body.innerHTML=''});-it('一行七枚排满六行,不另选时网盘库显示站标、本地路径就是默认磁盘',async()=>{- expect(LIBRARY_ICON_CHOICES).toHaveLength(42);- expect(new Set(LIBRARY_ICON_CHOICES.map(([key])=>key)).size).toBe(42);- expect(libraryAutoChoice('local')).toEqual(['hard-drive','默认']);- expect(libraryAutoChoice('115')[1]).toBe('自动识别');- expect(libraryAutoChoice('115')[0]).toBe('fixture-115');- root=document.createElement('div');document.body.append(root);- await act(async()=>render(h(LibraryIconPicker,{label:'媒体库图标',value:'',kind:'local',onChange:()=>{}}),root));- expect(root.querySelector('.board-icon-trigger span:last-child')!.textContent).toBe('默认');- expect(root.querySelector('.board-icon-trigger [data-source-icon]')!.getAttribute('data-source-icon')).toBe('hard-drive');- await act(async()=>render(h(LibraryIconPicker,{label:'媒体库图标',value:'',kind:'115',onChange:()=>{}}),root));- expect(root.querySelector('.board-icon-trigger span:last-child')!.textContent).toBe('自动识别');- expect(root.querySelector('.board-icon-trigger [data-source-icon]')!.getAttribute('data-source-icon')).toBe('fixture-115');- await act(async()=>root.querySelector<HTMLButtonElement>('.board-icon-trigger')!.click());- expect(root.querySelector('.board-icon-grid label[title=自动识别] [data-source-icon]')!.getAttribute('data-source-icon')).toBe('fixture-115');-});-it('候选图标不包含网盘,取消保持原值,应用才提交草稿',async()=>{- expect(LIBRARY_ICON_CHOICES.some(([value])=>['115','pikpak'].includes(value))).toBe(false);- root=document.createElement('div');document.body.append(root);const change=vi.fn();- await act(async()=>render(h(LibraryIconPicker,{label:'媒体库图标',value:'heart',onChange:change}),root));- const dialog=root.querySelector('dialog')!;dialog.showModal=()=>dialog.setAttribute('open','');dialog.close=()=>dialog.removeAttribute('open');- await act(async()=>root.querySelector<HTMLButtonElement>('.board-icon-trigger')!.click());- // 格子只有图标,名字留在 title 与 aria-label 上。- expect(root.querySelector('.board-icon-grid small')).toBeNull();- expect(root.querySelector<HTMLLabelElement>('.board-icon-grid label[title=樱桃]')!.querySelector('input')!.getAttribute('aria-label')).toBe('樱桃');- await act(async()=>root.querySelector<HTMLInputElement>('input[value=cherry]')!.click());- expect(change).not.toHaveBeenCalled();- await act(async()=>root.querySelector<HTMLButtonElement>('footer button')!.click());- await act(async()=>root.querySelector<HTMLButtonElement>('.board-icon-trigger')!.click());- expect(root.querySelector<HTMLInputElement>('input[value=heart]')!.checked).toBe(true);- await act(async()=>root.querySelector<HTMLInputElement>('input[value=cherry]')!.click());- await act(async()=>root.querySelector<HTMLButtonElement>('footer button.primary')!.click());- expect(change).toHaveBeenCalledWith('cherry');-});diff --git a/frontend/test/react/general-network-settings.test.tsx b/frontend/test/react/general-network-settings.test.tsxnew file mode 100644index 000000000..cba1fde97--- /dev/null+++ b/frontend/test/react/general-network-settings.test.tsx@@ -0,0 +1,56 @@+import { expect, it, vi } from 'vitest';++import { StartupSettings } from '../../src/react/settings/general-settings';+import { PeachProxy } from '../../src/react/settings/network-settings';+import { buttonNamed, choose, click, fetchMock, mount, sentBody, settle, submit, switches, type } from './render';++const startup = { available: true, enabled: false, silent: true, message: '', desktop: false, desktop_message: '' };++it('开机自启:静默启动跟着开机自启解锁,保存发出三颗开关的实际值', async () => {+ const fetcher = fetchMock(200, {});+ vi.stubGlobal('fetch', fetcher);+ const receipt = vi.fn();+ const host = await mount(<StartupSettings startup={startup} receipt={receipt} />);+ expect(switches(host).map((input) => input.getAttribute('aria-label')))+ .toEqual(['开机后启动 Peach', '静默启动', '在桌面创建快捷方式']);+ expect(switches(host).map((input) => input.disabled)).toEqual([false, true, false]);+ expect(buttonNamed('保存配置', host)).not.toBeNull();+ await click(switches(host)[0]);+ expect(switches(host)[1]!.disabled).toBe(false);+ expect(fetcher).not.toHaveBeenCalled();+ await submit(host.querySelector('form'));+ await settle();+ expect(fetcher.mock.calls[0]?.[0]).toBe('/api/configuration/startup');+ expect(sentBody(fetcher)).toEqual({ enabled: true, silent: true, desktop: false });+ expect(receipt).toHaveBeenCalledWith('已保存开机自启');+});++it('桌面快捷方式被别的安装占着时只锁那一颗,并说出原因', async () => {+ // 桌面上摆着另一份 Peach 的图标不该连开机自启都不让改,那一格自己还是好的。+ const host = await mount(<StartupSettings+ startup={{ ...startup, enabled: true, desktop_message: '桌面快捷方式属于另一份 Peach 安装' }} receipt={vi.fn()} />);+ expect(switches(host).map((input) => input.disabled)).toEqual([false, false, true]);+ expect(buttonNamed('保存配置', host)?.disabled).toBe(false);+ expect(host.textContent).toContain('桌面快捷方式属于另一份 Peach 安装');+});++it('Peach 代理:选自定义才出地址栏,保存后清空地址并记住已保存', async () => {+ const fetcher = fetchMock(200, { mode: 'proxy', proxy_saved: true, needs_selection: false });+ vi.stubGlobal('fetch', fetcher);+ const receipt = vi.fn();+ const host = await mount(<PeachProxy initial={{ mode: 'direct', proxy_saved: false, needs_selection: true }} receipt={receipt} />);+ expect(host.querySelector('[role="note"]')?.textContent).toContain('请选择公共连接方式');+ expect(host.querySelector('#peachProxyAddress')).toBeNull();+ await choose(host.querySelector('[aria-haspopup="listbox"]'), '自定义');+ const address = host.querySelector<HTMLInputElement>('#peachProxyAddress');+ expect(address?.placeholder).toBe('http://127.0.0.1:7890');+ await type(address, 'http://127.0.0.1:7890');+ await submit(host.querySelector('form'));+ await settle();+ expect(sentBody(fetcher)).toEqual({ mode: 'proxy', proxy: 'http://127.0.0.1:7890' });+ expect(receipt).toHaveBeenCalledWith('已保存 Peach 代理');+ const saved = host.querySelector<HTMLInputElement>('#peachProxyAddress');+ expect(saved?.value).toBe('');+ expect(saved?.placeholder).toBe('已保存,留空保留');+ expect(host.querySelector('[role="note"]')).toBeNull();+});diff --git a/frontend/test/react/library-icon-picker.test.tsx b/frontend/test/react/library-icon-picker.test.tsxnew file mode 100644index 000000000..0ff92f7a0--- /dev/null+++ b/frontend/test/react/library-icon-picker.test.tsx@@ -0,0 +1,44 @@+import { expect, it, vi } from 'vitest';++import { LIBRARY_ICON_CHOICES, LibraryIconPicker, libraryAutoChoice } from '../../src/react/settings/library-icon-picker';+import { buttonNamed, click, mount } from './render';++const trigger = (root: ParentNode) => root.querySelector('[aria-haspopup="dialog"]');+const radio = (value: string) => document.querySelector<HTMLInputElement>(`input[type="radio"][value="${value}"]`);++it('42 枚候选各不相同;不另选时网盘库用站标,本地路径就是默认磁盘', async () => {+ const keys: string[] = LIBRARY_ICON_CHOICES.map(([key]) => key);+ expect(keys).toHaveLength(42);+ expect(new Set(keys).size).toBe(42);+ expect(keys).not.toContain('115');+ expect(keys).not.toContain('pikpak');+ expect(libraryAutoChoice('local')).toEqual(['hard-drive', '默认']);+ expect(libraryAutoChoice('115')).toEqual(['fixture-115', '自动识别']);+ const local = await mount(<LibraryIconPicker label="媒体库图标 1" value="" kind="local" onChange={vi.fn()} />);+ expect(trigger(local)?.textContent).toBe('默认');+ expect(trigger(local)?.querySelector('use')?.getAttribute('href')).toBe('#i-hard-drive');+ const cloud = await mount(<LibraryIconPicker label="媒体库图标 2" value="" kind="115" onChange={vi.fn()} />);+ expect(trigger(cloud)?.textContent).toBe('自动识别');+ await click(trigger(cloud));+ // 格子里只放图标,名字在无障碍名称上。+ expect(document.querySelectorAll('input[type="radio"]')).toHaveLength(42);+ expect(radio('auto')?.getAttribute('aria-label')).toBe('自动识别');+ expect(radio('auto')?.checked).toBe(true);+ expect(radio('auto')?.closest('label')?.querySelector('use')?.getAttribute('href')).toBe('#i-fixture-115');+ expect(radio('cherry')?.getAttribute('aria-label')).toBe('樱桃');+});++it('点选只改草稿,取消保持原值,应用才提交', async () => {+ const change = vi.fn();+ const host = await mount(<LibraryIconPicker label="媒体库图标 1" value="heart" onChange={change} />);+ await click(trigger(host));+ expect(radio('heart')?.checked).toBe(true);+ await click(radio('cherry'));+ expect(change).not.toHaveBeenCalled();+ await click(buttonNamed('取消'));+ await click(trigger(host));+ expect(radio('heart')?.checked).toBe(true);+ await click(radio('cherry'));+ await click(buttonNamed('应用'));+ expect(change).toHaveBeenCalledWith('cherry');+});diff --git a/frontend/test/react/maintenance-settings.test.tsx b/frontend/test/react/maintenance-settings.test.tsxnew file mode 100644index 000000000..7a5505576--- /dev/null+++ b/frontend/test/react/maintenance-settings.test.tsx@@ -0,0 +1,142 @@+import { act } from 'react';+import { describe, expect, it, vi } from 'vitest';+import * as legacyUi from '@peach/legacy/ui';++import type { ConfigurationData, ReleaseState } from '../../src/react/bundle';+import { AutomaticUpdates, MaintenanceSettings, UninstallSettings } from '../../src/react/settings/maintenance-settings';+import { ReleaseUpdates } from '../../src/react/settings/release-updates';+import { buttonNamed, choose, click, fetchMock, mount, section, sentBody, settle, submit, switches } from './render';++const automatic = { mode: 'off', interval_hours: 24, available: true, download_available: true };+const release: ReleaseState = {+ current_version: '0.9.0', latest_version: null, channel: '测试版', installation: '独立测试包',+ state: 'unchecked', message: '尚未检查', release_url: 'https://github.com/longmeidao/peach/releases',+};+const uninstall = { available: true, full_available: true, message: '', data_root: 'fixture', directories: ['fixture', 'fixture/cache'] };++it('分区依次是自动更新、检查更新、运行信息与卸载;缺依赖的那条运行信息带下载链接', async () => {+ const data: ConfigurationData = {+ editable: true, notice: '', revision: 'r', media_dirs: [], port: 9123,+ automatic_updates: automatic, updates: release, uninstall,+ facts: [+ { term: '版本', value: '0.7.25' },+ { term: 'FFmpeg', value: '未找到 FFmpeg', download_url: 'https://ffmpeg.org/download.html', download_label: '下载 FFmpeg' },+ ],+ };+ const host = await mount(<MaintenanceSettings data={data} receipt={vi.fn()} />);+ expect([...host.firstElementChild!.children].map((node) => node.getAttribute('aria-label')))+ .toEqual(['自动更新', '检查更新', '运行信息', '卸载 Peach']);+ const facts = section(host, '运行信息')!;+ expect([...facts.querySelectorAll('dt')].map((dt) => dt.textContent)).toEqual(['版本', 'FFmpeg']);+ const link = facts.querySelector('a[href="https://ffmpeg.org/download.html"]');+ expect(link?.getAttribute('target')).toBe('_blank');+ expect(link?.textContent).toBe('下载 FFmpeg');+});++describe('自动更新', () => {+ it('两颗开关互相约束,服务端成功后才回执,关闭也能保存', async () => {+ const fetcher = fetchMock(200, automatic);+ vi.stubGlobal('fetch', fetcher);+ const receipt = vi.fn();+ const host = await mount(<AutomaticUpdates initial={automatic} receipt={receipt} />);+ expect(switches(host)[1]!.disabled).toBe(true);+ await click(switches(host)[0]);+ expect(switches(host)[1]!.disabled).toBe(false);+ await click(switches(host)[1]);+ await choose(host.querySelector('[aria-haspopup="listbox"]'), '每周');+ await submit(host.querySelector('form'));+ await settle();+ expect(sentBody(fetcher)).toEqual({ mode: 'download', interval_hours: 168 });+ expect(receipt).toHaveBeenCalledWith('已保存自动更新设置');+ await click(switches(host)[0]);+ await submit(host.querySelector('form'));+ await settle();+ expect(sentBody(fetcher, 1)).toEqual({ mode: 'off', interval_hours: 168 });+ expect(receipt).toHaveBeenCalledTimes(2);+ });++ it('源码运行锁住自动下载,失败原因留在分区里且不报成功', async () => {+ vi.stubGlobal('fetch', fetchMock(400, { detail: '设置正在保存' }));+ const receipt = vi.fn();+ const host = await mount(<AutomaticUpdates initial={{ ...automatic, mode: 'check', download_available: false }} receipt={receipt} />);+ expect(switches(host)[1]!.disabled).toBe(true);+ expect(host.textContent).toContain('源码运行请前往发布页获取新版本。');+ await submit(host.querySelector('form'));+ await settle();+ expect(host.querySelector('[role="alert"]')?.textContent).toContain('设置正在保存');+ expect(receipt).not.toHaveBeenCalled();+ });+});++describe('检查更新', () => {+ it('刷新后接着已准备好的更新,弹一次重启确认,确认前不发重启', async () => {+ vi.useFakeTimers();+ const modal = vi.spyOn(legacyUi, 'confirmModal');+ const fetcher = fetchMock(200, { state: 'restarting', progress: 0 });+ vi.stubGlobal('fetch', fetcher);+ const host = await mount(<ReleaseUpdates initial={release} initialJob={{ state: 'ready', progress: 100, version: '0.10.0' }} />);+ expect(host.querySelector('[role="progressbar"]')?.getAttribute('aria-valuenow')).toBe('100');+ expect(modal).toHaveBeenCalledTimes(1);+ expect(modal.mock.calls[0]?.[0]).toMatchObject({+ title: '更新已准备好', body: 'Peach 0.10.0 将在重启后安装。', confirmLabel: '立即重启', cancelLabel: '稍后',+ });+ expect(fetcher).not.toHaveBeenCalled();+ await act(async () => { await modal.mock.calls[0]?.[0].onConfirm?.(); });+ expect(fetcher.mock.calls.map(([url]) => url)).toEqual(['/api/configuration/update-restart']);+ });++ it('显式查询更新,连点只发一次,失败后可重试且焦点留在原处', async () => {+ const host = await mount(<ReleaseUpdates initial={release} />);+ const updates = section(host, '检查更新')!;+ const check = buttonNamed('检查更新', updates)!;+ expect(updates.textContent).toContain('当前版本0.9.0');+ const fetcher = fetchMock(200, { ...release, latest_version: '0.10.0', state: 'available', message: '有新版本可下载。' });+ vi.stubGlobal('fetch', fetcher);+ check.focus();+ await act(async () => { check.click(); check.click(); });+ await settle();+ expect(fetcher).toHaveBeenCalledTimes(1);+ expect(fetcher.mock.calls[0]?.[0]).toBe('/api/configuration/updates');+ expect(updates.textContent).toContain('最新版本0.10.0');+ expect(updates.querySelector('[role="status"]')?.textContent).toContain('有可用更新');+ expect(buttonNamed('下载并安装', updates)).not.toBeNull();+ expect(document.activeElement).toBe(check);+ vi.stubGlobal('fetch', fetchMock(503, { detail: '连接失败' }));+ await click(check);+ await settle();+ expect(updates.querySelector('[role="alert"]')?.textContent).toBe('连接失败');+ expect(updates.textContent).not.toContain('0.10.0');+ expect(check.disabled).toBe(false);+ });++ it('已是最新就不再提示可用更新,也不给安装键', async () => {+ const current = await mount(<ReleaseUpdates initial={{ ...release, latest_version: '0.9.0', state: 'current', message: '已是最新测试版。' }} />);+ expect(current.textContent).not.toContain('有可用更新');+ expect(current.textContent).toContain('已是最新测试版。');+ expect(buttonNamed('下载并安装', current)).toBeNull();+ });+});++it('卸载默认保留数据,勾选完全卸载后确认文案点名要删的东西,受理后锁住', async () => {+ const modal = vi.spyOn(legacyUi, 'confirmModal');+ const fetcher = fetchMock(200, { message: 'Peach 将在几秒后退出并卸载。' });+ vi.stubGlobal('fetch', fetcher);+ const host = await mount(<UninstallSettings uninstall={uninstall} />);+ const area = host.querySelector('#uninstallPeach')!;+ expect(area.textContent).toContain('原始媒体文件保留');+ const full = area.querySelector<HTMLInputElement>('input[type="checkbox"]')!;+ expect(full.checked).toBe(false);+ expect([...area.querySelectorAll('details p')].map((p) => p.textContent)).toEqual(['fixture', 'fixture/cache']);+ await click(buttonNamed('卸载 Peach', area));+ expect(modal.mock.calls[0]?.[0]).toMatchObject({ title: '卸载 Peach', danger: true, confirmLabel: '卸载 Peach' });+ expect(String(modal.mock.calls[0]?.[0].body)).toContain('设置、本地数据库、观看记录与缓存保留');+ expect(fetcher).not.toHaveBeenCalled();+ await click(full);+ await click(buttonNamed('卸载 Peach', area));+ const options = modal.mock.calls[1]![0];+ expect(String(options.body)).toContain('凭据和缓存');+ await act(async () => { await options.onConfirm?.(); });+ expect(sentBody(fetcher)).toEqual({ delete_data: true, confirmation: '卸载 Peach' });+ expect(area.querySelector('[role="status"]')?.textContent).toBe('Peach 将在几秒后退出并卸载。');+ expect(buttonNamed('卸载 Peach', area)?.disabled).toBe(true);+});diff --git a/frontend/test/react/media-settings.test.tsx b/frontend/test/react/media-settings.test.tsxnew file mode 100644index 000000000..eab871155--- /dev/null+++ b/frontend/test/react/media-settings.test.tsx@@ -0,0 +1,207 @@+import { describe, expect, it, vi } from 'vitest';++import { CONFIGURATION_URL, PICK_FOLDER_URL } from '../../src/configuration-endpoints';+import type { ConfigurationData } from '../../src/react/bundle';+import { CloudDriveGuide } from '../../src/react/settings/clouddrive-guide';+import { MediaSettings } from '../../src/react/settings/media-settings';+import { buttonNamed, choose, click, fetchMock, mount, section, sentBody, settle, submit, type } from './render';++const data = (over: Partial<ConfigurationData> = {}): ConfigurationData => ({+ editable: true, notice: '', revision: 'rev-1', media_dirs: ['D:\\Media'], port: 9123, facts: [], ...over,+});++const open = (over: Partial<ConfigurationData> = {}, receipt = vi.fn()) =>+ mount(<MediaSettings data={data(over)} receipt={receipt} />);+const rows = (root: ParentNode) => [...root.querySelectorAll('[data-folder-row]')];+const paths = (root: ParentNode) => [...root.querySelectorAll<HTMLInputElement>('input[aria-label^="媒体文件夹 "]')];++it('托盘管理访问端口时不画端口字段,底栏说保存后重新载入', async () => {+ const host = await open({ port_editable: false });+ expect(host.querySelector('#configPort')).toBeNull();+ expect(host.textContent).toContain('保存后 Peach 会重新载入配置。');+ expect(host.querySelector('form')).not.toBeNull();+});++it('网盘来源缺依赖时给新窗口下载链接,已装的不提示', async () => {+ const host = await open({+ media_sources: [{ location: '115', root: 'B:\\', path: 'B:\\' }],+ mount_dependencies: [+ { name: 'CloudDrive', available: false, download_url: 'https://www.clouddrive2.com/download.html' },+ { name: 'WinFsp', available: true, download_url: 'https://winfsp.dev/rel/' },+ ],+ });+ const link = host.querySelector('a[href="https://www.clouddrive2.com/download.html"]');+ expect(link?.getAttribute('target')).toBe('_blank');+ expect(link?.querySelector('svg')).not.toBeNull();+ expect(host.textContent).not.toContain('下载 WinFsp');+});++it('不能编辑时只说原因,不画表单', async () => {+ const host = await open({ editable: false, notice: '请在运行 Peach 的电脑上打开配置' });+ expect(host.querySelector('form')).toBeNull();+ expect(host.querySelector('[role="note"]')?.textContent).toContain('请在运行 Peach 的电脑上打开配置');+});++describe('媒体文件夹', () => {+ it('Windows 只填本机路径,选了网盘才出 CloudDrive 帮助', async () => {+ const host = await open({ windows: true, media_sources: [{ location: 'local', root: 'D:/', path: 'D:/' }] });+ expect(host.textContent).not.toContain('Windows 中的对应路径');+ expect(host.textContent).not.toContain('挂载帮助');+ await choose(rows(host)[0]?.querySelector('[aria-haspopup="listbox"]'), 'CloudDrive · 115');+ expect(host.textContent).toContain('挂载帮助');+ });++ it('其它系统每行带 Windows 对应路径,挂载状态同时给文字和来源标识', async () => {+ const host = await open({ windows: false, media_sources: [+ { location: '115', root: 'B:/', path: '/Volumes/115', online: true },+ { location: 'pikpak', root: 'A:/', path: '/Volumes/PikPak', online: false },+ { location: 'local', root: 'D:/', path: '/Volumes/Media' },+ ] });+ expect(rows(host)).toHaveLength(3);+ expect(rows(host).every((row) => row.textContent?.includes('Windows 中的对应路径'))).toBe(true);+ const mounts = section(host, '挂载状态')!;+ expect([...mounts.querySelectorAll('[data-mount]')].map((node) => [node.getAttribute('data-mount'), node.textContent]))+ .toEqual([['online', '在线'], ['offline', '离线'], ['unknown', '未检测']]);+ expect([...mounts.querySelectorAll('dt use')].map((node) => node.getAttribute('href')))+ .toEqual(['#i-fixture-115', '#i-fixture-pikpak', '#i-hard-drive']);+ });++ it('刷新挂载状态只换状态,不动没保存的路径', async () => {+ const media_sources = [{ location: '115', path: 'B:/', root: 'B:/', online: false }];+ const fetcher = fetchMock(200, data({ media_sources: [{ ...media_sources[0]!, online: true }] }));+ vi.stubGlobal('fetch', fetcher);+ const host = await open({ windows: true, media_sources });+ await type(paths(host)[0], 'B:/Movies');+ await click(buttonNamed('刷新挂载状态', host));+ await settle();+ expect(fetcher.mock.calls[0]?.[0]).toBe(CONFIGURATION_URL);+ expect(paths(host)[0]?.value).toBe('B:/Movies');+ expect(section(host, '挂载状态')?.textContent).toContain('在线');+ });++ it('按来源回填全部挂载点,提交带上盘符映射与媒体库', async () => {+ const fetcher = fetchMock(200, { saved: true, url: '/', revision: 'rev-2' });+ vi.stubGlobal('fetch', fetcher);+ const host = await open({ windows: false, media_sources: [+ { location: '115', root: 'B:\\', path: '/Volumes/115', online: false, library: '收藏', library_icon: 'heart' },+ { location: 'pikpak', root: 'A:\\', path: '/Volumes/PikPak', online: true },+ ] });+ expect(paths(host).map((input) => input.value)).toEqual(['/Volumes/115', '/Volumes/PikPak']);+ await submit(host.querySelector('form'));+ await settle();+ expect(sentBody(fetcher).media_sources).toEqual([+ { location: '115', root: 'B:\\', path: '/Volumes/115', library: '收藏', library_icon: 'heart' },+ { location: 'pikpak', root: 'A:\\', path: '/Volumes/PikPak', library: '', library_icon: '' },+ ]);+ });++ it('一行一个文件夹,只有一行时没有移除键', async () => {+ const host = await open();+ expect(paths(host).map((input) => input.value)).toEqual(['D:\\Media']);+ expect(host.querySelector('[aria-label="移除这个文件夹"]')).toBeNull();+ });++ it('新加的一行接过焦点,之后每行都能移除', async () => {+ const host = await open();+ await click(buttonNamed('添加文件夹', host));+ expect(paths(host)).toHaveLength(2);+ expect(document.activeElement).toBe(paths(host)[1]);+ const removes = host.querySelectorAll('[aria-label="移除这个文件夹"]');+ expect(removes).toHaveLength(2);+ await click(removes[0]);+ expect(paths(host).map((input) => input.value)).toEqual(['']);+ });+});++describe('选择文件夹', () => {+ it('让这台电脑弹系统对话框,选中的路径填回这一行', async () => {+ const fetcher = fetchMock(200, { path: 'E:\\Movies' });+ vi.stubGlobal('fetch', fetcher);+ const host = await open();+ const pick = host.querySelector('[aria-label="选择文件夹"]')!;+ await click(pick);+ await settle();+ const [url, init] = fetcher.mock.calls[0] ?? [];+ expect(url).toBe(PICK_FOLDER_URL);+ expect(init?.method).toBe('POST');+ expect(sentBody(fetcher)).toEqual({ initial: 'D:\\Media' });+ expect(paths(host)[0]?.value).toBe('E:\\Movies');+ expect(pick.getAttribute('aria-busy'), '对话框关了忙态要撤掉').toBeNull();+ });++ it('取消什么也不改;打不开对话框时原因写在这一行', async () => {+ vi.stubGlobal('fetch', fetchMock(200, { path: null }));+ const host = await open();+ await click(host.querySelector('[aria-label="选择文件夹"]'));+ await settle();+ expect(paths(host)[0]?.value).toBe('D:\\Media');+ expect(paths(host)[0]?.getAttribute('aria-invalid')).toBeNull();+ vi.stubGlobal('fetch', fetchMock(501, { error: '这个系统上没有可用的文件夹对话框' }));+ await click(host.querySelector('[aria-label="选择文件夹"]'));+ await settle();+ expect(rows(host)[0]?.textContent).toContain('没有可用的文件夹对话框');+ expect(paths(host)[0]?.getAttribute('aria-invalid')).toBe('true');+ });+});++describe('保存', () => {+ it('提交带上指纹、全部文件夹、端口与是否扫描,成功后回执并留下新地址', async () => {+ const fetcher = fetchMock(200, { saved: true, url: 'http://127.0.0.1:9124/', revision: 'rev-2' });+ vi.stubGlobal('fetch', fetcher);+ const receipt = vi.fn();+ const host = await open({}, receipt);+ await type(host.querySelector<HTMLInputElement>('#configPort'), '9124');+ await submit(host.querySelector('form'));+ await settle();+ const [url, init] = fetcher.mock.calls[0] ?? [];+ expect(url).toBe(CONFIGURATION_URL);+ expect(init?.method).toBe('POST');+ expect(sentBody(fetcher)).toEqual({ revision: 'rev-1', media_dirs: ['D:\\Media'], port: '9124', scan_now: false });+ expect(receipt).toHaveBeenCalledWith('已保存配置');+ expect(host.querySelector('[role="status"]')?.textContent).toContain('正在重新启动');+ expect(host.querySelector('a[href="http://127.0.0.1:9124/"]')?.textContent).toBe('进入馆藏');+ expect(host.querySelector('form'), '保存后表单不再留在页面上').toBeNull();+ });++ it('服务端按字段退回的原因写回原位,不发回执', async () => {+ vi.stubGlobal('fetch', fetchMock(400, {+ error: '有几项需要修改',+ errors: { media_dirs: ['', '和上面的文件夹重复了'], port: '端口要在 1024 到 65535 之间' },+ }));+ const receipt = vi.fn();+ const host = await open({ media_dirs: ['D:\\Media', 'D:\\Media'] }, receipt);+ await submit(host.querySelector('form'));+ await settle();+ expect(paths(host).map((input) => input.getAttribute('aria-invalid'))).toEqual([null, 'true']);+ expect(rows(host)[1]?.textContent).toContain('和上面的文件夹重复了');+ expect(host.querySelector('#configPort')?.getAttribute('aria-invalid')).toBe('true');+ expect(host.textContent).toContain('端口要在 1024 到 65535 之间');+ expect(receipt).not.toHaveBeenCalled();+ expect(host.textContent, '字段级原因不再叠一条整体提示').not.toContain('没有保存');+ });++ it('其它失败留在表单里等重试', async () => {+ vi.stubGlobal('fetch', fetchMock(409, { error: '配置已变更,请刷新后再保存' }));+ const host = await open();+ await submit(host.querySelector('form'));+ await settle();+ expect(host.querySelector('[role="alert"]')?.textContent).toContain('配置已变更');+ expect(host.querySelector('form')).not.toBeNull();+ expect(buttonNamed('保存配置', host)?.getAttribute('aria-busy'), '失败后忙态要撤掉').toBeNull();+ });+});++it('CloudDrive 建议按硬盘分三档,页内只留怎么填,原理链到仓库文档', async () => {+ const host = await mount(<CloudDriveGuide />);+ const tiers = host.querySelectorAll('[aria-label="按缓存所在硬盘分档"] > li');+ expect(tiers).toHaveLength(3);+ expect([...tiers[0]!.querySelectorAll('dt')].map((dt) => dt.textContent))+ .toEqual(['缓存上限', '读取长度(默认 / 最小)', '同时处理视频']);+ expect(host.textContent).toContain('256 / 128 KB');+ expect(host.textContent).toContain('上限不要填 0');+ expect(host.querySelector('details')?.open).toBe(false);+ expect([...host.querySelectorAll('a')].map((a) => a.getAttribute('href'))).toEqual([+ 'https://www.clouddrive2.com/help.html',+ 'https://github.com/longmeidao/peach/blob/master/docs/CLOUDDRIVE.md',+ ]);+});diff --git a/frontend/test/react/render.tsx b/frontend/test/react/render.tsxnew file mode 100644index 000000000..32a46d9a1--- /dev/null+++ b/frontend/test/react/render.tsx@@ -0,0 +1,73 @@+/* React 子树用例共用的挂载、输入与假 fetch。 */+import { act, type ReactElement } from 'react';+import { createRoot, type Root } from 'react-dom/client';+import { afterEach, vi } from 'vitest';++(globalThis as { IS_REACT_ACT_ENVIRONMENT?: boolean }).IS_REACT_ACT_ENVIRONMENT = true;++const roots: Root[] = [];+afterEach(() => {+ for (const root of roots.splice(0)) act(() => root.unmount());+ document.body.innerHTML = '';+ vi.restoreAllMocks();+ vi.unstubAllGlobals();+ vi.useRealTimers();+});++export async function mount(element: ReactElement): Promise<HTMLElement> {+ const host = document.createElement('div');+ host.className = 'peach-react';+ document.body.append(host);+ const root = createRoot(host);+ roots.push(root);+ await act(async () => root.render(element));+ return host;+}++/** 请求链上有好几段 `await`(fetch、json、setState),等它们都落地再断言。 */+export const settle = () => act(async () => {+ for (let i = 0; i < 10; i += 1) await Promise.resolve();+});++/** React 用自己记下的值判断输入有没有变,只派发事件不经过原生 setter 时它会忽略。 */+export async function type(input: HTMLInputElement | null | undefined, value: string) {+ if (!input) throw new Error('输入框没有画出来');+ await act(async () => {+ Object.getOwnPropertyDescriptor(HTMLInputElement.prototype, 'value')!.set!.call(input, value);+ input.dispatchEvent(new Event('input', { bubbles: true }));+ });+}++export const click = (el: Element | null | undefined) => act(async () => {+ if (!el) throw new Error('要点的元素没有画出来');+ (el as HTMLElement).click();+});++export const submit = (form: Element | null | undefined) => act(async () => {+ if (!form) throw new Error('表单没有画出来');+ form.dispatchEvent(new Event('submit', { bubbles: true, cancelable: true }));+});++/** 按可见文字找按钮。弹出层挂在 `body` 末尾,所以默认从整页找。 */+export const buttonNamed = (name: string, root: ParentNode = document) =>+ [...root.querySelectorAll('button')].find((button) => button.textContent?.trim() === name) ?? null;++/** 分区以标题作无障碍名称。 */+export const section = (root: ParentNode, title: string) =>+ root.querySelector(`:is(form,section)[aria-label="${title}"]`);++export const switches = (root: ParentNode) => [...root.querySelectorAll<HTMLInputElement>('input[role="switch"]')];++/** 打开 React Aria 下拉并点选一项。 */+export async function choose(trigger: Element | null | undefined, option: string) {+ await click(trigger);+ await click([...document.querySelectorAll('[role="option"]')].find((node) => node.textContent?.trim() === option));+}++type FetchCall = [string, RequestInit | undefined];+export const fetchMock = (status: number, body: unknown) => vi.fn<(...call: FetchCall) => Promise<unknown>>(+ async () => ({ ok: status < 400, status, json: async () => body }),+);++export const sentBody = (fetcher: ReturnType<typeof fetchMock>, index = 0) =>+ JSON.parse(String(fetcher.mock.calls[index]?.[1]?.body));diff --git a/frontend/test/release-updates.test.tsx b/frontend/test/release-updates.test.tsxdeleted file mode 100644index d4aae37d7..000000000--- a/frontend/test/release-updates.test.tsx+++ /dev/null@@ -1,22 +0,0 @@-import { render } from 'preact';-import { afterEach, expect, it, vi } from 'vitest';-import { ReleaseUpdates } from '../src/islands/release-updates';--// @ts-expect-error 遗留组件使用正式实现验证图标与提示语义。-vi.mock('@peach/legacy/ui', () => import('../../web/js/ui-components.js'));-const host = document.createElement('div');-afterEach(() => { render(null, host); host.remove(); });-const initial = { current_version:'0.22.2',latest_version:'0.22.3',channel:'测试版',installation:'独立测试包',state:'available',message:'发现新测试版 0.22.3。',release_url:'https://example.com/releases' };--it('可用更新用持续信息提示且检查为最新后移除提示', () => {- document.body.append(host);- render(<ReleaseUpdates initial={initial} />, host);- expect(host.querySelector('[role="status"] .geist-note-secondary')?.textContent).toContain('有可用更新');- expect(host.querySelector('.geist-note svg')).not.toBeNull();- expect(host.querySelector('.geist-note-warning,.geist-note-error')).toBeNull();- expect(host.textContent).toContain('下载并安装');- render(null, host);- render(<ReleaseUpdates initial={{...initial,state:'current',message:'已是最新测试版。'}} />, host);- expect(host.querySelector('.geist-note')).toBeNull();- expect(host.textContent).not.toContain('下载并安装');-});diff --git a/frontend/test/settings-controls.test.tsx b/frontend/test/settings-controls.test.tsxdeleted file mode 100644index 7e53778cc..000000000--- a/frontend/test/settings-controls.test.tsx+++ /dev/null@@ -1,39 +0,0 @@-import { render } from 'preact';-import { useRef } from 'preact/hooks';-import { act } from 'preact/test-utils';-import { afterEach, expect, it, vi } from 'vitest';-import { SelectField, SettingsSection, useSubmitAction } from '../src/settings-controls';-// @ts-expect-error 适配层验证正式 Select 的事件与禁用生命周期。-vi.mock('@peach/legacy/ui',()=>import('../../web/js/ui-components.js'));-const host=document.createElement('div');-afterEach(()=>{render(null,host);host.remove()});--it('受控值与选项更新同步,重复渲染只调用最新回调,卸载关闭菜单', async () => {- document.body.append(host);const first=vi.fn(),next=vi.fn(),options=[['a','甲'],['b','乙']];- await act(()=>render(<SelectField value="a" options={options} label="测试选择" onChange={first}/>,host));- const field=host.querySelector('.gselect');- await act(()=>render(<SelectField value="b" options={options} label="测试选择" onChange={next}/>,host));- expect(host.querySelector('.gselect')).toBe(field);- expect(host.querySelector('[aria-selected="true"]')?.getAttribute('data-select-option')).toBe('b');- await act(()=>host.querySelector<HTMLButtonElement>('[data-select-option="a"]')!.click());- expect(first).not.toHaveBeenCalled();expect(next).toHaveBeenCalledExactlyOnceWith('a');- await act(()=>render(<SelectField value="c" options={[['c','丙']]} label="测试选择" disabled onChange={next}/>,host));- expect(host.querySelector<HTMLButtonElement>('[data-select-trigger]')!.disabled).toBe(true);- expect(host.querySelector('[data-select-label]')?.textContent).toBe('丙');- const trigger=host.querySelector<HTMLButtonElement>('[data-select-trigger]')!;- await act(()=>render(null,host));expect(trigger.disabled).toBe(true);-});--it('提交防重入,卸载取消等待并丢弃成功回执', async () => {- document.body.append(host);let resolve!:(value:string)=>void,signal!:AbortSignal;- const success=vi.fn(),write=vi.fn((next:AbortSignal)=>{signal=next;return new Promise<string>(done=>{resolve=done})});- function Form(){const button=useRef<HTMLButtonElement>(null),action=useSubmitAction(button);- return <SettingsSection titleId="test-title" title="设置" error={action.error}- onSubmit={event=>{event.preventDefault();void action.run(write,success)}} footer={<button ref={button}>保存</button>}><input/></SettingsSection>}- await act(()=>render(<Form/>,host));- const form=host.querySelector('form')!;- await act(()=>{form.requestSubmit();form.requestSubmit()});- expect(write).toHaveBeenCalledOnce();expect(host.querySelector('button')?.getAttribute('aria-busy')).toBe('true');- await act(()=>render(null,host));expect(signal.aborted).toBe(true);- await act(()=>resolve('完成'));expect(success).not.toHaveBeenCalled();-});diff --git a/frontend/test/sort-preferences.test.ts b/frontend/test/sort-preferences.test.tsnew file mode 100644index 000000000..e5c58f2eb--- /dev/null+++ b/frontend/test/sort-preferences.test.ts@@ -0,0 +1,9 @@+import { expect, it } from 'vitest';++import { preferredDirection } from '../src/sort-preferences';++it('随机无方向,首页偏好与其他排序分别解析', () => {+ expect(preferredDirection('seed', 'seed', 'asc')).toBe('');+ expect(preferredDirection('new', 'new', 'asc')).toBe('asc');+ expect(preferredDirection('rating', 'new', 'asc')).toBe('desc');+});diff --git a/src/peach/routes_configuration.py b/src/peach/routes_configuration.pyindex 55ef9cc35..19a592601 100644--- a/src/peach/routes_configuration.py+++ b/src/peach/routes_configuration.py@@ -1,7 +1,7 @@"""本机配置的 JSON 契约:读取、校验、原子保存与托盘重启请求。-页面本体是 `frontend/src/islands/configuration.tsx`,挂在主站的 `/configuration` 路由里-(ADR-0022);这里只回数据。两道门都在服务端:只放行本机连接,只在托盘管理的服务里可写。+页面外壳是 `frontend/src/islands/configuration.tsx`,各分区是 `frontend/src/react/settings/`+下的 React 子树,挂在主站的 `/configuration` 路由里(ADR-0031);这里只回数据。两道门都在服务端:只放行本机连接,只在托盘管理的服务里可写。手机上的管理菜单不列这一页,靠的是 `/healthz` 的 `configurable`,但那只是入口的显隐,拒绝写入的判定在这里。"""diff --git a/src/peach/routes_pages.py b/src/peach/routes_pages.pyindex a2c3e023d..218505e76 100644--- a/src/peach/routes_pages.py+++ b/src/peach/routes_pages.py@@ -349,15 +349,20 @@ def _board_button_rules() -> str:return ''.join(palettes) + ''.join(switches) + ':root{' + ';'.join(fonts) + '}' + ''.join(rules)+#: 运行信息的术语/取值两列,窄屏叠成一列。只有带 `configfacts` 的页面才内联。+_FACTS_STYLE = (+ ".configfacts{margin:0;display:grid;grid-template-columns:max-content minmax(0,1fr);gap:10px 24px;align-items:baseline}\n"+ ".configfacts dt{color:var(--muted);font-size:var(--fs-sm)}.configfacts dd{margin:0;overflow-wrap:anywhere}\n"+ ".configfacts dt .gselectmark{vertical-align:-3px;margin-inline-end:8px}\n"+ "@media(max-width:560px){.configfacts{grid-template-columns:minmax(0,1fr)}.configfacts dd{margin-top:-6px}}"+)++def _document(title: str, body: str) -> str:# 页内脚本对两张页面都生效:找不到对应控件时它什么也不做。index = (PROJECT_ROOT / "web/index.html").read_text(encoding="utf-8")symbols = ''.join(re.findall(r'<symbol id="i-(?:check|chevron-down|hard-drive)"[^>]*>.*?</symbol>', index))- facts_css = ''- if 'class="configfacts"' in body:- configuration_css = (PROJECT_ROOT / 'web/css/23-configuration.css').read_text(encoding='utf-8')- facts_css = '\n'.join(line for line in configuration_css.splitlines()- if line.startswith(('.configfacts', '@media(max-width:560px){.configfacts')))+ facts_css = _FACTS_STYLE if 'class="configfacts"' in body else ''return (f"{_SETUP_HEAD}<title>{title}</title><style>{_theme_tokens()}{_scrollbar_rules()}</style>"f'{_SETUP_STYLE}<style>{_button_rules()}</style>{board_entry_style()}'f'<style>{_board_button_rules()}</style><style>{facts_css}</style></head><body><svg width="0" height="0" aria-hidden="true" style="position:absolute">{symbols}</svg><main>{body}</main>{_SETUP_SCRIPT}{_SHARED_SCRIPT}</body></html>\n')diff --git a/tests/test_desktop_settings.py b/tests/test_desktop_settings.pyindex 1b6437a9e..48d456e30 100644--- a/tests/test_desktop_settings.py+++ b/tests/test_desktop_settings.py@@ -15,14 +15,8 @@ from peach import desktop_startup, desktop_uninstall, peach_proxy, scraping_acceclass DesktopSettingsTests(unittest.TestCase):- def test_configuration_order_and_danger_area_share_the_ui_contract(self):+ def test_the_danger_area_face_is_painted_in_the_board_layer(self):root = Path(__file__).resolve().parents[1]- configuration = (root / 'frontend/src/islands/configuration.tsx').read_text(encoding='utf-8')- names = ['<StartupSettings', '<ConfigurationForm', '<MountStatus', '<PeachProxy', '<ReactSlot mount="mountAccessSettings"', '<ReleaseUpdates', '<Facts', '<UninstallSettings']- # 定位配置主页面,排除同文件中组件定义的内部 JSX。- page = configuration[configuration.index('export function Configuration('):]- self.assertEqual(sorted(names, key=page.index), names)- css = (root / 'web/css/23-configuration.css').read_text(encoding='utf-8')# 危险区那副面在 `board.css` 末尾:给卡描边、给底栏铺面的通用规则有五六条,都在# Board 那一层按自己的面色重写过一遍,色写在这一层会被它们逐条盖掉。board = (root / 'web/board.css').read_text(encoding='utf-8')@@ -34,8 +28,6 @@ class DesktopSettingsTests(unittest.TestCase):for generic in ('.geist-fieldset,.configfieldset,', '.geist-fieldset-footer,.configfieldset>.geist-fieldset-footer{'):self.assertGreater(board.index('[data-geist-fieldset][data-fieldset-type=error]'), board.index(generic),'危险区那几条要排在通用面色之后,同特指度时在后面的才算数')- self.assertIn('.configselect{width:min(320px,100%)}', css)- self.assertIn('.configdirectories .fcollapsebody{padding:12px 4px 4px}', css)def test_cleanup_risk_colors_follow_the_operation_effect(self):root = Path(__file__).resolve().parents[1]diff --git a/tests/test_frontend_build.py b/tests/test_frontend_build.pyindex 8e126416c..44736c97f 100644--- a/tests/test_frontend_build.py+++ b/tests/test_frontend_build.py@@ -65,13 +65,16 @@ class IslandBundleTests(unittest.TestCase):def test_the_startup_switches_and_their_payload_are_in_the_shipped_bundle(self):"""「开机自启」那三颗开关的标签和它们发出去的键,判据落在产物上。- `web/dist/peach-ui.js` 是提交进 Git 的产物。改了 `frontend/src` 不重建,浏览器拿到+ `web/dist/peach-react.js` 是提交进 Git 的产物。改了 `frontend/src` 不重建,浏览器拿到的仍是旧的那一份,而 tsc 和 vitest 都只看源码,谁都不会红——只有扫产物这一条会。"""+ if not REACT_BUNDLE.is_file():+ self.skipTest(f"{REACT_BUNDLE.relative_to(ROOT)} 不在:先 `npm --prefix frontend run build`")+ react = REACT_BUNDLE.read_text(encoding="utf-8")for label in ("开机后启动 Peach", "静默启动", "在桌面创建快捷方式"):- self.assertIn(label, self.bundle,+ self.assertIn(label, react,f"产物里没有「{label}」,先跑 npm --prefix frontend run build")- payload = self.bundle[self.bundle.index('"/api/configuration/startup"'):][:240]+ payload = react[react.index('"/api/configuration/startup"'):][:240]for key in ("enabled:", "silent:", "desktop:"):self.assertIn(key, payload, f"保存开机自启没带上 {key}")@@ -146,7 +149,9 @@ class ReactBundleTests(unittest.TestCase):"""island 按 `@peach/react` 写,产物里必须改写成服务端真的提供的路径,且 React 不进 peach-ui.js。"""self.assertIn('import("/dist/peach-react.js")', self.islands)self.assertNotIn("react-dom", self.islands)- self.assertIn("mountAccessSettings", self.react)+ for mount in ("mountGeneralSettings", "mountMediaSettings", "mountNetworkSettings",+ "mountMaintenanceSettings"):+ self.assertIn(mount, self.react)def test_the_react_bundle_keeps_the_legacy_modules_external(self):self.assertIn('from "/js/core.js"', self.react)@@ -321,46 +326,14 @@ class IslandSourceContractTests(unittest.TestCase):self.assertEqual(len(routed), 1, f"quality-goals 声明在 {routed}")-class ConfigurationIslandContractTests(unittest.TestCase):- """配置页搬进 island 之后仍要守住的几条:控件复用、忙态、端点唯一、主动作唯一。"""-- def setUp(self):- self.source = (FRONTEND / "src" / "islands" / "configuration.tsx").read_text(- encoding="utf-8")-- def test_feedback_and_titles_reuse_the_shared_components(self):- """Note、Fieldset 标题与忙态都走 `/js/ui-components.js`,island 里不另画一份。"""- self.assertIn("from '@peach/legacy/ui'", self.source)- for helper in ("noteHtml(", "fieldsetTitle(", "setActionBusy("):- self.assertIn(helper, self.source)- self.assertNotIn("disabled=", self.source, "请求等待期用 aria-busy,不用原生 disabled")-- def test_there_is_one_primary_action_and_the_add_row_button_is_not_it(self):- """每屏只有一个 `--ink` 底的主动作,是「保存配置」;「添加文件夹」是次级。"""- self.assertEqual(self.source.count('class="geist-button primary"'), 1)- self.assertIn('class="geist-button configadd"', self.source)- self.assertIn('aria-label="移除这个文件夹"', self.source)-- def test_each_row_can_ask_this_machine_for_the_system_folder_dialog(self):- """选择键夹在输入框和移除键中间;对话框由服务端弹,页面只等 `path` 回来。"""- self.assertIn('class="geist-button configpick" aria-label="选择文件夹"', self.source)- self.assertIn('href="#i-folder-search"', self.source)- self.assertIn("PICK_FOLDER_URL = '/api/pick-folder'", self.source)- pick = self.source.index('class="geist-button configpick"')- self.assertLess(self.source.index('class="geist-input"'), pick)- self.assertLess(pick, self.source.index('class="geist-button configrm danger"'))-- def test_validation_reasons_come_from_the_server(self):- """字段级原因读 400 的 `errors`,前端不复制一份路径与端口的判定。"""- self.assertIn("cause.status !== 400", self.source)- self.assertIn("fields.media_dirs", self.source)- self.assertIn("fields.port", self.source)+class ConfigurationEndpointTests(unittest.TestCase):+ """配置页的 Preact 外壳和 React 分区读同一条 `/api/configuration`,两份产物各打包一份。"""def test_the_endpoint_is_declared_once(self):sources = sorted(path for path in (FRONTEND / "src").rglob("*.ts*"))declared = [path.name for path in sourcesif "'/api/configuration'" in path.read_text(encoding="utf-8")]- self.assertEqual(declared, ["configuration.tsx"], f"端点声明在 {declared}")+ self.assertEqual(declared, ["configuration-endpoints.ts"], f"端点声明在 {declared}")class SharedStateContractTests(unittest.TestCase):@@ -458,7 +431,7 @@ class CloudDriveGuideScopeTests(unittest.TestCase):"""def setUp(self):- self.source = (FRONTEND / "src" / "islands" / "clouddrive-guide.tsx").read_text(+ self.source = (FRONTEND / "src" / "react" / "settings" / "clouddrive-guide.tsx").read_text(encoding="utf-8")self.doc = (ROOT / "docs" / "CLOUDDRIVE.md").read_text(encoding="utf-8")self.operations = (ROOT / "docs" / "OPERATIONS.md").read_text(encoding="utf-8")@@ -471,9 +444,8 @@ class CloudDriveGuideScopeTests(unittest.TestCase):self.assertNotIn(moved, self.source, f"「{moved}」这一段归 docs/CLOUDDRIVE.md")def test_the_page_links_to_the_document_that_holds_the_reasoning(self):- self.assertIn("https://github.com/longmeidao/peach/blob/master/docs/CLOUDDRIVE.md",+ self.assertIn('<ExternalLink href="https://github.com/longmeidao/peach/blob/master/docs/CLOUDDRIVE.md">',self.source)- self.assertIn('class="externallink"', self.source)def test_the_document_holds_the_steps_the_reasoning_and_the_provenance(self):for section in ("## 配置步骤", "## 三处缓存是三处设置", "## 缓存上限与清理",diff --git a/tests/test_web_ui.py b/tests/test_web_ui.pyindex a23aa9453..64db3f871 100644--- a/tests/test_web_ui.py+++ b/tests/test_web_ui.py@@ -353,7 +353,7 @@ class WebUiSourceTests(unittest.TestCase):".geist-progress", ".watchprogress", ".vjs-play-progress", ".vjs-progress-holder",".trace .bar", ".tokbar", # 进度与数据".ptoggle:checked", # Toggle 开态:Geist Toggle 实测轨道 rgb(0,112,243)- ".entitylink", ".flink", ".fsourcelink", ".fcred a", ".tokauthor>a", ".confighelp a", ".taste-history-guide-content a", ".scraping-url", # 真正的链接+ ".entitylink", ".flink", ".fsourcelink", ".fcred a", ".tokauthor>a", ".taste-history-guide-content a", ".scraping-url", # 真正的链接)def test_tungsten_is_reserved_for_focus_links_progress_and_toggle(self):@@ -1352,8 +1352,7 @@ class WebUiSourceTests(unittest.TestCase):同一份 Vercel 取证:16px SVG、`stroke:currentColor`、展开 `rotate(90deg)`。"""css = stylesheet_source()- for prefix in (".faliasmanager>summary", ".configdirectories>summary",- ".cloudguide summary", ".taste-history-guide summary"):+ for prefix in (".faliasmanager>summary", ".taste-history-guide summary"):start = css.index(prefix + ">svg{")rule = css[start:css.index("}", start)]# 描边色不进这份共用契约:作者别名那一枚故意钉在 --muted 上不随当前项提亮。@@ -1363,36 +1362,9 @@ class WebUiSourceTests(unittest.TestCase):self.assertPageContains(prefix + '[aria-expanded="true"]>svg'"{transform:rotate(90deg)}")# 原生三角要一起去掉,否则同一行会出现两枚指示符。- for prefix in (".cloudguide summary", ".taste-history-guide summary"):- self.assertPageContains(prefix + "::-webkit-details-marker{display:none}")- self.assertPageContains(prefix + "{cursor:pointer;", "标题自己是 flex 容器")-- def test_a_config_card_cell_never_widens_past_the_card(self):- """配置卡正文里的格子收回 0 宽,撑不宽卡片。-- 网盘建议表按 520px 起画。卡片比它窄时,grid 的格子按内容的最小宽度撑开,- 整条轨道跟着变宽,而卡片是 clip:表格右边、下面那段说明文字和底部操作条- 一起被裁在卡片外,既看不见也够不着。560px 视口实测溢出 12px。格子收回 0,- 表格自己那层 `overflow-x:auto` 才接得住。- """- self.assertIn(".configfieldset>.geist-fieldset-content>*{min-width:0}", self.css)-- def test_the_cache_table_stacks_under_its_own_column_names(self):- """卡片放不下四列时网盘建议表一行一块,每格左边跟着自己的列名。-- 判据按容器不按视口:同一个视口里,侧栏收没收、卡片落在哪一栏,留给这张表的- 宽度能差出两百多像素,按视口写会在该堆叠的时候不堆叠。堆叠之后列名由- `data-label` 画出来,那几串字必须和表头是同一份,否则同一张表在宽窄两种- 卡片里说的话不一样。- """- self.assertIn(".cloudguide{min-width:0;container-type:inline-size}", self.css)- self.assertIn("@container(max-width:520px){", self.css)- guide = (Path(__file__).resolve().parents[1]- / "frontend/src/islands/clouddrive-guide.tsx").read_text(encoding="utf-8")- heads = re.findall(r'<th scope="col">([^<]+)</th>', guide)[1:]- labels = re.findall(r'<td data-label="([^"]+)"', guide)- self.assertEqual(labels, heads, "堆叠时的列名要和表头写的是同一串字")- self.assertIn(".cloudguide-table tbody td::before{content:attr(data-label)", self.css)+ prefix = ".taste-history-guide summary"+ self.assertPageContains(prefix + "::-webkit-details-marker{display:none}")+ self.assertPageContains(prefix + "{cursor:pointer;", "标题自己是 flex 容器")def test_a_spinner_announces_the_work_and_not_the_button_it_sits_in(self):"""`spinnerHtml()` 的名字说正在做什么,不复读按钮自己的名字。@@ -3568,21 +3540,10 @@ class WebUiSourceTests(unittest.TestCase):"""文字链接允许悬停下划线,默认状态保持清爽。"""self.assertPageContains(".entitylink:hover,.unownedlink:hover{color:var(--ink);text-decoration:none}")self.assertPageContains(".idcell.entitylink:hover,.idcell.unownedlink:hover,.mav.entitylink:hover{text-decoration:none}")- self.assertPageContains(".confighelp a:hover{text-decoration:underline;")for selector, declarations in re.findall(r'([^{}]+)\{([^{}]*)\}', stylesheet_source()):if "text-decoration:underline" in declarations:self.assertTrue(":hover" in selector or selector.strip() == ".project-banner>a", selector)- def test_configuration_uses_fieldset_surfaces_and_shared_select(self):- css = stylesheet_source()- for selector, expected in ((".configfieldset", "background:var(--ground)"),- (".configfieldset>.geist-fieldset-footer", "background:var(--surface)")):- start = css.index(selector + "{")- rule = css[start:css.index("}", start)]- self.assertIn(expected, rule)- self.assertIn("solid var(--line)", rule)- self.assertIn(".configsourcecontrol .gselectfield{padding-inline:14px}", css)-def test_every_identity_cell_can_carry_its_own_portrait(self):# 人物格走和顶栏圆头像同一个 entityFaceImg;这一格没有代表作头像可退,# 装了实体图才出 `<img>`,否则就是首字母垫底。@@ -4593,8 +4554,6 @@ class WebUiSourceTests(unittest.TestCase):self.assertIn('body a:is(.externallink,[target=_blank]):not(:has(.entitylinkicon)):not(.cardlink):hover''{background:transparent;text-decoration:underline;box-shadow:none}', board)self.assertIn('.board-link-button:hover{background:transparent;text-decoration:underline;box-shadow:none}', board)- release = (Path(__file__).resolve().parents[1] / 'frontend/src/islands/release-updates.tsx').read_text(encoding='utf-8')- self.assertNotIn('geist-button externallink', release)def test_card_hover_and_view_glide_can_extend_outside_content(self):board = (Path(__file__).resolve().parents[1] / "web/board.css").read_text(encoding="utf-8")@@ -4996,10 +4955,6 @@ class WebUiSourceTests(unittest.TestCase):board = (Path(__file__).resolve().parents[1] / "web/board.css").read_text(encoding="utf-8")self.assertIn(".settingscard .settingsscroll>.settinggroup:has(>.machinesettings)"":not(:has(.board-group-active)){display:none}", board)- # 控件底色照配置页那边抬一档:那条规则挂在 `body.configuration-layout` 上,- # 弹层不带这个类,控件就落回 `--surface`,压在同一张卡上几乎看不出边。- self.assertIn(".settingscard .machinesettings :is(.gselectfield,.geist-input,input.geist-input,"- ".board-icon-trigger){background:var(--color-background-primary-default)}", board)def test_each_settings_tab_takes_its_glyph_from_its_own_name(self):"""字形按条目自己的名字取,不按它排第几。@@ -5335,25 +5290,6 @@ class WebUiSourceTests(unittest.TestCase):self.assertPageContains("function enterManagementSurface()")self.assertPageContains("loadRequestSeq++;listLoading=false;$('#combo').innerHTML=''")- def test_the_media_source_select_stands_on_the_same_line_as_its_neighbours(self):- """「媒体来源」那一格和同一网格里的输入框同高、同起点、同间距。-- `.gselect` 在配置页只是个定位外壳,尺寸归里面的 `.gselectfield`。设置开关行那份- `.gselect` 尺寸在那边成立——外壳就是控件本身——套到配置页就错三样:外壳 32px 而- 按钮 `--control-h` 是 36px,按钮往下探出 10px 把它和下面那条分隔线的间距吃掉;- 6px/8px 的内边距把按钮左边缘推右 8px,跟上面那个输入框对不上一条竖线;那 6px 还- 叠在 `.configsourcelabel` 自己的 8px 上,标题到控件比隔壁远一截。- """- board = (Path(__file__).resolve().parents[1] / "web/board.css").read_text(encoding="utf-8")- self.assertIn(".settingscard .settingsscroll .machinesettings .gselect"- "{min-width:0;min-height:0;height:auto;padding:0}", board)- # 压平那一条必须排在给开关行写的那条后面,同权重比它高一级才压得住。- self.assertGreater(board.index(".settingscard .settingsscroll .machinesettings .gselect"),- board.index(".settingscard .settingsscroll .gselect{min-width:90px;"))- # 高度的唯一出处仍是 --control-h,两个控件不各写一个像素数。- self.assertIn(".configsource input.geist-input,.configsource .gselectfield"- "{height:var(--control-h);min-height:var(--control-h);box-sizing:border-box}", board)-def test_sidebar_add_row_wears_the_shared_input_and_primary_button(self):"""这一行有三条判据:颜色只走 token、高度只引用 --control-h、主次动作分得开。@@ -6609,7 +6545,7 @@ class WebUiSourceTests(unittest.TestCase):self.assertIn(".metricstrip>button:hover{background:color-mix(in srgb,var(--color-text-primary) 6%,var(--ground))}", board)self.assertIn("body .tastesource>button{width:36px;height:36px;border:0;border-radius:10px;background:transparent;color:var(--color-text-secondary);transform:none;", board)self.assertIn(".geist-fieldset-footer>a,.geist-fieldset-footer>button).primary{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:4px;height:36px;min-height:36px;padding:8px 12px;border-radius:10px;font:var(--board-body-medium);", board)- self.assertIn("body.configuration-layout .configpage :is(.gselectfield,.geist-input,input.geist-input,.board-icon-trigger),body .followmanage .faddform .geist-search input{background:var(--color-background-primary-default)}", board)+ self.assertIn("body .followmanage .faddform .geist-search input{background:var(--color-background-primary-default)}", board)self.assertIn("body .review{width:100%;max-width:var(--board-content);margin:0 auto;box-sizing:border-box}", board)self.assertIn("body .review .reviewcontrols{position:static;", board)self.assertIn("body .review .reviewbulktoolbar{position:sticky;top:var(--topH);z-index:60;width:auto;", board)@@ -6632,33 +6568,21 @@ class WebUiSourceTests(unittest.TestCase):self.assertIn("root?.querySelector<HTMLElement>('.reviewbulktoolbar')", bulk)self.assertIn("if (context) context.after(toolbar); else list.before(toolbar);", bulk)- def test_the_library_icon_picker_is_a_grid_of_glyphs(self):- """媒体库图标选择器的格子只放图标,一行七个,21 个候选三行排完。+ def test_the_library_icon_choices_exist_on_the_server_and_in_the_sprite(self):+ """媒体库图标的 42 枚候选每一枚都在服务端白名单和雪碧图里。- 每格 40px、图标 22px;名字留在 title 与 aria-label 上。带着字排四列要六行,- 面板比触发它的设置卡还高,用户回执「不需要图标下面的文字」「高度太长了」。+ 取值是雪碧图的字形名,服务端按 `peach.media_libraries.LIBRARY_ICONS` 校验:前端多出+ 一枚,保存时被拒;雪碧图少一枚,格子里是空的。三份名单分属 Python、TSX 与 HTML,+ 只有这里能同时读到。格子的排法与选择流程由 vitest 断言。"""- board = (Path(__file__).resolve().parents[1] / "web/board.css").read_text(encoding="utf-8")- self.assertIn(".board-icon-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}", board)- self.assertIn(".board-icon-grid label{position:relative;display:grid;place-items:center;height:40px;border-radius:8px;cursor:pointer}", board)- # 格子里和触发钮上是同一枚字形:同 20px、同 2 描边、同一个 20px 的盒子居中。- self.assertIn(".board-icon-trigger svg,.board-icon-grid svg{display:block;width:20px;height:20px;stroke-width:2}", board)- self.assertIn(".board-icon-trigger>span:first-child,.board-icon-grid label>span{display:inline-flex;align-items:center;"- "justify-content:center;width:20px;height:20px;flex:none}", board)- self.assertNotIn(".board-icon-grid small", board)- picker = (Path(__file__).resolve().parents[1] / "frontend/src/library-icon-picker.tsx").read_text(encoding="utf-8")- self.assertNotIn("<small>{name}</small>", picker)- self.assertIn("<label title={choiceLabel(key,name)} class={draft===key?'selected':''}>", picker)- # 42 枚候选每一枚都在服务端白名单和雪碧图里;网盘库不另选时用来源站标,本地路径就是默认磁盘。+ picker = (Path(__file__).resolve().parents[1]+ / "frontend/src/react/settings/library-icon-picker.tsx").read_text(encoding="utf-8")choices = re.findall(r"\['([a-z0-9-]*)', ?'([^']+)'\]", picker.split("LIBRARY_ICON_CHOICES = [", 1)[1].split("] as const", 1)[0])self.assertEqual(len(choices), 42)from peach.media_libraries import LIBRARY_ICONSfor key, _name in choices[1:]:self.assertIn(key, LIBRARY_ICONS)self.assertPageContains(f'<symbol id="i-{key}" viewBox="0 0 24 24">')- self.assertIn("return mark?[mark,'自动识别']:['hard-drive','默认'];", picker)- self.assertIn("kind={kinds[index] || 'local'}",- (Path(__file__).resolve().parents[1] / "frontend/src/islands/configuration.tsx").read_text(encoding="utf-8"))def test_the_follow_list_is_one_card_and_its_checkboxes_draw_their_tick(self):"""关注列表整段进框,和「添加关注」同一只卡;来源行是 boardui 的 CheckboxCard,勾选框照@@ -8270,30 +8194,6 @@ class WebUiSourceTests(unittest.TestCase):self.assertPageContains("const paint=(id,now)=>{if(stopped||id!==run)return;")self.assertPageLacks("scheduled=false")- def test_the_folder_row_takes_its_red_from_the_single_danger_tier(self):- """「移除这个文件夹」的红只有 01-base 那一份,静止与悬停必须是两个值。-- 这颗键曾在页面 CSS 末尾被追加过一条静止态实底红,却没有同步同文件里的悬停规则:- 两条渲染出来是同一块 `--drop` 加白字,鼠标压上去一点变化都没有。同一颗键的两个- 状态分写在两处、值又相同,是这类缺陷的固定形状——所以红收回 `.danger`,页面只- 留几何。`border-color` 在 `border:0` 之后也是死声明,一并收掉。-- 几何这一份也要压得过 board 那层:那边给普通按钮钉了 36px 定高,特指度比只写- 两个 class 高,而它的 `:not()` 放过 `danger`。只写两个 class 的话,窄屏- `--control-h` 是 44px,同一行两枚按钮一个 44 一个 36,挨着 44px 的输入框- 一高一矮。- """- # 标记本身在 island 包里,由 test_frontend_build 的岛屿产物断言守;这里只管样式。- self.assertPageContains("body .configpage :is(.configrm,.configpick).geist-button"- "{width:var(--control-h);height:var(--control-h)"- ";min-height:var(--control-h);flex:none;padding:0}")- self.assertPageContains(".configpick.geist-button{color:var(--muted)}")- css = stylesheet_source()- for stale in (".configrm.geist-button{color:var(--drop)}",- ".configrm.geist-button:hover:not(:disabled){",- ".configrm.geist-button:not(:disabled){"):- self.assertNotIn(stale, css, "移除键的红不在页面里自己写第二份")-def test_the_whole_detail_box_takes_one_ambient_tone(self):"""右侧详情栏和「接着看」是同一格详情的两块,底色必须同源。@@ -9038,7 +8938,7 @@ class WebUiSourceTests(unittest.TestCase):# 数据管理页「空文件夹」那张卡说的是目录本身:不是打开它,也不是去里面找。self.assertPageContains("'空文件夹':'folder',")self.assertPageContains('<symbol id="i-folder" viewBox="0 0 24 24">')- self.assertIn('href="#i-folder-search"', (Path(__file__).resolve().parents[1] / "frontend" / "src" / "islands" / "configuration.tsx")+ self.assertIn('href="#i-folder-search"', (Path(__file__).resolve().parents[1] / "frontend" / "src" / "react" / "settings" / "media-settings.tsx").read_text(encoding="utf-8"))# 主题三档各归各的:太阳是浅色、月亮是深色;跟随系统那档说的是「照这台设备走」,# 讲的是设备不是明暗,所以跟 vercel.com 后台一样用显示器。画面尺寸量的是画幅本身,@@ -10408,8 +10308,7 @@ class WebUiSourceTests(unittest.TestCase):overlay = page.split("const OVERLAY_SCROLLERS=[", 1)[1].split("].join(',')", 1)[0]edge = page.split("const BOARD_EDGE_SCROLLERS=", 1)[1].split(";", 1)[0]for selector in (".board-local-nav", ".managebar-menu", ".follow-workspace-switch",- ".fmanagenav", ".board-heat-scroll", ".board-sankey-scroll",- ".cloudguide-tablewrap"):+ ".fmanagenav", ".board-heat-scroll", ".board-sankey-scroll"):self.assertIn(selector, edge, f"{selector} 会横向溢出,要按横滚层登记")# 扫描只看前一份名单,只写进后一份等于没登记。scanned = set(re.findall(r"'(\.[a-z0-9-]+)'", overlay))@@ -11167,9 +11066,7 @@ class WebUiSourceTests(unittest.TestCase):self.app_js.count("icon('external-link','externalmark')"),"web/app.js 里每一枚外链标都带 externalmark")root = Path(__file__).resolve().parents[1]- for name in ('islands/scraping.tsx', 'islands/configuration.tsx',- 'islands/release-updates.tsx', 'management.ts',- 'review-evidence.ts'):+ for name in ('islands/scraping.tsx', 'management.ts', 'review-evidence.ts'):source = (root / 'frontend/src' / name).read_text(encoding='utf-8')self.assertEqual(source.count('#i-external-link'),source.count('class="externalmark" viewBox="0 0 24 24"'),diff --git a/web/board.css b/web/board.cssindex 67d522593..b32c4089f 100644--- a/web/board.css+++ b/web/board.css@@ -49,9 +49,6 @@那几段配置。里面没有一段亮着,就是用户在看左栏上半段的某一项,这时整个外壳都不该占位置。 */.settingscard .settingsscroll>.settinggroup:has(>.machinesettings):not(:has(.board-group-active)){display:none}-/* 框里的输入件照配置页那边抬一档底色。那条规则挂在 `body.configuration-layout` 上,- 弹层不带这个类,控件就落回 `--surface`,压在同一张卡上几乎看不出边。 */-.settingscard .machinesettings :is(.gselectfield,.geist-input,input.geist-input,.board-icon-trigger){background:var(--color-background-primary-default)}.settingscard .settingsscroll .settingrow{min-height:52px;padding:10px 10px 10px 0;gap:16px;border-top:0;border-bottom:1px solid var(--line-soft)}.settingscard .settingsscroll .settingrow:last-child{border-bottom:0}/* 一组里排在设置行后面的分区(「左侧导航」是唯一一处)不自己画上边线:这一层的线挂在@@ -394,7 +391,7 @@ body{background:var(--page)}/* 强调档不写在这一段:它那一面连同悬停归 `body :is(…).primary` 一处。在这里再写一份的话,静止那条会被后面那条压掉、悬停那条却比它重一个类,一颗按钮的静止和悬停就由两处规则分别给出。 */-.geist-input,.geist-select,.configfield input,.search{box-shadow:0 1px 2px #00000004}+.geist-input,.geist-select,.search{box-shadow:0 1px 2px #00000004}.configfieldset,[data-geist-fieldset]{border-radius:var(--surface-radius);overflow:hidden}@media(prefers-color-scheme:dark){:root:not([data-theme]){--page:#111;--ground:#1c1c1c;--surface:#232323;--sunk:#171717;--ink:#fafafa;--ink-2:#d4d4d4;--muted:#a3a3a3;--line:#383838;--line-soft:#303030;--inset:#303030;--picked:#303030;--hover:rgba(255,255,255,.07)}}@@ -765,7 +762,7 @@ body>.board-filter-frame{margin-inline:16px}.srctools button,.detailtitletools button{border-radius:8px;background:var(--surface)}.geist-fieldset,.configfieldset,.cleanupfieldset,.resourcepanel,.resourcesyncbox{border-color:var(--line);border-radius:var(--surface-radius);background:var(--ground);overflow:clip}.geist-fieldset-footer,.configfieldset>.geist-fieldset-footer{background:var(--surface);border-top:1px solid var(--line-soft)}-.geist-input,.geist-select,.gselectfield,.configfield input,.configfield select,.configfield textarea{background:var(--surface);border-color:var(--line);border-radius:10px}+.geist-input,.geist-select,.gselectfield{background:var(--surface);border-color:var(--line);border-radius:10px}.iconswitch{padding:3px;background:var(--surface);border:1px solid var(--line-soft);border-radius:10px}.iconswitch label{border-radius:8px}.iconswitch label:has(input:checked){background:var(--ground);box-shadow:0 1px 3px #0002}@@ -871,7 +868,7 @@ html.board-high-contrast .settingscard.settingscard>.board-local-nav{background:.scrim.scrim.on{top:0;z-index:101;background:none;visibility:hidden}.scrim.scrim.on::before{content:'';position:absolute;inset:0;background:#0007;visibility:visible}.index .ihead .geist-search{flex-basis:160px}- .index .ihead .geist-search input,.geist-input,.configfield input,.settingscard .board-number-control input{font-size:16px}+ .index .ihead .geist-search input,.geist-input,.settingscard .board-number-control input{font-size:16px}.settingscard .board-number-control{height:40px}.settingscard .board-number-control input{height:38px}.settingscard .settingsscroll .gselect,.settingscard .settingsscroll .gselectfield{height:40px;font-size:14px}.settingscard .settingsscroll .board-number-control>span{font-size:14px}@@ -1060,14 +1057,14 @@ html.board-high-contrast .settingscard.settingscard>.board-local-nav{background:面板、筛选条、交集条和标签骨架都从它取值,一处改完五处一起走。 */:root{--tag-radius:8px}body,.disp{font-family:var(--board-font);letter-spacing:0}body{font:var(--board-body)}button,input,textarea,select{font-family:var(--board-font)}-.pagetitle,.listtitle,body #manageTitle,.index .ihead h2,.indexheading,.playlistpage h2{font:var(--board-title);letter-spacing:0}.settingscard .settingshead h2,.configfieldset h2,.configfieldset h3,.cleanupfieldset h3,.followmanage .fsechead h3,.resourcesync>h2{font:var(--board-heading);letter-spacing:0}.metricstrip>button .board-stat-value,.tastesummary>.board-stat-value{font:var(--board-figure);letter-spacing:0}.drawer .dnav button,.board-library-rows button,.settingrow b,.fsource.frow>b{font:var(--board-body)}.fmeta,.confighelp,.settingrow small{font:var(--board-compact)}.board-stat-footer,.board-watch-measures small,.tasterank small,.insighttoolbar p{font:var(--board-caption);letter-spacing:.15px}+.pagetitle,.listtitle,body #manageTitle,.index .ihead h2,.indexheading,.playlistpage h2{font:var(--board-title);letter-spacing:0}.settingscard .settingshead h2,.configfieldset h2,.configfieldset h3,.cleanupfieldset h3,.followmanage .fsechead h3,.resourcesync>h2{font:var(--board-heading);letter-spacing:0}.metricstrip>button .board-stat-value,.tastesummary>.board-stat-value{font:var(--board-figure);letter-spacing:0}.drawer .dnav button,.board-library-rows button,.settingrow b,.fsource.frow>b{font:var(--board-body)}.fmeta,.settingrow small{font:var(--board-compact)}.board-stat-footer,.board-watch-measures small,.tasterank small,.insighttoolbar p{font:var(--board-caption);letter-spacing:.15px}.geist-button,.fbtn,.resourceaction{background-color:var(--color-background-primary-default);border-color:var(--color-border-button-default);color:var(--color-text-primary);transition:background-color .15s ease,border-color .15s ease,color .15s ease}/* 悬停只抬填充,那圈线一步不动:按钮静止态已经带一圈 1px,悬停再把它加深,鼠标扫过一排次级键就是一排边框忽明忽暗,而键本身并没有变化。 */.geist-button:hover:not(:disabled),.fbtn:hover:not(:disabled),.resourceaction:hover:not(:disabled){background-color:var(--color-background-primary-hover);color:var(--color-text-primary)}/* 强调档那一面连同悬停只在下面 `body :is(…).primary` 一处给出。 */.geist-button.danger:hover:not(:disabled),.fbtn.danger:hover:not(:disabled),.resourceaction.danger:hover:not(:disabled){background:var(--drop);color:#fff}-@media(max-width:760px){.pagetitle,.listtitle,body #manageTitle,.index .ihead h2,.indexheading{font:var(--board-figure)}input.geist-input,.configfield input,.geist-search input{font-size:16px}}+@media(max-width:760px){.pagetitle,.listtitle,body #manageTitle,.index .ihead h2,.indexheading{font:var(--board-figure)}input.geist-input,.geist-search input{font-size:16px}}/* 每类骨架保留实际内容的列宽、轮廓和留白。 */.board-page-skeleton{max-width:var(--board-content);width:100%;margin:auto}@@ -1309,7 +1306,6 @@ body [data-board-tabs] button[aria-selected=true],body .managebar [data-board-ta@media(prefers-reduced-motion:reduce){[data-board-tabs].board-tabs-ready::before{transition:none}}.followmanage .fsource:has([data-follow-select]){background:var(--color-background-primary-default)}.followmanage .fsource.selected:has([data-follow-select]){border-color:var(--color-border-focus-ring)}-.board-icon-trigger{width:100%;gap:8px;justify-content:flex-start!important;min-height:var(--control-h);height:var(--control-h)!important}.board-icon-trigger>span:first-child,.board-icon-grid label>span{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;flex:none}.board-icon-trigger svg,.board-icon-grid svg{display:block;width:20px;height:20px;stroke-width:2}.board-icon-trigger img,.board-icon-grid img{display:block;width:20px;height:20px;margin:0}/* 两半之间那条线交给右半的左边界,跟这一组里 `button+button` 的分隔线是同一条规则,上下顶满。四角与外圈仍归外框:两半各自带边和圆角的话,交界处是两条线叠着。 */.splitbutton.board-button-group>.splitmain,.splitbutton.board-button-group>.splittoggle{border:0;border-radius:0;box-shadow:none}@@ -1324,8 +1320,6 @@ body .splitbutton.primary{border:0;box-shadow:none}body .splitbutton.primary>button:disabled{background:var(--sunk);color:var(--muted)}body .splitbutton.primary>.splittoggle{border-left-color:color-mix(in srgb,#000 20%,var(--board-blue))}body [data-cleanup-empty][hidden]{display:none}-dialog.board-icon-popover{position:fixed;inset:auto;margin:0;width:min(360px,calc(100vw - 16px));max-height:calc(100dvh - 16px);box-sizing:border-box;padding:8px;border:0;border-radius:24px;background:var(--color-background-secondary-default);color:var(--ink);box-shadow:0 12px 40px #00000024;overflow:auto}-.board-icon-popover::backdrop{background:transparent}.board-icon-panel{padding:12px;border-radius:20px;background:var(--color-background-primary-default);box-shadow:0 1px 2px #0000000d}.board-icon-panel h3{font:var(--board-body-medium);margin:0 0 10px;padding:0 4px}.board-icon-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}.board-icon-grid label{position:relative;display:grid;place-items:center;height:40px;border-radius:8px;cursor:pointer}.board-icon-grid label:hover{background:var(--color-background-primary-hover)}.board-icon-grid label.selected{background:var(--picked);color:var(--tungsten)}.board-icon-grid input{position:absolute;opacity:0;width:1px;height:1px}.board-icon-grid label:focus-within{outline:2px solid var(--tungsten)}.board-icon-popover footer{display:flex;justify-content:flex-end;gap:8px;padding:8px 4px 0}.reviewitem .reviewstage[data-framed]{padding:0;border:0;background:transparent;box-shadow:none}.reviewitem .reviewtags{min-height:28px;align-content:start}.reviewitem .reviewempty{min-height:160px;max-height:190px;border-radius:12px;background:var(--color-background-secondary-default)}.reviewitem .reviewstage{flex:0 0 auto}.reviewitem .reviewevidence{border:0;padding:12px 0 0}.reviewitem .reviewactions{border:0;border-radius:0 0 16px 16px;background:var(--color-background-secondary-default);margin-top:auto}.reviewitem{content-visibility:auto;contain-intrinsic-size:auto var(--review-fieldset-height)}body .reviewactions button,body .junkactions button:not(.danger){height:36px;border:1px solid var(--color-border-button-default);border-radius:10px;padding:8px 12px;background:var(--color-background-primary-default);color:var(--ink);box-shadow:0 1px 2px #0000000d;font:var(--board-body-medium)}@@ -1334,12 +1328,6 @@ body .reviewactions button.warning,body [data-follow-bulk],body [data-follow-sta.reviewtabs{overflow-x:auto!important;overflow-y:hidden;scrollbar-width:none!important;touch-action:pan-x pan-y;overscroll-behavior-x:contain}.reviewtabs::-webkit-scrollbar{display:none!important}.reviewtabs .os-scrollbar{display:none!important}.settingsscroll .settingrow{margin-right:16px}.settingsscroll .settinggroup{border-bottom:0}.iconswitch.themeswitch[data-board-segments]{padding:4px;border:0;border-radius:24px;background:var(--picked);gap:4px}.iconswitch.themeswitch[data-board-segments]>label{width:32px;height:32px;border-radius:50%}.themeswitch .board-segment-thumb{border-radius:50%;background:var(--ground)}-.configsource{align-items:start}.configsource input.geist-input,.configsource .gselectfield{height:var(--control-h);min-height:var(--control-h);box-sizing:border-box}-/* 配置页的下拉由里面那枚按钮定尺寸,`.gselect` 只是它的定位外壳。上面给设置开关行写的- 那份 `.gselect` 尺寸(32px 高、6px/8px 内边距)在这儿不成立:那边外壳就是控件本身,- 这边按钮是 `--control-h`(36px),比外壳高 4px 往下探出 10px,左边缘还被内边距推右- 8px——同一格里它和上面那个输入框既不同高、也不从同一条竖线起。 */-.settingscard .settingsscroll .machinesettings .gselect{min-width:0;min-height:0;height:auto;padding:0}.configpage .configcheck{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 20px 12px 16px;border:1px solid var(--color-border-button-default);border-radius:10px;background:var(--color-background-primary-default);cursor:pointer}.configpage .configcheck>.pcheck{order:2}.configpage .configcheck:hover{background:var(--color-background-primary-hover)}.card .pic>.badge{padding:4px;border-radius:10px;background:var(--glass-fill);box-shadow:inset 0 1px 0 var(--glass-rim),var(--glass-shadow);backdrop-filter:blur(16px) saturate(145%)}.card .pic>.badge .src{background:transparent;padding:0;width:20px;height:20px}body .selectiondock{border:0;border-radius:22px;background:var(--glass-drift-a),var(--glass-drift-b),linear-gradient(125deg,var(--glass-sheen),transparent 42%,var(--glass-low)),var(--glass-fill);background-size:200% 200%,200% 200%,auto;background-repeat:no-repeat,no-repeat,repeat;background-position:50% 20%,80% 70%,0 0;animation:glassdriftx 41s linear infinite,glassdrifty 67s linear infinite;backdrop-filter:var(--glass-optic,blur(22px)) saturate(145%);box-shadow:inset 0 1px 0 var(--glass-rim),inset 1px 0 0 var(--glass-low),inset -1px 0 0 var(--glass-low),inset 0 -1px 0 var(--glass-low),var(--glass-shadow)}html.board-high-contrast :is(.selectiondock,.reviewcontrols.is-stuck,.reviewgroupbar.is-stuck,.batchbar,.tagselection,.card .badge){background:var(--ground);backdrop-filter:none;-webkit-backdrop-filter:none;animation:none}@@ -1583,7 +1571,7 @@ body .tastesource>button svg{width:20px;height:20px}body :is(.geist-button,.fbtn,.resourceaction,.tagselection button,.reviewpickhead button,.fcredactions button,.fpickactions button,.geist-fieldset-footer>a,.geist-fieldset-footer>button).primary{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:4px;height:36px;min-height:36px;padding:8px 12px;border-radius:10px;font:var(--board-body-medium);white-space:nowrap}body .reviewdock .geist-button.primary{height:var(--control-h);min-height:0}/* 灰卡上的控件用 primary 白底:secondary 底上再放 secondary 控件就看不出框。 */-body.configuration-layout .configpage :is(.gselectfield,.geist-input,input.geist-input,.board-icon-trigger),body .followmanage .faddform .geist-search input{background:var(--color-background-primary-default)}+body .followmanage .faddform .geist-search input{background:var(--color-background-primary-default)}/* 提醒条与上下内容留 12px:关注页检查结果、扫描卡失败都是同一个 Note。 */body .followmanage .fcheckreport,body .followmanage .fwarn{margin:0 0 12px}body .library-processing [role=alert]>.geist-note{margin-top:12px}diff --git a/web/css/23-configuration.css b/web/css/23-configuration.cssindex 3d6c57a99..2e8c98016 100644--- a/web/css/23-configuration.css+++ b/web/css/23-configuration.css@@ -1,6 +1,6 @@-/* 配置页(/configuration):这台电脑的媒体文件夹与本机端口,加一块运行信息。- 两块卡与数据管理 hub 同一条 812px 窄列;卡是 Geist Fieldset:正文 20px 内边距,- 底部操作条 --fieldset-bar-h、左说明右动作。 */+/* 配置页(/configuration)的外壳:分组小标题排在一条 812px 窄列里,与数据管理 hub 同宽。+ 分区本身是 React 子树(`frontend/src/react/settings/`),样式归 `peach-react.css`。+ `.configfieldset` 几条只给配置骨架用。 */.configuration-layout .managetitle,.configuration-layout .pagelede{width:min(812px,100%);margin-left:auto;margin-right:auto}.configpage{width:min(812px,100%);margin:0 auto;display:grid;gap:20px}.configgroup{margin:16px 0 0;font-size:var(--fs-2xl);line-height:1.3;font-weight:600}@@ -10,87 +10,14 @@.resourceaction.warning{background:var(--meter);color:light-dark(var(--ink),var(--ground))}.resourceaction.warning:hover:not(:disabled){background:color-mix(in srgb,var(--meter) 88%,#fff);color:light-dark(var(--ink),var(--ground))}.resourceaction.warning:disabled{background:var(--sunk);color:var(--muted);box-shadow:0 0 0 1px var(--line-soft)}-.configpage .geist-button{min-height:var(--control-h)}.configfieldset{display:flex;flex-direction:column;min-width:0;margin:0;padding:0;overflow:hidden;border:1px solid var(--line);border-radius:var(--control-radius);background:var(--ground)}.configfieldset>.geist-fieldset-content{flex:1;min-height:0;padding:20px;display:grid;gap:20px}-/* grid 的格子按内容的最小宽度撑开。网盘建议表按 520px 起画,卡片比它窄时整条轨道- 跟着变宽,而卡片是 clip:表格右边、下面的说明文字和底部操作条一起被裁在卡片外,- 既看不见也滚不到。格子收回 0,表格自己那层 `overflow-x:auto` 才接得住。 */-.configfieldset>.geist-fieldset-content>*{min-width:0}.configfieldset .geist-fieldset-title{margin:0}-.configselect{width:min(320px,100%)}-.configselect>.gselectfield{width:100%}-.configdirectories>summary{display:flex;align-items:center;gap:8px;list-style:none;cursor:pointer;font-weight:500}-.configdirectories>summary::-webkit-details-marker{display:none}-.configdirectories>summary>svg{width:16px;height:16px;flex:none;stroke:currentColor;fill:none;transition:transform .2s ease-in-out}-.configdirectories>summary[aria-expanded="true"]>svg{transform:rotate(90deg)}-.configdirectories .fcollapsebody{padding:12px 4px 4px}-.configdirectories .confighelp{overflow-wrap:anywhere}-.configdirectories .confighelp:first-child{margin-top:0}-.configfieldset-heading{display:grid;gap:8px}-.configfieldset-heading>.confighelp{margin:0}-.configfieldset>.geist-fieldset-content>:is(.confighelp,.configbad){margin:0}.configfieldset>.geist-fieldset-footer{box-sizing:border-box;min-height:var(--fieldset-bar-h);margin:0;padding:12px 12px 12px 20px;display:flex;align-items:center;justify-content:flex-end;gap:8px;border-top:1px solid var(--line);background:var(--surface)}.configfieldset>.geist-fieldset-footer>p{min-width:0;margin:0 auto 0 0;color:var(--muted);font-size:var(--fs-sm)}-.configfield>label,.configfield>.configlabel{display:block;margin:0 0 8px;font-weight:500;color:var(--ink)}-.configfield:has(>.geist-input:disabled)>label{color:var(--muted)}-.configpage .geist-input:disabled{background:var(--surface);border-color:var(--line);color:var(--muted);cursor:not-allowed}-.configpage .geist-input[aria-invalid="true"]{border-color:var(--drop)}-.configpage .geist-input[aria-invalid="true"]:focus{box-shadow:0 0 0 4px color-mix(in srgb,var(--drop) 24%,transparent)}-.confighelp{margin:8px 0 0;color:var(--muted);font-size:var(--fs-sm);line-height:1.5}-.cloudguide{min-width:0;container-type:inline-size}.cloudguide details{margin-top:16px}.cloudguide summary{cursor:pointer;font-size:var(--fs-sm);min-height:var(--control-h);display:flex;align-items:center;gap:8px;list-style:none}.cloudguide summary::-webkit-details-marker{display:none}.cloudguide summary>svg{width:16px;height:16px;flex:none;stroke:currentColor;fill:none;transition:transform .2s ease-in-out}.cloudguide summary[aria-expanded="true"]>svg{transform:rotate(90deg)}.cloudguide summary:focus-visible{outline:2px solid var(--tungsten);outline-offset:2px}.cloudguide-tablewrap{margin-top:16px;overflow-x:auto;overscroll-behavior-x:contain}.cloudguide-table{width:100%;min-width:520px;border-collapse:collapse;font-size:var(--fs-sm)}.cloudguide-table th,.cloudguide-table td{padding:10px 12px;border-bottom:1px solid var(--line-soft);text-align:right;font-weight:400;line-height:1.5}.cloudguide-table thead th{height:36px;padding-top:0;padding-bottom:0;color:var(--muted);font-size:var(--fs-xs)}.cloudguide-table th:first-child,.cloudguide-table td:first-child{text-align:left}.cloudguide-table tbody th{font-weight:600}.cloudguide-table tbody td{font-variant-numeric:tabular-nums;white-space:nowrap}.cloudguide-table tbody tr:last-child>*{border-bottom:0}.cloudguide-notes{padding-left:20px;font-size:var(--fs-sm);line-height:1.6;color:var(--muted)}.cloudguide-notes li+li{margin-top:8px}@media(max-width:640px){.cloudguide summary{min-height:44px}}-/* 放不下四列就改成一行一块:硬盘那格做小标题,其余三格左边跟着自己的列名,列名从- `data-label` 来,和表头写的是同一串字。判据按容器不按视口——同一个视口里,侧栏- 收没收、卡片在哪一栏,留给这张表的宽度能差出两百多像素。 */-@container(max-width:520px){-.cloudguide-table{min-width:0}-.cloudguide-table thead{display:none}-.cloudguide-table tbody tr{display:block;padding:12px 0;border-bottom:1px solid var(--line-soft)}-.cloudguide-table tbody th{display:block;padding:0 0 6px;border-bottom:0}-.cloudguide-table tbody td{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:2px 0;border-bottom:0;white-space:normal}-.cloudguide-table tbody td::before{content:attr(data-label);color:var(--muted);font-size:var(--fs-xs);text-align:left}}-.confighelp a{color:var(--tungsten);text-decoration:none;margin-inline-start:6px}-.confighelp a:hover{text-decoration:underline;text-underline-offset:3px}+/* React 产物加载失败时 `ReactSlot` 在分组里留下的那一句。 */.configbad{margin:8px 0 0;color:var(--drop);font-size:var(--fs-sm)}-/* 一行一个文件夹:输入框、选择文件夹、移除,三者共用 --control-h,差 3px 就不是一行了。- flex 而不是 grid:只剩一行时移除键不画,grid 的空轨道会留下一段 gap。 */-.configdir{display:flex;flex-wrap:wrap;gap:8px;padding:16px;border:1px solid var(--line-soft);border-radius:var(--control-radius);margin-top:16px}-.configpathlabel{flex-basis:100%;font-weight:500}-.configdir .geist-input{flex:1 1 auto;width:auto;min-width:0}-.configdir > input.geist-input{flex:1 1 0;width:0}-.configdir:first-child{margin-top:0}.configdir .configbad{flex-basis:100%;margin:0}-/* 移除是这一行唯一的销毁键,走 01-base 那一份危险档:静止就是实底红,悬停把同一块红- 压深一档。它和 `.frowicon` 那种挤在一行图标里的删除键不是一件事——那里一块实底红会- 在图标行里炸出一块,这一行里它旁边只有一颗「选择文件夹」。红由 `.danger` 给,页面- 不再自己写第二份:此前静止态和悬停态各写一条、值又一样,悬停等于没有反馈。 */-/* 这两枚跟着同一行的输入框走,尺寸只认 --control-h。board 那层给普通按钮钉了 36px- 定高,特指度比只写两个 class 高;`danger` 那枚被它的 `:not()` 放过、旁边这枚没有,- 于是窄屏下同一行两枚按钮一高一矮。两枚一起写到比它高的一档。 */-body .configpage :is(.configrm,.configpick).geist-button{width:var(--control-h);height:var(--control-h);min-height:var(--control-h);flex:none;padding:0}-.configpick.geist-button{color:var(--muted)}-.configpick.geist-button:hover:not(:disabled){color:var(--ink)}-.configstatus{display:inline-block;margin-inline-start:8px;font-size:var(--fs-sm)}-.configstatus.online{color:var(--success)}.configstatus.offline{color:var(--drop)}.configstatus.unknown{color:var(--muted)}-.configrm svg,.configpick svg{width:16px;height:16px;stroke:currentColor;fill:none}-.configadd{margin-top:8px}-.configsource{flex-basis:100%;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));gap:8px}-.configsource label,.configsourcelabel{min-width:0;display:grid;gap:8px;font-size:var(--fs-sm);color:var(--muted)}-.configsourcecontrol .gselect{display:flex;width:100%}-.configsourcecontrol .gselectfield{padding-inline:14px}-.configsource .geist-input{width:100%;box-sizing:border-box}-.configsource select.geist-input{appearance:none;padding-right:42px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23888' stroke-width='1.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-size:16px;background-position:right 14px center}-.configcheck{display:flex;align-items:flex-start;gap:8px;min-height:32px;cursor:pointer;color:var(--ink);font-size:var(--fs-sm);line-height:20px}-.configoptions{display:grid;gap:16px}-.configoption{display:grid;gap:8px}-.configoption>.confighelp{margin:0}-.configtoggle{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:32px;font-size:var(--fs-sm);cursor:pointer}-.configtoggle:has(:disabled),.configcheck:has(:disabled){cursor:not-allowed;color:var(--muted)}-.configtoggle>span{min-width:0}-.configfacts{margin:0;display:grid;grid-template-columns:max-content minmax(0,1fr);gap:10px 24px;align-items:baseline}-.configfacts dt{color:var(--muted);font-size:var(--fs-sm)}.configfacts dd{margin:0;overflow-wrap:anywhere}-.configfacts dt .gselectmark{vertical-align:-3px;margin-inline-end:8px}-@media(max-width:560px){.configfacts{grid-template-columns:minmax(0,1fr)}.configfacts dd{margin-top:-6px}}-@media(max-width:560px){.configpage{--control-h:44px}.configfieldset>.geist-fieldset-footer{flex-wrap:wrap}.configsource .geist-input{font-size:var(--fs-lg)}}+@media(max-width:560px){.configfieldset>.geist-fieldset-footer{flex-wrap:wrap}}diff --git a/web/dist/peach-react.css b/web/dist/peach-react.cssindex 14684bf18..6489e7cf0 100644--- a/web/dist/peach-react.css+++ b/web/dist/peach-react.css@@ -1,3 +1,3 @@/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */-@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after{--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-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-duration:initial}::backdrop{--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-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-duration: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:#ffe2e2;--color-red-200:#ffcaca;--color-red-300:#ffa3a3;--color-red-400:#ff6568;--color-red-500:#fb2c36;--color-red-600:#e40014;--color-red-700:#bf000f;--color-red-900:#82181a;--color-red-950:#460809;--color-yellow-200:#fff085;--color-yellow-400:#fac800;--color-yellow-500:#edb200;--color-yellow-800:#874b00;--color-yellow-950:#432004;--color-lime-100:#ecfcca;--color-lime-200:#d8f999;--color-lime-300:#bbf451;--color-lime-400:#9de500;--color-lime-500:#80cd00;--color-lime-600:#62a400;--color-lime-700:#4b7d00;--color-lime-800:#3d6300;--color-lime-950:#192e03;--color-green-100:#dcfce7;--color-green-800:#016630;--color-emerald-100:#d0fae5;--color-emerald-300:#5ee9b5;--color-emerald-400:#00d294;--color-emerald-500:#00bb7f;--color-emerald-700:#007956;--color-emerald-800:#005f46;--color-emerald-950:#002c22;--color-teal-400:#00d3bd;--color-teal-500:#00baa7;--color-cyan-200:#a2f4fd;--color-cyan-400:#00d2ef;--color-cyan-800:#005f78;--color-cyan-950:#053345;--color-sky-400:#00bcfe;--color-sky-500:#00a5ef;--color-blue-50:#eff6ff;--color-blue-100:#dbeafe;--color-blue-200:#bedbff;--color-blue-300:#90c5ff;--color-blue-400:#3392ff;--color-blue-500:#3080ff;--color-blue-600:#155dfc;--color-blue-700:#1447e6;--color-blue-800:#193cb8;--color-blue-900:#1c398e;--color-blue-950:#162456;--color-indigo-100:#e0e7ff;--color-indigo-400:#7d87ff;--color-indigo-500:#625fff;--color-indigo-800:#372aac;--color-purple-50:#faf5ff;--color-purple-100:#f3e8ff;--color-purple-300:#d9b3ff;--color-purple-400:#c07eff;--color-purple-500:#ac4bff;--color-purple-600:#9810fa;--color-purple-700:#8200da;--color-purple-800:#6e11b0;--color-purple-900:#59168b;--color-purple-950:#3c0366;--color-pink-100:#fce7f3;--color-pink-300:#fda5d5;--color-pink-400:#fb64b6;--color-pink-500:#f6339a;--color-pink-700:#c4005c;--color-pink-950:#510424;--color-rose-100:#ffe4e6;--color-rose-200:#ffccd3;--color-rose-300:#ffa2ae;--color-rose-500:#ff2357;--color-rose-600:#e70044;--color-rose-800:#a30037;--color-rose-950:#4d0218;--color-zinc-800:#27272a;--color-neutral-50:#fafafa;--color-neutral-100:#f7f7f7;--color-neutral-200:#ebebeb;--color-neutral-300:#d4d4d4;--color-neutral-400:#a1a1a1;--color-neutral-500:#737373;--color-neutral-600:#525252;--color-neutral-700:#404040;--color-neutral-800:#262626;--color-neutral-900:#171717;--color-neutral-950:#0a0a0a;--color-black:#000;--color-white:#fff;--spacing:.25rem;--radius-sm:.25rem;--radius-lg:.5rem;--radius-2xl:1rem;--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);--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-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-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-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}@supports (color:lab(0% 0 0)){:root,:host{--color-red-100:lab(92.243% 10.2865 3.83865);--color-red-200:lab(86.017% 19.8815 7.75869);--color-red-300:lab(76.5514% 36.4219 15.5335);--color-red-400:lab(63.7053% 60.7449 31.3109);--color-red-500:lab(55.4814% 75.0732 48.8528);--color-red-600:lab(48.4493% 77.4328 61.5452);--color-red-700:lab(40.4273% 67.2623 53.7441);--color-red-900:lab(28.5139% 44.5539 29.0463);--color-red-950:lab(13.003% 29.04 16.7519);--color-yellow-200:lab(94.3433% -5.00426 52.9663);--color-yellow-400:lab(83.2664% 8.65132 106.895);--color-yellow-500:lab(76.3898% 14.5258 98.4589);--color-yellow-800:lab(38.7484% 23.5833 51.4916);--color-yellow-950:lab(16.8146% 15.7422 23.1133);--color-lime-100:lab(96.8662% -11.7133 22.0854);--color-lime-200:lab(94.0718% -22.5338 42.5238);--color-lime-300:lab(89.9218% -35.6546 68.5254);--color-lime-400:lab(83.7876% -45.0447 88.4738);--color-lime-500:lab(75.3197% -46.6547 86.1778);--color-lime-600:lab(61.1055% -41.0235 73.1483);--color-lime-700:lab(47.246% -32.2589 55.8249);--color-lime-800:lab(37.7655% -25.1694 43.0683);--color-lime-950:lab(16.5113% -15.1841 22.0145);--color-green-100:lab(96.186% -13.8464 6.52362);--color-green-800:lab(37.4616% -36.7971 22.9692);--color-emerald-100:lab(94.9004% -17.0769 5.63836);--color-emerald-300:lab(83.9203% -48.7124 13.8849);--color-emerald-400:lab(75.0771% -60.7313 19.4146);--color-emerald-500:lab(66.9756% -58.27 19.5419);--color-emerald-700:lab(44.4871% -41.0396 11.0361);--color-emerald-800:lab(35.3675% -33.1188 8.04002);--color-emerald-950:lab(15.0582% -17.9507 2.38369);--color-teal-400:lab(76.0109% -53.3483 -2.27907);--color-teal-500:lab(67.3859% -49.0983 -2.63511);--color-cyan-200:lab(91.0821% -24.0435 -12.8306);--color-cyan-400:lab(76.6045% -40.9406 -29.6231);--color-cyan-800:lab(36.5114% -17.1989 -21.6292);--color-cyan-950:lab(19.1528% -9.68759 -15.5267);--color-sky-400:lab(70.687% -23.6078 -45.9483);--color-sky-500:lab(63.3038% -18.433 -51.0407);--color-blue-50:lab(96.492% -1.14647 -5.11479);--color-blue-100:lab(92.0301% -2.24757 -11.6453);--color-blue-200:lab(86.15% -4.04379 -21.0797);--color-blue-300:lab(77.5052% -6.4629 -36.42);--color-blue-500:lab(54.1736% 13.3368 -74.6839);--color-blue-600:lab(44.0605% 29.0279 -86.0352);--color-blue-700:lab(36.9089% 35.0961 -85.6872);--color-blue-800:lab(30.2514% 27.7854 -70.2699);--color-blue-900:lab(26.1542% 15.7545 -51.5504);--color-blue-950:lab(15.6723% 8.86233 -32.2945);--color-indigo-100:lab(91.6577% 1.04591 -12.7199);--color-indigo-400:lab(59.866% 22.4833 -64.4485);--color-indigo-500:lab(48.295% 38.3129 -81.9673);--color-indigo-800:lab(26.6645% 37.9804 -68.6402);--color-purple-50:lab(97.1626% 2.99937 -4.13398);--color-purple-100:lab(93.3333% 6.9744 -9.83434);--color-purple-300:lab(78.3298% 26.2195 -34.9499);--color-purple-400:lab(63.6946% 47.6127 -59.2066);--color-purple-500:lab(52.0183% 66.11 -78.2316);--color-purple-600:lab(43.0295% 75.21 -86.5669);--color-purple-700:lab(36.1758% 69.8525 -80.0381);--color-purple-800:lab(30.6017% 56.7637 -64.4751);--color-purple-900:lab(24.9401% 45.2703 -51.2728);--color-purple-950:lab(14.8253% 38.9005 -44.5861);--color-pink-100:lab(93.5864% 9.01193 -3.15077);--color-pink-300:lab(77.8308% 38.525 -10.5394);--color-pink-400:lab(64.5597% 64.3615 -12.7988);--color-pink-500:lab(56.9303% 76.8162 -8.07021);--color-pink-700:lab(42.1737% 71.8009 7.42233);--color-pink-950:lab(15.6116% 35.2166 3.53979);--color-rose-100:lab(92.8221% 9.86832 2.60077);--color-rose-200:lab(86.806% 19.1909 4.07754);--color-rose-300:lab(76.6339% 38.3549 9.68834);--color-rose-500:lab(56.101% 79.4329 31.4532);--color-rose-600:lab(49.1882% 81.577 36.0311);--color-rose-800:lab(34.6481% 60.802 20.1957);--color-rose-950:lab(14.2323% 34.0086 9.80922);--color-zinc-800:lab(15.7305% .613749 -2.16959);--color-neutral-50:lab(98.26% 0 0);--color-neutral-300:lab(84.92% 0 0);--color-neutral-400:lab(66.128% -.0000298023 .0000119209);--color-neutral-500:lab(48.496% 0 0);--color-neutral-600:lab(34.924% 0 0);--color-neutral-700:lab(27.036% 0 0);--color-neutral-800:lab(15.204% 0 0);--color-neutral-900:lab(7.78201% -.0000149012 0);--color-neutral-950:lab(2.75381% 0 0)}}}.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}.relative{position:relative}.static{position:static}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.m-0{margin:0}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.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-8{width:calc(var(--spacing) * 8);height:calc(var(--spacing) * 8)}.size-\[18px\]{width:18px;height:18px}.h-6{height:calc(var(--spacing) * 6)}.h-8{height:calc(var(--spacing) * 8)}.h-9{height:calc(var(--spacing) * 9)}.h-max{height:max-content}.min-h-\[52px\]{min-height:52px}.w-\[202px\]{width:202px}.w-full{width:100%}.min-w-0{min-width:0}.flex-1{flex:1}.shrink-0{flex-shrink:0}.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}.flex-col{flex-direction:column}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.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-4{gap:calc(var(--spacing) * 4)}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.rounded{border-radius:.25rem}.rounded-2lg{border-radius:var(--radius-2lg)}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-lg{border-radius:var(--radius-lg)}.rounded-sm{border-radius:var(--radius-sm)}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.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-border-button-default{border-color:var(--color-border-button-default)}.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-background-primary-default{background-color:var(--color-background-primary-default)}.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-button-ghost-background{background-color:var(--color-button-ghost-background)}.bg-input-disabled-background{background-color:var(--color-input-disabled-background)}.bg-status-yellow-background{background-color:var(--color-status-yellow-background)}.bg-transparent{background-color:#0000}.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))}.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))}.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))}.p-0{padding:0}.p-2{padding:calc(var(--spacing) * 2)}.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-3{padding-inline:calc(var(--spacing) * 3)}.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-4{padding-block:calc(var(--spacing) * 4)}.pt-3{padding-top:calc(var(--spacing) * 3)}.pt-px{padding-top:1px}.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)}.pl-1{padding-left:var(--spacing)}.pl-3{padding-left:calc(var(--spacing) * 3)}.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-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-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-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))}.whitespace-nowrap{white-space:nowrap}.text-button-ghost-foreground{color:var(--color-button-ghost-foreground)}.text-foreground-full{color:var(--color-foreground-full)}.text-foreground-icon-error{color:var(--color-foreground-icon-error)}.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-status-yellow-text{color:var(--color-status-yellow-text)}.text-text-error-primary{color:var(--color-text-error-primary)}.text-text-primary{color:var(--color-text-primary)}.text-text-secondary{color:var(--color-text-secondary)}.text-text-white{color:var(--color-text-white)}.opacity-50{opacity:.5}.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-xs{--tw-shadow:0 1px 2px 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\/xs{--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)}.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)}.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))}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-\[var\(--input-transition-ms\)\]{--tw-duration:var(--input-transition-ms);transition-duration:var(--input-transition-ms)}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.ring-inset{--tw-ring-inset:inset}.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}@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)}}.focus\:placeholder\:text-text-primary:focus::placeholder{color:var(--color-text-primary)}.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)}.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-input-disabled-text:disabled{color:var(--color-input-disabled-text)}.disabled\:text-text-tertiary:disabled{color:var(--color-text-tertiary)}.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\: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)}@scope(.peach-react){*,:after,:before{box-sizing:border-box;border:0 solid;margin:0;padding:0}::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)}}:root{--font-inter:"Inter Variable", "Inter"}.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;--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-700);--color-border-checkbox-hover:var(--color-neutral-500);--color-separator-border:var(--color-neutral-800)}@keyframes check-draw{0%{stroke-dashoffset:1px}to{stroke-dashoffset:0}}.animate-check-draw{stroke-dasharray:1;stroke-dashoffset:1px;animation:.2s cubic-bezier(.65,0,.35,1) forwards check-draw}@media (prefers-reduced-motion:reduce){.animate-check-draw{stroke-dashoffset:0;animation:none}}@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-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-duration{syntax:"*";inherits:false}+@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--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-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;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1}::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--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-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;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1}}}@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:#ffe2e2;--color-red-200:#ffcaca;--color-red-300:#ffa3a3;--color-red-400:#ff6568;--color-red-500:#fb2c36;--color-red-600:#e40014;--color-red-700:#bf000f;--color-red-900:#82181a;--color-red-950:#460809;--color-yellow-200:#fff085;--color-yellow-400:#fac800;--color-yellow-500:#edb200;--color-yellow-800:#874b00;--color-yellow-950:#432004;--color-lime-100:#ecfcca;--color-lime-200:#d8f999;--color-lime-300:#bbf451;--color-lime-400:#9de500;--color-lime-500:#80cd00;--color-lime-600:#62a400;--color-lime-700:#4b7d00;--color-lime-800:#3d6300;--color-lime-950:#192e03;--color-green-100:#dcfce7;--color-green-800:#016630;--color-emerald-100:#d0fae5;--color-emerald-300:#5ee9b5;--color-emerald-400:#00d294;--color-emerald-500:#00bb7f;--color-emerald-700:#007956;--color-emerald-800:#005f46;--color-emerald-950:#002c22;--color-teal-400:#00d3bd;--color-teal-500:#00baa7;--color-cyan-200:#a2f4fd;--color-cyan-400:#00d2ef;--color-cyan-800:#005f78;--color-cyan-950:#053345;--color-sky-400:#00bcfe;--color-sky-500:#00a5ef;--color-blue-50:#eff6ff;--color-blue-100:#dbeafe;--color-blue-200:#bedbff;--color-blue-300:#90c5ff;--color-blue-400:#3392ff;--color-blue-500:#3080ff;--color-blue-600:#155dfc;--color-blue-700:#1447e6;--color-blue-800:#193cb8;--color-blue-900:#1c398e;--color-blue-950:#162456;--color-indigo-100:#e0e7ff;--color-indigo-400:#7d87ff;--color-indigo-500:#625fff;--color-indigo-800:#372aac;--color-purple-50:#faf5ff;--color-purple-100:#f3e8ff;--color-purple-300:#d9b3ff;--color-purple-400:#c07eff;--color-purple-500:#ac4bff;--color-purple-600:#9810fa;--color-purple-700:#8200da;--color-purple-800:#6e11b0;--color-purple-900:#59168b;--color-purple-950:#3c0366;--color-pink-100:#fce7f3;--color-pink-300:#fda5d5;--color-pink-400:#fb64b6;--color-pink-500:#f6339a;--color-pink-700:#c4005c;--color-pink-950:#510424;--color-rose-100:#ffe4e6;--color-rose-200:#ffccd3;--color-rose-300:#ffa2ae;--color-rose-500:#ff2357;--color-rose-600:#e70044;--color-rose-800:#a30037;--color-rose-950:#4d0218;--color-zinc-800:#27272a;--color-neutral-50:#fafafa;--color-neutral-100:#f7f7f7;--color-neutral-200:#ebebeb;--color-neutral-300:#d4d4d4;--color-neutral-400:#a1a1a1;--color-neutral-500:#737373;--color-neutral-600:#525252;--color-neutral-700:#404040;--color-neutral-800:#262626;--color-neutral-900:#171717;--color-neutral-950:#0a0a0a;--color-black:#000;--color-white:#fff;--spacing:.25rem;--radius-xs:.125rem;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--radius-2xl:1rem;--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);--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-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-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}@supports (color:lab(0% 0 0)){:root,:host{--color-red-100:lab(92.243% 10.2865 3.83865);--color-red-200:lab(86.017% 19.8815 7.75869);--color-red-300:lab(76.5514% 36.4219 15.5335);--color-red-400:lab(63.7053% 60.7449 31.3109);--color-red-500:lab(55.4814% 75.0732 48.8528);--color-red-600:lab(48.4493% 77.4328 61.5452);--color-red-700:lab(40.4273% 67.2623 53.7441);--color-red-900:lab(28.5139% 44.5539 29.0463);--color-red-950:lab(13.003% 29.04 16.7519);--color-yellow-200:lab(94.3433% -5.00426 52.9663);--color-yellow-400:lab(83.2664% 8.65132 106.895);--color-yellow-500:lab(76.3898% 14.5258 98.4589);--color-yellow-800:lab(38.7484% 23.5833 51.4916);--color-yellow-950:lab(16.8146% 15.7422 23.1133);--color-lime-100:lab(96.8662% -11.7133 22.0854);--color-lime-200:lab(94.0718% -22.5338 42.5238);--color-lime-300:lab(89.9218% -35.6546 68.5254);--color-lime-400:lab(83.7876% -45.0447 88.4738);--color-lime-500:lab(75.3197% -46.6547 86.1778);--color-lime-600:lab(61.1055% -41.0235 73.1483);--color-lime-700:lab(47.246% -32.2589 55.8249);--color-lime-800:lab(37.7655% -25.1694 43.0683);--color-lime-950:lab(16.5113% -15.1841 22.0145);--color-green-100:lab(96.186% -13.8464 6.52362);--color-green-800:lab(37.4616% -36.7971 22.9692);--color-emerald-100:lab(94.9004% -17.0769 5.63836);--color-emerald-300:lab(83.9203% -48.7124 13.8849);--color-emerald-400:lab(75.0771% -60.7313 19.4146);--color-emerald-500:lab(66.9756% -58.27 19.5419);--color-emerald-700:lab(44.4871% -41.0396 11.0361);--color-emerald-800:lab(35.3675% -33.1188 8.04002);--color-emerald-950:lab(15.0582% -17.9507 2.38369);--color-teal-400:lab(76.0109% -53.3483 -2.27907);--color-teal-500:lab(67.3859% -49.0983 -2.63511);--color-cyan-200:lab(91.0821% -24.0435 -12.8306);--color-cyan-400:lab(76.6045% -40.9406 -29.6231);--color-cyan-800:lab(36.5114% -17.1989 -21.6292);--color-cyan-950:lab(19.1528% -9.68759 -15.5267);--color-sky-400:lab(70.687% -23.6078 -45.9483);--color-sky-500:lab(63.3038% -18.433 -51.0407);--color-blue-50:lab(96.492% -1.14647 -5.11479);--color-blue-100:lab(92.0301% -2.24757 -11.6453);--color-blue-200:lab(86.15% -4.04379 -21.0797);--color-blue-300:lab(77.5052% -6.4629 -36.42);--color-blue-500:lab(54.1736% 13.3368 -74.6839);--color-blue-600:lab(44.0605% 29.0279 -86.0352);--color-blue-700:lab(36.9089% 35.0961 -85.6872);--color-blue-800:lab(30.2514% 27.7854 -70.2699);--color-blue-900:lab(26.1542% 15.7545 -51.5504);--color-blue-950:lab(15.6723% 8.86233 -32.2945);--color-indigo-100:lab(91.6577% 1.04591 -12.7199);--color-indigo-400:lab(59.866% 22.4833 -64.4485);--color-indigo-500:lab(48.295% 38.3129 -81.9673);--color-indigo-800:lab(26.6645% 37.9804 -68.6402);--color-purple-50:lab(97.1626% 2.99937 -4.13398);--color-purple-100:lab(93.3333% 6.9744 -9.83434);--color-purple-300:lab(78.3298% 26.2195 -34.9499);--color-purple-400:lab(63.6946% 47.6127 -59.2066);--color-purple-500:lab(52.0183% 66.11 -78.2316);--color-purple-600:lab(43.0295% 75.21 -86.5669);--color-purple-700:lab(36.1758% 69.8525 -80.0381);--color-purple-800:lab(30.6017% 56.7637 -64.4751);--color-purple-900:lab(24.9401% 45.2703 -51.2728);--color-purple-950:lab(14.8253% 38.9005 -44.5861);--color-pink-100:lab(93.5864% 9.01193 -3.15077);--color-pink-300:lab(77.8308% 38.525 -10.5394);--color-pink-400:lab(64.5597% 64.3615 -12.7988);--color-pink-500:lab(56.9303% 76.8162 -8.07021);--color-pink-700:lab(42.1737% 71.8009 7.42233);--color-pink-950:lab(15.6116% 35.2166 3.53979);--color-rose-100:lab(92.8221% 9.86832 2.60077);--color-rose-200:lab(86.806% 19.1909 4.07754);--color-rose-300:lab(76.6339% 38.3549 9.68834);--color-rose-500:lab(56.101% 79.4329 31.4532);--color-rose-600:lab(49.1882% 81.577 36.0311);--color-rose-800:lab(34.6481% 60.802 20.1957);--color-rose-950:lab(14.2323% 34.0086 9.80922);--color-zinc-800:lab(15.7305% .613749 -2.16959);--color-neutral-50:lab(98.26% 0 0);--color-neutral-300:lab(84.92% 0 0);--color-neutral-400:lab(66.128% -.0000298023 .0000119209);--color-neutral-500:lab(48.496% 0 0);--color-neutral-600:lab(34.924% 0 0);--color-neutral-700:lab(27.036% 0 0);--color-neutral-800:lab(15.204% 0 0);--color-neutral-900:lab(7.78201% -.0000149012 0);--color-neutral-950:lab(2.75381% 0 0)}}}.\@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}.visible{visibility:visible}.absolute{position:absolute}.relative{position:relative}.static{position:static}.sticky{position:sticky}.top-0\.5{top:calc(var(--spacing) * .5)}.top-1{top:var(--spacing)}.top-\[3px\]{top:3px}.left-0\.5{left:calc(var(--spacing) * .5)}.left-1{left:var(--spacing)}.left-\[3px\]{left:3px}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.m-0{margin:0}.mr-auto{margin-right:auto}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.table{display:table}.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-8{width:calc(var(--spacing) * 8);height:calc(var(--spacing) * 8)}.size-9{width:calc(var(--spacing) * 9);height:calc(var(--spacing) * 9)}.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}.h-1\.5{height:calc(var(--spacing) * 1.5)}.h-4{height:calc(var(--spacing) * 4)}.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-11{min-height:calc(var(--spacing) * 11)}.min-h-\[52px\]{min-height:52px}.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:-moz-fit-content;width:fit-content}.w-full{width:100%}.max-w-\[calc\(100vw-32px\)\]{max-width:calc(100vw - 32px)}.min-w-0{min-width:0}.flex-1{flex:1}.shrink-0{flex-shrink:0}.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)}.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}}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.cursor-default{cursor:default}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.list-disc{list-style-type:disc}.list-none{list-style-type:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.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-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.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-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-6{gap:calc(var(--spacing) * 6)}.gap-\[5px\]{gap:5px}.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-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-2lg{border-radius:var(--radius-2lg)}.rounded-2xl{border-radius:var(--radius-2xl)}.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-xs{border-radius:var(--radius-xs)}.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-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-background-primary-default{background-color:var(--color-background-primary-default)}.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-button-ghost-background{background-color:var(--color-button-ghost-background)}.bg-current{background-color:currentColor}.bg-dropdown-item-hover-background{background-color:var(--color-dropdown-item-hover-background)}.bg-input-disabled-background{background-color:var(--color-input-disabled-background)}.bg-notification-information-background{background-color:var(--color-notification-information-background)}.bg-notification-success-background{background-color:var(--color-notification-success-background)}.bg-status-yellow-background{background-color:var(--color-status-yellow-background)}.bg-transparent{background-color:#0000}.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))}.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))}.fill-background-secondary-default{fill:var(--color-background-secondary-default)}.fill-background-tertiary-default{fill:var(--color-background-tertiary-default)}.fill-border-focus-ring{fill:var(--color-border-focus-ring)}.stroke-current{stroke:currentColor}.stroke-2{stroke-width:2px}.p-0{padding:0}.p-2{padding:calc(var(--spacing) * 2)}.p-2\.5{padding:calc(var(--spacing) * 2.5)}.p-3{padding:calc(var(--spacing) * 3)}.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-\[7px\]{padding-inline:7px}.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)}.pt-2\.5{padding-top:calc(var(--spacing) * 2.5)}.pt-3{padding-top:calc(var(--spacing) * 3)}.pt-px{padding-top:1px}.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)}.pl-1{padding-left:var(--spacing)}.pl-3{padding-left:calc(var(--spacing) * 3)}.pl-5{padding-left:calc(var(--spacing) * 5)}.text-left{text-align:left}.text-right{text-align:right}.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-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-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))}.break-all{word-break:break-all}.whitespace-nowrap{white-space:nowrap}.text-accent-600{color:var(--color-accent-600)}.text-button-ghost-foreground{color:var(--color-button-ghost-foreground)}.text-foreground-full{color:var(--color-foreground-full)}.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-notification-information-foreground{color:var(--color-notification-information-foreground)}.text-notification-success-foreground{color:var(--color-notification-success-foreground)}.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-primary{color:var(--color-text-primary)}.text-text-secondary{color:var(--color-text-secondary)}.text-text-white{color:var(--color-text-white)}.underline{text-decoration-line:underline}.underline-offset-3{text-underline-offset:3px}.opacity-50{opacity:.5}.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-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:0 1px 1px 0 var(--tw-shadow-color,#0000000a), 0 4px 4px 0 var(--tw-shadow-color,#00000005);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:0 1px 2px 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\/xs{--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)}.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-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-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}.group-open\:rotate-90:is(:where(.group):is([open],:popover-open,:open) *){rotate:90deg}.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}@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-text-primary:hover{color:var(--color-text-primary)}.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)}.data-selected\:bg-dropdown-item-hover-background[data-selected]{background-color:var(--color-dropdown-item-hover-background)}.data-selected\:text-text-primary[data-selected]{color:var(--color-text-primary)}.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-\[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%}@container (width>=28rem){.\@md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}@container (width>=32rem){.\@lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@scope(.peach-react){*,:after,:before{box-sizing:border-box;border:0 solid;margin:0;padding:0}::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)}}:root{--font-inter:"Inter Variable", "Inter"}.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;--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-700);--color-border-checkbox-hover:var(--color-neutral-500);--color-separator-border:var(--color-neutral-800)}@keyframes check-draw{0%{stroke-dashoffset:1px}to{stroke-dashoffset:0}}.animate-check-draw{stroke-dasharray:1;stroke-dashoffset:1px;animation:.2s cubic-bezier(.65,0,.35,1) forwards check-draw}@media (prefers-reduced-motion:reduce){.animate-check-draw{stroke-dashoffset:0;animation:none}}@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-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@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-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}@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}/*$vite$:1*/\ No newline at end of filediff --git a/web/dist/peach-react.js b/web/dist/peach-react.jsindex abe1c7a42..105416d4b 100644--- a/web/dist/peach-react.js+++ b/web/dist/peach-react.js@@ -1,216 +1,347 @@import { requestErrorMessage as e } from "/js/core.js";+import { MEDIA_SOURCE_ICONS as t, confirmModal as n } from "/js/ui-components.js";//#region \0rolldown/runtime.js-var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescriptor, i = Object.getOwnPropertyNames, a = Object.getPrototypeOf, o = Object.prototype.hasOwnProperty, s = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), c = (e, t, a, s) => {- if (t && typeof t == "object" || typeof t == "function") for (var c = i(t), l = 0, u = c.length, d; l < u; l++) d = c[l], !o.call(e, d) && d !== a && n(e, d, {+var r = Object.create, i = Object.defineProperty, a = Object.getOwnPropertyDescriptor, o = Object.getOwnPropertyNames, s = Object.getPrototypeOf, c = Object.prototype.hasOwnProperty, l = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), u = (e, t, n, r) => {+ if (t && typeof t == "object" || typeof t == "function") for (var s = o(t), l = 0, u = s.length, d; l < u; l++) d = s[l], !c.call(e, d) && d !== n && i(e, d, {get: ((e) => t[e]).bind(null, d),- enumerable: !(s = r(t, d)) || s.enumerable+ enumerable: !(r = a(t, d)) || r.enumerable});return e;-}, l = (e, r, i) => (i = e == null ? {} : t(a(e)), c(r || !e || !e.__esModule || !o.call(e, "default") ? n(i, "default", {+}, d = (e, t, n) => (n = e == null ? {} : r(s(e)), u(t || !e || !e.__esModule || !c.call(e, "default") ? i(n, "default", {value: e,enumerable: !0-}) : i, e)), u = /* @__PURE__ */ s(((e) => {- function t(e, t) {- var n = e.length;- e.push(t);- a: for (; 0 < n;) {- var r = n - 1 >>> 1, a = e[r];- if (0 < i(a, t)) e[r] = t, e[n] = a, n = r;- else break a;- }+}) : n, e)), f = 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;}- function n(e) {- return e.length === 0 ? null : e[0];+ get childNodes() {+ throw Error("childNodes is not supported");}- function r(e) {- if (e.length === 0) return null;- var t = e[0], n = e.pop();- if (n !== t) {- e[0] = n;- a: for (var r = 0, a = e.length, o = a >>> 1; r < o;) {- var s = 2 * (r + 1) - 1, c = e[s], l = s + 1, u = e[l];- if (0 > i(c, n)) l < a && 0 > i(u, c) ? (e[r] = u, e[l] = n, r = l) : (e[r] = c, e[s] = n, r = s);- else if (l < a && 0 > i(u, n)) e[r] = u, e[l] = n, r = l;- else break a;- }+ clone() {+ let e = new this.constructor(this.key);+ return e.value = this.value, e.level = this.level, e.hasChildNodes = this.hasChildNodes, e.rendered = this.rendered, e.textValue = this.textValue, e["aria-label"] = this["aria-label"], e.index = this.index, e.parentKey = this.parentKey, e.prevKey = this.prevKey, e.nextKey = this.nextKey, e.firstChildKey = this.firstChildKey, e.lastChildKey = this.lastChildKey, e.props = this.props, e.render = this.render, e.colSpan = this.colSpan, e.colIndex = this.colIndex, e;+ }+ filter(e, t, n) {+ let r = this.clone();+ return t.addDescendants(r, e), r;+ }+}, p = class extends f {+ filter(e, t, n) {+ let [r, i] = _(e, t, this.firstChildKey, n), a = this.clone();+ return a.firstChildKey = r, a.lastChildKey = i, a;+ }+};+(class extends f {+ static {+ this.type = "header";+ }+});+var m = class extends f {+ static {+ this.type = "loader";+ }+}, h = class extends p {+ static {+ this.type = "item";+ }+ filter(e, t, n) {+ if (n(this.textValue, this)) {+ let n = this.clone();+ return t.addDescendants(n, e), n;}- return t;+ return null;}- function i(e, t) {- var n = e.sortIndex - t.sortIndex;- return n === 0 ? e.id - t.id : n;+};+(class extends p {+ static {+ this.type = "section";}- if (e.unstable_now = void 0, typeof performance == "object" && typeof performance.now == "function") {- var a = performance;- e.unstable_now = function() {- return a.now();- };- } else {- var o = Date, s = o.now();- e.unstable_now = function() {- return o.now() - s;- };+ filter(e, t, n) {+ let r = super.filter(e, t, n);+ if (r && r.lastChildKey !== null) {+ let t = e.getItem(r.lastChildKey);+ if (t && t.type !== "header") return r;+ }+ return null;}- var c = [], l = [], u = 1, d = null, f = 3, p = !1, m = !1, h = !1, g = !1, _ = typeof setTimeout == "function" ? setTimeout : null, v = typeof clearTimeout == "function" ? clearTimeout : null, y = typeof setImmediate < "u" ? setImmediate : null;- function b(e) {- for (var i = n(l); i !== null;) {- if (i.callback === null) r(l);- else if (i.startTime <= e) r(l), i.sortIndex = i.expirationTime, t(c, i);- else break;- i = n(l);+});+var g = class {+ get size() {+ return this.itemCount;+ }+ getKeys() {+ return this.keyMap.keys();+ }+ *[Symbol.iterator]() {+ let e = this.firstKey == null ? void 0 : this.keyMap.get(this.firstKey);+ for (; e;) yield e, e = e.nextKey == null ? void 0 : this.keyMap.get(e.nextKey);+ }+ getChildren(e) {+ let t = this.keyMap;+ return { *[Symbol.iterator]() {+ let n = t.get(e), r = n?.firstChildKey == null ? null : t.get(n.firstChildKey);+ for (; r;) yield r, r = r.nextKey == null ? void 0 : t.get(r.nextKey);+ } };+ }+ getKeyBefore(e) {+ let t = this.keyMap.get(e);+ if (!t) return null;+ if (t.prevKey != null) {+ for (t = this.keyMap.get(t.prevKey); t && t.type !== "item" && t.lastChildKey != null;) t = this.keyMap.get(t.lastChildKey);+ return t?.key ?? null;+ }+ return t.parentKey;+ }+ getKeyAfter(e) {+ let t = this.keyMap.get(e);+ if (!t) return null;+ if (t.type !== "item" && t.firstChildKey != null) return t.firstChildKey;+ for (; t;) {+ if (t.nextKey != null) return t.nextKey;+ if (t.parentKey != null) t = this.keyMap.get(t.parentKey);+ else return null;}+ return null;}- function x(e) {- if (h = !1, b(e), !m) {- if (n(c) !== null) m = !0, S || (S = !0, ne());- else {- var t = n(l);- t !== null && ae(x, t.startTime - e);+ getFirstKey() {+ return this.firstKey;+ }+ getLastKey() {+ let e = this.lastKey == null ? null : this.keyMap.get(this.lastKey);+ for (; e?.lastChildKey != null;) e = this.keyMap.get(e.lastChildKey);+ return e?.key ?? null;+ }+ getItem(e) {+ return this.keyMap.get(e) ?? null;+ }+ at() {+ throw Error("Not implemented");+ }+ clone() {+ let e = this.constructor, t = new e();+ return t.keyMap = new Map(this.keyMap), t.firstKey = this.firstKey, t.lastKey = this.lastKey, t.itemCount = this.itemCount, t;+ }+ addNode(e) {+ if (this.frozen) throw Error("Cannot add a node to a frozen collection");+ e.type === "item" && this.keyMap.get(e.key) == null && this.itemCount++, this.keyMap.set(e.key, e);+ }+ addDescendants(e, t) {+ this.addNode(e);+ let n = t.getChildren(e.key);+ for (let e of n) this.addDescendants(e, t);+ }+ removeNode(e) {+ if (this.frozen) throw Error("Cannot remove a node to a frozen collection");+ let t = this.keyMap.get(e);+ t != null && t.type === "item" && this.itemCount--, this.keyMap.delete(e);+ }+ commit(e, t, n = !1) {+ if (this.frozen) throw Error("Cannot commit a frozen collection");+ this.firstKey = e, this.lastKey = t, this.frozen = !n;+ }+ filter(e) {+ let t = new this.constructor(), [n, r] = _(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 _(e, t, n, r) {+ if (n == null) return [null, null];+ let i = null, a = null, o = e.getItem(n);+ for (; o != null;) {+ let n = o.filter(e, t, r);+ n != null && (n.nextKey = null, a && (n.prevKey = a.key, a.nextKey = n.key), i ??= n, t.addNode(n), a = n), o = o.nextKey == null ? null : e.getItem(o.nextKey);+ }+ if (a && a.type === "separator") {+ let e = a.prevKey;+ t.removeNode(a.key), e == null ? a = null : (a = t.getItem(e), a.nextKey = null);+ }+ return [i?.key ?? null, a?.key ?? null];+}+//#endregion+//#region node_modules/react-aria/dist/private/collections/Document.mjs+var v = class {+ constructor(e) {+ this._firstChild = null, this._lastChild = null, this._previousSibling = null, this._nextSibling = null, this._parentNode = null, this._minInvalidChildIndex = null, this.ownerDocument = e;+ }+ *[Symbol.iterator]() {+ let e = this.firstChild;+ for (; e;) yield e, e = e.nextSibling;+ }+ get firstChild() {+ return this._firstChild;+ }+ set firstChild(e) {+ this._firstChild = e, this.ownerDocument.markDirty(this);+ }+ get lastChild() {+ return this._lastChild;+ }+ set lastChild(e) {+ this._lastChild = e, this.ownerDocument.markDirty(this);+ }+ get previousSibling() {+ return this._previousSibling;+ }+ set previousSibling(e) {+ this._previousSibling = e, this.ownerDocument.markDirty(this);+ }+ get nextSibling() {+ return this._nextSibling;+ }+ set nextSibling(e) {+ this._nextSibling = e, this.ownerDocument.markDirty(this);+ }+ get parentNode() {+ return this._parentNode;+ }+ set parentNode(e) {+ this._parentNode = e, this.ownerDocument.markDirty(this);+ }+ get isConnected() {+ return this.parentNode?.isConnected || !1;+ }+ invalidateChildIndices(e) {+ (this._minInvalidChildIndex == null || !this._minInvalidChildIndex.isConnected || e.index < this._minInvalidChildIndex.index) && (this._minInvalidChildIndex = e, this.ownerDocument.markDirty(this));+ }+ updateChildIndices() {+ let e = this._minInvalidChildIndex;+ for (; e;) e.index = e.previousSibling ? e.previousSibling.index + 1 : 0, e = e.nextSibling;+ this._minInvalidChildIndex = null;+ }+ appendChild(e) {+ e.parentNode && e.parentNode.removeChild(e), this.firstChild ??= e, this.lastChild ? (this.lastChild.nextSibling = e, e.index = this.lastChild.index + 1, e.previousSibling = this.lastChild) : (e.previousSibling = null, e.index = 0), e.parentNode = this, e.nextSibling = null, this.lastChild = e, this.ownerDocument.markDirty(this), this.isConnected && this.ownerDocument.queueUpdate();+ }+ insertBefore(e, t) {+ if (t == null) return this.appendChild(e);+ e.parentNode && e.parentNode.removeChild(e), e.nextSibling = t, e.previousSibling = t.previousSibling, e.index = t.index - 1, this.firstChild === t ? this.firstChild = e : t.previousSibling && (t.previousSibling.nextSibling = e), t.previousSibling = e, e.parentNode = t.parentNode, this.invalidateChildIndices(e), this.isConnected && this.ownerDocument.queueUpdate();+ }+ removeChild(e) {+ e.parentNode === this && (this._minInvalidChildIndex === e && (this._minInvalidChildIndex = null), e.nextSibling && (this.invalidateChildIndices(e.nextSibling), e.nextSibling.previousSibling = e.previousSibling), e.previousSibling && (e.previousSibling.nextSibling = e.nextSibling), this.firstChild === e && (this.firstChild = e.nextSibling), this.lastChild === e && (this.lastChild = e.previousSibling), e.parentNode = null, e.nextSibling = null, e.previousSibling = null, e.index = 0, this.ownerDocument.markDirty(e), this.isConnected && this.ownerDocument.queueUpdate());+ }+ addEventListener() {}+ removeEventListener() {}+ get previousVisibleSibling() {+ let e = this.previousSibling;+ for (; e && e.isHidden;) e = e.previousSibling;+ return e;+ }+ get nextVisibleSibling() {+ let e = this.nextSibling;+ for (; e && e.isHidden;) e = e.nextSibling;+ return e;+ }+ get firstVisibleChild() {+ let e = this.firstChild;+ for (; e && e.isHidden;) e = e.nextSibling;+ return e;+ }+ get lastVisibleChild() {+ let e = this.lastChild;+ for (; e && e.isHidden;) e = e.previousSibling;+ return e;+ }+}, y = class e extends v {+ constructor(e, t) {+ super(t), this.nodeType = 8, this.isMutated = !0, this._index = 0, this.isHidden = !1, this.node = null;+ }+ get index() {+ return this._index;+ }+ set index(e) {+ this._index = e, this.ownerDocument.markDirty(this);+ }+ get level() {+ return this.parentNode instanceof e ? this.parentNode.level + +(this.parentNode.node?.type === "item") : 0;+ }+ getMutableNode() {+ return this.node == null ? null : (this.isMutated ||= (this.node = this.node.clone(), !0), this.ownerDocument.markDirty(this), this.node);+ }+ updateNode() {+ let t = this.nextVisibleSibling, n = this.getMutableNode();+ if (n != null && (n.index = this.index, n.level = this.level, n.parentKey = this.parentNode instanceof e ? this.parentNode.node?.key ?? null : null, n.prevKey = this.previousVisibleSibling?.node?.key ?? null, n.nextKey = t?.node?.key ?? null, n.hasChildNodes = !!this.firstChild, n.firstChildKey = this.firstVisibleChild?.node?.key ?? null, n.lastChildKey = this.lastVisibleChild?.node?.key ?? null, (n.colSpan != null || n.colIndex != null) && t)) {+ let e = (n.colIndex ?? n.index) + (n.colSpan ?? 1);+ if (t.node != null && e !== t.node.colIndex) {+ let n = t.getMutableNode();+ n.colIndex = e;}}}- var S = !1, ee = -1, C = 5, w = -1;- function te() {- return g ? !0 : !(e.unstable_now() - w < C);+ setProps(e, t, n, r, i) {+ let a, { value: o, textValue: s, id: c, ...l } = e;+ if (this.node == null ? (a = new n(c ?? `react-aria-${++this.ownerDocument.nodeId}`), this.node = a) : a = this.getMutableNode(), l.ref = t, a.props = l, a.rendered = r, a.render = i, a.value = o, e["aria-label"] && (a["aria-label"] = e["aria-label"]), a.textValue = s || (typeof l.children == "string" ? l.children : "") || e["aria-label"] || "", c != null && c !== a.key) throw Error("Cannot change the id of an item");+ l.colSpan != null && (a.colSpan = l.colSpan), this.isConnected && this.ownerDocument.queueUpdate();}- function T() {- if (g = !1, S) {- var t = e.unstable_now();- w = t;- var i = !0;- try {- a: {- m = !1, h && (h = !1, v(ee), ee = -1), p = !0;- var a = f;- try {- b: {- for (b(t), d = n(c); d !== null && !(d.expirationTime > t && te());) {- var o = d.callback;- if (typeof o == "function") {- d.callback = null, f = d.priorityLevel;- var s = o(d.expirationTime <= t);- if (t = e.unstable_now(), typeof s == "function") {- d.callback = s, b(t), i = !0;- break b;- }- d === n(c) && r(c), b(t);- } else r(c);- d = n(c);- }- if (d !== null) i = !0;- else {- var u = n(l);- u !== null && ae(x, u.startTime - t), i = !1;- }- }- break a;- } finally {- d = null, f = a, p = !1;- }- i = void 0;+ get style() {+ let e = this;+ return {+ get display() {+ return e.isHidden ? "none" : "";+ },+ set display(t) {+ let n = t === "none";+ if (e.isHidden !== n) {+ (e.parentNode?.firstVisibleChild === e || e.parentNode?.lastVisibleChild === e) && e.ownerDocument.markDirty(e.parentNode);+ let t = e.previousVisibleSibling, r = e.nextVisibleSibling;+ t && e.ownerDocument.markDirty(t), r && e.ownerDocument.markDirty(r), e.isHidden = n, e.ownerDocument.markDirty(e);}- } finally {- i ? ne() : S = !1;}- }- }- var ne;- if (typeof y == "function") ne = function() {- y(T);- };- else if (typeof MessageChannel < "u") {- var re = new MessageChannel(), ie = re.port2;- re.port1.onmessage = T, ne = function() {- ie.postMessage(null);};- } else ne = function() {- _(T, 0);- };- function ae(t, n) {- ee = _(function() {- t(e.unstable_now());- }, n);}- e.unstable_IdlePriority = 5, e.unstable_ImmediatePriority = 1, e.unstable_LowPriority = 4, e.unstable_NormalPriority = 3, e.unstable_Profiling = null, e.unstable_UserBlockingPriority = 2, e.unstable_cancelCallback = function(e) {- e.callback = null;- }, e.unstable_forceFrameRate = function(e) {- 0 > e || 125 < e ? console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported") : C = 0 < e ? Math.floor(1e3 / e) : 5;- }, e.unstable_getCurrentPriorityLevel = function() {- return f;- }, e.unstable_next = function(e) {- switch (f) {- case 1:- case 2:- case 3:- var t = 3;- break;- default: t = f;- }- var n = f;- f = t;- try {- return e();- } finally {- f = n;- }- }, e.unstable_requestPaint = function() {- g = !0;- }, e.unstable_runWithPriority = function(e, t) {- switch (e) {- case 1:- case 2:- case 3:- case 4:- case 5: break;- default: e = 3;- }- var n = f;- f = e;- try {- return t();- } finally {- f = n;- }- }, e.unstable_scheduleCallback = function(r, i, a) {- var o = e.unstable_now();- switch (typeof a == "object" && a ? (a = a.delay, a = typeof a == "number" && 0 < a ? o + a : o) : a = o, r) {- case 1:- var s = -1;- break;- case 2:- s = 250;- break;- case 5:- s = 1073741823;- break;- case 4:- s = 1e4;- break;- default: s = 5e3;+ hasAttribute() {}+ setAttribute() {}+ setAttributeNS() {}+ removeAttribute() {}+}, b = class extends v {+ 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.nextCollection = null, this.subscriptions = /* @__PURE__ */ new Set(), this.queuedRender = !1, this.inSubscription = !1, this.collection = e, this.nextCollection = e;+ }+ get isConnected() {+ return !0;+ }+ createElement(e) {+ return new y(e, this);+ }+ getMutableCollection() {+ return this.nextCollection ||= this.collection.clone(), this.nextCollection;+ }+ markDirty(e) {+ this.dirtyNodes.add(e);+ }+ addNode(e) {+ if (e.isHidden || e.node == null) return;+ let t = this.getMutableCollection();+ if (!t.getItem(e.node.key)) for (let t of e) this.addNode(t);+ t.addNode(e.node);+ }+ removeNode(e) {+ for (let t of e) this.removeNode(t);+ e.node && this.getMutableCollection().removeNode(e.node.key);+ }+ getCollection() {+ return this.inSubscription ? this.collection : (this.queuedRender = !1, this.updateCollection(), this.collection);+ }+ updateCollection() {+ for (let e of this.dirtyNodes) e instanceof y && (!e.isConnected || e.isHidden) ? this.removeNode(e) : e.updateChildIndices();+ for (let e of this.dirtyNodes) e instanceof y ? (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() {+ if (!(this.dirtyNodes.size === 0 || this.queuedRender)) {+ this.queuedRender = !0, this.inSubscription = !0, this.isSSR || (this.collection = this.collection.clone());+ for (let e of this.subscriptions) e();+ this.inSubscription = !1;}- return s = a + s, r = {- id: u++,- callback: i,- priorityLevel: r,- startTime: a,- expirationTime: s,- sortIndex: -1- }, a > o ? (r.sortIndex = a, t(l, r), n(c) === null && r === n(l) && (h ? (v(ee), ee = -1) : h = !0, ae(x, a - o))) : (r.sortIndex = s, t(c, r), m || p || (m = !0, S || (S = !0, ne()))), r;- }, e.unstable_shouldYield = te, e.unstable_wrapCallback = function(e) {- var t = f;- return function() {- var n = f;- f = t;- try {- return e.apply(this, arguments);- } finally {- f = n;- }- };- };-})), d = /* @__PURE__ */ s(((e, t) => {- t.exports = u();-})), f = /* @__PURE__ */ s(((e) => {+ }+ subscribe(e) {+ return this.subscriptions.add(e), this.queuedRender && e(), () => this.subscriptions.delete(e);+ }+ resetAfterSSR() {+ this.isSSR && (this.isSSR = !1, this.firstChild = null, this.lastChild = null, this.nodeId = 0);+ }+}, x = /* @__PURE__ */ l(((e) => {var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), o = Symbol.for("react.consumer"), s = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), u = Symbol.for("react.memo"), d = Symbol.for("react.lazy"), f = Symbol.for("react.activity"), p = Symbol.for("react.view_transition"), m = Symbol.iterator;function h(e) {return typeof e != "object" || !e ? null : (e = m && e[m] || e["@@iterator"], typeof e == "function" ? e : null);@@ -239,15 +370,15 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr}var S = x.prototype = new b();S.constructor = x, _(S, y.prototype), S.isPureReactComponent = !0;- var ee = Array.isArray;- function C() {}- var w = {+ var C = Array.isArray;+ function w() {}+ var T = {H: null,A: null,T: null,S: null- }, te = Object.prototype.hasOwnProperty;- function T(e, n, r) {+ }, E = Object.prototype.hasOwnProperty;+ function D(e, n, r) {var i = r.ref;return {$$typeof: t,@@ -257,13 +388,13 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrprops: r};}- function ne(e, t) {- return T(e.type, t, e.props);+ function O(e, t) {+ return D(e.type, t, e.props);}- function re(e) {+ function k(e) {return typeof e == "object" && !!e && e.$$typeof === t;}- function ie(e) {+ function A(e) {var t = {"=": "=0",":": "=2"@@ -272,15 +403,15 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrreturn t[e];});}- var ae = /\/+/g;- function oe(e, t) {- return typeof e == "object" && e && e.key != null ? ie("" + e.key) : t.toString(36);+ var j = /\/+/g;+ function M(e, t) {+ return typeof e == "object" && e && e.key != null ? A("" + e.key) : t.toString(36);}- function se(e) {+ function N(e) {switch (e.status) {case "fulfilled": return e.value;case "rejected": throw e.reason;- default: switch (typeof e.status == "string" ? e.then(C, C) : (e.status = "pending", e.then(function(t) {+ default: switch (typeof e.status == "string" ? e.then(w, w) : (e.status = "pending", e.then(function(t) {e.status === "pending" && (e.status = "fulfilled", e.value = t);}, function(t) {e.status === "pending" && (e.status = "rejected", e.reason = t);@@ -291,7 +422,7 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr}throw e;}- function ce(e, r, i, a, o) {+ function ee(e, r, i, a, o) {var s = typeof e;(s === "undefined" || s === "boolean") && (e = null);var c = !1;@@ -307,30 +438,30 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrcase n:c = !0;break;- case d: return c = e._init, ce(c(e._payload), r, i, a, o);+ case d: return c = e._init, ee(c(e._payload), r, i, a, o);}}- if (c) return o = o(e), c = a === "" ? "." + oe(e, 0) : a, ee(o) ? (i = "", c != null && (i = c.replace(ae, "$&/") + "/"), ce(o, r, i, "", function(e) {+ if (c) return o = o(e), c = a === "" ? "." + M(e, 0) : a, C(o) ? (i = "", c != null && (i = c.replace(j, "$&/") + "/"), ee(o, r, i, "", function(e) {return e;- })) : o != null && (re(o) && (o = ne(o, i + (o.key == null || e && e.key === o.key ? "" : ("" + o.key).replace(ae, "$&/") + "/") + c)), r.push(o)), 1;+ })) : o != null && (k(o) && (o = O(o, i + (o.key == null || e && e.key === o.key ? "" : ("" + o.key).replace(j, "$&/") + "/") + c)), r.push(o)), 1;c = 0;var l = a === "" ? "." : a + ":";- if (ee(e)) for (var u = 0; u < e.length; u++) a = e[u], s = l + oe(a, u), c += ce(a, r, i, s, o);- else if (u = h(e), typeof u == "function") for (e = u.call(e), u = 0; !(a = e.next()).done;) a = a.value, s = l + oe(a, u++), c += ce(a, r, i, s, o);+ if (C(e)) for (var u = 0; u < e.length; u++) a = e[u], s = l + M(a, u), c += ee(a, r, i, s, o);+ else if (u = h(e), typeof u == "function") for (e = u.call(e), u = 0; !(a = e.next()).done;) a = a.value, s = l + M(a, u++), c += ee(a, r, i, s, o);else if (s === "object") {- if (typeof e.then == "function") return ce(se(e), r, i, a, o);+ if (typeof e.then == "function") return ee(N(e), r, i, a, o);throw r = String(e), Error("Objects are not valid as a React child (found: " + (r === "[object Object]" ? "object with keys {" + Object.keys(e).join(", ") + "}" : r) + "). If you meant to render a collection of children, use an array instead.");}return c;}- function le(e, t, n) {+ function te(e, t, n) {if (e == null) return e;var r = [], i = 0;- return ce(e, r, "", "", function(e) {+ return ee(e, r, "", "", function(e) {return t.call(n, e, i++);}), r;}- function E(e) {+ function P(e) {if (e._status === -1) {var t = e._result, n = t();n.then(function(t) {@@ -342,7 +473,7 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrif (e._status === 1) return e._result.default;throw e._result;}- var ue = typeof reportError == "function" ? reportError : function(e) {+ var ne = typeof reportError == "function" ? reportError : function(e) {if (typeof window == "object" && typeof window.ErrorEvent == "function") {var t = new window.ErrorEvent("error", {bubbles: !0,@@ -357,54 +488,54 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr}console.error(e);};- function de(e) {- var t = w.T, n = {};- n.types = t === null ? null : t.types, w.T = n;+ function re(e) {+ var t = T.T, n = {};+ n.types = t === null ? null : t.types, T.T = n;try {- var r = e(), i = w.S;- i !== null && i(n, r), typeof r == "object" && r && typeof r.then == "function" && r.then(C, ue);+ var r = e(), i = T.S;+ i !== null && i(n, r), typeof r == "object" && r && typeof r.then == "function" && r.then(w, ne);} catch (e) {- ue(e);+ ne(e);} finally {- t !== null && n.types !== null && (t.types = n.types), w.T = t;+ t !== null && n.types !== null && (t.types = n.types), T.T = t;}}- function fe(e) {- var t = w.T;+ function ie(e) {+ var t = T.T;if (t !== null) {var n = t.types;n === null ? t.types = [e] : n.indexOf(e) === -1 && n.push(e);- } else de(fe.bind(null, e));+ } else re(ie.bind(null, e));}- var pe = {- map: le,+ var ae = {+ map: te,forEach: function(e, t, n) {- le(e, function() {+ te(e, function() {t.apply(this, arguments);}, n);},count: function(e) {var t = 0;- return le(e, function() {+ return te(e, function() {t++;}), t;},toArray: function(e) {- return le(e, function(e) {+ return te(e, function(e) {return e;}) || [];},only: function(e) {- if (!re(e)) throw Error("React.Children.only expected to receive a single React element child.");+ if (!k(e)) throw Error("React.Children.only expected to receive a single React element child.");return e;}};- e.Activity = f, e.Children = pe, e.Component = y, e.Fragment = r, e.Profiler = a, e.PureComponent = x, e.StrictMode = i, e.Suspense = l, e.ViewTransition = p, e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = w, e.__COMPILER_RUNTIME = {+ e.Activity = f, e.Children = ae, e.Component = y, e.Fragment = r, e.Profiler = a, e.PureComponent = x, e.StrictMode = i, e.Suspense = l, e.ViewTransition = p, e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = T, e.__COMPILER_RUNTIME = {__proto__: null,c: function(e) {- return w.H.useMemoCache(e);+ return T.H.useMemoCache(e);}- }, e.addTransitionType = fe, e.cache = function(e) {+ }, e.addTransitionType = ie, e.cache = function(e) {return function() {return e.apply(null, arguments);};@@ -413,14 +544,14 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr}, e.cloneElement = function(e, t, n) {if (e == null) throw Error("The argument must be a React element, but you passed " + e + ".");var r = _({}, e.props), i = e.key;- if (t != null) for (a in t.key !== void 0 && (i = "" + t.key), t) !te.call(t, a) || a === "key" || a === "__self" || a === "__source" || a === "ref" && t.ref === void 0 || (r[a] = t[a]);+ if (t != null) for (a in t.key !== void 0 && (i = "" + t.key), t) !E.call(t, a) || a === "key" || a === "__self" || a === "__source" || a === "ref" && t.ref === void 0 || (r[a] = t[a]);var a = arguments.length - 2;if (a === 1) r.children = n;else if (1 < a) {for (var o = Array(a), s = 0; s < a; s++) o[s] = arguments[s + 2];r.children = o;}- return T(e.type, i, r);+ return D(e.type, i, r);}, e.createContext = function(e) {return e = {$$typeof: s,@@ -435,7 +566,7 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr}, e;}, e.createElement = function(e, t, n) {var r, i = {}, a = null;- if (t != null) for (r in t.key !== void 0 && (a = "" + t.key), t) te.call(t, r) && r !== "key" && r !== "__self" && r !== "__source" && (i[r] = t[r]);+ if (t != null) for (r in t.key !== void 0 && (a = "" + t.key), t) E.call(t, r) && r !== "key" && r !== "__self" && r !== "__source" && (i[r] = t[r]);var o = arguments.length - 2;if (o === 1) i.children = n;else if (1 < o) {@@ -443,7 +574,7 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescri.children = s;}if (e && e.defaultProps) for (r in o = e.defaultProps, o) i[r] === void 0 && (i[r] = o[r]);- return T(e, a, i);+ return D(e, a, i);}, e.createRef = function() {return { current: null };}, e.forwardRef = function(e) {@@ -451,14 +582,14 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr$$typeof: c,render: e};- }, e.isValidElement = re, e.lazy = function(e) {+ }, e.isValidElement = k, e.lazy = function(e) {return {$$typeof: d,_payload: {_status: -1,_result: e},- _init: E+ _init: P};}, e.memo = function(e, t) {return {@@ -466,186 +597,5776 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrtype: e,compare: t === void 0 ? null : t};- }, e.startTransition = de, e.unstable_useCacheRefresh = function() {- return w.H.useCacheRefresh();+ }, e.startTransition = re, e.unstable_useCacheRefresh = function() {+ return T.H.useCacheRefresh();}, e.use = function(e) {- return w.H.use(e);+ return T.H.use(e);}, e.useActionState = function(e, t, n) {- return w.H.useActionState(e, t, n);+ return T.H.useActionState(e, t, n);}, e.useCallback = function(e, t) {- return w.H.useCallback(e, t);+ return T.H.useCallback(e, t);}, e.useContext = function(e) {- return w.H.useContext(e);+ return T.H.useContext(e);}, e.useDebugValue = function() {}, e.useDeferredValue = function(e, t) {- return w.H.useDeferredValue(e, t);+ return T.H.useDeferredValue(e, t);}, e.useEffect = function(e, t) {- return w.H.useEffect(e, t);+ return T.H.useEffect(e, t);}, e.useEffectEvent = function(e) {- return w.H.useEffectEvent(e);+ return T.H.useEffectEvent(e);}, e.useId = function() {- return w.H.useId();+ return T.H.useId();}, e.useImperativeHandle = function(e, t, n) {- return w.H.useImperativeHandle(e, t, n);+ return T.H.useImperativeHandle(e, t, n);}, e.useInsertionEffect = function(e, t) {- return w.H.useInsertionEffect(e, t);+ return T.H.useInsertionEffect(e, t);}, e.useLayoutEffect = function(e, t) {- return w.H.useLayoutEffect(e, t);+ return T.H.useLayoutEffect(e, t);}, e.useMemo = function(e, t) {- return w.H.useMemo(e, t);+ return T.H.useMemo(e, t);}, e.useOptimistic = function(e, t) {- return w.H.useOptimistic(e, t);+ return T.H.useOptimistic(e, t);}, e.useReducer = function(e, t, n) {- return w.H.useReducer(e, t, n);+ return T.H.useReducer(e, t, n);}, e.useRef = function(e) {- return w.H.useRef(e);+ return T.H.useRef(e);}, e.useState = function(e) {- return w.H.useState(e);+ return T.H.useState(e);}, e.useSyncExternalStore = function(e, t, n) {- return w.H.useSyncExternalStore(e, t, n);+ return T.H.useSyncExternalStore(e, t, n);}, e.useTransition = function() {- return w.H.useTransition();+ return T.H.useTransition();}, e.version = "19.3.0";-})), p = /* @__PURE__ */ s(((e, t) => {- t.exports = f();-})), m = /* @__PURE__ */ s(((e) => {- var t = p();- function n(e) {- var t = "https://react.dev/errors/" + e;- if (1 < arguments.length) {- t += "?args[]=" + encodeURIComponent(arguments[1]);- for (var n = 2; n < arguments.length; n++) t += "&args[]=" + encodeURIComponent(arguments[n]);+})), S = /* @__PURE__ */ l(((e, t) => {+ t.exports = x();+})), C = /* @__PURE__ */ d(S(), 1);+function w(e) {+ let { children: t, items: n, idScope: r, addIdAndValue: i, dependencies: a = [] } = e, o = (0, C.useMemo)(() => void 0, [t]), s = (0, C.useMemo)(() => /* @__PURE__ */ new WeakMap(), [...a, o]);+ return (0, C.useMemo)(() => {+ if (n && typeof t == "function") {+ let e = [];+ for (let a of n) {+ let n = T(a) ? a : null, o = n ? s.get(n) : null;+ if (!o) {+ o = t(a);+ let c = o.props.id ?? a?.key ?? a?.id;+ r != null && o.props.id == null && c != null && (c = r + ":" + c);+ let l = c ?? e.length;+ o = (0, C.cloneElement)(o, i ? {+ key: l,+ id: c,+ value: a+ } : { key: l }), n && s.set(n, o);+ }+ e.push(o);+ }+ return e;}- return "Minified React error #" + e + "; visit " + t + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";+ if (typeof t != "function") return t;+ }, [+ t,+ n,+ s,+ r,+ i+ ]);+}+function T(e) {+ switch (typeof e) {+ case "object": return e != null;+ case "function":+ case "symbol": return !0;+ default: return !1;}- function r() {}- var i = {+}+//#endregion+//#region node_modules/react-aria/dist/private/utils/focusWithoutScrolling.mjs+function E(e) {+ if (O()) e.focus({ preventScroll: !0 });+ else {+ let t = k(e);+ e.focus(), A(t);+ }+}+var D = null;+function O() {+ if (D == null) {+ D = !1;+ try {+ document.createElement("div").focus({ get preventScroll() {+ return D = !0, !0;+ } });+ } catch {}+ }+ return D;+}+function k(e) {+ let t = e.parentNode, n = [], r = document.scrollingElement || document.documentElement;+ for (; t instanceof HTMLElement && t !== r;) (t.offsetHeight < t.scrollHeight || t.offsetWidth < t.scrollWidth) && n.push({+ element: t,+ scrollTop: t.scrollTop,+ scrollLeft: t.scrollLeft+ }), t = t.parentNode;+ return r instanceof HTMLElement && n.push({+ element: r,+ scrollTop: r.scrollTop,+ scrollLeft: r.scrollLeft+ }), n;+}+function A(e) {+ for (let { element: t, scrollTop: n, scrollLeft: r } of e) t.scrollTop = n, t.scrollLeft = r;+}+//#endregion+//#region node_modules/react-aria/dist/private/utils/domHelpers.mjs+var j = (e) => ee(e) ? e.document : te(e) ? e : e?.ownerDocument ?? (typeof document < "u" ? document : void 0), M = (e) => j(e)?.defaultView ?? (typeof window < "u" ? window : void 0);+function N(e) {+ return typeof e == "object" && !!e && "nodeType" in e && typeof e.nodeType == "number";+}+function ee(e) {+ return typeof e == "object" && !!e && "window" in e && e.window === e;+}+function te(e) {+ return N(e) && e.nodeType === 9;+}+function P(e) {+ return N(e) && e.nodeType === 11 && "host" in e;+}+function ne(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);+ return () => {+ for (let e of i) e.removeEventListener(t, n, r);+ };+}+function re(e, t, n, r) {+ if (e == null) return () => {};+ let i = [], a = Array.isArray(e) ? e : [e];+ for (let e of a) {+ let a = e.style.getPropertyValue(t), o = e.style.getPropertyPriority(t);+ e.style.setProperty(t, n, r), i.unshift(() => {+ a ? e.style.setProperty(t, a, o) : e.style.removeProperty(t);+ });+ }+ return () => {+ for (let e of i) e();+ };+}+//#endregion+//#region node_modules/react-stately/dist/private/flags/flags.mjs+var ie = !1;+function ae() {+ return ie;+}+//#endregion+//#region node_modules/react-aria/dist/private/utils/shadowdom/DOMFunctions.mjs+function F(e, t) {+ if (!ae()) 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 : P(n) ? n.host : n.parentNode;+ }+ return !1;+}+var I = (e = document) => {+ if (!ae()) return e.activeElement;+ let t = e.activeElement;+ for (; t && "shadowRoot" in t && t.shadowRoot?.activeElement;) t = t.shadowRoot.activeElement;+ return t;+};+function L(e) {+ if (ae() && 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 oe(e, t) {+ if (t === null) return [];+ t ??= M(e);+ let n = [t];+ if (!ae() || !e || e === t) return n;+ let r = "getRootNode" in t ? t.getRootNode() : null, i = e.getRootNode() ?? null;+ for (; P(i) && i !== r;) n.push(i), i = i.host.getRootNode();+ return n;+}+function se(e) {+ if (!e) return !1;+ let t = e.getRootNode(), n = M(e);+ if (!(t instanceof n.Document || t instanceof n.ShadowRoot)) return !1;+ let r = t.activeElement;+ return r != null && e.contains(r);+}+//#endregion+//#region node_modules/react-aria/dist/private/utils/isElementVisible.mjs+var ce = typeof Element < "u" && "checkVisibility" in Element.prototype;+function le(e) {+ let t = M(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 } = M(e), { display: n, visibility: r } = t(e);+ i = n !== "none" && r !== "hidden" && r !== "collapse";+ }+ return i;+}+function ue(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 R(e, t) {+ return ce ? e.checkVisibility({ visibilityProperty: !0 }) && !e.closest("[data-react-aria-prevent-focus]") : e.nodeName !== "#comment" && le(e) && ue(e, t) && (!e.parentElement || R(e.parentElement, e));+}+//#endregion+//#region node_modules/react-aria/dist/private/utils/isFocusable.mjs+var z = [+ "input:not([disabled]):not([type=hidden])",+ "select:not([disabled])",+ "textarea:not([disabled])",+ "button:not([disabled])",+ "a[href]",+ "area[href]",+ "summary",+ "iframe",+ "object",+ "embed",+ "audio[controls]",+ "video[controls]",+ "[contenteditable]:not([contenteditable^=\"false\"])",+ "permission"+], de = z.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";+z.push("[tabindex]:not([tabindex=\"-1\"]):not([disabled])");+var fe = z.join(":not([hidden]):not([tabindex=\"-1\"]),");+function pe(e, t) {+ return e.matches(de) && !he(e) && (t?.skipVisibilityCheck || R(e));+}+function me(e) {+ return e.matches(fe) && R(e) && !he(e);+}+function he(e) {+ let t = e;+ for (; t != null;) {+ if (t instanceof M(t).HTMLElement && t.inert) return !0;+ t = t.parentElement;+ }+ return !1;+}+//#endregion+//#region node_modules/react-aria/dist/private/utils/useLayoutEffect.mjs+var B = typeof document < "u" ? C.useLayoutEffect : () => {};+//#endregion+//#region node_modules/react-aria/dist/private/interactions/utils.mjs+function ge(e) {+ let t = e;+ return t.nativeEvent = e, t.isDefaultPrevented = () => t.defaultPrevented, t.isPropagationStopped = () => t.cancelBubble, t.persist = () => {}, t;+}+function _e(e, t) {+ Object.defineProperty(e, "target", { value: t }), Object.defineProperty(e, "currentTarget", { value: t });+}+function ve(e) {+ let t = (0, C.useRef)({+ isFocused: !1,+ observer: null+ });+ return B(() => {+ let e = t.current;+ return () => {+ e.observer &&= (e.observer.disconnect(), null);+ };+ }, []), (0, C.useCallback)((n) => {+ let r = L(n);+ if (r instanceof HTMLButtonElement || r instanceof HTMLInputElement || r instanceof HTMLTextAreaElement || r instanceof HTMLSelectElement) {+ t.current.isFocused = !0;+ let n = r;+ n.addEventListener("focusout", (r) => {+ if (t.current.isFocused = !1, n.disabled) {+ let t = ge(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 === I() ? null : I();+ n.dispatchEvent(new FocusEvent("blur", { relatedTarget: e })), n.dispatchEvent(new FocusEvent("focusout", {+ bubbles: !0,+ relatedTarget: e+ }));+ }+ }), t.current.observer.observe(n, {+ attributes: !0,+ attributeFilter: ["disabled"]+ });+ }+ }, [e]);+}+var ye = !1;+function be(e) {+ for (; e && !pe(e, { skipVisibilityCheck: !0 });) e = e.parentElement;+ let t = I(M(e).document);+ if (!t || t === e) return;+ let n = e?.getRootNode(), r = n != null && P(n) ? n : M(e), i = (t) => t === e || t != null && F(e, t), a = (e) => e === t || t != null && e != null && F(t, e);+ ye = !0;+ let o = !1, s = (e) => {+ (a(L(e)) || o) && e.stopImmediatePropagation();+ }, c = (n) => {+ (a(L(n)) || o) && (n.stopImmediatePropagation(), !e && !o && (o = !0, E(t), d()));+ }, l = (e) => {+ (i(L(e)) || o) && e.stopImmediatePropagation();+ }, u = (e) => {+ (i(L(e)) || o) && (e.stopImmediatePropagation(), o || (o = !0, E(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), ye = !1, o = !1;+ }, f = requestAnimationFrame(d);+ return d;+}+//#endregion+//#region node_modules/react-aria/dist/private/utils/platform.mjs+function xe(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 Se(e) {+ return typeof window < "u" && window.navigator != null && e.test(window.navigator.userAgentData?.platform || window.navigator.platform);+}+function Ce(e) {+ let t = null;+ return () => (t ??= e(), t);+}+var we = Ce(function() {+ return Se(/^Mac/i);+}), Te = Ce(function() {+ return Se(/^iPhone/i);+}), Ee = Ce(function() {+ return Se(/^iPad/i) || we() && navigator.maxTouchPoints > 1;+}), De = Ce(function() {+ return Te() || Ee();+}), Oe = Ce(function() {+ return we() || De();+}), ke = Ce(function() {+ return xe(/AppleWebKit/i) && (De() || !Ae());+}), Ae = Ce(function() {+ return xe(/Chrome|CriOS|CrMo/i);+}), je = Ce(function() {+ return xe(/Android/i);+}), Me = Ce(function() {+ return xe(/(Firefox|FxiOS)/i);+});+//#endregion+//#region node_modules/react-aria/dist/private/utils/isVirtualEvent.mjs+function Ne(e) {+ return e.pointerType === "" && e.isTrusted ? !0 : je() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;+}+function Pe(e) {+ return !je() && e.width === 0 && e.height === 0 || je() && e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "mouse";+}+//#endregion+//#region node_modules/react-aria/dist/private/utils/openLink.mjs+var Fe = /*#__PURE__*/ (0, C.createContext)({+ isNative: !0,+ open: ze,+ useHref: (e) => e+});+function Ie() {+ return (0, C.useContext)(Fe);+}+function Le(e, t, n = !0) {+ let { metaKey: r, ctrlKey: i, altKey: a, shiftKey: o } = t;+ !ke() && Me() && window.event?.type?.startsWith("key") && e.target === "_blank" && (we() ? r = !0 : i = !0);+ let s = ke() && we() && !Ee() ? new KeyboardEvent("keydown", {+ keyIdentifier: "Enter",+ metaKey: r,+ ctrlKey: i,+ altKey: a,+ shiftKey: o+ }) : new MouseEvent("click", {+ metaKey: r,+ ctrlKey: i,+ altKey: a,+ shiftKey: o,+ detail: 1,+ bubbles: !0,+ cancelable: !0+ });+ Le.isOpening = n, E(e), e.dispatchEvent(s), Le.isOpening = !1;+}+Le.isOpening = !1;+function Re(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 ze(e, t) {+ Re(e, (e) => Le(e, t));+}+function Be(e) {+ let t = Ie().useHref(e?.href ?? ""), n = {};+ if (e) for (let r of [+ "href",+ "target",+ "rel",+ "download",+ "ping",+ "referrerPolicy"+ ]) r in e && e[r] !== void 0 && (n[r] = r === "href" ? t : e[r]);+ return n;+}+//#endregion+//#region node_modules/react-aria/dist/private/ssr/SSRProvider.mjs+var Ve = {+ prefix: String(Math.round(Math.random() * 1e10)),+ current: 0+}, He = /*#__PURE__*/ C.createContext(Ve), Ue = /*#__PURE__*/ C.createContext(!1);+typeof window < "u" && window.document && window.document.createElement;+var We = /* @__PURE__ */ new WeakMap();+function Ge(e = !1) {+ let t = (0, C.useContext)(He), n = (0, C.useRef)(null);+ if (n.current === null && !e) {+ let e = C.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?.ReactCurrentOwner?.current;+ if (e) {+ let n = We.get(e);+ n == null ? We.set(e, {+ id: t.current,+ state: e.memoizedState+ }) : e.memoizedState !== n.state && (t.current = n.id, We.delete(e));+ }+ n.current = ++t.current;+ }+ return n.current;+}+function Ke(e) {+ let t = (0, C.useContext)(He), n = Ge(!!e), r = `react-aria${t.prefix}`;+ return e || `${r}-${n}`;+}+function qe(e) {+ let t = C.useId(), [n] = (0, C.useState)(Qe()), r = n ? "react-aria" : `react-aria${Ve.prefix}`;+ return e || `${r}-${t}`;+}+var Je = typeof C.useId == "function" ? qe : Ke;+function Ye() {+ return !1;+}+function Xe() {+ return !0;+}+function Ze(e) {+ return () => {};+}+function Qe() {+ return typeof C.useSyncExternalStore == "function" ? C.useSyncExternalStore(Ze, Ye, Xe) : (0, C.useContext)(Ue);+}+//#endregion+//#region node_modules/react-aria/dist/private/interactions/useFocusVisible.mjs+var $e = null, et = /* @__PURE__ */ new Set(), tt = /* @__PURE__ */ new Map(), nt = !1, rt = !1, it = {+ Tab: !0,+ Escape: !0+};+function at(e, t) {+ for (let n of et) n(e, t);+}+function ot(e) {+ return !(e.metaKey || !we() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");+}+function st(e) {+ nt = !0, !Le.isOpening && ot(e) && ($e = "keyboard", at("keyboard", e));+}+function ct(e) {+ $e = "pointer", "pointerType" in e && e.pointerType, (e.type === "mousedown" || e.type === "pointerdown") && (nt = !0, at("pointer", e));+}+function lt(e) {+ !Le.isOpening && Ne(e) && (nt = !0, $e = "virtual");+}+function ut(e) {+ if (ye) return;+ let t = L(e), n = M(t), r = j(t);+ if (t === n) {+ rt = !0;+ return;+ }+ t === r || !e.isTrusted || (!nt && !rt && ($e = "virtual", at("virtual", e)), nt = !1, rt = !1);+}+function dt() {+ ye || (nt = !1, rt = !0);+}+function ft(e) {+ if (typeof window > "u" || typeof document > "u") return;+ let t = M(e), n = j(e);+ if (tt.get(t)) return;+ let r = t.HTMLElement.prototype.focus;+ Reflect.defineProperty(t.HTMLElement.prototype, "focus", {+ configurable: !0,+ writable: !0,+ value: function() {+ nt = !0, r.apply(this, arguments);+ }+ }), n.addEventListener("keydown", st, !0), n.addEventListener("keyup", st, !0), n.addEventListener("click", lt, !0), t.addEventListener("focus", ut, !0), t.addEventListener("blur", dt, !1), typeof PointerEvent < "u" && (n.addEventListener("pointerdown", ct, !0), n.addEventListener("pointermove", ct, !0), n.addEventListener("pointerup", ct, !0)), t.addEventListener("beforeunload", () => {+ pt(e);+ }, { once: !0 }), tt.set(t, { focus: r });+}+var pt = (e, t) => {+ let n = M(e), r = j(e);+ t && r.removeEventListener("DOMContentLoaded", t), tt.has(n) && (Reflect.defineProperty(n.HTMLElement.prototype, "focus", {+ configurable: !0,+ writable: !0,+ value: tt.get(n).focus+ }), r.removeEventListener("keydown", st, !0), r.removeEventListener("keyup", st, !0), r.removeEventListener("click", lt, !0), n.removeEventListener("focus", ut, !0), n.removeEventListener("blur", dt, !1), typeof PointerEvent < "u" && (r.removeEventListener("pointerdown", ct, !0), r.removeEventListener("pointermove", ct, !0), r.removeEventListener("pointerup", ct, !0)), tt.delete(n));+};+function mt(e) {+ let t = j(e), n;+ return t.readyState === "loading" ? (n = () => {+ ft(e);+ }, t.addEventListener("DOMContentLoaded", n)) : ft(e), () => pt(e, n);+}+typeof document < "u" && mt();+function ht() {+ return $e !== "pointer";+}+function gt() {+ return $e;+}+function _t(e) {+ $e = e, at(e, null);+}+var vt = /* @__PURE__ */ new Set([+ "checkbox",+ "radio",+ "range",+ "color",+ "file",+ "image",+ "button",+ "submit",+ "reset"+]);+function yt(e, t, n) {+ let r = n ? L(n) : void 0, i = j(r), a = M(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 = I(i);+ return e = e || u instanceof o && !vt.has(u.type) || u instanceof s || u instanceof c && u.isContentEditable, !(e && t === "keyboard" && n instanceof l && !it[n.key]);+}+function bt(e, t, n) {+ ft(), (0, C.useEffect)(() => {+ if (n?.enabled === !1) return;+ let t = (t, r) => {+ yt(!!n?.isTextInput, t, r) && e(ht());+ };+ return et.add(t), () => {+ et.delete(t);+ };+ }, t);+}+//#endregion+//#region node_modules/react-aria/dist/private/utils/runAfterTransition.mjs+var xt = /* @__PURE__ */ new Map(), St = /* @__PURE__ */ new Set();+function Ct() {+ if (typeof window > "u") return;+ function e(e) {+ return "propertyName" in e;+ }+ let t = (t) => {+ let r = L(t);+ if (!e(t) || !r) return;+ let i = xt.get(r);+ i || (i = /* @__PURE__ */ new Set(), xt.set(r, i), r.addEventListener("transitioncancel", n, { once: !0 })), i.add(t.propertyName);+ }, n = (t) => {+ let r = L(t);+ if (!e(t) || !r) return;+ let i = xt.get(r);+ if (i && (i.delete(t.propertyName), i.size === 0 && (r.removeEventListener("transitioncancel", n), xt.delete(r)), xt.size === 0)) {+ for (let e of St) e();+ St.clear();+ }+ };+ document.body.addEventListener("transitionrun", t), document.body.addEventListener("transitionend", n);+}+typeof document < "u" && (document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", Ct) : Ct());+function wt() {+ for (let [e] of xt) "isConnected" in e && !e.isConnected && xt.delete(e);+}+function Tt(e) {+ requestAnimationFrame(() => {+ wt(), xt.size === 0 ? e() : St.add(e);+ });+}+//#endregion+//#region node_modules/react-aria/dist/private/interactions/focusSafely.mjs+function Et(e) {+ if (!e.isConnected) return;+ let t = j(e);+ if (gt() === "virtual") {+ let n = I(t);+ Tt(() => {+ let r = I(t);+ (r === n || r === t.body) && e.isConnected && E(e);+ });+ } else E(e);+}+//#endregion+//#region node_modules/react-aria/dist/private/utils/chain.mjs+function Dt(...e) {+ return (...t) => {+ for (let n of e) typeof n == "function" && n(...t);+ };+}+//#endregion+//#region node_modules/react-aria/dist/private/utils/useValueEffect.mjs+function Ot(e) {+ let [t, n] = (0, C.useState)(e), r = (0, C.useRef)(t), i = (0, C.useRef)(null), a = (0, C.useRef)(() => {+ if (!i.current) return;+ let e = i.current.next();+ if (e.done) {+ i.current = null;+ return;+ }+ r.current === e.value ? a.current() : n(e.value);+ });+ return B(() => {+ r.current = t, i.current && a.current();+ }), [t, (0, C.useCallback)((e) => {+ i.current = e(r.current), a.current();+ }, [a])];+}+//#endregion+//#region node_modules/react-aria/dist/private/utils/useId.mjs+var kt = !!(typeof window < "u" && window.document && window.document.createElement), At = /* @__PURE__ */ new Map(), jt;+typeof FinalizationRegistry < "u" && (jt = new FinalizationRegistry((e) => {+ At.delete(e);+}));+var Mt = /* @__PURE__ */ new WeakMap();+function Nt(e) {+ let [t, n] = (0, C.useState)(e), r = (0, C.useRef)(null), i = Je(t), a = (0, C.useRef)(null), o = Mt.get(a);+ if (jt && o !== i && (o != null && jt.unregister(a), jt.register(a, i, a), Mt.set(a, i)), kt) {+ let e = At.get(i);+ e && !e.includes(r) ? e.push(r) : At.set(i, [r]);+ }+ return B(() => {+ let e = i;+ return () => {+ jt && (jt.unregister(a), Mt.delete(a)), At.delete(e);+ };+ }, [i]), (0, C.useEffect)(() => {+ let e = r.current;+ return e && n(e), () => {+ e && (r.current = null);+ };+ }), i;+}+function Pt(e, t) {+ if (e === t) return e;+ let n = At.get(e);+ if (n) return n.forEach((e) => e.current = t), t;+ let r = At.get(t);+ return r ? (r.forEach((t) => t.current = e), e) : t;+}+function Ft(e = []) {+ let t = Nt(), [n, r] = Ot(t), i = (0, C.useCallback)(() => {+ r(function* () {+ yield t, yield document.getElementById(t) ? t : void 0;+ });+ }, [t, r]);+ return B(i, [+ t,+ i,+ ...e+ ]), n;+}+//#endregion+//#region node_modules/react-aria/dist/private/utils/mergeRefs.mjs+function It(...e) {+ return e.length === 1 && e[0] ? e[0] : (t) => {+ let n = !1, r = e.map((e) => {+ let r = Lt(e, t);+ return n ||= typeof r == "function", r;+ });+ if (n) return () => {+ r.forEach((t, n) => {+ typeof t == "function" ? t() : Lt(e[n], null);+ });+ };+ };+}+function Lt(e, t) {+ if (typeof e == "function") return e(t);+ e != null && (e.current = t);+}+//#endregion+//#region node_modules/clsx/dist/clsx.mjs+function Rt(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 = Rt(e[t])) && (r && (r += " "), r += n);+ } else for (n in e) e[n] && (r && (r += " "), r += n);+ }+ return r;+}+function zt() {+ for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = Rt(e)) && (r && (r += " "), r += t);+ return r;+}+//#endregion+//#region node_modules/react-aria/dist/private/utils/mergeProps.mjs+function V(...e) {+ let t = { ...e[0] };+ for (let n = 1; n < e.length; n++) {+ 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] = Dt(n, i) : (e === "className" || e === "UNSAFE_className") && typeof n == "string" && typeof i == "string" ? t[e] = zt(n, i) : e === "id" && n && i ? t.id = Pt(n, i) : e === "ref" && n && i ? t.ref = It(n, i) : t[e] = i === void 0 ? n : i;+ }+ }+ return t;+}+//#endregion+//#region node_modules/react-aria/dist/private/interactions/useFocus.mjs+function Bt(e) {+ let { isDisabled: t, onFocus: n, onBlur: r, onFocusChange: i } = e, a = (0, C.useCallback)((e) => {+ if (L(e) === e.currentTarget) return r && r(e), i && i(!1), !0;+ }, [r, i]), o = ve(a), s = (0, C.useCallback)((e) => {+ let t = L(e), r = j(t), a = r ? I(r) : I();+ t === e.currentTarget && t === a && (n && n(e), i && i(!0), o(e));+ }, [+ i,+ n,+ o+ ]);+ return { focusProps: {+ onFocus: !t && (n || i || r) ? s : void 0,+ onBlur: !t && (r || i) ? a : void 0+ } };+}+//#endregion+//#region node_modules/react-aria/dist/private/interactions/createEventHandler.mjs+function H(e) {+ if (e) return (t) => {+ let n = !0;+ e({+ ...t,+ preventDefault() {+ t.preventDefault();+ },+ isDefaultPrevented() {+ return t.isDefaultPrevented();+ },+ stopPropagation() {+ n = !0;+ },+ continuePropagation() {+ n = !1, typeof t.continuePropagation == "function" && t.continuePropagation();+ },+ isPropagationStopped() {+ return n;+ }+ }), n && !(typeof t.isPropagationStopped == "function" && t.isPropagationStopped()) && t.stopPropagation();+ };+}+//#endregion+//#region node_modules/react-aria/dist/private/interactions/createKeyboardShortcutHandler.mjs+var Vt = /* @__PURE__ */ new Set([+ "shift",+ "alt",+ "control",+ "meta",+ "mod"+]), Ht = [+ "Alt",+ "Control",+ "Meta",+ "Shift"+];+function Ut(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(we() ? "Meta" : "Control"), t;+}+function Wt(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 Gt(e) {+ return Ht.filter((t) => e.has(t));+}+function Kt(e) {+ let t = e.split("+").reduce((e, t) => {+ let n = t.toLowerCase();+ return Vt.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,+ ctrl: !1,+ meta: !1,+ mod: !1,+ key: ""+ });+ 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 qt(e) {+ return e.toLowerCase();+}+var Jt = {+ space: " ",+ esc: "escape",+ del: "delete",+ ins: "insert",+ left: "arrowleft",+ right: "arrowright",+ up: "arrowup",+ down: "arrowdown",+ pageup: "pageup",+ pagedown: "pagedown"+};+function Yt(e) {+ let t = qt(e);+ return Jt[t] ?? t;+}+function Xt(e) {+ let t = Gt(Ut(e)), n = Yt(e.key);+ return t.length > 0 ? `${t.join("+")}+${n}` : n;+}+function Zt(e) {+ let t = Gt(Wt(e)), n = qt(e.key);+ return (t.length > 0 ? `${t.join("+")}+` : "") + n;+}+function Qt(e) {+ let t = /* @__PURE__ */ new Map();+ for (let [n, r] of Object.entries(e)) {+ let e = Kt(n);+ t.set(Xt(e), r);+ }+ return (e) => {+ let n = Zt(e), r = t.get(n), i = r?.(e);+ i === void 0 && r !== void 0 ? i = {+ shouldContinuePropagation: !1,+ shouldPreventDefault: !0+ } : typeof i == "boolean" && (i = {+ shouldContinuePropagation: !i,+ shouldPreventDefault: i+ }), i?.shouldPreventDefault && e.preventDefault(), (!r || i?.shouldContinuePropagation) && e.continuePropagation();+ };+}+//#endregion+//#region node_modules/react-aria/dist/private/interactions/useKeyboard.mjs+function $t(e) {+ let { shortcuts: t, allowRepeats: n = !1, allowComposing: r = !1 } = e, i, a;+ if (t) {+ let o = Qt(t), s = H((e) => {+ if (!F(e.currentTarget, L(e))) {+ e.continuePropagation();+ return;+ }+ if (e.nativeEvent?.repeat && !n || e.nativeEvent?.isComposing && !r) {+ e.continuePropagation();+ return;+ }+ o(e);+ }), c = H((e) => {+ if (!F(e.currentTarget, L(e))) {+ e.continuePropagation();+ return;+ }+ if (e.nativeEvent?.repeat && !n || e.nativeEvent?.isComposing && !r) {+ e.continuePropagation();+ return;+ }+ e.continuePropagation();+ });+ i = e.onKeyDown ? Dt(e.onKeyDown, s) : s, a = e.onKeyUp ? Dt(e.onKeyUp, c) : c;+ } else i = H(e.onKeyDown), a = H(e.onKeyUp);+ return { keyboardProps: e.isDisabled ? {} : {+ onKeyDown: i,+ onKeyUp: a+ } };+}+//#endregion+//#region node_modules/react-aria/dist/private/utils/useObjectRef.mjs+function en(e) {+ let t = (0, C.useRef)(null), n = (0, C.useRef)(void 0), r = (0, C.useCallback)((t) => {+ if (typeof e == "function") {+ let n = e, r = n(t);+ return () => {+ typeof r == "function" ? r() : n(null);+ };+ }+ if (e) return e.current = t, () => {+ e.current = null;+ };+ }, [e]);+ return (0, C.useMemo)(() => ({+ get current() {+ return t.current;+ },+ set current(e) {+ t.current = e, n.current &&= (n.current(), void 0), e != null && (n.current = r(e));+ }+ }), [r]);+}+//#endregion+//#region node_modules/react-aria/dist/private/utils/useSyncRef.mjs+function tn(e, t) {+ B(() => {+ if (e && e.ref && t) return e.ref.current = t.current, () => {+ e.ref && (e.ref.current = null);+ };+ });+}+//#endregion+//#region node_modules/react-aria/dist/private/interactions/useFocusable.mjs+var nn = /*#__PURE__*/ C.createContext(null);+function rn(e) {+ let t = (0, C.useContext)(nn) || {};+ tn(t, e);+ let { ref: n, ...r } = t;+ return r;+}+function an(e, t) {+ let { focusProps: n } = Bt(e), { keyboardProps: r } = $t(e), i = V(n, r), a = rn(t), o = e.isDisabled ? {} : a, s = (0, C.useRef)(e.autoFocus);+ (0, C.useEffect)(() => {+ s.current && t.current && Et(t.current), s.current = !1;+ }, [t]);+ let c = e.excludeFromTabOrder ? -1 : 0;+ return e.isDisabled && (c = void 0), { focusableProps: V({+ ...i,+ tabIndex: c+ }, o) };+}+//#endregion+//#region node_modules/react-aria/dist/private/collections/Hidden.mjs+typeof HTMLTemplateElement < "u" && (Object.defineProperty(HTMLTemplateElement.prototype, "firstChild", {+ configurable: !0,+ enumerable: !0,+ get: function() {+ return this.content.firstChild;+ }+}), Object.defineProperty(HTMLTemplateElement.prototype, "appendChild", {+ configurable: !0,+ enumerable: !0,+ value: function(e) {+ return this.content.appendChild(e);+ }+}), Object.defineProperty(HTMLTemplateElement.prototype, "removeChild", {+ configurable: !0,+ enumerable: !0,+ value: function(e) {+ return this.content.removeChild(e);+ }+}), Object.defineProperty(HTMLTemplateElement.prototype, "insertBefore", {+ configurable: !0,+ enumerable: !0,+ value: function(e, t) {+ return this.content.insertBefore(e, t);+ }+}));+var on = /*#__PURE__*/ (0, C.createContext)(!1);+function sn(e) {+ if ((0, C.useContext)(on)) return /*#__PURE__*/ C.createElement(C.Fragment, null, e.children);+ let t = /*#__PURE__*/ C.createElement(on.Provider, { value: !0 }, e.children);+ return /*#__PURE__*/ C.createElement("template", null, t);+}+function cn(e) {+ let t = (t, n) => (0, C.useContext)(on) ? null : e(t, n);+ return t.displayName = e.displayName || e.name, (0, C.forwardRef)(t);+}+function ln() {+ return (0, C.useContext)(on);+}+//#endregion+//#region node_modules/react-dom/cjs/react-dom.production.js+var un = /* @__PURE__ */ l(((e) => {+ var t = S();+ function n(e) {+ var t = "https://react.dev/errors/" + e;+ if (1 < arguments.length) {+ t += "?args[]=" + encodeURIComponent(arguments[1]);+ for (var n = 2; n < arguments.length; n++) t += "&args[]=" + encodeURIComponent(arguments[n]);+ }+ return "Minified React error #" + e + "; visit " + t + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";+ }+ function r() {}+ var i = {d: {f: r,r: function() {throw Error(n(522));},- D: r,- C: r,- L: r,- m: r,- X: r,- S: r,- M: r+ D: r,+ C: r,+ L: r,+ m: r,+ X: r,+ S: r,+ M: r+ },+ p: 0,+ findDOMNode: null+ }, a = Symbol.for("react.portal"), o = Symbol.for("react.recoverable"), s = Symbol.for("react.optimistic_key");+ function c(e, t, n) {+ var r = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null;+ return {+ $$typeof: a,+ key: r == null ? null : r === s ? s : "" + r,+ children: e,+ containerInfo: t,+ implementation: n+ };+ }+ var l = t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;+ function u(e, t) {+ if (e === "font") return "";+ if (typeof t == "string") return t === "use-credentials" ? t : "";+ }+ e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = i, e.browser = function(e) {+ return {+ $$typeof: o,+ _reason: e+ };+ }, e.createPortal = function(e, t) {+ var r = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null;+ if (!t || t.nodeType !== 1 && t.nodeType !== 9 && t.nodeType !== 11) throw Error(n(299));+ return c(e, t, null, r);+ }, e.flushSync = function(e) {+ var t = l.T, n = i.p;+ try {+ if (l.T = null, i.p = 2, e) return e();+ } finally {+ l.T = t, i.p = n, i.d.f();+ }+ }, e.preconnect = function(e, t) {+ typeof e == "string" && (t ? (t = t.crossOrigin, t = typeof t == "string" ? t === "use-credentials" ? t : "" : void 0) : t = null, i.d.C(e, t));+ }, e.prefetchDNS = function(e) {+ typeof e == "string" && i.d.D(e);+ }, e.preinit = function(e, t) {+ if (typeof e == "string" && t && typeof t.as == "string") {+ var n = t.as, r = u(n, t.crossOrigin), a = typeof t.integrity == "string" ? t.integrity : void 0, o = typeof t.fetchPriority == "string" ? t.fetchPriority : void 0;+ n === "style" ? i.d.S(e, typeof t.precedence == "string" ? t.precedence : void 0, {+ crossOrigin: r,+ integrity: a,+ fetchPriority: o+ }) : n === "script" && i.d.X(e, {+ crossOrigin: r,+ integrity: a,+ fetchPriority: o,+ nonce: typeof t.nonce == "string" ? t.nonce : void 0+ });+ }+ }, e.preinitModule = function(e, t) {+ if (typeof e == "string") {+ if (typeof t == "object" && t) {+ if (t.as == null || t.as === "script") {+ var n = u(t.as, t.crossOrigin);+ i.d.M(e, {+ crossOrigin: n,+ integrity: typeof t.integrity == "string" ? t.integrity : void 0,+ nonce: typeof t.nonce == "string" ? t.nonce : void 0,+ fetchPriority: typeof t.fetchPriority == "string" ? t.fetchPriority : void 0+ });+ }+ } else t ?? i.d.M(e);+ }+ }, e.preload = function(e, t) {+ if (typeof e == "string" && typeof t == "object" && t && typeof t.as == "string") {+ var n = t.as, r = u(n, t.crossOrigin);+ i.d.L(e, n, {+ crossOrigin: r,+ integrity: typeof t.integrity == "string" ? t.integrity : void 0,+ nonce: typeof t.nonce == "string" ? t.nonce : void 0,+ type: typeof t.type == "string" ? t.type : void 0,+ fetchPriority: typeof t.fetchPriority == "string" ? t.fetchPriority : void 0,+ referrerPolicy: typeof t.referrerPolicy == "string" ? t.referrerPolicy : void 0,+ imageSrcSet: typeof t.imageSrcSet == "string" ? t.imageSrcSet : void 0,+ imageSizes: typeof t.imageSizes == "string" ? t.imageSizes : void 0,+ media: typeof t.media == "string" ? t.media : void 0+ });+ }+ }, e.preloadModule = function(e, t) {+ if (typeof e == "string") {+ if (t) {+ var n = u(t.as, t.crossOrigin);+ i.d.m(e, {+ as: typeof t.as == "string" && t.as !== "script" ? t.as : void 0,+ crossOrigin: n,+ integrity: typeof t.integrity == "string" ? t.integrity : void 0,+ nonce: typeof t.nonce == "string" ? t.nonce : void 0,+ fetchPriority: typeof t.fetchPriority == "string" ? t.fetchPriority : void 0+ });+ } else i.d.m(e);+ }+ }, e.requestFormReset = function(e) {+ i.d.r(e);+ }, e.unstable_batchedUpdates = function(e, t) {+ return e(t);+ }, e.useFormState = function(e, t, n) {+ return l.H.useFormState(e, t, n);+ }, e.useFormStatus = function() {+ return l.H.useHostTransitionStatus();+ }, e.version = "19.3.0";+})), dn = /* @__PURE__ */ l(((e, t) => {+ function n() {+ if (!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE != "function")) try {+ __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n);+ } catch (e) {+ console.error(e);+ }+ }+ n(), t.exports = un();+})), fn = /* @__PURE__ */ l(((e) => {+ var t = S();+ function n(e, t) {+ return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;+ }+ var r = typeof Object.is == "function" ? Object.is : n, i = t.useState, a = t.useEffect, o = t.useLayoutEffect, s = t.useDebugValue;+ function c(e, t) {+ var n = t(), r = i({ inst: {+ value: n,+ getSnapshot: t+ } }), c = r[0].inst, u = r[1];+ return o(function() {+ c.value = n, c.getSnapshot = t, l(c) && u({ inst: c });+ }, [+ e,+ n,+ t+ ]), a(function() {+ return l(c) && u({ inst: c }), e(function() {+ l(c) && u({ inst: c });+ });+ }, [e]), s(n), n;+ }+ function l(e) {+ var t = e.getSnapshot;+ e = e.value;+ try {+ var n = t();+ return !r(e, n);+ } catch {+ return !0;+ }+ }+ function u(e, t) {+ return t();+ }+ 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;+})), pn = /* @__PURE__ */ l(((e, t) => {+ t.exports = fn();+})), mn = /* @__PURE__ */ d(dn(), 1), hn = pn(), gn = /*#__PURE__*/ (0, C.createContext)(!1), _n = /*#__PURE__*/ (0, C.createContext)(null);+function vn(e) {+ if ((0, C.useContext)(_n)) return e.content;+ let { collection: t, document: n } = Sn(e.createCollection);+ return /*#__PURE__*/ C.createElement(C.Fragment, null, /*#__PURE__*/ C.createElement(sn, null, /*#__PURE__*/ C.createElement(_n.Provider, { value: n }, e.content)), /*#__PURE__*/ C.createElement(yn, {+ render: e.children,+ collection: t+ }));+}+function yn({ collection: e, render: t }) {+ return t(e);+}+function bn(e, t, n) {+ let r = Qe(), i = (0, C.useRef)(r);+ i.current = r;+ let a = (0, C.useCallback)(() => i.current ? n() : t(), [t, n]);+ return (0, hn.useSyncExternalStore)(e, a);+}+var xn = typeof C.useSyncExternalStore == "function" ? C.useSyncExternalStore : bn;+function Sn(e) {+ let [t] = (0, C.useState)(() => new b(e?.() || new g()));+ return {+ collection: xn((0, C.useCallback)((e) => t.subscribe(e), [t]), (0, C.useCallback)(() => {+ let e = t.getCollection();+ return t.isSSR && t.resetAfterSSR(), e;+ }, [t]), (0, C.useCallback)(() => (t.isSSR = !0, t.getCollection()), [t])),+ document: t+ };+}+var Cn = /*#__PURE__*/ (0, C.createContext)(null);+function wn(e) {+ return class extends f {+ static {+ this.type = e;+ }+ };+}+function Tn(e, t, n, r, i, a) {+ typeof e == "string" && (e = wn(e));+ let o = (0, C.useCallback)((i) => {+ i?.setProps(t, n, e, r, a);+ }, [+ t,+ n,+ r,+ a,+ e+ ]), s = (0, C.useContext)(Cn);+ 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__*/ C.createElement(Cn.Provider, { value: o }, i) : null;+ }+ return /*#__PURE__*/ C.createElement(e.type, { ref: o }, i);+}+function En(e, t) {+ let n = ({ node: e }) => t(e.props, e.props.ref, e), r = (0, C.forwardRef)((r, i) => {+ let a = (0, C.useContext)(nn);+ if (!(0, C.useContext)(gn)) {+ if (t.length >= 3) throw Error(t.name + " cannot be rendered outside a collection.");+ return t(r, i);+ }+ return Tn(e, r, i, "children" in r ? r.children : null, null, (e) => /*#__PURE__*/ C.createElement(nn.Provider, { value: a }, /*#__PURE__*/ C.createElement(n, { node: e })));+ });+ return r.displayName = t.name, r;+}+function Dn(e) {+ return w({+ ...e,+ addIdAndValue: !0+ });+}+var On = /*#__PURE__*/ (0, C.createContext)(null);+function kn(e) {+ let t = (0, C.useContext)(On), n = (t?.dependencies || []).concat(e.dependencies), r = e.idScope ?? t?.idScope, i = Dn({+ ...e,+ idScope: r,+ dependencies: n+ });+ return (0, C.useContext)(_n) && (i = /*#__PURE__*/ C.createElement(An, null, i)), t = (0, C.useMemo)(() => ({+ dependencies: n,+ idScope: r+ }), [r, ...n]), /*#__PURE__*/ C.createElement(On.Provider, { value: t }, i);+}+function An({ children: e }) {+ let t = (0, C.useContext)(_n), n = (0, C.useMemo)(() => /*#__PURE__*/ C.createElement(_n.Provider, { value: null }, /*#__PURE__*/ C.createElement(gn.Provider, { value: !0 }, e)), [e]);+ return Qe() ? /*#__PURE__*/ C.createElement(Cn.Provider, { value: t }, n) : /*#__PURE__*/ (0, mn.createPortal)(n, t);+}+//#endregion+//#region node_modules/react-aria/dist/private/utils/constants.mjs+var jn = "react-aria-clear-focus", Mn = "react-aria-focus";+//#endregion+//#region node_modules/react-aria/dist/private/focus/virtualFocus.mjs+function Nn(e) {+ let t = In(j(e));+ t !== e && (t && Pn(t, e), e && Fn(e, t));+}+function Pn(e, t) {+ e.dispatchEvent(new FocusEvent("blur", { relatedTarget: t })), e.dispatchEvent(new FocusEvent("focusout", {+ bubbles: !0,+ relatedTarget: t+ }));+}+function Fn(e, t) {+ e.dispatchEvent(new FocusEvent("focus", { relatedTarget: t })), e.dispatchEvent(new FocusEvent("focusin", {+ bubbles: !0,+ relatedTarget: t+ }));+}+function In(e) {+ let t = I(e), n = t?.getAttribute("aria-activedescendant");+ return n && e.getElementById(n) || t;+}+//#endregion+//#region node_modules/react-aria/dist/private/utils/keyboard.mjs+function Ln(e) {+ return we() ? e.metaKey : e.ctrlKey;+}+var Rn = /* @__PURE__ */ new Set([+ "checkbox",+ "radio",+ "range",+ "color",+ "file",+ "image",+ "button",+ "submit",+ "reset"+]);+function zn(e) {+ return e instanceof HTMLInputElement && !Rn.has(e.type) || e instanceof HTMLTextAreaElement || e instanceof HTMLElement && e.isContentEditable;+}+//#endregion+//#region node_modules/react-aria/dist/private/utils/useEffectEvent.mjs+var Bn = C.useInsertionEffect ?? B;+function Vn(e) {+ let t = (0, C.useRef)(null);+ return Bn(() => {+ t.current = e;+ }, [e]), (0, C.useCallback)((...e) => {+ let n = t.current;+ return n?.(...e);+ }, []);+}+//#endregion+//#region node_modules/react-aria/dist/private/utils/useEvent.mjs+function Hn(e, t, n, r) {+ let i = Vn(n), a = n == null;+ (0, C.useEffect)(() => {+ if (!(a || e.current == null)) return ne(e.current, t, i, r);+ }, [+ e,+ t,+ r,+ a+ ]);+}+//#endregion+//#region node_modules/react-aria/dist/private/utils/useLabels.mjs+function Un(e, t) {+ let { id: n, "aria-label": r, "aria-labelledby": i } = e;+ return n = Nt(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+ };+}+//#endregion+//#region node_modules/react-aria/dist/private/i18n/utils.mjs+var Wn = /* @__PURE__ */ new Set([+ "Arab",+ "Syrc",+ "Samr",+ "Mand",+ "Thaa",+ "Mend",+ "Nkoo",+ "Adlm",+ "Rohg",+ "Hebr"+]), Gn = /* @__PURE__ */ new Set([+ "ae",+ "ar",+ "arc",+ "bcc",+ "bqi",+ "ckb",+ "dv",+ "fa",+ "glk",+ "he",+ "ku",+ "mzn",+ "nqo",+ "pnb",+ "ps",+ "sd",+ "ug",+ "ur",+ "yi"+]);+function Kn(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 Wn.has(t.script);+ }+ let t = e.split("-")[0];+ return Gn.has(t);+}+//#endregion+//#region node_modules/react-aria/dist/private/i18n/useDefaultLocale.mjs+var qn = Symbol.for("react-aria.i18n.locale");+function Jn() {+ let e = typeof window < "u" && window[qn] || typeof navigator < "u" && (navigator.language || navigator.userLanguage) || "en-US";+ try {+ Intl.DateTimeFormat.supportedLocalesOf([e]);+ } catch {+ e = "en-US";+ }+ return {+ locale: e,+ direction: Kn(e) ? "rtl" : "ltr"+ };+}+var Yn = Jn(), Xn = /* @__PURE__ */ new Set();+function Zn() {+ Yn = Jn();+ for (let e of Xn) e(Yn);+}+function Qn() {+ let e = Qe(), [t, n] = (0, C.useState)(Yn);+ return (0, C.useEffect)(() => (Xn.size === 0 && window.addEventListener("languagechange", Zn), Xn.add(n), () => {+ Xn.delete(n), Xn.size === 0 && window.removeEventListener("languagechange", Zn);+ }), []), e ? {+ locale: typeof window < "u" && window[qn] || "en-US",+ direction: "ltr"+ } : t;+}+//#endregion+//#region node_modules/react-aria/dist/private/i18n/I18nProvider.mjs+var $n = /*#__PURE__*/ C.createContext(null);+function er() {+ let e = Qn();+ return (0, C.useContext)($n) || e;+}+//#endregion+//#region node_modules/@internationalized/string/dist/private/LocalizedStringDictionary.mjs+var tr = Symbol.for("react-aria.i18n.locale"), nr = Symbol.for("react-aria.i18n.strings"), rr = void 0, ir = class e {+ constructor(e, t = "en-US") {+ this.strings = Object.fromEntries(Object.entries(e).filter(([, e]) => e)), this.defaultLocale = t;+ }+ getStringForLocale(e, t) {+ let n = this.getStringsForLocale(t)[e];+ if (!n) throw Error(`Could not find intl message ${e} in ${t} locale`);+ return n;+ }+ getStringsForLocale(e) {+ let t = this.strings[e];+ return t || (t = ar(e, this.strings, this.defaultLocale), this.strings[e] = t), t;+ }+ static getGlobalDictionaryForPackage(t) {+ if (typeof window > "u") return null;+ let n = window[tr];+ if (rr === void 0) {+ let t = window[nr];+ if (!t) return null;+ rr = {};+ for (let r in t) rr[r] = new e({ [n]: t[r] }, n);+ }+ let r = rr?.[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 ar(e, t, n = "en-US") {+ if (t[e]) return t[e];+ let r = or(e), i = sr(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 or(e) {+ return Intl.Locale ? new Intl.Locale(e).language : e.split("-")[0];+}+function sr(e) {+ if (Intl.Locale) return new Intl.Locale(e).script;+}+//#endregion+//#region node_modules/@internationalized/string/dist/private/LocalizedStringFormatter.mjs+var cr = /* @__PURE__ */ new Map(), lr = /* @__PURE__ */ new Map(), ur = class {+ constructor(e, t) {+ this.locale = e, this.strings = t;+ }+ format(e, t) {+ let n = this.strings.getStringForLocale(e, this.locale);+ return typeof n == "function" ? n(t, this) : n;+ }+ plural(e, t, n = "cardinal") {+ let r = t["=" + e];+ if (r) return typeof r == "function" ? r() : r;+ let i = this.locale + ":" + n, a = cr.get(i);+ return a || (a = new Intl.PluralRules(this.locale, { type: n }), cr.set(i, a)), r = t[a.select(e)] || t.other, typeof r == "function" ? r() : r;+ }+ number(e) {+ let t = lr.get(this.locale);+ return t || (t = new Intl.NumberFormat(this.locale), lr.set(this.locale, t)), t.format(e);+ }+ select(e, t) {+ let n = e[t] || e.other;+ return typeof n == "function" ? n() : n;+ }+}, dr = /* @__PURE__ */ new WeakMap();+function fr(e) {+ let t = dr.get(e);+ return t || (t = new ir(e), dr.set(e, t)), t;+}+function pr(e, t) {+ return t && ir.getGlobalDictionaryForPackage(t) || fr(e);+}+function mr(e, t) {+ let { locale: n } = er(), r = pr(e, t);+ return (0, C.useMemo)(() => new ur(n, r), [n, r]);+}+//#endregion+//#region node_modules/react-aria/dist/private/utils/filterDOMProps.mjs+var hr = /* @__PURE__ */ new Set(["id"]), gr = /* @__PURE__ */ new Set([+ "aria-label",+ "aria-labelledby",+ "aria-describedby",+ "aria-details"+]), _r = /* @__PURE__ */ new Set([+ "href",+ "hrefLang",+ "target",+ "rel",+ "download",+ "ping",+ "referrerPolicy"+]), vr = /* @__PURE__ */ new Set([+ "dir",+ "lang",+ "hidden",+ "inert",+ "translate"+]), yr = /* @__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(".")), br = /^(data-.*)$/;+function xr(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) && (hr.has(t) || n && gr.has(t) || r && _r.has(t) || i && vr.has(t) || a && (yr.has(t) || t.endsWith("Capture") && yr.has(t.slice(0, -7))) || o?.has(t) || br.test(t)) && (s[t] = e[t]);+ return s;+}+//#endregion+//#region node_modules/react-aria/dist/private/interactions/textSelection.mjs+var Sr = "default", Cr = "", wr = /* @__PURE__ */ new WeakMap();+function Tr(e) {+ if (De() && ke()) {+ if (Sr === "default") {+ let t = j(e);+ Cr = t.documentElement.style.webkitUserSelect, t.documentElement.style.webkitUserSelect = "none";+ }+ Sr = "disabled";+ } else if (e instanceof HTMLElement || e instanceof SVGElement) {+ let t = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";+ wr.set(e, e.style[t]), e.style[t] = "none";+ }+}+function Er(e) {+ if (De() && ke()) {+ if (Sr !== "disabled") return;+ Sr = "restoring", setTimeout(() => {+ Tt(() => {+ if (Sr === "restoring") {+ let t = j(e);+ t.documentElement.style.webkitUserSelect === "none" && (t.documentElement.style.webkitUserSelect = Cr || ""), Cr = "", Sr = "default";+ }+ });+ }, 300);+ } else if ((e instanceof HTMLElement || e instanceof SVGElement) && e && wr.has(e)) {+ let t = wr.get(e), n = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";+ e.style[n] === "none" && (e.style[n] = t), e.getAttribute("style") === "" && e.removeAttribute("style"), wr.delete(e);+ }+}+//#endregion+//#region node_modules/react-aria/dist/private/utils/getMetaValue.mjs+function Dr(e, t) {+ let n = M(t), r = j(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;+}+//#endregion+//#region node_modules/react-aria/dist/private/utils/getNonce.mjs+var Or = /* @__PURE__ */ new WeakMap();+function kr(e) {+ let t = j(e), n = Or.get(t);+ return n ??= Dr("csp-nonce", t), n !== void 0 && Or.set(t, n), n;+}+//#endregion+//#region node_modules/react-aria/dist/private/interactions/context.mjs+var Ar = C.createContext({ register: () => {} });+Ar.displayName = "PressResponderContext";+//#endregion+//#region node_modules/react-aria/dist/private/utils/useGlobalListeners.mjs+function jr() {+ let e = (0, C.useRef)(/* @__PURE__ */ new Map()), t = (0, C.useCallback)((t, n, r, i) => {+ let a = i?.once ? (...t) => {+ e.current.delete(r), r(...t);+ } : r;+ e.current.set(r, {+ type: n,+ eventTarget: t,+ fn: a,+ options: i+ }), t.addEventListener(n, a, i);+ }, []), n = (0, C.useCallback)((t, n, r, i) => {+ let a = e.current.get(r)?.fn || r;+ t.removeEventListener(n, a, i), e.current.delete(r);+ }, []), r = (0, C.useCallback)(() => {+ e.current.forEach((e, t) => {+ n(e.eventTarget, e.type, t, e.options);+ });+ }, [n]);+ return (0, C.useEffect)(() => r, [r]), {+ addGlobalListener: t,+ removeGlobalListener: n,+ removeAllGlobalListeners: r+ };+}+//#endregion+//#region node_modules/react-aria/dist/private/interactions/usePress.mjs+function Mr(e) {+ let t = (0, C.useContext)(Ar);+ if (t) {+ let { register: n, ref: r, ...i } = t;+ e = V(i, e), n();+ }+ return tn(t, e.ref), e;+}+var Nr = class {+ #e;+ constructor(e, t, n, r) {+ this.#e = !0;+ let i = (r?.target ?? n.currentTarget)?.getBoundingClientRect(), a, o = 0, s, c = null;+ n.clientX != null && n.clientY != null && (s = n.clientX, c = n.clientY), i && (s != null && c != null ? (a = s - i.left, o = c - i.top) : (a = i.width / 2, o = i.height / 2)), this.type = e, this.pointerType = t, this.target = n.currentTarget, this.shiftKey = n.shiftKey, this.metaKey = n.metaKey, this.ctrlKey = n.ctrlKey, this.altKey = n.altKey, this.x = a, this.y = o, this.key = n.key;+ }+ continuePropagation() {+ this.#e = !1;+ }+ get shouldStopPropagation() {+ return this.#e;+ }+}, Pr = Symbol("linkClicked"), Fr = "react-aria-pressable-style", Ir = "data-react-aria-pressable";+function Lr(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 } = Mr(e), [m, h] = (0, C.useState)(!1), g = (0, C.useRef)({+ isPressed: !1,+ ignoreEmulatedMouseEvents: !1,+ didFirePressStart: !1,+ isTriggeringEvent: !1,+ activePointerId: null,+ target: null,+ isOverTarget: !1,+ pointerType: null,+ disposables: []+ }), { addGlobalListener: _, removeAllGlobalListeners: v } = jr(), y = (0, C.useCallback)((e, t) => {+ let i = g.current;+ if (s || i.didFirePressStart) return !1;+ let a = !0;+ if (i.isTriggeringEvent = !0, r) {+ let n = new Nr("pressstart", t, e);+ r(n), a = n.shouldStopPropagation;+ }+ return n && n(!0), i.isTriggeringEvent = !1, i.didFirePressStart = !0, h(!0), a;+ }, [+ s,+ r,+ n+ ]), b = (0, C.useCallback)((e, r, a = !0) => {+ let o = g.current;+ if (!o.didFirePressStart) return !1;+ o.didFirePressStart = !1, o.isTriggeringEvent = !0;+ let c = !0;+ if (i) {+ let t = new Nr("pressend", r, e);+ i(t), c = t.shouldStopPropagation;+ }+ if (n && n(!1), h(!1), t && a && !s) {+ let n = new Nr("press", r, e);+ t(n), c &&= n.shouldStopPropagation;+ }+ return o.isTriggeringEvent = !1, c;+ }, [+ s,+ i,+ n,+ t+ ]), x = Vn(b), S = Vn((0, C.useCallback)((e, t) => {+ let n = g.current;+ if (s) return !1;+ if (a) {+ n.isTriggeringEvent = !0;+ let r = new Nr("pressup", t, e);+ return a(r), n.isTriggeringEvent = !1, r.shouldStopPropagation;+ }+ return !0;+ }, [s, a])), w = (0, C.useCallback)((e) => {+ let t = g.current;+ if (t.isPressed && t.target) {+ t.didFirePressStart && t.pointerType != null && b(Br(t.target, e), t.pointerType, !1), t.isPressed = !1, t.isOverTarget = !1, t.activePointerId = null, t.pointerType = null, v(), d || Er(t.target);+ for (let e of t.disposables) e();+ t.disposables = [];+ }+ }, [+ d,+ v,+ b+ ]), T = Vn(w);+ (0, C.useEffect)(() => {+ s && g.current.isPressed && T({+ currentTarget: g.current.target,+ shiftKey: !1,+ ctrlKey: !1,+ metaKey: !1,+ altKey: !1+ });+ }, [s]);+ let D = (0, C.useCallback)((e) => {+ u && w(e);+ }, [u, w]), O = (0, C.useCallback)((e) => {+ s || o?.(e);+ }, [s, o]), k = (0, C.useCallback)((e, t) => {+ if (!s && o) {+ let n = new MouseEvent("click", e);+ _e(n, t), o(ge(n));+ }+ }, [s, o]), A = (0, C.useMemo)(() => {+ let e = g.current, t = {+ onKeyDown(t) {+ if (zr(t.nativeEvent, t.currentTarget) && F(t.currentTarget, L(t))) {+ Hr(L(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;+ _(j(t.currentTarget), "keyup", Dt((t) => {+ zr(t, i) && !t.repeat && F(i, L(t)) && e.target && S(Br(e.target, t), "keyboard");+ }, n), !0), r && t.stopPropagation(), t.metaKey && we() && e.metaKeyEvents?.set(t.key, t.nativeEvent);+ } else t.key === "Meta" && (e.metaKeyEvents = /* @__PURE__ */ new Map());+ },+ onClick(t) {+ if (!(t && !F(t.currentTarget, L(t))) && t && t.button === 0 && !e.isTriggeringEvent && !Le.isOpening) {+ let n = !0;+ if (s && t.preventDefault(), !e.ignoreEmulatedMouseEvents && !e.isPressed && (e.pointerType === "virtual" || Ne(t.nativeEvent))) {+ let e = y(t, "virtual"), r = S(t, "virtual"), i = x(t, "virtual");+ O(t), n = e && r && i;+ } else if (e.isPressed && e.pointerType !== "keyboard") {+ let r = e.pointerType || t.nativeEvent.pointerType || "virtual", i = S(Br(t.currentTarget, t), r), a = x(Br(t.currentTarget, t), r, !0);+ n = i && a, e.isOverTarget = !1, O(t), T(t);+ }+ e.ignoreEmulatedMouseEvents = !1, n && t.stopPropagation();+ }+ }+ }, n = (t) => {+ if (e.isPressed && e.target && zr(t, e.target)) {+ Hr(L(t), t.key) && t.preventDefault();+ let n = L(t), r = F(e.target, n);+ x(Br(e.target, t), "keyboard", r), r && k(t, e.target), v(), t.key !== "Enter" && Rr(e.target) && F(e.target, n) && !t[Pr] && (t[Pr] = !0, Le(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;+ for (let n of t.values()) e.target?.dispatchEvent(new KeyboardEvent("keyup", n));+ }+ };+ if (typeof PointerEvent < "u") {+ t.onPointerDown = (t) => {+ if (t.button !== 0 || !F(t.currentTarget, L(t))) return;+ if (Pe(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 || Tr(e.target), i = y(t, e.pointerType);+ let a = L(t);+ "releasePointerCapture" in a && ("hasPointerCapture" in a ? a.hasPointerCapture(t.pointerId) && a.releasePointerCapture(t.pointerId) : a.releasePointerCapture(t.pointerId)), _(j(t.currentTarget), "pointerup", n, !1), _(j(t.currentTarget), "pointercancel", r, !1);+ }+ i && t.stopPropagation();+ }, t.onMouseDown = (t) => {+ if (F(t.currentTarget, L(t)) && t.button === 0) {+ if (l) {+ let n = be(t.target);+ n && e.disposables.push(n);+ }+ t.stopPropagation();+ }+ }, t.onPointerUp = (t) => {+ !F(t.currentTarget, L(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(Br(e.target, t), e.pointerType));+ }, t.onPointerLeave = (t) => {+ t.pointerId === e.activePointerId && e.target && e.isOverTarget && e.pointerType != null && (e.isOverTarget = !1, x(Br(e.target, t), e.pointerType, !1), D(t));+ };+ let n = (t) => {+ if (t.pointerId === e.activePointerId && e.isPressed && t.button === 0 && e.target) {+ if (F(e.target, L(t)) && e.pointerType != null) {+ let n = !1, r = setTimeout(() => {+ e.isPressed && e.target instanceof HTMLElement && (n ? T(t) : (E(e.target), e.target.click()));+ }, 80);+ _(t.currentTarget, "click", () => n = !0, !0), e.disposables.push(() => clearTimeout(r));+ } else T(t);+ e.isOverTarget = !1;+ }+ }, r = (e) => {+ T(e);+ };+ t.onDragStart = (e) => {+ F(e.currentTarget, L(e)) && T(e);+ };+ }+ return t;+ }, [+ _,+ s,+ l,+ v,+ d,+ D,+ y,+ O,+ k+ ]);+ return (0, C.useEffect)(() => {+ if (!f) return;+ let e = j(f.current);+ if (!e || !e.head || e.getElementById(Fr)) return;+ let t = e.createElement("style");+ t.id = Fr;+ let n = kr(e);+ n && (t.nonce = n), t.textContent = `+@layer {+ [${Ir}] {+ touch-action: pan-x pan-y pinch-zoom;+ }+}+ `.trim(), e.head.prepend(t);+ }, [f]), (0, C.useEffect)(() => {+ let e = g.current;+ return () => {+ d || Er(e.target ?? void 0);+ for (let t of e.disposables) t();+ e.disposables = [];+ };+ }, [d]), {+ isPressed: c || m,+ pressProps: V(p, A, { [Ir]: !0 })+ };+}+function Rr(e) {+ return e.tagName === "A" && e.hasAttribute("href");+}+function zr(e, t) {+ let { key: n, code: r } = e, i = t, a = i.getAttribute("role");+ return (n === "Enter" || n === " " || n === "Spacebar" || r === "Space") && !(i instanceof M(i).HTMLInputElement && !Wr(i, n) || i instanceof M(i).HTMLTextAreaElement || i.isContentEditable) && !((a === "link" || !a && Rr(i)) && n !== "Enter");+}+function Br(e, t) {+ let n = t.clientX, r = t.clientY;+ return {+ currentTarget: e,+ shiftKey: t.shiftKey,+ ctrlKey: t.ctrlKey,+ metaKey: t.metaKey,+ altKey: t.altKey,+ clientX: n,+ clientY: r,+ key: t.key+ };+}+function Vr(e) {+ return e instanceof HTMLInputElement ? !1 : e instanceof HTMLButtonElement ? e.type !== "submit" && e.type !== "reset" : !Rr(e);+}+function Hr(e, t) {+ return we() && t === "Enter" ? !1 : e instanceof HTMLInputElement ? t === "Enter" && (e.type === "checkbox" || e.type === "radio") ? !1 : !Wr(e, t) : Vr(e);+}+var Ur = /* @__PURE__ */ new Set([+ "checkbox",+ "radio",+ "range",+ "color",+ "file",+ "image",+ "button",+ "submit",+ "reset"+]);+function Wr(e, t) {+ return e.type === "checkbox" || e.type === "radio" ? t === " " : Ur.has(e.type);+}+//#endregion+//#region node_modules/react-aria/dist/private/button/useButton.mjs+function Gr(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,+ disabled: r,+ form: e.form,+ formAction: e.formAction,+ formEncType: e.formEncType,+ formMethod: e.formMethod,+ formNoValidate: e.formNoValidate,+ formTarget: e.formTarget,+ name: e.name,+ value: e.value+ } : {+ role: "button",+ href: n === "a" && !r ? f : void 0,+ target: n === "a" ? p : void 0,+ type: n === "input" ? h : void 0,+ disabled: n === "input" ? r : void 0,+ "aria-disabled": !r || n === "input" ? void 0 : r,+ rel: n === "a" ? m : void 0+ };+ let { pressProps: _, isPressed: v } = Lr({+ onPressStart: a,+ onPressEnd: o,+ onPressChange: c,+ onPress: i,+ onPressUp: s,+ onClick: d,+ isDisabled: r,+ preventFocusOnPress: l,+ ref: t+ }), { focusableProps: y } = an(e, t);+ u && (y.tabIndex = r ? -1 : y.tabIndex);+ let b = V(y, _, xr(e, { labelable: !0 }));+ return {+ isPressed: v,+ buttonProps: V(g, b, {+ "aria-haspopup": e["aria-haspopup"],+ "aria-expanded": e["aria-expanded"],+ "aria-controls": e["aria-controls"],+ "aria-pressed": e["aria-pressed"],+ "aria-current": e["aria-current"],+ "aria-disabled": e["aria-disabled"]+ })+ };+}+//#endregion+//#region node_modules/react-aria/dist/private/utils/shadowdom/ShadowTreeWalker.mjs+var Kr = class {+ constructor(e, t, n, r) {+ this._walkerStack = [], this._currentSetFor = /* @__PURE__ */ new Set(), this._acceptNode = (e) => {+ if (e.nodeType === Node.ELEMENT_NODE) {+ let t = e.shadowRoot;+ if (t) {+ let e = this._doc.createTreeWalker(t, this.whatToShow, { acceptNode: this._acceptNode });+ return this._walkerStack.unshift(e), NodeFilter.FILTER_ACCEPT;+ }+ if (typeof this.filter == "function") return this.filter(e);+ if (this.filter?.acceptNode) return this.filter.acceptNode(e);+ if (this.filter === null) return NodeFilter.FILTER_ACCEPT;+ }+ return NodeFilter.FILTER_SKIP;+ }, this._doc = e, this.root = t, this.filter = r ?? null, this.whatToShow = n ?? NodeFilter.SHOW_ALL, this._currentNode = t, this._walkerStack.unshift(e.createTreeWalker(t, n, this._acceptNode));+ let i = t.shadowRoot;+ if (i) {+ let e = this._doc.createTreeWalker(i, this.whatToShow, { acceptNode: this._acceptNode });+ this._walkerStack.unshift(e);+ }+ }+ get currentNode() {+ return this._currentNode;+ }+ set currentNode(e) {+ if (!F(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 });+ t.push(i), i.currentNode = r, this._currentSetFor.add(i), n = r = e.host;+ } else n = n.parentNode;+ let i = this._doc.createTreeWalker(this.root, this.whatToShow, { acceptNode: this._acceptNode });+ t.push(i), i.currentNode = r, this._currentSetFor.add(i), this._walkerStack = t;+ }+ get doc() {+ return this._doc;+ }+ firstChild() {+ let e = this.currentNode, t = this.nextNode();+ return F(e, t) ? (t && (this.currentNode = t), t) : (this.currentNode = e, null);+ }+ lastChild() {+ let e = this._walkerStack[0].lastChild();+ return e && (this.currentNode = e), e;+ }+ nextNode() {+ let e = this._walkerStack[0].nextNode();+ if (e) {+ if (e.shadowRoot) {+ let t;+ if (typeof this.filter == "function" ? t = this.filter(e) : this.filter?.acceptNode && (t = this.filter.acceptNode(e)), t === NodeFilter.FILTER_ACCEPT) return this.currentNode = e, e;+ let n = this.nextNode();+ return n && (this.currentNode = n), n;+ }+ return e && (this.currentNode = e), e;+ }+ if (this._walkerStack.length > 1) {+ this._walkerStack.shift();+ let e = this.nextNode();+ return e && (this.currentNode = e), e;+ }+ return null;+ }+ previousNode() {+ let e = this._walkerStack[0];+ if (e.currentNode === e.root) {+ if (this._currentSetFor.has(e)) {+ if (this._currentSetFor.delete(e), this._walkerStack.length > 1) {+ this._walkerStack.shift();+ let e = this.previousNode();+ return e && (this.currentNode = e), e;+ }+ return null;+ }+ return null;+ }+ let t = e.previousNode();+ if (t) {+ if (t.shadowRoot) {+ let e;+ if (typeof this.filter == "function" ? e = this.filter(t) : this.filter?.acceptNode && (e = this.filter.acceptNode(t)), e === NodeFilter.FILTER_ACCEPT) return t && (this.currentNode = t), t;+ let n = this.lastChild();+ return n && (this.currentNode = n), n;+ }+ return t && (this.currentNode = t), t;+ }+ if (this._walkerStack.length > 1) {+ this._walkerStack.shift();+ let e = this.previousNode();+ return e && (this.currentNode = e), e;+ }+ return null;+ }+ nextSibling() {+ return null;+ }+ previousSibling() {+ return null;+ }+ parentNode() {+ return null;+ }+};+function qr(e, t, n, r) {+ return ae() ? new Kr(e, t, n, r) : e.createTreeWalker(t, n, r);+}+//#endregion+//#region node_modules/react-aria/dist/private/focus/FocusScope.mjs+var Jr = /*#__PURE__*/ C.createContext(null), Yr = "react-aria-focus-scope-restore", Xr = null;+function Zr(e) {+ let { children: t, contain: n, restoreFocus: r, autoFocus: i } = e, a = (0, C.useRef)(null), o = (0, C.useRef)(null), s = (0, C.useRef)([]), { parentNode: c } = (0, C.useContext)(Jr) || {}, l = (0, C.useMemo)(() => new yi({ scopeRef: s }), [s]);+ B(() => {+ let e = c || bi.root;+ if (bi.getTreeNode(e.scopeRef) && Xr && !ci(Xr, e.scopeRef)) {+ let t = bi.getTreeNode(Xr);+ t && (e = t);+ }+ e.addChild(l), bi.addNode(l);+ }, [l, c]), B(() => {+ let e = bi.getTreeNode(s);+ e && (e.contain = !!n);+ }, [n]), B(() => {+ let e = a.current?.nextSibling, t = [], n = (e) => e.stopPropagation();+ for (; e && e !== o.current;) t.push(e), e.addEventListener(Yr, n), e = e.nextSibling;+ return s.current = t, () => {+ for (let e of t) e.removeEventListener(Yr, n);+ };+ }, [t]), pi(s, r, n), ri(s, n), hi(s, r, n), fi(s, i), (0, C.useEffect)(() => {+ let e = I(j(s.current ? s.current[0] : void 0)), t = null;+ if (ai(e, s.current)) {+ for (let n of bi.traverse()) n.scopeRef && ai(e, n.scopeRef.current) && (t = n);+ t === bi.getTreeNode(s) && (Xr = t.scopeRef);+ }+ }, [s]), B(() => () => {+ let e = bi.getTreeNode(s)?.parent?.scopeRef ?? null;+ (s === Xr || ci(s, Xr)) && (!e || bi.getTreeNode(e)) && (Xr = e), bi.removeTreeNode(s);+ }, [s]);+ let u = (0, C.useMemo)(() => Qr(s), []), d = (0, C.useMemo)(() => ({+ focusManager: u,+ parentNode: l+ }), [l, u]);+ return /*#__PURE__*/ C.createElement(Jr.Provider, { value: d }, /*#__PURE__*/ C.createElement("span", {+ "data-focus-scope-start": !0,+ hidden: !0,+ ref: a+ }), t, /*#__PURE__*/ C.createElement("span", {+ "data-focus-scope-end": !0,+ hidden: !0,+ ref: o+ }));+}+function Qr(e) {+ return {+ focusNext(t = {}) {+ let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || I(j(n[0] ?? void 0)), c = n[0].previousElementSibling, l = _i($r(n), {+ tabbable: i,+ accept: o+ }, n);+ l.currentNode = ai(s, n) ? s : c;+ let u = l.nextNode();+ return !u && a && (l.currentNode = c, u = l.nextNode()), u && li(u, !0), u;+ },+ focusPrevious(t = {}) {+ let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || I(j(n[0] ?? void 0)), c = n[n.length - 1].nextElementSibling, l = _i($r(n), {+ tabbable: i,+ accept: o+ }, n);+ l.currentNode = ai(s, n) ? s : c;+ let u = l.previousNode();+ return !u && a && (l.currentNode = c, u = l.previousNode()), u && li(u, !0), u;+ },+ focusFirst(t = {}) {+ let n = e.current, { tabbable: r, accept: i } = t, a = _i($r(n), {+ tabbable: r,+ accept: i+ }, n);+ a.currentNode = n[0].previousElementSibling;+ let o = a.nextNode();+ return o && li(o, !0), o;+ },+ focusLast(t = {}) {+ let n = e.current, { tabbable: r, accept: i } = t, a = _i($r(n), {+ tabbable: r,+ accept: i+ }, n);+ a.currentNode = n[n.length - 1].nextElementSibling;+ let o = a.previousNode();+ return o && li(o, !0), o;+ }+ };+}+function $r(e) {+ return e[0].parentElement;+}+function ei(e) {+ let t = bi.getTreeNode(Xr);+ for (; t && t.scopeRef !== e;) {+ if (t.contain) return !1;+ t = t.parent;+ }+ return !0;+}+function ti(e) {+ if (!e.form) return Array.from(j(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter((e) => !e.form);+ let t = e.form.elements.namedItem(e.name), n = M(e);+ return t instanceof n.RadioNodeList ? Array.from(t).filter((e) => e instanceof n.HTMLInputElement) : t instanceof n.HTMLInputElement ? [t] : [];+}+function ni(e) {+ if (e.checked) return !0;+ let t = ti(e);+ return t.length > 0 && !t.some((e) => e.checked);+}+function ri(e, t) {+ let n = (0, C.useRef)(void 0), r = (0, C.useRef)(void 0);+ B(() => {+ let i = e.current;+ if (!t) {+ r.current &&= (cancelAnimationFrame(r.current), void 0);+ return;+ }+ let a = j(i ? i[0] : void 0), o = (t) => {+ if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !ei(e) || t.isComposing) return;+ let n = I(a), r = e.current;+ if (!r || !ai(n, r)) return;+ let i = _i($r(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 && (li(o, !0), o instanceof M(o).HTMLInputElement && o.select());+ }, s = (t) => {+ (!Xr || ci(Xr, e)) && ai(L(t), e.current) ? (Xr = e, n.current = L(t)) : ei(e) && !oi(L(t), e) ? n.current ? li(n.current) : Xr && Xr.current && di(Xr.current) : ei(e) && (n.current = L(t));+ }, c = (t) => {+ r.current && cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {+ let r = gt(), i = (r === "virtual" || r === null) && je() && Ae(), o = I(a);+ if (!i && o && ei(e) && !oi(o, e)) {+ Xr = e;+ let r = L(t);+ r && r.isConnected ? (n.current = r, li(n.current)) : Xr.current && di(Xr.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]), B(() => () => {+ r.current && cancelAnimationFrame(r.current);+ }, [r]);+}+function ii(e) {+ return oi(e);+}+function ai(e, t) {+ return !e || !t ? !1 : t.some((t) => F(t, e));+}+function oi(e, t = null) {+ if (e instanceof Element && e.closest("[data-react-aria-top-layer]")) return !0;+ for (let { scopeRef: n } of bi.traverse(bi.getTreeNode(t))) if (n && ai(e, n.current)) return !0;+ return !1;+}+function si(e) {+ return oi(e, Xr);+}+function ci(e, t) {+ let n = bi.getTreeNode(t)?.parent;+ for (; n;) {+ if (n.scopeRef === e) return !0;+ n = n.parent;+ }+ return !1;+}+function li(e, t = !1) {+ if (e != null && !t) try {+ Et(e);+ } catch {}+ else if (e != null) try {+ e.focus();+ } catch {}+}+function ui(e, t = !0) {+ let n = e[0].previousElementSibling, r = $r(e), i = _i(r, { tabbable: t }, e);+ i.currentNode = n;+ let a = i.nextNode();+ return t && !a && (r = $r(e), i = _i(r, { tabbable: !1 }, e), i.currentNode = n, a = i.nextNode()), a;+}+function di(e, t = !0) {+ li(ui(e, t));+}+function fi(e, t) {+ let n = C.useRef(t);+ (0, C.useEffect)(() => {+ n.current && (Xr = e, !ai(I(j(e.current ? e.current[0] : void 0)), Xr.current) && e.current && di(e.current)), n.current = !1;+ }, [e]);+}+function pi(e, t, n) {+ B(() => {+ if (t || n) return;+ let r = e.current, i = j(r ? r[0] : void 0), a = (t) => {+ let n = L(t);+ ai(n, e.current) ? Xr = e : ii(n) || (Xr = 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));+ };+ }, [+ e,+ t,+ n+ ]);+}+function mi(e) {+ let t = bi.getTreeNode(Xr);+ for (; t && t.scopeRef !== e;) {+ if (t.nodeToRestore) return !1;+ t = t.parent;+ }+ return t?.scopeRef === e;+}+function hi(e, t, n) {+ let r = (0, C.useRef)(typeof document < "u" ? I(j(e.current ? e.current[0] : void 0)) : null);+ B(() => {+ let r = e.current, i = j(r ? r[0] : void 0);+ if (!t || n) return;+ let a = () => {+ (!Xr || ci(Xr, e)) && ai(I(i), e.current) && (Xr = 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]), B(() => {+ let r = j(e.current ? e.current[0] : void 0);+ if (!t) return;+ let i = (t) => {+ if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !ei(e) || t.isComposing) return;+ let n = r.activeElement;+ if (!oi(n, e) || !mi(e)) return;+ let i = bi.getTreeNode(e);+ if (!i) return;+ let a = i.nodeToRestore, o = _i(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 || !oi(s, e)) && a) {+ o.currentNode = a;+ do+ s = t.shiftKey ? o.previousNode() : o.nextNode();+ while (oi(s, e));+ t.preventDefault(), t.stopPropagation(), s ? li(s, !0) : ii(a) ? li(a, !0) : n.blur();+ }+ };+ return n || r.addEventListener("keydown", i, !0), () => {+ n || r.removeEventListener("keydown", i, !0);+ };+ }, [+ e,+ t,+ n+ ]), B(() => {+ let n = j(e.current ? e.current[0] : void 0);+ if (!t) return;+ let i = bi.getTreeNode(e);+ if (i) return i.nodeToRestore = r.current ?? void 0, () => {+ let r = bi.getTreeNode(e);+ if (!r) return;+ let i = r.nodeToRestore, a = I(n);+ if (t && i && (a && oi(a, e) || a === n.body && mi(e))) {+ let t = bi.clone();+ requestAnimationFrame(() => {+ if (n.activeElement === n.body) {+ let n = t.getTreeNode(e);+ for (; n;) {+ if (n.nodeToRestore && n.nodeToRestore.isConnected) {+ gi(n.nodeToRestore);+ return;+ }+ n = n.parent;+ }+ for (n = t.getTreeNode(e); n;) {+ if (n.scopeRef && n.scopeRef.current && bi.getTreeNode(n.scopeRef)) {+ let e = ui(n.scopeRef.current, !0);+ if (e) {+ gi(e);+ return;+ }+ }+ n = n.parent;+ }+ }+ });+ }+ };+ }, [e, t]);+}+function gi(e) {+ e.dispatchEvent(new CustomEvent(Yr, {+ bubbles: !0,+ cancelable: !0+ })) && li(e);+}+function _i(e, t, n) {+ let r = t?.tabbable ? me : pe, i = j(e?.nodeType === Node.ELEMENT_NODE ? e : null), a = qr(i, e || i, NodeFilter.SHOW_ELEMENT, { acceptNode(e) {+ return F(t?.from, e) || t?.tabbable && e.tagName === "INPUT" && e.getAttribute("type") === "radio" && (!ni(e) || a.currentNode.tagName === "INPUT" && a.currentNode.type === "radio" && a.currentNode.name === e.name) ? NodeFilter.FILTER_REJECT : r(e) && (!n || ai(e, n)) && (!t?.accept || t.accept(e)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;+ } });+ return t?.from && (a.currentNode = t.from), a;+}+var vi = class e {+ constructor() {+ this.fastMap = /* @__PURE__ */ new Map(), this.root = new yi({ scopeRef: null }), this.fastMap.set(null, this.root);+ }+ get size() {+ return this.fastMap.size;+ }+ getTreeNode(e) {+ return this.fastMap.get(e);+ }+ addTreeNode(e, t, n) {+ let r = this.fastMap.get(t ?? null);+ if (!r) return;+ let i = new yi({ scopeRef: e });+ r.addChild(i), i.parent = r, this.fastMap.set(e, i), n && (i.nodeToRestore = n);+ }+ addNode(e) {+ this.fastMap.set(e.scopeRef, e);+ }+ removeTreeNode(e) {+ if (e === null) return;+ 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 && ai(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);+ }+ *traverse(e = this.root) {+ if (e.scopeRef != null && (yield e), e.children.size > 0) for (let t of e.children) yield* this.traverse(t);+ }+ clone() {+ let t = new e();+ for (let e of this.traverse()) t.addTreeNode(e.scopeRef, e.parent?.scopeRef ?? null, e.nodeToRestore);+ return t;+ }+}, yi = class {+ constructor(e) {+ this.children = /* @__PURE__ */ new Set(), this.contain = !1, this.scopeRef = e.scopeRef;+ }+ addChild(e) {+ this.children.add(e), e.parent = this;+ }+ removeChild(e) {+ this.children.delete(e), e.parent = void 0;+ }+}, bi = new vi(), xi = 7e3, Si = null;+function Ci(e, t = "assertive", n = xi) {+ Si ? Si.announce(e, t, n) : (Si = new wi(), (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") ? Si.announce(e, t, n) : setTimeout(() => {+ Si?.isAttached() && Si?.announce(e, t, n);+ }, 100));+}+var wi = 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,+ clip: "rect(0 0 0 0)",+ clipPath: "inset(50%)",+ height: "1px",+ margin: "-1px",+ overflow: "hidden",+ padding: 0,+ position: "absolute",+ width: "1px",+ whiteSpace: "nowrap"+ }), this.assertiveLog = this.createLog("assertive"), this.node.appendChild(this.assertiveLog), this.politeLog = this.createLog("polite"), this.node.appendChild(this.politeLog), document.body.prepend(this.node));+ }+ isAttached() {+ return this.node?.isConnected;+ }+ createLog(e) {+ let t = document.createElement("div");+ return t.setAttribute("role", "log"), t.setAttribute("aria-live", e), t.setAttribute("aria-relevant", "additions"), t;+ }+ destroy() {+ this.node &&= (document.body.removeChild(this.node), null);+ }+ announce(e, t = "assertive", n = xi) {+ 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(() => {+ r.remove();+ }, n);+ }+ clear(e) {+ this.node && ((!e || e === "assertive") && this.assertiveLog && (this.assertiveLog.innerHTML = ""), (!e || e === "polite") && this.politeLog && (this.politeLog.innerHTML = ""));+ }+};+//#endregion+//#region node_modules/react-aria/dist/private/utils/isScrollable.mjs+function Ti(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;+}+//#endregion+//#region node_modules/react-aria/dist/private/utils/getScrollParent.mjs+function Ei(e, t) {+ let n = e;+ for (Ti(n, t) && (n = n.parentElement); n && !Ti(n, t);) n = n.parentElement;+ return n || document.scrollingElement || document.documentElement;+}+//#endregion+//#region node_modules/react-aria/dist/private/utils/getScrollParents.mjs+function Di(e, t) {+ let n = [], r = document.scrollingElement || document.documentElement;+ for (; e && (Ti(e, t) && n.push(e), e !== r);) e = e.parentElement;+ return n;+}+//#endregion+//#region node_modules/react-aria/dist/private/utils/scrollIntoView.mjs+function Oi(e, t, n = {}) {+ e !== t && ki(e, t, t.getBoundingClientRect(), n);+}+function ki(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, N = e === d ? 0 : D + O, ee = e === d ? 0 : T + E, te = e === d ? 0 : e.offsetWidth - e.clientWidth - N, P = e === d ? 0 : e.offsetHeight - e.clientHeight - ee, ne = p + (f ? 0 : T) + x, re = m - (f ? 0 : E) - S - P, ie = h + (f ? 0 : D) + C, ae = g - (f ? 0 : O) - w;+ De() && ke() || u.direction === "ltr" ? ae -= te : u.direction === "rtl" && (ie += te);+ let F = k < ne || A > re, I = j < ie || M > ae;+ if (F && i === "start") o += k - ne;+ else if (F && i === "center") o += (k + A) / 2 - (ne + re) / 2;+ else if (F && i === "end") o += A - re;+ else if (F && i === "nearest") {+ let e = k - ne, t = A - re;+ o += Math.abs(e) <= Math.abs(t) ? e : t;+ }+ if (I && a === "start") s += j - ie;+ else if (I && a === "center") s += (j + M) / 2 - (ie + ae) / 2;+ else if (I && a === "end") s += M - ae;+ else if (I && a === "nearest") {+ let e = j - ie, t = M - ae;+ s += Math.abs(e) <= Math.abs(t) ? e : t;+ }+ e.scrollTo({+ left: s,+ top: o+ });+}+function Ai(e, t = {}) {+ let { containingElement: n } = t;+ if (e && e.isConnected) {+ let t = document.scrollingElement || document.documentElement;+ if (window.getComputedStyle(t).overflow !== "hidden") {+ let { left: t, top: r } = e.getBoundingClientRect();+ e?.scrollIntoView?.({ block: "nearest" });+ let { left: i, top: a } = e.getBoundingClientRect();+ (Math.abs(t - i) > 1 || Math.abs(r - a) > 1) && (n?.scrollIntoView?.({+ block: "center",+ inline: "center"+ }), e.scrollIntoView?.({ block: "nearest" }));+ } else {+ let { left: t, top: r } = e.getBoundingClientRect(), i = Di(e, !0);+ for (let t of i) Oi(t, e);+ let { left: a, top: o } = e.getBoundingClientRect();+ if (Math.abs(t - a) > 1 || Math.abs(r - o) > 1) {+ i = n ? Di(n, !0) : [];+ for (let e of i) Oi(e, n, {+ block: "center",+ inline: "center"+ });+ for (let t of Di(e, !0)) Oi(t, e);+ }+ }+ }+}+//#endregion+//#region node_modules/react-aria/dist/private/utils/useDescription.mjs+var ji = 0, Mi = /* @__PURE__ */ new Map();+function Ni(e) {+ let [t, n] = (0, C.useState)();+ return B(() => {+ if (!e) return;+ let t = Mi.get(e);+ if (t) n(t.element.id);+ else {+ let r = `react-aria-description-${ji++}`;+ 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+ }, Mi.set(e, t);+ }+ return t.refCount++, () => {+ t && --t.refCount === 0 && (t.element.remove(), Mi.delete(e));+ };+ }, [e]), { "aria-describedby": e ? t : void 0 };+}+//#endregion+//#region node_modules/react-aria/dist/private/utils/useFormReset.mjs+function Pi(e, t, n) {+ let r = Vn((e) => {+ n && !e.defaultPrevented && n(t);+ });+ (0, C.useEffect)(() => {+ let t = e?.current?.form;+ return t?.addEventListener("reset", r), () => {+ t?.removeEventListener("reset", r);+ };+ }, [e]);+}+//#endregion+//#region node_modules/react-aria/dist/private/form/useFormValidation.mjs+function Fi(e, t, n) {+ let { validationBehavior: r, focus: i } = e;+ B(() => {+ 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(Li(n.current));+ }+ });+ let a = (0, C.useRef)(!1), o = Vn(() => {+ a.current || t.resetValidation();+ }), s = Vn((e) => {+ t.displayValidation.isInvalid || t.commitValidation();+ let r = n?.current?.form;+ !e.defaultPrevented && n && r && Ri(r) === n.current && (i ? i() : n.current?.focus(), _t("keyboard")), e.preventDefault();+ }), c = Vn(() => {+ t.commitValidation();+ });+ (0, C.useEffect)(() => {+ let e = n?.current;+ if (!e) return;+ let t = e.form, r = t?.reset;+ return t && (t.reset = () => {+ a.current = !window.event || window.event.type === "message" && L(window.event) instanceof MessagePort, r?.call(t), a.current = !1;+ }), e.addEventListener("invalid", s), e.addEventListener("change", c), t?.addEventListener("reset", o), () => {+ e.removeEventListener("invalid", s), e.removeEventListener("change", c), t?.removeEventListener("reset", o), t && (t.reset = r);+ };+ }, [n, r]);+}+function Ii(e) {+ let t = e.validity;+ return {+ badInput: t.badInput,+ customError: t.customError,+ patternMismatch: t.patternMismatch,+ rangeOverflow: t.rangeOverflow,+ rangeUnderflow: t.rangeUnderflow,+ stepMismatch: t.stepMismatch,+ tooLong: t.tooLong,+ tooShort: t.tooShort,+ typeMismatch: t.typeMismatch,+ valueMissing: t.valueMissing,+ valid: t.valid+ };+}+function Li(e) {+ return {+ isInvalid: !e.validity.valid,+ validationDetails: Ii(e),+ validationErrors: e.validationMessage ? [e.validationMessage] : []+ };+}+function Ri(e) {+ for (let t = 0; t < e.elements.length; t++) {+ let n = e.elements[t];+ if (n.validity?.valid === !1) return n;+ }+ return null;+}+//#endregion+//#region node_modules/react-aria/dist/private/utils/useSlot.mjs+function zi(e = !0) {+ let [t, n] = (0, C.useState)(e), r = (0, C.useRef)(!1), i = (0, C.useCallback)((e) => {+ r.current = !0, n(!!e);+ }, []);+ return B(() => {+ r.current || n(!1);+ }, []), [i, t];+}+function Bi(e = !0) {+ let t = Nt(), [n, r] = zi(e);+ return {+ id: r ? t : void 0,+ ref: n+ };+}+//#endregion+//#region node_modules/react-stately/dist/private/form/useFormValidationState.mjs+var Vi = {+ badInput: !1,+ customError: !1,+ patternMismatch: !1,+ rangeOverflow: !1,+ rangeUnderflow: !1,+ stepMismatch: !1,+ tooLong: !1,+ tooShort: !1,+ typeMismatch: !1,+ valueMissing: !1,+ valid: !0+}, Hi = {+ ...Vi,+ customError: !0,+ valid: !1+}, Ui = {+ isInvalid: !1,+ validationDetails: Vi,+ validationErrors: []+}, Wi = (0, C.createContext)({}), Gi = "__reactAriaFormValidationState";+function Ki(e) {+ if (e.__reactAriaFormValidationState) {+ let { realtimeValidation: t, displayValidation: n, updateValidation: r, resetValidation: i, commitValidation: a } = e[Gi];+ return {+ realtimeValidation: t,+ displayValidation: n,+ updateValidation: r,+ resetValidation: i,+ commitValidation: a+ };+ }+ return qi(e);+}+function qi(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: Hi+ }, l = (0, C.useMemo)(() => !o || i == null ? null : Xi(Yi(o, i)), [o, i]);+ a?.validationDetails.valid && (a = void 0);+ let u = (0, C.useContext)(Wi), d = (0, C.useMemo)(() => r ? Array.isArray(r) ? r.flatMap((e) => Ji(u[e])) : Ji(u[r]) : [], [u, r]), [f, p] = (0, C.useState)(u), [m, h] = (0, C.useState)(!1);+ u !== f && (p(u), h(!1));+ let g = (0, C.useMemo)(() => Xi(m ? [] : d), [m, d]), _ = (0, C.useRef)(Ui), [v, y] = (0, C.useState)(Ui), b = (0, C.useRef)(Ui), x = () => {+ if (!S) return;+ w(!1);+ let e = l || a || _.current;+ Zi(e, b.current) || (b.current = e, y(e));+ }, [S, w] = (0, C.useState)(!1);+ return (0, C.useEffect)(x), {+ realtimeValidation: c || g || l || a || Ui,+ displayValidation: s === "native" ? c || g || v : c || g || l || a || v,+ updateValidation(e) {+ s === "aria" && !Zi(v, e) ? y(e) : _.current = e;+ },+ resetValidation() {+ let e = Ui;+ Zi(e, b.current) || (b.current = e, y(e)), s === "native" && w(!1), h(!0);+ },+ commitValidation() {+ s === "native" && w(!0), h(!0);+ }+ };+}+function Ji(e) {+ return e ? Array.isArray(e) ? e : [e] : [];+}+function Yi(e, t) {+ if (typeof e == "function") {+ let n = e(t);+ if (n && typeof n != "boolean") return Ji(n);+ }+ return [];+}+function Xi(e) {+ return e.length ? {+ isInvalid: !0,+ validationErrors: e,+ validationDetails: Hi+ } : null;+}+function Zi(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);+}+//#endregion+//#region node_modules/react-aria/dist/private/toggle/useToggle.mjs+function Qi(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 = Ki({+ ...e,+ value: t.isSelected+ }), { isInvalid: x, validationErrors: S, validationDetails: w } = b.displayValidation;+ Fi(e, b, n);+ let T = (e) => {+ e.stopPropagation(), t.setSelected(L(e).checked);+ }, { pressProps: E, isPressed: D } = Lr({+ onPressStart: m,+ onPressEnd: h,+ onPressChange: g,+ onPress: _,+ onPressUp: v,+ onClick: y,+ isDisabled: r+ }), [O, k] = (0, C.useState)(!1), { pressProps: A } = Lr({+ onPressStart(e) {+ if (e.pointerType === "keyboard" || e.pointerType === "virtual") {+ e.continuePropagation();+ return;+ }+ m?.(e), g?.(!0), k(!0);+ },+ onPressEnd(e) {+ if (e.pointerType === "keyboard" || e.pointerType === "virtual") {+ e.continuePropagation();+ return;+ }+ h?.(e), g?.(!1), k(!1);+ },+ onPressUp(e) {+ if (e.pointerType === "keyboard" || e.pointerType === "virtual") {+ e.continuePropagation();+ return;+ }+ v?.(e);+ },+ onClick: y,+ onPress(r) {+ if (r.pointerType === "keyboard" || r.pointerType === "virtual") {+ r.continuePropagation();+ return;+ }+ _?.(r), t.toggle(), n.current?.focus();+ let { [Gi]: i } = e, { commitValidation: a } = i || b;+ a();+ },+ isDisabled: r || i+ }), { focusableProps: j } = an(e, n), M = V(E, j), N = xr(e, { labelable: !0 });+ Pi(n, t.defaultSelected, t.setSelected);+ let ee = Bi(), te = Bi();+ return {+ labelProps: V(A, { onClick: (e) => e.preventDefault() }),+ inputProps: V(N, {+ checked: t.isSelected,+ "aria-required": l && u === "aria" || void 0,+ required: l && u === "native",+ "aria-invalid": x || e.validationState === "invalid" || void 0,+ "aria-errormessage": e["aria-errormessage"],+ "aria-controls": e["aria-controls"],+ "aria-readonly": i || void 0,+ "aria-describedby": [+ ee.id,+ te.id,+ p+ ].filter(Boolean).join(" ") || void 0,+ onChange: T,+ disabled: r,+ ...a == null ? {} : { value: a },+ name: o,+ form: s,+ type: "checkbox",+ ...M+ }),+ descriptionProps: ee,+ errorMessageProps: te,+ isSelected: t.isSelected,+ isPressed: D || O,+ isDisabled: r,+ isReadOnly: i,+ isInvalid: x || e.validationState === "invalid",+ validationErrors: S,+ validationDetails: w+ };+}+//#endregion+//#region node_modules/react-aria/dist/private/checkbox/useCheckbox.mjs+function $i(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 } = Qi(e, t, n), { isIndeterminate: m } = e;+ return (0, C.useEffect)(() => {+ n.current && (n.current.indeterminate = !!m);+ }), {+ labelProps: V(r, (0, C.useMemo)(() => ({ onMouseDown: (e) => e.preventDefault() }), [])),+ inputProps: i,+ descriptionProps: a,+ errorMessageProps: o,+ isSelected: s,+ isPressed: c,+ isDisabled: l,+ isReadOnly: u,+ isInvalid: d,+ validationErrors: f,+ validationDetails: p+ };+}+//#endregion+//#region node_modules/react-aria/dist/private/checkbox/utils.mjs+var ea = /* @__PURE__ */ new WeakMap();+//#endregion+//#region node_modules/react-aria/dist/private/label/useLabel.mjs+function U(e) {+ let { id: t, label: n, "aria-labelledby": r, "aria-label": i, labelElementType: a = "label" } = e;+ t = Nt(t);+ let o = Nt(), s = {};+ n && (r = r ? `${o} ${r}` : o, s = {+ id: o,+ htmlFor: a === "label" ? t : void 0+ });+ let c = Un({+ id: t,+ "aria-label": i,+ "aria-labelledby": r+ });+ return {+ labelProps: s,+ fieldProps: c+ };+}+//#endregion+//#region node_modules/react-aria/dist/private/label/useField.mjs+function ta(e) {+ let { description: t, errorMessage: n, isInvalid: r, validationState: i } = e, { labelProps: a, fieldProps: o } = U(e), s = Ft([+ !!t,+ !!n,+ r,+ i+ ]), c = Ft([+ !!t,+ !!n,+ r,+ i+ ]);+ return o = V(o, { "aria-describedby": [+ s,+ c,+ e["aria-describedby"]+ ].filter(Boolean).join(" ") || void 0 }), {+ labelProps: a,+ fieldProps: o,+ descriptionProps: { id: s },+ errorMessageProps: { id: c }+ };+}+//#endregion+//#region node_modules/react-aria/dist/private/interactions/useFocusWithin.mjs+function na(e) {+ let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: i } = e, a = (0, C.useRef)({ isFocusWithin: !1 }), { addGlobalListener: o, removeAllGlobalListeners: s } = jr(), c = (0, C.useCallback)((e) => {+ F(e.currentTarget, L(e)) && a.current.isFocusWithin && !F(e.currentTarget, e.relatedTarget) && (a.current.isFocusWithin = !1, s(), n && n(e), i && i(!1));+ }, [+ n,+ i,+ a,+ s+ ]), l = ve(c), u = (0, C.useCallback)((e) => {+ if (!F(e.currentTarget, L(e))) return;+ let t = L(e), n = j(t), s = I(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 = L(e);+ if (a.current.isFocusWithin && !F(t, r)) {+ let e = new n.defaultView.FocusEvent("blur", { relatedTarget: r });+ _e(e, t);+ let i = ge(e);+ c(i);+ }+ }, { capture: !0 });+ }+ }, [+ r,+ i,+ l,+ o,+ c+ ]);+ return t ? { focusWithinProps: {+ onFocus: void 0,+ onBlur: void 0+ } } : { focusWithinProps: {+ onFocus: u,+ onBlur: c+ } };+}+//#endregion+//#region node_modules/react-stately/dist/private/utils/useControlledState.mjs+var ra = typeof document < "u" ? C.useInsertionEffect ?? C.useLayoutEffect : () => {};+function ia(e, t, n) {+ let [r, i] = (0, C.useState)(e || t), a = (0, C.useRef)(r), o = (0, C.useRef)(e !== void 0), s = e !== void 0;+ (0, C.useEffect)(() => {+ o.current, o.current = s;+ }, [s]);+ let c = s ? e : r;+ ra(() => {+ a.current = c;+ });+ let [, l] = (0, C.useReducer)(() => ({}), {});+ return [c, (0, C.useCallback)((e, ...t) => {+ let r = typeof e == "function" ? e(a.current) : e;+ Object.is(a.current, r) || (a.current = r, i(r), l(), n?.(r, ...t));+ }, [n])];+}+//#endregion+//#region node_modules/react-stately/dist/private/toggle/useToggleState.mjs+function aa(e = {}) {+ let { isReadOnly: t } = e, [n, r] = ia(e.isSelected, e.defaultSelected || !1, e.onChange), [i] = (0, C.useState)(n);+ function a(e) {+ t || r(e);+ }+ function o() {+ t || r(!n);+ }+ return {+ isSelected: n,+ defaultSelected: e.defaultSelected ?? i,+ setSelected: a,+ toggle: o+ };+}+//#endregion+//#region node_modules/react-aria/dist/private/checkbox/useCheckboxGroupItem.mjs+function oa(e, t, n) {+ let r = aa({+ 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 } = ea.get(t);+ c = e.validationBehavior ?? c;+ let { realtimeValidation: l } = Ki({+ ...e,+ value: r.isSelected,+ name: void 0,+ validationBehavior: "aria"+ }), u = (0, C.useRef)(Ui), d = () => {+ t.setInvalid(e.value, l.isInvalid ? l : u.current);+ };+ (0, C.useEffect)(d);+ let f = t.realtimeValidation.isInvalid ? t.realtimeValidation : l, p = c === "native" ? t.displayValidation : f, m = $i({+ ...e,+ isReadOnly: e.isReadOnly || t.isReadOnly,+ isDisabled: e.isDisabled || t.isDisabled,+ name: e.name || i,+ form: e.form || a,+ isRequired: e.isRequired ?? t.isRequired,+ validationBehavior: c,+ [Gi]: {+ realtimeValidation: f,+ displayValidation: p,+ resetValidation: t.resetValidation,+ commitValidation: t.commitValidation,+ updateValidation(e) {+ u.current = e, d();+ }+ }+ }, r, n);+ return {+ ...m,+ inputProps: {+ ...m.inputProps,+ "aria-describedby": [+ m.inputProps["aria-describedby"],+ t.isInvalid ? s : null,+ o+ ].filter(Boolean).join(" ") || void 0+ }+ };+}+//#endregion+//#region node_modules/react-stately/dist/private/utils/number.mjs+function sa(e, t = -Infinity, n = Infinity) {+ return Math.min(Math.max(e, t), n);+}+//#endregion+//#region node_modules/react-aria/dist/private/visually-hidden/VisuallyHidden.mjs+var ca = {+ border: 0,+ clip: "rect(0 0 0 0)",+ clipPath: "inset(50%)",+ height: "1px",+ margin: "-1px",+ overflow: "hidden",+ padding: 0,+ position: "absolute",+ width: "1px",+ whiteSpace: "nowrap"+};+function la(e = {}) {+ let { style: t, isFocusable: n } = e, [r, i] = (0, C.useState)(!1), { focusWithinProps: a } = na({+ isDisabled: !n,+ onFocusWithinChange: (e) => i(e)+ }), o = (0, C.useMemo)(() => r ? t : t ? {+ ...ca,+ ...t+ } : ca, [r]);+ return { visuallyHiddenProps: {+ ...a,+ style: o+ } };+}+function ua(e) {+ let { children: t, elementType: n = "div", isFocusable: r, style: i, ...a } = e, { visuallyHiddenProps: o } = la(e);+ return /*#__PURE__*/ C.createElement(n, V(a, o), t);+}+//#endregion+//#region node_modules/react-aria/dist/private/textfield/useTextField.mjs+function da(e, t) {+ let { inputElementType: n = "input", isDisabled: r = !1, isRequired: i = !1, isReadOnly: a = !1, type: o = "text", validationBehavior: s = "aria" } = e, [c, l] = ia(e.value, e.defaultValue || "", e.onChange), { focusableProps: u } = an(e, t), d = Ki({+ ...e,+ value: c+ }), { isInvalid: f, validationErrors: p, validationDetails: m } = d.displayValidation, { labelProps: h, fieldProps: g, descriptionProps: _, errorMessageProps: v } = ta({+ ...e,+ isInvalid: f,+ errorMessage: e.errorMessage || p+ }), y = xr(e, { labelable: !0 }), b = {+ type: o,+ pattern: e.pattern+ }, [x] = (0, C.useState)(c);+ return Pi(t, e.defaultValue ?? x, l), Fi(e, d, t), {+ labelProps: h,+ inputProps: V(y, n === "input" ? b : void 0, {+ disabled: r,+ readOnly: a,+ required: i && s === "native",+ "aria-required": i && s === "aria" || void 0,+ "aria-invalid": f || void 0,+ "aria-errormessage": e["aria-errormessage"],+ "aria-activedescendant": e["aria-activedescendant"],+ "aria-autocomplete": e["aria-autocomplete"],+ "aria-haspopup": e["aria-haspopup"],+ "aria-controls": e["aria-controls"],+ value: c,+ onChange: (e) => l(L(e).value),+ autoComplete: e.autoComplete,+ autoCapitalize: e.autoCapitalize,+ maxLength: e.maxLength,+ minLength: e.minLength,+ name: e.name,+ form: e.form,+ placeholder: e.placeholder,+ inputMode: e.inputMode,+ autoCorrect: e.autoCorrect,+ spellCheck: e.spellCheck,+ enterKeyHint: e.enterKeyHint,+ onCopy: e.onCopy,+ onCut: e.onCut,+ onPaste: e.onPaste,+ onCompositionEnd: e.onCompositionEnd,+ onCompositionStart: e.onCompositionStart,+ onCompositionUpdate: e.onCompositionUpdate,+ onSelect: e.onSelect,+ onBeforeInput: e.onBeforeInput,+ onInput: e.onInput,+ ...u,+ ...g+ }),+ descriptionProps: _,+ errorMessageProps: v,+ isInvalid: f,+ validationErrors: p,+ validationDetails: m+ };+}+//#endregion+//#region node_modules/react-aria/dist/private/overlays/ariaHideOutside.mjs+var fa = typeof HTMLElement < "u" && "inert" in HTMLElement.prototype;+function pa(e) {+ return e.dataset.liveAnnouncer === "true" || e.dataset.reactAriaTopLayer !== void 0;+}+var ma = /* @__PURE__ */ new WeakMap(), ha = [];+function ga(e, t) {+ let n = M(e?.[0]), r = t instanceof n.Element ? { root: t } : t, i = r?.root ?? document.body, a = r?.shouldUseInert && fa, 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 (ae()) {+ let t = i.getRootNode();+ for (let n of e) {+ let e = n.getRootNode();+ for (; P(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 (F(e, t)) return NodeFilter.FILTER_SKIP;+ return NodeFilter.FILTER_ACCEPT;+ }, n = qr(j(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 = ma.get(e) ?? 0;+ c(e) && t === 0 || (t === 0 && l(e, !0), s.add(e), ma.set(e, t + 1));+ };+ ha.length && ha[ha.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) => F(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && pa(e) ? o.add(e) : e instanceof Element && d(e);+ if (ae()) {+ for (let e of u) if (!e.isConnected) {+ p.disconnect();+ break;+ }+ }+ }+ });+ p.observe(i, {+ childList: !0,+ subtree: !0+ });+ let m = /* @__PURE__ */ new Set();+ if (ae()) 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) => F(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && pa(e) ? o.add(e) : e instanceof Element && d(e);+ if (ae()) {+ for (let e of u) if (!e.isConnected) {+ p.disconnect();+ break;+ }+ }+ }+ });+ t.observe(e, {+ childList: !0,+ subtree: !0+ }), m.add(t);+ }+ let h = {+ visibleNodes: o,+ hiddenNodes: s,+ observe() {+ p.observe(i, {+ childList: !0,+ subtree: !0+ });+ },+ disconnect() {+ p.disconnect();+ }+ };+ return ha.push(h), () => {+ if (p.disconnect(), ae()) for (let e of m) e.disconnect();+ for (let e of s) {+ let t = ma.get(e);+ t != null && (t === 1 ? (l(e, !1), ma.delete(e)) : ma.set(e, t - 1));+ }+ h === ha[ha.length - 1] ? (ha.pop(), ha.length && ha[ha.length - 1].observe()) : ha.splice(ha.indexOf(h), 1);+ };+}+function _a(e) {+ let t = ha[ha.length - 1];+ if (t && !t.visibleNodes.has(e)) return t.visibleNodes.add(e), () => {+ t.visibleNodes.delete(e);+ };+}+//#endregion+//#region node_modules/react-aria/dist/private/listbox/utils.mjs+var va = /* @__PURE__ */ new WeakMap();+function ya(e) {+ return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;+}+function ba(e, t) {+ let n = va.get(e);+ if (!n) throw Error("Unknown list");+ return `${n.id}-option-${ya(t)}`;+}+//#endregion+//#region node_modules/react-aria/dist/private/selection/utils.mjs+function xa(e) {+ return Oe() ? e.altKey : e.ctrlKey;+}+function Sa(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 Ca = /* @__PURE__ */ new WeakMap();+function wa(e) {+ let t = Nt();+ return Ca.set(e, t), t;+}+function Ta(e) {+ return Ca.get(e);+}+//#endregion+//#region node_modules/react-aria/dist/private/selection/DOMLayoutDelegate.mjs+var Ea = class {+ constructor(e) {+ this.ref = e;+ }+ getItemRect(e) {+ let t = this.ref.current;+ if (!t) return null;+ let n = e == null ? null : Sa(this.ref, e);+ if (!n) return null;+ let r = t.getBoundingClientRect(), i = n.getBoundingClientRect();+ return {+ x: i.left - r.left - t.clientLeft + t.scrollLeft,+ y: i.top - r.top - t.clientTop + t.scrollTop,+ width: i.width,+ height: i.height+ };+ }+ getContentSize() {+ let e = this.ref.current;+ return {+ width: e?.scrollWidth ?? 0,+ height: e?.scrollHeight ?? 0+ };+ }+ getVisibleRect() {+ let e = this.ref.current;+ return {+ x: e?.scrollLeft ?? 0,+ y: e?.scrollTop ?? 0,+ width: e?.clientWidth ?? 0,+ height: e?.clientHeight ?? 0+ };+ }+}, Da = 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 Ea(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 Ea(this.ref);+ this.layout === "stack" && this.orientation === "vertical" && (this.getKeyLeftOf = void 0, this.getKeyRightOf = void 0);+ }+ isDisabled(e) {+ return this.disabledBehavior === "all" && (e.props?.isDisabled || this.disabledKeys.has(e.key)) && e.props?.disabledBehavior !== "selection";+ }+ findNextNonDisabled(e, t, n = !1) {+ let r = e;+ for (; r != null;) {+ let e = this.collection.getItem(r);+ if (e?.type === "item" && (n || !this.isDisabled(e))) return r;+ r = t(r);+ }+ return null;+ }+ getNextKey(e, t) {+ let n = e;+ return n = this.collection.getKeyAfter(n), this.findNextNonDisabled(n, (e) => this.collection.getKeyAfter(e), t?.includeDisabled);+ }+ getPreviousKey(e, t) {+ let n = e;+ return n = this.collection.getKeyBefore(n), this.findNextNonDisabled(n, (e) => this.collection.getKeyBefore(e), t?.includeDisabled);+ }+ findKey(e, t, n) {+ let r = e, i = this.layoutDelegate.getItemRect(r);+ if (!i || r == null) return null;+ let a = i;+ do {+ if (r = t(r), r == null) break;+ i = this.layoutDelegate.getItemRect(r);+ } while (i && n(a, i) && r != null);+ return r;+ }+ isSameRow(e, t) {+ return e.y === t.y || e.x !== t.x;+ }+ isSameColumn(e, t) {+ return e.x === t.x || e.y !== t.y;+ }+ isReversed(e) {+ let t = this.getNextKey(e), n = Sa(this.ref, e);+ if (t != null) {+ let e = Sa(this.ref, t);+ return !n || !e ? !1 : n.getBoundingClientRect().top > e.getBoundingClientRect().top;+ }+ let r = this.getPreviousKey(e);+ if (r != null) {+ let e = Sa(this.ref, r);+ return !n || !e ? !1 : e.getBoundingClientRect().top > n.getBoundingClientRect().top;+ }+ return !1;+ }+ getKeyBelow(e, t) {+ return this.layout === "grid" && this.orientation === "vertical" ? this.findKey(e, (e) => this.getNextKey(e, t), this.isSameRow) : this.orientation === "vertical" && this.isReversed(e) ? this.getPreviousKey(e, t) : this.getNextKey(e, t);+ }+ getKeyAbove(e, t) {+ return this.layout === "grid" && this.orientation === "vertical" ? this.findKey(e, (e) => this.getPreviousKey(e, t), this.isSameRow) : this.orientation === "vertical" && this.isReversed(e) ? this.getNextKey(e, t) : this.getPreviousKey(e, t);+ }+ getNextColumn(e, t, n) {+ return t ? this.getPreviousKey(e, n) : this.getNextKey(e, n);+ }+ getKeyRightOf(e, t) {+ let n = this.direction === "ltr" ? "getKeyRightOf" : "getKeyLeftOf";+ return this.layoutDelegate[n] ? (e = this.layoutDelegate[n](e), this.findNextNonDisabled(e, (e) => this.layoutDelegate[n](e), t?.includeDisabled)) : this.layout === "grid" ? this.orientation === "vertical" ? this.getNextColumn(e, this.direction === "rtl", t) : this.findKey(e, (e) => this.getNextColumn(e, this.direction === "rtl", t), this.isSameColumn) : this.orientation === "horizontal" ? this.getNextColumn(e, this.direction === "rtl", t) : null;+ }+ getKeyLeftOf(e, t) {+ let n = this.direction === "ltr" ? "getKeyLeftOf" : "getKeyRightOf";+ return this.layoutDelegate[n] ? (e = this.layoutDelegate[n](e), this.findNextNonDisabled(e, (e) => this.layoutDelegate[n](e), t?.includeDisabled)) : this.layout === "grid" ? this.orientation === "vertical" ? this.getNextColumn(e, this.direction === "ltr", t) : this.findKey(e, (e) => this.getNextColumn(e, this.direction === "ltr", t), this.isSameColumn) : this.orientation === "horizontal" ? this.getNextColumn(e, this.direction === "ltr", t) : null;+ }+ getFirstKey() {+ let e = this.collection.getFirstKey();+ return this.findNextNonDisabled(e, (e) => this.collection.getKeyAfter(e));+ }+ getLastKey() {+ let e = this.collection.getLastKey();+ return this.findNextNonDisabled(e, (e) => this.collection.getKeyBefore(e));+ }+ getKeyPageAbove(e) {+ let t = this.ref.current, n = this.layoutDelegate.getItemRect(e);+ if (!n) return null;+ let r = this.isReversed(e);+ if (t && !Ti(t)) return this.getFirstKey();+ let i = e;+ if (this.orientation === "horizontal") {+ let e = Math.max(0, n.x + n.width - this.layoutDelegate.getVisibleRect().width);+ for (; n && n.x > e && i != null;) i = this.getKeyAbove(i), n = i == null ? null : this.layoutDelegate.getItemRect(i);+ } else {+ let e = this.layoutDelegate.getVisibleRect(), t = r ? n.y - e.height : Math.max(0, n.y + n.height - e.height);+ for (; n && n.y > t && i != null;) i = this.getKeyAbove(i), n = i == null ? null : this.layoutDelegate.getItemRect(i);+ }+ return i ?? (r ? this.getLastKey() : this.getFirstKey());+ }+ getKeyPageBelow(e) {+ let t = this.ref.current, n = this.layoutDelegate.getItemRect(e);+ if (!n) return null;+ let r = this.isReversed(e);+ if (t && !Ti(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);+ for (; n && n.x < e && i != null;) i = this.getKeyBelow(i), n = i == null ? null : this.layoutDelegate.getItemRect(i);+ } else {+ let e = Math.min(this.layoutDelegate.getContentSize().height, n.y - n.height + this.layoutDelegate.getVisibleRect().height);+ for (; n && n.y < e && i != null;) i = this.getKeyBelow(i), n = i == null ? null : this.layoutDelegate.getItemRect(i);+ }+ return i ?? (r ? this.getFirstKey() : this.getLastKey());+ }+ getKeyForSearch(e, t) {+ if (!this.collator) return null;+ let n = this.collection, r = t || this.getFirstKey();+ for (; r != null;) {+ let t = n.getItem(r);+ if (!t) return null;+ let i = t.textValue.slice(0, e.length);+ if (t.textValue && this.collator.compare(i, e) === 0) return r;+ r = this.getNextKey(r);+ }+ return null;+ }+}, Oa = {};+Oa = { longPressMessage: "اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة" };+//#endregion+//#region node_modules/react-aria/dist/private/intl/menu/bg-BG.mjs+var ka = {};+ka = { longPressMessage: "Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто" };+//#endregion+//#region node_modules/react-aria/dist/private/intl/menu/cs-CZ.mjs+var Aa = {};+Aa = { longPressMessage: "Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku" };+//#endregion+//#region node_modules/react-aria/dist/private/intl/menu/da-DK.mjs+var ja = {};+ja = { longPressMessage: "Langt tryk eller tryk på Alt + pil ned for at åbne menuen" };+//#endregion+//#region node_modules/react-aria/dist/private/intl/menu/de-DE.mjs+var Ma = {};+Ma = { longPressMessage: "Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen" };+//#endregion+//#region node_modules/react-aria/dist/private/intl/menu/el-GR.mjs+var Na = {};+Na = { longPressMessage: "Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού" };+//#endregion+//#region node_modules/react-aria/dist/private/intl/menu/en-US.mjs+var Pa = {};+Pa = { longPressMessage: "Long press or press Alt + ArrowDown to open menu" };+//#endregion+//#region node_modules/react-aria/dist/private/intl/menu/es-ES.mjs+var Fa = {};+Fa = { longPressMessage: "Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú" };+//#endregion+//#region node_modules/react-aria/dist/private/intl/menu/et-EE.mjs+var Ia = {};+Ia = { longPressMessage: "Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool" };+//#endregion+//#region node_modules/react-aria/dist/private/intl/menu/fi-FI.mjs+var La = {};+La = { longPressMessage: "Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli" };+//#endregion+//#region node_modules/react-aria/dist/private/intl/menu/fr-FR.mjs+var Ra = {};+Ra = { longPressMessage: "Appuyez de manière prolongée ou appuyez sur Alt\xA0+\xA0Flèche vers le bas pour ouvrir le menu." };+//#endregion+//#region node_modules/react-aria/dist/private/intl/menu/he-IL.mjs+var za = {};+za = { longPressMessage: "לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט" };+//#endregion+//#region node_modules/react-aria/dist/private/intl/menu/hr-HR.mjs+var Ba = {};+Ba = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika" };+//#endregion+//#region node_modules/react-aria/dist/private/intl/menu/hu-HU.mjs+var Va = {};+Va = { longPressMessage: "Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához" };+//#endregion+//#region node_modules/react-aria/dist/private/intl/menu/it-IT.mjs+var Ha = {};+Ha = { longPressMessage: "Premi a lungo o premi Alt + Freccia giù per aprire il menu" };+//#endregion+//#region node_modules/react-aria/dist/private/intl/menu/ja-JP.mjs+var Ua = {};+Ua = { longPressMessage: "長押しまたは Alt+下矢印キーでメニューを開く" };+//#endregion+//#region node_modules/react-aria/dist/private/intl/menu/ko-KR.mjs+var Wa = {};+Wa = { longPressMessage: "길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기" };+//#endregion+//#region node_modules/react-aria/dist/private/intl/menu/lt-LT.mjs+var Ga = {};+Ga = { longPressMessage: "Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“." };+//#endregion+//#region node_modules/react-aria/dist/private/intl/menu/lv-LV.mjs+var Ka = {};+Ka = { longPressMessage: "Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa" };+//#endregion+//#region node_modules/react-aria/dist/private/intl/menu/nb-NO.mjs+var qa = {};+qa = { longPressMessage: "Langt trykk eller trykk Alt + PilNed for å åpne menyen" };+//#endregion+//#region node_modules/react-aria/dist/private/intl/menu/nl-NL.mjs+var Ja = {};+Ja = { longPressMessage: "Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen" };+//#endregion+//#region node_modules/react-aria/dist/private/intl/menu/pl-PL.mjs+var Ya = {};+Ya = { longPressMessage: "Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu" };+//#endregion+//#region node_modules/react-aria/dist/private/intl/menu/pt-BR.mjs+var Xa = {};+Xa = { longPressMessage: "Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu" };+//#endregion+//#region node_modules/react-aria/dist/private/intl/menu/pt-PT.mjs+var Za = {};+Za = { longPressMessage: "Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu" };+//#endregion+//#region node_modules/react-aria/dist/private/intl/menu/ro-RO.mjs+var Qa = {};+Qa = { longPressMessage: "Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul" };+//#endregion+//#region node_modules/react-aria/dist/private/intl/menu/ru-RU.mjs+var $a = {};+$a = { longPressMessage: "Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню" };+//#endregion+//#region node_modules/react-aria/dist/private/intl/menu/sk-SK.mjs+var eo = {};+eo = { longPressMessage: "Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol" };+//#endregion+//#region node_modules/react-aria/dist/private/intl/menu/sl-SI.mjs+var to = {};+to = { longPressMessage: "Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol" };+//#endregion+//#region node_modules/react-aria/dist/private/intl/menu/sr-SP.mjs+var no = {};+no = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni" };+//#endregion+//#region node_modules/react-aria/dist/private/intl/menu/sv-SE.mjs+var ro = {};+ro = { longPressMessage: "Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn" };+//#endregion+//#region node_modules/react-aria/dist/private/intl/menu/tr-TR.mjs+var io = {};+io = { longPressMessage: "Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın" };+//#endregion+//#region node_modules/react-aria/dist/private/intl/menu/uk-UA.mjs+var ao = {};+ao = { longPressMessage: "Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню" };+//#endregion+//#region node_modules/react-aria/dist/private/intl/menu/zh-CN.mjs+var oo = {};+oo = { longPressMessage: "长按或按 Alt + 向下方向键以打开菜单" };+//#endregion+//#region node_modules/react-aria/dist/private/intl/menu/zh-TW.mjs+var so = {};+so = { longPressMessage: "長按或按 Alt+向下鍵以開啟功能表" };+//#endregion+//#region node_modules/react-aria/dist/private/menu/intlStrings.mjs+var co = {};+co = {+ "ar-AE": Oa,+ "bg-BG": ka,+ "cs-CZ": Aa,+ "da-DK": ja,+ "de-DE": Ma,+ "el-GR": Na,+ "en-US": Pa,+ "es-ES": Fa,+ "et-EE": Ia,+ "fi-FI": La,+ "fr-FR": Ra,+ "he-IL": za,+ "hr-HR": Ba,+ "hu-HU": Va,+ "it-IT": Ha,+ "ja-JP": Ua,+ "ko-KR": Wa,+ "lt-LT": Ga,+ "lv-LV": Ka,+ "nb-NO": qa,+ "nl-NL": Ja,+ "pl-PL": Ya,+ "pt-BR": Xa,+ "pt-PT": Za,+ "ro-RO": Qa,+ "ru-RU": $a,+ "sk-SK": eo,+ "sl-SI": to,+ "sr-SP": no,+ "sv-SE": ro,+ "tr-TR": io,+ "uk-UA": ao,+ "zh-CN": oo,+ "zh-TW": so+};+//#endregion+//#region node_modules/react-aria/dist/private/interactions/useLongPress.mjs+var lo = 500;+function uo(e) {+ let { isDisabled: t, pointerType: n, onLongPressStart: r, onLongPressEnd: i, onLongPress: a, threshold: o = lo, accessibilityDescription: s } = e, c = (0, C.useRef)(void 0), { addGlobalListener: l, removeAllGlobalListeners: u } = jr(), d = (e) => n ? e.pointerType === n : e.pointerType === "mouse" || e.pointerType === "touch", { pressProps: f } = Lr({+ isDisabled: t,+ onPressStart(e) {+ if (e.continuePropagation(), d(e)) {+ r && r({+ ...e,+ type: "longpressstart"+ }), c.current = setTimeout(() => {+ e.target.dispatchEvent(new PointerEvent("pointercancel", { bubbles: !0 })), l(e.target, "click", (e) => e.preventDefault(), { once: !0 }), j(e.target).activeElement !== e.target && E(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 = M(e.target);+ l(t, "pointerup", () => {+ setTimeout(() => {+ u();+ }, 100);+ }, { once: !0 });+ }+ },+ onPressEnd(e) {+ c.current && clearTimeout(c.current), i && d(e) && i({+ ...e,+ type: "longpressend"+ });+ }+ });+ return { longPressProps: V(f, Ni(a && !t ? s : void 0)) };+}+//#endregion+//#region node_modules/react-aria/dist/private/interactions/useContextMenu.mjs+function fo(e) {+ let { onContextMenu: t } = e, n = (0, C.useRef)(!1), { longPressProps: r } = uo({+ onLongPressStart() {+ n.current = !1;+ },+ onLongPress(e) {+ n.current ? n.current = !1 : t?.({+ target: e.target,+ x: e.x,+ y: e.y+ });+ }+ });+ return t ? { contextMenuProps: V(De() ? r : {}, {+ onContextMenu(e) {+ e.stopPropagation(), e.preventDefault(), n.current = !0;+ let r = e.currentTarget.getBoundingClientRect();+ t({+ target: e.currentTarget,+ x: e.clientX - r.x,+ y: e.clientY - r.y+ });+ },+ onKeyDown(e) {+ if (we() && e.ctrlKey && e.key === "Enter") {+ n.current = !1;+ let r = e.currentTarget;+ e.stopPropagation(), setTimeout(() => {+ if (n.current) n.current = !1;+ else {+ let e = r.getBoundingClientRect();+ t({+ target: r,+ x: e.width / 2,+ y: e.height / 2+ });+ }+ }, 10);+ }+ }+ }) } : { contextMenuProps: {} };+}+//#endregion+//#region node_modules/react-aria/dist/private/overlays/useCloseOnScroll.mjs+var po = /* @__PURE__ */ new WeakMap();+function mo(e) {+ let { triggerRef: t, isOpen: n, onClose: r } = e;+ (0, C.useEffect)(() => !n || r === null ? void 0 : ne(oe(t.current), "scroll", (e) => {+ let n = L(e);+ if (!t.current || n instanceof Node && !F(n, t.current) || n instanceof HTMLInputElement || n instanceof HTMLTextAreaElement) return;+ let i = r || po.get(t.current);+ i && i();+ }, !0), [+ n,+ r,+ t+ ]);+}+//#endregion+//#region node_modules/react-aria/dist/private/overlays/useOverlayTrigger.mjs+function ho(e, t, n) {+ let { type: r } = e, { isOpen: i } = t;+ (0, C.useEffect)(() => {+ n && n.current && po.set(n.current, t.close);+ });+ let a;+ r === "menu" ? a = !0 : r === "listbox" && (a = "listbox");+ let o = Nt();+ return {+ triggerProps: {+ "aria-haspopup": a,+ "aria-expanded": i,+ "aria-controls": i ? o : void 0,+ onPress: t.toggle+ },+ overlayProps: { id: o }+ };+}+//#endregion+//#region node_modules/react-aria/dist/private/menu/useMenuTrigger.mjs+function go(e) {+ return e && e.__esModule ? e.default : e;+}+function _o(e, t, n) {+ let { type: r = "menu", isDisabled: i, trigger: a = "press" } = e, o = Nt(), { triggerProps: s, overlayProps: c } = ho({ type: r }, t, n), l = (e, n, r = "first") => {+ if (!e || n.isDefaultPrevented()) return !1;+ t.toggle(r);+ }, { keyboardProps: u } = $t({+ isDisabled: i,+ shortcuts: {+ Enter: (e) => l(a !== "longPress", e, "first"),+ " ": (e) => l(a !== "longPress", e, "first"),+ ArrowDown: (e) => l(a !== "longPress", e, "first"),+ ArrowUp: (e) => l(a !== "longPress", e, "last"),+ "Alt+Enter": (e) => l(a === "longPress", e, "first"),+ "Alt+ ": (e) => l(a === "longPress", e, "first"),+ "Alt+ArrowDown": (e) => l(!0, e, "first"),+ "Alt+ArrowUp": (e) => l(!0, e, "last")+ }+ }), d = mr(go(co), "@react-aria/menu"), { longPressProps: f } = uo({+ isDisabled: i || a !== "longPress",+ accessibilityDescription: d.format("longPressMessage"),+ onLongPressStart() {+ t.close();+ },+ onLongPress() {+ t.open("first");+ }+ }), p = {+ preventFocusOnPress: !0,+ onPressStart(e) {+ e.pointerType !== "touch" && e.pointerType !== "keyboard" && !i && (E(e.target), t.open(e.pointerType === "virtual" ? "first" : null));+ },+ onPress(e) {+ e.pointerType === "touch" && !i && (E(e.target), t.toggle());+ }+ };+ delete s.onPress;+ let { contextMenuProps: m } = fo({ onContextMenu(e) {+ let n = e.target.getBoundingClientRect();+ t.setPoint({+ x: n.x + e.x,+ y: n.y + e.y+ }), t.open();+ } });+ (0, C.useEffect)(() => {+ if (t.isOpen && a === "contextMenu") {+ let e = (e) => {+ (e.button === 2 || e.button === 0 && e.ctrlKey === !0) && L(e) === document.body && t.close();+ };+ return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);+ }+ }, [t, a]);+ let h;+ if (a === "press") h = {+ ...p,+ ...u+ };+ else if (a === "longPress") h = {+ ...f,+ ...u+ };+ else if (a === "contextMenu") {+ h = m;+ let { "aria-haspopup": e, "aria-expanded": t, "aria-controls": n, ...r } = s;+ s = r;+ }+ return {+ menuTriggerProps: {+ ...s,+ ...h,+ id: o+ },+ menuProps: {+ ...c,+ "aria-labelledby": o,+ autoFocus: t.focusStrategy || !0,+ onClose: t.close+ }+ };+}+//#endregion+//#region node_modules/react-aria/dist/private/selection/useTypeSelect.mjs+var vo = 1e3;+function yo(e) {+ let { keyboardDelegate: t, selectionManager: n, onTypeSelect: r } = e, i = (0, C.useRef)({+ search: "",+ timeout: void 0+ });+ return (0, C.useEffect)(() => {+ let e = i.current.timeout;+ return () => {+ clearTimeout(e);+ };+ }, [i]), { typeSelectProps: {+ onKeyDownCapture: t.getKeyForSearch ? (e) => {+ if (i.current.search.length > 0 && e.key === " ") {+ if (e.preventDefault(), (!("continuePropagation" in e) || "continuePropagation" in e && !e.isPropagationStopped()) && e.stopPropagation(), i.current.search += " ", t.getKeyForSearch != null) {+ let e = t.getKeyForSearch(i.current.search, n.focusedKey);+ e ??= t.getKeyForSearch(i.current.search), e != null && (n.setFocusedKey(e), r && r(e));+ }+ clearTimeout(i.current.timeout), i.current.timeout = setTimeout(() => {+ i.current.search = "";+ }, vo);+ }+ } : void 0,+ onKeyDown: t.getKeyForSearch ? (e) => {+ let a = bo(e.key);+ if (!(!a || e.ctrlKey || e.metaKey || e.altKey || !F(e.currentTarget, L(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();+ else {+ i.current.search = "", clearTimeout(i.current.timeout), i.current.timeout = void 0;+ return;+ }+ }+ clearTimeout(i.current.timeout), i.current.timeout = setTimeout(() => {+ i.current.search = "";+ }, vo);+ }+ } : void 0+ } };+}+function bo(e) {+ return e.length === 1 || !/^[A-Z]/i.test(e) ? e : "";+}+//#endregion+//#region node_modules/react-aria/dist/private/utils/useUpdateLayoutEffect.mjs+function xo(e, t) {+ let n = (0, C.useRef)(!0), r = (0, C.useRef)(null);+ B(() => (n.current = !0, () => {+ n.current = !1;+ }), []), B(() => {+ n.current ? n.current = !1 : (!r.current || t.some((e, t) => !Object.is(e, r[t]))) && e(), r.current = t;+ }, t);+}+//#endregion+//#region node_modules/react-aria/dist/private/selection/useSelectableCollection.mjs+function So(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 } = er(), _ = Ie(), v = (e, n, i) => {+ if (n != null) {+ if (t.isLink(n) && m === "selection" && l && !xa(e)) {+ (0, mn.flushSync)(() => {+ t.setFocusedKey(n, i);+ });+ let a = Sa(r, n), o = t.getItemProps(n);+ if (a) {+ _.open(a, e, o.href, o.routerOptions);+ return;+ }+ return !1;+ }+ if (t.setFocusedKey(n, i), t.isLink(n) && m === "override") return !1;+ if (e.shiftKey && t.selectionMode === "multiple") {+ t.extendSelection(n);+ return;+ }+ if (l && !xa(e)) {+ t.replaceSelection(n);+ return;+ }+ }+ return !1;+ }, y = (e) => {+ if (n.getKeyBelow) {+ let r = t.focusedKey == null ? n.getFirstKey?.() : n.getKeyBelow?.(t.focusedKey);+ if (r == null && a && (r = n.getFirstKey?.(t.focusedKey)), r != null) {+ v(e, r);+ return;+ }+ }+ return !1;+ }, b = (e) => {+ if (n.getKeyAbove) {+ let r = t.focusedKey == null ? n.getLastKey?.() : n.getKeyAbove?.(t.focusedKey);+ if (r == null && a && (r = n.getLastKey?.(t.focusedKey)), r != null) {+ v(e, r);+ return;+ }+ }+ return !1;+ }, x = (e) => {+ if (n.getFirstKey) {+ if (t.focusedKey === null && e.shiftKey) return !1;+ let r = n.getFirstKey(t.focusedKey, Ln(e));+ if (t.setFocusedKey(r), r != null) {+ if (Ln(e) && e.shiftKey && t.selectionMode === "multiple") {+ t.extendSelection(r);+ return;+ }+ if (l) {+ t.replaceSelection(r);+ return;+ }+ }+ }+ return !1;+ }, S = (e) => {+ if (n.getKeyLeftOf) {+ let r = t.focusedKey == null ? n.getFirstKey?.() : n.getKeyLeftOf?.(t.focusedKey);+ if (r == null && a && (r = g === "rtl" ? n.getFirstKey?.(t.focusedKey) : n.getLastKey?.(t.focusedKey)), r != null) {+ v(e, r, g === "rtl" ? "first" : "last");+ return;+ }+ }+ return !1;+ }, w = (e) => {+ if (n.getKeyRightOf) {+ let r = t.focusedKey == null ? n.getFirstKey?.() : n.getKeyRightOf?.(t.focusedKey);+ if (r == null && a && (r = g === "rtl" ? n.getLastKey?.(t.focusedKey) : n.getFirstKey?.(t.focusedKey)), r != null) {+ v(e, r, g === "rtl" ? "last" : "first");+ return;+ }+ }+ return !1;+ }, T = (e) => {+ if (n.getLastKey) {+ if (t.focusedKey === null && e.shiftKey) return !1;+ let r = n.getLastKey(t.focusedKey, Ln(e));+ if (t.setFocusedKey(r), r != null) {+ if (Ln(e) && e.shiftKey && t.selectionMode === "multiple") {+ t.extendSelection(r);+ return;+ }+ if (l) {+ t.replaceSelection(r);+ return;+ }+ }+ }+ return !1;+ }, D = (e) => {+ if (n.getKeyPageBelow && t.focusedKey != null) {+ let r = n.getKeyPageBelow(t.focusedKey);+ if (r != null) return v(e, r);+ }+ return !1;+ }, O = (e) => {+ if (n.getKeyPageAbove && t.focusedKey != null) {+ let r = n.getKeyPageAbove(t.focusedKey);+ if (r != null) return v(e, r);+ }+ return !1;+ }, k = () => {+ if (t.selectionMode === "multiple" && s !== !0) {+ t.selectAll();+ return;+ }+ return !1;+ }, A = () => {+ if (c === "clearSelection" && !o && t.selectedKeys.size !== 0) {+ t.clearSelection();+ return;+ }+ return !1;+ }, j = () => {+ if (!f && r.current) {+ let e = _i(r.current, { tabbable: !0 }), t, n;+ do+ n = e.lastChild(), n && (t = n);+ while (n);+ let i = I();+ t && (!se(t) || i && !me(i)) && E(t);+ }+ return {+ shouldContinuePropagation: !0,+ shouldPreventDefault: !1+ };+ }, M = () => (!f && r.current && r.current.focus(), {+ shouldContinuePropagation: !0,+ shouldPreventDefault: !1+ }), N = (e, t) => ({+ [we() ? e + "+Shift+Alt" : e + "+Shift+Control"]: t,+ [e + "+Shift"]: t,+ [we() ? e + "+Alt" : e + "+Control"]: t,+ [e]: t+ }), { keyboardProps: ee } = $t({+ shortcuts: {+ ...N("ArrowDown", y),+ ...N("ArrowUp", b),+ ...N("ArrowLeft", S),+ ...N("ArrowRight", w),+ ...N("PageDown", D),+ ...N("PageUp", O)+ },+ allowRepeats: !0+ }), { keyboardProps: te } = $t({ shortcuts: {+ ...N("Home", x),+ ...N("End", T),+ "Mod+A": k,+ Escape: A,+ Tab: j,+ "Tab+Shift": M+ } }), P = (0, C.useRef)({+ top: 0,+ left: 0+ });+ Hn(p, "scroll", () => {+ P.current = {+ top: p.current?.scrollTop ?? 0,+ left: p.current?.scrollLeft ?? 0+ };+ });+ let ne = (e) => {+ if (t.isFocused) {+ F(e.currentTarget, L(e)) || t.setFocused(!1);+ return;+ }+ if (!F(e.currentTarget, L(e))) return;+ let i = gt();+ t.setFocused(!0);+ let a = (e) => {+ e != null && (t.setFocusedKey(e), l && !t.isSelected(e) && t.replaceSelection(e));+ };+ if (h && (i === "keyboard" || i === "virtual")) a(h === "first" ? n.getFirstKey?.() : n.getLastKey?.());+ else if (t.focusedKey == null) {+ let r = e.relatedTarget;+ 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 = P.current.top, p.current.scrollLeft = P.current.left);+ if (t.focusedKey != null && p.current) {+ let e = Sa(r, t.focusedKey);+ e instanceof HTMLElement && (!se(e) && !d && E(e), (i === "keyboard" || h && i === "virtual") && Ai(e, { containingElement: r.current }));+ }+ }, re = (e) => {+ F(e.currentTarget, e.relatedTarget) || t.setFocused(!1);+ }, ie = (0, C.useRef)(!1);+ Hn(r, Mn, d ? (e) => {+ let { detail: n } = e;+ e.stopPropagation(), t.setFocused(!0), n?.focusStrategy === "first" && (ie.current = !0);+ } : void 0);+ let ae = n.getFirstKey?.() ?? null;+ xo(() => {+ if (ie.current) {+ if (ae == null) {+ let e = I();+ Nn(r.current), Fn(e, null), t.collection.size > 0 && (ie.current = !1);+ } else t.setFocusedKey(ae), ie.current = !1;+ }+ }, [ae, t.collection.size]), xo(() => {+ t.collection.size > 0 && (ie.current = !1);+ }, [t.focusedKey]), Hn(r, jn, d ? (e) => {+ e.stopPropagation(), t.setFocused(!1), e.detail?.clearFocusKey && t.setFocusedKey(null);+ } : void 0);+ let oe = (0, C.useRef)(i), ce = (0, C.useRef)(!1);+ (0, C.useEffect)(() => {+ if (oe.current) {+ let e = null;+ i === "first" && (e = n.getFirstKey?.() ?? null), i === "last" && (e = n.getLastKey?.() ?? null);+ let a = t.selectedKeys;+ if (a.size) {+ for (let n of a) if (t.canSelectItem(n)) {+ e = n;+ break;+ }+ }+ t.setFocused(!0), t.setFocusedKey(e), e != null && l && !a.size && t.canSelectItem(e) && t.replaceSelection(e), e == null && !d && r.current && Et(r.current), t.collection.size > 0 && (oe.current = !1, ce.current = !0);+ }+ });+ let le = (0, C.useRef)(t.focusedKey), ue = (0, C.useRef)(null);+ (0, C.useEffect)(() => {+ if (t.isFocused && t.focusedKey != null && (t.focusedKey !== le.current || ce.current) && p.current && r.current) {+ let e = gt(), n = Sa(r, t.focusedKey);+ if (!(n instanceof HTMLElement)) return;+ (e === "keyboard" || ce.current) && (ue.current && cancelAnimationFrame(ue.current), ue.current = requestAnimationFrame(() => {+ p.current && (Oi(p.current, n), e !== "virtual" && Ai(n, { containingElement: r.current }));+ }));+ }+ !d && t.isFocused && t.focusedKey == null && le.current != null && r.current && Et(r.current), le.current = t.focusedKey, ce.current = !1;+ }), (0, C.useEffect)(() => () => {+ ue.current && cancelAnimationFrame(ue.current);+ }, []), Hn(r, "react-aria-focus-scope-restore", (e) => {+ e.preventDefault(), t.setFocused(!0);+ });+ let R = {+ ...V(te, ee),+ onFocus: ne,+ onBlur: re,+ onMouseDown(e) {+ p.current === L(e) && e.preventDefault();+ }+ }, { typeSelectProps: z } = yo({+ keyboardDelegate: n,+ selectionManager: t+ });+ u || (R = V(z, R));+ let de;+ d || (de = t.focusedKey == null ? 0 : -1);+ let fe = wa(t.collection);+ return { collectionProps: V(R, {+ tabIndex: de,+ "data-collection": fe+ }) };+}+//#endregion+//#region node_modules/react-stately/dist/private/collections/getChildNodes.mjs+function Co(e, t) {+ return typeof t.getChildren == "function" ? t.getChildren(e.key) : e.childNodes;+}+function wo(e) {+ return To(e, 0);+}+function To(e, t) {+ if (t < 0) return;+ let n = 0;+ for (let r of e) {+ if (n === t) return r;+ n++;+ }+}+function Eo(e, t, n) {+ if (t.parentKey === n.parentKey) return t.index - n.index;+ let r = [...Do(e, t), t], i = [...Do(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 Do(e, t) {+ let n = [], r = t;+ for (; r?.parentKey != null;) r = e.getItem(r.parentKey), r && n.unshift(r);+ return n;+}+//#endregion+//#region node_modules/react-stately/dist/private/collections/getItemCount.mjs+var Oo = /* @__PURE__ */ new WeakMap();+function ko(e) {+ let t = Oo.get(e);+ if (t != null) return t;+ let n = 0, r = (t) => {+ for (let i of t) i.type === "section" ? r(Co(i, e)) : i.type === "item" && n++;+ };+ return r(e), Oo.set(e, n), n;+}+//#endregion+//#region node_modules/react-aria/dist/private/i18n/useCollator.mjs+var Ao = /* @__PURE__ */ new Map();+function jo(e) {+ let { locale: t } = er(), n = t + (e ? Object.entries(e).sort((e, t) => e[0] < t[0] ? -1 : 1).join() : "");+ if (Ao.has(n)) return Ao.get(n);+ let r = new Intl.Collator(t, e);+ return Ao.set(n, r), r;+}+//#endregion+//#region node_modules/react-aria/dist/private/interactions/PressResponder.mjs+function Mo({ children: e }) {+ let t = (0, C.useMemo)(() => ({ register: () => {} }), []);+ return /*#__PURE__*/ C.createElement(Ar.Provider, { value: t }, e);+}+//#endregion+//#region node_modules/react-aria/dist/private/overlays/PortalProvider.mjs+var No = /*#__PURE__*/ (0, C.createContext)({});+function Po(e) {+ let { getContainer: t } = e, { getContainer: n } = Fo();+ return /*#__PURE__*/ C.createElement(No.Provider, { value: { getContainer: t === null ? void 0 : t ?? n } }, e.children);+}+function Fo() {+ return (0, C.useContext)(No) ?? {};+}+//#endregion+//#region node_modules/react-aria/dist/private/overlays/Overlay.mjs+var Io = /*#__PURE__*/ C.createContext(null);+function Lo(e) {+ let t = Qe(), { portalContainer: n = t ? null : document.body, isExiting: r } = e, [i, a] = (0, C.useState)(!1), o = (0, C.useMemo)(() => ({+ contain: i,+ setContain: a+ }), [i, a]), { getContainer: s } = Fo();+ if (!e.portalContainer && s && (n = s()), !n) return null;+ let c = e.children;+ return e.disableFocusManagement || (c = /*#__PURE__*/ C.createElement(Zr, {+ restoreFocus: !0,+ contain: (e.shouldContainFocus || i) && !r+ }, c)), c = /*#__PURE__*/ C.createElement(Io.Provider, { value: o }, /*#__PURE__*/ C.createElement(Mo, null, /*#__PURE__*/ C.createElement(nn.Provider, { value: null }, c))), /*#__PURE__*/ mn.createPortal(c, n);+}+function Ro() {+ let e = (0, C.useContext)(Io)?.setContain;+ B(() => {+ e?.(!0);+ }, [e]);+}+//#endregion+//#region node_modules/react-aria/dist/private/dialog/useDialog.mjs+function W(e, t) {+ let { role: n = "dialog" } = e, r = Ft();+ r = e["aria-label"] ? void 0 : r;+ let i = Ft();+ i = n === "alertdialog" && !e["aria-describedby"] ? i : void 0;+ let a = (0, C.useRef)(!1);+ (0, C.useEffect)(() => {+ if (t.current && !se(t.current)) {+ Et(t.current);+ let e = setTimeout(() => {+ (I() === t.current || I() === document.body) && (a.current = !0, t.current && (t.current.blur(), Et(t.current)), a.current = !1);+ }, 500);+ return () => {+ clearTimeout(e);+ };+ }+ }, [t]), Ro(), (0, C.useRef)(!1), (0, C.useEffect)(() => {});+ let o = e["aria-describedby"] ?? i;+ return {+ dialogProps: {+ ...xr(e, { labelable: !0 }),+ role: n,+ tabIndex: -1,+ "aria-labelledby": e["aria-labelledby"] ?? r,+ "aria-describedby": o,+ onBlur: (e) => {+ a.current && e.stopPropagation();+ }+ },+ titleProps: { id: r },+ contentProps: { id: i }+ };+}+//#endregion+//#region node_modules/react-aria/dist/private/focus/useFocusRing.mjs+function G(e = {}) {+ let { autoFocus: t = !1, isTextInput: n, within: r } = e, i = (0, C.useRef)({+ isFocused: !1,+ isFocusVisible: t || ht()+ }), [a, o] = (0, C.useState)(!1), [s, c] = (0, C.useState)(() => i.current.isFocused && i.current.isFocusVisible), l = (0, C.useCallback)(() => c(i.current.isFocused && i.current.isFocusVisible), []), u = (0, C.useCallback)((e) => {+ i.current.isFocused = e, i.current.isFocusVisible = ht(), o(e), l();+ }, [l]);+ bt((e) => {+ i.current.isFocusVisible = e, l();+ }, [n, a], {+ enabled: a,+ isTextInput: n+ });+ let { focusProps: d } = Bt({+ isDisabled: r,+ onFocusChange: u+ }), { focusWithinProps: f } = na({+ isDisabled: !r,+ onFocusWithinChange: u+ });+ return {+ isFocused: a,+ isFocusVisible: s,+ focusProps: r ? f : d+ };+}+//#endregion+//#region node_modules/react-aria/dist/private/i18n/useListFormatter.mjs+function zo(e = {}) {+ let { locale: t } = er();+ return (0, C.useMemo)(() => new Intl.ListFormat(t, e), [t, e]);+}+//#endregion+//#region node_modules/react-aria/dist/private/interactions/useHover.mjs+var Bo = !1, Vo = 0;+function Ho() {+ Bo = !0, setTimeout(() => {+ Bo = !1;+ }, 500);+}+function Uo(e) {+ e.pointerType === "touch" && Ho();+}+function Wo() {+ let e = j(null);+ if (e !== void 0) return Vo === 0 && typeof PointerEvent < "u" && e.addEventListener("pointerup", Uo), Vo++, () => {+ Vo--, !(Vo > 0) && typeof PointerEvent < "u" && e.removeEventListener("pointerup", Uo);+ };+}+function Go(e) {+ let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, isDisabled: i } = e, [a, o] = (0, C.useState)(!1), s = (0, C.useRef)({+ isHovered: !1,+ ignoreEmulatedMouseEvents: !1,+ pointerType: "",+ target: null+ }).current;+ (0, C.useEffect)(Wo, []);+ let { addGlobalListener: c, removeAllGlobalListeners: l } = jr(), { hoverProps: u, triggerHoverEnd: d } = (0, C.useMemo)(() => {+ let e = (e, r) => {+ if (s.pointerType = r, i || r === "touch" || s.isHovered || !F(e.currentTarget, L(e))) return;+ s.isHovered = !0;+ let l = e.currentTarget;+ s.target = l, c(j(L(e)), "pointerover", (e) => {+ s.isHovered && s.target && !F(s.target, L(e)) && a(e, e.pointerType);+ }, { capture: !0 }), t && t({+ type: "hoverstart",+ target: l,+ pointerType: r+ }), n && n(!0), o(!0);+ }, a = (e, t) => {+ let i = s.target;+ s.pointerType = "", s.target = null, !(t === "touch" || !s.isHovered || !i) && (s.isHovered = !1, l(), r && r({+ type: "hoverend",+ target: i,+ pointerType: t+ }), n && n(!1), o(!1));+ }, u = {};+ return typeof PointerEvent < "u" && (u.onPointerEnter = (t) => {+ Bo && t.pointerType === "mouse" || e(t, t.pointerType);+ }, u.onPointerLeave = (e) => {+ !i && F(e.currentTarget, L(e)) && a(e, e.pointerType);+ }), {+ hoverProps: u,+ triggerHoverEnd: a+ };+ }, [+ t,+ n,+ r,+ i,+ s,+ c,+ l+ ]);+ return (0, C.useEffect)(() => {+ i && d({ currentTarget: s.target }, s.pointerType);+ }, [i]), {+ hoverProps: u,+ isHovered: a+ };+}+//#endregion+//#region node_modules/react-aria/dist/private/interactions/useInteractOutside.mjs+function Ko(e) {+ let { ref: t, onInteractOutside: n, isDisabled: r, onInteractOutsideStart: i } = e, a = (0, C.useRef)({+ isPointerDown: !1,+ ignoreEmulatedMouseEvents: !1+ }), o = Vn((e) => {+ n && qo(e, t) && (i && i(e), a.current.isPointerDown = !0);+ }), s = Vn((e) => {+ n && n(e);+ });+ (0, C.useEffect)(() => {+ let e = a.current;+ if (r) return;+ let n = t.current, i = j(n);+ if (typeof PointerEvent < "u") {+ let n = (n) => {+ e.isPointerDown && qo(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);+ };+ }+ }, [t, r]);+}+function qo(e, t) {+ if (e.button > 0) return !1;+ let n = L(e);+ if (n) {+ let e = n.ownerDocument;+ if (!e || !F(e.documentElement, n) || n.closest("[data-react-aria-top-layer]")) return !1;+ }+ return t.current ? !e.composedPath().includes(t.current) : !1;+}+//#endregion+//#region node_modules/react-aria/dist/private/selection/useSelectableList.mjs+function Jo(e) {+ let { selectionManager: t, collection: n, disabledKeys: r, ref: i, keyboardDelegate: a, layoutDelegate: o, orientation: s } = e, c = jo({+ usage: "search",+ sensitivity: "base"+ }), l = t.disabledBehavior, u = (0, C.useMemo)(() => a || new Da({+ collection: n,+ disabledKeys: r,+ disabledBehavior: l,+ ref: i,+ collator: c,+ layoutDelegate: o,+ orientation: s+ }), [+ a,+ o,+ n,+ r,+ i,+ c,+ l,+ s+ ]), { collectionProps: d } = So({+ ...e,+ ref: i,+ selectionManager: t,+ keyboardDelegate: u+ });+ return { listProps: d };+}+//#endregion+//#region node_modules/react-aria/dist/private/selection/useSelectableItem.mjs+function Yo(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 = Ie();+ t = Nt(t);+ let p = (e) => {+ if (e.pointerType === "keyboard" && xa(e)) n.toggleSelection(r);+ else {+ if (n.selectionMode === "none") return;+ if (n.isLink(r)) {+ if (d === "selection" && i.current) {+ let t = n.getItemProps(r);+ f.open(i.current, e, t.href, t.routerOptions), n.setSelectedKeys(n.selectedKeys);+ return;+ }+ 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 && (Ln(e) || e.pointerType === "touch" || e.pointerType === "virtual") ? n.toggleSelection(r) : n.replaceSelection(r);+ }+ };+ (0, C.useEffect)(() => {+ r === n.focusedKey && n.isFocused && (o ? Nn(i.current) : s ? s() : I() !== i.current && i.current && Et(i.current));+ }, [+ i,+ r,+ n.focusedKey,+ n.childFocusStrategy,+ n.isFocused,+ o+ ]), c ||= n.isDisabled(r);+ let m = {};+ !o && !c ? m = {+ tabIndex: r === n.focusedKey ? 0 : -1,+ onFocus(e) {+ L(e) === i.current && n.setFocusedKey(r);+ }+ } : c && (m.onMouseDown = (e) => {+ e.preventDefault();+ }), (0, C.useEffect)(() => {+ c && n.focusedKey === r && n.setFocusedKey(null);+ }, [+ n,+ c,+ r+ ]);+ let h = n.isLink(r) && d === "override", g = l && e.UNSTABLE_itemBehavior === "action", _ = n.isLink(r) && d !== "selection" && d !== "none", v = !c && n.canSelectItem(r) && !h && !g, y = (l || _) && !c, b = y && (n.selectionBehavior === "replace" ? !v : !v || n.isEmpty), x = y && v && n.selectionBehavior === "replace", S = b || x, w = (0, C.useRef)(null), T = S && v, E = (0, C.useRef)(!1), D = (0, C.useRef)(!1), O = n.getItemProps(r), k = (e) => {+ l && (l(), i.current?.dispatchEvent(new CustomEvent("react-aria-item-action", { bubbles: !0 }))), _ && i.current && f.open(i.current, e, O.href, O.routerOptions);+ }, A = { ref: i };+ a ? (A.onPressStart = (e) => {+ w.current = e.pointerType, E.current = T, e.pointerType === "keyboard" && (!S || Zo(e.key)) && p(e);+ }, u ? (A.onPressUp = b ? void 0 : (e) => {+ e.pointerType === "mouse" && v && p(e);+ }, A.onPress = b ? k : (e) => {+ e.pointerType !== "keyboard" && e.pointerType !== "mouse" && v && p(e);+ }) : A.onPress = (e) => {+ if (b || x && e.pointerType !== "mouse") {+ if (e.pointerType === "keyboard" && !Xo(e.key)) return;+ k(e);+ } else e.pointerType !== "keyboard" && v && p(e);+ }) : (A.onPressStart = (e) => {+ w.current = e.pointerType, E.current = T, D.current = b, v && (e.pointerType === "mouse" && !b || e.pointerType === "keyboard" && (!y || Zo(e.key))) && p(e);+ }, A.onPress = (e) => {+ (e.pointerType === "touch" || e.pointerType === "pen" || e.pointerType === "virtual" || e.pointerType === "keyboard" && S && Xo(e.key) || e.pointerType === "mouse" && D.current) && (S ? k(e) : v && p(e));+ });+ let j = Ta(n.collection);+ if (m["data-collection"] = j, m["data-key"] = r, A.preventFocusOnPress = o, o && (A = V(A, {+ onPressStart(e) {+ e.pointerType !== "touch" && (n.setFocused(!0), n.setFocusedKey(r));+ },+ onPress(e) {+ e.pointerType === "touch" && (n.setFocused(!0), n.setFocusedKey(r));+ }+ })), O) for (let e of [+ "onPressStart",+ "onPressEnd",+ "onPressChange",+ "onPress",+ "onPressUp",+ "onClick"+ ]) O[e] && (A[e] = Dt(A[e], O[e]));+ let { pressProps: M, isPressed: N } = Lr(A), ee = x ? (e) => {+ w.current === "mouse" && (e.stopPropagation(), e.preventDefault(), k(e));+ } : void 0, { longPressProps: te } = uo({+ isDisabled: !T,+ onLongPress(e) {+ e.pointerType === "touch" && (p(e), n.setSelectionBehavior("toggle"));+ }+ }), P = (e) => {+ w.current === "touch" && E.current && e.preventDefault();+ }, ne = d !== "none" && n.isLink(r) ? (e) => {+ Le.isOpening || e.preventDefault();+ } : void 0, re = V(m, v || b || o && !c ? M : {}, T ? te : {}, {+ onDoubleClick: ee,+ onDragStartCapture: P,+ onClick: ne,+ id: t+ }, o ? { onMouseDown: (e) => e.preventDefault() } : void 0), ie = (e) => {+ let t = e;+ for (; t && t !== i.current;) {+ let e = t.getAttribute("data-collection");+ if (e != null) return e !== j;+ t = t.parentElement;+ }+ return me(e);+ }, ae = re.onPointerDown;+ re.onPointerDown = (e) => {+ let t = L(e);+ if (t && t !== i.current && ie(t)) {+ e.stopPropagation();+ return;+ }+ ae?.(e);+ };+ let F = re.onMouseDown;+ return re.onMouseDown = (e) => {+ let t = L(e);+ if (t && t !== i.current && ie(t)) {+ e.stopPropagation();+ return;+ }+ F?.(e);+ }, {+ itemProps: re,+ isPressed: N,+ isSelected: n.isSelected(r),+ isFocused: n.isFocused && n.focusedKey === r,+ isDisabled: c,+ allowsSelection: v,+ hasAction: S+ };+}+function Xo(e) {+ return e === "Enter";+}+function Zo(e) {+ return e === " ";+}+//#endregion+//#region node_modules/react-aria/dist/private/listbox/useListBox.mjs+function Qo(e, t, n) {+ let r = xr(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 } = Jo({+ ...e,+ ref: n,+ selectionManager: t.selectionManager,+ collection: t.collection,+ disabledKeys: t.disabledKeys,+ linkBehavior: o+ }), { focusWithinProps: c } = na({+ onFocusWithin: e.onFocus,+ onBlurWithin: e.onBlur,+ onFocusWithinChange: e.onFocusChange+ }), l = Nt(e.id);+ va.set(t, {+ id: l,+ shouldUseVirtualFocus: e.shouldUseVirtualFocus,+ shouldSelectOnPressUp: e.shouldSelectOnPressUp,+ shouldFocusOnHover: e.shouldFocusOnHover,+ isVirtualized: e.isVirtualized,+ onAction: e.onAction,+ linkBehavior: o,+ UNSTABLE_itemBehavior: e.UNSTABLE_itemBehavior+ });+ let { labelProps: u, fieldProps: d } = U({+ ...e,+ id: l,+ labelElementType: "span"+ });+ return {+ labelProps: u,+ listBoxProps: V(r, c, t.selectionManager.selectionMode === "multiple" ? { "aria-multiselectable": "true" } : {}, {+ role: "listbox",+ "aria-orientation": a,+ ...V(d, s)+ })+ };+}+//#endregion+//#region node_modules/react-aria/dist/private/listbox/useListBoxSection.mjs+function $o(e) {+ let { heading: t, "aria-label": n } = e, r = Nt();+ return {+ itemProps: { role: "presentation" },+ headingProps: t ? {+ id: r,+ role: "presentation",+ onMouseDown: (e) => {+ e.preventDefault();+ }+ } : {},+ groupProps: {+ role: "group",+ "aria-label": n,+ "aria-labelledby": t ? r : void 0+ }+ };+}+//#endregion+//#region node_modules/react-aria/dist/private/listbox/useOption.mjs+function es(e, t, n) {+ let { key: r } = e, i = va.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 = Ft(), f = Ft(), p = {+ role: "option",+ "aria-disabled": a || void 0,+ "aria-selected": t.selectionManager.selectionMode === "none" ? void 0 : o,+ "aria-label": e["aria-label"],+ "aria-labelledby": d,+ "aria-describedby": f+ }, 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"] = ko(t.collection);+ }+ let h = i?.onAction ? () => i?.onAction?.(r) : void 0, g = ba(t, r), { itemProps: _, isPressed: v, isFocused: y, hasAction: b, allowsSelection: x } = Yo({+ selectionManager: t.selectionManager,+ key: r,+ ref: n,+ shouldSelectOnPressUp: s,+ allowsDifferentPressOrigin: s && c,+ isVirtualized: u,+ shouldUseVirtualFocus: l,+ isDisabled: a,+ onAction: h || m?.props?.onAction ? Dt(m?.props?.onAction, h) : void 0,+ linkBehavior: i?.linkBehavior,+ UNSTABLE_itemBehavior: i?.UNSTABLE_itemBehavior,+ id: g+ }), { hoverProps: S } = Go({+ isDisabled: a || !c,+ onHoverStart() {+ ht() || (t.selectionManager.setFocused(!0), t.selectionManager.setFocusedKey(r));+ }+ }), C = xr(m?.props);+ delete C.id;+ let w = Be(m?.props);+ return {+ optionProps: {+ ...p,+ ...V(C, _, S, w),+ id: g+ },+ labelProps: { id: d },+ descriptionProps: { id: f },+ isFocused: y,+ isFocusVisible: y && t.selectionManager.isFocused && ht(),+ isSelected: o,+ isDisabled: a,+ isPressed: v,+ allowsSelection: x,+ hasAction: b+ };+}+//#endregion+//#region node_modules/react-aria/dist/private/utils/useResizeObserver.mjs+function ts() {+ return window.ResizeObserver !== void 0;+}+function ns(e) {+ let { ref: t, box: n, onResize: r } = e, i = Vn(r);+ (0, C.useEffect)(() => {+ let e = t?.current;+ if (e) {+ if (ts()) {+ let t = new window.ResizeObserver((e) => {+ e.length && i();+ });+ return t.observe(e, { box: n }), () => {+ e && t.unobserve(e);+ };+ }+ return window.addEventListener("resize", i, !1), () => {+ window.removeEventListener("resize", i, !1);+ };+ }+ }, [t, n]);+}+//#endregion+//#region node_modules/react-aria/dist/private/intl/overlays/ar-AE.mjs+var rs = {};+rs = { dismiss: "تجاهل" };+//#endregion+//#region node_modules/react-aria/dist/private/intl/overlays/bg-BG.mjs+var is = {};+is = { dismiss: "Отхвърляне" };+//#endregion+//#region node_modules/react-aria/dist/private/intl/overlays/cs-CZ.mjs+var as = {};+as = { dismiss: "Odstranit" };+//#endregion+//#region node_modules/react-aria/dist/private/intl/overlays/da-DK.mjs+var os = {};+os = { dismiss: "Luk" };+//#endregion+//#region node_modules/react-aria/dist/private/intl/overlays/de-DE.mjs+var ss = {};+ss = { dismiss: "Schließen" };+//#endregion+//#region node_modules/react-aria/dist/private/intl/overlays/el-GR.mjs+var cs = {};+cs = { dismiss: "Απόρριψη" };+//#endregion+//#region node_modules/react-aria/dist/private/intl/overlays/en-US.mjs+var ls = {};+ls = { dismiss: "Dismiss" };+//#endregion+//#region node_modules/react-aria/dist/private/intl/overlays/es-ES.mjs+var us = {};+us = { dismiss: "Descartar" };+//#endregion+//#region node_modules/react-aria/dist/private/intl/overlays/et-EE.mjs+var ds = {};+ds = { dismiss: "Lõpeta" };+//#endregion+//#region node_modules/react-aria/dist/private/intl/overlays/fi-FI.mjs+var fs = {};+fs = { dismiss: "Hylkää" };+//#endregion+//#region node_modules/react-aria/dist/private/intl/overlays/fr-FR.mjs+var ps = {};+ps = { dismiss: "Rejeter" };+//#endregion+//#region node_modules/react-aria/dist/private/intl/overlays/he-IL.mjs+var ms = {};+ms = { dismiss: "התעלם" };+//#endregion+//#region node_modules/react-aria/dist/private/intl/overlays/hr-HR.mjs+var hs = {};+hs = { dismiss: "Odbaci" };+//#endregion+//#region node_modules/react-aria/dist/private/intl/overlays/hu-HU.mjs+var gs = {};+gs = { dismiss: "Elutasítás" };+//#endregion+//#region node_modules/react-aria/dist/private/intl/overlays/it-IT.mjs+var _s = {};+_s = { dismiss: "Ignora" };+//#endregion+//#region node_modules/react-aria/dist/private/intl/overlays/ja-JP.mjs+var vs = {};+vs = { dismiss: "閉じる" };+//#endregion+//#region node_modules/react-aria/dist/private/intl/overlays/ko-KR.mjs+var ys = {};+ys = { dismiss: "무시" };+//#endregion+//#region node_modules/react-aria/dist/private/intl/overlays/lt-LT.mjs+var bs = {};+bs = { dismiss: "Atmesti" };+//#endregion+//#region node_modules/react-aria/dist/private/intl/overlays/lv-LV.mjs+var xs = {};+xs = { dismiss: "Nerādīt" };+//#endregion+//#region node_modules/react-aria/dist/private/intl/overlays/nb-NO.mjs+var Ss = {};+Ss = { dismiss: "Lukk" };+//#endregion+//#region node_modules/react-aria/dist/private/intl/overlays/nl-NL.mjs+var Cs = {};+Cs = { dismiss: "Negeren" };+//#endregion+//#region node_modules/react-aria/dist/private/intl/overlays/pl-PL.mjs+var ws = {};+ws = { dismiss: "Zignoruj" };+//#endregion+//#region node_modules/react-aria/dist/private/intl/overlays/pt-BR.mjs+var Ts = {};+Ts = { dismiss: "Descartar" };+//#endregion+//#region node_modules/react-aria/dist/private/intl/overlays/pt-PT.mjs+var Es = {};+Es = { dismiss: "Dispensar" };+//#endregion+//#region node_modules/react-aria/dist/private/intl/overlays/ro-RO.mjs+var Ds = {};+Ds = { dismiss: "Revocare" };+//#endregion+//#region node_modules/react-aria/dist/private/intl/overlays/ru-RU.mjs+var Os = {};+Os = { dismiss: "Пропустить" };+//#endregion+//#region node_modules/react-aria/dist/private/intl/overlays/sk-SK.mjs+var ks = {};+ks = { dismiss: "Zrušiť" };+//#endregion+//#region node_modules/react-aria/dist/private/intl/overlays/sl-SI.mjs+var As = {};+As = { dismiss: "Opusti" };+//#endregion+//#region node_modules/react-aria/dist/private/intl/overlays/sr-SP.mjs+var js = {};+js = { dismiss: "Odbaci" };+//#endregion+//#region node_modules/react-aria/dist/private/intl/overlays/sv-SE.mjs+var Ms = {};+Ms = { dismiss: "Avvisa" };+//#endregion+//#region node_modules/react-aria/dist/private/intl/overlays/tr-TR.mjs+var Ns = {};+Ns = { dismiss: "Kapat" };+//#endregion+//#region node_modules/react-aria/dist/private/intl/overlays/uk-UA.mjs+var Ps = {};+Ps = { dismiss: "Скасувати" };+//#endregion+//#region node_modules/react-aria/dist/private/intl/overlays/zh-CN.mjs+var Fs = {};+Fs = { dismiss: "取消" };+//#endregion+//#region node_modules/react-aria/dist/private/intl/overlays/zh-TW.mjs+var Is = {};+Is = { dismiss: "關閉" };+//#endregion+//#region node_modules/react-aria/dist/private/overlays/intlStrings.mjs+var Ls = {};+Ls = {+ "ar-AE": rs,+ "bg-BG": is,+ "cs-CZ": as,+ "da-DK": os,+ "de-DE": ss,+ "el-GR": cs,+ "en-US": ls,+ "es-ES": us,+ "et-EE": ds,+ "fi-FI": fs,+ "fr-FR": ps,+ "he-IL": ms,+ "hr-HR": hs,+ "hu-HU": gs,+ "it-IT": _s,+ "ja-JP": vs,+ "ko-KR": ys,+ "lt-LT": bs,+ "lv-LV": xs,+ "nb-NO": Ss,+ "nl-NL": Cs,+ "pl-PL": ws,+ "pt-BR": Ts,+ "pt-PT": Es,+ "ro-RO": Ds,+ "ru-RU": Os,+ "sk-SK": ks,+ "sl-SI": As,+ "sr-SP": js,+ "sv-SE": Ms,+ "tr-TR": Ns,+ "uk-UA": Ps,+ "zh-CN": Fs,+ "zh-TW": Is+};+//#endregion+//#region node_modules/react-aria/dist/private/overlays/DismissButton.mjs+function Rs(e) {+ return e && e.__esModule ? e.default : e;+}+function zs(e) {+ let { onDismiss: t, ...n } = e, r = Un(n, mr(Rs(Ls), "@react-aria/overlays").format("dismiss")), i = () => {+ t && t();+ };+ return /*#__PURE__*/ C.createElement(ua, null, /*#__PURE__*/ C.createElement("button", {+ ...r,+ tabIndex: -1,+ onClick: i,+ style: {+ width: 1,+ height: 1+ }+ }));+}+//#endregion+//#region node_modules/react-aria/dist/private/overlays/useOverlay.mjs+var Bs = [];+function Vs(e, t) {+ let { onClose: n, shouldCloseOnBlur: r, isOpen: i, isDismissable: a = !1, isKeyboardDismissDisabled: o = !1, shouldCloseOnInteractOutside: s } = e, c = (0, C.useRef)(void 0);+ (0, C.useEffect)(() => {+ if (i && !Bs.includes(t)) return Bs.push(t), () => {+ let e = Bs.indexOf(t);+ e >= 0 && Bs.splice(e, 1);+ };+ }, [i, t]);+ let l = () => {+ Bs[Bs.length - 1] === t && n && n();+ }, u = (e) => {+ let n = Bs[Bs.length - 1];+ c.current = n, (!s || s(L(e))) && n === t && e.stopPropagation();+ }, d = (e) => {+ (!s || s(L(e))) && (Bs[Bs.length - 1] === t && e.stopPropagation(), c.current === t && l()), c.current = void 0;+ }, { keyboardProps: f } = $t({ shortcuts: { Escape: () => {+ if (!o) {+ l();+ return;+ }+ return !1;+ } } });+ Ko({+ ref: t,+ onInteractOutside: a && i ? d : void 0,+ onInteractOutsideStart: u+ });+ let { focusWithinProps: p } = na({+ isDisabled: !r,+ onBlurWithin: (e) => {+ !e.relatedTarget || si(e.relatedTarget) || (!s || s(e.relatedTarget)) && n?.();+ }+ });+ return {+ overlayProps: {+ ...f,+ ...p+ },+ underlayProps: {}+ };+}+//#endregion+//#region node_modules/react-aria/dist/private/overlays/usePreventScroll.mjs+var Hs = typeof document < "u" && window.visualViewport, Us = 0, Ws;+function Gs(e = {}) {+ let { isDisabled: t } = e;+ B(() => {+ if (!t) return Us++, Us === 1 && (Ws = De() && ke() ? qs() : Ks()), () => {+ Us--, Us === 0 && Ws();+ };+ }, [t]);+}+function Ks() {+ let e = window.innerWidth - document.documentElement.clientWidth;+ return Dt(e > 0 && ("scrollbarGutter" in document.documentElement.style ? re(document.documentElement, "scrollbar-gutter", "stable") : re(document.documentElement, "padding-right", `${e}px`)), re(document.documentElement, "overflow", "hidden"));+}+function qs() {+ let e = re(document.documentElement, "overflow", "hidden"), t, n = !1, r = (e) => {+ let r = L(e);+ t = Ti(r) ? r : Ei(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 = kr();+ a && (i.nonce = a), i.textContent = "@layer {\n * {\n overscroll-behavior: contain;\n }\n}", document.head.prepend(i);+ let o = (e) => {+ if (!(e.touches.length === 2 || n)) {+ if (!t || t === document.documentElement || t === document.body) {+ e.preventDefault();+ return;+ }+ t.scrollHeight === t.clientHeight && t.scrollWidth === t.clientWidth && e.preventDefault();+ }+ }, s = (e) => {+ let t = L(e), n = e.relatedTarget;+ n && zn(n) ? (n.focus({ preventScroll: !0 }), Js(n, zn(t))) : n || (t.parentElement?.closest("[tabindex]"))?.focus({ preventScroll: !0 });+ }, c = HTMLElement.prototype.focus;+ Reflect.defineProperty(HTMLElement.prototype, "focus", {+ configurable: !0,+ writable: !0,+ value: function(e) {+ let t = I(), n = t != null && zn(t);+ c.call(this, {+ ...e,+ preventScroll: !0+ }), (!e || !e.preventScroll) && Js(this, n);+ }+ });+ let l = Dt(ne(document, "touchstart", r, {+ passive: !1,+ capture: !0+ }), ne(document, "touchmove", o, {+ passive: !1,+ capture: !0+ }), ne(document, "blur", s, !0));+ return () => {+ e(), l(), i.remove(), Reflect.defineProperty(HTMLElement.prototype, "focus", {+ configurable: !0,+ writable: !0,+ value: c+ });+ };+}+function Js(e, t) {+ t || !Hs ? Ys(e) : Hs.addEventListener("resize", () => Ys(e), { once: !0 });+}+function Ys(e) {+ let t = document.scrollingElement || document.documentElement, n = e;+ for (; n && n !== t;) {+ let e = Ei(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;+ Hs && (n = Math.min(n, Hs.offsetTop + Hs.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)),+ behavior: "smooth"+ });+ }+ }+ n = e.parentElement;+ }+}+//#endregion+//#region node_modules/react-aria/dist/private/overlays/calculatePosition.mjs+var Xs = {+ top: "top",+ bottom: "top",+ left: "left",+ right: "left"+}, Zs = {+ top: "bottom",+ bottom: "top",+ left: "right",+ right: "left"+}, Qs = {+ top: "left",+ left: "top"+}, $s = {+ top: "height",+ left: "width"+}, ec = {+ width: "totalWidth",+ height: "totalHeight"+}, tc = {}, nc = () => typeof document < "u" ? window.visualViewport : null;+function rc(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} = mc(e, !1)), c.top = e.scrollTop, c.left = e.scrollLeft, i = n, a = r;+ return ke() && (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,+ totalHeight: a,+ scroll: c,+ top: o,+ left: s+ };+}+function ic(e) {+ return {+ top: e.scrollTop,+ left: e.scrollLeft,+ width: e.scrollWidth,+ height: e.scrollHeight+ };+}+function ac(e, t, n, r, i, a, o) {+ let s = i.scroll[e] ?? 0, c = r[$s[e]], l = o[e] + r.scroll[Xs[e]] + a, u = o[e] + r.scroll[Xs[e]] + c - a, d = t - s + r.scroll[Xs[e]] + o[e] - r[Xs[e]], f = t - s + n + r.scroll[Xs[e]] + o[e] - r[Xs[e]];+ return d < l ? l - d : f > u ? Math.max(u - f, l - d) : 0;+}+function oc(e) {+ let t = window.getComputedStyle(e);+ return {+ top: parseInt(t.marginTop, 10) || 0,+ bottom: parseInt(t.marginBottom, 10) || 0,+ left: parseInt(t.marginLeft, 10) || 0,+ right: parseInt(t.marginRight, 10) || 0+ };+}+function sc(e) {+ if (tc[e]) return tc[e];+ let [t, n] = e.split(" "), r = Xs[t] || "right", i = Qs[r];+ Xs[n] || (n = "center");+ let a = $s[r], o = $s[i];+ return tc[e] = {+ placement: t,+ crossPlacement: n,+ axis: r,+ crossAxis: i,+ size: a,+ crossSize: o+ }, tc[e];+}+function cc(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] = sa(_[m], v, y), d === p) {+ let t = s ? u[h] : u[ec[h]];+ _[Zs[p]] = Math.floor(t - e[p] + i);+ } else _[p] = Math.floor(e[p] + e[h] + i);+ return _;+}+function lc(e, t, n, r, i, a, o, s, c, l, u) {+ let d = (e.top == null ? c[ec.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 uc(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[Zs[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[Zs[l]] - i);+}+function dc(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {+ let v = sc(e), { size: y, crossAxis: b, crossSize: x, placement: S, crossPlacement: C } = v, w = cc(t, s, n, v, u, d, l, f, m, h, c), T = u, E = uc(s, l, t, i, a + u, v, c, g);+ if (o && n[y] > E) {+ let e = sc(`${Zs[S]} ${C}`), r = cc(t, s, n, e, u, d, l, f, m, h, c);+ uc(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 = ac(b, w[b], n[x], s, c, a, l);+ w[b] += O;+ let k = lc(w, s, l, f, i, a, n.height, D, c, g, _);+ p && p < k && (k = p), n.height = Math.min(n.height, k), w = cc(t, s, n, v, T, d, l, f, m, h, c), O = ac(b, w[b], n[x], s, c, a, l), w[b] += O;+ let A = {}, j = t[b] - w[b] - i[Xs[b]], M = j + .5 * t[x], N = m / 2 + h, ee = Xs[b] === "left" ? (i.left ?? 0) + (i.right ?? 0) : (i.top ?? 0) + (i.bottom ?? 0), te = n[x] - ee - m / 2 - h;+ A[b] = sa(sa(M, t[b] + m / 2 - (w[b] + i[Xs[b]]), t[b] + t[x] - m / 2 - (w[b] + i[Xs[b]])), N, 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+ };+ return {+ position: w,+ maxHeight: k,+ arrowOffsetLeft: A.left,+ arrowOffsetTop: A.top,+ placement: S,+ triggerAnchorPoint: ne+ };+}+function fc(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 = nc(), h = r instanceof HTMLElement ? gc(r) : document.documentElement, g = h === document.documentElement, _ = window.getComputedStyle(h).position, v = !!_ && _ !== "static", y = g ? mc(n, !1, p) : hc(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 = mc(r, !0), x = oc(r);+ b.width += (x.left ?? 0) + (x.right ?? 0), b.height += (x.top ?? 0) + (x.bottom ?? 0);+ let S = ic(i), C = rc(s, m), w = rc(h, m), T;+ if ((s.tagName === "BODY" || s.tagName === "HTML") && !g) {+ let e = pc(h, !1);+ T = {+ top: -(e.top - C.top),+ left: -(e.left - C.left),+ width: 0,+ height: 0+ };+ } else T = (s.tagName === "BODY" || s.tagName === "HTML") && g ? {+ top: 0,+ left: 0,+ width: 0,+ height: 0+ } : hc(s, h, !1);+ let E = F(s, h);+ return dc(t, y, b, S, x, a, o, C, w, T, c, l, v, u, d, f, E, m);+}+function pc(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,+ left: r,+ width: i,+ height: a+ };+}+function mc(e, t, n) {+ let { top: r, left: i, width: a, height: o } = n || pc(e, t), { scrollTop: s, scrollLeft: c, clientTop: l, clientLeft: u } = document.documentElement;+ return {+ top: r + s - l,+ left: i + c - u,+ width: a,+ height: o+ };+}+function hc(e, t, n, r) {+ let i = window.getComputedStyle(e), a;+ if (i.position === "fixed") a = r || pc(e, n);+ else {+ a = mc(e, n, r);+ let i = mc(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 gc(e) {+ let t = e.offsetParent;+ if (t && t === document.body && window.getComputedStyle(t).position === "static" && !_c(t) && (t = document.documentElement), t == null) for (t = e.parentElement; t && !_c(t);) t = t.parentElement;+ return t || document.documentElement;+}+function _c(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";+}+//#endregion+//#region node_modules/react-aria/dist/private/overlays/useOverlayPosition.mjs+var vc = typeof document < "u" ? window.visualViewport : null;+function yc(e) {+ let { direction: t } = er(), { 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, C.useState)(null), x = [+ p,+ s,+ i.current,+ r.current,+ a?.current,+ o.current,+ c,+ l,+ u,+ d,+ f,+ m,+ t,+ g,+ _,+ n+ ], S = (0, C.useRef)(vc?.scale);+ (0, C.useEffect)(() => {+ m && (S.current = vc?.scale);+ }, [m]);+ let w = (0, C.useCallback)(() => {+ if (p === !1 || !m || !i.current || !r.current || !u || vc?.scale !== S.current) return;+ let e = null;+ if (o.current && se(o.current)) {+ let t = I()?.getBoundingClientRect(), n = o.current.getBoundingClientRect();+ e = {+ type: "top",+ offset: (t?.top ?? 0) - n.top+ }, e.offset > n.height / 2 && (e.type = "bottom", e.offset = (t?.bottom ?? 0) - n.bottom);+ }+ 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 = fc({+ placement: xc(s, t),+ overlayNode: i.current,+ targetNode: r.current,+ scrollNode: o.current || i.current,+ padding: c,+ shouldFlip: l,+ boundaryElement: u,+ offset: d,+ crossOffset: f,+ maxHeight: g,+ arrowSize: n ?? (a?.current ? pc(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 = I();+ 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);+ B(w, x), bc(w), ns({+ ref: i,+ onResize: w+ }), ns({+ ref: r,+ onResize: w+ });+ let T = (0, C.useRef)(!1);+ B(() => {+ let e, t = () => {+ T.current = !0, clearTimeout(e), e = setTimeout(() => {+ T.current = !1;+ }, 500), w();+ }, n = () => {+ T.current && t();+ };+ vc?.addEventListener("resize", t), vc?.addEventListener("scroll", n);+ let r = ne(oe(window), "scroll", n);+ return () => {+ vc?.removeEventListener("resize", t), vc?.removeEventListener("scroll", n), r();+ };+ }, [w]);+ let E = (0, C.useCallback)(() => {+ T.current || h?.();+ }, [h, T]);+ return mo({+ triggerRef: r,+ isOpen: m,+ onClose: h && E+ }), {+ overlayProps: { style: {+ position: y ? "absolute" : "fixed",+ top: y ? void 0 : 0,+ left: y ? void 0 : 0,+ zIndex: 1e5,+ ...y?.position,+ maxHeight: y?.maxHeight ?? "100vh"+ } },+ placement: y?.placement ?? null,+ triggerAnchorPoint: y?.triggerAnchorPoint ?? null,+ arrowProps: {+ "aria-hidden": "true",+ role: "presentation",+ style: {+ left: y?.arrowOffsetLeft,+ top: y?.arrowOffsetTop+ }+ },+ updatePosition: w+ };+}+function bc(e) {+ B(() => (window.addEventListener("resize", e, !1), () => {+ window.removeEventListener("resize", e, !1);+ }), [e]);+}+function xc(e, t) {+ return t === "rtl" ? e.replace("start", "right").replace("end", "left") : e.replace("start", "left").replace("end", "right");+}+//#endregion+//#region node_modules/react-aria/dist/private/overlays/usePopover.mjs+function Sc(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 } = Vs({+ 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 } = yc({+ ...c,+ targetRef: n,+ overlayRef: r,+ isOpen: t.isOpen,+ onClose: a && !l ? t.close : null,+ getTargetRect: c.getTargetRect ?? (t.point ? () => new DOMRect(t.point.x, t.point.y, 0, 0) : void 0)+ });+ Gs({ isDisabled: a || !t.isOpen }), (0, C.useEffect)(() => {+ if (t.isOpen && r.current) return a ? _a(i?.current ?? r.current) : ga([i?.current ?? r.current], { shouldUseInert: !0 });+ }, [+ a,+ t.isOpen,+ r,+ i+ ]);+ let { focusWithinProps: g } = na(e);+ return {+ popoverProps: V(u, f, g),+ arrowProps: p,+ underlayProps: d,+ placement: m,+ triggerAnchorPoint: h+ };+}+//#endregion+//#region node_modules/react-aria/dist/private/radio/utils.mjs+var Cc = /* @__PURE__ */ new WeakMap();+//#endregion+//#region node_modules/react-aria/dist/private/radio/useRadio.mjs+function wc(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: _ } = Lr({+ onPressStart: s,+ onPressEnd: c,+ onPressChange: l,+ onPress: u,+ onPressUp: d,+ onClick: f,+ isDisabled: p+ }), { pressProps: v, isPressed: y } = Lr({+ onPressStart: s,+ onPressEnd: c,+ onPressChange: l,+ onPressUp: d,+ onClick: f,+ isDisabled: p,+ onPress(e) {+ u?.(e), t.setSelectedValue(r), n.current?.focus();+ }+ }), { focusableProps: b } = an(V(e, { onFocus: () => t.setLastFocusedValue(r) }), n), x = V(g, b), S = xr(e, { labelable: !0 }), w = -1;+ t.selectedValue == null ? (t.lastFocusedValue === r || t.lastFocusedValue == null) && (w = 0) : t.selectedValue === r && (w = 0), p && (w = void 0);+ let { name: T, form: E, descriptionId: D, errorMessageId: O, validationBehavior: k } = Cc.get(t);+ Pi(n, t.defaultSelectedValue, t.setSelectedValue), Fi({ validationBehavior: k }, t, n);+ let A = Bi();+ return {+ labelProps: V(v, (0, C.useMemo)(() => ({+ onClick: (e) => e.preventDefault(),+ onMouseDown: (e) => e.preventDefault()+ }), [])),+ inputProps: V(S, {+ ...x,+ type: "radio",+ name: T,+ form: E,+ tabIndex: w,+ disabled: p,+ required: t.isRequired && k === "native",+ checked: m,+ value: r,+ onChange: h,+ "aria-describedby": [+ e["aria-describedby"],+ A.id,+ t.isInvalid ? O : null,+ D+ ].filter(Boolean).join(" ") || void 0+ }),+ descriptionProps: A,+ isDisabled: p,+ isSelected: m,+ isPressed: _ || y+ };+}+//#endregion+//#region node_modules/react-aria/dist/private/radio/useRadioGroup.mjs+function Tc(e, t) {+ let { name: n, form: r, isReadOnly: i, isRequired: a, isDisabled: o, orientation: s = "vertical", validationBehavior: c = "aria" } = e, { direction: l } = er(), { isInvalid: u, validationErrors: d, validationDetails: f } = t.displayValidation, { labelProps: p, fieldProps: m, descriptionProps: h, errorMessageProps: g } = ta({+ ...e,+ labelElementType: "span",+ isInvalid: t.isInvalid,+ errorMessage: e.errorMessage || d+ }), _ = xr(e, { labelable: !0 }), { focusWithinProps: v } = na({+ onBlurWithin(n) {+ e.onBlur?.(n), t.selectedValue || t.setLastFocusedValue(null);+ },+ onFocusWithin: e.onFocus,+ onFocusWithinChange: e.onFocusChange+ });+ function y(e, n) {+ let r = _i(n.currentTarget, {+ from: L(n),+ accept: (e) => e instanceof M(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 } = $t({+ shortcuts: {+ ArrowRight: (e) => y(l === "rtl" && s !== "vertical" ? "prev" : "next", e),+ ArrowLeft: (e) => y(l === "rtl" && s !== "vertical" ? "next" : "prev", e),+ ArrowDown: (e) => y("next", e),+ ArrowUp: (e) => y("prev", e)+ },+ allowRepeats: !0+ }), x = Nt(n);+ return Cc.set(t, {+ name: x,+ form: r,+ descriptionId: h.id,+ errorMessageId: g.id,+ validationBehavior: c+ }), {+ radioGroupProps: V(_, {+ role: "radiogroup",+ ...b,+ "aria-invalid": t.isInvalid || void 0,+ "aria-errormessage": e["aria-errormessage"],+ "aria-readonly": i || void 0,+ "aria-required": a || void 0,+ "aria-disabled": o || void 0,+ "aria-orientation": s,+ ...m,+ ...v+ }),+ labelProps: p,+ descriptionProps: h,+ errorMessageProps: g,+ isInvalid: u,+ validationErrors: d,+ validationDetails: f+ };+}+//#endregion+//#region node_modules/react-aria/dist/private/select/useSelect.mjs+var Ec = /* @__PURE__ */ new WeakMap();+function Dc(e, t, n) {+ let { keyboardDelegate: r, isDisabled: i, isRequired: a, name: o, form: s, validationBehavior: c = "aria" } = e, l = jo({+ usage: "search",+ sensitivity: "base"+ }), u = (0, C.useMemo)(() => r || new Da(t.collection, t.disabledKeys, n, l), [+ r,+ t.collection,+ t.disabledKeys,+ l,+ n+ ]), { menuTriggerProps: d, menuProps: f } = _o({+ isDisabled: i,+ type: "listbox"+ }, t, n), { keyboardProps: p } = $t({+ shortcuts: {+ ArrowLeft: () => {+ if (t.selectionManager.selectionMode === "multiple") return !1;+ let e = t.selectedKey == null ? u.getFirstKey?.() : u.getKeyAbove?.(t.selectedKey);+ e != null && t.setSelectedKey(e);+ },+ ArrowRight: () => {+ if (t.selectionManager.selectionMode === "multiple") return !1;+ let e = t.selectedKey == null ? u.getFirstKey?.() : u.getKeyBelow?.(t.selectedKey);+ e != null && t.setSelectedKey(e);+ }},- p: 0,- findDOMNode: null- }, a = Symbol.for("react.portal"), o = Symbol.for("react.recoverable"), s = Symbol.for("react.optimistic_key");- function c(e, t, n) {- var r = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null;- return {- $$typeof: a,- key: r == null ? null : r === s ? s : "" + r,- children: e,- containerInfo: t,- implementation: n- };+ allowRepeats: !0,+ onKeyDown: e.onKeyDown,+ onKeyUp: e.onKeyUp+ }), { typeSelectProps: m } = yo({+ 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 } = ta({+ ...e,+ labelElementType: "span",+ isInvalid: h,+ errorMessage: e.errorMessage || g+ });+ t.selectionManager.selectionMode === "multiple" && (m = {});+ let S = xr(e, { labelable: !0 }), w = V(m, d, y), T = Nt();+ return Ec.set(t, {+ isDisabled: i,+ isRequired: a,+ name: o,+ form: s,+ validationBehavior: c+ }), {+ labelProps: {+ ...v,+ onClick: () => {+ e.isDisabled || (n.current?.focus(), _t("keyboard"));+ }+ },+ triggerProps: V(S, {+ ...w,+ isDisabled: i,+ onKeyDown: Dt(w.onKeyDown, p.onKeyDown),+ onKeyUp: p.onKeyUp,+ "aria-labelledby": [+ T,+ w["aria-labelledby"],+ w["aria-label"] && !w["aria-labelledby"] ? w.id : null+ ].filter(Boolean).join(" "),+ onFocus(n) {+ t.isFocused || (e.onFocus && e.onFocus(n), e.onFocusChange && e.onFocusChange(!0), t.setFocused(!0));+ },+ onBlur(n) {+ t.isOpen || (e.onBlur && e.onBlur(n), e.onFocusChange && e.onFocusChange(!1), t.setFocused(!1));+ }+ }),+ valueProps: { id: T },+ menuProps: {+ ...f,+ onAction: void 0,+ autoFocus: t.focusStrategy || !0,+ shouldSelectOnPressUp: !0,+ shouldFocusOnHover: !0,+ disallowEmptySelection: !0,+ linkBehavior: "selection",+ onBlur: (n) => {+ F(n.currentTarget, n.relatedTarget) || (e.onBlur && e.onBlur(n), e.onFocusChange && e.onFocusChange(!1), t.setFocused(!1));+ },+ "aria-labelledby": [y["aria-labelledby"], w["aria-label"] && !y["aria-labelledby"] ? w.id : null].filter(Boolean).join(" ")+ },+ descriptionProps: b,+ errorMessageProps: x,+ isInvalid: h,+ validationErrors: g,+ validationDetails: _,+ hiddenSelectProps: {+ isDisabled: i,+ name: o,+ label: e.label,+ state: t,+ triggerRef: n,+ form: s+ }+ };+}+//#endregion+//#region node_modules/react-aria/dist/private/select/HiddenSelect.mjs+function Oc(e, t, n) {+ let r = Ec.get(t) || {}, { autoComplete: i, name: a = r.name, form: o = r.form, isDisabled: s = r.isDisabled } = e, { validationBehavior: c, isRequired: l } = r, { visuallyHiddenProps: u } = la({ style: {+ position: "fixed",+ top: 0,+ left: 0+ } });+ Pi(e.selectRef, t.defaultValue, t.setValue), Fi({+ validationBehavior: c,+ focus: () => n.current?.focus()+ }, t, e.selectRef);+ let d = t.setValue, f = (0, C.useCallback)((e) => {+ let t = L(e);+ t.multiple ? d(Array.from(t.selectedOptions, (e) => e.value)) : d(e.currentTarget.value);+ }, [d]);+ return {+ containerProps: {+ ...u,+ "aria-hidden": !0,+ "data-react-aria-prevent-focus": !0,+ "data-a11y-ignore": "aria-hidden-focus"+ },+ inputProps: { style: { display: "none" } },+ selectProps: {+ tabIndex: -1,+ autoComplete: i,+ disabled: s,+ multiple: t.selectionManager.selectionMode === "multiple",+ required: c === "native" && l,+ name: a,+ form: o,+ value: t.value ?? "",+ onChange: f,+ onInput: f+ }+ };+}+function kc(e) {+ let { state: t, triggerRef: n, label: r, name: i, form: a, isDisabled: o } = e, s = (0, C.useRef)(null), c = (0, C.useRef)(null), { containerProps: l, selectProps: u } = Oc({+ ...e,+ selectRef: t.collection.size <= 300 ? s : c+ }, t, n), d = Array.isArray(t.value) ? t.value : [t.value];+ if (t.collection.size <= 300) return /*#__PURE__*/ C.createElement("div", {+ ...l,+ "data-testid": "hidden-select-container"+ }, /*#__PURE__*/ C.createElement("label", null, r, /*#__PURE__*/ C.createElement("select", {+ ...u,+ ref: s+ }, /*#__PURE__*/ C.createElement("option", {+ value: "",+ label: "\xA0"+ }, "\xA0"), [...t.collection.getKeys()].map((e) => {+ let n = t.collection.getItem(e);+ if (n && n.type === "item") return /*#__PURE__*/ C.createElement("option", {+ key: n.key,+ value: n.key+ }, n.textValue);+ }), t.collection.size === 0 && i && d.map((e, t) => /*#__PURE__*/ C.createElement("option", {+ key: t,+ value: e ?? ""+ })))));+ if (i) {+ let { validationBehavior: e } = Ec.get(t) || {};+ d.length === 0 && (d = [null]);+ let n = d.map((t, n) => {+ let r = {+ type: "hidden",+ autoComplete: u.autoComplete,+ name: i,+ form: a,+ disabled: o,+ value: t ?? ""+ };+ return e === "native" ? /*#__PURE__*/ C.createElement("input", {+ key: n,+ ...r,+ ref: n === 0 ? c : null,+ style: { display: "none" },+ type: "text",+ required: n === 0 && u.required,+ onChange: () => {}+ }) : /*#__PURE__*/ C.createElement("input", {+ key: n,+ ...r,+ ref: n === 0 ? c : null+ });+ });+ return /*#__PURE__*/ C.createElement(C.Fragment, null, n);}- var l = t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;- function u(e, t) {- if (e === "font") return "";- if (typeof t == "string") return t === "use-credentials" ? t : "";+ return null;+}+//#endregion+//#region node_modules/react-aria/dist/private/switch/useSwitch.mjs+function Ac(e, t, n) {+ let { labelProps: r, inputProps: i, isSelected: a, ...o } = Qi(e, t, n);+ return {+ labelProps: r,+ inputProps: {+ ...i,+ role: "switch",+ checked: a+ },+ isSelected: a,+ ...o+ };+}+//#endregion+//#region node_modules/scheduler/cjs/scheduler.production.js+var jc = /* @__PURE__ */ l(((e) => {+ function t(e, t) {+ var n = e.length;+ e.push(t);+ a: for (; 0 < n;) {+ var r = n - 1 >>> 1, a = e[r];+ if (0 < i(a, t)) e[r] = t, e[n] = a, n = r;+ else break a;+ }}- e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = i, e.browser = function(e) {- return {- $$typeof: o,- _reason: e+ function n(e) {+ return e.length === 0 ? null : e[0];+ }+ function r(e) {+ if (e.length === 0) return null;+ var t = e[0], n = e.pop();+ if (n !== t) {+ e[0] = n;+ a: for (var r = 0, a = e.length, o = a >>> 1; r < o;) {+ var s = 2 * (r + 1) - 1, c = e[s], l = s + 1, u = e[l];+ if (0 > i(c, n)) l < a && 0 > i(u, c) ? (e[r] = u, e[l] = n, r = l) : (e[r] = c, e[s] = n, r = s);+ else if (l < a && 0 > i(u, n)) e[r] = u, e[l] = n, r = l;+ else break a;+ }+ }+ return t;+ }+ function i(e, t) {+ var n = e.sortIndex - t.sortIndex;+ return n === 0 ? e.id - t.id : n;+ }+ if (e.unstable_now = void 0, typeof performance == "object" && typeof performance.now == "function") {+ var a = performance;+ e.unstable_now = function() {+ return a.now();};- }, e.createPortal = function(e, t) {- var r = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null;- if (!t || t.nodeType !== 1 && t.nodeType !== 9 && t.nodeType !== 11) throw Error(n(299));- return c(e, t, null, r);- }, e.flushSync = function(e) {- var t = l.T, n = i.p;- try {- if (l.T = null, i.p = 2, e) return e();- } finally {- l.T = t, i.p = n, i.d.f();+ } else {+ var o = Date, s = o.now();+ e.unstable_now = function() {+ return o.now() - s;+ };+ }+ var c = [], l = [], u = 1, d = null, f = 3, p = !1, m = !1, h = !1, g = !1, _ = typeof setTimeout == "function" ? setTimeout : null, v = typeof clearTimeout == "function" ? clearTimeout : null, y = typeof setImmediate < "u" ? setImmediate : null;+ function b(e) {+ for (var i = n(l); i !== null;) {+ if (i.callback === null) r(l);+ else if (i.startTime <= e) r(l), i.sortIndex = i.expirationTime, t(c, i);+ else break;+ i = n(l);}- }, e.preconnect = function(e, t) {- typeof e == "string" && (t ? (t = t.crossOrigin, t = typeof t == "string" ? t === "use-credentials" ? t : "" : void 0) : t = null, i.d.C(e, t));- }, e.prefetchDNS = function(e) {- typeof e == "string" && i.d.D(e);- }, e.preinit = function(e, t) {- if (typeof e == "string" && t && typeof t.as == "string") {- var n = t.as, r = u(n, t.crossOrigin), a = typeof t.integrity == "string" ? t.integrity : void 0, o = typeof t.fetchPriority == "string" ? t.fetchPriority : void 0;- n === "style" ? i.d.S(e, typeof t.precedence == "string" ? t.precedence : void 0, {- crossOrigin: r,- integrity: a,- fetchPriority: o- }) : n === "script" && i.d.X(e, {- crossOrigin: r,- integrity: a,- fetchPriority: o,- nonce: typeof t.nonce == "string" ? t.nonce : void 0- });+ }+ function x(e) {+ if (h = !1, b(e), !m) {+ if (n(c) !== null) m = !0, S || (S = !0, O());+ else {+ var t = n(l);+ t !== null && j(x, t.startTime - e);+ }}- }, e.preinitModule = function(e, t) {- if (typeof e == "string") {- if (typeof t == "object" && t) {- if (t.as == null || t.as === "script") {- var n = u(t.as, t.crossOrigin);- i.d.M(e, {- crossOrigin: n,- integrity: typeof t.integrity == "string" ? t.integrity : void 0,- nonce: typeof t.nonce == "string" ? t.nonce : void 0,- fetchPriority: typeof t.fetchPriority == "string" ? t.fetchPriority : void 0- });+ }+ var S = !1, C = -1, w = 5, T = -1;+ function E() {+ return g ? !0 : !(e.unstable_now() - T < w);+ }+ function D() {+ if (g = !1, S) {+ var t = e.unstable_now();+ T = t;+ var i = !0;+ try {+ a: {+ m = !1, h && (h = !1, v(C), C = -1), p = !0;+ var a = f;+ try {+ b: {+ for (b(t), d = n(c); d !== null && !(d.expirationTime > t && E());) {+ var o = d.callback;+ if (typeof o == "function") {+ d.callback = null, f = d.priorityLevel;+ var s = o(d.expirationTime <= t);+ if (t = e.unstable_now(), typeof s == "function") {+ d.callback = s, b(t), i = !0;+ break b;+ }+ d === n(c) && r(c), b(t);+ } else r(c);+ d = n(c);+ }+ if (d !== null) i = !0;+ else {+ var u = n(l);+ u !== null && j(x, u.startTime - t), i = !1;+ }+ }+ break a;+ } finally {+ d = null, f = a, p = !1;+ }+ i = void 0;}- } else t ?? i.d.M(e);+ } finally {+ i ? O() : S = !1;+ }}- }, e.preload = function(e, t) {- if (typeof e == "string" && typeof t == "object" && t && typeof t.as == "string") {- var n = t.as, r = u(n, t.crossOrigin);- i.d.L(e, n, {- crossOrigin: r,- integrity: typeof t.integrity == "string" ? t.integrity : void 0,- nonce: typeof t.nonce == "string" ? t.nonce : void 0,- type: typeof t.type == "string" ? t.type : void 0,- fetchPriority: typeof t.fetchPriority == "string" ? t.fetchPriority : void 0,- referrerPolicy: typeof t.referrerPolicy == "string" ? t.referrerPolicy : void 0,- imageSrcSet: typeof t.imageSrcSet == "string" ? t.imageSrcSet : void 0,- imageSizes: typeof t.imageSizes == "string" ? t.imageSizes : void 0,- media: typeof t.media == "string" ? t.media : void 0- });+ }+ var O;+ if (typeof y == "function") O = function() {+ y(D);+ };+ else if (typeof MessageChannel < "u") {+ var k = new MessageChannel(), A = k.port2;+ k.port1.onmessage = D, O = function() {+ A.postMessage(null);+ };+ } else O = function() {+ _(D, 0);+ };+ function j(t, n) {+ C = _(function() {+ t(e.unstable_now());+ }, n);+ }+ e.unstable_IdlePriority = 5, e.unstable_ImmediatePriority = 1, e.unstable_LowPriority = 4, e.unstable_NormalPriority = 3, e.unstable_Profiling = null, e.unstable_UserBlockingPriority = 2, e.unstable_cancelCallback = function(e) {+ e.callback = null;+ }, e.unstable_forceFrameRate = function(e) {+ 0 > e || 125 < e ? console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported") : w = 0 < e ? Math.floor(1e3 / e) : 5;+ }, e.unstable_getCurrentPriorityLevel = function() {+ return f;+ }, e.unstable_next = function(e) {+ switch (f) {+ case 1:+ case 2:+ case 3:+ var t = 3;+ break;+ default: t = f;+ }+ var n = f;+ f = t;+ try {+ return e();+ } finally {+ f = n;}- }, e.preloadModule = function(e, t) {- if (typeof e == "string") {- if (t) {- var n = u(t.as, t.crossOrigin);- i.d.m(e, {- as: typeof t.as == "string" && t.as !== "script" ? t.as : void 0,- crossOrigin: n,- integrity: typeof t.integrity == "string" ? t.integrity : void 0,- nonce: typeof t.nonce == "string" ? t.nonce : void 0,- fetchPriority: typeof t.fetchPriority == "string" ? t.fetchPriority : void 0- });- } else i.d.m(e);+ }, e.unstable_requestPaint = function() {+ g = !0;+ }, e.unstable_runWithPriority = function(e, t) {+ switch (e) {+ case 1:+ case 2:+ case 3:+ case 4:+ case 5: break;+ default: e = 3;}- }, e.requestFormReset = function(e) {- i.d.r(e);- }, e.unstable_batchedUpdates = function(e, t) {- return e(t);- }, e.useFormState = function(e, t, n) {- return l.H.useFormState(e, t, n);- }, e.useFormStatus = function() {- return l.H.useHostTransitionStatus();- }, e.version = "19.3.0";-})), h = /* @__PURE__ */ s(((e, t) => {- function n() {- if (!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE != "function")) try {- __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n);- } catch (e) {- console.error(e);+ var n = f;+ f = e;+ try {+ return t();+ } finally {+ f = n;}- }- n(), t.exports = m();-})), g = /* @__PURE__ */ s(((e) => {- var t = d(), n = p(), r = h();+ }, e.unstable_scheduleCallback = function(r, i, a) {+ var o = e.unstable_now();+ switch (typeof a == "object" && a ? (a = a.delay, a = typeof a == "number" && 0 < a ? o + a : o) : a = o, r) {+ case 1:+ var s = -1;+ break;+ case 2:+ s = 250;+ break;+ case 5:+ s = 1073741823;+ break;+ case 4:+ s = 1e4;+ break;+ default: s = 5e3;+ }+ return s = a + s, r = {+ id: u++,+ callback: i,+ priorityLevel: r,+ startTime: a,+ expirationTime: s,+ sortIndex: -1+ }, a > o ? (r.sortIndex = a, t(l, r), n(c) === null && r === n(l) && (h ? (v(C), C = -1) : h = !0, j(x, a - o))) : (r.sortIndex = s, t(c, r), m || p || (m = !0, S || (S = !0, O()))), r;+ }, e.unstable_shouldYield = E, e.unstable_wrapCallback = function(e) {+ var t = f;+ return function() {+ var n = f;+ f = t;+ try {+ return e.apply(this, arguments);+ } finally {+ f = n;+ }+ };+ };+})), Mc = /* @__PURE__ */ l(((e, t) => {+ t.exports = jc();+})), Nc = /* @__PURE__ */ l(((e) => {+ var t = Mc(), n = S(), r = dn();function i(e) {var t = "https://react.dev/errors/" + e;if (1 < arguments.length) {@@ -737,50 +6458,50 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrif (n.tag !== 3) throw Error(i(188));return n.stateNode.current === n ? e : t;}- function f(e) {+ function d(e) {var t = e.tag;if (t === 5 || t === 26 || t === 27 || t === 6) return e;for (e = e.child; e !== null;) {- if (t = f(e), t !== null) return t;+ if (t = d(e), t !== null) return t;e = e.sibling;}return null;}- function m(e, t, n, r, i, a) {+ function f(e, t, n, r, i, a) {for (; e !== null;) {- if ((e.tag === 5 || e.tag === 27 || e.tag === 6) && n(e, r, i, a) || (e.tag !== 22 || e.memoizedState === null) && (t || e.tag !== 5 && e.tag !== 27) && m(e.child, t, n, r, i, a)) return !0;+ if ((e.tag === 5 || e.tag === 27 || e.tag === 6) && n(e, r, i, a) || (e.tag !== 22 || e.memoizedState === null) && (t || e.tag !== 5 && e.tag !== 27) && f(e.child, t, n, r, i, a)) return !0;e = e.sibling;}return !1;}- function g(e) {+ function p(e) {for (e = e.return; e !== null;) {if (e.tag === 3 || e.tag === 5 || e.tag === 27) return e;e = e.return;}return null;}- function _(e) {+ function m(e) {var t = !1;for (e = e.return; e !== null && (e.tag === 4 && (t = !0), e.tag !== 3 && e.tag !== 5 && e.tag !== 27);) e = e.return;return t;}- function v(e) {- var t = [null, null], n = g(e);- return n === null || y(t, e, n.child, { foundSelf: !1 }), t;+ function h(e) {+ var t = [null, null], n = p(e);+ return n === null || g(t, e, n.child, { foundSelf: !1 }), t;}- function y(e, t, n, r) {+ function g(e, t, n, r) {for (; n !== null;) {if (n === t) r.foundSelf = !0;else if (n.tag === 5 || n.tag === 27 || n.tag === 6) {if (r.foundSelf) return e[1] = n, !0;e[0] = n;- } else if ((n.tag !== 22 || n.memoizedState === null) && y(e, t, n.child, r)) return !0;+ } else if ((n.tag !== 22 || n.memoizedState === null) && g(e, t, n.child, r)) return !0;n = n.sibling;}return !1;}- function b(e) {+ function _(e) {switch (e.tag) {case 5:case 27:@@ -789,21 +6510,21 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrdefault: throw Error(i(559));}}- var x = null, S = null;- function ee(e, t, n) {- return e === n || e === t && (x = e, !0);+ var v = null, y = null;+ function b(e, t, n) {+ return e === n || e === t && (v = e, !0);}- function C(e, t, n) {- return e === n ? (S = e, !1) : e === t && (S !== null && (x = e), !0);+ function x(e, t, n) {+ return e === n ? (y = e, !1) : e === t && (y !== null && (v = e), !0);}- function w(e) {+ function C(e) {if (e === null) return null;doe = e === null ? null : e.return;while (e && e.tag !== 5 && e.tag !== 27 && e.tag !== 3);return e || null;}- function te(e, t, n) {+ function w(e, t, n) {for (var r = 0, i = e; i; i = n(i)) r++;i = 0;for (var a = t; a; a = n(a)) i++;@@ -815,58 +6536,58 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr}return null;}- var T = Object.assign, ne = Symbol.for("react.element"), re = Symbol.for("react.transitional.element"), ie = Symbol.for("react.portal"), ae = Symbol.for("react.fragment"), oe = Symbol.for("react.strict_mode"), se = Symbol.for("react.profiler"), ce = Symbol.for("react.consumer"), le = Symbol.for("react.context"), E = Symbol.for("react.forward_ref"), ue = Symbol.for("react.suspense"), de = Symbol.for("react.suspense_list"), fe = Symbol.for("react.memo"), pe = Symbol.for("react.lazy"), me = Symbol.for("react.activity"), he = Symbol.for("react.legacy_hidden"), ge = Symbol.for("react.memo_cache_sentinel"), _e = Symbol.for("react.view_transition"), ve = Symbol.for("react.recoverable"), ye = Symbol.iterator;- function be(e) {- return typeof e != "object" || !e ? null : (e = ye && e[ye] || e["@@iterator"], typeof e == "function" ? e : null);+ var T = Object.assign, E = Symbol.for("react.element"), D = Symbol.for("react.transitional.element"), O = Symbol.for("react.portal"), k = Symbol.for("react.fragment"), A = Symbol.for("react.strict_mode"), j = Symbol.for("react.profiler"), M = Symbol.for("react.consumer"), N = Symbol.for("react.context"), ee = Symbol.for("react.forward_ref"), te = Symbol.for("react.suspense"), P = Symbol.for("react.suspense_list"), ne = Symbol.for("react.memo"), re = Symbol.for("react.lazy"), ie = Symbol.for("react.activity"), ae = Symbol.for("react.legacy_hidden"), F = Symbol.for("react.memo_cache_sentinel"), I = Symbol.for("react.view_transition"), L = Symbol.for("react.recoverable"), oe = Symbol.iterator;+ function se(e) {+ return typeof e != "object" || !e ? null : (e = oe && e[oe] || e["@@iterator"], typeof e == "function" ? e : null);}- var xe = Symbol.for("react.client.reference");- function Se(e) {+ var ce = Symbol.for("react.client.reference");+ function le(e) {if (e == null) return null;- if (typeof e == "function") return e.$$typeof === xe ? null : e.displayName || e.name || null;+ if (typeof e == "function") return e.$$typeof === ce ? null : e.displayName || e.name || null;if (typeof e == "string") return e;switch (e) {- case ae: return "Fragment";- case se: return "Profiler";- case oe: return "StrictMode";- case ue: return "Suspense";- case de: return "SuspenseList";- case me: return "Activity";- case _e: return "ViewTransition";+ case k: return "Fragment";+ case j: return "Profiler";+ case A: return "StrictMode";+ case te: return "Suspense";+ case P: return "SuspenseList";+ case ie: return "Activity";+ case I: return "ViewTransition";}if (typeof e == "object") switch (e.$$typeof) {- case ie: return "Portal";- case le: return e.displayName || "Context";- case ce: return (e._context.displayName || "Context") + ".Consumer";- case E:+ case O: return "Portal";+ case N: return e.displayName || "Context";+ case M: return (e._context.displayName || "Context") + ".Consumer";+ case ee:var t = e.render;return e = e.displayName, e ||= (e = t.displayName || t.name || "", e === "" ? "ForwardRef" : "ForwardRef(" + e + ")"), e;- case fe: return t = e.displayName || null, t === null ? Se(e.type) || "Memo" : t;- case pe:+ case ne: return t = e.displayName || null, t === null ? le(e.type) || "Memo" : t;+ case re:t = e._payload, e = e._init;try {- return Se(e(t));+ return le(e(t));} catch {}}return null;}- var Ce = Array.isArray, D = n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, O = r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, k = {+ var ue = Array.isArray, R = n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, z = r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, de = {pending: !1,data: null,method: null,action: null- }, we = [], Te = -1;- function Ee(e) {+ }, fe = [], pe = -1;+ function me(e) {return { current: e };}- function De(e) {- 0 > Te || (e.current = we[Te], we[Te] = null, Te--);+ function he(e) {+ 0 > pe || (e.current = fe[pe], fe[pe] = null, pe--);}- function A(e, t) {- Te++, we[Te] = e.current, e.current = t;+ function B(e, t) {+ pe++, fe[pe] = e.current, e.current = t;}- var Oe = Ee(null), ke = Ee(null), Ae = Ee(null), je = Ee(null);- function j(e, t) {- switch (A(Ae, t), A(ke, e), A(Oe, null), t.nodeType) {+ var ge = me(null), _e = me(null), ve = me(null), ye = me(null);+ function be(e, t) {+ switch (B(ve, t), B(_e, e), B(ge, null), t.nodeType) {case 9:case 11:e = (e = t.documentElement) && (e = e.namespaceURI) ? up(e) : 0;@@ -882,34 +6603,34 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrdefault: e = 0;}}- De(Oe), A(Oe, e);+ he(ge), B(ge, e);}- function Me() {- De(Oe), De(ke), De(Ae);+ function xe() {+ he(ge), he(_e), he(ve);}- function Ne(e) {+ function Se(e) {var t = e.memoizedState;- t !== null && (sh._currentValue = t.memoizedState, A(je, e)), t = Oe.current;+ t !== null && (sh._currentValue = t.memoizedState, B(ye, e)), t = ge.current;var n = dp(t, e.type);- t !== n && (A(ke, e), A(Oe, n));+ t !== n && (B(_e, e), B(ge, n));}- function Pe(e) {- ke.current === e && (De(Oe), De(ke)), je.current === e && (De(je), sh._currentValue = k);+ function Ce(e) {+ _e.current === e && (he(ge), he(_e)), ye.current === e && (he(ye), sh._currentValue = de);}- var Fe, Ie;- function Le(e) {- if (Fe === void 0) try {+ var we, Te;+ function Ee(e) {+ if (we === void 0) try {throw Error();} catch (e) {var t = e.stack.trim().match(/\n( *(at )?)/);- Fe = t && t[1] || "", Ie = -1 < e.stack.indexOf("\n at") ? " (<anonymous>)" : -1 < e.stack.indexOf("@") ? "@unknown:0:0" : "";+ we = t && t[1] || "", Te = -1 < e.stack.indexOf("\n at") ? " (<anonymous>)" : -1 < e.stack.indexOf("@") ? "@unknown:0:0" : "";}- return "\n" + Fe + e + Ie;+ return "\n" + we + e + Te;}- var Re = !1;- function ze(e, t) {- if (!e || Re) return "";- Re = !0;+ var De = !1;+ function Oe(e, t) {+ if (!e || De) return "";+ De = !0;var n = Error.prepareStackTrace;Error.prepareStackTrace = void 0;try {@@ -980,50 +6701,50 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr}}} finally {- Re = !1, Error.prepareStackTrace = n;+ De = !1, Error.prepareStackTrace = n;}- return (n = e ? e.displayName || e.name : "") ? Le(n) : "";+ return (n = e ? e.displayName || e.name : "") ? Ee(n) : "";}- function Be(e, t) {+ function ke(e, t) {switch (e.tag) {case 26:case 27:- case 5: return Le(e.type);- case 16: return Le("Lazy");- case 13: return e.child !== t && t !== null ? Le("Suspense Fallback") : Le("Suspense");- case 19: return Le("SuspenseList");+ case 5: return Ee(e.type);+ case 16: return Ee("Lazy");+ case 13: return e.child !== t && t !== null ? Ee("Suspense Fallback") : Ee("Suspense");+ case 19: return Ee("SuspenseList");case 0:- case 15: return ze(e.type, !1);- case 11: return ze(e.type.render, !1);- case 1: return ze(e.type, !0);- case 31: return Le("Activity");- case 30: return Le("ViewTransition");+ case 15: return Oe(e.type, !1);+ case 11: return Oe(e.type.render, !1);+ case 1: return Oe(e.type, !0);+ case 31: return Ee("Activity");+ case 30: return Ee("ViewTransition");default: return "";}}- function Ve(e) {+ function Ae(e) {try {var t = "", n = null;do- t += Be(e, n), n = e, e = e.return;+ t += ke(e, n), n = e, e = e.return;while (e);return t;} catch (e) {return "\nError generating stack: " + e.message + "\n" + e.stack;}}- var He = Object.prototype.hasOwnProperty, M = t.unstable_scheduleCallback, Ue = t.unstable_cancelCallback, We = t.unstable_shouldYield, Ge = t.unstable_requestPaint, Ke = t.unstable_now, qe = t.unstable_getCurrentPriorityLevel, Je = t.unstable_ImmediatePriority, Ye = t.unstable_UserBlockingPriority, N = t.unstable_NormalPriority, Xe = t.unstable_LowPriority, Ze = t.unstable_IdlePriority, Qe = t.log, $e = t.unstable_setDisableYieldValue, et = null, tt = null;- function nt(e) {- if (typeof Qe == "function" && $e(e), tt && typeof tt.setStrictMode == "function") try {- tt.setStrictMode(et, e);+ var je = Object.prototype.hasOwnProperty, Me = t.unstable_scheduleCallback, Ne = t.unstable_cancelCallback, Pe = t.unstable_shouldYield, Fe = t.unstable_requestPaint, Ie = t.unstable_now, Le = t.unstable_getCurrentPriorityLevel, Re = t.unstable_ImmediatePriority, ze = t.unstable_UserBlockingPriority, Be = t.unstable_NormalPriority, Ve = t.unstable_LowPriority, He = t.unstable_IdlePriority, Ue = t.log, We = t.unstable_setDisableYieldValue, Ge = null, Ke = null;+ function qe(e) {+ if (typeof Ue == "function" && We(e), Ke && typeof Ke.setStrictMode == "function") try {+ Ke.setStrictMode(Ge, e);} catch {}}- var rt = Math.clz32 ? Math.clz32 : ot, it = Math.log, at = Math.LN2;- function ot(e) {- return e >>>= 0, e === 0 ? 32 : 31 - (it(e) / at | 0) | 0;+ var Je = Math.clz32 ? Math.clz32 : Ze, Ye = Math.log, Xe = Math.LN2;+ function Ze(e) {+ return e >>>= 0, e === 0 ? 32 : 31 - (Ye(e) / Xe | 0) | 0;}- var st = 256, ct = 262144, lt = 4194304;- function ut(e) {+ var Qe = 256, $e = 262144, et = 4194304;+ function tt(e) {var t = e & 42;if (t !== 0) return t;switch (e & -e) {@@ -1061,27 +6782,27 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrdefault: return e;}}- function dt(e, t, n) {+ function nt(e, t, n) {var r = e.pendingLanes;if (r === 0) return 0;var i = 0, a = e.suspendedLanes, o = e.pingedLanes;e = e.warmLanes;var s = r & 134217727;- return s === 0 ? (s = r & ~a, s === 0 ? o === 0 ? n || (n = r & ~e, n !== 0 && (i = ut(n))) : i = ut(o) : i = ut(s)) : (r = s & ~a, r === 0 ? (o &= s, o === 0 ? n || (n = s & ~e, n !== 0 && (i = ut(n))) : i = ut(o)) : i = ut(r)), i === 0 ? 0 : t !== 0 && t !== i && (t & a) === 0 && (a = i & -i, n = t & -t, a >= n || a === 32 && n & 4194048) ? t : i;+ return s === 0 ? (s = r & ~a, s === 0 ? o === 0 ? n || (n = r & ~e, n !== 0 && (i = tt(n))) : i = tt(o) : i = tt(s)) : (r = s & ~a, r === 0 ? (o &= s, o === 0 ? n || (n = s & ~e, n !== 0 && (i = tt(n))) : i = tt(o)) : i = tt(r)), i === 0 ? 0 : t !== 0 && t !== i && (t & a) === 0 && (a = i & -i, n = t & -t, a >= n || a === 32 && n & 4194048) ? t : i;}- function ft(e, t) {+ function rt(e, t) {return (e.pendingLanes & ~(e.suspendedLanes & ~e.pingedLanes) & t) === 0;}- function pt(e, t) {+ function it(e, t) {t & 8 && (t |= t & 32);var n = e.entangledLanes;if (n !== 0) for (e = e.entanglements, n &= t; 0 < n;) {- var r = 31 - rt(n), i = 1 << r;+ var r = 31 - Je(n), i = 1 << r;t |= e[r], n &= ~i;}return t;}- function mt(e, t) {+ function at(e, t) {switch (e) {case 1:case 2:@@ -1117,23 +6838,23 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrdefault: return -1;}}- function ht() {- var e = lt;- return lt <<= 1, !(lt & 62914560) && (lt = 4194304), e;+ function ot() {+ var e = et;+ return et <<= 1, !(et & 62914560) && (et = 4194304), e;}- function gt(e) {+ function st(e) {for (var t = [], n = 0; 31 > n; n++) t.push(e);return t;}- function _t(e, t) {+ function ct(e, t) {e.pendingLanes |= t, t !== 268435456 && (e.suspendedLanes = 0, e.pingedLanes = 0, e.warmLanes = 0);}- function vt(e, t, n, r, i, a) {+ function lt(e, t, n, r, i, a) {var o = e.pendingLanes;e.pendingLanes = n, e.suspendedLanes = 0, e.pingedLanes = 0, e.warmLanes = 0, e.expiredLanes &= n, e.entangledLanes &= n, e.errorRecoveryDisabledLanes &= n, e.shellSuspendCounter = 0;var s = e.entanglements, c = e.expirationTimes, l = e.hiddenUpdates;for (n = o & ~n; 0 < n;) {- var u = 31 - rt(n), d = 1 << u;+ var u = 31 - Je(n), d = 1 << u;s[u] = 0, c[u] = -1;var f = l[u];if (f !== null) for (l[u] = null, u = 0; u < f.length; u++) {@@ -1142,25 +6863,25 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr}n &= ~d;}- r !== 0 && yt(e, r, 0), a !== 0 && i === 0 && e.tag !== 0 && (e.suspendedLanes |= a & ~(o & ~t));+ r !== 0 && ut(e, r, 0), a !== 0 && i === 0 && e.tag !== 0 && (e.suspendedLanes |= a & ~(o & ~t));}- function yt(e, t, n) {+ function ut(e, t, n) {e.pendingLanes |= t, e.suspendedLanes &= ~t;- var r = 31 - rt(t);+ var r = 31 - Je(t);e.entangledLanes |= t, e.entanglements[r] = e.entanglements[r] | 1073741824 | n & 261930;}- function bt(e, t) {+ function dt(e, t) {var n = e.entangledLanes |= t;for (e = e.entanglements; n;) {- var r = 31 - rt(n), i = 1 << r;+ var r = 31 - Je(n), i = 1 << r;i & t | e[r] & t && (e[r] |= t), n &= ~i;}}- function xt(e, t) {+ function ft(e, t) {var n = t & -t;- return n = n & 42 ? 1 : St(n), (n & (e.suspendedLanes | t)) === 0 ? n : 0;+ return n = n & 42 ? 1 : pt(n), (n & (e.suspendedLanes | t)) === 0 ? n : 0;}- function St(e) {+ function pt(e) {switch (e) {case 2:e = 1;@@ -1198,32 +6919,32 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr}return e;}- function Ct(e) {+ function mt(e) {return e &= -e, 2 < e ? 8 < e ? e & 134217727 ? 32 : 268435456 : 8 : 2;}- function wt() {- var e = O.p;+ function ht() {+ var e = z.p;return e === 0 ? (e = window.event, e === void 0 ? 32 : Ch(e.type)) : e;}- function P(e, t) {- var n = O.p;+ function gt(e, t) {+ var n = z.p;try {- return O.p = e, t();+ return z.p = e, t();} finally {- O.p = n;+ z.p = n;}}- var Tt = Math.random().toString(36).slice(2), Et = "__reactFiber$" + Tt, Dt = "__reactProps$" + Tt, Ot = "__reactContainer$" + Tt, kt = "__reactEvents$" + Tt, At = "__reactListeners$" + Tt, jt = "__reactHandles$" + Tt, Mt = "__reactResources$" + Tt, Nt = "__reactMarker$" + Tt, Pt = "__reactLoad$" + Tt;- function Ft(e) {- delete e[Et], delete e[Dt], delete e[At], delete e[jt];+ var _t = Math.random().toString(36).slice(2), vt = "__reactFiber$" + _t, yt = "__reactProps$" + _t, bt = "__reactContainer$" + _t, xt = "__reactEvents$" + _t, St = "__reactListeners$" + _t, Ct = "__reactHandles$" + _t, wt = "__reactResources$" + _t, Tt = "__reactMarker$" + _t, Et = "__reactLoad$" + _t;+ function Dt(e) {+ delete e[vt], delete e[yt], delete e[St], delete e[Ct];}- function It(e) {+ function Ot(e) {var t;- if (t = e[Et]) return t;+ if (t = e[vt]) return t;for (var n = e.parentNode; n;) {- if (t = n[Ot] || n[Et]) {+ if (t = n[bt] || n[vt]) {if (n = t.alternate, t.child !== null || n !== null && n.child !== null) for (e = fm(e); e !== null;) {- if (n = e[Et]) return n;+ if (n = e[vt]) return n;e = fm(e);}return t;@@ -1232,49 +6953,49 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr}return null;}- function Lt(e) {- if (e = e[Et] || e[Ot]) {+ function kt(e) {+ if (e = e[vt] || e[bt]) {var t = e.tag;if (t === 5 || t === 6 || t === 13 || t === 31 || t === 26 || t === 27 || t === 3) return e;}return null;}- function Rt(e) {+ function At(e) {var t = e.tag;if (t === 5 || t === 26 || t === 27 || t === 6) return e.stateNode;throw Error(i(33));}- function zt(e) {- var t = e[Mt];- return t ||= e[Mt] = {+ function jt(e) {+ var t = e[wt];+ return t ||= e[wt] = {hoistableStyles: /* @__PURE__ */ new Map(),hoistableScripts: /* @__PURE__ */ new Map()}, t;}- function Bt(e) {- e[Nt] = !0;+ function Mt(e) {+ e[Tt] = !0;}- function Vt(e) {- e[Pt] = void 0;+ function Nt(e) {+ e[Et] = void 0;}- var Ht = /* @__PURE__ */ new Set(), Ut = {};- function Wt(e, t) {- Gt(e, t), Gt(e + "Capture", t);+ var Pt = /* @__PURE__ */ new Set(), Ft = {};+ function It(e, t) {+ Lt(e, t), Lt(e + "Capture", t);}- function Gt(e, t) {- for (Ut[e] = t, e = 0; e < t.length; e++) Ht.add(t[e]);+ function Lt(e, t) {+ for (Ft[e] = t, e = 0; e < t.length; e++) Pt.add(t[e]);}- var Kt = RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"), qt = {}, Jt = {};- function Yt(e) {- return He.call(Jt, e) ? !0 : He.call(qt, e) ? !1 : Kt.test(e) ? Jt[e] = !0 : (qt[e] = !0, !1);+ var Rt = RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"), zt = {}, V = {};+ function Bt(e) {+ return je.call(V, e) ? !0 : je.call(zt, e) ? !1 : Rt.test(e) ? V[e] = !0 : (zt[e] = !0, !1);}- var F = !1;- function Xt() {- var e = F;- return F = !1, e;+ var H = !1;+ function Vt() {+ var e = H;+ return H = !1, e;}- function Zt(e, t, n) {- if (Yt(t)) {+ function Ht(e, t, n) {+ if (Bt(t)) {if (n === null) e.removeAttribute(t);else {switch (typeof n) {@@ -1294,7 +7015,7 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr}}}- function Qt(e, t, n) {+ function Ut(e, t, n) {if (n === null) e.removeAttribute(t);else {switch (typeof n) {@@ -1308,7 +7029,7 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescre.setAttribute(t, n);}}- function $t(e, t, n, r) {+ function Wt(e, t, n, r) {if (r === null) e.removeAttribute(n);else {switch (typeof r) {@@ -1322,7 +7043,7 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescre.setAttributeNS(t, n, r);}}- function I(e) {+ function Gt(e) {switch (typeof e) {case "bigint":case "boolean":@@ -1333,11 +7054,11 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrdefault: return "";}}- function en(e) {+ function Kt(e) {var t = e.type;return (e = e.nodeName) && e.toLowerCase() === "input" && (t === "checkbox" || t === "radio");}- function tn(e, t, n) {+ function qt(e, t, n) {var r = Object.getOwnPropertyDescriptor(e.constructor.prototype, t);if (!e.hasOwnProperty(t) && r !== void 0 && typeof r.get == "function" && typeof r.set == "function") {var i = r.get, a = r.set;@@ -1362,48 +7083,48 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr};}}- function nn(e) {+ function Jt(e) {if (!e._valueTracker) {- var t = en(e) ? "checked" : "value";- e._valueTracker = tn(e, t, "" + e[t]);+ var t = Kt(e) ? "checked" : "value";+ e._valueTracker = qt(e, t, "" + e[t]);}}- function rn(e) {+ function Yt(e) {if (!e) return !1;var t = e._valueTracker;if (!t) return !0;var n = t.getValue(), r = "";- return e && (r = en(e) ? e.checked ? "true" : "false" : e.value), e = r, e !== n && (t.setValue(e), !0);+ return e && (r = Kt(e) ? e.checked ? "true" : "false" : e.value), e = r, e !== n && (t.setValue(e), !0);}- var an = /[\n"\\]/g;- function on(e) {- return e.replace(an, function(e) {+ var Xt = /[\n"\\]/g;+ function Zt(e) {+ return e.replace(Xt, function(e) {return "\\" + e.charCodeAt(0).toString(16) + " ";});}- function sn(e, t, n, r, i, a, o, s) {- e.name = "", o != null && typeof o != "function" && typeof o != "symbol" && typeof o != "boolean" ? e.type = o : e.removeAttribute("type"), t == null ? o !== "submit" && o !== "reset" || e.removeAttribute("value") : o === "number" ? (t === 0 && e.value === "" || e.value != t) && (e.value = "" + I(t)) : e.value !== "" + I(t) && (e.value = "" + I(t)), t == null ? n == null ? r != null && e.removeAttribute("value") : ln(e, I(n)) : o === "number" && e.value == t ? ln(e, I(e.value)) : ln(e, I(t)), i == null && a != null && (e.defaultChecked = !!a), i != null && (e.checked = i && typeof i != "function" && typeof i != "symbol"), s != null && typeof s != "function" && typeof s != "symbol" && typeof s != "boolean" ? e.name = "" + I(s) : e.removeAttribute("name");+ function Qt(e, t, n, r, i, a, o, s) {+ e.name = "", o != null && typeof o != "function" && typeof o != "symbol" && typeof o != "boolean" ? e.type = o : e.removeAttribute("type"), t == null ? o !== "submit" && o !== "reset" || e.removeAttribute("value") : o === "number" ? (t === 0 && e.value === "" || e.value != t) && (e.value = "" + Gt(t)) : e.value !== "" + Gt(t) && (e.value = "" + Gt(t)), t == null ? n == null ? r != null && e.removeAttribute("value") : en(e, Gt(n)) : o === "number" && e.value == t ? en(e, Gt(e.value)) : en(e, Gt(t)), i == null && a != null && (e.defaultChecked = !!a), i != null && (e.checked = i && typeof i != "function" && typeof i != "symbol"), s != null && typeof s != "function" && typeof s != "symbol" && typeof s != "boolean" ? e.name = "" + Gt(s) : e.removeAttribute("name");}- function cn(e, t, n, r, i, a, o, s) {+ function $t(e, t, n, r, i, a, o, s) {if (a != null && typeof a != "function" && typeof a != "symbol" && typeof a != "boolean" && (e.type = a), t != null || n != null) {if (!(a !== "submit" && a !== "reset" || t != null)) {- nn(e);+ Jt(e);return;}- n = n == null ? "" : "" + I(n), t = t == null ? n : "" + I(t), s || t === e.value || (e.value = t), e.defaultValue = t;+ n = n == null ? "" : "" + Gt(n), t = t == null ? n : "" + Gt(t), s || t === e.value || (e.value = t), e.defaultValue = t;}- r ??= i, r = typeof r != "function" && typeof r != "symbol" && !!r, e.checked = s ? e.checked : !!r, e.defaultChecked = !!r, o != null && typeof o != "function" && typeof o != "symbol" && typeof o != "boolean" && (e.name = o), nn(e);+ r ??= i, r = typeof r != "function" && typeof r != "symbol" && !!r, e.checked = s ? e.checked : !!r, e.defaultChecked = !!r, o != null && typeof o != "function" && typeof o != "symbol" && typeof o != "boolean" && (e.name = o), Jt(e);}- function ln(e, t) {+ function en(e, t) {e.defaultValue !== "" + t && (e.defaultValue = "" + t);}- function un(e, t, n, r) {+ function tn(e, t, n, r) {if (e = e.options, t) {t = {};for (var i = 0; i < n.length; i++) t["$" + n[i]] = !0;for (n = 0; n < e.length; n++) i = t.hasOwnProperty("$" + e[n].value), e[n].selected !== i && (e[n].selected = i), i && r && (e[n].defaultSelected = !0);} else {- for (n = "" + I(n), t = null, i = 0; i < e.length; i++) {+ for (n = "" + Gt(n), t = null, i = 0; i < e.length; i++) {if (e[i].value === n) {e[i].selected = !0, r && (e[i].defaultSelected = !0);return;@@ -1413,18 +7134,18 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrt !== null && (t.selected = !0);}}- function dn(e, t, n) {- if (t != null && (t = "" + I(t), t !== e.value && (e.value = t), n == null)) {+ function nn(e, t, n) {+ if (t != null && (t = "" + Gt(t), t !== e.value && (e.value = t), n == null)) {e.defaultValue !== t && (e.defaultValue = t);return;}- e.defaultValue = n == null ? "" : "" + I(n);+ e.defaultValue = n == null ? "" : "" + Gt(n);}- function fn(e, t, n, r) {+ function rn(e, t, n, r) {if (t == null) {if (r != null) {if (n != null) throw Error(i(92));- if (Ce(r)) {+ if (ue(r)) {if (1 < r.length) throw Error(i(93));r = r[0];}@@ -1432,9 +7153,9 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr}n ??= "", t = n;}- n = I(t), e.defaultValue = n, r = e.textContent, r === n && r !== "" && r !== null && (e.value = r), nn(e);+ n = Gt(t), e.defaultValue = n, r = e.textContent, r === n && r !== "" && r !== null && (e.value = r), Jt(e);}- function pn(e, t) {+ function an(e, t) {if (t) {var n = e.firstChild;if (n && n === e.lastChild && n.nodeType === 3) {@@ -1444,19 +7165,19 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr}e.textContent = t;}- var mn = new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));- function hn(e, t, n) {+ var on = new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));+ function sn(e, t, n) {var r = t.indexOf("--") === 0;- n == null || typeof n == "boolean" || n === "" ? r ? e.setProperty(t, "") : t === "float" ? e.cssFloat = "" : e[t] = "" : r ? e.setProperty(t, n) : typeof n != "number" || n === 0 || mn.has(t) ? t === "float" ? e.cssFloat = n : e[t] = ("" + n).trim() : e[t] = n + "px";+ n == null || typeof n == "boolean" || n === "" ? r ? e.setProperty(t, "") : t === "float" ? e.cssFloat = "" : e[t] = "" : r ? e.setProperty(t, n) : typeof n != "number" || n === 0 || on.has(t) ? t === "float" ? e.cssFloat = n : e[t] = ("" + n).trim() : e[t] = n + "px";}- function gn(e, t, n) {+ function cn(e, t, n) {if (t != null && typeof t != "object") throw Error(i(62));if (e = e.style, n != null) {- for (var r in n) !n.hasOwnProperty(r) || t != null && t.hasOwnProperty(r) || (r.indexOf("--") === 0 ? e.setProperty(r, "") : r === "float" ? e.cssFloat = "" : e[r] = "", F = !0);- for (var a in t) r = t[a], t.hasOwnProperty(a) && n[a] !== r && (hn(e, a, r), F = !0);- } else for (var o in t) t.hasOwnProperty(o) && hn(e, o, t[o]);+ for (var r in n) !n.hasOwnProperty(r) || t != null && t.hasOwnProperty(r) || (r.indexOf("--") === 0 ? e.setProperty(r, "") : r === "float" ? e.cssFloat = "" : e[r] = "", H = !0);+ for (var a in t) r = t[a], t.hasOwnProperty(a) && n[a] !== r && (sn(e, a, r), H = !0);+ } else for (var o in t) t.hasOwnProperty(o) && sn(e, o, t[o]);}- function _n(e) {+ function ln(e) {if (e.indexOf("-") === -1) return !1;switch (e) {case "annotation-xml":@@ -1470,7 +7191,7 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrdefault: return !0;}}- var vn = /* @__PURE__ */ new Map([+ var un = /* @__PURE__ */ new Map([["acceptCharset", "accept-charset"],["htmlFor", "for"],["httpEquiv", "http-equiv"],@@ -1550,56 +7271,56 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr["writingMode", "writing-mode"],["xmlnsXlink", "xmlns:xlink"],["xHeight", "x-height"]- ]), yn = /^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;- function L(e) {- return yn.test("" + e) ? "javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')" : e;+ ]), fn = /^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;+ function pn(e) {+ return fn.test("" + e) ? "javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')" : e;}- function bn() {}- var R = null;- function xn(e) {+ function mn() {}+ var hn = null;+ function gn(e) {return e = e.target || e.srcElement || window, e.correspondingUseElement && (e = e.correspondingUseElement), e.nodeType === 3 ? e.parentNode : e;}- var Sn = null, Cn = null;- function wn(e) {- var t = Lt(e);+ var _n = null, vn = null;+ function yn(e) {+ var t = kt(e);if (t && (e = t.stateNode)) {- var n = e[Dt] || null;+ var n = e[yt] || null;a: switch (e = t.stateNode, t.type) {case "input":- if (sn(e, n.value, n.defaultValue, n.defaultValue, n.checked, n.defaultChecked, n.type, n.name), t = n.name, n.type === "radio" && t != null) {+ if (Qt(e, n.value, n.defaultValue, n.defaultValue, n.checked, n.defaultChecked, n.type, n.name), t = n.name, n.type === "radio" && t != null) {for (n = e; n.parentNode;) n = n.parentNode;- for (n = n.querySelectorAll("input[name=\"" + on("" + t) + "\"][type=\"radio\"]"), t = 0; t < n.length; t++) {+ for (n = n.querySelectorAll("input[name=\"" + Zt("" + t) + "\"][type=\"radio\"]"), t = 0; t < n.length; t++) {var r = n[t];if (r !== e && r.form === e.form) {- var a = r[Dt] || null;+ var a = r[yt] || null;if (!a) throw Error(i(90));- sn(r, a.value, a.defaultValue, a.defaultValue, a.checked, a.defaultChecked, a.type, a.name);+ Qt(r, a.value, a.defaultValue, a.defaultValue, a.checked, a.defaultChecked, a.type, a.name);}}- for (t = 0; t < n.length; t++) r = n[t], r.form === e.form && rn(r);+ for (t = 0; t < n.length; t++) r = n[t], r.form === e.form && Yt(r);}break a;case "textarea":- dn(e, n.value, n.defaultValue);+ nn(e, n.value, n.defaultValue);break a;- case "select": t = n.value, t != null && un(e, !!n.multiple, t, !1);+ case "select": t = n.value, t != null && tn(e, !!n.multiple, t, !1);}}}- var Tn = !1;- function En(e, t, n) {- if (Tn) return e(t, n);- Tn = !0;+ var bn = !1;+ function xn(e, t, n) {+ if (bn) return e(t, n);+ bn = !0;try {return e(t);} finally {- if (Tn = !1, (Sn !== null || Cn !== null) && (zd(), Sn && (t = Sn, e = Cn, Cn = Sn = null, wn(t), e))) for (t = 0; t < e.length; t++) wn(e[t]);+ if (bn = !1, (_n !== null || vn !== null) && (Ld(), _n && (t = _n, e = vn, vn = _n = null, yn(t), e))) for (t = 0; t < e.length; t++) yn(e[t]);}}- function Dn(e, t) {+ function Sn(e, t) {var n = e.stateNode;if (n === null) return null;- var r = n[Dt] || null;+ var r = n[yt] || null;if (r === null) return null;n = r[t];a: switch (t) {@@ -1622,54 +7343,54 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrif (n && typeof n != "function") throw Error(i(231, t, typeof n));return n;}- var On = !(typeof window > "u" || window.document === void 0 || window.document.createElement === void 0), kn = !1;- if (On) try {- var An = {};- Object.defineProperty(An, "passive", { get: function() {- kn = !0;- } }), window.addEventListener("test", An, An), window.removeEventListener("test", An, An);+ var Cn = !(typeof window > "u" || window.document === void 0 || window.document.createElement === void 0), wn = !1;+ if (Cn) try {+ var Tn = {};+ Object.defineProperty(Tn, "passive", { get: function() {+ wn = !0;+ } }), window.addEventListener("test", Tn, Tn), window.removeEventListener("test", Tn, Tn);} catch {- kn = !1;+ wn = !1;}- var jn = null, Mn = null, Nn = null;- function Pn() {- if (Nn) return Nn;- var e, t = Mn, n = t.length, r, i = "value" in jn ? jn.value : jn.textContent, a = i.length;+ var En = null, Dn = null, On = null;+ function kn() {+ if (On) return On;+ var e, t = Dn, n = t.length, r, i = "value" in En ? En.value : En.textContent, a = i.length;for (e = 0; e < n && t[e] === i[e]; e++);var o = n - e;for (r = 1; r <= o && t[n - r] === i[a - r]; r++);- return Nn = i.slice(e, 1 < r ? 1 - r : void 0);+ return On = i.slice(e, 1 < r ? 1 - r : void 0);}- function Fn(e) {+ function An(e) {var t = e.keyCode;return "charCode" in e ? (e = e.charCode, e === 0 && t === 13 && (e = 13)) : e = t, e === 10 && (e = 13), 32 <= e || e === 13 ? e : 0;}- function In() {+ function jn() {return !0;}- function Ln() {+ function Mn() {return !1;}- function Rn(e) {+ function Nn(e) {function t(t, n, r, i, a) {for (var o in this._reactName = t, this._targetInst = r, this.type = n, this.nativeEvent = i, this.target = a, this.currentTarget = null, e) e.hasOwnProperty(o) && (t = e[o], this[o] = t ? t(i) : i[o]);- return this.isDefaultPrevented = (i.defaultPrevented == null ? !1 === i.returnValue : i.defaultPrevented) ? In : Ln, this.isPropagationStopped = Ln, this;+ return this.isDefaultPrevented = (i.defaultPrevented == null ? !1 === i.returnValue : i.defaultPrevented) ? jn : Mn, this.isPropagationStopped = Mn, this;}return T(t.prototype, {preventDefault: function() {this.defaultPrevented = !0;var e = this.nativeEvent;- e && (e.preventDefault ? e.preventDefault() : typeof e.returnValue != "unknown" && (e.returnValue = !1), this.isDefaultPrevented = In);+ e && (e.preventDefault ? e.preventDefault() : typeof e.returnValue != "unknown" && (e.returnValue = !1), this.isDefaultPrevented = jn);},stopPropagation: function() {var e = this.nativeEvent;- e && (e.stopPropagation ? e.stopPropagation() : typeof e.cancelBubble != "unknown" && (e.cancelBubble = !0), this.isPropagationStopped = In);+ e && (e.stopPropagation ? e.stopPropagation() : typeof e.cancelBubble != "unknown" && (e.cancelBubble = !0), this.isPropagationStopped = jn);},persist: function() {},- isPersistent: In+ isPersistent: jn}), t;}- var zn = {+ var Pn = {eventPhase: 0,bubbles: 0,cancelable: 0,@@ -1678,10 +7399,10 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr},defaultPrevented: 0,isTrusted: 0- }, Bn = Rn(zn), Vn = T({}, zn, {+ }, Fn = Nn(Pn), In = T({}, Pn, {view: 0,detail: 0- }), Hn = Rn(Vn), Un, Wn, Gn, Kn = T({}, Vn, {+ }), Ln = Nn(In), Rn, zn, Bn, Vn = T({}, In, {screenX: 0,screenY: 0,clientX: 0,@@ -1692,25 +7413,25 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrshiftKey: 0,altKey: 0,metaKey: 0,- getModifierState: rr,+ getModifierState: Qn,button: 0,buttons: 0,relatedTarget: function(e) {return e.relatedTarget === void 0 ? e.fromElement === e.srcElement ? e.toElement : e.fromElement : e.relatedTarget;},movementX: function(e) {- return "movementX" in e ? e.movementX : (e !== Gn && (Gn && e.type === "mousemove" ? (Un = e.screenX - Gn.screenX, Wn = e.screenY - Gn.screenY) : Wn = Un = 0, Gn = e), Un);+ return "movementX" in e ? e.movementX : (e !== Bn && (Bn && e.type === "mousemove" ? (Rn = e.screenX - Bn.screenX, zn = e.screenY - Bn.screenY) : zn = Rn = 0, Bn = e), Rn);},movementY: function(e) {- return "movementY" in e ? e.movementY : Wn;+ return "movementY" in e ? e.movementY : zn;}- }), qn = Rn(Kn), Jn = Rn(T({}, Kn, { dataTransfer: 0 })), Yn = Rn(T({}, Vn, { relatedTarget: 0 })), Xn = Rn(T({}, zn, {+ }), Hn = Nn(Vn), Un = Nn(T({}, Vn, { dataTransfer: 0 })), Wn = Nn(T({}, In, { relatedTarget: 0 })), Gn = Nn(T({}, Pn, {animationName: 0,elapsedTime: 0,pseudoElement: 0- })), Zn = Rn(T({}, zn, { clipboardData: function(e) {+ })), Kn = Nn(T({}, Pn, { clipboardData: function(e) {return "clipboardData" in e ? e.clipboardData : window.clipboardData;- } })), Qn = Rn(T({}, zn, { data: 0 })), $n = {+ } })), qn = Nn(T({}, Pn, { data: 0 })), Jn = {Esc: "Escape",Spacebar: " ",Left: "ArrowLeft",@@ -1723,7 +7444,7 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrApps: "ContextMenu",Scroll: "ScrollLock",MozPrintableKey: "Unidentified"- }, er = {+ }, Yn = {8: "Backspace",9: "Tab",12: "Clear",@@ -1760,26 +7481,26 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr144: "NumLock",145: "ScrollLock",224: "Meta"- }, tr = {+ }, Xn = {Alt: "altKey",Control: "ctrlKey",Meta: "metaKey",Shift: "shiftKey"};- function nr(e) {+ function Zn(e) {var t = this.nativeEvent;- return t.getModifierState ? t.getModifierState(e) : (e = tr[e]) ? !!t[e] : !1;+ return t.getModifierState ? t.getModifierState(e) : (e = Xn[e]) ? !!t[e] : !1;}- function rr() {- return nr;+ function Qn() {+ return Zn;}- var ir = Rn(T({}, Vn, {+ var $n = Nn(T({}, In, {key: function(e) {if (e.key) {- var t = $n[e.key] || e.key;+ var t = Jn[e.key] || e.key;if (t !== "Unidentified") return t;}- return e.type === "keypress" ? (e = Fn(e), e === 13 ? "Enter" : String.fromCharCode(e)) : e.type === "keydown" || e.type === "keyup" ? er[e.keyCode] || "Unidentified" : "";+ return e.type === "keypress" ? (e = An(e), e === 13 ? "Enter" : String.fromCharCode(e)) : e.type === "keydown" || e.type === "keyup" ? Yn[e.keyCode] || "Unidentified" : "";},code: 0,location: 0,@@ -1789,17 +7510,17 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrmetaKey: 0,repeat: 0,locale: 0,- getModifierState: rr,+ getModifierState: Qn,charCode: function(e) {- return e.type === "keypress" ? Fn(e) : 0;+ return e.type === "keypress" ? An(e) : 0;},keyCode: function(e) {return e.type === "keydown" || e.type === "keyup" ? e.keyCode : 0;},which: function(e) {- return e.type === "keypress" ? Fn(e) : e.type === "keydown" || e.type === "keyup" ? e.keyCode : 0;+ return e.type === "keypress" ? An(e) : e.type === "keydown" || e.type === "keyup" ? e.keyCode : 0;}- })), ar = Rn(T({}, Kn, {+ })), er = Nn(T({}, Vn, {pointerId: 0,width: 0,height: 0,@@ -1810,7 +7531,7 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrtwist: 0,pointerType: 0,isPrimary: 0- })), or = Rn(T({}, zn, { submitter: 0 })), sr = Rn(T({}, Vn, {+ })), tr = Nn(T({}, Pn, { submitter: 0 })), nr = Nn(T({}, In, {touches: 0,targetTouches: 0,changedTouches: 0,@@ -1818,12 +7539,12 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrmetaKey: 0,ctrlKey: 0,shiftKey: 0,- getModifierState: rr- })), cr = Rn(T({}, zn, {+ getModifierState: Qn+ })), rr = Nn(T({}, Pn, {propertyName: 0,elapsedTime: 0,pseudoElement: 0- })), lr = Rn(T({}, Kn, {+ })), ir = Nn(T({}, Vn, {deltaX: function(e) {return "deltaX" in e ? e.deltaX : "wheelDeltaX" in e ? -e.wheelDeltaX : 0;},@@ -1832,21 +7553,21 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr},deltaZ: 0,deltaMode: 0- })), ur = Rn(T({}, zn, {+ })), ar = Nn(T({}, Pn, {newState: 0,oldState: 0,source: 0- })), dr = [+ })), or = [9,13,27,32- ], fr = On && "CompositionEvent" in window, pr = null;- On && "documentMode" in document && (pr = document.documentMode);- var mr = On && "TextEvent" in window && !pr, hr = On && (!fr || pr && 8 < pr && 11 >= pr), gr = " ", _r = !1;- function vr(e, t) {+ ], sr = Cn && "CompositionEvent" in window, cr = null;+ Cn && "documentMode" in document && (cr = document.documentMode);+ var lr = Cn && "TextEvent" in window && !cr, ur = Cn && (!sr || cr && 8 < cr && 11 >= cr), dr = " ", fr = !1;+ function pr(e, t) {switch (e) {- case "keyup": return dr.indexOf(t.keyCode) !== -1;+ case "keyup": return or.indexOf(t.keyCode) !== -1;case "keydown": return t.keyCode !== 229;case "keypress":case "mousedown":@@ -1854,20 +7575,20 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrdefault: return !1;}}- function yr(e) {+ function mr(e) {return e = e.detail, typeof e == "object" && "data" in e ? e.data : null;}- var br = !1;- function xr(e, t) {+ var hr = !1;+ function gr(e, t) {switch (e) {- case "compositionend": return yr(t);- case "keypress": return t.which === 32 ? (_r = !0, gr) : null;- case "textInput": return e = t.data, e === gr && _r ? null : e;+ case "compositionend": return mr(t);+ case "keypress": return t.which === 32 ? (fr = !0, dr) : null;+ case "textInput": return e = t.data, e === dr && fr ? null : e;default: return null;}}- function Sr(e, t) {- if (br) return e === "compositionend" || !fr && vr(e, t) ? (e = Pn(), Nn = Mn = jn = null, br = !1, e) : null;+ function _r(e, t) {+ if (hr) return e === "compositionend" || !sr && pr(e, t) ? (e = kn(), On = Dn = En = null, hr = !1, e) : null;switch (e) {case "paste": return null;case "keypress":@@ -1876,11 +7597,11 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrif (t.which) return String.fromCharCode(t.which);}return null;- case "compositionend": return hr && t.locale !== "ko" ? null : t.data;+ case "compositionend": return ur && t.locale !== "ko" ? null : t.data;default: return null;}}- var Cr = {+ var vr = {color: !0,date: !0,datetime: !0,@@ -1897,76 +7618,76 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrurl: !0,week: !0};- function wr(e) {+ function yr(e) {var t = e && e.nodeName && e.nodeName.toLowerCase();- return t === "input" ? !!Cr[e.type] : t === "textarea";+ return t === "input" ? !!vr[e.type] : t === "textarea";}- function Tr(e, t, n, r) {- Sn ? Cn ? Cn.push(r) : Cn = [r] : Sn = r, t = Jf(t, "onChange"), 0 < t.length && (n = new Bn("onChange", "change", null, n, r), e.push({+ function br(e, t, n, r) {+ _n ? vn ? vn.push(r) : vn = [r] : _n = r, t = qf(t, "onChange"), 0 < t.length && (n = new Fn("onChange", "change", null, n, r), e.push({event: n,listeners: t}));}- var Er = null, Dr = null;- function Or(e) {- Vf(e, 0);+ var xr = null, Sr = null;+ function Cr(e) {+ Bf(e, 0);}- function kr(e) {- if (rn(Rt(e))) return e;+ function wr(e) {+ if (Yt(At(e))) return e;}- function Ar(e, t) {+ function Tr(e, t) {if (e === "change") return t;}- var jr = !1;- if (On) {- var Mr;- if (On) {- var Nr = "oninput" in document;- if (!Nr) {- var Pr = document.createElement("div");- Pr.setAttribute("oninput", "return;"), Nr = typeof Pr.oninput == "function";+ var Er = !1;+ if (Cn) {+ var Dr;+ if (Cn) {+ var Or = "oninput" in document;+ if (!Or) {+ var kr = document.createElement("div");+ kr.setAttribute("oninput", "return;"), Or = typeof kr.oninput == "function";}- Mr = Nr;- } else Mr = !1;- jr = Mr && (!document.documentMode || 9 < document.documentMode);+ Dr = Or;+ } else Dr = !1;+ Er = Dr && (!document.documentMode || 9 < document.documentMode);}- function Fr() {- Er && (Er.detachEvent("onpropertychange", Ir), Dr = Er = null);+ function Ar() {+ xr && (xr.detachEvent("onpropertychange", jr), Sr = xr = null);}- function Ir(e) {- if (e.propertyName === "value" && kr(Dr)) {+ function jr(e) {+ if (e.propertyName === "value" && wr(Sr)) {var t = [];- Tr(t, Dr, e, xn(e)), En(Or, t);+ br(t, Sr, e, gn(e)), xn(Cr, t);}}- function Lr(e, t, n) {- e === "focusin" ? (Fr(), Er = t, Dr = n, Er.attachEvent("onpropertychange", Ir)) : e === "focusout" && Fr();+ function Mr(e, t, n) {+ e === "focusin" ? (Ar(), xr = t, Sr = n, xr.attachEvent("onpropertychange", jr)) : e === "focusout" && Ar();}- function Rr(e) {- if (e === "selectionchange" || e === "keyup" || e === "keydown") return kr(Dr);+ function Nr(e) {+ if (e === "selectionchange" || e === "keyup" || e === "keydown") return wr(Sr);}- function zr(e, t) {- if (e === "click") return kr(t);+ function Pr(e, t) {+ if (e === "click") return wr(t);}- function Br(e, t) {- if (e === "input" || e === "change") return kr(t);+ function Fr(e, t) {+ if (e === "input" || e === "change") return wr(t);}- function Vr(e, t) {+ function Ir(e, t) {return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;}- var Hr = typeof Object.is == "function" ? Object.is : Vr;- function Ur(e, t) {- if (Hr(e, t)) return !0;+ var Lr = typeof Object.is == "function" ? Object.is : Ir;+ function Rr(e, t) {+ if (Lr(e, t)) return !0;if (typeof e != "object" || !e || typeof t != "object" || !t) return !1;var n = Object.keys(e), r = Object.keys(t);if (n.length !== r.length) return !1;for (r = 0; r < n.length; r++) {var i = n[r];- if (!He.call(t, i) || !Hr(e[i], t[i])) return !1;+ if (!je.call(t, i) || !Lr(e[i], t[i])) return !1;}return !0;}- function Wr(e) {+ function zr(e) {if (e ||= typeof document < "u" ? document : void 0, e === void 0) return null;try {return e.activeElement || e.body;@@ -1974,12 +7695,12 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrreturn e.body;}}- function Gr(e) {+ function Br(e) {for (; e && e.firstChild;) e = e.firstChild;return e;}- function Kr(e, t) {- var n = Gr(e);+ function Vr(e, t) {+ var n = Br(e);e = 0;for (var r; n;) {if (n.nodeType === 3) {@@ -1999,15 +7720,15 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr}n = void 0;}- n = Gr(n);+ n = Br(n);}}- function qr(e, t) {- return e && t ? e === t ? !0 : e && e.nodeType === 3 ? !1 : t && t.nodeType === 3 ? qr(e, t.parentNode) : "contains" in e ? e.contains(t) : e.compareDocumentPosition ? !!(e.compareDocumentPosition(t) & 16) : !1 : !1;+ function Hr(e, t) {+ return e && t ? e === t ? !0 : e && e.nodeType === 3 ? !1 : t && t.nodeType === 3 ? Hr(e, t.parentNode) : "contains" in e ? e.contains(t) : e.compareDocumentPosition ? !!(e.compareDocumentPosition(t) & 16) : !1 : !1;}- function Jr(e) {+ function Ur(e) {e = e != null && e.ownerDocument != null && e.ownerDocument.defaultView != null ? e.ownerDocument.defaultView : window;- for (var t = Wr(e.document); t instanceof e.HTMLIFrameElement;) {+ for (var t = zr(e.document); t instanceof e.HTMLIFrameElement;) {try {var n = typeof t.contentWindow.location.href == "string";} catch {@@ -2015,18 +7736,18 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr}if (n) e = t.contentWindow;else break;- t = Wr(e.document);+ t = zr(e.document);}return t;}- function Yr(e) {+ function Wr(e) {var t = e && e.nodeName && e.nodeName.toLowerCase();return t && (t === "input" && (e.type === "text" || e.type === "search" || e.type === "tel" || e.type === "url" || e.type === "password") || t === "textarea" || e.contentEditable === "true");}- var Xr = On && "documentMode" in document && 11 >= document.documentMode, Zr = null, Qr = null, $r = null, ei = !1;- function ti(e, t, n) {+ var Gr = Cn && "documentMode" in document && 11 >= document.documentMode, Kr = null, qr = null, Jr = null, Yr = !1;+ function Xr(e, t, n) {var r = n.window === n ? n.document : n.nodeType === 9 ? n : n.ownerDocument;- ei || Zr == null || Zr !== Wr(r) || (r = Zr, "selectionStart" in r && Yr(r) ? r = {+ Yr || Kr == null || Kr !== zr(r) || (r = Kr, "selectionStart" in r && Wr(r) ? r = {start: r.selectionStart,end: r.selectionEnd} : (r = (r.ownerDocument && r.ownerDocument.defaultView || window).getSelection(), r = {@@ -2034,48 +7755,48 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescranchorOffset: r.anchorOffset,focusNode: r.focusNode,focusOffset: r.focusOffset- }), $r && Ur($r, r) || ($r = r, r = Jf(Qr, "onSelect"), 0 < r.length && (t = new Bn("onSelect", "select", null, t, n), e.push({+ }), Jr && Rr(Jr, r) || (Jr = r, r = qf(qr, "onSelect"), 0 < r.length && (t = new Fn("onSelect", "select", null, t, n), e.push({event: t,listeners: r- }), t.target = Zr)));+ }), t.target = Kr)));}- function ni(e, t) {+ function Zr(e, t) {var n = {};return n[e.toLowerCase()] = t.toLowerCase(), n["Webkit" + e] = "webkit" + t, n["Moz" + e] = "moz" + t, n;}- var ri = {- animationend: ni("Animation", "AnimationEnd"),- animationiteration: ni("Animation", "AnimationIteration"),- animationstart: ni("Animation", "AnimationStart"),- transitionrun: ni("Transition", "TransitionRun"),- transitionstart: ni("Transition", "TransitionStart"),- transitioncancel: ni("Transition", "TransitionCancel"),- transitionend: ni("Transition", "TransitionEnd")- }, ii = {}, ai = {};- On && (ai = document.createElement("div").style, "AnimationEvent" in window || (delete ri.animationend.animation, delete ri.animationiteration.animation, delete ri.animationstart.animation), "TransitionEvent" in window || delete ri.transitionend.transition);- function oi(e) {- if (ii[e]) return ii[e];- if (!ri[e]) return e;- var t = ri[e], n;- for (n in t) if (t.hasOwnProperty(n) && n in ai) return ii[e] = t[n];+ var Qr = {+ animationend: Zr("Animation", "AnimationEnd"),+ animationiteration: Zr("Animation", "AnimationIteration"),+ animationstart: Zr("Animation", "AnimationStart"),+ transitionrun: Zr("Transition", "TransitionRun"),+ transitionstart: Zr("Transition", "TransitionStart"),+ transitioncancel: Zr("Transition", "TransitionCancel"),+ transitionend: Zr("Transition", "TransitionEnd")+ }, $r = {}, ei = {};+ Cn && (ei = document.createElement("div").style, "AnimationEvent" in window || (delete Qr.animationend.animation, delete Qr.animationiteration.animation, delete Qr.animationstart.animation), "TransitionEvent" in window || delete Qr.transitionend.transition);+ function ti(e) {+ if ($r[e]) return $r[e];+ if (!Qr[e]) return e;+ var t = Qr[e], n;+ for (n in t) if (t.hasOwnProperty(n) && n in ei) return $r[e] = t[n];return e;}- var si = oi("animationend"), ci = oi("animationiteration"), li = oi("animationstart"), ui = oi("transitionrun"), di = oi("transitionstart"), fi = oi("transitioncancel"), pi = oi("transitionend"), mi = /* @__PURE__ */ new Map(), hi = "abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");- hi.push("scrollEnd");- function gi(e, t) {- mi.set(e, t), Wt(t, [e]);+ var ni = ti("animationend"), ri = ti("animationiteration"), ii = ti("animationstart"), ai = ti("transitionrun"), oi = ti("transitionstart"), si = ti("transitioncancel"), ci = ti("transitionend"), li = /* @__PURE__ */ new Map(), ui = "abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");+ ui.push("scrollEnd");+ function di(e, t) {+ li.set(e, t), It(t, [e]);}- var _i = 0;- function vi(e, t) {+ var fi = 0;+ function pi(e, t) {if (e.name != null && e.name !== "auto") return e.name;if (t.autoName !== null) return t.autoName;- e = bd.identifierPrefix;- var n = _i++;+ e = vd.identifierPrefix;+ var n = fi++;return e = "_" + e + "t_" + n.toString(32) + "_", t.autoName = e;}- function yi(e) {+ function mi(e) {if (e == null || typeof e == "string") return e;- var t = null, n = Od;+ var t = null, n = Ed;if (n !== null) for (var r = 0; r < n.length; r++) {var i = e[n[r]];if (i != null) {@@ -2085,10 +7806,10 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr}return t ?? e.default;}- function bi(e, t) {- return e = yi(e), t = yi(t), t == null ? e === "auto" ? null : e : t === "auto" ? null : t;+ function hi(e, t) {+ return e = mi(e), t = mi(t), t == null ? e === "auto" ? null : e : t === "auto" ? null : t;}- var xi = typeof reportError == "function" ? reportError : function(e) {+ var gi = typeof reportError == "function" ? reportError : function(e) {if (typeof window == "object" && typeof window.ErrorEvent == "function") {var t = new window.ErrorEvent("error", {bubbles: !0,@@ -2102,62 +7823,62 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrreturn;}console.error(e);- }, Si = [], Ci = 0, wi = 0;- function Ti() {- for (var e = Ci, t = wi = Ci = 0; t < e;) {- var n = Si[t];- Si[t++] = null;- var r = Si[t];- Si[t++] = null;- var i = Si[t];- Si[t++] = null;- var a = Si[t];- if (Si[t++] = null, r !== null && i !== null) {+ }, _i = [], vi = 0, yi = 0;+ function bi() {+ for (var e = vi, t = yi = vi = 0; t < e;) {+ var n = _i[t];+ _i[t++] = null;+ var r = _i[t];+ _i[t++] = null;+ var i = _i[t];+ _i[t++] = null;+ var a = _i[t];+ if (_i[t++] = null, r !== null && i !== null) {var o = r.pending;o === null ? i.next = i : (i.next = o.next, o.next = i), r.pending = i;}- a !== 0 && ki(n, i, a);+ a !== 0 && wi(n, i, a);}}- function Ei(e, t, n, r) {- Si[Ci++] = e, Si[Ci++] = t, Si[Ci++] = n, Si[Ci++] = r, wi |= r, e.lanes |= r, e = e.alternate, e !== null && (e.lanes |= r);+ function xi(e, t, n, r) {+ _i[vi++] = e, _i[vi++] = t, _i[vi++] = n, _i[vi++] = r, yi |= r, e.lanes |= r, e = e.alternate, e !== null && (e.lanes |= r);}- function Di(e, t, n, r) {- return Ei(e, t, n, r), Ai(e);+ function Si(e, t, n, r) {+ return xi(e, t, n, r), Ti(e);}- function Oi(e, t) {- return Ei(e, null, null, t), Ai(e);+ function Ci(e, t) {+ return xi(e, null, null, t), Ti(e);}- function ki(e, t, n) {+ function wi(e, t, n) {e.lanes |= n;var r = e.alternate;r !== null && (r.lanes |= n);for (var i = !1, a = e.return; a !== null;) a.childLanes |= n, r = a.alternate, r !== null && (r.childLanes |= n), a.tag === 22 && (e = a.stateNode, e === null || e._visibility & 1 || (i = !0)), e = a, a = a.return;- return e.tag === 3 ? (a = e.stateNode, i && t !== null && (i = 31 - rt(n), e = a.hiddenUpdates, r = e[i], r === null ? e[i] = [t] : r.push(t), t.lane = n | 536870912), a) : null;+ return e.tag === 3 ? (a = e.stateNode, i && t !== null && (i = 31 - Je(n), e = a.hiddenUpdates, r = e[i], r === null ? e[i] = [t] : r.push(t), t.lane = n | 536870912), a) : null;}- function Ai(e) {- if (50 < kd) throw kd = 0, Ad = null, Error(i(185));+ function Ti(e) {+ if (50 < Dd) throw Dd = 0, Od = null, Error(i(185));for (var t = e.return; t !== null;) e = t, t = e.return;return e.tag === 3 ? e.stateNode : null;}- var ji = {};- function Mi(e, t, n, r) {+ var Ei = {};+ function Di(e, t, n, r) {this.tag = e, this.key = n, this.sibling = this.child = this.return = this.stateNode = this.type = this.elementType = null, this.index = 0, this.refCleanup = this.ref = null, this.pendingProps = t, this.dependencies = this.memoizedState = this.updateQueue = this.memoizedProps = null, this.mode = r, this.subtreeFlags = this.flags = 0, this.deletions = null, this.childLanes = this.lanes = 0, this.alternate = null;}- function Ni(e, t, n, r) {- return new Mi(e, t, n, r);+ function Oi(e, t, n, r) {+ return new Di(e, t, n, r);}- function Pi(e) {+ function ki(e) {return e = e.prototype, !(!e || !e.isReactComponent);}- function Fi(e, t) {+ function Ai(e, t) {var n = e.alternate;- return n === null ? (n = Ni(e.tag, t, e.key, e.mode), n.elementType = e.elementType, n.type = e.type, n.stateNode = e.stateNode, n.alternate = e, e.alternate = n) : (n.pendingProps = t, n.type = e.type, n.flags = 0, n.subtreeFlags = 0, n.deletions = null), n.flags = e.flags & 1206910976, n.childLanes = e.childLanes, n.lanes = e.lanes, n.child = e.child, n.memoizedProps = e.memoizedProps, n.memoizedState = e.memoizedState, n.updateQueue = e.updateQueue, t = e.dependencies, n.dependencies = t === null ? null : {+ return n === null ? (n = Oi(e.tag, t, e.key, e.mode), n.elementType = e.elementType, n.type = e.type, n.stateNode = e.stateNode, n.alternate = e, e.alternate = n) : (n.pendingProps = t, n.type = e.type, n.flags = 0, n.subtreeFlags = 0, n.deletions = null), n.flags = e.flags & 1206910976, n.childLanes = e.childLanes, n.lanes = e.lanes, n.child = e.child, n.memoizedProps = e.memoizedProps, n.memoizedState = e.memoizedState, n.updateQueue = e.updateQueue, t = e.dependencies, n.dependencies = t === null ? null : {lanes: t.lanes,firstContext: t.firstContext}, n.sibling = e.sibling, n.index = e.index, n.ref = e.ref, n.refCleanup = e.refCleanup, n;}- function Ii(e, t) {+ function ji(e, t) {e.flags &= 1206910978;var n = e.alternate;return n === null ? (e.childLanes = 0, e.lanes = t, e.child = null, e.subtreeFlags = 0, e.memoizedProps = null, e.memoizedState = null, e.updateQueue = null, e.dependencies = null, e.stateNode = null) : (e.childLanes = n.childLanes, e.lanes = n.lanes, e.child = n.child, e.subtreeFlags = 0, e.deletions = null, e.memoizedProps = n.memoizedProps, e.memoizedState = n.memoizedState, e.updateQueue = n.updateQueue, e.type = n.type, t = n.dependencies, e.dependencies = t === null ? null : {@@ -2165,21 +7886,21 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrfirstContext: t.firstContext}), e;}- function Li(e, t, n, r, a, o) {+ function Mi(e, t, n, r, a, o) {var s = 0;- if (r = e, typeof r == "function") Pi(r) && (s = 1);- else if (typeof r == "string") s = qm(e, n, Oe.current) ? 26 : e === "html" || e === "head" || e === "body" ? 27 : 5;+ if (r = e, typeof r == "function") ki(r) && (s = 1);+ else if (typeof r == "string") s = qm(e, n, ge.current) ? 26 : e === "html" || e === "head" || e === "body" ? 27 : 5;else a: switch (r) {- case me: return e = Ni(31, n, t, a), e.elementType = me, e.lanes = o, e;- case ae: return Ri(n.children, a, o, t);- case oe:+ case ie: return e = Oi(31, n, t, a), e.elementType = ie, e.lanes = o, e;+ case k: return Ni(n.children, a, o, t);+ case A:s = 8, a |= 24;break;- case se: return e = Ni(12, n, t, a | 2), e.elementType = se, e.lanes = o, e;- case ue: return e = Ni(13, n, t, a), e.elementType = ue, e.lanes = o, e;- case de: return e = Ni(19, n, t, a), e.elementType = de, e.lanes = o, e;- case he:- case _e: return e = a | 32, e = Ni(30, n, t, e), e.elementType = _e, e.lanes = o, e.stateNode = {+ case j: return e = Oi(12, n, t, a | 2), e.elementType = j, e.lanes = o, e;+ case te: return e = Oi(13, n, t, a), e.elementType = te, e.lanes = o, e;+ case P: return e = Oi(19, n, t, a), e.elementType = P, e.lanes = o, e;+ case ae:+ case I: return e = a | 32, e = Oi(30, n, t, e), e.elementType = I, e.lanes = o, e.stateNode = {autoName: null,paired: null,clones: null,@@ -2187,177 +7908,177 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr}, e;default:if (typeof r == "object" && r) switch (r.$$typeof) {- case le:+ case N:s = 10;break a;- case ce:+ case M:s = 9;break a;- case E:+ case ee:s = 11;break a;- case fe:+ case ne:s = 14;break a;- case pe:+ case re:s = 16, r = null;break a;}s = 29, n = Error(i(130, e === null ? "null" : typeof e, "")), r = null;}- return t = Ni(s, n, t, a), t.elementType = e, t.type = r, t.lanes = o, t;+ return t = Oi(s, n, t, a), t.elementType = e, t.type = r, t.lanes = o, t;}- function Ri(e, t, n, r) {- return e = Ni(7, e, r, t), e.lanes = n, e;+ function Ni(e, t, n, r) {+ return e = Oi(7, e, r, t), e.lanes = n, e;}- function zi(e, t, n) {- return e = Ni(6, e, null, t), e.lanes = n, e;+ function Pi(e, t, n) {+ return e = Oi(6, e, null, t), e.lanes = n, e;}- function Bi(e) {- var t = Ni(18, null, null, 0);+ function Fi(e) {+ var t = Oi(18, null, null, 0);return t.stateNode = e, t;}- function Vi(e, t, n) {- return t = Ni(4, e.children === null ? [] : e.children, e.key, t), t.lanes = n, t.stateNode = {+ function Ii(e, t, n) {+ return t = Oi(4, e.children === null ? [] : e.children, e.key, t), t.lanes = n, t.stateNode = {containerInfo: e.containerInfo,pendingChildren: null,implementation: e.implementation}, t;}- var Hi = /* @__PURE__ */ new WeakMap();- function Ui(e, t) {+ var Li = /* @__PURE__ */ new WeakMap();+ function Ri(e, t) {if (typeof e == "object" && e) {- var n = Hi.get(e);+ var n = Li.get(e);return n === void 0 ? (t = {value: e,source: t,- stack: Ve(t)- }, Hi.set(e, t), t) : n;+ stack: Ae(t)+ }, Li.set(e, t), t) : n;}return {value: e,source: t,- stack: Ve(t)+ stack: Ae(t)};}- var Wi = [], Gi = 0, Ki = null, qi = 0, Ji = [], Yi = 0, Xi = null, Zi = 1, Qi = "";- function $i(e, t) {- Wi[Gi++] = qi, Wi[Gi++] = Ki, Ki = e, qi = t;+ var zi = [], Bi = 0, Vi = null, Hi = 0, Ui = [], Wi = 0, Gi = null, Ki = 1, qi = "";+ function Ji(e, t) {+ zi[Bi++] = Hi, zi[Bi++] = Vi, Vi = e, Hi = t;}- function ea(e, t, n) {- Ji[Yi++] = Zi, Ji[Yi++] = Qi, Ji[Yi++] = Xi, Xi = e;- var r = Zi;- e = Qi;- var i = 32 - rt(r) - 1;+ function Yi(e, t, n) {+ Ui[Wi++] = Ki, Ui[Wi++] = qi, Ui[Wi++] = Gi, Gi = e;+ var r = Ki;+ e = qi;+ var i = 32 - Je(r) - 1;r &= ~(1 << i), n += 1;- var a = 32 - rt(t) + i;+ var a = 32 - Je(t) + i;if (30 < a) {var o = i - i % 5;- a = (r & (1 << o) - 1).toString(32), r >>= o, i -= o, Zi = 1 << 32 - rt(t) + i | n << i | r, Qi = a + e;- } else Zi = 1 << a | n << i | r, Qi = e;+ a = (r & (1 << o) - 1).toString(32), r >>= o, i -= o, Ki = 1 << 32 - Je(t) + i | n << i | r, qi = a + e;+ } else Ki = 1 << a | n << i | r, qi = e;}- function ta(e) {- e.return !== null && ($i(e, 1), ea(e, 1, 0));+ function Xi(e) {+ e.return !== null && (Ji(e, 1), Yi(e, 1, 0));}- function na(e) {- for (; e === Ki;) Ki = Wi[--Gi], Wi[Gi] = null, qi = Wi[--Gi], Wi[Gi] = null;- for (; e === Xi;) Xi = Ji[--Yi], Ji[Yi] = null, Qi = Ji[--Yi], Ji[Yi] = null, Zi = Ji[--Yi], Ji[Yi] = null;+ function Zi(e) {+ for (; e === Vi;) Vi = zi[--Bi], zi[Bi] = null, Hi = zi[--Bi], zi[Bi] = null;+ for (; e === Gi;) Gi = Ui[--Wi], Ui[Wi] = null, qi = Ui[--Wi], Ui[Wi] = null, Ki = Ui[--Wi], Ui[Wi] = null;}- function ra(e, t) {- Ji[Yi++] = Zi, Ji[Yi++] = Qi, Ji[Yi++] = Xi, Zi = t.id, Qi = t.overflow, Xi = e;+ function Qi(e, t) {+ Ui[Wi++] = Ki, Ui[Wi++] = qi, Ui[Wi++] = Gi, Ki = t.id, qi = t.overflow, Gi = e;}- var ia = null, z = null, B = !1, aa = null, oa = !1, sa = Error(i(519));- function ca(e) {- throw ma(Ui(Error(i(418, 1 < arguments.length && arguments[1] !== void 0 && arguments[1] ? "text" : "HTML", "")), e)), sa;+ var $i = null, ea = null, U = !1, ta = null, na = !1, ra = Error(i(519));+ function ia(e) {+ throw ua(Ri(Error(i(418, 1 < arguments.length && arguments[1] !== void 0 && arguments[1] ? "text" : "HTML", "")), e)), ra;}- function la(e) {+ function aa(e) {var t = e.stateNode, n = e.type, r = e.memoizedProps;- switch (t[Et] = e, t[Dt] = r, n) {+ switch (t[vt] = e, t[yt] = r, n) {case "dialog":- Q("cancel", t), Q("close", t);+ $("cancel", t), $("close", t);break;case "iframe":case "object":case "embed":- Q("load", t);+ $("load", t);break;case "video":case "audio":- for (n = 0; n < zf.length; n++) Q(zf[n], t);+ for (n = 0; n < Rf.length; n++) $(Rf[n], t);break;case "source":- Q("error", t);+ $("error", t);break;case "img":case "image":case "link":- Q("error", t), Q("load", t);+ $("error", t), $("load", t);break;case "details":- Q("toggle", t);+ $("toggle", t);break;case "input":- Q("invalid", t), cn(t, r.value, r.defaultValue, r.checked, r.defaultChecked, r.type, r.name, !0);+ $("invalid", t), $t(t, r.value, r.defaultValue, r.checked, r.defaultChecked, r.type, r.name, !0);break;case "select":- Q("invalid", t);+ $("invalid", t);break;- case "textarea": Q("invalid", t), fn(t, r.value, r.defaultValue, r.children);+ case "textarea": $("invalid", t), rn(t, r.value, r.defaultValue, r.children);}- n = r.children, typeof n != "string" && typeof n != "number" && typeof n != "bigint" || t.textContent === "" + n || !0 === r.suppressHydrationWarning || ep(t.textContent, n) ? (r.popover != null && (Q("beforetoggle", t), Q("toggle", t)), r.onScroll != null && Q("scroll", t), r.onScrollEnd != null && Q("scrollend", t), r.onClick != null && (t.onclick = bn), t = !0) : t = !1, t || ca(e, !0);+ n = r.children, typeof n != "string" && typeof n != "number" && typeof n != "bigint" || t.textContent === "" + n || !0 === r.suppressHydrationWarning || $f(t.textContent, n) ? (r.popover != null && ($("beforetoggle", t), $("toggle", t)), r.onScroll != null && $("scroll", t), r.onScrollEnd != null && $("scrollend", t), r.onClick != null && (t.onclick = mn), t = !0) : t = !1, t || ia(e, !0);}- function ua(e) {- for (ia = e.return; ia;) switch (ia.tag) {+ function oa(e) {+ for ($i = e.return; $i;) switch ($i.tag) {case 5:case 31:case 13:- oa = !1;+ na = !1;return;case 27:case 3:- oa = !0;+ na = !0;return;- default: ia = ia.return;+ default: $i = $i.return;}}- function da(e) {- if (e !== ia) return !1;- if (!B) return ua(e), B = !0, !1;+ function sa(e) {+ if (e !== $i) return !1;+ if (!U) return oa(e), U = !0, !1;var t = e.tag, n;- if ((n = t !== 3 && t !== 27) && ((n = t === 5) && (n = e.type, n = n === "form" || n === "button" || pp(e.type, e.memoizedProps)), n = !n), n && z && ca(e), ua(e), t === 13) {+ if ((n = t !== 3 && t !== 27) && ((n = t === 5) && (n = e.type, n = n === "form" || n === "button" || pp(e.type, e.memoizedProps)), n = !n), n && ea && ia(e), oa(e), t === 13) {if (e = e.memoizedState, e = e === null ? null : e.dehydrated, !e) throw Error(i(317));- z = dm(e);+ ea = dm(e);} else if (t === 31) {if (e = e.memoizedState, e = e === null ? null : e.dehydrated, !e) throw Error(i(317));- z = dm(e);- } else t === 27 ? (t = z, Sp(e.type) ? (e = um, um = null, z = e) : z = t) : z = ia ? lm(e.stateNode.nextSibling) : null;+ ea = dm(e);+ } else t === 27 ? (t = ea, Sp(e.type) ? (e = um, um = null, ea = e) : ea = t) : ea = $i ? lm(e.stateNode.nextSibling) : null;return !0;}- function fa() {- z = ia = null, B = !1;+ function ca() {+ ea = $i = null, U = !1;}- function pa() {- var e = aa;- return e !== null && (fd === null ? fd = e : fd.push.apply(fd, e), aa = null), e;+ function la() {+ var e = ta;+ return e !== null && (ud === null ? ud = e : ud.push.apply(ud, e), ta = null), e;}- function ma(e) {- aa === null ? aa = [e] : aa.push(e);+ function ua(e) {+ ta === null ? ta = [e] : ta.push(e);}- var ha = Ee(null), ga = null, _a = null;- function va(e, t, n) {- A(ha, t._currentValue), t._currentValue = n;+ var da = me(null), fa = null, pa = null;+ function ma(e, t, n) {+ B(da, t._currentValue), t._currentValue = n;}- function ya(e) {- e._currentValue = ha.current, De(ha);+ function ha(e) {+ e._currentValue = da.current, he(da);}- function ba(e, t, n) {+ function ga(e, t, n) {for (; e !== null;) {var r = e.alternate;if ((e.childLanes & t) === t ? r !== null && (r.childLanes & t) !== t && (r.childLanes |= t) : (e.childLanes |= t, r !== null && (r.childLanes |= t)), e === n) break;e = e.return;}}- function xa(e, t, n, r) {+ function _a(e, t, n, r) {var a = e.child;for (a !== null && (a.return = e); a !== null;) {var o = a.dependencies;@@ -2368,15 +8089,15 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrvar c = o;o = a;for (var l = 0; l < t.length; l++) if (c.context === t[l]) {- o.lanes |= n, c = o.alternate, c !== null && (c.lanes |= n), ba(o.return, n, e), r || (s = null);+ o.lanes |= n, c = o.alternate, c !== null && (c.lanes |= n), ga(o.return, n, e), r || (s = null);break a;}o = c.next;}} else if (a.tag === 18) {if (s = a.return, s === null) throw Error(i(341));- s.lanes |= n, o = s.alternate, o !== null && (o.lanes |= n), ba(s, n, e), s = null;- } else a.tag === 13 && a.memoizedState !== null && a.memoizedState.dehydrated === null ? (a.lanes |= n, s = a.alternate, s !== null && (s.lanes |= n), ba(a.return, n, e), s = a.child, s = s === null ? null : s.sibling) : s = a.child;+ s.lanes |= n, o = s.alternate, o !== null && (o.lanes |= n), ga(s, n, e), s = null;+ } else a.tag === 13 && a.memoizedState !== null && a.memoizedState.dehydrated === null ? (a.lanes |= n, s = a.alternate, s !== null && (s.lanes |= n), ga(a.return, n, e), s = a.child, s = s === null ? null : s.sibling) : s = a.child;if (s !== null) s.return = a;else for (s = a; s !== null;) {if (s === e) {@@ -2392,7 +8113,7 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescra = s;}}- function Sa(e, t, n, r) {+ function va(e, t, n, r) {e = null;for (var a = t, o = !1; a !== null;) {if (!o) {@@ -2404,48 +8125,48 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrif (s === null) throw Error(i(387));if (s = s.memoizedProps, s !== null) {var c = a.type;- Hr(a.pendingProps.value, s.value) || (e === null ? e = [c] : e.push(c));+ Lr(a.pendingProps.value, s.value) || (e === null ? e = [c] : e.push(c));}- } else if (a === je.current) {+ } else if (a === ye.current) {if (s = a.alternate, s === null) throw Error(i(387));s.memoizedState.memoizedState !== a.memoizedState.memoizedState && (e === null ? e = [sh] : e.push(sh));}a = a.return;}- return e !== null && xa(t, e, n, r), t.flags |= 262144, e !== null;+ return e !== null && _a(t, e, n, r), t.flags |= 262144, e !== null;}- function Ca(e) {+ function ya(e) {for (e = e.firstContext; e !== null;) {- if (!Hr(e.context._currentValue, e.memoizedValue)) return !0;+ if (!Lr(e.context._currentValue, e.memoizedValue)) return !0;e = e.next;}return !1;}- function wa(e) {- ga = e, _a = null, e = e.dependencies, e !== null && (e.firstContext = null);+ function ba(e) {+ fa = e, pa = null, e = e.dependencies, e !== null && (e.firstContext = null);}- function Ta(e) {- return Da(ga, e);+ function xa(e) {+ return Ca(fa, e);}- function Ea(e, t) {- return ga === null && wa(e), Da(e, t);+ function Sa(e, t) {+ return fa === null && ba(e), Ca(e, t);}- function Da(e, t) {+ function Ca(e, t) {var n = t._currentValue;if (t = {context: t,memoizedValue: n,next: null- }, _a === null) {+ }, pa === null) {if (e === null) throw Error(i(308));- _a = t, e.dependencies = {+ pa = t, e.dependencies = {lanes: 0,firstContext: t}, e.flags |= 524288;- } else _a = _a.next = t;+ } else pa = pa.next = t;return n;}- var Oa = typeof AbortController < "u" ? AbortController : function() {+ var wa = typeof AbortController < "u" ? AbortController : function() {var e = [], t = this.signal = {aborted: !1,addEventListener: function(t, n) {@@ -2457,27 +8178,27 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrreturn e();});};- }, ka = t.unstable_scheduleCallback, Aa = t.unstable_NormalPriority, ja = {- $$typeof: le,+ }, Ta = t.unstable_scheduleCallback, Ea = t.unstable_NormalPriority, Da = {+ $$typeof: N,Consumer: null,Provider: null,_currentValue: null,_currentValue2: null,_threadCount: 0};- function Ma() {+ function Oa() {return {- controller: new Oa(),+ controller: new wa(),data: /* @__PURE__ */ new Map(),refCount: 0};}- function Na(e) {- e.refCount--, e.refCount === 0 && ka(Aa, function() {+ function ka(e) {+ e.refCount--, e.refCount === 0 && Ta(Ea, function() {e.controller.abort();});}- function Pa(e, t) {+ function Aa(e, t) {if (e.pendingLanes & 4194048) {var n = e.transitionTypes;for (n === null && (n = e.transitionTypes = []), e = 0; e < t.length; e++) {@@ -2486,16 +8207,16 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr}}}- var Fa = null;- function Ia(e) {+ var ja = null;+ function Ma(e) {var t = e.transitionTypes;return e.transitionTypes = null, t;}- var La = null, Ra = 0, za = 0, Ba = null;- function Va(e, t) {- if (La === null) {- var n = La = [];- Ra = 0, za = Pf(), Ba = {+ var Na = null, Pa = 0, Fa = 0, Ia = null;+ function La(e, t) {+ if (Na === null) {+ var n = Na = [];+ Pa = 0, Fa = Nf(), Ia = {status: "pending",value: void 0,then: function(e) {@@ -2503,17 +8224,17 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr}};}- return Ra++, t.then(Ha, Ha), t;+ return Pa++, t.then(Ra, Ra), t;}- function Ha() {- if (--Ra === 0 && (Fa = null, La !== null)) {- Ba !== null && (Ba.status = "fulfilled");- var e = La;- La = null, za = 0, Ba = null;+ function Ra() {+ if (--Pa === 0 && (ja = null, Na !== null)) {+ Ia !== null && (Ia.status = "fulfilled");+ var e = Na;+ Na = null, Fa = 0, Ia = null;for (var t = 0; t < e.length; t++) (0, e[t])();}}- function Ua(e, t) {+ function za(e, t) {var n = [], r = {status: "pending",value: null,@@ -2529,48 +8250,48 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrfor (r.status = "rejected", r.reason = e, e = 0; e < n.length; e++) (0, n[e])(void 0);}), r;}- var Wa = D.S;- D.S = function(e, t) {- if (hd = Ke(), typeof t == "object" && t && typeof t.then == "function" && Va(e, t), Fa !== null) for (var n = bf; n !== null;) Pa(n, Fa), n = n.next;+ var Ba = R.S;+ R.S = function(e, t) {+ if (pd = Ie(), typeof t == "object" && t && typeof t.then == "function" && La(e, t), ja !== null) for (var n = yf; n !== null;) Aa(n, ja), n = n.next;if (n = e.types, n !== null) {- for (var r = bf; r !== null;) Pa(r, n), r = r.next;- if (za !== 0) {- r = Fa, r === null && (r = Fa = []);+ for (var r = yf; r !== null;) Aa(r, n), r = r.next;+ if (Fa !== 0) {+ r = ja, r === null && (r = ja = []);for (var i = 0; i < n.length; i++) {var a = n[i];r.indexOf(a) === -1 && r.push(a);}}}- Wa !== null && Wa(e, t);+ Ba !== null && Ba(e, t);};- var Ga = Ee(null);- function Ka() {- var e = Ga.current;- return e === null ? q.pooledCache : e;+ var Va = me(null);+ function Ha() {+ var e = Va.current;+ return e === null ? Xu.pooledCache : e;}- function qa(e, t) {- t === null ? A(Ga, Ga.current) : A(Ga, t.pool);+ function Ua(e, t) {+ t === null ? B(Va, Va.current) : B(Va, t.pool);}- function Ja() {- var e = Ka();+ function Wa() {+ var e = Ha();return e === null ? null : {- parent: ja._currentValue,+ parent: Da._currentValue,pool: e};}- var Ya = Error(i(460)), Xa = Error(i(474)), Za = Error(i(542)), Qa = { then: function() {} };- function $a(e) {+ var Ga = Error(i(460)), Ka = Error(i(474)), qa = Error(i(542)), Ja = { then: function() {} };+ function Ya(e) {return e = e.status, e === "fulfilled" || e === "rejected";}- function eo(e, t, n) {- switch (n = e[n], n === void 0 ? e.push(t) : n !== t && (t.then(bn, bn), t = n), t.status) {+ function Xa(e, t, n) {+ switch (n = e[n], n === void 0 ? e.push(t) : n !== t && (t.then(mn, mn), t = n), t.status) {case "fulfilled": return t.value;- case "rejected": throw e = t.reason, io(e), e === void 0 && !("reason" in t) ? Error(i(600)) : e;+ case "rejected": throw e = t.reason, eo(e), e === void 0 && !("reason" in t) ? Error(i(600)) : e;default:- if (typeof t.status == "string") t.then(bn, bn);+ if (typeof t.status == "string") t.then(mn, mn);else {- if (e = q, e !== null && 100 < e.shellSuspendCounter) throw Error(i(482));+ if (e = Xu, e !== null && 100 < e.shellSuspendCounter) throw Error(i(482));e = t, e.status = "pending", e.then(function(e) {if (t.status === "pending") {var n = t;@@ -2585,40 +8306,40 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr}switch (t.status) {case "fulfilled": return t.value;- case "rejected": throw e = t.reason, io(e), e;+ case "rejected": throw e = t.reason, eo(e), e;}- throw no = t, Ya;+ throw Qa = t, Ga;}}- function to(e) {+ function Za(e) {try {var t = e._init;return t(e._payload);} catch (e) {- throw typeof e == "object" && e && typeof e.then == "function" ? (no = e, Ya) : e;+ throw typeof e == "object" && e && typeof e.then == "function" ? (Qa = e, Ga) : e;}}- var no = null;- function ro() {- if (no === null) throw Error(i(459));- var e = no;- return no = null, e;+ var Qa = null;+ function $a() {+ if (Qa === null) throw Error(i(459));+ var e = Qa;+ return Qa = null, e;}- function io(e) {- if (e === Ya || e === Za) throw Error(i(483));+ function eo(e) {+ if (e === Ga || e === qa) throw Error(i(483));}- var ao = null, oo = 0;- function so(e) {- var t = oo;- return oo += 1, ao === null && (ao = []), eo(ao, e, t);+ var to = null, no = 0;+ function ro(e) {+ var t = no;+ return no += 1, to === null && (to = []), Xa(to, e, t);}- function co(e, t) {+ function io(e, t) {t = t.props.ref, e.ref = t === void 0 ? null : t;}- function lo(e, t) {- throw t.$$typeof === ne ? Error(i(525)) : (e = Object.prototype.toString.call(t), Error(i(31, e === "[object Object]" ? "object with keys {" + Object.keys(t).join(", ") + "}" : e)));+ function ao(e, t) {+ throw t.$$typeof === E ? Error(i(525)) : (e = Object.prototype.toString.call(t), Error(i(31, e === "[object Object]" ? "object with keys {" + Object.keys(t).join(", ") + "}" : e)));}- function uo(e) {+ function oo(e) {function t(t, n) {if (e) {var r = t.deletions;@@ -2635,7 +8356,7 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrreturn t;}function a(e, t) {- return e = Fi(e, t), e.index = 0, e.sibling = null, e;+ return e = Ai(e, t), e.index = 0, e.sibling = null, e;}function o(t, n, r) {return t.index = r, e ? (r = t.alternate, r === null ? (t.flags |= 134217730, n) : (r = r.index, r < n ? (t.flags |= 2, n) : r)) : (t.flags |= 1048576, n);@@ -2644,30 +8365,30 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrreturn e && t.alternate === null && (t.flags |= 134217730), t;}function c(e, t, n, r) {- return t === null || t.tag !== 6 ? (t = zi(n, e.mode, r), t.return = e, t) : (t = a(t, n), t.return = e, t);+ return t === null || t.tag !== 6 ? (t = Pi(n, e.mode, r), t.return = e, t) : (t = a(t, n), t.return = e, t);}function l(e, t, n, r) {var i = n.type;- return i === ae ? (e = d(e, t, n.props.children, r, n.key), co(e, n), e) : t !== null && (t.elementType === i || typeof i == "object" && i && i.$$typeof === pe && to(i) === t.type) ? (t = a(t, n.props), co(t, n), t.return = e, t) : (t = Li(n.type, n.key, n.props, null, e.mode, r), co(t, n), t.return = e, t);+ return i === k ? (e = d(e, t, n.props.children, r, n.key), io(e, n), e) : t !== null && (t.elementType === i || typeof i == "object" && i && i.$$typeof === re && Za(i) === t.type) ? (t = a(t, n.props), io(t, n), t.return = e, t) : (t = Mi(n.type, n.key, n.props, null, e.mode, r), io(t, n), t.return = e, t);}function u(e, t, n, r) {- return t === null || t.tag !== 4 || t.stateNode.containerInfo !== n.containerInfo || t.stateNode.implementation !== n.implementation ? (t = Vi(n, e.mode, r), t.return = e, t) : (t = a(t, n.children || []), t.return = e, t);+ return t === null || t.tag !== 4 || t.stateNode.containerInfo !== n.containerInfo || t.stateNode.implementation !== n.implementation ? (t = Ii(n, e.mode, r), t.return = e, t) : (t = a(t, n.children || []), t.return = e, t);}function d(e, t, n, r, i) {- return t === null || t.tag !== 7 ? (t = Ri(n, e.mode, r, i), t.return = e, t) : (t = a(t, n), t.return = e, t);+ return t === null || t.tag !== 7 ? (t = Ni(n, e.mode, r, i), t.return = e, t) : (t = a(t, n), t.return = e, t);}function f(e, t, n) {- if (typeof t == "string" && t !== "" || typeof t == "number" || typeof t == "bigint") return t = zi("" + t, e.mode, n), t.return = e, t;+ if (typeof t == "string" && t !== "" || typeof t == "number" || typeof t == "bigint") return t = Pi("" + t, e.mode, n), t.return = e, t;if (typeof t == "object" && t) {switch (t.$$typeof) {- case re: return n = Li(t.type, t.key, t.props, null, e.mode, n), co(n, t), n.return = e, n;- case ie: return t = Vi(t, e.mode, n), t.return = e, t;- case pe: return t = to(t), f(e, t, n);+ case D: return n = Mi(t.type, t.key, t.props, null, e.mode, n), io(n, t), n.return = e, n;+ case O: return t = Ii(t, e.mode, n), t.return = e, t;+ case re: return t = Za(t), f(e, t, n);}- if (Ce(t) || be(t)) return t = Ri(t, e.mode, n, null), t.return = e, t;- if (typeof t.then == "function") return f(e, so(t), n);- if (t.$$typeof === le) return f(e, Ea(e, t), n);- lo(e, t);+ if (ue(t) || se(t)) return t = Ni(t, e.mode, n, null), t.return = e, t;+ if (typeof t.then == "function") return f(e, ro(t), n);+ if (t.$$typeof === N) return f(e, Sa(e, t), n);+ ao(e, t);}return null;}@@ -2676,14 +8397,14 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrif (typeof n == "string" && n !== "" || typeof n == "number" || typeof n == "bigint") return i === null ? c(e, t, "" + n, r) : null;if (typeof n == "object" && n) {switch (n.$$typeof) {- case re: return n.key === i ? l(e, t, n, r) : null;- case ie: return n.key === i ? u(e, t, n, r) : null;- case pe: return n = to(n), p(e, t, n, r);+ case D: return n.key === i ? l(e, t, n, r) : null;+ case O: return n.key === i ? u(e, t, n, r) : null;+ case re: return n = Za(n), p(e, t, n, r);}- if (Ce(n) || be(n)) return i === null ? d(e, t, n, r, null) : null;- if (typeof n.then == "function") return p(e, t, so(n), r);- if (n.$$typeof === le) return p(e, t, Ea(e, n), r);- lo(e, n);+ if (ue(n) || se(n)) return i === null ? d(e, t, n, r, null) : null;+ if (typeof n.then == "function") return p(e, t, ro(n), r);+ if (n.$$typeof === N) return p(e, t, Sa(e, n), r);+ ao(e, n);}return null;}@@ -2691,14 +8412,14 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrif (typeof r == "string" && r !== "" || typeof r == "number" || typeof r == "bigint") return e = e.get(n) || null, c(t, e, "" + r, i);if (typeof r == "object" && r) {switch (r.$$typeof) {- case re: return e = e.get(r.key === null ? n : r.key) || null, l(t, e, r, i);- case ie: return e = e.get(r.key === null ? n : r.key) || null, u(t, e, r, i);- case pe: return r = to(r), m(e, t, n, r, i);+ case D: return e = e.get(r.key === null ? n : r.key) || null, l(t, e, r, i);+ case O: return e = e.get(r.key === null ? n : r.key) || null, u(t, e, r, i);+ case re: return r = Za(r), m(e, t, n, r, i);}- if (Ce(r) || be(r)) return e = e.get(n) || null, d(t, e, r, i, null);- if (typeof r.then == "function") return m(e, t, n, so(r), i);- if (r.$$typeof === le) return m(e, t, n, Ea(t, r), i);- lo(t, r);+ if (ue(r) || se(r)) return e = e.get(n) || null, d(t, e, r, i, null);+ if (typeof r.then == "function") return m(e, t, n, ro(r), i);+ if (r.$$typeof === N) return m(e, t, n, Sa(t, r), i);+ ao(t, r);}return null;}@@ -2712,15 +8433,15 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr}e && d && _.alternate === null && t(i, d), a = o(_, a, h), u === null ? l = _ : u.sibling = _, u = _, d = g;}- if (h === s.length) return n(i, d), B && $i(i, h), l;+ if (h === s.length) return n(i, d), U && Ji(i, h), l;if (d === null) {for (; h < s.length; h++) d = f(i, s[h], c), d !== null && (a = o(d, a, h), u === null ? l = d : u.sibling = d, u = d);- return B && $i(i, h), l;+ return U && Ji(i, h), l;}for (d = r(d); h < s.length; h++) g = m(d, i, h, s[h], c), g !== null && (e && (_ = g.alternate, _ !== null && d.delete(_.key === null ? h : _.key)), a = o(g, a, h), u === null ? l = g : u.sibling = g, u = g);return e && d.forEach(function(e) {return t(i, e);- }), B && $i(i, h), l;+ }), U && Ji(i, h), l;}function g(a, s, c, l) {if (c == null) throw Error(i(151));@@ -2733,30 +8454,30 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr}e && h && y.alternate === null && t(a, h), s = o(y, s, g), d === null ? u = y : d.sibling = y, d = y, h = _;}- if (v.done) return n(a, h), B && $i(a, g), u;+ if (v.done) return n(a, h), U && Ji(a, g), u;if (h === null) {for (; !v.done; g++, v = c.next()) v = f(a, v.value, l), v !== null && (s = o(v, s, g), d === null ? u = v : d.sibling = v, d = v);- return B && $i(a, g), u;+ return U && Ji(a, g), u;}for (h = r(h); !v.done; g++, v = c.next()) v = m(h, a, g, v.value, l), v !== null && (e && (_ = v.alternate, _ !== null && h.delete(_.key === null ? g : _.key)), s = o(v, s, g), d === null ? u = v : d.sibling = v, d = v);return e && h.forEach(function(e) {return t(a, e);- }), B && $i(a, g), u;+ }), U && Ji(a, g), u;}function _(e, r, o, c) {- if (typeof o == "object" && o && o.type === ae && o.key === null && o.props.ref === void 0 && (o = o.props.children), typeof o == "object" && o) {+ if (typeof o == "object" && o && o.type === k && o.key === null && o.props.ref === void 0 && (o = o.props.children), typeof o == "object" && o) {switch (o.$$typeof) {- case re:+ case D:a: {for (var l = o.key; r !== null;) {if (r.key === l) {- if (l = o.type, l === ae) {+ if (l = o.type, l === k) {if (r.tag === 7) {- n(e, r.sibling), c = a(r, o.props.children), co(c, o), c.return = e, e = c;+ n(e, r.sibling), c = a(r, o.props.children), io(c, o), c.return = e, e = c;break a;}- } else if (r.elementType === l || typeof l == "object" && l && l.$$typeof === pe && to(l) === r.type) {- n(e, r.sibling), c = a(r, o.props), co(c, o), c.return = e, e = c;+ } else if (r.elementType === l || typeof l == "object" && l && l.$$typeof === re && Za(l) === r.type) {+ n(e, r.sibling), c = a(r, o.props), io(c, o), c.return = e, e = c;break a;}n(e, r);@@ -2764,10 +8485,10 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr}t(e, r), r = r.sibling;}- o.type === ae ? (c = Ri(o.props.children, e.mode, c, o.key), co(c, o), c.return = e, e = c) : (c = Li(o.type, o.key, o.props, null, e.mode, c), co(c, o), c.return = e, e = c);+ o.type === k ? (c = Ni(o.props.children, e.mode, c, o.key), io(c, o), c.return = e, e = c) : (c = Mi(o.type, o.key, o.props, null, e.mode, c), io(c, o), c.return = e, e = c);}return s(e);- case ie:+ case O:a: {for (l = o.key; r !== null;) {if (r.key === l) {@@ -2780,36 +8501,36 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr}t(e, r), r = r.sibling;}- c = Vi(o, e.mode, c), c.return = e, e = c;+ c = Ii(o, e.mode, c), c.return = e, e = c;}return s(e);- case pe: return o = to(o), _(e, r, o, c);+ case re: return o = Za(o), _(e, r, o, c);}- if (Ce(o)) return h(e, r, o, c);- if (be(o)) {- if (l = be(o), typeof l != "function") throw Error(i(150));+ if (ue(o)) return h(e, r, o, c);+ if (se(o)) {+ if (l = se(o), typeof l != "function") throw Error(i(150));return o = l.call(o), g(e, r, o, c);}- if (typeof o.then == "function") return _(e, r, so(o), c);- if (o.$$typeof === le) return _(e, r, Ea(e, o), c);- lo(e, o);+ if (typeof o.then == "function") return _(e, r, ro(o), c);+ if (o.$$typeof === N) return _(e, r, Sa(e, o), c);+ ao(e, o);}- return typeof o == "string" && o !== "" || typeof o == "number" || typeof o == "bigint" ? (o = "" + o, r !== null && r.tag === 6 ? (n(e, r.sibling), c = a(r, o), c.return = e, e = c) : (n(e, r), c = zi(o, e.mode, c), c.return = e, e = c), s(e)) : n(e, r);+ return typeof o == "string" && o !== "" || typeof o == "number" || typeof o == "bigint" ? (o = "" + o, r !== null && r.tag === 6 ? (n(e, r.sibling), c = a(r, o), c.return = e, e = c) : (n(e, r), c = Pi(o, e.mode, c), c.return = e, e = c), s(e)) : n(e, r);}return function(e, t, n, r) {try {- oo = 0;+ no = 0;var i = _(e, t, n, r);- return ao = null, i;+ return to = null, i;} catch (t) {- if (t === Ya || t === Za) throw t;- var a = Ni(29, t, null, e.mode);+ if (t === Ga || t === qa) throw t;+ var a = Oi(29, t, null, e.mode);return a.lanes = r, a.return = e, a;}};}- var fo = uo(!0), po = uo(!1), mo = !1;- function ho(e) {+ var so = oo(!0), co = oo(!1), lo = !1;+ function uo(e) {e.updateQueue = {baseState: e.memoizedState,firstBaseUpdate: null,@@ -2822,7 +8543,7 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrcallbacks: null};}- function go(e, t) {+ function fo(e, t) {e = e.updateQueue, t.updateQueue === e && (t.updateQueue = {baseState: e.baseState,firstBaseUpdate: e.firstBaseUpdate,@@ -2831,7 +8552,7 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrcallbacks: null});}- function _o(e) {+ function po(e) {return {lane: e,tag: 0,@@ -2840,22 +8561,22 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrnext: null};}- function vo(e, t, n) {+ function mo(e, t, n) {var r = e.updateQueue;if (r === null) return null;- if (r = r.shared, K & 2) {+ if (r = r.shared, X & 2) {var i = r.pending;- return i === null ? t.next = t : (t.next = i.next, i.next = t), r.pending = t, t = Ai(e), ki(e, null, n), t;+ return i === null ? t.next = t : (t.next = i.next, i.next = t), r.pending = t, t = Ti(e), wi(e, null, n), t;}- return Ei(e, r, t, n), Ai(e);+ return xi(e, r, t, n), Ti(e);}- function yo(e, t, n) {+ function ho(e, t, n) {if (t = t.updateQueue, t !== null && (t = t.shared, n & 4194048)) {var r = t.lanes;- r &= e.pendingLanes, n |= r, t.lanes = n, bt(e, n);+ r &= e.pendingLanes, n |= r, t.lanes = n, dt(e, n);}}- function bo(e, t) {+ function go(e, t) {var n = e.updateQueue, r = e.alternate;if (r !== null && (r = r.updateQueue, n === r)) {var i = null, a = null;@@ -2883,17 +8604,17 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr}e = n.lastBaseUpdate, e === null ? n.firstBaseUpdate = t : e.next = t, n.lastBaseUpdate = t;}- var xo = !1;- function So() {- if (xo) {- var e = Ba;+ var _o = !1;+ function vo() {+ if (_o) {+ var e = Ia;if (e !== null) throw e;}}- function Co(e, t, n, r) {- xo = !1;+ function yo(e, t, n, r) {+ _o = !1;var i = e.updateQueue;- mo = !1;+ lo = !1;var a = i.firstBaseUpdate, o = i.lastBaseUpdate, s = i.shared.pending;if (s !== null) {i.shared.pending = null;@@ -2907,8 +8628,8 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescro = 0, u = l = c = null, s = a;do {var f = s.lane & -536870913, p = f !== s.lane;- if (p ? (Y & f) === f : (r & f) === f) {- f !== 0 && f === za && (xo = !0), u !== null && (u = u.next = {+ if (p ? (Q & f) === f : (r & f) === f) {+ f !== 0 && f === Fa && (_o = !0), u !== null && (u = u.next = {lane: 0,tag: s.tag,payload: s.payload,@@ -2932,7 +8653,7 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrif (m = h.payload, f = typeof m == "function" ? m.call(g, d, f) : m, f == null) break a;d = T({}, d, f);break a;- case 2: mo = !0;+ case 2: lo = !0;}}f = s.callback, f !== null && (e.flags |= 64, p && (e.flags |= 8192), p = i.callbacks, p === null ? i.callbacks = [f] : p.push(f));@@ -2948,52 +8669,52 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrp = s, s = p.next, p.next = null, i.lastBaseUpdate = p, i.shared.pending = null;}} while (1);- u === null && (c = d), i.baseState = c, i.firstBaseUpdate = l, i.lastBaseUpdate = u, a === null && (i.shared.lanes = 0), od |= o, e.lanes = o, e.memoizedState = d;+ u === null && (c = d), i.baseState = c, i.firstBaseUpdate = l, i.lastBaseUpdate = u, a === null && (i.shared.lanes = 0), id |= o, e.lanes = o, e.memoizedState = d;}}- function wo(e, t) {+ function bo(e, t) {if (typeof e != "function") throw Error(i(191, e));e.call(t);}- function To(e, t) {+ function xo(e, t) {var n = e.callbacks;- if (n !== null) for (e.callbacks = null, e = 0; e < n.length; e++) wo(n[e], t);+ if (n !== null) for (e.callbacks = null, e = 0; e < n.length; e++) bo(n[e], t);}- var Eo = Ee(null), Do = Ee(0);- function Oo(e, t) {- e = id, A(Do, e), A(Eo, t), id = e | t.baseLanes;+ var So = me(null), Co = me(0);+ function wo(e, t) {+ e = nd, B(Co, e), B(So, t), nd = e | t.baseLanes;}- function ko() {- A(Do, id), A(Eo, Eo.current);+ function To() {+ B(Co, nd), B(So, So.current);}- function Ao() {- id = Do.current, De(Eo), De(Do);+ function Eo() {+ nd = Co.current, he(So), he(Co);}- var jo = Ee(null), Mo = null;- function No(e) {+ var Do = me(null), Oo = null;+ function ko(e) {var t = e.alternate;- A(Ro, Ro.current & 1), A(jo, e), Mo === null && (t === null || Eo.current !== null || t.memoizedState !== null) && (Mo = e);+ B(Po, Po.current & 1), B(Do, e), Oo === null && (t === null || So.current !== null || t.memoizedState !== null) && (Oo = e);}- function Po(e) {- A(Ro, Ro.current), A(jo, e), Mo === null && (Mo = e);+ function Ao(e) {+ B(Po, Po.current), B(Do, e), Oo === null && (Oo = e);}- function Fo(e) {- e.tag === 22 ? (A(Ro, Ro.current), A(jo, e), Mo === null && (Mo = e)) : Io();+ function jo(e) {+ e.tag === 22 ? (B(Po, Po.current), B(Do, e), Oo === null && (Oo = e)) : Mo();}- function Io() {- A(Ro, Ro.current), A(jo, jo.current);+ function Mo() {+ B(Po, Po.current), B(Do, Do.current);}- function Lo(e) {- De(jo), Mo === e && (Mo = null), De(Ro);+ function No(e) {+ he(Do), Oo === e && (Oo = null), he(Po);}- var Ro = Ee(0);- function zo(e, t) {- A(jo, jo.current), A(Ro, t);+ var Po = me(0);+ function Fo(e, t) {+ B(Do, Do.current), B(Po, t);}- function Bo(e) {- De(Ro), De(jo), Mo === e && (Mo = null);+ function Io(e) {+ he(Po), he(Do), Oo === e && (Oo = null);}- function Vo(e) {+ function Lo(e) {for (var t = e; t !== null;) {if (t.tag === 13) {var n = t.memoizedState;@@ -3013,59 +8734,59 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr}return null;}- var Ho = 0, V = null, H = null, Uo = null, Wo = !1, Go = !1, Ko = !1, qo = 0, Jo = 0, Yo = null, Xo = 0;- function Zo() {+ var Ro = 0, W = null, G = null, zo = null, Bo = !1, Vo = !1, Ho = !1, Uo = 0, Wo = 0, Go = null, Ko = 0;+ function qo() {throw Error(i(321));}- function Qo(e, t) {+ function Jo(e, t) {if (t === null) return !1;- for (var n = 0; n < t.length && n < e.length; n++) if (!Hr(e[n], t[n])) return !1;+ for (var n = 0; n < t.length && n < e.length; n++) if (!Lr(e[n], t[n])) return !1;return !0;}- function $o(e, t, n, r, i, a) {- return Ho = a, V = t, t.memoizedState = null, t.updateQueue = null, t.lanes = 0, D.H = e === null || e.memoizedState === null ? gc : _c, Ko = !1, a = n(r, i), Ko = !1, Go && (a = ts(t, n, r, i)), es(e), a;+ function Yo(e, t, n, r, i, a) {+ return Ro = a, W = t, t.memoizedState = null, t.updateQueue = null, t.lanes = 0, R.H = e === null || e.memoizedState === null ? fc : pc, Ho = !1, a = n(r, i), Ho = !1, Vo && (a = Zo(t, n, r, i)), Xo(e), a;}- function es(e) {- D.H = hc;- var t = H !== null && H.next !== null;- if (Ho = 0, Uo = H = V = null, Wo = !1, Jo = 0, Yo = null, t) throw Error(i(300));- e === null || Pc || (e = e.dependencies, e !== null && Ca(e) && (Pc = !0));+ function Xo(e) {+ R.H = dc;+ var t = G !== null && G.next !== null;+ if (Ro = 0, zo = G = W = null, Bo = !1, Wo = 0, Go = null, t) throw Error(i(300));+ e === null || Ac || (e = e.dependencies, e !== null && ya(e) && (Ac = !0));}- function ts(e, t, n, r) {- V = e;+ function Zo(e, t, n, r) {+ W = e;var a = 0;do {- if (Go && (Yo = null), Jo = 0, Go = !1, 25 <= a) throw Error(i(301));- if (a += 1, Uo = H = null, e.updateQueue != null) {+ if (Vo && (Go = null), Wo = 0, Vo = !1, 25 <= a) throw Error(i(301));+ if (a += 1, zo = G = null, e.updateQueue != null) {var o = e.updateQueue;o.lastEffect = null, o.events = null, o.stores = null, o.memoCache != null && (o.memoCache.index = 0);}- D.H = vc, o = t(n, r);- } while (Go);+ R.H = mc, o = t(n, r);+ } while (Vo);return o;}- function ns() {- var e = D.H, t = e.useState()[0];- return t = typeof t.then == "function" ? ls(t) : t, e = e.useState()[0], (H === null ? null : H.memoizedState) !== e && (V.flags |= 1024), t;+ function Qo() {+ var e = R.H, t = e.useState()[0];+ return t = typeof t.then == "function" ? as(t) : t, e = e.useState()[0], (G === null ? null : G.memoizedState) !== e && (W.flags |= 1024), t;}- function rs() {- var e = qo !== 0;- return qo = 0, e;+ function $o() {+ var e = Uo !== 0;+ return Uo = 0, e;}- function is(e, t, n) {+ function es(e, t, n) {t.updateQueue = e.updateQueue, t.flags &= -2053, e.lanes &= ~n;}- function as(e) {- if (Wo) {+ function ts(e) {+ if (Bo) {for (e = e.memoizedState; e !== null;) {var t = e.queue;t !== null && (t.pending = null), e = e.next;}- Wo = !1;+ Bo = !1;}- Ho = 0, Uo = H = V = null, Go = !1, Jo = qo = 0, Yo = null;+ Ro = 0, zo = G = W = null, Vo = !1, Wo = Uo = 0, Go = null;}- function os() {+ function ns() {var e = {memoizedState: null,baseState: null,@@ -3073,28 +8794,28 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrqueue: null,next: null};- return Uo === null ? V.memoizedState = Uo = e : Uo = Uo.next = e, Uo;+ return zo === null ? W.memoizedState = zo = e : zo = zo.next = e, zo;}- function ss() {- if (H === null) {- var e = V.alternate;+ function rs() {+ if (G === null) {+ var e = W.alternate;e = e === null ? null : e.memoizedState;- } else e = H.next;- var t = Uo === null ? V.memoizedState : Uo.next;- if (t !== null) Uo = t, H = e;+ } else e = G.next;+ var t = zo === null ? W.memoizedState : zo.next;+ if (t !== null) zo = t, G = e;else {- if (e === null) throw V.alternate === null ? Error(i(467)) : Error(i(310));- H = e, e = {- memoizedState: H.memoizedState,- baseState: H.baseState,- baseQueue: H.baseQueue,- queue: H.queue,+ if (e === null) throw W.alternate === null ? Error(i(467)) : Error(i(310));+ G = e, e = {+ memoizedState: G.memoizedState,+ baseState: G.baseState,+ baseQueue: G.baseQueue,+ queue: G.queue,next: null- }, Uo === null ? V.memoizedState = Uo = e : Uo = Uo.next = e;+ }, zo === null ? W.memoizedState = zo = e : zo = zo.next = e;}- return Uo;+ return zo;}- function cs() {+ function is() {return {lastEffect: null,events: null,@@ -3102,22 +8823,22 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrmemoCache: null};}- function ls(e) {- var t = Jo;- return Jo += 1, Yo === null && (Yo = []), e = eo(Yo, e, t), t = V, (Uo === null ? t.memoizedState : Uo.next) === null && (t = t.alternate, D.H = t === null || t.memoizedState === null ? gc : _c), e;+ function as(e) {+ var t = Wo;+ return Wo += 1, Go === null && (Go = []), e = Xa(Go, e, t), t = W, (zo === null ? t.memoizedState : zo.next) === null && (t = t.alternate, R.H = t === null || t.memoizedState === null ? fc : pc), e;}- function us(e) {+ function os(e) {if (typeof e == "object" && e) {- if (typeof e.then == "function") return ls(e);- if (e.$$typeof === ve) return;- if (e.$$typeof === le) return Ta(e);+ if (typeof e.then == "function") return as(e);+ if (e.$$typeof === L) return;+ if (e.$$typeof === N) return xa(e);}throw Error(i(438, String(e)));}- function ds(e) {- var t = null, n = V.updateQueue;+ function ss(e) {+ var t = null, n = W.updateQueue;if (n !== null && (t = n.memoCache), t == null) {- var r = V.alternate;+ var r = W.alternate;r !== null && (r = r.updateQueue, r !== null && (r = r.memoCache, r != null && (t = {data: r.data.map(function(e) {return e.slice();@@ -3128,16 +8849,16 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrif (t ??= {data: [],index: 0- }, n === null && (n = cs(), V.updateQueue = n), n.memoCache = t, n = t.data[t.index], n === void 0) for (n = t.data[t.index] = Array(e), r = 0; r < e; r++) n[r] = ge;+ }, n === null && (n = is(), W.updateQueue = n), n.memoCache = t, n = t.data[t.index], n === void 0) for (n = t.data[t.index] = Array(e), r = 0; r < e; r++) n[r] = F;return t.index++, n;}- function fs(e, t) {+ function cs(e, t) {return typeof t == "function" ? t(e) : t;}- function ps(e) {- return ms(ss(), H, e);+ function ls(e) {+ return us(rs(), G, e);}- function ms(e, t, n) {+ function us(e, t, n) {var r = e.queue;if (r === null) throw Error(i(311));r.lastRenderedReducer = n;@@ -3155,7 +8876,7 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrvar c = s = null, l = null, u = t, d = !1;do {var f = u.lane & -536870913;- if (f === u.lane ? (Ho & f) === f : (Y & f) === f) {+ if (f === u.lane ? (Ro & f) === f : (Q & f) === f) {var p = u.revertLane;if (p === 0) l !== null && (l = l.next = {lane: 0,@@ -3165,9 +8886,9 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrhasEagerState: u.hasEagerState,eagerState: u.eagerState,next: null- }), f === za && (d = !0);- else if ((Ho & p) === p) {- u = u.next, p === za && (d = !0);+ }), f === Fa && (d = !0);+ else if ((Ro & p) === p) {+ u = u.next, p === Fa && (d = !0);continue;} else f = {lane: 0,@@ -3177,8 +8898,8 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrhasEagerState: u.hasEagerState,eagerState: u.eagerState,next: null- }, l === null ? (c = l = f, s = o) : l = l.next = f, V.lanes |= p, od |= p;- f = u.action, Ko && n(o, f), o = u.hasEagerState ? u.eagerState : n(o, f);+ }, l === null ? (c = l = f, s = o) : l = l.next = f, W.lanes |= p, id |= p;+ f = u.action, Ho && n(o, f), o = u.hasEagerState ? u.eagerState : n(o, f);} else p = {lane: f,revertLane: u.revertLane,@@ -3187,16 +8908,16 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrhasEagerState: u.hasEagerState,eagerState: u.eagerState,next: null- }, l === null ? (c = l = p, s = o) : l = l.next = p, V.lanes |= f, od |= f;+ }, l === null ? (c = l = p, s = o) : l = l.next = p, W.lanes |= f, id |= f;u = u.next;} while (u !== null && u !== t);- if (l === null ? s = o : l.next = c, !Hr(o, e.memoizedState) && (Pc = !0, d && (n = Ba, n !== null))) throw n;+ if (l === null ? s = o : l.next = c, !Lr(o, e.memoizedState) && (Ac = !0, d && (n = Ia, n !== null))) throw n;e.memoizedState = o, e.baseState = s, e.baseQueue = l, r.lastRenderedState = o;}return a === null && (r.lanes = 0), [e.memoizedState, r.dispatch];}- function hs(e) {- var t = ss(), n = t.queue;+ function ds(e) {+ var t = rs(), n = t.queue;if (n === null) throw Error(i(311));n.lastRenderedReducer = e;var r = n.dispatch, a = n.pending, o = t.memoizedState;@@ -3206,61 +8927,61 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrdoo = e(o, s.action), s = s.next;while (s !== a);- Hr(o, t.memoizedState) || (Pc = !0), t.memoizedState = o, t.baseQueue === null && (t.baseState = o), n.lastRenderedState = o;+ Lr(o, t.memoizedState) || (Ac = !0), t.memoizedState = o, t.baseQueue === null && (t.baseState = o), n.lastRenderedState = o;}return [o, r];}- function gs(e, t, n) {- var r = V, a = ss(), o = B;+ function fs(e, t, n) {+ var r = W, a = rs(), o = U;if (o) {if (n === void 0) throw Error(i(407));n = n();} else n = t();- var s = !Hr((H || a).memoizedState, n);- if (s && (a.memoizedState = n, Pc = !0), a = a.queue, Vs(ys.bind(null, r, a, e), [e]), e = a.getSnapshot !== t || s || Uo !== null && !!(Uo.memoizedState.tag & 1), Is(e ? 9 : 8, { destroy: void 0 }, vs.bind(null, r, a, n, t), null), e) {- if (r.flags |= 2048, q === null) throw Error(i(349));- o || Ho & 127 || _s(r, t, n);+ var s = !Lr((G || a).memoizedState, n);+ if (s && (a.memoizedState = n, Ac = !0), a = a.queue, Ls(hs.bind(null, r, a, e), [e]), e = a.getSnapshot !== t || s || zo !== null && !!(zo.memoizedState.tag & 1), Ms(e ? 9 : 8, { destroy: void 0 }, ms.bind(null, r, a, n, t), null), e) {+ if (r.flags |= 2048, Xu === null) throw Error(i(349));+ o || Ro & 127 || ps(r, t, n);}return n;}- function _s(e, t, n) {+ function ps(e, t, n) {e.flags |= 16384, e = {getSnapshot: t,value: n- }, t = V.updateQueue, t === null ? (t = cs(), V.updateQueue = t, t.stores = [e]) : (n = t.stores, n === null ? t.stores = [e] : n.push(e));+ }, t = W.updateQueue, t === null ? (t = is(), W.updateQueue = t, t.stores = [e]) : (n = t.stores, n === null ? t.stores = [e] : n.push(e));}- function vs(e, t, n, r) {- t.value = n, t.getSnapshot = r, bs(t) && xs(e);+ function ms(e, t, n, r) {+ t.value = n, t.getSnapshot = r, gs(t) && _s(e);}- function ys(e, t, n) {+ function hs(e, t, n) {return n(function() {- bs(t) && xs(e);+ gs(t) && _s(e);});}- function bs(e) {+ function gs(e) {var t = e.getSnapshot;e = e.value;try {var n = t();- return !Hr(e, n);+ return !Lr(e, n);} catch {return !0;}}- function xs(e) {- var t = Oi(e, 2);- t !== null && Pd(t, e, 2);+ function _s(e) {+ var t = Ci(e, 2);+ t !== null && Md(t, e, 2);}- function Ss(e) {- var t = os();+ function vs(e) {+ var t = ns();if (typeof e == "function") {var n = e;- if (e = n(), Ko) {- nt(!0);+ if (e = n(), Ho) {+ qe(!0);try {n();} finally {- nt(!1);+ qe(!1);}}}@@ -3268,15 +8989,15 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrpending: null,lanes: 0,dispatch: null,- lastRenderedReducer: fs,+ lastRenderedReducer: cs,lastRenderedState: e}, t;}- function Cs(e, t, n, r) {- return e.baseState = n, ms(e, H, typeof r == "function" ? r : fs);+ function ys(e, t, n, r) {+ return e.baseState = n, us(e, G, typeof r == "function" ? r : cs);}- function ws(e, t, n, r, a) {- if (fc(e)) throw Error(i(485));+ function bs(e, t, n, r, a) {+ if (cc(e)) throw Error(i(485));if (e = t.action, e !== null) {var o = {payload: a,@@ -3291,65 +9012,65 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescro.listeners.push(e);}};- D.T === null ? o.isTransition = !1 : n(!0), r(o), n = t.pending, n === null ? (o.next = t.pending = o, Ts(t, o)) : (o.next = n.next, t.pending = n.next = o);+ R.T === null ? o.isTransition = !1 : n(!0), r(o), n = t.pending, n === null ? (o.next = t.pending = o, xs(t, o)) : (o.next = n.next, t.pending = n.next = o);}}- function Ts(e, t) {+ function xs(e, t) {var n = t.action, r = t.payload, i = e.state;if (t.isTransition) {- var a = D.T, o = {};- o.types = a === null ? null : a.types, D.T = o;+ var a = R.T, o = {};+ o.types = a === null ? null : a.types, R.T = o;try {- var s = n(i, r), c = D.S;- c !== null && c(o, s), Es(e, t, s);+ var s = n(i, r), c = R.S;+ c !== null && c(o, s), Ss(e, t, s);} catch (n) {- Os(e, t, n);+ ws(e, t, n);} finally {- a !== null && o.types !== null && (a.types = o.types), D.T = a;+ a !== null && o.types !== null && (a.types = o.types), R.T = a;}} else try {- a = n(i, r), Es(e, t, a);+ a = n(i, r), Ss(e, t, a);} catch (n) {- Os(e, t, n);+ ws(e, t, n);}}- function Es(e, t, n) {+ function Ss(e, t, n) {typeof n == "object" && n && typeof n.then == "function" ? n.then(function(n) {- Ds(e, t, n);+ Cs(e, t, n);}, function(n) {- return Os(e, t, n);- }) : Ds(e, t, n);+ return ws(e, t, n);+ }) : Cs(e, t, n);}- function Ds(e, t, n) {- t.status = "fulfilled", t.value = n, ks(t), e.state = n, t = e.pending, t !== null && (n = t.next, n === t ? e.pending = null : (n = n.next, t.next = n, Ts(e, n)));+ function Cs(e, t, n) {+ t.status = "fulfilled", t.value = n, Ts(t), e.state = n, t = e.pending, t !== null && (n = t.next, n === t ? e.pending = null : (n = n.next, t.next = n, xs(e, n)));}- function Os(e, t, n) {+ function ws(e, t, n) {var r = e.pending;if (e.pending = null, r !== null) {r = r.next;do- t.status = "rejected", t.reason = n, ks(t), t = t.next;+ t.status = "rejected", t.reason = n, Ts(t), t = t.next;while (t !== r);}e.action = null;}- function ks(e) {+ function Ts(e) {e = e.listeners;for (var t = 0; t < e.length; t++) (0, e[t])();}- function As(e, t) {+ function Es(e, t) {return t;}- function js(e, t) {- if (B) {- var n = q.formState;+ function Ds(e, t) {+ if (U) {+ var n = Xu.formState;if (n !== null) {a: {- var r = V;- if (B) {- if (z) {+ var r = W;+ if (U) {+ if (ea) {b: {- for (var i = z, a = oa; i.nodeType !== 8;) {+ for (var i = ea, a = na; i.nodeType !== 8;) {if (!a) {i = null;break b;@@ -3362,59 +9083,59 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescra = i.data, i = a === "F!" || a === "F" ? i : null;}if (i) {- z = lm(i.nextSibling), r = i.data === "F!";+ ea = lm(i.nextSibling), r = i.data === "F!";break a;}}- ca(r);+ ia(r);}r = !1;}r && (t = n[0]);}}- return n = os(), n.memoizedState = n.baseState = t, r = {+ return n = ns(), n.memoizedState = n.baseState = t, r = {pending: null,lanes: 0,dispatch: null,- lastRenderedReducer: As,+ lastRenderedReducer: Es,lastRenderedState: t- }, n.queue = r, n = lc.bind(null, V, r), r.dispatch = n, r = Ss(!1), a = dc.bind(null, V, !1, r.queue), r = os(), i = {+ }, n.queue = r, n = ac.bind(null, W, r), r.dispatch = n, r = vs(!1), a = sc.bind(null, W, !1, r.queue), r = ns(), i = {state: t,dispatch: null,action: e,pending: null- }, r.queue = i, n = ws.bind(null, V, i, a, n), i.dispatch = n, r.memoizedState = e, [+ }, r.queue = i, n = bs.bind(null, W, i, a, n), i.dispatch = n, r.memoizedState = e, [t,n,!1];}- function Ms(e) {- return Ns(ss(), H, e);+ function Os(e) {+ return ks(rs(), G, e);}- function Ns(e, t, n) {- if (t = ms(e, t, As)[0], e = ps(fs)[0], typeof t == "object" && t && typeof t.then == "function") try {- var r = ls(t);+ function ks(e, t, n) {+ if (t = us(e, t, Es)[0], e = ls(cs)[0], typeof t == "object" && t && typeof t.then == "function") try {+ var r = as(t);} catch (e) {- throw e === Ya ? Za : e;+ throw e === Ga ? qa : e;}else r = t;- t = ss();+ t = rs();var i = t.queue, a = i.dispatch;- return n !== t.memoizedState && (V.flags |= 2048, Is(9, { destroy: void 0 }, Ps.bind(null, i, n), null)), [+ return n !== t.memoizedState && (W.flags |= 2048, Ms(9, { destroy: void 0 }, As.bind(null, i, n), null)), [r,a,e];}- function Ps(e, t) {+ function As(e, t) {e.action = t;}- function Fs(e) {- var t = ss(), n = H;- if (n !== null) return Ns(t, n, e);- ss(), t = t.memoizedState, n = ss();+ function js(e) {+ var t = rs(), n = G;+ if (n !== null) return ks(t, n, e);+ rs(), t = t.memoizedState, n = rs();var r = n.queue.dispatch;return n.memoizedState = e, [t,@@ -3422,60 +9143,60 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr!1];}- function Is(e, t, n, r) {+ function Ms(e, t, n, r) {return e = {tag: e,create: n,deps: r,inst: t,next: null- }, t = V.updateQueue, t === null && (t = cs(), V.updateQueue = t), n = t.lastEffect, n === null ? t.lastEffect = e.next = e : (r = n.next, n.next = e, e.next = r, t.lastEffect = e), e;+ }, t = W.updateQueue, t === null && (t = is(), W.updateQueue = t), n = t.lastEffect, n === null ? t.lastEffect = e.next = e : (r = n.next, n.next = e, e.next = r, t.lastEffect = e), e;}- function Ls() {- return ss().memoizedState;+ function Ns() {+ return rs().memoizedState;}- function Rs(e, t, n, r) {- var i = os();- V.flags |= e, i.memoizedState = Is(1 | t, { destroy: void 0 }, n, r === void 0 ? null : r);+ function Ps(e, t, n, r) {+ var i = ns();+ W.flags |= e, i.memoizedState = Ms(1 | t, { destroy: void 0 }, n, r === void 0 ? null : r);}- function zs(e, t, n, r) {- var i = ss();+ function Fs(e, t, n, r) {+ var i = rs();r = r === void 0 ? null : r;var a = i.memoizedState.inst;- H !== null && r !== null && Qo(r, H.memoizedState.deps) ? i.memoizedState = Is(t, a, n, r) : (V.flags |= e, i.memoizedState = Is(1 | t, a, n, r));+ G !== null && r !== null && Jo(r, G.memoizedState.deps) ? i.memoizedState = Ms(t, a, n, r) : (W.flags |= e, i.memoizedState = Ms(1 | t, a, n, r));}- function Bs(e, t) {- Rs(8390656, 8, e, t);+ function Is(e, t) {+ Ps(8390656, 8, e, t);}- function Vs(e, t) {- zs(2048, 8, e, t);+ function Ls(e, t) {+ Fs(2048, 8, e, t);}- function Hs(e) {- V.flags |= 4;- var t = V.updateQueue;- if (t === null) t = cs(), V.updateQueue = t, t.events = [e];+ function Rs(e) {+ W.flags |= 4;+ var t = W.updateQueue;+ if (t === null) t = is(), W.updateQueue = t, t.events = [e];else {var n = t.events;n === null ? t.events = [e] : n.push(e);}}- function Us(e) {- var t = ss().memoizedState;- return Hs({+ function zs(e) {+ var t = rs().memoizedState;+ return Rs({ref: t,nextImpl: e}), function() {- if (K & 2) throw Error(i(440));+ if (X & 2) throw Error(i(440));return t.impl.apply(void 0, arguments);};}- function Ws(e, t) {- return zs(4, 2, e, t);+ function Bs(e, t) {+ return Fs(4, 2, e, t);}- function Gs(e, t) {- return zs(4, 4, e, t);+ function Vs(e, t) {+ return Fs(4, 4, e, t);}- function Ks(e, t) {+ function Hs(e, t) {if (typeof t == "function") {e = e();var n = t(e);@@ -3487,76 +9208,76 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrt.current = null;};}- function qs(e, t, n) {- n = n == null ? null : n.concat([e]), zs(4, 4, Ks.bind(null, t, e), n);+ function Us(e, t, n) {+ n = n == null ? null : n.concat([e]), Fs(4, 4, Hs.bind(null, t, e), n);}- function Js() {}- function Ys(e, t) {- var n = ss();+ function Ws() {}+ function Gs(e, t) {+ var n = rs();t = t === void 0 ? null : t;var r = n.memoizedState;- return t !== null && Qo(t, r[1]) ? r[0] : (n.memoizedState = [e, t], e);+ return t !== null && Jo(t, r[1]) ? r[0] : (n.memoizedState = [e, t], e);}- function Xs(e, t) {- var n = ss();+ function Ks(e, t) {+ var n = rs();t = t === void 0 ? null : t;var r = n.memoizedState;- if (t !== null && Qo(t, r[1])) return r[0];- if (r = e(), Ko) {- nt(!0);+ if (t !== null && Jo(t, r[1])) return r[0];+ if (r = e(), Ho) {+ qe(!0);try {e();} finally {- nt(!1);+ qe(!1);}}return n.memoizedState = [r, t], r;}- function Zs(e, t, n) {- return n === void 0 || Ho & 1073741824 && !(Y & 261930) ? e.memoizedState = t : (e.memoizedState = n, e = Md(), V.lanes |= e, od |= e, n);+ function qs(e, t, n) {+ return n === void 0 || Ro & 1073741824 && !(Q & 261930) ? e.memoizedState = t : (e.memoizedState = n, e = Ad(), W.lanes |= e, id |= e, n);}- function Qs(e, t, n, r) {- return Hr(n, t) ? n : Eo.current === null ? !(Ho & 106) || Ho & 1073741824 && !(Y & 261930) ? (Pc = !0, e.memoizedState = n) : (e = Md(), V.lanes |= e, od |= e, t) : (e = Zs(e, n, r), Hr(e, t) || (Pc = !0), e);+ function Js(e, t, n, r) {+ return Lr(n, t) ? n : So.current === null ? !(Ro & 106) || Ro & 1073741824 && !(Q & 261930) ? (Ac = !0, e.memoizedState = n) : (e = Ad(), W.lanes |= e, id |= e, t) : (e = qs(e, n, r), Lr(e, t) || (Ac = !0), e);}- function $s(e, t, n, r, i) {- var a = O.p;- O.p = a !== 0 && 8 > a ? a : 8;- var o = D.T, s = {};- s.types = o === null ? null : o.types, D.T = s, dc(e, !1, t, n);+ function Ys(e, t, n, r, i) {+ var a = z.p;+ z.p = a !== 0 && 8 > a ? a : 8;+ var o = R.T, s = {};+ s.types = o === null ? null : o.types, R.T = s, sc(e, !1, t, n);try {- var c = i(), l = D.S;- l !== null && l(s, c), typeof c == "object" && c && typeof c.then == "function" ? uc(e, t, Ua(c, r), jd(e)) : uc(e, t, r, jd(e));+ var c = i(), l = R.S;+ l !== null && l(s, c), typeof c == "object" && c && typeof c.then == "function" ? oc(e, t, za(c, r), kd(e)) : oc(e, t, r, kd(e));} catch (n) {- uc(e, t, {+ oc(e, t, {then: function() {},status: "rejected",reason: n- }, jd());+ }, kd());} finally {- O.p = a, o !== null && s.types !== null && (o.types = s.types), D.T = o;+ z.p = a, o !== null && s.types !== null && (o.types = s.types), R.T = o;}}- function ec() {}- function tc(e, t, n, r) {+ function Xs() {}+ function Zs(e, t, n, r) {if (e.tag !== 5) throw Error(i(476));- var a = nc(e).queue;- $s(e, a, t, k, n === null ? ec : function() {- return rc(e), n(r);+ var a = Qs(e).queue;+ Ys(e, a, t, de, n === null ? Xs : function() {+ return $s(e), n(r);});}- function nc(e) {+ function Qs(e) {var t = e.memoizedState;if (t !== null) return t;t = {- memoizedState: k,- baseState: k,+ memoizedState: de,+ baseState: de,baseQueue: null,queue: {pending: null,lanes: 0,dispatch: null,- lastRenderedReducer: fs,- lastRenderedState: k+ lastRenderedReducer: cs,+ lastRenderedState: de},next: null};@@ -3569,41 +9290,41 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrpending: null,lanes: 0,dispatch: null,- lastRenderedReducer: fs,+ lastRenderedReducer: cs,lastRenderedState: n},next: null}, e.memoizedState = t, e = e.alternate, e !== null && (e.memoizedState = t), t;}- function rc(e) {- var t = nc(e);- t.next === null && (t = e.alternate.memoizedState), uc(e, t.next.queue, {}, jd());+ function $s(e) {+ var t = Qs(e);+ t.next === null && (t = e.alternate.memoizedState), oc(e, t.next.queue, {}, kd());}- function ic() {- return Ta(sh);+ function ec() {+ return xa(sh);}- function ac() {- return ss().memoizedState;+ function tc() {+ return rs().memoizedState;}- function oc() {- return ss().memoizedState;+ function nc() {+ return rs().memoizedState;}- function sc(e) {+ function rc(e) {for (var t = e.return; t !== null;) {switch (t.tag) {case 24:case 3:- var n = jd();- e = _o(n);- var r = vo(t, e, n);- r !== null && (Pd(r, t, n), yo(r, t, n)), t = { cache: Ma() }, e.payload = t;+ var n = kd();+ e = po(n);+ var r = mo(t, e, n);+ r !== null && (Md(r, t, n), ho(r, t, n)), t = { cache: Oa() }, e.payload = t;return;}t = t.return;}}- function cc(e, t, n) {- var r = jd();+ function ic(e, t, n) {+ var r = kd();n = {lane: r,revertLane: 0,@@ -3612,12 +9333,12 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrhasEagerState: !1,eagerState: null,next: null- }, fc(e) ? pc(t, n) : (n = Di(e, t, n, r), n !== null && (Pd(n, e, r), mc(n, t, r)));+ }, cc(e) ? lc(t, n) : (n = Si(e, t, n, r), n !== null && (Md(n, e, r), uc(n, t, r)));}- function lc(e, t, n) {- uc(e, t, n, jd());+ function ac(e, t, n) {+ oc(e, t, n, kd());}- function uc(e, t, n, r) {+ function oc(e, t, n, r) {var i = {lane: r,revertLane: 0,@@ -3627,111 +9348,111 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescreagerState: null,next: null};- if (fc(e)) pc(t, i);+ if (cc(e)) lc(t, i);else {var a = e.alternate;if (e.lanes === 0 && (a === null || a.lanes === 0) && (a = t.lastRenderedReducer, a !== null)) try {var o = t.lastRenderedState, s = a(o, n);- if (i.hasEagerState = !0, i.eagerState = s, Hr(s, o)) return Ei(e, t, i, 0), q === null && Ti(), !1;+ if (i.hasEagerState = !0, i.eagerState = s, Lr(s, o)) return xi(e, t, i, 0), Xu === null && bi(), !1;} catch {}- if (n = Di(e, t, i, r), n !== null) return Pd(n, e, r), mc(n, t, r), !0;+ if (n = Si(e, t, i, r), n !== null) return Md(n, e, r), uc(n, t, r), !0;}return !1;}- function dc(e, t, n, r) {+ function sc(e, t, n, r) {if (r = {lane: 2,- revertLane: Pf(),+ revertLane: Nf(),gesture: null,action: r,hasEagerState: !1,eagerState: null,next: null- }, fc(e)) {+ }, cc(e)) {if (t) throw Error(i(479));- } else t = Di(e, n, r, 2), t !== null && Pd(t, e, 2);+ } else t = Si(e, n, r, 2), t !== null && Md(t, e, 2);}- function fc(e) {+ function cc(e) {var t = e.alternate;- return e === V || t !== null && t === V;+ return e === W || t !== null && t === W;}- function pc(e, t) {- Go = Wo = !0;+ function lc(e, t) {+ Vo = Bo = !0;var n = e.pending;n === null ? t.next = t : (t.next = n.next, n.next = t), e.pending = t;}- function mc(e, t, n) {+ function uc(e, t, n) {if (n & 4194048) {var r = t.lanes;- r &= e.pendingLanes, n |= r, t.lanes = n, bt(e, n);- }- }- var hc = {- readContext: Ta,- use: us,- useCallback: Zo,- useContext: Zo,- useEffect: Zo,- useImperativeHandle: Zo,- useLayoutEffect: Zo,- useInsertionEffect: Zo,- useMemo: Zo,- useReducer: Zo,- useRef: Zo,- useState: Zo,- useDebugValue: Zo,- useDeferredValue: Zo,- useTransition: Zo,- useSyncExternalStore: Zo,- useId: Zo,- useHostTransitionStatus: Zo,- useFormState: Zo,- useActionState: Zo,- useOptimistic: Zo,- useMemoCache: Zo,- useCacheRefresh: Zo,- useEffectEvent: Zo- }, gc = {- readContext: Ta,- use: us,+ r &= e.pendingLanes, n |= r, t.lanes = n, dt(e, n);+ }+ }+ var dc = {+ readContext: xa,+ use: os,+ useCallback: qo,+ useContext: qo,+ useEffect: qo,+ useImperativeHandle: qo,+ useLayoutEffect: qo,+ useInsertionEffect: qo,+ useMemo: qo,+ useReducer: qo,+ useRef: qo,+ useState: qo,+ useDebugValue: qo,+ useDeferredValue: qo,+ useTransition: qo,+ useSyncExternalStore: qo,+ useId: qo,+ useHostTransitionStatus: qo,+ useFormState: qo,+ useActionState: qo,+ useOptimistic: qo,+ useMemoCache: qo,+ useCacheRefresh: qo,+ useEffectEvent: qo+ }, fc = {+ readContext: xa,+ use: os,useCallback: function(e, t) {- return os().memoizedState = [e, t === void 0 ? null : t], e;+ return ns().memoizedState = [e, t === void 0 ? null : t], e;},- useContext: Ta,- useEffect: Bs,+ useContext: xa,+ useEffect: Is,useImperativeHandle: function(e, t, n) {- n = n == null ? null : n.concat([e]), Rs(4194308, 4, Ks.bind(null, t, e), n);+ n = n == null ? null : n.concat([e]), Ps(4194308, 4, Hs.bind(null, t, e), n);},useLayoutEffect: function(e, t) {- return Rs(4194308, 4, e, t);+ return Ps(4194308, 4, e, t);},useInsertionEffect: function(e, t) {- Rs(4, 2, e, t);+ Ps(4, 2, e, t);},useMemo: function(e, t) {- var n = os();+ var n = ns();t = t === void 0 ? null : t;var r = e();- if (Ko) {- nt(!0);+ if (Ho) {+ qe(!0);try {e();} finally {- nt(!1);+ qe(!1);}}return n.memoizedState = [r, t], r;},useReducer: function(e, t, n) {- var r = os();+ var r = ns();if (n !== void 0) {var i = n(t);- if (Ko) {- nt(!0);+ if (Ho) {+ qe(!0);try {n(t);} finally {- nt(!1);+ qe(!1);}}} else i = t;@@ -3741,54 +9462,54 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrdispatch: null,lastRenderedReducer: e,lastRenderedState: i- }, r.queue = e, e = e.dispatch = cc.bind(null, V, e), [r.memoizedState, e];+ }, r.queue = e, e = e.dispatch = ic.bind(null, W, e), [r.memoizedState, e];},useRef: function(e) {- var t = os();+ var t = ns();return e = { current: e }, t.memoizedState = e;},useState: function(e) {- e = Ss(e);- var t = e.queue, n = lc.bind(null, V, t);+ e = vs(e);+ var t = e.queue, n = ac.bind(null, W, t);return t.dispatch = n, [e.memoizedState, n];},- useDebugValue: Js,+ useDebugValue: Ws,useDeferredValue: function(e, t) {- return Zs(os(), e, t);+ return qs(ns(), e, t);},useTransition: function() {- var e = Ss(!1);- return e = $s.bind(null, V, e.queue, !0, !1), os().memoizedState = e, [!1, e];+ var e = vs(!1);+ return e = Ys.bind(null, W, e.queue, !0, !1), ns().memoizedState = e, [!1, e];},useSyncExternalStore: function(e, t, n) {- var r = V, a = os();- if (B) {+ var r = W, a = ns();+ if (U) {if (n === void 0) throw Error(i(407));n = n();} else {- if (n = t(), q === null) throw Error(i(349));- Y & 127 || _s(r, t, n);+ if (n = t(), Xu === null) throw Error(i(349));+ Q & 127 || ps(r, t, n);}a.memoizedState = n;var o = {value: n,getSnapshot: t};- return a.queue = o, Bs(ys.bind(null, r, o, e), [e]), r.flags |= 2048, Is(9, { destroy: void 0 }, vs.bind(null, r, o, n, t), null), n;+ return a.queue = o, Is(hs.bind(null, r, o, e), [e]), r.flags |= 2048, Ms(9, { destroy: void 0 }, ms.bind(null, r, o, n, t), null), n;},useId: function() {- var e = os(), t = q.identifierPrefix;- if (B) {- var n = Qi, r = Zi;- n = (r & ~(1 << 32 - rt(r) - 1)).toString(32) + n, t = "_" + t + "R_" + n, n = qo++, 0 < n && (t += "H" + n.toString(32)), t += "_";- } else n = Xo++, t = "_" + t + "r_" + n.toString(32) + "_";+ var e = ns(), t = Xu.identifierPrefix;+ if (U) {+ var n = qi, r = Ki;+ n = (r & ~(1 << 32 - Je(r) - 1)).toString(32) + n, t = "_" + t + "R_" + n, n = Uo++, 0 < n && (t += "H" + n.toString(32)), t += "_";+ } else n = Ko++, t = "_" + t + "r_" + n.toString(32) + "_";return e.memoizedState = t;},- useHostTransitionStatus: ic,- useFormState: js,- useActionState: js,+ useHostTransitionStatus: ec,+ useFormState: Ds,+ useActionState: Ds,useOptimistic: function(e) {- var t = os();+ var t = ns();t.memoizedState = t.baseState = e;var n = {pending: null,@@ -3797,132 +9518,132 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrlastRenderedReducer: null,lastRenderedState: null};- return t.queue = n, t = dc.bind(null, V, !0, n), n.dispatch = t, [e, t];+ return t.queue = n, t = sc.bind(null, W, !0, n), n.dispatch = t, [e, t];},- useMemoCache: ds,+ useMemoCache: ss,useCacheRefresh: function() {- return os().memoizedState = sc.bind(null, V);+ return ns().memoizedState = rc.bind(null, W);},useEffectEvent: function(e) {- var t = os(), n = { impl: e };+ var t = ns(), n = { impl: e };return t.memoizedState = n, function() {- if (K & 2) throw Error(i(440));+ if (X & 2) throw Error(i(440));return n.impl.apply(void 0, arguments);};}- }, _c = {- readContext: Ta,- use: us,- useCallback: Ys,- useContext: Ta,- useEffect: Vs,- useImperativeHandle: qs,- useInsertionEffect: Ws,- useLayoutEffect: Gs,- useMemo: Xs,- useReducer: ps,- useRef: Ls,+ }, pc = {+ readContext: xa,+ use: os,+ useCallback: Gs,+ useContext: xa,+ useEffect: Ls,+ useImperativeHandle: Us,+ useInsertionEffect: Bs,+ useLayoutEffect: Vs,+ useMemo: Ks,+ useReducer: ls,+ useRef: Ns,useState: function() {- return ps(fs);+ return ls(cs);},- useDebugValue: Js,+ useDebugValue: Ws,useDeferredValue: function(e, t) {- return Qs(ss(), H.memoizedState, e, t);+ return Js(rs(), G.memoizedState, e, t);},useTransition: function() {- var e = ps(fs)[0], t = ss().memoizedState;- return [typeof e == "boolean" ? e : ls(e), t];+ var e = ls(cs)[0], t = rs().memoizedState;+ return [typeof e == "boolean" ? e : as(e), t];},- useSyncExternalStore: gs,- useId: ac,- useHostTransitionStatus: ic,- useFormState: Ms,- useActionState: Ms,+ useSyncExternalStore: fs,+ useId: tc,+ useHostTransitionStatus: ec,+ useFormState: Os,+ useActionState: Os,useOptimistic: function(e, t) {- return Cs(ss(), H, e, t);+ return ys(rs(), G, e, t);},- useMemoCache: ds,- useCacheRefresh: oc,- useEffectEvent: Us- }, vc = {- readContext: Ta,- use: us,- useCallback: Ys,- useContext: Ta,- useEffect: Vs,- useImperativeHandle: qs,- useInsertionEffect: Ws,- useLayoutEffect: Gs,- useMemo: Xs,- useReducer: hs,- useRef: Ls,+ useMemoCache: ss,+ useCacheRefresh: nc,+ useEffectEvent: zs+ }, mc = {+ readContext: xa,+ use: os,+ useCallback: Gs,+ useContext: xa,+ useEffect: Ls,+ useImperativeHandle: Us,+ useInsertionEffect: Bs,+ useLayoutEffect: Vs,+ useMemo: Ks,+ useReducer: ds,+ useRef: Ns,useState: function() {- return hs(fs);+ return ds(cs);},- useDebugValue: Js,+ useDebugValue: Ws,useDeferredValue: function(e, t) {- var n = ss();- return H === null ? Zs(n, e, t) : Qs(n, H.memoizedState, e, t);+ var n = rs();+ return G === null ? qs(n, e, t) : Js(n, G.memoizedState, e, t);},useTransition: function() {- var e = hs(fs)[0], t = ss().memoizedState;- return [typeof e == "boolean" ? e : ls(e), t];+ var e = ds(cs)[0], t = rs().memoizedState;+ return [typeof e == "boolean" ? e : as(e), t];},- useSyncExternalStore: gs,- useId: ac,- useHostTransitionStatus: ic,- useFormState: Fs,- useActionState: Fs,+ useSyncExternalStore: fs,+ useId: tc,+ useHostTransitionStatus: ec,+ useFormState: js,+ useActionState: js,useOptimistic: function(e, t) {- var n = ss();- return H === null ? (n.baseState = e, [e, n.queue.dispatch]) : Cs(n, H, e, t);+ var n = rs();+ return G === null ? (n.baseState = e, [e, n.queue.dispatch]) : ys(n, G, e, t);},- useMemoCache: ds,- useCacheRefresh: oc,- useEffectEvent: Us+ useMemoCache: ss,+ useCacheRefresh: nc,+ useEffectEvent: zs};- function yc(e, t, n, r) {+ function hc(e, t, n, r) {t = e.memoizedState, n = n(r, t), n = n == null ? t : T({}, t, n), e.memoizedState = n, e.lanes === 0 && (e.updateQueue.baseState = n);}- var bc = {+ var gc = {enqueueSetState: function(e, t, n) {e = e._reactInternals;- var r = jd(), i = _o(r);- i.payload = t, n != null && (i.callback = n), t = vo(e, i, r), t !== null && (Pd(t, e, r), yo(t, e, r));+ var r = kd(), i = po(r);+ i.payload = t, n != null && (i.callback = n), t = mo(e, i, r), t !== null && (Md(t, e, r), ho(t, e, r));},enqueueReplaceState: function(e, t, n) {e = e._reactInternals;- var r = jd(), i = _o(r);- i.tag = 1, i.payload = t, n != null && (i.callback = n), t = vo(e, i, r), t !== null && (Pd(t, e, r), yo(t, e, r));+ var r = kd(), i = po(r);+ i.tag = 1, i.payload = t, n != null && (i.callback = n), t = mo(e, i, r), t !== null && (Md(t, e, r), ho(t, e, r));},enqueueForceUpdate: function(e, t) {e = e._reactInternals;- var n = jd(), r = _o(n);- r.tag = 2, t != null && (r.callback = t), t = vo(e, r, n), t !== null && (Pd(t, e, n), yo(t, e, n));+ var n = kd(), r = po(n);+ r.tag = 2, t != null && (r.callback = t), t = mo(e, r, n), t !== null && (Md(t, e, n), ho(t, e, n));}};- function xc(e, t, n, r, i, a, o) {- return e = e.stateNode, typeof e.shouldComponentUpdate == "function" ? e.shouldComponentUpdate(r, a, o) : t.prototype && t.prototype.isPureReactComponent ? !Ur(n, r) || !Ur(i, a) : !0;+ function _c(e, t, n, r, i, a, o) {+ return e = e.stateNode, typeof e.shouldComponentUpdate == "function" ? e.shouldComponentUpdate(r, a, o) : t.prototype && t.prototype.isPureReactComponent ? !Rr(n, r) || !Rr(i, a) : !0;}- function Sc(e, t, n, r) {- e = t.state, typeof t.componentWillReceiveProps == "function" && t.componentWillReceiveProps(n, r), typeof t.UNSAFE_componentWillReceiveProps == "function" && t.UNSAFE_componentWillReceiveProps(n, r), t.state !== e && bc.enqueueReplaceState(t, t.state, null);+ function vc(e, t, n, r) {+ e = t.state, typeof t.componentWillReceiveProps == "function" && t.componentWillReceiveProps(n, r), typeof t.UNSAFE_componentWillReceiveProps == "function" && t.UNSAFE_componentWillReceiveProps(n, r), t.state !== e && gc.enqueueReplaceState(t, t.state, null);}- function Cc(e, t) {+ function yc(e, t) {var n = t;if ("ref" in t) for (var r in n = {}, t) r !== "ref" && (n[r] = t[r]);if (e = e.defaultProps) for (var i in n === t && (n = T({}, n)), e) n[i] === void 0 && (n[i] = e[i]);return n;}- function wc(e) {- xi(e);+ function bc(e) {+ gi(e);}- function Tc(e) {+ function xc(e) {console.error(e);}- function Ec(e) {- xi(e);+ function Sc(e) {+ gi(e);}- function Dc(e, t) {+ function Cc(e, t) {try {var n = e.onUncaughtError;n(t.value, { componentStack: t.stack });@@ -3932,7 +9653,7 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr});}}- function Oc(e, t, n) {+ function wc(e, t, n) {try {var r = e.onCaughtError;r(n.value, {@@ -3945,57 +9666,57 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr});}}- function kc(e, t, n) {- return n = _o(n), n.tag = 3, n.payload = { element: null }, n.callback = function() {- Dc(e, t);+ function Tc(e, t, n) {+ return n = po(n), n.tag = 3, n.payload = { element: null }, n.callback = function() {+ Cc(e, t);}, n;}- function Ac(e) {- return e = _o(e), e.tag = 3, e;+ function Ec(e) {+ return e = po(e), e.tag = 3, e;}- function jc(e, t, n, r) {+ function Dc(e, t, n, r) {var i = n.type.getDerivedStateFromError;if (typeof i == "function") {var a = r.value;e.payload = function() {return i(a);}, e.callback = function() {- Oc(t, n, r);+ wc(t, n, r);};}var o = n.stateNode;o !== null && typeof o.componentDidCatch == "function" && (e.callback = function() {- Oc(t, n, r), typeof i != "function" && (vd === null ? vd = /* @__PURE__ */ new Set([this]) : vd.add(this));+ wc(t, n, r), typeof i != "function" && (gd === null ? gd = /* @__PURE__ */ new Set([this]) : gd.add(this));var e = r.stack;this.componentDidCatch(r.value, { componentStack: e === null ? "" : e });});}- function Mc(e, t, n, r, a) {+ function Oc(e, t, n, r, a) {if (n.flags |= 32768, typeof r == "object" && r && typeof r.then == "function") {- if (t = n.alternate, t !== null && Sa(t, n, a, !0), n = jo.current, n !== null) {+ if (t = n.alternate, t !== null && va(t, n, a, !0), n = Do.current, n !== null) {switch (n.tag) {case 31:case 13:- case 19: return Mo === null ? Kd() : n.alternate === null && ad === 0 && (ad = 3), n.flags &= -257, n.flags |= 65536, n.lanes = a, r === Qa ? n.flags |= 16384 : (t = n.updateQueue, t === null ? n.updateQueue = /* @__PURE__ */ new Set([r]) : t.add(r), mf(e, r, a)), !1;- case 22: return n.flags |= 65536, r === Qa ? n.flags |= 16384 : (t = n.updateQueue, t === null ? (t = {+ case 19: return Oo === null ? Wd() : n.alternate === null && rd === 0 && (rd = 3), n.flags &= -257, n.flags |= 65536, n.lanes = a, r === Ja ? n.flags |= 16384 : (t = n.updateQueue, t === null ? n.updateQueue = /* @__PURE__ */ new Set([r]) : t.add(r), pf(e, r, a)), !1;+ case 22: return n.flags |= 65536, r === Ja ? n.flags |= 16384 : (t = n.updateQueue, t === null ? (t = {transitions: null,markerInstances: null,retryQueue: /* @__PURE__ */ new Set([r])- }, n.updateQueue = t) : (n = t.retryQueue, n === null ? t.retryQueue = /* @__PURE__ */ new Set([r]) : n.add(r)), mf(e, r, a)), !1;+ }, n.updateQueue = t) : (n = t.retryQueue, n === null ? t.retryQueue = /* @__PURE__ */ new Set([r]) : n.add(r)), pf(e, r, a)), !1;}throw Error(i(435, n.tag));}- return mf(e, r, a), Kd(), !1;+ return pf(e, r, a), Wd(), !1;}- if (B) return t = jo.current, t === null ? (r !== sa && (t = Error(i(423), { cause: r }), ma(Ui(t, n))), e = e.current.alternate, e.flags |= 65536, a &= -a, e.lanes |= a, r = Ui(r, n), a = kc(e.stateNode, r, a), bo(e, a), ad !== 4 && (ad = 2)) : (!(t.flags & 65536) && (t.flags |= 256), t.flags |= 65536, t.lanes = a, r !== sa && (e = Error(i(422), { cause: r }), ma(Ui(e, n)))), !1;+ if (U) return t = Do.current, t === null ? (r !== ra && (t = Error(i(423), { cause: r }), ua(Ri(t, n))), e = e.current.alternate, e.flags |= 65536, a &= -a, e.lanes |= a, r = Ri(r, n), a = Tc(e.stateNode, r, a), go(e, a), rd !== 4 && (rd = 2)) : (!(t.flags & 65536) && (t.flags |= 256), t.flags |= 65536, t.lanes = a, r !== ra && (e = Error(i(422), { cause: r }), ua(Ri(e, n)))), !1;var o = Error(i(520), { cause: r });- if (o = Ui(o, n), dd === null ? dd = [o] : dd.push(o), ad !== 4 && (ad = 2), t === null) return !0;- r = Ui(r, n), n = t;+ if (o = Ri(o, n), ld === null ? ld = [o] : ld.push(o), rd !== 4 && (rd = 2), t === null) return !0;+ r = Ri(r, n), n = t;do {switch (n.tag) {- case 3: return n.flags |= 65536, e = a & -a, n.lanes |= e, e = kc(n.stateNode, r, e), bo(n, e), !1;+ case 3: return n.flags |= 65536, e = a & -a, n.lanes |= e, e = Tc(n.stateNode, r, e), go(n, e), !1;case 1:- if (t = n.type, o = n.stateNode, !(n.flags & 128) && (typeof t.getDerivedStateFromError == "function" || o !== null && typeof o.componentDidCatch == "function" && (vd === null || !vd.has(o)))) return n.flags |= 65536, a &= -a, n.lanes |= a, a = Ac(a), jc(a, e, n, r), bo(n, a), !1;+ if (t = n.type, o = n.stateNode, !(n.flags & 128) && (typeof t.getDerivedStateFromError == "function" || o !== null && typeof o.componentDidCatch == "function" && (gd === null || !gd.has(o)))) return n.flags |= 65536, a &= -a, n.lanes |= a, a = Ec(a), Dc(a, e, n, r), go(n, a), !1;break;case 22: if (n.memoizedState !== null) return n.flags |= 65536, !1;}@@ -4003,41 +9724,41 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr} while (n !== null);return !1;}- var Nc = Error(i(461)), Pc = !1;- function Fc(e, t, n, r) {- t.child = e === null ? po(t, null, n, r) : fo(t, e.child, n, r);+ var kc = Error(i(461)), Ac = !1;+ function jc(e, t, n, r) {+ t.child = e === null ? co(t, null, n, r) : so(t, e.child, n, r);}- function Ic(e, t, n, r, i) {+ function Nc(e, t, n, r, i) {n = n.render;var a = t.ref;if ("ref" in r) {var o = {};for (var s in r) s !== "ref" && (o[s] = r[s]);} else o = r;- return wa(t), r = $o(e, t, n, o, a, i), s = rs(), e !== null && !Pc ? (is(e, t, i), ul(e, t, i)) : (B && s && ta(t), t.flags |= 1, Fc(e, t, r, i), t.child);+ return ba(t), r = Yo(e, t, n, o, a, i), s = $o(), e !== null && !Ac ? (es(e, t, i), sl(e, t, i)) : (U && s && Xi(t), t.flags |= 1, jc(e, t, r, i), t.child);}- function Lc(e, t, n, r, i) {+ function Pc(e, t, n, r, i) {if (e === null) {var a = n.type;- return typeof a == "function" && !Pi(a) && a.defaultProps === void 0 && n.compare === null ? (t.tag = 15, t.type = a, Rc(e, t, a, r, i)) : (e = Li(n.type, null, r, t, t.mode, i), e.ref = t.ref, e.return = t, t.child = e);+ return typeof a == "function" && !ki(a) && a.defaultProps === void 0 && n.compare === null ? (t.tag = 15, t.type = a, Fc(e, t, a, r, i)) : (e = Mi(n.type, null, r, t, t.mode, i), e.ref = t.ref, e.return = t, t.child = e);}- if (a = e.child, !dl(e, i)) {+ if (a = e.child, !cl(e, i)) {var o = a.memoizedProps;- if (n = n.compare, n = n === null ? Ur : n, n(o, r) && e.ref === t.ref) return ul(e, t, i);+ if (n = n.compare, n = n === null ? Rr : n, n(o, r) && e.ref === t.ref) return sl(e, t, i);}- return t.flags |= 1, e = Fi(a, r), e.ref = t.ref, e.return = t, t.child = e;+ return t.flags |= 1, e = Ai(a, r), e.ref = t.ref, e.return = t, t.child = e;}- function Rc(e, t, n, r, i) {+ function Fc(e, t, n, r, i) {if (e !== null) {var a = e.memoizedProps;- if (Ur(a, r) && e.ref === t.ref) {- if (Pc = !1, t.pendingProps = r = a, dl(e, i)) e.flags & 131072 && (Pc = !0);- else return t.lanes = e.lanes, ul(e, t, i);+ if (Rr(a, r) && e.ref === t.ref) {+ if (Ac = !1, t.pendingProps = r = a, cl(e, i)) e.flags & 131072 && (Ac = !0);+ else return t.lanes = e.lanes, sl(e, t, i);}}- return Kc(e, t, n, r, i);+ return Uc(e, t, n, r, i);}- function zc(e, t, n, r) {+ function Ic(e, t, n, r) {var i = r.children, a = e === null ? null : e.memoizedState;if (e === null && t.stateNode === null && (t.stateNode = {_visibility: 1,@@ -4050,17 +9771,17 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrfor (r = t.child = e.child, i = 0; r !== null;) i = i | r.lanes | r.childLanes, r = r.sibling;r = i & ~a;} else r = 0, t.child = null;- return Vc(e, t, a, n, r);+ return Rc(e, t, a, n, r);}if (n & 536870912) t.memoizedState = {baseLanes: 0,cachePool: null- }, e !== null && qa(t, a === null ? null : a.cachePool), a === null ? ko() : Oo(t, a), Fo(t);- else return r = t.lanes = 536870912, Vc(e, t, a === null ? n : a.baseLanes | n, n, r);- } else a === null ? (e !== null && qa(t, null), ko(), Io()) : (qa(t, a.cachePool), Oo(t, a), Io(), t.memoizedState = null);- return Fc(e, t, i, n), t.child;+ }, e !== null && Ua(t, a === null ? null : a.cachePool), a === null ? To() : wo(t, a), jo(t);+ else return r = t.lanes = 536870912, Rc(e, t, a === null ? n : a.baseLanes | n, n, r);+ } else a === null ? (e !== null && Ua(t, null), To(), Mo()) : (Ua(t, a.cachePool), wo(t, a), Mo(), t.memoizedState = null);+ return jc(e, t, i, n), t.child;}- function Bc(e, t) {+ function Lc(e, t) {return e !== null && e.tag === 22 || t.stateNode !== null || (t.stateNode = {_visibility: 1,_pendingMarkers: null,@@ -4068,68 +9789,68 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr_transitions: null}), t.sibling;}- function Vc(e, t, n, r, i) {- var a = Ka();+ function Rc(e, t, n, r, i) {+ var a = Ha();return a = a === null ? null : {- parent: ja._currentValue,+ parent: Da._currentValue,pool: a}, t.memoizedState = {baseLanes: n,cachePool: a- }, e !== null && qa(t, null), ko(), Fo(t), e !== null && Sa(e, t, r, !0), t.childLanes = i, null;+ }, e !== null && Ua(t, null), To(), jo(t), e !== null && va(e, t, r, !0), t.childLanes = i, null;}- function Hc(e, t) {- return t = tl({+ function zc(e, t) {+ return t = Qc({mode: t.mode,children: t.children}, e.mode), t.ref = e.ref, e.child = t, t.return = e, t;}- function Uc(e, t, n) {- return fo(t, e.child, null, n), e = Hc(t, t.pendingProps), e.flags |= 2, Lo(t), t.memoizedState = null, e;+ function Bc(e, t, n) {+ return so(t, e.child, null, n), e = zc(t, t.pendingProps), e.flags |= 2, No(t), t.memoizedState = null, e;}- function Wc(e, t, n) {+ function Vc(e, t, n) {var r = t.pendingProps, a = !!(t.flags & 128);if (t.flags &= -129, e === null) {- if (B) {- if (r.mode === "hidden") return e = Hc(t, r), t.lanes = 536870912, e.memoizedState = {+ if (U) {+ if (r.mode === "hidden") return e = zc(t, r), t.lanes = 536870912, e.memoizedState = {baseLanes: 0,cachePool: null- }, Bc(null, e);- if (Po(t), (e = z) ? (e = am(e, oa), e = e !== null && e.data === "&" ? e : null, e !== null && (t.memoizedState = {+ }, Lc(null, e);+ if (Ao(t), (e = ea) ? (e = am(e, na), e = e !== null && e.data === "&" ? e : null, e !== null && (t.memoizedState = {dehydrated: e,- treeContext: Xi === null ? null : {- id: Zi,- overflow: Qi+ treeContext: Gi === null ? null : {+ id: Ki,+ overflow: qi},retryLane: 536870912,hydrationErrors: null- }, n = Bi(e), n.return = t, t.child = n, ia = t, z = null)) : e = null, e === null) throw ca(t);+ }, n = Fi(e), n.return = t, t.child = n, $i = t, ea = null)) : e = null, e === null) throw ia(t);return t.lanes = 536870912, null;}- return Hc(t, r);+ return zc(t, r);}var o = e.memoizedState;if (o !== null) {var s = o.dehydrated;- if (Po(t), a) {- if (t.flags & 256) t.flags &= -257, t = Uc(e, t, n);+ if (Ao(t), a) {+ if (t.flags & 256) t.flags &= -257, t = Bc(e, t, n);else if (t.memoizedState !== null) t.child = e.child, t.flags |= 128, t = null;else throw Error(i(558));- } else if (Pc || Sa(e, t, n, !1), a = (n & e.childLanes) !== 0, Pc || a) {- if (Eo.current === null) {- if (r = q, r !== null && (s = xt(r, n), s !== 0 && s !== o.retryLane)) throw o.retryLane = s, Oi(e, s), Pd(r, e, s), Nc;- Kd();+ } else if (Ac || va(e, t, n, !1), a = (n & e.childLanes) !== 0, Ac || a) {+ if (So.current === null) {+ if (r = Xu, r !== null && (s = ft(r, n), s !== 0 && s !== o.retryLane)) throw o.retryLane = s, Ci(e, s), Md(r, e, s), kc;+ Wd();}- t = Uc(e, t, n);- } else e = o.treeContext, z = lm(s.nextSibling), ia = t, B = !0, aa = null, oa = !1, e !== null && ra(t, e), t = Hc(t, r), t.flags |= 134221824;+ t = Bc(e, t, n);+ } else e = o.treeContext, ea = lm(s.nextSibling), $i = t, U = !0, ta = null, na = !1, e !== null && Qi(t, e), t = zc(t, r), t.flags |= 134221824;return t;}- return e = Fi(e.child, {+ return e = Ai(e.child, {mode: r.mode,children: r.children}), e.ref = t.ref, t.child = e, e.return = t, e;}- function Gc(e, t) {+ function Hc(e, t) {var n = t.ref;if (n === null) e !== null && e.ref !== null && (t.flags |= 4194816);else {@@ -4137,135 +9858,135 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr(e === null || e.ref !== n) && (t.flags |= 4194816);}}- function Kc(e, t, n, r, i) {- return wa(t), n = $o(e, t, n, r, void 0, i), r = rs(), e !== null && !Pc ? (is(e, t, i), ul(e, t, i)) : (B && r && ta(t), t.flags |= 1, Fc(e, t, n, i), t.child);+ function Uc(e, t, n, r, i) {+ return ba(t), n = Yo(e, t, n, r, void 0, i), r = $o(), e !== null && !Ac ? (es(e, t, i), sl(e, t, i)) : (U && r && Xi(t), t.flags |= 1, jc(e, t, n, i), t.child);}- function qc(e, t, n, r, i, a) {- return wa(t), t.updateQueue = null, n = ts(t, r, n, i), es(e), r = rs(), e !== null && !Pc ? (is(e, t, a), ul(e, t, a)) : (B && r && ta(t), t.flags |= 1, Fc(e, t, n, a), t.child);+ function Wc(e, t, n, r, i, a) {+ return ba(t), t.updateQueue = null, n = Zo(t, r, n, i), Xo(e), r = $o(), e !== null && !Ac ? (es(e, t, a), sl(e, t, a)) : (U && r && Xi(t), t.flags |= 1, jc(e, t, n, a), t.child);}- function Jc(e, t, n, r, i) {- if (wa(t), t.stateNode === null) {- var a = ji, o = n.contextType;- typeof o == "object" && o && (a = Ta(o)), a = new n(r, a), t.memoizedState = a.state !== null && a.state !== void 0 ? a.state : null, a.updater = bc, t.stateNode = a, a._reactInternals = t, a = t.stateNode, a.props = r, a.state = t.memoizedState, a.refs = {}, ho(t), o = n.contextType, a.context = typeof o == "object" && o ? Ta(o) : ji, a.state = t.memoizedState, o = n.getDerivedStateFromProps, typeof o == "function" && (yc(t, n, o, r), a.state = t.memoizedState), typeof n.getDerivedStateFromProps == "function" || typeof a.getSnapshotBeforeUpdate == "function" || typeof a.UNSAFE_componentWillMount != "function" && typeof a.componentWillMount != "function" || (o = a.state, typeof a.componentWillMount == "function" && a.componentWillMount(), typeof a.UNSAFE_componentWillMount == "function" && a.UNSAFE_componentWillMount(), o !== a.state && bc.enqueueReplaceState(a, a.state, null), Co(t, r, a, i), So(), a.state = t.memoizedState), typeof a.componentDidMount == "function" && (t.flags |= 4194308), r = !0;+ function Gc(e, t, n, r, i) {+ if (ba(t), t.stateNode === null) {+ var a = Ei, o = n.contextType;+ typeof o == "object" && o && (a = xa(o)), a = new n(r, a), t.memoizedState = a.state !== null && a.state !== void 0 ? a.state : null, a.updater = gc, t.stateNode = a, a._reactInternals = t, a = t.stateNode, a.props = r, a.state = t.memoizedState, a.refs = {}, uo(t), o = n.contextType, a.context = typeof o == "object" && o ? xa(o) : Ei, a.state = t.memoizedState, o = n.getDerivedStateFromProps, typeof o == "function" && (hc(t, n, o, r), a.state = t.memoizedState), typeof n.getDerivedStateFromProps == "function" || typeof a.getSnapshotBeforeUpdate == "function" || typeof a.UNSAFE_componentWillMount != "function" && typeof a.componentWillMount != "function" || (o = a.state, typeof a.componentWillMount == "function" && a.componentWillMount(), typeof a.UNSAFE_componentWillMount == "function" && a.UNSAFE_componentWillMount(), o !== a.state && gc.enqueueReplaceState(a, a.state, null), yo(t, r, a, i), vo(), a.state = t.memoizedState), typeof a.componentDidMount == "function" && (t.flags |= 4194308), r = !0;} else if (e === null) {a = t.stateNode;- var s = t.memoizedProps, c = Cc(n, s);+ var s = t.memoizedProps, c = yc(n, s);a.props = c;var l = a.context, u = n.contextType;- o = ji, typeof u == "object" && u && (o = Ta(u));+ o = Ei, typeof u == "object" && u && (o = xa(u));var d = n.getDerivedStateFromProps;- u = typeof d == "function" || typeof a.getSnapshotBeforeUpdate == "function", s = t.pendingProps !== s, u || typeof a.UNSAFE_componentWillReceiveProps != "function" && typeof a.componentWillReceiveProps != "function" || (s || l !== o) && Sc(t, a, r, o), mo = !1;+ u = typeof d == "function" || typeof a.getSnapshotBeforeUpdate == "function", s = t.pendingProps !== s, u || typeof a.UNSAFE_componentWillReceiveProps != "function" && typeof a.componentWillReceiveProps != "function" || (s || l !== o) && vc(t, a, r, o), lo = !1;var f = t.memoizedState;- a.state = f, Co(t, r, a, i), So(), l = t.memoizedState, s || f !== l || mo ? (typeof d == "function" && (yc(t, n, d, r), l = t.memoizedState), (c = mo || xc(t, n, c, r, f, l, o)) ? (u || typeof a.UNSAFE_componentWillMount != "function" && typeof a.componentWillMount != "function" || (typeof a.componentWillMount == "function" && a.componentWillMount(), typeof a.UNSAFE_componentWillMount == "function" && a.UNSAFE_componentWillMount()), typeof a.componentDidMount == "function" && (t.flags |= 4194308)) : (typeof a.componentDidMount == "function" && (t.flags |= 4194308), t.memoizedProps = r, t.memoizedState = l), a.props = r, a.state = l, a.context = o, r = c) : (typeof a.componentDidMount == "function" && (t.flags |= 4194308), r = !1);+ a.state = f, yo(t, r, a, i), vo(), l = t.memoizedState, s || f !== l || lo ? (typeof d == "function" && (hc(t, n, d, r), l = t.memoizedState), (c = lo || _c(t, n, c, r, f, l, o)) ? (u || typeof a.UNSAFE_componentWillMount != "function" && typeof a.componentWillMount != "function" || (typeof a.componentWillMount == "function" && a.componentWillMount(), typeof a.UNSAFE_componentWillMount == "function" && a.UNSAFE_componentWillMount()), typeof a.componentDidMount == "function" && (t.flags |= 4194308)) : (typeof a.componentDidMount == "function" && (t.flags |= 4194308), t.memoizedProps = r, t.memoizedState = l), a.props = r, a.state = l, a.context = o, r = c) : (typeof a.componentDidMount == "function" && (t.flags |= 4194308), r = !1);} else {- a = t.stateNode, go(e, t), o = t.memoizedProps, u = Cc(n, o), a.props = u, d = t.pendingProps, f = a.context, l = n.contextType, c = ji, typeof l == "object" && l && (c = Ta(l)), s = n.getDerivedStateFromProps, (l = typeof s == "function" || typeof a.getSnapshotBeforeUpdate == "function") || typeof a.UNSAFE_componentWillReceiveProps != "function" && typeof a.componentWillReceiveProps != "function" || (o !== d || f !== c) && Sc(t, a, r, c), mo = !1, f = t.memoizedState, a.state = f, Co(t, r, a, i), So();+ a = t.stateNode, fo(e, t), o = t.memoizedProps, u = yc(n, o), a.props = u, d = t.pendingProps, f = a.context, l = n.contextType, c = Ei, typeof l == "object" && l && (c = xa(l)), s = n.getDerivedStateFromProps, (l = typeof s == "function" || typeof a.getSnapshotBeforeUpdate == "function") || typeof a.UNSAFE_componentWillReceiveProps != "function" && typeof a.componentWillReceiveProps != "function" || (o !== d || f !== c) && vc(t, a, r, c), lo = !1, f = t.memoizedState, a.state = f, yo(t, r, a, i), vo();var p = t.memoizedState;- o !== d || f !== p || mo || e !== null && e.dependencies !== null && Ca(e.dependencies) ? (typeof s == "function" && (yc(t, n, s, r), p = t.memoizedState), (u = mo || xc(t, n, u, r, f, p, c) || e !== null && e.dependencies !== null && Ca(e.dependencies)) ? (l || typeof a.UNSAFE_componentWillUpdate != "function" && typeof a.componentWillUpdate != "function" || (typeof a.componentWillUpdate == "function" && a.componentWillUpdate(r, p, c), typeof a.UNSAFE_componentWillUpdate == "function" && a.UNSAFE_componentWillUpdate(r, p, c)), typeof a.componentDidUpdate == "function" && (t.flags |= 4), typeof a.getSnapshotBeforeUpdate == "function" && (t.flags |= 1024)) : (typeof a.componentDidUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 4), typeof a.getSnapshotBeforeUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 1024), t.memoizedProps = r, t.memoizedState = p), a.props = r, a.state = p, a.context = c, r = u) : (typeof a.componentDidUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 4), typeof a.getSnapshotBeforeUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 1024), r = !1);+ o !== d || f !== p || lo || e !== null && e.dependencies !== null && ya(e.dependencies) ? (typeof s == "function" && (hc(t, n, s, r), p = t.memoizedState), (u = lo || _c(t, n, u, r, f, p, c) || e !== null && e.dependencies !== null && ya(e.dependencies)) ? (l || typeof a.UNSAFE_componentWillUpdate != "function" && typeof a.componentWillUpdate != "function" || (typeof a.componentWillUpdate == "function" && a.componentWillUpdate(r, p, c), typeof a.UNSAFE_componentWillUpdate == "function" && a.UNSAFE_componentWillUpdate(r, p, c)), typeof a.componentDidUpdate == "function" && (t.flags |= 4), typeof a.getSnapshotBeforeUpdate == "function" && (t.flags |= 1024)) : (typeof a.componentDidUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 4), typeof a.getSnapshotBeforeUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 1024), t.memoizedProps = r, t.memoizedState = p), a.props = r, a.state = p, a.context = c, r = u) : (typeof a.componentDidUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 4), typeof a.getSnapshotBeforeUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 1024), r = !1);}- return a = r, Gc(e, t), r = !!(t.flags & 128), a || r ? (a = t.stateNode, n = r && typeof n.getDerivedStateFromError != "function" ? null : a.render(), t.flags |= 1, e !== null && r ? (t.child = fo(t, e.child, null, i), t.child = fo(t, null, n, i)) : Fc(e, t, n, i), t.memoizedState = a.state, e = t.child) : e = ul(e, t, i), e;+ return a = r, Hc(e, t), r = !!(t.flags & 128), a || r ? (a = t.stateNode, n = r && typeof n.getDerivedStateFromError != "function" ? null : a.render(), t.flags |= 1, e !== null && r ? (t.child = so(t, e.child, null, i), t.child = so(t, null, n, i)) : jc(e, t, n, i), t.memoizedState = a.state, e = t.child) : e = sl(e, t, i), e;}- function Yc(e, t, n, r) {- return fa(), t.flags |= 256, Fc(e, t, n, r), t.child;+ function Kc(e, t, n, r) {+ return ca(), t.flags |= 256, jc(e, t, n, r), t.child;}- var Xc = {+ var qc = {dehydrated: null,treeContext: null,retryLane: 0,hydrationErrors: null};- function Zc(e) {+ function Jc(e) {return {baseLanes: e,- cachePool: Ja()+ cachePool: Wa()};}- function Qc(e, t, n) {- return e = e === null ? 0 : e.childLanes & ~n, t && (e |= ld), e;+ function Yc(e, t, n) {+ return e = e === null ? 0 : e.childLanes & ~n, t && (e |= sd), e;}- function $c(e, t, n) {+ function Xc(e, t, n) {var r = t.pendingProps, i = !1, a = !!(t.flags & 128), o;- if ((o = a) || (o = e !== null && e.memoizedState === null ? !1 : !!(Ro.current & 2)), o && (i = !0, t.flags &= -129), o = !!(t.flags & 32), t.flags &= -33, e === null) {- if (B) {- if (i ? No(t) : Io(), (e = z) ? (e = am(e, oa), e = e !== null && e.data !== "&" ? e : null, e !== null && (t.memoizedState = {+ if ((o = a) || (o = e !== null && e.memoizedState === null ? !1 : !!(Po.current & 2)), o && (i = !0, t.flags &= -129), o = !!(t.flags & 32), t.flags &= -33, e === null) {+ if (U) {+ if (i ? ko(t) : Mo(), (e = ea) ? (e = am(e, na), e = e !== null && e.data !== "&" ? e : null, e !== null && (t.memoizedState = {dehydrated: e,- treeContext: Xi === null ? null : {- id: Zi,- overflow: Qi+ treeContext: Gi === null ? null : {+ id: Ki,+ overflow: qi},retryLane: 536870912,hydrationErrors: null- }, n = Bi(e), n.return = t, t.child = n, ia = t, z = null)) : e = null, e === null) throw ca(t);+ }, n = Fi(e), n.return = t, t.child = n, $i = t, ea = null)) : e = null, e === null) throw ia(t);return t.lanes = sm(e) ? 32 : 536870912, null;}- return a = r.children, r = r.fallback, i ? (Io(), i = t.mode, a = tl({+ return a = r.children, r = r.fallback, i ? (Mo(), i = t.mode, a = Qc({mode: "hidden",children: a- }, i), r = Ri(r, i, n, null), a.return = t, r.return = t, a.sibling = r, t.child = a, r = t.child, r.memoizedState = Zc(n), r.childLanes = Qc(e, o, n), t.memoizedState = Xc, Bc(null, r)) : (No(t), el(t, a));+ }, i), r = Ni(r, i, n, null), a.return = t, r.return = t, a.sibling = r, t.child = a, r = t.child, r.memoizedState = Jc(n), r.childLanes = Yc(e, o, n), t.memoizedState = qc, Lc(null, r)) : (ko(t), Zc(t, a));}var s = e.memoizedState;if (s !== null) {var c = s.dehydrated;- if (c !== null) return rl(e, t, a, o, r, c, s, n);+ if (c !== null) return el(e, t, a, o, r, c, s, n);}- return i ? (Io(), i = r.fallback, a = t.mode, s = e.child, c = s.sibling, r = Fi(s, {+ return i ? (Mo(), i = r.fallback, a = t.mode, s = e.child, c = s.sibling, r = Ai(s, {mode: "hidden",children: r.children- }), r.subtreeFlags = s.subtreeFlags & 1206910976, c === null ? (i = Ri(i, a, n, null), i.flags |= 2) : i = Fi(c, i), i.return = t, r.return = t, r.sibling = i, t.child = r, Bc(null, r), r = t.child, i = e.child.memoizedState, i === null ? i = Zc(n) : (a = i.cachePool, a === null ? a = Ja() : (s = ja._currentValue, a = a.parent === s ? a : {+ }), r.subtreeFlags = s.subtreeFlags & 1206910976, c === null ? (i = Ni(i, a, n, null), i.flags |= 2) : i = Ai(c, i), i.return = t, r.return = t, r.sibling = i, t.child = r, Lc(null, r), r = t.child, i = e.child.memoizedState, i === null ? i = Jc(n) : (a = i.cachePool, a === null ? a = Wa() : (s = Da._currentValue, a = a.parent === s ? a : {parent: s,pool: s}), i = {baseLanes: i.baseLanes | n,cachePool: a- }), r.memoizedState = i, r.childLanes = Qc(e, o, n), t.memoizedState = Xc, Bc(e.child, r)) : (No(t), n = e.child, e = n.sibling, n = Fi(n, {+ }), r.memoizedState = i, r.childLanes = Yc(e, o, n), t.memoizedState = qc, Lc(e.child, r)) : (ko(t), n = e.child, e = n.sibling, n = Ai(n, {mode: "visible",children: r.children}), n.return = t, n.sibling = null, e !== null && (o = t.deletions, o === null ? (t.deletions = [e], t.flags |= 16) : o.push(e)), t.child = n, t.memoizedState = null, n);}- function el(e, t) {- return t = tl({+ function Zc(e, t) {+ return t = Qc({mode: "visible",children: t}, e.mode), t.return = e, e.child = t;}- function tl(e, t) {- return e = Ni(22, e, null, t), e.lanes = 0, e;+ function Qc(e, t) {+ return e = Oi(22, e, null, t), e.lanes = 0, e;}- function nl(e, t, n) {- return fo(t, e.child, null, n), e = el(t, t.pendingProps.children), e.flags |= 2, t.memoizedState = null, e;+ function $c(e, t, n) {+ return so(t, e.child, null, n), e = Zc(t, t.pendingProps.children), e.flags |= 2, t.memoizedState = null, e;}- function rl(e, t, n, r, a, o, s, c) {- if (n) return t.flags & 256 ? (No(t), t.flags &= -257, nl(e, t, c)) : t.memoizedState === null ? (Io(), o = a.fallback, s = t.mode, a = tl({+ function el(e, t, n, r, a, o, s, c) {+ if (n) return t.flags & 256 ? (ko(t), t.flags &= -257, $c(e, t, c)) : t.memoizedState === null ? (Mo(), o = a.fallback, s = t.mode, a = Qc({mode: "visible",children: a.children- }, s), o = Ri(o, s, c, null), o.flags |= 2, a.return = t, o.return = t, a.sibling = o, t.child = a, fo(t, e.child, null, c), a = t.child, a.memoizedState = Zc(c), a.childLanes = Qc(e, r, c), t.memoizedState = Xc, Bc(null, a)) : (Io(), t.child = e.child, t.flags |= 128, null);- if (No(t), sm(o)) {+ }, s), o = Ni(o, s, c, null), o.flags |= 2, a.return = t, o.return = t, a.sibling = o, t.child = a, so(t, e.child, null, c), a = t.child, a.memoizedState = Jc(c), a.childLanes = Yc(e, r, c), t.memoizedState = qc, Lc(null, a)) : (Mo(), t.child = e.child, t.flags |= 128, null);+ if (ko(t), sm(o)) {if (r = o.nextSibling && o.nextSibling.dataset, r) var l = r.dgst;- return r = l, r !== "" && (a = Error(i(419)), a.stack = "", a.digest = r, ma({+ return r = l, r !== "" && (a = Error(i(419)), a.stack = "", a.digest = r, ua({value: a,source: null,stack: null- })), nl(e, t, c);+ })), $c(e, t, c);}- if (Pc || Sa(e, t, c, !1), r = (c & e.childLanes) !== 0, Pc || r) {- if (Eo.current !== null) return nl(e, t, c);- if (r = q, r !== null && (a = xt(r, c), a !== 0 && a !== s.retryLane)) throw s.retryLane = a, Oi(e, a), Pd(r, e, a), Nc;- return om(o) || Kd(), nl(e, t, c);+ if (Ac || va(e, t, c, !1), r = (c & e.childLanes) !== 0, Ac || r) {+ if (So.current !== null) return $c(e, t, c);+ if (r = Xu, r !== null && (a = ft(r, c), a !== 0 && a !== s.retryLane)) throw s.retryLane = a, Ci(e, a), Md(r, e, a), kc;+ return om(o) || Wd(), $c(e, t, c);}- return om(o) ? (t.flags |= 192, t.child = e.child, null) : (e = s.treeContext, z = lm(o.nextSibling), ia = t, B = !0, aa = null, oa = !1, e !== null && ra(t, e), t = el(t, a.children), t.flags |= 134221824, t);+ return om(o) ? (t.flags |= 192, t.child = e.child, null) : (e = s.treeContext, ea = lm(o.nextSibling), $i = t, U = !0, ta = null, na = !1, e !== null && Qi(t, e), t = Zc(t, a.children), t.flags |= 134221824, t);}- function il(e, t, n) {+ function tl(e, t, n) {e.lanes |= t;var r = e.alternate;- r !== null && (r.lanes |= t), ba(e.return, t, n);+ r !== null && (r.lanes |= t), ga(e.return, t, n);}- function al(e) {+ function nl(e) {for (var t = null; e !== null;) {var n = e.alternate;- n !== null && Vo(n) === null && (t = e), e = e.sibling;+ n !== null && Lo(n) === null && (t = e), e = e.sibling;}return t;}- function ol(e, t, n, r, i, a) {+ function rl(e, t, n, r, i, a) {var o = e.memoizedState;o === null ? e.memoizedState = {isBackwards: t,@@ -4277,22 +9998,22 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrtreeForkCount: a} : (o.isBackwards = t, o.rendering = null, o.renderingStartTime = 0, o.last = r, o.tail = n, o.tailMode = i, o.treeForkCount = a);}- function sl(e) {+ function il(e) {var t = e.child;for (e.child = null; t !== null;) {var n = t.sibling;t.sibling = e.child, e.child = t, t = n;}}- function cl(e, t, n) {+ function al(e, t, n) {var r = t.pendingProps, i = r.revealOrder, a = r.tail;r = r.children;- var o = Ro.current;- if (t.flags & 128) return zo(t, o), null;+ var o = Po.current;+ if (t.flags & 128) return Fo(t, o), null;var s = !!(o & 2);- if (s ? (o = o & 1 | 2, t.flags |= 128) : o &= 1, zo(t, o), i === "backwards" && e !== null ? (sl(e), Fc(e, t, r, n), sl(e)) : Fc(e, t, r, n), r = B ? qi : 0, !s && e !== null && e.flags & 128) a: for (e = t.child; e !== null;) {- if (e.tag === 13) e.memoizedState !== null && il(e, n, t);- else if (e.tag === 19) il(e, n, t);+ if (s ? (o = o & 1 | 2, t.flags |= 128) : o &= 1, Fo(t, o), i === "backwards" && e !== null ? (il(e), jc(e, t, r, n), il(e)) : jc(e, t, r, n), r = U ? Hi : 0, !s && e !== null && e.flags & 128) a: for (e = t.child; e !== null;) {+ if (e.tag === 13) e.memoizedState !== null && tl(e, n, t);+ else if (e.tag === 19) tl(e, n, t);else if (e.child !== null) {e.child.return = e, e = e.child;continue;@@ -4306,142 +10027,142 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr}switch (i) {case "backwards":- n = al(t.child), n === null ? (i = t.child, t.child = null) : (i = n.sibling, n.sibling = null, sl(t)), ol(t, !0, i, null, a, r);+ n = nl(t.child), n === null ? (i = t.child, t.child = null) : (i = n.sibling, n.sibling = null, il(t)), rl(t, !0, i, null, a, r);break;case "unstable_legacy-backwards":for (n = null, i = t.child, t.child = null; i !== null;) {- if (e = i.alternate, e !== null && Vo(e) === null) {+ if (e = i.alternate, e !== null && Lo(e) === null) {t.child = i;break;}e = i.sibling, i.sibling = n, n = i, i = e;}- ol(t, !0, n, null, a, r);+ rl(t, !0, n, null, a, r);break;case "together":- ol(t, !1, null, null, void 0, r);+ rl(t, !1, null, null, void 0, r);break;case "independent":t.memoizedState = null;break;- default: n = al(t.child), n === null ? (i = t.child, t.child = null) : (i = n.sibling, n.sibling = null), ol(t, !1, i, n, a, r);+ default: n = nl(t.child), n === null ? (i = t.child, t.child = null) : (i = n.sibling, n.sibling = null), rl(t, !1, i, n, a, r);}return t.child;}- function ll(e, t, n) {+ function ol(e, t, n) {var r = t.pendingProps;- return va(t, t.type, r.value), Fc(e, t, r.children, n), t.child;+ return ma(t, t.type, r.value), jc(e, t, r.children, n), t.child;}- function ul(e, t, n) {- if (e !== null && (t.dependencies = e.dependencies), od |= t.lanes, (n & t.childLanes) === 0) {+ function sl(e, t, n) {+ if (e !== null && (t.dependencies = e.dependencies), id |= t.lanes, (n & t.childLanes) === 0) {if (e !== null) {- if (Sa(e, t, n, !1), (n & t.childLanes) === 0) return null;+ if (va(e, t, n, !1), (n & t.childLanes) === 0) return null;} else return null;}if (e !== null && t.child !== e.child) throw Error(i(153));if (t.child !== null) {- for (e = t.child, n = Fi(e, e.pendingProps), t.child = n, n.return = t; e.sibling !== null;) e = e.sibling, n = n.sibling = Fi(e, e.pendingProps), n.return = t;+ for (e = t.child, n = Ai(e, e.pendingProps), t.child = n, n.return = t; e.sibling !== null;) e = e.sibling, n = n.sibling = Ai(e, e.pendingProps), n.return = t;n.sibling = null;}return t.child;}- function dl(e, t) {- return (e.lanes & t) !== 0 || (e = e.dependencies, !!(e !== null && Ca(e)));+ function cl(e, t) {+ return (e.lanes & t) !== 0 || (e = e.dependencies, !!(e !== null && ya(e)));}- function fl(e, t, n) {+ function ll(e, t, n) {switch (t.tag) {case 3:- j(t, t.stateNode.containerInfo), va(t, ja, e.memoizedState.cache), fa();+ be(t, t.stateNode.containerInfo), ma(t, Da, e.memoizedState.cache), ca();break;case 27:case 5:- Ne(t);+ Se(t);break;case 4:- j(t, t.stateNode.containerInfo);+ be(t, t.stateNode.containerInfo);break;case 10:- va(t, t.type, t.memoizedProps.value);+ ma(t, t.type, t.memoizedProps.value);break;case 31:- if (t.memoizedState !== null) return t.flags |= 128, Po(t), null;+ if (t.memoizedState !== null) return t.flags |= 128, Ao(t), null;break;case 13:var r = t.memoizedState;if (r !== null) {- if (r.dehydrated !== null) return No(t), t.flags |= 128, null;- r = Sa(e, t, n, !1);+ if (r.dehydrated !== null) return ko(t), t.flags |= 128, null;+ r = va(e, t, n, !1);var i = t.child.childLanes;- return r || (n & i) !== 0 ? $c(e, t, n) : (No(t), e = ul(e, t, n), e === null ? null : e.sibling);+ return r || (n & i) !== 0 ? Xc(e, t, n) : (ko(t), e = sl(e, t, n), e === null ? null : e.sibling);}- No(t);+ ko(t);break;case 19:- if (t.flags & 128) return cl(e, t, n);- if (i = !!(e.flags & 128), r = (n & t.childLanes) !== 0, r ||= (Sa(e, t, n, !1), (n & t.childLanes) !== 0), i) {- if (r) return cl(e, t, n);+ if (t.flags & 128) return al(e, t, n);+ if (i = !!(e.flags & 128), r = (n & t.childLanes) !== 0, r ||= (va(e, t, n, !1), (n & t.childLanes) !== 0), i) {+ if (r) return al(e, t, n);t.flags |= 128;}- if (i = t.memoizedState, i !== null && (i.rendering = null, i.tail = null, i.lastEffect = null), zo(t, Ro.current), r) break;+ if (i = t.memoizedState, i !== null && (i.rendering = null, i.tail = null, i.lastEffect = null), Fo(t, Po.current), r) break;return null;- case 22: return t.lanes = 0, zc(e, t, n, t.pendingProps);- case 24: va(t, ja, e.memoizedState.cache);+ case 22: return t.lanes = 0, Ic(e, t, n, t.pendingProps);+ case 24: ma(t, Da, e.memoizedState.cache);}- return ul(e, t, n);+ return sl(e, t, n);}- function pl(e, t, n) {+ function ul(e, t, n) {if (e !== null) {- if (e.memoizedProps !== t.pendingProps) Pc = !0;+ if (e.memoizedProps !== t.pendingProps) Ac = !0;else {- if (!dl(e, n) && !(t.flags & 128)) return Pc = !1, fl(e, t, n);- Pc = !!(e.flags & 131072);+ if (!cl(e, n) && !(t.flags & 128)) return Ac = !1, ll(e, t, n);+ Ac = !!(e.flags & 131072);}- } else Pc = !1, B && t.flags & 1048576 && ea(t, qi, t.index);+ } else Ac = !1, U && t.flags & 1048576 && Yi(t, Hi, t.index);switch (t.lanes = 0, t.tag) {case 16:a: {var r = t.pendingProps;- if (e = to(t.elementType), t.type = e, typeof e == "function") Pi(e) ? (r = Cc(e, r), t.tag = 1, t = Jc(null, t, e, r, n)) : (t.tag = 0, t = Kc(null, t, e, r, n));+ if (e = Za(t.elementType), t.type = e, typeof e == "function") ki(e) ? (r = yc(e, r), t.tag = 1, t = Gc(null, t, e, r, n)) : (t.tag = 0, t = Uc(null, t, e, r, n));else {if (e != null) {var a = e.$$typeof;- if (a === E) {- t.tag = 11, t = Ic(null, t, e, r, n);+ if (a === ee) {+ t.tag = 11, t = Nc(null, t, e, r, n);break a;}- if (a === fe) {- t.tag = 14, t = Lc(null, t, e, r, n);+ if (a === ne) {+ t.tag = 14, t = Pc(null, t, e, r, n);break a;}- if (a === le) {- t.tag = 10, t.type = e, t = ll(null, t, n);+ if (a === N) {+ t.tag = 10, t.type = e, t = ol(null, t, n);break a;}}- throw t = Se(e) || e, Error(i(306, t, ""));+ throw t = le(e) || e, Error(i(306, t, ""));}}return t;- case 0: return Kc(e, t, t.type, t.pendingProps, n);- case 1: return r = t.type, a = Cc(r, t.pendingProps), Jc(e, t, r, a, n);+ case 0: return Uc(e, t, t.type, t.pendingProps, n);+ case 1: return r = t.type, a = yc(r, t.pendingProps), Gc(e, t, r, a, n);case 3:a: {- if (j(t, t.stateNode.containerInfo), e === null) throw Error(i(387));+ if (be(t, t.stateNode.containerInfo), e === null) throw Error(i(387));r = t.pendingProps;var o = t.memoizedState;- a = o.element, go(e, t), Co(t, r, null, n);+ a = o.element, fo(e, t), yo(t, r, null, n);var s = t.memoizedState;- if (r = s.cache, va(t, ja, r), r !== o.cache && xa(t, [ja], n, !0), So(), r = s.element, o.isDehydrated) {+ if (r = s.cache, ma(t, Da, r), r !== o.cache && _a(t, [Da], n, !0), vo(), r = s.element, o.isDehydrated) {if (o = {element: r,isDehydrated: !1,cache: s.cache}, t.updateQueue.baseState = o, t.memoizedState = o, t.flags & 256) {- t = Yc(e, t, r, n);+ t = Kc(e, t, r, n);break a;}if (r !== a) {- a = Ui(Error(i(424)), t), ma(a), t = Yc(e, t, r, n);+ a = Ri(Error(i(424)), t), ua(a), t = Kc(e, t, r, n);break a;}switch (e = t.stateNode.containerInfo, e.nodeType) {@@ -4450,76 +10171,76 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrbreak;default: e = e.nodeName === "HTML" ? e.ownerDocument.body : e;}- for (z = lm(e.firstChild), ia = t, B = !0, aa = null, oa = !0, n = po(t, null, r, n), t.child = n; n;) n.flags = n.flags & -3 | 134221824, n = n.sibling;+ for (ea = lm(e.firstChild), $i = t, U = !0, ta = null, na = !0, n = co(t, null, r, n), t.child = n; n;) n.flags = n.flags & -3 | 134221824, n = n.sibling;} else {- if (fa(), r === a) {- t = ul(e, t, n);+ if (ca(), r === a) {+ t = sl(e, t, n);break a;}- Fc(e, t, r, n);+ jc(e, t, r, n);}t = t.child;}return t;- case 26: return Gc(e, t), e === null ? (n = Nm(t.type, null, t.pendingProps, null)) ? t.memoizedState = n : B || (t.stateNode = fp(t.type, t.pendingProps, Ae.current, t)) : t.memoizedState = Nm(t.type, e.memoizedProps, t.pendingProps, e.memoizedState), null;- case 27: return Ne(t), e === null && B && (r = t.stateNode = hm(t.type, t.pendingProps, Ae.current), ia = t, oa = !0, a = z, Sp(t.type) ? (um = a, z = lm(r.firstChild)) : z = a), Fc(e, t, t.pendingProps.children, n), Gc(e, t), e === null && (t.flags |= 4194304), t.child;- case 5: return e === null && B && ((a = r = z) && (r = rm(r, t.type, t.pendingProps, oa), r === null ? a = !1 : (t.stateNode = r, ia = t, z = lm(r.firstChild), oa = !1, a = !0)), a || ca(t)), Ne(t), a = t.type, o = t.pendingProps, s = e === null ? null : e.memoizedProps, r = o.children, pp(a, o) ? r = null : s !== null && pp(a, s) && (t.flags |= 32), t.memoizedState !== null && (a = $o(e, t, ns, null, null, n), sh._currentValue = a), Gc(e, t), Fc(e, t, r, n), t.child;- case 6: return e === null && B && ((e = n = z) && (n = im(n, t.pendingProps, oa), n === null ? e = !1 : (t.stateNode = n, ia = t, z = null, e = !0)), e || ca(t)), null;- case 13: return $c(e, t, n);- case 4: return j(t, t.stateNode.containerInfo), r = t.pendingProps, e === null ? t.child = fo(t, null, r, n) : Fc(e, t, r, n), t.child;- case 11: return Ic(e, t, t.type, t.pendingProps, n);- case 7: return r = t.pendingProps, Gc(e, t), Fc(e, t, r, n), t.child;- case 8: return Fc(e, t, t.pendingProps.children, n), t.child;- case 12: return Fc(e, t, t.pendingProps.children, n), t.child;- case 10: return ll(e, t, n);- case 9: return a = t.type._context, r = t.pendingProps.children, wa(t), a = Ta(a), r = r(a), t.flags |= 1, Fc(e, t, r, n), t.child;- case 14: return Lc(e, t, t.type, t.pendingProps, n);- case 15: return Rc(e, t, t.type, t.pendingProps, n);- case 19: return cl(e, t, n);- case 31: return Wc(e, t, n);- case 22: return zc(e, t, n, t.pendingProps);- case 24: return wa(t), r = Ta(ja), e === null ? (a = Ka(), a === null && (a = q, o = Ma(), a.pooledCache = o, o.refCount++, o !== null && (a.pooledCacheLanes |= n), a = o), t.memoizedState = {+ case 26: return Hc(e, t), e === null ? (n = Nm(t.type, null, t.pendingProps, null)) ? t.memoizedState = n : U || (t.stateNode = fp(t.type, t.pendingProps, ve.current, t)) : t.memoizedState = Nm(t.type, e.memoizedProps, t.pendingProps, e.memoizedState), null;+ case 27: return Se(t), e === null && U && (r = t.stateNode = hm(t.type, t.pendingProps, ve.current), $i = t, na = !0, a = ea, Sp(t.type) ? (um = a, ea = lm(r.firstChild)) : ea = a), jc(e, t, t.pendingProps.children, n), Hc(e, t), e === null && (t.flags |= 4194304), t.child;+ case 5: return e === null && U && ((a = r = ea) && (r = rm(r, t.type, t.pendingProps, na), r === null ? a = !1 : (t.stateNode = r, $i = t, ea = lm(r.firstChild), na = !1, a = !0)), a || ia(t)), Se(t), a = t.type, o = t.pendingProps, s = e === null ? null : e.memoizedProps, r = o.children, pp(a, o) ? r = null : s !== null && pp(a, s) && (t.flags |= 32), t.memoizedState !== null && (a = Yo(e, t, Qo, null, null, n), sh._currentValue = a), Hc(e, t), jc(e, t, r, n), t.child;+ case 6: return e === null && U && ((e = n = ea) && (n = im(n, t.pendingProps, na), n === null ? e = !1 : (t.stateNode = n, $i = t, ea = null, e = !0)), e || ia(t)), null;+ case 13: return Xc(e, t, n);+ case 4: return be(t, t.stateNode.containerInfo), r = t.pendingProps, e === null ? t.child = so(t, null, r, n) : jc(e, t, r, n), t.child;+ case 11: return Nc(e, t, t.type, t.pendingProps, n);+ case 7: return r = t.pendingProps, Hc(e, t), jc(e, t, r, n), t.child;+ case 8: return jc(e, t, t.pendingProps.children, n), t.child;+ case 12: return jc(e, t, t.pendingProps.children, n), t.child;+ case 10: return ol(e, t, n);+ case 9: return a = t.type._context, r = t.pendingProps.children, ba(t), a = xa(a), r = r(a), t.flags |= 1, jc(e, t, r, n), t.child;+ case 14: return Pc(e, t, t.type, t.pendingProps, n);+ case 15: return Fc(e, t, t.type, t.pendingProps, n);+ case 19: return al(e, t, n);+ case 31: return Vc(e, t, n);+ case 22: return Ic(e, t, n, t.pendingProps);+ case 24: return ba(t), r = xa(Da), e === null ? (a = Ha(), a === null && (a = Xu, o = Oa(), a.pooledCache = o, o.refCount++, o !== null && (a.pooledCacheLanes |= n), a = o), t.memoizedState = {parent: r,cache: a- }, ho(t), va(t, ja, a)) : ((e.lanes & n) !== 0 && (go(e, t), Co(t, null, null, n), So()), a = e.memoizedState, o = t.memoizedState, a.parent === r ? (r = o.cache, va(t, ja, r), r !== a.cache && xa(t, [ja], n, !0)) : (a = {+ }, uo(t), ma(t, Da, a)) : ((e.lanes & n) !== 0 && (fo(e, t), yo(t, null, null, n), vo()), a = e.memoizedState, o = t.memoizedState, a.parent === r ? (r = o.cache, ma(t, Da, r), r !== a.cache && _a(t, [Da], n, !0)) : (a = {parent: r,cache: r- }, t.memoizedState = a, t.lanes === 0 && (t.memoizedState = t.updateQueue.baseState = a), va(t, ja, r))), Fc(e, t, t.pendingProps.children, n), t.child;+ }, t.memoizedState = a, t.lanes === 0 && (t.memoizedState = t.updateQueue.baseState = a), ma(t, Da, r))), jc(e, t, t.pendingProps.children, n), t.child;case 30: return t.stateNode === null && (t.stateNode = {autoName: null,paired: null,clones: null,ref: null- }), r = t.pendingProps, r.name != null && r.name !== "auto" ? t.flags |= e === null ? 18882560 : 18874368 : B && ta(t), e !== null && e.memoizedProps.name !== r.name ? t.flags |= 4194816 : Gc(e, t), Fc(e, t, r.children, n), t.child;+ }), r = t.pendingProps, r.name != null && r.name !== "auto" ? t.flags |= e === null ? 18882560 : 18874368 : U && Xi(t), e !== null && e.memoizedProps.name !== r.name ? t.flags |= 4194816 : Hc(e, t), jc(e, t, r.children, n), t.child;case 29: throw t.pendingProps;}throw Error(i(156, t.tag));}- function ml(e) {+ function dl(e) {e.flags |= 4;}- function hl(e, t, n, r, i) {+ function fl(e, t, n, r, i) {var a;if ((a = !!(e.mode & 32)) && (a = n === null ? Jm(t, r) : Jm(t, r) && (r.src !== n.src || r.srcSet !== n.srcSet)), a) {if (e.flags |= 16777216, (i & 335544128) === i) {if (e.stateNode.complete) e.flags |= 8192;- else if (Ud()) e.flags |= 8192;- else throw no = Qa, Xa;+ else if (Vd()) e.flags |= 8192;+ else throw Qa = Ja, Ka;}} else e.flags &= -16777217;}- function gl(e, t) {+ function pl(e, t) {if (t.type !== "stylesheet" || t.state.loading & 4) e.flags &= -16777217;else if (e.flags |= 16777216, !Ym(t)) {- if (Ud()) e.flags |= 8192;- else throw no = Qa, Xa;+ if (Vd()) e.flags |= 8192;+ else throw Qa = Ja, Ka;}}- function _l(e, t) {- t !== null && (e.flags |= 4), e.flags & 16384 && (t = e.tag === 22 ? 536870912 : ht(), e.lanes |= t, ud |= t);+ function ml(e, t) {+ t !== null && (e.flags |= 4), e.flags & 16384 && (t = e.tag === 22 ? 536870912 : ot(), e.lanes |= t, cd |= t);}- function vl(e, t) {- if (!B) switch (e.tailMode) {+ function hl(e, t) {+ if (!U) switch (e.tailMode) {case "visible": break;case "collapsed":for (var n = e.tail, r = null; n !== null;) n.alternate !== null && (r = n), n = n.sibling;@@ -4530,15 +10251,15 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrn === null ? e.tail = null : n.sibling = null;}}- function U(e) {+ function gl(e) {var t = e.alternate !== null && e.alternate.child === e.child, n = 0, r = 0;if (t) for (var i = e.child; i !== null;) n |= i.lanes | i.childLanes, r |= i.subtreeFlags & 1206910976, r |= i.flags & 1206910976, i.return = e, i = i.sibling;else for (i = e.child; i !== null;) n |= i.lanes | i.childLanes, r |= i.subtreeFlags, r |= i.flags, i.return = e, i = i.sibling;return e.subtreeFlags |= r, e.childLanes = n, t;}- function yl(e, t, n) {+ function _l(e, t, n) {var r = t.pendingProps;- switch (na(t), t.tag) {+ switch (Zi(t), t.tag) {case 16:case 15:case 0:@@ -4547,32 +10268,32 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrcase 8:case 12:case 9:- case 14: return U(t), null;- case 1: return U(t), null;- case 3: return n = t.stateNode, r = null, e !== null && (r = e.memoizedState.cache), t.memoizedState.cache !== r && (t.flags |= 2048), ya(ja), Me(), n.pendingContext && (n.context = n.pendingContext, n.pendingContext = null), (e === null || e.child === null) && (da(t) ? ml(t) : e === null || e.memoizedState.isDehydrated && !(t.flags & 256) || (t.flags |= 1024, pa())), U(t), null;+ case 14: return gl(t), null;+ case 1: return gl(t), null;+ case 3: return n = t.stateNode, r = null, e !== null && (r = e.memoizedState.cache), t.memoizedState.cache !== r && (t.flags |= 2048), ha(Da), xe(), n.pendingContext && (n.context = n.pendingContext, n.pendingContext = null), (e === null || e.child === null) && (sa(t) ? dl(t) : e === null || e.memoizedState.isDehydrated && !(t.flags & 256) || (t.flags |= 1024, la())), gl(t), null;case 26:var a = t.type, o = t.memoizedState;- return e === null ? (ml(t), o === null ? (U(t), hl(t, a, null, r, n)) : (U(t), gl(t, o))) : o ? o === e.memoizedState ? (U(t), t.flags &= -16777217) : (ml(t), U(t), gl(t, o)) : (e = e.memoizedProps, e !== r && ml(t), U(t), hl(t, a, e, r, n)), null;+ return e === null ? (dl(t), o === null ? (gl(t), fl(t, a, null, r, n)) : (gl(t), pl(t, o))) : o ? o === e.memoizedState ? (gl(t), t.flags &= -16777217) : (dl(t), gl(t), pl(t, o)) : (e = e.memoizedProps, e !== r && dl(t), gl(t), fl(t, a, e, r, n)), null;case 27:- if (Pe(t), n = Ae.current, a = t.type, e !== null && t.stateNode != null) e.memoizedProps !== r && ml(t);+ if (Ce(t), n = ve.current, a = t.type, e !== null && t.stateNode != null) e.memoizedProps !== r && dl(t);else {if (!r) {if (t.stateNode === null) throw Error(i(166));- return U(t), t.subtreeFlags &= -33554433, null;+ return gl(t), t.subtreeFlags &= -33554433, null;}- e = Oe.current, da(t) ? la(t, e) : (e = hm(a, r, n), t.stateNode = e, ml(t));+ e = ge.current, sa(t) ? aa(t, e) : (e = hm(a, r, n), t.stateNode = e, dl(t));}- return U(t), t.subtreeFlags &= -33554433, null;+ return gl(t), t.subtreeFlags &= -33554433, null;case 5:- if (Pe(t), a = t.type, e !== null && t.stateNode != null) e.memoizedProps !== r && ml(t);+ if (Ce(t), a = t.type, e !== null && t.stateNode != null) e.memoizedProps !== r && dl(t);else {if (!r) {if (t.stateNode === null) throw Error(i(166));- return U(t), t.subtreeFlags &= -33554433, null;+ return gl(t), t.subtreeFlags &= -33554433, null;}- if (o = Oe.current, da(t)) la(t, o);+ if (o = ge.current, sa(t)) aa(t, o);else {- var s = lp(Ae.current);+ var s = lp(ve.current);switch (o) {case 1:o = s.createElementNS("http://www.w3.org/2000/svg", a);@@ -4596,7 +10317,7 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrdefault: o = typeof r.is == "string" ? s.createElement(a, { is: r.is }) : s.createElement(a);}}- o[Et] = t, o[Dt] = r;+ o[vt] = t, o[yt] = r;a: for (s = t.child; s !== null;) {if (s.tag === 5 || s.tag === 6) o.appendChild(s.stateNode);else if (s.tag !== 4 && s.tag !== 27 && s.child !== null) {@@ -4623,71 +10344,71 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrbreak a;default: r = !1;}- r && ml(t);+ r && dl(t);}}- return U(t), t.subtreeFlags &= -33554433, hl(t, t.type, e === null ? null : e.memoizedProps, t.pendingProps, n), null;+ return gl(t), t.subtreeFlags &= -33554433, fl(t, t.type, e === null ? null : e.memoizedProps, t.pendingProps, n), null;case 6:- if (e && t.stateNode != null) e.memoizedProps !== r && ml(t);+ if (e && t.stateNode != null) e.memoizedProps !== r && dl(t);else {if (typeof r != "string" && t.stateNode === null) throw Error(i(166));- if (e = Ae.current, da(t)) {- if (e = t.stateNode, n = t.memoizedProps, r = null, a = ia, a !== null) switch (a.tag) {+ if (e = ve.current, sa(t)) {+ if (e = t.stateNode, n = t.memoizedProps, r = null, a = $i, a !== null) switch (a.tag) {case 27:case 5: r = a.memoizedProps;}- e[Et] = t, e = !!(e.nodeValue === n || r !== null && !0 === r.suppressHydrationWarning || ep(e.nodeValue, n)), e || ca(t, !0);- } else e = lp(e).createTextNode(r), e[Et] = t, t.stateNode = e;+ e[vt] = t, e = !!(e.nodeValue === n || r !== null && !0 === r.suppressHydrationWarning || $f(e.nodeValue, n)), e || ia(t, !0);+ } else e = lp(e).createTextNode(r), e[vt] = t, t.stateNode = e;}- return U(t), null;+ return gl(t), null;case 31:if (n = t.memoizedState, e === null || e.memoizedState !== null) {- if (r = da(t), n !== null) {+ if (r = sa(t), n !== null) {if (e === null) {if (!r) throw Error(i(318));if (e = t.memoizedState, e = e === null ? null : e.dehydrated, !e) throw Error(i(557));- e[Et] = t;- } else fa(), !(t.flags & 128) && (t.memoizedState = null), t.flags |= 4;- U(t), e = !1;- } else n = pa(), e !== null && e.memoizedState !== null && (e.memoizedState.hydrationErrors = n), e = !0;- if (!e) return t.flags & 256 ? (Lo(t), t) : (Lo(t), null);+ e[vt] = t;+ } else ca(), !(t.flags & 128) && (t.memoizedState = null), t.flags |= 4;+ gl(t), e = !1;+ } else n = la(), e !== null && e.memoizedState !== null && (e.memoizedState.hydrationErrors = n), e = !0;+ if (!e) return t.flags & 256 ? (No(t), t) : (No(t), null);if (t.flags & 128) throw Error(i(558));}- return U(t), null;+ return gl(t), null;case 13:if (r = t.memoizedState, e === null || e.memoizedState !== null && e.memoizedState.dehydrated !== null) {- if (a = da(t), r !== null && r.dehydrated !== null) {+ if (a = sa(t), r !== null && r.dehydrated !== null) {if (e === null) {if (!a) throw Error(i(318));if (a = t.memoizedState, a = a === null ? null : a.dehydrated, !a) throw Error(i(317));- a[Et] = t;- } else fa(), !(t.flags & 128) && (t.memoizedState = null), t.flags |= 4;- U(t), a = !1;- } else a = pa(), e !== null && e.memoizedState !== null && (e.memoizedState.hydrationErrors = a), a = !0;- if (!a) return t.flags & 256 ? (Lo(t), t) : (Lo(t), null);- }- return Lo(t), t.flags & 128 ? (t.lanes = n, t) : (n = r !== null, e = e !== null && e.memoizedState !== null, n && (r = t.child, a = null, r.alternate !== null && r.alternate.memoizedState !== null && r.alternate.memoizedState.cachePool !== null && (a = r.alternate.memoizedState.cachePool.pool), o = null, r.memoizedState !== null && r.memoizedState.cachePool !== null && (o = r.memoizedState.cachePool.pool), o !== a && (r.flags |= 2048)), n !== e && n && (t.child.flags |= 8192), _l(t, t.updateQueue), U(t), null);- case 4: return Me(), e === null && Wf(t.stateNode.containerInfo), t.flags |= 67108864, U(t), null;- case 10: return ya(t.type), U(t), null;+ a[vt] = t;+ } else ca(), !(t.flags & 128) && (t.memoizedState = null), t.flags |= 4;+ gl(t), a = !1;+ } else a = la(), e !== null && e.memoizedState !== null && (e.memoizedState.hydrationErrors = a), a = !0;+ if (!a) return t.flags & 256 ? (No(t), t) : (No(t), null);+ }+ return No(t), t.flags & 128 ? (t.lanes = n, t) : (n = r !== null, e = e !== null && e.memoizedState !== null, n && (r = t.child, a = null, r.alternate !== null && r.alternate.memoizedState !== null && r.alternate.memoizedState.cachePool !== null && (a = r.alternate.memoizedState.cachePool.pool), o = null, r.memoizedState !== null && r.memoizedState.cachePool !== null && (o = r.memoizedState.cachePool.pool), o !== a && (r.flags |= 2048)), n !== e && n && (t.child.flags |= 8192), ml(t, t.updateQueue), gl(t), null);+ case 4: return xe(), e === null && Uf(t.stateNode.containerInfo), t.flags |= 67108864, gl(t), null;+ case 10: return ha(t.type), gl(t), null;case 19:- if (Bo(t), r = t.memoizedState, r === null) return U(t), null;+ if (Io(t), r = t.memoizedState, r === null) return gl(t), null;if (a = !!(t.flags & 128), o = r.rendering, o === null) {- if (a) vl(r, !1);+ if (a) hl(r, !1);else {- if (ad !== 0 || e !== null && e.flags & 128) for (e = t.child; e !== null;) {- if (o = Vo(e), o !== null) {- for (t.flags |= 128, vl(r, !1), e = o.updateQueue, t.updateQueue = e, _l(t, e), t.subtreeFlags = 0, e = n, n = t.child; n !== null;) Ii(n, e), n = n.sibling;- return zo(t, Ro.current & 1 | 2), B && $i(t, r.treeForkCount), t.child;+ if (rd !== 0 || e !== null && e.flags & 128) for (e = t.child; e !== null;) {+ if (o = Lo(e), o !== null) {+ for (t.flags |= 128, hl(r, !1), e = o.updateQueue, t.updateQueue = e, ml(t, e), t.subtreeFlags = 0, e = n, n = t.child; n !== null;) ji(n, e), n = n.sibling;+ return Fo(t, Po.current & 1 | 2), U && Ji(t, r.treeForkCount), t.child;}e = e.sibling;}- r.tail !== null && Ke() > gd && (t.flags |= 128, a = !0, vl(r, !1), t.lanes = 4194304);+ r.tail !== null && Ie() > md && (t.flags |= 128, a = !0, hl(r, !1), t.lanes = 4194304);}} else {if (!a) {- if (e = Vo(o), e !== null) {- if (t.flags |= 128, a = !0, e = e.updateQueue, t.updateQueue = e, _l(t, e), vl(r, !0), r.tail === null && r.tailMode !== "collapsed" && r.tailMode !== "visible" && !o.alternate && !B) return U(t), null;- } else 2 * Ke() - r.renderingStartTime > gd && n !== 536870912 && (t.flags |= 128, a = !0, vl(r, !1), t.lanes = 4194304);+ if (e = Lo(o), e !== null) {+ if (t.flags |= 128, a = !0, e = e.updateQueue, t.updateQueue = e, ml(t, e), hl(r, !0), r.tail === null && r.tailMode !== "collapsed" && r.tailMode !== "visible" && !o.alternate && !U) return gl(t), null;+ } else 2 * Ie() - r.renderingStartTime > md && n !== 536870912 && (t.flags |= 128, a = !0, hl(r, !1), t.lanes = 4194304);}r.isBackwards ? (o.sibling = t.child, t.child = o) : (e = r.last, e === null ? t.child = o : e.sibling = o, r.last = o);}@@ -4703,79 +10424,79 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr}n = !0;}- return r.rendering = e, r.tail = e.sibling, r.renderingStartTime = Ke(), e.sibling = null, o = Ro.current, o = a ? o & 1 | 2 : o & 1, r.tailMode === "visible" || r.tailMode === "collapsed" || !n || B ? zo(t, o) : (n = o, A(jo, t), A(Ro, n), Mo === null && (Mo = t)), B && $i(t, r.treeForkCount), e;+ return r.rendering = e, r.tail = e.sibling, r.renderingStartTime = Ie(), e.sibling = null, o = Po.current, o = a ? o & 1 | 2 : o & 1, r.tailMode === "visible" || r.tailMode === "collapsed" || !n || U ? Fo(t, o) : (n = o, B(Do, t), B(Po, n), Oo === null && (Oo = t)), U && Ji(t, r.treeForkCount), e;}- return U(t), null;+ return gl(t), null;case 22:- case 23: return Lo(t), Ao(), r = t.memoizedState !== null, e === null ? r && (t.flags |= 8192) : e.memoizedState !== null !== r && (t.flags |= 8192), r ? n & 536870912 && !(t.flags & 128) && (U(t), t.subtreeFlags & 6 && (t.flags |= 8192)) : U(t), n = t.updateQueue, n !== null && _l(t, n.retryQueue), n = null, e !== null && e.memoizedState !== null && e.memoizedState.cachePool !== null && (n = e.memoizedState.cachePool.pool), r = null, t.memoizedState !== null && t.memoizedState.cachePool !== null && (r = t.memoizedState.cachePool.pool), r !== n && (t.flags |= 2048), e !== null && De(Ga), null;- case 24: return n = null, e !== null && (n = e.memoizedState.cache), t.memoizedState.cache !== n && (t.flags |= 2048), ya(ja), U(t), null;+ case 23: return No(t), Eo(), r = t.memoizedState !== null, e === null ? r && (t.flags |= 8192) : e.memoizedState !== null !== r && (t.flags |= 8192), r ? n & 536870912 && !(t.flags & 128) && (gl(t), t.subtreeFlags & 6 && (t.flags |= 8192)) : gl(t), n = t.updateQueue, n !== null && ml(t, n.retryQueue), n = null, e !== null && e.memoizedState !== null && e.memoizedState.cachePool !== null && (n = e.memoizedState.cachePool.pool), r = null, t.memoizedState !== null && t.memoizedState.cachePool !== null && (r = t.memoizedState.cachePool.pool), r !== n && (t.flags |= 2048), e !== null && he(Va), null;+ case 24: return n = null, e !== null && (n = e.memoizedState.cache), t.memoizedState.cache !== n && (t.flags |= 2048), ha(Da), gl(t), null;case 25: return null;- case 30: return t.flags |= 33554432, U(t), null;+ case 30: return t.flags |= 33554432, gl(t), null;}throw Error(i(156, t.tag));}- function bl(e, t) {- switch (na(t), t.tag) {+ function vl(e, t) {+ switch (Zi(t), t.tag) {case 1: return e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;- case 3: return ya(ja), Me(), e = t.flags, e & 65536 && !(e & 128) ? (t.flags = e & -65537 | 128, t) : null;+ case 3: return ha(Da), xe(), e = t.flags, e & 65536 && !(e & 128) ? (t.flags = e & -65537 | 128, t) : null;case 26:case 27:- case 5: return Pe(t), null;+ case 5: return Ce(t), null;case 31:if (t.memoizedState !== null) {- if (Lo(t), t.alternate === null) throw Error(i(340));- fa();+ if (No(t), t.alternate === null) throw Error(i(340));+ ca();}return e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;case 13:- if (Lo(t), e = t.memoizedState, e !== null && e.dehydrated !== null) {+ if (No(t), e = t.memoizedState, e !== null && e.dehydrated !== null) {if (t.alternate === null) throw Error(i(340));- fa();+ ca();}return e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;- case 19: return Bo(t), e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, e = t.memoizedState, e !== null && (e.rendering = null, e.tail = null), t.flags |= 4, t) : null;- case 4: return Me(), null;- case 10: return ya(t.type), null;+ case 19: return Io(t), e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, e = t.memoizedState, e !== null && (e.rendering = null, e.tail = null), t.flags |= 4, t) : null;+ case 4: return xe(), null;+ case 10: return ha(t.type), null;case 22:- case 23: return Lo(t), Ao(), e !== null && De(Ga), e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;- case 24: return ya(ja), null;+ case 23: return No(t), Eo(), e !== null && he(Va), e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;+ case 24: return ha(Da), null;case 25: return null;default: return null;}}- function xl(e, t) {- switch (na(t), t.tag) {+ function yl(e, t) {+ switch (Zi(t), t.tag) {case 3:- ya(ja), Me();+ ha(Da), xe();break;case 26:case 27:case 5:- Pe(t);+ Ce(t);break;case 4:- Me();+ xe();break;case 31:- t.memoizedState !== null && Lo(t);+ t.memoizedState !== null && No(t);break;case 13:- Lo(t);+ No(t);break;case 19:- Bo(t);+ Io(t);break;case 10:- ya(t.type);+ ha(t.type);break;case 22:case 23:- Lo(t), Ao(), e !== null && De(Ga);+ No(t), Eo(), e !== null && he(Va);break;- case 24: ya(ja);+ case 24: ha(Da);}}- function Sl(e, t) {+ function bl(e, t) {try {var n = t.updateQueue, r = n === null ? null : n.lastEffect;if (r !== null) {@@ -4791,10 +10512,10 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr} while (n !== i);}} catch (e) {- Z(t, t.return, e);+ ff(t, t.return, e);}}- function Cl(e, t, n) {+ function xl(e, t, n) {try {var r = t.updateQueue, i = r === null ? null : r.lastEffect;if (i !== null) {@@ -4809,7 +10530,7 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrtry {l();} catch (e) {- Z(i, c, e);+ ff(i, c, e);}}}@@ -4817,29 +10538,29 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr} while (r !== a);}} catch (e) {- Z(t, t.return, e);+ ff(t, t.return, e);}}- function wl(e) {+ function Sl(e) {var t = e.updateQueue;if (t !== null) {var n = e.stateNode;try {- To(t, n);+ xo(t, n);} catch (t) {- Z(e, e.return, t);+ ff(e, e.return, t);}}}- function Tl(e, t, n) {- n.props = Cc(e.type, e.memoizedProps), n.state = e.memoizedState;+ function Cl(e, t, n) {+ n.props = yc(e.type, e.memoizedProps), n.state = e.memoizedState;try {n.componentWillUnmount();} catch (n) {- Z(e, t, n);+ ff(e, t, n);}}- function El(e, t) {+ function K(e, t) {try {var n = e.ref;if (n !== null) {@@ -4850,13 +10571,13 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrvar r = e.stateNode;break;case 30:- var i = e.stateNode, a = vi(e.memoizedProps, i);+ var i = e.stateNode, a = pi(e.memoizedProps, i);(i.ref === null || i.ref.name !== a) && (i.ref = Pp(a)), r = i.ref;break;case 7:if (e.stateNode === null) {var o = new Fp(e);- m(e.child, !1, Qp, o, void 0, void 0), e.stateNode = o;+ f(e.child, !1, Qp, o, void 0, void 0), e.stateNode = o;}r = e.stateNode;break;@@ -4865,43 +10586,43 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrtypeof n == "function" ? e.refCleanup = n(r) : n.current = r;}} catch (n) {- Z(e, t, n);+ ff(e, t, n);}}- function Dl(e, t) {+ function wl(e, t) {var n = e.ref, r = e.refCleanup;if (n !== null) {if (typeof r == "function") try {r();} catch (n) {- Z(e, t, n);+ ff(e, t, n);} finally {e.refCleanup = null, e = e.alternate, e != null && (e.refCleanup = null);}else if (typeof n == "function") try {n(null);} catch (n) {- Z(e, t, n);+ ff(e, t, n);}else n.current = null;}}- function Ol(e, t) {+ function Tl(e, t) {if ((e.tag === 5 || e.tag === 27 || e.tag === 6) && e.alternate === null && t !== null) for (var n = 0; n < t.length; n++) em(e.stateNode, t[n]);}- function kl(e) {- for (var t = e.return; t !== null && (Ml(t) && em(e.stateNode, t.stateNode), !jl(t));) t = t.return;+ function El(e) {+ for (var t = e.return; t !== null && (kl(t) && em(e.stateNode, t.stateNode), !Ol(t));) t = t.return;}- function Al(e) {- for (var t = e.return; t !== null && (Ml(t) && tm(e.stateNode, t.stateNode), !jl(t));) t = t.return;+ function Dl(e) {+ for (var t = e.return; t !== null && (kl(t) && tm(e.stateNode, t.stateNode), !Ol(t));) t = t.return;}- function jl(e) {+ function Ol(e) {return e.tag === 5 || e.tag === 3 || e.tag === 27;}- function Ml(e) {+ function kl(e) {return e && e.tag === 7 && e.stateNode !== null;}- function Nl(e) {+ function Al(e) {var t = e.type, n = e.memoizedProps, r = e.stateNode;try {a: switch (t) {@@ -4914,24 +10635,24 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrcase "img": n.src ? r.src = n.src : n.srcSet && (r.srcset = n.srcSet);}} catch (t) {- Z(e, e.return, t);+ ff(e, e.return, t);}}- function Pl(e, t, n) {+ function jl(e, t, n) {try {var r = e.stateNode;- ip(r, e.type, n, t), r[Dt] = t;+ ip(r, e.type, n, t), r[yt] = t;} catch (t) {- Z(e, e.return, t);+ ff(e, e.return, t);}}- function Fl(e) {+ function Ml(e) {return e.tag === 5 || e.tag === 3 || e.tag === 26 || e.tag === 27 && Sp(e.type) || e.tag === 4;}- function Il(e) {+ function Nl(e) {a: for (;;) {for (; e.sibling === null;) {- if (e.return === null || Fl(e.return)) return null;+ if (e.return === null || Ml(e.return)) return null;e = e.return;}for (e.sibling.return = e.return, e = e.sibling; e.tag !== 5 && e.tag !== 6 && e.tag !== 18;) {@@ -4941,39 +10662,39 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrif (!(e.flags & 2)) return e.stateNode;}}- function Ll(e, t, n, r) {+ function Pl(e, t, n, r) {var i = e.tag;- if (i === 5 || i === 6) i = e.stateNode, t ? (n.nodeType === 9 ? n.body : n.nodeName === "HTML" ? n.ownerDocument.body : n).insertBefore(i, t) : (t = n.nodeType === 9 ? n.body : n.nodeName === "HTML" ? n.ownerDocument.body : n, t.appendChild(i), n = n._reactRootContainer, n != null || t.onclick !== null || (t.onclick = bn)), Ol(e, r), F = !0;- else if (i !== 4 && (i === 27 && (Ol(e, r), r = null, Sp(e.type) && (n = e.stateNode, t = null)), e = e.child, e !== null)) for (Ll(e, t, n, r), e = e.sibling; e !== null;) Ll(e, t, n, r), e = e.sibling;+ if (i === 5 || i === 6) i = e.stateNode, t ? (n.nodeType === 9 ? n.body : n.nodeName === "HTML" ? n.ownerDocument.body : n).insertBefore(i, t) : (t = n.nodeType === 9 ? n.body : n.nodeName === "HTML" ? n.ownerDocument.body : n, t.appendChild(i), n = n._reactRootContainer, n != null || t.onclick !== null || (t.onclick = mn)), Tl(e, r), H = !0;+ else if (i !== 4 && (i === 27 && (Tl(e, r), r = null, Sp(e.type) && (n = e.stateNode, t = null)), e = e.child, e !== null)) for (Pl(e, t, n, r), e = e.sibling; e !== null;) Pl(e, t, n, r), e = e.sibling;}- function Rl(e, t, n, r) {+ function q(e, t, n, r) {var i = e.tag;- if (i === 5 || i === 6) i = e.stateNode, t ? n.insertBefore(i, t) : n.appendChild(i), Ol(e, r), F = !0;- else if (i !== 4 && (i === 27 && (Ol(e, r), r = null, Sp(e.type) && (n = e.stateNode)), e = e.child, e !== null)) for (Rl(e, t, n, r), e = e.sibling; e !== null;) Rl(e, t, n, r), e = e.sibling;+ if (i === 5 || i === 6) i = e.stateNode, t ? n.insertBefore(i, t) : n.appendChild(i), Tl(e, r), H = !0;+ else if (i !== 4 && (i === 27 && (Tl(e, r), r = null, Sp(e.type) && (n = e.stateNode)), e = e.child, e !== null)) for (q(e, t, n, r), e = e.sibling; e !== null;) q(e, t, n, r), e = e.sibling;}- function zl(e) {+ function Fl(e) {var t = e.stateNode, n = e.memoizedProps;try {for (var r = e.type, i = t.attributes; i.length;) t.removeAttributeNode(i[0]);- np(t, r, n), t[Et] = e, t[Dt] = n;+ np(t, r, n), t[vt] = e, t[yt] = n;} catch (t) {- Z(e, e.return, t);+ ff(e, e.return, t);}}- var Bl = !1, Vl = null;- function Hl(e) {- (e.tag === 30 || e.subtreeFlags & 33554432) && (Bl = !0);+ var Il = !1, Ll = null;+ function Rl(e) {+ (e.tag === 30 || e.subtreeFlags & 33554432) && (Il = !0);}- var Ul = null;- function Wl() {- var e = Ul;- return Ul = null, e;+ var zl = null;+ function Bl() {+ var e = zl;+ return zl = null, e;}- var Gl = 0;- function Kl(e, t, n, r, i) {- return Gl = 0, ql(e.child, t, n, r, i);+ var Vl = 0;+ function J(e, t, n, r, i) {+ return Vl = 0, Hl(e.child, t, n, r, i);}- function ql(e, t, n, r, i) {+ function Hl(e, t, n, r, i) {for (var a = !1; e !== null;) {if (e.tag === 5) {var o = e.stateNode;@@ -4981,36 +10702,36 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrvar s = Op(o);r.push(s), s.view && (a = !0);} else a || Op(o).view && (a = !0);- Bl = !0, Tp(o, Gl === 0 ? t : t + "_" + Gl, n), Gl++;- } else (e.tag !== 22 || e.memoizedState === null) && (e.tag === 30 && i || ql(e.child, t, n, r, i) && (a = !0));+ Il = !0, Tp(o, Vl === 0 ? t : t + "_" + Vl, n), Vl++;+ } else (e.tag !== 22 || e.memoizedState === null) && (e.tag === 30 && i || Hl(e.child, t, n, r, i) && (a = !0));e = e.sibling;}return a;}- function Jl(e, t) {- for (; e !== null;) e.tag === 5 ? Ep(e.stateNode, e.memoizedProps) : (e.tag !== 22 || e.memoizedState === null) && (e.tag === 30 && t || Jl(e.child, t)), e = e.sibling;+ function Ul(e, t) {+ for (; e !== null;) e.tag === 5 ? Ep(e.stateNode, e.memoizedProps) : (e.tag !== 22 || e.memoizedState === null) && (e.tag === 30 && t || Ul(e.child, t)), e = e.sibling;}- function Yl(e) {+ function Wl(e) {if (e.subtreeFlags & 18874368) for (e = e.child; e !== null;) {- if ((e.tag !== 22 || e.memoizedState === null) && (Yl(e), e.tag === 30 && e.flags & 18874368 && e.stateNode.paired)) {+ if ((e.tag !== 22 || e.memoizedState === null) && (Wl(e), e.tag === 30 && e.flags & 18874368 && e.stateNode.paired)) {var t = e.memoizedProps;if (t.name == null || t.name === "auto") throw Error(i(544));var n = t.name;- t = bi(t.default, t.share), t !== "none" && (Kl(e, n, t, null, !1) || Jl(e.child, !1));+ t = hi(t.default, t.share), t !== "none" && (J(e, n, t, null, !1) || Ul(e.child, !1));}e = e.sibling;}}- function Xl(e, t) {+ function Gl(e, t) {if (e.tag === 30) {- var n = e.stateNode, r = e.memoizedProps, i = vi(r, n), a = bi(r.default, n.paired ? r.share : r.enter);- a === "none" ? Yl(e) : Kl(e, i, a, null, !1) ? (Yl(e), n.paired || t || Nd(e, r.onEnter)) : Jl(e.child, !1);- } else if (e.subtreeFlags & 33554432) for (e = e.child; e !== null;) Xl(e, t), e = e.sibling;- else Yl(e);- }- function Zl(e) {- if (Vl !== null && Vl.size !== 0) {- var t = Vl;+ var n = e.stateNode, r = e.memoizedProps, i = pi(r, n), a = hi(r.default, n.paired ? r.share : r.enter);+ a === "none" ? Wl(e) : J(e, i, a, null, !1) ? (Wl(e), n.paired || t || jd(e, r.onEnter)) : Ul(e.child, !1);+ } else if (e.subtreeFlags & 33554432) for (e = e.child; e !== null;) Gl(e, t), e = e.sibling;+ else Wl(e);+ }+ function Kl(e) {+ if (Ll !== null && Ll.size !== 0) {+ var t = Ll;if (e.subtreeFlags & 18874368) for (e = e.child; e !== null;) {if (e.tag !== 22 || e.memoizedState === null) {if (e.tag === 30 && e.flags & 18874368) {@@ -5018,59 +10739,59 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrif (r != null && r !== "auto") {var i = t.get(r);if (i !== void 0) {- var a = bi(n.default, n.share);- if (a !== "none" && (Kl(e, r, a, null, !1) ? (a = e.stateNode, i.paired = a, a.paired = i, Nd(e, n.onShare)) : Jl(e.child, !1)), t.delete(r), t.size === 0) break;+ var a = hi(n.default, n.share);+ if (a !== "none" && (J(e, r, a, null, !1) ? (a = e.stateNode, i.paired = a, a.paired = i, jd(e, n.onShare)) : Ul(e.child, !1)), t.delete(r), t.size === 0) break;}}}- Zl(e);+ Kl(e);}e = e.sibling;}}}- function Ql(e) {+ function ql(e) {if (e.tag === 30) {- var t = e.memoizedProps, n = vi(t, e.stateNode), r = Vl === null ? void 0 : Vl.get(n), i = bi(t.default, r === void 0 ? t.exit : t.share);- i !== "none" && (Kl(e, n, i, null, !1) ? r === void 0 ? Nd(e, t.onExit) : (i = e.stateNode, r.paired = i, i.paired = r, Vl.delete(n), Nd(e, t.onShare)) : Jl(e.child, !1)), Vl !== null && Zl(e);- } else if (e.subtreeFlags & 33554432) for (e = e.child; e !== null;) Ql(e), e = e.sibling;- else Vl !== null && Zl(e);+ var t = e.memoizedProps, n = pi(t, e.stateNode), r = Ll === null ? void 0 : Ll.get(n), i = hi(t.default, r === void 0 ? t.exit : t.share);+ i !== "none" && (J(e, n, i, null, !1) ? r === void 0 ? jd(e, t.onExit) : (i = e.stateNode, r.paired = i, i.paired = r, Ll.delete(n), jd(e, t.onShare)) : Ul(e.child, !1)), Ll !== null && Kl(e);+ } else if (e.subtreeFlags & 33554432) for (e = e.child; e !== null;) ql(e), e = e.sibling;+ else Ll !== null && Kl(e);}- function $l(e) {+ function Jl(e) {for (e = e.child; e !== null;) {if (e.tag === 30) {- var t = e.memoizedProps, n = vi(t, e.stateNode);- t = bi(t.default, t.update), e.flags &= -5, t !== "none" && Kl(e, n, t, e.memoizedState = [], !1);- } else e.subtreeFlags & 33554432 && $l(e);+ var t = e.memoizedProps, n = pi(t, e.stateNode);+ t = hi(t.default, t.update), e.flags &= -5, t !== "none" && J(e, n, t, e.memoizedState = [], !1);+ } else e.subtreeFlags & 33554432 && Jl(e);e = e.sibling;}}- function eu(e) {+ function Yl(e) {if (e.subtreeFlags & 18874368) for (e = e.child; e !== null;) {if (e.tag !== 22 || e.memoizedState === null) {if (e.tag === 30 && e.flags & 18874368) {var t = e.stateNode;- t.paired !== null && (t.paired = null, Jl(e.child, !1));+ t.paired !== null && (t.paired = null, Ul(e.child, !1));}- eu(e);+ Yl(e);}e = e.sibling;}}- function tu(e) {- if (e.tag === 30) e.stateNode.paired = null, Jl(e.child, !1), eu(e);- else if (e.subtreeFlags & 33554432) for (e = e.child; e !== null;) tu(e), e = e.sibling;- else eu(e);+ function Xl(e) {+ if (e.tag === 30) e.stateNode.paired = null, Ul(e.child, !1), Yl(e);+ else if (e.subtreeFlags & 33554432) for (e = e.child; e !== null;) Xl(e), e = e.sibling;+ else Yl(e);}- function nu(e) {- for (e = e.child; e !== null;) e.tag === 30 ? Jl(e.child, !1) : e.subtreeFlags & 33554432 && nu(e), e = e.sibling;+ function Zl(e) {+ for (e = e.child; e !== null;) e.tag === 30 ? Ul(e.child, !1) : e.subtreeFlags & 33554432 && Zl(e), e = e.sibling;}- function ru(e, t, n, r, i, a, o) {+ function Ql(e, t, n, r, i, a, o) {for (var s = !1; t !== null;) {if (t.tag === 5) {var c = t.stateNode;- if (a !== null && Gl < a.length) {- var l = a[Gl], u = Op(c);+ if (a !== null && Vl < a.length) {+ var l = a[Vl], u = Op(c);(l.view || u.view) && (s = !0);var d;if (d = !(e.flags & 4)) {@@ -5083,30 +10804,30 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr}d && (e.flags |= 4), u.abs ? u = !l.abs : (l = l.rect, u = u.rect, u = l.height !== u.height || l.width !== u.width), u && (e.flags |= 32);} else e.flags |= 32;- e.flags & 4 && Tp(c, Gl === 0 ? n : n + "_" + Gl, i), s && e.flags & 4 || (Ul === null && (Ul = []), Ul.push(c, Gl === 0 ? r : r + "_" + Gl, t.memoizedProps)), Gl++;- } else (t.tag !== 22 || t.memoizedState === null) && (t.tag === 30 && o ? e.flags |= t.flags & 32 : ru(e, t.child, n, r, i, a, o) && (s = !0));+ e.flags & 4 && Tp(c, Vl === 0 ? n : n + "_" + Vl, i), s && e.flags & 4 || (zl === null && (zl = []), zl.push(c, Vl === 0 ? r : r + "_" + Vl, t.memoizedProps)), Vl++;+ } else (t.tag !== 22 || t.memoizedState === null) && (t.tag === 30 && o ? e.flags |= t.flags & 32 : Ql(e, t.child, n, r, i, a, o) && (s = !0));t = t.sibling;}return s;}- function iu(e, t) {+ function $l(e, t) {for (e = e.child; e !== null;) {if (e.tag === 30) {- var n = e.memoizedProps, r = e.stateNode, i = vi(n, r), a = bi(n.default, n.update);+ var n = e.memoizedProps, r = e.stateNode, i = pi(n, r), a = hi(n.default, n.update);if (t) {r = r.clones;var o = r === null ? null : r.map(kp);} else o = e.memoizedState, e.memoizedState = null;r = e;var s = e.child;- Gl = 0, i = ru(r, s, i, i, a, o, !1), e.flags & 4 && i && (t || Nd(e, n.onUpdate));- } else e.subtreeFlags & 33554432 && iu(e, t);+ Vl = 0, i = Ql(r, s, i, i, a, o, !1), e.flags & 4 && i && (t || jd(e, n.onUpdate));+ } else e.subtreeFlags & 33554432 && $l(e, t);e = e.sibling;}}- var au = !1, W = !1, ou = !1, su = !1, cu = typeof WeakSet == "function" ? WeakSet : Set, lu = null, uu = !1, du = !1, fu = !1, pu = !1;- function mu(e, t, n) {- if (e = e.containerInfo, sp = gh, e = Jr(e), Yr(e)) {+ var eu = !1, tu = !1, nu = !1, ru = !1, iu = typeof WeakSet == "function" ? WeakSet : Set, au = null, ou = !1, su = !1, cu = !1, lu = !1;+ function uu(e, t, n) {+ if (e = e.containerInfo, sp = gh, e = Ur(e), Wr(e)) {if ("selectionStart" in e) var r = {start: e.selectionStart,end: e.selectionEnd@@ -5148,28 +10869,28 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrfor (cp = {focusedElem: e,selectionRange: r- }, gh = !1, n = (n & 335544064) === n, lu = t, t = n ? 9270 : 1024; lu !== null;) {- if (e = lu, n && (r = e.deletions, r !== null)) for (a = 0; a < r.length; a++) n && Ql(r[a]);- if (e.alternate === null && e.flags & 2) n && Hl(e), hu(n);+ }, gh = !1, n = (n & 335544064) === n, au = t, t = n ? 9270 : 1024; au !== null;) {+ if (e = au, n && (r = e.deletions, r !== null)) for (a = 0; a < r.length; a++) n && ql(r[a]);+ if (e.alternate === null && e.flags & 2) n && Rl(e), du(n);else {if (e.tag === 22) {if (r = e.alternate, e.memoizedState !== null) {- r !== null && r.memoizedState === null && n && Ql(r), hu(n);+ r !== null && r.memoizedState === null && n && ql(r), du(n);continue;}if (r !== null && r.memoizedState !== null) {- n && Hl(e), hu(n);+ n && Rl(e), du(n);continue;}}- r = e.child, (e.subtreeFlags & t) !== 0 && r !== null ? (r.return = e, lu = r) : (n && $l(e), hu(n));+ r = e.child, (e.subtreeFlags & t) !== 0 && r !== null ? (r.return = e, au = r) : (n && Jl(e), du(n));}}- Vl = null;+ Ll = null;}- function hu(e) {- for (; lu !== null;) {- var t = lu, n = e, r = t.alternate, a = t.flags;+ function du(e) {+ for (; au !== null;) {+ var t = au, n = e, r = t.alternate, a = t.flags;switch (t.tag) {case 0:case 11:@@ -5179,10 +10900,10 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrn = void 0, a = r.memoizedProps, r = r.memoizedState;var o = t.stateNode;try {- var s = Cc(t.type, a);+ var s = yc(t.type, a);n = o.getSnapshotBeforeUpdate(s, r), o.__reactInternalSnapshotBeforeUpdate = n;} catch (e) {- Z(t, t.return, e);+ ff(t, t.return, e);}}break;@@ -5206,46 +10927,46 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrcase 4:case 17: break;case 30:- n && r !== null && (n = vi(r.memoizedProps, r.stateNode), a = t.memoizedProps, a = bi(a.default, a.update), a !== "none" && Kl(r, n, a, r.memoizedState = [], !0));+ n && r !== null && (n = pi(r.memoizedProps, r.stateNode), a = t.memoizedProps, a = hi(a.default, a.update), a !== "none" && J(r, n, a, r.memoizedState = [], !0));break;default: if (a & 1024) throw Error(i(163));}if (r = t.sibling, r !== null) {- r.return = t.return, lu = r;+ r.return = t.return, au = r;break;}- lu = t.return;+ au = t.return;}}- function gu(e, t, n) {+ function fu(e, t, n) {var r = n.flags;switch (n.tag) {case 0:case 11:case 15:- Fu(e, n), r & 4 && Sl(5, n);+ ju(e, n), r & 4 && bl(5, n);break;case 1:- if (Fu(e, n), r & 4) {+ if (ju(e, n), r & 4) {if (e = n.stateNode, t === null) try {e.componentDidMount();} catch (e) {- Z(n, n.return, e);+ ff(n, n.return, e);}else {- var i = Cc(n.type, t.memoizedProps);+ var i = yc(n.type, t.memoizedProps);t = t.memoizedState;try {e.componentDidUpdate(i, t, e.__reactInternalSnapshotBeforeUpdate);} catch (e) {- Z(n, n.return, e);+ ff(n, n.return, e);}}}- r & 64 && wl(n), r & 512 && El(n, n.return);+ r & 64 && Sl(n), r & 512 && K(n, n.return);break;case 3:- if (Fu(e, n), r & 64 && (e = n.updateQueue, e !== null)) {+ if (ju(e, n), r & 64 && (e = n.updateQueue, e !== null)) {if (t = null, n.child !== null) switch (n.child.tag) {case 27:case 5:@@ -5254,43 +10975,43 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrcase 1: t = n.child.stateNode;}try {- To(e, t);+ xo(e, t);} catch (e) {- Z(n, n.return, e);+ ff(n, n.return, e);}}break;- case 27: t === null && r & 4 && zl(n);+ case 27: t === null && r & 4 && Fl(n);case 26:case 5:- Fu(e, n), t === null && r & 4 && Nl(n), r & 512 && El(n, n.return);+ ju(e, n), t === null && r & 4 && Al(n), r & 512 && K(n, n.return);break;case 12:- Fu(e, n);+ ju(e, n);break;case 31:- Fu(e, n), r & 4 && wu(e, n);+ ju(e, n), r & 4 && bu(e, n);break;case 13:- Fu(e, n), r & 4 && Tu(e, n), r & 64 && (e = n.memoizedState, e !== null && (e = e.dehydrated, e !== null && (n = _f.bind(null, n), cm(e, n))));+ ju(e, n), r & 4 && xu(e, n), r & 64 && (e = n.memoizedState, e !== null && (e = e.dehydrated, e !== null && (n = gf.bind(null, n), cm(e, n))));break;case 22:- if (r = n.memoizedState !== null || au, !r) {- var a = t !== null && t.memoizedState !== null || W;- t = au, i = W, au = r, (W = a) && !i ? (r = 2, n.subtreeFlags & 8772 && (r |= 1), Lu(e, n, r)) : Fu(e, n), au = t, W = i;+ if (r = n.memoizedState !== null || eu, !r) {+ var a = t !== null && t.memoizedState !== null || tu;+ t = eu, i = tu, eu = r, (tu = a) && !i ? (r = 2, n.subtreeFlags & 8772 && (r |= 1), Nu(e, n, r)) : ju(e, n), eu = t, tu = i;}break;case 30:- Fu(e, n), r & 512 && El(n, n.return);+ ju(e, n), r & 512 && K(n, n.return);break;- case 7: r & 512 && El(n, n.return);- default: Fu(e, n);+ case 7: r & 512 && K(n, n.return);+ default: ju(e, n);}}- function _u(e, t) {- for (e = e.child; e !== null;) vu(e, t), e = e.sibling;+ function pu(e, t) {+ for (e = e.child; e !== null;) mu(e, t), e = e.sibling;}- function vu(e, t) {+ function mu(e, t) {switch (e.tag) {case 5:case 26:@@ -5304,15 +11025,15 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescri.style.display = o == null || typeof o == "boolean" ? "" : ("" + o).trim();}} catch (t) {- Z(e, e.return, t);+ ff(e, e.return, t);}- yu(e, t);+ hu(e, t);break;case 6:try {- e.stateNode.nodeValue = t ? "" : e.memoizedProps, F = !0;+ e.stateNode.nodeValue = t ? "" : e.memoizedProps, H = !0;} catch (t) {- Z(e, e.return, t);+ ff(e, e.return, t);}break;case 18:@@ -5320,138 +11041,138 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrvar s = e.stateNode;t ? wp(s, !0) : wp(e.stateNode, !1);} catch (t) {- Z(e, e.return, t);+ ff(e, e.return, t);}break;case 22:case 23:- e.memoizedState === null && _u(e, t);+ e.memoizedState === null && pu(e, t);break;- default: _u(e, t);+ default: pu(e, t);}}- function yu(e, t) {+ function hu(e, t) {if (e.subtreeFlags & 67108864) for (e = e.child; e !== null;) {a: {var n = e, r = t;switch (n.tag) {case 4:- vu(n, r);+ mu(n, r);break a;case 22:- n.memoizedState === null && yu(n, r);+ n.memoizedState === null && hu(n, r);break a;- default: yu(n, r);+ default: hu(n, r);}}e = e.sibling;}}- function bu(e) {+ function gu(e) {var t = e.alternate;- t !== null && (e.alternate = null, bu(t)), e.child = null, e.deletions = null, e.sibling = null, e.tag === 5 && (t = e.stateNode, t !== null && Ft(t)), e.stateNode = null, e.return = null, e.dependencies = null, e.memoizedProps = null, e.memoizedState = null, e.pendingProps = null, e.stateNode = null, e.updateQueue = null;+ t !== null && (e.alternate = null, gu(t)), e.child = null, e.deletions = null, e.sibling = null, e.tag === 5 && (t = e.stateNode, t !== null && Dt(t)), e.stateNode = null, e.return = null, e.dependencies = null, e.memoizedProps = null, e.memoizedState = null, e.pendingProps = null, e.stateNode = null, e.updateQueue = null;}- var G = null, xu = !1;- function Su(e, t, n) {- for (n = n.child; n !== null;) Cu(e, t, n), n = n.sibling;+ var Y = null, _u = !1;+ function vu(e, t, n) {+ for (n = n.child; n !== null;) yu(e, t, n), n = n.sibling;}- function Cu(e, t, n) {- if (tt && typeof tt.onCommitFiberUnmount == "function") try {- tt.onCommitFiberUnmount(et, n);+ function yu(e, t, n) {+ if (Ke && typeof Ke.onCommitFiberUnmount == "function") try {+ Ke.onCommitFiberUnmount(Ge, n);} catch {}switch (n.tag) {case 26:- W || Dl(n, t), Su(e, t, n), n.memoizedState ? n.memoizedState.count-- : n.stateNode && !W && (n = n.stateNode, n.parentNode.removeChild(n));+ tu || wl(n, t), vu(e, t, n), n.memoizedState ? n.memoizedState.count-- : n.stateNode && !tu && (n = n.stateNode, n.parentNode.removeChild(n));break;case 27:- W || Dl(n, t), Al(n);- var r = G, i = xu;- Sp(n.type) && (G = n.stateNode, xu = !1), Su(e, t, n), gm(n.stateNode, n.type, n.memoizedProps), G = r, xu = i;+ tu || wl(n, t), Dl(n);+ var r = Y, i = _u;+ Sp(n.type) && (Y = n.stateNode, _u = !1), vu(e, t, n), gm(n.stateNode, n.type, n.memoizedProps), Y = r, _u = i;break;- case 5: W || Dl(n, t), Al(n);+ case 5: tu || wl(n, t), Dl(n);case 6:- if (n.tag === 6 && Al(n), r = G, i = xu, G = null, Su(e, t, n), G = r, xu = i, G !== null) {- if (xu) try {- (G.nodeType === 9 ? G.body : G.nodeName === "HTML" ? G.ownerDocument.body : G).removeChild(n.stateNode), F = !0;+ if (n.tag === 6 && Dl(n), r = Y, i = _u, Y = null, vu(e, t, n), Y = r, _u = i, Y !== null) {+ if (_u) try {+ (Y.nodeType === 9 ? Y.body : Y.nodeName === "HTML" ? Y.ownerDocument.body : Y).removeChild(n.stateNode), H = !0;} catch (e) {- Z(n, t, e);+ ff(n, t, e);}else try {- G.removeChild(n.stateNode), F = !0;+ Y.removeChild(n.stateNode), H = !0;} catch (e) {- Z(n, t, e);+ ff(n, t, e);}}break;case 18:- G !== null && (xu ? (e = G, Cp(e.nodeType === 9 ? e.body : e.nodeName === "HTML" ? e.ownerDocument.body : e, n.stateNode), Hh(e)) : Cp(G, n.stateNode));+ Y !== null && (_u ? (e = Y, Cp(e.nodeType === 9 ? e.body : e.nodeName === "HTML" ? e.ownerDocument.body : e, n.stateNode), Hh(e)) : Cp(Y, n.stateNode));break;case 4:- r = G, i = xu, G = n.stateNode.containerInfo, xu = !0, Su(e, t, n), G = r, xu = i;+ r = Y, i = _u, Y = n.stateNode.containerInfo, _u = !0, vu(e, t, n), Y = r, _u = i;break;case 0:case 11:case 14:case 15:- Cl(2, n, t), W || Cl(4, n, t), Su(e, t, n);+ xl(2, n, t), tu || xl(4, n, t), vu(e, t, n);break;case 1:- W || (Dl(n, t), r = n.stateNode, typeof r.componentWillUnmount == "function" && Tl(n, t, r)), Su(e, t, n);+ tu || (wl(n, t), r = n.stateNode, typeof r.componentWillUnmount == "function" && Cl(n, t, r)), vu(e, t, n);break;case 21:- Su(e, t, n);+ vu(e, t, n);break;case 22:- W = (r = W) || n.memoizedState !== null, Su(e, t, n), W = r;+ tu = (r = tu) || n.memoizedState !== null, vu(e, t, n), tu = r;break;case 30:- Dl(n, t), Su(e, t, n);+ wl(n, t), vu(e, t, n);break;case 7:- W || Dl(n, t), Su(e, t, n);+ tu || wl(n, t), vu(e, t, n);break;- default: Su(e, t, n);+ default: vu(e, t, n);}}- function wu(e, t) {+ function bu(e, t) {if (t.memoizedState === null && (e = t.alternate, e !== null && (e = e.memoizedState, e !== null))) {e = e.dehydrated;try {Hh(e);} catch (e) {- Z(t, t.return, e);+ ff(t, t.return, e);}}}- function Tu(e, t) {+ function xu(e, t) {if (t.memoizedState === null && (e = t.alternate, e !== null && (e = e.memoizedState, e !== null && (e = e.dehydrated, e !== null)))) try {Hh(e);} catch (e) {- Z(t, t.return, e);+ ff(t, t.return, e);}}- function Eu(e) {+ function Su(e) {switch (e.tag) {case 31:case 13:case 19:var t = e.stateNode;- return t === null && (t = e.stateNode = new cu()), t;- case 22: return e = e.stateNode, t = e._retryCache, t === null && (t = e._retryCache = new cu()), t;+ return t === null && (t = e.stateNode = new iu()), t;+ case 22: return e = e.stateNode, t = e._retryCache, t === null && (t = e._retryCache = new iu()), t;default: throw Error(i(435, e.tag));}}- function Du(e, t) {- var n = Eu(e);+ function Cu(e, t) {+ var n = Su(e);t.forEach(function(t) {if (!n.has(t)) {n.add(t);- var r = vf.bind(null, e, t);+ var r = _f.bind(null, e, t);t.then(r, r);}});}- function Ou(e, t, n) {+ function wu(e, t, n) {var r = t.deletions;if (r !== null) for (var a = 0; a < r.length; a++) {var o = r[a], s = e, c = t, l = c;@@ -5459,27 +11180,27 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrswitch (l.tag) {case 27:if (Sp(l.type)) {- G = l.stateNode, xu = !1;+ Y = l.stateNode, _u = !1;break a;}break;case 5:- G = l.stateNode, xu = !1;+ Y = l.stateNode, _u = !1;break a;case 3:case 4:- G = l.stateNode.containerInfo, xu = !0;+ Y = l.stateNode.containerInfo, _u = !0;break a;}l = l.return;}- if (G === null) throw Error(i(160));- Cu(s, c, o), G = null, xu = !1, s = o.alternate, s !== null && (s.return = null), o.return = null;+ if (Y === null) throw Error(i(160));+ yu(s, c, o), Y = null, _u = !1, s = o.alternate, s !== null && (s.return = null), o.return = null;}- if (t.subtreeFlags & 13886) for (t = t.child; t !== null;) Au(t, e, n), t = t.sibling;+ if (t.subtreeFlags & 13886) for (t = t.child; t !== null;) Eu(t, e, n), t = t.sibling;}- var ku = null;- function Au(e, t, n) {+ var Tu = null;+ function Eu(e, t, n) {var r = e.alternate, a = e.flags;switch (e.tag) {case 0:@@ -5490,23 +11211,23 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrvar s = r[o];s.ref.impl = s.nextImpl;}- Ou(t, e, n), ju(e), a & 4 && (Cl(3, e, e.return), Sl(3, e), Cl(5, e, e.return));+ wu(t, e, n), Du(e), a & 4 && (xl(3, e, e.return), bl(3, e), xl(5, e, e.return));break;case 1:- Ou(t, e, n), ju(e), a & 512 && (W || r === null || Dl(r, r.return)), a & 64 && au && (e = e.updateQueue, e !== null && (t = e.callbacks, t !== null && (n = e.shared.hiddenCallbacks, e.shared.hiddenCallbacks = n === null ? t : n.concat(t))));+ wu(t, e, n), Du(e), a & 512 && (tu || r === null || wl(r, r.return)), a & 64 && eu && (e = e.updateQueue, e !== null && (t = e.callbacks, t !== null && (n = e.shared.hiddenCallbacks, e.shared.hiddenCallbacks = n === null ? t : n.concat(t))));break;case 26:- if (o = ku, Ou(t, e, n), ju(e), a & 512 && (W || r === null || Dl(r, r.return)), a & 4) {+ if (o = Tu, wu(t, e, n), Du(e), a & 512 && (tu || r === null || wl(r, r.return)), a & 4) {if (a = r === null ? null : r.memoizedState, n = e.memoizedState, r === null) {if (n === null) {if (e.stateNode === null) {- if (au) e.stateNode = fp(e.type, e.memoizedProps, t.containerInfo, e);+ if (eu) e.stateNode = fp(e.type, e.memoizedProps, t.containerInfo, e);else {a: {t = e.type, n = e.memoizedProps, a = o.ownerDocument || o;b: switch (t) {case "title":- r = a.getElementsByTagName("title")[0], (!r || r[Nt] || r[Et] || r.namespaceURI === "http://www.w3.org/2000/svg" || r.hasAttribute("itemprop")) && (r = a.createElement(t), a.head.insertBefore(r, a.querySelector("head > title"))), np(r, t, n), r[Et] = e, Bt(r), t = r;+ r = a.getElementsByTagName("title")[0], (!r || r[Tt] || r[vt] || r.namespaceURI === "http://www.w3.org/2000/svg" || r.hasAttribute("itemprop")) && (r = a.createElement(t), a.head.insertBefore(r, a.querySelector("head > title"))), np(r, t, n), r[vt] = e, Mt(r), t = r;break a;case "link":if (o = Gm("link", "href", a).get(t + (n.href || ""))) {@@ -5528,82 +11249,82 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrbreak;default: throw Error(i(468, t));}- r[Et] = e, Bt(r), t = r;+ r[vt] = e, Mt(r), t = r;}e.stateNode = t;}- } else au || Km(o, e.type, e.stateNode);+ } else eu || Km(o, e.type, e.stateNode);} else e.stateNode = Bm(o, n, e.memoizedProps);- } else a === n ? n === null && e.stateNode !== null && Pl(e, e.memoizedProps, r.memoizedProps) : (a === null ? (t = r.stateNode, t === null || W || t.parentNode.removeChild(t)) : a.count--, n === null ? au || Km(o, e.type, e.stateNode) : Bm(o, n, e.memoizedProps));+ } else a === n ? n === null && e.stateNode !== null && jl(e, e.memoizedProps, r.memoizedProps) : (a === null ? (t = r.stateNode, t === null || tu || t.parentNode.removeChild(t)) : a.count--, n === null ? eu || Km(o, e.type, e.stateNode) : Bm(o, n, e.memoizedProps));}break;case 27:- Ou(t, e, n), ju(e), a & 512 && (W || r === null || Dl(r, r.return)), r !== null && a & 4 && Pl(e, e.memoizedProps, r.memoizedProps);+ wu(t, e, n), Du(e), a & 512 && (tu || r === null || wl(r, r.return)), r !== null && a & 4 && jl(e, e.memoizedProps, r.memoizedProps);break;case 5:- if (o = ou, ou = !1, Ou(t, e, n), ou = o, ju(e), a & 512 && (W || r === null || Dl(r, r.return)), e.flags & 32) {+ if (o = nu, nu = !1, wu(t, e, n), nu = o, Du(e), a & 512 && (tu || r === null || wl(r, r.return)), e.flags & 32) {t = e.stateNode;try {- pn(t, ""), F = !0;+ an(t, ""), H = !0;} catch (t) {- Z(e, e.return, t);+ ff(e, e.return, t);}}- a & 4 && e.stateNode != null && (t = e.memoizedProps, Pl(e, t, r === null ? t : r.memoizedProps)), a & 1024 && (su = !0);+ a & 4 && e.stateNode != null && (t = e.memoizedProps, jl(e, t, r === null ? t : r.memoizedProps)), a & 1024 && (ru = !0);break;case 6:- if (Ou(t, e, n), ju(e), a & 4) {+ if (wu(t, e, n), Du(e), a & 4) {if (e.stateNode === null) throw Error(i(162));t = e.memoizedProps, n = e.stateNode;try {- n.nodeValue = t, F = !0;+ n.nodeValue = t, H = !0;} catch (t) {- Z(e, e.return, t);+ ff(e, e.return, t);}}break;case 3:- if (F = !1, Wm = null, o = ku, ku = bm(t.containerInfo), Ou(t, e, n), ku = o, ju(e), a & 4 && r !== null && r.memoizedState.isDehydrated) try {+ if (H = !1, Wm = null, o = Tu, Tu = bm(t.containerInfo), wu(t, e, n), Tu = o, Du(e), a & 4 && r !== null && r.memoizedState.isDehydrated) try {Hh(t.containerInfo);} catch (t) {- Z(e, e.return, t);+ ff(e, e.return, t);}- su && (su = !1, Mu(e)), F = !1;+ ru && (ru = !1, Ou(e)), H = !1;break;case 4:- a = ou, ou = au, r = Xt(), o = ku, ku = bm(e.stateNode.containerInfo), Ou(t, e, n), ju(e), ku = o, F && du && (fu = !0), F = r, ou = a;+ a = nu, nu = eu, r = Vt(), o = Tu, Tu = bm(e.stateNode.containerInfo), wu(t, e, n), Du(e), Tu = o, H && su && (cu = !0), H = r, nu = a;break;case 12:- Ou(t, e, n), ju(e);+ wu(t, e, n), Du(e);break;case 31:- Ou(t, e, n), ju(e), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, Du(e, t)));+ wu(t, e, n), Du(e), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, Cu(e, t)));break;case 13:- Ou(t, e, n), ju(e), e.child.flags & 8192 && e.memoizedState !== null != (r !== null && r.memoizedState !== null) && (md = Ke()), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, Du(e, t)));+ wu(t, e, n), Du(e), e.child.flags & 8192 && e.memoizedState !== null != (r !== null && r.memoizedState !== null) && (fd = Ie()), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, Cu(e, t)));break;case 22:o = e.memoizedState !== null, s = r !== null && r.memoizedState !== null;- var c = au, l = W, u = ou;- au = c || o, ou = u || o, W = l || s, Ou(t, e, n), W = l, ou = u, au = c, ju(e), a & 8192 && (t = e.stateNode, t._visibility = o ? t._visibility & -2 : t._visibility | 1, !o || r === null || s || au || W || (t = s || W, n = au, r = W, au = o || au, W = t, Iu(e, 2), au = n, W = r), !o && ou || _u(e, o)), a & 4 && (t = e.updateQueue, t !== null && (n = t.retryQueue, n !== null && (t.retryQueue = null, Du(e, n))));+ var c = eu, l = tu, u = nu;+ eu = c || o, nu = u || o, tu = l || s, wu(t, e, n), tu = l, nu = u, eu = c, Du(e), a & 8192 && (t = e.stateNode, t._visibility = o ? t._visibility & -2 : t._visibility | 1, !o || r === null || s || eu || tu || (t = s || tu, n = eu, r = tu, eu = o || eu, tu = t, Mu(e, 2), eu = n, tu = r), !o && nu || pu(e, o)), a & 4 && (t = e.updateQueue, t !== null && (n = t.retryQueue, n !== null && (t.retryQueue = null, Cu(e, n))));break;case 19:- Ou(t, e, n), ju(e), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, Du(e, t)));+ wu(t, e, n), Du(e), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, Cu(e, t)));break;case 30:- a & 512 && (W || r === null || Dl(r, r.return)), a = Xt(), o = du, s = (n & 335544064) === n, c = e.memoizedProps, du = s && bi(c.default, c.update) !== "none", Ou(t, e, n), ju(e), s && r !== null && F && (e.flags |= 4), du = o, F = a;+ a & 512 && (tu || r === null || wl(r, r.return)), a = Vt(), o = su, s = (n & 335544064) === n, c = e.memoizedProps, su = s && hi(c.default, c.update) !== "none", wu(t, e, n), Du(e), s && r !== null && H && (e.flags |= 4), su = o, H = a;break;case 21: break;- case 7: a & 512 && (W || r === null || Dl(r, r.return)), r && r.stateNode !== null && (r.stateNode._fragmentFiber = e);- default: Ou(t, e, n), ju(e);+ case 7: a & 512 && (tu || r === null || wl(r, r.return)), r && r.stateNode !== null && (r.stateNode._fragmentFiber = e);+ default: wu(t, e, n), Du(e);}}- function ju(e) {+ function Du(e) {var t = e.flags;if (t & 2) {try {for (var n, r = e.return; r !== null;) {- if (Fl(r)) {+ if (Ml(r)) {n = r;break;}@@ -5611,11 +11332,11 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr}r = null;for (var a = e.return; a !== null;) {- if (Ml(a)) {+ if (kl(a)) {var o = a.stateNode;r === null ? r = [o] : r.push(o);}- if (jl(a)) break;+ if (Ol(a)) break;a = a.return;}var s = r;@@ -5623,43 +11344,43 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrswitch (n.tag) {case 27:var c = n.stateNode;- Rl(e, Il(e), c, s);+ q(e, Nl(e), c, s);break;case 5:var l = n.stateNode;- n.flags & 32 && (pn(l, ""), n.flags &= -33), Rl(e, Il(e), l, s);+ n.flags & 32 && (an(l, ""), n.flags &= -33), q(e, Nl(e), l, s);break;case 3:case 4:var u = n.stateNode.containerInfo;- Ll(e, Il(e), u, s);+ Pl(e, Nl(e), u, s);break;default: throw Error(i(161));}} catch (t) {- Z(e, e.return, t);+ ff(e, e.return, t);}e.flags &= -3;}t & 4096 && (e.flags &= -4097);}- function Mu(e) {+ function Ou(e) {if (e.subtreeFlags & 1024) for (e = e.child; e !== null;) {var t = e;- Mu(t), t.tag === 5 && t.flags & 1024 && (t = t.stateNode, gh = !0, t.reset(), gh = !1), e = e.sibling;+ Ou(t), t.tag === 5 && t.flags & 1024 && (t = t.stateNode, gh = !0, t.reset(), gh = !1), e = e.sibling;}}- function Nu(e, t) {- if (t.subtreeFlags & 9270) for (t = t.child; t !== null;) Pu(t, e), t = t.sibling;- else iu(t, !1);+ function ku(e, t) {+ if (t.subtreeFlags & 9270) for (t = t.child; t !== null;) Au(t, e), t = t.sibling;+ else $l(t, !1);}- function Pu(e, t) {+ function Au(e, t) {var n = e.alternate;- if (n === null) Xl(e, !1);+ if (n === null) Gl(e, !1);else switch (e.tag) {case 3:- if (pu = uu = !1, Wl(), Nu(t, e), !uu && !fu) {- if (e = Ul, e !== null) for (var r = 0; r < e.length; r += 3) {+ if (lu = ou = !1, Bl(), ku(t, e), !ou && !cu) {+ if (e = zl, e !== null) for (var r = 0; r < e.length; r += 3) {n = e[r];var i = e[r + 1];Ep(n, e[r + 2]), n = n.ownerDocument.documentElement, n !== null && n.animate({@@ -5685,33 +11406,33 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrduration: 0,fill: "forwards",pseudoElement: "::view-transition"- })), pu = !0;+ })), lu = !0;}- Ul = null;+ zl = null;break;case 5:- Nu(t, e);+ ku(t, e);break;case 4:- r = uu, uu = !1, Nu(t, e), uu && (fu = !0), uu = r;+ r = ou, ou = !1, ku(t, e), ou && (cu = !0), ou = r;break;case 22:- e.memoizedState === null && (n.memoizedState === null ? Nu(t, e) : Xl(e, !1));+ e.memoizedState === null && (n.memoizedState === null ? ku(t, e) : Gl(e, !1));break;case 30:- r = uu, i = Wl(), uu = !1, Nu(t, e), uu && (e.flags |= 4);+ r = ou, i = Bl(), ou = !1, ku(t, e), ou && (e.flags |= 4);var a = e.memoizedProps, o = e.stateNode;- t = vi(a, o), o = vi(n.memoizedProps, o);- var s = bi(a.default, a.update);- s === "none" ? t = !1 : (a = n.memoizedState, n.memoizedState = null, n = e.child, Gl = 0, t = ru(e, n, t, o, s, a, !0), Gl !== (a === null ? 0 : a.length) && (e.flags |= 32)), e.flags & 4 && t ? (Nd(e, e.memoizedProps.onUpdate), Ul = i) : i !== null && (i.push.apply(i, Ul), Ul = i), uu = e.flags & 32 ? !0 : r;+ t = pi(a, o), o = pi(n.memoizedProps, o);+ var s = hi(a.default, a.update);+ s === "none" ? t = !1 : (a = n.memoizedState, n.memoizedState = null, n = e.child, Vl = 0, t = Ql(e, n, t, o, s, a, !0), Vl !== (a === null ? 0 : a.length) && (e.flags |= 32)), e.flags & 4 && t ? (jd(e, e.memoizedProps.onUpdate), zl = i) : i !== null && (i.push.apply(i, zl), zl = i), ou = e.flags & 32 ? !0 : r;break;- default: Nu(t, e);+ default: ku(t, e);}}- function Fu(e, t) {- if (t.subtreeFlags & 8772) for (t = t.child; t !== null;) gu(e, t.alternate, t), t = t.sibling;+ function ju(e, t) {+ if (t.subtreeFlags & 8772) for (t = t.child; t !== null;) fu(e, t.alternate, t), t = t.sibling;}- function Iu(e, t) {+ function Mu(e, t) {for (e = e.child; e !== null;) {var n = e, r = t;switch (n.tag) {@@ -5719,218 +11440,218 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrcase 11:case 14:case 15:- Cl(4, n, n.return), Iu(n, r);+ xl(4, n, n.return), Mu(n, r);break;case 1:- Dl(n, n.return);+ wl(n, n.return);var i = n.stateNode;- typeof i.componentWillUnmount == "function" && Tl(n, n.return, i), Iu(n, r);+ typeof i.componentWillUnmount == "function" && Cl(n, n.return, i), Mu(n, r);break;case 27: r & 2 && gm(n.stateNode, n.type, n.memoizedProps);case 5:- Dl(n, n.return), n.tag !== 5 && n.tag !== 27 || Al(n), Iu(n, r);+ wl(n, n.return), n.tag !== 5 && n.tag !== 27 || Dl(n), Mu(n, r);break;case 6:- Al(n);+ Dl(n);break;case 26:- Dl(n, n.return), i = n.stateNode, n.memoizedState !== null || i === null || W || i.parentNode.removeChild(i), Iu(n, r);+ wl(n, n.return), i = n.stateNode, n.memoizedState !== null || i === null || tu || i.parentNode.removeChild(i), Mu(n, r);break;case 22:- n.memoizedState === null && Iu(n, r);+ n.memoizedState === null && Mu(n, r);break;case 30:- Dl(n, n.return), Iu(n, r);+ wl(n, n.return), Mu(n, r);break;- case 7: Dl(n, n.return);- default: Iu(n, r);+ case 7: wl(n, n.return);+ default: Mu(n, r);}e = e.sibling;}}- function Lu(e, t, n) {+ function Nu(e, t, n) {for (n = t.subtreeFlags & 8772 ? n : n & -2, t = t.child; t !== null;) {var r = t.alternate, i = e, a = t, o = a.flags, s = !!(n & 1);switch (a.tag) {case 0:case 11:case 15:- Lu(i, a, n), Sl(4, a);+ Nu(i, a, n), bl(4, a);break;case 1:- if (Lu(i, a, n), r = a, i = r.stateNode, typeof i.componentDidMount == "function") try {+ if (Nu(i, a, n), r = a, i = r.stateNode, typeof i.componentDidMount == "function") try {i.componentDidMount();} catch (e) {- Z(r, r.return, e);+ ff(r, r.return, e);}if (r = a, i = r.updateQueue, i !== null) {var c = r.stateNode;try {var l = i.shared.hiddenCallbacks;- if (l !== null) for (i.shared.hiddenCallbacks = null, i = 0; i < l.length; i++) wo(l[i], c);+ if (l !== null) for (i.shared.hiddenCallbacks = null, i = 0; i < l.length; i++) bo(l[i], c);} catch (e) {- Z(r, r.return, e);+ ff(r, r.return, e);}}- s && o & 64 && wl(a), El(a, a.return);+ s && o & 64 && Sl(a), K(a, a.return);break;- case 27: n & 2 && zl(a);+ case 27: n & 2 && Fl(a);case 5:- a.tag !== 5 && a.tag !== 27 || kl(a), Lu(i, a, n), s && r === null && o & 4 && Nl(a), El(a, a.return);+ a.tag !== 5 && a.tag !== 27 || El(a), Nu(i, a, n), s && r === null && o & 4 && Al(a), K(a, a.return);break;case 6:- kl(a);+ El(a);break;case 26:- c = a.stateNode, a.memoizedState !== null || c === null || au || Km(bm(c.ownerDocument), a.type, c), Lu(i, a, n), s && r === null && o & 4 && Nl(a), El(a, a.return);+ c = a.stateNode, a.memoizedState !== null || c === null || eu || Km(bm(c.ownerDocument), a.type, c), Nu(i, a, n), s && r === null && o & 4 && Al(a), K(a, a.return);break;case 12:- Lu(i, a, n);+ Nu(i, a, n);break;case 31:- Lu(i, a, n), s && o & 4 && wu(i, a);+ Nu(i, a, n), s && o & 4 && bu(i, a);break;case 13:- Lu(i, a, n), s && o & 4 && Tu(i, a);+ Nu(i, a, n), s && o & 4 && xu(i, a);break;case 22:- a.memoizedState === null && Lu(i, a, n), El(a, a.return);+ a.memoizedState === null && Nu(i, a, n), K(a, a.return);break;case 30:- Lu(i, a, n), El(a, a.return);+ Nu(i, a, n), K(a, a.return);break;- case 7: El(a, a.return);- default: Lu(i, a, n);+ case 7: K(a, a.return);+ default: Nu(i, a, n);}t = t.sibling;}}- function Ru(e, t) {+ function Pu(e, t) {var n = null;- e !== null && e.memoizedState !== null && e.memoizedState.cachePool !== null && (n = e.memoizedState.cachePool.pool), e = null, t.memoizedState !== null && t.memoizedState.cachePool !== null && (e = t.memoizedState.cachePool.pool), e !== n && (e != null && e.refCount++, n != null && Na(n));+ e !== null && e.memoizedState !== null && e.memoizedState.cachePool !== null && (n = e.memoizedState.cachePool.pool), e = null, t.memoizedState !== null && t.memoizedState.cachePool !== null && (e = t.memoizedState.cachePool.pool), e !== n && (e != null && e.refCount++, n != null && ka(n));}- function zu(e, t) {- e = null, t.alternate !== null && (e = t.alternate.memoizedState.cache), t = t.memoizedState.cache, t !== e && (t.refCount++, e != null && Na(e));+ function Fu(e, t) {+ e = null, t.alternate !== null && (e = t.alternate.memoizedState.cache), t = t.memoizedState.cache, t !== e && (t.refCount++, e != null && ka(e));}- function Bu(e, t, n, r) {+ function Iu(e, t, n, r) {var i = (n & 335544064) === n;- if (t.subtreeFlags & (i ? 10262 : 10256)) for (t = t.child; t !== null;) Vu(e, t, n, r), t = t.sibling;- else i && nu(t);+ if (t.subtreeFlags & (i ? 10262 : 10256)) for (t = t.child; t !== null;) Lu(e, t, n, r), t = t.sibling;+ else i && Zl(t);}- function Vu(e, t, n, r) {+ function Lu(e, t, n, r) {var i = (n & 335544064) === n;- i && t.alternate === null && t.return !== null && t.return.alternate !== null && tu(t);+ i && t.alternate === null && t.return !== null && t.return.alternate !== null && Xl(t);var a = t.flags;switch (t.tag) {case 0:case 11:case 15:- Bu(e, t, n, r), a & 2048 && Sl(9, t);+ Iu(e, t, n, r), a & 2048 && bl(9, t);break;case 1:- Bu(e, t, n, r);+ Iu(e, t, n, r);break;case 3:- Bu(e, t, n, r), i && pu && (e = e.containerInfo, e = e.nodeType === 9 ? e.body : e.nodeName === "HTML" ? e.ownerDocument.body : e, e.style.viewTransitionName === "root" && (e.style.viewTransitionName = ""), e = e.ownerDocument.documentElement, e !== null && e.style.viewTransitionName === "none" && (e.style.viewTransitionName = "")), a & 2048 && (a = null, t.alternate !== null && (a = t.alternate.memoizedState.cache), t = t.memoizedState.cache, t !== a && (t.refCount++, a != null && Na(a)));+ Iu(e, t, n, r), i && lu && (e = e.containerInfo, e = e.nodeType === 9 ? e.body : e.nodeName === "HTML" ? e.ownerDocument.body : e, e.style.viewTransitionName === "root" && (e.style.viewTransitionName = ""), e = e.ownerDocument.documentElement, e !== null && e.style.viewTransitionName === "none" && (e.style.viewTransitionName = "")), a & 2048 && (a = null, t.alternate !== null && (a = t.alternate.memoizedState.cache), t = t.memoizedState.cache, t !== a && (t.refCount++, a != null && ka(a)));break;case 12:if (a & 2048) {- Bu(e, t, n, r), a = t.stateNode;+ Iu(e, t, n, r), a = t.stateNode;try {var o = t.memoizedProps, s = o.id, c = o.onPostCommit;typeof c == "function" && c(s, t.alternate === null ? "mount" : "update", a.passiveEffectDuration, -0);} catch (e) {- Z(t, t.return, e);+ ff(t, t.return, e);}- } else Bu(e, t, n, r);+ } else Iu(e, t, n, r);break;case 31:- Bu(e, t, n, r);+ Iu(e, t, n, r);break;case 13:- Bu(e, t, n, r);+ Iu(e, t, n, r);break;case 23: break;case 22:- o = t.stateNode, s = t.alternate, t.memoizedState === null ? (i && s !== null && s.memoizedState !== null && tu(t), o._visibility & 2 ? Bu(e, t, n, r) : (o._visibility |= 2, Hu(e, t, n, r, !!(t.subtreeFlags & 10256) || !1))) : (i && s !== null && s.memoizedState === null && tu(s), o._visibility & 2 ? Bu(e, t, n, r) : Uu(e, t)), a & 2048 && Ru(s, t);+ o = t.stateNode, s = t.alternate, t.memoizedState === null ? (i && s !== null && s.memoizedState !== null && Xl(t), o._visibility & 2 ? Iu(e, t, n, r) : (o._visibility |= 2, Ru(e, t, n, r, !!(t.subtreeFlags & 10256) || !1))) : (i && s !== null && s.memoizedState === null && Xl(s), o._visibility & 2 ? Iu(e, t, n, r) : zu(e, t)), a & 2048 && Pu(s, t);break;case 24:- Bu(e, t, n, r), a & 2048 && zu(t.alternate, t);+ Iu(e, t, n, r), a & 2048 && Fu(t.alternate, t);break;case 30:- i && (a = t.alternate, a !== null && (Jl(a.child, !0), Jl(t.child, !0))), Bu(e, t, n, r);+ i && (a = t.alternate, a !== null && (Ul(a.child, !0), Ul(t.child, !0))), Iu(e, t, n, r);break;- default: Bu(e, t, n, r);+ default: Iu(e, t, n, r);}}- function Hu(e, t, n, r, i) {+ function Ru(e, t, n, r, i) {for (i &&= !!(t.subtreeFlags & 10256) || !1, t = t.child; t !== null;) {var a = e, o = t, s = n, c = r, l = o.flags;switch (o.tag) {case 0:case 11:case 15:- Hu(a, o, s, c, i), Sl(8, o);+ Ru(a, o, s, c, i), bl(8, o);break;case 23: break;case 22:var u = o.stateNode;- o.memoizedState === null ? (u._visibility |= 2, Hu(a, o, s, c, i)) : u._visibility & 2 ? Hu(a, o, s, c, i) : Uu(a, o), i && l & 2048 && Ru(o.alternate, o);+ o.memoizedState === null ? (u._visibility |= 2, Ru(a, o, s, c, i)) : u._visibility & 2 ? Ru(a, o, s, c, i) : zu(a, o), i && l & 2048 && Pu(o.alternate, o);break;case 24:- Hu(a, o, s, c, i), i && l & 2048 && zu(o.alternate, o);+ Ru(a, o, s, c, i), i && l & 2048 && Fu(o.alternate, o);break;- default: Hu(a, o, s, c, i);+ default: Ru(a, o, s, c, i);}t = t.sibling;}}- function Uu(e, t) {+ function zu(e, t) {if (t.subtreeFlags & 10256) for (t = t.child; t !== null;) {var n = e, r = t, i = r.flags;switch (r.tag) {case 22:- Uu(n, r), i & 2048 && Ru(r.alternate, r);+ zu(n, r), i & 2048 && Pu(r.alternate, r);break;case 24:- Uu(n, r), i & 2048 && zu(r.alternate, r);+ zu(n, r), i & 2048 && Fu(r.alternate, r);break;- default: Uu(n, r);+ default: zu(n, r);}t = t.sibling;}}- var Wu = 8192;- function Gu(e, t, n) {- if (e.subtreeFlags & Wu) for (e = e.child; e !== null;) Ku(e, t, n), e = e.sibling;+ var Bu = 8192;+ function Vu(e, t, n) {+ if (e.subtreeFlags & Bu) for (e = e.child; e !== null;) Hu(e, t, n), e = e.sibling;}- function Ku(e, t, n) {+ function Hu(e, t, n) {switch (e.tag) {case 26:- Gu(e, t, n), e.flags & Wu && (e.memoizedState === null ? (e = e.stateNode, (t & 335544128) === t && Zm(n, e)) : Qm(n, ku, e.memoizedState, e.memoizedProps));+ Vu(e, t, n), e.flags & Bu && (e.memoizedState === null ? (e = e.stateNode, (t & 335544128) === t && Zm(n, e)) : Qm(n, Tu, e.memoizedState, e.memoizedProps));break;case 5:- Gu(e, t, n), e.flags & Wu && (e = e.stateNode, (t & 335544128) === t && Zm(n, e));+ Vu(e, t, n), e.flags & Bu && (e = e.stateNode, (t & 335544128) === t && Zm(n, e));break;case 3:case 4:- var r = ku;- ku = bm(e.stateNode.containerInfo), Gu(e, t, n), ku = r;+ var r = Tu;+ Tu = bm(e.stateNode.containerInfo), Vu(e, t, n), Tu = r;break;case 22:- e.memoizedState === null && (r = e.alternate, r !== null && r.memoizedState !== null ? (r = Wu, Wu = 16777216, Gu(e, t, n), Wu = r) : Gu(e, t, n));+ e.memoizedState === null && (r = e.alternate, r !== null && r.memoizedState !== null ? (r = Bu, Bu = 16777216, Vu(e, t, n), Bu = r) : Vu(e, t, n));break;case 30:- if ((e.flags & Wu) !== 0 && (r = e.memoizedProps.name, r != null && r !== "auto")) {+ if ((e.flags & Bu) !== 0 && (r = e.memoizedProps.name, r != null && r !== "auto")) {var i = e.stateNode;- i.paired = null, Vl === null && (Vl = /* @__PURE__ */ new Map()), Vl.set(r, i);+ i.paired = null, Ll === null && (Ll = /* @__PURE__ */ new Map()), Ll.set(r, i);}- Gu(e, t, n);+ Vu(e, t, n);break;- default: Gu(e, t, n);+ default: Vu(e, t, n);}}- function qu(e) {+ function Uu(e) {var t = e.alternate;if (t !== null && (e = t.child, e !== null)) {t.child = null;@@ -5939,69 +11660,69 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrwhile (e !== null);}}- function Ju(e) {+ function Wu(e) {var t = e.deletions;if (e.flags & 16) {if (t !== null) for (var n = 0; n < t.length; n++) {var r = t[n];- lu = r, Zu(r, e);+ au = r, qu(r, e);}- qu(e);+ Uu(e);}- if (e.subtreeFlags & 10256) for (e = e.child; e !== null;) Yu(e), e = e.sibling;+ if (e.subtreeFlags & 10256) for (e = e.child; e !== null;) Gu(e), e = e.sibling;}- function Yu(e) {+ function Gu(e) {switch (e.tag) {case 0:case 11:case 15:- Ju(e), e.flags & 2048 && Cl(9, e, e.return);+ Wu(e), e.flags & 2048 && xl(9, e, e.return);break;case 3:- Ju(e);+ Wu(e);break;case 12:- Ju(e);+ Wu(e);break;case 22:var t = e.stateNode;- e.memoizedState !== null && t._visibility & 2 && (e.return === null || e.return.tag !== 13) ? (t._visibility &= -3, Xu(e)) : Ju(e);+ e.memoizedState !== null && t._visibility & 2 && (e.return === null || e.return.tag !== 13) ? (t._visibility &= -3, Ku(e)) : Wu(e);break;- default: Ju(e);+ default: Wu(e);}}- function Xu(e) {+ function Ku(e) {var t = e.deletions;if (e.flags & 16) {if (t !== null) for (var n = 0; n < t.length; n++) {var r = t[n];- lu = r, Zu(r, e);+ au = r, qu(r, e);}- qu(e);+ Uu(e);}for (e = e.child; e !== null;) {switch (t = e, t.tag) {case 0:case 11:case 15:- Cl(8, t, t.return), Xu(t);+ xl(8, t, t.return), Ku(t);break;case 22:- n = t.stateNode, n._visibility & 2 && (n._visibility &= -3, Xu(t));+ n = t.stateNode, n._visibility & 2 && (n._visibility &= -3, Ku(t));break;- default: Xu(t);+ default: Ku(t);}e = e.sibling;}}- function Zu(e, t) {- for (; lu !== null;) {- var n = lu;+ function qu(e, t) {+ for (; au !== null;) {+ var n = au;switch (n.tag) {case 0:case 11:case 15:- Cl(8, n, t);+ xl(8, n, t);break;case 23:case 22:@@ -6010,64 +11731,64 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrr != null && r.refCount++;}break;- case 24: Na(n.memoizedState.cache);+ case 24: ka(n.memoizedState.cache);}- if (r = n.child, r !== null) r.return = n, lu = r;- else a: for (n = e; lu !== null;) {- r = lu;+ if (r = n.child, r !== null) r.return = n, au = r;+ else a: for (n = e; au !== null;) {+ r = au;var i = r.sibling, a = r.return;- if (bu(r), r === n) {- lu = null;+ if (gu(r), r === n) {+ au = null;break a;}if (i !== null) {- i.return = a, lu = i;+ i.return = a, au = i;break a;}- lu = a;+ au = a;}}}- var Qu = {+ var Ju = {getCacheForType: function(e) {- var t = Ta(ja), n = t.data.get(e);+ var t = xa(Da), n = t.data.get(e);return n === void 0 && (n = e(), t.data.set(e, n)), n;},cacheSignal: function() {- return Ta(ja).controller.signal;+ return xa(Da).controller.signal;}- }, $u = typeof WeakMap == "function" ? WeakMap : Map, K = 0, q = null, J = null, Y = 0, X = 0, ed = null, td = !1, nd = !1, rd = !1, id = 0, ad = 0, od = 0, sd = 0, cd = 0, ld = 0, ud = 0, dd = null, fd = null, pd = !1, md = 0, hd = 0, gd = Infinity, _d = null, vd = null, yd = 0, bd = null, xd = null, Sd = 0, Cd = 0, wd = null, Td = null, Ed = null, Dd = null, Od = null, kd = 0, Ad = null;- function jd() {- return K & 2 && Y !== 0 ? Y & -Y : D.T === null ? wt() : Pf();+ }, Yu = typeof WeakMap == "function" ? WeakMap : Map, X = 0, Xu = null, Z = null, Q = 0, Zu = 0, Qu = null, $u = !1, ed = !1, td = !1, nd = 0, rd = 0, id = 0, ad = 0, od = 0, sd = 0, cd = 0, ld = null, ud = null, dd = !1, fd = 0, pd = 0, md = Infinity, hd = null, gd = null, _d = 0, vd = null, yd = null, bd = 0, xd = 0, Sd = null, Cd = null, wd = null, Td = null, Ed = null, Dd = 0, Od = null;+ function kd() {+ return X & 2 && Q !== 0 ? Q & -Q : R.T === null ? ht() : Nf();}- function Md() {- if (ld === 0) {- if (!(Y & 536870912) || B) {- var e = ct;- ct <<= 1, !(ct & 3932160) && (ct = 262144), ld = e;- } else ld = 536870912;+ function Ad() {+ if (sd === 0) {+ if (!(Q & 536870912) || U) {+ var e = $e;+ $e <<= 1, !($e & 3932160) && ($e = 262144), sd = e;+ } else sd = 536870912;}- return e = jo.current, e !== null && (e.flags |= 32), ld;+ return e = Do.current, e !== null && (e.flags |= 32), sd;}- function Nd(e, t) {+ function jd(e, t) {if (t != null) {var n = e.stateNode, r = n.ref;- r === null && (r = n.ref = Pp(vi(e.memoizedProps, n))), Dd === null && (Dd = []), Dd.push(t.bind(null, r));+ r === null && (r = n.ref = Pp(pi(e.memoizedProps, n))), Td === null && (Td = []), Td.push(t.bind(null, r));}}- function Pd(e, t, n) {- (e === q && (X === 2 || X === 9) || e.cancelPendingCommit !== null) && (Vd(e, 0), Rd(e, Y, ld, !1)), _t(e, n), (!(K & 2) || e !== q) && (e === q && (!(K & 2) && (sd |= n), ad === 4 && Rd(e, Y, ld, !1)), Ef(e));+ function Md(e, t, n) {+ (e === Xu && (Zu === 2 || Zu === 9) || e.cancelPendingCommit !== null) && (zd(e, 0), Id(e, Q, sd, !1)), ct(e, n), (!(X & 2) || e !== Xu) && (e === Xu && (!(X & 2) && (ad |= n), rd === 4 && Id(e, Q, sd, !1)), Tf(e));}- function Fd(e, t, n) {- if (K & 6) throw Error(i(327));- var r = !n && !(t & 127) && (t & e.expiredLanes) === 0 || ft(e, t), a = r ? Yd(e, t) : qd(e, t, !0), o = r;+ function Nd(e, t, n) {+ if (X & 6) throw Error(i(327));+ var r = !n && !(t & 127) && (t & e.expiredLanes) === 0 || rt(e, t), a = r ? qd(e, t) : Gd(e, t, !0), o = r;do {if (a === 0) {- nd && !r && Rd(e, t, 0, !1);+ ed && !r && Id(e, t, 0, !1);break;}- if (n = e.current.alternate, o && !Ld(n)) {- a = qd(e, t, !1), o = !1;+ if (n = e.current.alternate, o && !Fd(n)) {+ a = Gd(e, t, !1), o = !1;continue;}if (a === 2) {@@ -6077,14 +11798,14 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrt = s;a: {var c = e;- a = dd;+ a = ld;var l = c.current.memoizedState.isDehydrated;- if (l && (Vd(c, s).flags |= 256), s = qd(c, s, !1), s !== 2 && s !== 6) {- if (rd && !l) {- c.errorRecoveryDisabledLanes |= o, sd |= o, a = 4;+ if (l && (zd(c, s).flags |= 256), s = Gd(c, s, !1), s !== 2 && s !== 6) {+ if (td && !l) {+ c.errorRecoveryDisabledLanes |= o, ad |= o, a = 4;break a;}- o = fd, fd = a, o !== null && (fd === null ? fd = o : fd.push.apply(fd, o));+ o = ud, ud = a, o !== null && (ud === null ? ud = o : ud.push.apply(ud, o));}a = s;}@@ -6092,7 +11813,7 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr}}if (a === 1) {- Vd(e, 0), Rd(e, t, 0, !0);+ zd(e, 0), Id(e, t, 0, !0);break;}a: {@@ -6101,27 +11822,27 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrcase 1: throw Error(i(345));case 4: if ((t & 4194048) !== t && (t & 62914560) !== t) break;case 6:- Rd(r, t, ld, !td);+ Id(r, t, sd, !$u);break a;case 2:- fd = null;+ ud = null;break;case 3:case 5: break;default: throw Error(i(329));}- if ((t & 62914560) === t && (a = md + 300 - Ke(), 10 < a)) {- if (Rd(r, t, ld, !td), dt(r, 0, !0) !== 0) break a;- Sd = t, r.timeoutHandle = gp(Id.bind(null, r, n, fd, _d, pd, t, ld, sd, ud, td, o, "Throttled", -0, 0), a);+ if ((t & 62914560) === t && (a = fd + 300 - Ie(), 10 < a)) {+ if (Id(r, t, sd, !$u), nt(r, 0, !0) !== 0) break a;+ bd = t, r.timeoutHandle = gp(Pd.bind(null, r, n, ud, hd, dd, t, sd, ad, cd, $u, o, "Throttled", -0, 0), a);break a;}- Id(r, n, fd, _d, pd, t, ld, sd, ud, td, o, null, -0, 0);+ Pd(r, n, ud, hd, dd, t, sd, ad, cd, $u, o, null, -0, 0);}break;} while (1);- Ef(e);+ Tf(e);}- function Id(e, t, n, r, i, a, o, s, c, l, u, d, f, p) {+ function Pd(e, t, n, r, i, a, o, s, c, l, u, d, f, p) {e.timeoutHandle = -1;var m = t.subtreeFlags, h = (a & 335544064) === a;if (d = null, (h || m & 8192 || (m & 16785408) == 16785408) && (d = {@@ -6132,21 +11853,21 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrsuspenseyImages: [],waitingForImages: !0,waitingForViewTransition: !1,- unsuspend: bn- }, Vl = null, Ku(t, a, d), h && (m = d, h = e.containerInfo, h = (h.nodeType === 9 ? h : h.ownerDocument).__reactViewTransition, h != null && (m.count++, m.waitingForViewTransition = !0, m = nh.bind(m), h.finished.then(m, m))), m = (a & 62914560) === a ? md - Ke() : (a & 4194048) === a ? hd - Ke() : 0, m = eh(d, m), m !== null)) {- Sd = a, e.cancelPendingCommit = m(nf.bind(null, e, t, a, n, r, i, o, s, c, l, u, d, null, f, p)), Rd(e, a, o, !l);+ unsuspend: mn+ }, Ll = null, Hu(t, a, d), h && (m = d, h = e.containerInfo, h = (h.nodeType === 9 ? h : h.ownerDocument).__reactViewTransition, h != null && (m.count++, m.waitingForViewTransition = !0, m = nh.bind(m), h.finished.then(m, m))), m = (a & 62914560) === a ? fd - Ie() : (a & 4194048) === a ? pd - Ie() : 0, m = eh(d, m), m !== null)) {+ bd = a, e.cancelPendingCommit = m(ef.bind(null, e, t, a, n, r, i, o, s, c, l, u, d, null, f, p)), Id(e, a, o, !l);return;}- nf(e, t, a, n, r, i, o, s, c, l, u, d);+ ef(e, t, a, n, r, i, o, s, c, l, u, d);}- function Ld(e) {+ function Fd(e) {for (var t = e;;) {var n = t.tag;if ((n === 0 || n === 11 || n === 15) && t.flags & 16384 && (n = t.updateQueue, n !== null && (n = n.stores, n !== null))) for (var r = 0; r < n.length; r++) {var i = n[r], a = i.getSnapshot;i = i.value;try {- if (!Hr(a(), i)) return !1;+ if (!Lr(a(), i)) return !1;} catch {return !1;}@@ -6163,281 +11884,281 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr}return !0;}- function Rd(e, t, n, r) {- t = pt(e, t), t &= ~cd, t &= ~sd, e.suspendedLanes |= t, e.pingedLanes &= ~t, r && (e.warmLanes |= t), r = e.expirationTimes;+ function Id(e, t, n, r) {+ t = it(e, t), t &= ~od, t &= ~ad, e.suspendedLanes |= t, e.pingedLanes &= ~t, r && (e.warmLanes |= t), r = e.expirationTimes;for (var i = t; 0 < i;) {- var a = 31 - rt(i), o = 1 << a;+ var a = 31 - Je(i), o = 1 << a;r[a] = -1, i &= ~o;}- n !== 0 && yt(e, n, t);+ n !== 0 && ut(e, n, t);}- function zd() {- return K & 6 ? !0 : (Df(0, !1), !1);+ function Ld() {+ return X & 6 ? !0 : (Ef(0, !1), !1);}- function Bd() {- if (J !== null) {- if (X === 0) var e = J.return;- else e = J, _a = ga = null, as(e), ao = null, oo = 0, e = J;- for (; e !== null;) xl(e.alternate, e), e = e.return;- J = null;+ function Rd() {+ if (Z !== null) {+ if (Zu === 0) var e = Z.return;+ else e = Z, pa = fa = null, ts(e), to = null, no = 0, e = Z;+ for (; e !== null;) yl(e.alternate, e), e = e.return;+ Z = null;}}- function Vd(e, t) {+ function zd(e, t) {var n = e.timeoutHandle;- return n !== -1 && (e.timeoutHandle = -1, _p(n)), n = e.cancelPendingCommit, n !== null && (e.cancelPendingCommit = null, n()), Sd = 0, Bd(), q = e, J = n = Fi(e.current, null), Y = t, X = 0, ed = null, td = !1, nd = ft(e, t), rd = !1, ud = ld = cd = sd = od = ad = 0, fd = dd = null, pd = !1, id = pt(e, t), Ti(), n;+ return n !== -1 && (e.timeoutHandle = -1, _p(n)), n = e.cancelPendingCommit, n !== null && (e.cancelPendingCommit = null, n()), bd = 0, Rd(), Xu = e, Z = n = Ai(e.current, null), Q = t, Zu = 0, Qu = null, $u = !1, ed = rt(e, t), td = !1, cd = sd = od = ad = id = rd = 0, ud = ld = null, dd = !1, nd = it(e, t), bi(), n;}- function Hd(e, t) {- V = null, D.H = hc, t === Ya || t === Za ? (t = ro(), X = 3) : t === Xa ? (t = ro(), X = 4) : X = t === Nc ? 8 : typeof t == "object" && t && typeof t.then == "function" ? 6 : 1, ed = t, J === null && (ad = 1, Dc(e, Ui(t, e.current)));+ function Bd(e, t) {+ W = null, R.H = dc, t === Ga || t === qa ? (t = $a(), Zu = 3) : t === Ka ? (t = $a(), Zu = 4) : Zu = t === kc ? 8 : typeof t == "object" && t && typeof t.then == "function" ? 6 : 1, Qu = t, Z === null && (rd = 1, Cc(e, Ri(t, e.current)));}- function Ud() {- var e = jo.current;- return e === null ? !0 : (Y & 4194048) === Y ? Mo === null : (Y & 62914560) === Y || Y & 536870912 ? e === Mo : !1;+ function Vd() {+ var e = Do.current;+ return e === null ? !0 : (Q & 4194048) === Q ? Oo === null : (Q & 62914560) === Q || Q & 536870912 ? e === Oo : !1;}- function Wd() {- var e = D.H;- return D.H = hc, e === null ? hc : e;+ function Hd() {+ var e = R.H;+ return R.H = dc, e === null ? dc : e;}- function Gd() {- var e = D.A;- return D.A = Qu, e;+ function Ud() {+ var e = R.A;+ return R.A = Ju, e;}- function Kd() {- ad = 4, td || (Y & 4194048) !== Y && jo.current !== null || (nd = !0), !(od & 134217727) && !(sd & 134217727) || q === null || Rd(q, Y, ld, !1);- }- function qd(e, t, n) {- var r = K;- K |= 2;- var i = Wd(), a = Gd();- (q !== e || Y !== t) && (_d = null, Vd(e, t)), t = !1;- var o = ad;+ function Wd() {+ rd = 4, $u || (Q & 4194048) !== Q && Do.current !== null || (ed = !0), !(id & 134217727) && !(ad & 134217727) || Xu === null || Id(Xu, Q, sd, !1);+ }+ function Gd(e, t, n) {+ var r = X;+ X |= 2;+ var i = Hd(), a = Ud();+ (Xu !== e || Q !== t) && (hd = null, zd(e, t)), t = !1;+ var o = rd;a: dotry {- if (X !== 0 && J !== null) {- var s = J, c = ed;- switch (X) {+ if (Zu !== 0 && Z !== null) {+ var s = Z, c = Qu;+ switch (Zu) {case 8:- Bd(), o = 6;+ Rd(), o = 6;break a;case 3:case 2:case 9:case 6:- jo.current === null && (t = !0);- var l = X;- if (X = 0, ed = null, $d(e, s, c, l), n && nd) {+ Do.current === null && (t = !0);+ var l = Zu;+ if (Zu = 0, Qu = null, Zd(e, s, c, l), n && ed) {o = 0;break a;}break;- default: l = X, X = 0, ed = null, $d(e, s, c, l);+ default: l = Zu, Zu = 0, Qu = null, Zd(e, s, c, l);}}- Jd(), o = ad;+ Kd(), o = rd;break;} catch (t) {- Hd(e, t);+ Bd(e, t);}while (1);- return t && e.shellSuspendCounter++, _a = ga = null, K = r, D.H = i, D.A = a, J === null && (q = null, Y = 0, Ti()), o;+ return t && e.shellSuspendCounter++, pa = fa = null, X = r, R.H = i, R.A = a, Z === null && (Xu = null, Q = 0, bi()), o;}- function Jd() {- for (; J !== null;) Zd(J);+ function Kd() {+ for (; Z !== null;) Yd(Z);}- function Yd(e, t) {- var n = K;- K |= 2;- var r = Wd(), a = Gd();- q !== e || Y !== t ? (_d = null, gd = Ke() + 500, Vd(e, t)) : nd = ft(e, t);+ function qd(e, t) {+ var n = X;+ X |= 2;+ var r = Hd(), a = Ud();+ Xu !== e || Q !== t ? (hd = null, md = Ie() + 500, zd(e, t)) : ed = rt(e, t);a: dotry {- if (X !== 0 && J !== null) {- t = J;- var o = ed;- b: switch (X) {+ if (Zu !== 0 && Z !== null) {+ t = Z;+ var o = Qu;+ b: switch (Zu) {case 1:- X = 0, ed = null, $d(e, t, o, 1);+ Zu = 0, Qu = null, Zd(e, t, o, 1);break;case 2:case 9:- if ($a(o)) {- X = 0, ed = null, Qd(t);+ if (Ya(o)) {+ Zu = 0, Qu = null, Xd(t);break;}t = function() {- X !== 2 && X !== 9 || q !== e || (X = 7), Ef(e);+ Zu !== 2 && Zu !== 9 || Xu !== e || (Zu = 7), Tf(e);}, o.then(t, t);break a;case 3:- X = 7;+ Zu = 7;break a;case 4:- X = 5;+ Zu = 5;break a;case 7:- $a(o) ? (X = 0, ed = null, Qd(t)) : (X = 0, ed = null, $d(e, t, o, 7));+ Ya(o) ? (Zu = 0, Qu = null, Xd(t)) : (Zu = 0, Qu = null, Zd(e, t, o, 7));break;case 5:var s = null;- switch (J.tag) {- case 26: s = J.memoizedState;+ switch (Z.tag) {+ case 26: s = Z.memoizedState;case 5:case 27:- var c = J;+ var c = Z;if (s ? Ym(s) : c.stateNode.complete) {- X = 0, ed = null;+ Zu = 0, Qu = null;var l = c.sibling;- if (l !== null) J = l;+ if (l !== null) Z = l;else {var u = c.return;- u === null ? J = null : (J = u, ef(u));+ u === null ? Z = null : (Z = u, Qd(u));}break b;}}- X = 0, ed = null, $d(e, t, o, 5);+ Zu = 0, Qu = null, Zd(e, t, o, 5);break;case 6:- X = 0, ed = null, $d(e, t, o, 6);+ Zu = 0, Qu = null, Zd(e, t, o, 6);break;case 8:- Bd(), ad = 6;+ Rd(), rd = 6;break a;default: throw Error(i(462));}}- Xd();+ Jd();break;} catch (t) {- Hd(e, t);+ Bd(e, t);}while (1);- return _a = ga = null, D.H = r, D.A = a, K = n, J === null ? (q = null, Y = 0, Ti(), ad) : 0;+ return pa = fa = null, R.H = r, R.A = a, X = n, Z === null ? (Xu = null, Q = 0, bi(), rd) : 0;}- function Xd() {- for (; J !== null && !We();) Zd(J);+ function Jd() {+ for (; Z !== null && !Pe();) Yd(Z);}- function Zd(e) {- var t = pl(e.alternate, e, id);- e.memoizedProps = e.pendingProps, t === null ? ef(e) : J = t;+ function Yd(e) {+ var t = ul(e.alternate, e, nd);+ e.memoizedProps = e.pendingProps, t === null ? Qd(e) : Z = t;}- function Qd(e) {+ function Xd(e) {var t = e, n = t.alternate;switch (t.tag) {case 15:case 0:- t = qc(n, t, t.pendingProps, t.type, void 0, Y);+ t = Wc(n, t, t.pendingProps, t.type, void 0, Q);break;case 11:- t = qc(n, t, t.pendingProps, t.type.render, t.ref, Y);+ t = Wc(n, t, t.pendingProps, t.type.render, t.ref, Q);break;case 5:- as(t);+ ts(t);var r = t;- r === ia && (B ? (ua(r), r.tag === 5 && r.stateNode != null && (z = r.stateNode)) : (ua(r), B = !0));- default: xl(n, t), t = J = Ii(t, id), t = pl(n, t, id);+ r === $i && (U ? (oa(r), r.tag === 5 && r.stateNode != null && (ea = r.stateNode)) : (oa(r), U = !0));+ default: yl(n, t), t = Z = ji(t, nd), t = ul(n, t, nd);}- e.memoizedProps = e.pendingProps, t === null ? ef(e) : J = t;+ e.memoizedProps = e.pendingProps, t === null ? Qd(e) : Z = t;}- function $d(e, t, n, r) {- _a = ga = null, as(t), ao = null, oo = 0;+ function Zd(e, t, n, r) {+ pa = fa = null, ts(t), to = null, no = 0;var i = t.return;try {- if (Mc(e, i, t, n, Y)) {- ad = 1, Dc(e, Ui(n, e.current)), J = null;+ if (Oc(e, i, t, n, Q)) {+ rd = 1, Cc(e, Ri(n, e.current)), Z = null;return;}} catch (t) {- if (i !== null) throw J = i, t;- ad = 1, Dc(e, Ui(n, e.current)), J = null;+ if (i !== null) throw Z = i, t;+ rd = 1, Cc(e, Ri(n, e.current)), Z = null;return;}- t.flags & 32768 ? (B || r === 1 ? e = !0 : nd || Y & 536870912 ? e = !1 : (td = e = !0, (r === 2 || r === 9 || r === 3 || r === 6) && (r = jo.current, r !== null && r.tag === 13 && (r.flags |= 16384))), tf(t, e)) : ef(t);+ t.flags & 32768 ? (U || r === 1 ? e = !0 : ed || Q & 536870912 ? e = !1 : ($u = e = !0, (r === 2 || r === 9 || r === 3 || r === 6) && (r = Do.current, r !== null && r.tag === 13 && (r.flags |= 16384))), $d(t, e)) : Qd(t);}- function ef(e) {+ function Qd(e) {var t = e;do {if (t.flags & 32768) {- tf(t, td);+ $d(t, $u);return;}e = t.return;- var n = yl(t.alternate, t, id);+ var n = _l(t.alternate, t, nd);if (n !== null) {- J = n;+ Z = n;return;}if (t = t.sibling, t !== null) {- J = t;+ Z = t;return;}- J = t = e;+ Z = t = e;} while (t !== null);- ad === 0 && (ad = 5);+ rd === 0 && (rd = 5);}- function tf(e, t) {+ function $d(e, t) {do {- var n = bl(e.alternate, e);+ var n = vl(e.alternate, e);if (n !== null) {- n.flags &= 32767, J = n;+ n.flags &= 32767, Z = n;return;}if (n = e.return, n !== null && (n.flags |= 32768, n.subtreeFlags = 0, n.deletions = null), !t && (e = e.sibling, e !== null)) {- J = e;+ Z = e;return;}- J = e = n;+ Z = e = n;} while (e !== null);- ad = 6, J = null;+ rd = 6, Z = null;}- function nf(e, t, n, r, a, o, s, c, l, u, d, f) {+ function ef(e, t, n, r, a, o, s, c, l, u, d, f) {e.cancelPendingCommit = null;do- df();- while (yd !== 0);- if (K & 6) throw Error(i(327));+ lf();+ while (_d !== 0);+ if (X & 6) throw Error(i(327));if (t !== null) {if (t === e.current) throw Error(i(177));- e === q && (J = q = null, Y = 0), xd = t, bd = e, Sd = n, wd = a, Td = r, rf(e, t, n, s, c, l, f);+ e === Xu && (Z = Xu = null, Q = 0), yd = t, vd = e, bd = n, Sd = a, Cd = r, tf(e, t, n, s, c, l, f);}}- function rf(e, t, n, r, i, a, o) {+ function tf(e, t, n, r, i, a, o) {var s = t.lanes | t.childLanes;- if (Cd = s, s |= wi, vt(e, n, s, r, i, a), Dd = null, (n & 335544064) === n ? (Od = Ia(e), r = 10262) : (Od = null, r = 10256), (t.subtreeFlags & r) !== 0 || (t.flags & r) !== 0 ? (e.callbackNode = null, e.callbackPriority = 0, yf(N, function() {- return ff(), null;- })) : (e.callbackNode = null, e.callbackPriority = 0), Bl = !1, r = !!(t.flags & 13878), t.subtreeFlags & 13878 || r) {- r = D.T, D.T = null, i = O.p, O.p = 2, a = K, K |= 4;+ if (xd = s, s |= yi, lt(e, n, s, r, i, a), Td = null, (n & 335544064) === n ? (Ed = Ma(e), r = 10262) : (Ed = null, r = 10256), (t.subtreeFlags & r) !== 0 || (t.flags & r) !== 0 ? (e.callbackNode = null, e.callbackPriority = 0, vf(Be, function() {+ return uf(), null;+ })) : (e.callbackNode = null, e.callbackPriority = 0), Il = !1, r = !!(t.flags & 13878), t.subtreeFlags & 13878 || r) {+ r = R.T, R.T = null, i = z.p, z.p = 2, a = X, X |= 4;try {- mu(e, t, n);+ uu(e, t, n);} finally {- K = a, O.p = i, D.T = r;+ X = a, z.p = i, R.T = r;}}- yd = 1, Bl ? Ed = Mp(o, e.containerInfo, Od, sf, cf, of, lf, ff, af, null, null) : (sf(), cf(), lf());+ _d = 1, Il ? wd = Mp(o, e.containerInfo, Ed, af, of, rf, sf, uf, nf, null, null) : (af(), of(), sf());}- function af(e) {- if (yd !== 0) {- var t = bd.onRecoverableError;+ function nf(e) {+ if (_d !== 0) {+ var t = vd.onRecoverableError;t(e, { componentStack: null });}}- function of() {- yd === 3 && (yd = 0, Pu(xd, bd), yd = 4);+ function rf() {+ _d === 3 && (_d = 0, Au(yd, vd), _d = 4);}- function sf() {- if (yd === 1) {- yd = 0;- var e = bd, t = xd, n = Sd, r = !!(t.flags & 13878);+ function af() {+ if (_d === 1) {+ _d = 0;+ var e = vd, t = yd, n = bd, r = !!(t.flags & 13878);if (t.subtreeFlags & 13878 || r) {- r = D.T, D.T = null;- var i = O.p;- O.p = 2;- var a = K;- K |= 4;+ r = R.T, R.T = null;+ var i = z.p;+ z.p = 2;+ var a = X;+ X |= 4;try {- du = fu = !1, Au(t, e, n), n = cp;- var o = Jr(e.containerInfo), s = n.focusedElem, c = n.selectionRange;- if (o !== s && s && s.ownerDocument && qr(s.ownerDocument.documentElement, s)) {- if (c !== null && Yr(s)) {+ su = cu = !1, Eu(t, e, n), n = cp;+ var o = Ur(e.containerInfo), s = n.focusedElem, c = n.selectionRange;+ if (o !== s && s && s.ownerDocument && Hr(s.ownerDocument.documentElement, s)) {+ if (c !== null && Wr(s)) {var l = c.start, u = c.end;if (u === void 0 && (u = l), "selectionStart" in s) s.selectionStart = l, s.selectionEnd = Math.min(u, s.value.length);else {@@ -6445,7 +12166,7 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrif (f.getSelection) {var p = f.getSelection(), m = s.textContent.length, h = Math.min(c.start, m), g = c.end === void 0 ? h : Math.min(c.end, m);!p.extend && h > g && (o = g, g = h, h = o);- var _ = Kr(s, h), v = Kr(s, g);+ var _ = Vr(s, h), v = Vr(s, g);if (_ && v && (p.rangeCount !== 1 || p.anchorNode !== _.node || p.anchorOffset !== _.offset || p.focusNode !== v.node || p.focusOffset !== v.offset)) {var y = d.createRange();y.setStart(_.node, _.offset), p.removeAllRanges(), h > g ? (p.addRange(y), p.extend(v.node, v.offset)) : (y.setEnd(v.node, v.offset), p.addRange(y));@@ -6465,120 +12186,120 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr}gh = !!sp, cp = sp = null;} finally {- K = a, O.p = i, D.T = r;+ X = a, z.p = i, R.T = r;}}- e.current = t, yd = 2;+ e.current = t, _d = 2;}}- function cf() {- if (yd === 2) {- yd = 0;- var e = bd, t = xd, n = !!(t.flags & 8772);+ function of() {+ if (_d === 2) {+ _d = 0;+ var e = vd, t = yd, n = !!(t.flags & 8772);if (t.subtreeFlags & 8772 || n) {- n = D.T, D.T = null;- var r = O.p;- O.p = 2;- var i = K;- K |= 4;+ n = R.T, R.T = null;+ var r = z.p;+ z.p = 2;+ var i = X;+ X |= 4;try {- gu(e, t.alternate, t);+ fu(e, t.alternate, t);} finally {- K = i, O.p = r, D.T = n;+ X = i, z.p = r, R.T = n;}}- yd = 3;+ _d = 3;}}- function lf() {- if (yd === 4 || yd === 3) {- yd = 0;- var e = Ed;- Ed = null, Ge();- var t = bd, n = xd, r = Sd, i = Td, a = (r & 335544064) === r ? 10262 : 10256;- if ((n.subtreeFlags & a) !== 0 || (n.flags & a) !== 0 ? yd = 5 : (yd = 0, xd = bd = null, uf(t, t.pendingLanes)), a = t.pendingLanes, a === 0 && (vd = null), Ct(r), n = n.stateNode, tt && typeof tt.onCommitFiberRoot == "function") try {- tt.onCommitFiberRoot(et, n, void 0, (n.current.flags & 128) == 128);+ function sf() {+ if (_d === 4 || _d === 3) {+ _d = 0;+ var e = wd;+ wd = null, Fe();+ var t = vd, n = yd, r = bd, i = Cd, a = (r & 335544064) === r ? 10262 : 10256;+ if ((n.subtreeFlags & a) !== 0 || (n.flags & a) !== 0 ? _d = 5 : (_d = 0, yd = vd = null, cf(t, t.pendingLanes)), a = t.pendingLanes, a === 0 && (gd = null), mt(r), n = n.stateNode, Ke && typeof Ke.onCommitFiberRoot == "function") try {+ Ke.onCommitFiberRoot(Ge, n, void 0, (n.current.flags & 128) == 128);} catch {}if (i !== null) {- n = D.T, a = O.p, O.p = 2, D.T = null;+ n = R.T, a = z.p, z.p = 2, R.T = null;try {for (var o = t.onRecoverableError, s = 0; s < i.length; s++) {var c = i[s];o(c.value, { componentStack: c.stack });}} finally {- D.T = n, O.p = a;+ R.T = n, z.p = a;}}- if (i = Dd, o = Od, Od = null, i !== null && (Dd = null, o === null && (o = []), e !== null)) for (c = 0; c < i.length; c++) n = (0, i[c])(o), n !== void 0 && e.finished.finally(n);- Sd & 3 && df(), Ef(t), a = t.pendingLanes, r & 261930 && a & 42 ? t === Ad ? kd++ : (kd = 0, Ad = t) : (kd = 0, Ad = null), Df(0, !1);+ if (i = Td, o = Ed, Ed = null, i !== null && (Td = null, o === null && (o = []), e !== null)) for (c = 0; c < i.length; c++) n = (0, i[c])(o), n !== void 0 && e.finished.finally(n);+ bd & 3 && lf(), Tf(t), a = t.pendingLanes, r & 261930 && a & 42 ? t === Od ? Dd++ : (Dd = 0, Od = t) : (Dd = 0, Od = null), Ef(0, !1);}}- function uf(e, t) {- (e.pooledCacheLanes &= t) === 0 && (t = e.pooledCache, t != null && (e.pooledCache = null, Na(t)));+ function cf(e, t) {+ (e.pooledCacheLanes &= t) === 0 && (t = e.pooledCache, t != null && (e.pooledCache = null, ka(t)));}- function df() {- return Ed !== null && (Ed.skipTransition(), Ed = null), sf(), cf(), lf(), ff();+ function lf() {+ return wd !== null && (wd.skipTransition(), wd = null), af(), of(), sf(), uf();}- function ff() {- if (yd !== 5) return !1;- var e = bd, t = Cd;- Cd = 0;- var n = Ct(Sd), r = D.T, a = O.p;+ function uf() {+ if (_d !== 5) return !1;+ var e = vd, t = xd;+ xd = 0;+ var n = mt(bd), r = R.T, a = z.p;try {- O.p = 32 > n ? 32 : n, D.T = null, n = wd, wd = null;- var o = bd, s = Sd;- if (yd = 0, xd = bd = null, Sd = 0, K & 6) throw Error(i(331));- var c = K;- if (K |= 4, Yu(o.current), Vu(o, o.current, s, n), K = c, Df(0, !1), tt && typeof tt.onPostCommitFiberRoot == "function") try {- tt.onPostCommitFiberRoot(et, o);+ z.p = 32 > n ? 32 : n, R.T = null, n = Sd, Sd = null;+ var o = vd, s = bd;+ if (_d = 0, yd = vd = null, bd = 0, X & 6) throw Error(i(331));+ var c = X;+ if (X |= 4, Gu(o.current), Lu(o, o.current, s, n), X = c, Ef(0, !1), Ke && typeof Ke.onPostCommitFiberRoot == "function") try {+ Ke.onPostCommitFiberRoot(Ge, o);} catch {}return !0;} finally {- O.p = a, D.T = r, uf(e, t);+ z.p = a, R.T = r, cf(e, t);}}- function pf(e, t, n) {- t = Ui(n, t), t = kc(e.stateNode, t, 2), e = vo(e, t, 2), e !== null && (_t(e, 2), Ef(e));+ function df(e, t, n) {+ t = Ri(n, t), t = Tc(e.stateNode, t, 2), e = mo(e, t, 2), e !== null && (ct(e, 2), Tf(e));}- function Z(e, t, n) {- if (e.tag === 3) pf(e, e, n);+ function ff(e, t, n) {+ if (e.tag === 3) df(e, e, n);else for (; t !== null;) {if (t.tag === 3) {- pf(t, e, n);+ df(t, e, n);break;}if (t.tag === 1) {var r = t.stateNode;- if (typeof t.type.getDerivedStateFromError == "function" || typeof r.componentDidCatch == "function" && (vd === null || !vd.has(r))) {- e = Ui(n, e), n = Ac(2), r = vo(t, n, 2), r !== null && (jc(n, r, t, e), _t(r, 2), Ef(r));+ if (typeof t.type.getDerivedStateFromError == "function" || typeof r.componentDidCatch == "function" && (gd === null || !gd.has(r))) {+ e = Ri(n, e), n = Ec(2), r = mo(t, n, 2), r !== null && (Dc(n, r, t, e), ct(r, 2), Tf(r));break;}}t = t.return;}}- function mf(e, t, n) {+ function pf(e, t, n) {var r = e.pingCache;if (r === null) {- r = e.pingCache = new $u();+ r = e.pingCache = new Yu();var i = /* @__PURE__ */ new Set();r.set(t, i);} else i = r.get(t), i === void 0 && (i = /* @__PURE__ */ new Set(), r.set(t, i));- i.has(n) || (rd = !0, i.add(n), e = hf.bind(null, e, t, n), t.then(e, e));+ i.has(n) || (td = !0, i.add(n), e = mf.bind(null, e, t, n), t.then(e, e));}- function hf(e, t, n) {+ function mf(e, t, n) {var r = e.pingCache;- r !== null && r.delete(t), e.pingedLanes |= e.suspendedLanes & n, e.warmLanes &= ~n, q === e && (Y & n) === n && (ad === 4 || ad === 3 && (Y & 62914560) === Y && 300 > Ke() - md ? K & 2 ? cd |= n : Vd(e, 0) : cd |= n, ud === Y && (ud = 0)), Ef(e);+ r !== null && r.delete(t), e.pingedLanes |= e.suspendedLanes & n, e.warmLanes &= ~n, Xu === e && (Q & n) === n && (rd === 4 || rd === 3 && (Q & 62914560) === Q && 300 > Ie() - fd ? X & 2 ? od |= n : zd(e, 0) : od |= n, cd === Q && (cd = 0)), Tf(e);}- function gf(e, t) {- t === 0 && (t = ht()), e = Oi(e, t), e !== null && (_t(e, t), Ef(e));+ function hf(e, t) {+ t === 0 && (t = ot()), e = Ci(e, t), e !== null && (ct(e, t), Tf(e));}- function _f(e) {+ function gf(e) {var t = e.memoizedState, n = 0;- t !== null && (n = t.retryLane), gf(e, n);+ t !== null && (n = t.retryLane), hf(e, n);}- function vf(e, t) {+ function _f(e, t) {var n = 0;switch (e.tag) {case 31:@@ -6594,122 +12315,122 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrbreak;default: throw Error(i(314));}- r !== null && r.delete(t), gf(e, n);+ r !== null && r.delete(t), hf(e, n);}- function yf(e, t) {- return M(e, t);+ function vf(e, t) {+ return Me(e, t);}- var bf = null, xf = null, Sf = !1, Cf = !1, wf = !1, Tf = 0;- function Ef(e) {- e !== xf && e.next === null && (xf === null ? bf = xf = e : xf = xf.next = e), Cf = !0, Sf || (Sf = !0, Nf());+ var yf = null, bf = null, xf = !1, Sf = !1, Cf = !1, wf = 0;+ function Tf(e) {+ e !== bf && e.next === null && (bf === null ? yf = bf = e : bf = bf.next = e), Sf = !0, xf || (xf = !0, Mf());}- function Df(e, t) {- if (!wf && Cf) {- wf = !0;+ function Ef(e, t) {+ if (!Cf && Sf) {+ Cf = !0;do- for (var n = !1, r = bf; r !== null;) {+ for (var n = !1, r = yf; r !== null;) {if (!t) {if (e !== 0) {var i = r.pendingLanes;if (i === 0) var a = 0;else {var o = r.suspendedLanes, s = r.pingedLanes;- a = (1 << 31 - rt(42 | e) + 1) - 1, a &= i & ~(o & ~s), a = a & 201326741 ? a & 201326741 | 1 : a ? a | 2 : 0;+ a = (1 << 31 - Je(42 | e) + 1) - 1, a &= i & ~(o & ~s), a = a & 201326741 ? a & 201326741 | 1 : a ? a | 2 : 0;}- a !== 0 && (n = !0, Mf(r, a));- } else a = Y, a = dt(r, r === q ? a : 0, r.cancelPendingCommit !== null || r.timeoutHandle !== -1), !(a & 3) || ft(r, a) || (n = !0, Mf(r, a));+ a !== 0 && (n = !0, jf(r, a));+ } else a = Q, a = nt(r, r === Xu ? a : 0, r.cancelPendingCommit !== null || r.timeoutHandle !== -1), !(a & 3) || rt(r, a) || (n = !0, jf(r, a));}r = r.next;}while (n);- wf = !1;+ Cf = !1;}}- function Of() {- kf();+ function Df() {+ Of();}- function kf() {- Cf = Sf = !1;+ function Of() {+ Sf = xf = !1;var e = 0;- Tf !== 0 && hp() && (e = Tf);- for (var t = Ke(), n = null, r = bf; r !== null;) {- var i = r.next, a = Af(r, t);- a === 0 ? (r.next = null, n === null ? bf = i : n.next = i, i === null && (xf = n)) : (n = r, (e !== 0 || a & 3) && (Cf = !0)), r = i;+ wf !== 0 && hp() && (e = wf);+ for (var t = Ie(), n = null, r = yf; r !== null;) {+ var i = r.next, a = kf(r, t);+ a === 0 ? (r.next = null, n === null ? yf = i : n.next = i, i === null && (bf = n)) : (n = r, (e !== 0 || a & 3) && (Sf = !0)), r = i;}- yd !== 0 && yd !== 5 || Df(e, !1), Tf !== 0 && (Tf = 0);+ _d !== 0 && _d !== 5 || Ef(e, !1), wf !== 0 && (wf = 0);}- function Af(e, t) {+ function kf(e, t) {for (var n = e.suspendedLanes, r = e.pingedLanes, i = e.expirationTimes, a = e.pendingLanes & -62914561; 0 < a;) {- var o = 31 - rt(a), s = 1 << o, c = i[o];- c === -1 ? ((s & n) === 0 || (s & r) !== 0) && (i[o] = mt(s, t)) : c <= t && (e.expiredLanes |= s), a &= ~s;+ var o = 31 - Je(a), s = 1 << o, c = i[o];+ c === -1 ? ((s & n) === 0 || (s & r) !== 0) && (i[o] = at(s, t)) : c <= t && (e.expiredLanes |= s), a &= ~s;}- if (t = q, n = Y, n = dt(e, e === t ? n : 0, e.cancelPendingCommit !== null || e.timeoutHandle !== -1), r = e.callbackNode, n === 0 || e === t && (X === 2 || X === 9) || e.cancelPendingCommit !== null) return r !== null && r !== null && Ue(r), e.callbackNode = null, e.callbackPriority = 0;- if (!(n & 3) || ft(e, n)) {+ if (t = Xu, n = Q, n = nt(e, e === t ? n : 0, e.cancelPendingCommit !== null || e.timeoutHandle !== -1), r = e.callbackNode, n === 0 || e === t && (Zu === 2 || Zu === 9) || e.cancelPendingCommit !== null) return r !== null && r !== null && Ne(r), e.callbackNode = null, e.callbackPriority = 0;+ if (!(n & 3) || rt(e, n)) {if (t = n & -n, t === e.callbackPriority) return t;- switch (r !== null && Ue(r), Ct(n)) {+ switch (r !== null && Ne(r), mt(n)) {case 2:case 8:- n = Ye;+ n = ze;break;case 32:- n = N;+ n = Be;break;case 268435456:- n = Ze;+ n = He;break;- default: n = N;+ default: n = Be;}- return r = jf.bind(null, e), n = M(n, r), e.callbackPriority = t, e.callbackNode = n, t;+ return r = Af.bind(null, e), n = Me(n, r), e.callbackPriority = t, e.callbackNode = n, t;}- return r !== null && r !== null && Ue(r), e.callbackPriority = 2, e.callbackNode = null, 2;+ return r !== null && r !== null && Ne(r), e.callbackPriority = 2, e.callbackNode = null, 2;}- function jf(e, t) {- if (yd !== 0 && yd !== 5) return e.callbackNode = null, e.callbackPriority = 0, null;+ function Af(e, t) {+ if (_d !== 0 && _d !== 5) return e.callbackNode = null, e.callbackPriority = 0, null;var n = e.callbackNode;- if (df() && e.callbackNode !== n) return null;- var r = Y;- return r = dt(e, e === q ? r : 0, e.cancelPendingCommit !== null || e.timeoutHandle !== -1), r === 0 ? null : (Fd(e, r, t), Af(e, Ke()), e.callbackNode != null && e.callbackNode === n ? jf.bind(null, e) : null);+ if (lf() && e.callbackNode !== n) return null;+ var r = Q;+ return r = nt(e, e === Xu ? r : 0, e.cancelPendingCommit !== null || e.timeoutHandle !== -1), r === 0 ? null : (Nd(e, r, t), kf(e, Ie()), e.callbackNode != null && e.callbackNode === n ? Af.bind(null, e) : null);}- function Mf(e, t) {- if (df()) return null;- Fd(e, t, !0);+ function jf(e, t) {+ if (lf()) return null;+ Nd(e, t, !0);}- function Nf() {+ function Mf() {bp(function() {- K & 6 ? M(Je, Of) : kf();+ X & 6 ? Me(Re, Df) : Of();});}- function Pf() {- if (Tf === 0) {- var e = za;- e === 0 && (e = st, st <<= 1, !(st & 261888) && (st = 256)), Tf = e;+ function Nf() {+ if (wf === 0) {+ var e = Fa;+ e === 0 && (e = Qe, Qe <<= 1, !(Qe & 261888) && (Qe = 256)), wf = e;}- return Tf;+ return wf;}- function Ff(e) {- return e == null || typeof e == "symbol" || typeof e == "boolean" ? null : typeof e == "function" ? e : L(e);+ function Pf(e) {+ return e == null || typeof e == "symbol" || typeof e == "boolean" ? null : typeof e == "function" ? e : pn(e);}- function If(e, t, n, r, i) {+ function Ff(e, t, n, r, i) {if (t === "submit" && n && n.stateNode === i) {- var a = Ff((i[Dt] || null).action), o = r.submitter;- o && (t = (t = o[Dt] || null) ? Ff(t.formAction) : o.getAttribute("formAction"), t !== null && (a = t, o = null));- var s = new Bn("action", "action", null, r, i);+ var a = Pf((i[yt] || null).action), o = r.submitter;+ o && (t = (t = o[yt] || null) ? Pf(t.formAction) : o.getAttribute("formAction"), t !== null && (a = t, o = null));+ var s = new Fn("action", "action", null, r, i);e.push({event: s,listeners: [{instance: null,listener: function() {if (r.defaultPrevented) {- if (Tf !== 0) {+ if (wf !== 0) {var e = new FormData(i, o);- tc(n, {+ Zs(n, {pending: !0,data: e,method: i.method,action: a}, null, e);}- } else typeof a == "function" && (s.preventDefault(), e = new FormData(i, o), tc(n, {+ } else typeof a == "function" && (s.preventDefault(), e = new FormData(i, o), Zs(n, {pending: !0,data: e,method: i.method,@@ -6721,18 +12442,18 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr});}}- for (var Lf = 0; Lf < hi.length; Lf++) {- var Rf = hi[Lf];- gi(Rf.toLowerCase(), "on" + (Rf[0].toUpperCase() + Rf.slice(1)));+ for (var If = 0; If < ui.length; If++) {+ var Lf = ui[If];+ di(Lf.toLowerCase(), "on" + (Lf[0].toUpperCase() + Lf.slice(1)));}- gi(si, "onAnimationEnd"), gi(ci, "onAnimationIteration"), gi(li, "onAnimationStart"), gi("dblclick", "onDoubleClick"), gi("focusin", "onFocus"), gi("focusout", "onBlur"), gi(ui, "onTransitionRun"), gi(di, "onTransitionStart"), gi(fi, "onTransitionCancel"), gi(pi, "onTransitionEnd"), Gt("onMouseEnter", ["mouseout", "mouseover"]), Gt("onMouseLeave", ["mouseout", "mouseover"]), Gt("onPointerEnter", ["pointerout", "pointerover"]), Gt("onPointerLeave", ["pointerout", "pointerover"]), Wt("onChange", "change click focusin focusout input keydown keyup selectionchange".split(" ")), Wt("onSelect", "focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")), Wt("onBeforeInput", [+ di(ni, "onAnimationEnd"), di(ri, "onAnimationIteration"), di(ii, "onAnimationStart"), di("dblclick", "onDoubleClick"), di("focusin", "onFocus"), di("focusout", "onBlur"), di(ai, "onTransitionRun"), di(oi, "onTransitionStart"), di(si, "onTransitionCancel"), di(ci, "onTransitionEnd"), Lt("onMouseEnter", ["mouseout", "mouseover"]), Lt("onMouseLeave", ["mouseout", "mouseover"]), Lt("onPointerEnter", ["pointerout", "pointerover"]), Lt("onPointerLeave", ["pointerout", "pointerover"]), It("onChange", "change click focusin focusout input keydown keyup selectionchange".split(" ")), It("onSelect", "focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")), It("onBeforeInput", ["compositionend","keypress","textInput","paste"- ]), Wt("onCompositionEnd", "compositionend focusout keydown keypress keyup mousedown".split(" ")), Wt("onCompositionStart", "compositionstart focusout keydown keypress keyup mousedown".split(" ")), Wt("onCompositionUpdate", "compositionupdate focusout keydown keypress keyup mousedown".split(" "));- var zf = "abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "), Bf = new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(zf));- function Vf(e, t) {+ ]), It("onCompositionEnd", "compositionend focusout keydown keypress keyup mousedown".split(" ")), It("onCompositionStart", "compositionstart focusout keydown keypress keyup mousedown".split(" ")), It("onCompositionUpdate", "compositionupdate focusout keydown keypress keyup mousedown".split(" "));+ var Rf = "abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "), zf = new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Rf));+ function Bf(e, t) {t = !!(t & 4);for (var n = 0; n < e.length; n++) {var r = e[n], i = r.event;@@ -6746,7 +12467,7 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrtry {a(i);} catch (e) {- xi(e);+ gi(e);}i.currentTarget = null, a = c;}@@ -6756,34 +12477,34 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrtry {a(i);} catch (e) {- xi(e);+ gi(e);}i.currentTarget = null, a = c;}}}}- function Q(e, t) {- var n = t[kt];- n === void 0 && (n = t[kt] = /* @__PURE__ */ new Set());+ function $(e, t) {+ var n = t[xt];+ n === void 0 && (n = t[xt] = /* @__PURE__ */ new Set());var r = e + "__bubble";- n.has(r) || (Gf(t, e, 2, !1), n.add(r));+ n.has(r) || (Wf(t, e, 2, !1), n.add(r));}- function Hf(e, t, n) {+ function Vf(e, t, n) {var r = 0;- t && (r |= 4), Gf(n, e, r, t);+ t && (r |= 4), Wf(n, e, r, t);}- var Uf = "_reactListening" + Math.random().toString(36).slice(2);- function Wf(e) {- if (!e[Uf]) {- e[Uf] = !0, Ht.forEach(function(t) {- t !== "selectionchange" && (Bf.has(t) || Hf(t, !1, e), Hf(t, !0, e));+ var Hf = "_reactListening" + Math.random().toString(36).slice(2);+ function Uf(e) {+ if (!e[Hf]) {+ e[Hf] = !0, Pt.forEach(function(t) {+ t !== "selectionchange" && (zf.has(t) || Vf(t, !1, e), Vf(t, !0, e));});var t = e.nodeType === 9 ? e : e.ownerDocument;- t === null || t[Uf] || (t[Uf] = !0, Hf("selectionchange", !1, t));+ t === null || t[Hf] || (t[Hf] = !0, Vf("selectionchange", !1, t));}}- function Gf(e, t, n, r) {+ function Wf(e, t, n, r) {switch (Ch(t)) {case 2:var i = _h;@@ -6793,12 +12514,12 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrbreak;default: i = yh;}- n = i.bind(null, t, n, e), i = void 0, !kn || t !== "touchstart" && t !== "touchmove" && t !== "wheel" || (i = !0), r ? i === void 0 ? e.addEventListener(t, n, !0) : e.addEventListener(t, n, {+ n = i.bind(null, t, n, e), i = void 0, !wn || t !== "touchstart" && t !== "touchmove" && t !== "wheel" || (i = !0), r ? i === void 0 ? e.addEventListener(t, n, !0) : e.addEventListener(t, n, {capture: !0,passive: i}) : i === void 0 ? e.addEventListener(t, n, !1) : e.addEventListener(t, n, { passive: i });}- function Kf(e, t, n, r, i) {+ function Gf(e, t, n, r, i) {var a = r;if (!(t & 1) && !(t & 2) && r !== null) a: for (;;) {if (r === null) return;@@ -6812,7 +12533,7 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrs = s.return;}for (; c !== null;) {- if (s = It(c), s === null) return;+ if (s = Ot(c), s === null) return;if (l = s.tag, l === 5 || l === 6 || l === 26 || l === 27) {r = a = s;continue a;@@ -6822,27 +12543,27 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr}r = r.return;}- En(function() {- var r = a, i = xn(n), s = [];+ xn(function() {+ var r = a, i = gn(n), s = [];a: {- var c = mi.get(e);+ var c = li.get(e);if (c !== void 0) {- var l = Bn, u = e;+ var l = Fn, u = e;switch (e) {- case "keypress": if (Fn(n) === 0) break a;+ case "keypress": if (An(n) === 0) break a;case "keydown":case "keyup":- l = ir;+ l = $n;break;case "focusin":- u = "focus", l = Yn;+ u = "focus", l = Wn;break;case "focusout":- u = "blur", l = Yn;+ u = "blur", l = Wn;break;case "beforeblur":case "afterblur":- l = Yn;+ l = Wn;break;case "click": if (n.button === 2) break a;case "auxclick":@@ -6853,7 +12574,7 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrcase "mouseout":case "mouseover":case "contextmenu":- l = qn;+ l = Hn;break;case "drag":case "dragend":@@ -6863,33 +12584,33 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrcase "dragover":case "dragstart":case "drop":- l = Jn;+ l = Un;break;case "touchcancel":case "touchend":case "touchmove":case "touchstart":- l = sr;+ l = nr;break;- case si:- case ci:- case li:- l = Xn;+ case ni:+ case ri:+ case ii:+ l = Gn;break;- case pi:- l = cr;+ case ci:+ l = rr;break;case "scroll":case "scrollend":- l = Hn;+ l = Ln;break;case "wheel":- l = lr;+ l = ir;break;case "copy":case "cut":case "paste":- l = Zn;+ l = Kn;break;case "gotpointercapture":case "lostpointercapture":@@ -6899,19 +12620,19 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrcase "pointerout":case "pointerover":case "pointerup":- l = ar;+ l = er;break;case "submit":- l = or;+ l = tr;break;case "toggle":- case "beforetoggle": l = ur;+ case "beforetoggle": l = ar;}var d = !!(t & 4), f = !d && (e === "scroll" || e === "scrollend"), p = d ? c === null ? null : c + "Capture" : c;d = [];for (var m = r, h; m !== null;) {var g = m;- if (h = g.stateNode, g = g.tag, g !== 5 && g !== 26 && g !== 27 || h === null || p === null || (g = Dn(m, p), g != null && d.push(qf(m, g, h))), f) break;+ if (h = g.stateNode, g = g.tag, g !== 5 && g !== 26 && g !== 27 || h === null || p === null || (g = Sn(m, p), g != null && d.push(Kf(m, g, h))), f) break;m = m.return;}0 < d.length && (c = new l(c, u, null, n, i), s.push({@@ -6922,45 +12643,45 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr}if (!(t & 7)) {a: {- if (l = e === "mouseover" || e === "pointerover", c = e === "mouseout" || e === "pointerout", l && n !== R && (u = n.relatedTarget || n.fromElement) && (It(u) || u[Ot])) break a;- (c || l) && (u = i.window === i ? i : (l = i.ownerDocument) ? l.defaultView || l.parentWindow : window, c ? (l = n.relatedTarget || n.toElement, c = r, l = l ? It(l) : null, l !== null && (f = o(l), d = l.tag, l !== f || d !== 5 && d !== 27 && d !== 6) && (l = null)) : (c = null, l = r), c !== l && (d = qn, g = "onMouseLeave", p = "onMouseEnter", m = "mouse", (e === "pointerout" || e === "pointerover") && (d = ar, g = "onPointerLeave", p = "onPointerEnter", m = "pointer"), f = c == null ? u : Rt(c), h = l == null ? u : Rt(l), u = new d(g, m + "leave", c, n, i), u.target = f, u.relatedTarget = h, g = null, It(i) === r && (d = new d(p, m + "enter", l, n, i), d.target = h, d.relatedTarget = f, g = d), f = g, d = c && l ? te(c, l, Yf) : null, c !== null && Xf(s, u, c, d, !1), l !== null && f !== null && Xf(s, f, l, d, !0)));+ if (l = e === "mouseover" || e === "pointerover", c = e === "mouseout" || e === "pointerout", l && n !== hn && (u = n.relatedTarget || n.fromElement) && (Ot(u) || u[bt])) break a;+ (c || l) && (u = i.window === i ? i : (l = i.ownerDocument) ? l.defaultView || l.parentWindow : window, c ? (l = n.relatedTarget || n.toElement, c = r, l = l ? Ot(l) : null, l !== null && (f = o(l), d = l.tag, l !== f || d !== 5 && d !== 27 && d !== 6) && (l = null)) : (c = null, l = r), c !== l && (d = Hn, g = "onMouseLeave", p = "onMouseEnter", m = "mouse", (e === "pointerout" || e === "pointerover") && (d = er, g = "onPointerLeave", p = "onPointerEnter", m = "pointer"), f = c == null ? u : At(c), h = l == null ? u : At(l), u = new d(g, m + "leave", c, n, i), u.target = f, u.relatedTarget = h, g = null, Ot(i) === r && (d = new d(p, m + "enter", l, n, i), d.target = h, d.relatedTarget = f, g = d), f = g, d = c && l ? w(c, l, Jf) : null, c !== null && Yf(s, u, c, d, !1), l !== null && f !== null && Yf(s, f, l, d, !0)));}a: {- if (c = r ? Rt(r) : window, l = c.nodeName && c.nodeName.toLowerCase(), l === "select" || l === "input" && c.type === "file") var _ = Ar;- else if (wr(c)) {- if (jr) _ = Br;+ if (c = r ? At(r) : window, l = c.nodeName && c.nodeName.toLowerCase(), l === "select" || l === "input" && c.type === "file") var _ = Tr;+ else if (yr(c)) {+ if (Er) _ = Fr;else {- _ = Rr;- var v = Lr;+ _ = Nr;+ var v = Mr;}- } else l = c.nodeName, !l || l.toLowerCase() !== "input" || c.type !== "checkbox" && c.type !== "radio" ? r && _n(r.elementType) && (_ = Ar) : _ = zr;+ } else l = c.nodeName, !l || l.toLowerCase() !== "input" || c.type !== "checkbox" && c.type !== "radio" ? r && ln(r.elementType) && (_ = Tr) : _ = Pr;if (_ &&= _(e, r)) {- Tr(s, _, n, i);+ br(s, _, n, i);break a;}v && v(e, c, r);}- switch (v = r ? Rt(r) : window, e) {+ switch (v = r ? At(r) : window, e) {case "focusin":- (wr(v) || v.contentEditable === "true") && (Zr = v, Qr = r, $r = null);+ (yr(v) || v.contentEditable === "true") && (Kr = v, qr = r, Jr = null);break;case "focusout":- $r = Qr = Zr = null;+ Jr = qr = Kr = null;break;case "mousedown":- ei = !0;+ Yr = !0;break;case "contextmenu":case "mouseup":case "dragend":- ei = !1, ti(s, n, i);+ Yr = !1, Xr(s, n, i);break;- case "selectionchange": if (Xr) break;+ case "selectionchange": if (Gr) break;case "keydown":- case "keyup": ti(s, n, i);+ case "keyup": Xr(s, n, i);}var y;- if (fr) b: {+ if (sr) b: {switch (e) {case "compositionstart":var b = "onCompositionStart";@@ -6974,83 +12695,83 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr}b = void 0;}- else br ? vr(e, n) && (b = "onCompositionEnd") : e === "keydown" && n.keyCode === 229 && (b = "onCompositionStart");- b && (hr && n.locale !== "ko" && (br || b !== "onCompositionStart" ? b === "onCompositionEnd" && br && (y = Pn()) : (jn = i, Mn = "value" in jn ? jn.value : jn.textContent, br = !0)), v = Jf(r, b), 0 < v.length && (b = new Qn(b, e, null, n, i), s.push({+ else hr ? pr(e, n) && (b = "onCompositionEnd") : e === "keydown" && n.keyCode === 229 && (b = "onCompositionStart");+ b && (ur && n.locale !== "ko" && (hr || b !== "onCompositionStart" ? b === "onCompositionEnd" && hr && (y = kn()) : (En = i, Dn = "value" in En ? En.value : En.textContent, hr = !0)), v = qf(r, b), 0 < v.length && (b = new qn(b, e, null, n, i), s.push({event: b,listeners: v- }), y ? b.data = y : (y = yr(n), y !== null && (b.data = y)))), (y = mr ? xr(e, n) : Sr(e, n)) && (b = Jf(r, "onBeforeInput"), 0 < b.length && (v = new Qn("onBeforeInput", "beforeinput", null, n, i), s.push({+ }), y ? b.data = y : (y = mr(n), y !== null && (b.data = y)))), (y = lr ? gr(e, n) : _r(e, n)) && (b = qf(r, "onBeforeInput"), 0 < b.length && (v = new qn("onBeforeInput", "beforeinput", null, n, i), s.push({event: v,listeners: b- }), v.data = y)), If(s, e, r, n, i);+ }), v.data = y)), Ff(s, e, r, n, i);}- Vf(s, t);+ Bf(s, t);});}- function qf(e, t, n) {+ function Kf(e, t, n) {return {instance: e,listener: t,currentTarget: n};}- function Jf(e, t) {+ function qf(e, t) {for (var n = t + "Capture", r = []; e !== null;) {var i = e, a = i.stateNode;- if (i = i.tag, i !== 5 && i !== 26 && i !== 27 || a === null || (i = Dn(e, n), i != null && r.unshift(qf(e, i, a)), i = Dn(e, t), i != null && r.push(qf(e, i, a))), e.tag === 3) return r;+ if (i = i.tag, i !== 5 && i !== 26 && i !== 27 || a === null || (i = Sn(e, n), i != null && r.unshift(Kf(e, i, a)), i = Sn(e, t), i != null && r.push(Kf(e, i, a))), e.tag === 3) return r;e = e.return;}return [];}- function Yf(e) {+ function Jf(e) {if (e === null) return null;doe = e.return;while (e && e.tag !== 5 && e.tag !== 27);return e || null;}- function Xf(e, t, n, r, i) {+ function Yf(e, t, n, r, i) {for (var a = t._reactName, o = []; n !== null && n !== r;) {var s = n, c = s.alternate, l = s.stateNode;if (s = s.tag, c !== null && c === r) break;- s !== 5 && s !== 26 && s !== 27 || l === null || (c = l, i ? (l = Dn(n, a), l != null && o.unshift(qf(n, l, c))) : i || (l = Dn(n, a), l != null && o.push(qf(n, l, c)))), n = n.return;+ s !== 5 && s !== 26 && s !== 27 || l === null || (c = l, i ? (l = Sn(n, a), l != null && o.unshift(Kf(n, l, c))) : i || (l = Sn(n, a), l != null && o.push(Kf(n, l, c)))), n = n.return;}o.length !== 0 && e.push({event: t,listeners: o});}- var Zf = /\r\n?/g, Qf = /\u0000|\uFFFD/g;- function $f(e) {- return (typeof e == "string" ? e : "" + e).replace(Zf, "\n").replace(Qf, "");+ var Xf = /\r\n?/g, Zf = /\u0000|\uFFFD/g;+ function Qf(e) {+ return (typeof e == "string" ? e : "" + e).replace(Xf, "\n").replace(Zf, "");}- function ep(e, t) {- return t = $f(t), $f(e) === t;+ function $f(e, t) {+ return t = Qf(t), Qf(e) === t;}- function $(e, t, n, r, a, o) {+ function ep(e, t, n, r, a, o) {switch (n) {case "children":- if (typeof r == "string") t === "body" || t === "textarea" && r === "" || pn(e, r);- else if (typeof r == "number" || typeof r == "bigint") t !== "body" && pn(e, "" + r);+ if (typeof r == "string") t === "body" || t === "textarea" && r === "" || an(e, r);+ else if (typeof r == "number" || typeof r == "bigint") t !== "body" && an(e, "" + r);else return;break;case "className":- Qt(e, "class", r);+ Ut(e, "class", r);break;case "tabIndex":- Qt(e, "tabindex", r);+ Ut(e, "tabindex", r);break;case "dir":case "role":case "viewBox":case "width":case "height":- Qt(e, n, r);+ Ut(e, n, r);break;case "style":- gn(e, r, o);+ cn(e, r, o);return;case "data": if (t !== "object") {- Qt(e, "data", r);+ Ut(e, "data", r);break;}case "src":@@ -7063,7 +12784,7 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescre.removeAttribute(n);break;}- r = L(r), e.setAttribute(n, r);+ r = pn(r), e.setAttribute(n, r);break;case "action":case "formAction":@@ -7071,20 +12792,20 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescre.setAttribute(n, "javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break;}- if (typeof o == "function" && (n === "formAction" ? (t !== "input" && $(e, t, "name", a.name, a, null), $(e, t, "formEncType", a.formEncType, a, null), $(e, t, "formMethod", a.formMethod, a, null), $(e, t, "formTarget", a.formTarget, a, null)) : ($(e, t, "encType", a.encType, a, null), $(e, t, "method", a.method, a, null), $(e, t, "target", a.target, a, null))), r == null || typeof r == "symbol" || typeof r == "boolean") {+ if (typeof o == "function" && (n === "formAction" ? (t !== "input" && ep(e, t, "name", a.name, a, null), ep(e, t, "formEncType", a.formEncType, a, null), ep(e, t, "formMethod", a.formMethod, a, null), ep(e, t, "formTarget", a.formTarget, a, null)) : (ep(e, t, "encType", a.encType, a, null), ep(e, t, "method", a.method, a, null), ep(e, t, "target", a.target, a, null))), r == null || typeof r == "symbol" || typeof r == "boolean") {e.removeAttribute(n);break;}- r = L(r), e.setAttribute(n, r);+ r = pn(r), e.setAttribute(n, r);break;case "onClick":- r != null && (e.onclick = bn);+ r != null && (e.onclick = mn);return;case "onScroll":- r != null && Q("scroll", e);+ r != null && $("scroll", e);return;case "onScrollEnd":- r != null && Q("scrollend", e);+ r != null && $("scrollend", e);return;case "dangerouslySetInnerHTML":if (r != null) {@@ -7113,7 +12834,7 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescre.removeAttribute("xlink:href");break;}- n = L(r), e.setAttributeNS("http://www.w3.org/1999/xlink", "xlink:href", n);+ n = pn(r), e.setAttributeNS("http://www.w3.org/1999/xlink", "xlink:href", n);break;case "contentEditable":case "spellCheck":@@ -7166,49 +12887,49 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrr == null || typeof r == "function" || typeof r == "symbol" || isNaN(r) ? e.removeAttribute(n) : e.setAttribute(n, r);break;case "popover":- Q("beforetoggle", e), Q("toggle", e), Zt(e, "popover", r);+ $("beforetoggle", e), $("toggle", e), Ht(e, "popover", r);break;case "xlinkActuate":- $t(e, "http://www.w3.org/1999/xlink", "xlink:actuate", r);+ Wt(e, "http://www.w3.org/1999/xlink", "xlink:actuate", r);break;case "xlinkArcrole":- $t(e, "http://www.w3.org/1999/xlink", "xlink:arcrole", r);+ Wt(e, "http://www.w3.org/1999/xlink", "xlink:arcrole", r);break;case "xlinkRole":- $t(e, "http://www.w3.org/1999/xlink", "xlink:role", r);+ Wt(e, "http://www.w3.org/1999/xlink", "xlink:role", r);break;case "xlinkShow":- $t(e, "http://www.w3.org/1999/xlink", "xlink:show", r);+ Wt(e, "http://www.w3.org/1999/xlink", "xlink:show", r);break;case "xlinkTitle":- $t(e, "http://www.w3.org/1999/xlink", "xlink:title", r);+ Wt(e, "http://www.w3.org/1999/xlink", "xlink:title", r);break;case "xlinkType":- $t(e, "http://www.w3.org/1999/xlink", "xlink:type", r);+ Wt(e, "http://www.w3.org/1999/xlink", "xlink:type", r);break;case "xmlBase":- $t(e, "http://www.w3.org/XML/1998/namespace", "xml:base", r);+ Wt(e, "http://www.w3.org/XML/1998/namespace", "xml:base", r);break;case "xmlLang":- $t(e, "http://www.w3.org/XML/1998/namespace", "xml:lang", r);+ Wt(e, "http://www.w3.org/XML/1998/namespace", "xml:lang", r);break;case "xmlSpace":- $t(e, "http://www.w3.org/XML/1998/namespace", "xml:space", r);+ Wt(e, "http://www.w3.org/XML/1998/namespace", "xml:space", r);break;case "is":- Zt(e, "is", r);+ Ht(e, "is", r);break;case "innerText":case "textContent": return;- default: if (!(2 < n.length) || n[0] !== "o" && n[0] !== "O" || n[1] !== "n" && n[1] !== "N") n = vn.get(n) || n, Zt(e, n, r);+ default: if (!(2 < n.length) || n[0] !== "o" && n[0] !== "O" || n[1] !== "n" && n[1] !== "N") n = un.get(n) || n, Ht(e, n, r);else return;}- F = !0;+ H = !0;}function tp(e, t, n, r, a, o) {switch (n) {case "style":- gn(e, r, o);+ cn(e, r, o);return;case "dangerouslySetInnerHTML":if (r != null) {@@ -7220,18 +12941,18 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr}break;case "children":- if (typeof r == "string") pn(e, r);- else if (typeof r == "number" || typeof r == "bigint") pn(e, "" + r);+ if (typeof r == "string") an(e, r);+ else if (typeof r == "number" || typeof r == "bigint") an(e, "" + r);else return;break;case "onScroll":- r != null && Q("scroll", e);+ r != null && $("scroll", e);return;case "onScrollEnd":- r != null && Q("scrollend", e);+ r != null && $("scrollend", e);return;case "onClick":- r != null && (e.onclick = bn);+ r != null && (e.onclick = mn);return;case "suppressContentEditableWarning":case "suppressHydrationWarning":@@ -7240,16 +12961,16 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrcase "innerText":case "textContent": return;default:- if (!Ut.hasOwnProperty(n)) a: {- if (n[0] === "o" && n[1] === "n" && (a = n.endsWith("Capture"), o = n.slice(2, a ? n.length - 7 : void 0), t = e[Dt] || null, t = t == null ? null : t[n], typeof t == "function" && e.removeEventListener(o, t, a), typeof r == "function")) {+ if (!Ft.hasOwnProperty(n)) a: {+ if (n[0] === "o" && n[1] === "n" && (a = n.endsWith("Capture"), o = n.slice(2, a ? n.length - 7 : void 0), t = e[yt] || null, t = t == null ? null : t[n], typeof t == "function" && e.removeEventListener(o, t, a), typeof r == "function")) {typeof t != "function" && t !== null && (n in e ? e[n] = null : e.hasAttribute(n) && e.removeAttribute(n)), e.addEventListener(o, r, a);break a;}- F = !0, n in e ? e[n] = r : !0 === r ? e.setAttribute(n, "") : Zt(e, n, r);+ H = !0, n in e ? e[n] = r : !0 === r ? e.setAttribute(n, "") : Ht(e, n, r);}return;}- F = !0;+ H = !0;}function np(e, t, n) {switch (t) {@@ -7262,7 +12983,7 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrcase "p":case "li": break;case "img":- Q("error", e), Q("load", e);+ $("error", e), $("load", e);var r = !1, a = !1, o;for (o in n) if (n.hasOwnProperty(o)) {var s = n[o];@@ -7275,13 +12996,13 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrbreak;case "children":case "dangerouslySetInnerHTML": throw Error(i(137, t));- default: $(e, t, o, s, n, null);+ default: ep(e, t, o, s, n, null);}}- a && $(e, t, "srcSet", n.srcSet, n, null), r && $(e, t, "src", n.src, n, null);+ a && ep(e, t, "srcSet", n.srcSet, n, null), r && ep(e, t, "src", n.src, n, null);return;case "input":- Q("invalid", e);+ $("invalid", e);var c = o = s = a = null, l = null, u = null;for (r in n) if (n.hasOwnProperty(r)) {var d = n[r];@@ -7308,13 +13029,13 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrcase "dangerouslySetInnerHTML":if (d != null) throw Error(i(137, t));break;- default: $(e, t, r, d, n, null);+ default: ep(e, t, r, d, n, null);}}- cn(e, o, c, l, u, s, a, !1);+ $t(e, o, c, l, u, s, a, !1);return;case "select":- for (a in Q("invalid", e), r = s = o = null, n) if (n.hasOwnProperty(a) && (c = n[a], c != null)) switch (a) {+ for (a in $("invalid", e), r = s = o = null, n) if (n.hasOwnProperty(a) && (c = n[a], c != null)) switch (a) {case "value":o = c;break;@@ -7322,12 +13043,12 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrs = c;break;case "multiple": r = c;- default: $(e, t, a, c, n, null);+ default: ep(e, t, a, c, n, null);}- t = o, n = s, e.multiple = !!r, t == null ? n != null && un(e, !!r, n, !0) : un(e, !!r, t, !1);+ t = o, n = s, e.multiple = !!r, t == null ? n != null && tn(e, !!r, n, !0) : tn(e, !!r, t, !1);return;case "textarea":- for (s in Q("invalid", e), o = a = r = null, n) if (n.hasOwnProperty(s) && (c = n[s], c != null)) switch (s) {+ for (s in $("invalid", e), o = a = r = null, n) if (n.hasOwnProperty(s) && (c = n[s], c != null)) switch (s) {case "value":r = c;break;@@ -7340,38 +13061,38 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrcase "dangerouslySetInnerHTML":if (c != null) throw Error(i(91));break;- default: $(e, t, s, c, n, null);+ default: ep(e, t, s, c, n, null);}- fn(e, r, a, o);+ rn(e, r, a, o);return;case "option":for (l in n) if (n.hasOwnProperty(l) && (r = n[l], r != null)) switch (l) {case "selected":e.selected = r && typeof r != "function" && typeof r != "symbol";break;- default: $(e, t, l, r, n, null);+ default: ep(e, t, l, r, n, null);}return;case "dialog":- Q("beforetoggle", e), Q("toggle", e), Q("cancel", e), Q("close", e);+ $("beforetoggle", e), $("toggle", e), $("cancel", e), $("close", e);break;case "iframe":case "object":- Q("load", e);+ $("load", e);break;case "video":case "audio":- for (r = 0; r < zf.length; r++) Q(zf[r], e);+ for (r = 0; r < Rf.length; r++) $(Rf[r], e);break;case "image":- Q("error", e), Q("load", e);+ $("error", e), $("load", e);break;case "details":- Q("toggle", e);+ $("toggle", e);break;case "embed":case "source":- case "link": Q("error", e), Q("load", e);+ case "link": $("error", e), $("load", e);case "area":case "base":case "br":@@ -7386,15 +13107,15 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrfor (u in n) if (n.hasOwnProperty(u) && (r = n[u], r != null)) switch (u) {case "children":case "dangerouslySetInnerHTML": throw Error(i(137, t));- default: $(e, t, u, r, n, null);+ default: ep(e, t, u, r, n, null);}return;- default: if (_n(t)) {+ default: if (ln(t)) {for (d in n) n.hasOwnProperty(d) && (r = n[d], r !== void 0 && tp(e, t, d, r, n, void 0));return;}}- for (c in n) n.hasOwnProperty(c) && (r = n[c], r != null && $(e, t, c, r, n, null));+ for (c in n) n.hasOwnProperty(c) && (r = n[c], r != null && ep(e, t, c, r, n, null));}var rp = {};function ip(e, t, n, r) {@@ -7415,90 +13136,90 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrcase "checked": break;case "value": break;case "defaultValue": l = f;- default: r.hasOwnProperty(m) || $(e, t, m, null, r, f);+ default: r.hasOwnProperty(m) || ep(e, t, m, null, r, f);}}for (var p in r) {var m = r[p];if (f = n[p], r.hasOwnProperty(p) && (m != null || f != null)) switch (p) {case "type":- m !== f && (F = !0), o = m;+ m !== f && (H = !0), o = m;break;case "name":- m !== f && (F = !0), a = m;+ m !== f && (H = !0), a = m;break;case "checked":- m !== f && (F = !0), u = m;+ m !== f && (H = !0), u = m;break;case "defaultChecked":- m !== f && (F = !0), d = m;+ m !== f && (H = !0), d = m;break;case "value":- m !== f && (F = !0), s = m;+ m !== f && (H = !0), s = m;break;case "defaultValue":- m !== f && (F = !0), c = m;+ m !== f && (H = !0), c = m;break;case "children":case "dangerouslySetInnerHTML":if (m != null) throw Error(i(137, t));break;- default: m !== f && $(e, t, p, m, r, f);+ default: m !== f && ep(e, t, p, m, r, f);}}- sn(e, s, c, l, u, d, o, a);+ Qt(e, s, c, l, u, d, o, a);return;case "select":for (o in m = s = c = p = null, n) if (l = n[o], n.hasOwnProperty(o) && l != null) switch (o) {case "value": break;case "multiple": m = l;- default: r.hasOwnProperty(o) || $(e, t, o, null, r, l);+ default: r.hasOwnProperty(o) || ep(e, t, o, null, r, l);}for (a in r) if (o = r[a], l = n[a], r.hasOwnProperty(a) && (o != null || l != null)) switch (a) {case "value":- o !== l && (F = !0), p = o;+ o !== l && (H = !0), p = o;break;case "defaultValue":- o !== l && (F = !0), c = o;+ o !== l && (H = !0), c = o;break;- case "multiple": o !== l && (F = !0), s = o;- default: o !== l && $(e, t, a, o, r, l);+ case "multiple": o !== l && (H = !0), s = o;+ default: o !== l && ep(e, t, a, o, r, l);}- t = c, n = s, r = m, p == null ? !!r != !!n && (t == null ? un(e, !!n, n ? [] : "", !1) : un(e, !!n, t, !0)) : un(e, !!n, p, !1);+ t = c, n = s, r = m, p == null ? !!r != !!n && (t == null ? tn(e, !!n, n ? [] : "", !1) : tn(e, !!n, t, !0)) : tn(e, !!n, p, !1);return;case "textarea":for (c in m = p = null, n) if (a = n[c], n.hasOwnProperty(c) && a != null && !r.hasOwnProperty(c)) switch (c) {case "value": break;case "children": break;- default: $(e, t, c, null, r, a);+ default: ep(e, t, c, null, r, a);}for (s in r) if (a = r[s], o = n[s], r.hasOwnProperty(s) && (a != null || o != null)) switch (s) {case "value":- a !== o && (F = !0), p = a;+ a !== o && (H = !0), p = a;break;case "defaultValue":- a !== o && (F = !0), m = a;+ a !== o && (H = !0), m = a;break;case "children": break;case "dangerouslySetInnerHTML":if (a != null) throw Error(i(91));break;- default: a !== o && $(e, t, s, a, r, o);+ default: a !== o && ep(e, t, s, a, r, o);}- dn(e, p, m);+ nn(e, p, m);return;case "option":for (var h in n) if (p = n[h], n.hasOwnProperty(h) && p != null && !r.hasOwnProperty(h)) switch (h) {case "selected":e.selected = !1;break;- default: $(e, t, h, null, r, p);+ default: ep(e, t, h, null, r, p);}for (l in r) if (p = r[l], m = n[l], r.hasOwnProperty(l) && p !== m && (p != null || m != null)) switch (l) {case "selected":- p !== m && (F = !0), e.selected = p && typeof p != "function" && typeof p != "symbol";+ p !== m && (H = !0), e.selected = p && typeof p != "function" && typeof p != "symbol";break;- default: $(e, t, l, p, r, m);+ default: ep(e, t, l, p, r, m);}return;case "img":@@ -7516,23 +13237,23 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrcase "track":case "wbr":case "menuitem":- for (var g in n) p = n[g], n.hasOwnProperty(g) && p != null && !r.hasOwnProperty(g) && $(e, t, g, null, r, p);+ for (var g in n) p = n[g], n.hasOwnProperty(g) && p != null && !r.hasOwnProperty(g) && ep(e, t, g, null, r, p);for (u in r) if (p = r[u], m = n[u], r.hasOwnProperty(u) && p !== m && (p != null || m != null)) switch (u) {case "children":case "dangerouslySetInnerHTML":if (p != null) throw Error(i(137, t));break;- default: $(e, t, u, p, r, m);+ default: ep(e, t, u, p, r, m);}return;- default: if (_n(t)) {+ default: if (ln(t)) {for (var _ in n) p = n[_], n.hasOwnProperty(_) && p !== void 0 && !r.hasOwnProperty(_) && tp(e, t, _, void 0, r, p);for (d in r) p = r[d], m = n[d], !r.hasOwnProperty(d) || p === m || p === void 0 && m === void 0 || tp(e, t, d, p, r, m);return;}}- for (var v in n) p = n[v], n.hasOwnProperty(v) && p != null && !r.hasOwnProperty(v) && $(e, t, v, null, r, p);- for (f in r) p = r[f], m = n[f], !r.hasOwnProperty(f) || p === m || p == null && m == null || $(e, t, f, p, r, m);+ for (var v in n) p = n[v], n.hasOwnProperty(v) && p != null && !r.hasOwnProperty(v) && ep(e, t, v, null, r, p);+ for (f in r) p = r[f], m = n[f], !r.hasOwnProperty(f) || p === m || p == null && m == null || ep(e, t, f, p, r, m);}function ap(e) {switch (e) {@@ -7584,7 +13305,7 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrreturn e === 1 && t === "foreignObject" ? 0 : e;}function fp(e, t, n, r) {- return n = lp(n).createElement(e), n[Et] = r, n[Dt] = t, np(n, e, t), Bt(n), n;+ return n = lp(n).createElement(e), n[vt] = r, n[yt] = t, np(n, e, t), Mt(n), n;}function pp(e, t) {return e === "textarea" || e === "noscript" || typeof t.children == "string" || typeof t.children == "number" || typeof t.children == "bigint" || typeof t.dangerouslySetInnerHTML == "object" && t.dangerouslySetInnerHTML !== null && t.dangerouslySetInnerHTML.__html != null;@@ -7622,7 +13343,7 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrn = e.ownerDocument.head, _m(n);for (var a = n.firstChild; a;) {var o = a.nextSibling, s = a.nodeName;- a[Nt] || s === "SCRIPT" || s === "STYLE" || s === "LINK" && a.rel.toLowerCase() === "stylesheet" || n.removeChild(a), a = o;+ a[Tt] || s === "SCRIPT" || s === "STYLE" || s === "LINK" && a.rel.toLowerCase() === "stylesheet" || n.removeChild(a), a = o;}} else n === "body" && _m(e.ownerDocument.body);}@@ -7795,13 +13516,13 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescroptionsOrUseCapture: n,attachedListener: s,cleanup: i- }), m(this._fragmentFiber.child, !1, Ip, e, s, r);+ }), f(this._fragmentFiber.child, !1, Ip, e, s, r);}this._eventListeners = a;}};function Ip(e, t, n, r) {- return b(e).addEventListener(t, n, r), !1;+ return _(e).addEventListener(t, n, r), !1;}Fp.prototype.removeEventListener = function(e, t, n) {var r = this._eventListeners;@@ -7809,11 +13530,11 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrvar i = r[t];n = i.attachedListener;var a = i.cleanup;- i = Rp(i.optionsOrUseCapture), m(this._fragmentFiber.child, !1, Lp, e, n, i), r.splice(t, 1), a !== null && a();+ i = Rp(i.optionsOrUseCapture), f(this._fragmentFiber.child, !1, Lp, e, n, i), r.splice(t, 1), a !== null && a();}};function Lp(e, t, n, r) {- return b(e).removeEventListener(t, n, r), !1;+ return _(e).removeEventListener(t, n, r), !1;}function Rp(e) {return e != null && typeof e != "boolean" && (!0 === e.once || e.signal instanceof AbortSignal) ? {@@ -7834,9 +13555,9 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrreturn -1;}Fp.prototype.dispatchEvent = function(e) {- var t = g(this._fragmentFiber);+ var t = p(this._fragmentFiber);if (t === null) return !0;- t = b(t);+ t = _(t);var n = this._eventListeners;if (n !== null && 0 < n.length || !e.bubbles) {var r = t.nodeType === 9 ? t.createComment("") : document.createTextNode("");@@ -7849,36 +13570,36 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr}return t.dispatchEvent(e);}, Fp.prototype.focus = function(e) {- m(this._fragmentFiber.child, !0, Vp, e, void 0, void 0);+ f(this._fragmentFiber.child, !0, Vp, e, void 0, void 0);};function Vp(e, t) {- return e.tag !== 6 && (e = b(e), pm(e, t));+ return e.tag !== 6 && (e = _(e), pm(e, t));}Fp.prototype.focusLast = function(e) {var t = [];- m(this._fragmentFiber.child, !0, Hp, t, void 0, void 0);+ f(this._fragmentFiber.child, !0, Hp, t, void 0, void 0);for (var n = t.length - 1; 0 <= n && !Vp(t[n], e); n--);};function Hp(e, t) {return t.push(e), !1;}Fp.prototype.blur = function() {- var e = g(this._fragmentFiber);- e !== null && (e = b(e), e = lp(e).activeElement, e !== null && m(this._fragmentFiber.child, !1, Up, e, void 0, void 0));+ var e = p(this._fragmentFiber);+ e !== null && (e = _(e), e = lp(e).activeElement, e !== null && f(this._fragmentFiber.child, !1, Up, e, void 0, void 0));};function Up(e, t) {- return e.tag !== 6 && (e = b(e), e === t || e.contains(t) ? (t.blur(), !0) : !1);+ return e.tag !== 6 && (e = _(e), e === t || e.contains(t) ? (t.blur(), !0) : !1);}Fp.prototype.observeUsing = function(e) {- this._observers === null && (this._observers = /* @__PURE__ */ new Set()), this._observers.add(e), m(this._fragmentFiber.child, !1, Wp, e, void 0, void 0);+ this._observers === null && (this._observers = /* @__PURE__ */ new Set()), this._observers.add(e), f(this._fragmentFiber.child, !1, Wp, e, void 0, void 0);};function Wp(e, t) {- return e.tag !== 6 && (e = b(e), t.observe(e), !1);+ return e.tag !== 6 && (e = _(e), t.observe(e), !1);}Fp.prototype.unobserveUsing = function(e) {var t = this._observers;if (t !== null && t.has(e)) {- t.delete(e), m(this._fragmentFiber.child, !1, Gp, e, void 0, void 0);+ t.delete(e), f(this._fragmentFiber.child, !1, Gp, e, void 0, void 0);for (var n = t = 0; n < Kp.length; n++) {var r = Kp[n];r.fragmentInstance === this && r.observer === e ? e.unobserve(r.instance) : Kp[t++] = r;@@ -7887,7 +13608,7 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr}};function Gp(e, t) {- return e.tag !== 6 && (e = b(e), t.unobserve(e), !1);+ return e.tag !== 6 && (e = _(e), t.unobserve(e), !1);}var Kp = [], qp = !1;function Jp(e, t, n) {@@ -7907,27 +13628,27 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr}Fp.prototype.getClientRects = function() {var e = [];- return m(this._fragmentFiber.child, !1, Yp, e, void 0, void 0), e;+ return f(this._fragmentFiber.child, !1, Yp, e, void 0, void 0), e;};function Yp(e, t) {if (e.tag === 6) {e = e.stateNode;var n = e.ownerDocument.createRange();n.selectNodeContents(e), t.push.apply(t, n.getClientRects());- } else e = b(e), t.push.apply(t, e.getClientRects());+ } else e = _(e), t.push.apply(t, e.getClientRects());return !1;}Fp.prototype.getRootNode = function(e) {- var t = g(this._fragmentFiber);- return t === null ? this : b(t).getRootNode(e);+ var t = p(this._fragmentFiber);+ return t === null ? this : _(t).getRootNode(e);}, Fp.prototype.compareDocumentPosition = function(e) {- var t = g(this._fragmentFiber);+ var t = p(this._fragmentFiber);if (t === null) return Node.DOCUMENT_POSITION_DISCONNECTED;var n = [];- m(this._fragmentFiber.child, !1, Hp, n, void 0, void 0);- var r = b(t);+ f(this._fragmentFiber.child, !1, Hp, n, void 0, void 0);+ var r = _(t);if (n.length === 0) {- if (n = r, _(this._fragmentFiber)) {+ if (n = r, m(this._fragmentFiber)) {a: {for (t = this._fragmentFiber.return; t !== null;) {if (t.tag === 4) {@@ -7943,17 +13664,17 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr}t = this._fragmentFiber;var i = r = n.compareDocumentPosition(e);- return n === e ? i = Node.DOCUMENT_POSITION_CONTAINS : r & Node.DOCUMENT_POSITION_CONTAINED_BY && (n = v(t)[1], n === null ? i = Node.DOCUMENT_POSITION_PRECEDING : (e = b(n).compareDocumentPosition(e), i = e === 0 || e & Node.DOCUMENT_POSITION_FOLLOWING ? Node.DOCUMENT_POSITION_FOLLOWING : Node.DOCUMENT_POSITION_PRECEDING)), i |= Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC;+ return n === e ? i = Node.DOCUMENT_POSITION_CONTAINS : r & Node.DOCUMENT_POSITION_CONTAINED_BY && (n = h(t)[1], n === null ? i = Node.DOCUMENT_POSITION_PRECEDING : (e = _(n).compareDocumentPosition(e), i = e === 0 || e & Node.DOCUMENT_POSITION_FOLLOWING ? Node.DOCUMENT_POSITION_FOLLOWING : Node.DOCUMENT_POSITION_PRECEDING)), i |= Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC;}- t = b(n[0]), i = b(n[n.length - 1]);- var a = _(this._fragmentFiber) ? t.parentElement : r;+ t = _(n[0]), i = _(n[n.length - 1]);+ var a = m(this._fragmentFiber) ? t.parentElement : r;if (a == null) return Node.DOCUMENT_POSITION_DISCONNECTED;r = a.compareDocumentPosition(t) & Node.DOCUMENT_POSITION_CONTAINED_BY, a = a.compareDocumentPosition(i) & Node.DOCUMENT_POSITION_CONTAINED_BY;var o = t.compareDocumentPosition(e), s = i.compareDocumentPosition(e), c = o & Node.DOCUMENT_POSITION_CONTAINED_BY || s & Node.DOCUMENT_POSITION_CONTAINED_BY;return s = r && a && o & Node.DOCUMENT_POSITION_FOLLOWING && s & Node.DOCUMENT_POSITION_PRECEDING, t = r && t === e || a && i === e || c || s ? Node.DOCUMENT_POSITION_CONTAINED_BY : !r && t === e || !a && i === e ? Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC : o, t & Node.DOCUMENT_POSITION_DISCONNECTED || t & Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC || Xp(t, this._fragmentFiber, n[0], n[n.length - 1], e) ? t : Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC;};function Xp(e, t, n, r, i) {- var a = It(i);+ var a = Ot(i);if (e & Node.DOCUMENT_POSITION_CONTAINED_BY) {if (n = !!a) a: {for (; a !== null;) {@@ -7970,7 +13691,7 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrif (e & Node.DOCUMENT_POSITION_CONTAINS) {if (a === null) return a = i.ownerDocument, i === a || i === a.documentElement || i === a.body;a: {- for (a = t, t = g(t); a !== null;) {+ for (a = t, t = p(t); a !== null;) {if (!(a.tag !== 5 && a.tag !== 3 && a.tag !== 27 || a !== t && a.alternate !== t)) {a = !0;break a;@@ -7981,7 +13702,7 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr}return a;}- return e & Node.DOCUMENT_POSITION_PRECEDING ? ((t = !!a) && !(t = a === n) && (t = te(n, a, w), t === null ? t = !1 : (m(t, !0, ee, a, n), a = x, x = null, t = a !== null)), t) : e & Node.DOCUMENT_POSITION_FOLLOWING ? ((t = !!a) && !(t = a === r) && (t = te(r, a, w), t === null ? t = !1 : (m(t, !0, C, a, r), a = x, S = x = null, t = a !== null)), t) : !1;+ return e & Node.DOCUMENT_POSITION_PRECEDING ? ((t = !!a) && !(t = a === n) && (t = w(n, a, C), t === null ? t = !1 : (f(t, !0, b, a, n), a = v, v = null, t = a !== null)), t) : e & Node.DOCUMENT_POSITION_FOLLOWING ? ((t = !!a) && !(t = a === r) && (t = w(r, a, C), t === null ? t = !1 : (f(t, !0, x, a, r), a = v, y = v = null, t = a !== null)), t) : !1;}function Zp(e, t) {var n = e.ownerDocument.createRange();@@ -7990,16 +13711,16 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrFp.prototype.scrollIntoView = function(e) {if (typeof e == "object") throw Error(i(566));var t = [];- m(this._fragmentFiber.child, !1, Hp, t, void 0, void 0);+ f(this._fragmentFiber.child, !1, Hp, t, void 0, void 0);var n = !1 !== e;if (t.length === 0) {- var r = v(this._fragmentFiber);- if (r = n ? r[1] || r[0] || g(this._fragmentFiber) : r[0] || r[1], r === null) return;+ var r = h(this._fragmentFiber);+ if (r = n ? r[1] || r[0] || p(this._fragmentFiber) : r[0] || r[1], r === null) return;if (r.tag === 6) {- e = b(r), Zp(e, n);+ e = _(r), Zp(e, n);return;}- if (r = b(r), r.nodeType !== 9) {+ if (r = _(r), r.nodeType !== 9) {if (r.nodeType === 11) {n = "host" in r ? r.host : null, n !== null && n.scrollIntoView(e);return;@@ -8009,11 +13730,11 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr}for (r = n ? t.length - 1 : 0; r !== (n ? -1 : t.length);) {var a = t[r];- a.tag === 6 ? (a = b(a), Zp(a, n)) : b(a).scrollIntoView(e), r += n ? -1 : 1;+ a.tag === 6 ? (a = _(a), Zp(a, n)) : _(a).scrollIntoView(e), r += n ? -1 : 1;}};function Qp(e, t) {- return e = b(e), $p(e, t), !1;+ return e = _(e), $p(e, t), !1;}function $p(e, t) {e.reactFragments ??= /* @__PURE__ */ new Set(), e.reactFragments.add(t);@@ -8050,7 +13771,7 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrcase "HTML":case "HEAD":case "BODY":- nm(n), Ft(n);+ nm(n), Dt(n);continue;case "SCRIPT":case "STYLE": continue;@@ -8069,7 +13790,7 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrvar a = i.name == null ? null : "" + i.name;if (i.type === "hidden" && e.getAttribute("name") === a) return e;} else return e;- } else if (!e[Nt]) switch (t) {+ } else if (!e[Tt]) switch (t) {case "meta":if (!e.hasAttribute("itemprop")) break;return e;@@ -8191,13 +13912,13 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrfunction gm(e, t, n) {for (var r in n) {var i = n[r];- n.hasOwnProperty(r) && i != null && $(e, t, r, null, rp, i);+ n.hasOwnProperty(r) && i != null && ep(e, t, r, null, rp, i);}- n.dangerouslySetInnerHTML != null && (e.textContent = ""), e.onclick === bn && (e.onclick = null), Ft(e);+ n.dangerouslySetInnerHTML != null && (e.textContent = ""), e.onclick === mn && (e.onclick = null), Dt(e);}function _m(e) {for (var t = e.attributes; t.length;) e.removeAttributeNode(t[0]);- Ft(e);+ Dt(e);}var vm = /* @__PURE__ */ new Map(), ym = /* @__PURE__ */ new Set();function bm(e) {@@ -8207,8 +13928,8 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr}return e.nodeType === 9 ? e : e.ownerDocument;}- var xm = O.d;- O.d = {+ var xm = z.d;+ z.d = {f: Sm,r: Cm,D: Em,@@ -8220,23 +13941,23 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrM: Mm};function Sm() {- var e = xm.f(), t = zd();+ var e = xm.f(), t = Ld();return e || t;}function Cm(e) {- var t = Lt(e);- t !== null && t.tag === 5 && t.type === "form" ? rc(t) : xm.r(e);+ var t = kt(e);+ t !== null && t.tag === 5 && t.type === "form" ? $s(t) : xm.r(e);}var wm = typeof document > "u" ? null : document;function Tm(e, t, n) {var r = wm;if (r && typeof t == "string" && t) {- var i = on(t);+ var i = Zt(t);i = "link[rel=\"" + e + "\"][href=\"" + i + "\"]", typeof n == "string" && (i += "[crossorigin=\"" + n + "\"]"), ym.has(i) || (ym.add(i), e = {rel: e,crossOrigin: n,href: t- }, r.querySelector(i) === null && (t = r.createElement("link"), np(t, "link", e), Bt(t), r.head.appendChild(t)));+ }, r.querySelector(i) === null && (t = r.createElement("link"), np(t, "link", e), Mt(t), r.head.appendChild(t)));}}function Em(e) {@@ -8249,8 +13970,8 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrxm.L(e, t, n);var r = wm;if (r && e && t) {- var i = "link[rel=\"preload\"][as=\"" + on(t) + "\"]";- t === "image" && n && n.imageSrcSet ? (i += "[imagesrcset=\"" + on(n.imageSrcSet) + "\"]", typeof n.imageSizes == "string" && (i += "[imagesizes=\"" + on(n.imageSizes) + "\"]")) : i += "[href=\"" + on(e) + "\"]";+ var i = "link[rel=\"preload\"][as=\"" + Zt(t) + "\"]";+ t === "image" && n && n.imageSrcSet ? (i += "[imagesrcset=\"" + Zt(n.imageSrcSet) + "\"]", typeof n.imageSizes == "string" && (i += "[imagesizes=\"" + Zt(n.imageSizes) + "\"]")) : i += "[href=\"" + Zt(e) + "\"]";var a = i;switch (t) {case "style":@@ -8264,9 +13985,9 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescras: t}, n), vm.set(a, e), r.querySelector(i) !== null || t === "style" && r.querySelector(Fm(a)) || t === "script" && r.querySelector(zm(a))))) {var o = r.createElement("link");- np(o, "link", e), t === "style" && (o[Pt] = !0, o.onload = o.onerror = function() {- Vt(o);- }), Bt(o), r.head.appendChild(o);+ np(o, "link", e), t === "style" && (o[Et] = !0, o.onload = o.onerror = function() {+ Nt(o);+ }), Mt(o), r.head.appendChild(o);}}}@@ -8274,7 +13995,7 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrxm.m(e, t);var n = wm;if (n && e) {- var r = t && typeof t.as == "string" ? t.as : "script", i = "link[rel=\"modulepreload\"][as=\"" + on(r) + "\"][href=\"" + on(e) + "\"]", a = i;+ var r = t && typeof t.as == "string" ? t.as : "script", i = "link[rel=\"modulepreload\"][as=\"" + Zt(r) + "\"][href=\"" + Zt(e) + "\"]", a = i;switch (r) {case "audioworklet":case "paintworklet":@@ -8295,7 +14016,7 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrcase "worker":case "script": if (n.querySelector(zm(a))) return;}- r = n.createElement("link"), np(r, "link", e), Bt(r), n.head.appendChild(r);+ r = n.createElement("link"), np(r, "link", e), Mt(r), n.head.appendChild(r);}}}@@ -8303,7 +14024,7 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrxm.S(e, t, n);var r = wm;if (r && e) {- var i = zt(r).hoistableStyles, a = Pm(e);+ var i = jt(r).hoistableStyles, a = Pm(e);t ||= "default";var o = i.get(a);if (!o) {@@ -8319,7 +14040,7 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr"data-precedence": t}, n), (n = vm.get(a)) && Hm(e, n);var c = o = r.createElement("link");- Bt(c), np(c, "link", e), c._p = new Promise(function(e, t) {+ Mt(c), np(c, "link", e), c._p = new Promise(function(e, t) {c.onload = e, c.onerror = t;}), c.addEventListener("load", function() {s.loading |= 1;@@ -8340,11 +14061,11 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrxm.X(e, t);var n = wm;if (n && e) {- var r = zt(n).hoistableScripts, i = Rm(e), a = r.get(i);+ var r = jt(n).hoistableScripts, i = Rm(e), a = r.get(i);a || (a = n.querySelector(zm(i)), a || (e = T({src: e,async: !0- }, t), (t = vm.get(i)) && Um(e, t), a = n.createElement("script"), Bt(a), np(a, "link", e), n.head.appendChild(a)), a = {+ }, t), (t = vm.get(i)) && Um(e, t), a = n.createElement("script"), Mt(a), np(a, "link", e), n.head.appendChild(a)), a = {type: "script",instance: a,count: 1,@@ -8356,12 +14077,12 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrxm.M(e, t);var n = wm;if (n && e) {- var r = zt(n).hoistableScripts, i = Rm(e), a = r.get(i);+ var r = jt(n).hoistableScripts, i = Rm(e), a = r.get(i);a || (a = n.querySelector(zm(i)), a || (e = T({src: e,async: !0,type: "module"- }, t), (t = vm.get(i)) && Um(e, t), a = n.createElement("script"), Bt(a), np(a, "link", e), n.head.appendChild(a)), a = {+ }, t), (t = vm.get(i)) && Um(e, t), a = n.createElement("script"), Mt(a), np(a, "link", e), n.head.appendChild(a)), a = {type: "script",instance: a,count: 1,@@ -8370,12 +14091,12 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr}}function Nm(e, t, n, r) {- var a = (a = Ae.current) ? bm(a) : null;+ var a = (a = ve.current) ? bm(a) : null;if (!a) throw Error(i(446));switch (e) {case "meta":case "title": return null;- case "style": return typeof n.precedence == "string" && typeof n.href == "string" ? (n = Pm(n.href), t = zt(a).hoistableStyles, r = t.get(n), r || (r = {+ case "style": return typeof n.precedence == "string" && typeof n.href == "string" ? (n = Pm(n.href), t = jt(a).hoistableStyles, r = t.get(n), r || (r = {type: "style",instance: null,count: 0,@@ -8389,7 +14110,7 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrcase "link":if (n.rel === "stylesheet" && typeof n.href == "string" && typeof n.precedence == "string") {e = Pm(n.href);- var o = zt(a).hoistableStyles, s = o.get(e);+ var o = jt(a).hoistableStyles, s = o.get(e);if (s || (a = a.ownerDocument || a, s = {type: "stylesheet",instance: null,@@ -8412,7 +14133,7 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr}if (t && r !== null) throw Error(i(529, ""));return null;- case "script": return t = n.async, n = n.src, typeof n == "string" && t && typeof t != "function" && typeof t != "symbol" ? (n = Rm(n), t = zt(a).hoistableScripts, r = t.get(n), r || (r = {+ case "script": return t = n.async, n = n.src, typeof n == "string" && t && typeof t != "function" && typeof t != "symbol" ? (n = Rm(n), t = jt(a).hoistableScripts, r = t.get(n), r || (r = {type: "script",instance: null,count: 0,@@ -8427,7 +14148,7 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr}}function Pm(e) {- return "href=\"" + on(e) + "\"";+ return "href=\"" + Zt(e) + "\"";}function Fm(e) {return "link[rel=\"stylesheet\"][" + e + "]";@@ -8440,11 +14161,11 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr}function Lm(e, t, n, r) {if (t = e.querySelector("link[rel=\"preload\"][as=\"style\"][" + t + "]")) {- if (!0 !== t[Pt]) {+ if (!0 !== t[Et]) {r.loading = 1;return;}- } else t = e.createElement("link"), t[Pt] = !0, t.onload = t.onerror = Vt.bind(null, t), np(t, "link", n), Bt(t), e.head.appendChild(t);+ } else t = e.createElement("link"), t[Et] = !0, t.onload = t.onerror = Nt.bind(null, t), np(t, "link", n), Mt(t), e.head.appendChild(t);r.preload = t, t.addEventListener("load", function() {return r.loading |= 1;}), t.addEventListener("error", function() {@@ -8452,7 +14173,7 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr});}function Rm(e) {- return "[src=\"" + on(e) + "\"]";+ return "[src=\"" + Zt(e) + "\"]";}function zm(e) {return "script[async]" + e;@@ -8460,25 +14181,25 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrfunction Bm(e, t, n) {if (t.count++, t.instance === null) switch (t.type) {case "style":- var r = e.querySelector("style[data-href~=\"" + on(n.href) + "\"]");- if (r) return t.instance = r, Bt(r), r;+ var r = e.querySelector("style[data-href~=\"" + Zt(n.href) + "\"]");+ if (r) return t.instance = r, Mt(r), r;var a = T({}, n, {"data-href": n.href,"data-precedence": n.precedence,href: null,precedence: null});- return r = (e.ownerDocument || e).createElement("style"), Bt(r), np(r, "style", a), Vm(r, n.precedence, e), t.instance = r;+ return r = (e.ownerDocument || e).createElement("style"), Mt(r), np(r, "style", a), Vm(r, n.precedence, e), t.instance = r;case "stylesheet":a = Pm(n.href);var o = e.querySelector(Fm(a));- if (o) return t.state.loading |= 4, t.instance = o, Bt(o), o;- r = Im(n), (a = vm.get(a)) && Hm(r, a), o = (e.ownerDocument || e).createElement("link"), Bt(o);+ if (o) return t.state.loading |= 4, t.instance = o, Mt(o), o;+ r = Im(n), (a = vm.get(a)) && Hm(r, a), o = (e.ownerDocument || e).createElement("link"), Mt(o);var s = o;return s._p = new Promise(function(e, t) {s.onload = e, s.onerror = t;}), np(o, "link", r), t.state.loading |= 4, Vm(o, n.precedence, e), t.instance = o;- case "script": return o = Rm(n.src), (a = e.querySelector(zm(o))) ? (t.instance = a, Bt(a), a) : (r = n, (a = vm.get(o)) && (r = T({}, n), Um(r, a)), e = e.ownerDocument || e, a = e.createElement("script"), Bt(a), np(a, "link", r), e.head.appendChild(a), t.instance = a);+ case "script": return o = Rm(n.src), (a = e.querySelector(zm(o))) ? (t.instance = a, Mt(a), a) : (r = n, (a = vm.get(o)) && (r = T({}, n), Um(r, a)), e = e.ownerDocument || e, a = e.createElement("script"), Mt(a), np(a, "link", r), e.head.appendChild(a), t.instance = a);case "void": return null;default: throw Error(i(443, t.type));}@@ -8508,7 +14229,7 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrif (r.has(e)) return r;for (r.set(e, null), n = n.getElementsByTagName(e), i = 0; i < n.length; i++) {var a = n[i];- if (!(a[Nt] || a[Et] || e === "link" && a.getAttribute("rel") === "stylesheet") && a.namespaceURI !== "http://www.w3.org/2000/svg") {+ if (!(a[Tt] || a[vt] || e === "link" && a.getAttribute("rel") === "stylesheet") && a.namespaceURI !== "http://www.w3.org/2000/svg") {var o = a.getAttribute(t) || "";o = e + o;var s = r.get(o);@@ -8555,10 +14276,10 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrif (n.instance === null) {var i = Pm(r.href), a = t.querySelector(Fm(i));if (a) {- t = a._p, typeof t == "object" && t && typeof t.then == "function" && (e.count++, e = nh.bind(e), t.then(e, e)), n.state.loading |= 4, n.instance = a, Bt(a);+ t = a._p, typeof t == "object" && t && typeof t.then == "function" && (e.count++, e = nh.bind(e), t.then(e, e)), n.state.loading |= 4, n.instance = a, Mt(a);return;}- a = t.ownerDocument || t, r = Im(r), (i = vm.get(i)) && Hm(r, i), a = a.createElement("link"), Bt(a);+ a = t.ownerDocument || t, r = Im(r), (i = vm.get(i)) && Hm(r, i), a = a.createElement("link"), Mt(a);var o = a;o._p = new Promise(function(e, t) {o.onload = e, o.onerror = t;@@ -8623,28 +14344,28 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr}}var sh = {- $$typeof: le,+ $$typeof: N,Provider: null,Consumer: null,- _currentValue: k,- _currentValue2: k,+ _currentValue: de,+ _currentValue2: de,_threadCount: 0};function ch(e, t, n, r, i, a, o, s, c) {- this.tag = 1, this.containerInfo = e, this.pingCache = this.current = this.pendingChildren = null, this.timeoutHandle = -1, this.callbackNode = this.next = this.pendingContext = this.context = this.cancelPendingCommit = null, this.callbackPriority = 0, this.expirationTimes = gt(-1), this.entangledLanes = this.shellSuspendCounter = this.errorRecoveryDisabledLanes = this.expiredLanes = this.warmLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0, this.entanglements = gt(0), this.hiddenUpdates = gt(null), this.identifierPrefix = r, this.onUncaughtError = i, this.onCaughtError = a, this.onRecoverableError = o, this.pooledCache = null, this.pooledCacheLanes = 0, this.formState = c, this.transitionTypes = null, this.incompleteTransitions = /* @__PURE__ */ new Map();+ this.tag = 1, this.containerInfo = e, this.pingCache = this.current = this.pendingChildren = null, this.timeoutHandle = -1, this.callbackNode = this.next = this.pendingContext = this.context = this.cancelPendingCommit = null, this.callbackPriority = 0, this.expirationTimes = st(-1), this.entangledLanes = this.shellSuspendCounter = this.errorRecoveryDisabledLanes = this.expiredLanes = this.warmLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0, this.entanglements = st(0), this.hiddenUpdates = st(null), this.identifierPrefix = r, this.onUncaughtError = i, this.onCaughtError = a, this.onRecoverableError = o, this.pooledCache = null, this.pooledCacheLanes = 0, this.formState = c, this.transitionTypes = null, this.incompleteTransitions = /* @__PURE__ */ new Map();}function lh(e, t, n, r, i, a, o, s, c, l, u, d) {- return e = new ch(e, t, n, o, c, l, u, d, s), t = 1, !0 === a && (t |= 24), a = Ni(3, null, null, t), e.current = a, a.stateNode = e, t = Ma(), t.refCount++, e.pooledCache = t, t.refCount++, a.memoizedState = {+ return e = new ch(e, t, n, o, c, l, u, d, s), t = 1, !0 === a && (t |= 24), a = Oi(3, null, null, t), e.current = a, a.stateNode = e, t = Oa(), t.refCount++, e.pooledCache = t, t.refCount++, a.memoizedState = {element: r,isDehydrated: n,cache: t- }, ho(a), e;+ }, uo(a), e;}function uh(e) {- return e ? (e = ji, e) : ji;+ return e ? (e = Ei, e) : Ei;}function dh(e, t, n, r, i, a) {- i = uh(i), r.context === null ? r.context = i : r.pendingContext = i, r = _o(t), r.payload = { element: n }, a = a === void 0 ? null : a, a !== null && (r.callback = a), n = vo(e, r, t), n !== null && (Pd(n, e, t), yo(n, e, t));+ i = uh(i), r.context === null ? r.context = i : r.pendingContext = i, r = po(t), r.payload = { element: n }, a = a === void 0 ? null : a, a !== null && (r.callback = a), n = mo(e, r, t), n !== null && (Md(n, e, t), ho(n, e, t));}function fh(e, t) {if (e = e.memoizedState, e !== null && e.dehydrated !== null) {@@ -8657,77 +14378,77 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr}function mh(e) {if (e.tag === 13 || e.tag === 31) {- var t = Oi(e, 67108864);- t !== null && Pd(t, e, 67108864), ph(e, 67108864);+ var t = Ci(e, 67108864);+ t !== null && Md(t, e, 67108864), ph(e, 67108864);}}function hh(e) {if (e.tag === 13 || e.tag === 31) {- var t = jd();- t = St(t);- var n = Oi(e, t);- n !== null && Pd(n, e, t), ph(e, t);+ var t = kd();+ t = pt(t);+ var n = Ci(e, t);+ n !== null && Md(n, e, t), ph(e, t);}}var gh = !0;function _h(e, t, n, r) {- var i = D.T;- D.T = null;- var a = O.p;+ var i = R.T;+ R.T = null;+ var a = z.p;try {- O.p = 2, yh(e, t, n, r);+ z.p = 2, yh(e, t, n, r);} finally {- O.p = a, D.T = i;+ z.p = a, R.T = i;}}function vh(e, t, n, r) {- var i = D.T;- D.T = null;- var a = O.p;+ var i = R.T;+ R.T = null;+ var a = z.p;try {- O.p = 8, yh(e, t, n, r);+ z.p = 8, yh(e, t, n, r);} finally {- O.p = a, D.T = i;+ z.p = a, R.T = i;}}function yh(e, t, n, r) {if (gh) {var i = bh(r);- if (i === null) Kf(e, t, r, xh, n), Mh(e, r);+ if (i === null) Gf(e, t, r, xh, n), Mh(e, r);else if (Ph(i, e, t, n, r)) r.stopPropagation();else if (Mh(e, r), t & 4 && -1 < jh.indexOf(e)) {for (; i !== null;) {- var a = Lt(i);+ var a = kt(i);if (a !== null) switch (a.tag) {case 3:if (a = a.stateNode, a.current.memoizedState.isDehydrated) {- var o = ut(a.pendingLanes);+ var o = tt(a.pendingLanes);if (o !== 0) {var s = a;for (s.pendingLanes |= 2, s.entangledLanes |= 2; o;) {- var c = 1 << 31 - rt(o);+ var c = 1 << 31 - Je(o);s.entanglements[1] |= c, o &= ~c;}- Ef(a), !(K & 6) && (gd = Ke() + 500, Df(0, !1));+ Tf(a), !(X & 6) && (md = Ie() + 500, Ef(0, !1));}}break;case 31:- case 13: s = Oi(a, 2), s !== null && Pd(s, a, 2), zd(), ph(a, 2);+ case 13: s = Ci(a, 2), s !== null && Md(s, a, 2), Ld(), ph(a, 2);}- if (a = bh(r), a === null && Kf(e, t, r, xh, n), a === i) break;+ if (a = bh(r), a === null && Gf(e, t, r, xh, n), a === i) break;i = a;}i !== null && r.stopPropagation();- } else Kf(e, t, r, null, n);+ } else Gf(e, t, r, null, n);}}function bh(e) {- return e = xn(e), Sh(e);+ return e = gn(e), Sh(e);}var xh = null;function Sh(e) {- if (xh = null, e = It(e), e !== null) {+ if (xh = null, e = Ot(e), e !== null) {var t = o(e);if (t === null) e = null;else {@@ -8820,12 +14541,12 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrcase "mouseleave":case "pointerenter":case "pointerleave": return 8;- case "message": switch (qe()) {- case Je: return 2;- case Ye: return 8;- case N:- case Xe: return 32;- case Ze: return 268435456;+ case "message": switch (Le()) {+ case Re: return 2;+ case ze: return 8;+ case Be:+ case Ve: return 32;+ case He: return 268435456;default: return 32;}default: return 32;@@ -8861,7 +14582,7 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescreventSystemFlags: r,nativeEvent: a,targetContainers: [i]- }, t !== null && (t = Lt(t), t !== null && mh(t)), e) : (e.eventSystemFlags |= r, t = e.targetContainers, i !== null && t.indexOf(i) === -1 && t.push(i), e);+ }, t !== null && (t = kt(t), t !== null && mh(t)), e) : (e.eventSystemFlags |= r, t = e.targetContainers, i !== null && t.indexOf(i) === -1 && t.push(i), e);}function Ph(e, t, n, r, i) {switch (t) {@@ -8876,20 +14597,20 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrreturn !1;}function Fh(e) {- var t = It(e.target);+ var t = Ot(e.target);if (t !== null) {var n = o(t);if (n !== null) {if (t = n.tag, t === 13) {if (t = s(n), t !== null) {- e.blockedOn = t, P(e.priority, function() {+ e.blockedOn = t, gt(e.priority, function() {hh(n);});return;}} else if (t === 31) {if (t = c(n), t !== null) {- e.blockedOn = t, P(e.priority, function() {+ e.blockedOn = t, gt(e.priority, function() {hh(n);});return;@@ -8909,8 +14630,8 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrif (n === null) {n = e.nativeEvent;var r = new n.constructor(n.type, n);- R = r, n.target.dispatchEvent(r), R = null;- } else return t = Lt(n), t !== null && mh(t), e.blockedOn = n, !1;+ hn = r, n.target.dispatchEvent(r), hn = null;+ } else return t = kt(n), t !== null && mh(t), e.blockedOn = n, !1;t.shift();}return !0;@@ -8934,8 +14655,8 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrif (Sh(r || n) === null) continue;break;}- var a = Lt(n);- a !== null && (e.splice(t, 3), t -= 3, tc(a, {+ var a = kt(n);+ a !== null && (e.splice(t, 3), t -= 3, Zs(a, {pending: !0,data: i,method: n.method,@@ -8955,12 +14676,12 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr}for (; 0 < Ah.length && (n = Ah[0], n.blockedOn === null);) Fh(n), n.blockedOn === null && Ah.shift();if (n = (e.ownerDocument || e).$$reactFormReplay, n != null) for (r = 0; r < n.length; r += 3) {- var i = n[r], a = n[r + 1], o = i[Dt] || null;+ var i = n[r], a = n[r + 1], o = i[yt] || null;if (typeof a == "function") o || Vh(n);else if (o) {var s = null;if (a && a.hasAttribute("formAction")) {- if (i = a, o = a[Dt] || null) s = o.formAction;+ if (i = a, o = a[yt] || null) s = o.formAction;else if (Sh(i) !== null) continue;} else s = o.action;typeof s == "function" ? n[r + 1] = s : (n.splice(r, 3), r -= 3), Vh(n);@@ -9006,13 +14727,13 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrvar t = this._internalRoot;if (t === null) throw Error(i(409));var n = t.current;- dh(n, jd(), e, t, null, null);+ dh(n, kd(), e, t, null, null);}, Gh.prototype.unmount = Wh.prototype.unmount = function() {var e = this._internalRoot;if (e !== null) {this._internalRoot = null;var t = e.containerInfo;- dh(e.current, 2, null, e, null, null), zd(), t[Ot] = null;+ dh(e.current, 2, null, e, null, null), Ld(), t[bt] = null;}};function Gh(e) {@@ -9020,7 +14741,7 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr}Gh.prototype.unstable_scheduleHydration = function(e) {if (e) {- var t = wt();+ var t = ht();e = {blockedOn: null,target: e,@@ -9032,30 +14753,30 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr};var Kh = n.version;if (Kh !== "19.3.0") throw Error(i(527, Kh, "19.3.0"));- O.findDOMNode = function(e) {+ z.findDOMNode = function(e) {var t = e._reactInternals;if (t === void 0) throw typeof e.render == "function" ? Error(i(188)) : (e = Object.keys(e).join(","), Error(i(268, e)));- return e = u(t), e = e === null ? null : f(e), e = e === null ? null : e.stateNode, e;+ return e = u(t), e = e === null ? null : d(e), e = e === null ? null : e.stateNode, e;};var qh = {bundleType: 0,version: "19.3.0",rendererPackageName: "react-dom",- currentDispatcherRef: D,+ currentDispatcherRef: R,reconcilerVersion: "19.3.0"};if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u") {var Jh = __REACT_DEVTOOLS_GLOBAL_HOOK__;if (!Jh.isDisabled && Jh.supportsFiber) try {- et = Jh.inject(qh), tt = Jh;+ Ge = Jh.inject(qh), Ke = Jh;} catch {}}e.createRoot = function(e, t) {if (!a(e)) throw Error(i(299));- var n = !1, r = "", o = wc, s = Tc, c = Ec;- return t != null && (!0 === t.unstable_strictMode && (n = !0), t.identifierPrefix !== void 0 && (r = t.identifierPrefix), t.onUncaughtError !== void 0 && (o = t.onUncaughtError), t.onCaughtError !== void 0 && (s = t.onCaughtError), t.onRecoverableError !== void 0 && (c = t.onRecoverableError)), t = lh(e, 1, !1, null, null, n, r, null, o, s, c, Uh), e[Ot] = t.current, Wf(e), new Wh(t);+ var n = !1, r = "", o = bc, s = xc, c = Sc;+ return t != null && (!0 === t.unstable_strictMode && (n = !0), t.identifierPrefix !== void 0 && (r = t.identifierPrefix), t.onUncaughtError !== void 0 && (o = t.onUncaughtError), t.onCaughtError !== void 0 && (s = t.onCaughtError), t.onRecoverableError !== void 0 && (c = t.onRecoverableError)), t = lh(e, 1, !1, null, null, n, r, null, o, s, c, Uh), e[bt] = t.current, Uf(e), new Wh(t);};-})), _ = /* @__PURE__ */ s(((e, t) => {+})), Pc = (/* @__PURE__ */ l(((e, t) => {function n() {if (!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE != "function")) try {__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n);@@ -9063,101 +14784,101 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrconsole.error(e);}}- n(), t.exports = g();-})), v = /* @__PURE__ */ l(p(), 1), y = _(), b = (e, t) => {+ n(), t.exports = Nc();+})))(), Fc = (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;-}, x = (e, t) => ({+}, Ic = (e, t) => ({classGroupId: e,validator: t-}), S = (e = /* @__PURE__ */ new Map(), t = null, n) => ({+}), Lc = (e = /* @__PURE__ */ new Map(), t = null, n) => ({nextPart: e,validators: t,classGroupId: n-}), ee = "-", C = [], w = "arbitrary..", te = (e) => {- let t = re(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;+}), Rc = "-", zc = [], Bc = "arbitrary..", Vc = (e) => {+ let t = Wc(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;return {getClassGroupId: (e) => {- if (e.startsWith("[") && e.endsWith("]")) return ne(e);- let n = e.split(ee);- return T(n, +(n[0] === "" && n.length > 1), t);+ if (e.startsWith("[") && e.endsWith("]")) return Uc(e);+ let n = e.split(Rc);+ return Hc(n, +(n[0] === "" && n.length > 1), t);},getConflictingClassGroupIds: (e, t) => {if (t) {let t = r[e], i = n[e];- return t ? i ? b(i, t) : t : i || C;+ return t ? i ? Fc(i, t) : t : i || zc;}- return n[e] || C;+ return n[e] || zc;}};-}, T = (e, t, n) => {+}, Hc = (e, t, n) => {if (e.length - t === 0) return n.classGroupId;let r = e[t], i = n.nextPart.get(r);if (i) {- let n = T(e, t + 1, i);+ let n = Hc(e, t + 1, i);if (n) return n;}let a = n.validators;if (a === null) return;- let o = t === 0 ? e.join(ee) : e.slice(t).join(ee), s = a.length;+ let o = t === 0 ? e.join(Rc) : e.slice(t).join(Rc), s = a.length;for (let e = 0; e < s; e++) {let t = a[e];if (t.validator(o)) return t.classGroupId;}-}, ne = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {+}, Uc = (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 ? w + r : void 0;-})(), re = (e) => {+ return r ? Bc + r : void 0;+})(), Wc = (e) => {let { theme: t, classGroups: n } = e;- return ie(n, t);-}, ie = (e, t) => {- let n = S();+ return Gc(n, t);+}, Gc = (e, t) => {+ let n = Lc();for (let r in e) {let i = e[r];- ae(i, n, r, t);+ Kc(i, n, r, t);}return n;-}, ae = (e, t, n, r) => {+}, Kc = (e, t, n, r) => {let i = e.length;for (let a = 0; a < i; a++) {let i = e[a];- oe(i, t, n, r);+ qc(i, t, n, r);}-}, oe = (e, t, n, r) => {+}, qc = (e, t, n, r) => {if (typeof e == "string") {- se(e, t, n);+ Jc(e, t, n);return;}if (typeof e == "function") {- ce(e, t, n, r);+ Yc(e, t, n, r);return;}- le(e, t, n, r);-}, se = (e, t, n) => {- let r = e === "" ? t : E(t, e);+ Xc(e, t, n, r);+}, Jc = (e, t, n) => {+ let r = e === "" ? t : Zc(t, e);r.classGroupId = n;-}, ce = (e, t, n, r) => {- if (ue(e)) {- ae(e(r), t, n, r);+}, Yc = (e, t, n, r) => {+ if (Qc(e)) {+ Kc(e(r), t, n, r);return;}- t.validators === null && (t.validators = []), t.validators.push(x(n, e));-}, le = (e, t, n, r) => {+ t.validators === null && (t.validators = []), t.validators.push(Ic(n, e));+}, Xc = (e, t, n, r) => {let i = Object.entries(e), a = i.length;for (let e = 0; e < a; e++) {let [a, o] = i[e];- ae(o, E(t, a), n, r);+ Kc(o, Zc(t, a), n, r);}-}, E = (e, t) => {- let n = e, r = t.split(ee), i = r.length;+}, Zc = (e, t) => {+ let n = e, r = t.split(Rc), i = r.length;for (let e = 0; e < i; e++) {let t = r[e], i = n.nextPart.get(t);- i || (i = S(), n.nextPart.set(t, i)), n = i;+ i || (i = Lc(), n.nextPart.set(t, i)), n = i;}return n;-}, ue = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, de = (e) => {+}, Qc = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, $c = (e) => {if (e < 1) return {get: () => void 0,set: () => {}@@ -9175,19 +14896,19 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescre in n ? n[e] = t : i(e, t);}};-}, fe = "!", pe = ":", me = [], he = (e, t, n, r, i) => ({+}, el = "!", tl = ":", nl = [], rl = (e, t, n, r, i) => ({modifiers: e,hasImportantModifier: t,baseClassName: n,maybePostfixModifierPosition: r,isExternal: i-}), ge = (e) => {+}), il = (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 === pe) {+ if (o === tl) {t.push(e.slice(i, s)), i = s + 1;continue;}@@ -9199,13 +14920,13 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescro === "[" ? n++ : o === "]" ? n-- : o === "(" ? r++ : o === ")" && r--;}let s = t.length === 0 ? e : e.slice(i), c = s, l = !1;- s.endsWith(fe) ? (c = s.slice(0, -1), l = !0) : s.startsWith(fe) && (c = s.slice(1), l = !0);+ s.endsWith(el) ? (c = s.slice(0, -1), l = !0) : s.startsWith(el) && (c = s.slice(1), l = !0);let u = a && a > i ? a - i : void 0;- return he(t, l, c, u);+ return rl(t, l, c, u);};if (t) {- let e = t + pe, n = r;- r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : he(me, !1, t, void 0, !0);+ let e = t + tl, n = r;+ r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : rl(nl, !1, t, void 0, !0);}if (n) {let e = r;@@ -9215,7 +14936,7 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr});}return r;-}, _e = (e) => {+}, al = (e) => {let t = /* @__PURE__ */ new Map();return e.orderSensitiveModifiers.forEach((e, n) => {t.set(e, 1e6 + n);@@ -9227,18 +14948,18 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr}return r.length > 0 && (r.sort(), n.push(...r)), n;};-}, ve = (e) => ({- cache: de(e.cacheSize),- parseClassName: ge(e),- sortModifiers: _e(e),- postfixLookupClassGroupIds: ye(e),- ...te(e)-}), ye = (e) => {+}, ol = (e) => ({+ cache: $c(e.cacheSize),+ parseClassName: il(e),+ sortModifiers: al(e),+ postfixLookupClassGroupIds: sl(e),+ ...Vc(e)+}), sl = (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;-}, be = /\s+/, xe = (e, t) => {- let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(be), l = "";+}, cl = /\s+/, ll = (e, t) => {+ let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(cl), 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) {@@ -9262,7 +14983,7 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr}h = !1;}- let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + fe : _, y = v + g;+ let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + el : _, y = v + g;if (s.indexOf(y) > -1) continue;s.push(y);let b = i(g, h);@@ -9273,34 +14994,34 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescrl = t + (l.length > 0 ? " " + l : l);}return l;-}, Se = (...e) => {+}, ul = (...e) => {let t = 0, n, r, i = "";- for (; t < e.length;) (n = e[t++]) && (r = Ce(n)) && (i && (i += " "), i += r);+ for (; t < e.length;) (n = e[t++]) && (r = dl(n)) && (i && (i += " "), i += r);return i;-}, Ce = (e) => {+}, dl = (e) => {if (typeof e == "string") return e;let t, n = "";- for (let r = 0; r < e.length; r++) e[r] && (t = Ce(e[r])) && (n && (n += " "), n += t);+ for (let r = 0; r < e.length; r++) e[r] && (t = dl(e[r])) && (n && (n += " "), n += t);return n;-}, D = (e, ...t) => {- let n, r, i, a, o = (o) => (n = ve(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {+}, fl = (e, ...t) => {+ let n, r, i, a, o = (o) => (n = ol(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 = xe(e, n);+ let a = ll(e, n);return i(e, a), a;};- return a = o, (...e) => a(Se(...e));-}, O = [], k = (e) => {- let t = (t) => t[e] || O;+ return a = o, (...e) => a(ul(...e));+}, pl = [], ml = (e) => {+ let t = (t) => t[e] || pl;return t.isThemeGetter = !0, t.themeKey = e, t;-}, we = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Te = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Ee = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, De = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, A = /\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$/, Oe = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, ke = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Ae = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, je = (e) => Ee.test(e), j = (e) => !!e && !Number.isNaN(Number(e)), Me = (e) => !!e && Number.isInteger(Number(e)), Ne = (e) => e.endsWith("%") && j(e.slice(0, -1)), Pe = (e) => De.test(e), Fe = () => !0, Ie = (e) => A.test(e) && !Oe.test(e), Le = () => !1, Re = (e) => ke.test(e), ze = (e) => Ae.test(e), Be = (e) => !M(e) && !N(e), Ve = (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)), He = (e) => rt(e, st, Le), M = (e) => we.test(e), Ue = (e) => rt(e, ct, Ie), We = (e) => rt(e, lt, j), Ge = (e) => rt(e, dt, Fe), Ke = (e) => rt(e, ut, Le), qe = (e) => rt(e, at, Le), Je = (e) => rt(e, ot, ze), Ye = (e) => rt(e, ft, Re), N = (e) => Te.test(e), Xe = (e) => it(e, ct), Ze = (e) => it(e, ut), Qe = (e) => it(e, at), $e = (e) => it(e, st), et = (e) => it(e, ot), tt = (e) => it(e, ft, !0), nt = (e) => it(e, dt, !0), rt = (e, t, n) => {- let r = we.exec(e);+}, hl = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, gl = /^\((?:(\w[\w-]*):)?(.+)\)$/i, _l = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, vl = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, yl = /\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$/, bl = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, xl = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Sl = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Cl = (e) => _l.test(e), K = (e) => !!e && !Number.isNaN(Number(e)), wl = (e) => !!e && Number.isInteger(Number(e)), Tl = (e) => e.endsWith("%") && K(e.slice(0, -1)), El = (e) => vl.test(e), Dl = () => !0, Ol = (e) => yl.test(e) && !bl.test(e), kl = () => !1, Al = (e) => xl.test(e), jl = (e) => Sl.test(e), Ml = (e) => !q(e) && !J(e), Nl = (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)), Pl = (e) => Yl(e, $l, kl), q = (e) => hl.test(e), Fl = (e) => Yl(e, eu, Ol), Il = (e) => Yl(e, tu, K), Ll = (e) => Yl(e, ru, Dl), Rl = (e) => Yl(e, nu, kl), zl = (e) => Yl(e, Zl, kl), Bl = (e) => Yl(e, Ql, jl), Vl = (e) => Yl(e, iu, Al), J = (e) => gl.test(e), Hl = (e) => Xl(e, eu), Ul = (e) => Xl(e, nu), Wl = (e) => Xl(e, Zl), Gl = (e) => Xl(e, $l), Kl = (e) => Xl(e, Ql), ql = (e) => Xl(e, iu, !0), Jl = (e) => Xl(e, ru, !0), Yl = (e, t, n) => {+ let r = hl.exec(e);return r ? r[1] ? t(r[1]) : n(r[2]) : !1;-}, it = (e, t, n = !1) => {- let r = Te.exec(e);+}, Xl = (e, t, n = !1) => {+ let r = gl.exec(e);return r ? r[1] ? t(r[1]) : n : !1;-}, at = (e) => e === "position" || e === "percentage", ot = (e) => e === "image" || e === "url", st = (e) => e === "length" || e === "size" || e === "bg-size", ct = (e) => e === "length", lt = (e) => e === "number", ut = (e) => e === "family-name", dt = (e) => e === "number" || e === "weight", ft = (e) => e === "shadow", pt = () => {- let e = k("color"), t = k("font"), n = k("text"), r = k("font-weight"), i = k("tracking"), a = k("leading"), o = k("breakpoint"), s = k("container"), c = k("spacing"), l = k("radius"), u = k("shadow"), d = k("inset-shadow"), f = k("text-shadow"), p = k("drop-shadow"), m = k("blur"), h = k("perspective"), g = k("aspect"), _ = k("ease"), v = k("animate"), y = () => [+}, Zl = (e) => e === "position" || e === "percentage", Ql = (e) => e === "image" || e === "url", $l = (e) => e === "length" || e === "size" || e === "bg-size", eu = (e) => e === "length", tu = (e) => e === "number", nu = (e) => e === "family-name", ru = (e) => e === "number" || e === "weight", iu = (e) => e === "shadow", au = () => {+ let e = ml("color"), t = ml("font"), n = ml("text"), r = ml("font-weight"), i = ml("tracking"), a = ml("leading"), o = ml("breakpoint"), s = ml("container"), c = ml("spacing"), l = ml("radius"), u = ml("shadow"), d = ml("inset-shadow"), f = ml("text-shadow"), p = ml("drop-shadow"), m = ml("blur"), h = ml("perspective"), g = ml("aspect"), _ = ml("ease"), v = ml("animate"), y = () => ["auto","avoid","all",@@ -9325,57 +15046,57 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr"left-bottom"], x = () => [...b(),- N,- M+ J,+ q], S = () => ["auto","hidden","clip","visible","scroll"- ], ee = () => [+ ], C = () => ["auto","contain","none"- ], C = () => [- N,- M,- c], w = () => [- je,+ J,+ q,+ c+ ], T = () => [+ Cl,"full","auto",- ...C()- ], te = () => [- Me,+ ...w()+ ], E = () => [+ wl,"none","subgrid",- N,- M- ], T = () => [+ J,+ q+ ], D = () => ["auto",{ span: ["full",- Me,- N,- M+ wl,+ J,+ q] },- Me,- N,- M- ], ne = () => [- Me,+ wl,+ J,+ q+ ], O = () => [+ wl,"auto",- N,- M- ], re = () => [+ J,+ q+ ], k = () => ["auto","min","max","fr",- N,- M- ], ie = () => [+ J,+ q+ ], A = () => ["start","end","center",@@ -9386,15 +15107,15 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr"baseline","center-safe","end-safe"- ], ae = () => [+ ], j = () => ["start","end","center","stretch","center-safe","end-safe"- ], oe = () => ["auto", ...C()], se = () => [- je,+ ], M = () => ["auto", ...w()], N = () => [+ Cl,"auto","full","dvw",@@ -9406,10 +15127,10 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr"min","max","fit",- ...C()- ], ce = () => [+ ...w()+ ], ee = () => [s,- je,+ Cl,"screen","full","dvw",@@ -9418,9 +15139,9 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr"min","max","fit",- ...C()- ], le = () => [- je,+ ...w()+ ], te = () => [+ Cl,"screen","full","lh",@@ -9430,51 +15151,51 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr"min","max","fit",- ...C()- ], E = () => [+ ...w()+ ], P = () => [e,- N,- M- ], ue = () => [+ J,+ q+ ], ne = () => [...b(),- Qe,- qe,- { position: [N, M] }- ], de = () => ["no-repeat", { repeat: [+ Wl,+ zl,+ { position: [J, q] }+ ], re = () => ["no-repeat", { repeat: ["","x","y","space","round"- ] }], fe = () => [+ ] }], ie = () => ["auto","cover","contain",- $e,- He,- { size: [N, M] }- ], pe = () => [- Ne,- Xe,- Ue- ], me = () => [+ Gl,+ Pl,+ { size: [J, q] }+ ], ae = () => [+ Tl,+ Hl,+ Fl+ ], F = () => ["","none","full",l,- N,- M- ], he = () => [+ J,+ q+ ], I = () => ["",- j,- Xe,- Ue- ], ge = () => [+ K,+ Hl,+ Fl+ ], L = () => ["solid","dashed","dotted","double"- ], _e = () => [+ ], oe = () => ["normal","multiply","screen",@@ -9491,35 +15212,35 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr"saturation","color","luminosity"- ], ve = () => [- j,- Ne,- Qe,- qe- ], ye = () => [+ ], se = () => [+ K,+ Tl,+ Wl,+ zl+ ], ce = () => ["","none",m,- N,- M- ], be = () => [+ J,+ q+ ], le = () => ["none",- j,- N,- M- ], xe = () => [+ K,+ J,+ q+ ], ue = () => ["none",- j,- N,- M- ], Se = () => [- j,- N,- M- ], Ce = () => [- je,+ K,+ J,+ q+ ], R = () => [+ K,+ J,+ q+ ], z = () => [+ Cl,"full",- ...C()+ ...w()];return {cacheSize: 500,@@ -9531,17 +15252,17 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr"bounce"],aspect: ["video"],- blur: [Pe],- breakpoint: [Pe],- color: [Fe],- container: [Pe],- "drop-shadow": [Pe],+ blur: [El],+ breakpoint: [El],+ color: [Dl],+ container: [El],+ "drop-shadow": [El],ease: ["in","out","in-out"],- font: [Be],+ font: [Ml],"font-weight": ["thin","extralight",@@ -9553,7 +15274,7 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr"extrabold","black"],- "inset-shadow": [Pe],+ "inset-shadow": [El],leading: ["none","tight",@@ -9570,11 +15291,11 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr"distant","none"],- radius: [Pe],- shadow: [Pe],- spacing: ["px", j],- text: [Pe],- "text-shadow": [Pe],+ radius: [El],+ shadow: [El],+ spacing: ["px", K],+ text: [El],+ "text-shadow": [El],tracking: ["tighter","tight",@@ -9588,9 +15309,9 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescraspect: [{ aspect: ["auto","square",- je,- M,- N,+ Cl,+ q,+ J,g] }],container: ["container"],@@ -9598,15 +15319,15 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr"","normal","size",- N,- M+ J,+ q] }],- "container-named": [Ve],+ "container-named": [Nl],columns: [{ columns: [- j,+ K,"auto",- M,- N,+ q,+ J,s] }],"break-after": [{ "break-after": y() }],@@ -9670,9 +15391,9 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescroverflow: [{ overflow: S() }],"overflow-x": [{ "overflow-x": S() }],"overflow-y": [{ "overflow-y": S() }],- overscroll: [{ overscroll: ee() }],- "overscroll-x": [{ "overscroll-x": ee() }],- "overscroll-y": [{ "overscroll-y": ee() }],+ overscroll: [{ overscroll: C() }],+ "overscroll-x": [{ "overscroll-x": C() }],+ "overscroll-y": [{ "overscroll-y": C() }],position: ["static","fixed",@@ -9680,40 +15401,40 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr"relative","sticky"],- inset: [{ inset: w() }],- "inset-x": [{ "inset-x": w() }],- "inset-y": [{ "inset-y": w() }],+ inset: [{ inset: T() }],+ "inset-x": [{ "inset-x": T() }],+ "inset-y": [{ "inset-y": T() }],start: [{- "inset-s": w(),- start: w()+ "inset-s": T(),+ start: T()}],end: [{- "inset-e": w(),- end: w()+ "inset-e": T(),+ end: T()}],- "inset-bs": [{ "inset-bs": w() }],- "inset-be": [{ "inset-be": w() }],- top: [{ top: w() }],- right: [{ right: w() }],- bottom: [{ bottom: w() }],- left: [{ left: w() }],+ "inset-bs": [{ "inset-bs": T() }],+ "inset-be": [{ "inset-be": T() }],+ top: [{ top: T() }],+ right: [{ right: T() }],+ bottom: [{ bottom: T() }],+ left: [{ left: T() }],visibility: ["visible","invisible","collapse"],z: [{ z: [- Me,+ wl,"auto",- N,- M+ J,+ q] }],basis: [{ basis: [- je,+ Cl,"full","auto",s,- ...C()+ ...w()] }],"flex-direction": [{ flex: ["row",@@ -9727,41 +15448,41 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr"wrap-reverse"] }],flex: [{ flex: [- j,- je,+ K,+ Cl,"auto","initial","none",- M+ q] }],grow: [{ grow: ["",- j,- N,- M+ K,+ J,+ q] }],shrink: [{ shrink: ["",- j,- N,- M+ K,+ J,+ q] }],order: [{ order: [- Me,+ wl,"first","last","none",- N,- M+ J,+ q] }],- "grid-cols": [{ "grid-cols": te() }],- "col-start-end": [{ col: T() }],- "col-start": [{ "col-start": ne() }],- "col-end": [{ "col-end": ne() }],- "grid-rows": [{ "grid-rows": te() }],- "row-start-end": [{ row: T() }],- "row-start": [{ "row-start": ne() }],- "row-end": [{ "row-end": ne() }],+ "grid-cols": [{ "grid-cols": E() }],+ "col-start-end": [{ col: D() }],+ "col-start": [{ "col-start": O() }],+ "col-end": [{ "col-end": O() }],+ "grid-rows": [{ "grid-rows": E() }],+ "row-start-end": [{ row: D() }],+ "row-start": [{ "row-start": O() }],+ "row-end": [{ "row-end": O() }],"grid-flow": [{ "grid-flow": ["row","col",@@ -9769,67 +15490,67 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr"row-dense","col-dense"] }],- "auto-cols": [{ "auto-cols": re() }],- "auto-rows": [{ "auto-rows": re() }],- gap: [{ gap: C() }],- "gap-x": [{ "gap-x": C() }],- "gap-y": [{ "gap-y": C() }],- "justify-content": [{ justify: [...ie(), "normal"] }],- "justify-items": [{ "justify-items": [...ae(), "normal"] }],- "justify-self": [{ "justify-self": ["auto", ...ae()] }],- "align-content": [{ content: ["normal", ...ie()] }],- "align-items": [{ items: [...ae(), { baseline: ["", "last"] }] }],+ "auto-cols": [{ "auto-cols": k() }],+ "auto-rows": [{ "auto-rows": k() }],+ gap: [{ gap: w() }],+ "gap-x": [{ "gap-x": w() }],+ "gap-y": [{ "gap-y": w() }],+ "justify-content": [{ justify: [...A(), "normal"] }],+ "justify-items": [{ "justify-items": [...j(), "normal"] }],+ "justify-self": [{ "justify-self": ["auto", ...j()] }],+ "align-content": [{ content: ["normal", ...A()] }],+ "align-items": [{ items: [...j(), { baseline: ["", "last"] }] }],"align-self": [{ self: ["auto",- ...ae(),+ ...j(),{ baseline: ["", "last"] }] }],- "place-content": [{ "place-content": ie() }],- "place-items": [{ "place-items": [...ae(), "baseline"] }],- "place-self": [{ "place-self": ["auto", ...ae()] }],- p: [{ p: C() }],- px: [{ px: C() }],- py: [{ py: C() }],- ps: [{ ps: C() }],- pe: [{ pe: C() }],- pbs: [{ pbs: C() }],- pbe: [{ pbe: C() }],- pt: [{ pt: C() }],- pr: [{ pr: C() }],- pb: [{ pb: C() }],- pl: [{ pl: C() }],- m: [{ m: oe() }],- mx: [{ mx: oe() }],- my: [{ my: oe() }],- ms: [{ ms: oe() }],- me: [{ me: oe() }],- mbs: [{ mbs: oe() }],- mbe: [{ mbe: oe() }],- mt: [{ mt: oe() }],- mr: [{ mr: oe() }],- mb: [{ mb: oe() }],- ml: [{ ml: oe() }],- "space-x": [{ "space-x": C() }],+ "place-content": [{ "place-content": A() }],+ "place-items": [{ "place-items": [...j(), "baseline"] }],+ "place-self": [{ "place-self": ["auto", ...j()] }],+ p: [{ p: w() }],+ px: [{ px: w() }],+ py: [{ py: w() }],+ ps: [{ ps: w() }],+ pe: [{ pe: w() }],+ pbs: [{ pbs: w() }],+ pbe: [{ pbe: w() }],+ pt: [{ pt: w() }],+ pr: [{ pr: w() }],+ pb: [{ pb: w() }],+ pl: [{ pl: w() }],+ m: [{ m: M() }],+ mx: [{ mx: M() }],+ my: [{ my: M() }],+ ms: [{ ms: M() }],+ me: [{ me: M() }],+ mbs: [{ mbs: M() }],+ mbe: [{ mbe: M() }],+ mt: [{ mt: M() }],+ mr: [{ mr: M() }],+ mb: [{ mb: M() }],+ ml: [{ ml: M() }],+ "space-x": [{ "space-x": w() }],"space-x-reverse": ["space-x-reverse"],- "space-y": [{ "space-y": C() }],+ "space-y": [{ "space-y": w() }],"space-y-reverse": ["space-y-reverse"],- size: [{ size: se() }],- "inline-size": [{ inline: ["auto", ...ce()] }],- "min-inline-size": [{ "min-inline": ["auto", ...ce()] }],- "max-inline-size": [{ "max-inline": ["none", ...ce()] }],- "block-size": [{ block: ["auto", ...le()] }],- "min-block-size": [{ "min-block": ["auto", ...le()] }],- "max-block-size": [{ "max-block": ["none", ...le()] }],+ size: [{ size: N() }],+ "inline-size": [{ inline: ["auto", ...ee()] }],+ "min-inline-size": [{ "min-inline": ["auto", ...ee()] }],+ "max-inline-size": [{ "max-inline": ["none", ...ee()] }],+ "block-size": [{ block: ["auto", ...te()] }],+ "min-block-size": [{ "min-block": ["auto", ...te()] }],+ "max-block-size": [{ "max-block": ["none", ...te()] }],w: [{ w: [s,"screen",- ...se()+ ...N()] }],"min-w": [{ "min-w": [s,"screen","none",- ...se()+ ...N()] }],"max-w": [{ "max-w": [s,@@ -9837,37 +15558,37 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr"none","prose",{ screen: [o] },- ...se()+ ...N()] }],h: [{ h: ["screen","lh",- ...se()+ ...N()] }],"min-h": [{ "min-h": ["screen","lh","none",- ...se()+ ...N()] }],"max-h": [{ "max-h": ["screen","lh","none",- ...se()+ ...N()] }],"font-size": [{ text: ["base",n,- Xe,- Ue+ Hl,+ Fl] }],"font-smoothing": ["antialiased", "subpixel-antialiased"],"font-style": ["italic", "not-italic"],"font-weight": [{ font: [r,- nt,- Ge+ Jl,+ Ll] }],"font-stretch": [{ "font-stretch": ["ultra-condensed",@@ -9879,15 +15600,15 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr"expanded","extra-expanded","ultra-expanded",- Ne,- M+ Tl,+ q] }],"font-family": [{ font: [- Ze,- Ke,+ Ul,+ Rl,t] }],- "font-features": [{ "font-features": [M] }],+ "font-features": [{ "font-features": [q] }],"fvn-normal": ["normal-nums"],"fvn-ordinal": ["ordinal"],"fvn-slashed-zero": ["slashed-zero"],@@ -9896,32 +15617,32 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr"fvn-fraction": ["diagonal-fractions", "stacked-fractions"],tracking: [{ tracking: [i,- N,- M+ J,+ q] }],"line-clamp": [{ "line-clamp": [- j,+ K,"none",- N,- We+ J,+ Il] }],leading: [{ leading: ["none",a,- ...C()+ ...w()] }],"list-image": [{ "list-image": ["none",- N,- M+ J,+ q] }],"list-style-position": [{ list: ["inside", "outside"] }],"list-style-type": [{ list: ["disc","decimal","none",- N,- M+ J,+ q] }],"text-alignment": [{ text: ["left",@@ -9931,28 +15652,28 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr"start","end"] }],- "placeholder-color": [{ placeholder: E() }],- "text-color": [{ text: E() }],+ "placeholder-color": [{ placeholder: P() }],+ "text-color": [{ text: P() }],"text-decoration": ["underline","overline","line-through","no-underline"],- "text-decoration-style": [{ decoration: [...ge(), "wavy"] }],+ "text-decoration-style": [{ decoration: [...L(), "wavy"] }],"text-decoration-thickness": [{ decoration: [- j,+ K,"from-font","auto",- N,- Ue+ J,+ Fl] }],- "text-decoration-color": [{ decoration: E() }],+ "text-decoration-color": [{ decoration: P() }],"underline-offset": [{ "underline-offset": [- j,+ K,"auto",- N,- M+ J,+ q] }],"text-transform": ["uppercase",@@ -9971,11 +15692,11 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr"balance","pretty"] }],- indent: [{ indent: C() }],+ indent: [{ indent: w() }],"tab-size": [{ tab: [- Me,- N,- M+ wl,+ J,+ q] }],"vertical-align": [{ align: ["baseline",@@ -9986,8 +15707,8 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr"text-bottom","sub","super",- N,- M+ J,+ q] }],whitespace: [{ whitespace: ["normal",@@ -10015,8 +15736,8 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr] }],content: [{ content: ["none",- N,- M+ J,+ q] }],"bg-attachment": [{ bg: ["fixed",@@ -10034,9 +15755,9 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr"padding","content"] }],- "bg-position": [{ bg: ue() }],- "bg-repeat": [{ bg: de() }],- "bg-size": [{ bg: fe() }],+ "bg-position": [{ bg: ne() }],+ "bg-repeat": [{ bg: re() }],+ "bg-size": [{ bg: ie() }],"bg-image": [{ bg: ["none",{@@ -10051,142 +15772,142 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr"l","tl"] },- Me,- N,- M+ wl,+ J,+ q],radial: ["",- N,- M+ J,+ q],conic: ["",- Me,- N,- M+ wl,+ J,+ q]},- et,- Je+ Kl,+ Bl] }],- "bg-color": [{ bg: E() }],- "gradient-from-pos": [{ from: pe() }],- "gradient-via-pos": [{ via: pe() }],- "gradient-to-pos": [{ to: pe() }],- "gradient-from": [{ from: E() }],- "gradient-via": [{ via: E() }],- "gradient-to": [{ to: E() }],- rounded: [{ rounded: me() }],- "rounded-s": [{ "rounded-s": me() }],- "rounded-e": [{ "rounded-e": me() }],- "rounded-t": [{ "rounded-t": me() }],- "rounded-r": [{ "rounded-r": me() }],- "rounded-b": [{ "rounded-b": me() }],- "rounded-l": [{ "rounded-l": me() }],- "rounded-ss": [{ "rounded-ss": me() }],- "rounded-se": [{ "rounded-se": me() }],- "rounded-ee": [{ "rounded-ee": me() }],- "rounded-es": [{ "rounded-es": me() }],- "rounded-tl": [{ "rounded-tl": me() }],- "rounded-tr": [{ "rounded-tr": me() }],- "rounded-br": [{ "rounded-br": me() }],- "rounded-bl": [{ "rounded-bl": me() }],- "border-w": [{ border: he() }],- "border-w-x": [{ "border-x": he() }],- "border-w-y": [{ "border-y": he() }],- "border-w-s": [{ "border-s": he() }],- "border-w-e": [{ "border-e": he() }],- "border-w-bs": [{ "border-bs": he() }],- "border-w-be": [{ "border-be": he() }],- "border-w-t": [{ "border-t": he() }],- "border-w-r": [{ "border-r": he() }],- "border-w-b": [{ "border-b": he() }],- "border-w-l": [{ "border-l": he() }],- "divide-x": [{ "divide-x": he() }],+ "bg-color": [{ bg: P() }],+ "gradient-from-pos": [{ from: ae() }],+ "gradient-via-pos": [{ via: ae() }],+ "gradient-to-pos": [{ to: ae() }],+ "gradient-from": [{ from: P() }],+ "gradient-via": [{ via: P() }],+ "gradient-to": [{ to: P() }],+ rounded: [{ rounded: F() }],+ "rounded-s": [{ "rounded-s": F() }],+ "rounded-e": [{ "rounded-e": F() }],+ "rounded-t": [{ "rounded-t": F() }],+ "rounded-r": [{ "rounded-r": F() }],+ "rounded-b": [{ "rounded-b": F() }],+ "rounded-l": [{ "rounded-l": F() }],+ "rounded-ss": [{ "rounded-ss": F() }],+ "rounded-se": [{ "rounded-se": F() }],+ "rounded-ee": [{ "rounded-ee": F() }],+ "rounded-es": [{ "rounded-es": F() }],+ "rounded-tl": [{ "rounded-tl": F() }],+ "rounded-tr": [{ "rounded-tr": F() }],+ "rounded-br": [{ "rounded-br": F() }],+ "rounded-bl": [{ "rounded-bl": F() }],+ "border-w": [{ border: I() }],+ "border-w-x": [{ "border-x": I() }],+ "border-w-y": [{ "border-y": I() }],+ "border-w-s": [{ "border-s": I() }],+ "border-w-e": [{ "border-e": I() }],+ "border-w-bs": [{ "border-bs": I() }],+ "border-w-be": [{ "border-be": I() }],+ "border-w-t": [{ "border-t": I() }],+ "border-w-r": [{ "border-r": I() }],+ "border-w-b": [{ "border-b": I() }],+ "border-w-l": [{ "border-l": I() }],+ "divide-x": [{ "divide-x": I() }],"divide-x-reverse": ["divide-x-reverse"],- "divide-y": [{ "divide-y": he() }],+ "divide-y": [{ "divide-y": I() }],"divide-y-reverse": ["divide-y-reverse"],"border-style": [{ border: [- ...ge(),+ ...L(),"hidden","none"] }],"divide-style": [{ divide: [- ...ge(),+ ...L(),"hidden","none"] }],- "border-color": [{ border: E() }],- "border-color-x": [{ "border-x": E() }],- "border-color-y": [{ "border-y": E() }],- "border-color-s": [{ "border-s": E() }],- "border-color-e": [{ "border-e": E() }],- "border-color-bs": [{ "border-bs": E() }],- "border-color-be": [{ "border-be": E() }],- "border-color-t": [{ "border-t": E() }],- "border-color-r": [{ "border-r": E() }],- "border-color-b": [{ "border-b": E() }],- "border-color-l": [{ "border-l": E() }],- "divide-color": [{ divide: E() }],+ "border-color": [{ border: P() }],+ "border-color-x": [{ "border-x": P() }],+ "border-color-y": [{ "border-y": P() }],+ "border-color-s": [{ "border-s": P() }],+ "border-color-e": [{ "border-e": P() }],+ "border-color-bs": [{ "border-bs": P() }],+ "border-color-be": [{ "border-be": P() }],+ "border-color-t": [{ "border-t": P() }],+ "border-color-r": [{ "border-r": P() }],+ "border-color-b": [{ "border-b": P() }],+ "border-color-l": [{ "border-l": P() }],+ "divide-color": [{ divide: P() }],"outline-style": [{ outline: [- ...ge(),+ ...L(),"none","hidden"] }],"outline-offset": [{ "outline-offset": [- j,- N,- M+ K,+ J,+ q] }],"outline-w": [{ outline: ["",- j,- Xe,- Ue+ K,+ Hl,+ Fl] }],- "outline-color": [{ outline: E() }],+ "outline-color": [{ outline: P() }],shadow: [{ shadow: ["","inner","none",u,- tt,- Ye+ ql,+ Vl] }],- "shadow-color": [{ shadow: E() }],+ "shadow-color": [{ shadow: P() }],"inset-shadow": [{ "inset-shadow": ["none",d,- tt,- Ye+ ql,+ Vl] }],- "inset-shadow-color": [{ "inset-shadow": E() }],- "ring-w": [{ ring: he() }],+ "inset-shadow-color": [{ "inset-shadow": P() }],+ "ring-w": [{ ring: I() }],"ring-w-inset": ["ring-inset"],- "ring-color": [{ ring: E() }],- "ring-offset-w": [{ "ring-offset": [j, Ue] }],- "ring-offset-color": [{ "ring-offset": E() }],- "inset-ring-w": [{ "inset-ring": he() }],- "inset-ring-color": [{ "inset-ring": E() }],+ "ring-color": [{ ring: P() }],+ "ring-offset-w": [{ "ring-offset": [K, Fl] }],+ "ring-offset-color": [{ "ring-offset": P() }],+ "inset-ring-w": [{ "inset-ring": I() }],+ "inset-ring-color": [{ "inset-ring": P() }],"text-shadow": [{ "text-shadow": ["none",f,- tt,- Ye+ ql,+ Vl] }],- "text-shadow-color": [{ "text-shadow": E() }],+ "text-shadow-color": [{ "text-shadow": P() }],opacity: [{ opacity: [- j,- N,- M+ K,+ J,+ q] }],"mix-blend": [{ "mix-blend": [- ..._e(),+ ...oe(),"plus-darker","plus-lighter"] }],- "bg-blend": [{ "bg-blend": _e() }],+ "bg-blend": [{ "bg-blend": oe() }],"mask-clip": [{ "mask-clip": ["border","padding",@@ -10201,51 +15922,51 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr"intersect","exclude"] }],- "mask-image-linear-pos": [{ "mask-linear": [j] }],- "mask-image-linear-from-pos": [{ "mask-linear-from": ve() }],- "mask-image-linear-to-pos": [{ "mask-linear-to": ve() }],- "mask-image-linear-from-color": [{ "mask-linear-from": E() }],- "mask-image-linear-to-color": [{ "mask-linear-to": E() }],- "mask-image-t-from-pos": [{ "mask-t-from": ve() }],- "mask-image-t-to-pos": [{ "mask-t-to": ve() }],- "mask-image-t-from-color": [{ "mask-t-from": E() }],- "mask-image-t-to-color": [{ "mask-t-to": E() }],- "mask-image-r-from-pos": [{ "mask-r-from": ve() }],- "mask-image-r-to-pos": [{ "mask-r-to": ve() }],- "mask-image-r-from-color": [{ "mask-r-from": E() }],- "mask-image-r-to-color": [{ "mask-r-to": E() }],- "mask-image-b-from-pos": [{ "mask-b-from": ve() }],- "mask-image-b-to-pos": [{ "mask-b-to": ve() }],- "mask-image-b-from-color": [{ "mask-b-from": E() }],- "mask-image-b-to-color": [{ "mask-b-to": E() }],- "mask-image-l-from-pos": [{ "mask-l-from": ve() }],- "mask-image-l-to-pos": [{ "mask-l-to": ve() }],- "mask-image-l-from-color": [{ "mask-l-from": E() }],- "mask-image-l-to-color": [{ "mask-l-to": E() }],- "mask-image-x-from-pos": [{ "mask-x-from": ve() }],- "mask-image-x-to-pos": [{ "mask-x-to": ve() }],- "mask-image-x-from-color": [{ "mask-x-from": E() }],- "mask-image-x-to-color": [{ "mask-x-to": E() }],- "mask-image-y-from-pos": [{ "mask-y-from": ve() }],- "mask-image-y-to-pos": [{ "mask-y-to": ve() }],- "mask-image-y-from-color": [{ "mask-y-from": E() }],- "mask-image-y-to-color": [{ "mask-y-to": E() }],- "mask-image-radial": [{ "mask-radial": [N, M] }],- "mask-image-radial-from-pos": [{ "mask-radial-from": ve() }],- "mask-image-radial-to-pos": [{ "mask-radial-to": ve() }],- "mask-image-radial-from-color": [{ "mask-radial-from": E() }],- "mask-image-radial-to-color": [{ "mask-radial-to": E() }],+ "mask-image-linear-pos": [{ "mask-linear": [K] }],+ "mask-image-linear-from-pos": [{ "mask-linear-from": se() }],+ "mask-image-linear-to-pos": [{ "mask-linear-to": se() }],+ "mask-image-linear-from-color": [{ "mask-linear-from": P() }],+ "mask-image-linear-to-color": [{ "mask-linear-to": P() }],+ "mask-image-t-from-pos": [{ "mask-t-from": se() }],+ "mask-image-t-to-pos": [{ "mask-t-to": se() }],+ "mask-image-t-from-color": [{ "mask-t-from": P() }],+ "mask-image-t-to-color": [{ "mask-t-to": P() }],+ "mask-image-r-from-pos": [{ "mask-r-from": se() }],+ "mask-image-r-to-pos": [{ "mask-r-to": se() }],+ "mask-image-r-from-color": [{ "mask-r-from": P() }],+ "mask-image-r-to-color": [{ "mask-r-to": P() }],+ "mask-image-b-from-pos": [{ "mask-b-from": se() }],+ "mask-image-b-to-pos": [{ "mask-b-to": se() }],+ "mask-image-b-from-color": [{ "mask-b-from": P() }],+ "mask-image-b-to-color": [{ "mask-b-to": P() }],+ "mask-image-l-from-pos": [{ "mask-l-from": se() }],+ "mask-image-l-to-pos": [{ "mask-l-to": se() }],+ "mask-image-l-from-color": [{ "mask-l-from": P() }],+ "mask-image-l-to-color": [{ "mask-l-to": P() }],+ "mask-image-x-from-pos": [{ "mask-x-from": se() }],+ "mask-image-x-to-pos": [{ "mask-x-to": se() }],+ "mask-image-x-from-color": [{ "mask-x-from": P() }],+ "mask-image-x-to-color": [{ "mask-x-to": P() }],+ "mask-image-y-from-pos": [{ "mask-y-from": se() }],+ "mask-image-y-to-pos": [{ "mask-y-to": se() }],+ "mask-image-y-from-color": [{ "mask-y-from": P() }],+ "mask-image-y-to-color": [{ "mask-y-to": P() }],+ "mask-image-radial": [{ "mask-radial": [J, q] }],+ "mask-image-radial-from-pos": [{ "mask-radial-from": se() }],+ "mask-image-radial-to-pos": [{ "mask-radial-to": se() }],+ "mask-image-radial-from-color": [{ "mask-radial-from": P() }],+ "mask-image-radial-to-color": [{ "mask-radial-to": P() }],"mask-image-radial-shape": [{ "mask-radial": ["circle", "ellipse"] }],"mask-image-radial-size": [{ "mask-radial": [{closest: ["side", "corner"],farthest: ["side", "corner"]}] }],"mask-image-radial-pos": [{ "mask-radial-at": b() }],- "mask-image-conic-pos": [{ "mask-conic": [j] }],- "mask-image-conic-from-pos": [{ "mask-conic-from": ve() }],- "mask-image-conic-to-pos": [{ "mask-conic-to": ve() }],- "mask-image-conic-from-color": [{ "mask-conic-from": E() }],- "mask-image-conic-to-color": [{ "mask-conic-to": E() }],+ "mask-image-conic-pos": [{ "mask-conic": [K] }],+ "mask-image-conic-from-pos": [{ "mask-conic-from": se() }],+ "mask-image-conic-to-pos": [{ "mask-conic-to": se() }],+ "mask-image-conic-from-color": [{ "mask-conic-from": P() }],+ "mask-image-conic-to-color": [{ "mask-conic-to": P() }],"mask-mode": [{ mask: ["alpha","luminance",@@ -10259,122 +15980,122 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr"stroke","view"] }],- "mask-position": [{ mask: ue() }],- "mask-repeat": [{ mask: de() }],- "mask-size": [{ mask: fe() }],+ "mask-position": [{ mask: ne() }],+ "mask-repeat": [{ mask: re() }],+ "mask-size": [{ mask: ie() }],"mask-type": [{ "mask-type": ["alpha", "luminance"] }],"mask-image": [{ mask: ["none",- N,- M+ J,+ q] }],filter: [{ filter: ["","none",- N,- M+ J,+ q] }],- blur: [{ blur: ye() }],+ blur: [{ blur: ce() }],brightness: [{ brightness: [- j,- N,- M+ K,+ J,+ q] }],contrast: [{ contrast: [- j,- N,- M+ K,+ J,+ q] }],"drop-shadow": [{ "drop-shadow": ["","none",p,- tt,- Ye+ ql,+ Vl] }],- "drop-shadow-color": [{ "drop-shadow": E() }],+ "drop-shadow-color": [{ "drop-shadow": P() }],grayscale: [{ grayscale: ["",- j,- N,- M+ K,+ J,+ q] }],"hue-rotate": [{ "hue-rotate": [- j,- N,- M+ K,+ J,+ q] }],invert: [{ invert: ["",- j,- N,- M+ K,+ J,+ q] }],saturate: [{ saturate: [- j,- N,- M+ K,+ J,+ q] }],sepia: [{ sepia: ["",- j,- N,- M+ K,+ J,+ q] }],"backdrop-filter": [{ "backdrop-filter": ["","none",- N,- M+ J,+ q] }],- "backdrop-blur": [{ "backdrop-blur": ye() }],+ "backdrop-blur": [{ "backdrop-blur": ce() }],"backdrop-brightness": [{ "backdrop-brightness": [- j,- N,- M+ K,+ J,+ q] }],"backdrop-contrast": [{ "backdrop-contrast": [- j,- N,- M+ K,+ J,+ q] }],"backdrop-grayscale": [{ "backdrop-grayscale": ["",- j,- N,- M+ K,+ J,+ q] }],"backdrop-hue-rotate": [{ "backdrop-hue-rotate": [- j,- N,- M+ K,+ J,+ q] }],"backdrop-invert": [{ "backdrop-invert": ["",- j,- N,- M+ K,+ J,+ q] }],"backdrop-opacity": [{ "backdrop-opacity": [- j,- N,- M+ K,+ J,+ q] }],"backdrop-saturate": [{ "backdrop-saturate": [- j,- N,- M+ K,+ J,+ q] }],"backdrop-sepia": [{ "backdrop-sepia": ["",- j,- N,- M+ K,+ J,+ q] }],"border-collapse": [{ border: ["collapse", "separate"] }],- "border-spacing": [{ "border-spacing": C() }],- "border-spacing-x": [{ "border-spacing-x": C() }],- "border-spacing-y": [{ "border-spacing-y": C() }],+ "border-spacing": [{ "border-spacing": w() }],+ "border-spacing-x": [{ "border-spacing-x": w() }],+ "border-spacing-y": [{ "border-spacing-y": w() }],"table-layout": [{ table: ["auto", "fixed"] }],caption: [{ caption: ["top", "bottom"] }],transition: [{ transition: [@@ -10385,56 +16106,56 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr"shadow","transform","none",- N,- M+ J,+ q] }],"transition-behavior": [{ transition: ["normal", "discrete"] }],duration: [{ duration: [- j,+ K,"initial",- N,- M+ J,+ q] }],ease: [{ ease: ["linear","initial",_,- N,- M+ J,+ q] }],delay: [{ delay: [- j,- N,- M+ K,+ J,+ q] }],animate: [{ animate: ["none",v,- N,- M+ J,+ q] }],backface: [{ backface: ["hidden", "visible"] }],perspective: [{ perspective: [h,- N,- M+ J,+ q] }],"perspective-origin": [{ "perspective-origin": x() }],- rotate: [{ rotate: be() }],- "rotate-x": [{ "rotate-x": be() }],- "rotate-y": [{ "rotate-y": be() }],- "rotate-z": [{ "rotate-z": be() }],- scale: [{ scale: xe() }],- "scale-x": [{ "scale-x": xe() }],- "scale-y": [{ "scale-y": xe() }],- "scale-z": [{ "scale-z": xe() }],+ rotate: [{ rotate: le() }],+ "rotate-x": [{ "rotate-x": le() }],+ "rotate-y": [{ "rotate-y": le() }],+ "rotate-z": [{ "rotate-z": le() }],+ scale: [{ scale: ue() }],+ "scale-x": [{ "scale-x": ue() }],+ "scale-y": [{ "scale-y": ue() }],+ "scale-z": [{ "scale-z": ue() }],"scale-3d": ["scale-3d"],- skew: [{ skew: Se() }],- "skew-x": [{ "skew-x": Se() }],- "skew-y": [{ "skew-y": Se() }],+ skew: [{ skew: R() }],+ "skew-x": [{ "skew-x": R() }],+ "skew-y": [{ "skew-y": R() }],transform: [{ transform: [- N,- M,+ J,+ q,"","none","gpu",@@ -10442,19 +16163,19 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr] }],"transform-origin": [{ origin: x() }],"transform-style": [{ transform: ["3d", "flat"] }],- translate: [{ translate: Ce() }],- "translate-x": [{ "translate-x": Ce() }],- "translate-y": [{ "translate-y": Ce() }],- "translate-z": [{ "translate-z": Ce() }],+ translate: [{ translate: z() }],+ "translate-x": [{ "translate-x": z() }],+ "translate-y": [{ "translate-y": z() }],+ "translate-z": [{ "translate-z": z() }],"translate-none": ["translate-none"],zoom: [{ zoom: [- Me,- N,- M+ wl,+ J,+ q] }],- accent: [{ accent: E() }],+ accent: [{ accent: P() }],appearance: [{ appearance: ["none", "auto"] }],- "caret-color": [{ caret: E() }],+ "caret-color": [{ caret: P() }],"color-scheme": [{ scheme: ["normal","dark",@@ -10500,8 +16221,8 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr"nwse-resize","zoom-in","zoom-out",- N,- M+ J,+ q] }],"field-sizing": [{ "field-sizing": ["fixed", "content"] }],"pointer-events": [{ "pointer-events": ["auto", "none"] }],@@ -10512,8 +16233,8 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr"x"] }],"scroll-behavior": [{ scroll: ["auto", "smooth"] }],- "scrollbar-thumb-color": [{ "scrollbar-thumb": E() }],- "scrollbar-track-color": [{ "scrollbar-track": E() }],+ "scrollbar-thumb-color": [{ "scrollbar-thumb": P() }],+ "scrollbar-track-color": [{ "scrollbar-track": P() }],"scrollbar-gutter": [{ "scrollbar-gutter": ["auto","stable",@@ -10524,28 +16245,28 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr"thin","none"] }],- "scroll-m": [{ "scroll-m": C() }],- "scroll-mx": [{ "scroll-mx": C() }],- "scroll-my": [{ "scroll-my": C() }],- "scroll-ms": [{ "scroll-ms": C() }],- "scroll-me": [{ "scroll-me": C() }],- "scroll-mbs": [{ "scroll-mbs": C() }],- "scroll-mbe": [{ "scroll-mbe": C() }],- "scroll-mt": [{ "scroll-mt": C() }],- "scroll-mr": [{ "scroll-mr": C() }],- "scroll-mb": [{ "scroll-mb": C() }],- "scroll-ml": [{ "scroll-ml": C() }],- "scroll-p": [{ "scroll-p": C() }],- "scroll-px": [{ "scroll-px": C() }],- "scroll-py": [{ "scroll-py": C() }],- "scroll-ps": [{ "scroll-ps": C() }],- "scroll-pe": [{ "scroll-pe": C() }],- "scroll-pbs": [{ "scroll-pbs": C() }],- "scroll-pbe": [{ "scroll-pbe": C() }],- "scroll-pt": [{ "scroll-pt": C() }],- "scroll-pr": [{ "scroll-pr": C() }],- "scroll-pb": [{ "scroll-pb": C() }],- "scroll-pl": [{ "scroll-pl": C() }],+ "scroll-m": [{ "scroll-m": w() }],+ "scroll-mx": [{ "scroll-mx": w() }],+ "scroll-my": [{ "scroll-my": w() }],+ "scroll-ms": [{ "scroll-ms": w() }],+ "scroll-me": [{ "scroll-me": w() }],+ "scroll-mbs": [{ "scroll-mbs": w() }],+ "scroll-mbe": [{ "scroll-mbe": w() }],+ "scroll-mt": [{ "scroll-mt": w() }],+ "scroll-mr": [{ "scroll-mr": w() }],+ "scroll-mb": [{ "scroll-mb": w() }],+ "scroll-ml": [{ "scroll-ml": w() }],+ "scroll-p": [{ "scroll-p": w() }],+ "scroll-px": [{ "scroll-px": w() }],+ "scroll-py": [{ "scroll-py": w() }],+ "scroll-ps": [{ "scroll-ps": w() }],+ "scroll-pe": [{ "scroll-pe": w() }],+ "scroll-pbs": [{ "scroll-pbs": w() }],+ "scroll-pbe": [{ "scroll-pbe": w() }],+ "scroll-pt": [{ "scroll-pt": w() }],+ "scroll-pr": [{ "scroll-pr": w() }],+ "scroll-pb": [{ "scroll-pb": w() }],+ "scroll-pl": [{ "scroll-pl": w() }],"snap-align": [{ snap: ["start","end",@@ -10587,17 +16308,17 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr"scroll","contents","transform",- N,- M+ J,+ q] }],- fill: [{ fill: ["none", ...E()] }],+ fill: [{ fill: ["none", ...P()] }],"stroke-w": [{ stroke: [- j,- Xe,- Ue,- We+ K,+ Hl,+ Fl,+ Il] }],- stroke: [{ stroke: ["none", ...E()] }],+ stroke: [{ stroke: ["none", ...P()] }],"forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]},conflictingClassGroups: {@@ -10853,16 +16574,16 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr"selection"]};-}, mt = (e, { cacheSize: t, prefix: n, experimentalParseClassName: r, extend: i = {}, override: a = {} }) => (ht(e, "cacheSize", t), ht(e, "prefix", n), ht(e, "experimentalParseClassName", r), gt(e.theme, a.theme), gt(e.classGroups, a.classGroups), gt(e.conflictingClassGroups, a.conflictingClassGroups), gt(e.conflictingClassGroupModifiers, a.conflictingClassGroupModifiers), ht(e, "postfixLookupClassGroups", a.postfixLookupClassGroups), ht(e, "orderSensitiveModifiers", a.orderSensitiveModifiers), _t(e.theme, i.theme), _t(e.classGroups, i.classGroups), _t(e.conflictingClassGroups, i.conflictingClassGroups), _t(e.conflictingClassGroupModifiers, i.conflictingClassGroupModifiers), vt(e, i, "postfixLookupClassGroups"), vt(e, i, "orderSensitiveModifiers"), e), ht = (e, t, n) => {+}, ou = (e, { cacheSize: t, prefix: n, experimentalParseClassName: r, extend: i = {}, override: a = {} }) => (su(e, "cacheSize", t), su(e, "prefix", n), su(e, "experimentalParseClassName", r), cu(e.theme, a.theme), cu(e.classGroups, a.classGroups), cu(e.conflictingClassGroups, a.conflictingClassGroups), cu(e.conflictingClassGroupModifiers, a.conflictingClassGroupModifiers), su(e, "postfixLookupClassGroups", a.postfixLookupClassGroups), su(e, "orderSensitiveModifiers", a.orderSensitiveModifiers), lu(e.theme, i.theme), lu(e.classGroups, i.classGroups), lu(e.conflictingClassGroups, i.conflictingClassGroups), lu(e.conflictingClassGroupModifiers, i.conflictingClassGroupModifiers), uu(e, i, "postfixLookupClassGroups"), uu(e, i, "orderSensitiveModifiers"), e), su = (e, t, n) => {n !== void 0 && (e[t] = n);-}, gt = (e, t) => {- if (t) for (let n in t) ht(e, n, t[n]);-}, _t = (e, t) => {- if (t) for (let n in t) vt(e, t, n);-}, vt = (e, t, n) => {+}, cu = (e, t) => {+ if (t) for (let n in t) su(e, n, t[n]);+}, lu = (e, t) => {+ if (t) for (let n in t) uu(e, t, n);+}, uu = (e, t, n) => {let r = t[n];r !== void 0 && (e[n] = e[n] ? e[n].concat(r) : r);-}, yt = (e, ...t) => typeof e == "function" ? D(pt, e, ...t) : D(() => mt(pt(), e), ...t), bt = [+}, du = (e, ...t) => typeof e == "function" ? fl(au, e, ...t) : fl(() => ou(au(), e), ...t), fu = ["large-title","display-1","display-2",@@ -10876,18 +16597,18 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr"body-2","caption-1","caption-2"-], xt = [+], pu = ["regular","medium","semibold","bold"-], St = yt({ extend: { classGroups: { "font-size": [{ text: bt.flatMap((e) => xt.map((t) => `${e}-${t}`)) }] } } });-function Ct(e) {+], mu = du({ extend: { classGroups: { "font-size": [{ text: fu.flatMap((e) => pu.map((t) => `${e}-${t}`)) }] } } });+function hu(e) {return e;}//#endregion//#region node_modules/react/cjs/react-jsx-runtime.production.js-var wt = /* @__PURE__ */ s(((e) => {+var gu = /* @__PURE__ */ l(((e) => {var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.fragment");function r(e, n, r) {var i = null;@@ -10902,24 +16623,39 @@ var wt = /* @__PURE__ */ s(((e) => {};}e.Fragment = n, e.jsx = r, e.jsxs = r;-})), P = (/* @__PURE__ */ s(((e, t) => {- t.exports = wt();+})), Y = (/* @__PURE__ */ l(((e, t) => {+ t.exports = gu();})))();-function Tt({ className: e, children: t }) {- return /* @__PURE__ */ (0, P.jsx)("div", {- className: St("flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3", e),+function _u({ className: e, children: t }) {+ return /* @__PURE__ */ (0, Y.jsx)("div", {+ className: mu("flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3", e),children: t});}-function Et({ className: e, children: t }) {- return /* @__PURE__ */ (0, P.jsx)("p", {- className: St("w-full px-3 text-body-2-medium text-text-secondary", e),+function vu({ className: e, children: t }) {+ return /* @__PURE__ */ (0, Y.jsx)("p", {+ className: mu("w-full px-3 text-body-2-medium text-text-secondary", e),children: t});}+function yu({ label: e, description: t, children: n }) {+ return /* @__PURE__ */ (0, Y.jsxs)("div", {+ className: mu("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, Y.jsxs)("div", {+ className: "flex min-w-0 flex-col",+ children: [/* @__PURE__ */ (0, Y.jsx)("p", {+ className: "text-body-regular text-text-primary",+ children: e+ }), t && /* @__PURE__ */ (0, Y.jsx)("p", {+ className: "text-body-2-regular text-text-secondary",+ children: t+ })]+ }), n]+ });+}//#endregion//#region src/react/boardui/components/base/buttons/button.tsx-var Dt = Ct({+var bu = hu({base: ["inline-flex items-center justify-center gap-0.5 whitespace-nowrap overflow-hidden","font-sans select-none cursor-pointer",@@ -10974,223 +16710,38 @@ var Dt = Ct({].join(" ")}});-function Ot({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadingIcon: r, trailingIcon: i, children: a, className: o, type: s = "button", ref: c, ...l }) {- return /* @__PURE__ */ (0, P.jsxs)("button", {+function xu({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadingIcon: r, trailingIcon: i, children: a, className: o, type: s = "button", ref: c, ...l }) {+ return /* @__PURE__ */ (0, Y.jsxs)("button", {ref: c,type: s,- className: St(Dt.base, Dt.size[t], Dt.variant[e], n && Dt.iconOnlySize[t], o),+ className: mu(bu.base, bu.size[t], bu.variant[e], n && bu.iconOnlySize[t], o),...l,children: [- r ? /* @__PURE__ */ (0, P.jsx)(r, {- className: Dt.icon[t],+ r ? /* @__PURE__ */ (0, Y.jsx)(r, {+ className: bu.icon[t],"aria-hidden": !0}) : null,- !n && a != null && /* @__PURE__ */ (0, P.jsx)("span", {- className: Dt.label[t],+ !n && a != null && /* @__PURE__ */ (0, Y.jsx)("span", {+ className: bu.label[t],children: a}),- !n && i ? /* @__PURE__ */ (0, P.jsx)(i, {- className: Dt.icon[t],+ !n && i ? /* @__PURE__ */ (0, Y.jsx)(i, {+ className: bu.icon[t],"aria-hidden": !0}) : null]});}//#endregion-//#region node_modules/react-aria/dist/private/utils/chain.mjs-function kt(...e) {- return (...t) => {- for (let n of e) typeof n == "function" && n(...t);- };-}-//#endregion-//#region node_modules/react-aria/dist/private/utils/useLayoutEffect.mjs-var At = typeof document < "u" ? v.useLayoutEffect : () => {}, jt = {- prefix: String(Math.round(Math.random() * 1e10)),- current: 0-}, Mt = /*#__PURE__*/ v.createContext(jt), Nt = /*#__PURE__*/ v.createContext(!1);-typeof window < "u" && window.document && window.document.createElement;-var Pt = /* @__PURE__ */ new WeakMap();-function Ft(e = !1) {- let t = (0, v.useContext)(Mt), n = (0, v.useRef)(null);- if (n.current === null && !e) {- let e = v.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?.ReactCurrentOwner?.current;- if (e) {- let n = Pt.get(e);- n == null ? Pt.set(e, {- id: t.current,- state: e.memoizedState- }) : e.memoizedState !== n.state && (t.current = n.id, Pt.delete(e));- }- n.current = ++t.current;- }- return n.current;-}-function It(e) {- let t = (0, v.useContext)(Mt), n = Ft(!!e), r = `react-aria${t.prefix}`;- return e || `${r}-${n}`;-}-function Lt(e) {- let t = v.useId(), [n] = (0, v.useState)(Ht()), r = n ? "react-aria" : `react-aria${jt.prefix}`;- return e || `${r}-${t}`;-}-var Rt = typeof v.useId == "function" ? Lt : It;-function zt() {- return !1;-}-function Bt() {- return !0;-}-function Vt(e) {- return () => {};-}-function Ht() {- return typeof v.useSyncExternalStore == "function" ? v.useSyncExternalStore(Vt, zt, Bt) : (0, v.useContext)(Nt);-}-//#endregion-//#region node_modules/react-aria/dist/private/utils/useValueEffect.mjs-function Ut(e) {- let [t, n] = (0, v.useState)(e), r = (0, v.useRef)(t), i = (0, v.useRef)(null), a = (0, v.useRef)(() => {- if (!i.current) return;- let e = i.current.next();- if (e.done) {- i.current = null;- return;- }- r.current === e.value ? a.current() : n(e.value);- });- return At(() => {- r.current = t, i.current && a.current();- }), [t, (0, v.useCallback)((e) => {- i.current = e(r.current), a.current();- }, [a])];-}-//#endregion-//#region node_modules/react-aria/dist/private/utils/useId.mjs-var Wt = !!(typeof window < "u" && window.document && window.document.createElement), Gt = /* @__PURE__ */ new Map(), Kt;-typeof FinalizationRegistry < "u" && (Kt = new FinalizationRegistry((e) => {- Gt.delete(e);-}));-var qt = /* @__PURE__ */ new WeakMap();-function Jt(e) {- let [t, n] = (0, v.useState)(e), r = (0, v.useRef)(null), i = Rt(t), a = (0, v.useRef)(null), o = qt.get(a);- if (Kt && o !== i && (o != null && Kt.unregister(a), Kt.register(a, i, a), qt.set(a, i)), Wt) {- let e = Gt.get(i);- e && !e.includes(r) ? e.push(r) : Gt.set(i, [r]);- }- return At(() => {- let e = i;- return () => {- Kt && (Kt.unregister(a), qt.delete(a)), Gt.delete(e);- };- }, [i]), (0, v.useEffect)(() => {- let e = r.current;- return e && n(e), () => {- e && (r.current = null);- };- }), i;-}-function Yt(e, t) {- if (e === t) return e;- let n = Gt.get(e);- if (n) return n.forEach((e) => e.current = t), t;- let r = Gt.get(t);- return r ? (r.forEach((t) => t.current = e), e) : t;-}-function F(e = []) {- let t = Jt(), [n, r] = Ut(t), i = (0, v.useCallback)(() => {- r(function* () {- yield t, yield document.getElementById(t) ? t : void 0;- });- }, [t, r]);- return At(i, [- t,- i,- ...e- ]), n;-}-//#endregion-//#region node_modules/react-aria/dist/private/utils/mergeRefs.mjs-function Xt(...e) {- return e.length === 1 && e[0] ? e[0] : (t) => {- let n = !1, r = e.map((e) => {- let r = Zt(e, t);- return n ||= typeof r == "function", r;- });- if (n) return () => {- r.forEach((t, n) => {- typeof t == "function" ? t() : Zt(e[n], null);- });- };- };-}-function Zt(e, t) {- if (typeof e == "function") return e(t);- e != null && (e.current = t);-}-//#endregion-//#region node_modules/clsx/dist/clsx.mjs-function Qt(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 = Qt(e[t])) && (r && (r += " "), r += n);- } else for (n in e) e[n] && (r && (r += " "), r += n);- }- return r;-}-function $t() {- for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = Qt(e)) && (r && (r += " "), r += t);- return r;-}-//#endregion-//#region node_modules/react-aria/dist/private/utils/mergeProps.mjs-function I(...e) {- let t = { ...e[0] };- for (let n = 1; n < e.length; n++) {- 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] = kt(n, i) : (e === "className" || e === "UNSAFE_className") && typeof n == "string" && typeof i == "string" ? t[e] = $t(n, i) : e === "id" && n && i ? t.id = Yt(n, i) : e === "ref" && n && i ? t.ref = Xt(n, i) : t[e] = i === void 0 ? n : i;- }- }- return t;-}-//#endregion-//#region node_modules/react-aria/dist/private/utils/useObjectRef.mjs-function en(e) {- let t = (0, v.useRef)(null), n = (0, v.useRef)(void 0), r = (0, v.useCallback)((t) => {- if (typeof e == "function") {- let n = e, r = n(t);- return () => {- typeof r == "function" ? r() : n(null);- };- }- if (e) return e.current = t, () => {- e.current = null;- };- }, [e]);- return (0, v.useMemo)(() => ({- get current() {- return t.current;- },- set current(e) {- t.current = e, n.current &&= (n.current(), void 0), e != null && (n.current = r(e));- }- }), [r]);-}-//#endregion//#region node_modules/react-aria-components/dist/private/utils.mjs-var tn = Symbol("default");-function nn({ values: e, children: t }) {- for (let [n, r] of e) t = /*#__PURE__*/ v.createElement(n.Provider, { value: r }, t);+var Su = Symbol("default");+function Cu({ values: e, children: t }) {+ for (let [n, r] of e) t = /*#__PURE__*/ C.createElement(n.Provider, { value: r }, t);return t;}-function rn(e) {+function wu(e) {let { className: t, style: n, children: r, defaultClassName: i, defaultChildren: a, defaultStyle: o, values: s, render: c } = e;- return (0, v.useMemo)(() => {+ return (0, C.useMemo)(() => {let e, l, u;return e = typeof t == "function" ? t({...s,@@ -11222,1936 +16773,2719 @@ function rn(e) {c]);}-function an(e, t) {- let n = (0, v.useContext)(e);- if (t === null) return null;- if (n && typeof n == "object" && "slots" in n && n.slots) {- let e = t || tn;- 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}.`);- }- return n.slots[e];- }- return n;-}-function on(e, t, n) {- let { ref: r, ...i } = an(n, e.slot) || {}, a = en((0, v.useMemo)(() => Xt(t, r), [t, r])), o = I(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,- ...n- }, a = typeof e.style == "function" ? e.style({- ...t,- defaultStyle: r- }) : e.style;- return {- ...r,- ...a- };- } : {- ...i.style,- ...e.style- }), [o, a];-}-function sn(e = !0) {- let [t, n] = (0, v.useState)(e), r = (0, v.useRef)(!1), i = (0, v.useCallback)((e) => {- r.current = !0, n(!!e);- }, []);- return At(() => {- r.current || n(!1);- }, []), [i, t];-}-function cn(e) {- let t = /^(data-.*)$/, n = {};- for (let r in e) t.test(r) || (n[r] = e[r]);- return n;-}-function ln(e, t, n) {- let { render: r, ...i } = t, a = (0, v.useRef)(null), o = (0, v.useMemo)(() => Xt(n, a), [n, a]);- At(() => {}, [e, r]);- let s = {- ...i,- ref: o- };- return r ? r(s, void 0) : /*#__PURE__*/ v.createElement(e, s);-}-var un = {}, dn = new Proxy({}, { get(e, t) {- if (typeof t != "string") return;- let n = un[t];- return n || (n = /*#__PURE__*/ (0, v.forwardRef)(ln.bind(null, t)), un[t] = n), n;-} }), fn = (e) => hn(e) ? e.document : gn(e) ? e : e?.ownerDocument ?? (typeof document < "u" ? document : void 0), pn = (e) => fn(e)?.defaultView ?? (typeof window < "u" ? window : void 0);-function mn(e) {- return typeof e == "object" && !!e && "nodeType" in e && typeof e.nodeType == "number";-}-function hn(e) {- return typeof e == "object" && !!e && "window" in e && e.window === e;-}-function gn(e) {- return mn(e) && e.nodeType === 9;-}-function _n(e) {- return mn(e) && e.nodeType === 11 && "host" in e;-}-//#endregion-//#region node_modules/react-stately/dist/private/flags/flags.mjs-var vn = !1;-function yn() {- return vn;-}-//#endregion-//#region node_modules/react-aria/dist/private/utils/shadowdom/DOMFunctions.mjs-function L(e, t) {- if (!yn()) 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 : _n(n) ? n.host : n.parentNode;- }- return !1;-}-var bn = (e = document) => {- if (!yn()) return e.activeElement;- let t = e.activeElement;- for (; t && "shadowRoot" in t && t.shadowRoot?.activeElement;) t = t.shadowRoot.activeElement;- return t;-};-function R(e) {- if (yn() && 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;-}-//#endregion-//#region node_modules/react-aria/dist/private/utils/focusWithoutScrolling.mjs-function xn(e) {- if (Cn()) e.focus({ preventScroll: !0 });- else {- let t = wn(e);- e.focus(), Tn(t);- }-}-var Sn = null;-function Cn() {- if (Sn == null) {- Sn = !1;- try {- document.createElement("div").focus({ get preventScroll() {- return Sn = !0, !0;- } });- } catch {}- }- return Sn;-}-function wn(e) {- let t = e.parentNode, n = [], r = document.scrollingElement || document.documentElement;- for (; t instanceof HTMLElement && t !== r;) (t.offsetHeight < t.scrollHeight || t.offsetWidth < t.scrollWidth) && n.push({- element: t,- scrollTop: t.scrollTop,- scrollLeft: t.scrollLeft- }), t = t.parentNode;- return r instanceof HTMLElement && n.push({- element: r,- scrollTop: r.scrollTop,- scrollLeft: r.scrollLeft- }), n;-}-function Tn(e) {- for (let { element: t, scrollTop: n, scrollLeft: r } of e) t.scrollTop = n, t.scrollLeft = r;-}-//#endregion-//#region node_modules/react-aria/dist/private/utils/isElementVisible.mjs-var En = typeof Element < "u" && "checkVisibility" in Element.prototype;-function Dn(e) {- let t = pn(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 } = pn(e), { display: n, visibility: r } = t(e);- i = n !== "none" && r !== "hidden" && r !== "collapse";- }- return i;-}-function On(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 kn(e, t) {- return En ? e.checkVisibility({ visibilityProperty: !0 }) && !e.closest("[data-react-aria-prevent-focus]") : e.nodeName !== "#comment" && Dn(e) && On(e, t) && (!e.parentElement || kn(e.parentElement, e));+function Tu(e, t) {+ let n = (0, C.useContext)(e);+ if (t === null) return null;+ if (n && typeof n == "object" && "slots" in n && n.slots) {+ let e = t || Su;+ 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}.`);+ }+ return n.slots[e];+ }+ return n;}-//#endregion-//#region node_modules/react-aria/dist/private/utils/isFocusable.mjs-var An = [- "input:not([disabled]):not([type=hidden])",- "select:not([disabled])",- "textarea:not([disabled])",- "button:not([disabled])",- "a[href]",- "area[href]",- "summary",- "iframe",- "object",- "embed",- "audio[controls]",- "video[controls]",- "[contenteditable]:not([contenteditable^=\"false\"])",- "permission"-], jn = An.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";-An.push("[tabindex]:not([tabindex=\"-1\"]):not([disabled])"), An.join(":not([hidden]):not([tabindex=\"-1\"]),");-function Mn(e, t) {- return e.matches(jn) && !Nn(e) && (t?.skipVisibilityCheck || kn(e));+function Eu(e, t, n) {+ let { ref: r, ...i } = Tu(n, e.slot) || {}, a = en((0, C.useMemo)(() => It(t, r), [t, r])), o = V(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,+ ...n+ }, a = typeof e.style == "function" ? e.style({+ ...t,+ defaultStyle: r+ }) : e.style;+ return {+ ...r,+ ...a+ };+ } : {+ ...i.style,+ ...e.style+ }), [o, a];}-function Nn(e) {- let t = e;- for (; t != null;) {- if (t instanceof pn(t).HTMLElement && t.inert) return !0;- t = t.parentElement;- }- return !1;+function Du(e = !0) {+ let [t, n] = (0, C.useState)(e), r = (0, C.useRef)(!1), i = (0, C.useCallback)((e) => {+ r.current = !0, n(!!e);+ }, []);+ return B(() => {+ r.current || n(!1);+ }, []), [i, t];}-//#endregion-//#region node_modules/react-aria/dist/private/interactions/utils.mjs-function Pn(e) {- let t = e;- return t.nativeEvent = e, t.isDefaultPrevented = () => t.defaultPrevented, t.isPropagationStopped = () => t.cancelBubble, t.persist = () => {}, t;+function Ou(e) {+ let t = /^(data-.*)$/, n = {};+ for (let r in e) t.test(r) || (n[r] = e[r]);+ return n;}-function Fn(e, t) {- Object.defineProperty(e, "target", { value: t }), Object.defineProperty(e, "currentTarget", { value: t });+function ku(e, t, n) {+ let { render: r, ...i } = t, a = (0, C.useRef)(null), o = (0, C.useMemo)(() => It(n, a), [n, a]);+ B(() => {}, [e, r]);+ let s = {+ ...i,+ ref: o+ };+ return r ? r(s, void 0) : /*#__PURE__*/ C.createElement(e, s);}-function In(e) {- let t = (0, v.useRef)({- isFocused: !1,- observer: null+var Au = {}, ju = new Proxy({}, { get(e, t) {+ if (typeof t != "string") return;+ let n = Au[t];+ return n || (n = /*#__PURE__*/ (0, C.forwardRef)(ku.bind(null, t)), Au[t] = n), n;+} }), Mu = /*#__PURE__*/ (0, C.createContext)(null), Nu = /*#__PURE__*/ (0, C.createContext)(null), Pu = /*#__PURE__*/ (0, C.createContext)(null), Fu = {+ CollectionRoot({ collection: e, renderDropIndicator: t }) {+ return Iu(e, null, t);+ },+ CollectionBranch({ collection: e, parent: t, renderDropIndicator: n }) {+ return Iu(e, t, n);+ }+};+function Iu(e, t, n) {+ return w({+ items: t ? e.getChildren(t.key) : e,+ dependencies: [n],+ children(t) {+ if (t.type === "content") return /*#__PURE__*/ C.createElement(C.Fragment, null);+ let r = t.render(t);+ return !n || t.type !== "item" ? r : /*#__PURE__*/ C.createElement(C.Fragment, null, n({+ type: "item",+ key: t.key,+ dropPosition: "before"+ }), r, Lu(e, t, n));+ }});- return At(() => {- let e = t.current;- return () => {- e.observer &&= (e.observer.disconnect(), null);- };- }, []), (0, v.useCallback)((n) => {- let r = R(n);- if (r instanceof HTMLButtonElement || r instanceof HTMLInputElement || r instanceof HTMLTextAreaElement || r instanceof HTMLSelectElement) {- t.current.isFocused = !0;- let n = r;- n.addEventListener("focusout", (r) => {- if (t.current.isFocused = !1, n.disabled) {- let t = Pn(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 === bn() ? null : bn();- n.dispatchEvent(new FocusEvent("blur", { relatedTarget: e })), n.dispatchEvent(new FocusEvent("focusout", {- bubbles: !0,- relatedTarget: e- }));- }- }), t.current.observer.observe(n, {- attributes: !0,- attributeFilter: ["disabled"]+}+function Lu(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);+ for (; o != null && o.type !== "item";) o = o.nextKey == null ? null : e.getItem(o.nextKey);+ let s = [];+ if (o == null) {+ let r = t;+ for (; r?.type === "item" && (!a || r.parentKey !== a.parentKey && a.level < r.level);) {+ let t = n({+ type: "item",+ key: r.key,+ dropPosition: "after"});+ /*#__PURE__*/ (0, C.isValidElement)(t) && s.push(/*#__PURE__*/ (0, C.cloneElement)(t, { key: `${r.key}-after` })), r = r.parentKey == null ? null : e.getItem(r.parentKey);}- }, [e]);+ }+ return s;}-var Ln = !1;-function Rn(e) {- for (; e && !Mn(e, { skipVisibilityCheck: !0 });) e = e.parentElement;- let t = bn(pn(e).document);- if (!t || t === e) return;- let n = e?.getRootNode(), r = n != null && _n(n) ? n : pn(e), i = (t) => t === e || t != null && L(e, t), a = (e) => e === t || t != null && e != null && L(t, e);- Ln = !0;- let o = !1, s = (e) => {- (a(R(e)) || o) && e.stopImmediatePropagation();- }, c = (n) => {- (a(R(n)) || o) && (n.stopImmediatePropagation(), !e && !o && (o = !0, xn(t), d()));- }, l = (e) => {- (i(R(e)) || o) && e.stopImmediatePropagation();- }, u = (e) => {- (i(R(e)) || o) && (e.stopImmediatePropagation(), o || (o = !0, xn(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), Ln = !1, o = !1;- }, f = requestAnimationFrame(d);- return d;+var Ru = /*#__PURE__*/ (0, C.createContext)(Fu), zu = /*#__PURE__*/ (0, C.createContext)({}), Bu = /*#__PURE__*/ cn(function(e, t) {+ [e, t] = Eu(e, t, zu);+ let { elementType: n = "label", ...r } = e, i = ju[n];+ return /*#__PURE__*/ C.createElement(i, {+ className: "react-aria-Label",+ ...r,+ ref: t+ });+}), Vu = /*#__PURE__*/ (0, C.createContext)(null), Hu = /*#__PURE__*/ (0, C.createContext)({}), Uu = /*#__PURE__*/ cn(function(e, t) {+ [e, t] = Eu(e, t, Hu);+ let n = e, { isPending: r } = n, { buttonProps: i, isPressed: a } = Gr(e, t);+ i = Gu(i, r);+ let { focusProps: o, isFocused: s, isFocusVisible: c } = G(e), { hoverProps: l, isHovered: u } = Go({+ ...e,+ isDisabled: e.isDisabled || r+ }), d = {+ isHovered: u,+ isPressed: (n.isPressed || a) && !r,+ isFocused: s,+ isFocusVisible: c,+ isDisabled: e.isDisabled || !1,+ isPending: r ?? !1+ }, f = wu({+ ...e,+ values: d,+ defaultClassName: "react-aria-Button"+ }), p = Nt(i.id), m = Nt(), h = i["aria-labelledby"];+ r && (h ? h = `${h} ${m}` : i["aria-label"] && (h = `${p} ${m}`));+ let g = (0, C.useRef)(r);+ (0, C.useEffect)(() => {+ let e = { "aria-labelledby": h || p };+ (!g.current && s && r || g.current && s && !r) && Ci(e, "assertive"), g.current = r;+ }, [+ r,+ s,+ h,+ p+ ]);+ let _ = xr(e, { global: !0 });+ return delete _.onClick, /*#__PURE__*/ C.createElement(ju.button, {+ ...V(_, f, i, o, l),+ type: i.type === "submit" && r ? "button" : i.type,+ id: p,+ ref: t,+ "aria-labelledby": h,+ slot: e.slot || void 0,+ "aria-disabled": r ? "true" : i["aria-disabled"],+ "data-disabled": e.isDisabled || void 0,+ "data-pressed": d.isPressed || void 0,+ "data-hovered": u || void 0,+ "data-focused": s || void 0,+ "data-pending": r || void 0,+ "data-focus-visible": c || void 0+ }, /*#__PURE__*/ C.createElement(Vu.Provider, { value: { id: m } }, f.children));+}), Wu = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;+function Gu(e, t) {+ if (t) {+ for (let t in e) t.startsWith("on") && !Wu.test(t) && (e[t] = void 0);+ e.href = void 0, e.target = void 0;+ }+ return e;}//#endregion-//#region node_modules/react-aria/dist/private/utils/platform.mjs-function zn(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 Bn(e) {- return typeof window < "u" && window.navigator != null && e.test(window.navigator.userAgentData?.platform || window.navigator.platform);-}-function Vn(e) {- let t = null;- return () => (t ??= e(), t);+//#region node_modules/react-aria-components/dist/private/Heading.mjs+var Ku = /*#__PURE__*/ (0, C.createContext)({}), qu = /*#__PURE__*/ (0, C.forwardRef)(function(e, t) {+ [e, t] = Eu(e, t, Ku);+ let { children: n, level: r = 3, className: i, ...a } = e, o = ju[`h${r}`];+ return /*#__PURE__*/ C.createElement(o, {+ ...a,+ ref: t,+ className: i ?? "react-aria-Heading"+ }, n);+}), Ju = /*#__PURE__*/ (0, C.createContext)({}), Yu = /*#__PURE__*/ cn(function(e, t) {+ [e, t] = Eu(e, t, Ju);+ let { elementType: n = "span", ...r } = e, i = ju[n];+ return /*#__PURE__*/ C.createElement(i, {+ className: "react-aria-Text",+ ...r,+ ref: t+ });+}), X = /*#__PURE__*/ (0, C.createContext)(null), Xu = /*#__PURE__*/ (0, C.createContext)(null), Z = /*#__PURE__*/ (0, C.createContext)(null), Q = /*#__PURE__*/ (0, C.createContext)(null), Zu = /*#__PURE__*/ (0, C.createContext)(null);+function Qu(e, t) {+ let { validationBehavior: n } = Tu(Xu) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, C.useContext)(Q), a = en((0, C.useMemo)(() => It(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {+ ...Ou(e),+ children: typeof e.children == "function" || e.children,+ value: e.value,+ validationBehavior: r+ };+ return [i ? oa(o, i, a) : $i(o, aa(e), a), a];}-var Hn = Vn(function() {- return Bn(/^Mac/i);-}), Un = Vn(function() {- return Bn(/^iPhone/i);-}), Wn = Vn(function() {- return Bn(/^iPad/i) || Hn() && navigator.maxTouchPoints > 1;-}), Gn = Vn(function() {- return Un() || Wn();-}), Kn = Vn(function() {- return zn(/AppleWebKit/i) && (Gn() || !qn());-}), qn = Vn(function() {- return zn(/Chrome|CriOS|CrMo/i);-}), Jn = Vn(function() {- return zn(/Android/i);-}), Yn = Vn(function() {- return zn(/(Firefox|FxiOS)/i);-});+var $u = /*#__PURE__*/ (0, C.forwardRef)(function(e, t) {+ let { inputRef: n = null, ...r } = e;+ [e, t] = Eu(r, t, Z);+ let [i, a] = Qu(e, n);+ return /*#__PURE__*/ C.createElement(Zu.Provider, { value: {+ ...i,+ inputRef: a,+ defaultClassName: "react-aria-Checkbox",+ isIndeterminate: e.isIndeterminate,+ isRequired: e.isRequired+ } }, /*#__PURE__*/ C.createElement(ed, {+ ...e,+ ref: t+ }));+}), ed = /*#__PURE__*/ (0, C.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, C.useContext)(Zu), { isFocused: p, isFocusVisible: m, focusProps: h } = G(), g = a || o, { hoverProps: _, isHovered: v } = Go({+ ...e,+ isDisabled: g+ }), y = wu({+ ...e,+ defaultClassName: u,+ values: {+ isSelected: i,+ isIndeterminate: d || !1,+ isPressed: s,+ isHovered: v,+ isFocused: p,+ isFocusVisible: m,+ isDisabled: a,+ isReadOnly: o,+ isInvalid: c,+ isRequired: f || !1+ }+ }), b = xr(e, { global: !0 });+ return delete b.id, delete b.onClick, /*#__PURE__*/ C.createElement(ju.label, {+ ...V(b, n, _, y),+ ref: t,+ slot: e.slot || void 0,+ "data-selected": i || void 0,+ "data-indeterminate": d || void 0,+ "data-pressed": s || void 0,+ "data-hovered": v || void 0,+ "data-focused": p || void 0,+ "data-focus-visible": m || void 0,+ "data-disabled": a || void 0,+ "data-readonly": o || void 0,+ "data-invalid": c || void 0,+ "data-required": f || void 0+ }, /*#__PURE__*/ C.createElement(ua, { elementType: "span" }, /*#__PURE__*/ C.createElement("input", {+ ...V(r, h),+ ref: l+ })), y.children);+}), td = /*#__PURE__*/ (0, C.createContext)({}), nd = /*#__PURE__*/ (0, C.forwardRef)(function(e, t) {+ [e, t] = Eu(e, t, td);+ 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 } = Go({+ onHoverStart: a,+ onHoverChange: o,+ onHoverEnd: s,+ isDisabled: n+ }), { isFocused: d, isFocusVisible: f, focusProps: p } = G({ within: !0 }), m = wu({+ ...e,+ values: {+ isHovered: u,+ isFocusWithin: d,+ isFocusVisible: f,+ isDisabled: n,+ isInvalid: r+ },+ defaultClassName: "react-aria-Group"+ });+ return /*#__PURE__*/ C.createElement(ju.div, {+ ...V(c, p, l),+ ...m,+ ref: t,+ role: e.role ?? "group",+ slot: e.slot ?? void 0,+ "data-focus-within": d || void 0,+ "data-hovered": u || void 0,+ "data-focus-visible": f || void 0,+ "data-disabled": n || void 0,+ "data-invalid": r || void 0,+ "data-readonly": i || void 0+ }, m.children);+}), rd = /*#__PURE__*/ (0, C.createContext)({}), id = (e) => {+ let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, ...i } = e;+ return i;+}, ad = /*#__PURE__*/ cn(function(e, t) {+ [e, t] = Eu(e, t, rd);+ let { hoverProps: n, isHovered: r } = Go({+ ...e,+ isDisabled: e.disabled+ }), { isFocused: i, isFocusVisible: a, focusProps: o } = G({+ isTextInput: !0,+ autoFocus: e.autoFocus+ }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = wu({+ ...e,+ values: {+ isHovered: r,+ isFocused: i,+ isFocusVisible: a,+ isDisabled: e.disabled || !1,+ isInvalid: s+ },+ defaultClassName: "react-aria-Input"+ });+ return /*#__PURE__*/ C.createElement(ju.input, {+ ...V(id(e), o, n),+ ...c,+ ref: t,+ "data-focused": i || void 0,+ "data-disabled": e.disabled || void 0,+ "data-hovered": r || void 0,+ "data-focus-visible": a || void 0,+ "data-invalid": s || void 0+ });+}), od = {};+od = {+ colorSwatchPicker: "تغييرات الألوان",+ dropzoneLabel: "DropZone",+ selectPlaceholder: "حدد عنصرًا",+ tableResizer: "أداة تغيير الحجم"+};+//#endregion+//#region node_modules/react-aria-components/dist/private/intl/bg-BG.mjs+var sd = {};+sd = {+ colorSwatchPicker: "Цветови мостри",+ dropzoneLabel: "DropZone",+ selectPlaceholder: "Изберете предмет",+ tableResizer: "Преоразмерител"+};+//#endregion+//#region node_modules/react-aria-components/dist/private/intl/cs-CZ.mjs+var cd = {};+cd = {+ colorSwatchPicker: "Vzorky barev",+ dropzoneLabel: "Místo pro přetažení",+ selectPlaceholder: "Vyberte položku",+ tableResizer: "Změna velikosti"+};+//#endregion+//#region node_modules/react-aria-components/dist/private/intl/da-DK.mjs+var ld = {};+ld = {+ colorSwatchPicker: "Farveprøver",+ dropzoneLabel: "DropZone",+ selectPlaceholder: "Vælg et element",+ tableResizer: "Størrelsesændring"+};+//#endregion+//#region node_modules/react-aria-components/dist/private/intl/de-DE.mjs+var ud = {};+ud = {+ colorSwatchPicker: "Farbfelder",+ dropzoneLabel: "Ablegebereich",+ selectPlaceholder: "Element wählen",+ tableResizer: "Größenanpassung"+};+//#endregion+//#region node_modules/react-aria-components/dist/private/intl/el-GR.mjs+var dd = {};+dd = {+ colorSwatchPicker: "Χρωματικά δείγματα",+ dropzoneLabel: "DropZone",+ selectPlaceholder: "Επιλέξτε ένα αντικείμενο",+ tableResizer: "Αλλαγή μεγέθους"+};+//#endregion+//#region node_modules/react-aria-components/dist/private/intl/en-US.mjs+var fd = {};+fd = {+ selectPlaceholder: "Select an item",+ tableResizer: "Resizer",+ dropzoneLabel: "DropZone",+ colorSwatchPicker: "Color swatches"+};+//#endregion+//#region node_modules/react-aria-components/dist/private/intl/es-ES.mjs+var pd = {};+pd = {+ colorSwatchPicker: "Muestras de colores",+ dropzoneLabel: "DropZone",+ selectPlaceholder: "Seleccionar un artículo",+ tableResizer: "Cambiador de tamaño"+};+//#endregion+//#region node_modules/react-aria-components/dist/private/intl/et-EE.mjs+var md = {};+md = {+ colorSwatchPicker: "Värvinäidised",+ dropzoneLabel: "DropZone",+ selectPlaceholder: "Valige üksus",+ tableResizer: "Suuruse muutja"+};+//#endregion+//#region node_modules/react-aria-components/dist/private/intl/fi-FI.mjs+var hd = {};+hd = {+ colorSwatchPicker: "Värimallit",+ dropzoneLabel: "DropZone",+ selectPlaceholder: "Valitse kohde",+ tableResizer: "Koon muuttaja"+};+//#endregion+//#region node_modules/react-aria-components/dist/private/intl/fr-FR.mjs+var gd = {};+gd = {+ colorSwatchPicker: "Échantillons de couleurs",+ dropzoneLabel: "DropZone",+ selectPlaceholder: "Sélectionner un élément",+ tableResizer: "Redimensionneur"+};//#endregion-//#region node_modules/react-aria/dist/private/utils/isVirtualEvent.mjs-function Xn(e) {- return e.pointerType === "" && e.isTrusted ? !0 : Jn() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;-}-function Zn(e) {- return !Jn() && e.width === 0 && e.height === 0 || Jn() && e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "mouse";-}+//#region node_modules/react-aria-components/dist/private/intl/he-IL.mjs+var _d = {};+_d = {+ colorSwatchPicker: "דוגמיות צבע",+ dropzoneLabel: "DropZone",+ selectPlaceholder: "בחר פריט",+ tableResizer: "שינוי גודל"+};//#endregion-//#region node_modules/react-aria/dist/private/utils/openLink.mjs-function Qn(e, t, n = !0) {- let { metaKey: r, ctrlKey: i, altKey: a, shiftKey: o } = t;- !Kn() && Yn() && window.event?.type?.startsWith("key") && e.target === "_blank" && (Hn() ? r = !0 : i = !0);- let s = Kn() && Hn() && !Wn() ? new KeyboardEvent("keydown", {- keyIdentifier: "Enter",- metaKey: r,- ctrlKey: i,- altKey: a,- shiftKey: o- }) : new MouseEvent("click", {- metaKey: r,- ctrlKey: i,- altKey: a,- shiftKey: o,- detail: 1,- bubbles: !0,- cancelable: !0- });- Qn.isOpening = n, xn(e), e.dispatchEvent(s), Qn.isOpening = !1;-}-Qn.isOpening = !1;+//#region node_modules/react-aria-components/dist/private/intl/hr-HR.mjs+var vd = {};+vd = {+ colorSwatchPicker: "Uzorci boja",+ dropzoneLabel: "Zona spuštanja",+ selectPlaceholder: "Odaberite stavku",+ tableResizer: "Promjena veličine"+};//#endregion-//#region node_modules/react-aria/dist/private/interactions/useFocusVisible.mjs-var $n = null, er = /* @__PURE__ */ new Set(), tr = /* @__PURE__ */ new Map(), nr = !1, rr = !1, ir = {- Tab: !0,- Escape: !0+//#region node_modules/react-aria-components/dist/private/intl/hu-HU.mjs+var yd = {};+yd = {+ colorSwatchPicker: "Színtárak",+ dropzoneLabel: "DropZone",+ selectPlaceholder: "Válasszon ki egy elemet",+ tableResizer: "Átméretező"};-function ar(e, t) {- for (let n of er) n(e, t);-}-function or(e) {- return !(e.metaKey || !Hn() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");-}-function sr(e) {- nr = !0, !Qn.isOpening && or(e) && ($n = "keyboard", ar("keyboard", e));-}-function cr(e) {- $n = "pointer", "pointerType" in e && e.pointerType, (e.type === "mousedown" || e.type === "pointerdown") && (nr = !0, ar("pointer", e));-}-function lr(e) {- !Qn.isOpening && Xn(e) && (nr = !0, $n = "virtual");-}-function ur(e) {- if (Ln) return;- let t = R(e), n = pn(t), r = fn(t);- if (t === n) {- rr = !0;- return;- }- t === r || !e.isTrusted || (!nr && !rr && ($n = "virtual", ar("virtual", e)), nr = !1, rr = !1);-}-function dr() {- Ln || (nr = !1, rr = !0);-}-function fr(e) {- if (typeof window > "u" || typeof document > "u") return;- let t = pn(e), n = fn(e);- if (tr.get(t)) return;- let r = t.HTMLElement.prototype.focus;- Reflect.defineProperty(t.HTMLElement.prototype, "focus", {- configurable: !0,- writable: !0,- value: function() {- nr = !0, r.apply(this, arguments);- }- }), n.addEventListener("keydown", sr, !0), n.addEventListener("keyup", sr, !0), n.addEventListener("click", lr, !0), t.addEventListener("focus", ur, !0), t.addEventListener("blur", dr, !1), typeof PointerEvent < "u" && (n.addEventListener("pointerdown", cr, !0), n.addEventListener("pointermove", cr, !0), n.addEventListener("pointerup", cr, !0)), t.addEventListener("beforeunload", () => {- pr(e);- }, { once: !0 }), tr.set(t, { focus: r });-}-var pr = (e, t) => {- let n = pn(e), r = fn(e);- t && r.removeEventListener("DOMContentLoaded", t), tr.has(n) && (Reflect.defineProperty(n.HTMLElement.prototype, "focus", {- configurable: !0,- writable: !0,- value: tr.get(n).focus- }), r.removeEventListener("keydown", sr, !0), r.removeEventListener("keyup", sr, !0), r.removeEventListener("click", lr, !0), n.removeEventListener("focus", ur, !0), n.removeEventListener("blur", dr, !1), typeof PointerEvent < "u" && (r.removeEventListener("pointerdown", cr, !0), r.removeEventListener("pointermove", cr, !0), r.removeEventListener("pointerup", cr, !0)), tr.delete(n));+//#endregion+//#region node_modules/react-aria-components/dist/private/intl/it-IT.mjs+var bd = {};+bd = {+ colorSwatchPicker: "Campioni di colore",+ dropzoneLabel: "Zona di rilascio",+ selectPlaceholder: "Seleziona un elemento",+ tableResizer: "Ridimensionamento"};-function mr(e) {- let t = fn(e), n;- return t.readyState === "loading" ? (n = () => {- fr(e);- }, t.addEventListener("DOMContentLoaded", n)) : fr(e), () => pr(e, n);-}-typeof document < "u" && mr();-function hr() {- return $n !== "pointer";-}-function gr() {- return $n;-}-function _r(e) {- $n = e, ar(e, null);-}-var vr = /* @__PURE__ */ new Set([- "checkbox",- "radio",- "range",- "color",- "file",- "image",- "button",- "submit",- "reset"-]);-function yr(e, t, n) {- let r = n ? R(n) : void 0, i = fn(r), a = pn(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 = bn(i);- return e = e || u instanceof o && !vr.has(u.type) || u instanceof s || u instanceof c && u.isContentEditable, !(e && t === "keyboard" && n instanceof l && !ir[n.key]);-}-function br(e, t, n) {- fr(), (0, v.useEffect)(() => {- if (n?.enabled === !1) return;- let t = (t, r) => {- yr(!!n?.isTextInput, t, r) && e(hr());- };- return er.add(t), () => {- er.delete(t);- };- }, t);-}//#endregion-//#region node_modules/react-aria/dist/private/utils/useEffectEvent.mjs-var xr = v.useInsertionEffect ?? At;-function Sr(e) {- let t = (0, v.useRef)(null);- return xr(() => {- t.current = e;- }, [e]), (0, v.useCallback)((...e) => {- let n = t.current;- return n?.(...e);- }, []);-}+//#region node_modules/react-aria-components/dist/private/intl/ja-JP.mjs+var xd = {};+xd = {+ colorSwatchPicker: "カラースウォッチ",+ dropzoneLabel: "ドロップゾーン",+ selectPlaceholder: "項目を選択",+ tableResizer: "サイズ変更ツール"+};//#endregion-//#region node_modules/react-aria/dist/private/utils/useLabels.mjs-function Cr(e, t) {- let { id: n, "aria-label": r, "aria-labelledby": i } = e;- return n = Jt(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- };-}+//#region node_modules/react-aria-components/dist/private/intl/ko-KR.mjs+var Sd = {};+Sd = {+ colorSwatchPicker: "색상 견본",+ dropzoneLabel: "드롭 영역",+ selectPlaceholder: "항목 선택",+ tableResizer: "크기 조정기"+};//#endregion-//#region node_modules/react-stately/dist/private/utils/useControlledState.mjs-var wr = typeof document < "u" ? v.useInsertionEffect ?? v.useLayoutEffect : () => {};-function Tr(e, t, n) {- let [r, i] = (0, v.useState)(e || t), a = (0, v.useRef)(r), o = (0, v.useRef)(e !== void 0), s = e !== void 0;- (0, v.useEffect)(() => {- o.current, o.current = s;- }, [s]);- let c = s ? e : r;- wr(() => {- a.current = c;- });- let [, l] = (0, v.useReducer)(() => ({}), {});- return [c, (0, v.useCallback)((e, ...t) => {- let r = typeof e == "function" ? e(a.current) : e;- Object.is(a.current, r) || (a.current = r, i(r), l(), n?.(r, ...t));- }, [n])];-}+//#region node_modules/react-aria-components/dist/private/intl/lt-LT.mjs+var Cd = {};+Cd = {+ colorSwatchPicker: "Spalvų pavyzdžiai",+ dropzoneLabel: "„DropZone“",+ selectPlaceholder: "Pasirinkite elementą",+ tableResizer: "Dydžio keitiklis"+};//#endregion-//#region node_modules/react-aria-components/dist/private/Autocomplete.mjs-var Er = /*#__PURE__*/ (0, v.createContext)(null), Dr = /* @__PURE__ */ new Map(), Or = /* @__PURE__ */ new Set();-function kr() {- if (typeof window > "u") return;- function e(e) {- return "propertyName" in e;- }- let t = (t) => {- let r = R(t);- if (!e(t) || !r) return;- let i = Dr.get(r);- i || (i = /* @__PURE__ */ new Set(), Dr.set(r, i), r.addEventListener("transitioncancel", n, { once: !0 })), i.add(t.propertyName);- }, n = (t) => {- let r = R(t);- if (!e(t) || !r) return;- let i = Dr.get(r);- if (i && (i.delete(t.propertyName), i.size === 0 && (r.removeEventListener("transitioncancel", n), Dr.delete(r)), Dr.size === 0)) {- for (let e of Or) e();- Or.clear();- }- };- document.body.addEventListener("transitionrun", t), document.body.addEventListener("transitionend", n);-}-typeof document < "u" && (document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", kr) : kr());-function Ar() {- for (let [e] of Dr) "isConnected" in e && !e.isConnected && Dr.delete(e);-}-function jr(e) {- requestAnimationFrame(() => {- Ar(), Dr.size === 0 ? e() : Or.add(e);- });-}+//#region node_modules/react-aria-components/dist/private/intl/lv-LV.mjs+var wd = {};+wd = {+ colorSwatchPicker: "Krāsu paraugi",+ dropzoneLabel: "DropZone",+ selectPlaceholder: "Izvēlēties vienumu",+ tableResizer: "Izmēra mainītājs"+};//#endregion-//#region node_modules/react-aria/dist/private/interactions/focusSafely.mjs-function Mr(e) {- if (!e.isConnected) return;- let t = fn(e);- if (gr() === "virtual") {- let n = bn(t);- jr(() => {- let r = bn(t);- (r === n || r === t.body) && e.isConnected && xn(e);- });- } else xn(e);-}+//#region node_modules/react-aria-components/dist/private/intl/nb-NO.mjs+var Td = {};+Td = {+ colorSwatchPicker: "Fargekart",+ dropzoneLabel: "Droppsone",+ selectPlaceholder: "Velg et element",+ tableResizer: "Størrelsesendrer"+};//#endregion-//#region node_modules/react-aria/dist/private/interactions/useFocus.mjs-function Nr(e) {- let { isDisabled: t, onFocus: n, onBlur: r, onFocusChange: i } = e, a = (0, v.useCallback)((e) => {- if (R(e) === e.currentTarget) return r && r(e), i && i(!1), !0;- }, [r, i]), o = In(a), s = (0, v.useCallback)((e) => {- let t = R(e), r = fn(t), a = r ? bn(r) : bn();- t === e.currentTarget && t === a && (n && n(e), i && i(!0), o(e));- }, [- i,- n,- o- ]);- return { focusProps: {- onFocus: !t && (n || i || r) ? s : void 0,- onBlur: !t && (r || i) ? a : void 0- } };-}+//#region node_modules/react-aria-components/dist/private/intl/nl-NL.mjs+var Ed = {};+Ed = {+ colorSwatchPicker: "kleurstalen",+ dropzoneLabel: "DropZone",+ selectPlaceholder: "Selecteer een item",+ tableResizer: "Resizer"+};//#endregion-//#region node_modules/react-aria/dist/private/interactions/createEventHandler.mjs-function Pr(e) {- if (e) return (t) => {- let n = !0;- e({- ...t,- preventDefault() {- t.preventDefault();- },- isDefaultPrevented() {- return t.isDefaultPrevented();- },- stopPropagation() {- n = !0;- },- continuePropagation() {- n = !1, typeof t.continuePropagation == "function" && t.continuePropagation();- },- isPropagationStopped() {- return n;- }- }), n && !(typeof t.isPropagationStopped == "function" && t.isPropagationStopped()) && t.stopPropagation();- };-}+//#region node_modules/react-aria-components/dist/private/intl/pl-PL.mjs+var Dd = {};+Dd = {+ colorSwatchPicker: "Próbki kolorów",+ dropzoneLabel: "Strefa upuszczania",+ selectPlaceholder: "Wybierz element",+ tableResizer: "Zmiana rozmiaru"+};//#endregion-//#region node_modules/react-aria/dist/private/interactions/createKeyboardShortcutHandler.mjs-var Fr = /* @__PURE__ */ new Set([- "shift",- "alt",- "control",- "meta",- "mod"-]), Ir = [- "Alt",- "Control",- "Meta",- "Shift"-];-function Lr(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(Hn() ? "Meta" : "Control"), t;-}-function Rr(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 zr(e) {- return Ir.filter((t) => e.has(t));-}-function Br(e) {- let t = e.split("+").reduce((e, t) => {- let n = t.toLowerCase();- return Fr.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,- ctrl: !1,- meta: !1,- mod: !1,- key: ""- });- 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 Vr(e) {- return e.toLowerCase();-}-var Hr = {- space: " ",- esc: "escape",- del: "delete",- ins: "insert",- left: "arrowleft",- right: "arrowright",- up: "arrowup",- down: "arrowdown",- pageup: "pageup",- pagedown: "pagedown"+//#region node_modules/react-aria-components/dist/private/intl/pt-BR.mjs+var Od = {};+Od = {+ colorSwatchPicker: "Amostras de cores",+ dropzoneLabel: "DropZone",+ selectPlaceholder: "Selecione um item",+ tableResizer: "Redimensionador"};-function Ur(e) {- let t = Vr(e);- return Hr[t] ?? t;-}-function Wr(e) {- let t = zr(Lr(e)), n = Ur(e.key);- return t.length > 0 ? `${t.join("+")}+${n}` : n;-}-function Gr(e) {- let t = zr(Rr(e)), n = Vr(e.key);- return (t.length > 0 ? `${t.join("+")}+` : "") + n;-}-function Kr(e) {- let t = /* @__PURE__ */ new Map();- for (let [n, r] of Object.entries(e)) {- let e = Br(n);- t.set(Wr(e), r);- }- return (e) => {- let n = Gr(e), r = t.get(n), i = r?.(e);- i === void 0 && r !== void 0 ? i = {- shouldContinuePropagation: !1,- shouldPreventDefault: !0- } : typeof i == "boolean" && (i = {- shouldContinuePropagation: !i,- shouldPreventDefault: i- }), i?.shouldPreventDefault && e.preventDefault(), (!r || i?.shouldContinuePropagation) && e.continuePropagation();- };-}//#endregion-//#region node_modules/react-aria/dist/private/interactions/useKeyboard.mjs-function qr(e) {- let { shortcuts: t, allowRepeats: n = !1, allowComposing: r = !1 } = e, i, a;- if (t) {- let o = Kr(t), s = Pr((e) => {- if (!L(e.currentTarget, R(e))) {- e.continuePropagation();- return;- }- if (e.nativeEvent?.repeat && !n || e.nativeEvent?.isComposing && !r) {- e.continuePropagation();- return;- }- o(e);- }), c = Pr((e) => {- if (!L(e.currentTarget, R(e))) {- e.continuePropagation();- return;- }- if (e.nativeEvent?.repeat && !n || e.nativeEvent?.isComposing && !r) {- e.continuePropagation();- return;- }- e.continuePropagation();- });- i = e.onKeyDown ? kt(e.onKeyDown, s) : s, a = e.onKeyUp ? kt(e.onKeyUp, c) : c;- } else i = Pr(e.onKeyDown), a = Pr(e.onKeyUp);- return { keyboardProps: e.isDisabled ? {} : {- onKeyDown: i,- onKeyUp: a- } };-}+//#region node_modules/react-aria-components/dist/private/intl/pt-PT.mjs+var kd = {};+kd = {+ colorSwatchPicker: "Amostras de cores",+ dropzoneLabel: "DropZone",+ selectPlaceholder: "Selecione um item",+ tableResizer: "Redimensionador"+};+//#endregion+//#region node_modules/react-aria-components/dist/private/intl/ro-RO.mjs+var Ad = {};+Ad = {+ colorSwatchPicker: "Specimene de culoare",+ dropzoneLabel: "Zonă de plasare",+ selectPlaceholder: "Selectați un element",+ tableResizer: "Instrument de redimensionare"+};+//#endregion+//#region node_modules/react-aria-components/dist/private/intl/ru-RU.mjs+var jd = {};+jd = {+ colorSwatchPicker: "Цветовые образцы",+ dropzoneLabel: "DropZone",+ selectPlaceholder: "Выберите элемент",+ tableResizer: "Средство изменения размера"+};+//#endregion+//#region node_modules/react-aria-components/dist/private/intl/sk-SK.mjs+var Md = {};+Md = {+ colorSwatchPicker: "Vzorkovníky farieb",+ dropzoneLabel: "DropZone",+ selectPlaceholder: "Vyberte položku",+ tableResizer: "Nástroj na zmenu veľkosti"+};+//#endregion+//#region node_modules/react-aria-components/dist/private/intl/sl-SI.mjs+var Nd = {};+Nd = {+ colorSwatchPicker: "Barvne palete",+ dropzoneLabel: "DropZone",+ selectPlaceholder: "Izberite element",+ tableResizer: "Spreminjanje velikosti"+};+//#endregion+//#region node_modules/react-aria-components/dist/private/intl/sr-SP.mjs+var Pd = {};+Pd = {+ colorSwatchPicker: "Uzorci boje",+ dropzoneLabel: "DropZone",+ selectPlaceholder: "Izaberite stavku",+ tableResizer: "Promena veličine"+};//#endregion-//#region node_modules/react-aria/dist/private/utils/useSyncRef.mjs-function Jr(e, t) {- At(() => {- if (e && e.ref && t) return e.ref.current = t.current, () => {- e.ref && (e.ref.current = null);- };- });-}+//#region node_modules/react-aria-components/dist/private/intl/sv-SE.mjs+var Fd = {};+Fd = {+ colorSwatchPicker: "Färgrutor",+ dropzoneLabel: "DropZone",+ selectPlaceholder: "Välj en artikel",+ tableResizer: "Storleksändrare"+};//#endregion-//#region node_modules/react-aria/dist/private/interactions/useFocusable.mjs-var Yr = /*#__PURE__*/ v.createContext(null);-function Xr(e) {- let t = (0, v.useContext)(Yr) || {};- Jr(t, e);- let { ref: n, ...r } = t;- return r;-}-function Zr(e, t) {- let { focusProps: n } = Nr(e), { keyboardProps: r } = qr(e), i = I(n, r), a = Xr(t), o = e.isDisabled ? {} : a, s = (0, v.useRef)(e.autoFocus);- (0, v.useEffect)(() => {- s.current && t.current && Mr(t.current), s.current = !1;- }, [t]);- let c = e.excludeFromTabOrder ? -1 : 0;- return e.isDisabled && (c = void 0), { focusableProps: I({- ...i,- tabIndex: c- }, o) };-}+//#region node_modules/react-aria-components/dist/private/intl/tr-TR.mjs+var Id = {};+Id = {+ colorSwatchPicker: "Renk örnekleri",+ dropzoneLabel: "Bırakma Bölgesi",+ selectPlaceholder: "Bir öğe seçin",+ tableResizer: "Yeniden boyutlandırıcı"+};//#endregion-//#region node_modules/react-aria/dist/private/collections/Hidden.mjs-typeof HTMLTemplateElement < "u" && (Object.defineProperty(HTMLTemplateElement.prototype, "firstChild", {- configurable: !0,- enumerable: !0,- get: function() {- return this.content.firstChild;- }-}), Object.defineProperty(HTMLTemplateElement.prototype, "appendChild", {- configurable: !0,- enumerable: !0,- value: function(e) {- return this.content.appendChild(e);- }-}), Object.defineProperty(HTMLTemplateElement.prototype, "removeChild", {- configurable: !0,- enumerable: !0,- value: function(e) {- return this.content.removeChild(e);- }-}), Object.defineProperty(HTMLTemplateElement.prototype, "insertBefore", {- configurable: !0,- enumerable: !0,- value: function(e, t) {- return this.content.insertBefore(e, t);- }-}));-var Qr = /*#__PURE__*/ (0, v.createContext)(!1);-function $r(e) {- let t = (t, n) => (0, v.useContext)(Qr) ? null : e(t, n);- return t.displayName = e.displayName || e.name, (0, v.forwardRef)(t);-}+//#region node_modules/react-aria-components/dist/private/intl/uk-UA.mjs+var Ld = {};+Ld = {+ colorSwatchPicker: "Зразки кольорів",+ dropzoneLabel: "DropZone",+ selectPlaceholder: "Виберіть елемент",+ tableResizer: "Засіб змінення розміру"+};//#endregion-//#region node_modules/react-aria/dist/private/utils/filterDOMProps.mjs-var ei = /* @__PURE__ */ new Set(["id"]), ti = /* @__PURE__ */ new Set([- "aria-label",- "aria-labelledby",- "aria-describedby",- "aria-details"-]), ni = /* @__PURE__ */ new Set([- "href",- "hrefLang",- "target",- "rel",- "download",- "ping",- "referrerPolicy"-]), ri = /* @__PURE__ */ new Set([- "dir",- "lang",- "hidden",- "inert",- "translate"-]), ii = /* @__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(".")), ai = /^(data-.*)$/;-function oi(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) && (ei.has(t) || n && ti.has(t) || r && ni.has(t) || i && ri.has(t) || a && (ii.has(t) || t.endsWith("Capture") && ii.has(t.slice(0, -7))) || o?.has(t) || ai.test(t)) && (s[t] = e[t]);- return s;-}+//#region node_modules/react-aria-components/dist/private/intl/zh-CN.mjs+var Rd = {};+Rd = {+ colorSwatchPicker: "颜色色板",+ dropzoneLabel: "放置区域",+ selectPlaceholder: "选择一个项目",+ tableResizer: "尺寸调整器"+};//#endregion-//#region node_modules/react-aria/dist/private/interactions/textSelection.mjs-var si = "default", ci = "", li = /* @__PURE__ */ new WeakMap();-function ui(e) {- if (Gn() && Kn()) {- if (si === "default") {- let t = fn(e);- ci = t.documentElement.style.webkitUserSelect, t.documentElement.style.webkitUserSelect = "none";- }- si = "disabled";- } else if (e instanceof HTMLElement || e instanceof SVGElement) {- let t = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";- li.set(e, e.style[t]), e.style[t] = "none";- }+//#region node_modules/react-aria-components/dist/private/intl/zh-TW.mjs+var zd = {};+zd = {+ colorSwatchPicker: "色票",+ dropzoneLabel: "放置區",+ selectPlaceholder: "選取項目",+ tableResizer: "大小調整器"+};+//#endregion+//#region node_modules/react-aria-components/dist/private/intlStrings.mjs+var Bd = {};+Bd = {+ "ar-AE": od,+ "bg-BG": sd,+ "cs-CZ": cd,+ "da-DK": ld,+ "de-DE": ud,+ "el-GR": dd,+ "en-US": fd,+ "es-ES": pd,+ "et-EE": md,+ "fi-FI": hd,+ "fr-FR": gd,+ "he-IL": _d,+ "hr-HR": vd,+ "hu-HU": yd,+ "it-IT": bd,+ "ja-JP": xd,+ "ko-KR": Sd,+ "lt-LT": Cd,+ "lv-LV": wd,+ "nb-NO": Td,+ "nl-NL": Ed,+ "pl-PL": Dd,+ "pt-BR": Od,+ "pt-PT": kd,+ "ro-RO": Ad,+ "ru-RU": jd,+ "sk-SK": Md,+ "sl-SI": Nd,+ "sr-SP": Pd,+ "sv-SE": Fd,+ "tr-TR": Id,+ "uk-UA": Ld,+ "zh-CN": Rd,+ "zh-TW": zd+};+//#endregion+//#region node_modules/react-aria-components/dist/private/DragAndDrop.mjs+var Vd = /*#__PURE__*/ (0, C.createContext)({}), Hd = /*#__PURE__*/ (0, C.createContext)(null), Ud = /*#__PURE__*/ (0, C.forwardRef)(function(e, t) {+ let { render: n } = (0, C.useContext)(Hd);+ return /*#__PURE__*/ C.createElement(C.Fragment, null, n(e, t));+});+function Wd(e, t) {+ let n = e?.renderDropIndicator, r = e?.isVirtualDragging?.(), i = (0, C.useCallback)((e) => {+ if (r || t?.isDropTarget(e)) return n ? n(e) : /*#__PURE__*/ C.createElement(Ud, { target: e });+ }, [+ t?.target,+ r,+ n+ ]);+ return e?.useDropIndicator ? i : void 0;}-function di(e) {- if (Gn() && Kn()) {- if (si !== "disabled") return;- si = "restoring", setTimeout(() => {- jr(() => {- if (si === "restoring") {- let t = fn(e);- t.documentElement.style.webkitUserSelect === "none" && (t.documentElement.style.webkitUserSelect = ci || ""), ci = "", si = "default";+function Gd(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;+ if (e != null) {+ let r = n.collection.getItem(i)?.level ?? 0;+ for (; e != null;) {+ let i = n.collection.getItem(e);+ if (!i) break;+ if (i.type !== "item") {+ e = n.collection.getKeyAfter(e);+ continue;}- });- }, 300);- } else if ((e instanceof HTMLElement || e instanceof SVGElement) && e && li.has(e)) {- let t = li.get(e), n = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";- e.style[n] === "none" && (e.style[n] = t), e.getAttribute("style") === "" && e.removeAttribute("style"), li.delete(e);+ if ((i.level ?? 0) <= r) break;+ t = e, e = n.collection.getKeyAfter(e);+ }+ }+ i = e ?? t ?? i;}+ return (0, C.useMemo)(() => new Set([r, i].filter((e) => e != null)), [r, i]);}//#endregion-//#region node_modules/react-aria/dist/private/utils/getMetaValue.mjs-function fi(e, t) {- let n = pn(t), r = fn(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;+//#region node_modules/react-aria-components/dist/private/Header.mjs+var Kd = /*#__PURE__*/ (0, C.createContext)({}), qd = /*#__PURE__*/ (0, C.createContext)(null);+function Jd(e) {+ let t = (0, C.useRef)({});+ return /*#__PURE__*/ C.createElement(qd.Provider, { value: t }, e.children);}//#endregion-//#region node_modules/react-aria/dist/private/utils/getNonce.mjs-var pi = /* @__PURE__ */ new WeakMap();-function mi(e) {- let t = fn(e), n = pi.get(t);- return n ??= fi("csp-nonce", t), n !== void 0 && pi.set(t, n), n;+//#region node_modules/react-aria-components/dist/private/SelectionIndicator.mjs+var Yd = /*#__PURE__*/ (0, C.createContext)({ isSelected: !1 }), Xd = /*#__PURE__*/ (0, C.createContext)({});+(class extends f {+ static {+ this.type = "separator";+ }+ filter(e, t) {+ let n = t.getItem(this.prevKey);+ if (n && n.type !== "separator") {+ let n = this.clone();+ return t.addDescendants(n, e), n;+ }+ return null;+ }+});+//#endregion+//#region node_modules/react-aria/dist/private/utils/inertValue.mjs+function Zd(e) {+ let t = C.version.split(".");+ return parseInt(t[0], 10) >= 19 ? e : e ? "true" : void 0;}//#endregion-//#region node_modules/react-aria/dist/private/interactions/context.mjs-var hi = v.createContext({ register: () => {} });-hi.displayName = "PressResponderContext";+//#region node_modules/react-stately/dist/private/list/ListCollection.mjs+var Qd = class {+ constructor(e) {+ this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.iterable = e;+ let t = (e) => {+ if (this.keyMap.set(e.key, e), e.childNodes && e.type === "section") for (let n of e.childNodes) t(n);+ };+ for (let n of e) t(n);+ let n = null, r = 0, i = 0;+ for (let [e, t] of this.keyMap) n ? (n.nextKey = e, t.prevKey = n.key) : (this.firstKey = e, t.prevKey = void 0), t.type === "item" && (t.index = r++), (t.type === "section" || t.type === "item") && i++, n = t, n.nextKey = void 0;+ this._size = i, this.lastKey = n?.key ?? null;+ }+ *[Symbol.iterator]() {+ yield* this.iterable;+ }+ get size() {+ return this._size;+ }+ getKeys() {+ return this.keyMap.keys();+ }+ getKeyBefore(e) {+ let t = this.keyMap.get(e);+ return t ? t.prevKey ?? null : null;+ }+ getKeyAfter(e) {+ let t = this.keyMap.get(e);+ return t ? t.nextKey ?? null : null;+ }+ getFirstKey() {+ return this.firstKey;+ }+ getLastKey() {+ return this.lastKey;+ }+ getItem(e) {+ return this.keyMap.get(e) ?? null;+ }+ at(e) {+ let t = [...this.getKeys()];+ return this.getItem(t[e]);+ }+ getChildren(e) {+ return this.keyMap.get(e)?.childNodes || [];+ }+}, $d = 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);+ }+};//#endregion-//#region node_modules/react-aria/dist/private/utils/useGlobalListeners.mjs-function gi() {- let e = (0, v.useRef)(/* @__PURE__ */ new Map()), t = (0, v.useCallback)((t, n, r, i) => {- let a = i?.once ? (...t) => {- e.current.delete(r), r(...t);- } : r;- e.current.set(r, {- type: n,- eventTarget: t,- fn: a,- options: i- }), t.addEventListener(n, a, i);- }, []), n = (0, v.useCallback)((t, n, r, i) => {- let a = e.current.get(r)?.fn || r;- t.removeEventListener(n, a, i), e.current.delete(r);- }, []), r = (0, v.useCallback)(() => {- e.current.forEach((e, t) => {- n(e.eventTarget, e.type, t, e.options);- });- }, [n]);- return (0, v.useEffect)(() => r, [r]), {- addGlobalListener: t,- removeGlobalListener: n,- removeAllGlobalListeners: r+//#region node_modules/react-stately/dist/private/selection/useMultipleSelectionState.mjs+function ef(e, t) {+ if (e.size !== t.size) return !1;+ for (let n of e) if (!t.has(n)) return !1;+ return !0;+}+function tf(e) {+ let { selectionMode: t = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: a = "all" } = e, o = (0, C.useRef)(!1), [, s] = (0, C.useState)(!1), c = (0, C.useRef)(null), l = (0, C.useRef)(null), [, u] = (0, C.useState)(null), [d, f] = ia((0, C.useMemo)(() => nf(e.selectedKeys), [e.selectedKeys]), (0, C.useMemo)(() => nf(e.defaultSelectedKeys, new $d()), [e.defaultSelectedKeys]), e.onSelectionChange), p = (0, C.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), [m, h] = (0, C.useState)(i);+ i === "replace" && m === "toggle" && typeof d == "object" && d.size === 0 && h("replace");+ let g = (0, C.useRef)(i);+ return (0, C.useEffect)(() => {+ i !== g.current && (h(i), g.current = i);+ }, [i]), {+ selectionMode: t,+ disallowEmptySelection: n,+ selectionBehavior: m,+ setSelectionBehavior: h,+ get isFocused() {+ return o.current;+ },+ setFocused(e) {+ o.current = e, s(e);+ },+ get focusedKey() {+ return c.current;+ },+ get childFocusStrategy() {+ return l.current;+ },+ setFocusedKey(e, t = "first") {+ c.current = e, l.current = t, u(e);+ },+ selectedKeys: d,+ setSelectedKeys(e) {+ (r || !ef(e, d)) && f(e);+ },+ disabledKeys: p,+ disabledBehavior: a};}-h();-function _i(e) {- let t = (0, v.useContext)(hi);- if (t) {- let { register: n, ref: r, ...i } = t;- e = I(i, e), n();- }- return Jr(t, e.ref), e;+function nf(e, t) {+ return e ? e === "all" ? "all" : new $d(e) : t;}-var vi = class {- #e;- constructor(e, t, n, r) {- this.#e = !0;- let i = (r?.target ?? n.currentTarget)?.getBoundingClientRect(), a, o = 0, s, c = null;- n.clientX != null && n.clientY != null && (s = n.clientX, c = n.clientY), i && (s != null && c != null ? (a = s - i.left, o = c - i.top) : (a = i.width / 2, o = i.height / 2)), this.type = e, this.pointerType = t, this.target = n.currentTarget, this.shiftKey = n.shiftKey, this.metaKey = n.metaKey, this.ctrlKey = n.ctrlKey, this.altKey = n.altKey, this.x = a, this.y = o, this.key = n.key;+//#endregion+//#region node_modules/react-stately/dist/private/selection/SelectionManager.mjs+var rf = 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;}- continuePropagation() {- this.#e = !1;+ get selectionMode() {+ return this.state.selectionMode;}- get shouldStopPropagation() {- return this.#e;+ get disallowEmptySelection() {+ return this.state.disallowEmptySelection;}-}, yi = Symbol("linkClicked"), bi = "react-aria-pressable-style", xi = "data-react-aria-pressable";-function Si(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 } = _i(e), [m, h] = (0, v.useState)(!1), g = (0, v.useRef)({- isPressed: !1,- ignoreEmulatedMouseEvents: !1,- didFirePressStart: !1,- isTriggeringEvent: !1,- activePointerId: null,- target: null,- isOverTarget: !1,- pointerType: null,- disposables: []- }), { addGlobalListener: _, removeAllGlobalListeners: y } = gi(), b = (0, v.useCallback)((e, t) => {- let i = g.current;- if (s || i.didFirePressStart) return !1;- let a = !0;- if (i.isTriggeringEvent = !0, r) {- let n = new vi("pressstart", t, e);- r(n), a = n.shouldStopPropagation;+ get selectionBehavior() {+ return this.state.selectionBehavior;+ }+ setSelectionBehavior(e) {+ this.state.setSelectionBehavior(e);+ }+ get isFocused() {+ return this.state.isFocused;+ }+ setFocused(e) {+ this.state.setFocused(e);+ }+ get focusedKey() {+ return this.state.focusedKey;+ }+ get childFocusStrategy() {+ return this.state.childFocusStrategy;+ }+ setFocusedKey(e, t) {+ (e == null || this.collection.getItem(e)) && this.state.setFocusedKey(e, t);+ }+ get selectedKeys() {+ return this.state.selectedKeys === "all" ? new Set(this.getSelectAllKeys()) : this.state.selectedKeys;+ }+ get rawSelection() {+ return this.state.selectedKeys;+ }+ isSelected(e) {+ if (this.state.selectionMode === "none") return !1;+ let t = this.getKey(e);+ return t == null ? !1 : this.state.selectedKeys === "all" ? this.canSelectItem(t) : this.state.selectedKeys.has(t);+ }+ get isEmpty() {+ return this.state.selectedKeys !== "all" && this.state.selectedKeys.size === 0;+ }+ get isSelectAll() {+ if (this.isEmpty) return !1;+ if (this.state.selectedKeys === "all") return !0;+ if (this._isSelectAll != null) return this._isSelectAll;+ let e = this.getSelectAllKeys(), t = this.state.selectedKeys;+ return this._isSelectAll = e.every((e) => t.has(e)), this._isSelectAll;+ }+ get firstSelectedKey() {+ let e = null;+ for (let t of this.state.selectedKeys) {+ let n = this.collection.getItem(t);+ (!e || n && Eo(this.collection, n, e) < 0) && (e = n);}- return n && n(!0), i.isTriggeringEvent = !1, i.didFirePressStart = !0, h(!0), a;- }, [- s,- r,- n- ]), x = (0, v.useCallback)((e, r, a = !0) => {- let o = g.current;- if (!o.didFirePressStart) return !1;- o.didFirePressStart = !1, o.isTriggeringEvent = !0;- let c = !0;- if (i) {- let t = new vi("pressend", r, e);- i(t), c = t.shouldStopPropagation;+ return e?.key ?? null;+ }+ get lastSelectedKey() {+ let e = null;+ for (let t of this.state.selectedKeys) {+ let n = this.collection.getItem(t);+ (!e || n && Eo(this.collection, n, e) > 0) && (e = n);}- if (n && n(!1), h(!1), t && a && !s) {- let n = new vi("press", r, e);- t(n), c &&= n.shouldStopPropagation;+ return e?.key ?? null;+ }+ get disabledKeys() {+ return this.state.disabledKeys;+ }+ get disabledBehavior() {+ return this.state.disabledBehavior;+ }+ extendSelection(e) {+ if (this.selectionMode === "none") return;+ if (this.selectionMode === "single") {+ this.replaceSelection(e);+ return;}- return o.isTriggeringEvent = !1, c;- }, [- s,- i,- n,- t- ]), S = Sr(x), ee = Sr((0, v.useCallback)((e, t) => {- let n = g.current;- if (s) return !1;- if (a) {- n.isTriggeringEvent = !0;- let r = new vi("pressup", t, e);- return a(r), n.isTriggeringEvent = !1, r.shouldStopPropagation;+ let t = this.getKey(e);+ if (t == null) return;+ let n;+ if (this.state.selectedKeys === "all") n = new $d([t], t, t);+ else {+ let e = this.state.selectedKeys, r = e.anchorKey ?? t;+ n = new $d(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);}- return !0;- }, [s, a])), C = (0, v.useCallback)((e) => {- let t = g.current;- if (t.isPressed && t.target) {- t.didFirePressStart && t.pointerType != null && x(Ti(t.target, e), t.pointerType, !1), t.isPressed = !1, t.isOverTarget = !1, t.activePointerId = null, t.pointerType = null, y(), d || di(t.target);- for (let e of t.disposables) e();- t.disposables = [];+ this.state.setSelectedKeys(n);+ }+ getKeyRange(e, t) {+ let n = this.collection.getItem(e), r = this.collection.getItem(t);+ return n && r ? Eo(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);+ let n = [], r = e;+ for (; r != null;) {+ let e = this.collection.getItem(r);+ if (e && (e.type === "item" || e.type === "cell" && this.allowsCellSelection) && n.push(r), r === t) return n;+ r = this.collection.getKeyAfter(r);}- }, [- d,- y,- x- ]), w = Sr(C);- (0, v.useEffect)(() => {- s && g.current.isPressed && w({- currentTarget: g.current.target,- shiftKey: !1,- ctrlKey: !1,- metaKey: !1,- altKey: !1+ return [];+ }+ getKey(e) {+ let t = this.collection.getItem(e);+ if (!t || t.type === "cell" && this.allowsCellSelection) return e;+ for (; t && t.type !== "item" && t.parentKey != null;) t = this.collection.getItem(t.parentKey);+ return !t || t.type !== "item" ? null : t.key;+ }+ toggleSelection(e) {+ if (this.selectionMode === "none") return;+ if (this.selectionMode === "single" && !this.isSelected(e)) {+ this.replaceSelection(e);+ return;+ }+ let t = this.getKey(e);+ if (t == null) return;+ let n = new $d(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 $d([t], t, t) : new $d();+ this.state.setSelectedKeys(n);+ }+ setSelectedKeys(e) {+ if (this.selectionMode === "none") return;+ let t = new $d();+ for (let n of e) {+ let e = this.getKey(n);+ if (e != null && (t.add(e), this.selectionMode === "single")) break;+ }+ this.state.setSelectedKeys(t);+ }+ getSelectAllKeys() {+ let e = this.fullCollection ?? this.collection, t = [], n = (r) => {+ 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(wo(Co(i, e))?.key ?? null);+ }+ r = e.getKeyAfter(r);+ }+ };+ return n(e.getFirstKey()), t;+ }+ selectAll() {+ !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 $d());+ }+ toggleSelectAll() {+ this.isSelectAll ? this.clearSelection() : this.selectAll();+ }+ select(e, t) {+ this.selectionMode !== "none" && (this.selectionMode === "single" ? this.isSelected(e) && !this.disallowEmptySelection ? this.toggleSelection(e) : this.replaceSelection(e) : this.selectionBehavior === "toggle" || t && (t.pointerType === "touch" || t.pointerType === "virtual") ? this.toggleSelection(e) : this.replaceSelection(e));+ }+ isSelectionEqual(e) {+ if (e === this.state.selectedKeys) return !0;+ let t = this.selectedKeys;+ if (e.size !== t.size) return !1;+ for (let n of e) if (!t.has(n)) return !1;+ for (let n of t) if (!e.has(n)) return !1;+ return !0;+ }+ canSelectItem(e) {+ return this.canSelectItemIn(e, this.collection);+ }+ canSelectItemIn(e, t) {+ if (this.state.selectionMode === "none" || this.state.disabledKeys.has(e)) return !1;+ let n = t.getItem(e);+ return !(!n || n?.props?.isDisabled || n.type === "cell" && !this.allowsCellSelection);+ }+ isDisabled(e) {+ let t = this.collection.getItem(e);+ return this.state.disabledBehavior === "all" && (this.state.disabledKeys.has(e) || !!t?.props?.isDisabled) && t?.props?.disabledBehavior !== "selection";+ }+ isLink(e) {+ return !!this.collection.getItem(e)?.props?.href;+ }+ getItemProps(e) {+ return this.collection.getItem(e)?.props;+ }+ withCollection(t) {+ return new e(t, this.state, {+ allowsCellSelection: this.allowsCellSelection,+ layoutDelegate: this.layoutDelegate || void 0,+ fullCollection: this.fullCollection ?? this.collection});- }, [s]);- let te = (0, v.useCallback)((e) => {- u && C(e);- }, [u, C]), T = (0, v.useCallback)((e) => {- s || o?.(e);- }, [s, o]), ne = (0, v.useCallback)((e, t) => {- if (!s && o) {- let n = new MouseEvent("click", e);- Fn(n, t), o(Pn(n));+ }+}, af = class {+ build(e, t) {+ return this.context = t, of(() => this.iterateCollection(e));+ }+ *iterateCollection(e) {+ let { children: t, items: n } = e;+ if (C.isValidElement(t) && t.type === C.Fragment) yield* this.iterateCollection({+ children: t.props.children,+ items: n+ });+ else if (typeof t == "function") {+ if (!n) throw Error("props.children was a function but props.items is missing");+ let e = 0;+ for (let r of n) yield* this.getFullNode({+ value: r,+ index: e+ }, { renderer: t }), e++;+ } else {+ let e = [];+ C.Children.forEach(t, (t) => {+ t && e.push(t);+ });+ let n = 0;+ for (let t of e) {+ let e = this.getFullNode({+ element: t,+ index: n+ }, {});+ for (let t of e) n++, yield t;+ }+ }+ }+ getKey(e, t, n, r) {+ if (e.key != null) return e.key;+ if (t.type === "cell" && t.key != null) return `${r}${t.key}`;+ let i = t.value;+ if (i != null) {+ let e = i.key ?? i.id;+ if (e == null) throw Error("No key found for item");+ return e;}- }, [s, o]), re = (0, v.useMemo)(() => {- let e = g.current, t = {- onKeyDown(t) {- if (wi(t.nativeEvent, t.currentTarget) && L(t.currentTarget, R(t))) {- Di(R(t), t.key) && t.preventDefault();- let r = !0;- !e.isPressed && !t.repeat && (e.target = t.currentTarget, e.isPressed = !0, e.pointerType = "keyboard", r = b(t, "keyboard"));- let i = t.currentTarget;- _(fn(t.currentTarget), "keyup", kt((t) => {- wi(t, i) && !t.repeat && L(i, R(t)) && e.target && ee(Ti(e.target, t), "keyboard");- }, n), !0), r && t.stopPropagation(), t.metaKey && Hn() && e.metaKeyEvents?.set(t.key, t.nativeEvent);- } else t.key === "Meta" && (e.metaKeyEvents = /* @__PURE__ */ new Map());- },- onClick(t) {- if (!(t && !L(t.currentTarget, R(t))) && t && t.button === 0 && !e.isTriggeringEvent && !Qn.isOpening) {- let n = !0;- if (s && t.preventDefault(), !e.ignoreEmulatedMouseEvents && !e.isPressed && (e.pointerType === "virtual" || Xn(t.nativeEvent))) {- let e = b(t, "virtual"), r = ee(t, "virtual"), i = S(t, "virtual");- T(t), n = e && r && i;- } else if (e.isPressed && e.pointerType !== "keyboard") {- let r = e.pointerType || t.nativeEvent.pointerType || "virtual", i = ee(Ti(t.currentTarget, t), r), a = S(Ti(t.currentTarget, t), r, !0);- n = i && a, e.isOverTarget = !1, T(t), w(t);- }- e.ignoreEmulatedMouseEvents = !1, n && t.stopPropagation();- }+ return r ? `${r}.${t.index}` : `$.${t.index}`;+ }+ getChildState(e, t) {+ return { renderer: t.renderer || e.renderer };+ }+ *getFullNode(e, t, n, r) {+ if (C.isValidElement(e.element) && e.element.type === C.Fragment) {+ let i = [];+ C.Children.forEach(e.element.props.children, (e) => {+ i.push(e);+ });+ let a = e.index ?? 0;+ for (let e of i) yield* this.getFullNode({+ element: e,+ index: a+++ }, t, n, r);+ return;+ }+ let i = e.element;+ if (!i && e.value && t && t.renderer) {+ let n = this.cache.get(e.value);+ if (n && (!n.shouldInvalidate || !n.shouldInvalidate(this.context))) {+ n.index = e.index, n.parentKey = r ? r.key : null, yield n;+ return;}- }, n = (t) => {- if (e.isPressed && e.target && wi(t, e.target)) {- Di(R(t), t.key) && t.preventDefault();- let n = R(t), r = L(e.target, n);- S(Ti(e.target, t), "keyboard", r), r && ne(t, e.target), y(), t.key !== "Enter" && Ci(e.target) && L(e.target, n) && !t[yi] && (t[yi] = !0, Qn(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;- for (let n of t.values()) e.target?.dispatchEvent(new KeyboardEvent("keyup", n));+ i = t.renderer(e.value);+ }+ if (C.isValidElement(i)) {+ let a = i.type;+ if (typeof a != "function" && typeof a.getCollectionNode != "function") {+ let e = i.type;+ throw Error(`Unknown element <${e}> in collection.`);}- };- if (typeof PointerEvent < "u") {- t.onPointerDown = (t) => {- if (t.button !== 0 || !L(t.currentTarget, R(t))) return;- if (Zn(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 || ui(e.target), i = b(t, e.pointerType);- let a = R(t);- "releasePointerCapture" in a && ("hasPointerCapture" in a ? a.hasPointerCapture(t.pointerId) && a.releasePointerCapture(t.pointerId) : a.releasePointerCapture(t.pointerId)), _(fn(t.currentTarget), "pointerup", n, !1), _(fn(t.currentTarget), "pointercancel", r, !1);- }- i && t.stopPropagation();- }, t.onMouseDown = (t) => {- if (L(t.currentTarget, R(t)) && t.button === 0) {- if (l) {- let n = Rn(t.target);- n && e.disposables.push(n);- }- t.stopPropagation();- }- }, t.onPointerUp = (t) => {- !L(t.currentTarget, R(t)) || e.pointerType === "virtual" || t.button === 0 && !e.isPressed && ee(t, e.pointerType || t.pointerType);- }, t.onPointerEnter = (t) => {- t.pointerId === e.activePointerId && e.target && !e.isOverTarget && e.pointerType != null && (e.isOverTarget = !0, b(Ti(e.target, t), e.pointerType));- }, t.onPointerLeave = (t) => {- t.pointerId === e.activePointerId && e.target && e.isOverTarget && e.pointerType != null && (e.isOverTarget = !1, S(Ti(e.target, t), e.pointerType, !1), te(t));- };- let n = (t) => {- if (t.pointerId === e.activePointerId && e.isPressed && t.button === 0 && e.target) {- if (L(e.target, R(t)) && e.pointerType != null) {- let n = !1, r = setTimeout(() => {- e.isPressed && e.target instanceof HTMLElement && (n ? w(t) : (xn(e.target), e.target.click()));- }, 80);- _(t.currentTarget, "click", () => n = !0, !0), e.disposables.push(() => clearTimeout(r));- } else w(t);- e.isOverTarget = !1;+ let o = a.getCollectionNode(i.props, this.context), s = e.index ?? 0, c = o.next();+ for (; !c.done && c.value;) {+ let a = c.value;+ e.index = s;+ let l = a.key ?? null;+ l ??= a.element ? null : this.getKey(i, e, t, n);+ let u = [...this.getFullNode({+ ...a,+ key: l,+ index: s,+ wrapper: sf(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 <${cf(t.type)}> in <${cf(r?.type ?? "unknown parent type")}>. Only <${cf(e.type)}> is supported.`);+ s++, yield t;}- }, r = (e) => {- w(e);- };- t.onDragStart = (e) => {- L(e.currentTarget, R(e)) && w(e);- };+ c = o.next(u);+ }+ return;}- return t;- }, [- _,- s,- l,- y,- d,- te,- b,- T,- ne- ]);- return (0, v.useEffect)(() => {- if (!f) return;- let e = fn(f.current);- if (!e || !e.head || e.getElementById(bi)) return;- let t = e.createElement("style");- t.id = bi;- let n = mi(e);- n && (t.nonce = n), t.textContent = `-@layer {- [${xi}] {- touch-action: pan-x pan-y pinch-zoom;- }-}- `.trim(), e.head.prepend(t);- }, [f]), (0, v.useEffect)(() => {- let e = g.current;- return () => {- d || di(e.target ?? void 0);- for (let t of e.disposables) t();- e.disposables = [];+ if (e.key == null || e.type == null) return;+ let a = this, o = {+ type: e.type,+ props: e.props,+ key: e.key,+ parentKey: r ? r.key : null,+ value: e.value ?? null,+ level: (r?.level ?? 0) + +(r?.type === "item"),+ index: e.index,+ rendered: e.rendered,+ textValue: e.textValue ?? "",+ "aria-label": e["aria-label"],+ wrapper: e.wrapper,+ shouldInvalidate: e.shouldInvalidate,+ hasChildNodes: e.hasChildNodes || !1,+ childNodes: of(function* () {+ if (!e.hasChildNodes || !e.childNodes) return;+ let n = 0;+ for (let r of e.childNodes()) {+ r.key != null && (r.key = `${o.key}${r.key}`);+ let e = a.getFullNode({+ ...r,+ index: n+ }, a.getChildState(t, r), o.key, o);+ for (let t of e) n++, yield t;+ }+ })};- }, [d]), {- isPressed: c || m,- pressProps: I(p, re, { [xi]: !0 })- };+ yield o;+ }+ constructor() {+ this.cache = /* @__PURE__ */ new WeakMap();+ }+};+function of(e) {+ let t = [], n = null;+ return { *[Symbol.iterator]() {+ for (let e of t) yield e;+ n ||= e();+ for (let e of n) t.push(e), yield e;+ } };}-function Ci(e) {- return e.tagName === "A" && e.hasAttribute("href");+function sf(e, t) {+ if (e && t) return (n) => e(t(n));+ if (e) return e;+ if (t) return t;}-function wi(e, t) {- let { key: n, code: r } = e, i = t, a = i.getAttribute("role");- return (n === "Enter" || n === " " || n === "Spacebar" || r === "Space") && !(i instanceof pn(i).HTMLInputElement && !ki(i, n) || i instanceof pn(i).HTMLTextAreaElement || i.isContentEditable) && !((a === "link" || !a && Ci(i)) && n !== "Enter");+function cf(e) {+ return e[0].toUpperCase() + e.slice(1);}-function Ti(e, t) {- let n = t.clientX, r = t.clientY;- return {- currentTarget: e,- shiftKey: t.shiftKey,- ctrlKey: t.ctrlKey,- metaKey: t.metaKey,- altKey: t.altKey,- clientX: n,- clientY: r,- key: t.key- };+//#endregion+//#region node_modules/react-stately/dist/private/collections/useCollection.mjs+function lf(e, t, n) {+ let r = (0, C.useMemo)(() => new af(), []), { children: i, items: a, collection: o } = e;+ return (0, C.useMemo)(() => o || t(r.build({+ children: i,+ items: a+ }, n)), [+ r,+ i,+ a,+ o,+ n,+ t+ ]);}-function Ei(e) {- return e instanceof HTMLInputElement ? !1 : e instanceof HTMLButtonElement ? e.type !== "submit" && e.type !== "reset" : !Ci(e);+//#endregion+//#region node_modules/react-stately/dist/private/list/useListState.mjs+function uf(e) {+ let { filter: t, layoutDelegate: n } = e, r = tf(e), i = (0, C.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = lf(e, (0, C.useCallback)((e) => t ? new Qd(t(e)) : new Qd(e), [t]), (0, C.useMemo)(() => ({ suppressTextValueWarning: e.suppressTextValueWarning }), [e.suppressTextValueWarning])), o = (0, C.useMemo)(() => new rf(a, r, { layoutDelegate: n }), [+ a,+ r,+ n+ ]);+ return ff(a, o), {+ collection: a,+ disabledKeys: i,+ selectionManager: o+ };}-function Di(e, t) {- return Hn() && t === "Enter" ? !1 : e instanceof HTMLInputElement ? t === "Enter" && (e.type === "checkbox" || e.type === "radio") ? !1 : !ki(e, t) : Ei(e);+function df(e, t) {+ let n = (0, C.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);+ return ff(n, r), {+ collection: n,+ selectionManager: r,+ disabledKeys: e.disabledKeys+ };}-var Oi = /* @__PURE__ */ new Set([- "checkbox",- "radio",- "range",- "color",- "file",- "image",- "button",- "submit",- "reset"-]);-function ki(e, t) {- return e.type === "checkbox" || e.type === "radio" ? t === " " : Oi.has(e.type);+function ff(e, t) {+ let n = (0, C.useRef)(null);+ (0, C.useEffect)(() => {+ if (t.focusedKey != null && !e.getItem(t.focusedKey) && n.current) {+ let r = n.current.getKeyAfter(t.focusedKey), i = null;+ for (; r != null;) {+ let a = e.getItem(r);+ if (a && a.type === "item" && !t.isDisabled(r)) {+ i = r;+ break;+ }+ r = n.current.getKeyAfter(r);+ }+ if (i == null) for (r = n.current.getKeyBefore(t.focusedKey); r != null;) {+ let a = e.getItem(r);+ if (a && a.type === "item" && !t.isDisabled(r)) {+ i = r;+ break;+ }+ r = n.current.getKeyBefore(r);+ }+ t.setFocusedKey(i);+ }+ n.current = e;+ }, [e, t]);}//#endregion-//#region node_modules/react-aria/dist/private/interactions/useFocusWithin.mjs-function Ai(e) {- let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: i } = e, a = (0, v.useRef)({ isFocusWithin: !1 }), { addGlobalListener: o, removeAllGlobalListeners: s } = gi(), c = (0, v.useCallback)((e) => {- L(e.currentTarget, R(e)) && a.current.isFocusWithin && !L(e.currentTarget, e.relatedTarget) && (a.current.isFocusWithin = !1, s(), n && n(e), i && i(!1));- }, [- n,- i,- a,- s- ]), l = In(c), u = (0, v.useCallback)((e) => {- if (!L(e.currentTarget, R(e))) return;- let t = R(e), n = fn(t), s = bn(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 = R(e);- if (a.current.isFocusWithin && !L(t, r)) {- let e = new n.defaultView.FocusEvent("blur", { relatedTarget: r });- Fn(e, t);- let i = Pn(e);- c(i);- }- }, { capture: !0 });+//#region node_modules/react-aria/dist/private/utils/useLoadMoreSentinel.mjs+function pf(e, t) {+ let { collection: n, onLoadMore: r, scrollOffset: i = 1, direction: a = "end" } = e, o = (0, C.useRef)(null), s = Vn((e) => {+ for (let t of e) t.isIntersecting && r && r();+ });+ B(() => {+ if (t.current) {+ let e = 100 * i, n = a === "start" ? `${e}% 0px 0px 0px` : `0px ${e}% ${e}% ${e}%`;+ o.current = new IntersectionObserver(s, {+ root: Ei(t?.current),+ rootMargin: n+ }), o.current.observe(t.current);}+ return () => {+ o.current && o.current.disconnect();+ };}, [- r,+ n,+ t,i,- l,- o,- c+ a]);- return t ? { focusWithinProps: {- onFocus: void 0,- onBlur: void 0- } } : { focusWithinProps: {- onFocus: u,- onBlur: c- } };}//#endregion-//#region node_modules/react-aria/dist/private/focus/useFocusRing.mjs-function ji(e = {}) {- let { autoFocus: t = !1, isTextInput: n, within: r } = e, i = (0, v.useRef)({- isFocused: !1,- isFocusVisible: t || hr()- }), [a, o] = (0, v.useState)(!1), [s, c] = (0, v.useState)(() => i.current.isFocused && i.current.isFocusVisible), l = (0, v.useCallback)(() => c(i.current.isFocused && i.current.isFocusVisible), []), u = (0, v.useCallback)((e) => {- i.current.isFocused = e, i.current.isFocusVisible = hr(), o(e), l();- }, [l]);- br((e) => {- i.current.isFocusVisible = e, l();- }, [n, a], {- enabled: a,- isTextInput: n+//#region node_modules/react-aria-components/dist/private/ListBox.mjs+var mf = /*#__PURE__*/ (0, C.createContext)(null), hf = /*#__PURE__*/ (0, C.createContext)(null), gf = /*#__PURE__*/ (0, C.forwardRef)(function(e, t) {+ [e, t] = Eu(e, t, mf);+ let n = (0, C.useContext)(hf);+ return n ? /*#__PURE__*/ C.createElement(vf, {+ state: n,+ props: e,+ listBoxRef: t+ }) : /*#__PURE__*/ C.createElement(vn, { content: /*#__PURE__*/ C.createElement(kn, e) }, (n) => /*#__PURE__*/ C.createElement(_f, {+ props: e,+ listBoxRef: t,+ collection: n+ }));+});+function _f({ props: e, listBoxRef: t, collection: n }) {+ e = {+ ...e,+ collection: n,+ children: null,+ items: null+ };+ let { layoutDelegate: r } = (0, C.useContext)(Ru), i = uf({+ ...e,+ layoutDelegate: r});- let { focusProps: d } = Nr({- isDisabled: r,- onFocusChange: u- }), { focusWithinProps: f } = Ai({- isDisabled: !r,- onFocusWithinChange: u+ return /*#__PURE__*/ C.createElement(vf, {+ state: i,+ props: e,+ listBoxRef: t});- return {- isFocused: a,- isFocusVisible: s,- focusProps: r ? f : d- };}-//#endregion-//#region node_modules/react-aria/dist/private/interactions/useHover.mjs-var Mi = !1, Ni = 0;-function Pi() {- Mi = !0, setTimeout(() => {- Mi = !1;- }, 500);+function vf({ state: e, props: t, listBoxRef: n }) {+ [t, n] = Eu(t, n, Mu);+ let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = df(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = er(), { disabledBehavior: p, disabledKeys: m } = l, h = jo({+ usage: "search",+ sensitivity: "base"+ }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, C.useContext)(Ru), b = (0, C.useMemo)(() => t.keyboardDelegate || new Da({+ collection: c,+ collator: h,+ ref: n,+ disabledKeys: m,+ disabledBehavior: p,+ layout: i,+ orientation: a,+ direction: f,+ layoutDelegate: _+ }), [+ c,+ h,+ n,+ p,+ m,+ a,+ f,+ t.keyboardDelegate,+ i,+ _+ ]), { listBoxProps: x } = Qo({+ ...t,+ shouldSelectOnPressUp: u || t.shouldSelectOnPressUp,+ keyboardDelegate: b,+ isVirtualized: g+ }, s, n);+ (0, C.useRef)(u), (0, C.useRef)(d), (0, C.useEffect)(() => {}, [u, d]);+ let S, w, T, E = !1, D = null, O = (0, C.useRef)(null);+ if (u && r) {+ S = r.useDraggableCollectionState({+ collection: c,+ selectionManager: l,+ preview: r.renderDragPreview ? O : void 0+ }), r.useDraggableCollection({}, S, n);+ let e = r.DragPreview;+ D = r.renderDragPreview ? /*#__PURE__*/ C.createElement(e, { ref: O }, r.renderDragPreview) : null;+ }+ if (d && r) {+ w = r.useDroppableCollectionState({+ collection: c,+ selectionManager: l+ });+ let e = r.dropTargetDelegate || v || new r.ListDropTargetDelegate(c, n, {+ orientation: a,+ layout: i,+ direction: f+ });+ T = r.useDroppableCollection({+ keyboardDelegate: b,+ dropTargetDelegate: e+ }, w, n), E = w.isDropTarget({ type: "root" });+ }+ let { focusProps: k, isFocused: A, isFocusVisible: j } = G(), M = s.collection.size === 0, N = {+ isDropTarget: E,+ isEmpty: M,+ isFocused: A,+ isFocusVisible: j,+ layout: t.layout || "stack",+ orientation: a,+ state: s+ }, ee = wu({+ ...t,+ children: void 0,+ defaultClassName: "react-aria-ListBox",+ values: N+ }), te = null;+ M && t.renderEmptyState && (te = /*#__PURE__*/ C.createElement("div", {+ role: "option",+ style: { display: "contents" }+ }, t.renderEmptyState(N)));+ let P = xr(t, { global: !0 });+ return /*#__PURE__*/ C.createElement(Zr, null, /*#__PURE__*/ C.createElement(ju.div, {+ ...V(P, ee, x, k, T?.collectionProps),+ ref: n,+ slot: t.slot || void 0,+ onScroll: t.onScroll,+ "data-drop-target": E || void 0,+ "data-empty": M || void 0,+ "data-focused": A || void 0,+ "data-focus-visible": j || void 0,+ "data-layout": t.layout || "stack",+ "data-orientation": a+ }, /*#__PURE__*/ C.createElement(Cu, { values: [+ [mf, t],+ [hf, s],+ [Vd, {+ dragAndDropHooks: r,+ dragState: S,+ dropState: w+ }],+ [Xd, { elementType: "div" }],+ [Hd, { render: xf }],+ [Pu, {+ name: "ListBoxSection",+ render: yf+ }]+ ] }, /*#__PURE__*/ C.createElement(Jd, null, /*#__PURE__*/ C.createElement(y, {+ collection: c,+ scrollRef: n,+ persistedKeys: Gd(l, r, w),+ renderDropIndicator: Wd(r, w)+ }))), te, D));+}+function yf(e, t, n, r = "react-aria-ListBoxSection") {+ let i = (0, C.useContext)(hf), { dragAndDropHooks: a, dropState: o } = (0, C.useContext)(Vd), { CollectionBranch: s } = (0, C.useContext)(Ru), [c, l] = Du(), { headingProps: u, groupProps: d } = $o({+ heading: l,+ "aria-label": e["aria-label"] ?? void 0+ }), f = wu({+ ...e,+ id: void 0,+ children: void 0,+ defaultClassName: r,+ values: void 0+ }), p = xr(e, { global: !0 });+ return delete p.id, /*#__PURE__*/ C.createElement(ju.section, {+ ...V(p, f, d),+ ref: t+ }, /*#__PURE__*/ C.createElement(Kd.Provider, { value: {+ ...u,+ ref: c+ } }, /*#__PURE__*/ C.createElement(s, {+ collection: i.collection,+ parent: n,+ renderDropIndicator: Wd(a, o)+ })));+}+var bf = /*#__PURE__*/ En(h, function(e, t, n) {+ let r = en(t), i = (0, C.useContext)(hf), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, C.useContext)(Vd), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = es({+ key: n.key,+ "aria-label": e?.["aria-label"]+ }, i, r), { hoverProps: p, isHovered: m } = Go({+ isDisabled: !f.allowsSelection && !f.hasAction && !c,+ onHoverStart: n.props.onHoverStart,+ onHoverChange: n.props.onHoverChange,+ onHoverEnd: n.props.onHoverEnd+ }), { keyboardProps: h } = $t(e), { focusProps: g } = Bt(e), _ = null;+ o && a && (_ = a.useDraggableItem({+ key: n.key,+ hasAction: f.hasAction+ }, o));+ let v = null;+ s && a && (v = a.useDroppableItem({ target: {+ type: "item",+ key: n.key,+ dropPosition: "on"+ } }, s, r));+ let y = o && o.isDragging(n.key), b = wu({+ ...e,+ id: void 0,+ children: e.children,+ defaultClassName: "react-aria-ListBoxItem",+ values: {+ ...f,+ isHovered: m,+ selectionMode: i.selectionManager.selectionMode,+ selectionBehavior: i.selectionManager.selectionBehavior,+ allowsDragging: !!o,+ isDragging: y,+ isDropTarget: v?.isDropTarget+ }+ });+ (0, C.useEffect)(() => {+ n.textValue;+ }, [n.textValue]);+ let x = e.href ? ju.a : ju.div, S = xr(e, { global: !0 });+ return delete S.id, delete S.onClick, e.href && l.tabIndex == null && (l.tabIndex = -1), /*#__PURE__*/ C.createElement(x, {+ ...V(S, b, l, p, h, g, _?.dragProps, v?.dropProps),+ ref: r,+ "data-allows-dragging": !!o || void 0,+ "data-selected": f.isSelected || void 0,+ "data-disabled": f.isDisabled || void 0,+ "data-hovered": m || void 0,+ "data-focused": f.isFocused || void 0,+ "data-focus-visible": f.isFocusVisible || void 0,+ "data-pressed": f.isPressed || void 0,+ "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__*/ C.createElement(Cu, { values: [[Ju, { slots: {+ [Su]: u,+ label: u,+ description: d+ } }], [Yd, { isSelected: f.isSelected }]] }, b.children));+});+function xf(e, t) {+ t = en(t);+ let { dragAndDropHooks: n, dropState: r } = (0, C.useContext)(Vd), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);+ return a ? null : /*#__PURE__*/ C.createElement(Cf, {+ ...e,+ dropIndicatorProps: i,+ isDropTarget: o,+ ref: t+ });}-function Fi(e) {- e.pointerType === "touch" && Pi();+function Sf(e, t) {+ let { dropIndicatorProps: n, isDropTarget: r, ...i } = e, a = wu({+ ...i,+ defaultClassName: "react-aria-DropIndicator",+ values: { isDropTarget: r }+ });+ return /*#__PURE__*/ C.createElement(C.Fragment, null, /*#__PURE__*/ C.createElement(ju.div, {+ ...n,+ ...a,+ role: "option",+ ref: t,+ "data-drop-target": r || void 0+ }));}-function Ii() {- let e = fn(null);- if (e !== void 0) return Ni === 0 && typeof PointerEvent < "u" && e.addEventListener("pointerup", Fi), Ni++, () => {- Ni--, !(Ni > 0) && typeof PointerEvent < "u" && e.removeEventListener("pointerup", Fi);+var Cf = /*#__PURE__*/ (0, C.forwardRef)(Sf);+En(m, function(e, t, n) {+ let r = (0, C.useContext)(hf), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, C.useRef)(null);+ pf((0, C.useMemo)(() => ({+ onLoadMore: a,+ collection: r?.collection,+ sentinelRef: c,+ scrollOffset: o+ }), [+ a,+ o,+ r?.collection+ ]), c);+ let l = wu({+ ...s,+ id: void 0,+ children: n.rendered,+ defaultClassName: "react-aria-ListBoxLoadingIndicator",+ values: void 0+ });+ return /*#__PURE__*/ C.createElement(C.Fragment, null, /*#__PURE__*/ C.createElement("div", {+ style: {+ position: "relative",+ width: 0,+ height: 0+ },+ inert: Zd(!0)+ }, /*#__PURE__*/ C.createElement("div", {+ "data-testid": "loadMoreSentinel",+ ref: c,+ style: {+ position: "absolute",+ height: 1,+ width: 1+ }+ })), i && l.children && /*#__PURE__*/ C.createElement(C.Fragment, null, /*#__PURE__*/ C.createElement(ju.div, {+ ...V(xr(e, { global: !0 }), { tabIndex: -1 }),+ ...l,+ role: "option",+ ref: t+ }, l.children)));+});+//#endregion+//#region node_modules/react-aria-components/dist/private/OverlayArrow.mjs+var wf = /*#__PURE__*/ (0, C.createContext)({ placement: "bottom" });+//#endregion+//#region node_modules/react-stately/dist/private/overlays/useOverlayTriggerState.mjs+function Tf(e) {+ let [t, n] = ia(e.isOpen, e.defaultOpen || !1, e.onOpenChange), [r, i] = (0, C.useState)(null);+ return {+ isOpen: t,+ setOpen: n,+ open: (0, C.useCallback)(() => {+ n(!0);+ }, [n]),+ close: (0, C.useCallback)(() => {+ n(!1);+ }, [n]),+ toggle: (0, C.useCallback)(() => {+ n(!t);+ }, [n, t]),+ point: r,+ setPoint: i};}-function Li(e) {- let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, isDisabled: i } = e, [a, o] = (0, v.useState)(!1), s = (0, v.useRef)({- isHovered: !1,- ignoreEmulatedMouseEvents: !1,- pointerType: "",- target: null- }).current;- (0, v.useEffect)(Ii, []);- let { addGlobalListener: c, removeAllGlobalListeners: l } = gi(), { hoverProps: u, triggerHoverEnd: d } = (0, v.useMemo)(() => {- let e = (e, r) => {- if (s.pointerType = r, i || r === "touch" || s.isHovered || !L(e.currentTarget, R(e))) return;- s.isHovered = !0;- let l = e.currentTarget;- s.target = l, c(fn(R(e)), "pointerover", (e) => {- s.isHovered && s.target && !L(s.target, R(e)) && a(e, e.pointerType);- }, { capture: !0 }), t && t({- type: "hoverstart",- target: l,- pointerType: r- }), n && n(!0), o(!0);- }, a = (e, t) => {- let i = s.target;- s.pointerType = "", s.target = null, !(t === "touch" || !s.isHovered || !i) && (s.isHovered = !1, l(), r && r({- type: "hoverend",- target: i,- pointerType: t- }), n && n(!1), o(!1));- }, u = {};- return typeof PointerEvent < "u" && (u.onPointerEnter = (t) => {- Mi && t.pointerType === "mouse" || e(t, t.pointerType);- }, u.onPointerLeave = (e) => {- !i && L(e.currentTarget, R(e)) && a(e, e.pointerType);- }), {- hoverProps: u,- triggerHoverEnd: a- };+//#endregion+//#region node_modules/react-aria/dist/private/utils/animation.mjs+function Ef(e, t = !0) {+ let [n, r] = (0, C.useState)(!0), i = n && t;+ return B(() => {+ if (i && e.current && "getAnimations" in e.current) for (let t of e.current.getAnimations()) t instanceof CSSTransition && t.cancel();+ }, [e, i]), Of(e, i, (0, C.useCallback)(() => r(!1), [])), i;+}+function Df(e, t) {+ let [n, r] = (0, C.useState)(t ? "open" : "closed");+ switch (n) {+ case "open":+ t || r("exiting");+ break;+ case "closed":+ case "exiting": t && r("open");+ }+ let i = n === "exiting";+ return Of(e, i, (0, C.useCallback)(() => {+ r((e) => e === "exiting" ? "closed" : e);+ }, [])), i;+}+function Of(e, t, n) {+ B(() => {+ if (t && e.current) {+ if (!("getAnimations" in e.current)) {+ n();+ return;+ }+ let t = e.current.getAnimations();+ if (t.length === 0) {+ n();+ return;+ }+ let r = !1;+ return Promise.allSettled(t.map((e) => e.finished)).then(() => {+ r || (0, mn.flushSync)(() => {+ n();+ });+ }), () => {+ r = !0;+ };+ }}, [+ e,t,- n,- r,- i,- s,- c,- l+ n]);- return (0, v.useEffect)(() => {- i && d({ currentTarget: s.target }, s.pointerType);- }, [i]), {- hoverProps: u,- isHovered: a- };}//#endregion-//#region node_modules/react-aria-components/dist/private/Label.mjs-var Ri = /*#__PURE__*/ (0, v.createContext)({}), zi = /*#__PURE__*/ $r(function(e, t) {- [e, t] = on(e, t, Ri);- let { elementType: n = "label", ...r } = e, i = dn[n];- return /*#__PURE__*/ v.createElement(i, {- className: "react-aria-Label",- ...r,- ref: t+//#region node_modules/react-aria-components/dist/private/Popover.mjs+var kf = /*#__PURE__*/ (0, C.createContext)(null), Af = /*#__PURE__*/ (0, C.createContext)(null), jf = /*#__PURE__*/ (0, C.forwardRef)(function(e, t) {+ [e, t] = Eu(e, t, kf);+ let n = (0, C.useContext)(Pf), r = Tf(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = Df(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = ln(), { direction: c } = er();+ if (s) {+ let t = e.children;+ return typeof t == "function" && (t = t({+ trigger: e.trigger || null,+ placement: "bottom",+ isEntering: !1,+ isExiting: !1,+ defaultChildren: null+ })), /*#__PURE__*/ C.createElement(C.Fragment, null, t);+ }+ return i && !i.isOpen && !o ? null : /*#__PURE__*/ C.createElement(Mf, {+ ...e,+ triggerRef: e.triggerRef,+ state: i,+ popoverRef: t,+ isExiting: o,+ dir: c});});-//#endregion-//#region node_modules/react-aria/dist/private/label/useLabel.mjs-function Bi(e) {- let { id: t, label: n, "aria-labelledby": r, "aria-label": i, labelElementType: a = "label" } = e;- t = Jt(t);- let o = Jt(), s = {};- n && (r = r ? `${o} ${r}` : o, s = {- id: o,- htmlFor: a === "label" ? t : void 0- });- let c = Cr({- id: t,- "aria-label": i,- "aria-labelledby": r+function Mf({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts: r, ...i }) {+ let a = (0, C.useRef)(null), o = (0, C.useRef)(null), s = (0, C.useContext)(Af), c = s && i.trigger === "SubmenuTrigger", { popoverProps: l, underlayProps: u, arrowProps: d, placement: f, triggerAnchorPoint: p } = Sc({+ ...i,+ offset: i.offset ?? 8,+ arrowRef: a,+ groupRef: c ? s : o+ }, e), m = i.popoverRef, h = Ef(m, !!f), g = i.isEntering || !i.shouldSkipAnimation && h || !1, _ = wu({+ ...i,+ defaultClassName: "react-aria-Popover",+ values: {+ trigger: i.trigger || null,+ placement: f,+ isEntering: g,+ isExiting: t+ }+ }), v = !i.isNonModal || i.trigger === "SubmenuTrigger" || i.trigger === "PreviewTrigger", [y, b] = (0, C.useState)(i.trigger === "PreviewTrigger");+ B(() => {+ m.current && b(v && !m.current.querySelector("[role=dialog]"));+ }, [m, v]), (0, C.useEffect)(() => {+ y && i.trigger !== "PreviewTrigger" && (i.trigger !== "SubmenuTrigger" || gt() !== "pointer") && m.current && !se(m.current) && Et(m.current);+ }, [+ y,+ m,+ i.trigger+ ]);+ let x = (0, C.useMemo)(() => {+ let e = _.children;+ if (r) for (let t of r) e = /*#__PURE__*/ C.createElement(t.Provider, { value: null }, e);+ return e;+ }, [_.children, r]), [S, w] = (0, C.useState)(null), T = (0, C.useCallback)(() => {+ i.triggerRef.current && w(i.triggerRef.current.getBoundingClientRect().width + "px");+ }, [i.triggerRef]);+ B(T, [T]), ns({+ ref: _.style?.["--trigger-width"] ? void 0 : i.triggerRef,+ onResize: T});+ let E = {+ ...l.style,+ "--trigger-anchor-point": p ? `${p.x}px ${p.y}px` : void 0,+ ..._.style,+ "--trigger-width": _.style?.["--trigger-width"] || S+ }, D = /*#__PURE__*/ C.createElement(ju.div, {+ ...V(xr(i, { global: !0 }), l),+ ..._,+ id: y ? i.id : void 0,+ role: y ? "dialog" : void 0,+ tabIndex: y ? -1 : void 0,+ "aria-label": i["aria-label"],+ "aria-labelledby": i["aria-labelledby"],+ ref: m,+ slot: i.slot || void 0,+ style: E,+ dir: i.dir,+ "data-trigger": i.trigger,+ "data-placement": f,+ "data-entering": g || void 0,+ "data-exiting": t || void 0+ }, !i.isNonModal && /*#__PURE__*/ C.createElement(zs, { onDismiss: e.close }), /*#__PURE__*/ C.createElement(wf.Provider, { value: {+ ...d,+ placement: f,+ ref: a+ } }, x), /*#__PURE__*/ C.createElement(zs, { onDismiss: e.close }));+ return c ? /*#__PURE__*/ C.createElement(Lo, {+ ...i,+ shouldContainFocus: y && i.trigger !== "PreviewTrigger",+ isExiting: t,+ portalContainer: n ?? s?.current ?? void 0+ }, D) : /*#__PURE__*/ C.createElement(Lo, {+ ...i,+ shouldContainFocus: y && i.trigger !== "PreviewTrigger",+ isExiting: t,+ portalContainer: n+ }, !i.isNonModal && e.isOpen && /*#__PURE__*/ C.createElement("div", {+ "data-testid": "underlay",+ ...u,+ style: {+ position: "fixed",+ inset: 0+ }+ }), /*#__PURE__*/ C.createElement("div", {+ ref: o,+ style: { display: "contents" }+ }, /*#__PURE__*/ C.createElement(Af.Provider, { value: o }, D)));+}+//#endregion+//#region node_modules/react-aria-components/dist/private/Dialog.mjs+var Nf = /*#__PURE__*/ (0, C.createContext)(null), Pf = /*#__PURE__*/ (0, C.createContext)(null), Ff = /*#__PURE__*/ (0, C.forwardRef)(function(e, t) {+ let n = e["aria-labelledby"];+ [e, t] = Eu(e, t, Nf);+ let { dialogProps: r, titleProps: i, contentProps: a } = W({+ ...e,+ "aria-labelledby": n+ }, t), o = (0, C.useContext)(Pf);+ !r["aria-label"] && !r["aria-labelledby"] && e["aria-labelledby"] && (r["aria-labelledby"] = e["aria-labelledby"]);+ let s = wu({+ defaultClassName: "react-aria-Dialog",+ className: e.className,+ style: e.style,+ children: e.children,+ values: { close: o?.close || (() => {}) }+ }), c = xr(e, { global: !0 });+ return /*#__PURE__*/ C.createElement(ju.section, {+ ...V(c, s, r),+ render: e.render,+ ref: t,+ slot: e.slot || void 0+ }, /*#__PURE__*/ C.createElement(Cu, { values: [+ [Ku, { slots: {+ [Su]: {},+ title: {+ ...i,+ level: 2+ }+ } }],+ [Ju, { slots: {+ [Su]: {},+ description: a+ } }],+ [Hu, { slots: {+ [Su]: {},+ close: { onPress: () => o?.close() }+ } }]+ ] }, s.children));+}), If = Math.round(Math.random() * 1e10), Lf = 0;+function Rf(e) {+ let t = (0, C.useMemo)(() => e.name || `radio-group-${If}-${++Lf}`, [e.name]), [n, r] = ia(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, C.useState)(n), [a, o] = (0, C.useState)(null), s = Ki({+ ...e,+ value: n+ }), c = (t) => {+ !e.isReadOnly && !e.isDisabled && (r(t), s.commitValidation());+ }, l = s.displayValidation.isInvalid;return {- labelProps: s,- fieldProps: c+ ...s,+ name: t,+ selectedValue: n,+ defaultSelectedValue: e.value === void 0 ? e.defaultValue ?? null : i,+ setSelectedValue: c,+ lastFocusedValue: a,+ setLastFocusedValue: o,+ isDisabled: e.isDisabled || !1,+ isReadOnly: e.isReadOnly || !1,+ isRequired: e.isRequired || !1,+ validationState: e.validationState || (l ? "invalid" : null),+ isInvalid: l};}//#endregion-//#region node_modules/react-aria-components/dist/private/Text.mjs-var Vi = /*#__PURE__*/ (0, v.createContext)({}), Hi = /*#__PURE__*/ $r(function(e, t) {- [e, t] = on(e, t, Vi);- let { elementType: n = "span", ...r } = e, i = dn[n];- return /*#__PURE__*/ v.createElement(i, {- className: "react-aria-Text",- ...r,+//#region node_modules/react-aria-components/dist/private/RadioGroup.mjs+var zf = /*#__PURE__*/ (0, C.createContext)(null), Bf = /*#__PURE__*/ (0, C.createContext)(null), $ = /*#__PURE__*/ (0, C.createContext)(null), Vf = /*#__PURE__*/ (0, C.forwardRef)(function(e, t) {+ [e, t] = Eu(e, t, zf);+ let { validationBehavior: n } = Tu(Xu) || {}, r = e.validationBehavior ?? n ?? "native", i = Rf({+ ...e,+ validationBehavior: r+ }), [a, o] = Du(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = Tc({+ ...e,+ label: o,+ validationBehavior: r+ }, i), f = wu({+ ...e,+ values: {+ orientation: e.orientation || "vertical",+ isDisabled: i.isDisabled,+ isReadOnly: i.isReadOnly,+ isRequired: i.isRequired,+ isInvalid: i.isInvalid,+ state: i+ },+ defaultClassName: "react-aria-RadioGroup"+ }), p = xr(e, { global: !0 });+ return /*#__PURE__*/ C.createElement(ju.div, {+ ...V(p, f, s),+ ref: t,+ slot: e.slot || void 0,+ "data-orientation": e.orientation || "vertical",+ "data-invalid": i.isInvalid || void 0,+ "data-disabled": i.isDisabled || void 0,+ "data-readonly": i.isReadOnly || void 0,+ "data-required": i.isRequired || void 0+ }, /*#__PURE__*/ C.createElement(Cu, { values: [+ [$, i],+ [zu, {+ ...c,+ ref: a,+ elementType: "span"+ }],+ [Ju, { slots: {+ description: l,+ errorMessage: u+ } }],+ [X, d]+ ] }, /*#__PURE__*/ C.createElement(Jd, null, f.children)));+}), Hf = /*#__PURE__*/ (0, C.forwardRef)(function(e, t) {+ let { inputRef: n = null, ...r } = e;+ [e, t] = Eu(r, t, Bf);+ let i = C.useContext($), a = en((0, C.useMemo)(() => It(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = wc({+ ...Ou(e),+ children: typeof e.children == "function" || e.children+ }, i, a);+ return /*#__PURE__*/ C.createElement(Uf.Provider, { value: {+ ...o,+ inputRef: a,+ defaultClassName: "react-aria-Radio"+ } }, /*#__PURE__*/ C.createElement(Wf, {+ ...e,ref: t- });-}), Ui = {- border: 0,- clip: "rect(0 0 0 0)",- clipPath: "inset(50%)",- height: "1px",- margin: "-1px",- overflow: "hidden",- padding: 0,- position: "absolute",- width: "1px",- whiteSpace: "nowrap"-};-function Wi(e = {}) {- let { style: t, isFocusable: n } = e, [r, i] = (0, v.useState)(!1), { focusWithinProps: a } = Ai({- isDisabled: !n,- onFocusWithinChange: (e) => i(e)- }), o = (0, v.useMemo)(() => r ? t : t ? {- ...Ui,- ...t- } : Ui, [r]);- return { visuallyHiddenProps: {- ...a,- style: o- } };+ }));+}), Uf = /*#__PURE__*/ (0, C.createContext)(null), Wf = /*#__PURE__*/ (0, C.forwardRef)(function(e, t) {+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, C.useContext)(Uf), l = C.useContext($), { isFocused: u, isFocusVisible: d, focusProps: f } = G(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = Go({+ ...e,+ isDisabled: p+ }), g = wu({+ ...e,+ defaultClassName: s,+ values: {+ isSelected: i,+ isPressed: o,+ isHovered: h,+ isFocused: u,+ isFocusVisible: d,+ isDisabled: a,+ isReadOnly: l.isReadOnly,+ isInvalid: l.isInvalid,+ isRequired: l.isRequired+ }+ }), _ = xr(e, { global: !0 });+ return delete _.id, delete _.onClick, /*#__PURE__*/ C.createElement(ju.label, {+ ...V(_, n, m, g),+ ref: t,+ "data-selected": i || void 0,+ "data-pressed": o || void 0,+ "data-hovered": h || void 0,+ "data-focused": u || void 0,+ "data-focus-visible": d || void 0,+ "data-disabled": a || void 0,+ "data-readonly": l.isReadOnly || void 0,+ "data-invalid": l.isInvalid || void 0,+ "data-required": l.isRequired || void 0+ }, /*#__PURE__*/ C.createElement(ua, { elementType: "span" }, /*#__PURE__*/ C.createElement("input", {+ ...V(r, f),+ ref: c+ })), g.children);+});+//#endregion+//#region node_modules/react-stately/dist/private/select/useSelectState.mjs+function Gf(e) {+ let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = Tf(e), [i, a] = (0, C.useState)(null), o = (0, C.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [+ e.defaultValue,+ e.defaultSelectedKey,+ t+ ]), [s, c] = ia((0, C.useMemo)(() => e.value === void 0 ? t === "single" ? e.selectedKey : void 0 : e.value, [+ e.value,+ e.selectedKey,+ t+ ]), o, e.onChange), l = t === "single" && Array.isArray(s) ? s[0] : s, u = (n) => {+ if (t === "single") {+ let t = Array.isArray(n) ? n[0] ?? null : n;+ c(t), t !== l && e.onSelectionChange?.(t);+ } else {+ let e = [];+ Array.isArray(n) ? e = n : n != null && (e = [n]), c(e);+ }+ }, d = uf({+ ...e,+ selectionMode: t,+ disallowEmptySelection: t === "single",+ allowDuplicateSelectionEvents: !0,+ selectedKeys: (0, C.useMemo)(() => Kf(l), [l]),+ onSelectionChange: (e) => {+ if (e !== "all") {+ if (t === "single") {+ let t = e.values().next().value ?? null;+ u(t);+ } else u([...e]);+ n && r.close(), m.commitValidation();+ }+ }+ }), f = d.selectionManager.firstSelectedKey, p = (0, C.useMemo)(() => [...d.selectionManager.selectedKeys].map((e) => d.collection.getItem(e)).filter((e) => e != null), [d.selectionManager.selectedKeys, d.collection]), m = Ki({+ ...e,+ value: Array.isArray(l) && l.length === 0 ? null : l+ }), [h, g] = (0, C.useState)(!1), [_] = (0, C.useState)(l);+ return {+ ...m,+ ...d,+ ...r,+ value: l,+ defaultValue: o ?? _,+ setValue: u,+ selectedKey: f,+ setSelectedKey: u,+ selectedItem: p[0] ?? null,+ selectedItems: p,+ defaultSelectedKey: e.defaultSelectedKey ?? (e.selectionMode === "single" ? _ : null),+ focusStrategy: i,+ open(t = null) {+ (d.collection.size !== 0 || e.allowsEmptyCollection) && (a(t), r.open());+ },+ toggle(t = null) {+ (d.collection.size !== 0 || e.allowsEmptyCollection) && (a(t), r.toggle());+ },+ isFocused: h,+ setFocused: g+ };}-function Gi(e) {- let { children: t, elementType: n = "div", isFocusable: r, style: i, ...a } = e, { visuallyHiddenProps: o } = Wi(e);- return /*#__PURE__*/ v.createElement(n, I(a, o), t);+function Kf(e) {+ if (e !== void 0) return e === null ? [] : Array.isArray(e) ? e : [e];}//#endregion-//#region node_modules/react-aria-components/dist/private/FieldError.mjs-var Ki = /*#__PURE__*/ (0, v.createContext)(null), qi = {- badInput: !1,- customError: !1,- patternMismatch: !1,- rangeOverflow: !1,- rangeUnderflow: !1,- stepMismatch: !1,- tooLong: !1,- tooShort: !1,- typeMismatch: !1,- valueMissing: !1,- valid: !0-}, Ji = {- ...qi,- customError: !0,- valid: !1-}, Yi = {- isInvalid: !1,- validationDetails: qi,- validationErrors: []-}, Xi = (0, v.createContext)({}), Zi = "__reactAriaFormValidationState";-function Qi(e) {- if (e.__reactAriaFormValidationState) {- let { realtimeValidation: t, displayValidation: n, updateValidation: r, resetValidation: i, commitValidation: a } = e[Zi];- return {- realtimeValidation: t,- displayValidation: n,- updateValidation: r,- resetValidation: i,- commitValidation: a- };- }- return $i(e);+//#region node_modules/react-aria-components/dist/private/Select.mjs+function qf(e) {+ return e && e.__esModule ? e.default : e;}-function $i(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: Ji- }, l = (0, v.useMemo)(() => !o || i == null ? null : na(ta(o, i)), [o, i]);- a?.validationDetails.valid && (a = void 0);- let u = (0, v.useContext)(Xi), d = (0, v.useMemo)(() => r ? Array.isArray(r) ? r.flatMap((e) => ea(u[e])) : ea(u[r]) : [], [u, r]), [f, p] = (0, v.useState)(u), [m, h] = (0, v.useState)(!1);- u !== f && (p(u), h(!1));- let g = (0, v.useMemo)(() => na(m ? [] : d), [m, d]), _ = (0, v.useRef)(Yi), [y, b] = (0, v.useState)(Yi), x = (0, v.useRef)(Yi), S = () => {- if (!ee) return;- C(!1);- let e = l || a || _.current;- ra(e, x.current) || (x.current = e, b(e));- }, [ee, C] = (0, v.useState)(!1);- return (0, v.useEffect)(S), {- realtimeValidation: c || g || l || a || Yi,- displayValidation: s === "native" ? c || g || y : c || g || l || a || y,- updateValidation(e) {- s === "aria" && !ra(y, e) ? b(e) : _.current = e;+var Jf = /*#__PURE__*/ (0, C.createContext)(null), Yf = /*#__PURE__*/ (0, C.createContext)(null), Xf = /*#__PURE__*/ cn(function(e, t) {+ [e, t] = Eu(e, t, Jf);+ let { children: n, isDisabled: r = !1, isInvalid: i = !1, isRequired: a = !1 } = e, o = (0, C.useMemo)(() => typeof n == "function" ? n({+ isOpen: !1,+ isDisabled: r,+ isInvalid: i,+ isRequired: a,+ isFocused: !1,+ isFocusVisible: !1,+ defaultChildren: null+ }) : n, [+ n,+ r,+ i,+ a+ ]);+ return /*#__PURE__*/ C.createElement(vn, { content: o }, (n) => /*#__PURE__*/ C.createElement(Qf, {+ props: e,+ collection: n,+ selectRef: t+ }));+}), Zf = [+ zu,+ Hu,+ Ju+];+function Qf({ props: e, selectRef: t, collection: n }) {+ let { validationBehavior: r } = Tu(Xu) || {}, i = e.validationBehavior ?? r ?? "native", a = Gf({+ ...e,+ collection: n,+ children: void 0,+ validationBehavior: i+ }), { isFocusVisible: o, focusProps: s } = G({ within: !0 }), c = (0, C.useRef)(null), [l, u] = Du(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = Dc({+ ...Ou(e),+ label: u,+ validationBehavior: i+ }, a, c), y = (0, C.useMemo)(() => ({+ isOpen: a.isOpen,+ isFocused: a.isFocused,+ isFocusVisible: o,+ isDisabled: e.isDisabled || !1,+ isInvalid: v.isInvalid || !1,+ isRequired: e.isRequired || !1+ }), [+ a.isOpen,+ a.isFocused,+ o,+ e.isDisabled,+ v.isInvalid,+ e.isRequired+ ]), b = wu({+ ...e,+ values: y,+ defaultClassName: "react-aria-Select"+ }), x = xr(e, { global: !0 });+ delete x.id;+ let S = (0, C.useRef)(null);+ return /*#__PURE__*/ C.createElement(Cu, { values: [+ [Jf, e],+ [Yf, a],+ [$f, p],+ [zu, {+ ...d,+ ref: l,+ elementType: "span"+ }],+ [Hu, {+ ...f,+ ref: c,+ isPressed: a.isOpen,+ autoFocus: e.autoFocus+ }],+ [Pf, a],+ [kf, {+ trigger: "Select",+ triggerRef: c,+ scrollRef: S,+ placement: "bottom start",+ "aria-labelledby": m["aria-labelledby"],+ clearContexts: Zf+ }],+ [mf, {+ ...m,+ ref: S+ }],+ [hf, a],+ [Ju, { slots: {+ description: h,+ errorMessage: g+ } }],+ [X, v]+ ] }, /*#__PURE__*/ C.createElement(ju.div, {+ ...V(x, b, s),+ ref: t,+ slot: e.slot || void 0,+ "data-focused": a.isFocused || void 0,+ "data-focus-visible": o || void 0,+ "data-open": a.isOpen || void 0,+ "data-disabled": e.isDisabled || void 0,+ "data-invalid": v.isInvalid || void 0,+ "data-required": e.isRequired || void 0+ }, b.children, /*#__PURE__*/ C.createElement(kc, {+ ..._,+ autoComplete: e.autoComplete+ })));+}+var $f = /*#__PURE__*/ (0, C.createContext)(null), ep = /*#__PURE__*/ cn(function(e, t) {+ [e, t] = Eu(e, t, $f);+ let n = (0, C.useContext)(Yf), { placeholder: r } = Tu(Jf), i = n.selectedItems.map((e) => {+ let t = e.props?.children;+ return typeof t == "function" && (t = t({+ isHovered: !1,+ isPressed: !1,+ isSelected: !1,+ isFocused: !1,+ isFocusVisible: !1,+ isDisabled: !1,+ selectionMode: "single",+ selectionBehavior: "toggle"+ })), t;+ }), a = zo(), o = (0, C.useMemo)(() => n.selectedItems.map((e) => e?.textValue), [n.selectedItems]), s = n.selectionManager.selectionMode, c = (0, C.useMemo)(() => s === "single" ? o[0] ?? "" : a.format(o), [+ s,+ a,+ o+ ]), l = (0, C.useMemo)(() => {+ if (s === "single") return i[0];+ let e = a.formatToParts(o);+ if (e.length === 0) return null;+ let t = 0;+ return e.map((e) => e.type === "element" ? /*#__PURE__*/ C.createElement(C.Fragment, { key: t }, i[t++]) : e.value);+ }, [+ s,+ a,+ o,+ i+ ]), u = mr(qf(Bd), "react-aria-components"), d = wu({+ ...e,+ defaultChildren: l ?? r ?? u.format("selectPlaceholder"),+ defaultClassName: "react-aria-SelectValue",+ values: {+ selectedItem: n.selectedItems[0]?.value ?? null,+ selectedItems: (0, C.useMemo)(() => n.selectedItems.map((e) => e.value ?? null), [n.selectedItems]),+ selectedText: c,+ isPlaceholder: n.selectedItems.length === 0,+ state: n+ }+ }), f = xr(e, { global: !0 });+ return /*#__PURE__*/ C.createElement(ju.span, {+ ref: t,+ ...f,+ ...d,+ "data-placeholder": n.selectedItems.length === 0 || void 0+ }, /*#__PURE__*/ C.createElement(Ju.Provider, { value: void 0 }, d.children));+}), tp = /*#__PURE__*/ (0, C.createContext)(null), np = /*#__PURE__*/ (0, C.createContext)(null), rp = /*#__PURE__*/ (0, C.forwardRef)(function(e, t) {+ let { inputRef: n = null, ...r } = e;+ [e, t] = Eu(r, t, tp);+ let i = en((0, C.useMemo)(() => It(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = aa(e), o = Ac({+ ...Ou(e),+ children: typeof e.children == "function" || e.children+ }, a, i);+ return /*#__PURE__*/ C.createElement(Cu, { values: [[np, a], [ip, {+ ...o,+ inputRef: i,+ defaultClassName: "react-aria-Switch"+ }]] }, /*#__PURE__*/ C.createElement(ap, {+ ...e,+ ref: t+ }));+}), ip = /*#__PURE__*/ (0, C.createContext)(null), ap = /*#__PURE__*/ (0, C.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, C.useContext)(ip), { isFocused: f, isFocusVisible: p, focusProps: m } = G(), h = a || o, g = (0, C.useContext)(np), { hoverProps: _, isHovered: v } = Go({+ ...e,+ isDisabled: h+ }), y = wu({+ ...e,+ defaultClassName: u,+ values: {+ isSelected: i,+ isPressed: s,+ isHovered: v,+ isFocused: f,+ isFocusVisible: p,+ isDisabled: a,+ isReadOnly: o,+ isInvalid: c,+ isRequired: d || !1,+ state: g+ }+ }), b = xr(e, { global: !0 });+ return delete b.id, delete b.onClick, /*#__PURE__*/ C.createElement(ju.label, {+ ...V(b, n, _, y),+ ref: t,+ slot: e.slot || void 0,+ "data-selected": i || void 0,+ "data-pressed": s || void 0,+ "data-hovered": v || void 0,+ "data-focused": f || void 0,+ "data-focus-visible": p || void 0,+ "data-disabled": a || void 0,+ "data-readonly": o || void 0,+ "data-invalid": c || void 0,+ "data-required": d || void 0+ }, /*#__PURE__*/ C.createElement(ua, { elementType: "span" }, /*#__PURE__*/ C.createElement("input", {+ ...V(r, m),+ ref: l+ })), y.children);+}), op = /*#__PURE__*/ (0, C.createContext)({}), sp = /*#__PURE__*/ (0, C.createContext)(null), cp = /*#__PURE__*/ cn(function(e, t) {+ [e, t] = Eu(e, t, sp);+ let { validationBehavior: n } = Tu(Xu) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, C.useRef)(null);+ [e, i] = Eu(e, i, Nu);+ let [a, o] = Du(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, C.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = da({+ ...Ou(e),+ inputElementType: s,+ label: o,+ validationBehavior: r+ }, i), m = (0, C.useCallback)((e) => {+ i.current = e, e && c(e instanceof HTMLTextAreaElement ? "textarea" : "input");+ }, [i]), h = wu({+ ...e,+ values: {+ isDisabled: e.isDisabled || !1,+ isInvalid: p.isInvalid,+ isReadOnly: e.isReadOnly || !1,+ isRequired: e.isRequired || !1+ },+ defaultClassName: "react-aria-TextField"+ }), g = xr(e, { global: !0 });+ return delete g.id, /*#__PURE__*/ C.createElement(ju.div, {+ ...g,+ ...h,+ ref: t,+ slot: e.slot || void 0,+ "data-disabled": e.isDisabled || void 0,+ "data-invalid": p.isInvalid || void 0,+ "data-readonly": e.isReadOnly || void 0,+ "data-required": e.isRequired || void 0+ }, /*#__PURE__*/ C.createElement(Cu, { values: [+ [zu, {+ ...l,+ ref: a+ }],+ [rd, {+ ...u,+ ref: m+ }],+ [op, {+ ...u,+ ref: m+ }],+ [td, {+ role: "presentation",+ isInvalid: p.isInvalid,+ isDisabled: e.isDisabled || !1+ }],+ [Ju, { slots: {+ description: d,+ errorMessage: f+ } }],+ [X, p]+ ] }, h.children));+}), lp = hu({+ sm: {+ track: "h-4 w-7",+ trackRadius: {+ pill: "rounded-full",+ rectangle: "rounded-[3px]"+ },+ onShadow: "shadow-[inset_0_1px_0_0_rgb(255_255_255/0.25),inset_0_0_0_0.5px_var(--color-accent-500)]",+ thumb: "size-3",+ thumbRadius: {+ pill: "rounded-full",+ rectangle: "rounded-[1px]"+ },+ offset: "left-0.5 top-0.5",+ travel: "translate-x-3",+ chip: "size-[5px] border-[0.25px] shadow-[0_2px_2px_0_rgb(0_0_0/0.03)]",+ chipRadius: {+ pill: "rounded-full",+ rectangle: "rounded-[0.5px]"+ }+ },+ md: {+ track: "h-6 w-[42px]",+ trackRadius: {+ pill: "rounded-full",+ rectangle: "rounded-[4.5px]"},- resetValidation() {- let e = Yi;- ra(e, x.current) || (x.current = e, b(e)), s === "native" && C(!1), h(!0);+ onShadow: "shadow-[inset_0_1.5px_0_0_rgb(255_255_255/0.25),inset_0_0_0_0.75px_var(--color-accent-500)]",+ thumb: "size-[18px]",+ thumbRadius: {+ pill: "rounded-full",+ rectangle: "rounded-[1.5px]"},- commitValidation() {- s === "native" && C(!0), h(!0);+ offset: "left-[3px] top-[3px]",+ travel: "translate-x-[18px]",+ chip: "size-[7.5px] border-[0.375px] shadow-[0_3px_3px_0_rgb(0_0_0/0.03)]",+ chipRadius: {+ pill: "rounded-full",+ rectangle: "rounded-[0.75px]"+ }+ },+ lg: {+ track: "h-8 w-14",+ trackRadius: {+ pill: "rounded-full",+ rectangle: "rounded-md"+ },+ onShadow: "shadow-checkbox-selected",+ thumb: "size-6",+ thumbRadius: {+ pill: "rounded-full",+ rectangle: "rounded-xs"+ },+ offset: "left-1 top-1",+ travel: "translate-x-6",+ chip: "size-[10px] border-[0.5px] shadow-[0_4px_4px_0_rgb(0_0_0/0.03)]",+ chipRadius: {+ pill: "rounded-full",+ rectangle: "rounded-[1px]"}- };-}-function ea(e) {- return e ? Array.isArray(e) ? e : [e] : [];-}-function ta(e, t) {- if (typeof e == "function") {- let n = e(t);- if (n && typeof n != "boolean") return ea(n);}- return [];-}-function na(e) {- return e.length ? {- isInvalid: !0,- validationErrors: e,- validationDetails: Ji- } : null;-}-function ra(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);-}-//#endregion-//#region node_modules/react-aria-components/dist/private/Form.mjs-var ia = /*#__PURE__*/ (0, v.createContext)(null), z = /* @__PURE__ */ new WeakMap();-//#endregion-//#region node_modules/react-aria/dist/private/label/useField.mjs-function B(e) {- let { description: t, errorMessage: n, isInvalid: r, validationState: i } = e, { labelProps: a, fieldProps: o } = Bi(e), s = F([- !!t,- !!n,- r,- i- ]), c = F([- !!t,- !!n,- r,- i- ]);- return o = I(o, { "aria-describedby": [- s,- c,- e["aria-describedby"]- ].filter(Boolean).join(" ") || void 0 }), {- labelProps: a,- fieldProps: o,- descriptionProps: { id: s },- errorMessageProps: { id: c }- };-}-//#endregion-//#region node_modules/react-aria/dist/private/utils/useFormReset.mjs-function aa(e, t, n) {- let r = Sr((e) => {- n && !e.defaultPrevented && n(t);+});+function up({ state: e, size: t = "md", shape: n = "pill" }) {+ let r = lp[t];+ return /* @__PURE__ */ (0, Y.jsx)("span", {+ "aria-hidden": !0,+ className: mu("relative shrink-0 transition-colors duration-200 ease", r.track, r.trackRadius[n], e.isSelected ? mu("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"),+ children: /* @__PURE__ */ (0, Y.jsx)("span", {+ className: mu("absolute flex items-center justify-center", "bg-linear-to-b from-control-indicator-background from-[43.837%] to-control-indicator-background-subtle", "shadow-[0_3px_3px_0_rgb(0_0_0/0.03),0_0.75px_0_0_rgb(0_0_0/0.05)]", "transition-transform duration-200 ease", r.thumb, r.thumbRadius[n], r.offset, e.isSelected && r.travel),+ children: /* @__PURE__ */ (0, Y.jsx)("span", { className: mu("border-solid bg-linear-to-t from-[43.837%]", r.chip, r.chipRadius[n], e.isSelected ? "border-accent-600 from-switch-on-chip-start to-switch-on-chip-end" : "border-border-button-default/50 from-switch-off-chip-start to-switch-off-chip-end") })+ })});- (0, v.useEffect)(() => {- let t = e?.current?.form;- return t?.addEventListener("reset", r), () => {- t?.removeEventListener("reset", r);- };- }, [e]);}-//#endregion-//#region node_modules/react-aria/dist/private/form/useFormValidation.mjs-function oa(e, t, n) {- let { validationBehavior: r, focus: i } = e;- At(() => {- 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(ca(n.current));- }- });- let a = (0, v.useRef)(!1), o = Sr(() => {- a.current || t.resetValidation();- }), s = Sr((e) => {- t.displayValidation.isInvalid || t.commitValidation();- let r = n?.current?.form;- !e.defaultPrevented && n && r && la(r) === n.current && (i ? i() : n.current?.focus(), _r("keyboard")), e.preventDefault();- }), c = Sr(() => {- t.commitValidation();+function dp({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {+ return /* @__PURE__ */ (0, Y.jsx)(rp, {+ ref: i,+ ...a,+ className: (t) => mu("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, Y.jsxs)(Y.Fragment, { children: [/* @__PURE__ */ (0, Y.jsx)(up, {+ state: e,+ size: n,+ shape: r+ }), t != null && t !== !1 && /* @__PURE__ */ (0, Y.jsx)("span", {+ className: "text-body-medium text-text-primary",+ children: t+ })] })});- (0, v.useEffect)(() => {- let e = n?.current;- if (!e) return;- let t = e.form, r = t?.reset;- return t && (t.reset = () => {- a.current = !window.event || window.event.type === "message" && R(window.event) instanceof MessagePort, r?.call(t), a.current = !1;- }), e.addEventListener("invalid", s), e.addEventListener("change", c), t?.addEventListener("reset", o), () => {- e.removeEventListener("invalid", s), e.removeEventListener("change", c), t?.removeEventListener("reset", o), t && (t.reset = r);- };- }, [n, r]);-}-function sa(e) {- let t = e.validity;- return {- badInput: t.badInput,- customError: t.customError,- patternMismatch: t.patternMismatch,- rangeOverflow: t.rangeOverflow,- rangeUnderflow: t.rangeUnderflow,- stepMismatch: t.stepMismatch,- tooLong: t.tooLong,- tooShort: t.tooShort,- typeMismatch: t.typeMismatch,- valueMissing: t.valueMissing,- valid: t.valid- };-}-function ca(e) {- return {- isInvalid: !e.validity.valid,- validationDetails: sa(e),- validationErrors: e.validationMessage ? [e.validationMessage] : []- };-}-function la(e) {- for (let t = 0; t < e.elements.length; t++) {- let n = e.elements[t];- if (n.validity?.valid === !1) return n;- }- return null;}//#endregion-//#region node_modules/react-aria/dist/private/utils/useSlot.mjs-function ua(e = !0) {- let [t, n] = (0, v.useState)(e), r = (0, v.useRef)(!1), i = (0, v.useCallback)((e) => {- r.current = !0, n(!!e);- }, []);- return At(() => {- r.current || n(!1);- }, []), [i, t];-}-function da(e = !0) {- let t = Jt(), [n, r] = ua(e);- return {- id: r ? t : void 0,- ref: n- };+//#region src/api.ts+var fp = class extends Error {+ status;+ body;+ constructor(t, n, r = null) {+ super(e(t, n)), this.name = "ApiError", this.status = n, this.body = r;+ }+}, pp = (e) => {+ if (!e || typeof e != "object") return "";+ let t = e;+ for (let e of [+ "message",+ "detail",+ "error"+ ]) {+ let n = t[e];+ if (typeof n == "string" && n) return n;+ }+ return "";+}, mp = (t) => e(t);+async function hp(e, t) {+ let n = await fetch(e, {+ headers: { Accept: "application/json" },+ credentials: "same-origin",+ ...t ? { signal: t } : {}+ }), r = null;+ try {+ r = await n.json();+ } catch {}+ if (!n.ok) throw new fp(pp(r) || `请求失败(${n.status})`, n.status);+ return r;}-//#endregion-//#region node_modules/react-aria/dist/private/toggle/useToggle.mjs-function fa(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: y, onClick: b } = e, x = Qi({- ...e,- value: t.isSelected- }), { isInvalid: S, validationErrors: ee, validationDetails: C } = x.displayValidation;- oa(e, x, n);- let w = (e) => {- e.stopPropagation(), t.setSelected(R(e).checked);- }, { pressProps: te, isPressed: T } = Si({- onPressStart: m,- onPressEnd: h,- onPressChange: g,- onPress: _,- onPressUp: y,- onClick: b,- isDisabled: r- }), [ne, re] = (0, v.useState)(!1), { pressProps: ie } = Si({- onPressStart(e) {- if (e.pointerType === "keyboard" || e.pointerType === "virtual") {- e.continuePropagation();- return;- }- m?.(e), g?.(!0), re(!0);- },- onPressEnd(e) {- if (e.pointerType === "keyboard" || e.pointerType === "virtual") {- e.continuePropagation();- return;- }- h?.(e), g?.(!1), re(!1);- },- onPressUp(e) {- if (e.pointerType === "keyboard" || e.pointerType === "virtual") {- e.continuePropagation();- return;- }- y?.(e);- },- onClick: b,- onPress(r) {- if (r.pointerType === "keyboard" || r.pointerType === "virtual") {- r.continuePropagation();- return;- }- _?.(r), t.toggle(), n.current?.focus();- let { [Zi]: i } = e, { commitValidation: a } = i || x;- a();+async function gp(e, t, n = "POST", r) {+ let i = await fetch(e, {+ method: n,+ ...r ? { signal: r } : {},+ headers: {+ Accept: "application/json",+ "Content-Type": "application/json"},- isDisabled: r || i- }), { focusableProps: ae } = Zr(e, n), oe = I(te, ae), se = oi(e, { labelable: !0 });- aa(n, t.defaultSelected, t.setSelected);- let ce = da(), le = da();- return {- labelProps: I(ie, { onClick: (e) => e.preventDefault() }),- inputProps: I(se, {- checked: t.isSelected,- "aria-required": l && u === "aria" || void 0,- required: l && u === "native",- "aria-invalid": S || e.validationState === "invalid" || void 0,- "aria-errormessage": e["aria-errormessage"],- "aria-controls": e["aria-controls"],- "aria-readonly": i || void 0,- "aria-describedby": [- ce.id,- le.id,- p- ].filter(Boolean).join(" ") || void 0,- onChange: w,- disabled: r,- ...a == null ? {} : { value: a },- name: o,- form: s,- type: "checkbox",- ...oe- }),- descriptionProps: ce,- errorMessageProps: le,- isSelected: t.isSelected,- isPressed: T || ne,- isDisabled: r,- isReadOnly: i,- isInvalid: S || e.validationState === "invalid",- validationErrors: ee,- validationDetails: C- };-}-//#endregion-//#region node_modules/react-aria/dist/private/checkbox/useCheckbox.mjs-function pa(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 } = fa(e, t, n), { isIndeterminate: m } = e;- return (0, v.useEffect)(() => {- n.current && (n.current.indeterminate = !!m);- }), {- labelProps: I(r, (0, v.useMemo)(() => ({ onMouseDown: (e) => e.preventDefault() }), [])),- inputProps: i,- descriptionProps: a,- errorMessageProps: o,- isSelected: s,- isPressed: c,- isDisabled: l,- isReadOnly: u,- isInvalid: d,- validationErrors: f,- validationDetails: p- };+ credentials: "same-origin",+ body: JSON.stringify(t)+ }), a = null;+ try {+ a = await i.json();+ } catch {}+ if (!i.ok) throw new fp(pp(a) || `请求失败(${i.status})`, i.status, a);+ return a;}//#endregion-//#region node_modules/react-stately/dist/private/toggle/useToggleState.mjs-function ma(e = {}) {- let { isReadOnly: t } = e, [n, r] = Tr(e.isSelected, e.defaultSelected || !1, e.onChange), [i] = (0, v.useState)(n);- function a(e) {- t || r(e);+//#region node_modules/@remixicon/react/index.mjs+var _p = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => C.createElement("svg", {+ viewBox: "0 0 24 24",+ xmlns: "http://www.w3.org/2000/svg",+ width: t,+ height: t,+ fill: e,+ ...r,+ className: "remixicon " + (n || "")+}, C.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" })), vp = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => C.createElement("svg", {+ viewBox: "0 0 24 24",+ xmlns: "http://www.w3.org/2000/svg",+ width: t,+ height: t,+ fill: e,+ ...r,+ className: "remixicon " + (n || "")+}, C.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" })), yp = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => C.createElement("svg", {+ viewBox: "0 0 24 24",+ xmlns: "http://www.w3.org/2000/svg",+ width: t,+ height: t,+ fill: e,+ ...r,+ className: "remixicon " + (n || "")+}, C.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" })), bp = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => C.createElement("svg", {+ viewBox: "0 0 24 24",+ xmlns: "http://www.w3.org/2000/svg",+ width: t,+ height: t,+ fill: e,+ ...r,+ className: "remixicon " + (n || "")+}, C.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" })), xp = hu({+ 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"+ ].join(" "),+ size: {+ medium: "text-body-medium",+ small: "text-body-medium",+ xs: "text-caption-1-semibold"+ },+ icon: {+ medium: "size-5 shrink-0",+ small: "size-[18px] shrink-0",+ xs: "size-3.5 shrink-0"+ },+ variant: {+ primary: ["text-accent-600 active:text-accent-800", "disabled:text-text-tertiary aria-disabled:text-text-tertiary"].join(" "),+ secondary: ["text-text-secondary active:text-text-primary", "disabled:text-text-tertiary aria-disabled:text-text-tertiary"].join(" ")}- function o() {- t || r(!n);+});+function Sp({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {+ let c = mu(xp.base, xp.size[t], xp.variant[e], a), l = /* @__PURE__ */ (0, Y.jsxs)(Y.Fragment, { children: [+ n ? /* @__PURE__ */ (0, Y.jsx)(n, {+ className: xp.icon[t],+ "aria-hidden": !0+ }) : null,+ i != null && /* @__PURE__ */ (0, Y.jsx)("span", { children: i }),+ r ? /* @__PURE__ */ (0, Y.jsx)(r, {+ className: xp.icon[t],+ "aria-hidden": !0+ }) : null+ ] });+ if (s.href !== void 0) {+ let { ref: e, href: t, ...n } = s;+ return /* @__PURE__ */ (0, Y.jsx)("a", {+ ref: e,+ href: o ? void 0 : t,+ "aria-disabled": o || void 0,+ className: c,+ ...n,+ children: l+ });}- return {- isSelected: n,- defaultSelected: e.defaultSelected ?? i,- setSelected: a,- toggle: o- };+ let { ref: u, type: d = "button", ...f } = s;+ return /* @__PURE__ */ (0, Y.jsx)("button", {+ ref: u,+ type: d,+ disabled: o,+ className: c,+ ...f,+ children: l+ });}//#endregion-//#region node_modules/react-aria/dist/private/checkbox/useCheckboxGroupItem.mjs-function ha(e, t, n) {- let r = ma({- 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 } = z.get(t);- c = e.validationBehavior ?? c;- let { realtimeValidation: l } = Qi({- ...e,- value: r.isSelected,- name: void 0,- validationBehavior: "aria"- }), u = (0, v.useRef)(Yi), d = () => {- t.setInvalid(e.value, l.isInvalid ? l : u.current);- };- (0, v.useEffect)(d);- let f = t.realtimeValidation.isInvalid ? t.realtimeValidation : l, p = c === "native" ? t.displayValidation : f, m = pa({- ...e,- isReadOnly: e.isReadOnly || t.isReadOnly,- isDisabled: e.isDisabled || t.isDisabled,- name: e.name || i,- form: e.form || a,- isRequired: e.isRequired ?? t.isRequired,- validationBehavior: c,- [Zi]: {- realtimeValidation: f,- displayValidation: p,- resetValidation: t.resetValidation,- commitValidation: t.commitValidation,- updateValidation(e) {- u.current = e, d();- }- }- }, r, n);- return {- ...m,- inputProps: {- ...m.inputProps,- "aria-describedby": [- m.inputProps["aria-describedby"],- t.isInvalid ? s : null,- o- ].filter(Boolean).join(" ") || void 0- }- };+//#region src/react/settings/section.tsx+function Cp({ title: e, id: t, onSubmit: n, children: r }) {+ let i = /* @__PURE__ */ (0, Y.jsxs)(Y.Fragment, { children: [/* @__PURE__ */ (0, Y.jsx)(vu, { children: e }), /* @__PURE__ */ (0, Y.jsx)(_u, { children: r })] });+ return n ? /* @__PURE__ */ (0, Y.jsx)("form", {+ id: t,+ "aria-label": e,+ noValidate: !0,+ onSubmit: n,+ className: "flex w-full flex-col gap-2",+ children: i+ }) : /* @__PURE__ */ (0, Y.jsx)("section", {+ id: t,+ "aria-label": e,+ className: "flex w-full flex-col gap-2",+ children: i+ });}-//#endregion-//#region node_modules/react-aria-components/dist/private/Checkbox.mjs-var ga = /*#__PURE__*/ (0, v.createContext)(null), _a = /*#__PURE__*/ (0, v.createContext)(null), va = /*#__PURE__*/ (0, v.createContext)(null);-function ya(e, t) {- let { validationBehavior: n } = an(ia) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, v.useContext)(_a), a = en((0, v.useMemo)(() => Xt(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {- ...cn(e),- children: typeof e.children == "function" || e.children,- value: e.value,- validationBehavior: r- };- return [i ? ha(o, i, a) : pa(o, ma(e), a), a];+function wp({ children: e }) {+ return /* @__PURE__ */ (0, Y.jsx)("div", {+ className: "flex flex-col",+ children: e+ });}-var ba = /*#__PURE__*/ (0, v.forwardRef)(function(e, t) {- let { inputRef: n = null, ...r } = e;- [e, t] = on(r, t, ga);- let [i, a] = ya(e, n);- return /*#__PURE__*/ v.createElement(va.Provider, { value: {- ...i,- inputRef: a,- defaultClassName: "react-aria-Checkbox",- isIndeterminate: e.isIndeterminate,- isRequired: e.isRequired- } }, /*#__PURE__*/ v.createElement(xa, {- ...e,- ref: t- }));-}), xa = /*#__PURE__*/ (0, v.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, v.useContext)(va), { isFocused: p, isFocusVisible: m, focusProps: h } = ji(), g = a || o, { hoverProps: _, isHovered: y } = Li({- ...e,- isDisabled: g- }), b = rn({- ...e,- defaultClassName: u,- values: {- isSelected: i,- isIndeterminate: d || !1,- isPressed: s,- isHovered: y,- isFocused: p,- isFocusVisible: m,- isDisabled: a,- isReadOnly: o,- isInvalid: c,- isRequired: f || !1- }- }), x = oi(e, { global: !0 });- return delete x.id, delete x.onClick, /*#__PURE__*/ v.createElement(dn.label, {- ...I(x, n, _, b),- ref: t,- slot: e.slot || void 0,- "data-selected": i || void 0,- "data-indeterminate": d || void 0,- "data-pressed": s || void 0,- "data-hovered": y || void 0,- "data-focused": p || void 0,- "data-focus-visible": m || void 0,- "data-disabled": a || void 0,- "data-readonly": o || void 0,- "data-invalid": c || void 0,- "data-required": f || void 0- }, /*#__PURE__*/ v.createElement(Gi, { elementType: "span" }, /*#__PURE__*/ v.createElement("input", {- ...I(r, h),- ref: l- })), b.children);-}), Sa = /*#__PURE__*/ (0, v.createContext)({}), Ca = /*#__PURE__*/ (0, v.forwardRef)(function(e, t) {- [e, t] = on(e, t, Sa);- 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 } = Li({- onHoverStart: a,- onHoverChange: o,- onHoverEnd: s,- isDisabled: n- }), { isFocused: d, isFocusVisible: f, focusProps: p } = ji({ within: !0 }), m = rn({- ...e,- values: {- isHovered: u,- isFocusWithin: d,- isFocusVisible: f,- isDisabled: n,- isInvalid: r- },- defaultClassName: "react-aria-Group"+function Tp({ divided: e = !1, children: t }) {+ return e ? /* @__PURE__ */ (0, Y.jsx)("div", {+ className: "flex flex-col gap-4 border-t border-separator-border py-4 pr-3",+ children: t+ }) : /* @__PURE__ */ (0, Y.jsx)("div", {+ className: "flex flex-col gap-4 py-4 pr-3",+ children: t});- return /*#__PURE__*/ v.createElement(dn.div, {- ...I(c, p, l),- ...m,- ref: t,- role: e.role ?? "group",- slot: e.slot ?? void 0,- "data-focus-within": d || void 0,- "data-hovered": u || void 0,- "data-focus-visible": f || void 0,- "data-disabled": n || void 0,- "data-invalid": r || void 0,- "data-readonly": i || void 0- }, m.children);-}), wa = /*#__PURE__*/ (0, v.createContext)({}), Ta = (e) => {- let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, ...i } = e;- return i;-}, Ea = /*#__PURE__*/ $r(function(e, t) {- [e, t] = on(e, t, wa);- let { hoverProps: n, isHovered: r } = Li({- ...e,- isDisabled: e.disabled- }), { isFocused: i, isFocusVisible: a, focusProps: o } = ji({- isTextInput: !0,- autoFocus: e.autoFocus- }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = rn({- ...e,- values: {- isHovered: r,- isFocused: i,- isFocusVisible: a,- isDisabled: e.disabled || !1,- isInvalid: s- },- defaultClassName: "react-aria-Input"+}+function Ep({ status: e, children: t }) {+ return /* @__PURE__ */ (0, Y.jsxs)("div", {+ className: "flex flex-wrap items-center justify-end gap-3 border-t border-separator-border py-3 pr-3",+ children: [e ? /* @__PURE__ */ (0, Y.jsx)("div", {+ className: "mr-auto min-w-0 text-body-2-regular text-text-secondary",+ children: e+ }) : null, t]});- return /*#__PURE__*/ v.createElement(dn.input, {- ...I(Ta(e), o, n),- ...c,- ref: t,- "data-focused": i || void 0,- "data-disabled": e.disabled || void 0,- "data-hovered": r || void 0,- "data-focus-visible": a || void 0,- "data-invalid": s || void 0+}+function Dp({ role: e, children: t }) {+ return /* @__PURE__ */ (0, Y.jsx)("p", {+ role: e,+ className: "text-body-2-regular text-text-secondary",+ children: t});-});+}+function Op({ children: e }) {+ return /* @__PURE__ */ (0, Y.jsx)("p", {+ role: "alert",+ className: "text-body-2-regular text-text-error-primary",+ children: e+ });+}+function kp({ children: e }) {+ return /* @__PURE__ */ (0, Y.jsx)("p", {+ className: "text-body-medium text-text-primary",+ children: e+ });+}+function Ap({ tone: e, title: t, children: n }) {+ let r = /* @__PURE__ */ (0, Y.jsxs)(Y.Fragment, { children: [t ? /* @__PURE__ */ (0, Y.jsx)("p", {+ className: "text-body-medium",+ children: t+ }) : null, /* @__PURE__ */ (0, Y.jsx)("p", {+ className: "text-body-2-regular",+ children: n+ })] });+ switch (e) {+ case "info": return /* @__PURE__ */ (0, Y.jsx)("div", {+ role: "status",+ className: "flex flex-col gap-0.5 rounded-2lg bg-notification-information-background px-3 py-2 text-notification-information-foreground",+ children: r+ });+ case "success": return /* @__PURE__ */ (0, Y.jsx)("div", {+ role: "status",+ className: "flex flex-col gap-0.5 rounded-2lg bg-notification-success-background px-3 py-2 text-notification-success-foreground",+ children: r+ });+ case "warning": return /* @__PURE__ */ (0, Y.jsx)("div", {+ role: "note",+ className: "flex flex-col gap-0.5 rounded-2lg bg-status-yellow-background px-3 py-2 text-status-yellow-text",+ children: r+ });+ case "error": return /* @__PURE__ */ (0, Y.jsx)("div", {+ role: "alert",+ className: "flex flex-col gap-0.5 rounded-2lg bg-background-tertiary-error px-3 py-2 text-text-error-primary",+ children: r+ });+ default: return /* @__PURE__ */ (0, Y.jsx)("div", {+ role: "note",+ className: "flex flex-col gap-0.5 rounded-2lg bg-background-tertiary-default px-3 py-2 text-text-secondary",+ children: r+ });+ }+}+function jp({ href: e, children: t }) {+ return /* @__PURE__ */ (0, Y.jsx)(Sp, {+ href: e,+ target: "_blank",+ rel: "noreferrer",+ size: "small",+ trailingIcon: yp,+ children: t+ });+}+function Mp({ children: e }) {+ return /* @__PURE__ */ (0, Y.jsx)("dl", {+ className: "flex flex-col",+ children: e+ });+}+function Np({ term: e, children: t }) {+ return /* @__PURE__ */ (0, Y.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, Y.jsx)("dt", {+ className: "flex shrink-0 items-center gap-2 text-body-regular text-text-secondary",+ children: e+ }), /* @__PURE__ */ (0, Y.jsx)("dd", {+ className: "flex min-w-0 flex-wrap items-center justify-end gap-2 text-right text-body-regular break-all text-text-primary",+ children: t+ })]+ });+}+function Pp({ label: e, value: t, max: n = 100, stops: r = [] }) {+ let i = Math.min(Math.max(t, 0), n);+ return /* @__PURE__ */ (0, Y.jsxs)("svg", {+ role: "progressbar",+ "aria-label": e,+ "aria-valuemin": 0,+ "aria-valuemax": n,+ "aria-valuenow": t,+ viewBox: `0 0 ${n} 1`,+ preserveAspectRatio: "none",+ className: "h-1.5 w-full overflow-hidden rounded-full",+ children: [+ /* @__PURE__ */ (0, Y.jsx)("rect", {+ width: n,+ height: 1,+ className: "fill-background-tertiary-default"+ }),+ /* @__PURE__ */ (0, Y.jsx)("rect", {+ width: i,+ height: 1,+ className: "fill-border-focus-ring"+ }),+ r.map((e) => /* @__PURE__ */ (0, Y.jsx)("rect", {+ x: e,+ width: .4,+ height: 1,+ className: "fill-background-secondary-default"+ }, e))+ ]+ });+}+function Fp({ summary: e, children: t }) {+ return /* @__PURE__ */ (0, Y.jsxs)("details", {+ className: "group",+ children: [/* @__PURE__ */ (0, Y.jsxs)("summary", {+ className: "flex w-fit 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: [/* @__PURE__ */ (0, Y.jsx)(_p, {+ "aria-hidden": !0,+ className: "size-4 shrink-0 transition-transform group-open:rotate-90"+ }), e]+ }), /* @__PURE__ */ (0, Y.jsx)("div", {+ className: "flex flex-col gap-2 pt-3",+ children: t+ })]+ });+}+function Ip({ name: e }) {+ return /* @__PURE__ */ (0, Y.jsx)("svg", {+ "aria-hidden": !0,+ viewBox: "0 0 24 24",+ fill: "none",+ className: "size-4 shrink-0 stroke-current stroke-2",+ children: /* @__PURE__ */ (0, Y.jsx)("use", { href: `#i-${e}` })+ });+}+function Lp({ mark: e }) {+ return e.startsWith("data:image/png;base64,") ? /* @__PURE__ */ (0, Y.jsx)("img", {+ src: e,+ alt: "",+ width: 16,+ height: 16,+ className: "size-4 shrink-0"+ }) : /* @__PURE__ */ (0, Y.jsx)(Ip, { name: e });+}//#endregion-//#region node_modules/react-aria/dist/private/textfield/useTextField.mjs-function Da(e, t) {- let { inputElementType: n = "input", isDisabled: r = !1, isRequired: i = !1, isReadOnly: a = !1, type: o = "text", validationBehavior: s = "aria" } = e, [c, l] = Tr(e.value, e.defaultValue || "", e.onChange), { focusableProps: u } = Zr(e, t), d = Qi({- ...e,- value: c- }), { isInvalid: f, validationErrors: p, validationDetails: m } = d.displayValidation, { labelProps: h, fieldProps: g, descriptionProps: _, errorMessageProps: y } = B({- ...e,- isInvalid: f,- errorMessage: e.errorMessage || p- }), b = oi(e, { labelable: !0 }), x = {- type: o,- pattern: e.pattern- }, [S] = (0, v.useState)(c);- return aa(t, e.defaultValue ?? S, l), oa(e, d, t), {- labelProps: h,- inputProps: I(b, n === "input" ? x : void 0, {- disabled: r,- readOnly: a,- required: i && s === "native",- "aria-required": i && s === "aria" || void 0,- "aria-invalid": f || void 0,- "aria-errormessage": e["aria-errormessage"],- "aria-activedescendant": e["aria-activedescendant"],- "aria-autocomplete": e["aria-autocomplete"],- "aria-haspopup": e["aria-haspopup"],- "aria-controls": e["aria-controls"],- value: c,- onChange: (e) => l(R(e).value),- autoComplete: e.autoComplete,- autoCapitalize: e.autoCapitalize,- maxLength: e.maxLength,- minLength: e.minLength,- name: e.name,- form: e.form,- placeholder: e.placeholder,- inputMode: e.inputMode,- autoCorrect: e.autoCorrect,- spellCheck: e.spellCheck,- enterKeyHint: e.enterKeyHint,- onCopy: e.onCopy,- onCut: e.onCut,- onPaste: e.onPaste,- onCompositionEnd: e.onCompositionEnd,- onCompositionStart: e.onCompositionStart,- onCompositionUpdate: e.onCompositionUpdate,- onSelect: e.onSelect,- onBeforeInput: e.onBeforeInput,- onInput: e.onInput,- ...u,- ...g- }),- descriptionProps: _,- errorMessageProps: y,- isInvalid: f,- validationErrors: p,- validationDetails: m+//#region src/react/settings/use-action.ts+function Rp(e = "") {+ let t = (0, C.useRef)(null), [n, r] = (0, C.useState)(""), [i, a] = (0, C.useState)(e);+ (0, C.useEffect)(() => () => t.current?.abort(), []);+ async function o(e, n, i, o) {+ if (t.current) return;+ let s = new AbortController();+ t.current = s, r(e), a("");+ try {+ let e = await n(s.signal);+ s.signal.aborted || i(e);+ } catch (e) {+ if (s.signal.aborted) return;+ o ? o(e) : a(mp(e));+ } finally {+ t.current === s && (t.current = null), s.signal.aborted || r("");+ }+ }+ return {+ run: o,+ busy: n,+ error: i,+ setError: a};}+function zp(e) {+ return e ? {+ "aria-busy": !0,+ "aria-disabled": !0+ } : {};+}+//#endregion+//#region src/react/settings/general-settings.tsx+function Bp({ data: e, receipt: t }) {+ return e.startup ? /* @__PURE__ */ (0, Y.jsx)(Vp, {+ startup: e.startup,+ receipt: t+ }) : null;+}+function Vp({ startup: e, receipt: t }) {+ let [n, r] = (0, C.useState)(e.enabled), [i, a] = (0, C.useState)(e.silent), [o, s] = (0, C.useState)(e.desktop), c = Rp(), l = e.available && !e.desktop_message;+ return /* @__PURE__ */ (0, Y.jsxs)(Cp, {+ title: "开机自启",+ onSubmit: (r) => {+ r.preventDefault(), e.available && c.run("save", (e) => gp("/api/configuration/startup", {+ enabled: n,+ silent: i,+ desktop: o+ }, "POST", e), () => t("已保存开机自启"));+ },+ children: [+ /* @__PURE__ */ (0, Y.jsxs)(wp, { children: [+ /* @__PURE__ */ (0, Y.jsx)(yu, {+ label: "开机后启动 Peach",+ children: /* @__PURE__ */ (0, Y.jsx)(dp, {+ "aria-label": "开机后启动 Peach",+ isSelected: n,+ isDisabled: !e.available,+ onChange: r+ })+ }),+ /* @__PURE__ */ (0, Y.jsx)(yu, {+ label: "静默启动",+ description: "静默启动仅显示托盘,开机后启动 Peach 打开时生效。",+ children: /* @__PURE__ */ (0, Y.jsx)(dp, {+ "aria-label": "静默启动",+ isSelected: i,+ isDisabled: !e.available || !n,+ onChange: a+ })+ }),+ /* @__PURE__ */ (0, Y.jsx)(yu, {+ label: "在桌面创建快捷方式",+ description: e.desktop_message || "双击图标打开 Peach 网页;卸载时一并移除。",+ children: /* @__PURE__ */ (0, Y.jsx)(dp, {+ "aria-label": "在桌面创建快捷方式",+ isSelected: o,+ isDisabled: !l,+ onChange: s+ })+ })+ ] }),+ e.message || c.error ? /* @__PURE__ */ (0, Y.jsxs)(Tp, {+ divided: !0,+ children: [e.message ? /* @__PURE__ */ (0, Y.jsx)(Dp, { children: e.message }) : null, c.error ? /* @__PURE__ */ (0, Y.jsx)(Op, { children: c.error }) : null]+ }) : null,+ /* @__PURE__ */ (0, Y.jsx)(Ep, { children: /* @__PURE__ */ (0, Y.jsx)(xu, {+ type: "submit",+ disabled: !e.available,+ ...zp(c.busy === "save"),+ children: "保存配置"+ }) })+ ]+ });+}//#endregion-//#region node_modules/react-aria-components/dist/private/TextArea.mjs-var Oa = /*#__PURE__*/ (0, v.createContext)({}), ka = /*#__PURE__*/ (0, v.createContext)(null), Aa = /*#__PURE__*/ $r(function(e, t) {- [e, t] = on(e, t, ka);- let { validationBehavior: n } = an(ia) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, v.useRef)(null);- [e, i] = on(e, i, Er);- let [a, o] = sn(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, v.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = Da({- ...cn(e),- inputElementType: s,- label: o,- validationBehavior: r- }, i), m = (0, v.useCallback)((e) => {- i.current = e, e && c(e instanceof HTMLTextAreaElement ? "textarea" : "input");- }, [i]), h = rn({- ...e,- values: {- isDisabled: e.isDisabled || !1,- isInvalid: p.isInvalid,- isReadOnly: e.isReadOnly || !1,- isRequired: e.isRequired || !1- },- defaultClassName: "react-aria-TextField"- }), g = oi(e, { global: !0 });- return delete g.id, /*#__PURE__*/ v.createElement(dn.div, {- ...g,- ...h,- ref: t,- slot: e.slot || void 0,- "data-disabled": e.isDisabled || void 0,- "data-invalid": p.isInvalid || void 0,- "data-readonly": e.isReadOnly || void 0,- "data-required": e.isRequired || void 0- }, /*#__PURE__*/ v.createElement(nn, { values: [- [Ri, {- ...l,- ref: a- }],- [wa, {- ...u,- ref: m- }],- [Oa, {- ...u,- ref: m- }],- [Sa, {- role: "presentation",- isInvalid: p.isInvalid,- isDisabled: e.isDisabled || !1- }],- [Vi, { slots: {- description: d,- errorMessage: f- } }],- [Ki, p]- ] }, h.children));-}), ja = {+//#region src/react/boardui/components/base/checkbox/checkbox-glyph.tsx+var Hp = {md: {box: "size-4",glyph: "size-4",@@ -13165,21 +19499,21 @@ var Oa = /*#__PURE__*/ (0, v.createContext)({}), ka = /*#__PURE__*/ (0, v.creategap: "gap-1.5"}};-function Ma({ state: e, size: t = "md" }) {- let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = ja[t], c = n || r, l = o && !a;- return /* @__PURE__ */ (0, P.jsx)("span", {+function Up({ state: e, size: t = "md" }) {+ let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = Hp[t], c = n || r, l = o && !a;+ return /* @__PURE__ */ (0, Y.jsx)("span", {"aria-hidden": !0,- className: St("flex shrink-0 items-center justify-center rounded-sm", "transition-[background-color,border-color,box-shadow] duration-150 ease", s.box, c ? St("bg-linear-to-b shadow-checkbox-selected", l ? "from-accent-400 to-accent-500" : "from-accent-500 to-accent-600") : St("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"),- children: /* @__PURE__ */ (0, P.jsx)("svg", {+ className: mu("flex shrink-0 items-center justify-center rounded-sm", "transition-[background-color,border-color,box-shadow] duration-150 ease", s.box, c ? mu("bg-linear-to-b shadow-checkbox-selected", l ? "from-accent-400 to-accent-500" : "from-accent-500 to-accent-600") : mu("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"),+ children: /* @__PURE__ */ (0, Y.jsx)("svg", {viewBox: "0 0 16 16",fill: "none",className: s.glyph,- children: r ? /* @__PURE__ */ (0, P.jsx)("path", {+ children: r ? /* @__PURE__ */ (0, Y.jsx)("path", {d: "M4.5 8H8H11.5",stroke: "white",strokeWidth: "2",strokeLinecap: "round"- }) : n ? /* @__PURE__ */ (0, P.jsx)("path", {+ }) : n ? /* @__PURE__ */ (0, Y.jsx)("path", {d: "M4 7.7002L6.64645 10.3466C6.84171 10.5419 7.15829 10.5419 7.35355 10.3466L12 5.7002",stroke: "white",strokeWidth: "2",@@ -13193,47 +19527,452 @@ function Ma({ state: e, size: t = "md" }) {}//#endregion//#region src/react/boardui/components/base/checkbox/checkbox.tsx-function Na({ className: e, children: t, size: n = "md", ref: r, ...i }) {- let a = ja[n];- return /* @__PURE__ */ (0, P.jsx)(ba, {+function Wp({ className: e, children: t, size: n = "md", ref: r, ...i }) {+ let a = Hp[n];+ return /* @__PURE__ */ (0, Y.jsx)($u, {ref: r,...i,- className: (t) => St("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, P.jsxs)(P.Fragment, { children: [/* @__PURE__ */ (0, P.jsx)(Ma, {+ className: (t) => mu("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, Y.jsxs)(Y.Fragment, { children: [/* @__PURE__ */ (0, Y.jsx)(Up, {state: e,size: n- }), t != null && /* @__PURE__ */ (0, P.jsx)("span", {- className: St(a.label, "text-text-primary"),+ }), t != null && /* @__PURE__ */ (0, Y.jsx)("span", {+ className: mu(a.label, "text-text-primary"),children: t})] })});}//#endregion-//#region node_modules/@remixicon/react/index.mjs-var Pa = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => v.createElement("svg", {- viewBox: "0 0 24 24",- xmlns: "http://www.w3.org/2000/svg",- width: t,- height: t,- fill: e,- ...r,- className: "remixicon " + (n || "")-}, v.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" }));+//#region src/react/boardui/components/base/dropdown/menu-styles.ts+var Gp = [+ "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"+].join(" "), Kp = "w-[266px]", qp = "flex w-full flex-col gap-1 outline-none", Jp = ["flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left", "text-text-primary outline-none transition-colors"].join(" ");+//#endregion+//#region src/react/boardui/components/foundations/icons/chevrons.tsx+function Yp(e) {+ return /* @__PURE__ */ (0, Y.jsx)("svg", {+ viewBox: "0 0 16 16",+ fill: "none",+ "aria-hidden": !0,+ ...e,+ children: /* @__PURE__ */ (0, Y.jsx)("path", {+ d: "M4 7L7.29289 10.2929C7.68342 10.6834 8.31658 10.6834 8.70711 10.2929L12 7",+ stroke: "currentColor",+ strokeWidth: "2",+ strokeLinecap: "round"+ })+ });+}+//#endregion+//#region src/react/boardui/utils/use-dismiss-on-outside-press.ts+function Xp(e, t, n) {+ (0, C.useEffect)(() => {+ if (!e) return;+ let r = (e) => {+ let r = e.target;+ n.some((e) => e.current?.contains(r)) || t();+ };+ return document.addEventListener("pointerdown", r, !0), () => document.removeEventListener("pointerdown", r, !0);+ }, [+ e,+ t,+ n+ ]);+}+function Zp(e, t) {+ let n = (0, C.useRef)(!1);+ return (0, C.useEffect)(() => {+ if (!e) return;+ let r = (e) => {+ t.current?.contains(e.target) && (n.current = !0, setTimeout(() => {+ n.current = !1;+ }, 400));+ };+ return document.addEventListener("pointerdown", r, !0), () => document.removeEventListener("pointerdown", r, !0);+ }, [e, t]), (e) => e && n.current ? (n.current = !1, !1) : !0;+}+//#endregion+//#region src/react/boardui/components/base/select/select.tsx+var Qp = (0, C.createContext)("md");+function $p({ className: e, triggerClassName: t, popoverClassName: n, size: r = "md", children: i, items: a, renderValue: o, ref: s, ...c }) {+ let l = (0, C.useRef)(null), u = (0, C.useRef)(null), [d, f] = (0, C.useState)(!1);+ Xp(d, () => f(!1), [l, u]);+ let p = Zp(d, l);+ return /* @__PURE__ */ (0, Y.jsx)(Xf, {+ ref: s,+ ...c,+ isOpen: d,+ onOpenChange: (e) => p(e) && f(e),+ className: mu("group flex flex-col", e),+ children: ({ isOpen: e }) => /* @__PURE__ */ (0, Y.jsxs)(Y.Fragment, { children: [/* @__PURE__ */ (0, Y.jsxs)(Uu, {+ ref: l,+ className: mu("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, Y.jsx)(ep, {+ className: mu("flex min-w-0 items-center truncate", r === "sm" ? "gap-1" : "gap-[5px]"),+ children: o+ }), /* @__PURE__ */ (0, Y.jsx)(Yp, { className: mu("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]+ }), /* @__PURE__ */ (0, Y.jsx)(jf, {+ ref: u,+ isNonModal: !0,+ offset: 4,+ className: mu(Kp, Gp, "p-2", n),+ children: /* @__PURE__ */ (0, Y.jsx)(gf, {+ items: a,+ className: mu(qp, "max-h-[240px] overflow-auto"),+ children: /* @__PURE__ */ (0, Y.jsx)(Qp.Provider, {+ value: r,+ children: i+ })+ })+ })] })+ });+}+function em({ className: e, children: t, ...n }) {+ let r = (0, C.useContext)(Qp);+ return /* @__PURE__ */ (0, Y.jsx)(bf, {+ ...n,+ className: (t) => mu(Jp, r === "sm" ? "px-2 py-1.5 text-body-2-medium" : "text-body-medium", (t.isFocused || t.isSelected) && "bg-dropdown-item-hover-background", t.isDisabled && "cursor-not-allowed text-text-disabled", typeof e == "function" ? e(t) : e),+ children: t+ });+}+//#endregion+//#region src/react/settings/release-updates.tsx+var tm = /* @__PURE__ */ new Set([+ "downloading",+ "verifying",+ "extracting",+ "preparing",+ "restarting",+ "installing"+]), nm = [+ 65,+ 67,+ 90+], rm = 120;+function im({ initial: e, initialJob: t }) {+ let [r, i] = (0, C.useState)(e), [a, o] = (0, C.useState)(t || {+ state: "idle",+ progress: 0+ }), [s, c] = (0, C.useState)(""), l = Rp(), u = (0, C.useRef)(!1), d = (0, C.useRef)(!0), f = tm.has(a.state);+ (0, C.useEffect)(() => (d.current = !0, () => {+ d.current = !1;+ }), []);+ let p = async () => {+ let e = await gp("/api/configuration/update-restart", {});+ d.current && o(e);+ }, m = () => void n({+ title: "更新已准备好",+ body: `Peach ${a.version || ""} 将在重启后安装。`,+ confirmLabel: "立即重启",+ cancelLabel: "稍后",+ onConfirm: p+ });+ (0, C.useEffect)(() => {+ a.state !== "ready" || u.current || (u.current = !0, m());+ }, [a.state]), (0, C.useEffect)(() => {+ let e = new AbortController(), t = tm.has(a.state) ? 1e3 : 3e4, n, r = 0, s = async () => {+ try {+ let t = await hp("/api/configuration/update-status", e.signal);+ if (e.signal.aborted) return;+ o(t), r = 0, t.state === "complete" && i((e) => ({+ ...e,+ current_version: t.version || e.current_version,+ state: "current",+ message: "已是最新测试版。"+ }));+ let n = await hp("/api/configuration/automatic-updates", e.signal);+ !e.signal.aborted && n.result && i(n.result);+ } catch {+ r += 1, r >= rm && !e.signal.aborted && c("尚未连接到 Peach,请检查托盘后刷新页面。");+ }+ !e.signal.aborted && r < rm && (n = setTimeout(s, t));+ };+ return n = setTimeout(s, t), () => {+ e.abort(), clearTimeout(n);+ };+ }, [a.state]);+ let h = () => {+ f || (u.current = !1, c(""), l.run("download", (e) => gp("/api/configuration/update", {}, "POST", e), o));+ }, g = () => void l.run("check", (e) => hp("/api/configuration/updates", e), i, (t) => {+ i({+ ...e,+ state: "error"+ }), l.setError(mp(t));+ }), _ = l.error || s, v = a.state === "downloading" && a.total ? `${((a.downloaded || 0) / 1048576).toFixed(1)} / ${(a.total / 1048576).toFixed(1)} MB` : `${a.progress}%`;+ return /* @__PURE__ */ (0, Y.jsxs)(Cp, {+ title: "检查更新",+ children: [+ /* @__PURE__ */ (0, Y.jsxs)(Mp, { children: [+ /* @__PURE__ */ (0, Y.jsx)(Np, {+ term: "当前版本",+ children: r.current_version+ }),+ /* @__PURE__ */ (0, Y.jsx)(Np, {+ term: "安装方式",+ children: r.installation+ }),+ /* @__PURE__ */ (0, Y.jsx)(Np, {+ term: "更新通道",+ children: r.channel+ }),+ /* @__PURE__ */ (0, Y.jsx)(Np, {+ term: "最新版本",+ children: r.latest_version || (r.state === "unchecked" ? "尚未检查" : "未取得")+ })+ ] }),+ /* @__PURE__ */ (0, Y.jsxs)(Tp, {+ divided: !0,+ children: [+ r.checked_at ? /* @__PURE__ */ (0, Y.jsxs)(Dp, { children: ["检查于 ", (/* @__PURE__ */ new Date(r.checked_at * 1e3)).toLocaleString()] }) : null,+ r.state === "available" && !_ ? /* @__PURE__ */ (0, Y.jsx)(Ap, {+ tone: "info",+ title: "有可用更新",+ children: r.message+ }) : _ || r.state === "error" ? /* @__PURE__ */ (0, Y.jsx)(Op, { children: _ || r.message }) : /* @__PURE__ */ (0, Y.jsx)(Dp, {+ role: "status",+ children: r.message+ }),+ a.state === "error" ? /* @__PURE__ */ (0, Y.jsx)(Op, { children: a.message }) : null,+ a.state !== "idle" && a.state !== "error" ? /* @__PURE__ */ (0, Y.jsxs)("div", {+ "aria-live": "polite",+ className: "flex flex-col gap-2",+ children: [+ /* @__PURE__ */ (0, Y.jsx)(Pp, {+ label: "更新准备进度:下载、校验、解压、准备安装",+ value: a.progress,+ stops: nm+ }),+ /* @__PURE__ */ (0, Y.jsxs)(Dp, { children: ["下载 → 校验 → 解压 → 准备安装 · ", a.message] }),+ /* @__PURE__ */ (0, Y.jsx)(Dp, { children: v })+ ]+ }) : null+ ]+ }),+ /* @__PURE__ */ (0, Y.jsxs)(Ep, {+ status: /* @__PURE__ */ (0, Y.jsx)(jp, {+ href: r.release_url,+ children: "查看发布页"+ }),+ children: [+ a.state === "ready" ? /* @__PURE__ */ (0, Y.jsx)(xu, {+ onClick: m,+ children: "重启安装"+ }) : null,+ r.state === "available" && r.installation === "独立测试包" && a.state !== "ready" ? /* @__PURE__ */ (0, Y.jsx)(xu, {+ onClick: h,+ ...zp(f || l.busy === "download"),+ children: "下载并安装"+ }) : null,+ /* @__PURE__ */ (0, Y.jsx)(xu, {+ variant: "secondary",+ disabled: f,+ onClick: g,+ ...zp(l.busy === "check"),+ children: "检查更新"+ })+ ]+ })+ ]+ });+}+//#endregion+//#region src/react/settings/maintenance-settings.tsx+var am = [+ ["6", "每 6 小时"],+ ["24", "每天"],+ ["168", "每周"]+];+function om({ data: e, receipt: t }) {+ return /* @__PURE__ */ (0, Y.jsxs)("div", {+ className: "flex flex-col gap-6",+ children: [+ e.automatic_updates ? /* @__PURE__ */ (0, Y.jsx)(sm, {+ initial: e.automatic_updates,+ receipt: t+ }) : null,+ e.updates ? /* @__PURE__ */ (0, Y.jsx)(im, {+ initial: e.updates,+ initialJob: e.update_job+ }) : null,+ /* @__PURE__ */ (0, Y.jsx)(cm, { facts: e.facts }),+ e.uninstall ? /* @__PURE__ */ (0, Y.jsx)(lm, { uninstall: e.uninstall }) : null+ ]+ });+}+function sm({ initial: e, receipt: t }) {+ let [n, r] = (0, C.useState)(e.mode), [i, a] = (0, C.useState)(e.interval_hours), o = Rp(e.error), s = (r) => {+ r.preventDefault(), e.available && o.run("save", (e) => gp("/api/configuration/automatic-updates", {+ mode: n,+ interval_hours: i+ }, "POST", e), () => t("已保存自动更新设置"));+ }, c = e.available ? e.download_available ? "开启后一分钟内开始检查。下载完成后,在此确认重启安装。" : "开启后一分钟内开始检查。源码运行请前往发布页获取新版本。" : "自动更新需要由托盘管理的服务。";+ return /* @__PURE__ */ (0, Y.jsxs)(Cp, {+ title: "自动更新",+ onSubmit: s,+ children: [+ /* @__PURE__ */ (0, Y.jsxs)(wp, { children: [+ /* @__PURE__ */ (0, Y.jsx)(yu, {+ label: "自动检查新版本",+ children: /* @__PURE__ */ (0, Y.jsx)(dp, {+ "aria-label": "自动检查新版本",+ isSelected: n !== "off",+ isDisabled: !e.available,+ onChange: (e) => r(e ? "check" : "off")+ })+ }),+ /* @__PURE__ */ (0, Y.jsx)(yu, {+ label: "自动下载更新",+ children: /* @__PURE__ */ (0, Y.jsx)(dp, {+ "aria-label": "自动下载更新",+ isSelected: n === "download",+ isDisabled: !e.available || !e.download_available || n === "off",+ onChange: (e) => r(e ? "download" : "check")+ })+ }),+ /* @__PURE__ */ (0, Y.jsx)(yu, {+ label: "检查频率",+ children: /* @__PURE__ */ (0, Y.jsx)($p, {+ "aria-label": "检查频率",+ selectedKey: String(i),+ isDisabled: !e.available,+ onSelectionChange: (e) => {+ e !== null && a(Number(e));+ },+ children: am.map(([e, t]) => /* @__PURE__ */ (0, Y.jsx)(em, {+ id: e,+ children: t+ }, e))+ })+ })+ ] }),+ /* @__PURE__ */ (0, Y.jsxs)(Tp, {+ divided: !0,+ children: [/* @__PURE__ */ (0, Y.jsx)(Dp, { children: c }), o.error ? /* @__PURE__ */ (0, Y.jsx)(Op, { children: o.error }) : null]+ }),+ /* @__PURE__ */ (0, Y.jsx)(Ep, { children: /* @__PURE__ */ (0, Y.jsx)(xu, {+ variant: "secondary",+ type: "submit",+ disabled: !e.available,+ ...zp(o.busy === "save"),+ children: "保存自动更新"+ }) })+ ]+ });+}+function cm({ facts: e }) {+ return /* @__PURE__ */ (0, Y.jsx)(Cp, {+ title: "运行信息",+ children: /* @__PURE__ */ (0, Y.jsx)(Mp, { children: e.map((e) => /* @__PURE__ */ (0, Y.jsxs)(Np, {+ term: e.term,+ children: [e.value, e.download_url ? /* @__PURE__ */ (0, Y.jsx)(jp, {+ href: e.download_url,+ children: e.download_label+ }) : null]+ }, e.term)) })+ });+}+function lm({ uninstall: e }) {+ let [t, r] = (0, C.useState)(!1), [i, a] = (0, C.useState)(""), o = () => void n({+ title: "卸载 Peach",+ danger: !0,+ body: t ? "将退出 Peach,移除程序、开机自启、桌面图标、设置、本地数据库、观看记录、凭据和缓存。原始媒体文件保留。" : "将退出 Peach 并移除程序、开机自启和桌面图标。设置、本地数据库、观看记录与缓存保留。",+ confirmLabel: "卸载 Peach",+ onConfirm: async () => {+ let e = await gp("/api/configuration/uninstall", {+ delete_data: t,+ confirmation: "卸载 Peach"+ });+ a(e.message);+ }+ }), s = i || e.message, c = [.../* @__PURE__ */ new Set([e.data_root, ...e.directories])];+ return /* @__PURE__ */ (0, Y.jsxs)(Cp, {+ id: "uninstallPeach",+ title: "卸载 Peach",+ children: [/* @__PURE__ */ (0, Y.jsxs)(Tp, { children: [+ e.available ? /* @__PURE__ */ (0, Y.jsx)(Dp, { children: "卸载会退出 Peach、移除程序、开机自启和桌面图标。原始媒体文件保留。" }) : null,+ /* @__PURE__ */ (0, Y.jsx)(Wp, {+ isSelected: t,+ isDisabled: !e.full_available || !!i,+ onChange: r,+ children: "完全卸载:同时删除设置、本地数据库、观看记录、凭据和缓存"+ }),+ /* @__PURE__ */ (0, Y.jsx)(Fp, {+ summary: "数据目录",+ children: c.map((e) => /* @__PURE__ */ (0, Y.jsx)("p", {+ className: "text-body-2-regular break-all text-text-secondary",+ children: e+ }, e))+ })+ ] }), /* @__PURE__ */ (0, Y.jsx)(Ep, {+ status: s ? /* @__PURE__ */ (0, Y.jsx)("p", {+ role: i ? "status" : void 0,+ children: s+ }) : null,+ children: /* @__PURE__ */ (0, Y.jsx)(xu, {+ variant: "danger",+ disabled: !e.available || !!i,+ onClick: o,+ children: "卸载 Peach"+ })+ })]+ });+}+//#endregion+//#region src/react/boardui/components/base/buttons/icon-button.tsx+var um = hu({+ 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"+ ].join(" "),+ size: {+ medium: "size-9",+ small: "size-8"+ },+ icon: {+ medium: "size-5 shrink-0",+ small: "size-4 shrink-0"+ }+});+function dm({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {+ return /* @__PURE__ */ (0, Y.jsx)("button", {+ ref: i,+ type: r,+ className: mu(um.base, um.size[t], n),+ ...a,+ children: /* @__PURE__ */ (0, Y.jsx)(e, {+ className: um.icon[t],+ "aria-hidden": !0+ })+ });+}//#endregion//#region src/react/boardui/components/base/input/label.tsx-function Fa({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {- return /* @__PURE__ */ (0, P.jsxs)(zi, {+function fm({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {+ return /* @__PURE__ */ (0, Y.jsxs)(Bu, {"data-label": "true",...a,- className: St("flex cursor-default items-center gap-0.5", "text-body-medium text-text-primary", r),+ className: mu("flex cursor-default items-center gap-0.5", "text-body-medium text-text-primary", r),children: [i,- e && /* @__PURE__ */ (0, P.jsx)("span", {+ e && /* @__PURE__ */ (0, Y.jsx)("span", {"aria-hidden": "true",className: "text-body-medium text-text-error-primary",children: "*"}),- n && /* @__PURE__ */ (0, P.jsx)(Pa, {+ n && /* @__PURE__ */ (0, Y.jsx)(bp, {className: "size-4 shrink-0 text-foreground-icon-quaternary","aria-hidden": !0})@@ -13242,33 +19981,33 @@ function Fa({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, childr}//#endregion//#region src/react/boardui/components/base/input/hint-text.tsx-function Ia({ isInvalid: e = !1, className: t, ...n }) {- return /* @__PURE__ */ (0, P.jsx)(Hi, {+function pm({ isInvalid: e = !1, className: t, ...n }) {+ return /* @__PURE__ */ (0, Y.jsx)(Yu, {slot: e ? "errorMessage" : "description",...n,- className: St("pt-px text-caption-1-medium text-text-secondary", e && "text-text-error-primary", t)+ className: mu("pt-px text-caption-1-medium text-text-secondary", e && "text-text-error-primary", t)});}//#endregion//#region src/react/boardui/components/base/input/input.tsx-var La = (0, v.createContext)({});-function Ra({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {- return /* @__PURE__ */ (0, P.jsx)(La.Provider, {+var mm = (0, C.createContext)({});+function hm({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {+ return /* @__PURE__ */ (0, Y.jsx)(mm.Provider, {value: {size: e,fieldClassName: t,inputClassName: n},- children: /* @__PURE__ */ (0, P.jsx)(Aa, {+ children: /* @__PURE__ */ (0, Y.jsx)(cp, {...a,"data-input-size": e,- className: St("group flex h-max w-full flex-col items-start gap-1", r),+ className: mu("group flex h-max w-full flex-col items-start gap-1", r),children: i})});}-Ra.displayName = "TextField";-var za = Ct({+hm.displayName = "TextField";+var gm = hu({field: ["relative flex w-full items-center","rounded-2lg",@@ -13297,44 +20036,44 @@ var za = Ct({].join(" "),icon: "size-5 shrink-0"});-function Ba({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {- let l = (0, v.useContext)(La), u = e ?? l.size ?? "medium", d = r != null;- return /* @__PURE__ */ (0, P.jsx)(Ca, {+function _m({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {+ let l = (0, C.useContext)(mm), u = e ?? l.size ?? "medium", d = r != null;+ return /* @__PURE__ */ (0, Y.jsx)(nd, {ref: s,- className: ({ isFocusWithin: e, isHovered: t, isDisabled: n, isInvalid: r }) => St(za.field, d ? za.fieldWithAddonSize[u] : za.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, P.jsxs)("div", {- className: za.content,- children: [/* @__PURE__ */ (0, P.jsxs)("div", {- className: za.leftSection,- children: [d ? r : t ? /* @__PURE__ */ (0, P.jsx)(t, {- className: za.icon,+ className: ({ isFocusWithin: e, isHovered: t, isDisabled: n, isInvalid: r }) => mu(gm.field, d ? gm.fieldWithAddonSize[u] : gm.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, Y.jsxs)("div", {+ className: gm.content,+ children: [/* @__PURE__ */ (0, Y.jsxs)("div", {+ className: gm.leftSection,+ children: [d ? r : t ? /* @__PURE__ */ (0, Y.jsx)(t, {+ className: gm.icon,"aria-hidden": !0- }) : null, /* @__PURE__ */ (0, P.jsx)(Ea, {+ }) : null, /* @__PURE__ */ (0, Y.jsx)(ad, {ref: o,...c,- className: St(za.input, l.inputClassName, a)+ className: mu(gm.input, l.inputClassName, a)})]- }), n ? /* @__PURE__ */ (0, P.jsx)(n, {- className: za.icon,+ }), n ? /* @__PURE__ */ (0, Y.jsx)(n, {+ className: gm.icon,"aria-hidden": !0}) : null]})});}-Ba.displayName = "InputBase";-function Va({ 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, P.jsx)(Ra, {+_m.displayName = "InputBase";+function vm({ 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, Y.jsx)(hm, {...d,className: u,"aria-label": d["aria-label"] ?? (!e && typeof r == "string" ? r : void 0),- children: ({ isRequired: u, isInvalid: d }) => /* @__PURE__ */ (0, P.jsxs)(P.Fragment, { children: [- e && /* @__PURE__ */ (0, P.jsx)(Fa, {+ children: ({ isRequired: u, isInvalid: d }) => /* @__PURE__ */ (0, Y.jsxs)(Y.Fragment, { children: [+ e && /* @__PURE__ */ (0, Y.jsx)(fm, {isRequired: u,isInvalid: d,tooltip: n,children: e}),- /* @__PURE__ */ (0, P.jsx)(Ba, {+ /* @__PURE__ */ (0, Y.jsx)(_m, {ref: c,groupRef: l,placeholder: r,@@ -13343,127 +20082,550 @@ function Va({ label: e, hint: t, tooltip: n, placeholder: r, leadingIcon: i, traleadingAddon: o,fieldClassName: s}),- t && /* @__PURE__ */ (0, P.jsx)(Ia, {+ t && /* @__PURE__ */ (0, Y.jsx)(pm, {isInvalid: d,children: t})] })});}-Va.displayName = "Input";+vm.displayName = "Input";//#endregion-//#region src/api.ts-var Ha = class extends Error {- status;- body;- constructor(t, n, r = null) {- super(e(t, n)), this.name = "ApiError", this.status = n, this.body = r;- }-}, Ua = (e) => {- if (!e || typeof e != "object") return "";- let t = e;- for (let e of [- "message",- "detail",- "error"- ]) {- let n = t[e];- if (typeof n == "string" && n) return n;- }- return "";-}, Wa = (t) => e(t);-async function Ga(e, t, n = "POST", r) {- let i = await fetch(e, {- method: n,- ...r ? { signal: r } : {},- headers: {- Accept: "application/json",- "Content-Type": "application/json"+//#region src/configuration-endpoints.ts+var ym = "/api/configuration", bm = "/api/pick-folder", xm = [+ {+ name: "机械硬盘,或内存 8 GB 以内",+ cache: "10–20 GiB",+ read: "256 / 128 KB",+ task: "1 个"+ },+ {+ name: "SATA SSD,内存 8–16 GB",+ cache: "20–50 GiB",+ read: "256 / 128 KB",+ task: "1–2 个"+ },+ {+ name: "NVMe SSD,内存 16 GB 以上",+ cache: "50–100 GiB",+ read: "256 / 128 KB",+ task: "2 个起步"+ }+], Sm = [+ ["cache", "缓存上限"],+ ["read", "读取长度(默认 / 最小)"],+ ["task", "同时处理视频"]+];+function Cm() {+ return /* @__PURE__ */ (0, Y.jsxs)("div", {+ className: "@container flex flex-col gap-3",+ children: [/* @__PURE__ */ (0, Y.jsxs)(Dp, { children: ["先在 CloudDrive 登录网盘并挂载,开启「启动时自动挂载」。", /* @__PURE__ */ (0, Y.jsx)(jp, {+ href: "https://www.clouddrive2.com/help.html",+ children: "挂载帮助"+ })] }), /* @__PURE__ */ (0, Y.jsxs)(Fp, {+ summary: "CloudDrive 缓存建议",+ children: [+ /* @__PURE__ */ (0, Y.jsx)(Dp, { children: "看缓存放在哪块硬盘上,照那一档填。这是起步值,填得越大不一定越快。" }),+ /* @__PURE__ */ (0, Y.jsx)("ul", {+ "aria-label": "按缓存所在硬盘分档",+ className: "flex flex-col gap-2",+ children: xm.map((e) => /* @__PURE__ */ (0, Y.jsxs)("li", {+ className: "flex flex-col gap-2 rounded-2lg border border-separator-border p-3",+ children: [/* @__PURE__ */ (0, Y.jsx)("p", {+ className: "text-body-medium text-text-primary",+ children: e.name+ }), /* @__PURE__ */ (0, Y.jsx)("dl", {+ className: "grid grid-cols-1 gap-2 @md:grid-cols-3",+ children: Sm.map(([t, n]) => /* @__PURE__ */ (0, Y.jsxs)("div", {+ className: "flex flex-col",+ children: [/* @__PURE__ */ (0, Y.jsx)("dt", {+ className: "text-caption-1-regular text-text-secondary",+ children: n+ }), /* @__PURE__ */ (0, Y.jsx)("dd", {+ className: "text-body-regular text-text-primary",+ children: e[t]+ })]+ }, t))+ })]+ }, e.name))+ }),+ /* @__PURE__ */ (0, Y.jsxs)("ul", {+ className: "flex list-disc flex-col gap-1 pl-5 text-body-2-regular text-text-secondary",+ children: [+ /* @__PURE__ */ (0, Y.jsx)("li", { children: "缓存上限和清理方式填在 CloudDrive「设置」里,清理方式选 LRU。上限不要填 0,系统盘至少留 40 GiB;填完重开设置页确认存住了。" }),+ /* @__PURE__ */ (0, Y.jsx)("li", { children: "读取长度和下载线程填在每个网盘各自的下载设置里,线程都从 2 开始。" }),+ /* @__PURE__ */ (0, Y.jsx)("li", { children: "Buffer Cache 占内存,磁盘缓存和文件夹缓存占硬盘,改一个管不住另外两个。" })+ ]+ }),+ /* @__PURE__ */ (0, Y.jsxs)(Dp, { children: [+ "三处缓存分别管什么、这几个值怎么往上调、码率和速度怎么换算、线程上限与直链代理怎么取舍,以及这些起步值的来源,都在",+ /* @__PURE__ */ (0, Y.jsx)(jp, {+ href: "https://github.com/longmeidao/peach/blob/master/docs/CLOUDDRIVE.md",+ children: "CloudDrive 配置与调优"+ }),+ "。"+ ] })+ ]+ })]+ });+}+//#endregion+//#region src/react/settings/library-icon-picker.tsx+var wm = [+ ["", "自动识别"],+ ["hard-drive", "磁盘"],+ ["database", "资料库"],+ ["heart", "心动"],+ ["heart-hand", "亲密"],+ ["flame", "热情"],+ ["cherry", "樱桃"],+ ["lollipop", "甜心"],+ ["candy", "糖果"],+ ["banana", "香蕉"],+ ["droplets", "湿润"],+ ["venus", "女性"],+ ["mars", "男性"],+ ["venus-and-mars", "情侣"],+ ["gem", "精选"],+ ["crown", "女王"],+ ["ribbon", "丝带"],+ ["shirt", "制服"],+ ["graduation-cap", "学生"],+ ["stethoscope", "护士"],+ ["glasses", "眼镜"],+ ["footprints", "足迹"],+ ["hand", "手部"],+ ["flower", "花朵"],+ ["venetian-mask", "角色扮演"],+ ["rabbit", "兔女郎"],+ ["paw-print", "兽耳"],+ ["dumbbell", "健身"],+ ["bed-double", "卧室"],+ ["bath", "浴室"],+ ["key-round", "私密"],+ ["wine", "微醺"],+ ["cigarette", "烟"],+ ["moon", "夜色"],+ ["sparkles", "幻想"],+ ["camera", "写真"],+ ["video", "影片"],+ ["film", "电影"],+ ["image", "图集"],+ ["gamepad-2", "游戏"],+ ["star", "收藏"],+ ["tags", "主题"]+];+function Tm(e) {+ let n = e === "local" ? "" : t[e];+ return n ? [n, "自动识别"] : ["hard-drive", "默认"];+}+var Em = "auto";+function Dm({ value: e, label: t, kind: n = "local", onChange: r }) {+ let i = (0, C.useRef)(null), [a, o] = (0, C.useState)(!1), [s, c] = (0, C.useState)(e), [l, u] = Tm(n);+ return /* @__PURE__ */ (0, Y.jsxs)(Y.Fragment, { children: [/* @__PURE__ */ (0, Y.jsx)(xu, {+ ref: i,+ variant: "secondary",+ className: "self-start",+ "aria-label": t,+ "aria-haspopup": "dialog",+ "aria-expanded": a,+ onClick: () => {+ c(e), o(!0);},- credentials: "same-origin",- body: JSON.stringify(t)- }), a = null;- try {- a = await i.json();- } catch {}- if (!i.ok) throw new Ha(Ua(a) || `请求失败(${i.status})`, i.status, a);- return a;+ children: /* @__PURE__ */ (0, Y.jsxs)("span", {+ "data-icon-choice": !0,+ className: "flex items-center gap-2",+ children: [/* @__PURE__ */ (0, Y.jsx)(Lp, { mark: e || l }), ((e) => e && wm.find(([t]) => t === e)?.[1] || u)(e)]+ })+ }), /* @__PURE__ */ (0, Y.jsx)(jf, {+ triggerRef: i,+ isOpen: a,+ onOpenChange: o,+ placement: "bottom start",+ offset: 4,+ className: Gp,+ children: /* @__PURE__ */ (0, Y.jsxs)(Ff, {+ "aria-label": `${t}候选`,+ className: "flex w-72 flex-col gap-3 outline-none",+ children: [+ /* @__PURE__ */ (0, Y.jsx)(qu, {+ slot: "title",+ className: "px-1 text-body-medium text-text-primary",+ children: "选择媒体库图标"+ }),+ /* @__PURE__ */ (0, Y.jsx)(Vf, {+ "aria-label": "候选图标",+ value: s || Em,+ onChange: (e) => c(e === Em ? "" : e),+ className: "grid grid-cols-7 gap-1",+ children: wm.map(([e, t]) => /* @__PURE__ */ (0, Y.jsx)(Hf, {+ value: e || Em,+ "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, Y.jsx)(Lp, { mark: e || l })+ }, e || Em))+ }),+ /* @__PURE__ */ (0, Y.jsxs)("div", {+ className: "flex justify-end gap-2 border-t border-separator-border pt-2.5",+ children: [/* @__PURE__ */ (0, Y.jsx)(xu, {+ variant: "secondary",+ onClick: () => o(!1),+ children: "取消"+ }), /* @__PURE__ */ (0, Y.jsx)(xu, {+ disabled: s === e,+ onClick: () => {+ r(s), o(!1);+ },+ children: "应用"+ })]+ })+ ]+ })+ })] });+}+//#endregion+//#region src/react/settings/media-settings.tsx+var Om = 8e3;+function km({ className: e }) {+ return /* @__PURE__ */ (0, Y.jsx)("svg", {+ "aria-hidden": !0,+ viewBox: "0 0 24 24",+ fill: "none",+ stroke: "currentColor",+ strokeWidth: 2,+ strokeLinecap: "round",+ strokeLinejoin: "round",+ className: e,+ children: /* @__PURE__ */ (0, Y.jsx)("use", { href: "#i-folder-search" })+ });+}+var Am = [+ ["local", "本地磁盘"],+ ["115", "CloudDrive · 115"],+ ["pikpak", "CloudDrive · PikPak"]+], jm = (e) => Am.find(([t]) => t === e)?.[1] ?? e, Mm = (e) => t[e] || "database", Nm = (e = "") => ({+ path: e,+ location: "local",+ root: "",+ library: "",+ library_icon: ""+});+function Pm(e) {+ let t = e.media_sources?.filter((e) => Am.some(([t]) => t === e.location));+ return t?.length ? t.map((e) => ({+ path: e.path,+ location: e.location,+ root: e.root,+ library: e.library || "",+ library_icon: e.library_icon || ""+ })) : (e.media_dirs.length ? e.media_dirs : [""]).map((e) => Nm(e));+}+var Fm = (e) => !(e instanceof fp) || e.status !== 400 ? null : e.body?.errors ?? null;+function Im({ data: e, receipt: t }) {+ return /* @__PURE__ */ (0, Y.jsxs)("div", {+ className: "flex flex-col gap-6",+ children: [e.editable ? /* @__PURE__ */ (0, Y.jsx)(Lm, {+ data: e,+ receipt: t+ }) : /* @__PURE__ */ (0, Y.jsx)(Ap, {+ tone: "neutral",+ title: "只读",+ children: e.notice+ }), /* @__PURE__ */ (0, Y.jsx)(zm, { data: e })]+ });+}+function Lm({ data: e, receipt: t }) {+ let [n, r] = (0, C.useState)(() => Pm(e)), [i, a] = (0, C.useState)(String(e.port)), [o, s] = (0, C.useState)(!1), [c, l] = (0, C.useState)([]), [u, d] = (0, C.useState)(""), [f, p] = (0, C.useState)(""), [m, h] = (0, C.useState)(null), [g, _] = (0, C.useState)(null), [v, y] = (0, C.useState)(null), b = (0, C.useRef)(!1), x = (0, C.useRef)(e.revision), S = (0, C.useRef)([]), w = Rp();+ (0, C.useLayoutEffect)(() => {+ g !== null && (S.current[g]?.focus(), _(null));+ }, [g]), (0, C.useEffect)(() => {+ if (!m) return;+ let e = setTimeout(() => location.assign(m.url), Om);+ return () => clearTimeout(e);+ }, [m]);+ let T = (e, t) => r((n) => n.map((n, r) => r === e ? {+ ...n,+ ...t+ } : n)), E = (e, t) => l((n) => {+ let r = [...n];+ for (; r.length <= e;) r.push("");+ return r[e] = t, r;+ }), D = () => {+ _(n.length), r((e) => [...e, Nm()]);+ }, O = (e) => {+ r((t) => t.filter((t, n) => n !== e)), l((t) => t.filter((t, n) => n !== e));+ }, k = async (e) => {+ if (!b.current) {+ b.current = !0, y(e);+ try {+ let { path: t } = await gp(bm, { initial: n[e]?.path ?? "" });+ t && (T(e, { path: t }), E(e, ""));+ } catch (t) {+ E(e, mp(t));+ } finally {+ b.current = !1, y(null);+ }+ }+ }, A = (r) => {+ r.preventDefault(), p(""), w.run("save", (t) => gp(ym, {+ revision: x.current,+ media_dirs: n.map((e) => e.path),+ ...e.media_sources ? { media_sources: n } : {},+ port: i,+ scan_now: o+ }, "POST", t), (e) => {+ x.current = e.revision, l([]), d(""), t("已保存配置"), h(e);+ }, (e) => {+ let t = Fm(e);+ l(t?.media_dirs ?? []), d(t?.port ?? ""), t || p(mp(e));+ });+ };+ if (m) return /* @__PURE__ */ (0, Y.jsx)(Cp, {+ title: "这台电脑",+ children: /* @__PURE__ */ (0, Y.jsx)(Tp, { children: /* @__PURE__ */ (0, Y.jsxs)(Ap, {+ tone: "success",+ title: "配置已保存",+ children: [+ "Peach 正在重新启动。稍后自动跳转,或点击",+ /* @__PURE__ */ (0, Y.jsx)(Sp, {+ href: m.url,+ size: "small",+ children: "进入馆藏"+ }),+ "。"+ ]+ }) })+ });+ let j = n.some((e) => e.location === "115" || e.location === "pikpak"), M = j ? (e.mount_dependencies ?? []).filter((e) => !e.available) : [];+ return /* @__PURE__ */ (0, Y.jsxs)(Cp, {+ title: "这台电脑",+ onSubmit: A,+ children: [/* @__PURE__ */ (0, Y.jsxs)(Tp, { children: [+ /* @__PURE__ */ (0, Y.jsxs)("div", {+ className: "flex flex-col gap-3",+ children: [+ /* @__PURE__ */ (0, Y.jsx)(kp, { children: "媒体文件夹" }),+ /* @__PURE__ */ (0, Y.jsx)("div", {+ role: "group",+ "aria-label": "媒体文件夹",+ className: "flex flex-col gap-3",+ children: n.map((t, r) => /* @__PURE__ */ (0, Y.jsxs)("div", {+ "data-folder-row": !0,+ className: "@container flex flex-col gap-3 rounded-2lg border border-separator-border p-3",+ children: [/* @__PURE__ */ (0, Y.jsxs)("div", {+ className: "flex items-start gap-2",+ children: [+ /* @__PURE__ */ (0, Y.jsx)(vm, {+ className: "min-w-0 flex-1",+ "aria-label": `媒体文件夹 ${r + 1}`,+ placeholder: "本机文件夹路径",+ value: t.path,+ onChange: (e) => T(r, { path: e }),+ ref: (e) => {+ S.current[r] = e;+ },+ validationBehavior: "aria",+ isInvalid: !!c[r],+ hint: c[r] || void 0+ }),+ /* @__PURE__ */ (0, Y.jsx)(dm, {+ icon: km,+ "aria-label": "选择文件夹",+ onClick: () => void k(r),+ ...zp(v === r)+ }),+ n.length > 1 ? /* @__PURE__ */ (0, Y.jsx)(dm, {+ icon: vp,+ "aria-label": "移除这个文件夹",+ onClick: () => O(r)+ }) : null+ ]+ }), /* @__PURE__ */ (0, Y.jsxs)("div", {+ className: "grid grid-cols-1 gap-3 @lg:grid-cols-2",+ children: [+ /* @__PURE__ */ (0, Y.jsx)(vm, {+ label: "媒体库名称",+ maxLength: 80,+ placeholder: "同名文件夹归入同一个媒体库",+ value: t.library,+ onChange: (e) => T(r, { library: e })+ }),+ /* @__PURE__ */ (0, Y.jsxs)("div", {+ className: "flex flex-col gap-1.5",+ children: [/* @__PURE__ */ (0, Y.jsx)(kp, { children: "媒体库图标" }), /* @__PURE__ */ (0, Y.jsx)(Dm, {+ label: `媒体库图标 ${r + 1}`,+ value: t.library_icon,+ kind: t.location,+ onChange: (e) => T(r, { library_icon: e })+ })]+ }),+ /* @__PURE__ */ (0, Y.jsxs)("div", {+ className: "flex flex-col gap-1.5",+ children: [/* @__PURE__ */ (0, Y.jsx)(kp, { children: "媒体来源" }), /* @__PURE__ */ (0, Y.jsx)($p, {+ "aria-label": `媒体来源 ${r + 1}`,+ selectedKey: t.location,+ onSelectionChange: (e) => {+ e !== null && T(r, { location: String(e) });+ },+ children: Am.map(([e, t]) => /* @__PURE__ */ (0, Y.jsxs)(em, {+ id: e,+ textValue: t,+ children: [/* @__PURE__ */ (0, Y.jsx)(Lp, { mark: Mm(e) }), t]+ }, e))+ })]+ }),+ e.windows === !1 ? /* @__PURE__ */ (0, Y.jsx)(vm, {+ label: "Windows 中的对应路径",+ placeholder: "例如 B:\\",+ value: t.root,+ onChange: (e) => T(r, { root: e })+ }) : null+ ]+ })]+ }, r))+ }),+ /* @__PURE__ */ (0, Y.jsx)(xu, {+ variant: "secondary",+ className: "self-start",+ onClick: D,+ children: "添加文件夹"+ })+ ]+ }),+ j ? /* @__PURE__ */ (0, Y.jsx)(Cm, {}) : null,+ M.map((e) => /* @__PURE__ */ (0, Y.jsxs)(Dp, { children: [+ "未检测到 ",+ e.name,+ "。",+ /* @__PURE__ */ (0, Y.jsxs)(jp, {+ href: e.download_url,+ children: ["下载 ", e.name]+ })+ ] }, e.name)),+ e.windows === !1 ? /* @__PURE__ */ (0, Y.jsx)(Dp, { children: "本机文件夹是这台电脑读取媒体的位置。Windows 中的对应路径用于匹配馆藏中已有的路径,例如 B:\\ 对应本机挂载文件夹。" }) : null,+ e.port_editable === !1 ? null : /* @__PURE__ */ (0, Y.jsx)(vm, {+ id: "configPort",+ label: "本机访问端口",+ inputMode: "numeric",+ value: i,+ onChange: a,+ validationBehavior: "aria",+ isInvalid: !!u,+ hint: u || "浏览器地址里冒号后面的数字,一般不用改。"+ }),+ /* @__PURE__ */ (0, Y.jsx)(Wp, {+ isSelected: o,+ onChange: s,+ children: "保存后扫描并补全资料"+ }),+ f ? /* @__PURE__ */ (0, Y.jsx)(Ap, {+ tone: "error",+ title: "没有保存",+ children: f+ }) : null+ ] }), /* @__PURE__ */ (0, Y.jsx)(Ep, {+ status: e.port_editable === !1 ? "保存后 Peach 会重新载入配置。" : "保存后 Peach 会重新启动,端口改了就用新地址打开。",+ children: /* @__PURE__ */ (0, Y.jsx)(xu, {+ type: "submit",+ ...zp(w.busy === "save"),+ children: "保存配置"+ })+ })]+ });+}+function Rm({ online: e }) {+ return e === !0 ? /* @__PURE__ */ (0, Y.jsxs)("span", {+ "data-mount": "online",+ className: "inline-flex items-center gap-1.5 text-body-2-medium text-notification-success-foreground",+ children: [/* @__PURE__ */ (0, Y.jsx)("span", {+ "aria-hidden": !0,+ className: "size-1.5 rounded-full bg-current"+ }), "在线"]+ }) : e === !1 ? /* @__PURE__ */ (0, Y.jsxs)("span", {+ "data-mount": "offline",+ className: "inline-flex items-center gap-1.5 text-body-2-medium text-text-error-primary",+ children: [/* @__PURE__ */ (0, Y.jsx)("span", {+ "aria-hidden": !0,+ className: "size-1.5 rounded-full bg-current"+ }), "离线"]+ }) : /* @__PURE__ */ (0, Y.jsxs)("span", {+ "data-mount": "unknown",+ className: "inline-flex items-center gap-1.5 text-body-2-medium text-text-secondary",+ children: [/* @__PURE__ */ (0, Y.jsx)("span", {+ "aria-hidden": !0,+ className: "size-1.5 rounded-full bg-current"+ }), "未检测"]+ });+}+function zm({ data: e }) {+ let [t, n] = (0, C.useState)(e.media_sources), r = Rp();+ return t ? /* @__PURE__ */ (0, Y.jsxs)(Cp, {+ title: "挂载状态",+ children: [+ /* @__PURE__ */ (0, Y.jsx)(Mp, { children: t.map((e, t) => /* @__PURE__ */ (0, Y.jsxs)(Np, {+ term: /* @__PURE__ */ (0, Y.jsxs)(Y.Fragment, { children: [/* @__PURE__ */ (0, Y.jsx)(Lp, { mark: Mm(e.location) }), jm(e.location)] }),+ children: [e.path || "未配置挂载点", /* @__PURE__ */ (0, Y.jsx)(Rm, { online: e.online })]+ }, t)) }),+ r.error ? /* @__PURE__ */ (0, Y.jsx)(Tp, {+ divided: !0,+ children: /* @__PURE__ */ (0, Y.jsx)(Op, { children: r.error })+ }) : null,+ /* @__PURE__ */ (0, Y.jsx)(Ep, { children: /* @__PURE__ */ (0, Y.jsx)(xu, {+ variant: "secondary",+ onClick: () => void r.run("refresh", (e) => hp(ym, e), (e) => n(e.media_sources)),+ ...zp(r.busy === "refresh"),+ children: "刷新挂载状态"+ }) })+ ]+ }) : null;}//#endregion//#region src/react/settings/access-settings.tsx-var Ka = {+var Bm = {legacy: "当前使用系统生成的访问口令。你可以设置自己的密码,或关闭登录要求。",locked: "访问设置无法读取,请在本机检查配置文件。",password: "已设置密码。新设备需要登录,保持登录时间在登录页选择。"};-function qa({ label: e, children: t }) {- return /* @__PURE__ */ (0, P.jsxs)("div", {- role: "note",- className: "flex flex-col gap-0.5 rounded-2lg bg-status-yellow-background px-3 py-2 text-status-yellow-text",- children: [/* @__PURE__ */ (0, P.jsx)("p", {- className: "text-body-medium",- children: e- }), /* @__PURE__ */ (0, P.jsx)("p", {- className: "text-body-2-regular",- children: t- })]- });-}-function Ja({ initial: e, receipt: t }) {- let [n, r] = (0, v.useState)(e), [i, a] = (0, v.useState)(""), [o, s] = (0, v.useState)(""), [c, l] = (0, v.useState)(""), [u, d] = (0, v.useState)(!1), [f, p] = (0, v.useState)({}), [m, h] = (0, v.useState)(""), [g, _] = (0, v.useState)(!1), y = (0, v.useRef)(null), b = (0, v.useRef)(null);- (0, v.useEffect)(() => () => b.current?.abort(), []);- let x = async (e) => {- if (e.preventDefault(), b.current) return;- h("");+function Vm({ initial: e, receipt: t }) {+ let [n, r] = (0, C.useState)(e), [i, a] = (0, C.useState)(""), [o, s] = (0, C.useState)(""), [c, l] = (0, C.useState)(""), [u, d] = (0, C.useState)(!1), [f, p] = (0, C.useState)({}), m = (0, C.useRef)(null), h = Rp(), g = (e) => {+ e.preventDefault();let f = {};if (n.mode === "password" && !i && (f.current_password = "请输入当前访问密码"), u || ((o.length < 8 || o.length > 256) && (f.password = "访问密码需为 8–256 个字符"), o !== c && (f.confirmation = "两次输入的密码不一致")), p(f), Object.keys(f).length) {- requestAnimationFrame(() => y.current?.querySelector("input[aria-invalid=\"true\"]")?.focus());+ requestAnimationFrame(() => m.current?.querySelector("input[aria-invalid=\"true\"]")?.focus());return;}- let m = new AbortController();- b.current = m, _(!0);- try {- let e = await Ga("/api/configuration/access", {- revision: n.revision,- action: u ? "disable" : "set",- confirm_disable: u,- current_password: i,- password: u ? "" : o,- confirmation: u ? "" : c- }, "POST", m.signal);- if (m.signal.aborted) return;+ h.run("save", (e) => gp("/api/configuration/access", {+ revision: n.revision,+ action: u ? "disable" : "set",+ confirm_disable: u,+ current_password: i,+ password: u ? "" : o,+ confirmation: u ? "" : c+ }, "POST", e), (e) => {r(e), a(""), s(""), l(""), d(!1), p({}), t(e.mode === "open" ? "已关闭访问密码" : "已保存访问密码");- } catch (e) {- if (m.signal.aborted) return;- let t = e instanceof Ha ? e.body : null, n = t?.errors || t?.detail?.errors;- n ? p(n) : h(Wa(e));- } finally {- b.current === m && (b.current = null), m.signal.aborted || _(!1);- }- }, S = Ka[n.mode], ee = n.mode !== "locked";- return /* @__PURE__ */ (0, P.jsxs)("form", {- ref: y,- "aria-label": "访问密码",- noValidate: !0,- onSubmit: x,- className: "flex w-full flex-col gap-2",- children: [/* @__PURE__ */ (0, P.jsx)(Et, { children: "访问密码" }), /* @__PURE__ */ (0, P.jsx)(Tt, { children: /* @__PURE__ */ (0, P.jsxs)("div", {- className: "flex flex-col gap-4 py-4 pr-3",- children: [- S ? /* @__PURE__ */ (0, P.jsx)("p", {- className: "text-body-2-regular text-text-secondary",- children: S- }) : null,- n.mode === "open" ? /* @__PURE__ */ (0, P.jsx)(qa, {- label: "未设置访问密码",+ }, (e) => {+ let t = e instanceof fp ? e.body : null, n = t?.errors || t?.detail?.errors;+ n ? p(n) : h.setError(mp(e));+ });+ }, _ = Bm[n.mode], v = n.mode !== "locked";+ return /* @__PURE__ */ (0, Y.jsxs)(Cp, {+ title: "访问密码",+ onSubmit: g,+ children: [/* @__PURE__ */ (0, Y.jsx)("div", {+ ref: m,+ children: /* @__PURE__ */ (0, Y.jsxs)(Tp, { children: [+ _ ? /* @__PURE__ */ (0, Y.jsx)(Dp, { children: _ }) : null,+ n.mode === "open" ? /* @__PURE__ */ (0, Y.jsx)(Ap, {+ tone: "warning",+ title: "未设置访问密码",children: "能连接到 Peach 的设备打开地址就能看馆藏,不需要登录。"}) : null,- n.mode === "password" || n.mode === "legacy" ? /* @__PURE__ */ (0, P.jsx)(Na, {+ n.mode === "password" || n.mode === "legacy" ? /* @__PURE__ */ (0, Y.jsx)(Wp, {isSelected: u,onChange: d,children: "关闭访问密码,允许能连接到 Peach 的设备直接访问"}) : null,- n.mode === "password" ? /* @__PURE__ */ (0, P.jsx)(Va, {+ n.mode === "password" ? /* @__PURE__ */ (0, Y.jsx)(vm, {id: "access-current",type: "password",label: "当前访问密码",@@ -13476,7 +20638,7 @@ function Ja({ initial: e, receipt: t }) {isInvalid: !!f.current_password,hint: f.current_password}) : null,- ee ? /* @__PURE__ */ (0, P.jsxs)(P.Fragment, { children: [/* @__PURE__ */ (0, P.jsx)(Va, {+ v ? /* @__PURE__ */ (0, Y.jsxs)(Y.Fragment, { children: [/* @__PURE__ */ (0, Y.jsx)(vm, {id: "access-password",type: "password",label: n.mode === "password" ? "新访问密码" : "设置访问密码",@@ -13489,7 +20651,7 @@ function Ja({ initial: e, receipt: t }) {validationBehavior: "aria",isInvalid: !u && !!f.password,hint: u ? "关闭访问密码时无需填写。" : f.password || "至少 8 个字符。保存后其他设备需要重新登录。"- }), /* @__PURE__ */ (0, P.jsx)(Va, {+ }), /* @__PURE__ */ (0, Y.jsx)(vm, {id: "access-confirm",type: "password",label: "确认访问密码",@@ -13503,42 +20665,117 @@ function Ja({ initial: e, receipt: t }) {isInvalid: !u && !!f.confirmation,hint: u ? void 0 : f.confirmation})] }) : null,- u ? /* @__PURE__ */ (0, P.jsx)(qa, {- label: "访问范围",+ u ? /* @__PURE__ */ (0, Y.jsx)(Ap, {+ tone: "warning",+ title: "访问范围",children: "保存后,能连接到 Peach 的设备将直接访问馆藏。"}) : null,- m ? /* @__PURE__ */ (0, P.jsx)("p", {- role: "alert",- className: "text-body-2-regular text-text-error-primary",- children: m- }) : null,- ee ? /* @__PURE__ */ (0, P.jsxs)("div", {- className: "flex items-center justify-between gap-4 border-t border-separator-border pt-3",- children: [/* @__PURE__ */ (0, P.jsx)("p", {- className: "text-body-2-regular text-text-secondary",- children: "保存后立即生效。"- }), /* @__PURE__ */ (0, P.jsx)(Ot, {- type: "submit",- "aria-busy": g || void 0,- "aria-disabled": g || void 0,- children: "保存配置"- })]- }) : null- ]- }) })]+ h.error ? /* @__PURE__ */ (0, Y.jsx)(Op, { children: h.error }) : null+ ] })+ }), v ? /* @__PURE__ */ (0, Y.jsx)(Ep, {+ status: "保存后立即生效。",+ children: /* @__PURE__ */ (0, Y.jsx)(xu, {+ type: "submit",+ ...zp(h.busy === "save"),+ children: "保存配置"+ })+ }) : null]+ });+}+//#endregion+//#region src/react/settings/network-settings.tsx+var Hm = [+ ["environment", "系统代理"],+ ["direct", "直连"],+ ["proxy", "自定义"]+];+function Um({ data: e, receipt: t }) {+ return /* @__PURE__ */ (0, Y.jsxs)("div", {+ className: "flex flex-col gap-6",+ children: [e.peach_proxy ? /* @__PURE__ */ (0, Y.jsx)(Wm, {+ initial: e.peach_proxy,+ receipt: t+ }) : null, e.access ? /* @__PURE__ */ (0, Y.jsx)(Vm, {+ initial: e.access,+ receipt: t+ }) : null]+ });+}+function Wm({ initial: e, receipt: t }) {+ let [n, r] = (0, C.useState)(e), [i, a] = (0, C.useState)(e.mode), [o, s] = (0, C.useState)(""), c = Rp();+ return /* @__PURE__ */ (0, Y.jsxs)(Cp, {+ id: "peachProxy",+ title: "Peach 代理",+ onSubmit: (e) => {+ e.preventDefault(), c.run("save", (e) => gp("/api/configuration/peach-proxy", {+ mode: i,+ proxy: o+ }, "POST", e), (e) => {+ r(e), s(""), t("已保存 Peach 代理");+ });+ },+ children: [+ /* @__PURE__ */ (0, Y.jsx)(wp, { children: /* @__PURE__ */ (0, Y.jsx)(yu, {+ label: "连接方式",+ description: "采集来源选择“Peach 代理”时共用此设置。",+ children: /* @__PURE__ */ (0, Y.jsx)($p, {+ "aria-label": "连接方式",+ selectedKey: i,+ onSelectionChange: (e) => {+ e !== null && a(String(e));+ },+ children: Hm.map(([e, t]) => /* @__PURE__ */ (0, Y.jsx)(em, {+ id: e,+ children: t+ }, e))+ })+ }) }),+ i === "proxy" || n.needs_selection || c.error ? /* @__PURE__ */ (0, Y.jsxs)(Tp, {+ divided: !0,+ children: [+ i === "proxy" ? /* @__PURE__ */ (0, Y.jsx)(vm, {+ id: "peachProxyAddress",+ type: "password",+ label: "代理地址",+ autoComplete: "off",+ value: o,+ onChange: s,+ placeholder: n.proxy_saved ? "已保存,留空保留" : "http://127.0.0.1:7890"+ }) : null,+ n.needs_selection ? /* @__PURE__ */ (0, Y.jsx)(Ap, {+ tone: "warning",+ title: "需要选择连接方式",+ children: "已有来源的代理地址不同,请选择公共连接方式。"+ }) : null,+ c.error ? /* @__PURE__ */ (0, Y.jsx)(Op, { children: c.error }) : null+ ]+ }) : null,+ /* @__PURE__ */ (0, Y.jsx)(Ep, { children: /* @__PURE__ */ (0, Y.jsx)(xu, {+ type: "submit",+ ...zp(c.busy === "save"),+ children: "保存代理"+ }) })+ ]});}//#endregion//#region src/react/entry.tsx-function Ya(e) {+var Gm = null;+function Km() {+ return Gm?.isConnected || (Gm = document.createElement("div"), Gm.className = "peach-react", Gm.dataset.reactOverlays = "", document.body.append(Gm)), Gm;+}+function qm(e) {return (t, n) => {- let r = (0, y.createRoot)(t), i = (t) => r.render(/* @__PURE__ */ (0, P.jsx)(e, { ...t }));+ let r = (0, Pc.createRoot)(t), i = (t) => r.render(/* @__PURE__ */ (0, Y.jsx)(Po, {+ getContainer: Km,+ children: /* @__PURE__ */ (0, Y.jsx)(e, { ...t })+ }));return i(n), {update: i,unmount: () => r.unmount()};};}-var Xa = Ya(Ja);+var Jm = qm(Bp), Ym = qm(Im), Xm = qm(Um), Zm = qm(om);//#endregion-export { Xa as mountAccessSettings };+export { Jm as mountGeneralSettings, Zm as mountMaintenanceSettings, Ym as mountMediaSettings, Xm as mountNetworkSettings };diff --git a/web/dist/peach-ui.js b/web/dist/peach-ui.jsindex a19e1a24b..aa2164824 100644--- a/web/dist/peach-ui.js+++ b/web/dist/peach-ui.js@@ -1,8 +1,8 @@import { LOC as e, esc as t, fmtDur as n, fmtSize as r, icon as i, requestErrorMessage as a, siteMarkUrl as o } from "/js/core.js";-import { MEDIA_SOURCE_ICONS as s, attachOverlayScrollbar as c, checkboxHtml as l, collectionSummaryHtml as u, confirmModal as d, emptyStateHtml as f, fieldsetTitle as p, loadingDotsHtml as m, moveGlidePane as h, noteHtml as g, progressHtml as _, projectBannerHtml as v, selectFieldHtml as y, selectOptionIconHtml as b, setActionBusy as x, wireAnchoredMenu as S, wireCollapse as C, wireSelectField as w } from "/js/ui-components.js";+import { MEDIA_SOURCE_ICONS as s, attachOverlayScrollbar as c, checkboxHtml as l, collectionSummaryHtml as u, emptyStateHtml as d, fieldsetTitle as f, loadingDotsHtml as p, moveGlidePane as m, noteHtml as h, progressHtml as g, projectBannerHtml as _, selectFieldHtml as v, selectOptionIconHtml as y, setActionBusy as b, wireAnchoredMenu as x, wireCollapse as S, wireSelectField as C } from "/js/ui-components.js";//#region node_modules/preact/dist/preact.module.js-var T, E, D, O, k, A, j, ee, M, te, N, ne, P, re, ie, ae = {}, oe = [], se = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, ce = Array.isArray;-function F(e, t) {+var w, T, E, D, O, k, A, j, ee, te, M, ne, re, N, ie, ae = {}, oe = [], se = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, ce = Array.isArray;+function P(e, t) {for (var n in t) e[n] = t[n];return e;}@@ -12,7 +12,7 @@ function le(e) {function ue(e, t, n) {var r, i, a, o = {};for (a in t) a == "key" ? r = t[a] : a == "ref" ? i = t[a] : o[a] = t[a];- if (arguments.length > 2 && (o.children = arguments.length > 3 ? T.call(arguments, 2) : n), typeof e == "function" && e.defaultProps != null) for (a in e.defaultProps) o[a] === void 0 && (o[a] = e.defaultProps[a]);+ if (arguments.length > 2 && (o.children = arguments.length > 3 ? w.call(arguments, 2) : n), typeof e == "function" && e.defaultProps != null) for (a in e.defaultProps) o[a] === void 0 && (o[a] = e.defaultProps[a]);return de(e, o, r, i, null);}function de(e, t, n, r, i) {@@ -27,13 +27,13 @@ function de(e, t, n, r, i) {__e: null,__c: null,constructor: void 0,- __v: i ?? ++D,+ __v: i ?? ++E,__i: -1,__u: 0};- return i == null && E.vnode != null && E.vnode(a), a;+ return i == null && T.vnode != null && T.vnode(a), a;}-function I(e) {+function F(e) {return e.children;}function fe(e, t) {@@ -46,8 +46,8 @@ function pe(e, t) {}function me(e) {if (e.__P && e.__d) {- var t = e.__v, n = t.__e, r = [], i = [], a = F({}, t);- a.__v = t.__v + 1, E.vnode && E.vnode(a), Te(e.__P, a, t, e.__n, e.__P.namespaceURI, 32 & t.__u ? [n] : null, r, n ?? pe(t), !!(32 & t.__u), i), a.__v = t.__v, a.__.__k[a.__i] = a, De(r, a, i), t.__e = t.__ = null, a.__e != n && he(a);+ var t = e.__v, n = t.__e, r = [], i = [], a = P({}, t);+ a.__v = t.__v + 1, T.vnode && T.vnode(a), Te(e.__P, a, t, e.__n, e.__P.namespaceURI, 32 & t.__u ? [n] : null, r, n ?? pe(t), !!(32 & t.__u), i), a.__v = t.__v, a.__.__k[a.__i] = a, De(r, a, i), t.__e = t.__ = null, a.__e != n && he(a);}}function he(e) {@@ -56,13 +56,13 @@ function he(e) {}), he(e);}function ge(e) {- (!e.__d && (e.__d = !0) && k.push(e) && !_e.__r++ || A != E.debounceRendering) && ((A = E.debounceRendering) || j)(_e);+ (!e.__d && (e.__d = !0) && O.push(e) && !_e.__r++ || k != T.debounceRendering) && ((k = T.debounceRendering) || A)(_e);}function _e() {try {- for (var e, t = 1; k.length;) k.length > t && k.sort(ee), e = k.shift(), t = k.length, me(e);+ for (var e, t = 1; O.length;) O.length > t && O.sort(j), e = O.shift(), t = O.length, me(e);} finally {- k.length = _e.__r = 0;+ O.length = _e.__r = 0;}}function ve(e, t, n, r, i, a, o, s, c, l, u) {@@ -72,7 +72,7 @@ function ve(e, t, n, r, i, a, o, s, c, l, u) {}function ye(e, t, n, r, i) {var a, o, s, c, l, u = n.length, d = u, f = 0;- for (e.__k = Array(i), a = 0; a < i; a++) (o = t[a]) != null && typeof o != "boolean" && typeof o != "function" ? (typeof o == "string" || typeof o == "number" || typeof o == "bigint" || o.constructor == String ? o = e.__k[a] = de(null, o, null, null, null) : ce(o) ? o = e.__k[a] = de(I, { children: o }, null, null, null) : o.constructor === void 0 && o.__b > 0 ? o = e.__k[a] = de(o.type, o.props, o.key, o.ref ? o.ref : null, o.__v) : e.__k[a] = o, c = a + f, o.__ = e, o.__b = e.__b + 1, s = null, (l = o.__i = xe(o, n, c, d)) != -1 && (d--, (s = n[l]) && (s.__u |= 2)), s == null || s.__v == null ? (l == -1 && (i > u ? f-- : i < u && f++), typeof o.type != "function" && (o.__u |= 4)) : l != c && (l == c - 1 ? f-- : l == c + 1 ? f++ : (l > c ? f-- : f++, o.__u |= 4))) : e.__k[a] = null;+ for (e.__k = Array(i), a = 0; a < i; a++) (o = t[a]) != null && typeof o != "boolean" && typeof o != "function" ? (typeof o == "string" || typeof o == "number" || typeof o == "bigint" || o.constructor == String ? o = e.__k[a] = de(null, o, null, null, null) : ce(o) ? o = e.__k[a] = de(F, { children: o }, null, null, null) : o.constructor === void 0 && o.__b > 0 ? o = e.__k[a] = de(o.type, o.props, o.key, o.ref ? o.ref : null, o.__v) : e.__k[a] = o, c = a + f, o.__ = e, o.__b = e.__b + 1, s = null, (l = o.__i = xe(o, n, c, d)) != -1 && (d--, (s = n[l]) && (s.__u |= 2)), s == null || s.__v == null ? (l == -1 && (i > u ? f-- : i < u && f++), typeof o.type != "function" && (o.__u |= 4)) : l != c && (l == c - 1 ? f-- : l == c + 1 ? f++ : (l > c ? f-- : f++, o.__u |= 4))) : e.__k[a] = null;if (d) for (a = 0; a < u; a++) (s = n[a]) != null && !(2 & s.__u) && (s.__e == r && (r = pe(s)), je(s, s));return r;}@@ -107,7 +107,7 @@ function Ce(e, t, n, r, i) {if (typeof r == "string" && (e.style.cssText = r = ""), r) for (t in r) n && t in n || Se(e.style, t, "");if (n) for (t in n) r && n[t] == r[t] || Se(e.style, t, n[t]);}- } else if (t[0] == "o" && t[1] == "n") a = t != (t = t.replace(ne, "$1")), o = t.toLowerCase(), t = o in e || t == "onFocusOut" || t == "onFocusIn" ? o.slice(2) : t.slice(2), e.l ||= {}, e.l[t + a] = n, n ? r ? n[N] = r[N] : (n[N] = P, e.addEventListener(t, a ? ie : re, a)) : e.removeEventListener(t, a ? ie : re, a);+ } else if (t[0] == "o" && t[1] == "n") a = t != (t = t.replace(ne, "$1")), o = t.toLowerCase(), t = o in e || t == "onFocusOut" || t == "onFocusIn" ? o.slice(2) : t.slice(2), e.l ||= {}, e.l[t + a] = n, n ? r ? n[M] = r[M] : (n[M] = re, e.addEventListener(t, a ? ie : N, a)) : e.removeEventListener(t, a ? ie : N, a);else {if (i == "http://www.w3.org/2000/svg") t = t.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");else if (t != "width" && t != "height" && t != "href" && t != "list" && t != "form" && t != "tabIndex" && t != "download" && t != "rowSpan" && t != "colSpan" && t != "role" && t != "popover" && t in e) try {@@ -121,20 +121,20 @@ function we(e) {return function(t) {if (this.l) {var n = this.l[t.type + e];- if (t[te] == null) t[te] = P++;- else if (t[te] < n[N]) return;- return n(E.event ? E.event(t) : t);+ if (t[te] == null) t[te] = re++;+ else if (t[te] < n[M]) return;+ return n(T.event ? T.event(t) : t);}};}function Te(e, t, n, r, i, a, o, s, c, l) {- var u, d, f, p, m, h, g, _, v, y, b, x, S, C, w, T, D = t.type;+ var u, d, f, p, m, h, g, _, v, y, b, x, S, C, w, E, D = t.type;if (t.constructor !== void 0) return null;- 128 & n.__u && (c = !!(32 & n.__u), a = [s = t.__e = n.__e]), (u = E.__b) && u(t);+ 128 & n.__u && (c = !!(32 & n.__u), a = [s = t.__e = n.__e]), (u = T.__b) && u(t);n: if (typeof D == "function") {d = o.length;try {- if (v = t.props, y = D.prototype && D.prototype.render, b = (u = D.contextType) && r[u.__c], x = u ? b ? b.props.value : u.__ : r, n.__c ? _ = (f = t.__c = n.__c).__ = f.__E : (y ? t.__c = f = new D(v, x) : (t.__c = f = new fe(v, x), f.constructor = D, f.render = Me), b && b.sub(f), f.state || (f.state = {}), f.__n = r, p = f.__d = !0, f.__h = [], f._sb = []), y && f.__s == null && (f.__s = f.state), y && D.getDerivedStateFromProps != null && (f.__s == f.state && (f.__s = F({}, f.__s)), F(f.__s, D.getDerivedStateFromProps(v, f.__s))), m = f.props, h = f.state, f.__v = t, p) y && D.getDerivedStateFromProps == null && f.componentWillMount != null && f.componentWillMount(), y && f.componentDidMount != null && f.__h.push(f.componentDidMount);+ if (v = t.props, y = D.prototype && D.prototype.render, b = (u = D.contextType) && r[u.__c], x = u ? b ? b.props.value : u.__ : r, n.__c ? _ = (f = t.__c = n.__c).__ = f.__E : (y ? t.__c = f = new D(v, x) : (t.__c = f = new fe(v, x), f.constructor = D, f.render = Me), b && b.sub(f), f.state || (f.state = {}), f.__n = r, p = f.__d = !0, f.__h = [], f._sb = []), y && f.__s == null && (f.__s = f.state), y && D.getDerivedStateFromProps != null && (f.__s == f.state && (f.__s = P({}, f.__s)), P(f.__s, D.getDerivedStateFromProps(v, f.__s))), m = f.props, h = f.state, f.__v = t, p) y && D.getDerivedStateFromProps == null && f.componentWillMount != null && f.componentWillMount(), y && f.componentDidMount != null && f.__h.push(f.componentDidMount);else {if (y && D.getDerivedStateFromProps == null && v !== m && f.componentWillReceiveProps != null && f.componentWillReceiveProps(v, x), t.__v == n.__v || !f.__e && f.shouldComponentUpdate != null && !1 === f.shouldComponentUpdate(v, f.__s, x)) {t.__v != n.__v && (f.props = v, f.state = f.__s, f.__d = !1), t.__e = n.__e, t.__k = n.__k, t.__k.some(function(e) {@@ -146,40 +146,40 @@ function Te(e, t, n, r, i, a, o, s, c, l) {f.componentDidUpdate(m, h, g);});}- if (f.context = x, f.props = v, f.__P = e, f.__e = !1, S = E.__r, C = 0, y) f.state = f.__s, f.__d = !1, S && S(t), u = f.render(f.props, f.state, f.context), oe.push.apply(f.__h, f._sb), f._sb = [];+ if (f.context = x, f.props = v, f.__P = e, f.__e = !1, S = T.__r, C = 0, y) f.state = f.__s, f.__d = !1, S && S(t), u = f.render(f.props, f.state, f.context), oe.push.apply(f.__h, f._sb), f._sb = [];else dof.__d = !1, S && S(t), u = f.render(f.props, f.state, f.context), f.state = f.__s;while (f.__d && ++C < 25);- f.state = f.__s, f.getChildContext != null && (r = F(F({}, r), f.getChildContext())), y && !p && f.getSnapshotBeforeUpdate != null && (g = f.getSnapshotBeforeUpdate(m, h)), w = u != null && u.type === I && u.key == null ? Oe(u.props.children) : u, s = ve(e, ce(w) ? w : [w], t, n, r, i, a, o, s, c, l), f.base = t.__e, t.__u &= -161, f.__h.length && o.push(f), _ && (f.__E = f.__ = null);+ f.state = f.__s, f.getChildContext != null && (r = P(P({}, r), f.getChildContext())), y && !p && f.getSnapshotBeforeUpdate != null && (g = f.getSnapshotBeforeUpdate(m, h)), w = u != null && u.type === F && u.key == null ? Oe(u.props.children) : u, s = ve(e, ce(w) ? w : [w], t, n, r, i, a, o, s, c, l), f.base = t.__e, t.__u &= -161, f.__h.length && o.push(f), _ && (f.__E = f.__ = null);} catch (e) {if (o.length = d, t.__v = null, c || a != null) {if (e.then) {for (t.__u |= c ? 160 : 128; s && s.nodeType == 8 && s.nextSibling;) s = s.nextSibling;a != null && (a[a.indexOf(s)] = null), t.__e = s;- } else if (a != null) for (T = a.length; T--;) le(a[T]);+ } else if (a != null) for (E = a.length; E--;) le(a[E]);} else t.__e = n.__e;- t.__k ??= n.__k || [], e.then || Ee(t), E.__e(e, t, n);+ t.__k ??= n.__k || [], e.then || Ee(t), T.__e(e, t, n);}} else a == null && t.__v == n.__v ? (t.__k = n.__k, t.__e = n.__e) : s = t.__e = ke(n.__e, t, n, r, i, a, o, c, l);- return (u = E.diffed) && u(t), 128 & t.__u ? void 0 : s;+ return (u = T.diffed) && u(t), 128 & t.__u ? void 0 : s;}function Ee(e) {e && (e.__c && (e.__c.__e = !0), e.__k && e.__k.some(Ee));}function De(e, t, n) {for (var r = 0; r < n.length; r++) Ae(n[r], n[++r], n[++r]);- E.__c && E.__c(t, e), e.some(function(t) {+ T.__c && T.__c(t, e), e.some(function(t) {try {e = t.__h, t.__h = [], e.some(function(e) {e.call(t);});} catch (e) {- E.__e(e, t.__v);+ T.__e(e, t.__v);}});}function Oe(e) {- return typeof e != "object" || !e || e.__b > 0 ? e : ce(e) ? e.map(Oe) : e.constructor === void 0 ? F({}, e) : null;+ return typeof e != "object" || !e || e.__b > 0 ? e : ce(e) ? e.map(Oe) : e.constructor === void 0 ? P({}, e) : null;}function ke(e, t, n, r, i, a, o, s, c) {var l, u, d, f, p, m, h, g = n.props || ae, _ = t.props, v = t.type;@@ -191,11 +191,11 @@ function ke(e, t, n, r, i, a, o, s, c) {}if (e == null) {if (v == null) return document.createTextNode(_);- e = document.createElementNS(i, v, _.is && _), s &&= (E.__m && E.__m(t, a), !1), a = null;+ e = document.createElementNS(i, v, _.is && _), s &&= (T.__m && T.__m(t, a), !1), a = null;}if (v == null) g === _ || s && e.data == _ || (e.data = _);else {- if (a = v == "textarea" && _.defaultValue != null ? null : a && T.call(e.childNodes), !s && a != null) for (g = {}, l = 0; l < e.attributes.length; l++) g[(p = e.attributes[l]).name] = p.value;+ if (a = v == "textarea" && _.defaultValue != null ? null : a && w.call(e.childNodes), !s && a != null) for (g = {}, l = 0; l < e.attributes.length; l++) g[(p = e.attributes[l]).name] = p.value;for (l in g) p = g[l], l == "dangerouslySetInnerHTML" ? d = p : l == "children" || l in _ || l == "value" && "defaultValue" in _ || l == "checked" && "defaultChecked" in _ || Ce(e, l, null, p, i);for (l in _) p = _[l], l == "children" ? f = p : l == "dangerouslySetInnerHTML" ? u = p : l == "value" ? m = p : l == "checked" ? h = p : s && typeof p != "function" || g[l] === p || Ce(e, l, p, g[l], i);if (u) s || d && (u.__html == d.__html || u.__html == e.innerHTML) || (e.innerHTML = u.__html), t.__k = [];@@ -211,16 +211,16 @@ function Ae(e, t, n) {r && e.__u(), r && t == null || (e.__u = e(t));} else e.current = t;} catch (e) {- E.__e(e, n);+ T.__e(e, n);}}function je(e, t, n) {var r, i;- if (E.unmount && E.unmount(e), (r = e.ref) && (r.current && r.current != e.__e || Ae(r, null, t)), (r = e.__c) != null) {+ if (T.unmount && T.unmount(e), (r = e.ref) && (r.current && r.current != e.__e || Ae(r, null, t)), (r = e.__c) != null) {if (r.componentWillUnmount) try {r.componentWillUnmount();} catch (e) {- E.__e(e, t);+ T.__e(e, t);}r.base = r.__P = r.__n = null;}@@ -232,25 +232,25 @@ function Me(e, t, n) {}function Ne(e, t, n) {var r, i, a, o;- t == document && (t = document.documentElement), E.__ && E.__(e, t), i = (r = typeof n == "function") ? null : n && n.__k || t.__k, a = [], o = [], Te(t, e = (!r && n || t).__k = ue(I, null, [e]), i || ae, ae, t.namespaceURI, !r && n ? [n] : i ? null : t.firstChild ? T.call(t.childNodes) : null, a, !r && n ? n : i ? i.__e : t.firstChild, r, o), De(a, e, o), e.props.children = null;+ t == document && (t = document.documentElement), T.__ && T.__(e, t), i = (r = typeof n == "function") ? null : n && n.__k || t.__k, a = [], o = [], Te(t, e = (!r && n || t).__k = ue(F, null, [e]), i || ae, ae, t.namespaceURI, !r && n ? [n] : i ? null : t.firstChild ? w.call(t.childNodes) : null, a, !r && n ? n : i ? i.__e : t.firstChild, r, o), De(a, e, o), e.props.children = null;}-T = oe.slice, E = { __e: function(e, t, n, r) {+w = oe.slice, T = { __e: function(e, t, n, r) {for (var i, a, o; t = t.__;) if ((i = t.__c) && !i.__) try {if ((a = i.constructor) && a.getDerivedStateFromError != null && (i.setState(a.getDerivedStateFromError(e)), o = i.__d), i.componentDidCatch != null && (i.componentDidCatch(e, r || {}), o = i.__d), o) return i.__E = i;} catch (t) {e = t;}throw e;-} }, D = 0, O = function(e) {+} }, E = 0, D = function(e) {return e != null && e.constructor === void 0;}, fe.prototype.setState = function(e, t) {- var n = this.__s != null && this.__s != this.state ? this.__s : this.__s = F({}, this.state);- typeof e == "function" && (e = e(F({}, n), this.props)), e && F(n, e), e != null && this.__v && (t && this._sb.push(t), ge(this));+ var n = this.__s != null && this.__s != this.state ? this.__s : this.__s = P({}, this.state);+ typeof e == "function" && (e = e(P({}, n), this.props)), e && P(n, e), e != null && this.__v && (t && this._sb.push(t), ge(this));}, fe.prototype.forceUpdate = function(e) {this.__v && (this.__e = !0, e && this.__h.push(e), ge(this));-}, fe.prototype.render = I, k = [], j = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, ee = function(e, t) {+}, fe.prototype.render = F, O = [], A = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, j = function(e, t) {return e.__v.__b - t.__v.__b;-}, _e.__r = 0, M = Math.random().toString(8), te = "__d" + M, N = "__a" + M, ne = /(PointerCapture)$|Capture$/i, P = 0, re = we(!1), ie = we(!0);+}, _e.__r = 0, ee = Math.random().toString(8), te = "__d" + ee, M = "__a" + ee, ne = /(PointerCapture)$|Capture$/i, re = 0, N = we(!1), ie = we(!0);//#endregion//#region src/sort-preferences.tsfunction Pe(e, t, n) {@@ -351,7 +351,7 @@ function Re(e, t, n, r, i) {}//#endregion//#region src/board-metrics.ts-var L = (e) => String(e ?? "").replace(/[&<>"']/g, (e) => ({+var I = (e) => String(e ?? "").replace(/[&<>"']/g, (e) => ({"&": "&","<": "<",">": ">",@@ -359,27 +359,27 @@ var L = (e) => String(e ?? "").replace(/[&<>"']/g, (e) => ({"'": "'"})[e]);function ze(e, t, n, r = "chart-no-axes-combined") {- return `<span class="board-stat-label"><span class="board-stat-icon" aria-hidden="true"><svg viewBox="0 0 24 24"><use href="#i-${/^[a-z0-9-]+$/.test(r) ? r : "database"}"/></svg></span>${L(e)}</span><b class="board-stat-value">${L(t)}</b><small class="board-stat-footer">${L(n || "当前记录")}</small>`;+ return `<span class="board-stat-label"><span class="board-stat-icon" aria-hidden="true"><svg viewBox="0 0 24 24"><use href="#i-${/^[a-z0-9-]+$/.test(r) ? r : "database"}"/></svg></span>${I(e)}</span><b class="board-stat-value">${I(t)}</b><small class="board-stat-footer">${I(n || "当前记录")}</small>`;}function Be(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="board-job-progress" role="progressbar" aria-label="${L(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="board-job-track" cx="18" cy="18" r="15"/><circle class="board-job-fill" cx="18" cy="18" r="15" pathLength="100" stroke-dasharray="${i} ${100 - i}" transform="rotate(-90 18 18)"/></svg><span>${L(e)}<small>${Math.round(i)}%</small></span></div>`;+ return `<div class="board-job-progress" role="progressbar" aria-label="${I(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="board-job-track" cx="18" cy="18" r="15"/><circle class="board-job-fill" cx="18" cy="18" r="15" pathLength="100" stroke-dasharray="${i} ${100 - i}" transform="rotate(-90 18 18)"/></svg><span>${I(e)}<small>${Math.round(i)}%</small></span></div>`;}function Ve(e, t) {let n = e.filter((e) => Number.isFinite(e.score) && e.score > 0), r = n.reduce((e, t) => e + t.score, 0);if (!r) return "";let i = 0, a = n.map((e, t) => {- let n = e.score / r * 100, a = `<circle cx="100" cy="100" r="72" pathLength="100" fill="none" stroke="var(--chart-${t % 4})" stroke-width="22" stroke-dasharray="${n} ${100 - n}" stroke-dashoffset="${-i}"><title>${L(e.name)}:${e.score.toLocaleString()}</title></circle>`;+ let n = e.score / r * 100, a = `<circle cx="100" cy="100" r="72" pathLength="100" fill="none" stroke="var(--chart-${t % 4})" stroke-width="22" stroke-dasharray="${n} ${100 - n}" stroke-dashoffset="${-i}"><title>${I(e.name)}:${e.score.toLocaleString()}</title></circle>`;return i += n, a;}).join("");- return `<svg class="board-distribution" viewBox="0 0 200 200" role="img" aria-label="${L(t)}"><g transform="rotate(-90 100 100)">${a}</g><text x="100" y="100" text-anchor="middle" dominant-baseline="middle">${L(t)}</text></svg>`;+ return `<svg class="board-distribution" viewBox="0 0 200 200" role="img" aria-label="${I(t)}"><g transform="rotate(-90 100 100)">${a}</g><text x="100" y="100" text-anchor="middle" dominant-baseline="middle">${I(t)}</text></svg>`;}function He(e, t) {let n = e.filter((e) => Number.isFinite(e.score) && e.score > 0).slice().sort((e, t) => t.score - e.score).slice(0, 8);if (!n.length) return "";- let r = n[0].score, i = n.map((e) => `<li><span class="board-rank-fill" style="width:${(e.score / r * 100).toFixed(2)}%"></span><span>${L(e.name)}</span><b>${e.score.toLocaleString()}</b></li>`).join("");- return `<ol class="board-ranked-chart" aria-label="${L(t)}">${i}</ol>`;+ let r = n[0].score, i = n.map((e) => `<li><span class="board-rank-fill" style="width:${(e.score / r * 100).toFixed(2)}%"></span><span>${I(e.name)}</span><b>${e.score.toLocaleString()}</b></li>`).join("");+ return `<ol class="board-ranked-chart" aria-label="${I(t)}">${i}</ol>`;}function Ue(e, t) {let n = e.filter((e) => Number.isFinite(e.score) && e.score > 0).slice().sort((e, t) => t.score - e.score).slice(0, 6);@@ -394,30 +394,30 @@ function Ue(e, t) {100].map((e) => `<polygon points="${o(() => e)}" class="board-radar-grid"/>`).join(""), c = n.map((e, t) => {let [n, r] = a(t, 116);- return `<text x="${n}" y="${r}" text-anchor="${n < 145 ? "end" : n > 175 ? "start" : "middle"}">${L(e.name)}</text>`;+ return `<text x="${n}" y="${r}" text-anchor="${n < 145 ? "end" : n > 175 ? "start" : "middle"}">${I(e.name)}</text>`;}).join("");- return `<svg class="board-radar" viewBox="0 0 320 280" role="img" aria-label="${L(t)}"><title>${L(n.map((e) => `${e.name} ${e.score}`).join(","))}</title>${s}<polygon points="${o((e) => n[e].score / r * 100)}" class="board-radar-value"/>${c}</svg>`;+ return `<svg class="board-radar" viewBox="0 0 320 280" role="img" aria-label="${I(t)}"><title>${I(n.map((e) => `${e.name} ${e.score}`).join(","))}</title>${s}<polygon points="${o((e) => n[e].score / r * 100)}" class="board-radar-value"/>${c}</svg>`;}//#endregion//#region node_modules/preact/hooks/dist/hooks.module.js-var We, R, Ge, Ke, qe = 0, Je = [], z = E, Ye = z.__b, Xe = z.__r, Ze = z.diffed, Qe = z.__c, $e = z.unmount, et = z.__;+var We, L, Ge, Ke, qe = 0, Je = [], R = T, Ye = R.__b, Xe = R.__r, Ze = R.diffed, Qe = R.__c, $e = R.unmount, et = R.__;function tt(e, t) {- z.__h && z.__h(R, e, qe || t), qe = 0;- var n = R.__H || (R.__H = {+ R.__h && R.__h(L, e, qe || t), qe = 0;+ var n = L.__H || (L.__H = {__: [],__h: []});return e >= n.__.length && n.__.push({}), n.__[e];}-function B(e) {- return qe = 1, nt(ut, e);+function z(e) {+ return qe = 1, nt(dt, e);}function nt(e, t, n) {var r = tt(We++, 2);- if (r.t = e, !r.__c && (r.__ = [n ? n(t) : ut(void 0, t), function(e) {+ if (r.t = e, !r.__c && (r.__ = [n ? n(t) : dt(void 0, t), function(e) {var t = r.__N ? r.__N[0] : r.__[0], n = r.t(t, e);t !== n && (r.__N = [n, r.__[1]], r.__c.setState({}));- }], r.__c = R, !R.__f)) {+ }], r.__c = L, !L.__f)) {var i = function(e, t, n) {if (!r.__c.__H) return !0;var i = !1, o = r.__c.props !== e;@@ -433,116 +433,116 @@ function nt(e, t, n) {}return !i || o;};- R.__f = !0;- var a = R.shouldComponentUpdate, o = R.componentWillUpdate;- R.componentWillUpdate = function(e, t, n) {+ L.__f = !0;+ var a = L.shouldComponentUpdate, o = L.componentWillUpdate;+ L.componentWillUpdate = function(e, t, n) {if (this.__e) {var r = a;a = void 0, i(e, t, n), a = r;}o && o.call(this, e, t, n);- }, R.shouldComponentUpdate = i;+ }, L.shouldComponentUpdate = i;}return r.__N || r.__;}-function V(e, t) {+function B(e, t) {var n = tt(We++, 3);- !z.__s && lt(n.__H, t) && (n.__ = e, n.u = t, R.__H.__h.push(n));+ !R.__s && ut(n.__H, t) && (n.__ = e, n.u = t, L.__H.__h.push(n));}-function H(e, t) {+function rt(e, t) {var n = tt(We++, 4);- !z.__s && lt(n.__H, t) && (n.__ = e, n.u = t, R.__h.push(n));+ !R.__s && ut(n.__H, t) && (n.__ = e, n.u = t, L.__h.push(n));}-function U(e) {- return qe = 5, rt(function() {+function V(e) {+ return qe = 5, it(function() {return { current: e };}, []);}-function rt(e, t) {+function it(e, t) {var n = tt(We++, 7);- return lt(n.__H, t) && (n.__ = e(), n.__H = t, n.__h = e), n.__;+ return ut(n.__H, t) && (n.__ = e(), n.__H = t, n.__h = e), n.__;}-function it() {+function at() {for (var e; e = Je.shift();) {var t = e.__H;if (e.__P && t) try {- t.__h.some(st), t.__h.some(ct), t.__h = [];+ t.__h.some(ct), t.__h.some(lt), t.__h = [];} catch (n) {- t.__h = [], z.__e(n, e.__v);+ t.__h = [], R.__e(n, e.__v);}}}-z.__b = function(e) {- R = null, Ye && Ye(e);-}, z.__ = function(e, t) {+R.__b = function(e) {+ L = null, Ye && Ye(e);+}, R.__ = function(e, t) {e && t.__k && t.__k.__m && (e.__m = t.__k.__m), et && et(e, t);-}, z.__r = function(e) {+}, R.__r = function(e) {Xe && Xe(e), We = 0;- var t = (R = e.__c).__H;- t && (Ge === R ? (t.__h = [], R.__h = [], t.__.some(function(e) {+ var t = (L = e.__c).__H;+ t && (Ge === L ? (t.__h = [], L.__h = [], t.__.some(function(e) {e.__N && (e.__ = e.__N), e.u = e.__N = void 0;- })) : (t.__h.some(st), t.__h.some(ct), t.__h = [], We = 0)), Ge = R;-}, z.diffed = function(e) {+ })) : (t.__h.some(ct), t.__h.some(lt), t.__h = [], We = 0)), Ge = L;+}, R.diffed = function(e) {Ze && Ze(e);var t = e.__c;- t && t.__H && (t.__H.__h.length && (Je.push(t) !== 1 && Ke === z.requestAnimationFrame || ((Ke = z.requestAnimationFrame) || ot)(it)), t.__H.__.some(function(e) {+ t && t.__H && (t.__H.__h.length && (Je.push(t) !== 1 && Ke === R.requestAnimationFrame || ((Ke = R.requestAnimationFrame) || st)(at)), t.__H.__.some(function(e) {e.u &&= (e.__H = e.u, void 0);- })), Ge = R = null;-}, z.__c = function(e, t) {+ })), Ge = L = null;+}, R.__c = function(e, t) {t.some(function(e) {try {- e.__h.some(st), e.__h = e.__h.filter(function(e) {- return !e.__ || ct(e);+ e.__h.some(ct), e.__h = e.__h.filter(function(e) {+ return !e.__ || lt(e);});} catch (n) {t.some(function(e) {e.__h &&= [];- }), t = [], z.__e(n, e.__v);+ }), t = [], R.__e(n, e.__v);}}), Qe && Qe(e, t);-}, z.unmount = function(e) {+}, R.unmount = function(e) {$e && $e(e);var t, n = e.__c;n && n.__H && (n.__H.__.some(function(e) {try {- st(e);+ ct(e);} catch (e) {t = e;}- }), n.__H = void 0, t && z.__e(t, n.__v));+ }), n.__H = void 0, t && R.__e(t, n.__v));};-var at = typeof requestAnimationFrame == "function";-function ot(e) {+var ot = typeof requestAnimationFrame == "function";+function st(e) {var t, n = function() {- clearTimeout(r), at && cancelAnimationFrame(t), setTimeout(e);+ clearTimeout(r), ot && cancelAnimationFrame(t), setTimeout(e);}, r = setTimeout(n, 35);- at && (t = requestAnimationFrame(n));-}-function st(e) {- var t = R, n = e.__c;- typeof n == "function" && (e.__c = void 0, n()), R = t;+ ot && (t = requestAnimationFrame(n));}function ct(e) {- var t = R;- e.__c = e.__(), R = t;+ var t = L, n = e.__c;+ typeof n == "function" && (e.__c = void 0, n()), L = t;+}+function lt(e) {+ var t = L;+ e.__c = e.__(), L = t;}-function lt(e, t) {+function ut(e, t) {return !e || e.length !== t.length || t.some(function(t, n) {return t !== e[n];});}-function ut(e, t) {+function dt(e, t) {return typeof t == "function" ? t(e) : t;}//#endregion//#region src/api.ts-var dt = class extends Error {+var ft = class extends Error {status;body;constructor(e, t, n = null) {super(a(e, t)), this.name = "ApiError", this.status = t, this.body = n;}-}, ft = (e) => {+}, pt = (e) => {if (!e || typeof e != "object") return "";let t = e;for (let e of [@@ -554,8 +554,8 @@ var dt = class extends Error {if (typeof n == "string" && n) return n;}return "";-}, W = (e) => a(e);-async function G(e, t) {+}, H = (e) => a(e);+async function U(e, t) {let n = await fetch(e, {headers: { Accept: "application/json" },credentials: "same-origin",@@ -564,10 +564,10 @@ async function G(e, t) {try {r = await n.json();} catch {}- if (!n.ok) throw new dt(ft(r) || `请求失败(${n.status})`, n.status);+ if (!n.ok) throw new ft(pt(r) || `请求失败(${n.status})`, n.status);return r;}-async function K(e, t, n = "POST", r) {+async function mt(e, t, n = "POST", r) {let i = await fetch(e, {method: n,...r ? { signal: r } : {},@@ -581,15 +581,15 @@ async function K(e, t, n = "POST", r) {try {a = await i.json();} catch {}- if (!i.ok) throw new dt(ft(a) || `请求失败(${i.status})`, i.status, a);+ if (!i.ok) throw new ft(pt(a) || `请求失败(${i.status})`, i.status, a);return a;}//#endregion//#region src/jobs.ts-function pt(e, t = 0, n = 0) {- return n > 0 ? Be(e, t, n) : m(e);+function ht(e, t = 0, n = 0) {+ return n > 0 ? Be(e, t, n) : p(e);}-async function mt(e) {+async function gt(e) {let t = e.pause || ((e) => new Promise((t) => setTimeout(t, e))), n = 0;for (; e.active();) {let r;@@ -604,14 +604,14 @@ async function mt(e) {await t(2e3);}}-function ht(e) {- let t = e.note || ((e) => g(e, {+function _t(e) {+ let t = e.note || ((e) => h(e, {label: "任务状态",variant: "error"- })), n = e.loading || m, r = e.progress || ((e, t, n) => pt(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 || p, r = e.progress || ((e, t, n) => ht(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;- mt({+ gt({read: e.read,active: () => !c && e.active() && a.isConnected,keepWatching: e.watchIdle !== !1,@@ -637,9 +637,9 @@ function ht(e) {}//#endregion//#region node_modules/preact/jsx-runtime/dist/jsxRuntime.module.js-var gt = 0;+var vt = 0;Array.isArray;-function q(e, t, n, r, i, a) {+function W(e, t, n, r, i, a) {t ||= {};var o, s, c = t;if ("ref" in c) for (s in c = {}, t) s == "ref" ? o = t[s] : c[s] = t[s];@@ -654,46 +654,46 @@ function q(e, t, n, r, i, a) {__e: null,__c: null,constructor: void 0,- __v: --gt,+ __v: --vt,__i: -1,__u: 0,__source: i,__self: a};if (typeof e == "function" && (o = e.defaultProps)) for (s in o) c[s] === void 0 && (c[s] = o[s]);- return E.vnode && E.vnode(l), l;+ return T.vnode && T.vnode(l), l;}//#endregion//#region src/link-button.tsx-function _t({ href: e, children: t }) {- return /* @__PURE__ */ q("a", {+function yt({ href: e, children: t }) {+ return /* @__PURE__ */ W("a", {class: "board-link-button",href: e,- children: [/* @__PURE__ */ q("span", { children: t }), /* @__PURE__ */ q("svg", {+ children: [/* @__PURE__ */ W("span", { children: t }), /* @__PURE__ */ W("svg", {viewBox: "0 0 24 24","aria-hidden": "true",- children: /* @__PURE__ */ q("use", { href: "#i-arrow-up" })+ children: /* @__PURE__ */ W("use", { href: "#i-arrow-up" })})]});}//#endregion//#region src/split-action.tsx-function vt({ id: e, label: t, actions: n, busy: r }) {- let i = U(null), a = U();- H(() => {+function bt({ id: e, label: t, actions: n, busy: r }) {+ let i = V(null), a = V();+ rt(() => {let e = i.current;- return a.current = S(e, e.querySelector(".splittoggle"), e.querySelector("[role=menu]")), () => a.current?.setOpen(!1);- }, []), H(() => {- i.current?.querySelectorAll("button").forEach((e) => x(e, r)), r && a.current?.setOpen(!1);+ return a.current = x(e, e.querySelector(".splittoggle"), e.querySelector("[role=menu]")), () => a.current?.setOpen(!1);+ }, []), rt(() => {+ i.current?.querySelectorAll("button").forEach((e) => b(e, r)), r && a.current?.setOpen(!1);}, [r]);- let o = (e) => /* @__PURE__ */ q("svg", {+ let o = (e) => /* @__PURE__ */ W("svg", {viewBox: "0 0 24 24","aria-hidden": "true",- children: /* @__PURE__ */ q("use", { href: `#i-${e}` })+ children: /* @__PURE__ */ W("use", { href: `#i-${e}` })}), s = (e) => {r || (a.current?.setOpen(!1), e.run());};- return /* @__PURE__ */ q("div", {+ return /* @__PURE__ */ W("div", {ref: i,class: "splitbutton board-button-group primary",onClickCapture: (e) => {@@ -710,13 +710,13 @@ function vt({ id: e, label: t, actions: n, busy: r }) {e.key === "Tab" && a.current?.setOpen(!1);},children: [- /* @__PURE__ */ q("button", {+ /* @__PURE__ */ W("button", {type: "button",class: "splitmain geist-button primary",onClick: () => s(n[0]),children: [o(n[0].icon), n[0].label]}),- /* @__PURE__ */ q("button", {+ /* @__PURE__ */ W("button", {type: "button",class: "splittoggle geist-button primary","aria-label": t,@@ -725,16 +725,16 @@ function vt({ id: e, label: t, actions: n, busy: r }) {"aria-controls": e,children: o("chevron-down")}),- /* @__PURE__ */ q("div", {+ /* @__PURE__ */ W("div", {class: "popmenu cardmenupanel",id: e,role: "menu",hidden: !0,- children: n.map((e) => /* @__PURE__ */ q("button", {+ children: n.map((e) => /* @__PURE__ */ W("button", {type: "button",role: "menuitem",onClick: () => s(e),- children: [o(e.icon), /* @__PURE__ */ q("span", { children: e.label })]+ children: [o(e.icon), /* @__PURE__ */ W("span", { children: e.label })]}, e.label))})]@@ -742,58 +742,58 @@ function vt({ id: e, label: t, actions: n, busy: r }) {}//#endregion//#region src/islands/library-processing.tsx-var yt = (e, t) => G("/api/library-processing", t), bt = {+var xt = (e, t) => U("/api/library-processing", t), St = {reading_local: "读取本地资料",querying_metadata: "查询外部资料",fetching_cover: "采集缺失封面",writing_candidates: "保存资料候选"};-function xt(e) {- let t = bt[e.current_action || ""] || e.stage || "正在处理", n = e.waited_seconds ? ` · 已等待 ${e.waited_seconds} 秒` : "";+function Ct(e) {+ let t = St[e.current_action || ""] || e.stage || "正在处理", n = e.waited_seconds ? ` · 已等待 ${e.waited_seconds} 秒` : "";return e.current_asset_name ? `当前:${e.current_asset_name} · ${t}${n}` : t + n;}-var St = "peach.library-processing.announced", Ct = 120;-function wt(e, t, n) {+var wt = "peach.library-processing.announced", Tt = 120;+function Et(e, t, n) {if (e.status !== "complete") return;- let r = !!e.job_id && !!e.completed_at && Date.now() / 1e3 - e.completed_at < Ct;+ let r = !!e.job_id && !!e.completed_at && Date.now() / 1e3 - e.completed_at < Tt;if (!(!n && !r)) {try {- if (e.job_id && localStorage.getItem(St) === e.job_id) return;- e.job_id && localStorage.setItem(St, e.job_id);+ if (e.job_id && localStorage.getItem(wt) === e.job_id) return;+ e.job_id && localStorage.setItem(wt, e.job_id);} catch {}t(`扫描与资料采集已完成:识别 ${e.identified || 0} 个番号,整理 ${e.candidates || 0} 组资料候选`);}}-function Tt({ data: e, error: t, toast: n, onComplete: r, mode: i, monitor: a, preview: o }) {- let [s, c] = B(e || { status: "idle" }), [l, u] = B(t), [d, f] = B(!1), [m, h] = B(!1), _ = U(new AbortController()), y = U(0), b = U(s.status), x = U(null);- V(() => {- x.current && C(x.current, ".geist-note-details", "library-issues");+function Dt({ data: e, error: t, toast: n, onComplete: r, mode: i, monitor: a, preview: o }) {+ let [s, c] = z(e || { status: "idle" }), [l, u] = z(t), [d, p] = z(!1), [m, g] = z(!1), v = V(new AbortController()), y = V(0), b = V(s.status), x = V(null);+ B(() => {+ x.current && S(x.current, ".geist-note-details", "library-issues");}, [s, l]);- let S = d || s.status === "running";+ let C = d || s.status === "running";async function w() {let e = ++y.current;- await mt({- read: (e) => G("/api/library-processing", e),- active: () => !_.current.signal.aborted && y.current === e,+ await gt({+ read: (e) => U("/api/library-processing", e),+ active: () => !v.current.signal.aborted && y.current === e,keepWatching: i === "notice" || !!a,render: (e) => {c(e), u("");let t = e.status === "complete" && b.current === "running";- t && i !== "notice" && h(!0), (t || i === "notice") && wt(e, n, t), b.current === "running" && (e.status === "complete" || e.status === "failed") && r?.(), b.current = e.status;+ t && i !== "notice" && g(!0), (t || i === "notice") && Et(e, n, t), b.current === "running" && (e.status === "complete" || e.status === "failed") && r?.(), b.current = e.status;},disconnected: () => u("连接中断,正在重新读取处理进度")});}- V(() => (!o && (s.status === "running" || i === "notice" || a) && w(), () => _.current.abort()), []);+ B(() => (!o && (s.status === "running" || i === "notice" || a) && w(), () => v.current.abort()), []);async function T(e) {- if (!(S || o)) {- f(!0), u(""), h(!1);+ if (!(C || o)) {+ p(!0), u(""), g(!1);try {- let t = await K("/api/library-processing", e, "POST", _.current.signal);- if (_.current.signal.aborted) return;- b.current = t.status, c(t), f(!1), await w();+ let t = await mt("/api/library-processing", e, "POST", v.current.signal);+ if (v.current.signal.aborted) return;+ b.current = t.status, c(t), p(!1), await w();} catch (e) {- _.current.signal.aborted || (u(W(e)), f(!1));+ v.current.signal.aborted || (u(H(e)), p(!1));}}}@@ -805,8 +805,8 @@ function Tt({ data: e, error: t, toast: n, onComplete: r, mode: i, monitor: a, p};if (i === "notice") {if (!l && s.status !== "running" && s.status !== "failed") return null;- let e = l || (s.status === "failed" ? "扫描与资料采集未完成" : xt(s) + (s.total ? ` · ${s.checked || 0} / ${s.total}` : ""));- return /* @__PURE__ */ q("div", { dangerouslySetInnerHTML: { __html: v(e, {+ let e = l || (s.status === "failed" ? "扫描与资料采集未完成" : Ct(s) + (s.total ? ` · ${s.checked || 0} / ${s.total}` : ""));+ return /* @__PURE__ */ W("div", { dangerouslySetInnerHTML: { __html: _(e, {variant: s.status === "failed" ? "error" : l || s.stalled ? "warning" : "gray",href: "/data-cleanup#libraryProcessing",label: l || s.status === "failed" ? "查看并处理" : "查看进度",@@ -824,36 +824,36 @@ function Tt({ data: e, error: t, toast: n, onComplete: r, mode: i, monitor: a, p})),footnote: s.issues_log ? `完整记录:${s.issues_log}` : ""} : null;- return /* @__PURE__ */ q(I, { children: [/* @__PURE__ */ q("section", {+ return /* @__PURE__ */ W(F, { children: [/* @__PURE__ */ W("section", {class: "cleanupfieldset","data-geist-fieldset": !0,"aria-labelledby": "cleanupScrapingTitle",- children: [/* @__PURE__ */ q("div", {+ children: [/* @__PURE__ */ W("div", {class: "geist-fieldset-content library-processing",children: [- /* @__PURE__ */ q("div", { dangerouslySetInnerHTML: { __html: p("cleanupScrapingTitle", "扫描与采集") } }),- /* @__PURE__ */ q("p", { children: "扫描媒体文件夹,导入已有资料,采集缺失信息。两段也可以分开跑:新盘刚接上时先只扫描,几万个文件登记完就能用;采集被网络拖住时只重跑采集,不必再扫一遍磁盘。" }),- s.status === "running" && /* @__PURE__ */ q("div", {+ /* @__PURE__ */ W("div", { dangerouslySetInnerHTML: { __html: f("cleanupScrapingTitle", "扫描与采集") } }),+ /* @__PURE__ */ W("p", { children: "扫描媒体文件夹,导入已有资料,采集缺失信息。两段也可以分开跑:新盘刚接上时先只扫描,几万个文件登记完就能用;采集被网络拖住时只重跑采集,不必再扫一遍磁盘。" }),+ s.status === "running" && /* @__PURE__ */ W("div", {"aria-live": "polite",- dangerouslySetInnerHTML: { __html: pt(s.total ? `${xt(s)} · ${s.checked || 0} / ${s.total} 个视频` : xt(s), s.checked, s.total) }+ dangerouslySetInnerHTML: { __html: ht(s.total ? `${Ct(s)} · ${s.checked || 0} / ${s.total} 个视频` : Ct(s), s.checked, s.total) }})]- }), /* @__PURE__ */ q("footer", {+ }), /* @__PURE__ */ W("footer", {class: "geist-fieldset-footer","data-geist-fieldset-footer": !0,children: [- /* @__PURE__ */ q(_t, {+ /* @__PURE__ */ W(yt, {href: "/scraping",children: "来源和凭证"}),- !!s.candidates && /* @__PURE__ */ q(_t, {+ !!s.candidates && /* @__PURE__ */ W(yt, {href: "/review",children: "复核资料"}),- (s.status !== "failed" || !k) && /* @__PURE__ */ q(vt, {+ (s.status !== "failed" || !k) && /* @__PURE__ */ W(bt, {id: "libraryProcessingMenu",label: "更多扫描与采集方式",- busy: S,+ busy: C,actions: [{label: "扫描并补全资料",@@ -874,39 +874,39 @@ function Tt({ data: e, error: t, toast: n, onComplete: r, mode: i, monitor: a, p})]})]- }), /* @__PURE__ */ q("div", {+ }), /* @__PURE__ */ W("div", {class: "library-processing-outcome","aria-live": "polite",ref: x,children: [- s.status === "running" && s.stalled && /* @__PURE__ */ q("div", {+ s.status === "running" && s.stalled && /* @__PURE__ */ W("div", {class: "library-processing-stalled",- dangerouslySetInnerHTML: { __html: g("这个项目处理时间较长,暂时没有新进展。可以继续等待,或在任务结束后重试未完成项。", {+ dangerouslySetInnerHTML: { __html: h("这个项目处理时间较长,暂时没有新进展。可以继续等待,或在任务结束后重试未完成项。", {variant: "warning",label: "处理较慢",filled: !0}) }}),- (l || s.status === "failed") && /* @__PURE__ */ q("div", {+ (l || s.status === "failed") && /* @__PURE__ */ W("div", {role: "alert",onClick: (e) => {e.target.closest("[data-note-action]") && D();},- dangerouslySetInnerHTML: { __html: g(l || s.error || "处理未完成,请重试", {+ dangerouslySetInnerHTML: { __html: h(l || s.error || "处理未完成,请重试", {variant: "error",filled: !0,actionLabel: k ? "重试未完成项" : "",details: A}) }}),- m && /* @__PURE__ */ q("div", {+ m && /* @__PURE__ */ W("div", {class: "library-processing-result",- dangerouslySetInnerHTML: { __html: g(`已扫描 ${s.scanned || 0} 个文件,识别 ${s.identified || 0} 个番号,整理 ${s.candidates || 0} 组资料候选。`, {+ dangerouslySetInnerHTML: { __html: h(`已扫描 ${s.scanned || 0} 个文件,识别 ${s.identified || 0} 个番号,整理 ${s.candidates || 0} 组资料候选。`, {variant: "success",label: "处理完成"}) }}),- s.status === "complete" && A && /* @__PURE__ */ q("div", { dangerouslySetInnerHTML: { __html: g(`${s.issue_count || 0} 项采集记录`, {+ s.status === "complete" && A && /* @__PURE__ */ W("div", { dangerouslySetInnerHTML: { __html: h(`${s.issue_count || 0} 项采集记录`, {variant: "secondary",details: A}) } })@@ -915,13 +915,13 @@ function Tt({ data: e, error: t, toast: n, onComplete: r, mode: i, monitor: a, p}//#endregion//#region src/management.ts-function Et(e) {+function Ot(e) {return e.filter((e) => ["115", "pikpak"].includes(e.location) && (e.roots === void 0 || e.roots.length > 0)).map((e) => e.location);}-function Dt(e, t) {+function kt(e, t) {return t.filter((t) => e.some((e) => e.location === t));}-function Ot() {+function At() {let e = [["人工复核", "square-check-big"],["高清版", "sparkles"],@@ -966,7 +966,7 @@ function Ot() {<div class="resourcesyncfooter geist-fieldset-footer" data-geist-fieldset-footer><button class="resourceaction primary" type="button" disabled>检查文件</button></div></div></section></div>`;}-function kt(e, t = !1, n = !1) {+function jt(e, t = !1, n = !1) {if (t || n) return "";let r = "<svg class=\"externalmark\" viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#i-external-link\"></use></svg>";return `<details class="taste-history-guide"${e ? " open" : ""}>@@ -980,17 +980,17 @@ function kt(e, t = !1, n = !1) {<button type="button" class="geist-button taste-guide-skip">跳过</button></div></details>`;}-var At = "peach-taste-guide-dismissed";-function jt(e, t) {- C(e, ".taste-history-guide", "taste-guide-collapse");+var Mt = "peach-taste-guide-dismissed";+function Nt(e, t) {+ S(e, ".taste-history-guide", "taste-guide-collapse");let n = e.querySelector(".taste-history-guide");n?.querySelector(".taste-guide-skip")?.addEventListener("click", () => {- t.setItem(At, "1"), n.remove();+ t.setItem(Mt, "1"), n.remove();});}//#endregion//#region src/board-state-preview.tsx-var Mt = [+var Pt = [["idle", "待开始"],["loading", "页面加载"],["preparing", "准备任务"],@@ -1002,9 +1002,9 @@ var Mt = [["complete", "任务完成"],["expired", "状态已失效"],["paused", "来源已暂停"]-], J = ({ html: e }) => /* @__PURE__ */ q("div", { dangerouslySetInnerHTML: { __html: e } });-function Nt() {- let [e, t] = B("running"), [n, r] = B(0), [i, a] = B(document.documentElement.dataset.theme === "dark"), [o, s] = B(38), c = {+], G = ({ html: e }) => /* @__PURE__ */ W("div", { dangerouslySetInnerHTML: { __html: e } });+function Ft() {+ let [e, t] = z("running"), [n, r] = z(0), [i, a] = z(document.documentElement.dataset.theme === "dark"), [o, s] = z(38), c = {status: e === "failed" ? "failed" : ["running","preparing",@@ -1026,19 +1026,19 @@ function Nt() {issues_log: e === "failed" ? "peach-data\\state\\library-processing-preview.issues.jsonl" : "",retryable_asset_ids: e === "failed" ? [7] : []}, l = e === "disconnected" ? "连接中断,正在重新读取处理进度" : "";- return /* @__PURE__ */ q("main", {+ return /* @__PURE__ */ W("main", {class: "board-state-preview",children: [- /* @__PURE__ */ q("header", { children: [/* @__PURE__ */ q("div", { children: [/* @__PURE__ */ q("h1", { children: "运行状态预览" }), /* @__PURE__ */ q("p", { children: "演示数据 · 不连接任务接口,不执行扫描或写入。" })] }), /* @__PURE__ */ q("button", {+ /* @__PURE__ */ W("header", { children: [/* @__PURE__ */ W("div", { children: [/* @__PURE__ */ W("h1", { children: "运行状态预览" }), /* @__PURE__ */ W("p", { children: "演示数据 · 不连接任务接口,不执行扫描或写入。" })] }), /* @__PURE__ */ W("button", {class: "geist-button",onClick: () => {document.documentElement.dataset.theme = i ? "light" : "dark", a(!i);},children: i ? "浅色" : "深色"})] }),- /* @__PURE__ */ q("nav", {+ /* @__PURE__ */ W("nav", {"aria-label": "演示状态",- children: Mt.map(([i, a]) => /* @__PURE__ */ q("button", {+ children: Pt.map(([i, a]) => /* @__PURE__ */ W("button", {class: "geist-button","aria-pressed": e === i,onClick: () => {@@ -1047,29 +1047,29 @@ function Nt() {children: a}))}),- /* @__PURE__ */ q("div", {+ /* @__PURE__ */ W("div", {class: "board-preview-tools",- children: [/* @__PURE__ */ q("label", { children: [+ children: [/* @__PURE__ */ W("label", { children: ["任务进度 ",- /* @__PURE__ */ q("input", {+ /* @__PURE__ */ W("input", {type: "range",min: "0",max: "100",value: o,onInput: (e) => s(Number(e.currentTarget.value))}),- /* @__PURE__ */ q("output", { children: [o, "%"] })- ] }), /* @__PURE__ */ q("button", {+ /* @__PURE__ */ W("output", { children: [o, "%"] })+ ] }), /* @__PURE__ */ W("button", {class: "geist-button",onClick: () => r(n + 1),children: "重播状态"})]}),- /* @__PURE__ */ q("section", {+ /* @__PURE__ */ W("section", {"aria-label": "页面横幅",children: [- /* @__PURE__ */ q("h2", { children: "全局任务横幅" }),- /* @__PURE__ */ q(Tt, {+ /* @__PURE__ */ W("h2", { children: "全局任务横幅" }),+ /* @__PURE__ */ W(Dt, {data: c,error: l,mode: "notice",@@ -1083,17 +1083,17 @@ function Nt() {"retrying","reconnected","failed"- ].includes(e) && /* @__PURE__ */ q("p", { children: "此状态不常驻全局横幅。" })+ ].includes(e) && /* @__PURE__ */ W("p", { children: "此状态不常驻全局横幅。" })]}),- /* @__PURE__ */ q("section", { children: [- /* @__PURE__ */ q("h2", { children: "数据管理 · 扫描与采集" }),- e === "loading" ? /* @__PURE__ */ q(J, { html: Ot() }) : /* @__PURE__ */ q("div", {+ /* @__PURE__ */ W("section", { children: [+ /* @__PURE__ */ W("h2", { children: "数据管理 · 扫描与采集" }),+ e === "loading" ? /* @__PURE__ */ W(G, { html: At() }) : /* @__PURE__ */ W("div", {class: "cleanupgrid",- children: /* @__PURE__ */ q("div", {+ children: /* @__PURE__ */ W("div", {id: "libraryProcessing",class: "cleanupscraping",- children: /* @__PURE__ */ q(Tt, {+ children: /* @__PURE__ */ W(Dt, {data: c,error: l,preview: !0,@@ -1101,52 +1101,52 @@ function Nt() {}, `${e}-${n}-${o}`)})}),- e === "complete" && /* @__PURE__ */ q(J, { html: g("已完成扫描与资料采集", {+ e === "complete" && /* @__PURE__ */ W(G, { html: h("已完成扫描与资料采集", {variant: "success",label: "任务完成"}) }),- e === "expired" && /* @__PURE__ */ q(J, { html: g("任务状态已失效,请重新发起任务", { variant: "warning" }) }),- e === "paused" && /* @__PURE__ */ q("span", {+ e === "expired" && /* @__PURE__ */ W(G, { html: h("任务状态已失效,请重新发起任务", { variant: "warning" }) }),+ e === "paused" && /* @__PURE__ */ W("span", {class: "sbadge paused",children: "已暂停"})] }),- /* @__PURE__ */ q("section", { children: [/* @__PURE__ */ q("h2", { children: "关注检查与资源同步" }), /* @__PURE__ */ q("div", {+ /* @__PURE__ */ W("section", { children: [/* @__PURE__ */ W("h2", { children: "关注检查与资源同步" }), /* @__PURE__ */ W("div", {class: "board-preview-grid",- children: [/* @__PURE__ */ q("article", { children: [/* @__PURE__ */ q("h3", { children: "检查更新" }), /* @__PURE__ */ q(J, { html: e === "disconnected" ? g("暂时无法读取进度,正在重新连接…", { label: "任务状态" }) : e === "failed" ? g("检查失败:来源连接超时", {+ children: [/* @__PURE__ */ W("article", { children: [/* @__PURE__ */ W("h3", { children: "检查更新" }), /* @__PURE__ */ W(G, { html: e === "disconnected" ? h("暂时无法读取进度,正在重新连接…", { label: "任务状态" }) : e === "failed" ? h("检查失败:来源连接超时", {variant: "error",actionLabel: "重试"- }) : e === "running" || e === "retrying" || e === "reconnected" ? Be(`${e === "retrying" ? "第 2/3 次尝试,8 秒后重试 · " : ""}已完成 ${o}/100 个来源`, o, 100) : e === "preparing" ? m("正在准备检查任务…") : g(e === "complete" ? "已完成检查" : e === "paused" ? "已暂停自动检查" : e === "expired" ? "任务状态已失效,请重新发起任务" : "等待开始", { variant: e === "complete" ? "success" : "secondary" }) })] }), /* @__PURE__ */ q("article", { children: [- /* @__PURE__ */ q("h3", { children: "连接与恢复" }),- /* @__PURE__ */ q(J, { html: v(e === "disconnected" ? "暂时无法连接服务器,正在重连" : e === "reconnected" ? "连接已恢复,继续读取任务进度" : "连接正常", {+ }) : e === "running" || e === "retrying" || e === "reconnected" ? Be(`${e === "retrying" ? "第 2/3 次尝试,8 秒后重试 · " : ""}已完成 ${o}/100 个来源`, o, 100) : e === "preparing" ? p("正在准备检查任务…") : h(e === "complete" ? "已完成检查" : e === "paused" ? "已暂停自动检查" : e === "expired" ? "任务状态已失效,请重新发起任务" : "等待开始", { variant: e === "complete" ? "success" : "secondary" }) })] }), /* @__PURE__ */ W("article", { children: [+ /* @__PURE__ */ W("h3", { children: "连接与恢复" }),+ /* @__PURE__ */ W(G, { html: _(e === "disconnected" ? "暂时无法连接服务器,正在重连" : e === "reconnected" ? "连接已恢复,继续读取任务进度" : "连接正常", {variant: e === "disconnected" ? "warning" : "gray",href: "#",label: "查看状态"}) }),- /* @__PURE__ */ q("p", { children: "失去连接只影响进度读取;恢复连接后继续展示任务状态。" })+ /* @__PURE__ */ W("p", { children: "失去连接只影响进度读取;恢复连接后继续展示任务状态。" })] })]})] }),- /* @__PURE__ */ q("section", { children: [/* @__PURE__ */ q("h2", { children: "错误与加载状态一览" }), /* @__PURE__ */ q("div", {+ /* @__PURE__ */ W("section", { children: [/* @__PURE__ */ W("h2", { children: "错误与加载状态一览" }), /* @__PURE__ */ W("div", {class: "board-preview-grid",children: [- /* @__PURE__ */ q("article", { children: [/* @__PURE__ */ q("h3", { children: "读取失败" }), /* @__PURE__ */ q(J, { html: g("无法读取状态,请重试", {+ /* @__PURE__ */ W("article", { children: [/* @__PURE__ */ W("h3", { children: "读取失败" }), /* @__PURE__ */ W(G, { html: h("无法读取状态,请重试", {variant: "error",actionLabel: "重试"}) })] }),- /* @__PURE__ */ q("article", { children: [/* @__PURE__ */ q("h3", { children: "来源离线" }), /* @__PURE__ */ q(J, { html: g("媒体来源离线,请检查挂载状态", { variant: "warning" }) })] }),- /* @__PURE__ */ q("article", { children: [/* @__PURE__ */ q("h3", { children: "没有待处理内容" }), /* @__PURE__ */ q(J, { html: g("没有待处理内容", { variant: "secondary" }) })] }),- /* @__PURE__ */ q("article", { children: [/* @__PURE__ */ q("h3", { children: "等待响应" }), /* @__PURE__ */ q(J, { html: m("正在读取来源状态") })] })+ /* @__PURE__ */ W("article", { children: [/* @__PURE__ */ W("h3", { children: "来源离线" }), /* @__PURE__ */ W(G, { html: h("媒体来源离线,请检查挂载状态", { variant: "warning" }) })] }),+ /* @__PURE__ */ W("article", { children: [/* @__PURE__ */ W("h3", { children: "没有待处理内容" }), /* @__PURE__ */ W(G, { html: h("没有待处理内容", { variant: "secondary" }) })] }),+ /* @__PURE__ */ W("article", { children: [/* @__PURE__ */ W("h3", { children: "等待响应" }), /* @__PURE__ */ W(G, { html: p("正在读取来源状态") })] })]})] })]});}-function Pt(e) {- Ne(ue(Nt, {}), e);+function It(e) {+ Ne(ue(Ft, {}), e);}//#endregion//#region src/board-controls.ts-function Ft(e) {+function Lt(e) {let t = Number(e.min) || 0, n = Number(e.max) || 100, r = Number(e.value), i = n > t ? Math.max(0, Math.min(100, (r - t) / (n - t) * 100)) : 0;e.style.setProperty("--board-range-value", `${i}%`);let a = e.closest(".dual-range");@@ -1156,17 +1156,17 @@ function Ft(e) {let c = a.getBoundingClientRect(), l = s.getBoundingClientRect(), u = l.right > c.right ? c.right - l.right : l.left < c.left ? c.left - l.left : 0;u && s.style.setProperty("--range-tip-shift", `${Math.round(u)}px`), a.querySelectorAll(".board-range-tip").forEach((e) => e.toggleAttribute("data-range-active", e === s));}-function It() {+function Rt() {let e = (e) => {- e.querySelectorAll("input[type=range]").forEach(Ft), Bt(e), Rt(e), Vt(e);+ e.querySelectorAll("input[type=range]").forEach(Lt), Ht(e), Bt(e), Ut(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]") && Ft(t), e(t));+ for (let n of t) for (let t of n.addedNodes) t instanceof Element && (t.matches("input[type=range]") && Lt(t), e(t));}).observe(document.body, {subtree: !0,childList: !0}), document.addEventListener("input", (e) => {- e.target instanceof HTMLInputElement && e.target.type === "range" && Ft(e.target);+ e.target instanceof HTMLInputElement && e.target.type === "range" && Lt(e.target);});let t = document.createElement("div");t.className = "board-tooltip", t.id = "board-control-tooltip", t.role = "tooltip", t.hidden = !0, document.body.append(t);@@ -1187,8 +1187,8 @@ function It() {e.key === "Escape" && o();}), document.addEventListener("scroll", o, !0), window.addEventListener("resize", o);}-var Lt = /* @__PURE__ */ new Map();-function Rt(e) {+var zt = /* @__PURE__ */ new Map();+function Bt(e) {let t = ".managebar-menu,.board-local-nav:not(.settingscard>.board-local-nav)", n = [...e.querySelectorAll(t)];e instanceof HTMLElement && e.matches(t) && n.push(e), n.forEach((e) => {if (e.hasAttribute("data-board-tabs")) return;@@ -1202,8 +1202,8 @@ function Rt(e) {left: r.offsetLeft,width: r.offsetWidth};- n(i), Lt.set(t, i);- }, i = Lt.get(t);+ n(i), zt.set(t, i);+ }, i = zt.get(t);i ? n(i) : r(), requestAnimationFrame(() => {e.classList.add("board-tabs-ready"), requestAnimationFrame(r);});@@ -1223,15 +1223,15 @@ function Rt(e) {o.observe(e);});}-var zt = /* @__PURE__ */ new Map();-function Bt(e) {+var Vt = /* @__PURE__ */ new Map();+function Ht(e) {let t = ".iconswitch,.insightswitch,.insighttabs,.follow-workspace-switch", n = [...e.querySelectorAll(t)];e instanceof HTMLElement && e.matches(t) && n.push(e), n.forEach((e) => {if (e.hasAttribute("data-board-segments") || e.closest("[data-skeleton]")) return;e.dataset.boardSegments = "true";let t = document.createElement("span");t.className = "board-segment-thumb", t.setAttribute("aria-hidden", "true"), e.prepend(t);- let n = e.className + (e.getAttribute("aria-label") ?? ""), r = zt.get(n) ?? null, i = () => {+ let n = e.className + (e.getAttribute("aria-label") ?? ""), r = Vt.get(n) ?? null, i = () => {let i = e.querySelector("label:has(input:checked),button[aria-selected=true]");if (!i || !i.offsetWidth) return;let a = {@@ -1240,7 +1240,7 @@ function Bt(e) {w: i.offsetWidth,h: i.offsetHeight};- h(t, r, a, "x"), r = a, zt.set(n, a);+ m(t, r, a, "x"), r = a, Vt.set(n, a);};e.addEventListener("change", i);let a = new MutationObserver(i);@@ -1259,7 +1259,7 @@ function Bt(e) {o.observe(e), i(), requestAnimationFrame(() => e.classList.add("board-segments-ready"));});}-function Vt(e) {+function Ut(e) {let t = ".board-ranked-chart,.board-radar,.tasteranks,.board-heat-card,.board-sankey-card", n = [...e.querySelectorAll(t)];e instanceof HTMLElement && e.matches(t) && n.push(e), n.forEach((e) => {if (e.hasAttribute("data-board-chart")) return;@@ -1277,7 +1277,7 @@ function Vt(e) {n.observe(e);});}-function Ht(e) {+function Wt(e) {e.querySelectorAll(".tasteranks,.insightranking").forEach((e, t) => {if (e.children.length <= 5 || e.parentElement?.hasAttribute("data-expandable-ranks")) return;let n = document.createElement("div");@@ -1299,7 +1299,7 @@ function Ht(e) {}//#endregion//#region node_modules/d3-array/src/max.js-function Ut(e, t) {+function Gt(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 {@@ -1310,7 +1310,7 @@ function Ut(e, t) {}//#endregion//#region node_modules/d3-array/src/min.js-function Wt(e, t) {+function Kt(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 {@@ -1321,7 +1321,7 @@ function Wt(e, t) {}//#endregion//#region node_modules/d3-array/src/sum.js-function Gt(e, t) {+function qt(e, t) {let n = 0;if (t === void 0) for (let t of e) (t = +t) && (n += t);else {@@ -1332,66 +1332,66 @@ function Gt(e, t) {}//#endregion//#region node_modules/d3-sankey/src/align.js-function Kt(e, t) {+function Jt(e, t) {return e.sourceLinks.length ? e.depth : t - 1;}//#endregion//#region node_modules/d3-sankey/src/constant.js-function qt(e) {+function Yt(e) {return function() {return e;};}//#endregion//#region node_modules/d3-sankey/src/sankey.js-function Jt(e, t) {- return Xt(e.source, t.source) || e.index - t.index;+function Xt(e, t) {+ return Qt(e.source, t.source) || e.index - t.index;}-function Yt(e, t) {- return Xt(e.target, t.target) || e.index - t.index;+function Zt(e, t) {+ return Qt(e.target, t.target) || e.index - t.index;}-function Xt(e, t) {+function Qt(e, t) {return e.y0 - t.y0;}-function Zt(e) {+function $t(e) {return e.value;}-function Qt(e) {+function en(e) {return e.index;}-function $t(e) {+function tn(e) {return e.nodes;}-function en(e) {+function nn(e) {return e.links;}-function tn(e, t) {+function rn(e, t) {let n = e.get(t);if (!n) throw Error("missing: " + t);return n;}-function nn({ nodes: e }) {+function an({ 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 rn() {- let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = Qt, c = Kt, l, u, d = $t, f = en, p = 6;+function on() {+ let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = en, c = Jt, l, u, d = tn, f = nn, 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), nn(e), e;+ return h(e), g(e), _(e), v(e), x(e), an(e), e;}m.update = function(e) {- return nn(e), e;+ return an(e), e;}, m.nodeId = function(e) {- return arguments.length ? (s = typeof e == "function" ? e : qt(e), m) : s;+ return arguments.length ? (s = typeof e == "function" ? e : Yt(e), m) : s;}, m.nodeAlign = function(e) {- return arguments.length ? (c = typeof e == "function" ? e : qt(e), m) : c;+ return arguments.length ? (c = typeof e == "function" ? e : Yt(e), m) : c;}, m.nodeSort = function(e) {return arguments.length ? (l = e, m) : l;}, m.nodeWidth = function(e) {@@ -1399,9 +1399,9 @@ function rn() {}, m.nodePadding = function(e) {return arguments.length ? (a = o = +e, m) : a;}, m.nodes = function(e) {- return arguments.length ? (d = typeof e == "function" ? e : qt(e), m) : d;+ return arguments.length ? (d = typeof e == "function" ? e : Yt(e), m) : d;}, m.links = function(e) {- return arguments.length ? (f = typeof e == "function" ? e : qt(e), m) : f;+ return arguments.length ? (f = typeof e == "function" ? e : Yt(e), m) : f;}, m.linkSort = function(e) {return arguments.length ? (u = e, m) : u;}, m.size = function(i) {@@ -1417,12 +1417,12 @@ function rn() {for (let [e, r] of t.entries()) {r.index = e;let { source: t, target: i } = r;- typeof t != "object" && (t = r.source = tn(n, t)), typeof i != "object" && (i = r.target = tn(n, i)), t.sourceLinks.push(r), i.targetLinks.push(r);+ typeof t != "object" && (t = r.source = rn(n, t)), typeof i != "object" && (i = r.target = rn(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(Gt(t.sourceLinks, Zt), Gt(t.targetLinks, Zt)) : t.fixedValue;+ for (let t of e) t.value = t.fixedValue === void 0 ? Math.max(qt(t.sourceLinks, $t), qt(t.targetLinks, $t)) : t.fixedValue;}function _({ nodes: e }) {let t = e.length, n = new Set(e), r = /* @__PURE__ */ new Set(), i = 0;@@ -1447,7 +1447,7 @@ function rn() {}}function y({ nodes: t }) {- let r = Ut(t, (e) => e.depth) + 1, a = (n - e - i) / (r - 1), o = Array(r);+ let r = Gt(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];@@ -1456,7 +1456,7 @@ function rn() {return o;}function b(e) {- let n = Wt(e, (e) => (r - t - (e.length - 1) * o) / Gt(e, Zt));+ let n = Kt(e, (e) => (r - t - (e.length - 1) * o) / qt(e, $t));for (let i of e) {let e = t;for (let t of i) {@@ -1473,7 +1473,7 @@ function rn() {}function x(e) {let n = y(e);- o = Math.min(a, (r - t) / (Ut(n, (e) => e.length) - 1)), b(n);+ o = Math.min(a, (r - t) / (Gt(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);@@ -1492,7 +1492,7 @@ function rn() {let i = (n / r - e.y0) * t;e.y0 += i, e.y1 += i, D(e);}- l === void 0 && i.sort(Xt), w(i, n);+ l === void 0 && i.sort(Qt), w(i, n);}}function C(e, t, n) {@@ -1508,7 +1508,7 @@ function rn() {let i = (n / r - e.y0) * t;e.y0 += i, e.y1 += i, D(e);}- l === void 0 && i.sort(Xt), w(i, n);+ l === void 0 && i.sort(Qt), w(i, n);}}function w(e, n) {@@ -1529,12 +1529,12 @@ function rn() {}function D({ sourceLinks: e, targetLinks: t }) {if (u === void 0) {- for (let { source: { sourceLinks: e } } of t) e.sort(Yt);- for (let { target: { targetLinks: t } } of e) t.sort(Jt);+ for (let { source: { sourceLinks: e } } of t) e.sort(Zt);+ for (let { target: { targetLinks: t } } of e) t.sort(Xt);}}function O(e) {- if (u === void 0) for (let { sourceLinks: t, targetLinks: n } of e) t.sort(Yt), n.sort(Jt);+ if (u === void 0) for (let { sourceLinks: t, targetLinks: n } of e) t.sort(Zt), n.sort(Xt);}function k(e, t) {let n = e.y0 - (e.sourceLinks.length - 1) * o / 2;@@ -1564,15 +1564,15 @@ function rn() {}//#endregion//#region node_modules/d3-path/src/path.js-var an = Math.PI, on = 2 * an, sn = 1e-6, cn = on - sn;-function ln() {+var sn = Math.PI, cn = 2 * sn, K = 1e-6, ln = cn - K;+function un() {this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "";}-function un() {- return new ln();+function dn() {+ return new un();}-ln.prototype = un.prototype = {- constructor: ln,+un.prototype = dn.prototype = {+ constructor: un,moveTo: function(e, t) {this._ += "M" + (this._x0 = this._x1 = +e) + "," + (this._y0 = this._y1 = +t);},@@ -1593,11 +1593,11 @@ ln.prototype = un.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 > sn) {- if (!(Math.abs(u * s - c * l) > sn) || !i) this._ += "L" + (this._x1 = e) + "," + (this._y1 = t);+ else if (d > K) {+ if (!(Math.abs(u * s - c * l) > K) || !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((an - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;- Math.abs(y - 1) > sn && (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((sn - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;+ Math.abs(y - 1) > K && (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);}}},@@ -1605,7 +1605,7 @@ ln.prototype = un.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) > sn || Math.abs(this._y1 - l) > sn) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % on + on), d > cn ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > sn && (this._ += "A" + n + "," + n + ",0," + +(d >= an) + "," + 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) > K || Math.abs(this._y1 - l) > K) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % cn + cn), d > ln ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > K && (this._ += "A" + n + "," + n + ",0," + +(d >= sn) + "," + 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";@@ -1616,71 +1616,71 @@ ln.prototype = un.prototype = {};//#endregion//#region node_modules/d3-shape/src/constant.js-function dn(e) {+function fn(e) {return function() {return e;};}//#endregion//#region node_modules/d3-shape/src/point.js-function fn(e) {+function pn(e) {return e[0];}-function pn(e) {+function mn(e) {return e[1];}//#endregion//#region node_modules/d3-shape/src/array.js-var mn = Array.prototype.slice;+var hn = Array.prototype.slice;//#endregion//#region node_modules/d3-shape/src/link/index.js-function hn(e) {+function gn(e) {return e.source;}-function gn(e) {+function _n(e) {return e.target;}-function _n(e) {- var t = hn, n = gn, r = fn, i = pn, a = null;+function vn(e) {+ var t = gn, n = _n, r = pn, i = mn, a = null;function o() {- var o, s = mn.call(arguments), c = t.apply(this, s), l = n.apply(this, s);- if (a ||= o = un(), 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 = hn.call(arguments), c = t.apply(this, s), l = n.apply(this, s);+ if (a ||= o = dn(), 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 : dn(+e), o) : r;+ return arguments.length ? (r = typeof e == "function" ? e : fn(+e), o) : r;}, o.y = function(e) {- return arguments.length ? (i = typeof e == "function" ? e : dn(+e), o) : i;+ return arguments.length ? (i = typeof e == "function" ? e : fn(+e), o) : i;}, o.context = function(e) {return arguments.length ? (a = e ?? null, o) : a;}, o;}-function vn(e, t, n, r, i) {+function yn(e, t, n, r, i) {e.moveTo(t, n), e.bezierCurveTo(t = (t + r) / 2, n, t, i, r, i);}-function yn() {- return _n(vn);+function bn() {+ return vn(yn);}//#endregion//#region node_modules/d3-sankey/src/sankeyLinkHorizontal.js-function bn(e) {+function xn(e) {return [e.source.x1, e.y0];}-function xn(e) {+function Sn(e) {return [e.target.x0, e.y1];}-function Sn() {- return yn().source(bn).target(xn);+function Cn() {+ return bn().source(xn).target(Sn);}//#endregion//#region src/board-sankey.ts-function Cn(e = []) {+function wn(e = []) {let n = e.filter((e) => e.source && e.target && Number.isFinite(e.value) && e.value > 0);if (!n.length) return "";- let r = [...new Set(n.map((e) => e.source))], i = [...new Set(n.map((e) => e.target))], a = rn().nodeId((e) => e.id).nodeWidth(10).nodePadding(22).extent([[155, 16], [535, 404]])({+ let r = [...new Set(n.map((e) => e.source))], i = [...new Set(n.map((e) => e.target))], a = on().nodeId((e) => e.id).nodeWidth(10).nodePadding(22).extent([[155, 16], [535, 404]])({nodes: [...r.map((e) => ({id: `source:${e}`,name: e,@@ -1695,13 +1695,13 @@ function Cn(e = []) {target: `target:${e.target}`,value: e.value}))- }), o = n.reduce((e, t) => e + t.value, 0), s = Sn(), c = a.links.map((e) => {+ }), o = n.reduce((e, t) => e + t.value, 0), s = Cn(), c = a.links.map((e) => {let n = e.source, i = e.target;return `<path d="${s(e)}" stroke-width="${Math.max(.5, e.width || 0)}" style="--flow-color:var(--board-chart-${r.indexOf(n.name) % 6})" data-flow-source="${n.index}" data-flow-target="${i.index}" data-flow-value="${e.value}" data-flow-label="${t(n.name)} → ${t(i.name)}" tabindex="0" role="img" aria-label="${t(n.name)} → ${t(i.name)}:${e.value} 条线索"/>`;}).join(""), l = a.nodes.map((e) => `<g data-flow-node="${e.index}" data-flow-value="${e.value}" data-flow-label="${t(e.name)}" tabindex="0" role="img" aria-label="${t(e.name)}:${e.value} 条线索"><rect x="${e.x0}" y="${e.y0}" width="10" height="${Math.max(1, (e.y1 || 0) - (e.y0 || 0))}" rx="5" fill="${e.side === "source" ? `var(--board-chart-${r.indexOf(e.name) % 6})` : "var(--color-text-secondary)"}"/><text x="${e.side === "source" ? 145 : 545}" y="${((e.y0 || 0) + (e.y1 || 0)) / 2}" text-anchor="${e.side === "source" ? "end" : "start"}" dominant-baseline="middle">${t(e.name.length > 18 ? e.name.slice(0, 16) + "…" : e.name)}<tspan x="${e.side === "source" ? 145 : 545}" dy="15">${e.side === "source" ? e.value?.toLocaleString() : ((e.value || 0) / o * 100).toFixed(1) + "%"}</tspan></text></g>`).join("");return `<section class="board-sankey-card" data-sankey-card><header><h3>创作者线索来源</h3><b data-sankey-number>${o.toLocaleString()}</b><span data-sankey-label>条线索</span></header><div class="board-sankey-scroll"><svg viewBox="0 0 720 435" aria-label="来源网站与创作者线索"><g class="board-sankey-links">${c}</g><g class="board-sankey-nodes">${l}</g></svg></div><footer><span>来源网站</span><span>创作者 · 线索占比</span></footer></section>`;}-function wn(e) {+function Tn(e) {e.querySelectorAll("[data-sankey-card]").forEach((e) => {let t = [...e.querySelectorAll("[data-flow-source]")], n = [...e.querySelectorAll("[data-flow-node]")], r = e.querySelector("[data-sankey-number]"), i = e.querySelector("[data-sankey-label]"), a = r.textContent, o = () => {t.forEach((e) => e.style.opacity = ""), n.forEach((e) => e.style.opacity = ""), r.textContent = a, i.textContent = "条线索";@@ -1717,9 +1717,9 @@ function wn(e) {}//#endregion//#region src/board-analytics.ts-var Tn = (e) => Number.isFinite(e) && e >= 0;-function En(e, n, r = "个视频") {- let i = e.filter((e) => Tn(e.value));+var En = (e) => Number.isFinite(e) && e >= 0;+function Dn(e, n, r = "个视频") {+ let i = e.filter((e) => En(e.value));if (!i.length) return "";let a = i.reduce((e, t) => e + t.value, 0), o = Math.max(1, ...i.map((e) => e.value)) * 1.1, s = Math.min(22, 110 / Math.max(1, i.length)), c = Math.min(15, s * .68), l = i.map((e, n) => {let i = 32 + n * s, a = e.value / o * 100;@@ -1727,7 +1727,7 @@ function En(e, n, r = "个视频") {}).join("");return `<section class="board-radial-card" data-radial-card data-radial-total="${a}" data-radial-title="${t(n)}"><header><span data-radial-label>${t(n)}</span><b data-radial-number>${a.toLocaleString()}</b><small>${t(r)}</small></header><svg class="board-rings" viewBox="0 0 320 320" aria-label="${t(n)}">${l}</svg><div class="board-radial-tiles">${i.map((e, n) => `<button type="button" data-radial-tile="${n}" data-radial-value="${e.value}" data-radial-name="${t(e.name)}" aria-pressed="false" style="--ring-color:var(--board-chart-${n % 6})"><span><i aria-hidden="true"></i>${t(e.name)}</span><b>${e.value.toLocaleString()}</b>${e.detail ? `<small>${t(e.detail)}</small>` : ""}</button>`).join("")}</div></section>`;}-function Dn(e) {+function On(e) {e.querySelectorAll("[data-radial-card]").forEach((e) => {let t = [...e.querySelectorAll("[data-radial-tile]")], n = [...e.querySelectorAll("[data-radial-ring]")], r = e.querySelector("[data-radial-number]"), i = e.querySelector("[data-radial-label]"), a = -1, o = 0, s = 0, c = (c, l = 300) => {e.dataset.radialFocus = String(c), t.forEach((e, t) => {@@ -1764,7 +1764,7 @@ function Dn(e) {}});}-var On = [+var kn = ["周一","周二","周三",@@ -1773,11 +1773,11 @@ var On = ["周六","周日"];-function kn(e) {+function An(e) {if (!e?.days?.length) return "<section class=\"board-activity-empty\"><h3>浏览活跃时间</h3><p>还没有可用于分析的口味网站访问记录。</p></section>";let n = Array.from({ length: 7 }, () => Array(24).fill(0));- for (let t of e.hours || []) Number.isInteger(t.weekday) && t.weekday >= 0 && t.weekday < 7 && Number.isInteger(t.hour) && t.hour >= 0 && t.hour < 24 && Tn(t.count) && (n[t.weekday][t.hour] = (n[t.weekday][t.hour] || 0) + t.count);- let r = Math.max(1, ...n.flat()), i = n.flat().reduce((e, t) => e + t, 0), a = n.map((e, t) => `<span class="board-heat-axis">${On[t]}</span>${e.map((e, n) => `<button type="button" data-heat-value="${e}" data-heat-label="${On[t]} ${n}:00" aria-label="${On[t]} ${n}:00,${e} 次访问" style="--heat:${e ? Math.max(12, e / r * 100) : 0}%"></button>`).join("")}`).join(""), o = e.days.filter((e) => /^\d{4}-\d{2}-\d{2}$/.test(e.date) && Tn(e.count)).sort((e, t) => e.date.localeCompare(t.date));+ for (let t of e.hours || []) Number.isInteger(t.weekday) && t.weekday >= 0 && t.weekday < 7 && Number.isInteger(t.hour) && t.hour >= 0 && t.hour < 24 && En(t.count) && (n[t.weekday][t.hour] = (n[t.weekday][t.hour] || 0) + t.count);+ let r = Math.max(1, ...n.flat()), i = n.flat().reduce((e, t) => e + t, 0), a = n.map((e, t) => `<span class="board-heat-axis">${kn[t]}</span>${e.map((e, n) => `<button type="button" data-heat-value="${e}" data-heat-label="${kn[t]} ${n}:00" aria-label="${kn[t]} ${n}:00,${e} 次访问" style="--heat:${e ? Math.max(12, e / r * 100) : 0}%"></button>`).join("")}`).join(""), o = e.days.filter((e) => /^\d{4}-\d{2}-\d{2}$/.test(e.date) && En(e.count)).sort((e, t) => e.date.localeCompare(t.date));if (!o.length) return "";let s = /* @__PURE__ */ new Date(`${o.at(-1).date}T00:00:00Z`), c = new Date(s);c.setUTCDate(c.getUTCDate() - 90);@@ -1789,7 +1789,7 @@ function kn(e) {}).join("");return `<div class="board-activity-charts"><section class="board-heat-card" data-heat-card><header><h3>浏览活跃时间</h3><b data-heat-number>${i.toLocaleString()}</b><span data-heat-title data-heat-default="口味网站访问">口味网站访问</span></header><div class="board-heat-scroll"><div class="board-hour-grid"><span></span>${Array.from({ length: 24 }, (e, t) => `<span class="board-heat-axis">${t % 2 ? "" : t}</span>`).join("")}${a}</div></div><footer>星期 × 小时<span>${t(e.timezone || "UTC+08:00")}</span></footer></section><section class="board-heat-card" data-heat-card><header><h3>每日活跃</h3><b data-heat-number>${o.filter((e) => e.date >= c.toISOString().slice(0, 10)).reduce((e, t) => e + t.count, 0).toLocaleString()}</b><span data-heat-title data-heat-default="口味网站访问">口味网站访问</span></header><div class="board-day-grid">${d}</div><footer>${c.toISOString().slice(0, 10)}<span>${o.at(-1).date}</span></footer></section></div>`;}-function An(e) {+function jn(e) {e.querySelectorAll("[data-heat-card]").forEach((e) => {let t = e.querySelector("[data-heat-number]"), n = e.querySelector("[data-heat-title]"), r = t.textContent;e.querySelectorAll("[data-heat-value]").forEach((e) => {@@ -1804,19 +1804,19 @@ function An(e) {}//#endregion//#region src/sidebar-groups.ts-var jn = (e) => e.replace(/[&<>"']/g, (e) => ({+var Mn = (e) => e.replace(/[&<>"']/g, (e) => ({"&": "&","<": "<",">": ">","\"": ""","'": "'"})[e]);-function Mn(e, t, n = "", r = "") {+function Nn(e, t, n = "", r = "") {if (!t) return "";let i = `sidebar-group-${encodeURIComponent(e)}`;- return `<details class="sec${r ? " cat-" + jn(r) : ""}" data-sidebar-group="${jn(e)}"><summary role="button" class="board-section-toggle"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-chevron-right"/></svg><span>${jn(e)}</span></summary><div class="board-sidebar-body" id="${i}">${t}${n}</div></details>`;+ return `<details class="sec${r ? " cat-" + Mn(r) : ""}" data-sidebar-group="${Mn(e)}"><summary role="button" class="board-section-toggle"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-chevron-right"/></svg><span>${Mn(e)}</span></summary><div class="board-sidebar-body" id="${i}">${t}${n}</div></details>`;}-function Nn(e) {+function Pn(e) {e.querySelectorAll("[data-sidebar-group]").forEach((e) => {if (e.dataset.sidebarWired) return;e.dataset.sidebarWired = "true";@@ -1826,7 +1826,7 @@ function Nn(e) {} catch {}let i = !!t.querySelector("[aria-pressed=true]");e.open = r === null ? i : r === "open";- }), C(e, "details[data-sidebar-group]", "sidebar-collapse"), e.querySelectorAll(".board-section-toggle").forEach((e) => {+ }), S(e, "details[data-sidebar-group]", "sidebar-collapse"), e.querySelectorAll(".board-section-toggle").forEach((e) => {e.dataset.persistWired || (e.dataset.persistWired = "true", e.addEventListener("click", () => {let t = `peach.sidebar.group.${e.closest("[data-sidebar-group]").dataset.sidebarGroup}`;try {@@ -1835,15 +1835,15 @@ function Nn(e) {}));});}-var Pn = !1;-async function Fn(e, t) {- if (Pn) return;+var Fn = !1;+async function In(e, t) {+ if (Fn) 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}}`, Pn = !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}}`, Fn = !0, document.head.append(o);let s = document.documentElement;s.dataset.themeSnapshot = "true";let c = !1, l = () => {@@ -1854,109 +1854,19 @@ async function Fn(e, t) {} catch {l();} finally {- delete s.dataset.themeSnapshot, o.remove(), Pn = !1;+ delete s.dataset.themeSnapshot, o.remove(), Fn = !1;}}//#endregion-//#region src/settings-controls.tsx-function In({ value: e, options: t, label: n, onChange: r, disabled: i = !1, className: a = "", fixed: o = !1 }) {- let s = U(null), c = U(null), l = U(r);- l.current = r;- let u = JSON.stringify(t);- return H(() => {- let r = s.current;- r.innerHTML = y(t, e, {- label: n,- className: "configselect",- attr: o ? "data-fixed-width" : ""- });- let i = w(r.firstElementChild);- c.current = i;- let a = () => l.current(i.value);- return i.addEventListener("change", a), () => {- i.disabled = !0, i.removeEventListener("change", a), c.current = null, r.replaceChildren();- };- }, [- u,- n,- o- ]), H(() => {- c.current && (c.current.value = e, c.current.disabled = i);- }, [- e,- i,- u,- n,- o- ]), /* @__PURE__ */ q("div", {- ref: s,- class: a- });-}-function Ln(e, t = "") {- let n = U(!1), r = U(new AbortController()), [i, a] = B(t);- V(() => () => r.current.abort(), []);- async function o(t, i, o) {- if (!(n.current || r.current.signal.aborted)) {- n.current = !0, a(""), x(e.current, !0);- try {- let e = await t(r.current.signal);- r.current.signal.aborted || i(e);- } catch (e) {- r.current.signal.aborted || (o ? o(e) : a(W(e)));- } finally {- n.current = !1, r.current.signal.aborted || x(e.current, !1);- }- }- }- return {- run: o,- error: i,- setError: a,- busy: n- };-}-function Rn({ id: e, titleId: t, title: n, help: r, error: i, children: a, footer: o, onSubmit: s, formRef: c, noValidate: l, warning: u }) {- return /* @__PURE__ */ q("form", {- id: e,- class: "configfieldset",- "data-geist-fieldset": !0,- "data-fieldset-type": u ? "warning" : void 0,- "aria-labelledby": t,- onSubmit: s,- ref: c ?? null,- noValidate: l,- children: [/* @__PURE__ */ q("div", {- class: "geist-fieldset-content",- children: [- /* @__PURE__ */ q("div", {- class: "configfieldset-heading",- children: [/* @__PURE__ */ q("div", { dangerouslySetInnerHTML: { __html: p(t, n) } }), r && /* @__PURE__ */ q("p", {- class: "confighelp",- children: r- })]- }),- a,- i && /* @__PURE__ */ q("p", {- class: "configbad",- role: "alert",- children: i- })- ]- }), o && /* @__PURE__ */ q("footer", {- class: "geist-fieldset-footer",- "data-geist-fieldset-footer": !0,- children: o- })]- });-}+//#region src/configuration-endpoints.ts+var Ln = "/api/configuration";//#endregion//#region src/react-slot.tsx-function zn({ mount: e, props: t }) {- let n = U(null), r = U(null), i = U(t);+function Rn({ mount: e, props: t }) {+ let n = V(null), r = V(null), i = V(t);i.current = t;- let [a, o] = B("");- return V(() => {+ let [a, o] = z("");+ return B(() => {let t = !1;return import("/dist/peach-react.js").then((a) => {if (t || !n.current) return;@@ -1967,1261 +1877,89 @@ function zn({ mount: e, props: t }) {}), () => {t = !0, r.current?.unmount(), r.current = null;};- }, [e]), V(() => {+ }, [e]), B(() => {r.current?.update(t);- }), a ? /* @__PURE__ */ q("p", {+ }), a ? /* @__PURE__ */ W("p", {class: "configbad",role: "alert",children: ["界面组件没有加载:", a]- }) : /* @__PURE__ */ q("div", {+ }) : /* @__PURE__ */ W("div", {ref: n,class: "peach-react"});}//#endregion-//#region src/islands/release-updates.tsx-var Bn = /* @__PURE__ */ new Set([- "downloading",- "verifying",- "extracting",- "preparing",- "restarting",- "installing"-]);-function Vn({ initial: e, initialJob: t }) {- let [n, r] = B(e), [i, a] = B(t || {- state: "idle",- progress: 0- }), [o, s] = B(""), c = U(null), l = U(!0), u = U(!1), f = U(null);- V(() => {- x(f.current, Bn.has(i.state));- }, [i.state]), V(() => () => {- l.current = !1, c.current?.abort();- }, []);- let m = async () => {- let e = await K("/api/configuration/update-restart", {});- l.current && a(e);- };- V(() => {- i.state !== "ready" || u.current || (u.current = !0, d({- title: "更新已准备好",- body: `Peach ${i.version || ""} 将在重启后安装。`,- confirmLabel: "立即重启",- cancelLabel: "稍后",- onConfirm: m- }));- }, [i.state]), V(() => {- let e = new AbortController(), t, n = 0, o = async () => {- try {- let t = await G("/api/configuration/update-status", e.signal);- if (!e.signal.aborted) {- a(t), n = 0, t.state === "complete" && r((e) => ({- ...e,- current_version: t.version || e.current_version,- state: "current",- message: "已是最新测试版。"- }));- let i = await G("/api/configuration/automatic-updates", e.signal);- !e.signal.aborted && i.result && r(i.result);- }- } catch {- ++n >= 120 && !e.signal.aborted && s("尚未连接到 Peach,请检查托盘后刷新页面。");- }- !e.signal.aborted && n < 120 && (t = setTimeout(o, Bn.has(i.state) ? 1e3 : 3e4));- };- return t = setTimeout(o, Bn.has(i.state) ? 1e3 : 3e4), () => {- e.abort(), clearTimeout(t);- };- }, [i.state]);- let h = async (e) => {- if (c.current || Bn.has(i.state)) return;- let t = new AbortController();- c.current = t, u.current = !1, s(""), x(e, !0);- try {- let e = await K("/api/configuration/update", {}, "POST", t.signal);- t.signal.aborted || a(e);- } catch (e) {- t.signal.aborted || s(W(e));- } finally {- c.current = null, x(e, !1);- }- }, v = async (t) => {- if (c.current) return;- let n = new AbortController();- c.current = n, x(t, !0), s("");- try {- let e = await G("/api/configuration/updates", n.signal);- n.signal.aborted || r(e);- } catch (t) {- n.signal.aborted || (r({- ...e,- state: "error"- }), s(W(t)));- } finally {- c.current = null, x(t, !1);- }- };- return /* @__PURE__ */ q("section", {- class: "configfieldset",- "data-geist-fieldset": !0,- "aria-labelledby": "configUpdatesTitle",- children: [/* @__PURE__ */ q("div", {- class: "geist-fieldset-content",- children: [- /* @__PURE__ */ q("div", { dangerouslySetInnerHTML: { __html: p("configUpdatesTitle", "检查更新") } }),- /* @__PURE__ */ q("dl", {- class: "configfacts",- children: [- /* @__PURE__ */ q("dt", { children: "当前版本" }),- /* @__PURE__ */ q("dd", { children: n.current_version }),- /* @__PURE__ */ q("dt", { children: "安装方式" }),- /* @__PURE__ */ q("dd", { children: n.installation }),- /* @__PURE__ */ q("dt", { children: "更新通道" }),- /* @__PURE__ */ q("dd", { children: n.channel }),- /* @__PURE__ */ q("dt", { children: "最新版本" }),- /* @__PURE__ */ q("dd", { children: n.latest_version || (n.state === "unchecked" ? "尚未检查" : "未取得") })- ]- }),- n.checked_at ? /* @__PURE__ */ q("p", {- class: "confighelp",- children: ["检查于 ", (/* @__PURE__ */ new Date(n.checked_at * 1e3)).toLocaleString()]- }) : null,- n.state === "available" && !o ? /* @__PURE__ */ q("div", {- role: "status",- dangerouslySetInnerHTML: { __html: g(n.message, { label: "有可用更新" }) }- }) : /* @__PURE__ */ q("p", {- class: o || n.state === "error" ? "configbad" : "confighelp",- role: o || n.state === "error" ? "alert" : "status",- children: o || n.message- }),- i.state === "idle" ? null : /* @__PURE__ */ q("div", {- "aria-live": "polite",- children: [/* @__PURE__ */ q("p", {- class: i.state === "error" ? "configbad" : "confighelp",- children: i.message- }), i.state === "error" ? null : /* @__PURE__ */ q(I, { children: [- /* @__PURE__ */ q("div", { dangerouslySetInnerHTML: { __html: _("更新准备进度:下载、校验、解压、准备安装", i.progress, 100, { stops: [- {- value: 65,- label: "下载结束"- },- {- value: 67,- label: "校验结束"- },- {- value: 90,- label: "准备安装"- }- ] }) } }),- /* @__PURE__ */ q("p", {- class: "confighelp",- children: ["下载 → 校验 → 解压 → 准备安装 · ", i.message]- }),- /* @__PURE__ */ q("p", {- class: "confighelp",- children: i.state === "downloading" && i.total ? `${((i.downloaded || 0) / 1048576).toFixed(1)} / ${(i.total / 1048576).toFixed(1)} MB` : `${i.progress}%`- })- ] })]- })- ]- }), /* @__PURE__ */ q("div", {- class: "geist-fieldset-footer",- "data-geist-fieldset-footer": !0,- children: [- /* @__PURE__ */ q("a", {- class: "externallink",- href: n.release_url,- target: "_blank",- rel: "noreferrer",- children: ["查看发布页", /* @__PURE__ */ q("svg", {- class: "externalmark",- viewBox: "0 0 24 24",- "aria-hidden": "true",- children: /* @__PURE__ */ q("use", { href: "#i-external-link" })- })]- }),- i.state === "ready" ? /* @__PURE__ */ q("button", {- type: "button",- class: "geist-button primary",- onClick: () => {- d({- title: "更新已准备好",- body: `Peach ${i.version || ""} 将在重启后安装。`,- confirmLabel: "立即重启",- cancelLabel: "稍后",- onConfirm: m- });- },- children: "重启安装"- }) : null,- n.state === "available" && n.installation === "独立测试包" && i.state !== "ready" ? /* @__PURE__ */ q("button", {- ref: f,- type: "button",- class: "geist-button primary",- onClick: (e) => h(e.currentTarget),- children: "下载并安装"- }) : null,- /* @__PURE__ */ q("button", {- type: "button",- class: "geist-button",- disabled: Bn.has(i.state),- onClick: (e) => v(e.currentTarget),- children: "检查更新"- })- ]- })]- });-}-//#endregion-//#region src/islands/automatic-updates.tsx-function Hn({ initial: e, receipt: t }) {- let [n, r] = B(e.mode), [i, a] = B(e.interval_hours), o = U(null), s = Ln(o, e.error), c = () => s.run((e) => K("/api/configuration/automatic-updates", {- mode: n,- interval_hours: i- }, "POST", e), () => t("已保存自动更新设置"));- return /* @__PURE__ */ q(Rn, {- titleId: "automaticUpdatesTitle",- title: "自动更新",- error: s.error,- onSubmit: (t) => {- t.preventDefault(), e.available && c();- },- footer: /* @__PURE__ */ q("button", {- ref: o,- type: "submit",- class: "geist-button",- disabled: !e.available,- children: "保存自动更新"- }),- children: [- /* @__PURE__ */ q("div", {- class: "configoptions",- role: "group",- "aria-labelledby": "automaticUpdatesTitle",- children: [/* @__PURE__ */ q("label", {- class: "configtoggle",- children: [/* @__PURE__ */ q("span", { children: "自动检查新版本" }), /* @__PURE__ */ q("input", {- class: "ptoggle",- type: "checkbox",- role: "switch",- checked: n !== "off",- disabled: !e.available,- onChange: (e) => r(e.currentTarget.checked ? "check" : "off")- })]- }), /* @__PURE__ */ q("label", {- class: "configtoggle",- children: [/* @__PURE__ */ q("span", { children: "自动下载更新" }), /* @__PURE__ */ q("input", {- class: "ptoggle",- type: "checkbox",- role: "switch",- checked: n === "download",- disabled: !e.available || !e.download_available || n === "off",- onChange: (e) => r(e.currentTarget.checked ? "download" : "check")- })]- })]- }),- /* @__PURE__ */ q(In, {- value: String(i),- onChange: (e) => a(Number(e)),- label: "检查频率",- fixed: !0,- options: [- ["6", "每 6 小时"],- ["24", "每天"],- ["168", "每周"]- ]- }),- /* @__PURE__ */ q("p", {- class: "confighelp",- children: e.available ? e.download_available ? "开启后一分钟内开始检查。下载完成后,在此确认重启安装。" : "开启后一分钟内开始检查。源码运行请前往发布页获取新版本。" : "自动更新需要由托盘管理的服务。"- })- ]- });-}-//#endregion-//#region src/islands/peach-proxy.tsx-function Un({ initial: e, receipt: t }) {- let [n, r] = B(e), [i, a] = B(e.mode), [o, s] = B(""), c = U(null), l = Ln(c), u = () => l.run((e) => K("/api/configuration/peach-proxy", {- mode: i,- proxy: o- }, "POST", e), (e) => {- r(e), s(""), t("已保存 Peach 代理");- });- return /* @__PURE__ */ q(Rn, {- id: "peachProxy",- titleId: "peachProxyTitle",- title: "Peach 代理",- help: "采集来源选择“Peach 代理”时共用此设置。",- error: l.error,- onSubmit: (e) => {- e.preventDefault(), u();- },- footer: /* @__PURE__ */ q("button", {- ref: c,- class: "geist-button primary",- type: "submit",- children: "保存代理"- }),- children: [- /* @__PURE__ */ q(In, {- value: i,- onChange: a,- label: "Peach 代理",- fixed: !0,- options: [- ["environment", "系统代理"],- ["direct", "直连"],- ["proxy", "自定义"]- ]- }),- i === "proxy" && /* @__PURE__ */ q("div", {- class: "configfield",- children: [/* @__PURE__ */ q("label", {- htmlFor: "peachProxyAddress",- children: "代理地址"- }), /* @__PURE__ */ q("input", {- id: "peachProxyAddress",- class: "geist-input",- type: "password",- autoComplete: "off",- value: o,- placeholder: n.proxy_saved ? "已保存,留空保留" : "http://127.0.0.1:7890",- onInput: (e) => s(e.currentTarget.value)- })]- }),- n.needs_selection && /* @__PURE__ */ q("p", {- class: "configbad",- children: "已有来源的代理地址不同,请选择公共连接方式。"- })- ]- });-}-//#endregion-//#region src/islands/desktop-settings.tsx-function Wn({ label: e, checked: t, disabled: n, change: r }) {- return /* @__PURE__ */ q("label", {- class: "configcheck",- children: [/* @__PURE__ */ q("span", {- class: "pcheck",- children: [/* @__PURE__ */ q("input", {- type: "checkbox",- checked: t,- disabled: n,- onChange: (e) => r(e.currentTarget.checked)- }), /* @__PURE__ */ q("span", {- "aria-hidden": "true",- children: /* @__PURE__ */ q("svg", {- viewBox: "0 0 24 24",- children: /* @__PURE__ */ q("use", { href: "#i-check" })- })- })]- }), /* @__PURE__ */ q("span", { children: e })]- });-}-function Gn({ label: e, checked: t, disabled: n, change: r }) {- return /* @__PURE__ */ q("label", {- class: "configtoggle",- children: [/* @__PURE__ */ q("span", { children: e }), /* @__PURE__ */ q("input", {- class: "ptoggle",- type: "checkbox",- role: "switch",- checked: t,- disabled: n,- onChange: (e) => r(e.currentTarget.checked)- })]- });-}-function Kn({ startup: e, receipt: t }) {- let [n, r] = B(e.enabled), [i, a] = B(e.silent), [o, s] = B(e.desktop), [c, l] = B(""), u = U(!1), d = U(null), f = e.available && !e.desktop_message;- async function m() {- if (!u.current) {- u.current = !0, x(d.current, !0), l("");- try {- await K("/api/configuration/startup", {- enabled: n,- silent: i,- desktop: o- }), t("已保存开机自启");- } catch (e) {- l(W(e));- } finally {- u.current = !1, x(d.current, !1);- }- }- }- return /* @__PURE__ */ q("form", {- class: "configfieldset",- "data-geist-fieldset": !0,- onSubmit: (e) => {- e.preventDefault(), m();- },- children: [/* @__PURE__ */ q("div", {- class: "geist-fieldset-content",- children: [- /* @__PURE__ */ q("div", { dangerouslySetInnerHTML: { __html: p("startupTitle", "开机自启") } }),- /* @__PURE__ */ q("div", {- class: "configoptions",- role: "group",- "aria-labelledby": "startupTitle",- children: [- /* @__PURE__ */ q(Gn, {- label: "开机后启动 Peach",- checked: n,- disabled: !e.available,- change: r- }),- /* @__PURE__ */ q("div", {- class: "configoption",- children: [/* @__PURE__ */ q(Gn, {- label: "静默启动",- checked: i,- disabled: !e.available || !n,- change: a- }), /* @__PURE__ */ q("p", {- class: "confighelp",- children: "静默启动仅显示托盘,开机后启动 Peach 打开时生效。"- })]- }),- /* @__PURE__ */ q("div", {- class: "configoption",- children: [/* @__PURE__ */ q(Gn, {- label: "在桌面创建快捷方式",- checked: o,- disabled: !f,- change: s- }), /* @__PURE__ */ q("p", {- class: "confighelp",- children: e.desktop_message || "双击图标打开 Peach 网页;卸载时一并移除。"- })]- })- ]- }),- e.message && /* @__PURE__ */ q("p", {- class: "confighelp",- children: e.message- }),- c && /* @__PURE__ */ q("p", {- class: "configbad",- role: "alert",- children: c- })- ]- }), /* @__PURE__ */ q("footer", {- class: "geist-fieldset-footer",- "data-geist-fieldset-footer": !0,- children: /* @__PURE__ */ q("button", {- ref: d,- type: "submit",- class: "geist-button primary",- disabled: !e.available,- children: "保存配置"- })- })]- });-}-function qn({ data: e }) {- let t = U(null);- return H(() => {- let n = t.current, r = document.createElement("details");- r.className = "configdirectories";- let a = document.createElement("summary");- a.innerHTML = i("chevron-right") + "<span>数据目录</span>", r.append(a);- for (let t of [.../* @__PURE__ */ new Set([e.data_root, ...e.directories])]) {- let e = document.createElement("p");- e.className = "confighelp", e.textContent = t, r.append(e);- }- return n.replaceChildren(r), C(n, "details", "uninstall-data"), () => n.replaceChildren();- }, [e]), /* @__PURE__ */ q("div", { ref: t });-}-function Jn({ uninstall: e }) {- let [t, n] = B(!1), [r, i] = B("");- async function a() {- await d({- title: "卸载 Peach",- danger: !0,- body: t ? "将退出 Peach,移除程序、开机自启、桌面图标、设置、本地数据库、观看记录、凭据和缓存。原始媒体文件保留。" : "将退出 Peach 并移除程序、开机自启和桌面图标。设置、本地数据库、观看记录与缓存保留。",- confirmLabel: "卸载 Peach",- onConfirm: async () => {- let e = await K("/api/configuration/uninstall", {- delete_data: t,- confirmation: "卸载 Peach"- });- i(e.message);- }- });- }- let o = r || e.message;- return /* @__PURE__ */ q("section", {- id: "uninstallPeach",- class: "configfieldset",- "data-geist-fieldset": !0,- "data-fieldset-type": "error",- children: [/* @__PURE__ */ q("div", {- class: "geist-fieldset-content",- children: [- /* @__PURE__ */ q("div", {- class: "configfieldset-heading",- children: [/* @__PURE__ */ q("div", { dangerouslySetInnerHTML: { __html: p("uninstallTitle", "卸载 Peach") } }), e.available && /* @__PURE__ */ q("p", {- class: "confighelp",- children: "卸载会退出 Peach、移除程序、开机自启和桌面图标。原始媒体文件保留。"- })]- }),- /* @__PURE__ */ q(Wn, {- label: "完全卸载:同时删除设置、本地数据库、观看记录、凭据和缓存",- checked: t,- disabled: !e.full_available || !!r,- change: n- }),- /* @__PURE__ */ q(qn, { data: e })- ]- }), /* @__PURE__ */ q("footer", {- class: "geist-fieldset-footer",- "data-geist-fieldset-footer": !0,- children: [o && /* @__PURE__ */ q("p", {- role: r ? "status" : void 0,- children: o- }), /* @__PURE__ */ q("button", {- type: "button",- class: "geist-button danger",- disabled: !e.available || !!r,- onClick: () => void a(),- children: "卸载 Peach"- })]- })]- });-}-//#endregion-//#region src/islands/clouddrive-guide.tsx-var Yn = [- {- name: "机械硬盘,或内存 8 GB 以内",- cache: "10–20 GiB",- read: "256 / 128 KB",- task: "1 个"- },- {- name: "SATA SSD,内存 8–16 GB",- cache: "20–50 GiB",- read: "256 / 128 KB",- task: "1–2 个"- },- {- name: "NVMe SSD,内存 16 GB 以上",- cache: "50–100 GiB",- read: "256 / 128 KB",- task: "2 个起步"- }-];-function Xn() {- let e = U(null);- return H(() => {- e.current && C(e.current, "details", "clouddrive-guide");- }, []), /* @__PURE__ */ q("div", {- ref: e,- class: "cloudguide",- children: [/* @__PURE__ */ q("p", {- class: "confighelp",- children: ["先在 CloudDrive 登录网盘并挂载,开启「启动时自动挂载」。", /* @__PURE__ */ q("a", {- class: "externallink",- href: "https://www.clouddrive2.com/help.html",- target: "_blank",- rel: "noreferrer",- children: ["挂载帮助", /* @__PURE__ */ q("svg", {- class: "externalmark",- viewBox: "0 0 24 24",- "aria-hidden": "true",- children: /* @__PURE__ */ q("use", { href: "#i-external-link" })- })]- })]- }), /* @__PURE__ */ q("details", { children: [- /* @__PURE__ */ q("summary", { children: [/* @__PURE__ */ q("svg", {- viewBox: "0 0 24 24",- "aria-hidden": "true",- children: /* @__PURE__ */ q("use", { href: "#i-chevron-right" })- }), "CloudDrive 缓存建议"] }),- /* @__PURE__ */ q("p", {- class: "confighelp",- children: "看缓存放在哪块硬盘上,照那一行填。这是起步值,填得越大不一定越快。"- }),- /* @__PURE__ */ q("div", {- class: "cloudguide-tablewrap",- children: /* @__PURE__ */ q("table", {- class: "cloudguide-table",- children: [/* @__PURE__ */ q("thead", { children: /* @__PURE__ */ q("tr", { children: [- /* @__PURE__ */ q("th", {- scope: "col",- children: "缓存所在硬盘"- }),- /* @__PURE__ */ q("th", {- scope: "col",- children: "缓存上限"- }),- /* @__PURE__ */ q("th", {- scope: "col",- children: "读取长度(默认 / 最小)"- }),- /* @__PURE__ */ q("th", {- scope: "col",- children: "同时处理视频"- })- ] }) }), /* @__PURE__ */ q("tbody", { children: Yn.map((e) => /* @__PURE__ */ q("tr", { children: [- /* @__PURE__ */ q("th", {- scope: "row",- children: e.name- }),- /* @__PURE__ */ q("td", {- "data-label": "缓存上限",- children: e.cache- }),- /* @__PURE__ */ q("td", {- "data-label": "读取长度(默认 / 最小)",- children: e.read- }),- /* @__PURE__ */ q("td", {- "data-label": "同时处理视频",- children: e.task- })- ] }, e.name)) })]- })- }),- /* @__PURE__ */ q("ul", {- class: "cloudguide-notes",- children: [- /* @__PURE__ */ q("li", { children: "缓存上限和清理方式填在 CloudDrive「设置」里,清理方式选 LRU。上限不要填 0,系统盘至少留 40 GiB;填完重开设置页确认存住了。" }),- /* @__PURE__ */ q("li", { children: "读取长度和下载线程填在每个网盘各自的下载设置里,线程都从 2 开始。" }),- /* @__PURE__ */ q("li", { children: "Buffer Cache 占内存,磁盘缓存和文件夹缓存占硬盘,改一个管不住另外两个。" })- ]- }),- /* @__PURE__ */ q("p", {- class: "confighelp",- children: [- "三处缓存分别管什么、这几个值怎么往上调、码率和速度怎么换算、线程上限与直链代理怎么取舍,以及这些起步值的来源,都在",- /* @__PURE__ */ q("a", {- class: "externallink",- href: "https://github.com/longmeidao/peach/blob/master/docs/CLOUDDRIVE.md",- target: "_blank",- rel: "noreferrer",- children: ["CloudDrive 配置与调优", /* @__PURE__ */ q("svg", {- class: "externalmark",- viewBox: "0 0 24 24",- "aria-hidden": "true",- children: /* @__PURE__ */ q("use", { href: "#i-external-link" })- })]- }),- "。"- ]- })- ] })]- });-}-//#endregion-//#region src/library-icon-picker.tsx-var Zn = [- ["", "自动识别"],- ["hard-drive", "磁盘"],- ["database", "资料库"],- ["heart", "心动"],- ["heart-hand", "亲密"],- ["flame", "热情"],- ["cherry", "樱桃"],- ["lollipop", "甜心"],- ["candy", "糖果"],- ["banana", "香蕉"],- ["droplets", "湿润"],- ["venus", "女性"],- ["mars", "男性"],- ["venus-and-mars", "情侣"],- ["gem", "精选"],- ["crown", "女王"],- ["ribbon", "丝带"],- ["shirt", "制服"],- ["graduation-cap", "学生"],- ["stethoscope", "护士"],- ["glasses", "眼镜"],- ["footprints", "足迹"],- ["hand", "手部"],- ["flower", "花朵"],- ["venetian-mask", "角色扮演"],- ["rabbit", "兔女郎"],- ["paw-print", "兽耳"],- ["dumbbell", "健身"],- ["bed-double", "卧室"],- ["bath", "浴室"],- ["key-round", "私密"],- ["wine", "微醺"],- ["cigarette", "烟"],- ["moon", "夜色"],- ["sparkles", "幻想"],- ["camera", "写真"],- ["video", "影片"],- ["film", "电影"],- ["image", "图集"],- ["gamepad-2", "游戏"],- ["star", "收藏"],- ["tags", "主题"]-];-function Qn(e) {- let t = e === "local" ? "" : s[e];- return t ? [t, "自动识别"] : ["hard-drive", "默认"];-}-function $n({ value: e, label: t, kind: n = "local", onChange: r }) {- let [i, a] = B(e), o = U(null), s = U(null), [c, l] = Qn(n), u = (e) => /* @__PURE__ */ q("span", {- "aria-hidden": "true",- dangerouslySetInnerHTML: { __html: b(e || c) }- }), d = (e, t) => e ? t : l;- return /* @__PURE__ */ q("div", {- class: "board-icon-picker",- children: [/* @__PURE__ */ q("button", {- ref: s,- type: "button",- class: "geist-button board-icon-trigger",- "aria-label": t,- "aria-haspopup": "dialog",- onClick: () => {- a(e);- let t = o.current, n = s.current.getBoundingClientRect();- t.showModal();- let r = t.getBoundingClientRect();- t.style.left = `${Math.max(8, Math.min(innerWidth - r.width - 8, n.left))}px`, t.style.top = `${n.bottom + r.height + 8 <= innerHeight ? n.bottom + 4 : Math.max(8, n.top - r.height - 4)}px`;- },- children: [u(e), /* @__PURE__ */ q("span", { children: d(e, Zn.find(([t]) => t === e)?.[1] || l) })]- }), /* @__PURE__ */ q("dialog", {- ref: o,- class: "board-icon-popover",- "aria-label": `${t}候选`,- onCancel: () => a(e),- onClick: (t) => {- t.target === o.current && (o.current?.close(), a(e));- },- children: [/* @__PURE__ */ q("div", {- class: "board-icon-panel",- children: [/* @__PURE__ */ q("h3", { children: "选择媒体库图标" }), /* @__PURE__ */ q("div", {- role: "radiogroup",- "aria-label": "候选图标",- class: "board-icon-grid",- children: Zn.map(([e, n]) => /* @__PURE__ */ q("label", {- title: d(e, n),- class: i === e ? "selected" : "",- children: [/* @__PURE__ */ q("input", {- type: "radio",- name: `${t}-icon`,- "aria-label": d(e, n),- value: e,- checked: i === e,- onChange: () => a(e)- }), u(e)]- }))- })]- }), /* @__PURE__ */ q("footer", { children: [/* @__PURE__ */ q("button", {- type: "button",- class: "geist-button",- onClick: () => {- a(e), o.current.close();- },- children: "取消"- }), /* @__PURE__ */ q("button", {- type: "button",- class: "geist-button primary",- disabled: i === e,- onClick: () => {- r(i), o.current.close();- },- children: "应用"- })] })]- })]- });-}-//#endregion//#region src/islands/configuration.tsx-var er = "/api/configuration", tr = "/api/pick-folder", nr = 8e3, rr = (e, t) => G(er, t), ir = ({ html: e, class: t }) => /* @__PURE__ */ q("div", {- class: t,- dangerouslySetInnerHTML: { __html: e }-}), ar = (e) => !(e instanceof dt) || e.status !== 400 ? null : e.body?.errors ?? null;-function or({ facts: e }) {- return /* @__PURE__ */ q("section", {- class: "configfieldset",- "data-geist-fieldset": !0,- "aria-labelledby": "configFactsTitle",- children: /* @__PURE__ */ q("div", {- class: "geist-fieldset-content",- children: [/* @__PURE__ */ q(ir, { html: p("configFactsTitle", "运行信息") }), /* @__PURE__ */ q("dl", {- class: "configfacts",- children: e.map((e) => /* @__PURE__ */ q(I, { children: [/* @__PURE__ */ q("dt", { children: e.term }), /* @__PURE__ */ q("dd", { children: [e.value, e.download_url ? /* @__PURE__ */ q("span", {- class: "confighelp",- children: [" ", /* @__PURE__ */ q("a", {- class: "externallink",- href: e.download_url,- target: "_blank",- rel: "noreferrer",- children: [e.download_label, /* @__PURE__ */ q("svg", {- class: "externalmark",- viewBox: "0 0 24 24",- "aria-hidden": "true",- children: /* @__PURE__ */ q("use", { href: "#i-external-link" })- })]- })]- }) : null] })] }))- })]- })- });-}-function sr({ data: e }) {- let [t, n] = B(e.media_sources), [r, i] = B(""), a = U(null);- V(() => () => a.current?.abort(), []);- let o = async (e) => {- if (a.current) return;- let t = new AbortController();- a.current = t, x(e, !0), i("");- try {- let e = await G(er, t.signal);- t.signal.aborted || n(e.media_sources);- } catch (e) {- t.signal.aborted || i(W(e));- } finally {- a.current = null, x(e, !1);- }- };- return t ? /* @__PURE__ */ q("section", {- class: "configfieldset",- "aria-labelledby": "configMountsTitle",- children: [/* @__PURE__ */ q("div", {- class: "geist-fieldset-content",- children: [- /* @__PURE__ */ q(ir, { html: p("configMountsTitle", "挂载状态") }),- /* @__PURE__ */ q("dl", {- class: "configfacts",- children: t.map((e) => /* @__PURE__ */ q(I, { children: [/* @__PURE__ */ q("dt", { children: [/* @__PURE__ */ q("span", {- "aria-hidden": "true",- dangerouslySetInnerHTML: { __html: b(s[e.location]) }- }), {- local: "本地磁盘",- 115: "CloudDrive · 115",- pikpak: "CloudDrive · PikPak"- }[e.location] || e.location] }), /* @__PURE__ */ q("dd", { children: [- e.path || "未配置挂载点",- " ",- /* @__PURE__ */ q("span", {- class: `configstatus ${e.online === !0 ? "online" : e.online === !1 ? "offline" : "unknown"}`,- children: e.online === !0 ? "在线" : e.online === !1 ? "离线" : "未检测"- })- ] })] }))- }),- r ? /* @__PURE__ */ q("p", {- class: "configbad",- role: "alert",- children: r- }) : null- ]- }), /* @__PURE__ */ q("div", {- class: "geist-fieldset-footer",- "data-geist-fieldset-footer": !0,- children: /* @__PURE__ */ q("button", {- type: "button",- class: "geist-button",- onClick: (e) => o(e.currentTarget),- children: "刷新挂载状态"- })- })]- }) : null;-}-function cr({ value: e, label: t, onChange: n }) {- return /* @__PURE__ */ q(In, {- value: e,- label: t,- onChange: n,- className: "configsourcecontrol",- options: [- ["local", "本地磁盘"],- ["115", "CloudDrive · 115"],- ["pikpak", "CloudDrive · PikPak"]- ].map(([e, t]) => [- e,- t,- s[e] || e || "database"- ])- });-}-function lr({ data: e, receipt: t }) {- let n = e.media_sources?.filter((e) => [- "local",- "115",- "pikpak"- ].includes(e.location)), [r, i] = B(n?.length ? n.map((e) => e.path) : e.media_dirs.length ? e.media_dirs : [""]), [a, o] = B(n?.map((e) => e.location) ?? []), [s, c] = B(n?.map((e) => e.root) ?? []), [l, u] = B(n?.map((e) => e.library || "") ?? []), [d, f] = B(n?.map((e) => e.library_icon || "") ?? []), [m, h] = B(String(e.port)), [_, v] = B(!1), [y, b] = B([]), [S, C] = B(""), [w, T] = B(""), [E, D] = B(null), [O, k] = B(null), A = U(!1), j = U(e.revision), ee = U([]), M = U(null);- H(() => {- O !== null && (ee.current[O]?.focus(), k(null));- }, [O]), V(() => {- if (!E) return;- let e = setTimeout(() => location.assign(E.url), nr);- return () => clearTimeout(e);- }, [E]);- let te = (e, t) => {- i((n) => n.map((n, r) => r === e ? t : n));- }, N = () => {- k(r.length), i((e) => [...e, ""]);- }, ne = (e) => {- o((t) => t.filter((t, n) => n !== e)), c((t) => t.filter((t, n) => n !== e)), u((t) => t.filter((t, n) => n !== e)), f((t) => t.filter((t, n) => n !== e)), i((t) => t.filter((t, n) => n !== e)), b((t) => t.filter((t, n) => n !== e));- }, P = (e, t) => {- b((n) => {- let r = [...n];- for (; r.length <= e;) r.push("");- return r[e] = t, r;- });- }, re = async (e, t) => {- if (t.getAttribute("aria-busy") !== "true") {- x(t, !0);- try {- let { path: t } = await K(tr, { initial: r[e] ?? "" });- t && (te(e, t), P(e, ""));- } catch (t) {- P(e, W(t));- } finally {- x(t, !1);- }- }- };- return E ? /* @__PURE__ */ q("div", {- class: "configsaved",- role: "status",- children: /* @__PURE__ */ q("div", {- class: "geist-note geist-note-success",- role: "note",- children: [/* @__PURE__ */ q("svg", {- "aria-hidden": "true",- viewBox: "0 0 24 24",- children: /* @__PURE__ */ q("use", { href: "#i-check" })- }), /* @__PURE__ */ q("p", { children: /* @__PURE__ */ q("span", { children: [- "配置已保存,Peach 正在重新启动。稍后自动跳转,或点击",- /* @__PURE__ */ q("a", {- href: E.url,- children: "进入馆藏"- }),- "。"- ] }) })]- })- }) : /* @__PURE__ */ q("form", {- class: "configfieldset",- "data-geist-fieldset": !0,- "aria-labelledby": "configTitle",- onSubmit: async (n) => {- if (n.preventDefault(), !A.current) {- A.current = !0, x(M.current, !0), T("");- try {- let n = await K(er, {- revision: j.current,- media_dirs: r,- ...e.media_sources ? { media_sources: r.map((e, t) => ({- path: e,- location: a[t] || "local",- root: s[t] || "",- library: l[t] || "",- library_icon: d[t] || ""- })) } : {},- port: m,- scan_now: _- });- j.current = n.revision, b([]), C(""), t("已保存配置"), D(n);- } catch (e) {- let t = ar(e);- t ? (b(t.media_dirs ?? []), C(t.port ?? "")) : (b([]), C(""), T(W(e)));- } finally {- A.current = !1, x(M.current, !1);- }- }- },- noValidate: !0,- children: [/* @__PURE__ */ q("div", {- class: "geist-fieldset-content",- children: [- /* @__PURE__ */ q(ir, { html: p("configTitle", "这台电脑") }),- /* @__PURE__ */ q("div", {- class: "configfield",- children: [- /* @__PURE__ */ q("span", {- class: "configlabel",- id: "configDirsLabel",- children: "媒体文件夹"- }),- /* @__PURE__ */ q("div", {- class: "configdirs",- role: "group",- "aria-labelledby": "configDirsLabel",- children: r.map((t, n) => /* @__PURE__ */ q("div", {- class: "configdir",- children: [- /* @__PURE__ */ q("span", {- class: "configpathlabel",- children: ["本机文件夹 ", n + 1]- }),- /* @__PURE__ */ q("input", {- class: "geist-input",- type: "text",- value: t,- "aria-label": `媒体文件夹 ${n + 1}`,- "aria-invalid": y[n] ? "true" : void 0,- onInput: (e) => te(n, e.currentTarget.value),- ref: (e) => {- ee.current[n] = e;- }- }),- /* @__PURE__ */ q("button", {- type: "button",- class: "geist-button configpick",- "aria-label": "选择文件夹",- onClick: (e) => re(n, e.currentTarget),- children: /* @__PURE__ */ q("svg", {- viewBox: "0 0 24 24",- "aria-hidden": "true",- children: /* @__PURE__ */ q("use", { href: "#i-folder-search" })- })- }),- r.length > 1 ? /* @__PURE__ */ q("button", {- type: "button",- class: "geist-button configrm danger",- "aria-label": "移除这个文件夹",- onClick: () => ne(n),- children: /* @__PURE__ */ q("svg", {- viewBox: "0 0 24 24",- "aria-hidden": "true",- children: /* @__PURE__ */ q("use", { href: "#i-x" })- })- }) : null,- /* @__PURE__ */ q("div", {- class: "configsource",- children: [- /* @__PURE__ */ q("label", { children: ["媒体库名称", /* @__PURE__ */ q("input", {- class: "geist-input",- "aria-label": `媒体库 ${n + 1}`,- maxLength: 80,- value: l[n] || "",- placeholder: "同名文件夹归入同一个媒体库",- onInput: (e) => {- let t = [...l];- t[n] = e.currentTarget.value, u(t);- }- })] }),- /* @__PURE__ */ q("div", {- class: "configsourcelabel",- children: ["媒体库图标", /* @__PURE__ */ q($n, {- label: `媒体库图标 ${n + 1}`,- value: d[n] || "",- kind: a[n] || "local",- onChange: (e) => {- let t = [...d];- t[n] = e, f(t);- }- })]- }),- /* @__PURE__ */ q("div", {- class: "configsourcelabel",- children: ["媒体来源", /* @__PURE__ */ q(cr, {- label: `媒体来源 ${n + 1}`,- value: a[n] || "local",- onChange: (e) => {- let t = [...a];- t[n] = e, o(t);- }- })]- }),- e.windows === !1 ? /* @__PURE__ */ q("label", { children: ["Windows 中的对应路径", /* @__PURE__ */ q("input", {- class: "geist-input",- "aria-label": `Windows 中的对应路径 ${n + 1}`,- value: s[n] || "",- placeholder: "例如 B:\\\\",- onInput: (e) => {- let t = [...s];- t[n] = e.currentTarget.value, c(t);- }- })] }) : null- ]- }),- y[n] ? /* @__PURE__ */ q("p", {- class: "configbad",- role: "alert",- children: y[n]- }) : null- ]- }, n))- }),- /* @__PURE__ */ q("button", {- type: "button",- class: "geist-button configadd",- onClick: N,- children: "添加文件夹"- }),- a.some((e) => e === "115" || e === "pikpak") ? /* @__PURE__ */ q(Xn, {}) : null,- a.some((e) => e === "115" || e === "pikpak") ? e.mount_dependencies?.filter((e) => !e.available).map((e) => /* @__PURE__ */ q("p", {- class: "confighelp",- children: [- "未检测到 ",- e.name,- "。",- /* @__PURE__ */ q("a", {- class: "externallink",- href: e.download_url,- target: "_blank",- rel: "noreferrer",- children: [- "下载 ",- e.name,- /* @__PURE__ */ q("svg", {- class: "externalmark",- viewBox: "0 0 24 24",- "aria-hidden": "true",- children: /* @__PURE__ */ q("use", { href: "#i-external-link" })- })- ]- })- ]- })) : null,- e.windows === !1 ? /* @__PURE__ */ q("p", {- class: "confighelp",- children: "本机文件夹是这台电脑读取媒体的位置。Windows 中的对应路径用于匹配馆藏中已有的路径,例如 B:\\ 对应本机挂载文件夹。"- }) : null- ]- }),- e.port_editable === !1 ? null : /* @__PURE__ */ q("div", {- class: "configfield",- children: [- /* @__PURE__ */ q("label", {- for: "configPort",- children: "本机访问端口"- }),- /* @__PURE__ */ q("input", {- id: "configPort",- class: "geist-input",- type: "text",- inputMode: "numeric",- value: m,- "aria-invalid": S ? "true" : void 0,- onInput: (e) => h(e.currentTarget.value)- }),- S ? /* @__PURE__ */ q("p", {- class: "configbad",- role: "alert",- children: S- }) : null,- /* @__PURE__ */ q("p", {- class: "confighelp",- children: "浏览器地址里冒号后面的数字,一般不用改。"- })- ]- }),- /* @__PURE__ */ q("label", {- class: "configcheck",- children: [/* @__PURE__ */ q("span", {- class: "pcheck",- children: [/* @__PURE__ */ q("input", {- type: "checkbox",- checked: _,- onChange: (e) => v(e.currentTarget.checked)- }), /* @__PURE__ */ q("span", {- "aria-hidden": "true",- children: /* @__PURE__ */ q("svg", {- viewBox: "0 0 24 24",- children: /* @__PURE__ */ q("use", { href: "#i-check" })- })- })]- }), /* @__PURE__ */ q("span", { children: "保存后扫描并补全资料" })]- }),- w ? /* @__PURE__ */ q(ir, { html: g(w, {- variant: "error",- label: "没有保存"- }) }) : null- ]- }), /* @__PURE__ */ q("div", {- class: "geist-fieldset-footer",- "data-geist-fieldset-footer": !0,- children: [/* @__PURE__ */ q("p", { children: e.port_editable === !1 ? "保存后 Peach 会重新载入配置。" : "保存后 Peach 会重新启动,端口改了就用新地址打开。" }), /* @__PURE__ */ q("button", {- type: "submit",- class: "geist-button primary",- ref: M,- children: "保存配置"- })]- })]- });-}-function ur({ receipt: e, data: t, error: n }) {- return n || !t ? /* @__PURE__ */ q(ir, {+var zn = (e, t) => U(Ln, t);+function Bn({ receipt: e, data: t, error: n }) {+ if (n || !t) return /* @__PURE__ */ W("div", {class: "configpage",- html: g(n || "没有读到配置", {+ dangerouslySetInnerHTML: { __html: h(n || "没有读到配置", {variant: "error",label: "打不开配置"- })- }) : /* @__PURE__ */ q("div", {+ }) }+ });+ let r = {+ data: t,+ receipt: e+ };+ return /* @__PURE__ */ W("div", {class: "configpage",children: [- t.startup ? /* @__PURE__ */ q("h2", {+ t.startup ? /* @__PURE__ */ W("h2", {class: "configgroup",children: "通用"}) : null,- t.startup ? /* @__PURE__ */ q(Kn, {- startup: t.startup,- receipt: e+ t.startup ? /* @__PURE__ */ W(Rn, {+ mount: "mountGeneralSettings",+ props: r}) : null,- /* @__PURE__ */ q("h2", {+ /* @__PURE__ */ W("h2", {class: "configgroup",children: "媒体"}),- t.editable ? /* @__PURE__ */ q(lr, {- data: t,- receipt: e- }) : /* @__PURE__ */ q(ir, { html: g(t.notice, {- variant: "secondary",- label: "只读"- }) }),- /* @__PURE__ */ q(sr, { data: t }),- t.peach_proxy || t.access ? /* @__PURE__ */ q("h2", {+ /* @__PURE__ */ W(Rn, {+ mount: "mountMediaSettings",+ props: r+ }),+ t.peach_proxy || t.access ? /* @__PURE__ */ W("h2", {class: "configgroup",children: "网络与访问"}) : null,- t.peach_proxy ? /* @__PURE__ */ q(Un, {- initial: t.peach_proxy,- receipt: e+ t.peach_proxy || t.access ? /* @__PURE__ */ W(Rn, {+ mount: "mountNetworkSettings",+ props: r}) : null,- t.access ? /* @__PURE__ */ q(zn, {- mount: "mountAccessSettings",- props: {- initial: t.access,- receipt: e- }- }) : null,- /* @__PURE__ */ q("h2", {+ /* @__PURE__ */ W("h2", {class: "configgroup",children: "更新与维护"}),- t.automatic_updates ? /* @__PURE__ */ q(Hn, {- initial: t.automatic_updates,- receipt: e- }) : null,- t.updates ? /* @__PURE__ */ q(Vn, {- initial: t.updates,- initialJob: t.update_job- }) : null,- /* @__PURE__ */ q(or, { facts: t.facts }),- t.uninstall ? /* @__PURE__ */ q(Jn, { uninstall: t.uninstall }) : null+ /* @__PURE__ */ W(Rn, {+ mount: "mountMaintenanceSettings",+ props: r+ })]});}//#endregion//#region node_modules/@preact/signals-core/dist/signals-core.module.js-var dr = Symbol.for("preact-signals");-function fr() {- if (X > 1) X--;+var Vn = Symbol.for("preact-signals");+function Hn() {+ if (J > 1) J--;else {var e, t = !1;for ((function() {- var e = br;- for (br = void 0; e !== void 0;) {+ var e = Xn;+ for (Xn = void 0; e !== void 0;) {var t = e.S;if (t.v === e.v) for (var n = t.t; n !== void 0; n = n.x) n.i === e.i && (n.i = t.i);e = e.o;}- })(); gr !== void 0;) {- var n = gr;- for (gr = void 0, _r++; n !== void 0;) {+ })(); Kn !== void 0;) {+ var n = Kn;+ for (Kn = void 0, qn++; n !== void 0;) {var r = n.u;- if (n.u = void 0, n.f &= -3, !(8 & n.f) && wr(n)) try {+ if (n.u = void 0, n.f &= -3, !(8 & n.f) && er(n)) try {n.c();} catch (n) {t ||= (e = n, !0);@@ -3229,116 +1967,116 @@ function fr() {n = r;}}- if (_r = 0, X--, t) throw e;+ if (qn = 0, J--, t) throw e;}}-function pr(e) {- if (X > 0) return e();- yr = ++vr, X++;+function Un(e) {+ if (J > 0) return e();+ Yn = ++Jn, J++;try {return e();} finally {- fr();+ Hn();}}-var mr, Y = void 0;-function hr(e) {- var t = Y, n = mr;- Y = void 0, mr = void 0;+var Wn, q = void 0;+function Gn(e) {+ var t = q, n = Wn;+ q = void 0, Wn = void 0;try {return e();} finally {- Y = t, mr = n;+ q = t, Wn = n;}}-var gr = void 0, X = 0, _r = 0, vr = 0, yr = 0, br = void 0, xr = 0;-function Sr(e) {- if (Y !== void 0) {+var Kn = void 0, J = 0, qn = 0, Jn = 0, Yn = 0, Xn = void 0, Zn = 0;+function Qn(e) {+ if (q !== void 0) {var t = e.n;- if (t === void 0 || t.t !== Y) return t = {+ if (t === void 0 || t.t !== q) return t = {i: 0,S: e,- p: Y.s,+ p: q.s,n: void 0,- t: Y,+ t: q,e: void 0,x: void 0,r: t- }, Y.s !== void 0 && (Y.s.n = t), Y.s = t, e.n = t, 32 & Y.f && e.S(t), t;- if (t.i === -1) return t.i = 0, t.n !== void 0 && (t.n.p = t.p, t.p !== void 0 && (t.p.n = t.n), t.p = Y.s, t.n = void 0, Y.s.n = t, Y.s = t), t;+ }, q.s !== void 0 && (q.s.n = t), q.s = t, e.n = t, 32 & q.f && e.S(t), t;+ if (t.i === -1) return t.i = 0, t.n !== void 0 && (t.n.p = t.p, t.p !== void 0 && (t.p.n = t.n), t.p = q.s, t.n = void 0, q.s.n = t, q.s = t), t;}}-function Z(e, t) {+function Y(e, t) {this.v = e, this.i = 0, this.n = void 0, this.t = void 0, this.l = 0, this.W = t?.watched, this.Z = t?.unwatched, this.name = t?.name;}-Z.prototype.brand = dr, Z.prototype.h = function() {+Y.prototype.brand = Vn, Y.prototype.h = function() {return !0;-}, Z.prototype.S = function(e) {+}, Y.prototype.S = function(e) {var t = this, n = this.t;- n !== e && e.e === void 0 && (e.x = n, this.t = e, n === void 0 ? hr(function() {+ n !== e && e.e === void 0 && (e.x = n, this.t = e, n === void 0 ? Gn(function() {var e;(e = t.W) == null || e.call(t);}) : n.e = e);-}, Z.prototype.U = function(e) {+}, Y.prototype.U = function(e) {var t = this;if (this.t !== void 0) {var n = e.e, r = e.x;- n !== void 0 && (n.x = r, e.e = void 0), r !== void 0 && (r.e = n, e.x = void 0), e === this.t && (this.t = r, r === void 0 && hr(function() {+ n !== void 0 && (n.x = r, e.e = void 0), r !== void 0 && (r.e = n, e.x = void 0), e === this.t && (this.t = r, r === void 0 && Gn(function() {var e;(e = t.Z) == null || e.call(t);}));}-}, Z.prototype.subscribe = function(e) {+}, Y.prototype.subscribe = function(e) {var t = this;- return Nr(function() {+ return cr(function() {var n = t.value;- hr(function() {+ Gn(function() {return e(n);});}, { name: "sub" });-}, Z.prototype.valueOf = function() {+}, Y.prototype.valueOf = function() {return this.value;-}, Z.prototype.toString = function() {+}, Y.prototype.toString = function() {return this.value + "";-}, Z.prototype.toJSON = function() {+}, Y.prototype.toJSON = function() {return this.value;-}, Z.prototype.peek = function() {+}, Y.prototype.peek = function() {var e = this;- return hr(function() {+ return Gn(function() {return e.value;});-}, Object.defineProperty(Z.prototype, "value", {+}, Object.defineProperty(Y.prototype, "value", {get: function() {- var e = Sr(this);+ var e = Qn(this);return e !== void 0 && (e.i = this.i), this.v;},set: function(e) {if (e !== this.v) {- if (_r > 100) throw Error("Cycle detected");+ if (qn > 100) throw Error("Cycle detected");(function(e) {- X !== 0 && _r === 0 && e.l !== yr && (e.l = yr, br = {+ J !== 0 && qn === 0 && e.l !== Yn && (e.l = Yn, Xn = {S: e,v: e.v,i: e.i,- o: br+ o: Xn});- })(this), this.v = e, this.i++, xr++, X++;+ })(this), this.v = e, this.i++, Zn++, J++;try {for (var t = this.t; t !== void 0; t = t.x) t.t.N();} finally {- fr();+ Hn();}}}});-function Cr(e, t) {- return new Z(e, t);+function $n(e, t) {+ return new Y(e, t);}-function wr(e) {+function er(e) {for (var t = e.s; t !== void 0; t = t.n) if (t.S.i !== t.i || !t.S.h() || t.S.i !== t.i) return !0;return !1;}-function Tr(e) {+function tr(e) {for (var t = e.s; t !== void 0; t = t.n) {var n = t.S.n;if (n !== void 0 && (t.r = n), t.S.n = t, t.i = -1, t.n === void 0) {@@ -3347,81 +2085,81 @@ function Tr(e) {}}}-function Er(e) {+function nr(e) {for (var t = e.s, n = void 0; t !== void 0;) {var r = t.p;t.i === -1 ? (t.S.U(t), r !== void 0 && (r.n = t.n), t.n !== void 0 && (t.n.p = r)) : n = t, t.S.n = t.r, t.r !== void 0 && (t.r = void 0), t = r;}e.s = n;}-function Dr(e, t) {- Z.call(this, void 0, t), this.x = e, this.s = void 0, this.g = xr - 1, this.f = 4;+function X(e, t) {+ Y.call(this, void 0, t), this.x = e, this.s = void 0, this.g = Zn - 1, this.f = 4;}-Dr.prototype = new Z(), Dr.prototype.h = function() {+X.prototype = new Y(), X.prototype.h = function() {if (this.f &= -3, 1 & this.f) return !1;- if ((36 & this.f) == 32 || (this.f &= -5, this.g === xr)) return !0;- if (this.g = xr, this.f |= 1, this.i > 0 && !wr(this)) return this.f &= -2, !0;- var e = Y;+ if ((36 & this.f) == 32 || (this.f &= -5, this.g === Zn)) return !0;+ if (this.g = Zn, this.f |= 1, this.i > 0 && !er(this)) return this.f &= -2, !0;+ var e = q;try {- Tr(this), Y = this;+ tr(this), q = this;var t = this.x();(16 & this.f || this.v !== t || this.i === 0) && (this.v = t, this.f &= -17, this.i++);} catch (e) {this.v = e, this.f |= 16, this.i++;}- return Y = e, Er(this), this.f &= -2, !0;-}, Dr.prototype.S = function(e) {+ return q = e, nr(this), this.f &= -2, !0;+}, X.prototype.S = function(e) {if (this.t === void 0) {this.f |= 36;for (var t = this.s; t !== void 0; t = t.n) t.S.S(t);}- Z.prototype.S.call(this, e);-}, Dr.prototype.U = function(e) {- if (this.t !== void 0 && (Z.prototype.U.call(this, e), this.t === void 0)) {+ Y.prototype.S.call(this, e);+}, X.prototype.U = function(e) {+ if (this.t !== void 0 && (Y.prototype.U.call(this, e), this.t === void 0)) {this.f &= -33;for (var t = this.s; t !== void 0; t = t.n) t.S.U(t);}-}, Dr.prototype.N = function() {+}, X.prototype.N = function() {if (!(2 & this.f)) {this.f |= 6;for (var e = this.t; e !== void 0; e = e.x) e.t.N();}-}, Object.defineProperty(Dr.prototype, "value", { get: function() {+}, Object.defineProperty(X.prototype, "value", { get: function() {if (1 & this.f) throw Error("Cycle detected");- var e = Sr(this);+ var e = Qn(this);if (this.h(), e !== void 0 && (e.i = this.i), 16 & this.f) throw this.v;return this.v;} });-function Or(e, t) {- return new Dr(e, t);+function rr(e, t) {+ return new X(e, t);}-function kr(e) {+function ir(e) {var t = e.m;if (e.m = void 0, typeof t == "function") {- X++;- var n = Y;- Y = void 0;+ J++;+ var n = q;+ q = void 0;try {t();} catch (t) {- throw e.f &= -2, e.f |= 8, Ar(e), t;+ throw e.f &= -2, e.f |= 8, ar(e), t;} finally {- Y = n, fr();+ q = n, Hn();}}}-function Ar(e) {+function ar(e) {for (var t = e.s; t !== void 0; t = t.n) t.S.U(t);- e.x = void 0, e.s = void 0, kr(e);+ e.x = void 0, e.s = void 0, ir(e);}-function jr(e) {- if (Y !== this) throw Error("Out-of-order effect");- Er(this), Y = e, this.f &= -2, 8 & this.f && Ar(this), fr();+function or(e) {+ if (q !== this) throw Error("Out-of-order effect");+ nr(this), q = e, this.f &= -2, 8 & this.f && ar(this), Hn();}-function Mr(e, t) {- this.x = e, this.m = void 0, this.s = void 0, this.u = void 0, this.f = 32, this.name = t?.name, mr && mr.push(this);+function sr(e, t) {+ this.x = e, this.m = void 0, this.s = void 0, this.u = void 0, this.f = 32, this.name = t?.name, Wn && Wn.push(this);}-Mr.prototype.c = function() {+sr.prototype.c = function() {var e = this.S();try {if (8 & this.f || this.x === void 0) return;@@ -3430,20 +2168,20 @@ Mr.prototype.c = function() {} finally {e();}-}, Mr.prototype.S = function() {+}, sr.prototype.S = function() {if (1 & this.f) throw Error("Cycle detected");- this.f |= 1, this.f &= -9, kr(this), Tr(this), X++;- var e = Y;- return Y = this, jr.bind(this, e);-}, Mr.prototype.N = function() {- 2 & this.f || (this.f |= 2, this.u = gr, gr = this);-}, Mr.prototype.d = function() {- this.f |= 8, 1 & this.f || Ar(this);-}, Mr.prototype.dispose = function() {+ this.f |= 1, this.f &= -9, ir(this), tr(this), J++;+ var e = q;+ return q = this, or.bind(this, e);+}, sr.prototype.N = function() {+ 2 & this.f || (this.f |= 2, this.u = Kn, Kn = this);+}, sr.prototype.d = function() {+ this.f |= 8, 1 & this.f || ar(this);+}, sr.prototype.dispose = function() {this.d();};-function Nr(e, t) {- var n = new Mr(e, t);+function cr(e, t) {+ var n = new sr(e, t);try {n.c();} catch (e) {@@ -3454,35 +2192,35 @@ function Nr(e, t) {}//#endregion//#region node_modules/@preact/signals/dist/signals.module.js-var Pr, Fr, Ir = typeof window < "u" && !!window.__PREACT_SIGNALS_DEVTOOLS__, Lr = [];-Nr(function() {- Pr = this.N;+var lr, ur, dr = typeof window < "u" && !!window.__PREACT_SIGNALS_DEVTOOLS__, fr = [];+cr(function() {+ lr = this.N;})();-function Rr(e, t) {- E[e] = t.bind(null, E[e] || function() {});+function pr(e, t) {+ T[e] = t.bind(null, T[e] || function() {});}-function zr(e) {- if (Fr) {- var t = Fr;- Fr = void 0, t();+function mr(e) {+ if (ur) {+ var t = ur;+ ur = void 0, t();}- Fr = e && e.S();+ ur = e && e.S();}-function Br(e) {- var t = this, n = e.data, r = Hr(n);+function hr(e) {+ var t = this, n = e.data, r = _r(n);r.name = "ReactiveDom", r.value = n;- var i = rt(function() {+ var i = it(function() {for (var e = t, n = t.__v; n = n.__;) if (n.__c) {n.__c.__$f |= 4;break;}- var i = Or(function() {+ var i = rr(function() {var e = r.value.value;return e === 0 ? 0 : !0 === e ? "" : e || "";- }), a = Or(function() {- return !Array.isArray(i.value) && !O(i.value);- }), o = Nr(function() {- if (this.N = Gr, a.value) {+ }), a = rr(function() {+ return !Array.isArray(i.value) && !D(i.value);+ }), o = cr(function() {+ if (this.N = br, a.value) {var t = i.value;e.__v && e.__v.__e && e.__v.__e.nodeType === 3 && (e.__v.__e.data = t);}@@ -3493,14 +2231,14 @@ function Br(e) {}, []), a = i[0], o = i[1];return a.value ? o.peek() : o.value;}-Br.displayName = "ReactiveTextNode", Object.defineProperties(Z.prototype, {+hr.displayName = "ReactiveTextNode", Object.defineProperties(Y.prototype, {constructor: {configurable: !0,value: void 0},type: {configurable: !0,- value: Br+ value: hr},props: {configurable: !0,@@ -3515,35 +2253,35 @@ Br.displayName = "ReactiveTextNode", Object.defineProperties(Z.prototype, {configurable: !0,value: 1}-}), Rr("__b", function(e, t) {+}), pr("__b", function(e, t) {if (typeof t.type == "string") {var n, r = t.props;for (var i in r) if (i !== "children") {var a = r[i];- a instanceof Z && (n || (t.__np = n = {}), n[i] = a, r[i] = a.peek());+ a instanceof Y && (n || (t.__np = n = {}), n[i] = a, r[i] = a.peek());}}e(t);-}), Rr("__r", function(e, t) {- if (e(t), t.type !== I) {- zr();+}), pr("__r", function(e, t) {+ if (e(t), t.type !== F) {+ mr();var n, r = t.__c;r && (r.__$f &= -2, (n = r.__$u) === void 0 && (r.__$u = n = function(e, t) {var n;- return Nr(function() {+ return cr(function() {n = this;}, { name: t }), n.c = e, n;}(function(e) {return function() {var t;- Ir && ((t = this.y) == null || t.call(this)), e.__$f |= 1, e.setState({});+ dr && ((t = this.y) == null || t.call(this)), e.__$f |= 1, e.setState({});};- }(r), typeof t.type == "function" ? t.type.displayName || t.type.name : ""))), zr(n);+ }(r), typeof t.type == "function" ? t.type.displayName || t.type.name : ""))), mr(n);}-}), Rr("__e", function(e, t, n, r) {- zr(), e(t, n, r);-}), Rr("diffed", function(e, t) {- zr();+}), pr("__e", function(e, t, n, r) {+ mr(), e(t, n, r);+}), pr("diffed", function(e, t) {+ mr();var n;if (typeof t.type == "string" && (n = t.__e)) {var r = t.__np, i = t.props, a = n.U;@@ -3553,25 +2291,25 @@ Br.displayName = "ReactiveTextNode", Object.defineProperties(Z.prototype, {}if (r) for (var c in a || (a = {}, n.U = a), r) {var l = a[c], u = r[c];- l === void 0 ? (l = Vr(n, c, u, i), a[c] = l) : l.o(u, i);+ l === void 0 ? (l = gr(n, c, u, i), a[c] = l) : l.o(u, i);}}e(t);});-function Vr(e, t, n, r) {- var i = t in e && e.ownerSVGElement === void 0, a = Cr(n);+function gr(e, t, n, r) {+ var i = t in e && e.ownerSVGElement === void 0, a = $n(n);return {o: function(e, t) {a.value = e, r = t;},- d: Nr(function() {- this.N = Gr;+ d: cr(function() {+ this.N = br;var n = a.value.value;r[t] !== n && (r[t] = n, i ? e[t] = n : n != null && (!1 !== n || t[4] === "-") ? e.setAttribute(t, n) : e.removeAttribute(t));})};}-Rr("unmount", function(e, t) {+pr("unmount", function(e, t) {if (typeof t.type == "string") {var n = t.__e;if (n) {@@ -3595,7 +2333,7 @@ Rr("unmount", function(e, t) {}}e(t);-}), Rr("__h", function(e, t, n, r) {+}), pr("__h", function(e, t, n, r) {r < 3 && (t.__$f |= 2), e(t, n, r);}), fe.prototype.shouldComponentUpdate = function(e, t) {if (this.__R) return !0;@@ -3609,114 +2347,114 @@ Rr("unmount", function(e, t) {for (var s in this.props) if (!(s in e)) return !0;return !1;};-function Hr(e, t) {- return rt(function() {- return Cr(e, t);+function _r(e, t) {+ return it(function() {+ return $n(e, t);}, []);}-var Ur = function(e) {+var vr = function(e) {queueMicrotask(function() {queueMicrotask(e);});};-function Wr() {- pr(function() {- for (var e; e = Lr.shift();) Pr.call(e);+function yr() {+ Un(function() {+ for (var e; e = fr.shift();) lr.call(e);});}-function Gr() {- Lr.push(this) === 1 && (E.requestAnimationFrame || Ur)(Wr);+function br() {+ fr.push(this) === 1 && (T.requestAnimationFrame || vr)(yr);}//#endregion//#region src/state/quality-goals.ts-var Kr = "/api/quality-goals?limit=200", qr = {+var xr = "/api/quality-goals?limit=200", Sr = {data: null,error: ""-}, Jr = Cr(qr), Yr = 0, Xr = Or(() => Jr.value);-Or(() => Jr.value.data?.total ?? null);-function Zr() {- Yr += 1, Jr.value = qr;+}, Cr = $n(Sr), wr = 0, Tr = rr(() => Cr.value);+rr(() => Cr.value.data?.total ?? null);+function Er() {+ wr += 1, Cr.value = Sr;}-async function Qr(e) {- let t = Yr += 1;+async function Dr(e) {+ let t = wr += 1;try {- let n = await G(Kr, e);- return t === Yr && (Jr.value = {+ let n = await U(xr, e);+ return t === wr && (Cr.value = {data: n,error: ""}), n;} catch (n) {- throw !e?.aborted && t === Yr && (Jr.value = {+ throw !e?.aborted && t === wr && (Cr.value = {data: null,- error: W(n)+ error: H(n)}), n;}}//#endregion//#region src/islands/quality-goals.tsx-var $r = (e, t) => Qr(t), ei = (e) => e.has_cover ? `/cover?code=${encodeURIComponent(e.code ?? "")}` : `/poster?id=${e.id}&c=4`;-function ti({ openItem: t, javTitleHtml: i, javDisplayName: a, srcBadge: o }) {- let { data: s, error: c } = Xr.value;- if (c) return /* @__PURE__ */ q("div", {+var Or = (e, t) => Dr(t), kr = (e) => e.has_cover ? `/cover?code=${encodeURIComponent(e.code ?? "")}` : `/poster?id=${e.id}&c=4`;+function Ar({ openItem: t, javTitleHtml: i, javDisplayName: a, srcBadge: o }) {+ let { data: s, error: c } = Tr.value;+ if (c) return /* @__PURE__ */ W("div", {class: "qualitylist",- dangerouslySetInnerHTML: { __html: g(c, {+ dangerouslySetInnerHTML: { __html: h(c, {variant: "error",label: "读取失败"}) }});let l = s?.items ?? [];- return l.length ? /* @__PURE__ */ q("div", {+ return l.length ? /* @__PURE__ */ W("div", {class: "quality-workspace",- children: [/* @__PURE__ */ q("div", { dangerouslySetInnerHTML: { __html: u("待升级", `${s?.total ?? l.length} 部作品`) } }), /* @__PURE__ */ q("div", {+ children: [/* @__PURE__ */ W("div", { dangerouslySetInnerHTML: { __html: u("待升级", `${s?.total ?? l.length} 部作品`) } }), /* @__PURE__ */ W("div", {class: "qualitylist",- children: l.map((s) => /* @__PURE__ */ q("article", {+ children: l.map((s) => /* @__PURE__ */ W("article", {class: "qualityitem",children: [- /* @__PURE__ */ q("button", {+ /* @__PURE__ */ W("button", {class: "qualitycover",type: "button","aria-label": `打开 ${a(s)}`,onClick: () => t(s.id),- children: [/* @__PURE__ */ q("span", {+ children: [/* @__PURE__ */ W("span", {class: "qualityfallback",children: "暂无预览"- }), /* @__PURE__ */ q("img", {- src: ei(s),+ }), /* @__PURE__ */ W("img", {+ src: kr(s),alt: "",loading: "lazy",onError: (e) => e.currentTarget.remove()})]}),- /* @__PURE__ */ q("div", {+ /* @__PURE__ */ W("div", {class: "qualitybody",children: [- /* @__PURE__ */ q("h3", { children: /* @__PURE__ */ q("button", {+ /* @__PURE__ */ W("h3", { children: /* @__PURE__ */ W("button", {type: "button","data-middle-truncate": !0,onClick: () => t(s.id),dangerouslySetInnerHTML: { __html: i(s) }}) }),- /* @__PURE__ */ q("p", {+ /* @__PURE__ */ W("p", {class: "mono",children: [- /* @__PURE__ */ q("span", {+ /* @__PURE__ */ W("span", {style: "display:contents",dangerouslySetInnerHTML: { __html: o(s.location, s.cost) }}),- /* @__PURE__ */ q("span", { children: e[s.location] ?? s.location }),- /* @__PURE__ */ q("span", { children: n(s.duration) }),- /* @__PURE__ */ q("span", { children: r(s.size ?? 0) })+ /* @__PURE__ */ W("span", { children: e[s.location] ?? s.location }),+ /* @__PURE__ */ W("span", { children: n(s.duration) }),+ /* @__PURE__ */ W("span", { children: r(s.size ?? 0) })]}),- s.reason ? /* @__PURE__ */ q("p", {+ s.reason ? /* @__PURE__ */ W("p", {class: "qualityreason",children: s.reason}) : null]}),- /* @__PURE__ */ q("footer", {+ /* @__PURE__ */ W("footer", {class: "qualityactions",- children: /* @__PURE__ */ q("button", {+ children: /* @__PURE__ */ W("button", {type: "button",class: "geist-button",onClick: () => t(s.id),@@ -3726,80 +2464,80 @@ function ti({ openItem: t, javTitleHtml: i, javDisplayName: a, srcBadge: o }) {]}, s.id))})]- }) : /* @__PURE__ */ q("div", {+ }) : /* @__PURE__ */ W("div", {class: "qualitylist",- dangerouslySetInnerHTML: { __html: f("sparkles", "没有标记中的高清版目标", "现有版本都已满足条件,或还没有加入追踪。") }+ dangerouslySetInnerHTML: { __html: d("sparkles", "没有标记中的高清版目标", "现有版本都已满足条件,或还没有加入追踪。") }});}//#endregion//#region src/islands/scraping.tsx-var ni = (e, t) => G("/api/scraping", t);-function ri({ value: e, onChange: t }) {- let n = U(null), r = U(t);- return r.current = t, H(() => {+var jr = (e, t) => U("/api/scraping", t);+function Mr({ value: e, onChange: t }) {+ let n = V(null), r = V(t);+ return r.current = t, rt(() => {let t = n.current;- t.innerHTML = y([["peach", "Peach 代理"], ["direct", "直接连接"]], e, { label: "连接方式" });- let i = w(t.firstElementChild), a = () => r.current(i.value);+ t.innerHTML = v([["peach", "Peach 代理"], ["direct", "直接连接"]], e, { label: "连接方式" });+ let i = C(t.firstElementChild), a = () => r.current(i.value);return i.addEventListener("change", a), () => {i.disabled = !0, i.removeEventListener("change", a), t.replaceChildren();};- }, []), /* @__PURE__ */ q("div", {+ }, []), /* @__PURE__ */ W("div", {ref: n,class: "scraping-network"});}-function ii({ source: e, toast: t }) {- let [n, r] = B(e), [i, a] = B(e.network), [s, c] = B(""), [l, u] = B(""), [d, f] = B("paste"), [m, h] = B(""), [_, v] = B(!1), [y, b] = B(""), [S, C] = B([]), w = U(null), T = U(null);- H(() => {- T.current?.querySelectorAll("footer button").forEach((e) => x(e, _));+function Nr({ source: e, toast: t }) {+ let [n, r] = z(e), [i, a] = z(e.network), [s, c] = z(""), [l, u] = z(""), [d, p] = z("paste"), [m, g] = z(""), [_, v] = z(!1), [y, x] = z(""), [S, C] = z([]), w = V(null), T = V(null);+ rt(() => {+ T.current?.querySelectorAll("footer button").forEach((e) => b(e, _));}, [_]);- let E = U(new AbortController());- V(() => () => E.current.abort(), []);+ let E = V(new AbortController());+ B(() => () => E.current.abort(), []);async function D(n) {if (!_) {- v(!0), b(""), C([]);+ v(!0), x(""), C([]);try {if (n === "check") {- let t = await K("/api/scraping/check", { source: e.source }, "POST", E.current.signal);+ let t = await mt("/api/scraping/check", { source: e.source }, "POST", E.current.signal);E.current.signal.aborted || C(t.results);} else {- let a = await K("/api/scraping/settings", {+ let a = await mt("/api/scraping/settings", {source: e.source,network: i,cookie: s,cookies_text: l,revoke: n === "revoke"}, "POST", E.current.signal);- E.current.signal.aborted || (r(a.saved), c(""), u(""), h(""), w.current && (w.current.value = ""), t(n === "revoke" ? "Cookie 已撤销" : "来源设置已保存"));+ E.current.signal.aborted || (r(a.saved), c(""), u(""), g(""), w.current && (w.current.value = ""), t(n === "revoke" ? "Cookie 已撤销" : "来源设置已保存"));}} catch (e) {- E.current.signal.aborted || b(W(e));+ E.current.signal.aborted || x(H(e));} finally {E.current.signal.aborted || v(!1);}}}- return /* @__PURE__ */ q("section", {+ return /* @__PURE__ */ W("section", {class: "scraping-source",- children: /* @__PURE__ */ q("form", {+ children: /* @__PURE__ */ W("form", {ref: T,class: "cleanupfieldset","data-geist-fieldset": !0,onSubmit: (e) => {e.preventDefault(), D("save");},- children: [/* @__PURE__ */ q("div", {+ children: [/* @__PURE__ */ W("div", {class: "geist-fieldset-content scraping-fields",children: [- /* @__PURE__ */ q("div", {+ /* @__PURE__ */ W("div", {class: "geist-fieldset-heading",- children: [/* @__PURE__ */ q("div", { dangerouslySetInnerHTML: { __html: p(`scraping-${e.source}`, e.label) } }), /* @__PURE__ */ q("a", {+ children: [/* @__PURE__ */ W("div", { dangerouslySetInnerHTML: { __html: f(`scraping-${e.source}`, e.label) } }), /* @__PURE__ */ W("a", {class: "scraping-url externallink",href: e.login,target: "_blank",rel: "noopener noreferrer",children: [- /* @__PURE__ */ q("img", {+ /* @__PURE__ */ W("img", {src: o({ source: e.source }),alt: "",width: "16",@@ -3807,64 +2545,64 @@ function ii({ source: e, toast: t }) {loading: "lazy",onError: (e) => e.currentTarget.remove()}),- /* @__PURE__ */ q("span", { children: e.login }),- /* @__PURE__ */ q("svg", {+ /* @__PURE__ */ W("span", { children: e.login }),+ /* @__PURE__ */ W("svg", {class: "externalmark",viewBox: "0 0 24 24","aria-hidden": "true",- children: /* @__PURE__ */ q("use", { href: "#i-external-link" })+ children: /* @__PURE__ */ W("use", { href: "#i-external-link" })})]})]}),- /* @__PURE__ */ q("div", {+ /* @__PURE__ */ W("div", {class: "scraping-label",- children: ["连接方式", /* @__PURE__ */ q(ri, {+ children: ["连接方式", /* @__PURE__ */ W(Mr, {value: i,onChange: a})]}),- i === "peach" && /* @__PURE__ */ q(_t, {+ i === "peach" && /* @__PURE__ */ W(yt, {href: "/configuration#peachProxy",children: "配置 Peach 代理"}),- e.accepts_cookie && /* @__PURE__ */ q(I, { children: [- /* @__PURE__ */ q("p", { children: n.cookie_saved ? "Cookie 已保存,登录是否有效请在抓取时确认。" : "需要登录时,任选一种方式提供 Cookie。" }),- /* @__PURE__ */ q("div", {+ e.accepts_cookie && /* @__PURE__ */ W(F, { children: [+ /* @__PURE__ */ W("p", { children: n.cookie_saved ? "Cookie 已保存,登录是否有效请在抓取时确认。" : "需要登录时,任选一种方式提供 Cookie。" }),+ /* @__PURE__ */ W("div", {class: "insightswitch scraping-cookie-method",role: "radiogroup","aria-label": "提供 Cookie 的方式(二选一)",- children: [["paste", "粘贴 Cookie"], ["file", "导入文件"]].map(([t, n]) => /* @__PURE__ */ q("label", { children: [/* @__PURE__ */ q("input", {+ children: [["paste", "粘贴 Cookie"], ["file", "导入文件"]].map(([t, n]) => /* @__PURE__ */ W("label", { children: [/* @__PURE__ */ W("input", {type: "radio",name: `cookie-method-${e.source}`,value: t,checked: d === t,onChange: () => {- f(t), c(""), u(""), h("");+ p(t), c(""), u(""), g("");}- }), /* @__PURE__ */ q("span", { children: n })] }, t))+ }), /* @__PURE__ */ W("span", { children: n })] }, t))}),- d === "paste" ? /* @__PURE__ */ q("label", { children: ["Cookie", /* @__PURE__ */ q("input", {+ d === "paste" ? /* @__PURE__ */ W("label", { children: ["Cookie", /* @__PURE__ */ W("input", {class: "geist-input",type: "password",autoComplete: "off",value: s,disabled: _,onInput: (e) => c(e.currentTarget.value)- })] }) : /* @__PURE__ */ q("label", {+ })] }) : /* @__PURE__ */ W("label", {class: "scraping-file",- children: ["Netscape Cookie 文件(.txt)", /* @__PURE__ */ q("span", {+ children: ["Netscape Cookie 文件(.txt)", /* @__PURE__ */ W("span", {class: "scraping-file-control",children: [- /* @__PURE__ */ q("span", {+ /* @__PURE__ */ W("span", {class: "geist-button",children: "选择文件"}),- /* @__PURE__ */ q("span", {+ /* @__PURE__ */ W("span", {class: "scraping-file-name",children: m || "未选择文件"}),- /* @__PURE__ */ q("input", {+ /* @__PURE__ */ W("input", {ref: w,type: "file",accept: ".txt",@@ -3872,19 +2610,19 @@ function ii({ source: e, toast: t }) {onChange: async (e) => {let t = e.currentTarget.files?.[0];if (!t) {- u(""), h("");+ u(""), g("");return;}if (u(""), t.size > 262144) {- b("Cookie 文本超过 256 KiB"), e.currentTarget.value = "";+ x("Cookie 文本超过 256 KiB"), e.currentTarget.value = "";return;}v(!0);try {let e = await t.text();- E.current.signal.aborted || (u(e), h(t.name));+ E.current.signal.aborted || (u(e), g(t.name));} catch {- E.current.signal.aborted || b("Cookie 文件未读取,请重新选择");+ E.current.signal.aborted || x("Cookie 文件未读取,请重新选择");} finally {E.current.signal.aborted || v(!1);}@@ -3894,32 +2632,32 @@ function ii({ source: e, toast: t }) {})]})] }),- y && /* @__PURE__ */ q("div", {+ y && /* @__PURE__ */ W("div", {role: "alert",- dangerouslySetInnerHTML: { __html: g(y, { variant: "error" }) }+ dangerouslySetInnerHTML: { __html: h(y, { variant: "error" }) }}),- S.map((t) => /* @__PURE__ */ q("div", {+ S.map((t) => /* @__PURE__ */ W("div", {role: "status",- dangerouslySetInnerHTML: { __html: g(`${e.label}${t.label === "来源页面" ? "" : " 高清图片"}:${t.ok ? "可连接" : "不能连接"}` + (t.width ? ` · ${t.width} × ${t.height}` : "") + (t.message ? `。${t.message}` : ""), { variant: t.ok ? "success" : "error" }) }+ dangerouslySetInnerHTML: { __html: h(`${e.label}${t.label === "来源页面" ? "" : " 高清图片"}:${t.ok ? "可连接" : "不能连接"}` + (t.width ? ` · ${t.width} × ${t.height}` : "") + (t.message ? `。${t.message}` : ""), { variant: t.ok ? "success" : "error" }) }}, t.label))]- }), /* @__PURE__ */ q("footer", {+ }), /* @__PURE__ */ W("footer", {class: "geist-fieldset-footer","data-geist-fieldset-footer": !0,children: [- e.accepts_cookie && n.cookie_saved && /* @__PURE__ */ q("button", {+ e.accepts_cookie && n.cookie_saved && /* @__PURE__ */ W("button", {class: "geist-button",type: "button",onClick: () => void D("revoke"),children: "撤销 Cookie"}),- /* @__PURE__ */ q("button", {+ /* @__PURE__ */ W("button", {class: "geist-button",type: "button",onClick: () => void D("check"),children: "检查连接"}),- /* @__PURE__ */ q("button", {+ /* @__PURE__ */ W("button", {class: "geist-button primary",type: "submit",children: "保存"@@ -3929,52 +2667,52 @@ function ii({ source: e, toast: t }) {})});}-function ai({ data: e, error: t, toast: n }) {- let [r, i] = B(""), [a, o] = B(!1), [s, c] = B(""), [l, u] = B(""), d = U(null);- H(() => x(d.current, a), [a]);- let f = U(new AbortController()), h = U(0);+function Pr({ data: e, error: t, toast: n }) {+ let [r, i] = z(""), [a, o] = z(!1), [s, c] = z(""), [l, u] = z(""), d = V(null);+ rt(() => b(d.current, a), [a]);+ let m = V(new AbortController()), g = V(0);async function _(e = !1) {- let t = ++h.current;- await mt({- read: (e) => G("/api/scraping/cover", e),- active: () => !f.current.signal.aborted && t === h.current,+ let t = ++g.current;+ await gt({+ read: (e) => U("/api/scraping/cover", e),+ active: () => !m.current.signal.aborted && t === g.current,render: (t) => {o(t.status === "running"), t.status === "running" && (e = !1), t.status === "failed" && !e && c(t.error || "采集未取得"), t.status === "complete" && !e && (u(t.result || "封面采集完成"), n(t.result || "封面采集完成"));},disconnected: () => c("连接中断,正在重新读取后台进度")});}- V(() => (_(!0), () => f.current.abort()), []);+ B(() => (_(!0), () => m.current.abort()), []);async function v() {if (!a) {- h.current++, o(!0), c(""), u("");+ g.current++, o(!0), c(""), u("");try {- await K("/api/scraping/cover", { code: r }, "POST", f.current.signal), await _();+ await mt("/api/scraping/cover", { code: r }, "POST", m.current.signal), await _();} catch (e) {- f.current.signal.aborted || (o(!1), c(W(e)));+ m.current.signal.aborted || (o(!1), c(H(e)));}}}- return t ? /* @__PURE__ */ q("div", {+ return t ? /* @__PURE__ */ W("div", {role: "alert",- dangerouslySetInnerHTML: { __html: g(t, { variant: "error" }) }- }) : /* @__PURE__ */ q("div", {+ dangerouslySetInnerHTML: { __html: h(t, { variant: "error" }) }+ }) : /* @__PURE__ */ W("div", {class: "scraping-page",children: [- /* @__PURE__ */ q("p", { children: "高清图片可能需要代理才能下载,请先检查连接。" }),- /* @__PURE__ */ q("section", {+ /* @__PURE__ */ W("p", { children: "高清图片可能需要代理才能下载,请先检查连接。" }),+ /* @__PURE__ */ W("section", {class: "cleanupfieldset scraping-source","data-geist-fieldset": !0,- children: /* @__PURE__ */ q("div", {+ children: /* @__PURE__ */ W("div", {class: "geist-fieldset-content scraping-fields",children: [- /* @__PURE__ */ q("div", { dangerouslySetInnerHTML: { __html: p("scraping-cover", "高清封面") } }),- /* @__PURE__ */ q("form", {+ /* @__PURE__ */ W("div", { dangerouslySetInnerHTML: { __html: f("scraping-cover", "高清封面") } }),+ /* @__PURE__ */ W("form", {class: "scraping-cover-form",onSubmit: (e) => {e.preventDefault(), v();},- children: [/* @__PURE__ */ q("input", {+ children: [/* @__PURE__ */ W("input", {class: "geist-input","aria-label": "馆藏番号",required: !0,@@ -3982,29 +2720,29 @@ function ai({ data: e, error: t, toast: n }) {disabled: a,placeholder: "输入馆藏番号,如 ABW-232",onInput: (e) => i(e.currentTarget.value)- }), /* @__PURE__ */ q("button", {+ }), /* @__PURE__ */ W("button", {ref: d,class: "geist-button primary",type: "submit",children: "抓取封面"})]}),- a && /* @__PURE__ */ q("div", {+ a && /* @__PURE__ */ W("div", {"aria-live": "polite",- dangerouslySetInnerHTML: { __html: m("正在抓取封面") }+ dangerouslySetInnerHTML: { __html: p("正在抓取封面") }}),- s && /* @__PURE__ */ q("div", {+ s && /* @__PURE__ */ W("div", {role: "alert",- dangerouslySetInnerHTML: { __html: g(s, { variant: "error" }) }+ dangerouslySetInnerHTML: { __html: h(s, { variant: "error" }) }}),- l && /* @__PURE__ */ q("div", {+ l && /* @__PURE__ */ W("div", {role: "status",- dangerouslySetInnerHTML: { __html: g(l) }+ dangerouslySetInnerHTML: { __html: h(l) }})]})}),- e?.sources.map((e) => /* @__PURE__ */ q(ii, {+ e?.sources.map((e) => /* @__PURE__ */ W(Nr, {source: e,toast: n}, e.source))@@ -4013,24 +2751,24 @@ function ai({ data: e, error: t, toast: n }) {}//#endregion//#region src/islands/activity.tsx-var oi = (e, t) => G("/api/tasks", t), si = {+var Fr = (e, t) => U("/api/tasks", t), Ir = {manual: "手动",scheduled: "定时",startup: "启动",cli: "命令行"-}, ci = {+}, Lr = {pending: "排队中",running: "进行中",succeeded: "已完成",failed: "失败",cancelled: "已取消",interrupted: "被打断"-}, li = (e) => ci[e] || e, ui = {+}, Rr = (e) => Lr[e] || e, zr = {succeeded: "ok",failed: "error",cancelled: "paused",interrupted: "paused"-}, di = {+}, Br = {checked: "已检查",total: "总数",scanned: "已扫描",@@ -4050,14 +2788,14 @@ var oi = (e, t) => G("/api/tasks", t), si = {exit_code: "退出码",issue_count: "问题"};-function fi(e) {+function Vr(e) {if (typeof e != "number" || !Number.isFinite(e) || e < 0) return "";let t = Math.floor(e);if (t < 60) return `${t} 秒`;let n = Math.floor(t / 60);return n < 60 ? `${n} 分 ${t % 60} 秒` : `${Math.floor(n / 60)} 小时 ${n % 60} 分`;}-function pi(e) {+function Hr(e) {if (!e) return "";let t = new Date(e);return Number.isNaN(t.getTime()) ? "" : t.toLocaleString(void 0, {@@ -4067,49 +2805,49 @@ function pi(e) {minute: "2-digit"});}-function mi(e) {- return Object.entries(e || {}).filter(([e, t]) => e !== "blocked_by" && (typeof t == "number" || typeof t == "string") && String(t) !== "").map(([e, t]) => `${di[e] || e} ${t}`).join(" · ");+function Ur(e) {+ return Object.entries(e || {}).filter(([e, t]) => e !== "blocked_by" && (typeof t == "number" || typeof t == "string") && String(t) !== "").map(([e, t]) => `${Br[e] || e} ${t}`).join(" · ");}-function hi({ status: e }) {- let t = ui[e];- return /* @__PURE__ */ q("span", {+function Wr({ status: e }) {+ let t = zr[e];+ return /* @__PURE__ */ W("span", {class: t ? `sbadge ${t}` : "sbadge",- children: [/* @__PURE__ */ q("i", { "aria-hidden": "true" }), li(e)]+ children: [/* @__PURE__ */ W("i", { "aria-hidden": "true" }), Rr(e)]});}-function gi({ run: e, meta: t, children: n, footer: r }) {- return /* @__PURE__ */ q("li", { children: /* @__PURE__ */ q("section", {+function Gr({ run: e, meta: t, children: n, footer: r }) {+ return /* @__PURE__ */ W("li", { children: /* @__PURE__ */ W("section", {class: "cleanupfieldset activity-run","data-geist-fieldset": !0,"data-status": e.status,"data-task-key": e.task_key,- children: [/* @__PURE__ */ q("div", {+ children: [/* @__PURE__ */ W("div", {class: "geist-fieldset-content",children: [- /* @__PURE__ */ q("div", {+ /* @__PURE__ */ W("div", {class: "activity-run-head",- children: [/* @__PURE__ */ q("strong", { children: e.task_label }), /* @__PURE__ */ q(hi, { status: e.status })]+ children: [/* @__PURE__ */ W("strong", { children: e.task_label }), /* @__PURE__ */ W(Wr, { status: e.status })]}),- /* @__PURE__ */ q("p", {+ /* @__PURE__ */ W("p", {class: "cleanupmeta",children: t}),n]- }), r ? /* @__PURE__ */ q("div", {+ }), r ? /* @__PURE__ */ W("div", {class: "geist-fieldset-footer",- children: /* @__PURE__ */ q("p", { children: r })+ children: /* @__PURE__ */ W("p", { children: r })}) : null]}) });}-function _i({ run: e }) {- let t = e.progress_total || 0, n = e.progress_current || 0, r = e.progress_label || "正在进行", i = fi(e.elapsed_seconds);- return /* @__PURE__ */ q(gi, {+function Kr({ run: e }) {+ let t = e.progress_total || 0, n = e.progress_current || 0, r = e.progress_label || "正在进行", i = Vr(e.elapsed_seconds);+ return /* @__PURE__ */ W(Gr, {run: e,- meta: [si[e.trigger] || e.trigger, i && `已跑 ${i}`].filter(Boolean).join(" · "),- children: t > 0 ? /* @__PURE__ */ q("div", {+ meta: [Ir[e.trigger] || e.trigger, i && `已跑 ${i}`].filter(Boolean).join(" · "),+ children: t > 0 ? /* @__PURE__ */ W("div", {class: "activity-progress",- children: [/* @__PURE__ */ q("div", { dangerouslySetInnerHTML: { __html: _(r, n, t) } }), /* @__PURE__ */ q("p", {+ children: [/* @__PURE__ */ W("div", { dangerouslySetInnerHTML: { __html: g(r, n, t) } }), /* @__PURE__ */ W("p", {class: "cleanupmeta",children: [r,@@ -4120,89 +2858,89 @@ function _i({ run: e }) {" 项"]})]- }) : /* @__PURE__ */ q("div", { dangerouslySetInnerHTML: { __html: m(r) } })+ }) : /* @__PURE__ */ W("div", { dangerouslySetInnerHTML: { __html: p(r) } })});}-function vi({ run: e }) {- let t = mi(e.result_summary), n = fi(e.elapsed_seconds);- return /* @__PURE__ */ q(gi, {+function qr({ run: e }) {+ let t = Ur(e.result_summary), n = Vr(e.elapsed_seconds);+ return /* @__PURE__ */ W(Gr, {run: e,meta: [- si[e.trigger] || e.trigger,- pi(e.finished_at),+ Ir[e.trigger] || e.trigger,+ Hr(e.finished_at),n && `用时 ${n}`].filter(Boolean).join(" · "),footer: e.error,- children: t ? /* @__PURE__ */ q("p", {+ children: t ? /* @__PURE__ */ W("p", {class: "cleanupmeta",children: t}) : null});}-function yi({ data: e, error: t, preview: n }) {- let [r, i] = B(e), [a, o] = B(t), s = U(new AbortController()), c = r?.running || [];- if (V(() => {+function Jr({ data: e, error: t, preview: n }) {+ let [r, i] = z(e), [a, o] = z(t), s = V(new AbortController()), c = r?.running || [];+ if (B(() => {if (n) return;let e = s.current.signal, t = 0, r = async () => {try {- let n = await G("/api/tasks", e);+ let n = await U("/api/tasks", e);if (e.aborted) return;i(n), o(""), t = setTimeout(r, n.running.length ? 2e3 : 1e4);} catch (n) {if (e.aborted) return;- o(W(n)), t = setTimeout(r, 1e4);+ o(H(n)), t = setTimeout(r, 1e4);}};return t = setTimeout(r, c.length ? 2e3 : 1e4), () => {s.current.abort(), clearTimeout(t);};- }, []), !r) return /* @__PURE__ */ q("div", {+ }, []), !r) return /* @__PURE__ */ W("div", {class: "activitypage",role: "alert",- dangerouslySetInnerHTML: { __html: g(a || "读取任务中心失败", {+ dangerouslySetInnerHTML: { __html: h(a || "读取任务中心失败", {variant: "error",filled: !0}) }});- let l = r.skipped || [], u = (r.finished || []).filter((e) => !l.some((t) => t.id === e.id)), d = !c.length && !l.length && !u.length;- return /* @__PURE__ */ q("div", {+ let l = r.skipped || [], u = (r.finished || []).filter((e) => !l.some((t) => t.id === e.id)), p = !c.length && !l.length && !u.length;+ return /* @__PURE__ */ W("div", {class: "activitypage",children: [- a && /* @__PURE__ */ q("div", {+ a && /* @__PURE__ */ W("div", {role: "alert",- dangerouslySetInnerHTML: { __html: g(a, {+ dangerouslySetInnerHTML: { __html: h(a, {variant: "error",filled: !0}) }}),- r.available === !1 && /* @__PURE__ */ q("div", { dangerouslySetInnerHTML: { __html: g(r.message || "账本上还没有任务中心的表", { variant: "warning" }) } }),- d ? /* @__PURE__ */ q("div", { dangerouslySetInnerHTML: { __html: f("history", "还没有任务记录", "扫描、追更检查、批量操作和命令行批处理跑起来之后,这里会显示它们的进度与结果。") } }) : /* @__PURE__ */ q(I, { children: [- /* @__PURE__ */ q("section", {+ r.available === !1 && /* @__PURE__ */ W("div", { dangerouslySetInnerHTML: { __html: h(r.message || "账本上还没有任务中心的表", { variant: "warning" }) } }),+ p ? /* @__PURE__ */ W("div", { dangerouslySetInnerHTML: { __html: d("history", "还没有任务记录", "扫描、追更检查、批量操作和命令行批处理跑起来之后,这里会显示它们的进度与结果。") } }) : /* @__PURE__ */ W(F, { children: [+ /* @__PURE__ */ W("section", {class: "activitysection","aria-labelledby": "activityRunning",- children: [/* @__PURE__ */ q("div", { dangerouslySetInnerHTML: { __html: p("activityRunning", "正在进行") } }), c.length ? /* @__PURE__ */ q("ul", {+ children: [/* @__PURE__ */ W("div", { dangerouslySetInnerHTML: { __html: f("activityRunning", "正在进行") } }), c.length ? /* @__PURE__ */ W("ul", {class: "activity-runs","aria-live": "polite",- children: c.map((e) => /* @__PURE__ */ q(_i, { run: e }, e.id))- }) : /* @__PURE__ */ q("div", { dangerouslySetInnerHTML: { __html: g("没有任务在跑。", {+ children: c.map((e) => /* @__PURE__ */ W(Kr, { run: e }, e.id))+ }) : /* @__PURE__ */ W("div", { dangerouslySetInnerHTML: { __html: h("没有任务在跑。", {variant: "secondary",size: "small"}) } })]}),- !!l.length && /* @__PURE__ */ q("section", {+ !!l.length && /* @__PURE__ */ W("section", {class: "activitysection","aria-labelledby": "activitySkipped",- children: [/* @__PURE__ */ q("div", { dangerouslySetInnerHTML: { __html: p("activitySkipped", "被挡下的") } }), /* @__PURE__ */ q("ul", {+ children: [/* @__PURE__ */ W("div", { dangerouslySetInnerHTML: { __html: f("activitySkipped", "被挡下的") } }), /* @__PURE__ */ W("ul", {class: "activity-runs",- children: l.map((e) => /* @__PURE__ */ q(vi, { run: e }, e.id))+ children: l.map((e) => /* @__PURE__ */ W(qr, { run: e }, e.id))})]}),- !!u.length && /* @__PURE__ */ q("section", {+ !!u.length && /* @__PURE__ */ W("section", {class: "activitysection","aria-labelledby": "activityFinished",- children: [/* @__PURE__ */ q("div", { dangerouslySetInnerHTML: { __html: p("activityFinished", "最近完成") } }), /* @__PURE__ */ q("ul", {+ children: [/* @__PURE__ */ W("div", { dangerouslySetInnerHTML: { __html: f("activityFinished", "最近完成") } }), /* @__PURE__ */ W("ul", {class: "activity-runs",- children: u.map((e) => /* @__PURE__ */ q(vi, { run: e }, e.id))+ children: u.map((e) => /* @__PURE__ */ W(qr, { run: e }, e.id))})]})] })@@ -4211,12 +2949,12 @@ function yi({ data: e, error: t, preview: n }) {}//#endregion//#region src/state/index.ts-var bi = { "quality-goals": {- refresh: Qr,- reset: Zr-} }, xi = () => Object.keys(bi);-async function Si(e) {- let t = bi[e];+var Yr = { "quality-goals": {+ refresh: Dr,+ reset: Er+} }, Xr = () => Object.keys(Yr);+async function Zr(e) {+ let t = Yr[e];if (!t) throw Error(`未登记的共享 store:${String(e)}`);try {return await t.refresh(), !0;@@ -4226,24 +2964,24 @@ async function Si(e) {}//#endregion//#region src/review-evidence.ts-var Ci = (e = "") => /^https?:\/\//i.test(e) ? e : "";-function wi(e = "") {- let n = Ci(e) || (e.startsWith("/") && !e.startsWith("//") ? e : "");+var Qr = (e = "") => /^https?:\/\//i.test(e) ? e : "";+function $r(e = "") {+ let n = Qr(e) || (e.startsWith("/") && !e.startsWith("//") ? e : "");return `<div class="reviewimage" data-review-picture><span class="reviewimageempty"${n ? " hidden" : ""}>未取得来源图片</span>${n ? `<img src="${t(n)}" alt="来源候选图片" loading="lazy">` : ""}</div>`;}-function Ti(e) {- let n = Ci(e.profile_url), r = (e.preview_assets || []).slice(0, 6), i = Math.max(0, Number(e.video_count || e.videos || 0));+function ei(e) {+ let n = Qr(e.profile_url), r = (e.preview_assets || []).slice(0, 6), i = Math.max(0, Number(e.video_count || e.videos || 0));return `<section class="reviewidentityevidence"><h5>候选身份:${t(e.babepedia_name || "未标注")}</h5><div class="reviewevidenceactions">${n ? `<a class="geist-button externallink" href="${t(n)}" target="_blank" rel="noopener noreferrer">来源资料<svg class="externalmark" viewBox="0 0 24 24" aria-hidden="true"><use href="#i-external-link" /></svg></a>` : ""}<button type="button" class="geist-button" data-entity-kind="creator" data-entity-name="${t(e.creator || "")}">查看全部 ${i.toLocaleString()} 部作品</button></div>- ${wi(e.preview_url)}+ ${$r(e.preview_url)}<p>通过后记录身份判断。</p>${r.length ? `<h5>本地作品样本</h5><div class="reviewevidencesamples">${r.map((e) => `<div class="reviewevidencesample"><button class="geist-button" type="button" data-review-open-item="${e.id}"><span data-middle-truncate title="${t(e.name)}">${t(e.name)}</span></button><button class="geist-button" type="button" data-review-reveal="${e.id}" aria-label="打开 ${t(e.name)} 的文件位置">文件位置</button></div>`).join("")}</div>` : "<p>暂无本地作品样本,打开全部作品核对。</p>"}</section>`;}-function Ei(e) {+function ti(e) {for (let t of e.querySelectorAll("[data-review-picture] img")) {let e = () => {t.hidden = !0;@@ -4255,11 +2993,11 @@ function Ei(e) {}//#endregion//#region src/selection.ts-function Di(e, t, n, r, i, a = i || !e.has(r)) {+function ni(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;}-function Oi(e, t) {+function ri(e, t) {let n = t.filter((t) => e.has(t)).length;return {count: n,@@ -4267,16 +3005,16 @@ function Oi(e, t) {mixed: n > 0 && n < t.length};}-function ki(e, t, n) {+function ii(e, t, n) {t.forEach((t) => n ? e.add(t) : e.delete(t));}-function Ai({ count: e, label: t, all: n, summary: r, actions: i, locked: a = !1 }) {+function ai({ count: e, label: t, all: n, summary: r, actions: i, locked: a = !1 }) {e && (e.textContent = t), n && (n.checked = r.all, n.indeterminate = r.mixed);for (let e of i) e.disabled = !r.count || a;}//#endregion//#region src/review-bulk.ts-var ji = () => ({+var oi = () => ({busy: !1,category: "",filter: "",@@ -4287,7 +3025,7 @@ var ji = () => ({assets: /* @__PURE__ */ new Map(),errors: /* @__PURE__ */ new Map()});-function Mi(e) {+function si(e) {let t = e?.querySelector(".reviewbulktoolbar");if (!e || e.classList.contains("review-skeleton") || !t || t.offsetParent === null) return;e.style.setProperty("--review-controls-height", `${t.getBoundingClientRect().height}px`);@@ -4303,7 +3041,7 @@ function Mi(e) {let o = i.getBoundingClientRect(), s = a.getBoundingClientRect();e.style.setProperty("--review-pane-top", `${o.top}px`), e.style.setProperty("--review-pane-left", `${o.left}px`), e.style.setProperty("--review-pane-width", `${o.width}px`), e.style.setProperty("--review-pane-height", `${s.bottom - o.top}px`);}-function Ni(e, t) {+function ci(e, t) {let n = [["candidates",t ? "按候选数量" : "全部待复核",@@ -4319,7 +3057,7 @@ function Ni(e, t) {"list-filter"]), n;}-function Pi(e, t) {+function li(e, t) {let n = /* @__PURE__ */ new Map();for (let r of e) {let e, i;@@ -4336,10 +3074,10 @@ function Pi(e, t) {}return [...n.values()];}-function Fi(e, t, n, r, i) {- e.anchor = Di(e.selected, t, e.anchor, n, r, i);+function ui(e, t, n, r, i) {+ e.anchor = ni(e.selected, t, e.anchor, n, r, i);}-async function Ii(e, t, n, r) {+async function di(e, t, n, r) {let i = [], a = 0;for (let o of e) {if (!r()) break;@@ -4350,7 +3088,7 @@ async function Ii(e, t, n, r) {} catch (e) {i.push({key: o.key,- message: W(e)+ message: H(e)});}}@@ -4359,17 +3097,17 @@ async function Ii(e, t, n, r) {failures: i};}-function Li(e) {+function fi(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 Ri(e, t) {+function pi(e, t) {let n = e.querySelector(".reviewlist");if (!n || !t.rows.length || t.locked) return;let r = t.state, a = [...n.querySelectorAll("[data-review-key]")];t.category !== void 0 && r.category !== t.category && (r.category = t.category, r.filter = "", r.groupBy = "candidates", r.anchor = null);- let o = t.catalog || t.rows, s = Ni(o, t.metadata);+ let o = t.catalog || t.rows, s = ci(o, t.metadata);s.some((e) => e[0] === r.groupBy) || (r.groupBy = "candidates", r.filter = "");- let c = Pi(o, r.groupBy);+ let c = li(o, r.groupBy);c.some((e) => e.key === r.filter) || (r.filter = "");let u = () => [...n.querySelectorAll("[data-review-key]")].filter((e) => !e.closest("[hidden]")), d = () => u().filter((e) => r.selected.has(e.dataset.reviewKey)), f = () => t.rows.filter((e) => d().some((t) => t.dataset.reviewKey === e.item_key)), p = (e) => !e.querySelector("[data-review-status=\"approved\"]")?.disabled, m = (e, t = "") => {let n = document.createElement("button");@@ -4377,16 +3115,16 @@ function Ri(e, t) {}, h = document.createElement("div");h.className = "reviewbulkbar reviewbulktoolbar", h.setAttribute("role", "group"), h.setAttribute("aria-label", "复核批量操作");let g = document.createElement("div");- g.className = "reviewgroupby", g.innerHTML = y(s, r.groupBy, { label: "筛选分组方式" });- let _ = w(g.firstElementChild);+ g.className = "reviewgroupby", g.innerHTML = v(s, r.groupBy, { label: "筛选分组方式" });+ let _ = C(g.firstElementChild);g.querySelectorAll("[data-select-option] .gselectmark").forEach((e) => e.remove()), _.addEventListener("change", () => {if (r.busy || !s.some((e) => e[0] === _.value)) return;r.groupBy = _.value, r.filter = "", r.anchor = null;let n = e.parentElement;t.refresh(), n?.querySelector(".reviewgroupby button")?.focus({ preventScroll: !0 });});- let v = document.createElement("div");- v.className = "reviewcategoryfilter", v.hidden = c.length < 2, v.innerHTML = y([[+ let y = document.createElement("div");+ y.className = "reviewcategoryfilter", y.hidden = c.length < 2, y.innerHTML = v([["","全部分类","list-filter"@@ -4395,21 +3133,21 @@ function Ri(e, t) {`${e.title} · ${e.rows.length}`,"list-filter"])], r.filter, { label: r.groupBy === "field" ? "筛选字段分类" : "筛选当前分类" });- let b = v.querySelector("[data-select-menu]");- if (b) {+ let x = y.querySelector("[data-select-menu]");+ if (x) {let e = document.createElement("div");e.setAttribute("role", "group"), e.setAttribute("aria-label", r.groupBy === "field" ? "字段分类" : "当前分类");let t = document.createElement("div");- t.className = "reviewfilterheading", t.textContent = e.getAttribute("aria-label"), t.setAttribute("aria-hidden", "true"), e.append(t, ...Array.from(b.children).slice(1)), b.append(e);+ t.className = "reviewfilterheading", t.textContent = e.getAttribute("aria-label"), t.setAttribute("aria-hidden", "true"), e.append(t, ...Array.from(x.children).slice(1)), x.append(e);}- let S = w(v.firstElementChild);- v.querySelectorAll("[data-select-option] .gselectmark").forEach((e) => e.remove()), S.addEventListener("change", () => {+ let S = C(y.firstElementChild);+ y.querySelectorAll("[data-select-option] .gselectmark").forEach((e) => e.remove()), S.addEventListener("change", () => {if (r.busy || S.value && !c.some((e) => e.key === S.value)) return;r.filter = S.value, r.anchor = null;let n = e.parentElement;t.refresh(), n?.querySelector(".reviewcategoryfilter button")?.focus({ preventScroll: !0 });});- let C = m("全选本页"), T = m("通过所选", "primary"), E = m("拒绝所选", "error"), D = document.createElement("span");+ let w = m("全选本页"), T = m("通过所选", "primary"), E = m("拒绝所选", "error"), D = document.createElement("span");D.className = "reviewselectedcount selectiondockcount", D.setAttribute("role", "status");let O = document.createElement("div");O.className = "reviewbulksource", O.hidden = !t.metadata;@@ -4420,20 +3158,20 @@ function Ri(e, t) {let j = document.createElement("div");j.className = "selectiondock reviewdock", j.setAttribute("role", "group"), j.setAttribute("aria-label", "复核所选项目");let ee = m("取消选择");- j.append(D, O, A, ee, k), h.append(g, v, C);- let M = e.querySelector(".reviewcontrols");- M ? M.after(h) : n.before(h), e.append(j), n.classList.add("reviewgroups");- let te = () => {- r.selected.clear(), r.anchor = null, P();+ j.append(D, O, A, ee, k), h.append(g, y, w);+ let te = e.querySelector(".reviewcontrols");+ te ? te.after(h) : n.before(h), e.append(j), n.classList.add("reviewgroups");+ let M = () => {+ r.selected.clear(), r.anchor = null, N();};ee.onclick = () => {- r.busy || (te(), C.focus({ preventScroll: !0 }));- }, C.onclick = () => {+ r.busy || (M(), w.focus({ preventScroll: !0 }));+ }, w.onclick = () => {if (r.busy) return;let e = u(), t = d().length === e.length;- e.forEach((e) => t ? r.selected.delete(e.dataset.reviewKey) : r.selected.add(e.dataset.reviewKey)), P();- }, T.onclick = () => re("approved", T), E.onclick = () => re("rejected", E);- let N = [];+ e.forEach((e) => t ? r.selected.delete(e.dataset.reviewKey) : r.selected.add(e.dataset.reviewKey)), N();+ }, T.onclick = () => ie("approved", T), E.onclick = () => ie("rejected", E);+ let ne = [];for (let e of c) {let t = e.rows.map((e) => a.find((t) => t.dataset.reviewKey === e.item_key)).filter((e) => !!e);if (!t.length) continue;@@ -4447,8 +3185,8 @@ function Ri(e, t) {f.className = "reviewlist", s.append(c, d), o.append(s, f), n.append(o), d.onclick = () => {if (r.busy) return;let e = t.map((e) => e.dataset.reviewKey);- ki(r.selected, e, !e.every((e) => r.selected.has(e))), P();- }, N.push(() => {+ ii(r.selected, e, !e.every((e) => r.selected.has(e))), N();+ }, ne.push(() => {let e = t.every((e) => r.selected.has(e.dataset.reviewKey));d.innerHTML = i(e ? "check-check-outline" : "check-check") + (e ? "清空本组" : "全选本组"), d.setAttribute("aria-pressed", String(e));});@@ -4464,7 +3202,7 @@ function Ri(e, t) {e.className = "reviewpickname", e.append(...n.childNodes), n.classList.add("reviewpickheading"), n.append(i, e);} else e.prepend(i);let o = (e, n) => {- Fi(r, u().map((e) => e.dataset.reviewKey), t, e, n), P();+ ui(r, u().map((e) => e.dataset.reviewKey), t, e, n), N();};if (i.addEventListener("mousedown", (e) => {e.shiftKey && e.preventDefault();@@ -4478,10 +3216,10 @@ function Ri(e, t) {else if (n.key === "ArrowDown" || n.key === "ArrowUp") {n.preventDefault();let i = u(), a = i[i.indexOf(e) + (n.key === "ArrowDown" ? 1 : -1)];- a && (r.anchor === null && (r.anchor = t), Fi(r, i.map((e) => e.dataset.reviewKey), a.dataset.reviewKey, !0, !0), P(), a.querySelector(".reviewpickitem input")?.focus());+ a && (r.anchor === null && (r.anchor = t), ui(r, i.map((e) => e.dataset.reviewKey), a.dataset.reviewKey, !0, !0), N(), a.querySelector(".reviewpickitem input")?.focus());}}- }), N.push(() => {+ }), ne.push(() => {a.checked = r.selected.has(t);}), r.assets.has(t)) {let n = r.assets.get(t), i = [...e.querySelectorAll("[data-review-asset]")];@@ -4496,30 +3234,30 @@ function Ri(e, t) {n.target.closest("[data-review-asset],[data-pick-all],[data-pick-none]") && r.assets.set(t, [...e.querySelectorAll("[data-review-asset][aria-pressed=\"true\"]")].map((e) => Number(e.dataset.reviewAsset)));});for (let n of e.querySelectorAll("input[type=\"radio\"]")) r.choices.has(t) && (n.checked = r.choices.get(t) === n.value), n.addEventListener("change", () => {- n.checked && r.choices.set(t, n.value), P();+ n.checked && r.choices.set(t, n.value), N();});}}e.addEventListener("keydown", (t) => {- r.busy || !e.contains(n) || (t.key === "Escape" && r.selected.size && (t.preventDefault(), t.stopPropagation(), te()), (t.ctrlKey || t.metaKey) && t.key.toLowerCase() === "a" && !t.target.matches("textarea,input:not([type=\"checkbox\"]):not([type=\"radio\"])") && (t.preventDefault(), t.stopPropagation(), u().forEach((e) => r.selected.add(e.dataset.reviewKey)), P()));+ r.busy || !e.contains(n) || (t.key === "Escape" && r.selected.size && (t.preventDefault(), t.stopPropagation(), M()), (t.ctrlKey || t.metaKey) && t.key.toLowerCase() === "a" && !t.target.matches("textarea,input:not([type=\"checkbox\"]):not([type=\"radio\"])") && (t.preventDefault(), t.stopPropagation(), u().forEach((e) => r.selected.add(e.dataset.reviewKey)), N()));});- let ne = "";- function P() {+ let re = "";+ function N() {let e = d(), n = e.length > 0 && e.length === u().length;- C.innerHTML = i(n ? "check-check-outline" : "check-check") + (n ? "清空当前选择" : r.filter ? "全选当前分类" : "全选本页"), C.setAttribute("aria-pressed", String(n)), j.hidden = !e.length, Ai({+ w.innerHTML = i(n ? "check-check-outline" : "check-check") + (n ? "清空当前选择" : r.filter ? "全选当前分类" : "全选本页"), w.setAttribute("aria-pressed", String(n)), j.hidden = !e.length, ai({count: D,label: `已选 ${e.length} 项`,- summary: Oi(r.selected, u().map((e) => e.dataset.reviewKey)),+ summary: ri(r.selected, u().map((e) => e.dataset.reviewKey)),actions: [T, E]}), T.disabled ||= e.some((e) => !p(e));- let a = Li(f());+ let a = fi(f());O.hidden = !t.metadata || !f().some((e) => (e.candidates?.length || 0) > 1);let o = e.length && !a.length ? "所选项目无共同来源" : "统一选择来源", s = JSON.stringify([o, a]);- if (s !== ne) {- ne = s, O.innerHTML = y([["", o], ...a.map((e) => [e, e])], "", { label: "统一选择来源" });- let e = w(O.firstElementChild);+ if (s !== re) {+ re = s, O.innerHTML = v([["", o], ...a.map((e) => [e, e])], "", { label: "统一选择来源" });+ let e = C(O.firstElementChild);e.disabled = !a.length, e.addEventListener("change", () => {- if (!(r.busy || !Li(f()).includes(e.value))) {+ if (!(r.busy || !fi(f()).includes(e.value))) {for (let n of d()) {let i = t.rows.find((e) => e.item_key === n.dataset.reviewKey).candidates.find((t) => t.source === e.value);n.querySelectorAll("input[type=\"radio\"]").forEach((e) => {@@ -4530,9 +3268,9 @@ function Ri(e, t) {}});}- N.forEach((e) => e());+ ne.forEach((e) => e());}- async function re(n, i) {+ async function ie(n, i) {if (r.busy || !d().length) return;let a = d().map((e) => ({key: e.dataset.reviewKey,@@ -4545,14 +3283,14 @@ function Ri(e, t) {k.textContent = "请先为所选的多来源候选选择来源。", d().find((e) => !e.querySelector("input[type=\"radio\"]:checked"))?.querySelector("input[type=\"radio\"]")?.focus();return;}- r.busy = !0, k.textContent = `正在处理 0 / ${a.length}`, x(i, !0);+ r.busy = !0, k.textContent = `正在处理 0 / ${a.length}`, b(i, !0);let o = [...e.querySelectorAll("button,input")], s = o.map((e) => e.getAttribute("aria-disabled"));o.forEach((e) => e.setAttribute("aria-disabled", "true"));let c = (e) => {e instanceof KeyboardEvent && e.key === "Tab" || (e.preventDefault(), e.stopImmediatePropagation());};e.addEventListener("click", c, !0), e.addEventListener("keydown", c, !0);- let l = 0, u = await Ii(a, async (e) => {+ let l = 0, u = await di(a, async (e) => {try {return await t.submit(e);} finally {@@ -4564,14 +3302,14 @@ function Ri(e, t) {if (r.busy = !1, e.removeEventListener("click", c, !0), e.removeEventListener("keydown", c, !0), o.forEach((e, t) => {let n = s[t];n === null ? e.removeAttribute("aria-disabled") : e.setAttribute("aria-disabled", n);- }), x(i, !1), !t.active()) return;+ }), b(i, !1), !t.active()) return;t.notify(`已${n === "approved" ? "通过" : "拒绝"} ${u.completed} 项${u.failures.length ? `,${u.failures.length} 项未完成` : ""}`), u.failures.forEach((e) => r.errors.set(e.key, e.message));let f = e.parentElement;t.refresh(), f?.querySelector(".reviewbulktoolbar button")?.focus({ preventScroll: !0 });}- P(), Mi(e);+ N(), si(e);}-function zi(e, t, n = 1) {+function mi(e, t, n = 1) {let r = (e, t) => Array.from({ length: t - e + 1 }, (t, n) => e + n);if (n * 2 + 5 >= t) return r(1, t);let i = Math.max(e - n, 1), a = Math.min(e + n, t), o = i > 2, s = a < t - 2;@@ -4591,15 +3329,15 @@ function zi(e, t, n = 1) {t];}-function Bi(e, t) {+function hi(e, t) {return Math.max(1, Math.ceil(e / t));}-function Vi(e, t) {+function gi(e, t) {return Math.min(Math.max(1, Math.floor(e) || 1), t);}-function Hi(e, t, n) {+function _i(e, t, n) {if (t <= 1) return "";- let r = zi(e, t).map((t) => t === "…" ? "<li class=\"board-page-dots\" aria-hidden=\"true\">…</li>" : `<li><button type="button" class="board-page" data-page="${t}" aria-label="第 ${t} 页"${t === e ? " aria-current=\"page\"" : ""}>${t}</button></li>`).join("");+ let r = mi(e, t).map((t) => t === "…" ? "<li class=\"board-page-dots\" aria-hidden=\"true\">…</li>" : `<li><button type="button" class="board-page" data-page="${t}" aria-label="第 ${t} 页"${t === e ? " aria-current=\"page\"" : ""}>${t}</button></li>`).join("");return `<nav class="board-pagination" aria-label="${n}"><button type="button" class="geist-button" data-page="${e - 1}"${e <= 1 ? " disabled" : ""}><svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-chevron-left"></use></svg>上一页</button><ul>${r}</ul>@@ -4608,10 +3346,10 @@ function Hi(e, t, n) {}//#endregion//#region src/native-image.ts-function Ui(e, t, n, r) {+function vi(e, t, n, r) {return e > 0 && t > 0 && e === n && t === r;}-function Wi(e, t, n, r, i = 1) {+function yi(e, t, n, r, i = 1) {let a = Number.isFinite(i) && i > 0 ? i : 1;e /= a, t /= a;let o = [@@ -4628,24 +3366,24 @@ function Wi(e, t, n, r, i = 1) {}//#endregion//#region src/avatar-picker.tsx-var Gi = {+var bi = {gfriends: "图库",history: "用过的"};-function Ki({ kind: e, id: t, name: n, onPicked: r }) {- let i = U(null), a = U(null), o = U(null), [s, l] = B(null), [u, d] = B(""), [f, p] = B(""), [m, h] = B(""), [g, _] = B(!1);- V(() => {+function xi({ kind: e, id: t, name: n, onPicked: r }) {+ let i = V(null), a = V(null), o = V(null), [s, l] = z(null), [u, d] = z(""), [f, p] = z(""), [m, h] = z(""), [g, _] = z(!1);+ B(() => {if (!g || s) return;let n = new AbortController();- return G(`/api/avatar-choices?kind=${e}&id=${t}`, n.signal).then(l).catch((e) => {- n.signal.aborted || d(W(e));+ return U(`/api/avatar-choices?kind=${e}&id=${t}`, n.signal).then(l).catch((e) => {+ n.signal.aborted || d(H(e));}), () => n.abort();}, [g,s,e,t- ]), V(() => {+ ]), B(() => {c(a.current);}, [g, s]);let v = () => {@@ -4657,15 +3395,15 @@ function Ki({ kind: e, id: t, name: n, onPicked: r }) {try {await e(), y(), l(null), r();} catch (e) {- d(W(e));+ d(H(e));} finally {p("");}- }, x = (n) => b(() => K("/api/avatar-pick", {+ }, x = (n) => b(() => mt("/api/avatar-pick", {kind: e,id: t,ref: n.ref- }), n.ref), S = () => b(() => K("/api/avatar-pick", {+ }), n.ref), S = () => b(() => mt("/api/avatar-pick", {kind: e,id: t,url: m.trim()@@ -4680,21 +3418,21 @@ function Ki({ kind: e, id: t, name: n, onPicked: r }) {throw Error(e?.error || `请求失败(${r.status})`);}}, "file"), w = s?.choices || [], T = (s?.matched_names || []).filter((e) => e !== n), E = s ? T.length ? `${n}:图库里按「${T.join("」「")}」找到的。` : w.length ? `${n}:换上的那张留在本机,随时能换回来。` : `${n}:图库里没有这个名字,用下面两种方式换。` : "正在找可用的图…", D = !!s && s.index_stale && !w.some((e) => e.source === "gfriends");- return /* @__PURE__ */ q("div", {+ return /* @__PURE__ */ W("div", {class: "avatarpick",- children: [/* @__PURE__ */ q("button", {+ children: [/* @__PURE__ */ W("button", {type: "button",class: "avatarpick-open",onClick: v,"aria-haspopup": "dialog","aria-label": `更换${n}的头像`,title: "更换头像",- children: /* @__PURE__ */ q("svg", {+ children: /* @__PURE__ */ W("svg", {viewBox: "0 0 24 24","aria-hidden": "true",- children: /* @__PURE__ */ q("use", { href: "#i-plus" })+ children: /* @__PURE__ */ W("use", { href: "#i-plus" })})- }), /* @__PURE__ */ q("dialog", {+ }), /* @__PURE__ */ W("dialog", {ref: i,class: "geist-modal avatarpick-popover","aria-label": "更换头像",@@ -4702,90 +3440,90 @@ function Ki({ kind: e, id: t, name: n, onPicked: r }) {onClick: (e) => {e.target === i.current && y();},- children: [/* @__PURE__ */ q("div", {+ children: [/* @__PURE__ */ W("div", {class: "avatarpick-head",children: [- /* @__PURE__ */ q("span", {+ /* @__PURE__ */ W("span", {class: "avatarpick-mark","aria-hidden": "true",- children: /* @__PURE__ */ q("svg", {+ children: /* @__PURE__ */ W("svg", {viewBox: "0 0 24 24",- children: /* @__PURE__ */ q("use", { href: "#i-user-round" })+ children: /* @__PURE__ */ W("use", { href: "#i-user-round" })})}),- /* @__PURE__ */ q("div", {+ /* @__PURE__ */ W("div", {class: "avatarpick-headtext",children: [- /* @__PURE__ */ q("div", {+ /* @__PURE__ */ W("div", {class: "avatarpick-title",- children: [/* @__PURE__ */ q("h3", { children: "更换头像" }), !!w.length && /* @__PURE__ */ q("span", {+ children: [/* @__PURE__ */ W("h3", { children: "更换头像" }), !!w.length && /* @__PURE__ */ W("span", {class: "geist-badge",children: [w.length, " 张可选"]})]}),- /* @__PURE__ */ q("p", { children: E }),- D && /* @__PURE__ */ q("p", {+ /* @__PURE__ */ W("p", { children: E }),+ D && /* @__PURE__ */ W("p", {class: "avatarpick-note",children: "图库索引还没取过,只能从用过的图里选。"}),- u && /* @__PURE__ */ q("p", {+ u && /* @__PURE__ */ W("p", {class: "avatarpick-error",role: "alert",children: u})]}),- /* @__PURE__ */ q("button", {+ /* @__PURE__ */ W("button", {type: "button",class: "avatarpick-close",onClick: y,"aria-label": "关闭",- children: /* @__PURE__ */ q("svg", {+ children: /* @__PURE__ */ W("svg", {viewBox: "0 0 24 24","aria-hidden": "true",- children: /* @__PURE__ */ q("use", { href: "#i-x" })+ children: /* @__PURE__ */ W("use", { href: "#i-x" })})})]- }), /* @__PURE__ */ q("div", {+ }), /* @__PURE__ */ W("div", {class: "avatarpick-panel",- children: [/* @__PURE__ */ q("div", {+ children: [/* @__PURE__ */ W("div", {class: "avatarpick-gridwrap",- children: /* @__PURE__ */ q("div", {+ children: /* @__PURE__ */ W("div", {class: "avatarpick-grid",role: "listbox","aria-label": "候选头像",ref: a,- children: w.map((n) => /* @__PURE__ */ q("button", {+ children: w.map((n) => /* @__PURE__ */ W("button", {type: "button",role: "option","aria-selected": n.current,disabled: !!f,class: `avatarpick-cell${n.current ? " current" : ""}`,- title: `${Gi[n.source] || n.source} · ${n.label}` + (n.width ? ` · ${n.width}×${n.height}` : "") + (n.found_by ? ` · 按「${n.found_by}」找到` : ""),+ title: `${bi[n.source] || n.source} · ${n.label}` + (n.width ? ` · ${n.width}×${n.height}` : "") + (n.found_by ? ` · 按「${n.found_by}」找到` : ""),onClick: () => x(n),children: [- /* @__PURE__ */ q("img", {+ /* @__PURE__ */ W("img", {loading: "lazy",alt: "",src: `/avatar-choice?kind=${e}&id=${t}&ref=${encodeURIComponent(n.ref)}`}),- /* @__PURE__ */ q("span", { children: n.label }),- n.current && /* @__PURE__ */ q("b", { children: "在用" })+ /* @__PURE__ */ W("span", { children: n.label }),+ n.current && /* @__PURE__ */ W("b", { children: "在用" })]}, n.ref))})- }), /* @__PURE__ */ q("div", {+ }), /* @__PURE__ */ W("div", {class: "avatarpick-actions",children: [- /* @__PURE__ */ q("button", {+ /* @__PURE__ */ W("button", {type: "button",class: "geist-button",disabled: !!f,onClick: () => o.current?.click(),children: "从本机选图片"}),- /* @__PURE__ */ q("input", {+ /* @__PURE__ */ W("input", {ref: o,type: "file",accept: "image/png,image/jpeg",@@ -4795,16 +3533,16 @@ function Ki({ kind: e, id: t, name: n, onPicked: r }) {e.currentTarget.value = "", t && C(t);}}),- /* @__PURE__ */ q("div", {+ /* @__PURE__ */ W("div", {class: "avatarpick-url",- children: [/* @__PURE__ */ q("input", {+ children: [/* @__PURE__ */ W("input", {type: "url",class: "geist-input",value: m,placeholder: "https://…","aria-label": "图片地址",onInput: (e) => h(e.currentTarget.value)- }), /* @__PURE__ */ q("button", {+ }), /* @__PURE__ */ W("button", {type: "button",class: "geist-button",disabled: !m.trim() || !!f,@@ -4818,15 +3556,15 @@ function Ki({ kind: e, id: t, name: n, onPicked: r }) {})]});}-function qi(e, t) {- Ne(/* @__PURE__ */ q(Ki, { ...t }), e);+function Si(e, t) {+ Ne(/* @__PURE__ */ W(xi, { ...t }), e);}-function Ji(e) {+function Ci(e) {Ne(null, e);}//#endregion//#region src/entity-skeleton.ts-function Yi(e, t, n) {+function wi(e, t, n) {return `<section data-skeleton="entity/${e}" role="status" aria-label="正在读取资料"><span class="sr-only">正在读取资料</span><div aria-hidden="true"><section class="entityhero"><div class="entityprofile"><div class="entityportrait ${e === "studio" || e === "agency" ? "square " : ""}skeleton"></div>@@ -4840,27 +3578,27 @@ function Yi(e, t, n) {}//#endregion//#region src/board-skeleton.ts-var Q = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, Xi = () => `${Q("80%")}${Q("48%")}`, $ = (e, t) => e.repeat(t), Zi = (e, t = "metricstrip") => `<div class="${t}">${e.map((e) => `<div class="tastesummary"><span class="board-stat-label">${e}</span><b class="board-stat-value">${Q("45%")}</b><small class="board-stat-footer">${Q("60%")}</small></div>`).join("")}</div>`, Qi = (e, t = "skeleton-tabs") => `<div class="${t}">${e.map((e) => `<span>${e}</span>`).join("")}</div>`, $i = (e, t) => `<div class="${t} skeleton-segments" data-board-segments="true">${e.map((e, t) => `<span${t === 0 ? " class=\"skeleton-segment-selected\"" : ""}>${e}</span>`).join("")}</div>`, ea = (e) => `<section class="board-radial-card"><header><span>${e}</span><b>${Q()}</b></header><div class="board-rings skeleton-rings"><span class="skeleton skeleton-ring"></span></div><div class="skeleton-lines">${Xi()}</div></section>`, ta = (e) => `<section class="insightpanel"><header>${e}</header><div class="insightpanelbody skeleton-lines">${$(Xi(), 3)}</div></section>`, na = (e) => `<button class="fbtn" type="button" disabled>${e}</button>`, ra = (e) => `<div class="fsechead" data-collapse-toolbar><h3>关注列表</h3><span class="fmeta">${Q("100px")}</span><div class="followtoolbaractions"><button class="fbtn primary followcheckall" disabled>${i("refresh-cw")}<span data-collapse-label>检查全部</span></button><div class="iconswitch" data-board-segments="true"><label>${i("layout-grid")}</label><label>${i("table")}</label></div><span class="fmanagesort" data-collapse-field>${i("sort")}${y([["checked", "检查时间"]], "checked", {+var Z = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, Ti = () => `${Z("80%")}${Z("48%")}`, Q = (e, t) => e.repeat(t), Ei = (e, t = "metricstrip") => `<div class="${t}">${e.map((e) => `<div class="tastesummary"><span class="board-stat-label">${e}</span><b class="board-stat-value">${Z("45%")}</b><small class="board-stat-footer">${Z("60%")}</small></div>`).join("")}</div>`, Di = (e, t = "skeleton-tabs") => `<div class="${t}">${e.map((e) => `<span>${e}</span>`).join("")}</div>`, Oi = (e, t) => `<div class="${t} skeleton-segments" data-board-segments="true">${e.map((e, t) => `<span${t === 0 ? " class=\"skeleton-segment-selected\"" : ""}>${e}</span>`).join("")}</div>`, ki = (e) => `<section class="board-radial-card"><header><span>${e}</span><b>${Z()}</b></header><div class="board-rings skeleton-rings"><span class="skeleton skeleton-ring"></span></div><div class="skeleton-lines">${Ti()}</div></section>`, Ai = (e) => `<section class="insightpanel"><header>${e}</header><div class="insightpanelbody skeleton-lines">${Q(Ti(), 3)}</div></section>`, ji = (e) => `<button class="fbtn" type="button" disabled>${e}</button>`, Mi = (e) => `<div class="fsechead" data-collapse-toolbar><h3>关注列表</h3><span class="fmeta">${Z("100px")}</span><div class="followtoolbaractions"><button class="fbtn primary followcheckall" disabled>${i("refresh-cw")}<span data-collapse-label>检查全部</span></button><div class="iconswitch" data-board-segments="true"><label>${i("layout-grid")}</label><label>${i("table")}</label></div><span class="fmanagesort" data-collapse-field>${i("sort")}${v([["checked", "检查时间"]], "checked", {label: "关注列表排序",attr: "disabled"-})}</span><button class="fbtn fmanagedir" disabled>${i("arrow-down")}</button>${e ? "" : na(i("chevron-up") + "<span data-collapse-label>全部收起</span>")}</div></div>`, ia = () => `<div class="fsource frow"><span class="fchannelcheck">${Q("18px")}</span><b>${Q("85%")}</b><span class="fprovider">${Q("54px")}</span><span class="fmeta fchecked">${Q("40px")}</span><span class="fsourceactions"><span class="skeleton skeleton-icon"></span><span class="skeleton skeleton-icon"></span></span></div>`, aa = () => `<details class="fauthor" open><summary class="fauthorhead"><span class="favatar skeleton"></span><b>${Q("90px")}</b><span class="skeleton skeleton-icon"></span><span class="fmeta">${Q("40px")}</span><span class="board-author-actions"><button type="button" class="fbtn small" data-follow-author-select disabled>${i("check-check")}<span data-author-select-label>全选</span></button><span class="skeleton skeleton-icon"></span></span></summary><div class="fauthorsources">${$(ia(), 3)}</div></details>`;-function oa() {- return `<div data-skeleton="detail" role="status" aria-label="正在读取作品详情"><div class="sgrid" aria-hidden="true"><div class="vwrap skeleton-detail-media skeleton"></div><aside class="side"><div class="sidecontent skeleton-lines">${Q("85%")}${Q("65%")}${$(Xi(), 4)}</div></aside></div></div>`;+})}</span><button class="fbtn fmanagedir" disabled>${i("arrow-down")}</button>${e ? "" : ji(i("chevron-up") + "<span data-collapse-label>全部收起</span>")}</div></div>`, Ni = () => `<div class="fsource frow"><span class="fchannelcheck">${Z("18px")}</span><b>${Z("85%")}</b><span class="fprovider">${Z("54px")}</span><span class="fmeta fchecked">${Z("40px")}</span><span class="fsourceactions"><span class="skeleton skeleton-icon"></span><span class="skeleton skeleton-icon"></span></span></div>`, Pi = () => `<details class="fauthor" open><summary class="fauthorhead"><span class="favatar skeleton"></span><b>${Z("90px")}</b><span class="skeleton skeleton-icon"></span><span class="fmeta">${Z("40px")}</span><span class="board-author-actions"><button type="button" class="fbtn small" data-follow-author-select disabled>${i("check-check")}<span data-author-select-label>全选</span></button><span class="skeleton skeleton-icon"></span></span></summary><div class="fauthorsources">${Q(Ni(), 3)}</div></details>`;+function Fi() {+ return `<div data-skeleton="detail" role="status" aria-label="正在读取作品详情"><div class="sgrid" aria-hidden="true"><div class="vwrap skeleton-detail-media skeleton"></div><aside class="side"><div class="sidecontent skeleton-lines">${Z("85%")}${Z("65%")}${Q(Ti(), 4)}</div></aside></div></div>`;}-function sa(e, t = {}) {+function Ii(e, t = {}) {let n = "";- if (e === "/stats") n = `<div class="insightpage statsdashboard"><header class="insighttoolbar">${Q("38%")}</header>${Zi([+ if (e === "/stats") n = `<div class="insightpage statsdashboard"><header class="insighttoolbar">${Z("38%")}</header>${Ei(["馆藏视频","看过","内容标签","使用空间"- ])}<section class="insightdetail"><div class="insightdetailbody"><div class="board-inventory-charts">${ea("网盘与本地")}${ea("媒体库")}</div></div></section>${ta("内容标签")}</div>`;- else if (e === "/taste") n = `<div class="tastepage"><header class="tastehead">${$i(["浏览器记录", "Peach 内部"], "insightswitch")}${Q("24%")}</header><div class="tastestate"></div>${Zi([+ ])}<section class="insightdetail"><div class="insightdetailbody"><div class="board-inventory-charts">${ki("网盘与本地")}${ki("媒体库")}</div></div></section>${Ai("内容标签")}</div>`;+ else if (e === "/taste") n = `<div class="tastepage"><header class="tastehead">${Oi(["浏览器记录", "Peach 内部"], "insightswitch")}${Z("24%")}</header><div class="tastestate"></div>${Ei(["浏览记录","口味维度","浏览候选","私有导出"- ], "tastesummaries")}<section class="tastehero"><div class="insightcopy"><span>浏览器画像</span><div class="skeleton skeleton-radar"></div></div><div class="tastebars skeleton-lines">${$(Xi(), 4)}</div></section>${ta("口味分析")}<div class="board-activity-charts">${ta("浏览活动")}${ta("时间分布")}</div>${ta("标签")}</div>`;+ ], "tastesummaries")}<section class="tastehero"><div class="insightcopy"><span>浏览器画像</span><div class="skeleton skeleton-radar"></div></div><div class="tastebars skeleton-lines">${Q(Ti(), 4)}</div></section>${Ai("口味分析")}<div class="board-activity-charts">${Ai("浏览活动")}${Ai("时间分布")}</div>${Ai("标签")}</div>`;else if (e === "/follow-manage") {let e = t.followLayout === "table", r = e ? `<div class="ftableframe"><div class="ftablewrap"><table class="ftable"><thead><tr>${["选择",@@ -4870,7 +3608,7 @@ function sa(e, t = {}) {"状态","上次检查","操作"- ].map((e) => `<th>${e === "选择" ? "<label>" + l("disabled aria-label=\"全选本页来源\"") + "</label>" : e}</th>`).join("")}</tr></thead><tbody>${$(`<tr>${[+ ].map((e) => `<th>${e === "选择" ? "<label>" + l("disabled aria-label=\"全选本页来源\"") + "</label>" : e}</th>`).join("")}</tr></thead><tbody>${Q(`<tr>${["20px","90px","120px",@@ -4878,37 +3616,37 @@ function sa(e, t = {}) {"40px","100px","60px"- ].map((e) => `<td>${Q(e)}</td>`).join("")}</tr>`, 6)}</tbody></table></div></div>` : `<div class="board-follow-list">${$(aa(), 4)}</div>`;+ ].map((e) => `<td>${Z(e)}</td>`).join("")}</tr>`, 6)}</tbody></table></div></div>` : `<div class="board-follow-list">${Q(Pi(), 4)}</div>`;n = `<div class="follow followmanage"><div class="fmanageoverview">${["关注创作者","启用来源","检查失败","未看更新"- ].map((e) => `<div><span>${e}</span><b>${Q()}</b></div>`).join("")}</div>${$i([+ ].map((e) => `<div><span>${e}</span><b>${Z()}</b></div>`).join("")}</div>${Oi(["关注列表","添加关注","来源和凭证"- ], "follow-workspace-switch")}<div class="fmain"><section class="fsec" data-follow-workspace-panel="list">${ra(e)}<div class="board-follow-selection"${e ? " hidden" : ""}><label>${l("disabled")}全选本页</label></div><div class="frows fsources" data-layout="${e ? "table" : "default"}">${r}<div class="followpagefooter"><div class="followpageinfo">${Q("120px")}${Q("100px")}</div></div></div></section></div></div>`;- } else if (e === "/configuration") n = `<div class="configpage">${Qi([+ ], "follow-workspace-switch")}<div class="fmain"><section class="fsec" data-follow-workspace-panel="list">${Mi(e)}<div class="board-follow-selection"${e ? " hidden" : ""}><label>${l("disabled")}全选本页</label></div><div class="frows fsources" data-layout="${e ? "table" : "default"}">${r}<div class="followpagefooter"><div class="followpageinfo">${Z("120px")}${Z("100px")}</div></div></div></section></div></div>`;+ } else if (e === "/configuration") n = `<div class="configpage">${Di(["通用","媒体","网络与访问","更新与维护"- ])}<section class="configfieldset"><div class="geist-fieldset-content"><h3 class="geist-fieldset-title">开机自启</h3><div class="skeleton-lines">${$(`<div class="skeleton-setting">${Q("35%")}<span class="skeleton skeleton-toggle"></span></div>`, 3)}</div></div><footer class="geist-fieldset-footer">${Q("100px")}</footer></section></div>`;+ ])}<section class="configfieldset"><div class="geist-fieldset-content"><h3 class="geist-fieldset-title">开机自启</h3><div class="skeleton-lines">${Q(`<div class="skeleton-setting">${Z("35%")}<span class="skeleton skeleton-toggle"></span></div>`, 3)}</div></div><footer class="geist-fieldset-footer">${Z("100px")}</footer></section></div>`;else if (e === "/activity") n = `<div class="activitypage">${["正在进行","被挡下的","最近完成"- ].map((e) => `<section class="activitysection"><h3 class="geist-fieldset-title">${e}</h3><div class="activity-runs"><article class="cleanupfieldset activity-run"><div class="geist-fieldset-content skeleton-lines">${Q("35%")}${Xi()}</div></article></div></section>`).join("")}</div>`;- else if (e === "/duplicates") n = `<div class="review"><div class="collection-summary">${Q("38%")}</div><div class="fsechead dupactions"><h3>批量保留</h3>${Q("40%")}</div>${$(`<section class="dupgroup"><div class="duphead">${Q("45%")}</div><div class="duplist">${$(`<div class="duprow"><span class="dupcover skeleton"></span><span class="dupmarks">${Q()}</span><span class="dupname">${Q("90%")}</span>${Q()}${Q()}${Q()}<span class="duppath">${Q("70%")}</span></div>`, 2)}</div></section>`, 2)}</div>`;- else if (e === "/quality-goals") n = `<div class="quality-workspace"><div class="collection-summary"><strong>待升级</strong>${Q("20%")}</div><div class="qualitylist">${$(`<article class="qualityitem"><span class="qualitycover skeleton"></span><div class="qualitybody skeleton-lines">${Xi()}</div><footer class="qualityactions">${Q("80%")}</footer></article>`, 6)}</div></div>`;- else if (e === "/playlists") n = `<section class="playlistpage"><header><div><h2>播放列表</h2><p>保存 Mix,按自己的顺序继续播放。</p></div><div class="playlistcreate skeleton-lines"><span>新播放列表</span>${Q("200px")}</div></header><div class="playlistcards">${$(`<article class="card playlistcard"><div class="mixstack"><div class="pic skeleton"></div></div><div class="mixmeta"><span class="mav skeleton"></span><div class="mixcopy skeleton-lines">${Xi()}</div></div></article>`, 6)}</div></section>`;+ ].map((e) => `<section class="activitysection"><h3 class="geist-fieldset-title">${e}</h3><div class="activity-runs"><article class="cleanupfieldset activity-run"><div class="geist-fieldset-content skeleton-lines">${Z("35%")}${Ti()}</div></article></div></section>`).join("")}</div>`;+ else if (e === "/duplicates") n = `<div class="review"><div class="collection-summary">${Z("38%")}</div><div class="fsechead dupactions"><h3>批量保留</h3>${Z("40%")}</div>${Q(`<section class="dupgroup"><div class="duphead">${Z("45%")}</div><div class="duplist">${Q(`<div class="duprow"><span class="dupcover skeleton"></span><span class="dupmarks">${Z()}</span><span class="dupname">${Z("90%")}</span>${Z()}${Z()}${Z()}<span class="duppath">${Z("70%")}</span></div>`, 2)}</div></section>`, 2)}</div>`;+ else if (e === "/quality-goals") n = `<div class="quality-workspace"><div class="collection-summary"><strong>待升级</strong>${Z("20%")}</div><div class="qualitylist">${Q(`<article class="qualityitem"><span class="qualitycover skeleton"></span><div class="qualitybody skeleton-lines">${Ti()}</div><footer class="qualityactions">${Z("80%")}</footer></article>`, 6)}</div></div>`;+ else if (e === "/playlists") n = `<section class="playlistpage"><header><div><h2>播放列表</h2><p>保存 Mix,按自己的顺序继续播放。</p></div><div class="playlistcreate skeleton-lines"><span>新播放列表</span>${Z("200px")}</div></header><div class="playlistcards">${Q(`<article class="card playlistcard"><div class="mixstack"><div class="pic skeleton"></div></div><div class="mixmeta"><span class="mav skeleton"></span><div class="mixcopy skeleton-lines">${Ti()}</div></div></article>`, 6)}</div></section>`;else return "";return `<div class="board-page-skeleton" data-skeleton="board${e}" role="status" aria-label="正在读取页面"><div aria-hidden="true" inert>${n}</div></div>`;}//#endregion//#region src/catalog-onboarding.ts-var ca = [+var Li = ["loc","creator","performer",@@ -4926,16 +3664,16 @@ var ca = ["jav","thumb"];-function la() {+function Ri() {let e = (e) => Array(64).fill(e).join("");return {tiers: "<div class=\"tier catalog-placeholder\" aria-hidden=\"true\">" + e("<span class=\"av\"><span class=\"ring\"></span><span class=\"nm\"> </span></span>") + "</div><div class=\"tier catalog-placeholder\" aria-hidden=\"true\">" + e("<span class=\"brandpill\"><span class=\"mk\"></span><span class=\"placeholder-name\"> </span></span>") + "</div>",tags: "<span class=\"catalog-placeholder placeholder-tags\" aria-hidden=\"true\">" + e("<span class=\"pill\"> </span>") + "</span>"};}-async function ua(e, t) {+async function zi(e, t) {let n = new URLSearchParams();- for (let t of ca) e[t] && n.set(t, e[t]);+ for (let t of Li) 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 || [],@@ -4946,9 +3684,9 @@ async function ua(e, t) {return r.set("q", e), r.set("limit", "1"), (await t("/api/items?" + r)).total > 0 ? e : "";}))).filter(Boolean);}-function da({ kind: e = "catalog", filtered: t = !1, jav: n = !1, configurable: r = !1, online: i = !1 } = {}) {+function Bi({ kind: e = "catalog", filtered: t = !1, jav: n = !1, configurable: r = !1, online: i = !1 } = {}) {let a = r ? "<button class=\"geist-button primary\" data-empty-settings>添加内容</button>" : "", o = "<a class=\"geist-button" + (!r || i ? " primary" : "") + "\" href=\"/follow-manage?tab=add\">添加关注</a>";- if (t || n) return f("search", n ? "还没有符合条件的 JAV 作品" : "没有符合条件的内容", n ? "已扫描但尚未补充发行资料的视频可在全部内容中查看。" : "清除筛选或搜索条件后查看全部内容。", { actions: "<a class=\"geist-button primary\" href=\"/?loc=&thumb=0\">查看全部内容</a>" });+ if (t || n) return d("search", n ? "还没有符合条件的 JAV 作品" : "没有符合条件的内容", n ? "已扫描但尚未补充发行资料的视频可在全部内容中查看。" : "清除筛选或搜索条件后查看全部内容。", { actions: "<a class=\"geist-button primary\" href=\"/?loc=&thumb=0\">查看全部内容</a>" });if (e !== "catalog") {let t = (i ? {tags: "标签",@@ -4961,13 +3699,13 @@ function da({ kind: e = "catalog", filtered: t = !1, jav: n = !1, configurable:agencies: "事务所",series: "系列"}[e] || "资料";- return f(e === "tags" ? "tags" : "user-round", "还没有" + t, i ? "添加关注来源并获取内容后,这里会显示来源上的" + t + "。" : "添加内容并补充资料后,这里会显示对应信息。", { actions: i ? o : a + o });+ return d(e === "tags" ? "tags" : "user-round", "还没有" + t, i ? "添加关注来源并获取内容后,这里会显示来源上的" + t + "。" : "添加内容并补充资料后,这里会显示对应信息。", { actions: i ? o : a + o });}- return f("play", "还没有视频", "添加媒体文件夹或关注来源,开始建立你的馆藏。", { actions: a + o });+ return d("play", "还没有视频", "添加媒体文件夹或关注来源,开始建立你的馆藏。", { actions: a + o });}//#endregion//#region src/sidebar.ts-function fa(e) {+function Vi(e) {return ["/","/unseen",@@ -4977,57 +3715,57 @@ function fa(e) {"/junk-files"].includes(e) || /^\/(item|mix|parts|editions)\//.test(e) || /^\/playlists\/\d+\/\d+$/.test(e) || /^\/(performers|studios|creators|series|agencies)\/.+/.test(e);}-function pa(e, t) {+function Hi(e, t) {return e.dataset.surface?.split("?")[0] === t.split("?")[0] && e.querySelector(".dnav") ? (e.dataset.surface = t, !1) : (e.dataset.surface = t, e.replaceChildren(), !0);}-function ma(e) {+function Ui(e) {let t = /* @__PURE__ */ new Map();for (let n of e) for (let e of new Set(n.tags || [])) t.set(e, (t.get(e) || 0) + 1);return [...t].sort((e, t) => t[1] - e[1]).slice(0, 30);}//#endregion//#region src/resource-sync.ts-var ha = (e = 0) => Number(e).toLocaleString(), ga = {+var $ = (e = 0) => Number(e).toLocaleString(), Wi = {local: "本地磁盘",115: "115",pikpak: "PikPak"-}, _a = (e) => b(s[e] ?? "database"), va = (e, t, n) => `<article class="board-plain-stat resourcestat">+}, Gi = (e) => y(s[e] ?? "database"), Ki = (e, t, n) => `<article class="board-plain-stat resourcestat"><span class="board-plain-stat-head">${e}</span><strong>${t}</strong><span class="cleanupmeta">${n}</span></article>`;-function ya(e, t) {+function qi(e, t) {let n = e.cache || {files: 0,bytes: 0}, r = !!(e.missing || n.files);- return `<div class="cleanupstats resourcestats">${(e.sources || []).map((e) => va(`<span class="board-stat-tile resourcestat-tile">${_a(e.location)}</span>${ga[e.location] || "媒体来源"}<span class="resourcestat-state ${e.online ? "online" : "offline"}">${e.online ? "可访问" : "离线,已跳过"}</span>`, e.online ? `${ha(e.missing)} 项` : "—", [e.online ? `找不到文件 · 已检查 ${ha(e.checked)} 项` : `馆藏中有 ${ha(e.total)} 项`, e.unreadable ? `${ha(e.unreadable)} 项读取失败,已跳过` : ""].filter(Boolean).join(" · "))).join("")}- ${va("待移入回收站", `${ha(e.missing)} 项`, "")}- ${va("可清理的缓存", `${ha(n.files)} 个`, n.files ? t(n.bytes) : "")}</div>- ${r ? g(`将把找不到文件的 ${ha(e.missing)} 项馆藏记录移入回收站,并清理 ${ha(n.files)} 个闲置缓存。`, { label: "清理内容" }) : ""}+ return `<div class="cleanupstats resourcestats">${(e.sources || []).map((e) => Ki(`<span class="board-stat-tile resourcestat-tile">${Gi(e.location)}</span>${Wi[e.location] || "媒体来源"}<span class="resourcestat-state ${e.online ? "online" : "offline"}">${e.online ? "可访问" : "离线,已跳过"}</span>`, e.online ? `${$(e.missing)} 项` : "—", [e.online ? `找不到文件 · 已检查 ${$(e.checked)} 项` : `馆藏中有 ${$(e.total)} 项`, e.unreadable ? `${$(e.unreadable)} 项读取失败,已跳过` : ""].filter(Boolean).join(" · "))).join("")}+ ${Ki("待移入回收站", `${$(e.missing)} 项`, "")}+ ${Ki("可清理的缓存", `${$(n.files)} 个`, n.files ? t(n.bytes) : "")}</div>+ ${r ? h(`将把找不到文件的 ${$(e.missing)} 项馆藏记录移入回收站,并清理 ${$(n.files)} 个闲置缓存。`, { label: "清理内容" }) : ""}<div class="resourceapplyrow geist-fieldset-footer" data-geist-fieldset-footer>${r ? "<button class=\"geist-button primary\" type=\"button\" id=\"resourceApply\">清理失效记录与缓存</button>" : "<p class=\"resourcesyncok\">已检查可访问的来源,没有待清理的记录或缓存。</p>"}</div>`;}//#endregion//#region src/jav-artwork.ts-function ba(e) {+function Ji(e) {return ["small","sleeve","preview"].includes(String(e)) ? "small" : "big";}-function xa(e) {+function Yi(e) {return {- javLayout: ba(e.javLayout),- javImage: Sa(e.javLayout === "preview" ? "thumbnail" : e.javImage)+ javLayout: Ji(e.javLayout),+ javImage: Xi(e.javLayout === "preview" ? "thumbnail" : e.javImage)};}-function Sa(e) {+function Xi(e) {return e === "thumbnail" ? "thumbnail" : "cover";}-function Ca(e, t) {- return e.is_jav && e.code && e.has_cover && (Sa(t) === "cover" || !e.has_thumb) ? "cover" : e.has_thumb ? "thumbnail" : "";+function Zi(e, t) {+ return e.is_jav && e.code && e.has_cover && (Xi(t) === "cover" || !e.has_thumb) ? "cover" : e.has_thumb ? "thumbnail" : "";}-function wa(e, t) {+function Qi(e, t) {let n = Number(e?.px?.[0]), r = Number(e?.px?.[1]), i = Number(e?.x0);if (!(n > 0 && r > 0 && t > 0) || !Number.isFinite(i)) return null;let a = Math.min(1, Math.max(0, i / n)), o = n / r / t, s = (1 - a) * o;@@ -5038,45 +3776,45 @@ function wa(e, t) {left: l(c)};}-function Ta(e, t) {+function $i(e, t) {e.querySelectorAll("img[data-jav-image]").forEach((e) => {- let n = e.dataset.javCover || "", r = e.dataset.javThumb || "", i = !!(n && (Sa(t) === "cover" || !r)), a = i ? n : r;+ let n = e.dataset.javCover || "", r = e.dataset.javThumb || "", i = !!(n && (Xi(t) === "cover" || !r)), a = i ? n : r;e.classList.toggle("cover", i), e.classList.toggle("whole", i && e.dataset.javImageLayout !== "big"), e.classList.toggle("front", i && e.dataset.javImageLayout === "big"), e.classList.remove("panel"), e.removeAttribute("style"), e.closest(".pic")?.style.removeProperty("--cover-blur"), a && e.getAttribute("src") !== a && (e.src = a);});}//#endregion//#region src/islands.ts-var Ea = {+var ea = {"library-processing": {- load: yt,- component: Tt+ load: xt,+ component: Dt},scraping: {- load: ni,- component: ai+ load: jr,+ component: Pr},"quality-goals": {- load: $r,- component: ti+ load: Or,+ component: Ar},configuration: {- load: rr,- component: ur+ load: zn,+ component: Bn},activity: {- load: oi,- component: yi+ load: Fr,+ component: Jr}-}, Da = () => Object.keys(Ea), Oa = /* @__PURE__ */ new Map();-async function ka(e, t, n, r = {}) {- let i = Ea[e];+}, ta = () => Object.keys(ea), na = /* @__PURE__ */ new Map();+async function ra(e, t, n, r = {}) {+ let i = ea[e];if (!i) throw Error(`未注册的 island:${String(e)}`);- ja(t);+ aa(t);let a = {controller: new AbortController(),painted: !1};- Oa.set(t, a);+ na.set(t, a);let o;try {o = {@@ -5087,12 +3825,12 @@ async function ka(e, t, n, r = {}) {if (a.controller.signal.aborted) return;o = {data: null,- error: W(e)+ error: H(e)};}- if (Oa.get(t) !== a) return;+ if (na.get(t) !== a) return;if (r.isCurrent && !r.isCurrent()) {- Oa.delete(t);+ na.delete(t);return;}t.textContent = "", a.painted = !0;@@ -5102,10 +3840,10 @@ async function ka(e, t, n, r = {}) {};Ne(ue(i.component, s), t);}-var Aa = (e) => !!e && Oa.has(e);-function ja(e) {- let t = Oa.get(e);- t && (t.controller.abort(), Oa.delete(e), t.painted && Ne(null, e));+var ia = (e) => !!e && na.has(e);+function aa(e) {+ let t = na.get(e);+ t && (t.controller.abort(), na.delete(e), t.painted && Ne(null, e));}//#endregion-export { At as TASTE_GUIDE_KEY, kn as activityChartsHtml, sa as boardPageSkeleton, Ie as boundedPreference, da as catalogEmptyHtml, ua as catalogSuggestions, Vi as clampPage, Ot as cleanupSkeletonHtml, Et as cloudLocations, Dt as cloudPreferenceLocations, ji as createReviewSelection, Cn as creatorSankeyHtml, oa as detailSkeletonHtml, Ve as distributionChart, la as emptyCatalogLayout, Yi as entitySkeletonHtml, ht as followJobProgress, Pi as groupReviewRows, Ti as identityEvidenceHtml, It as initBoardControls, Aa as islandMounted, Da as islandNames, Ca as javImageKind, pt as jobActivityHtml, Be as jobProgressHtml, Ui as matchesFaceSource, qi as mountAvatarPicker, Pt as mountBoardStatePreview, ka as mountIsland, Re as mountNumberSetting, Wi as nativeImageFit, Sa as normalizeJavImage, ba as normalizeJavLayout, xa as normalizeJavPreferences, Bi as pageCount, Hi as paginationHtml, wa as panelFrame, Pe as preferredDirection, Ue as radarChart, En as radialCardHtml, He as rankedChart, Si as refreshStore, ya as resourceScanHtml, wi as reviewImageHtml, ki as selectGroup, Di as selectRange, Oi as selectionSummary, fa as sidebarHasCatalogContent, Mn as sidebarSectionHtml, ma as sidebarTagCounts, ze as statCardBody, xi as storeNames, Ft as syncBoardRange, Ta as syncJavImages, Le as syncNumberSetting, Ai as syncSelectionToolbar, pa as syncSidebarSurface, kt as tasteHistoryGuideHtml, Fn as transitionTheme, Ji as unmountAvatarPicker, ja as unmountIsland, Mi as updateReviewSticky, mt as watchJob, An as wireActivityCharts, wn as wireCreatorSankey, Ht as wireExpandableRanks, Vt as wireGrowingCharts, Dn as wireRadialCards, Ei as wireReviewPictures, Ri as wireReviewSelection, Nn as wireSidebarGroups, jt as wireTasteHistoryGuide };+export { Mt as TASTE_GUIDE_KEY, An as activityChartsHtml, Ii as boardPageSkeleton, Ie as boundedPreference, Bi as catalogEmptyHtml, zi as catalogSuggestions, gi as clampPage, At as cleanupSkeletonHtml, Ot as cloudLocations, kt as cloudPreferenceLocations, oi as createReviewSelection, wn as creatorSankeyHtml, Fi as detailSkeletonHtml, Ve as distributionChart, Ri as emptyCatalogLayout, wi as entitySkeletonHtml, _t as followJobProgress, li as groupReviewRows, ei as identityEvidenceHtml, Rt as initBoardControls, ia as islandMounted, ta as islandNames, Zi as javImageKind, ht as jobActivityHtml, Be as jobProgressHtml, vi as matchesFaceSource, Si as mountAvatarPicker, It as mountBoardStatePreview, ra as mountIsland, Re as mountNumberSetting, yi as nativeImageFit, Xi as normalizeJavImage, Ji as normalizeJavLayout, Yi as normalizeJavPreferences, hi as pageCount, _i as paginationHtml, Qi as panelFrame, Pe as preferredDirection, Ue as radarChart, Dn as radialCardHtml, He as rankedChart, Zr as refreshStore, qi as resourceScanHtml, $r as reviewImageHtml, ii as selectGroup, ni as selectRange, ri as selectionSummary, Vi as sidebarHasCatalogContent, Nn as sidebarSectionHtml, Ui as sidebarTagCounts, ze as statCardBody, Xr as storeNames, Lt as syncBoardRange, $i as syncJavImages, Le as syncNumberSetting, ai as syncSelectionToolbar, Hi as syncSidebarSurface, jt as tasteHistoryGuideHtml, In as transitionTheme, Ci as unmountAvatarPicker, aa as unmountIsland, si as updateReviewSticky, gt as watchJob, jn as wireActivityCharts, Tn as wireCreatorSankey, Wt as wireExpandableRanks, Ut as wireGrowingCharts, On as wireRadialCards, ti as wireReviewPictures, pi as wireReviewSelection, Pn as wireSidebarGroups, Nt as wireTasteHistoryGuide };diff --git a/web/js/ui-components.js b/web/js/ui-components.jsindex 223fd3bf8..a77953543 100644--- a/web/js/ui-components.js+++ b/web/js/ui-components.js@@ -513,7 +513,6 @@ const OVERLAY_SCROLLERS=['.insighttabs','.insightstorage','.skeletondashstrip','.followpagination','.linktablewrap','.reviewtabs','.junkfilters','.ftablewrap','.board-local-nav','.managebar-menu','.follow-workspace-switch','.fmanagenav','.board-heat-scroll','.board-sankey-scroll',- '.cloudguide-tablewrap',].join(',');/* Board 层里会超宽的横向滚动层:两端按滚动位置渐隐说明「那边还有」,鼠标停在上面时竖向滚轮转成横向。边线留给外层框,渐隐只落在这一层。@@ -522,7 +521,7 @@ const OVERLAY_SCROLLERS=[/taste 的两张图溢出 44px 与 322px,实测都是既没有渐隐也不接滚轮。组件自己量溢出,不溢出的宽度上登记等于空转,所以按可能溢出的层登记,不按某一个断点登记。 */const BOARD_EDGE_SCROLLERS='.reviewtabs,.ftablewrap,.board-local-nav,.managebar-menu,'- +'.follow-workspace-switch,.fmanagenav,.board-heat-scroll,.board-sankey-scroll,.cloudguide-tablewrap';+ +'.follow-workspace-switch,.fmanagenav,.board-heat-scroll,.board-sankey-scroll';/*** 覆盖式滚动条:滑块浮在内容上,一列宽度都不占。