Skip to content

armgit / peach

Public Imported from GitHub
0

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

feat(web): 登录页与错误页由页面包画,删入口页色板

longmeidao3921be6e1637
diff --git a/frontend/src/entry/index.ts b/frontend/src/entry/index.ts
index 00c9c9988..9815f9767 100644
--- a/frontend/src/entry/index.ts
+++ b/frontend/src/entry/index.ts
@@ -1,9 +1,7 @@
/* `web/dist/peach-entry.js` 的构建入口(`vite.entry.config.ts`),不带 React。
*
- * 读者有两个,读到的是同一份模块实例:
- * - 错误页的页内脚本(`src/peach/routes_pages.py` 的 `_SHARED_SCRIPT`)按名字取整页滚动条;
- * - 主界面的 `/js/ui-components.js` 把这里的全部导出原名转出,壳与 React 子树经 `@peach/legacy/ui`
- * 读到的也是这一份。锚定菜单的「同一时刻只开一张」、折叠的开合代际都是模块级状态,只能有一份。
+ * 读者是主界面的 `/js/ui-components.js`:它把这里的全部导出原名转出,壳与 React 子树经 `@peach/legacy/ui`
+ * 读到的也是这一份。锚定菜单的「同一时刻只开一张」、折叠的开合代际都是模块级状态,只能有一份。
*
* 字形、转义与界面音效仍是 `/js/core.js`、`/js/ui-sounds.js` 那一份,构建时外置。 */
export { attachOverlayScrollbar } from '../ui-kit/overlay-scrollbar';
diff --git a/frontend/src/react/pages/auth-card.tsx b/frontend/src/react/pages/auth-card.tsx
index 9a951c35c..58bbf075a 100644
--- a/frontend/src/react/pages/auth-card.tsx
+++ b/frontend/src/react/pages/auth-card.tsx
@@ -1,4 +1,4 @@
-/* 独立页面的外框:页面底色上居中一张描边卡,卡头是站标、标题和一句引言。
+/* 独立页面的外框:页面底色上居中一张描边卡,卡头是站标、标题和可选的一句引言。
*
* 注册表里没有 Auth Card,用 BoardUI token 组合,分层同配置页的设置区:整页 `background-full`
* (由 `pages.css` 落在 body 上),卡面 `background-secondary-default` 加一条 `separator-border`,
@@ -9,7 +9,7 @@ import type { ReactNode } from 'react';
export function AuthCard({ title, lede, busy = false, children }: {
title: string;
- lede: string;
+ lede?: string;
busy?: boolean;
children?: ReactNode;
}) {
@@ -20,7 +20,7 @@ export function AuthCard({ title, lede, busy = false, children }: {
<header className="flex flex-col gap-1">
<img src="/peach-logo.png" alt="" width={40} height={40} className="mb-4 size-10" />
<h1 id="auth-card-title" className="text-title-2-medium text-text-primary">{title}</h1>
- <p className="text-body-2-regular text-text-secondary">{lede}</p>
+ {lede ? <p className="text-body-2-regular text-text-secondary">{lede}</p> : null}
</header>
{children}
</section>
diff --git a/frontend/src/react/pages/error/error-page.tsx b/frontend/src/react/pages/error/error-page.tsx
new file mode 100644
index 000000000..adde517a6
--- /dev/null
+++ b/frontend/src/react/pages/error/error-page.tsx
@@ -0,0 +1,32 @@
+/* 错误页:浏览器直接打开的地址撞上 HTTP 错误时给人看的那一页。
+ *
+ * 服务端只给状态码(`data-status`)与已换成中文的说明(`data-detail`);标题按状态码取,404 不显示
+ * 说明,按钮回首页。标签页标题跟着标题走。 */
+import { useEffect } from 'react';
+
+import { ButtonLink } from '@/components/base/buttons/button';
+
+import { AuthCard } from '../auth-card';
+import type { PageData } from '../page-data';
+
+const TITLES: Readonly<Record<string, string>> = {
+ 403: '这里不能打开',
+ 404: '四〇四',
+ 409: '现在不能这样做',
+};
+
+export function errorTitle(status: string | undefined): string {
+ return TITLES[status ?? ''] ?? '出了点问题';
+}
+
+export function ErrorPage({ data }: { data: PageData }) {
+ const title = errorTitle(data.status);
+ useEffect(() => {
+ document.title = `Peach · ${title}`;
+ }, [title]);
+ return (
+ <AuthCard title={title} lede={data.status === '404' ? undefined : data.detail}>
+ <ButtonLink href="/" className="self-start">返回首页</ButtonLink>
+ </AuthCard>
+ );
+}
diff --git a/frontend/src/react/pages/index.tsx b/frontend/src/react/pages/index.tsx
index 5b2dfa4e5..7ad4cd580 100644
--- a/frontend/src/react/pages/index.tsx
+++ b/frontend/src/react/pages/index.tsx
@@ -1,21 +1,27 @@
/* 独立页面包的构建入口(`web/dist/peach-pages.js`)。
*
- * 服务端给的薄壳里只有一个挂载点 `#peach-page`,`data-page` 说是哪一页。这份产物不依赖主界面的
- * 任何模块:不读 `/js/` 下的遗留层,不带 Query 缓存,共用控件(折叠、整页滚动条、来源站标)由
- * `vite.pages.config.ts` 直接打进来。弹出层落在 body 上,body 本身就是 `.peach-react` 容器。 */
+ * 首启、登录与错误三页共用服务端给的同一张薄壳,壳里只有一个挂载点 `#peach-page`:`data-page` 说是
+ * 哪一页,其余 `data-*` 是服务端才知道的变量,原样交给那一页。这份产物不依赖主界面的任何模块:
+ * 不读 `/js/` 下的遗留层,不带 Query 缓存,共用控件(折叠、来源站标)由 `vite.pages.config.ts`
+ * 直接打进来。三页都用浏览器原生滚动条。弹出层落在 body 上,body 本身就是 `.peach-react` 容器。
+ *
+ * 这个包不要会话就能取(ADR-0094):不得 import 别的产物,不得内嵌账本、配置或凭据派生的数据。 */
import './pages.css';
import type { ComponentType } from 'react';
import { createRoot } from 'react-dom/client';
-import { attachOverlayScrollbar } from '../../ui-kit/overlay-scrollbar';
+import { ErrorPage } from './error/error-page';
+import { LoginPage } from './login/login-page';
+import type { PageData } from './page-data';
import { SetupPage } from './setup/setup-page';
-const PAGES: Readonly<Record<string, ComponentType>> = { setup: SetupPage };
+const PAGES: Readonly<Record<string, ComponentType<{ data: PageData }>>> = {
+ setup: SetupPage,
+ login: LoginPage,
+ error: ErrorPage,
+};
const mount = document.getElementById('peach-page');
const Page = mount ? PAGES[mount.dataset.page ?? ''] : undefined;
-if (mount && Page) {
- attachOverlayScrollbar(document.documentElement, { variant: 'page' });
- createRoot(mount).render(<Page />);
-}
+if (mount && Page) createRoot(mount).render(<Page data={{ ...mount.dataset }} />);
diff --git a/frontend/src/react/pages/login/login-page.tsx b/frontend/src/react/pages/login/login-page.tsx
new file mode 100644
index 000000000..7b22496c0
--- /dev/null
+++ b/frontend/src/react/pages/login/login-page.tsx
@@ -0,0 +1,35 @@
+/* 登录页:一张 Auth Card,一个访问密码框、「保持登录」与「登录」。
+ *
+ * 表单是原生提交:`POST /login` 收 `token`、`next`,勾选「保持登录」时多带 `days=30`,会话 cookie 由它的
+ * 303 设下,页面不经脚本发请求。口令不对(401)、尝试太多(429)、保持登录时间不合法(400)时服务端
+ * 回同一张壳,原因经 `data-invalid` 或 `data-error` 交进来,挂在密码框下面:框标成 `aria-invalid`,
+ * 原因由 `role="alert"` 播报,焦点落在框里。改了框里的内容就撤掉这条原因:BoardUI 的 Input 走原生
+ * 校验,标着错误时表单交不出去。 */
+import { useState } from 'react';
+
+import { Button } from '@/components/base/buttons/button';
+import { Checkbox } from '@/components/base/checkbox/checkbox';
+import { Input } from '@/components/base/input/input';
+
+import { AuthCard } from '../auth-card';
+import type { PageData } from '../page-data';
+
+/** 口令不对时框下那句话。限流与参数错误的原因由服务端给。 */
+export const WRONG_PASSWORD = '访问密码不正确';
+
+export function LoginPage({ data }: { data: PageData }) {
+ const [reason, setReason] = useState(data.error || (data.invalid === 'true' ? WRONG_PASSWORD : ''));
+ return (
+ <AuthCard title="Peach">
+ <form method="post" action="/login" aria-labelledby="auth-card-title" className="flex flex-col gap-6">
+ <Input id="login-token" label="访问密码" name="token" type="password" maxLength={256}
+ autoComplete="current-password" autoFocus isRequired
+ isInvalid={reason ? true : undefined} onChange={() => setReason('')}
+ hint={reason ? <span role="alert">{reason}</span> : undefined} />
+ <input type="hidden" name="next" value={data.next || '/'} />
+ <Checkbox name="days" value="30" defaultSelected>保持登录</Checkbox>
+ <Button type="submit" className="w-full">登录</Button>
+ </form>
+ </AuthCard>
+ );
+}
diff --git a/frontend/src/react/pages/page-data.ts b/frontend/src/react/pages/page-data.ts
new file mode 100644
index 000000000..5359764de
--- /dev/null
+++ b/frontend/src/react/pages/page-data.ts
@@ -0,0 +1,2 @@
+/* 薄壳挂载点上的 `data-*`:键是去掉 `data-` 前缀后的驼峰名,值都是字符串,服务端没给的键不在。 */
+export type PageData = Readonly<Record<string, string | undefined>>;
diff --git a/frontend/src/react/pages/pages.css b/frontend/src/react/pages/pages.css
index 0bd83066e..51b9acde2 100644
--- a/frontend/src/react/pages/pages.css
+++ b/frontend/src/react/pages/pages.css
@@ -1,6 +1,6 @@
/* 独立页面包的样式入口(`web/dist/peach-pages.css`)。
*
- * 首启页由服务端吐一个薄壳,页面上只有这一份样式表,没有 `board.css` 与 `/app.css`。控件、
+ * 首启、登录与错误三页由服务端吐同一张薄壳,页面上只有这一份样式表,没有 `board.css` 与 `/app.css`。控件、
* token 与容器基线和主界面的 React 子树同一套(`../base.css`),扫描范围只到页面包真正用到的
* 源码,产物才小。壳把 `.peach-react` 挂在 `<body>` 上、`.dark` 挂在 `<html>` 上。 */
@import "tailwindcss/theme.css" layer(theme);
@@ -36,53 +36,3 @@ body.peach-react {
.fcollapse.fcollapse-settled {
overflow: visible;
}
-
-/* 整页那条覆盖式滚动条(`src/ui-kit/overlay-scrollbar.ts`),几何同 `web/css/01-base.css`,
- * 颜色换成 BoardUI token。原生滚动条在挂上之后才藏,脚本没跑到时仍有系统那条可用。 */
-.ovtrack {
- position: absolute;
- z-index: 2;
- pointer-events: none;
-}
-
-.ovtrack[hidden] {
- display: none;
-}
-
-.ovtrack.page {
- position: fixed;
- top: 0;
- right: 0;
- bottom: 0;
- width: 12px;
- z-index: 91;
-}
-
-.ovthumb {
- position: absolute;
- top: 0;
- right: 0;
- width: 3px;
- border-radius: 9999px;
- background: var(--color-border-button-hover);
- transition: width 0.15s cubic-bezier(0.4, 0, 0.2, 1);
-}
-
-@media (pointer: fine) {
- .ovtrack.page .ovthumb {
- pointer-events: auto;
- }
-}
-
-.ovtrack.page .ovthumb:hover,
-.ovtrack.page.dragging .ovthumb {
- width: 6px;
-}
-
-[data-overlay-scrollbar] {
- scrollbar-width: none;
-}
-
-[data-overlay-scrollbar]::-webkit-scrollbar {
- display: none;
-}
diff --git a/frontend/test/react/entry-pages.test.tsx b/frontend/test/react/entry-pages.test.tsx
new file mode 100644
index 000000000..2d81d44c1
--- /dev/null
+++ b/frontend/test/react/entry-pages.test.tsx
@@ -0,0 +1,82 @@
+import { describe, expect, it } from 'vitest';
+
+import { ErrorPage } from '../../src/react/pages/error/error-page';
+import { LoginPage, WRONG_PASSWORD } from '../../src/react/pages/login/login-page';
+import { click, mount, type } from './render';
+
+const tokenInput = (root: ParentNode) => root.querySelector<HTMLInputElement>('input[name="token"]');
+const alerts = (root: ParentNode) => [...root.querySelectorAll('[role="alert"]')];
+const entries = (root: ParentNode) => [...new FormData(root.querySelector('form')!).entries()];
+
+describe('登录页', () => {
+ it('原生表单提交 token、next 与勾选时的 days=30', async () => {
+ const host = await mount(<LoginPage data={{ next: '/stats?x=1' }} />);
+ const form = host.querySelector('form')!;
+ expect(form.getAttribute('method')).toBe('post');
+ expect(form.getAttribute('action')).toBe('/login');
+ const input = tokenInput(host)!;
+ expect(input.type).toBe('password');
+ expect(input.required).toBe(true);
+ expect(input.maxLength).toBe(256);
+ expect(input.getAttribute('autocomplete')).toBe('current-password');
+ expect(document.activeElement).toBe(input);
+ expect(input.getAttribute('aria-invalid')).toBeNull();
+ expect(alerts(host)).toHaveLength(0);
+ await type(input, 'secret');
+ expect(entries(host)).toEqual([['token', 'secret'], ['next', '/stats?x=1'], ['days', '30']]);
+ await click(host.querySelector('input[name="days"]'));
+ expect(entries(host)).toEqual([['token', 'secret'], ['next', '/stats?x=1']]);
+ expect(form.checkValidity()).toBe(true);
+ });
+
+ it('没给 next 时回首页', async () => {
+ const host = await mount(<LoginPage data={{}} />);
+ expect(entries(host)).toContainEqual(['next', '/']);
+ });
+
+ it('口令不对时框标错、原因由读屏播报、焦点落在框里,改了内容就撤掉', async () => {
+ const host = await mount(<LoginPage data={{ next: '/', invalid: 'true' }} />);
+ const input = tokenInput(host)!;
+ expect(document.activeElement).toBe(input);
+ expect(input.getAttribute('aria-invalid')).toBe('true');
+ const [alert] = alerts(host);
+ expect(alert?.textContent).toBe(WRONG_PASSWORD);
+ const described = (input.getAttribute('aria-describedby') ?? '').split(' ');
+ expect(described.some((id) => document.getElementById(id)?.contains(alert!))).toBe(true);
+ await type(input, 'again');
+ expect(input.getAttribute('aria-invalid')).toBeNull();
+ expect(alerts(host)).toHaveLength(0);
+ expect(host.querySelector('form')!.checkValidity()).toBe(true);
+ });
+
+ it('限流与参数错误的原因照同一处写', async () => {
+ for (const reason of ['尝试次数较多,请一分钟后重试', '请选择有效的保持登录时间']) {
+ const host = await mount(<LoginPage data={{ next: '/', error: reason }} />);
+ const input = tokenInput(host)!;
+ expect(input.getAttribute('aria-invalid')).toBe('true');
+ expect(alerts(host).map((node) => node.textContent)).toEqual([reason]);
+ host.remove();
+ }
+ });
+});
+
+describe('错误页', () => {
+ const cases = [
+ { status: '403', title: '这里不能打开', lede: '请在运行 Peach 的电脑上打开配置' },
+ { status: '404', title: '四〇四', lede: null },
+ { status: '409', title: '现在不能这样做', lede: '请先完成首次设置' },
+ { status: '500', title: '出了点问题', lede: '服务出错' },
+ ];
+ for (const { status, title, lede } of cases) {
+ it(`${status} 的标题与说明`, async () => {
+ const detail = lede ?? '这个地址下没有页面。';
+ const host = await mount(<ErrorPage data={{ status, detail }} />);
+ expect(host.querySelector('h1')?.textContent).toBe(title);
+ expect(document.title).toBe(`Peach · ${title}`);
+ expect(host.textContent?.includes(detail)).toBe(lede !== null);
+ const home = host.querySelector('a');
+ expect(home?.getAttribute('href')).toBe('/');
+ expect(home?.textContent).toBe('返回首页');
+ });
+ }
+});
diff --git a/frontend/vite.entry.config.ts b/frontend/vite.entry.config.ts
index 75c91eb1b..3354c5718 100644
--- a/frontend/vite.entry.config.ts
+++ b/frontend/vite.entry.config.ts
@@ -1,8 +1,7 @@
/* 入口包的构建配置:`web/dist/peach-entry.js`。
*
- * 首启页、完成页与错误页是服务端拼的独立页面,不加载 `peach-ui.js` 与 React 子树;这份产物只带
- * 它们要的共用控件(`src/entry/index.ts`),不带 React。主界面的 `/js/ui-components.js` 从这里原名
- * 转出同一批控件,全站只有一份实现、一份模块实例。
+ * 这份产物只带遗留层要的共用控件(`src/entry/index.ts`),不带 React。主界面的 `/js/ui-components.js`
+ * 从这里原名转出这批控件,全站只有一份实现、一份模块实例。
*
* 字形、转义与界面音效仍是遗留层那一份,外置成 `/js/core.js`、`/js/ui-sounds.js`,与主界面同一个 URL。
* `npm run build` 里排在最后:第一段 `vite build` 会清空 web/dist。不加内容哈希,理由同 `vite.config.ts`。 */
diff --git a/frontend/vite.pages.config.ts b/frontend/vite.pages.config.ts
index a10350c63..12ea73317 100644
--- a/frontend/vite.pages.config.ts
+++ b/frontend/vite.pages.config.ts
@@ -1,6 +1,7 @@
/* 独立页面包的构建配置:`web/dist/peach-pages.js` 与 `web/dist/peach-pages.css`。
*
- * 首次运行页由服务端吐一个薄壳,只加载这两份。它们自成一体:React、BoardUI 控件和用到的
+ * 首启、登录与错误三页由服务端吐同一张薄壳,只加载这两份;它们不要会话就能取(ADR-0094)。
+ * 它们自成一体:React、BoardUI 控件和用到的
* `src/ui-kit/` 共用件都打进来,产物里没有任何外部 import——页面不加载 `/js/` 下的遗留层,也不加载
* `peach-ui.js`、`peach-react.js` 与 `peach-entry.js`,同一个模块在这一页上不会有第二份实例。
* `@peach/legacy/ui` 落到 `src/react/pages/legacy-ui.ts`,只转出共用件真正读的那几样。
diff --git a/src/peach/routes_auth.py b/src/peach/routes_auth.py
index 69c02a716..2babc0cf4 100644
--- a/src/peach/routes_auth.py
+++ b/src/peach/routes_auth.py
@@ -10,13 +10,12 @@
from __future__ import annotations
import hmac
-import html
from collections import OrderedDict
import threading
import time
from urllib.parse import urlsplit
from . import access, tunnel
-from .web_entry import check_html, entry_page_style
+from .web_entry import page_shell
from starlette.concurrency import run_in_threadpool
from urllib.parse import parse_qs
@@ -193,51 +192,29 @@ def set_auth_cookie(response: Response, request: Request, *, days: int = 30, log
response.delete_cookie("tok", path="/")
-def login_html(next_path: str, *, invalid: bool = False) -> str:
- """登录页:Auth Card 的单字段形态,控件全部来自 `web_entry`。
+def login_html(next_path: str, *, invalid: bool = False, error: str = "") -> str:
+ """登录页的薄壳:表单由页面包画,服务端只给净化过的 `next`、口令是否错误与限流或参数错误的原因。"""
+ data = {"next": next_path}
+ if invalid:
+ data["invalid"] = "true"
+ if error:
+ data["error"] = error
+ return page_shell("登录 Peach", "login", data)
+
+
+def _safe_next(value: str) -> str:
+ """登录后去哪:只认站内路径,`//` 开头的协议相对地址会跳出本站。"""
+ return value if value.startswith("/") and not value.startswith("//") else "/"
- 这一页和错误页是同一副面孔的两个状态,所以样式层整份取 `entry_page_style()`,
- 不在这里另留一套色板和控件——那一套自成一格,登录完跳进馆藏就像换了个产品。
- """
- safe_next = html.escape(next_path, quote=True)
- # 密码错了是这个字段的事,不是整页的事:框体线条转 danger 色,原因紧跟在下面。
- field_state = "true" if invalid else "false"
- described = ' aria-describedby="login-error"' if invalid else ""
- error = '<p class="bad" id="login-error" role="alert">访问密码不正确</p>' if invalid else ""
- return (
- '<!doctype html><html lang="zh-CN"><head><meta charset="utf-8">'
- '<meta name="viewport" content="width=device-width,initial-scale=1">'
- '<meta name="color-scheme" content="light dark">'
- # 公网入口在跑的时候这一页就在互联网上,不希望它进任何搜索结果。
- # 响应头那一份(`X-Robots-Tag`)管所有响应,这一行管只读 HTML 的爬虫。
- '<meta name="robots" content="noindex, nofollow">'
- '<title>登录 Peach</title>'
- # 图标声明和主站同一份。书签地址是 `/`,没有会话时这一页就是它实际停在的地方:
- # 这里不声明,浏览器只会去要 `/favicon.ico`,把「这个站没有图标」记进书签。
- '<link rel="icon" href="/favicon.ico" type="image/x-icon">'
- # 手动选的那一档压过系统偏好,必须在第一次绘制前定下来——固定浅色的人不该在
- # 登录页先看一眼深色。深浅两套色板由 `entry_page_style()` 随后给出。
- '<script>(()=>{try{'
- 'const c=JSON.parse(localStorage.getItem("peach.settings.v1")||"{}").theme;'
- 'if(c==="light"||c==="dark")document.documentElement.dataset.theme=c;'
- '}catch(e){}})();</script>'
- f'{entry_page_style()}</head><body><main>'
- '<section class="setup-auth-card login-card">'
- '<header><img class="mark" src="/peach-logo.png" alt="" width="40" height="40"><h1>Peach</h1></header>'
- '<form method="post" action="/login">'
- '<div class="field"><label class="field-label" for="login-token">访问密码</label>'
- '<span class="entry-input"><input id="login-token" name="token" type="password" maxlength="256" '
- f'autocomplete="current-password" aria-invalid="{field_state}"{described} required autofocus></span>'
- f'{error}</div>'
- f'<input name="next" type="hidden" value="{safe_next}">'
- + check_html("days", "保持登录", checked=True, value="30")
- + '<button type="submit">登录</button></form></section></main></body></html>'
- )
+
+def _wants_page(request: Request) -> bool:
+ """浏览器表单提交的 `Accept` 里有 `text/html`,出错时回登录页并原位报错;其余调用方回 JSON。"""
+ return "text/html" in request.headers.get("accept", "")
@router.get("/login", response_class=HTMLResponse)
def login(request: Request, next: str = "/"):
- next_path = next if next.startswith("/") and not next.startswith("//") else "/"
+ next_path = _safe_next(next)
if _authorized(request, request.app.state.settings.token,
_first_query_values(request)):
return RedirectResponse(next_path, status_code=303)
@@ -247,15 +224,19 @@ def login(request: Request, next: str = "/"):
@router.post("/login")
async def login_submit(request: Request):
same_origin(request)
- _login_attempt(request)
- token = request.app.state.settings.token
form = parse_qs(
(await request.body()).decode("utf-8", "replace"), keep_blank_values=True,
)
+ next_path = _safe_next((form.get("next") or ["/"])[0])
+ try:
+ _login_attempt(request)
+ except HTTPException as exc:
+ if not _wants_page(request):
+ raise
+ return HTMLResponse(login_html(next_path, error=str(exc.detail)), status_code=exc.status_code,
+ headers=exc.headers)
+ token = request.app.state.settings.token
supplied = (form.get("token") or [""])[0]
- next_path = (form.get("next") or ["/"])[0]
- if not next_path.startswith("/") or next_path.startswith("//"):
- next_path = "/"
policy = access.load(request.app.state.settings.access_path)
if token and policy["mode"] != "open" and not await run_in_threadpool(access.verify, policy, supplied, token):
return HTMLResponse(login_html(next_path, invalid=True), status_code=401)
@@ -264,7 +245,10 @@ async def login_submit(request: Request):
if not 0 <= days <= 365:
raise ValueError
except ValueError:
- raise HTTPException(400, "请选择有效的保持登录时间") from None
+ message = "请选择有效的保持登录时间"
+ if _wants_page(request):
+ return HTMLResponse(login_html(next_path, error=message), status_code=400)
+ raise HTTPException(400, message) from None
response = RedirectResponse(next_path, status_code=303)
set_auth_cookie(response, request, days=days, login=True)
return response
diff --git a/src/peach/routes_pages.py b/src/peach/routes_pages.py
index 1a0e42f80..dd3747e23 100644
--- a/src/peach/routes_pages.py
+++ b/src/peach/routes_pages.py
@@ -22,7 +22,6 @@ import sys
from collections.abc import Mapping, Sequence
import re
-from html import escape
from pathlib import Path
from fastapi import APIRouter, Depends, HTTPException, Request
@@ -38,7 +37,7 @@ from fastapi.responses import (
from . import distribution, onboarding, settings_file
from .config import PROJECT_ROOT
from .routes_auth import require_asset_auth, require_page_auth, set_auth_cookie
-from .web_entry import entry_page_style, runtime_fact_entries
+from .web_entry import page_shell, runtime_fact_entries
from .web_state import FAVICON
router = APIRouter()
@@ -51,20 +50,6 @@ ROBOTS_TXT = "User-agent: *\nDisallow: /\n"
#: 回环地址的三种写法。既用来判提交端点的调用方,也用来判「只有这台电脑」那个监听选择。
_LOOPBACK = frozenset({"127.0.0.1", "::1", "localhost"})
-#: 首启页与错误页共用的文档头。
-_PAGE_HEAD = ('<!doctype html>\n<html lang="zh-CN"><head><meta charset="utf-8">'
- '<meta name="viewport" content="width=device-width,initial-scale=1">'
- '<meta name="color-scheme" content="light dark">'
- '<link rel="icon" href="/favicon.ico" type="image/x-icon">')
-
-#: 手动选的深浅压过系统偏好,必须在第一次绘制前定下来:`data-theme` 与登录页同一写法,
-#: `dark` 类给 BoardUI 的色板,判据同 `web/index.html` 的预读脚本。
-_THEME_SCRIPT = ('<script>(()=>{try{'
- 'const c=JSON.parse(localStorage.getItem("peach.settings.v1")||"{}").theme;'
- 'document.documentElement.classList.toggle("dark",c==="dark"||(c!=="light"&&matchMedia("(prefers-color-scheme: dark)").matches));'
- 'if(c==="light"||c==="dark")document.documentElement.dataset.theme=c;'
- '}catch(e){}})();</script>')
-
#: 首启页从主界面雪碧图里借的字形:「选择文件夹」与媒体来源的站标兜底。
_SETUP_SYMBOLS = re.compile(r'<symbol id="i-(?:folder-search|hard-drive|database)"[^>]*>.*?</symbol>')
@@ -81,41 +66,22 @@ _SETUP_COPY = {
#: 同一局域网里的设备看。命令行问答按 `HOST_OPTIONS` 的编号顺序念,两边取值一致。
_HOST_ORDER = ("2", "1")
-#: 错误页的整页覆盖式滚动条(原生那条藏掉,滑块浮在内容上)取自入口包 `/dist/peach-entry.js`
-#: (源码 `frontend/src/ui-kit/`,主界面读同一份)。
-_SHARED_SCRIPT = ('<script type="module">import{attachOverlayScrollbar}from"/dist/peach-entry.js";'
- 'attachOverlayScrollbar(document.documentElement,{variant:"page"});'
- '</script>')
-
def setup_shell() -> str:
"""首次运行页的薄壳:题目、表单与完成态都由 `/dist/peach-pages.js` 按 `/api/setup/questions` 画出来。
- 这一页不加载主界面的样式与脚本,只取独立页面包;字形从 `web/index.html` 的雪碧图里按名字摘。
+ 字形从 `web/index.html` 的雪碧图里按名字摘。
"""
index = (PROJECT_ROOT / "web/index.html").read_text(encoding="utf-8")
- symbols = ''.join(_SETUP_SYMBOLS.findall(index))
- return (f'{_PAGE_HEAD}<title>Peach · 首次运行</title>{_THEME_SCRIPT}'
- '<link rel="stylesheet" href="/vendor/inter/5.3.0/index.css">'
- '<link rel="stylesheet" href="/dist/peach-pages.css">'
- '<script type="module" src="/dist/peach-pages.js"></script></head>'
- '<body class="peach-react">'
- f'<svg width="0" height="0" aria-hidden="true" style="position:absolute">{symbols}</svg>'
- '<div id="peach-page" data-page="setup"></div></body></html>\n')
+ return page_shell("Peach · 首次运行", "setup", symbols="".join(_SETUP_SYMBOLS.findall(index)))
def error_page(status: int, message: str) -> str:
- """浏览器导航撞上 403/404/409 时给人看的那一页,不是一行 JSON。"""
- title = {403: "这里不能打开", 404: "四〇四", 409: "现在不能这样做"}.get(status, "出了点问题")
- description = '' if status == 404 else f'<p class="lede">{escape(message)}</p>'
- body = (f'<section class="error-page"><img class="mark" src="/peach-logo.png" alt=""><h1>{title}</h1>'
- f'{description}<p><a class="geist-button primary" href="/">返回首页</a></p></section>')
- return _document(f"Peach · {title}", body)
+ """浏览器导航撞上 HTTP 错误时给人看的那一页,不是一行 JSON。
-
-def _document(title: str, body: str) -> str:
- return (f"{_PAGE_HEAD}<title>{title}</title>{entry_page_style()}"
- f'</head><body><main>{body}</main>{_SHARED_SCRIPT}</body></html>\n')
+ 标题、说明的显隐与「返回首页」归页面包,这里只给状态码和已换成中文的说明。
+ """
+ return page_shell("Peach", "error", {"status": str(status), "detail": message})
def _copy_for(key: str, fallback: str) -> tuple[str, str]:
@@ -573,6 +539,29 @@ def app_module(request: Request, name: str,
return asset_response(request, path, "text/javascript")
+def _bundle_response(request: Request, name: str) -> Response:
+ """`web/dist/` 下的一份产物。名字不合法或文件不在都是 404,浏览器直接打开时由错误页说。"""
+ if not re.fullmatch(r"[a-z0-9_-]+\.(?:js|css)", name):
+ raise HTTPException(404)
+ path = request.app.state.settings.page_path.parent / "dist" / name
+ if not path.is_file():
+ raise HTTPException(404)
+ media = "text/css" if name.endswith(".css") else "text/javascript"
+ return asset_response(request, path, media)
+
+
+# 两条字面量路由必须注册在 `/dist/{name}` 之前:路由按注册顺序匹配。
[email protected]_route("/dist/peach-pages.js", methods=["GET", "HEAD"])
[email protected]_route("/dist/peach-pages.css", methods=["GET", "HEAD"])
+def page_bundle(request: Request):
+ """入口页的页面包,不要会话(ADR-0094):登录页要在拿到会话之前出图。
+
+ 放行的只有这两个文件。它们提交进 Git、随仓库分发,不读账本、不含配置与凭据,内容不随
+ 登录与否变化;页面包也不 import 别的产物。其余 `/dist/*` 仍走下面那条要会话的路由。
+ """
+ return _bundle_response(request, request.url.path.rsplit("/", 1)[1])
+
+
@router.api_route("/dist/{name}", methods=["GET", "HEAD"])
def app_bundle(request: Request, name: str,
args: dict[str, str] = Depends(require_asset_auth)):
@@ -584,13 +573,7 @@ def app_bundle(request: Request, name: str,
名字判据和 `/js/` 逐字一致,只多认一个 `.css`:产物名不带内容哈希,也就不需要
名字里再有点,`peach-ui.js.map` 这类附带文件跟着一起落在 404。
"""
- if not re.fullmatch(r"[a-z0-9_-]+\.(?:js|css)", name):
- return PlainTextResponse("bad bundle name", status_code=404)
- path = request.app.state.settings.page_path.parent / "dist" / name
- if not path.is_file():
- return PlainTextResponse("missing", status_code=404)
- media = "text/css" if name.endswith(".css") else "text/javascript"
- return asset_response(request, path, media)
+ return _bundle_response(request, name)
@router.api_route("/dev/agentation.js", methods=["GET", "HEAD"])
diff --git a/src/peach/web_entry.py b/src/peach/web_entry.py
index 5a74bfd10..ab0a519c9 100644
--- a/src/peach/web_entry.py
+++ b/src/peach/web_entry.py
@@ -1,218 +1,55 @@
-"""入口页共用件:登录页与错误页的内联样式,首启与配置页共用的运行信息。
+"""入口页共用件:首启、登录与错误三页的薄壳,首启与配置页共用的运行信息。
-登录页与错误页不加载 `app.js`,样式得随 HTML 一起送到;运行信息则被 `/api/setup`
-和 `/api/configuration` 共用。三个路由模块都要,就不能住在其中任何一个里:那会让
-路由层互相导入成环。放在 web 层,路由模块单向依赖它,`tests/test_module_layering.py`
-守着这个方向。
+三页都由独立页面包 `/dist/peach-pages.js` 画(ADR-0094),服务端只吐同一张薄壳,要画的变量写在
+挂载点的 `data-*` 上。运行信息则被 `/api/setup` 和 `/api/configuration` 共用。三个路由模块都要,
+就不能住在其中任何一个里:那会让路由层互相导入成环。放在 web 层,路由模块单向依赖它,
+`tests/test_module_layering.py` 守着这个方向。
"""
from __future__ import annotations
import re
-
-from .config import PROJECT_ROOT
-
-
-def board_entry_style() -> str:
- """入口页内联公共视觉层。登录页与错误页不加载 app.js,样式得随 HTML 一起送到。"""
- css = (PROJECT_ROOT / "web/board-entry.css").read_text(encoding="utf-8")
- return f'<style id="boardEntryStyles">{css}</style>'
-
-
-#: 入口页表单的样式,登录与错误页共用这一份。刻意不引用 `web/` 里的任何资产:
-#: 那一套一上来就会去打 `/api/items`,而未配置的机器还没有数据库,页面只会是一屏红色
-#: 报错。这几页因此落在 SPA 外壳之外,不是 `frontend/` island(ADR-0022、docs/FRONTEND.md)。
-_ENTRY_FORM_STYLE = """<style>
-*{box-sizing:border-box}
-body{margin:0;padding:48px 24px;background:var(--ground);color:var(--ink);
-font:var(--fs-md)/1.6 system-ui,-apple-system,"Segoe UI","Microsoft YaHei",sans-serif}
-main{max-width:560px;margin:0 auto}
-body:has(.error-page){min-height:100svh;display:grid;align-items:center}
-body:has(.error-page)>main{width:min(560px,100%)}
-.error-page{display:grid;justify-items:start;gap:32px}
-.error-page>h1,.error-page>p{margin:0}
-.mark{display:block;width:40px;height:40px;border-radius:50%}
-h1{font-size:var(--fs-3xl);font-weight:600;line-height:1.25;margin:16px 0 0}
-.lede{margin:6px 0 0;color:var(--muted)}
-h2{font-size:var(--fs-lg);font-weight:600;margin-top:32px;padding-top:24px;border-top:1px solid var(--line)}
-p{color:var(--ink-2)}a{color:var(--tungsten);text-decoration:none}
-a:hover{text-decoration:none}
-code{font:var(--fs-xs)/1.5 ui-monospace,Consolas,"Cascadia Mono",monospace;
-background:var(--surface);border:1px solid var(--line-soft);border-radius:var(--badge-radius);
-padding:2px 6px;overflow-wrap:anywhere}
-dt{color:var(--muted);font-size:var(--fs-sm)}dd{margin:0 0 12px;overflow-wrap:anywhere}
-form{margin-top:32px}
-.field{margin-top:24px}
-.field>label,.field>.legend{display:block;margin:0 0 8px;font-weight:500;color:var(--ink)}
-.req{color:var(--drop);margin-left:4px}
-input[type=text],input[type=number],input[type=password]{width:100%;height:var(--control-h);padding:0 12px;
-border:1px solid var(--line);border-radius:var(--control-radius);background:var(--ground);
-color:var(--ink);font:inherit}
-.affix{display:flex;align-items:center;height:var(--control-h);border:1px solid var(--line);
-border-radius:var(--control-radius);background:var(--ground)}
-.affix input:is([type=text],[type=number]){flex:1 1 auto;min-width:0;height:100%;border:0;border-radius:0;background:transparent}
-.affix input:is([type=text],[type=number]):focus-visible{outline:0}
-.affix:focus-within{outline:2px solid var(--tungsten);outline-offset:3px}
-.affix>span{flex:none;padding:0 12px;height:100%;display:grid;place-items:center;
-color:var(--muted);border-left:1px solid var(--line-soft)}
-.affix>span:first-child{border-left:0;border-right:1px solid var(--line-soft)}
-.affix:has(input:disabled){background:var(--surface);border-color:var(--border-15)}
-.affix input:disabled{color:var(--muted);cursor:not-allowed}
-.field:has(input:disabled) .req{visibility:hidden}
-.switch{display:grid;grid-template-columns:1fr 1fr;padding:3px;border:1px solid var(--line-soft);
-border-radius:var(--surface-radius);background:var(--surface)}
-.switch label{position:relative;display:grid;place-items:center;height:calc(var(--control-h) - 8px);padding:0 14px;
-border-radius:var(--control-radius);color:var(--ink-2);cursor:pointer}
-.switch input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
-.switch label:hover{color:var(--ink)}
-.switch label:has(input:checked){background:var(--hover);color:var(--ink)}
-.switch label:has(input:focus-visible){outline:2px solid var(--tungsten);outline-offset:2px}
-:focus-visible{outline:2px solid var(--tungsten);outline-offset:3px}
-.help{margin:6px 0 0;color:var(--muted);font-size:var(--fs-sm)}
-.optional{margin-inline-start:8px;color:var(--muted);font-size:var(--fs-sm);font-weight:400}
-.field>label:not(:first-child){margin-top:24px}
-/* 高级设置是 Geist Collapse:summary 是触发器,chevron 紧跟标题,与高度一样 200ms ease-in-out;
- 折叠体由 /js/ui-components.js 的 wireCollapse 接管。 */
-details{margin-top:24px}
-summary{display:flex;align-items:center;gap:8px;min-height:44px;
-cursor:pointer;list-style:none;font-weight:500;color:var(--ink)}
-summary::-webkit-details-marker{display:none}
-summary svg{width:16px;height:16px;flex:none;stroke:currentColor;fill:none;stroke-width:2;
-stroke-linecap:round;stroke-linejoin:round;color:var(--muted);transition:transform .2s ease-in-out}
-details[open] summary svg{transform:rotate(180deg)}
-/* 折叠体裁切溢出,输入框的焦点环(2px 环加 3px 间距)会被切掉:把裁切框往外放 6px,
- 横向靠 .fcollapse 的负外边距,纵向靠 .fcollapsebody 的内边距——内边距不能落在
- .fcollapse 自己身上,否则高度收不到 0。 */
-.fcollapse{overflow:hidden;transition:height .2s ease-in-out;margin:0 -6px;padding:0 6px}
-.fcollapsebody{padding:6px 0}
-details .field{margin-top:0}
-details .field+.field{margin-top:24px}
-.bad{margin:6px 0 0;color:var(--drop);font-size:var(--fs-sm)}
-.check{display:flex;align-items:center;gap:12px;min-height:44px;margin:24px 0 0;cursor:pointer}
-.pcheck{position:relative;display:grid;place-items:center;width:20px;height:20px;flex:none}
-.pcheck input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
-.pcheck>span{width:18px;height:18px;border:1px solid var(--border-15);border-radius:var(--badge-radius);
-display:grid;place-items:center;background:var(--ground);color:transparent}
-.pcheck>span svg{display:block;width:13px;height:13px;stroke:currentColor;fill:none;stroke-width:2.5}
-.check:hover .pcheck>span{background:var(--hover)}
-.pcheck input:checked+span{border-color:var(--ink-2);color:var(--ink)}
-.pcheck input:focus-visible+span{outline:2px solid var(--tungsten);outline-offset:2px}
-button[type=submit]{margin-top:32px;width:100%;height:var(--control-h);border:1px solid var(--ink);
-border-radius:var(--control-radius);cursor:pointer;background:var(--ink);color:var(--ground);
-font:500 var(--fs-md) system-ui,sans-serif}
-button[type=submit]:hover{background:color-mix(in srgb,var(--ink) 88%,var(--ground));color:var(--ground)}
-/* 一行:输入框、选择文件夹、移除。flex 而不是 grid:只剩一行时移除键隐藏,
- grid 的空轨道会留下一段 gap。 */
-.dir{display:flex;flex-wrap:wrap;gap:10px;padding:16px;border:1px solid var(--line-soft);border-radius:var(--control-radius);margin-top:16px}
-.dir:first-child{margin-top:0}.dir .bad{flex-basis:100%;margin:0}
-.entry-input{display:contents}
-.dir input[type=text]{flex:1 1 auto;width:auto;min-width:0}
-.dir > input[type=text]{flex:1 1 0;width:0}
-.sourcefields{flex-basis:100%;display:grid;gap:8px;min-width:0}
-.sourcefields select{width:100%;height:var(--control-h);border:1px solid var(--line-soft);border-radius:var(--control-radius);background:var(--surface);color:var(--ink);padding:0 12px;font:inherit}
-.sourcefields select:focus-visible{outline:2px solid var(--tungsten);outline-offset:2px}
-.sourcefields select{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}
-.sourcefields label{display:grid;gap:6px;color:var(--muted);font-size:var(--fs-sm)}
-.sourcefields input[type=text]{width:100%;box-sizing:border-box}
-.help a{text-decoration:none}.help a:hover{text-decoration:underline;text-underline-offset:3px}
-.help a svg{width:14px;height:14px;margin-inline-start:4px;vertical-align:-2px;stroke:currentColor;fill:none;stroke-width:2}
-.sourcefields .gselect{display:flex;width:100%}.sourcefields .gselectfield{padding-inline:14px}
-.sourcefields select[hidden]{display:none}
-.rm,.pick,.add{height:var(--control-h);border:1px solid var(--line);border-radius:var(--control-radius);
-background:var(--ground);color:var(--ink);cursor:pointer;font:500 var(--fs-sm) system-ui,sans-serif}
-.rm,.pick{width:var(--control-h);flex:none;display:grid;place-items:center;color:var(--muted)}
-.rm svg,.pick svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;
-stroke-linejoin:round}
-.pick[aria-busy=true]{color:var(--muted);cursor:progress}
-.add{margin-top:8px;padding:0 14px}
-.rm:hover,.pick:hover,.add:hover{background:var(--hover);color:var(--ink)}
-.rm{color:var(--drop)}.rm:hover{background:var(--drop);border-color:var(--drop);color:white}
-.rm[hidden],.pick[hidden],.add[hidden]{display:none}
-@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
-@media(max-width:760px){input[type=text],input[type=number]{font-size:16px}}
-@media(max-width:560px){body{--control-h:44px}.sourcefields select{font-size:var(--fs-lg)}}
-@media(max-width:440px){body{padding:24px 20px}h1{font-size:var(--fs-2xl)}}
-</style>"""
-
-#: Board CheckboxGlyph 的归一化勾线;来源见 docs/BOARD_UI.md。
-CHECK_SVG = ('<svg viewBox="0 0 16 16" fill="none">'
- '<path d="M4 7.7002L6.64645 10.3466C6.84171 10.5419 7.15829 10.5419 7.35355 10.3466L12 5.7002" '
- 'stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" pathLength="1"/></svg>')
-
-
-def check_html(name: str, text_html: str, *, checked: bool, value: str = "y") -> str:
- """入口页共用的自绘勾选框:文字与框同属一个 label,没有点不到的缝。"""
- return (f'<label class="check"><span class="pcheck"><input type="checkbox" name="{name}" value="{value}"'
- + (" checked" if checked else "")
- + f'><span aria-hidden="true">{CHECK_SVG}</span></span><span>{text_html}</span></label>')
-
-
-def _theme_tokens() -> str:
- """主站 `01-base.css` 里的两套色板:浅色的 `:root` 和跟随系统的深色覆盖。
-
- 登录页在 SPA 外壳之外,但它必须和主站同一副面孔:系统是深色时主站是深色,这一页
- 也得是,否则登录完一跳进馆藏就像换了个产品。
- """
- base = (PROJECT_ROOT / "web" / "css" / "01-base.css").read_text(encoding="utf-8")
- light = re.search(r":root\s*\{[^}]+\}", base).group(0)
- dark = re.search(r"@media \(prefers-color-scheme:dark\)\{:root:not\(\[data-theme=\"light\"\]\)\{[^}]+\}\}",
- base).group(0)
- return light + dark
-
-
-def _scrollbar_rules() -> str:
- """主站的覆盖式滚动条:轨道、滑块与「挂上之后才藏原生那条」三组规则,原样借用。
-
- 入口页装不下时滚起来也得是同一条;只取 .ovtrack 到 [data-overlay-scrollbar] 那一段,
- 不带 html 上无条件藏滚动条的那句——脚本没跑到时页面要还有系统滚动条可用。
- """
- base = (PROJECT_ROOT / "web" / "css" / "01-base.css").read_text(encoding="utf-8")
- rules = re.search(r"\.ovtrack\{.*?\[data-overlay-scrollbar\]::-webkit-scrollbar\{[^}]*\}", base, re.S).group(0)
- return re.sub(r"/\*.*?\*/\n?", "", rules, flags=re.S)
-
-
-def _button_rules() -> str:
- """独立页面直接使用主站的 Geist Button 规则。"""
- base = (PROJECT_ROOT / "web/css/01-base.css").read_text(encoding="utf-8")
- return '\n'.join(re.findall(r'^\.(?:geist-button|gselect|popmenu)[^{}]*\{[^}]*\}', base, re.M))
-
-
-def _board_button_rules() -> str:
- """入口页的主按钮就是站内那一颗:规则和 token 都从 `board.css` 原样取。
-
- 错误页和登录页都是没登录时看到的 Peach,按钮换一种颜色就等于说这是另一个
- 产品。表单提交键由 `board-entry.css` 接同一组 token,渐变色值仍只在 `board.css` 一处。
-
- 只取主按钮那几条(静止、悬停铺的那层底、按下、尺寸)和它们用到的 token:`board.css`
- 的 `:root` 里还有一份把 `--page` `--ground` 按 Board 的角色重排的映射,整块搬过来
- 会把入口页自己的面色对调。
- """
- board = (PROJECT_ROOT / "web/board.css").read_text(encoding="utf-8")
- accent = re.search(
- r'^:root,:root\[data-accent=blue\],\[data-accent-ball=blue\]'
- r'\{--color-accent-50:[^}]*\}', board, re.M).group(0)
- palettes = re.findall(
- r'^(?:@media\(prefers-color-scheme:dark\)\{)?:root[^{]*\{--color-text-primary:[^}]*\}\}?',
- board, re.M)
- switches = re.findall(r'^:root[^{]*\{--control-hover:[^}]*\}', board, re.M)
- fonts = [f'{name}:{value}' for name in ("--board-font", "--board-body-medium")
- for value in re.findall(rf'{name}:([^;]+);', board)[:1]]
- rules = re.findall(
- r'^body :is\([^)]*\)\.primary(?::not\(:disabled\))?'
- r'(?::hover|:active)?(?:::before)?\{[^}]*\}', board, re.M)
- return accent + ''.join(palettes) + ''.join(switches) + ':root{' + ';'.join(fonts) + '}' + ''.join(rules)
-
-
-def entry_page_style() -> str:
- """入口页的整层视觉:色板、滚动条、表单控件、Geist 按钮与 Board 表面。
-
- 错误页和登录页是同一副面孔的两个状态。谁少接一段,那一页就换了
- 产品:登录页曾只接 `board_entry_style()`,`--board-blue` 无处声明,主按钮的底色
- 解析不出来,屏幕上只剩一行蓝字。顺序有意义——后面几段按同一套 token 覆盖前面的
- 默认值,`board-entry.css` 必须排在表单样式之后。
+from collections.abc import Mapping
+from html import escape
+
+#: 三页共用的文档头。`robots` 那一行管只读 HTML 的爬虫,响应头 `X-Robots-Tag` 管所有响应:
+#: 公网入口在跑的时候登录页就在互联网上,不希望它进任何搜索结果。图标声明和主站同一份,
+#: 没有会话时登录页就是书签实际停在的地方。
+_PAGE_HEAD = ('<!doctype html>\n<html lang="zh-CN"><head><meta charset="utf-8">'
+ '<meta name="viewport" content="width=device-width,initial-scale=1">'
+ '<meta name="color-scheme" content="light dark">'
+ '<meta name="robots" content="noindex, nofollow">'
+ '<link rel="icon" href="/favicon.ico" type="image/x-icon">')
+
+#: 手动选的深浅压过系统偏好,必须在第一次绘制前定下来,所以排在任何样式之前:`dark` 类给
+#: BoardUI 的色板,`data-theme` 记手动那一档,判据同 `web/index.html` 的预读脚本。
+_THEME_SCRIPT = ('<script>(()=>{try{'
+ 'const c=JSON.parse(localStorage.getItem("peach.settings.v1")||"{}").theme;'
+ 'document.documentElement.classList.toggle("dark",c==="dark"||(c!=="light"&&matchMedia("(prefers-color-scheme: dark)").matches));'
+ 'if(c==="light"||c==="dark")document.documentElement.dataset.theme=c;'
+ '}catch(e){}})();</script>')
+
+_DATA_KEY = re.compile(r"[a-z][a-z0-9-]*")
+
+
+def page_shell(title: str, page: str, data: Mapping[str, str] | None = None, *, symbols: str = "") -> str:
+ """入口页的薄壳:主题预读、Inter、页面包的样式与脚本,以及挂载点 `#peach-page`。
+
+ `page` 写进 `data-page`,页面包按它挑哪一页;`data` 的每一项写成挂载点上的 `data-<键>`,
+ 值一律经 HTML 转义。骨架文案归页面包,这里只放服务端才知道的变量。`symbols` 是页面要借的
+ 雪碧图字形,原样放进一张不占位的 `<svg>`。
"""
- return (f"<style>{_theme_tokens()}{_scrollbar_rules()}</style>{_ENTRY_FORM_STYLE}"
- f"<style>{_button_rules()}</style>{board_entry_style()}"
- f"<style>{_board_button_rules()}</style>")
+ attributes = ""
+ for key, value in (data or {}).items():
+ if not _DATA_KEY.fullmatch(key):
+ raise ValueError(f"data-* 键名不合法:{key!r}")
+ attributes += f' data-{key}="{escape(value, quote=True)}"'
+ sprite = f'<svg width="0" height="0" aria-hidden="true" style="position:absolute">{symbols}</svg>' if symbols else ""
+ return (f'{_PAGE_HEAD}<title>{escape(title)}</title>{_THEME_SCRIPT}'
+ '<link rel="stylesheet" href="/vendor/inter/5.3.0/index.css">'
+ '<link rel="stylesheet" href="/dist/peach-pages.css">'
+ '<script type="module" src="/dist/peach-pages.js"></script></head>'
+ f'<body class="peach-react">{sprite}'
+ f'<div id="peach-page" data-page="{escape(page, quote=True)}"{attributes}></div></body></html>\n')
def runtime_facts(config) -> tuple[tuple[str, str], ...]:
diff --git a/tests/test_access.py b/tests/test_access.py
index 95337a1f5..05694b457 100644
--- a/tests/test_access.py
+++ b/tests/test_access.py
@@ -73,39 +73,35 @@ class AccessTests(unittest.IsolatedAsyncioTestCase):
session_header = next(header for header in response.headers.get_list("set-cookie") if header.startswith(access.COOKIE))
self.assertNotIn("Max-Age", session_header)
self.assertEqual((await self.login(days=366)).status_code, 400)
- html = routes_auth.login_html("/")
- self.assertIn('type="checkbox" name="days" value="30" checked', html)
- self.assertNotIn('type="radio"', html)
- # 勾上就是 30 天:没有哪一处本地设置能把它改成别的数。
- self.assertNotIn("loginDays", html)
-
- def test_the_login_page_is_the_auth_card_in_its_single_field_form(self):
- """登录页是 Auth Card 的单字段形态:样式整份取 `entry_page_style()`,与错误页同一副。
-
- 字段是 Board Input(label 在上、`.entry-input` 包住、聚焦环由卡片规则接管),
- 「保持登录」是站内自绘 Checkbox,「登录」是全宽 primary 提交键;页面自己不再留
- 第二套色板。主题预读脚本要排在样式之前,手动选的深浅色才能在首绘前定下来。
+
+ async def test_the_login_page_is_a_shell_around_the_page_bundle(self):
+ """登录页由页面包画:壳里只有 `next`、口令错误的标记与页面包,表单字段由页面包按原名提交。
+
+ `next` 经净化与 HTML 转义写进挂载点;主题预读排在任何样式之前,手动选的深浅色才能在首绘前定下来。
+ 控件的外观、`aria-invalid`、`role="alert"` 与焦点归 vitest 与截图验收。
"""
- from peach.web_entry import CHECK_SVG, entry_page_style
- html = routes_auth.login_html("/next?x=1")
- self.assertIn(entry_page_style(), html)
- self.assertNotIn("--alert:", html, "登录页不留自己那套色板")
- self.assertIn('<section class="setup-auth-card login-card">', html)
- self.assertIn('<header><img class="mark" src="/peach-logo.png" alt="" width="40" height="40"><h1>Peach</h1></header>', html)
- self.assertIn('<div class="field"><label class="field-label" for="login-token">访问密码</label>'
- '<span class="entry-input"><input id="login-token" name="token" type="password"', html)
- self.assertIn('aria-invalid="false" required autofocus>', html)
- self.assertIn('<label class="check"><span class="pcheck"><input type="checkbox" name="days" value="30" checked>', html)
- self.assertIn(CHECK_SVG, html)
- self.assertIn('<span>保持登录</span></label><button type="submit">登录</button></form>', html)
- self.assertIn('value="/next?x=1"', html)
- self.assertNotIn('role="alert"', html)
- theme_script = 'document.documentElement.dataset.theme=c;'
- self.assertLess(html.index(theme_script), html.index('<style'), "主题预读要排在任何样式之前")
- # 密码错了是字段的事:框体转 danger 色,原因紧跟在字段里并由 aria-describedby 指过去。
- wrong = routes_auth.login_html("/", invalid=True)
- self.assertIn('aria-invalid="true" aria-describedby="login-error" required autofocus>', wrong)
- self.assertIn('</span><p class="bad" id="login-error" role="alert">访问密码不正确</p></div>', wrong)
+ access.save(self.path, "correct-password")
+ page = await self.client.get("/login", params={"next": '/stats?x=1&y="<b>'})
+ self.assertEqual(page.status_code, 200)
+ self.assertIn('<div id="peach-page" data-page="login" data-next="/stats?x=1&amp;y=&quot;&lt;b&gt;">',
+ page.text)
+ self.assertIn('<link rel="stylesheet" href="/dist/peach-pages.css">', page.text)
+ self.assertIn('<script type="module" src="/dist/peach-pages.js"></script>', page.text)
+ self.assertNotIn("<style", page.text)
+ self.assertNotIn("<form", page.text)
+ self.assertLess(page.text.index("dataset.theme=c"), page.text.index('<link rel="stylesheet"'),
+ "主题预读要排在任何样式之前")
+ for unsafe in ("//evil.example/", "https://evil.example/"):
+ with self.subTest(unsafe):
+ page = await self.client.get("/login", params={"next": unsafe})
+ self.assertIn('data-page="login" data-next="/">', page.text)
+ wrong = await self.client.post("/login", data={"token": "incorrect", "next": "/stats", "days": "30"})
+ self.assertEqual(wrong.status_code, 401)
+ self.assertIn('data-page="login" data-next="/stats" data-invalid="true">', wrong.text)
+ self.assertFalse(self.client.cookies)
+ accepted = await self.client.post("/login", data={"token": "correct-password", "next": "/stats", "days": "30"})
+ self.assertEqual(accepted.status_code, 303)
+ self.assertEqual(accepted.headers["location"], "/stats")
async def test_password_change_revokes_sessions_and_disable_is_explicit(self):
policy = access.save(self.path, "correct-password")
diff --git a/tests/test_fastapi_api.py b/tests/test_fastapi_api.py
index 20d0597cc..810ae65ce 100644
--- a/tests/test_fastapi_api.py
+++ b/tests/test_fastapi_api.py
@@ -1659,7 +1659,7 @@ class FastApiContractTests(unittest.IsolatedAsyncioTestCase):
async def test_login_posts_the_token_without_putting_it_in_the_url(self):
page = await self.client.get("/login?next=/stats")
self.assertEqual(page.status_code, 200)
- self.assertIn('type="password"', page.text)
+ self.assertIn('data-page="login" data-next="/stats"', page.text)
refused = await self.client.post(
"/login", content="token=wrong&next=%2Fstats",
headers={"Content-Type": "application/x-www-form-urlencoded"},
@@ -1684,25 +1684,48 @@ class FastApiContractTests(unittest.IsolatedAsyncioTestCase):
self.assertIn('<link rel="icon" href="/favicon.ico" type="image/x-icon">', page.text)
async def test_the_login_page_follows_the_chosen_theme(self):
- """登录页在拿到 cookie 之前出图,色板随入口页共用样式内联,跟着同一个选择走。
+ """登录页在拿到 cookie 之前出图,深浅色跟着同一个选择走,在第一次绘制前定下来。
- 它取不到 `/app.css`,颜色只能写在页面里。写死一档的话,固定浅色的人从地址栏
- 直接进来先看见一整屏黑,登录完才跳回浅色——同一次打开出现两套配色。
+ 手动选的那一档存在页面自己的 localStorage 里,主题预读读它,排在页面包的样式之前;
+ 默认浅色、跟随系统的深色、手动那一档压过系统这三支的色值由截图验收。
"""
- from peach.web_entry import entry_page_style
page = await self.client.get("/login?next=/")
self.assertEqual(page.status_code, 200)
self.assertIn('<meta name="color-scheme" content="light dark">', page.text)
- self.assertIn(entry_page_style(), page.text)
- # 三条分支:默认浅色、跟随系统的深色、手动选的那一档压过系统。
- self.assertIn(":root{--bg:#f7f7f7;--page:#f7f7f7;--ground:#fff;", page.text)
- self.assertIn("@media(prefers-color-scheme:dark){:root:not([data-theme=light]){--bg:#111;", page.text)
- self.assertIn(":root[data-theme=dark]{--bg:#111;", page.text)
- self.assertIn("body{background:var(--page)}", page.text)
- # 手动选的那一档存在页面自己的 localStorage 里,首帧之前就要读出来。
+ self.assertIn('<link rel="stylesheet" href="/dist/peach-pages.css">', page.text)
self.assertIn('localStorage.getItem("peach.settings.v1")', page.text)
self.assertLess(page.text.index('localStorage.getItem("peach.settings.v1")'),
- page.text.index("<style"), "主题预读要排在任何样式之前")
+ page.text.index('<link rel="stylesheet"'), "主题预读要排在任何样式之前")
+
+ async def test_refused_browser_logins_come_back_to_the_page_and_others_get_json(self):
+ """浏览器表单提交(`Accept` 含 `text/html`)撞上限流或保持登录时间不合法时回登录页并原位报错,
+ 状态码照旧;其余调用方回 JSON。"""
+ routes_auth._ATTEMPTS.clear()
+ self.addCleanup(routes_auth._ATTEMPTS.clear)
+ form = {"Content-Type": "application/x-www-form-urlencoded"}
+ page = {**form, "Accept": "text/html,application/xhtml+xml,*/*;q=0.8"}
+ body = "token=secret&next=%2Fstats&days=999"
+ refused = await self.client.post("/login", content=body, headers=page)
+ self.assertEqual(refused.status_code, 400)
+ self.assertTrue(refused.headers["content-type"].startswith("text/html"))
+ self.assertIn('data-page="login" data-next="/stats" data-error="请选择有效的保持登录时间">', refused.text)
+ self.assertNotIn("set-cookie", refused.headers)
+ refused = await self.client.post("/login", content=body, headers=form)
+ self.assertEqual(refused.status_code, 400)
+ self.assertEqual(refused.json(), {"error": "请选择有效的保持登录时间"})
+ routes_auth._ATTEMPTS.clear()
+ for _ in range(10):
+ wrong = await self.client.post("/login", content="token=wrong&next=%2Fstats", headers=form)
+ self.assertEqual(wrong.status_code, 401)
+ limited = await self.client.post("/login", content="token=wrong&next=%2Fstats", headers=page)
+ self.assertEqual(limited.status_code, 429)
+ self.assertEqual(limited.headers["retry-after"], "60")
+ self.assertTrue(limited.headers["content-type"].startswith("text/html"))
+ self.assertIn('data-page="login" data-next="/stats" data-error="尝试次数较多,请一分钟后重试">',
+ limited.text)
+ limited = await self.client.post("/login", content="token=secret&next=%2Fstats", headers=form)
+ self.assertEqual(limited.status_code, 429)
+ self.assertEqual(limited.json(),{"error": "尝试次数较多,请一分钟后重试"})
async def test_client_routes_serve_the_single_page_surface(self):
await self.client.post(
@@ -2618,6 +2641,11 @@ PUBLIC_ROUTES = {
("GET,HEAD", "/favicon.ico"),
("GET,HEAD", "/favicon.svg"),
("GET,HEAD", "/peach-logo.png"),
+ # 入口页的页面包(ADR-0094)。登录页在拿到会话之前就要画出来,首启、登录与错误三页都由它画。
+ # 只放这两个文件:它们提交进 Git、随仓库分发,不读账本、不含配置与凭据,内容不随登录与否
+ # 变化,也不 import 别的产物;其余 `/dist/*` 仍走要会话的 `/dist/{name}`。
+ ("GET,HEAD", "/dist/peach-pages.js"),
+ ("GET,HEAD", "/dist/peach-pages.css"),
# 拒绝收录的声明。爬虫没有会话,被 401 挡住等于这份声明根本没被读到。
("GET,HEAD", "/robots.txt"),
# CloudDrive2 的文件通知。推送方是另一个进程,没有也不该有 Peach 的会话,所以它带的
@@ -2698,5 +2726,68 @@ class RouteAuthContractTests(unittest.TestCase):
["/vendor"])
[email protected](HAS_DEPS, "fastapi/httpx not installed")
+class LoginPageWithoutSessionTests(unittest.IsolatedAsyncioTestCase):
+ """设了访问密码的实例上,没有会话也画得出登录页:它要的资源都能取,别的产物照旧要会话。"""
+
+ PAGE_ASSETS = ("/dist/peach-pages.css", "/dist/peach-pages.js", "/vendor/inter/5.3.0/index.css",
+ "/peach-logo.png", "/favicon.ico")
+ SESSION_ASSETS = ("/dist/peach-ui.js", "/dist/peach-react.js", "/dist/peach-entry.js",
+ "/js/core.js", "/js/ui-sounds.js")
+
+ async def asyncSetUp(self):
+ from peach import access
+ tmp = tempfile.TemporaryDirectory()
+ self.addCleanup(tmp.cleanup)
+ root = Path(tmp.name).resolve()
+ access_path = root / "access.json"
+ access.save(access_path, "entry-password")
+ app = create_app(PeachSettings(configured=True, token="entry-token", access_path=access_path,
+ db_path=fresh_ledger(root), follow_state_root=root / "state"))
+ self.addCleanup(app.state.http_transport.close)
+ self.client = httpx.AsyncClient(transport=httpx.ASGITransport(app=app), base_url="http://testserver")
+ self.addAsyncCleanup(self.client.aclose)
+ routes_auth._ATTEMPTS.clear()
+
+ async def test_the_login_page_and_everything_it_loads_need_no_session(self):
+ home = await self.client.get("/")
+ self.assertEqual(home.status_code, 303)
+ self.assertEqual(home.headers["location"], "/login?next=/")
+ page = await self.client.get("/login")
+ self.assertEqual(page.status_code, 200)
+ self.assertIn('data-page="login"', page.text)
+ for path in self.PAGE_ASSETS:
+ with self.subTest(path):
+ response = await self.client.get(path)
+ self.assertEqual(response.status_code, 200)
+ for path in self.PAGE_ASSETS[:2]:
+ with self.subTest(path):
+ response = await self.client.head(path)
+ self.assertEqual(response.status_code, 200)
+ self.assertEqual(response.headers["cache-control"], "no-cache")
+ again = await self.client.get(path, headers={"If-None-Match": response.headers["etag"]})
+ self.assertEqual(again.status_code, 304)
+
+ async def test_the_other_bundles_and_modules_still_need_a_session(self):
+ for path in self.SESSION_ASSETS:
+ with self.subTest(path):
+ self.assertEqual((await self.client.get(path)).status_code, 401)
+ login = await self.client.post("/login", data={"token": "entry-password", "next": "/"})
+ self.assertEqual(login.status_code, 303)
+ for path in self.SESSION_ASSETS + self.PAGE_ASSETS:
+ with self.subTest(path):
+ self.assertEqual((await self.client.get(path)).status_code, 200)
+
+ async def test_a_missing_bundle_opened_in_the_browser_is_the_error_page(self):
+ login = await self.client.post("/login", data={"token": "entry-password", "next": "/"})
+ self.assertEqual(login.status_code, 303)
+ page = await self.client.get("/dist/no-such.js", headers={"Accept": "text/html"})
+ self.assertEqual(page.status_code, 404)
+ self.assertIn('data-page="error" data-status="404" data-detail="这个地址下没有页面。"', page.text)
+ script = await self.client.get("/dist/no-such.js")
+ self.assertEqual(script.status_code, 404)
+ self.assertEqual(script.json(), {"error": "这个地址下没有页面。"})
+
+
if __name__ == "__main__":
unittest.main()
diff --git a/tests/test_module_layering.py b/tests/test_module_layering.py
index 7791e72e9..0249b7ad4 100644
--- a/tests/test_module_layering.py
+++ b/tests/test_module_layering.py
@@ -244,10 +244,9 @@ class LayeringTests(unittest.TestCase):
def test_route_modules_only_depend_on_the_auth_routes(self):
"""路由层内部也是单向的:`routes_auth` 在最下面,别的 `routes_*` 只许 import 它。
- `same_origin` 曾住在 `routes_configuration`,登录路由要用就在函数里反向 import;
- `board_entry_style` 与运行信息住在 `routes_pages`,配置路由同样反向去拿。三个模块
- 于是成了一个靠函数内 import 撑住的环——import 图上看不出来,读代码的人也说不清
- 谁在谁上面。共享件下沉到 web 层(`web_entry`),路由模块之间只剩鉴权依赖这一个方向。
+ 登录、首启与错误三页共用的薄壳 `page_shell` 和配置页要的运行信息住在 web 层(`web_entry`),
+ `same_origin` 住在 `routes_auth`。共享件放进任何一个 `routes_*`,别的路由模块就得反向去拿,
+ 成一个靠函数内 import 撑住的环——import 图上看不出来,读代码的人也说不清谁在谁上面。
函数内的 import 一样算:`_local_imports` 扫整棵语法树,不只看文件顶部。
"""
offenders = []
diff --git a/tests/test_onboarding.py b/tests/test_onboarding.py
index 5da03277f..b1b4b386f 100644
--- a/tests/test_onboarding.py
+++ b/tests/test_onboarding.py
@@ -955,8 +955,9 @@ class StandaloneConfigurationTests(_Case):
self.assertEqual(before, self.config.path.read_bytes())
def test_browser_navigations_get_an_error_page_instead_of_raw_json(self):
- """地址栏里直接打开一个 403/404/409 的路径,看到的是 Peach 的页面,不是一行 JSON。
+ """地址栏里直接打开一个出错的路径,看到的是 Peach 的页面,不是一行 JSON。
+ 错误页由页面包画:壳里只有状态码与已换成中文的说明,标题与说明的显隐归前端。
`/api/` 下的路径和不要 HTML 的调用方仍拿 JSON——页面脚本按 `error` 字段取原因。
"""
from fastapi import HTTPException
@@ -966,41 +967,29 @@ class StandaloneConfigurationTests(_Case):
app = create_app(PeachSettings(configured=True, token="test-token",
db_path=self.config.data_root / "database" / "ledger.db"))
- def refuse():
- raise HTTPException(409, "请先完成首次设置")
+ def refuse(status: int):
+ raise HTTPException(status, {403: "请在运行 Peach 的电脑上打开配置", 409: "请先完成首次设置"}
+ .get(status, "服务出错"))
# 页面 catch-all 排在最后会吃掉一切路径,测试路由要插到它前面。
- app.add_api_route("/refuse", refuse, methods=["GET"])
+ app.add_api_route("/refuse/{status}", refuse, methods=["GET"])
app.router.routes.insert(0, app.router.routes.pop())
+ html = {"Accept": "text/html,application/xhtml+xml"}
with TestClient(app, base_url="http://localhost") as client:
- page = client.get("/refuse", headers={"Accept": "text/html,application/xhtml+xml"})
- self.assertEqual(page.status_code, 409)
- self.assertTrue(page.headers["content-type"].startswith("text/html"))
- self.assertIn("<h1>现在不能这样做</h1>", page.text)
- self.assertIn('<p class="lede">请先完成首次设置</p>', page.text)
- self.assertIn('<a class="geist-button primary" href="/">返回首页</a>', page.text)
- self.assertIn('a{color:var(--tungsten);text-decoration:none}', page.text)
- self.assertIn('a:hover{text-decoration:none}', page.text)
- self.assertIn("@media (prefers-color-scheme:dark)", page.text)
+ for status, detail in ((403, "请在运行 Peach 的电脑上打开配置"), (409, "请先完成首次设置"),
+ (400, "服务出错")):
+ with self.subTest(status):
+ page = client.get(f"/refuse/{status}", headers=html)
+ self.assertEqual(page.status_code, status)
+ self.assertTrue(page.headers["content-type"].startswith("text/html"))
+ self.assertIn(f'<div id="peach-page" data-page="error" data-status="{status}" '
+ f'data-detail="{detail}"></div>', page.text)
+ self.assertIn('<script type="module" src="/dist/peach-pages.js"></script>', page.text)
+ self.assertNotIn("/dist/peach-entry.js", page.text)
+ self.assertNotIn("<style", page.text)
missing = client.get("/no-such-page", headers={"Accept": "text/html"})
self.assertEqual(missing.status_code, 404)
- self.assertIn("<h1>四〇四</h1>", missing.text)
- self.assertNotIn('<p class="lede">', missing.text)
- self.assertNotIn("这个地址下没有页面。", missing.text)
- self.assertIn('<a class="geist-button primary" href="/">返回首页</a>', missing.text)
- from peach.web_entry import _board_button_rules, _button_rules
- self.assertIn('.geist-button{', _button_rules())
- self.assertIn(_button_rules(), missing.text)
- # 主按钮那一颗连同它用到的 token 从 board.css 原样取:这三张页面上的强调档
- # 和站内是同一份规则,不是照着抄的第二份色值,站内改一次渐变这里跟着走。
- board_rules = _board_button_rules()
- self.assertIn('.primary:not(:disabled){position:relative;isolation:isolate;'
- 'background:var(--board-blue);', board_rules)
- self.assertIn('.primary:not(:disabled):hover::before{opacity:1}', board_rules)
- self.assertIn('.primary:not(:disabled):active{background:var(--board-blue-active)}',
- board_rules)
- self.assertIn('--board-blue:linear-gradient(', board_rules)
- self.assertIn(board_rules, missing.text)
- data = client.get("/refuse", headers={"Accept": "application/json"})
+ self.assertIn('data-page="error" data-status="404" data-detail="这个地址下没有页面。"', missing.text)
+ data = client.get("/refuse/409", headers={"Accept": "application/json"})
self.assertEqual(data.status_code, 409)
self.assertEqual(data.json(), {"error": "请先完成首次设置"})
api = client.get("/api/configuration", headers={"Accept": "text/html"})
diff --git a/tests/test_source_assertion_ratchet.py b/tests/test_source_assertion_ratchet.py
index 974f90fcf..ca1e88428 100644
--- a/tests/test_source_assertion_ratchet.py
+++ b/tests/test_source_assertion_ratchet.py
@@ -54,7 +54,7 @@ BASELINE: dict[str, int] = {
"test_web_e2e.py": 2,
"test_web_js.py": 1,
"test_web_settings.py": 5,
- "test_web_ui.py": 37,
+ "test_web_ui.py": 36,
"test_windows_update.py": 3,
}
diff --git a/tests/test_web_ui.py b/tests/test_web_ui.py
index 78d2a3edd..851c80fa2 100644
--- a/tests/test_web_ui.py
+++ b/tests/test_web_ui.py
@@ -446,8 +446,6 @@ class BoardStyleIsolationTests(unittest.TestCase):
root = Path(__file__).resolve().parents[1]
html = (root / "web/index.html").read_text(encoding="utf-8")
self.assertIn('<link rel="stylesheet" href="/board.css">', html)
- entry = (root / "src/peach/web_entry.py").read_text(encoding="utf-8")
- self.assertIn("return f'<style id=\"boardEntryStyles\">{css}</style>'", entry)
for path in sorted((root / "web").rglob("*")):
if path.suffix not in {".js", ".css", ".html"} or "dist" in path.parts:
continue
diff --git a/web/board-entry.css b/web/board-entry.css
deleted file mode 100644
index f0e35055f..000000000
--- a/web/board-entry.css
+++ /dev/null
@@ -1,151 +0,0 @@
-/* 未登录与首启页面共用的 Board 表面;无需访问受保护的资产。 */
-:root{--bg:#f7f7f7;--page:#f7f7f7;--ground:#fff;--card:#fff;--field:#fafafa;--surface:#fafafa;--line:#e5e5e5;--line-soft:#ebebeb;--ink:#171717;--ink-2:#525252;--tungsten:#2563eb;--control-radius:10px}
-@media(prefers-color-scheme:dark){:root:not([data-theme=light]){--bg:#111;--page:#111;--ground:#1c1c1c;--card:#1c1c1c;--field:#232323;--surface:#232323;--line:#383838;--line-soft:#303030;--ink:#fafafa;--ink-2:#a3a3a3}}
-:root[data-theme=dark]{--bg:#111;--page:#111;--ground:#1c1c1c;--card:#1c1c1c;--field:#232323;--surface:#232323;--line:#383838;--line-soft:#303030;--ink:#fafafa;--ink-2:#a3a3a3}
-body{background:var(--page)}
-main{background:var(--ground);border:1px solid var(--line);border-radius:24px;padding:28px;box-shadow:0 4px 16px #00000008}
-h1{font-weight:500}
-input[type=text],input[type=password],input[type=number],select,.affix{background:var(--field);border-radius:10px}
-/* 表单提交是这一屏唯一主操作,复用站内 Board primary 的三档渐变。 */
-button[type=submit],form>button{position:relative;isolation:isolate;height:36px;background:var(--board-blue);color:#fff;border:0;box-shadow:0 1px 2px #0000000d;border-radius:10px}
-button[type=submit]::before,form>button::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;border-radius:inherit;background:var(--board-blue-hover);opacity:0;transition:opacity .15s ease}
-button[type=submit]:hover:not(:disabled)::before,form>button:hover:not(:disabled)::before{opacity:1}
-button[type=submit]:active:not(:disabled),form>button:active:not(:disabled){background:var(--board-blue-active)}
-button[type=submit]:active:not(:disabled)::before,form>button:active:not(:disabled)::before{opacity:0}
-.switch label:has(input:checked){background:var(--ground);box-shadow:0 1px 3px #0002}
-@media(max-width:480px){main{padding:20px}}
-/* Auth Card 的首启表单保留媒体来源与高级设置。 */
-body:has(.setup-auth-card){padding:48px 24px;min-height:100svh}
-main:has(.setup-auth-card){width:100%;max-width:560px;padding:32px;box-shadow:0 1px 2px #0000000d}
-.setup-auth-card header{display:grid;justify-items:start;text-align:left;gap:8px}
-.setup-auth-card .mark{margin-bottom:8px}
-.setup-auth-card h1{margin:0;font-size:24px;line-height:32px;font-weight:500}
-.setup-auth-card .lede{margin:0;font-size:14px;line-height:20px}
-.setup-auth-card form{margin-top:28px}
-.setup-auth-card .field{margin-top:24px}
-.setup-auth-card form>.field:first-child{margin-top:0}
-.setup-auth-card form>:is(.access-field,details,.setup-options){margin-top:24px;padding-top:24px;border-top:1px solid var(--line)}
-.setup-auth-card .dir{padding:12px;background:var(--surface);border:0;border-radius:var(--control-radius)}
-.setup-auth-card input,.setup-auth-card .affix{background:var(--surface)}
-.setup-auth-card .help{font-size:12px;line-height:18px}
-.setup-auth-card .setting-title,.setup-auth-card .field>label.setting-title{margin:0;padding:0;border:0;color:var(--ink);font:600 14px/20px var(--board-font,system-ui,sans-serif)}
-.setup-auth-card .field-label{color:var(--ink-2);font:500 14px/20px var(--board-font,system-ui,sans-serif)}
-.setup-auth-card .setting-subtitle{margin:0;color:var(--ink);font:500 14px/20px var(--board-font,system-ui,sans-serif)}
-.setup-auth-card .field>label:not(:first-child){margin-top:16px}
-.setup-auth-card details{padding:0;background:transparent;border-radius:0}
-.setup-auth-card summary{min-height:32px;justify-content:space-between;font-size:14px}
-.setup-auth-card .setup-options{display:grid;gap:8px}
-.setup-auth-card .check{margin:0;align-items:flex-start;min-height:24px;gap:8px;font-size:13px;line-height:20px}
-.setup-auth-card .history-guide-choice{margin-top:16px;padding-top:24px;border-top:1px solid var(--line)}
-.setup-auth-card .history-guide-choice .setting-subtitle{margin:0 0 12px;padding:0;border:0}
-.setup-auth-card .bad{padding:8px 10px;border-radius:var(--control-radius);background:color-mix(in srgb,var(--drop) 8%,var(--ground));overflow-wrap:anywhere}
-.setup-auth-card :is(button[type=submit],.setup-enter){margin-top:24px;min-height:36px}
-.setup-auth-card .switch label{height:auto;min-height:40px;padding:6px 8px;text-align:center;font-size:13px;line-height:18px}
-/* 输入、选择、复选与操作使用入口页共用的 Board 控件状态。 */
-.setup-auth-card{--control-h:40px;font-size:14px;line-height:20px}
-.setup-auth-card .field>label,.setup-auth-card .field>.legend{font-size:14px;line-height:20px;margin-bottom:6px;color:var(--ink-2)}
-.setup-auth-card :is(input[type=text],input[type=password],input[type=number],.affix,.gselectfield){height:40px;border:0;border-radius:10px;background-color:var(--surface);box-shadow:inset 0 0 0 2px transparent;font:inherit;transition:background-color .15s ease,box-shadow .15s ease,color .15s ease}
-.setup-auth-card :is(input,.affix,.gselectfield):hover{border-color:color-mix(in srgb,var(--ink) 25%,var(--line))}
-.setup-auth-card :focus-visible{outline:2px solid var(--muted);outline-offset:2px}
-.setup-auth-card .gselectfield:focus-visible{outline:2px solid var(--muted);outline-offset:-2px}
-.setup-auth-card .affix:focus-within{outline:0;box-shadow:none}
-/* 输入框没有 border,danger 档要落在同一圈内描线上,外面那层只是衬色。 */
-.setup-auth-card input[aria-invalid=true]{box-shadow:inset 0 0 0 1px var(--drop),0 0 0 2px color-mix(in srgb,var(--drop) 12%,transparent)}
-.setup-auth-card input:disabled{background:var(--surface);color:var(--muted);box-shadow:none;cursor:not-allowed}
-.setup-auth-card .affix input[type=text]{height:100%;border:0;box-shadow:none;background:transparent;border-radius:0}
-.setup-auth-card :is(.pick,.rm,.add){height:36px;border:1px solid var(--line);background:var(--ground);color:var(--ink);box-shadow:0 1px 2px #0000000d;font-size:14px;border-radius:10px}
-.setup-auth-card :is(.pick,.rm,.add):hover{background:var(--surface);border-color:color-mix(in srgb,var(--ink) 25%,var(--line))}
-.setup-auth-card .rm:hover{background:var(--drop);color:#fff;border-color:var(--drop)}
-.setup-auth-card .pcheck{width:16px;height:20px;align-self:flex-start}
-.setup-auth-card .pcheck>span{width:16px;height:16px;border-radius:4px;border:1px solid var(--line);background:var(--ground);box-shadow:0 1px 2px #0000000d;transition:background-color .15s ease,border-color .15s ease,box-shadow .15s ease}
-.setup-auth-card .pcheck input:checked+span{background:linear-gradient(#3b82f6,#2563eb);color:#fff;border-color:transparent;box-shadow:inset 0 2px 0 #ffffff40,inset 0 0 0 1px #3b82f6}
-.setup-auth-card .check:hover .pcheck input:checked+span{background:linear-gradient(#60a5fa,#3b82f6)}
-.setup-auth-card .pcheck>span{position:relative}
-.setup-auth-card .pcheck>span svg{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:16px;height:16px;stroke-width:2}
-.setup-auth-card .pcheck input:not(:checked)+span path{display:none}
-.setup-auth-card .pcheck input:checked+span path{stroke-dasharray:1;stroke-dashoffset:1px;animation:setup-check-draw .2s cubic-bezier(.65,0,.35,1) forwards}
-@keyframes setup-check-draw{from{stroke-dashoffset:1px}to{stroke-dashoffset:0}}
-@media(prefers-reduced-motion:reduce){.setup-auth-card .pcheck input:checked+span path{animation:none;stroke-dashoffset:0}}
-.setup-auth-card .pcheck input:focus-visible+span,.setup-auth-card .switch label:has(input:focus-visible){outline:2px solid var(--muted);outline-offset:2px}
-.setup-auth-card .switch{position:relative;isolation:isolate;border:0;padding:4px;gap:4px;border-radius:10px;background:var(--surface)}
-.setup-auth-card .switch::before{content:'';position:absolute;z-index:-1;left:4px;top:4px;bottom:4px;width:calc((100% - 12px)/2);background:var(--ground);border-radius:7px;box-shadow:0 1px 2px #0000001a;transition:transform .2s cubic-bezier(.16,1,.3,1)}
-.setup-auth-card .switch:has(label:nth-of-type(2) input:checked)::before{transform:translateX(calc(100% + 4px))}
-.setup-auth-card .switch label:has(input:checked){background:transparent;box-shadow:none;color:var(--ink)}
-.setup-auth-card .switch label{min-height:32px;color:var(--muted)}
-.setup-auth-card .toggle-setting{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0;color:var(--ink);cursor:pointer}
-.setup-auth-card .toggle-setting>span:first-child{display:grid;gap:2px}
-.setup-auth-card .toggle-setting small{color:var(--muted);font-size:12px;line-height:18px;font-weight:400}
-.setup-auth-card .ptoggle{appearance:none;position:relative;flex:none;width:42px;height:24px;margin:0;border:0;border-radius:999px;background:var(--button-border-active);cursor:pointer;transition:background .2s ease}
-.setup-auth-card .ptoggle::after{content:'';position:absolute;width:18px;height:18px;left:3px;top:3px;border-radius:50%;background:linear-gradient(#fff 44%,#f3f3f3);box-shadow:0 3px 3px #00000008,0 .75px 0 #0000000d;transition:transform .2s ease}
-.setup-auth-card .ptoggle::before{content:'';position:absolute;z-index:1;left:8.25px;top:8.25px;width:7.5px;height:7.5px;border-radius:50%;background:var(--surface);box-shadow:inset 0 0 0 .375px var(--line);transition:transform .2s ease}
-.setup-auth-card .ptoggle:checked{background:var(--board-blue);box-shadow:inset 0 1.5px 0 #ffffff40,inset 0 0 0 .75px var(--color-accent-400)}
-.setup-auth-card .ptoggle:checked::after,.setup-auth-card .ptoggle:checked::before{transform:translateX(18px)}
-.setup-auth-card .ptoggle:checked::before{background:linear-gradient(var(--color-accent-700),var(--color-accent-500))}
-.setup-auth-card .ptoggle:focus-visible{outline:2px solid var(--tungsten);outline-offset:2px}
-.setup-auth-card .password-fields{margin-top:20px}
-.setup-auth-card .password-fields>label{display:block;margin:0 0 6px;color:var(--ink-2);font-size:14px;line-height:20px;font-weight:500}
-.setup-auth-card .password-fields>label:not(:first-child){margin-top:16px}
-.setup-auth-card .password-fields[hidden]{display:none}
-.setup-auth-card summary:hover{color:var(--ink-2)}
-.setup-auth-card .gselectfield{padding:0 12px;gap:8px;width:100%;color:var(--ink)}
-.setup-auth-card .gselectfield>svg{width:16px;height:16px}
-.setup-auth-card .popmenu{padding:4px;border:1px solid var(--line);border-radius:12px;background:var(--ground);box-shadow:0 4px 16px #00000018}
-.setup-auth-card .popmenu button{min-height:36px;padding:8px;border:0;border-radius:8px;background:transparent;color:var(--ink);font:inherit}
-.setup-auth-card .popmenu button:hover,.setup-auth-card .popmenu button[aria-selected=true]{background:var(--surface)}
-.setup-auth-card{--surface:#f0f0f0;--muted:#737373;--ink-2:#525252}
-@media(prefers-color-scheme:dark){:root:not([data-theme=light]) .setup-auth-card{--surface:#292929;--muted:#a3a3a3;--ink-2:#d4d4d4}}
-:root[data-theme=dark] .setup-auth-card{--surface:#292929;--muted:#a3a3a3;--ink-2:#d4d4d4}
-.setup-auth-card :is(h1,h2,summary){color:var(--ink)}
-.setup-auth-card .sourcefields label{color:var(--ink-2)}
-.setup-auth-card .add{display:inline-flex;align-items:center;gap:6px}
-.setup-auth-card .add[hidden]{display:none}
-.setup-auth-card .add svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
-.setup-auth-card .dir{background:transparent;padding:0}
-.setup-auth-card input:is([type=text],[type=password],[type=number]){padding-left:38px;background-repeat:no-repeat;background-position:12px center;background-size:16px}
-.setup-auth-card input[type=text]{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888888' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 20H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h5l2 2h9a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2Z'/%3E%3C/svg%3E")}
-.setup-auth-card input[type=password]{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888888' stroke-width='1.8' stroke-linecap='round'%3E%3Crect x='4' y='10' width='16' height='11' rx='2'/%3E%3Cpath d='M8 10V7a4 4 0 0 1 8 0v3M12 14v3'/%3E%3C/svg%3E")}
-.setup-auth-card input[type=number]{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888888' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M4 9h16M3 15h16M10 3 8 21M16 3l-2 18'/%3E%3C/svg%3E")}
-.setup-auth-card .affix input:is([type=text],[type=number]){padding-left:12px;background-image:none}
-.setup-auth-card .entry-input{display:block;position:relative;min-width:0;width:100%}
-.setup-auth-card .dir>.entry-input{flex:1 1 0;width:0}
-.setup-auth-card .entry-input>input{display:block;width:100%}
-/* 图标和输入框是一个控件:焦点环落满整个 .entry-input,不把图标那一段切成独立一截。 */
-.setup-auth-card .entry-input:has(input:focus-visible)::after{content:'';position:absolute;inset:0;border-radius:10px;box-shadow:inset 0 0 0 2px var(--muted);pointer-events:none}
-.setup-auth-card .entry-input input:focus-visible{outline:0;box-shadow:none}
-/* 密码错了字段仍握着焦点:焦点环整圈换成 danger 色,不让上面那条把描线清掉。 */
-.setup-auth-card .entry-input input[aria-invalid=true]:focus-visible{box-shadow:inset 0 0 0 2px var(--drop),0 0 0 2px color-mix(in srgb,var(--drop) 12%,transparent)}
-.setup-auth-card .entry-input:has(input[aria-invalid=true]:focus-visible)::after{content:none}
-.setup-auth-card .affix input[type=text]:focus-visible{outline:0;box-shadow:inset 0 0 0 2px var(--muted);border-radius:8px}
-/* Board Button medium;公开源码与状态测量见 docs/BOARD_UI.md。 */
-.setup-auth-card{--button-border:#ebebeb;--button-border-hover:#d4d4d4;--button-border-active:#a3a3a3;--button-hover:#f7f7f7;--button-active:#ebebeb;--button-shadow:#0000000d;--button-disabled:linear-gradient(#ebebeb,#d4d4d4)}
-@media(prefers-color-scheme:dark){:root:not([data-theme=light]) .setup-auth-card{--button-border:#404040;--button-border-hover:#737373;--button-border-active:#525252;--button-hover:color-mix(in srgb,#404040 60%,transparent);--button-active:#262626;--button-shadow:#0000002e;--button-disabled:linear-gradient(#404040,#262626)}}
-:root[data-theme=dark] .setup-auth-card{--button-border:#404040;--button-border-hover:#737373;--button-border-active:#525252;--button-hover:color-mix(in srgb,#404040 60%,transparent);--button-active:#262626;--button-shadow:#0000002e;--button-disabled:linear-gradient(#404040,#262626)}
-.setup-auth-card :is(.pick,.rm,.add,button[type=submit],.setup-enter){display:inline-flex;align-items:center;justify-content:center;height:36px;padding:8px 12px;border-radius:10px;font-size:14px;font-weight:500;line-height:20px;white-space:nowrap;user-select:none;box-shadow:0 1px 2px var(--button-shadow);transition:background-color .15s ease,border-color .15s ease,box-shadow .15s ease,color .15s ease,transform .42s cubic-bezier(.4,0,.2,1)}
-.setup-auth-card :is(.pick,.rm,.add)[hidden]{display:none}
-.setup-auth-card .dir :is(button.pick,button.rm){width:40px;height:40px;padding:10px;align-self:flex-start;margin-top:0}
-.setup-auth-card .pick svg{width:20px;height:20px;flex:none}
-.setup-auth-card button.add{padding-left:8px}
-.setup-auth-card :is(.pick,.rm,.add){background:var(--ground);border:1px solid var(--button-border);color:var(--ink)}
-.setup-auth-card :is(.pick,.rm,.add):hover:not(:disabled):not([aria-disabled=true]){background:var(--button-hover);border-color:var(--button-border-hover)}
-.setup-auth-card :is(.pick,.rm,.add):active:not(:disabled):not([aria-disabled=true]){background:var(--button-active);border-color:var(--button-border-active)}
-.setup-auth-card .rm:hover:not(:disabled):not([aria-disabled=true]){background:var(--drop);color:#fff;border-color:var(--drop)}
-/* 首启和登录的主操作与站内 Board primary 共用三档渐变。 */
-.setup-auth-card :is(button[type=submit],.setup-enter){position:relative;isolation:isolate;border:0;color:#fff;background:var(--board-blue)}
-.setup-auth-card :is(button[type=submit],.setup-enter)::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;border-radius:inherit;background:var(--board-blue-hover);opacity:0;transition:opacity .15s ease}
-.setup-auth-card :is(button[type=submit],.setup-enter):hover:not(:disabled):not([aria-disabled=true])::before{opacity:1}
-.setup-auth-card :is(button[type=submit],.setup-enter):active:not(:disabled):not([aria-disabled=true]){background:var(--board-blue-active)}
-.setup-auth-card :is(button[type=submit],.setup-enter):active:not(:disabled):not([aria-disabled=true])::before{opacity:0}
-.setup-auth-card :is(.pick,.rm,.add,button[type=submit],.setup-enter):active:not(:disabled):not([aria-disabled=true]){transform:scale(.98);transition-duration:.15s,.15s,.15s,.15s,.22s}
-.setup-auth-card :is(.pick,.rm,.add,button[type=submit],.setup-enter):is(:disabled,[aria-disabled=true]){cursor:not-allowed;color:var(--muted);box-shadow:none;transform:none;background:var(--surface);border-color:var(--button-border)}
-.setup-auth-card :is(button[type=submit],.setup-enter):is(:disabled,[aria-disabled=true]){background:var(--button-disabled)}
-@media(prefers-reduced-motion:reduce){.setup-auth-card :is(.pick,.rm,.add,button[type=submit],.setup-enter),.setup-auth-card :is(.pick,.rm,.add,button[type=submit],.setup-enter):active{transition:none;transform:none}.setup-auth-card .ptoggle,.setup-auth-card .ptoggle::after,.setup-auth-card .ptoggle::before{transition:none}}
-@media(max-width:600px){body:has(.setup-auth-card){padding:24px 16px}main:has(.setup-auth-card){padding:24px}.setup-auth-card input[type=password]{font-size:16px}}
-/* 登录是 Auth Card 的单字段形态:窄一档、垂直居中,品牌行横排。 */
-body:has(.login-card){display:grid;align-items:center;justify-items:center}
-main:has(.login-card){max-width:400px}
-.login-card header{display:flex;align-items:center;gap:12px}
-.login-card .mark{margin-bottom:0}
-.login-card h1{font-size:20px;line-height:28px}
-.login-card .check{margin-top:20px}
-/* 错误态只让框体线条变 danger 色;原因是字段下方一行普通说明,与 .help 同一形态。 */
-.login-card .bad{margin:6px 0 0;padding:0;border-radius:0;background:transparent;color:var(--muted);font-size:12px;line-height:18px}
diff --git a/web/dist/peach-pages.css b/web/dist/peach-pages.css
index e19bd6dcc..c5ca24ded 100644
--- a/web/dist/peach-pages.css
+++ b/web/dist/peach-pages.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,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--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:oklch(93.6% .032 17.717);--color-red-200:oklch(88.5% .062 18.334);--color-red-300:oklch(80.8% .114 19.571);--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-red-900:oklch(39.6% .141 25.723);--color-red-950:oklch(25.8% .092 26.042);--color-yellow-200:oklch(94.5% .129 101.54);--color-yellow-400:oklch(85.2% .199 91.936);--color-yellow-500:oklch(79.5% .184 86.047);--color-yellow-800:oklch(47.6% .114 61.907);--color-yellow-950:oklch(28.6% .066 53.813);--color-lime-100:oklch(96.7% .067 122.328);--color-lime-200:oklch(93.8% .127 124.321);--color-lime-300:oklch(89.7% .196 126.665);--color-lime-400:oklch(84.1% .238 128.85);--color-lime-500:oklch(76.8% .233 130.85);--color-lime-600:oklch(64.8% .2 131.684);--color-lime-700:oklch(53.2% .157 131.589);--color-lime-800:oklch(45.3% .124 130.933);--color-lime-950:oklch(27.4% .072 132.109);--color-green-100:oklch(96.2% .044 156.743);--color-green-800:oklch(44.8% .119 151.328);--color-emerald-100:oklch(95% .052 163.051);--color-emerald-300:oklch(84.5% .143 164.978);--color-emerald-400:oklch(76.5% .177 163.223);--color-emerald-500:oklch(69.6% .17 162.48);--color-emerald-700:oklch(50.8% .118 165.612);--color-emerald-800:oklch(43.2% .095 166.913);--color-emerald-950:oklch(26.2% .051 172.552);--color-teal-400:oklch(77.7% .152 181.912);--color-teal-500:oklch(70.4% .14 182.503);--color-cyan-200:oklch(91.7% .08 205.041);--color-cyan-400:oklch(78.9% .154 211.53);--color-cyan-800:oklch(45% .085 224.283);--color-cyan-950:oklch(30.2% .056 229.695);--color-sky-400:oklch(74.6% .16 232.661);--color-sky-500:oklch(68.5% .169 237.323);--color-blue-50:oklch(97% .014 254.604);--color-blue-100:oklch(93.2% .032 255.585);--color-blue-200:oklch(88.2% .059 254.128);--color-blue-300:oklch(80.9% .105 251.813);--color-blue-400:#3392ff;--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-blue-700:oklch(48.8% .243 264.376);--color-blue-800:oklch(42.4% .199 265.638);--color-blue-900:oklch(37.9% .146 265.522);--color-blue-950:oklch(28.2% .091 267.935);--color-indigo-100:oklch(93% .034 272.788);--color-indigo-400:oklch(67.3% .182 276.935);--color-indigo-500:oklch(58.5% .233 277.117);--color-indigo-800:oklch(39.8% .195 277.366);--color-purple-50:oklch(97.7% .014 308.299);--color-purple-100:oklch(94.6% .033 307.174);--color-purple-300:oklch(82.7% .119 306.383);--color-purple-400:oklch(71.4% .203 305.504);--color-purple-500:oklch(62.7% .265 303.9);--color-purple-600:oklch(55.8% .288 302.321);--color-purple-700:oklch(49.6% .265 301.924);--color-purple-800:oklch(43.8% .218 303.724);--color-purple-900:oklch(38.1% .176 304.987);--color-purple-950:oklch(29.1% .149 302.717);--color-pink-100:oklch(94.8% .028 342.258);--color-pink-300:oklch(82.3% .12 346.018);--color-pink-400:oklch(71.8% .202 349.761);--color-pink-500:oklch(65.6% .241 354.308);--color-pink-700:oklch(52.5% .223 3.958);--color-pink-950:oklch(28.4% .109 3.907);--color-rose-100:oklch(94.1% .03 12.58);--color-rose-200:oklch(89.2% .058 10.001);--color-rose-300:oklch(81% .117 11.638);--color-rose-500:oklch(64.5% .246 16.439);--color-rose-600:oklch(58.6% .253 17.585);--color-rose-800:oklch(45.5% .188 13.697);--color-rose-950:oklch(27.1% .105 12.094);--color-zinc-800:oklch(27.4% .006 286.033);--color-neutral-50:oklch(98.5% 0 none);--color-neutral-100:#f7f7f7;--color-neutral-200:#ebebeb;--color-neutral-300:oklch(87% 0 none);--color-neutral-400:oklch(70.8% 0 none);--color-neutral-500:oklch(55.6% 0 none);--color-neutral-600:oklch(43.9% 0 none);--color-neutral-700:oklch(37.1% 0 none);--color-neutral-800:oklch(26.9% 0 none);--color-neutral-900:oklch(20.5% 0 none);--color-neutral-950:oklch(14.5% 0 none);--color-black:#000;--color-white:#fff;--spacing:.25rem;--radius-xs:.125rem;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--radius-2xl:1rem;--radius-3xl:1.5rem;--ease-out:cubic-bezier(0, 0, .2, 1);--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-neutral-925:#121212;--color-accent-50:var(--color-blue-50);--color-accent-100:var(--color-blue-100);--color-accent-200:var(--color-blue-200);--color-accent-300:var(--color-blue-300);--color-accent-400:var(--color-blue-400);--color-accent-500:var(--color-blue-500);--color-accent-600:var(--color-blue-600);--color-accent-700:var(--color-blue-700);--color-accent-800:var(--color-blue-800);--color-accent-900:var(--color-blue-900);--color-accent-950:var(--color-blue-950);--radius-2lg:10px;--shadow-checkbox-selected:inset 0 2px 0 0 #ffffff40, inset 0 0 0 1px var(--color-accent-500);--shadow-card:var(--elevation-card);--color-foreground-full:var(--color-foreground-full);--color-foreground-icon-primary:var(--color-foreground-icon-primary);--color-foreground-icon-hover:var(--color-foreground-icon-hover);--color-foreground-icon-secondary:var(--color-foreground-icon-secondary);--color-foreground-icon-tertiary:var(--color-foreground-icon-tertiary);--color-foreground-icon-quaternary:var(--color-foreground-icon-quaternary);--color-foreground-icon-error:var(--color-foreground-icon-error);--color-foreground-icon-disabled:var(--color-foreground-icon-disabled);--color-foreground-disabled:var(--color-foreground-disabled);--color-foreground-disabled-danger:var(--color-foreground-disabled-danger);--color-input-disabled-foreground:var(--color-input-disabled-foreground);--color-icon-button-disabled-foreground:var(--color-icon-button-disabled-foreground);--color-button-primary-disabled-foreground:var(--color-button-primary-disabled-foreground);--color-text-primary:var(--color-text-primary);--color-text-secondary:var(--color-text-secondary);--color-text-tertiary:var(--color-text-tertiary);--color-text-disabled:var(--color-text-disabled);--color-text-disabled-danger:var(--color-text-disabled-danger);--color-text-placeholder:var(--color-text-placeholder);--color-text-error-primary:var(--color-text-error-primary);--color-input-disabled-text:var(--color-input-disabled-text);--color-text-white:var(--color-text-white);--color-background-full:var(--color-background-full);--color-background-primary-default:var(--color-background-primary-default);--color-background-inner-default:var(--color-background-inner-default);--color-background-primary-hover:var(--color-background-primary-hover);--color-background-primary-active:var(--color-background-primary-active);--color-background-primary-disabled:var(--color-background-primary-disabled);--color-input-disabled-background:var(--color-input-disabled-background);--color-background-secondary-default:var(--color-background-secondary-default);--color-background-secondary-hover:var(--color-background-secondary-hover);--color-background-tertiary-default:var(--color-background-tertiary-default);--color-background-tertiary-hover:var(--color-background-tertiary-hover);--color-background-tertiary-error:var(--color-background-tertiary-error);--color-background-recent-hire-role:var(--color-background-recent-hire-role);--color-avatar-neutral-background:var(--color-avatar-neutral-background);--color-background-quaternary-default:var(--color-background-quaternary-default);--color-background-quaternary-hover:var(--color-background-quaternary-hover);--color-background-quaternary-error:var(--color-background-quaternary-error);--color-file-upload-icon-background:var(--color-file-upload-icon-background);--color-file-upload-icon-foreground:var(--color-file-upload-icon-foreground);--color-file-upload-icon-foreground-hover:var(--color-file-upload-icon-foreground-hover);--color-border-button-default:var(--color-border-button-default);--color-border-button-hover:var(--color-border-button-hover);--color-border-button-active:var(--color-border-button-active);--color-border-button-white:var(--color-border-button-white);--color-border-error-default:var(--color-border-error-default);--color-border-checkbox-default:var(--color-border-checkbox-default);--color-border-checkbox-hover:var(--color-border-checkbox-hover);--color-border-checkbox-active:var(--color-border-checkbox-active);--color-border-checkbox-white:var(--color-border-checkbox-white);--color-border-component-detail-container:var(--color-border-component-detail-container);--color-border-ai-profile-card:var(--color-border-ai-profile-card);--color-border-table:var(--color-border-table);--color-border-button-group:var(--color-border-button-group);--color-border-sidebar-profile-hover:var(--color-border-sidebar-profile-hover);--color-separator-border:var(--color-separator-border);--color-separator-border-strong:var(--color-separator-border-strong);--color-border-focus-ring:var(--color-border-focus-ring);--color-state-success-text:var(--color-state-success-text);--color-state-success-base:var(--color-state-success-base);--color-control-indicator-background:var(--color-control-indicator-background);--color-control-indicator-background-subtle:var(--color-control-indicator-background-subtle);--color-switch-off-chip-start:var(--color-switch-off-chip-start);--color-switch-off-chip-end:var(--color-switch-off-chip-end);--color-switch-on-chip-start:var(--color-switch-on-chip-start);--color-switch-on-chip-end:var(--color-switch-on-chip-end);--color-stat-card-icon-background:var(--color-stat-card-icon-background);--color-segmented-control-background:var(--color-segmented-control-background);--color-segmented-control-selected-background:var(--color-segmented-control-selected-background);--color-theme-toggle-sidebar-background:var(--color-theme-toggle-sidebar-background);--color-theme-toggle-sidebar-selected-background:var(--color-theme-toggle-sidebar-selected-background);--color-ai-chat-composer-add-background:var(--color-ai-chat-composer-add-background);--color-ai-chat-composer-add-hover-background:var(--color-ai-chat-composer-add-hover-background);--color-composer-panel-tab-background:var(--color-composer-panel-tab-background);--color-composer-panel-add-background:var(--color-composer-panel-add-background);--color-composer-panel-add-hover-background:var(--color-composer-panel-add-hover-background);--color-composer-panel-tile-border:var(--color-composer-panel-tile-border);--color-composer-panel-rail-background:var(--color-composer-panel-rail-background);--color-questionnaire-key-background:var(--color-questionnaire-key-background);--color-questionnaire-key-hover-background:var(--color-questionnaire-key-hover-background);--color-agent-progress-ring:var(--color-agent-progress-ring);--color-button-ghost-background:var(--color-button-ghost-background);--color-button-ghost-hover:var(--color-button-ghost-hover);--color-button-ghost-active:var(--color-button-ghost-active);--color-button-ghost-disabled:var(--color-button-ghost-disabled);--color-button-ghost-foreground:var(--color-button-ghost-foreground);--color-button-ghost-disabled-foreground:var(--color-button-ghost-disabled-foreground);--color-dropdown-item-hover-background:var(--color-dropdown-item-hover-background);--color-kbd-background:var(--color-kbd-background);--color-kbd-foreground:var(--color-kbd-foreground);--color-docs-file-chip-background:var(--color-docs-file-chip-background);--color-docs-file-chip-border:var(--color-docs-file-chip-border);--color-docs-file-chip-foreground:var(--color-docs-file-chip-foreground);--color-docs-command-accent:var(--color-docs-command-accent);--color-docs-code-background:var(--color-docs-code-background);--color-docs-install-rail:var(--color-docs-install-rail);--color-badge-neutral-background:var(--color-badge-neutral-background);--color-team-menu-count-background:var(--color-team-menu-count-background);--color-team-menu-count-foreground:var(--color-team-menu-count-foreground);--color-badge-new-background:var(--color-badge-new-background);--color-badge-new-text:var(--color-badge-new-text);--color-tab-count-selected-background:var(--color-tab-count-selected-background);--color-pill-tab-blue-selected-background:var(--color-pill-tab-blue-selected-background);--color-pill-tab-blue-hover-background:var(--color-pill-tab-blue-hover-background);--color-notification-information-background:var(--color-notification-information-background);--color-notification-information-foreground:var(--color-notification-information-foreground);--color-notification-success-background:var(--color-notification-success-background);--color-notification-success-foreground:var(--color-notification-success-foreground);--color-notification-error-background:var(--color-notification-error-background);--color-notification-error-foreground:var(--color-notification-error-foreground);--color-notification-center-background:var(--color-notification-center-background);--color-status-lime-background:var(--color-status-lime-background);--color-status-lime-text:var(--color-status-lime-text);--color-status-yellow-background:var(--color-status-yellow-background);--color-status-yellow-text:var(--color-status-yellow-text);--color-status-rose-background:var(--color-status-rose-background);--color-status-rose-text:var(--color-status-rose-text);--color-status-cyan-background:var(--color-status-cyan-background);--color-status-cyan-text:var(--color-status-cyan-text);--color-status-blue-background:var(--color-status-blue-background);--color-status-blue-text:var(--color-status-blue-text);--color-status-purple-background:var(--color-status-purple-background);--color-status-purple-text:var(--color-status-purple-text);--color-status-dot-green-halo:var(--color-status-dot-green-halo);--color-status-dot-yellow-halo:var(--color-status-dot-yellow-halo);--color-status-dot-indigo-halo:var(--color-status-dot-indigo-halo);--color-date-range-background:var(--color-date-range-background);--color-date-range-edge-background:var(--color-date-range-edge-background);--color-calendar-event-blue-background:var(--color-calendar-event-blue-background);--color-calendar-event-blue-title:var(--color-calendar-event-blue-title);--color-calendar-event-blue-time:var(--color-calendar-event-blue-time);--color-calendar-event-pink-background:var(--color-calendar-event-pink-background);--color-calendar-event-pink-title:var(--color-calendar-event-pink-title);--color-calendar-event-pink-time:var(--color-calendar-event-pink-time);--color-calendar-event-purple-background:var(--color-calendar-event-purple-background);--color-calendar-event-purple-title:var(--color-calendar-event-purple-title);--color-calendar-event-purple-time:var(--color-calendar-event-purple-time);--color-calendar-event-lime-background:var(--color-calendar-event-lime-background);--color-calendar-event-lime-title:var(--color-calendar-event-lime-title);--color-calendar-event-lime-time:var(--color-calendar-event-lime-time);--color-calendar-event-emerald-background:var(--color-calendar-event-emerald-background);--color-calendar-event-emerald-title:var(--color-calendar-event-emerald-title);--color-calendar-event-emerald-time:var(--color-calendar-event-emerald-time);--color-text-error-placeholder:var(--color-text-error-placeholder);--color-chart-track:var(--color-chart-track);--color-chart-cursor:var(--color-chart-cursor);--color-chart-neutral:var(--color-chart-neutral);--color-chart-1:var(--color-chart-1);--color-chart-1-active:var(--color-chart-1-active);--color-chart-2:var(--color-chart-2);--color-chart-2-active:var(--color-chart-2-active);--color-chart-3:var(--color-chart-3);--color-chart-3-active:var(--color-chart-3-active);--color-chart-4:var(--color-chart-4);--color-chart-4-active:var(--color-chart-4-active);--color-chart-5:var(--color-chart-5);--color-chart-5-active:var(--color-chart-5-active);--color-chart-6:var(--color-chart-6);--color-chart-6-active:var(--color-chart-6-active);--color-chart-7:var(--color-chart-7);--color-chart-7-active:var(--color-chart-7-active);--color-chart-8:var(--color-chart-8);--color-chart-8-active:var(--color-chart-8-active);--color-chart-9:var(--color-chart-9);--color-chart-9-active:var(--color-chart-9-active);--color-chart-agents-bar:var(--color-chart-agents-bar);--color-chart-agents-bar-active:var(--color-chart-agents-bar-active);--button-transition-ms:.15s;--input-transition-ms:.15s;--text-title-2-medium:1.25rem;--text-title-2-medium--line-height:1.625rem;--text-title-2-medium--letter-spacing:0;--text-title-2-medium--font-weight:500;--text-body-regular:.875rem;--text-body-regular--line-height:1.25rem;--text-body-regular--letter-spacing:0;--text-body-regular--font-weight:400;--text-body-medium:.875rem;--text-body-medium--line-height:1.25rem;--text-body-medium--letter-spacing:0;--text-body-medium--font-weight:500;--text-body-semibold:.875rem;--text-body-semibold--line-height:1.25rem;--text-body-semibold--letter-spacing:0;--text-body-semibold--font-weight:600;--text-body-2-regular:.8125rem;--text-body-2-regular--line-height:1.125rem;--text-body-2-regular--letter-spacing:0;--text-body-2-regular--font-weight:400;--text-body-2-medium:.8125rem;--text-body-2-medium--line-height:1.125rem;--text-body-2-medium--letter-spacing:0;--text-body-2-medium--font-weight:500;--text-caption-1-medium:.75rem;--text-caption-1-medium--line-height:1rem;--text-caption-1-medium--letter-spacing:.15px;--text-caption-1-medium--font-weight:500;--text-caption-1-semibold:.75rem;--text-caption-1-semibold--line-height:1rem;--text-caption-1-semibold--letter-spacing:.15px;--text-caption-1-semibold--font-weight:600}}.\@container{container-type:inline-size}.bg-button-danger{isolation:isolate;background-image:var(--gradient-button-danger-default);position:relative}.bg-button-danger:before{content:"";z-index:-1;pointer-events:none;border-radius:inherit;background-image:var(--gradient-button-danger-hover);opacity:0;transition:opacity var(--button-transition-ms) ease;position:absolute;inset:0}.bg-button-danger:hover:not(:disabled):not([aria-disabled=true]):before{opacity:1}.bg-button-danger:active:not(:disabled):not([aria-disabled=true]){background-image:var(--gradient-button-danger-active)}.bg-button-danger:active:not(:disabled):not([aria-disabled=true]):before{opacity:0}.bg-button-danger:disabled,.bg-button-danger[aria-disabled=true]{background-image:var(--gradient-button-danger-disabled)}.bg-button-danger:disabled:before,.bg-button-danger[aria-disabled=true]:before{display:none}.bg-button-primary{isolation:isolate;background-image:var(--gradient-button-primary-default);position:relative}.bg-button-primary:before{content:"";z-index:-1;pointer-events:none;border-radius:inherit;background-image:var(--gradient-button-primary-hover);opacity:0;transition:opacity var(--button-transition-ms) ease;position:absolute;inset:0}.bg-button-primary:hover:not(:disabled):not([aria-disabled=true]):before{opacity:1}.bg-button-primary:active:not(:disabled):not([aria-disabled=true]){background-image:var(--gradient-button-primary-active)}.bg-button-primary:active:not(:disabled):not([aria-disabled=true]):before{opacity:0}.bg-button-primary:disabled,.bg-button-primary[aria-disabled=true]{background-image:var(--gradient-button-primary-disabled)}.bg-button-primary:disabled:before,.bg-button-primary[aria-disabled=true]:before{display:none}.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 (width>=40rem){.container{max-width:40rem}}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}@media (width>=80rem){.container{max-width:80rem}}@media (width>=96rem){.container{max-width:96rem}}.m-0{margin:0}.mr-auto{margin-right:auto}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.-ml-3{margin-left:calc(var(--spacing) * -3)}.ml-0\.5{margin-left:calc(var(--spacing) * .5)}.flex{display:flex}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.inline-grid{display:inline-grid}.table{display:table}.size-3{width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.size-3\.5{width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-5{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.size-6{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.size-7{width:calc(var(--spacing) * 7);height:calc(var(--spacing) * 7)}.size-7\.5{width:calc(var(--spacing) * 7.5);height:calc(var(--spacing) * 7.5)}.size-8{width:calc(var(--spacing) * 8);height:calc(var(--spacing) * 8)}.size-9{width:calc(var(--spacing) * 9);height:calc(var(--spacing) * 9)}.size-10{width:calc(var(--spacing) * 10);height:calc(var(--spacing) * 10)}.size-\[5px\]{width:5px;height:5px}.size-\[7\.5px\]{width:7.5px;height:7.5px}.size-\[10px\]{width:10px;height:10px}.size-\[18px\]{width:18px;height:18px}.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-full{height:100%}.h-max{height:max-content}.max-h-\[240px\]{max-height:240px}.min-h-7{min-height:calc(var(--spacing) * 7)}.min-h-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-\[42px\]{width:42px}.w-\[202px\]{width:202px}.w-\[266px\]{width:266px}.w-fit{width:fit-content}.w-full{width:100%}.w-max{width:max-content}.max-w-140{max-width:calc(var(--spacing) * 140)}.max-w-\[calc\(100vw-32px\)\]{max-width:calc(100vw - 32px)}.max-w-full{max-width:100%}.min-w-0{min-width:0}.flex-1{flex:1}.flex-none{flex:none}.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-90{rotate:90deg}.rotate-180{rotate:180deg}.button-press-motion{transition:background-color var(--button-transition-ms) ease, border-color var(--button-transition-ms) ease, box-shadow var(--button-transition-ms) ease, color var(--button-transition-ms) ease, transform .42s cubic-bezier(.4, 0, .2, 1)}.button-press-motion:active:not(:disabled):not([aria-disabled=true]){transition-duration:.15s,.15s,.15s,.15s,.22s;transform:scale(.98)}.button-press-motion:disabled,.button-press-motion[aria-disabled=true]{transform:none}@media (prefers-reduced-motion:reduce){.button-press-motion{transition:none;transform:none}}.cursor-default{cursor:default}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.list-none{list-style-type:none}.grid-cols-1{grid-template-columns:repeat(1,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-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overscroll-x-contain{overscroll-behavior-x:contain}.rounded{border-radius:.25rem}.rounded-2lg{border-radius:var(--radius-2lg)}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-3xl{border-radius:var(--radius-3xl)}.rounded-\[0\.5px\]{border-radius:.5px}.rounded-\[0\.75px\]{border-radius:.75px}.rounded-\[1\.5px\]{border-radius:1.5px}.rounded-\[1px\]{border-radius:1px}.rounded-\[3px\]{border-radius:3px}.rounded-\[4\.5px\]{border-radius:4.5px}.rounded-full{border-radius:2147483647px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-sm{border-radius:var(--radius-sm)}.rounded-xs{border-radius:var(--radius-xs)}.rounded-b-2xl{border-bottom-right-radius:var(--radius-2xl);border-bottom-left-radius:var(--radius-2xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-\[0\.5px\]{border-style:var(--tw-border-style);border-width:.5px}.border-\[0\.25px\]{border-style:var(--tw-border-style);border-width:.25px}.border-\[0\.375px\]{border-style:var(--tw-border-style);border-width:.375px}.border-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-card-footer{background-color:var(--card-footer,transparent)}.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-blue-background{background-color:var(--color-status-blue-background)}.bg-status-cyan-background{background-color:var(--color-status-cyan-background)}.bg-status-lime-background{background-color:var(--color-status-lime-background)}.bg-status-purple-background{background-color:var(--color-status-purple-background)}.bg-status-rose-background{background-color:var(--color-status-rose-background)}.bg-status-yellow-background{background-color:var(--color-status-yellow-background)}.bg-transparent{background-color:#0000}.bg-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))}.stroke-current{stroke:currentColor}.stroke-2{stroke-width:2px}.p-0{padding:0}.p-1{padding:var(--spacing)}.p-2{padding:calc(var(--spacing) * 2)}.p-2\.5{padding:calc(var(--spacing) * 2.5)}.p-3{padding:calc(var(--spacing) * 3)}.p-8{padding:calc(var(--spacing) * 8)}.px-0\.5{padding-inline:calc(var(--spacing) * .5)}.px-1{padding-inline:var(--spacing)}.px-1\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-6{padding-inline:calc(var(--spacing) * 6)}.px-\[7px\]{padding-inline:7px}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:var(--spacing)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-12{padding-block:calc(var(--spacing) * 12)}.pt-3{padding-top:calc(var(--spacing) * 3)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pt-6{padding-top:calc(var(--spacing) * 6)}.pt-px{padding-top:1px}.pr-1{padding-right:var(--spacing)}.pr-1\.5{padding-right:calc(var(--spacing) * 1.5)}.pr-2{padding-right:calc(var(--spacing) * 2)}.pr-2\.5{padding-right:calc(var(--spacing) * 2.5)}.pr-3{padding-right:calc(var(--spacing) * 3)}.pl-1{padding-left:var(--spacing)}.pl-3{padding-left:calc(var(--spacing) * 3)}.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-body-semibold{font-size:var(--text-body-semibold);line-height:var(--tw-leading,var(--text-body-semibold--line-height));letter-spacing:var(--tw-tracking,var(--text-body-semibold--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-semibold--font-weight))}.text-caption-1-medium{font-size:var(--text-caption-1-medium);line-height:var(--tw-leading,var(--text-caption-1-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-caption-1-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-caption-1-medium--font-weight))}.text-caption-1-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-2-medium{font-size:var(--text-title-2-medium);line-height:var(--tw-leading,var(--text-title-2-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-title-2-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-title-2-medium--font-weight))}.break-all{word-break:break-all}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.text-\(--glass-text\)\/62{color:var(--glass-text)}@supports (color:color-mix(in lab, red, red)){.text-\(--glass-text\)\/62{color:color-mix(in oklab, var(--glass-text) 62%, transparent)}}.text-accent-600{color:var(--color-accent-600)}.text-button-ghost-foreground{color:var(--color-button-ghost-foreground)}.text-foreground-icon-error{color:var(--color-foreground-icon-error)}.text-foreground-icon-primary{color:var(--color-foreground-icon-primary)}.text-foreground-icon-quaternary{color:var(--color-foreground-icon-quaternary)}.text-foreground-icon-secondary{color:var(--color-foreground-icon-secondary)}.text-foreground-icon-tertiary{color:var(--color-foreground-icon-tertiary)}.text-input-disabled-foreground{color:var(--color-input-disabled-foreground)}.text-notification-information-foreground{color:var(--color-notification-information-foreground)}.text-notification-success-foreground{color:var(--color-notification-success-foreground)}.text-status-blue-text{color:var(--color-status-blue-text)}.text-status-cyan-text{color:var(--color-status-cyan-text)}.text-status-lime-text{color:var(--color-status-lime-text)}.text-status-purple-text{color:var(--color-status-purple-text)}.text-status-rose-text{color:var(--color-status-rose-text)}.text-status-yellow-text{color:var(--color-status-yellow-text)}.text-text-disabled{color:var(--color-text-disabled)}.text-text-error-primary{color:var(--color-text-error-primary)}.text-text-primary{color:var(--color-text-primary)}.text-text-secondary{color:var(--color-text-secondary)}.text-text-tertiary{color:var(--color-text-tertiary)}.text-text-white{color:var(--color-text-white)}.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:var(--elevation-dropdown);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-xs{--tw-shadow:var(--elevation-xs);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.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-\[padding\,font-size\]{transition-property:padding,font-size;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-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}.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-\(--glass-text\):hover{color:var(--glass-text)}.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)}.aria-selected\:bg-background-primary-default[aria-selected=true]{background-color:var(--color-background-primary-default)}.aria-selected\:text-text-primary[aria-selected=true]{color:var(--color-text-primary)}.aria-selected\:shadow-card[aria-selected=true]{--tw-shadow:var(--elevation-card);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.data-focus-visible\:ring-2[data-focus-visible]{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.data-focus-visible\:ring-border-focus-ring[data-focus-visible]{--tw-ring-color:var(--color-border-focus-ring)}.data-selected\:bg-background-primary-default[data-selected]{background-color:var(--color-background-primary-default)}.data-selected\:text-\(--glass-text\)[data-selected]{color:var(--glass-text)}.data-selected\:text-text-primary[data-selected]{color:var(--color-text-primary)}.data-selected\:shadow-card[data-selected]{--tw-shadow:var(--elevation-card);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.data-\[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%}@media not all and (width>=40rem){.max-sm\:p-5{padding:calc(var(--spacing) * 5)}.max-sm\:px-4{padding-inline:calc(var(--spacing) * 4)}.max-sm\:py-6{padding-block:calc(var(--spacing) * 6)}}@container (width>=32rem){.\@lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}.dark\:aria-selected\:bg-background-primary-hover:where(.dark,.dark *)[aria-selected=true],.dark\:data-selected\:bg-background-primary-hover:where(.dark,.dark *)[data-selected]{background-color:var(--color-background-primary-hover)}@scope(.peach-react){*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}:root{--color-foreground-full:var(--color-white);--color-foreground-icon-primary:var(--color-neutral-950);--color-foreground-icon-hover:var(--color-black);--color-foreground-icon-secondary:var(--color-neutral-500);--color-foreground-icon-tertiary:var(--color-neutral-400);--color-foreground-icon-quaternary:var(--color-neutral-300);--color-foreground-icon-error:var(--color-red-600);--color-foreground-icon-disabled:var(--color-neutral-300);--color-foreground-disabled:var(--color-neutral-400);--color-foreground-disabled-danger:var(--color-red-300);--color-input-disabled-foreground:var(--color-neutral-300);--color-icon-button-disabled-foreground:var(--color-neutral-300);--color-button-primary-disabled-foreground:var(--color-neutral-400);--color-text-primary:var(--color-neutral-950);--color-text-secondary:var(--color-neutral-500);--color-text-tertiary:var(--color-neutral-400);--color-text-disabled:var(--color-neutral-300);--color-text-disabled-danger:var(--color-red-300);--color-text-placeholder:var(--color-neutral-400);--color-text-error-primary:var(--color-red-500);--color-input-disabled-text:var(--color-neutral-300);--color-text-white:var(--color-white);--color-background-full:var(--color-white);--color-background-primary-default:var(--color-white);--color-background-inner-default:var(--color-white);--color-background-primary-hover:var(--color-neutral-100);--color-background-primary-active:var(--color-neutral-200);--color-background-primary-disabled:var(--color-neutral-100);--color-input-disabled-background:var(--color-neutral-100);--color-background-secondary-default:var(--color-neutral-100);--color-background-secondary-hover:var(--color-neutral-200);--color-background-tertiary-default:var(--color-neutral-200);--color-background-tertiary-hover:var(--color-neutral-300);--color-background-tertiary-error:var(--color-red-100);--color-background-recent-hire-role:var(--color-neutral-100);--color-avatar-neutral-background:var(--color-neutral-300);--color-background-quaternary-default:var(--color-neutral-300);--color-background-quaternary-hover:var(--color-neutral-400);--color-background-quaternary-error:var(--color-red-200);--color-file-upload-icon-background:var(--color-neutral-300);--color-file-upload-icon-foreground:var(--color-neutral-400);--color-file-upload-icon-foreground-hover:var(--color-neutral-500);--color-border-button-default:var(--color-neutral-200);--color-border-button-hover:var(--color-neutral-300);--color-border-button-active:var(--color-neutral-400);--color-border-button-white:var(--color-white);--color-border-error-default:var(--color-red-500);--color-border-checkbox-default:var(--color-neutral-300);--color-border-checkbox-hover:var(--color-neutral-400);--color-border-checkbox-active:var(--color-neutral-400);--color-border-checkbox-white:var(--color-white);--color-border-component-detail-container:var(--color-neutral-200);--color-border-ai-profile-card:var(--color-neutral-200);--color-border-table:var(--color-neutral-200);--color-border-button-group:var(--color-neutral-200);--color-border-sidebar-profile-hover:var(--color-neutral-300);--color-separator-border:var(--color-neutral-200);--color-separator-border-strong:var(--color-neutral-200);--color-border-focus-ring:var(--color-accent-500);--color-state-success-text:var(--color-lime-800);--color-state-success-base:var(--color-lime-200);--color-control-indicator-background:var(--color-white);--color-control-indicator-background-subtle:var(--color-neutral-100);--color-switch-off-chip-start:var(--color-white);--color-switch-off-chip-end:var(--color-neutral-100);--color-switch-on-chip-start:#2673fe}@supports (color:color-mix(in lab, red, red)){:root{--color-switch-on-chip-start:color-mix(in oklab, var(--color-accent-500) 63%, var(--color-accent-600))}}:root{--color-switch-on-chip-end:#144be9}@supports (color:color-mix(in lab, red, red)){:root{--color-switch-on-chip-end:color-mix(in oklab, var(--color-accent-600) 16%, var(--color-accent-700))}}:root{--color-stat-card-icon-background:var(--color-white);--color-segmented-control-background:var(--color-neutral-100);--color-segmented-control-selected-background:var(--color-white);--color-theme-toggle-sidebar-background:var(--color-neutral-200);--color-theme-toggle-sidebar-selected-background:var(--color-white);--color-ai-chat-composer-add-background:var(--color-neutral-100);--color-ai-chat-composer-add-hover-background:var(--color-neutral-200);--color-composer-panel-tab-background:var(--color-neutral-200);--color-composer-panel-add-background:var(--color-neutral-200);--color-composer-panel-add-hover-background:var(--color-neutral-300);--color-composer-panel-tile-border:var(--color-neutral-200);--color-composer-panel-rail-background:var(--color-neutral-100);--color-questionnaire-key-background:var(--color-neutral-100);--color-questionnaire-key-hover-background:var(--color-neutral-200);--color-agent-progress-ring:var(--color-neutral-700);--color-button-ghost-background:var(--color-accent-100);--color-button-ghost-hover:var(--color-accent-200);--color-button-ghost-active:var(--color-accent-300);--color-button-ghost-disabled:var(--color-accent-50);--color-button-ghost-foreground:var(--color-accent-700);--color-button-ghost-disabled-foreground:var(--color-accent-300);--color-dropdown-item-hover-background:var(--color-neutral-100);--color-kbd-background:var(--color-neutral-300);--color-kbd-foreground:var(--color-neutral-500);--color-docs-file-chip-background:var(--color-purple-50);--color-docs-file-chip-border:var(--color-purple-100);--color-docs-file-chip-foreground:var(--color-purple-500);--color-docs-command-accent:var(--color-purple-400);--color-docs-code-background:var(--color-background-primary-default);--color-docs-install-rail:var(--color-border-button-default);--color-badge-neutral-background:var(--color-neutral-200);--color-team-menu-count-background:var(--color-neutral-200);--color-team-menu-count-foreground:var(--color-neutral-500);--color-badge-new-background:var(--color-accent-100);--color-badge-new-text:var(--color-accent-600);--color-tab-count-selected-background:var(--color-accent-100);--color-pill-tab-blue-selected-background:var(--color-accent-50);--color-pill-tab-blue-hover-background:var(--color-neutral-100);--color-notification-information-background:var(--color-blue-100);--color-notification-information-foreground:var(--color-blue-600);--color-notification-success-background:var(--color-lime-100);--color-notification-success-foreground:var(--color-lime-600);--color-notification-error-background:var(--color-rose-100);--color-notification-error-foreground:var(--color-rose-600);--color-notification-center-background:var(--color-white);--color-status-lime-background:var(--color-lime-200);--color-status-lime-text:var(--color-lime-800);--color-status-yellow-background:var(--color-yellow-200);--color-status-yellow-text:var(--color-yellow-800);--color-status-rose-background:var(--color-rose-200);--color-status-rose-text:var(--color-rose-800);--color-status-cyan-background:var(--color-cyan-200);--color-status-cyan-text:var(--color-cyan-800);--color-status-blue-background:var(--color-blue-200);--color-status-blue-text:var(--color-blue-800);--color-status-purple-background:var(--color-purple-100);--color-status-purple-text:var(--color-purple-600);--color-status-dot-green-halo:var(--color-green-100);--color-status-dot-yellow-halo:var(--color-yellow-200);--color-status-dot-indigo-halo:var(--color-indigo-100);--color-date-range-background:var(--color-accent-100);--color-date-range-edge-background:var(--color-accent-300);--color-calendar-event-blue-background:var(--color-blue-100);--color-calendar-event-blue-title:var(--color-blue-700);--color-calendar-event-blue-time:var(--color-blue-700);--color-calendar-event-pink-background:var(--color-pink-100);--color-calendar-event-pink-title:var(--color-pink-700);--color-calendar-event-pink-time:var(--color-pink-700);--color-calendar-event-purple-background:var(--color-purple-100);--color-calendar-event-purple-title:var(--color-purple-700);--color-calendar-event-purple-time:var(--color-purple-700);--color-calendar-event-lime-background:var(--color-lime-100);--color-calendar-event-lime-title:var(--color-lime-800);--color-calendar-event-lime-time:var(--color-lime-700);--color-calendar-event-emerald-background:var(--color-emerald-100);--color-calendar-event-emerald-title:var(--color-emerald-800);--color-calendar-event-emerald-time:var(--color-emerald-700);--color-text-error-placeholder:var(--color-red-400);--color-chart-track:var(--color-neutral-200);--color-chart-cursor:var(--color-neutral-300);--color-chart-neutral:var(--color-neutral-300);--color-chart-1:var(--color-teal-400);--color-chart-1-active:var(--color-teal-500);--color-chart-2:var(--color-lime-400);--color-chart-2-active:var(--color-lime-500);--color-chart-3:var(--color-pink-400);--color-chart-3-active:var(--color-pink-500);--color-chart-4:var(--color-sky-400);--color-chart-4-active:var(--color-sky-500);--color-chart-5:var(--color-purple-400);--color-chart-5-active:var(--color-purple-500);--color-chart-6:var(--color-blue-400);--color-chart-6-active:var(--color-blue-500);--color-chart-7:var(--color-emerald-400);--color-chart-7-active:var(--color-emerald-500);--color-chart-8:var(--color-yellow-400);--color-chart-8-active:var(--color-yellow-500);--color-chart-9:var(--color-indigo-400);--color-chart-9-active:var(--color-indigo-500);--color-chart-agents-bar:var(--color-purple-300);--color-chart-agents-bar-active:var(--color-purple-400);--gradient-button-primary-default:linear-gradient(180deg, var(--color-accent-500) 0%, var(--color-accent-600) 100%);--gradient-button-primary-hover:linear-gradient(180deg, var(--color-accent-400) 0%, var(--color-accent-500) 100%);--gradient-button-primary-active:linear-gradient(180deg, var(--color-accent-600) 0%, var(--color-accent-700) 100%);--gradient-button-primary-disabled:linear-gradient(180deg, var(--color-neutral-200) 0%, var(--color-neutral-300) 100%);--gradient-button-danger-default:linear-gradient(180deg, var(--color-red-500) 0%, var(--color-red-600) 100%);--gradient-button-danger-hover:linear-gradient(180deg, var(--color-red-400) 0%, var(--color-red-500) 100%);--gradient-button-danger-active:linear-gradient(180deg, var(--color-red-600) 0%, var(--color-red-700) 100%);--gradient-button-danger-disabled:linear-gradient(180deg, var(--color-red-100) 0%, var(--color-red-200) 100%)}.dark{--color-foreground-full:var(--color-neutral-700);--color-foreground-icon-primary:var(--color-neutral-50);--color-foreground-icon-hover:var(--color-white);--color-foreground-icon-error:var(--color-red-400);--color-foreground-icon-tertiary:var(--color-neutral-600);--color-foreground-icon-quaternary:var(--color-neutral-700);--color-foreground-icon-disabled:var(--color-neutral-800);--color-foreground-disabled:var(--color-neutral-700);--color-foreground-disabled-danger:var(--color-red-400);--color-input-disabled-foreground:var(--color-neutral-600);--color-icon-button-disabled-foreground:var(--color-neutral-500);--color-button-primary-disabled-foreground:var(--color-neutral-500);--color-text-primary:var(--color-neutral-50);--color-text-tertiary:var(--color-neutral-600);--color-text-disabled:var(--color-neutral-800);--color-text-error-primary:var(--color-red-400);--color-input-disabled-text:#73737366}@supports (color:color-mix(in lab, red, red)){.dark{--color-input-disabled-text:color-mix(in srgb, var(--color-neutral-500) 40%, transparent)}}.dark{--color-background-full:var(--color-neutral-925);--color-background-primary-default:var(--color-neutral-800);--color-background-inner-default:#26262699}@supports (color:color-mix(in lab, red, red)){.dark{--color-background-inner-default:color-mix(in srgb, var(--color-neutral-800) 60%, transparent)}}.dark{--color-background-primary-hover:#40404099}@supports (color:color-mix(in lab, red, red)){.dark{--color-background-primary-hover:color-mix(in srgb, var(--color-neutral-700) 60%, transparent)}}.dark{--color-background-primary-active:var(--color-neutral-800);--color-background-primary-disabled:var(--color-neutral-800);--color-input-disabled-background:#2626264d}@supports (color:color-mix(in lab, red, red)){.dark{--color-input-disabled-background:color-mix(in srgb, var(--color-neutral-800) 30%, transparent)}}.dark{--color-switch-off-chip-start:var(--color-background-tertiary-default);--color-switch-off-chip-end:var(--color-background-tertiary-default);--color-background-secondary-default:var(--color-neutral-900);--color-background-secondary-hover:var(--color-neutral-800);--color-background-tertiary-default:var(--color-neutral-800);--color-background-tertiary-hover:var(--color-neutral-700);--color-background-tertiary-error:#46080999}@supports (color:color-mix(in lab, red, red)){.dark{--color-background-tertiary-error:color-mix(in srgb, var(--color-red-950) 60%, transparent)}}.dark{--color-background-quaternary-default:var(--color-neutral-700);--color-background-quaternary-hover:var(--color-neutral-600);--color-background-recent-hire-role:#17171799}@supports (color:color-mix(in lab, red, red)){.dark{--color-background-recent-hire-role:color-mix(in srgb, var(--color-neutral-900) 60%, transparent)}}.dark{--color-avatar-neutral-background:var(--color-background-primary-default);--color-file-upload-icon-background:var(--color-neutral-600);--color-file-upload-icon-foreground:var(--color-neutral-400);--color-file-upload-icon-foreground-hover:var(--color-neutral-300);--color-stat-card-icon-background:var(--color-neutral-800);--color-segmented-control-background:var(--color-neutral-925);--color-segmented-control-selected-background:var(--color-neutral-800);--color-theme-toggle-sidebar-background:var(--color-neutral-800);--color-theme-toggle-sidebar-selected-background:var(--color-neutral-700);--color-ai-chat-composer-add-background:var(--color-neutral-700);--color-ai-chat-composer-add-hover-background:var(--color-neutral-600);--color-composer-panel-tab-background:#40404080}@supports (color:color-mix(in lab, red, red)){.dark{--color-composer-panel-tab-background:color-mix(in srgb, var(--color-neutral-700) 50%, transparent)}}.dark{--color-composer-panel-add-background:var(--color-neutral-700);--color-composer-panel-add-hover-background:var(--color-neutral-600);--color-composer-panel-tile-border:#ffffff24}@supports (color:color-mix(in lab, red, red)){.dark{--color-composer-panel-tile-border:color-mix(in srgb, var(--color-white) 14%, transparent)}}.dark{--color-composer-panel-rail-background:#17171780}@supports (color:color-mix(in lab, red, red)){.dark{--color-composer-panel-rail-background:color-mix(in srgb, var(--color-neutral-900) 50%, transparent)}}.dark{--color-questionnaire-key-background:var(--color-neutral-700);--color-questionnaire-key-hover-background:var(--color-neutral-600);--color-agent-progress-ring:#ffffff80}@supports (color:color-mix(in lab, red, red)){.dark{--color-agent-progress-ring:color-mix(in srgb, var(--color-white) 50%, transparent)}}.dark{--color-button-ghost-background:var(--color-accent-900);--color-button-ghost-hover:var(--color-accent-800);--color-button-ghost-active:var(--color-accent-700);--color-button-ghost-disabled:var(--color-neutral-800);--color-button-ghost-foreground:var(--color-accent-300);--color-button-ghost-disabled-foreground:var(--color-neutral-600);--color-dropdown-item-hover-background:#40404099}@supports (color:color-mix(in lab, red, red)){.dark{--color-dropdown-item-hover-background:color-mix(in srgb, var(--color-neutral-700) 60%, transparent)}}.dark{--color-kbd-background:var(--color-neutral-700);--color-kbd-foreground:var(--color-neutral-400);--color-docs-file-chip-background:#3c036680}@supports (color:color-mix(in lab, red, red)){.dark{--color-docs-file-chip-background:color-mix(in srgb, var(--color-purple-950) 50%, transparent)}}.dark{--color-docs-file-chip-border:var(--color-purple-800);--color-docs-file-chip-foreground:var(--color-purple-400);--color-docs-code-background:var(--color-background-full);--color-docs-install-rail:#26262699}@supports (color:color-mix(in lab, red, red)){.dark{--color-docs-install-rail:color-mix(in srgb, var(--color-neutral-800) 60%, transparent)}}.dark{--shadow-2xs:0 1px #00000029;--shadow-xs:0 1px 2px 0 #0000002e;--shadow-sm:0 1px 2px 0 #0000001f, 0 1px 3px 0 #00000029;--shadow-md:0 2px 4px -1px #0000001f, 0 4px 6px -1px #0000002e;--shadow-lg:0 4px 6px -2px #0000001a, 0 10px 15px -3px #0000002e;--shadow-xl:0 10px 10px -5px #00000014, 0 20px 25px -5px #0003;--shadow-card:0 1px 1px 0 #00000024;--shadow-dropdown:0 1px 1px 0 #00000024, 0 4px 4px 0 #0000001a;--shadow-sidebar:0 1px 0 0 #0000001a, 0 1px 12px 0 #00000029, 0 0 1px 0 #0000006b;--shadow-waitlist:0 0 6px 0 #0000001f, 0 0 64px 0 #00000038, 0 0 1px 0 #0000006b, 0 1px 12px 0 #00000024, 0 1px 0 0 #00000014;--color-badge-neutral-background:var(--color-neutral-800);--color-team-menu-count-background:var(--color-neutral-700);--color-team-menu-count-foreground:var(--color-neutral-400);--color-badge-new-background:var(--color-accent-950);--color-badge-new-text:var(--color-accent-400);--color-tab-count-selected-background:#193cb899}@supports (color:color-mix(in lab, red, red)){.dark{--color-tab-count-selected-background:color-mix(in srgb, var(--color-accent-800) 60%, transparent)}}.dark{--color-notification-information-background:#193cb880}@supports (color:color-mix(in lab, red, red)){.dark{--color-notification-information-background:color-mix(in srgb, var(--color-blue-800) 50%, transparent)}}.dark{--color-notification-information-foreground:var(--color-blue-300);--color-notification-success-background:#3d630080}@supports (color:color-mix(in lab, red, red)){.dark{--color-notification-success-background:color-mix(in srgb, var(--color-lime-800) 50%, transparent)}}.dark{--color-notification-success-foreground:var(--color-lime-300);--color-notification-error-background:#a3003780}@supports (color:color-mix(in lab, red, red)){.dark{--color-notification-error-background:color-mix(in srgb, var(--color-rose-800) 50%, transparent)}}.dark{--color-notification-error-foreground:var(--color-rose-300);--color-notification-center-background:var(--color-neutral-900);--color-border-button-default:var(--color-neutral-700);--color-border-button-hover:var(--color-neutral-500);--color-border-button-active:var(--color-neutral-600);--color-border-button-white:var(--color-zinc-800);--color-border-error-default:var(--color-red-400);--color-border-checkbox-default:var(--color-neutral-700);--color-border-checkbox-hover:var(--color-neutral-500);--color-border-checkbox-active:var(--color-neutral-500);--color-border-component-detail-container:var(--color-neutral-800);--color-border-ai-profile-card:var(--color-neutral-800);--color-border-table:var(--color-neutral-800);--color-border-button-group:#52525299}@supports (color:color-mix(in lab, red, red)){.dark{--color-border-button-group:color-mix(in srgb, var(--color-neutral-600) 60%, transparent)}}.dark{--color-border-sidebar-profile-hover:var(--color-neutral-600);--color-separator-border:var(--color-neutral-800);--color-separator-border-strong:#40404099}@supports (color:color-mix(in lab, red, red)){.dark{--color-separator-border-strong:color-mix(in srgb, var(--color-neutral-700) 60%, transparent)}}.dark{--color-status-lime-background:#192e0399}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-lime-background:color-mix(in srgb, var(--color-lime-950) 60%, transparent)}}.dark{--color-status-lime-text:var(--color-lime-500);--color-status-yellow-background:#43200499}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-yellow-background:color-mix(in srgb, var(--color-yellow-950) 60%, transparent)}}.dark{--color-status-yellow-text:var(--color-yellow-500);--color-status-rose-background:#4d021899}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-rose-background:color-mix(in srgb, var(--color-rose-950) 60%, transparent)}}.dark{--color-status-rose-text:var(--color-rose-500);--color-status-cyan-background:#05334599}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-cyan-background:color-mix(in srgb, var(--color-cyan-950) 60%, transparent)}}.dark{--color-status-cyan-text:var(--color-cyan-400);--color-status-blue-background:#16245699}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-blue-background:color-mix(in srgb, var(--color-blue-950) 60%, transparent)}}.dark{--color-status-blue-text:var(--color-blue-300);--color-status-purple-background:#59168b80}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-purple-background:color-mix(in srgb, var(--color-purple-900) 50%, transparent)}}.dark{--color-status-purple-text:var(--color-purple-300);--color-status-dot-green-halo:#01663066}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-dot-green-halo:color-mix(in srgb, var(--color-green-800) 40%, transparent)}}.dark{--color-status-dot-yellow-halo:#874b0066}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-dot-yellow-halo:color-mix(in srgb, var(--color-yellow-800) 40%, transparent)}}.dark{--color-status-dot-indigo-halo:#372aac66}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-dot-indigo-halo:color-mix(in srgb, var(--color-indigo-800) 40%, transparent)}}.dark{--color-date-range-background:var(--color-accent-950);--color-date-range-edge-background:var(--color-accent-800);--color-pill-tab-blue-selected-background:#16245699}@supports (color:color-mix(in lab, red, red)){.dark{--color-pill-tab-blue-selected-background:color-mix(in srgb, var(--color-accent-950) 60%, transparent)}}.dark{--color-pill-tab-blue-hover-background:var(--color-neutral-800);--color-calendar-event-blue-background:var(--color-blue-950);--color-calendar-event-blue-title:var(--color-blue-300);--color-calendar-event-blue-time:var(--color-blue-300);--color-calendar-event-pink-background:var(--color-pink-950);--color-calendar-event-pink-title:var(--color-pink-300);--color-calendar-event-pink-time:var(--color-pink-300);--color-calendar-event-purple-background:var(--color-purple-950);--color-calendar-event-purple-title:var(--color-purple-300);--color-calendar-event-purple-time:var(--color-purple-300);--color-calendar-event-lime-background:var(--color-lime-950);--color-calendar-event-lime-title:var(--color-lime-300);--color-calendar-event-lime-time:var(--color-lime-300);--color-calendar-event-emerald-background:var(--color-emerald-950);--color-calendar-event-emerald-title:var(--color-emerald-300);--color-calendar-event-emerald-time:var(--color-emerald-300);--gradient-button-primary-disabled:linear-gradient(180deg, var(--color-neutral-700) 0%, var(--color-neutral-800) 100%);--gradient-button-danger-disabled:linear-gradient(180deg, var(--color-red-900) 0%, var(--color-red-950) 100%);--color-chart-track:var(--color-neutral-800);--color-chart-cursor:var(--color-neutral-700);--color-chart-neutral:var(--color-neutral-800);--color-chart-agents-bar:var(--color-purple-500);--color-chart-agents-bar-active:var(--color-purple-600)}.dark[data-accent]{--color-badge-new-background:#16245680}@supports (color:color-mix(in lab, red, red)){.dark[data-accent]{--color-badge-new-background:color-mix(in srgb, var(--color-accent-950) 50%, transparent)}}.peach-react [data-surface-host]{isolation:isolate;position:relative}.peach-react [data-moving-surface]{pointer-events:none;transform-origin:0 0;z-index:-1;position:absolute;top:0;left:0}.peach-react [data-moving-surface=selection]{border-radius:var(--radius-md);background:var(--color-background-primary-default);box-shadow:var(--shadow-card)}.dark .peach-react [data-moving-surface=selection]{background:var(--color-background-primary-hover)}.peach-react [data-surface-host=selection][data-surface-ready] :is([data-selected],[aria-selected=true]){--tw-shadow:0 0 transparent;background:0 0}.peach-react [data-moving-surface=hover]{border-radius:var(--radius-2lg);background:var(--color-dropdown-item-hover-background)}@media (hover:hover) and (pointer:fine){.peach-react [data-surface-host=hover][data-surface-ready] button:is(:hover,:focus-visible){background:0 0}}.peach-react [data-modal-motion]{transition:opacity .2s var(--ease-out)}.peach-react [data-modal-surface]{transition:transform .2s var(--ease-out), opacity .2s var(--ease-out)}.peach-react [data-modal-motion]:is([data-entering],[data-exiting]){opacity:0}.peach-react [data-modal-surface]:is([data-entering],[data-exiting]){opacity:0;transform:scale(.98)}.peach-react [data-modal-motion][data-exiting],.peach-react [data-modal-surface][data-exiting]{transition-duration:.12s}.peach-react [data-modal-motion][data-motion-instant],.peach-react [data-modal-motion][data-motion-instant] [data-modal-surface]{transition:none}@media (prefers-reduced-motion:reduce){.peach-react [data-modal-motion],.peach-react [data-modal-surface]{transition:none}}:root{--font-inter:"Inter Variable", "Inter";--elevation-2xs:0 1px #0000000d;--elevation-xs:0 1px 2px 0 #0000000d;--elevation-sm:0 1px 2px 0 #0000000f, 0 1px 3px 0 #0000001a;--elevation-md:0 2px 4px -1px #0000000f, 0 4px 6px -1px #0000001a;--elevation-lg:0 4px 6px -2px #0000000d, 0 10px 15px -3px #0000001a;--elevation-xl:0 10px 10px -5px #0000000a, 0 20px 25px -5px #0000001a;--elevation-card:0 1px 1px 0 #0000000d;--elevation-dropdown:0 1px 1px 0 #0000000a, 0 4px 4px 0 #00000005;--elevation-sidebar:0 1px 0 0 #00000005, 0 1px 12px 0 #0000000f, 0 0 1px 0 #00000052;--elevation-waitlist:0 0 6px 0 #0000000f, 0 0 64px 0 #00000029, 0 0 1px 0 #00000052, 0 1px 12px 0 #0000000f, 0 1px 0 0 #00000005}.dark{--elevation-2xs:0 1px #00000029;--elevation-xs:0 1px 2px 0 #0000002e;--elevation-sm:0 1px 2px 0 #0000001f, 0 1px 3px 0 #00000029;--elevation-md:0 2px 4px -1px #0000001f, 0 4px 6px -1px #0000002e;--elevation-lg:0 4px 6px -2px #0000001a, 0 10px 15px -3px #0000002e;--elevation-xl:0 10px 10px -5px #00000014, 0 20px 25px -5px #0003;--elevation-card:0 1px 1px 0 #00000024;--elevation-dropdown:0 1px 1px 0 #00000024, 0 4px 4px 0 #0000001a;--elevation-sidebar:0 1px 0 0 #0000001a, 0 1px 12px 0 #00000029, 0 0 1px 0 #0000006b;--elevation-waitlist:0 0 6px 0 #0000001f, 0 0 64px 0 #00000038, 0 0 1px 0 #0000006b, 0 1px 12px 0 #00000024, 0 1px 0 0 #00000014}.peach-react{font-family:var(--font-sans);color:var(--color-text-primary);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-variant-ligatures:contextual;font-kerning:normal;--color-text-primary:var(--color-neutral-950);--color-text-secondary:var(--color-neutral-500);--color-text-tertiary:var(--color-neutral-400);--color-text-disabled:var(--color-neutral-300);--color-text-white:var(--color-white);--color-background-full:var(--color-white);--color-background-primary-default:var(--color-white);--color-background-primary-hover:var(--color-neutral-100);--color-background-secondary-default:var(--color-neutral-100);--color-background-tertiary-default:var(--color-neutral-200);--color-border-button-default:var(--color-neutral-200);--color-border-button-hover:var(--color-neutral-300);--color-border-button-active:var(--color-neutral-400);--color-border-checkbox-default:var(--color-neutral-300);--color-border-checkbox-hover:var(--color-neutral-400);--color-border-focus-ring:var(--color-accent-500);--color-separator-border:var(--color-neutral-200);line-height:1.5}.dark .peach-react{--color-text-primary:var(--color-neutral-50);--color-text-tertiary:var(--color-neutral-600);--color-text-disabled:var(--color-neutral-800);--color-background-full:var(--color-neutral-925);--color-background-primary-default:var(--color-neutral-800);--color-background-primary-hover:#40404099}@supports (color:color-mix(in lab, red, red)){.dark .peach-react{--color-background-primary-hover:color-mix(in srgb, var(--color-neutral-700) 60%, transparent)}}.dark .peach-react{--color-background-secondary-default:var(--color-neutral-900);--color-background-tertiary-default:var(--color-neutral-800);--color-border-button-default:var(--color-neutral-700);--color-border-button-hover:var(--color-neutral-500);--color-border-button-active:var(--color-neutral-600);--color-border-checkbox-default:var(--color-neutral-600);--color-border-checkbox-hover:var(--color-neutral-500);--color-separator-border:var(--color-neutral-700)}:where(.peach-react){--card-footer:var(--color-background-secondary-default)}@supports (color:color-mix(in lab, red, red)){:where(.peach-react){--card-footer:color-mix(in srgb, var(--color-background-secondary-default) 98%, var(--color-text-primary))}}:where(.peach-react){--card-hover:var(--color-background-secondary-default)}@supports (color:color-mix(in lab, red, red)){:where(.peach-react){--card-hover:color-mix(in srgb, var(--color-background-secondary-default) 95%, var(--color-text-primary))}}.peach-react button[aria-haspopup=listbox]{height:calc(var(--spacing) * 9);padding-block:0}.peach-react button[aria-haspopup=listbox][class~=text-body-2-medium]{height:calc(var(--spacing) * 8)}.peach-react [data-input-size]>div[data-rac]:not([data-hovered]):not([data-focus-within]){outline:1px solid var(--color-border-button-default);outline-offset:-1px}.peach-react [class~=overflow-x-auto]{scrollbar-width:none}.peach-react [class~=overflow-x-auto]::-webkit-scrollbar{display:none}body.peach-react{background-color:var(--color-background-full);min-height:100dvh}.fcollapse{transition:height .2s ease-in-out;overflow:hidden}.fcollapse.fcollapse-settled{overflow:visible}.ovtrack{z-index:2;pointer-events:none;position:absolute}.ovtrack[hidden]{display:none}.ovtrack.page{z-index:91;width:12px;position:fixed;top:0;bottom:0;right:0}.ovthumb{background:var(--color-border-button-hover);border-radius:9999px;width:3px;transition:width .15s cubic-bezier(.4,0,.2,1);position:absolute;top:0;right:0}@media (pointer:fine){.ovtrack.page .ovthumb{pointer-events:auto}}.ovtrack.page .ovthumb:hover,.ovtrack.page.dragging .ovthumb{width:6px}[data-overlay-scrollbar]{scrollbar-width:none}[data-overlay-scrollbar]::-webkit-scrollbar{display: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-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}
+@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,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--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:oklch(93.6% .032 17.717);--color-red-200:oklch(88.5% .062 18.334);--color-red-300:oklch(80.8% .114 19.571);--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-red-900:oklch(39.6% .141 25.723);--color-red-950:oklch(25.8% .092 26.042);--color-yellow-200:oklch(94.5% .129 101.54);--color-yellow-400:oklch(85.2% .199 91.936);--color-yellow-500:oklch(79.5% .184 86.047);--color-yellow-800:oklch(47.6% .114 61.907);--color-yellow-950:oklch(28.6% .066 53.813);--color-lime-100:oklch(96.7% .067 122.328);--color-lime-200:oklch(93.8% .127 124.321);--color-lime-300:oklch(89.7% .196 126.665);--color-lime-400:oklch(84.1% .238 128.85);--color-lime-500:oklch(76.8% .233 130.85);--color-lime-600:oklch(64.8% .2 131.684);--color-lime-700:oklch(53.2% .157 131.589);--color-lime-800:oklch(45.3% .124 130.933);--color-lime-950:oklch(27.4% .072 132.109);--color-green-100:oklch(96.2% .044 156.743);--color-green-800:oklch(44.8% .119 151.328);--color-emerald-100:oklch(95% .052 163.051);--color-emerald-300:oklch(84.5% .143 164.978);--color-emerald-400:oklch(76.5% .177 163.223);--color-emerald-500:oklch(69.6% .17 162.48);--color-emerald-700:oklch(50.8% .118 165.612);--color-emerald-800:oklch(43.2% .095 166.913);--color-emerald-950:oklch(26.2% .051 172.552);--color-teal-400:oklch(77.7% .152 181.912);--color-teal-500:oklch(70.4% .14 182.503);--color-cyan-200:oklch(91.7% .08 205.041);--color-cyan-400:oklch(78.9% .154 211.53);--color-cyan-800:oklch(45% .085 224.283);--color-cyan-950:oklch(30.2% .056 229.695);--color-sky-400:oklch(74.6% .16 232.661);--color-sky-500:oklch(68.5% .169 237.323);--color-blue-50:oklch(97% .014 254.604);--color-blue-100:oklch(93.2% .032 255.585);--color-blue-200:oklch(88.2% .059 254.128);--color-blue-300:oklch(80.9% .105 251.813);--color-blue-400:#3392ff;--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-blue-700:oklch(48.8% .243 264.376);--color-blue-800:oklch(42.4% .199 265.638);--color-blue-900:oklch(37.9% .146 265.522);--color-blue-950:oklch(28.2% .091 267.935);--color-indigo-100:oklch(93% .034 272.788);--color-indigo-400:oklch(67.3% .182 276.935);--color-indigo-500:oklch(58.5% .233 277.117);--color-indigo-800:oklch(39.8% .195 277.366);--color-purple-50:oklch(97.7% .014 308.299);--color-purple-100:oklch(94.6% .033 307.174);--color-purple-300:oklch(82.7% .119 306.383);--color-purple-400:oklch(71.4% .203 305.504);--color-purple-500:oklch(62.7% .265 303.9);--color-purple-600:oklch(55.8% .288 302.321);--color-purple-700:oklch(49.6% .265 301.924);--color-purple-800:oklch(43.8% .218 303.724);--color-purple-900:oklch(38.1% .176 304.987);--color-purple-950:oklch(29.1% .149 302.717);--color-pink-100:oklch(94.8% .028 342.258);--color-pink-300:oklch(82.3% .12 346.018);--color-pink-400:oklch(71.8% .202 349.761);--color-pink-500:oklch(65.6% .241 354.308);--color-pink-700:oklch(52.5% .223 3.958);--color-pink-950:oklch(28.4% .109 3.907);--color-rose-100:oklch(94.1% .03 12.58);--color-rose-200:oklch(89.2% .058 10.001);--color-rose-300:oklch(81% .117 11.638);--color-rose-500:oklch(64.5% .246 16.439);--color-rose-600:oklch(58.6% .253 17.585);--color-rose-800:oklch(45.5% .188 13.697);--color-rose-950:oklch(27.1% .105 12.094);--color-zinc-800:oklch(27.4% .006 286.033);--color-neutral-50:oklch(98.5% 0 none);--color-neutral-100:#f7f7f7;--color-neutral-200:#ebebeb;--color-neutral-300:oklch(87% 0 none);--color-neutral-400:oklch(70.8% 0 none);--color-neutral-500:oklch(55.6% 0 none);--color-neutral-600:oklch(43.9% 0 none);--color-neutral-700:oklch(37.1% 0 none);--color-neutral-800:oklch(26.9% 0 none);--color-neutral-900:oklch(20.5% 0 none);--color-neutral-950:oklch(14.5% 0 none);--color-black:#000;--color-white:#fff;--spacing:.25rem;--radius-xs:.125rem;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--radius-2xl:1rem;--radius-3xl:1.5rem;--ease-out:cubic-bezier(0, 0, .2, 1);--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-neutral-925:#121212;--color-accent-50:var(--color-blue-50);--color-accent-100:var(--color-blue-100);--color-accent-200:var(--color-blue-200);--color-accent-300:var(--color-blue-300);--color-accent-400:var(--color-blue-400);--color-accent-500:var(--color-blue-500);--color-accent-600:var(--color-blue-600);--color-accent-700:var(--color-blue-700);--color-accent-800:var(--color-blue-800);--color-accent-900:var(--color-blue-900);--color-accent-950:var(--color-blue-950);--radius-2lg:10px;--shadow-checkbox-selected:inset 0 2px 0 0 #ffffff40, inset 0 0 0 1px var(--color-accent-500);--shadow-card:var(--elevation-card);--color-foreground-full:var(--color-foreground-full);--color-foreground-icon-primary:var(--color-foreground-icon-primary);--color-foreground-icon-hover:var(--color-foreground-icon-hover);--color-foreground-icon-secondary:var(--color-foreground-icon-secondary);--color-foreground-icon-tertiary:var(--color-foreground-icon-tertiary);--color-foreground-icon-quaternary:var(--color-foreground-icon-quaternary);--color-foreground-icon-error:var(--color-foreground-icon-error);--color-foreground-icon-disabled:var(--color-foreground-icon-disabled);--color-foreground-disabled:var(--color-foreground-disabled);--color-foreground-disabled-danger:var(--color-foreground-disabled-danger);--color-input-disabled-foreground:var(--color-input-disabled-foreground);--color-icon-button-disabled-foreground:var(--color-icon-button-disabled-foreground);--color-button-primary-disabled-foreground:var(--color-button-primary-disabled-foreground);--color-text-primary:var(--color-text-primary);--color-text-secondary:var(--color-text-secondary);--color-text-tertiary:var(--color-text-tertiary);--color-text-disabled:var(--color-text-disabled);--color-text-disabled-danger:var(--color-text-disabled-danger);--color-text-placeholder:var(--color-text-placeholder);--color-text-error-primary:var(--color-text-error-primary);--color-input-disabled-text:var(--color-input-disabled-text);--color-text-white:var(--color-text-white);--color-background-full:var(--color-background-full);--color-background-primary-default:var(--color-background-primary-default);--color-background-inner-default:var(--color-background-inner-default);--color-background-primary-hover:var(--color-background-primary-hover);--color-background-primary-active:var(--color-background-primary-active);--color-background-primary-disabled:var(--color-background-primary-disabled);--color-input-disabled-background:var(--color-input-disabled-background);--color-background-secondary-default:var(--color-background-secondary-default);--color-background-secondary-hover:var(--color-background-secondary-hover);--color-background-tertiary-default:var(--color-background-tertiary-default);--color-background-tertiary-hover:var(--color-background-tertiary-hover);--color-background-tertiary-error:var(--color-background-tertiary-error);--color-background-recent-hire-role:var(--color-background-recent-hire-role);--color-avatar-neutral-background:var(--color-avatar-neutral-background);--color-background-quaternary-default:var(--color-background-quaternary-default);--color-background-quaternary-hover:var(--color-background-quaternary-hover);--color-background-quaternary-error:var(--color-background-quaternary-error);--color-file-upload-icon-background:var(--color-file-upload-icon-background);--color-file-upload-icon-foreground:var(--color-file-upload-icon-foreground);--color-file-upload-icon-foreground-hover:var(--color-file-upload-icon-foreground-hover);--color-border-button-default:var(--color-border-button-default);--color-border-button-hover:var(--color-border-button-hover);--color-border-button-active:var(--color-border-button-active);--color-border-button-white:var(--color-border-button-white);--color-border-error-default:var(--color-border-error-default);--color-border-checkbox-default:var(--color-border-checkbox-default);--color-border-checkbox-hover:var(--color-border-checkbox-hover);--color-border-checkbox-active:var(--color-border-checkbox-active);--color-border-checkbox-white:var(--color-border-checkbox-white);--color-border-component-detail-container:var(--color-border-component-detail-container);--color-border-ai-profile-card:var(--color-border-ai-profile-card);--color-border-table:var(--color-border-table);--color-border-button-group:var(--color-border-button-group);--color-border-sidebar-profile-hover:var(--color-border-sidebar-profile-hover);--color-separator-border:var(--color-separator-border);--color-separator-border-strong:var(--color-separator-border-strong);--color-border-focus-ring:var(--color-border-focus-ring);--color-state-success-text:var(--color-state-success-text);--color-state-success-base:var(--color-state-success-base);--color-control-indicator-background:var(--color-control-indicator-background);--color-control-indicator-background-subtle:var(--color-control-indicator-background-subtle);--color-switch-off-chip-start:var(--color-switch-off-chip-start);--color-switch-off-chip-end:var(--color-switch-off-chip-end);--color-switch-on-chip-start:var(--color-switch-on-chip-start);--color-switch-on-chip-end:var(--color-switch-on-chip-end);--color-stat-card-icon-background:var(--color-stat-card-icon-background);--color-segmented-control-background:var(--color-segmented-control-background);--color-segmented-control-selected-background:var(--color-segmented-control-selected-background);--color-theme-toggle-sidebar-background:var(--color-theme-toggle-sidebar-background);--color-theme-toggle-sidebar-selected-background:var(--color-theme-toggle-sidebar-selected-background);--color-ai-chat-composer-add-background:var(--color-ai-chat-composer-add-background);--color-ai-chat-composer-add-hover-background:var(--color-ai-chat-composer-add-hover-background);--color-composer-panel-tab-background:var(--color-composer-panel-tab-background);--color-composer-panel-add-background:var(--color-composer-panel-add-background);--color-composer-panel-add-hover-background:var(--color-composer-panel-add-hover-background);--color-composer-panel-tile-border:var(--color-composer-panel-tile-border);--color-composer-panel-rail-background:var(--color-composer-panel-rail-background);--color-questionnaire-key-background:var(--color-questionnaire-key-background);--color-questionnaire-key-hover-background:var(--color-questionnaire-key-hover-background);--color-agent-progress-ring:var(--color-agent-progress-ring);--color-button-ghost-background:var(--color-button-ghost-background);--color-button-ghost-hover:var(--color-button-ghost-hover);--color-button-ghost-active:var(--color-button-ghost-active);--color-button-ghost-disabled:var(--color-button-ghost-disabled);--color-button-ghost-foreground:var(--color-button-ghost-foreground);--color-button-ghost-disabled-foreground:var(--color-button-ghost-disabled-foreground);--color-dropdown-item-hover-background:var(--color-dropdown-item-hover-background);--color-kbd-background:var(--color-kbd-background);--color-kbd-foreground:var(--color-kbd-foreground);--color-docs-file-chip-background:var(--color-docs-file-chip-background);--color-docs-file-chip-border:var(--color-docs-file-chip-border);--color-docs-file-chip-foreground:var(--color-docs-file-chip-foreground);--color-docs-command-accent:var(--color-docs-command-accent);--color-docs-code-background:var(--color-docs-code-background);--color-docs-install-rail:var(--color-docs-install-rail);--color-badge-neutral-background:var(--color-badge-neutral-background);--color-team-menu-count-background:var(--color-team-menu-count-background);--color-team-menu-count-foreground:var(--color-team-menu-count-foreground);--color-badge-new-background:var(--color-badge-new-background);--color-badge-new-text:var(--color-badge-new-text);--color-tab-count-selected-background:var(--color-tab-count-selected-background);--color-pill-tab-blue-selected-background:var(--color-pill-tab-blue-selected-background);--color-pill-tab-blue-hover-background:var(--color-pill-tab-blue-hover-background);--color-notification-information-background:var(--color-notification-information-background);--color-notification-information-foreground:var(--color-notification-information-foreground);--color-notification-success-background:var(--color-notification-success-background);--color-notification-success-foreground:var(--color-notification-success-foreground);--color-notification-error-background:var(--color-notification-error-background);--color-notification-error-foreground:var(--color-notification-error-foreground);--color-notification-center-background:var(--color-notification-center-background);--color-status-lime-background:var(--color-status-lime-background);--color-status-lime-text:var(--color-status-lime-text);--color-status-yellow-background:var(--color-status-yellow-background);--color-status-yellow-text:var(--color-status-yellow-text);--color-status-rose-background:var(--color-status-rose-background);--color-status-rose-text:var(--color-status-rose-text);--color-status-cyan-background:var(--color-status-cyan-background);--color-status-cyan-text:var(--color-status-cyan-text);--color-status-blue-background:var(--color-status-blue-background);--color-status-blue-text:var(--color-status-blue-text);--color-status-purple-background:var(--color-status-purple-background);--color-status-purple-text:var(--color-status-purple-text);--color-status-dot-green-halo:var(--color-status-dot-green-halo);--color-status-dot-yellow-halo:var(--color-status-dot-yellow-halo);--color-status-dot-indigo-halo:var(--color-status-dot-indigo-halo);--color-date-range-background:var(--color-date-range-background);--color-date-range-edge-background:var(--color-date-range-edge-background);--color-calendar-event-blue-background:var(--color-calendar-event-blue-background);--color-calendar-event-blue-title:var(--color-calendar-event-blue-title);--color-calendar-event-blue-time:var(--color-calendar-event-blue-time);--color-calendar-event-pink-background:var(--color-calendar-event-pink-background);--color-calendar-event-pink-title:var(--color-calendar-event-pink-title);--color-calendar-event-pink-time:var(--color-calendar-event-pink-time);--color-calendar-event-purple-background:var(--color-calendar-event-purple-background);--color-calendar-event-purple-title:var(--color-calendar-event-purple-title);--color-calendar-event-purple-time:var(--color-calendar-event-purple-time);--color-calendar-event-lime-background:var(--color-calendar-event-lime-background);--color-calendar-event-lime-title:var(--color-calendar-event-lime-title);--color-calendar-event-lime-time:var(--color-calendar-event-lime-time);--color-calendar-event-emerald-background:var(--color-calendar-event-emerald-background);--color-calendar-event-emerald-title:var(--color-calendar-event-emerald-title);--color-calendar-event-emerald-time:var(--color-calendar-event-emerald-time);--color-text-error-placeholder:var(--color-text-error-placeholder);--color-chart-track:var(--color-chart-track);--color-chart-cursor:var(--color-chart-cursor);--color-chart-neutral:var(--color-chart-neutral);--color-chart-1:var(--color-chart-1);--color-chart-1-active:var(--color-chart-1-active);--color-chart-2:var(--color-chart-2);--color-chart-2-active:var(--color-chart-2-active);--color-chart-3:var(--color-chart-3);--color-chart-3-active:var(--color-chart-3-active);--color-chart-4:var(--color-chart-4);--color-chart-4-active:var(--color-chart-4-active);--color-chart-5:var(--color-chart-5);--color-chart-5-active:var(--color-chart-5-active);--color-chart-6:var(--color-chart-6);--color-chart-6-active:var(--color-chart-6-active);--color-chart-7:var(--color-chart-7);--color-chart-7-active:var(--color-chart-7-active);--color-chart-8:var(--color-chart-8);--color-chart-8-active:var(--color-chart-8-active);--color-chart-9:var(--color-chart-9);--color-chart-9-active:var(--color-chart-9-active);--color-chart-agents-bar:var(--color-chart-agents-bar);--color-chart-agents-bar-active:var(--color-chart-agents-bar-active);--button-transition-ms:.15s;--input-transition-ms:.15s;--text-title-2-medium:1.25rem;--text-title-2-medium--line-height:1.625rem;--text-title-2-medium--letter-spacing:0;--text-title-2-medium--font-weight:500;--text-body-regular:.875rem;--text-body-regular--line-height:1.25rem;--text-body-regular--letter-spacing:0;--text-body-regular--font-weight:400;--text-body-medium:.875rem;--text-body-medium--line-height:1.25rem;--text-body-medium--letter-spacing:0;--text-body-medium--font-weight:500;--text-body-semibold:.875rem;--text-body-semibold--line-height:1.25rem;--text-body-semibold--letter-spacing:0;--text-body-semibold--font-weight:600;--text-body-2-regular:.8125rem;--text-body-2-regular--line-height:1.125rem;--text-body-2-regular--letter-spacing:0;--text-body-2-regular--font-weight:400;--text-body-2-medium:.8125rem;--text-body-2-medium--line-height:1.125rem;--text-body-2-medium--letter-spacing:0;--text-body-2-medium--font-weight:500;--text-caption-1-medium:.75rem;--text-caption-1-medium--line-height:1rem;--text-caption-1-medium--letter-spacing:.15px;--text-caption-1-medium--font-weight:500;--text-caption-1-semibold:.75rem;--text-caption-1-semibold--line-height:1rem;--text-caption-1-semibold--letter-spacing:.15px;--text-caption-1-semibold--font-weight:600}}.\@container{container-type:inline-size}.bg-button-danger{isolation:isolate;background-image:var(--gradient-button-danger-default);position:relative}.bg-button-danger:before{content:"";z-index:-1;pointer-events:none;border-radius:inherit;background-image:var(--gradient-button-danger-hover);opacity:0;transition:opacity var(--button-transition-ms) ease;position:absolute;inset:0}.bg-button-danger:hover:not(:disabled):not([aria-disabled=true]):before{opacity:1}.bg-button-danger:active:not(:disabled):not([aria-disabled=true]){background-image:var(--gradient-button-danger-active)}.bg-button-danger:active:not(:disabled):not([aria-disabled=true]):before{opacity:0}.bg-button-danger:disabled,.bg-button-danger[aria-disabled=true]{background-image:var(--gradient-button-danger-disabled)}.bg-button-danger:disabled:before,.bg-button-danger[aria-disabled=true]:before{display:none}.bg-button-primary{isolation:isolate;background-image:var(--gradient-button-primary-default);position:relative}.bg-button-primary:before{content:"";z-index:-1;pointer-events:none;border-radius:inherit;background-image:var(--gradient-button-primary-hover);opacity:0;transition:opacity var(--button-transition-ms) ease;position:absolute;inset:0}.bg-button-primary:hover:not(:disabled):not([aria-disabled=true]):before{opacity:1}.bg-button-primary:active:not(:disabled):not([aria-disabled=true]){background-image:var(--gradient-button-primary-active)}.bg-button-primary:active:not(:disabled):not([aria-disabled=true]):before{opacity:0}.bg-button-primary:disabled,.bg-button-primary[aria-disabled=true]{background-image:var(--gradient-button-primary-disabled)}.bg-button-primary:disabled:before,.bg-button-primary[aria-disabled=true]:before{display:none}.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 (width>=40rem){.container{max-width:40rem}}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}@media (width>=80rem){.container{max-width:80rem}}@media (width>=96rem){.container{max-width:96rem}}.m-0{margin:0}.mr-auto{margin-right:auto}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.-ml-3{margin-left:calc(var(--spacing) * -3)}.ml-0\.5{margin-left:calc(var(--spacing) * .5)}.flex{display:flex}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.inline-grid{display:inline-grid}.table{display:table}.size-3{width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.size-3\.5{width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-5{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.size-6{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.size-7{width:calc(var(--spacing) * 7);height:calc(var(--spacing) * 7)}.size-7\.5{width:calc(var(--spacing) * 7.5);height:calc(var(--spacing) * 7.5)}.size-8{width:calc(var(--spacing) * 8);height:calc(var(--spacing) * 8)}.size-9{width:calc(var(--spacing) * 9);height:calc(var(--spacing) * 9)}.size-10{width:calc(var(--spacing) * 10);height:calc(var(--spacing) * 10)}.size-\[5px\]{width:5px;height:5px}.size-\[7\.5px\]{width:7.5px;height:7.5px}.size-\[10px\]{width:10px;height:10px}.size-\[18px\]{width:18px;height:18px}.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-full{height:100%}.h-max{height:max-content}.max-h-\[240px\]{max-height:240px}.min-h-7{min-height:calc(var(--spacing) * 7)}.min-h-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-\[42px\]{width:42px}.w-\[202px\]{width:202px}.w-\[266px\]{width:266px}.w-fit{width:fit-content}.w-full{width:100%}.w-max{width:max-content}.max-w-140{max-width:calc(var(--spacing) * 140)}.max-w-\[calc\(100vw-32px\)\]{max-width:calc(100vw - 32px)}.max-w-full{max-width:100%}.min-w-0{min-width:0}.flex-1{flex:1}.flex-none{flex:none}.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-90{rotate:90deg}.rotate-180{rotate:180deg}.button-press-motion{transition:background-color var(--button-transition-ms) ease, border-color var(--button-transition-ms) ease, box-shadow var(--button-transition-ms) ease, color var(--button-transition-ms) ease, transform .42s cubic-bezier(.4, 0, .2, 1)}.button-press-motion:active:not(:disabled):not([aria-disabled=true]){transition-duration:.15s,.15s,.15s,.15s,.22s;transform:scale(.98)}.button-press-motion:disabled,.button-press-motion[aria-disabled=true]{transform:none}@media (prefers-reduced-motion:reduce){.button-press-motion{transition:none;transform:none}}.cursor-default{cursor:default}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.list-none{list-style-type:none}.grid-cols-1{grid-template-columns:repeat(1,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-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overscroll-x-contain{overscroll-behavior-x:contain}.rounded{border-radius:.25rem}.rounded-2lg{border-radius:var(--radius-2lg)}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-3xl{border-radius:var(--radius-3xl)}.rounded-\[0\.5px\]{border-radius:.5px}.rounded-\[0\.75px\]{border-radius:.75px}.rounded-\[1\.5px\]{border-radius:1.5px}.rounded-\[1px\]{border-radius:1px}.rounded-\[3px\]{border-radius:3px}.rounded-\[4\.5px\]{border-radius:4.5px}.rounded-full{border-radius:2147483647px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-sm{border-radius:var(--radius-sm)}.rounded-xs{border-radius:var(--radius-xs)}.rounded-b-2xl{border-bottom-right-radius:var(--radius-2xl);border-bottom-left-radius:var(--radius-2xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-\[0\.5px\]{border-style:var(--tw-border-style);border-width:.5px}.border-\[0\.25px\]{border-style:var(--tw-border-style);border-width:.25px}.border-\[0\.375px\]{border-style:var(--tw-border-style);border-width:.375px}.border-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-card-footer{background-color:var(--card-footer,transparent)}.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-blue-background{background-color:var(--color-status-blue-background)}.bg-status-cyan-background{background-color:var(--color-status-cyan-background)}.bg-status-lime-background{background-color:var(--color-status-lime-background)}.bg-status-purple-background{background-color:var(--color-status-purple-background)}.bg-status-rose-background{background-color:var(--color-status-rose-background)}.bg-status-yellow-background{background-color:var(--color-status-yellow-background)}.bg-transparent{background-color:#0000}.bg-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))}.stroke-current{stroke:currentColor}.stroke-2{stroke-width:2px}.p-0{padding:0}.p-1{padding:var(--spacing)}.p-2{padding:calc(var(--spacing) * 2)}.p-2\.5{padding:calc(var(--spacing) * 2.5)}.p-3{padding:calc(var(--spacing) * 3)}.p-8{padding:calc(var(--spacing) * 8)}.px-0\.5{padding-inline:calc(var(--spacing) * .5)}.px-1{padding-inline:var(--spacing)}.px-1\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-6{padding-inline:calc(var(--spacing) * 6)}.px-\[7px\]{padding-inline:7px}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:var(--spacing)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-12{padding-block:calc(var(--spacing) * 12)}.pt-3{padding-top:calc(var(--spacing) * 3)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pt-6{padding-top:calc(var(--spacing) * 6)}.pt-px{padding-top:1px}.pr-1{padding-right:var(--spacing)}.pr-1\.5{padding-right:calc(var(--spacing) * 1.5)}.pr-2{padding-right:calc(var(--spacing) * 2)}.pr-2\.5{padding-right:calc(var(--spacing) * 2.5)}.pr-3{padding-right:calc(var(--spacing) * 3)}.pl-1{padding-left:var(--spacing)}.pl-3{padding-left:calc(var(--spacing) * 3)}.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-body-semibold{font-size:var(--text-body-semibold);line-height:var(--tw-leading,var(--text-body-semibold--line-height));letter-spacing:var(--tw-tracking,var(--text-body-semibold--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-semibold--font-weight))}.text-caption-1-medium{font-size:var(--text-caption-1-medium);line-height:var(--tw-leading,var(--text-caption-1-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-caption-1-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-caption-1-medium--font-weight))}.text-caption-1-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-2-medium{font-size:var(--text-title-2-medium);line-height:var(--tw-leading,var(--text-title-2-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-title-2-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-title-2-medium--font-weight))}.break-all{word-break:break-all}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.text-\(--glass-text\)\/62{color:var(--glass-text)}@supports (color:color-mix(in lab, red, red)){.text-\(--glass-text\)\/62{color:color-mix(in oklab, var(--glass-text) 62%, transparent)}}.text-accent-600{color:var(--color-accent-600)}.text-button-ghost-foreground{color:var(--color-button-ghost-foreground)}.text-foreground-icon-error{color:var(--color-foreground-icon-error)}.text-foreground-icon-primary{color:var(--color-foreground-icon-primary)}.text-foreground-icon-quaternary{color:var(--color-foreground-icon-quaternary)}.text-foreground-icon-secondary{color:var(--color-foreground-icon-secondary)}.text-foreground-icon-tertiary{color:var(--color-foreground-icon-tertiary)}.text-input-disabled-foreground{color:var(--color-input-disabled-foreground)}.text-notification-information-foreground{color:var(--color-notification-information-foreground)}.text-notification-success-foreground{color:var(--color-notification-success-foreground)}.text-status-blue-text{color:var(--color-status-blue-text)}.text-status-cyan-text{color:var(--color-status-cyan-text)}.text-status-lime-text{color:var(--color-status-lime-text)}.text-status-purple-text{color:var(--color-status-purple-text)}.text-status-rose-text{color:var(--color-status-rose-text)}.text-status-yellow-text{color:var(--color-status-yellow-text)}.text-text-disabled{color:var(--color-text-disabled)}.text-text-error-primary{color:var(--color-text-error-primary)}.text-text-primary{color:var(--color-text-primary)}.text-text-secondary{color:var(--color-text-secondary)}.text-text-tertiary{color:var(--color-text-tertiary)}.text-text-white{color:var(--color-text-white)}.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:var(--elevation-dropdown);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-xs{--tw-shadow:var(--elevation-xs);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.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-\[padding\,font-size\]{transition-property:padding,font-size;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-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}.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-\(--glass-text\):hover{color:var(--glass-text)}.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)}.aria-selected\:bg-background-primary-default[aria-selected=true]{background-color:var(--color-background-primary-default)}.aria-selected\:text-text-primary[aria-selected=true]{color:var(--color-text-primary)}.aria-selected\:shadow-card[aria-selected=true]{--tw-shadow:var(--elevation-card);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.data-focus-visible\:ring-2[data-focus-visible]{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.data-focus-visible\:ring-border-focus-ring[data-focus-visible]{--tw-ring-color:var(--color-border-focus-ring)}.data-selected\:bg-background-primary-default[data-selected]{background-color:var(--color-background-primary-default)}.data-selected\:text-\(--glass-text\)[data-selected]{color:var(--glass-text)}.data-selected\:text-text-primary[data-selected]{color:var(--color-text-primary)}.data-selected\:shadow-card[data-selected]{--tw-shadow:var(--elevation-card);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.data-\[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%}@media not all and (width>=40rem){.max-sm\:p-5{padding:calc(var(--spacing) * 5)}.max-sm\:px-4{padding-inline:calc(var(--spacing) * 4)}.max-sm\:py-6{padding-block:calc(var(--spacing) * 6)}}@container (width>=32rem){.\@lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}.dark\:aria-selected\:bg-background-primary-hover:where(.dark,.dark *)[aria-selected=true],.dark\:data-selected\:bg-background-primary-hover:where(.dark,.dark *)[data-selected]{background-color:var(--color-background-primary-hover)}@scope(.peach-react){*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}:root{--color-foreground-full:var(--color-white);--color-foreground-icon-primary:var(--color-neutral-950);--color-foreground-icon-hover:var(--color-black);--color-foreground-icon-secondary:var(--color-neutral-500);--color-foreground-icon-tertiary:var(--color-neutral-400);--color-foreground-icon-quaternary:var(--color-neutral-300);--color-foreground-icon-error:var(--color-red-600);--color-foreground-icon-disabled:var(--color-neutral-300);--color-foreground-disabled:var(--color-neutral-400);--color-foreground-disabled-danger:var(--color-red-300);--color-input-disabled-foreground:var(--color-neutral-300);--color-icon-button-disabled-foreground:var(--color-neutral-300);--color-button-primary-disabled-foreground:var(--color-neutral-400);--color-text-primary:var(--color-neutral-950);--color-text-secondary:var(--color-neutral-500);--color-text-tertiary:var(--color-neutral-400);--color-text-disabled:var(--color-neutral-300);--color-text-disabled-danger:var(--color-red-300);--color-text-placeholder:var(--color-neutral-400);--color-text-error-primary:var(--color-red-500);--color-input-disabled-text:var(--color-neutral-300);--color-text-white:var(--color-white);--color-background-full:var(--color-white);--color-background-primary-default:var(--color-white);--color-background-inner-default:var(--color-white);--color-background-primary-hover:var(--color-neutral-100);--color-background-primary-active:var(--color-neutral-200);--color-background-primary-disabled:var(--color-neutral-100);--color-input-disabled-background:var(--color-neutral-100);--color-background-secondary-default:var(--color-neutral-100);--color-background-secondary-hover:var(--color-neutral-200);--color-background-tertiary-default:var(--color-neutral-200);--color-background-tertiary-hover:var(--color-neutral-300);--color-background-tertiary-error:var(--color-red-100);--color-background-recent-hire-role:var(--color-neutral-100);--color-avatar-neutral-background:var(--color-neutral-300);--color-background-quaternary-default:var(--color-neutral-300);--color-background-quaternary-hover:var(--color-neutral-400);--color-background-quaternary-error:var(--color-red-200);--color-file-upload-icon-background:var(--color-neutral-300);--color-file-upload-icon-foreground:var(--color-neutral-400);--color-file-upload-icon-foreground-hover:var(--color-neutral-500);--color-border-button-default:var(--color-neutral-200);--color-border-button-hover:var(--color-neutral-300);--color-border-button-active:var(--color-neutral-400);--color-border-button-white:var(--color-white);--color-border-error-default:var(--color-red-500);--color-border-checkbox-default:var(--color-neutral-300);--color-border-checkbox-hover:var(--color-neutral-400);--color-border-checkbox-active:var(--color-neutral-400);--color-border-checkbox-white:var(--color-white);--color-border-component-detail-container:var(--color-neutral-200);--color-border-ai-profile-card:var(--color-neutral-200);--color-border-table:var(--color-neutral-200);--color-border-button-group:var(--color-neutral-200);--color-border-sidebar-profile-hover:var(--color-neutral-300);--color-separator-border:var(--color-neutral-200);--color-separator-border-strong:var(--color-neutral-200);--color-border-focus-ring:var(--color-accent-500);--color-state-success-text:var(--color-lime-800);--color-state-success-base:var(--color-lime-200);--color-control-indicator-background:var(--color-white);--color-control-indicator-background-subtle:var(--color-neutral-100);--color-switch-off-chip-start:var(--color-white);--color-switch-off-chip-end:var(--color-neutral-100);--color-switch-on-chip-start:#2673fe}@supports (color:color-mix(in lab, red, red)){:root{--color-switch-on-chip-start:color-mix(in oklab, var(--color-accent-500) 63%, var(--color-accent-600))}}:root{--color-switch-on-chip-end:#144be9}@supports (color:color-mix(in lab, red, red)){:root{--color-switch-on-chip-end:color-mix(in oklab, var(--color-accent-600) 16%, var(--color-accent-700))}}:root{--color-stat-card-icon-background:var(--color-white);--color-segmented-control-background:var(--color-neutral-100);--color-segmented-control-selected-background:var(--color-white);--color-theme-toggle-sidebar-background:var(--color-neutral-200);--color-theme-toggle-sidebar-selected-background:var(--color-white);--color-ai-chat-composer-add-background:var(--color-neutral-100);--color-ai-chat-composer-add-hover-background:var(--color-neutral-200);--color-composer-panel-tab-background:var(--color-neutral-200);--color-composer-panel-add-background:var(--color-neutral-200);--color-composer-panel-add-hover-background:var(--color-neutral-300);--color-composer-panel-tile-border:var(--color-neutral-200);--color-composer-panel-rail-background:var(--color-neutral-100);--color-questionnaire-key-background:var(--color-neutral-100);--color-questionnaire-key-hover-background:var(--color-neutral-200);--color-agent-progress-ring:var(--color-neutral-700);--color-button-ghost-background:var(--color-accent-100);--color-button-ghost-hover:var(--color-accent-200);--color-button-ghost-active:var(--color-accent-300);--color-button-ghost-disabled:var(--color-accent-50);--color-button-ghost-foreground:var(--color-accent-700);--color-button-ghost-disabled-foreground:var(--color-accent-300);--color-dropdown-item-hover-background:var(--color-neutral-100);--color-kbd-background:var(--color-neutral-300);--color-kbd-foreground:var(--color-neutral-500);--color-docs-file-chip-background:var(--color-purple-50);--color-docs-file-chip-border:var(--color-purple-100);--color-docs-file-chip-foreground:var(--color-purple-500);--color-docs-command-accent:var(--color-purple-400);--color-docs-code-background:var(--color-background-primary-default);--color-docs-install-rail:var(--color-border-button-default);--color-badge-neutral-background:var(--color-neutral-200);--color-team-menu-count-background:var(--color-neutral-200);--color-team-menu-count-foreground:var(--color-neutral-500);--color-badge-new-background:var(--color-accent-100);--color-badge-new-text:var(--color-accent-600);--color-tab-count-selected-background:var(--color-accent-100);--color-pill-tab-blue-selected-background:var(--color-accent-50);--color-pill-tab-blue-hover-background:var(--color-neutral-100);--color-notification-information-background:var(--color-blue-100);--color-notification-information-foreground:var(--color-blue-600);--color-notification-success-background:var(--color-lime-100);--color-notification-success-foreground:var(--color-lime-600);--color-notification-error-background:var(--color-rose-100);--color-notification-error-foreground:var(--color-rose-600);--color-notification-center-background:var(--color-white);--color-status-lime-background:var(--color-lime-200);--color-status-lime-text:var(--color-lime-800);--color-status-yellow-background:var(--color-yellow-200);--color-status-yellow-text:var(--color-yellow-800);--color-status-rose-background:var(--color-rose-200);--color-status-rose-text:var(--color-rose-800);--color-status-cyan-background:var(--color-cyan-200);--color-status-cyan-text:var(--color-cyan-800);--color-status-blue-background:var(--color-blue-200);--color-status-blue-text:var(--color-blue-800);--color-status-purple-background:var(--color-purple-100);--color-status-purple-text:var(--color-purple-600);--color-status-dot-green-halo:var(--color-green-100);--color-status-dot-yellow-halo:var(--color-yellow-200);--color-status-dot-indigo-halo:var(--color-indigo-100);--color-date-range-background:var(--color-accent-100);--color-date-range-edge-background:var(--color-accent-300);--color-calendar-event-blue-background:var(--color-blue-100);--color-calendar-event-blue-title:var(--color-blue-700);--color-calendar-event-blue-time:var(--color-blue-700);--color-calendar-event-pink-background:var(--color-pink-100);--color-calendar-event-pink-title:var(--color-pink-700);--color-calendar-event-pink-time:var(--color-pink-700);--color-calendar-event-purple-background:var(--color-purple-100);--color-calendar-event-purple-title:var(--color-purple-700);--color-calendar-event-purple-time:var(--color-purple-700);--color-calendar-event-lime-background:var(--color-lime-100);--color-calendar-event-lime-title:var(--color-lime-800);--color-calendar-event-lime-time:var(--color-lime-700);--color-calendar-event-emerald-background:var(--color-emerald-100);--color-calendar-event-emerald-title:var(--color-emerald-800);--color-calendar-event-emerald-time:var(--color-emerald-700);--color-text-error-placeholder:var(--color-red-400);--color-chart-track:var(--color-neutral-200);--color-chart-cursor:var(--color-neutral-300);--color-chart-neutral:var(--color-neutral-300);--color-chart-1:var(--color-teal-400);--color-chart-1-active:var(--color-teal-500);--color-chart-2:var(--color-lime-400);--color-chart-2-active:var(--color-lime-500);--color-chart-3:var(--color-pink-400);--color-chart-3-active:var(--color-pink-500);--color-chart-4:var(--color-sky-400);--color-chart-4-active:var(--color-sky-500);--color-chart-5:var(--color-purple-400);--color-chart-5-active:var(--color-purple-500);--color-chart-6:var(--color-blue-400);--color-chart-6-active:var(--color-blue-500);--color-chart-7:var(--color-emerald-400);--color-chart-7-active:var(--color-emerald-500);--color-chart-8:var(--color-yellow-400);--color-chart-8-active:var(--color-yellow-500);--color-chart-9:var(--color-indigo-400);--color-chart-9-active:var(--color-indigo-500);--color-chart-agents-bar:var(--color-purple-300);--color-chart-agents-bar-active:var(--color-purple-400);--gradient-button-primary-default:linear-gradient(180deg, var(--color-accent-500) 0%, var(--color-accent-600) 100%);--gradient-button-primary-hover:linear-gradient(180deg, var(--color-accent-400) 0%, var(--color-accent-500) 100%);--gradient-button-primary-active:linear-gradient(180deg, var(--color-accent-600) 0%, var(--color-accent-700) 100%);--gradient-button-primary-disabled:linear-gradient(180deg, var(--color-neutral-200) 0%, var(--color-neutral-300) 100%);--gradient-button-danger-default:linear-gradient(180deg, var(--color-red-500) 0%, var(--color-red-600) 100%);--gradient-button-danger-hover:linear-gradient(180deg, var(--color-red-400) 0%, var(--color-red-500) 100%);--gradient-button-danger-active:linear-gradient(180deg, var(--color-red-600) 0%, var(--color-red-700) 100%);--gradient-button-danger-disabled:linear-gradient(180deg, var(--color-red-100) 0%, var(--color-red-200) 100%)}.dark{--color-foreground-full:var(--color-neutral-700);--color-foreground-icon-primary:var(--color-neutral-50);--color-foreground-icon-hover:var(--color-white);--color-foreground-icon-error:var(--color-red-400);--color-foreground-icon-tertiary:var(--color-neutral-600);--color-foreground-icon-quaternary:var(--color-neutral-700);--color-foreground-icon-disabled:var(--color-neutral-800);--color-foreground-disabled:var(--color-neutral-700);--color-foreground-disabled-danger:var(--color-red-400);--color-input-disabled-foreground:var(--color-neutral-600);--color-icon-button-disabled-foreground:var(--color-neutral-500);--color-button-primary-disabled-foreground:var(--color-neutral-500);--color-text-primary:var(--color-neutral-50);--color-text-tertiary:var(--color-neutral-600);--color-text-disabled:var(--color-neutral-800);--color-text-error-primary:var(--color-red-400);--color-input-disabled-text:#73737366}@supports (color:color-mix(in lab, red, red)){.dark{--color-input-disabled-text:color-mix(in srgb, var(--color-neutral-500) 40%, transparent)}}.dark{--color-background-full:var(--color-neutral-925);--color-background-primary-default:var(--color-neutral-800);--color-background-inner-default:#26262699}@supports (color:color-mix(in lab, red, red)){.dark{--color-background-inner-default:color-mix(in srgb, var(--color-neutral-800) 60%, transparent)}}.dark{--color-background-primary-hover:#40404099}@supports (color:color-mix(in lab, red, red)){.dark{--color-background-primary-hover:color-mix(in srgb, var(--color-neutral-700) 60%, transparent)}}.dark{--color-background-primary-active:var(--color-neutral-800);--color-background-primary-disabled:var(--color-neutral-800);--color-input-disabled-background:#2626264d}@supports (color:color-mix(in lab, red, red)){.dark{--color-input-disabled-background:color-mix(in srgb, var(--color-neutral-800) 30%, transparent)}}.dark{--color-switch-off-chip-start:var(--color-background-tertiary-default);--color-switch-off-chip-end:var(--color-background-tertiary-default);--color-background-secondary-default:var(--color-neutral-900);--color-background-secondary-hover:var(--color-neutral-800);--color-background-tertiary-default:var(--color-neutral-800);--color-background-tertiary-hover:var(--color-neutral-700);--color-background-tertiary-error:#46080999}@supports (color:color-mix(in lab, red, red)){.dark{--color-background-tertiary-error:color-mix(in srgb, var(--color-red-950) 60%, transparent)}}.dark{--color-background-quaternary-default:var(--color-neutral-700);--color-background-quaternary-hover:var(--color-neutral-600);--color-background-recent-hire-role:#17171799}@supports (color:color-mix(in lab, red, red)){.dark{--color-background-recent-hire-role:color-mix(in srgb, var(--color-neutral-900) 60%, transparent)}}.dark{--color-avatar-neutral-background:var(--color-background-primary-default);--color-file-upload-icon-background:var(--color-neutral-600);--color-file-upload-icon-foreground:var(--color-neutral-400);--color-file-upload-icon-foreground-hover:var(--color-neutral-300);--color-stat-card-icon-background:var(--color-neutral-800);--color-segmented-control-background:var(--color-neutral-925);--color-segmented-control-selected-background:var(--color-neutral-800);--color-theme-toggle-sidebar-background:var(--color-neutral-800);--color-theme-toggle-sidebar-selected-background:var(--color-neutral-700);--color-ai-chat-composer-add-background:var(--color-neutral-700);--color-ai-chat-composer-add-hover-background:var(--color-neutral-600);--color-composer-panel-tab-background:#40404080}@supports (color:color-mix(in lab, red, red)){.dark{--color-composer-panel-tab-background:color-mix(in srgb, var(--color-neutral-700) 50%, transparent)}}.dark{--color-composer-panel-add-background:var(--color-neutral-700);--color-composer-panel-add-hover-background:var(--color-neutral-600);--color-composer-panel-tile-border:#ffffff24}@supports (color:color-mix(in lab, red, red)){.dark{--color-composer-panel-tile-border:color-mix(in srgb, var(--color-white) 14%, transparent)}}.dark{--color-composer-panel-rail-background:#17171780}@supports (color:color-mix(in lab, red, red)){.dark{--color-composer-panel-rail-background:color-mix(in srgb, var(--color-neutral-900) 50%, transparent)}}.dark{--color-questionnaire-key-background:var(--color-neutral-700);--color-questionnaire-key-hover-background:var(--color-neutral-600);--color-agent-progress-ring:#ffffff80}@supports (color:color-mix(in lab, red, red)){.dark{--color-agent-progress-ring:color-mix(in srgb, var(--color-white) 50%, transparent)}}.dark{--color-button-ghost-background:var(--color-accent-900);--color-button-ghost-hover:var(--color-accent-800);--color-button-ghost-active:var(--color-accent-700);--color-button-ghost-disabled:var(--color-neutral-800);--color-button-ghost-foreground:var(--color-accent-300);--color-button-ghost-disabled-foreground:var(--color-neutral-600);--color-dropdown-item-hover-background:#40404099}@supports (color:color-mix(in lab, red, red)){.dark{--color-dropdown-item-hover-background:color-mix(in srgb, var(--color-neutral-700) 60%, transparent)}}.dark{--color-kbd-background:var(--color-neutral-700);--color-kbd-foreground:var(--color-neutral-400);--color-docs-file-chip-background:#3c036680}@supports (color:color-mix(in lab, red, red)){.dark{--color-docs-file-chip-background:color-mix(in srgb, var(--color-purple-950) 50%, transparent)}}.dark{--color-docs-file-chip-border:var(--color-purple-800);--color-docs-file-chip-foreground:var(--color-purple-400);--color-docs-code-background:var(--color-background-full);--color-docs-install-rail:#26262699}@supports (color:color-mix(in lab, red, red)){.dark{--color-docs-install-rail:color-mix(in srgb, var(--color-neutral-800) 60%, transparent)}}.dark{--shadow-2xs:0 1px #00000029;--shadow-xs:0 1px 2px 0 #0000002e;--shadow-sm:0 1px 2px 0 #0000001f, 0 1px 3px 0 #00000029;--shadow-md:0 2px 4px -1px #0000001f, 0 4px 6px -1px #0000002e;--shadow-lg:0 4px 6px -2px #0000001a, 0 10px 15px -3px #0000002e;--shadow-xl:0 10px 10px -5px #00000014, 0 20px 25px -5px #0003;--shadow-card:0 1px 1px 0 #00000024;--shadow-dropdown:0 1px 1px 0 #00000024, 0 4px 4px 0 #0000001a;--shadow-sidebar:0 1px 0 0 #0000001a, 0 1px 12px 0 #00000029, 0 0 1px 0 #0000006b;--shadow-waitlist:0 0 6px 0 #0000001f, 0 0 64px 0 #00000038, 0 0 1px 0 #0000006b, 0 1px 12px 0 #00000024, 0 1px 0 0 #00000014;--color-badge-neutral-background:var(--color-neutral-800);--color-team-menu-count-background:var(--color-neutral-700);--color-team-menu-count-foreground:var(--color-neutral-400);--color-badge-new-background:var(--color-accent-950);--color-badge-new-text:var(--color-accent-400);--color-tab-count-selected-background:#193cb899}@supports (color:color-mix(in lab, red, red)){.dark{--color-tab-count-selected-background:color-mix(in srgb, var(--color-accent-800) 60%, transparent)}}.dark{--color-notification-information-background:#193cb880}@supports (color:color-mix(in lab, red, red)){.dark{--color-notification-information-background:color-mix(in srgb, var(--color-blue-800) 50%, transparent)}}.dark{--color-notification-information-foreground:var(--color-blue-300);--color-notification-success-background:#3d630080}@supports (color:color-mix(in lab, red, red)){.dark{--color-notification-success-background:color-mix(in srgb, var(--color-lime-800) 50%, transparent)}}.dark{--color-notification-success-foreground:var(--color-lime-300);--color-notification-error-background:#a3003780}@supports (color:color-mix(in lab, red, red)){.dark{--color-notification-error-background:color-mix(in srgb, var(--color-rose-800) 50%, transparent)}}.dark{--color-notification-error-foreground:var(--color-rose-300);--color-notification-center-background:var(--color-neutral-900);--color-border-button-default:var(--color-neutral-700);--color-border-button-hover:var(--color-neutral-500);--color-border-button-active:var(--color-neutral-600);--color-border-button-white:var(--color-zinc-800);--color-border-error-default:var(--color-red-400);--color-border-checkbox-default:var(--color-neutral-700);--color-border-checkbox-hover:var(--color-neutral-500);--color-border-checkbox-active:var(--color-neutral-500);--color-border-component-detail-container:var(--color-neutral-800);--color-border-ai-profile-card:var(--color-neutral-800);--color-border-table:var(--color-neutral-800);--color-border-button-group:#52525299}@supports (color:color-mix(in lab, red, red)){.dark{--color-border-button-group:color-mix(in srgb, var(--color-neutral-600) 60%, transparent)}}.dark{--color-border-sidebar-profile-hover:var(--color-neutral-600);--color-separator-border:var(--color-neutral-800);--color-separator-border-strong:#40404099}@supports (color:color-mix(in lab, red, red)){.dark{--color-separator-border-strong:color-mix(in srgb, var(--color-neutral-700) 60%, transparent)}}.dark{--color-status-lime-background:#192e0399}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-lime-background:color-mix(in srgb, var(--color-lime-950) 60%, transparent)}}.dark{--color-status-lime-text:var(--color-lime-500);--color-status-yellow-background:#43200499}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-yellow-background:color-mix(in srgb, var(--color-yellow-950) 60%, transparent)}}.dark{--color-status-yellow-text:var(--color-yellow-500);--color-status-rose-background:#4d021899}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-rose-background:color-mix(in srgb, var(--color-rose-950) 60%, transparent)}}.dark{--color-status-rose-text:var(--color-rose-500);--color-status-cyan-background:#05334599}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-cyan-background:color-mix(in srgb, var(--color-cyan-950) 60%, transparent)}}.dark{--color-status-cyan-text:var(--color-cyan-400);--color-status-blue-background:#16245699}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-blue-background:color-mix(in srgb, var(--color-blue-950) 60%, transparent)}}.dark{--color-status-blue-text:var(--color-blue-300);--color-status-purple-background:#59168b80}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-purple-background:color-mix(in srgb, var(--color-purple-900) 50%, transparent)}}.dark{--color-status-purple-text:var(--color-purple-300);--color-status-dot-green-halo:#01663066}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-dot-green-halo:color-mix(in srgb, var(--color-green-800) 40%, transparent)}}.dark{--color-status-dot-yellow-halo:#874b0066}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-dot-yellow-halo:color-mix(in srgb, var(--color-yellow-800) 40%, transparent)}}.dark{--color-status-dot-indigo-halo:#372aac66}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-dot-indigo-halo:color-mix(in srgb, var(--color-indigo-800) 40%, transparent)}}.dark{--color-date-range-background:var(--color-accent-950);--color-date-range-edge-background:var(--color-accent-800);--color-pill-tab-blue-selected-background:#16245699}@supports (color:color-mix(in lab, red, red)){.dark{--color-pill-tab-blue-selected-background:color-mix(in srgb, var(--color-accent-950) 60%, transparent)}}.dark{--color-pill-tab-blue-hover-background:var(--color-neutral-800);--color-calendar-event-blue-background:var(--color-blue-950);--color-calendar-event-blue-title:var(--color-blue-300);--color-calendar-event-blue-time:var(--color-blue-300);--color-calendar-event-pink-background:var(--color-pink-950);--color-calendar-event-pink-title:var(--color-pink-300);--color-calendar-event-pink-time:var(--color-pink-300);--color-calendar-event-purple-background:var(--color-purple-950);--color-calendar-event-purple-title:var(--color-purple-300);--color-calendar-event-purple-time:var(--color-purple-300);--color-calendar-event-lime-background:var(--color-lime-950);--color-calendar-event-lime-title:var(--color-lime-300);--color-calendar-event-lime-time:var(--color-lime-300);--color-calendar-event-emerald-background:var(--color-emerald-950);--color-calendar-event-emerald-title:var(--color-emerald-300);--color-calendar-event-emerald-time:var(--color-emerald-300);--gradient-button-primary-disabled:linear-gradient(180deg, var(--color-neutral-700) 0%, var(--color-neutral-800) 100%);--gradient-button-danger-disabled:linear-gradient(180deg, var(--color-red-900) 0%, var(--color-red-950) 100%);--color-chart-track:var(--color-neutral-800);--color-chart-cursor:var(--color-neutral-700);--color-chart-neutral:var(--color-neutral-800);--color-chart-agents-bar:var(--color-purple-500);--color-chart-agents-bar-active:var(--color-purple-600)}.dark[data-accent]{--color-badge-new-background:#16245680}@supports (color:color-mix(in lab, red, red)){.dark[data-accent]{--color-badge-new-background:color-mix(in srgb, var(--color-accent-950) 50%, transparent)}}.peach-react [data-surface-host]{isolation:isolate;position:relative}.peach-react [data-moving-surface]{pointer-events:none;transform-origin:0 0;z-index:-1;position:absolute;top:0;left:0}.peach-react [data-moving-surface=selection]{border-radius:var(--radius-md);background:var(--color-background-primary-default);box-shadow:var(--shadow-card)}.dark .peach-react [data-moving-surface=selection]{background:var(--color-background-primary-hover)}.peach-react [data-surface-host=selection][data-surface-ready] :is([data-selected],[aria-selected=true]){--tw-shadow:0 0 transparent;background:0 0}.peach-react [data-moving-surface=hover]{border-radius:var(--radius-2lg);background:var(--color-dropdown-item-hover-background)}@media (hover:hover) and (pointer:fine){.peach-react [data-surface-host=hover][data-surface-ready] button:is(:hover,:focus-visible){background:0 0}}.peach-react [data-modal-motion]{transition:opacity .2s var(--ease-out)}.peach-react [data-modal-surface]{transition:transform .2s var(--ease-out), opacity .2s var(--ease-out)}.peach-react [data-modal-motion]:is([data-entering],[data-exiting]){opacity:0}.peach-react [data-modal-surface]:is([data-entering],[data-exiting]){opacity:0;transform:scale(.98)}.peach-react [data-modal-motion][data-exiting],.peach-react [data-modal-surface][data-exiting]{transition-duration:.12s}.peach-react [data-modal-motion][data-motion-instant],.peach-react [data-modal-motion][data-motion-instant] [data-modal-surface]{transition:none}@media (prefers-reduced-motion:reduce){.peach-react [data-modal-motion],.peach-react [data-modal-surface]{transition:none}}:root{--font-inter:"Inter Variable", "Inter";--elevation-2xs:0 1px #0000000d;--elevation-xs:0 1px 2px 0 #0000000d;--elevation-sm:0 1px 2px 0 #0000000f, 0 1px 3px 0 #0000001a;--elevation-md:0 2px 4px -1px #0000000f, 0 4px 6px -1px #0000001a;--elevation-lg:0 4px 6px -2px #0000000d, 0 10px 15px -3px #0000001a;--elevation-xl:0 10px 10px -5px #0000000a, 0 20px 25px -5px #0000001a;--elevation-card:0 1px 1px 0 #0000000d;--elevation-dropdown:0 1px 1px 0 #0000000a, 0 4px 4px 0 #00000005;--elevation-sidebar:0 1px 0 0 #00000005, 0 1px 12px 0 #0000000f, 0 0 1px 0 #00000052;--elevation-waitlist:0 0 6px 0 #0000000f, 0 0 64px 0 #00000029, 0 0 1px 0 #00000052, 0 1px 12px 0 #0000000f, 0 1px 0 0 #00000005}.dark{--elevation-2xs:0 1px #00000029;--elevation-xs:0 1px 2px 0 #0000002e;--elevation-sm:0 1px 2px 0 #0000001f, 0 1px 3px 0 #00000029;--elevation-md:0 2px 4px -1px #0000001f, 0 4px 6px -1px #0000002e;--elevation-lg:0 4px 6px -2px #0000001a, 0 10px 15px -3px #0000002e;--elevation-xl:0 10px 10px -5px #00000014, 0 20px 25px -5px #0003;--elevation-card:0 1px 1px 0 #00000024;--elevation-dropdown:0 1px 1px 0 #00000024, 0 4px 4px 0 #0000001a;--elevation-sidebar:0 1px 0 0 #0000001a, 0 1px 12px 0 #00000029, 0 0 1px 0 #0000006b;--elevation-waitlist:0 0 6px 0 #0000001f, 0 0 64px 0 #00000038, 0 0 1px 0 #0000006b, 0 1px 12px 0 #00000024, 0 1px 0 0 #00000014}.peach-react{font-family:var(--font-sans);color:var(--color-text-primary);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-variant-ligatures:contextual;font-kerning:normal;--color-text-primary:var(--color-neutral-950);--color-text-secondary:var(--color-neutral-500);--color-text-tertiary:var(--color-neutral-400);--color-text-disabled:var(--color-neutral-300);--color-text-white:var(--color-white);--color-background-full:var(--color-white);--color-background-primary-default:var(--color-white);--color-background-primary-hover:var(--color-neutral-100);--color-background-secondary-default:var(--color-neutral-100);--color-background-tertiary-default:var(--color-neutral-200);--color-border-button-default:var(--color-neutral-200);--color-border-button-hover:var(--color-neutral-300);--color-border-button-active:var(--color-neutral-400);--color-border-checkbox-default:var(--color-neutral-300);--color-border-checkbox-hover:var(--color-neutral-400);--color-border-focus-ring:var(--color-accent-500);--color-separator-border:var(--color-neutral-200);line-height:1.5}.dark .peach-react{--color-text-primary:var(--color-neutral-50);--color-text-tertiary:var(--color-neutral-600);--color-text-disabled:var(--color-neutral-800);--color-background-full:var(--color-neutral-925);--color-background-primary-default:var(--color-neutral-800);--color-background-primary-hover:#40404099}@supports (color:color-mix(in lab, red, red)){.dark .peach-react{--color-background-primary-hover:color-mix(in srgb, var(--color-neutral-700) 60%, transparent)}}.dark .peach-react{--color-background-secondary-default:var(--color-neutral-900);--color-background-tertiary-default:var(--color-neutral-800);--color-border-button-default:var(--color-neutral-700);--color-border-button-hover:var(--color-neutral-500);--color-border-button-active:var(--color-neutral-600);--color-border-checkbox-default:var(--color-neutral-600);--color-border-checkbox-hover:var(--color-neutral-500);--color-separator-border:var(--color-neutral-700)}:where(.peach-react){--card-footer:var(--color-background-secondary-default)}@supports (color:color-mix(in lab, red, red)){:where(.peach-react){--card-footer:color-mix(in srgb, var(--color-background-secondary-default) 98%, var(--color-text-primary))}}:where(.peach-react){--card-hover:var(--color-background-secondary-default)}@supports (color:color-mix(in lab, red, red)){:where(.peach-react){--card-hover:color-mix(in srgb, var(--color-background-secondary-default) 95%, var(--color-text-primary))}}.peach-react button[aria-haspopup=listbox]{height:calc(var(--spacing) * 9);padding-block:0}.peach-react button[aria-haspopup=listbox][class~=text-body-2-medium]{height:calc(var(--spacing) * 8)}.peach-react [data-input-size]>div[data-rac]:not([data-hovered]):not([data-focus-within]){outline:1px solid var(--color-border-button-default);outline-offset:-1px}.peach-react [class~=overflow-x-auto]{scrollbar-width:none}.peach-react [class~=overflow-x-auto]::-webkit-scrollbar{display:none}body.peach-react{background-color:var(--color-background-full);min-height:100dvh}.fcollapse{transition:height .2s ease-in-out;overflow:hidden}.fcollapse.fcollapse-settled{overflow:visible}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-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 file
diff --git a/web/dist/peach-pages.js b/web/dist/peach-pages.js
index 1419436e0..2f1a93444 100644
--- a/web/dist/peach-pages.js
+++ b/web/dist/peach-pages.js
@@ -1212,11 +1212,11 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
I.p = n;
}
}
- var yt = Math.random().toString(36).slice(2), bt = "__reactFiber$" + yt, xt = "__reactProps$" + yt, St = "__reactContainer$" + yt, Ct = "__reactEvents$" + yt, wt = "__reactListeners$" + yt, Tt = "__reactHandles$" + yt, Et = "__reactResources$" + yt, Dt = "__reactMarker$" + yt, Ot = "__reactLoad$" + yt;
- function kt(e) {
+ var yt = Math.random().toString(36).slice(2), bt = "__reactFiber$" + yt, xt = "__reactProps$" + yt, St = "__reactContainer$" + yt, Ct = "__reactEvents$" + yt, wt = "__reactListeners$" + yt, Tt = "__reactHandles$" + yt, Et = "__reactResources$" + yt, Dt = "__reactMarker$" + yt, V = "__reactLoad$" + yt;
+ function Ot(e) {
delete e[bt], delete e[xt], delete e[wt], delete e[Tt];
}
- function At(e) {
+ function kt(e) {
var t;
if (t = e[bt]) return t;
for (var n = e.parentNode; n;) {
@@ -1231,49 +1231,49 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
}
return null;
}
- function jt(e) {
+ function At(e) {
if (e = e[bt] || e[St]) {
var t = e.tag;
if (t === 5 || t === 6 || t === 13 || t === 31 || t === 26 || t === 27 || t === 3) return e;
}
return null;
}
- function Mt(e) {
+ function jt(e) {
var t = e.tag;
if (t === 5 || t === 26 || t === 27 || t === 6) return e.stateNode;
throw Error(i(33));
}
- function Nt(e) {
+ function Mt(e) {
var t = e[Et];
return t ||= e[Et] = {
hoistableStyles: /* @__PURE__ */ new Map(),
hoistableScripts: /* @__PURE__ */ new Map()
}, t;
}
- function Pt(e) {
+ function Nt(e) {
e[Dt] = !0;
}
- function Ft(e) {
- e[Ot] = void 0;
+ function Pt(e) {
+ e[V] = void 0;
+ }
+ var Ft = /* @__PURE__ */ new Set(), It = {};
+ function Lt(e, t) {
+ Rt(e, t), Rt(e + "Capture", t);
}
- var It = /* @__PURE__ */ new Set(), Lt = {};
function Rt(e, t) {
- zt(e, t), zt(e + "Capture", t);
- }
- function zt(e, t) {
- for (Lt[e] = t, e = 0; e < t.length; e++) It.add(t[e]);
+ for (It[e] = t, e = 0; e < t.length; e++) Ft.add(t[e]);
}
- var Bt = 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]*$"), Vt = {}, Ht = {};
- function Ut(e) {
- return R.call(Ht, e) ? !0 : R.call(Vt, e) ? !1 : Bt.test(e) ? Ht[e] = !0 : (Vt[e] = !0, !1);
+ var zt = 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]*$"), Bt = {}, Vt = {};
+ function Ht(e) {
+ return R.call(Vt, e) ? !0 : R.call(Bt, e) ? !1 : zt.test(e) ? Vt[e] = !0 : (Bt[e] = !0, !1);
}
- var V = !1;
- function Wt() {
- var e = V;
- return V = !1, e;
+ var H = !1;
+ function Ut() {
+ var e = H;
+ return H = !1, e;
}
- function Gt(e, t, n) {
- if (Ut(t)) {
+ function Wt(e, t, n) {
+ if (Ht(t)) {
if (n === null) e.removeAttribute(t);
else {
switch (typeof n) {
@@ -1293,7 +1293,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
}
}
}
- function Kt(e, t, n) {
+ function Gt(e, t, n) {
if (n === null) e.removeAttribute(t);
else {
switch (typeof n) {
@@ -1307,7 +1307,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
e.setAttribute(t, n);
}
}
- function qt(e, t, n, r) {
+ function Kt(e, t, n, r) {
if (r === null) e.removeAttribute(n);
else {
switch (typeof r) {
@@ -1321,7 +1321,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
e.setAttributeNS(t, n, r);
}
}
- function Jt(e) {
+ function qt(e) {
switch (typeof e) {
case "bigint":
case "boolean":
@@ -1332,11 +1332,11 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
default: return "";
}
}
- function Yt(e) {
+ function Jt(e) {
var t = e.type;
return (e = e.nodeName) && e.toLowerCase() === "input" && (t === "checkbox" || t === "radio");
}
- function Xt(e, t, n) {
+ function Yt(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;
@@ -1361,48 +1361,48 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
};
}
}
- function Zt(e) {
+ function Xt(e) {
if (!e._valueTracker) {
- var t = Yt(e) ? "checked" : "value";
- e._valueTracker = Xt(e, t, "" + e[t]);
+ var t = Jt(e) ? "checked" : "value";
+ e._valueTracker = Yt(e, t, "" + e[t]);
}
}
- function Qt(e) {
+ function U(e) {
if (!e) return !1;
var t = e._valueTracker;
if (!t) return !0;
var n = t.getValue(), r = "";
- return e && (r = Yt(e) ? e.checked ? "true" : "false" : e.value), e = r, e !== n && (t.setValue(e), !0);
+ return e && (r = Jt(e) ? e.checked ? "true" : "false" : e.value), e = r, e !== n && (t.setValue(e), !0);
}
- var $t = /[\n"\\]/g;
- function en(e) {
- return e.replace($t, function(e) {
+ var Zt = /[\n"\\]/g;
+ function Qt(e) {
+ return e.replace(Zt, function(e) {
return "\\" + e.charCodeAt(0).toString(16) + " ";
});
}
- function tn(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 = "" + Jt(t)) : e.value !== "" + Jt(t) && (e.value = "" + Jt(t)), t == null ? n == null ? r != null && e.removeAttribute("value") : H(e, Jt(n)) : o === "number" && e.value == t ? H(e, Jt(e.value)) : H(e, Jt(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 = "" + Jt(s) : e.removeAttribute("name");
+ function $t(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 = "" + qt(t)) : e.value !== "" + qt(t) && (e.value = "" + qt(t)), t == null ? n == null ? r != null && e.removeAttribute("value") : tn(e, qt(n)) : o === "number" && e.value == t ? tn(e, qt(e.value)) : tn(e, qt(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 = "" + qt(s) : e.removeAttribute("name");
}
- function nn(e, t, n, r, i, a, o, s) {
+ function en(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)) {
- Zt(e);
+ Xt(e);
return;
}
- n = n == null ? "" : "" + Jt(n), t = t == null ? n : "" + Jt(t), s || t === e.value || (e.value = t), e.defaultValue = t;
+ n = n == null ? "" : "" + qt(n), t = t == null ? n : "" + qt(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), Zt(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), Xt(e);
}
- function H(e, t) {
+ function tn(e, t) {
e.defaultValue !== "" + t && (e.defaultValue = "" + t);
}
- function rn(e, t, n, r) {
+ function nn(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 = "" + Jt(n), t = null, i = 0; i < e.length; i++) {
+ for (n = "" + qt(n), t = null, i = 0; i < e.length; i++) {
if (e[i].value === n) {
e[i].selected = !0, r && (e[i].defaultSelected = !0);
return;
@@ -1412,14 +1412,14 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
t !== null && (t.selected = !0);
}
}
- function an(e, t, n) {
- if (t != null && (t = "" + Jt(t), t !== e.value && (e.value = t), n == null)) {
+ function rn(e, t, n) {
+ if (t != null && (t = "" + qt(t), t !== e.value && (e.value = t), n == null)) {
e.defaultValue !== t && (e.defaultValue = t);
return;
}
- e.defaultValue = n == null ? "" : "" + Jt(n);
+ e.defaultValue = n == null ? "" : "" + qt(n);
}
- function on(e, t, n, r) {
+ function an(e, t, n, r) {
if (t == null) {
if (r != null) {
if (n != null) throw Error(i(92));
@@ -1431,9 +1431,9 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
}
n ??= "", t = n;
}
- n = Jt(t), e.defaultValue = n, r = e.textContent, r === n && r !== "" && r !== null && (e.value = r), Zt(e);
+ n = qt(t), e.defaultValue = n, r = e.textContent, r === n && r !== "" && r !== null && (e.value = r), Xt(e);
}
- function sn(e, t) {
+ function on(e, t) {
if (t) {
var n = e.firstChild;
if (n && n === e.lastChild && n.nodeType === 3) {
@@ -1443,19 +1443,19 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
}
e.textContent = t;
}
- var cn = 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 ln(e, t, n) {
+ var sn = 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 cn(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 || cn.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 || sn.has(t) ? t === "float" ? e.cssFloat = n : e[t] = ("" + n).trim() : e[t] = n + "px";
}
- function un(e, t, n) {
+ function ln(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] = "", V = !0);
- for (var a in t) r = t[a], t.hasOwnProperty(a) && n[a] !== r && (ln(e, a, r), V = !0);
- } else for (var o in t) t.hasOwnProperty(o) && ln(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 && (cn(e, a, r), H = !0);
+ } else for (var o in t) t.hasOwnProperty(o) && cn(e, o, t[o]);
}
- function dn(e) {
+ function un(e) {
if (e.indexOf("-") === -1) return !1;
switch (e) {
case "annotation-xml":
@@ -1469,7 +1469,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
default: return !0;
}
}
- var fn = /* @__PURE__ */ new Map([
+ var W = /* @__PURE__ */ new Map([
["acceptCharset", "accept-charset"],
["htmlFor", "for"],
["httpEquiv", "http-equiv"],
@@ -1549,53 +1549,53 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
["writingMode", "writing-mode"],
["xmlnsXlink", "xmlns:xlink"],
["xHeight", "x-height"]
- ]), pn = /^[\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 mn(e) {
- return pn.test("" + e) ? "javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')" : e;
+ ]), dn = /^[\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 fn(e) {
+ return dn.test("" + e) ? "javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')" : e;
}
- function hn() {}
- var gn = null;
- function _n(e) {
+ function pn() {}
+ var mn = null;
+ function hn(e) {
return e = e.target || e.srcElement || window, e.correspondingUseElement && (e = e.correspondingUseElement), e.nodeType === 3 ? e.parentNode : e;
}
- var vn = null, yn = null;
- function bn(e) {
- var t = jt(e);
+ var gn = null, _n = null;
+ function vn(e) {
+ var t = At(e);
if (t && (e = t.stateNode)) {
var n = e[xt] || null;
a: switch (e = t.stateNode, t.type) {
case "input":
- if (tn(e, n.value, n.defaultValue, n.defaultValue, n.checked, n.defaultChecked, n.type, n.name), t = n.name, n.type === "radio" && t != null) {
+ if ($t(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=\"" + en("" + t) + "\"][type=\"radio\"]"), t = 0; t < n.length; t++) {
+ for (n = n.querySelectorAll("input[name=\"" + Qt("" + t) + "\"][type=\"radio\"]"), t = 0; t < n.length; t++) {
var r = n[t];
if (r !== e && r.form === e.form) {
var a = r[xt] || null;
if (!a) throw Error(i(90));
- tn(r, a.value, a.defaultValue, a.defaultValue, a.checked, a.defaultChecked, a.type, a.name);
+ $t(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 && Qt(r);
+ for (t = 0; t < n.length; t++) r = n[t], r.form === e.form && U(r);
}
break a;
case "textarea":
- an(e, n.value, n.defaultValue);
+ rn(e, n.value, n.defaultValue);
break a;
- case "select": t = n.value, t != null && rn(e, !!n.multiple, t, !1);
+ case "select": t = n.value, t != null && nn(e, !!n.multiple, t, !1);
}
}
}
- var xn = !1;
- function Sn(e, t, n) {
- if (xn) return e(t, n);
- xn = !0;
+ var yn = !1;
+ function G(e, t, n) {
+ if (yn) return e(t, n);
+ yn = !0;
try {
return e(t);
} finally {
- if (xn = !1, (vn !== null || yn !== null) && (Ld(), vn && (t = vn, e = yn, yn = vn = null, bn(t), e))) for (t = 0; t < e.length; t++) bn(e[t]);
+ if (yn = !1, (gn !== null || _n !== null) && (Ld(), gn && (t = gn, e = _n, _n = gn = null, vn(t), e))) for (t = 0; t < e.length; t++) vn(e[t]);
}
}
- function Cn(e, t) {
+ function bn(e, t) {
var n = e.stateNode;
if (n === null) return null;
var r = n[xt] || null;
@@ -1621,54 +1621,54 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
if (n && typeof n != "function") throw Error(i(231, t, typeof n));
return n;
}
- var wn = !(typeof window > "u" || window.document === void 0 || window.document.createElement === void 0), Tn = !1;
- if (wn) try {
- var En = {};
- Object.defineProperty(En, "passive", { get: function() {
- Tn = !0;
- } }), window.addEventListener("test", En, En), window.removeEventListener("test", En, En);
+ var K = !(typeof window > "u" || window.document === void 0 || window.document.createElement === void 0), xn = !1;
+ if (K) try {
+ var Sn = {};
+ Object.defineProperty(Sn, "passive", { get: function() {
+ xn = !0;
+ } }), window.addEventListener("test", Sn, Sn), window.removeEventListener("test", Sn, Sn);
} catch {
- Tn = !1;
+ xn = !1;
}
- var Dn = null, U = null, On = null;
- function kn() {
- if (On) return On;
- var e, t = U, n = t.length, r, i = "value" in Dn ? Dn.value : Dn.textContent, a = i.length;
+ var Cn = null, wn = null, Tn = null;
+ function En() {
+ if (Tn) return Tn;
+ var e, t = wn, n = t.length, r, i = "value" in Cn ? Cn.value : Cn.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 On = i.slice(e, 1 < r ? 1 - r : void 0);
+ return Tn = i.slice(e, 1 < r ? 1 - r : void 0);
}
- function An(e) {
+ function Dn(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 jn() {
+ function On() {
return !0;
}
- function Mn() {
+ function kn() {
return !1;
}
- function Nn(e) {
+ function An(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) ? jn : Mn, this.isPropagationStopped = Mn, this;
+ return this.isDefaultPrevented = (i.defaultPrevented == null ? !1 === i.returnValue : i.defaultPrevented) ? On : kn, this.isPropagationStopped = kn, this;
}
return D(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 = jn);
+ e && (e.preventDefault ? e.preventDefault() : typeof e.returnValue != "unknown" && (e.returnValue = !1), this.isDefaultPrevented = On);
},
stopPropagation: function() {
var e = this.nativeEvent;
- e && (e.stopPropagation ? e.stopPropagation() : typeof e.cancelBubble != "unknown" && (e.cancelBubble = !0), this.isPropagationStopped = jn);
+ e && (e.stopPropagation ? e.stopPropagation() : typeof e.cancelBubble != "unknown" && (e.cancelBubble = !0), this.isPropagationStopped = On);
},
persist: function() {},
- isPersistent: jn
+ isPersistent: On
}), t;
}
- var Pn = {
+ var jn = {
eventPhase: 0,
bubbles: 0,
cancelable: 0,
@@ -1677,10 +1677,10 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
},
defaultPrevented: 0,
isTrusted: 0
- }, Fn = Nn(Pn), In = D({}, Pn, {
+ }, Mn = An(jn), Nn = D({}, jn, {
view: 0,
detail: 0
- }), Ln = Nn(In), Rn, zn, Bn, W = D({}, In, {
+ }), Pn = An(Nn), Fn, In, Ln, Rn = D({}, Nn, {
screenX: 0,
screenY: 0,
clientX: 0,
@@ -1691,25 +1691,25 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
shiftKey: 0,
altKey: 0,
metaKey: 0,
- getModifierState: Xn,
+ getModifierState: Yn,
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 !== Bn && (Bn && e.type === "mousemove" ? (Rn = e.screenX - Bn.screenX, zn = e.screenY - Bn.screenY) : zn = Rn = 0, Bn = e), Rn);
+ return "movementX" in e ? e.movementX : (e !== Ln && (Ln && e.type === "mousemove" ? (Fn = e.screenX - Ln.screenX, In = e.screenY - Ln.screenY) : In = Fn = 0, Ln = e), Fn);
},
movementY: function(e) {
- return "movementY" in e ? e.movementY : zn;
+ return "movementY" in e ? e.movementY : In;
}
- }), Vn = Nn(W), Hn = Nn(D({}, W, { dataTransfer: 0 })), Un = Nn(D({}, In, { relatedTarget: 0 })), Wn = Nn(D({}, Pn, {
+ }), zn = An(Rn), Bn = An(D({}, Rn, { dataTransfer: 0 })), Vn = An(D({}, Nn, { relatedTarget: 0 })), Hn = An(D({}, jn, {
animationName: 0,
elapsedTime: 0,
pseudoElement: 0
- })), Gn = Nn(D({}, Pn, { clipboardData: function(e) {
+ })), Un = An(D({}, jn, { clipboardData: function(e) {
return "clipboardData" in e ? e.clipboardData : window.clipboardData;
- } })), Kn = Nn(D({}, Pn, { data: 0 })), qn = {
+ } })), Wn = An(D({}, jn, { data: 0 })), Gn = {
Esc: "Escape",
Spacebar: " ",
Left: "ArrowLeft",
@@ -1722,7 +1722,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
Apps: "ContextMenu",
Scroll: "ScrollLock",
MozPrintableKey: "Unidentified"
- }, Jn = {
+ }, Kn = {
8: "Backspace",
9: "Tab",
12: "Clear",
@@ -1759,26 +1759,26 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
144: "NumLock",
145: "ScrollLock",
224: "Meta"
- }, Yn = {
+ }, qn = {
Alt: "altKey",
Control: "ctrlKey",
Meta: "metaKey",
Shift: "shiftKey"
};
- function G(e) {
+ function Jn(e) {
var t = this.nativeEvent;
- return t.getModifierState ? t.getModifierState(e) : (e = Yn[e]) ? !!t[e] : !1;
+ return t.getModifierState ? t.getModifierState(e) : (e = qn[e]) ? !!t[e] : !1;
}
- function Xn() {
- return G;
+ function Yn() {
+ return Jn;
}
- var K = Nn(D({}, In, {
+ var Xn = An(D({}, Nn, {
key: function(e) {
if (e.key) {
- var t = qn[e.key] || e.key;
+ var t = Gn[e.key] || e.key;
if (t !== "Unidentified") return t;
}
- return e.type === "keypress" ? (e = An(e), e === 13 ? "Enter" : String.fromCharCode(e)) : e.type === "keydown" || e.type === "keyup" ? Jn[e.keyCode] || "Unidentified" : "";
+ return e.type === "keypress" ? (e = Dn(e), e === 13 ? "Enter" : String.fromCharCode(e)) : e.type === "keydown" || e.type === "keyup" ? Kn[e.keyCode] || "Unidentified" : "";
},
code: 0,
location: 0,
@@ -1788,17 +1788,17 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
metaKey: 0,
repeat: 0,
locale: 0,
- getModifierState: Xn,
+ getModifierState: Yn,
charCode: function(e) {
- return e.type === "keypress" ? An(e) : 0;
+ return e.type === "keypress" ? Dn(e) : 0;
},
keyCode: function(e) {
return e.type === "keydown" || e.type === "keyup" ? e.keyCode : 0;
},
which: function(e) {
- return e.type === "keypress" ? An(e) : e.type === "keydown" || e.type === "keyup" ? e.keyCode : 0;
+ return e.type === "keypress" ? Dn(e) : e.type === "keydown" || e.type === "keyup" ? e.keyCode : 0;
}
- })), Zn = Nn(D({}, W, {
+ })), Zn = An(D({}, Rn, {
pointerId: 0,
width: 0,
height: 0,
@@ -1809,7 +1809,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
twist: 0,
pointerType: 0,
isPrimary: 0
- })), Qn = Nn(D({}, Pn, { submitter: 0 })), $n = Nn(D({}, In, {
+ })), Qn = An(D({}, jn, { submitter: 0 })), $n = An(D({}, Nn, {
touches: 0,
targetTouches: 0,
changedTouches: 0,
@@ -1817,12 +1817,12 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
metaKey: 0,
ctrlKey: 0,
shiftKey: 0,
- getModifierState: Xn
- })), er = Nn(D({}, Pn, {
+ getModifierState: Yn
+ })), er = An(D({}, jn, {
propertyName: 0,
elapsedTime: 0,
pseudoElement: 0
- })), tr = Nn(D({}, W, {
+ })), tr = An(D({}, Rn, {
deltaX: function(e) {
return "deltaX" in e ? e.deltaX : "wheelDeltaX" in e ? -e.wheelDeltaX : 0;
},
@@ -1831,7 +1831,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
},
deltaZ: 0,
deltaMode: 0
- })), nr = Nn(D({}, Pn, {
+ })), nr = An(D({}, jn, {
newState: 0,
oldState: 0,
source: 0
@@ -1840,9 +1840,9 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
13,
27,
32
- ], ir = wn && "CompositionEvent" in window, ar = null;
- wn && "documentMode" in document && (ar = document.documentMode);
- var or = wn && "TextEvent" in window && !ar, sr = wn && (!ir || ar && 8 < ar && 11 >= ar), cr = " ", lr = !1;
+ ], ir = K && "CompositionEvent" in window, ar = null;
+ K && "documentMode" in document && (ar = document.documentMode);
+ var or = K && "TextEvent" in window && !ar, sr = K && (!ir || ar && 8 < ar && 11 >= ar), cr = " ", lr = !1;
function ur(e, t) {
switch (e) {
case "keyup": return rr.indexOf(t.keyCode) !== -1;
@@ -1866,7 +1866,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
}
}
function mr(e, t) {
- if (fr) return e === "compositionend" || !ir && ur(e, t) ? (e = kn(), On = U = Dn = null, fr = !1, e) : null;
+ if (fr) return e === "compositionend" || !ir && ur(e, t) ? (e = En(), Tn = wn = Cn = null, fr = !1, e) : null;
switch (e) {
case "paste": return null;
case "keypress":
@@ -1901,7 +1901,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
return t === "input" ? !!hr[e.type] : t === "textarea";
}
function _r(e, t, n, r) {
- vn ? yn ? yn.push(r) : yn = [r] : vn = r, t = qf(t, "onChange"), 0 < t.length && (n = new Fn("onChange", "change", null, n, r), e.push({
+ gn ? _n ? _n.push(r) : _n = [r] : gn = r, t = qf(t, "onChange"), 0 < t.length && (n = new Mn("onChange", "change", null, n, r), e.push({
event: n,
listeners: t
}));
@@ -1911,15 +1911,15 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
Bf(e, 0);
}
function xr(e) {
- if (Qt(Mt(e))) return e;
+ if (U(jt(e))) return e;
}
function Sr(e, t) {
if (e === "change") return t;
}
var Cr = !1;
- if (wn) {
+ if (K) {
var wr;
- if (wn) {
+ if (K) {
var Tr = "oninput" in document;
if (!Tr) {
var Er = document.createElement("div");
@@ -1935,7 +1935,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
function Or(e) {
if (e.propertyName === "value" && xr(yr)) {
var t = [];
- _r(t, yr, e, _n(e)), Sn(br, t);
+ _r(t, yr, e, hn(e)), G(br, t);
}
}
function kr(e, t, n) {
@@ -2022,7 +2022,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
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 Hr = wn && "documentMode" in document && 11 >= document.documentMode, Ur = null, Wr = null, Gr = null, Kr = !1;
+ var Hr = K && "documentMode" in document && 11 >= document.documentMode, Ur = null, Wr = null, Gr = null, Kr = !1;
function qr(e, t, n) {
var r = n.window === n ? n.document : n.nodeType === 9 ? n : n.ownerDocument;
Kr || Ur == null || Ur !== Ir(r) || (r = Ur, "selectionStart" in r && Vr(r) ? r = {
@@ -2033,7 +2033,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
anchorOffset: r.anchorOffset,
focusNode: r.focusNode,
focusOffset: r.focusOffset
- }), Gr && Fr(Gr, r) || (Gr = r, r = qf(Wr, "onSelect"), 0 < r.length && (t = new Fn("onSelect", "select", null, t, n), e.push({
+ }), Gr && Fr(Gr, r) || (Gr = r, r = qf(Wr, "onSelect"), 0 < r.length && (t = new Mn("onSelect", "select", null, t, n), e.push({
event: t,
listeners: r
}), t.target = Ur)));
@@ -2051,7 +2051,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
transitioncancel: Jr("Transition", "TransitionCancel"),
transitionend: Jr("Transition", "TransitionEnd")
}, Xr = {}, Zr = {};
- wn && (Zr = document.createElement("div").style, "AnimationEvent" in window || (delete Yr.animationend.animation, delete Yr.animationiteration.animation, delete Yr.animationstart.animation), "TransitionEvent" in window || delete Yr.transitionend.transition);
+ K && (Zr = document.createElement("div").style, "AnimationEvent" in window || (delete Yr.animationend.animation, delete Yr.animationiteration.animation, delete Yr.animationstart.animation), "TransitionEvent" in window || delete Yr.transitionend.transition);
function Qr(e) {
if (Xr[e]) return Xr[e];
if (!Yr[e]) return e;
@@ -2062,7 +2062,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
var $r = Qr("animationend"), ei = Qr("animationiteration"), ti = Qr("animationstart"), ni = Qr("transitionrun"), ri = Qr("transitionstart"), ii = Qr("transitioncancel"), ai = Qr("transitionend"), oi = /* @__PURE__ */ new Map(), si = "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(" ");
si.push("scrollEnd");
function ci(e, t) {
- oi.set(e, t), Rt(t, [e]);
+ oi.set(e, t), Lt(t, [e]);
}
var li = 0;
function ui(e, t) {
@@ -2296,14 +2296,14 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
$("toggle", t);
break;
case "input":
- $("invalid", t), nn(t, r.value, r.defaultValue, r.checked, r.defaultChecked, r.type, r.name, !0);
+ $("invalid", t), en(t, r.value, r.defaultValue, r.checked, r.defaultChecked, r.type, r.name, !0);
break;
case "select":
$("invalid", t);
break;
- case "textarea": $("invalid", t), on(t, r.value, r.defaultValue, r.children);
+ case "textarea": $("invalid", t), an(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 || $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 = hn), t = !0) : t = !1, t || ta(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 = pn), t = !0) : t = !1, t || ta(e, !0);
}
function ra(e) {
for (Xi = e.return; Xi;) switch (Xi.tag) {
@@ -2546,7 +2546,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
var Ra = ye(null);
function za() {
var e = Ra.current;
- return e === null ? Zu.pooledCache : e;
+ return e === null ? Xu.pooledCache : e;
}
function Ba(e, t) {
t === null ? xe(Ra, Ra.current) : xe(Ra, t.pool);
@@ -2563,13 +2563,13 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
return e = e.status, e === "fulfilled" || e === "rejected";
}
function qa(e, t, n) {
- switch (n = e[n], n === void 0 ? e.push(t) : n !== t && (t.then(hn, hn), t = n), t.status) {
+ switch (n = e[n], n === void 0 ? e.push(t) : n !== t && (t.then(pn, pn), t = n), t.status) {
case "fulfilled": return t.value;
case "rejected": throw e = t.reason, Za(e), e === void 0 && !("reason" in t) ? Error(i(600)) : e;
default:
- if (typeof t.status == "string") t.then(hn, hn);
+ if (typeof t.status == "string") t.then(pn, pn);
else {
- if (e = Zu, 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;
@@ -2842,7 +2842,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
function uo(e, t, n) {
var r = e.updateQueue;
if (r === null) return null;
- if (r = r.shared, Y & 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 = Si(e), xi(e, null, n), t;
}
@@ -2906,7 +2906,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
o = 0, u = l = c = null, s = a;
do {
var f = s.lane & -536870913, p = f !== s.lane;
- if (p ? (Z & f) === f : (r & f) === f) {
+ if (p ? (Q & f) === f : (r & f) === f) {
f !== 0 && f === Ma && (mo = !0), u !== null && (u = u.next = {
lane: 0,
tag: s.tag,
@@ -3154,7 +3154,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
var c = s = null, l = null, u = t, d = !1;
do {
var f = u.lane & -536870913;
- if (f === u.lane ? (Fo & f) === f : (Z & f) === f) {
+ if (f === u.lane ? (Fo & f) === f : (Q & f) === f) {
var p = u.revertLane;
if (p === 0) l !== null && (l = l.next = {
lane: 0,
@@ -3217,7 +3217,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
} else n = t();
var s = !Pr((Io || a).memoizedState, n);
if (s && (a.memoizedState = n, Oc = !0), a = a.queue, Fs(ps.bind(null, r, a, e), [e]), e = a.getSnapshot !== t || s || Lo !== null && !!(Lo.memoizedState.tag & 1), As(e ? 9 : 8, { destroy: void 0 }, fs.bind(null, r, a, n, t), null), e) {
- if (r.flags |= 2048, Zu === null) throw Error(i(349));
+ if (r.flags |= 2048, Xu === null) throw Error(i(349));
o || Fo & 127 || ds(r, t, n);
}
return n;
@@ -3341,7 +3341,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
}
function Ts(e, t) {
if (q) {
- var n = Zu.formState;
+ var n = Xu.formState;
if (n !== null) {
a: {
var r = J;
@@ -3464,7 +3464,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
ref: t,
nextImpl: e
}), function() {
- if (Y & 2) throw Error(i(440));
+ if (X & 2) throw Error(i(440));
return t.impl.apply(void 0, arguments);
};
}
@@ -3512,10 +3512,10 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
return n.memoizedState = [r, t], r;
}
function Gs(e, t, n) {
- return n === void 0 || Fo & 1073741824 && !(Z & 261930) ? e.memoizedState = t : (e.memoizedState = n, e = Ad(), J.lanes |= e, id |= e, n);
+ return n === void 0 || Fo & 1073741824 && !(Q & 261930) ? e.memoizedState = t : (e.memoizedState = n, e = Ad(), J.lanes |= e, id |= e, n);
}
function Ks(e, t, n, r) {
- return Pr(n, t) ? n : yo.current === null ? !(Fo & 106) || Fo & 1073741824 && !(Z & 261930) ? (Oc = !0, e.memoizedState = n) : (e = Ad(), J.lanes |= e, id |= e, t) : (e = Gs(e, n, r), Pr(e, t) || (Oc = !0), e);
+ return Pr(n, t) ? n : yo.current === null ? !(Fo & 106) || Fo & 1073741824 && !(Q & 261930) ? (Oc = !0, e.memoizedState = n) : (e = Ad(), J.lanes |= e, id |= e, t) : (e = Gs(e, n, r), Pr(e, t) || (Oc = !0), e);
}
function qs(e, t, n, r, i) {
var a = I.p;
@@ -3631,7 +3631,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
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, Pr(s, o)) return vi(e, t, i, 0), Zu === null && _i(), !1;
+ if (i.hasEagerState = !0, i.eagerState = s, Pr(s, o)) return vi(e, t, i, 0), Xu === null && _i(), !1;
} catch {}
if (n = yi(e, t, i, r), n !== null) return Md(n, e, r), cc(n, t, r), !0;
}
@@ -3765,8 +3765,8 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
if (n === void 0) throw Error(i(407));
n = n();
} else {
- if (n = t(), Zu === null) throw Error(i(349));
- Z & 127 || ds(r, t, n);
+ if (n = t(), Xu === null) throw Error(i(349));
+ Q & 127 || ds(r, t, n);
}
a.memoizedState = n;
var o = {
@@ -3776,7 +3776,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
return a.queue = o, Ps(ps.bind(null, r, o, e), [e]), r.flags |= 2048, As(9, { destroy: void 0 }, fs.bind(null, r, o, n, t), null), n;
},
useId: function() {
- var e = es(), t = Zu.identifierPrefix;
+ var e = es(), t = Xu.identifierPrefix;
if (q) {
var n = Wi, r = Ui;
n = (r & ~(1 << 32 - Ze(r) - 1)).toString(32) + n, t = "_" + t + "R_" + n, n = Vo++, 0 < n && (t += "H" + n.toString(32)), t += "_";
@@ -3805,7 +3805,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
useEffectEvent: function(e) {
var t = es(), n = { impl: e };
return t.memoizedState = n, function() {
- if (Y & 2) throw Error(i(440));
+ if (X & 2) throw Error(i(440));
return n.impl.apply(void 0, arguments);
};
}
@@ -4116,7 +4116,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
else throw Error(i(558));
} else if (Oc || ha(e, t, n, !1), a = (n & e.childLanes) !== 0, Oc || a) {
if (yo.current === null) {
- if (r = Zu, r !== null && (s = ht(r, n), s !== 0 && s !== o.retryLane)) throw o.retryLane = s, bi(e, s), Md(r, e, s), Dc;
+ if (r = Xu, r !== null && (s = ht(r, n), s !== 0 && s !== o.retryLane)) throw o.retryLane = s, bi(e, s), Md(r, e, s), Dc;
Wd();
}
t = Lc(e, t, n);
@@ -4247,7 +4247,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
}
if (Oc || ha(e, t, c, !1), r = (c & e.childLanes) !== 0, Oc || r) {
if (yo.current !== null) return Xc(e, t, c);
- if (r = Zu, r !== null && (a = ht(r, c), a !== 0 && a !== s.retryLane)) throw s.retryLane = a, bi(e, a), Md(r, e, a), Dc;
+ if (r = Xu, r !== null && (a = ht(r, c), a !== 0 && a !== s.retryLane)) throw s.retryLane = a, bi(e, a), Md(r, e, a), Dc;
return om(o) || Wd(), Xc(e, t, c);
}
return om(o) ? (t.flags |= 192, t.child = e.child, null) : (e = s.treeContext, Zi = lm(o.nextSibling), Xi = t, q = !0, Qi = null, $i = !1, e !== null && Yi(t, e), t = Jc(t, a.children), t.flags |= 134221824, t);
@@ -4477,7 +4477,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
case 19: return nl(e, t, n);
case 31: return Rc(e, t, n);
case 22: return Nc(e, t, n, t.pendingProps);
- case 24: return _a(t), r = va(wa), e === null ? (a = za(), a === null && (a = Zu, o = Ta(), a.pooledCache = o, o.refCount++, o !== null && (a.pooledCacheLanes |= n), a = o), t.memoizedState = {
+ case 24: return _a(t), r = va(wa), e === null ? (a = za(), a === null && (a = Xu, o = Ta(), a.pooledCache = o, o.refCount++, o !== null && (a.pooledCacheLanes |= n), a = o), t.memoizedState = {
parent: r,
cache: a
}, so(t), da(t, wa, a)) : ((e.lanes & n) !== 0 && (co(e, t), go(t, null, null, n), ho()), a = e.memoizedState, o = t.memoizedState, a.parent === r ? (r = o.cache, da(t, wa, r), r !== a.cache && ma(t, [wa], n, !0)) : (a = {
@@ -4942,12 +4942,12 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
}
function Ml(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 = hn)), Cl(e, r), V = !0;
+ 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 = pn)), Cl(e, r), H = !0;
else if (i !== 4 && (i === 27 && (Cl(e, r), r = null, Sp(e.type) && (n = e.stateNode, t = null)), e = e.child, e !== null)) for (Ml(e, t, n, r), e = e.sibling; e !== null;) Ml(e, t, n, r), e = e.sibling;
}
function Nl(e, t, n, r) {
var i = e.tag;
- if (i === 5 || i === 6) i = e.stateNode, t ? n.insertBefore(i, t) : n.appendChild(i), Cl(e, r), V = !0;
+ if (i === 5 || i === 6) i = e.stateNode, t ? n.insertBefore(i, t) : n.appendChild(i), Cl(e, r), H = !0;
else if (i !== 4 && (i === 27 && (Cl(e, r), r = null, Sp(e.type) && (n = e.stateNode)), e = e.child, e !== null)) for (Nl(e, t, n, r), e = e.sibling; e !== null;) Nl(e, t, n, r), e = e.sibling;
}
function Pl(e) {
@@ -5103,8 +5103,8 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
e = e.sibling;
}
}
- 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) {
+ var eu = !1, Y = !1, tu = !1, nu = !1, ru = typeof WeakSet == "function" ? WeakSet : Set, iu = null, au = !1, ou = !1, su = !1, cu = !1;
+ function lu(e, t, n) {
if (e = e.containerInfo, sp = gh, e = Br(e), Vr(e)) {
if ("selectionStart" in e) var r = {
start: e.selectionStart,
@@ -5147,28 +5147,28 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
for (cp = {
focusedElem: e,
selectionRange: r
- }, 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 && Ll(e), du(n);
+ }, gh = !1, n = (n & 335544064) === n, iu = t, t = n ? 9270 : 1024; iu !== null;) {
+ if (e = iu, 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 && Ll(e), uu(n);
else {
if (e.tag === 22) {
if (r = e.alternate, e.memoizedState !== null) {
- r !== null && r.memoizedState === null && n && ql(r), du(n);
+ r !== null && r.memoizedState === null && n && ql(r), uu(n);
continue;
}
if (r !== null && r.memoizedState !== null) {
- n && Ll(e), du(n);
+ n && Ll(e), uu(n);
continue;
}
}
- r = e.child, (e.subtreeFlags & t) !== 0 && r !== null ? (r.return = e, au = r) : (n && Jl(e), du(n));
+ r = e.child, (e.subtreeFlags & t) !== 0 && r !== null ? (r.return = e, iu = r) : (n && Jl(e), uu(n));
}
}
Il = null;
}
- function du(e) {
- for (; au !== null;) {
- var t = au, n = e, r = t.alternate, a = t.flags;
+ function uu(e) {
+ for (; iu !== null;) {
+ var t = iu, n = e, r = t.alternate, a = t.flags;
switch (t.tag) {
case 0:
case 11:
@@ -5210,22 +5210,22 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
default: if (a & 1024) throw Error(i(163));
}
if (r = t.sibling, r !== null) {
- r.return = t.return, au = r;
+ r.return = t.return, iu = r;
break;
}
- au = t.return;
+ iu = t.return;
}
}
- function fu(e, t, n) {
+ function du(e, t, n) {
var r = n.flags;
switch (n.tag) {
case 0:
case 11:
case 15:
- Mu(e, n), r & 4 && _l(5, n);
+ ju(e, n), r & 4 && _l(5, n);
break;
case 1:
- if (Mu(e, n), r & 4) {
+ if (ju(e, n), r & 4) {
if (e = n.stateNode, t === null) try {
e.componentDidMount();
} catch (e) {
@@ -5244,7 +5244,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
r & 64 && yl(n), r & 512 && xl(n, n.return);
break;
case 3:
- if (Mu(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:
@@ -5262,34 +5262,34 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
case 27: t === null && r & 4 && Pl(n);
case 26:
case 5:
- Mu(e, n), t === null && r & 4 && Ol(n), r & 512 && xl(n, n.return);
+ ju(e, n), t === null && r & 4 && Ol(n), r & 512 && xl(n, n.return);
break;
case 12:
- Mu(e, n);
+ ju(e, n);
break;
case 31:
- Mu(e, n), r & 4 && xu(e, n);
+ ju(e, n), r & 4 && bu(e, n);
break;
case 13:
- Mu(e, n), r & 4 && Su(e, n), r & 64 && (e = n.memoizedState, e !== null && (e = e.dehydrated, e !== null && (n = gf.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 || 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), Pu(e, n, r)) : Mu(e, n), eu = t, tu = i;
+ var a = t !== null && t.memoizedState !== null || Y;
+ t = eu, i = Y, eu = r, (Y = a) && !i ? (r = 2, n.subtreeFlags & 8772 && (r |= 1), Nu(e, n, r)) : ju(e, n), eu = t, Y = i;
}
break;
case 30:
- Mu(e, n), r & 512 && xl(n, n.return);
+ ju(e, n), r & 512 && xl(n, n.return);
break;
case 7: r & 512 && xl(n, n.return);
- default: Mu(e, n);
+ default: ju(e, n);
}
}
- function pu(e, t) {
- for (e = e.child; e !== null;) mu(e, t), e = e.sibling;
+ function fu(e, t) {
+ for (e = e.child; e !== null;) pu(e, t), e = e.sibling;
}
- function mu(e, t) {
+ function pu(e, t) {
switch (e.tag) {
case 5:
case 26:
@@ -5305,11 +5305,11 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
} catch (t) {
ff(e, e.return, t);
}
- hu(e, t);
+ mu(e, t);
break;
case 6:
try {
- e.stateNode.nodeValue = t ? "" : e.memoizedProps, V = !0;
+ e.stateNode.nodeValue = t ? "" : e.memoizedProps, H = !0;
} catch (t) {
ff(e, e.return, t);
}
@@ -5324,95 +5324,95 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
break;
case 22:
case 23:
- e.memoizedState === null && pu(e, t);
+ e.memoizedState === null && fu(e, t);
break;
- default: pu(e, t);
+ default: fu(e, t);
}
}
- function hu(e, t) {
+ function mu(e, t) {
if (e.subtreeFlags & 67108864) for (e = e.child; e !== null;) {
a: {
var n = e, r = t;
switch (n.tag) {
case 4:
- mu(n, r);
+ pu(n, r);
break a;
case 22:
- n.memoizedState === null && hu(n, r);
+ n.memoizedState === null && mu(n, r);
break a;
- default: hu(n, r);
+ default: mu(n, r);
}
}
e = e.sibling;
}
}
- function gu(e) {
+ function hu(e) {
var t = e.alternate;
- t !== null && (e.alternate = null, gu(t)), e.child = null, e.deletions = null, e.sibling = null, e.tag === 5 && (t = e.stateNode, t !== null && kt(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, hu(t)), e.child = null, e.deletions = null, e.sibling = null, e.tag === 5 && (t = e.stateNode, t !== null && Ot(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 _u = null, vu = !1;
- function yu(e, t, n) {
- for (n = n.child; n !== null;) bu(e, t, n), n = n.sibling;
+ var gu = null, _u = !1;
+ function vu(e, t, n) {
+ for (n = n.child; n !== null;) yu(e, t, n), n = n.sibling;
}
- function bu(e, t, n) {
+ function yu(e, t, n) {
if (Ye && typeof Ye.onCommitFiberUnmount == "function") try {
Ye.onCommitFiberUnmount(Je, n);
} catch {}
switch (n.tag) {
case 26:
- tu || Sl(n, t), yu(e, t, n), n.memoizedState ? n.memoizedState.count-- : n.stateNode && !tu && (n = n.stateNode, n.parentNode.removeChild(n));
+ Y || Sl(n, t), vu(e, t, n), n.memoizedState ? n.memoizedState.count-- : n.stateNode && !Y && (n = n.stateNode, n.parentNode.removeChild(n));
break;
case 27:
- tu || Sl(n, t), Tl(n);
- var r = _u, i = vu;
- Sp(n.type) && (_u = n.stateNode, vu = !1), yu(e, t, n), gm(n.stateNode, n.type, n.memoizedProps), _u = r, vu = i;
+ Y || Sl(n, t), Tl(n);
+ var r = gu, i = _u;
+ Sp(n.type) && (gu = n.stateNode, _u = !1), vu(e, t, n), gm(n.stateNode, n.type, n.memoizedProps), gu = r, _u = i;
break;
- case 5: tu || Sl(n, t), Tl(n);
+ case 5: Y || Sl(n, t), Tl(n);
case 6:
- if (n.tag === 6 && Tl(n), r = _u, i = vu, _u = null, yu(e, t, n), _u = r, vu = i, _u !== null) {
- if (vu) try {
- (_u.nodeType === 9 ? _u.body : _u.nodeName === "HTML" ? _u.ownerDocument.body : _u).removeChild(n.stateNode), V = !0;
+ if (n.tag === 6 && Tl(n), r = gu, i = _u, gu = null, vu(e, t, n), gu = r, _u = i, gu !== null) {
+ if (_u) try {
+ (gu.nodeType === 9 ? gu.body : gu.nodeName === "HTML" ? gu.ownerDocument.body : gu).removeChild(n.stateNode), H = !0;
} catch (e) {
ff(n, t, e);
}
else try {
- _u.removeChild(n.stateNode), V = !0;
+ gu.removeChild(n.stateNode), H = !0;
} catch (e) {
ff(n, t, e);
}
}
break;
case 18:
- _u !== null && (vu ? (e = _u, Cp(e.nodeType === 9 ? e.body : e.nodeName === "HTML" ? e.ownerDocument.body : e, n.stateNode), Hh(e)) : Cp(_u, n.stateNode));
+ gu !== null && (_u ? (e = gu, Cp(e.nodeType === 9 ? e.body : e.nodeName === "HTML" ? e.ownerDocument.body : e, n.stateNode), Hh(e)) : Cp(gu, n.stateNode));
break;
case 4:
- r = _u, i = vu, _u = n.stateNode.containerInfo, vu = !0, yu(e, t, n), _u = r, vu = i;
+ r = gu, i = _u, gu = n.stateNode.containerInfo, _u = !0, vu(e, t, n), gu = r, _u = i;
break;
case 0:
case 11:
case 14:
case 15:
- vl(2, n, t), tu || vl(4, n, t), yu(e, t, n);
+ vl(2, n, t), Y || vl(4, n, t), vu(e, t, n);
break;
case 1:
- tu || (Sl(n, t), r = n.stateNode, typeof r.componentWillUnmount == "function" && bl(n, t, r)), yu(e, t, n);
+ Y || (Sl(n, t), r = n.stateNode, typeof r.componentWillUnmount == "function" && bl(n, t, r)), vu(e, t, n);
break;
case 21:
- yu(e, t, n);
+ vu(e, t, n);
break;
case 22:
- tu = (r = tu) || n.memoizedState !== null, yu(e, t, n), tu = r;
+ Y = (r = Y) || n.memoizedState !== null, vu(e, t, n), Y = r;
break;
case 30:
- Sl(n, t), yu(e, t, n);
+ Sl(n, t), vu(e, t, n);
break;
case 7:
- tu || Sl(n, t), yu(e, t, n);
+ Y || Sl(n, t), vu(e, t, n);
break;
- default: yu(e, t, n);
+ default: vu(e, t, n);
}
}
- function xu(e, t) {
+ function bu(e, t) {
if (t.memoizedState === null && (e = t.alternate, e !== null && (e = e.memoizedState, e !== null))) {
e = e.dehydrated;
try {
@@ -5422,26 +5422,26 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
}
}
}
- function Su(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) {
ff(t, t.return, e);
}
}
- function Cu(e) {
+ function Su(e) {
switch (e.tag) {
case 31:
case 13:
case 19:
var t = e.stateNode;
- 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;
+ return t === null && (t = e.stateNode = new ru()), t;
+ case 22: return e = e.stateNode, t = e._retryCache, t === null && (t = e._retryCache = new ru()), t;
default: throw Error(i(435, e.tag));
}
}
- function wu(e, t) {
- var n = Cu(e);
+ function Cu(e, t) {
+ var n = Su(e);
t.forEach(function(t) {
if (!n.has(t)) {
n.add(t);
@@ -5450,7 +5450,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
}
});
}
- function Tu(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;
@@ -5458,27 +5458,27 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
switch (l.tag) {
case 27:
if (Sp(l.type)) {
- _u = l.stateNode, vu = !1;
+ gu = l.stateNode, _u = !1;
break a;
}
break;
case 5:
- _u = l.stateNode, vu = !1;
+ gu = l.stateNode, _u = !1;
break a;
case 3:
case 4:
- _u = l.stateNode.containerInfo, vu = !0;
+ gu = l.stateNode.containerInfo, _u = !0;
break a;
}
l = l.return;
}
- if (_u === null) throw Error(i(160));
- bu(s, c, o), _u = null, vu = !1, s = o.alternate, s !== null && (s.return = null), o.return = null;
+ if (gu === null) throw Error(i(160));
+ yu(s, c, o), gu = null, _u = !1, s = o.alternate, s !== null && (s.return = null), o.return = null;
}
- if (t.subtreeFlags & 13886) for (t = t.child; t !== null;) Du(t, e, n), t = t.sibling;
+ if (t.subtreeFlags & 13886) for (t = t.child; t !== null;) Eu(t, e, n), t = t.sibling;
}
- var Eu = null;
- function Du(e, t, n) {
+ var Tu = null;
+ function Eu(e, t, n) {
var r = e.alternate, a = e.flags;
switch (e.tag) {
case 0:
@@ -5489,13 +5489,13 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
var s = r[o];
s.ref.impl = s.nextImpl;
}
- Tu(t, e, n), Ou(e), a & 4 && (vl(3, e, e.return), _l(3, e), vl(5, e, e.return));
+ wu(t, e, n), Du(e), a & 4 && (vl(3, e, e.return), _l(3, e), vl(5, e, e.return));
break;
case 1:
- Tu(t, e, n), Ou(e), a & 512 && (tu || r === null || Sl(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))));
+ wu(t, e, n), Du(e), a & 512 && (Y || r === null || Sl(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 = Eu, Tu(t, e, n), Ou(e), a & 512 && (tu || r === null || Sl(r, r.return)), a & 4) {
+ if (o = Tu, wu(t, e, n), Du(e), a & 512 && (Y || r === null || Sl(r, r.return)), a & 4) {
if (a = r === null ? null : r.memoizedState, n = e.memoizedState, r === null) {
if (n === null) {
if (e.stateNode === null) {
@@ -5505,7 +5505,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
t = e.type, n = e.memoizedProps, a = o.ownerDocument || o;
b: switch (t) {
case "title":
- r = a.getElementsByTagName("title")[0], (!r || r[Dt] || r[bt] || 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[bt] = e, Pt(r), t = r;
+ r = a.getElementsByTagName("title")[0], (!r || r[Dt] || r[bt] || 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[bt] = e, Nt(r), t = r;
break a;
case "link":
if (o = Gm("link", "href", a).get(t + (n.href || ""))) {
@@ -5527,77 +5527,77 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
break;
default: throw Error(i(468, t));
}
- r[bt] = e, Pt(r), t = r;
+ r[bt] = e, Nt(r), t = r;
}
e.stateNode = t;
}
} else eu || Km(o, e.type, e.stateNode);
} else e.stateNode = Bm(o, n, e.memoizedProps);
- } else a === n ? n === null && e.stateNode !== null && kl(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));
+ } else a === n ? n === null && e.stateNode !== null && kl(e, e.memoizedProps, r.memoizedProps) : (a === null ? (t = r.stateNode, t === null || Y || t.parentNode.removeChild(t)) : a.count--, n === null ? eu || Km(o, e.type, e.stateNode) : Bm(o, n, e.memoizedProps));
}
break;
case 27:
- Tu(t, e, n), Ou(e), a & 512 && (tu || r === null || Sl(r, r.return)), r !== null && a & 4 && kl(e, e.memoizedProps, r.memoizedProps);
+ wu(t, e, n), Du(e), a & 512 && (Y || r === null || Sl(r, r.return)), r !== null && a & 4 && kl(e, e.memoizedProps, r.memoizedProps);
break;
case 5:
- if (o = nu, nu = !1, Tu(t, e, n), nu = o, Ou(e), a & 512 && (tu || r === null || Sl(r, r.return)), e.flags & 32) {
+ if (o = tu, tu = !1, wu(t, e, n), tu = o, Du(e), a & 512 && (Y || r === null || Sl(r, r.return)), e.flags & 32) {
t = e.stateNode;
try {
- sn(t, ""), V = !0;
+ on(t, ""), H = !0;
} catch (t) {
ff(e, e.return, t);
}
}
- a & 4 && e.stateNode != null && (t = e.memoizedProps, kl(e, t, r === null ? t : r.memoizedProps)), a & 1024 && (ru = !0);
+ a & 4 && e.stateNode != null && (t = e.memoizedProps, kl(e, t, r === null ? t : r.memoizedProps)), a & 1024 && (nu = !0);
break;
case 6:
- if (Tu(t, e, n), Ou(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, V = !0;
+ n.nodeValue = t, H = !0;
} catch (t) {
ff(e, e.return, t);
}
}
break;
case 3:
- if (V = !1, Wm = null, o = Eu, Eu = bm(t.containerInfo), Tu(t, e, n), Eu = o, Ou(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) {
ff(e, e.return, t);
}
- ru && (ru = !1, ku(e)), V = !1;
+ nu && (nu = !1, Ou(e)), H = !1;
break;
case 4:
- a = nu, nu = eu, r = Wt(), o = Eu, Eu = bm(e.stateNode.containerInfo), Tu(t, e, n), Ou(e), Eu = o, V && su && (cu = !0), V = r, nu = a;
+ a = tu, tu = eu, r = Ut(), o = Tu, Tu = bm(e.stateNode.containerInfo), wu(t, e, n), Du(e), Tu = o, H && ou && (su = !0), H = r, tu = a;
break;
case 12:
- Tu(t, e, n), Ou(e);
+ wu(t, e, n), Du(e);
break;
case 31:
- Tu(t, e, n), Ou(e), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, wu(e, t)));
+ wu(t, e, n), Du(e), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, Cu(e, t)));
break;
case 13:
- Tu(t, e, n), Ou(e), e.child.flags & 8192 && e.memoizedState !== null != (r !== null && r.memoizedState !== null) && (fd = Be()), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, wu(e, t)));
+ wu(t, e, n), Du(e), e.child.flags & 8192 && e.memoizedState !== null != (r !== null && r.memoizedState !== null) && (fd = Be()), 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 = eu, l = tu, u = nu;
- eu = c || o, nu = u || o, tu = l || s, Tu(t, e, n), tu = l, nu = u, eu = c, Ou(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, Nu(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, wu(e, n))));
+ var c = eu, l = Y, u = tu;
+ eu = c || o, tu = u || o, Y = l || s, wu(t, e, n), Y = l, tu = u, eu = c, Du(e), a & 8192 && (t = e.stateNode, t._visibility = o ? t._visibility & -2 : t._visibility | 1, !o || r === null || s || eu || Y || (t = s || Y, n = eu, r = Y, eu = o || eu, Y = t, Mu(e, 2), eu = n, Y = r), !o && tu || fu(e, o)), a & 4 && (t = e.updateQueue, t !== null && (n = t.retryQueue, n !== null && (t.retryQueue = null, Cu(e, n))));
break;
case 19:
- Tu(t, e, n), Ou(e), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, wu(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 && (tu || r === null || Sl(r, r.return)), a = Wt(), o = su, s = (n & 335544064) === n, c = e.memoizedProps, su = s && fi(c.default, c.update) !== "none", Tu(t, e, n), Ou(e), s && r !== null && V && (e.flags |= 4), su = o, V = a;
+ a & 512 && (Y || r === null || Sl(r, r.return)), a = Ut(), o = ou, s = (n & 335544064) === n, c = e.memoizedProps, ou = s && fi(c.default, c.update) !== "none", wu(t, e, n), Du(e), s && r !== null && H && (e.flags |= 4), ou = o, H = a;
break;
case 21: break;
- case 7: a & 512 && (tu || r === null || Sl(r, r.return)), r && r.stateNode !== null && (r.stateNode._fragmentFiber = e);
- default: Tu(t, e, n), Ou(e);
+ case 7: a & 512 && (Y || r === null || Sl(r, r.return)), r && r.stateNode !== null && (r.stateNode._fragmentFiber = e);
+ default: wu(t, e, n), Du(e);
}
}
- function Ou(e) {
+ function Du(e) {
var t = e.flags;
if (t & 2) {
try {
@@ -5626,7 +5626,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
break;
case 5:
var l = n.stateNode;
- n.flags & 32 && (sn(l, ""), n.flags &= -33), Nl(e, jl(e), l, s);
+ n.flags & 32 && (on(l, ""), n.flags &= -33), Nl(e, jl(e), l, s);
break;
case 3:
case 4:
@@ -5642,22 +5642,22 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
}
t & 4096 && (e.flags &= -4097);
}
- function ku(e) {
+ function Ou(e) {
if (e.subtreeFlags & 1024) for (e = e.child; e !== null;) {
var t = e;
- ku(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 Au(e, t) {
- if (t.subtreeFlags & 9270) for (t = t.child; t !== null;) ju(t, e), t = t.sibling;
+ 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 ju(e, t) {
+ function Au(e, t) {
var n = e.alternate;
if (n === null) Gl(e, !1);
else switch (e.tag) {
case 3:
- if (lu = ou = !1, zl(), Au(t, e), !ou && !cu) {
+ if (cu = au = !1, zl(), ku(t, e), !au && !su) {
if (e = Rl, e !== null) for (var r = 0; r < e.length; r += 3) {
n = e[r];
var i = e[r + 1];
@@ -5684,33 +5684,33 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
duration: 0,
fill: "forwards",
pseudoElement: "::view-transition"
- })), lu = !0;
+ })), cu = !0;
}
Rl = null;
break;
case 5:
- Au(t, e);
+ ku(t, e);
break;
case 4:
- r = ou, ou = !1, Au(t, e), ou && (cu = !0), ou = r;
+ r = au, au = !1, ku(t, e), au && (su = !0), au = r;
break;
case 22:
- e.memoizedState === null && (n.memoizedState === null ? Au(t, e) : Gl(e, !1));
+ e.memoizedState === null && (n.memoizedState === null ? ku(t, e) : Gl(e, !1));
break;
case 30:
- r = ou, i = zl(), ou = !1, Au(t, e), ou && (e.flags |= 4);
+ r = au, i = zl(), au = !1, ku(t, e), au && (e.flags |= 4);
var a = e.memoizedProps, o = e.stateNode;
t = ui(a, o), o = ui(n.memoizedProps, o);
var s = fi(a.default, a.update);
- s === "none" ? t = !1 : (a = n.memoizedState, n.memoizedState = null, n = e.child, Bl = 0, t = Ql(e, n, t, o, s, a, !0), Bl !== (a === null ? 0 : a.length) && (e.flags |= 32)), e.flags & 4 && t ? (jd(e, e.memoizedProps.onUpdate), Rl = i) : i !== null && (i.push.apply(i, Rl), Rl = i), ou = e.flags & 32 ? !0 : r;
+ s === "none" ? t = !1 : (a = n.memoizedState, n.memoizedState = null, n = e.child, Bl = 0, t = Ql(e, n, t, o, s, a, !0), Bl !== (a === null ? 0 : a.length) && (e.flags |= 32)), e.flags & 4 && t ? (jd(e, e.memoizedProps.onUpdate), Rl = i) : i !== null && (i.push.apply(i, Rl), Rl = i), au = e.flags & 32 ? !0 : r;
break;
- default: Au(t, e);
+ default: ku(t, e);
}
}
- function Mu(e, t) {
- if (t.subtreeFlags & 8772) for (t = t.child; t !== null;) fu(e, t.alternate, t), t = t.sibling;
+ function ju(e, t) {
+ if (t.subtreeFlags & 8772) for (t = t.child; t !== null;) du(e, t.alternate, t), t = t.sibling;
}
- function Nu(e, t) {
+ function Mu(e, t) {
for (e = e.child; e !== null;) {
var n = e, r = t;
switch (n.tag) {
@@ -5718,46 +5718,46 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
case 11:
case 14:
case 15:
- vl(4, n, n.return), Nu(n, r);
+ vl(4, n, n.return), Mu(n, r);
break;
case 1:
Sl(n, n.return);
var i = n.stateNode;
- typeof i.componentWillUnmount == "function" && bl(n, n.return, i), Nu(n, r);
+ typeof i.componentWillUnmount == "function" && bl(n, n.return, i), Mu(n, r);
break;
case 27: r & 2 && gm(n.stateNode, n.type, n.memoizedProps);
case 5:
- Sl(n, n.return), n.tag !== 5 && n.tag !== 27 || Tl(n), Nu(n, r);
+ Sl(n, n.return), n.tag !== 5 && n.tag !== 27 || Tl(n), Mu(n, r);
break;
case 6:
Tl(n);
break;
case 26:
- Sl(n, n.return), i = n.stateNode, n.memoizedState !== null || i === null || tu || i.parentNode.removeChild(i), Nu(n, r);
+ Sl(n, n.return), i = n.stateNode, n.memoizedState !== null || i === null || Y || i.parentNode.removeChild(i), Mu(n, r);
break;
case 22:
- n.memoizedState === null && Nu(n, r);
+ n.memoizedState === null && Mu(n, r);
break;
case 30:
- Sl(n, n.return), Nu(n, r);
+ Sl(n, n.return), Mu(n, r);
break;
case 7: Sl(n, n.return);
- default: Nu(n, r);
+ default: Mu(n, r);
}
e = e.sibling;
}
}
- function Pu(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:
- Pu(i, a, n), _l(4, a);
+ Nu(i, a, n), _l(4, a);
break;
case 1:
- if (Pu(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) {
ff(r, r.return, e);
@@ -5775,48 +5775,48 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
break;
case 27: n & 2 && Pl(a);
case 5:
- a.tag !== 5 && a.tag !== 27 || wl(a), Pu(i, a, n), s && r === null && o & 4 && Ol(a), xl(a, a.return);
+ a.tag !== 5 && a.tag !== 27 || wl(a), Nu(i, a, n), s && r === null && o & 4 && Ol(a), xl(a, a.return);
break;
case 6:
wl(a);
break;
case 26:
- c = a.stateNode, a.memoizedState !== null || c === null || eu || Km(bm(c.ownerDocument), a.type, c), Pu(i, a, n), s && r === null && o & 4 && Ol(a), xl(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 && Ol(a), xl(a, a.return);
break;
case 12:
- Pu(i, a, n);
+ Nu(i, a, n);
break;
case 31:
- Pu(i, a, n), s && o & 4 && xu(i, a);
+ Nu(i, a, n), s && o & 4 && bu(i, a);
break;
case 13:
- Pu(i, a, n), s && o & 4 && Su(i, a);
+ Nu(i, a, n), s && o & 4 && xu(i, a);
break;
case 22:
- a.memoizedState === null && Pu(i, a, n), xl(a, a.return);
+ a.memoizedState === null && Nu(i, a, n), xl(a, a.return);
break;
case 30:
- Pu(i, a, n), xl(a, a.return);
+ Nu(i, a, n), xl(a, a.return);
break;
case 7: xl(a, a.return);
- default: Pu(i, a, n);
+ default: Nu(i, a, n);
}
t = t.sibling;
}
}
- function Fu(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 && Ea(n));
}
- function Iu(e, t) {
+ function Fu(e, t) {
e = null, t.alternate !== null && (e = t.alternate.memoizedState.cache), t = t.memoizedState.cache, t !== e && (t.refCount++, e != null && Ea(e));
}
- function Lu(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;) Ru(e, t, n, r), t = t.sibling;
+ 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 Ru(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 && Xl(t);
var a = t.flags;
@@ -5824,112 +5824,112 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
case 0:
case 11:
case 15:
- Lu(e, t, n, r), a & 2048 && _l(9, t);
+ Iu(e, t, n, r), a & 2048 && _l(9, t);
break;
case 1:
- Lu(e, t, n, r);
+ Iu(e, t, n, r);
break;
case 3:
- Lu(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 && Ea(a)));
+ Iu(e, t, n, r), i && cu && (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 && Ea(a)));
break;
case 12:
if (a & 2048) {
- Lu(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) {
ff(t, t.return, e);
}
- } else Lu(e, t, n, r);
+ } else Iu(e, t, n, r);
break;
case 31:
- Lu(e, t, n, r);
+ Iu(e, t, n, r);
break;
case 13:
- Lu(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 && Xl(t), o._visibility & 2 ? Lu(e, t, n, r) : (o._visibility |= 2, zu(e, t, n, r, !!(t.subtreeFlags & 10256) || !1))) : (i && s !== null && s.memoizedState === null && Xl(s), o._visibility & 2 ? Lu(e, t, n, r) : Bu(e, t)), a & 2048 && Fu(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:
- Lu(e, t, n, r), a & 2048 && Iu(t.alternate, t);
+ Iu(e, t, n, r), a & 2048 && Fu(t.alternate, t);
break;
case 30:
- i && (a = t.alternate, a !== null && (Ul(a.child, !0), Ul(t.child, !0))), Lu(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: Lu(e, t, n, r);
+ default: Iu(e, t, n, r);
}
}
- function zu(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:
- zu(a, o, s, c, i), _l(8, o);
+ Ru(a, o, s, c, i), _l(8, o);
break;
case 23: break;
case 22:
var u = o.stateNode;
- o.memoizedState === null ? (u._visibility |= 2, zu(a, o, s, c, i)) : u._visibility & 2 ? zu(a, o, s, c, i) : Bu(a, o), i && l & 2048 && Fu(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:
- zu(a, o, s, c, i), i && l & 2048 && Iu(o.alternate, o);
+ Ru(a, o, s, c, i), i && l & 2048 && Fu(o.alternate, o);
break;
- default: zu(a, o, s, c, i);
+ default: Ru(a, o, s, c, i);
}
t = t.sibling;
}
}
- function Bu(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:
- Bu(n, r), i & 2048 && Fu(r.alternate, r);
+ zu(n, r), i & 2048 && Pu(r.alternate, r);
break;
case 24:
- Bu(n, r), i & 2048 && Iu(r.alternate, r);
+ zu(n, r), i & 2048 && Fu(r.alternate, r);
break;
- default: Bu(n, r);
+ default: zu(n, r);
}
t = t.sibling;
}
}
- var Vu = 8192;
- function Hu(e, t, n) {
- if (e.subtreeFlags & Vu) for (e = e.child; e !== null;) Uu(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 Uu(e, t, n) {
+ function Hu(e, t, n) {
switch (e.tag) {
case 26:
- Hu(e, t, n), e.flags & Vu && (e.memoizedState === null ? (e = e.stateNode, (t & 335544128) === t && Zm(n, e)) : Qm(n, Eu, 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:
- Hu(e, t, n), e.flags & Vu && (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 = Eu;
- Eu = bm(e.stateNode.containerInfo), Hu(e, t, n), Eu = 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 = Vu, Vu = 16777216, Hu(e, t, n), Vu = r) : Hu(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 & Vu) !== 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, Il === null && (Il = /* @__PURE__ */ new Map()), Il.set(r, i);
}
- Hu(e, t, n);
+ Vu(e, t, n);
break;
- default: Hu(e, t, n);
+ default: Vu(e, t, n);
}
}
- function Wu(e) {
+ function Uu(e) {
var t = e.alternate;
if (t !== null && (e = t.child, e !== null)) {
t.child = null;
@@ -5938,64 +5938,64 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
while (e !== null);
}
}
- function Gu(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];
- au = r, Ju(r, e);
+ iu = r, qu(r, e);
}
- Wu(e);
+ Uu(e);
}
- if (e.subtreeFlags & 10256) for (e = e.child; e !== null;) Ku(e), e = e.sibling;
+ if (e.subtreeFlags & 10256) for (e = e.child; e !== null;) Gu(e), e = e.sibling;
}
- function Ku(e) {
+ function Gu(e) {
switch (e.tag) {
case 0:
case 11:
case 15:
- Gu(e), e.flags & 2048 && vl(9, e, e.return);
+ Wu(e), e.flags & 2048 && vl(9, e, e.return);
break;
case 3:
- Gu(e);
+ Wu(e);
break;
case 12:
- Gu(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, qu(e)) : Gu(e);
+ e.memoizedState !== null && t._visibility & 2 && (e.return === null || e.return.tag !== 13) ? (t._visibility &= -3, Ku(e)) : Wu(e);
break;
- default: Gu(e);
+ default: Wu(e);
}
}
- function qu(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];
- au = r, Ju(r, e);
+ iu = r, qu(r, e);
}
- Wu(e);
+ Uu(e);
}
for (e = e.child; e !== null;) {
switch (t = e, t.tag) {
case 0:
case 11:
case 15:
- vl(8, t, t.return), qu(t);
+ vl(8, t, t.return), Ku(t);
break;
case 22:
- n = t.stateNode, n._visibility & 2 && (n._visibility &= -3, qu(t));
+ n = t.stateNode, n._visibility & 2 && (n._visibility &= -3, Ku(t));
break;
- default: qu(t);
+ default: Ku(t);
}
e = e.sibling;
}
}
- function Ju(e, t) {
- for (; au !== null;) {
- var n = au;
+ function qu(e, t) {
+ for (; iu !== null;) {
+ var n = iu;
switch (n.tag) {
case 0:
case 11:
@@ -6011,23 +6011,23 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
break;
case 24: Ea(n.memoizedState.cache);
}
- if (r = n.child, r !== null) r.return = n, au = r;
- else a: for (n = e; au !== null;) {
- r = au;
+ if (r = n.child, r !== null) r.return = n, iu = r;
+ else a: for (n = e; iu !== null;) {
+ r = iu;
var i = r.sibling, a = r.return;
- if (gu(r), r === n) {
- au = null;
+ if (hu(r), r === n) {
+ iu = null;
break a;
}
if (i !== null) {
- i.return = a, au = i;
+ i.return = a, iu = i;
break a;
}
- au = a;
+ iu = a;
}
}
}
- var Yu = {
+ var Ju = {
getCacheForType: function(e) {
var t = va(wa), n = t.data.get(e);
return n === void 0 && (n = e(), t.data.set(e, n)), n;
@@ -6035,13 +6035,13 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
cacheSignal: function() {
return va(wa).controller.signal;
}
- }, Xu = typeof WeakMap == "function" ? WeakMap : Map, Y = 0, Zu = null, X = null, Z = 0, Q = 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;
+ }, 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 Y & 2 && Z !== 0 ? Z & -Z : F.T === null ? B() : Nf();
+ return X & 2 && Q !== 0 ? Q & -Q : F.T === null ? B() : Nf();
}
function Ad() {
if (sd === 0) {
- if (!(Z & 536870912) || q) {
+ if (!(Q & 536870912) || q) {
var e = nt;
nt <<= 1, !(nt & 3932160) && (nt = 262144), sd = e;
} else sd = 536870912;
@@ -6055,10 +6055,10 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
}
}
function Md(e, t, n) {
- (e === Zu && (Q === 2 || Q === 9) || e.cancelPendingCommit !== null) && (zd(e, 0), Id(e, Z, sd, !1)), dt(e, n), (!(Y & 2) || e !== Zu) && (e === Zu && (!(Y & 2) && (ad |= n), rd === 4 && Id(e, Z, sd, !1)), Tf(e));
+ (e === Xu && (Zu === 2 || Zu === 9) || e.cancelPendingCommit !== null) && (zd(e, 0), Id(e, Q, sd, !1)), dt(e, n), (!(X & 2) || e !== Xu) && (e === Xu && (!(X & 2) && (ad |= n), rd === 4 && Id(e, Q, sd, !1)), Tf(e));
}
function Nd(e, t, n) {
- if (Y & 6) throw Error(i(327));
+ if (X & 6) throw Error(i(327));
var r = !n && !(t & 127) && (t & e.expiredLanes) === 0 || ot(e, t), a = r ? qd(e, t) : Gd(e, t, !0), o = r;
do {
if (a === 0) {
@@ -6131,8 +6131,8 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
suspenseyImages: [],
waitingForImages: !0,
waitingForViewTransition: !1,
- unsuspend: hn
- }, Il = null, Uu(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 - Be() : (a & 4194048) === a ? pd - Be() : 0, m = eh(d, m), m !== null)) {
+ unsuspend: pn
+ }, Il = 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 - Be() : (a & 4194048) === a ? pd - Be() : 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;
}
@@ -6171,26 +6171,26 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
n !== 0 && pt(e, n, t);
}
function Ld() {
- return Y & 6 ? !0 : (Ef(0, !1), !1);
+ return X & 6 ? !0 : (Ef(0, !1), !1);
}
function Rd() {
- if (X !== null) {
- if (Q === 0) var e = X.return;
- else e = X, ua = la = null, $o(e), Qa = null, $a = 0, e = X;
+ if (Z !== null) {
+ if (Zu === 0) var e = Z.return;
+ else e = Z, ua = la = null, $o(e), Qa = null, $a = 0, e = Z;
for (; e !== null;) gl(e.alternate, e), e = e.return;
- X = null;
+ Z = null;
}
}
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()), bd = 0, Rd(), Zu = e, X = n = Di(e.current, null), Z = t, Q = 0, Qu = null, $u = !1, ed = ot(e, t), td = !1, cd = sd = od = ad = id = rd = 0, ud = ld = null, dd = !1, nd = st(e, t), _i(), 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 = Di(e.current, null), Q = t, Zu = 0, Qu = null, $u = !1, ed = ot(e, t), td = !1, cd = sd = od = ad = id = rd = 0, ud = ld = null, dd = !1, nd = st(e, t), _i(), n;
}
function Bd(e, t) {
- J = null, F.H = lc, t === Ha || t === Wa ? (t = Xa(), Q = 3) : t === Ua ? (t = Xa(), Q = 4) : Q = t === Dc ? 8 : typeof t == "object" && t && typeof t.then == "function" ? 6 : 1, Qu = t, X === null && (rd = 1, xc(e, Fi(t, e.current)));
+ J = null, F.H = lc, t === Ha || t === Wa ? (t = Xa(), Zu = 3) : t === Ua ? (t = Xa(), Zu = 4) : Zu = t === Dc ? 8 : typeof t == "object" && t && typeof t.then == "function" ? 6 : 1, Qu = t, Z === null && (rd = 1, xc(e, Fi(t, e.current)));
}
function Vd() {
var e = wo.current;
- return e === null ? !0 : (Z & 4194048) === Z ? To === null : (Z & 62914560) === Z || Z & 536870912 ? e === To : !1;
+ return e === null ? !0 : (Q & 4194048) === Q ? To === null : (Q & 62914560) === Q || Q & 536870912 ? e === To : !1;
}
function Hd() {
var e = F.H;
@@ -6198,22 +6198,22 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
}
function Ud() {
var e = F.A;
- return F.A = Yu, e;
+ return F.A = Ju, e;
}
function Wd() {
- rd = 4, $u || (Z & 4194048) !== Z && wo.current !== null || (ed = !0), !(id & 134217727) && !(ad & 134217727) || Zu === null || Id(Zu, Z, sd, !1);
+ rd = 4, $u || (Q & 4194048) !== Q && wo.current !== null || (ed = !0), !(id & 134217727) && !(ad & 134217727) || Xu === null || Id(Xu, Q, sd, !1);
}
function Gd(e, t, n) {
- var r = Y;
- Y |= 2;
+ var r = X;
+ X |= 2;
var i = Hd(), a = Ud();
- (Zu !== e || Z !== t) && (hd = null, zd(e, t)), t = !1;
+ (Xu !== e || Q !== t) && (hd = null, zd(e, t)), t = !1;
var o = rd;
a: do
try {
- if (Q !== 0 && X !== null) {
- var s = X, c = Qu;
- switch (Q) {
+ if (Zu !== 0 && Z !== null) {
+ var s = Z, c = Qu;
+ switch (Zu) {
case 8:
Rd(), o = 6;
break a;
@@ -6222,13 +6222,13 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
case 9:
case 6:
wo.current === null && (t = !0);
- var l = Q;
- if (Q = 0, Qu = null, Zd(e, s, c, l), n && ed) {
+ var l = Zu;
+ if (Zu = 0, Qu = null, Zd(e, s, c, l), n && ed) {
o = 0;
break a;
}
break;
- default: l = Q, Q = 0, Qu = null, Zd(e, s, c, l);
+ default: l = Zu, Zu = 0, Qu = null, Zd(e, s, c, l);
}
}
Kd(), o = rd;
@@ -6237,66 +6237,66 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
Bd(e, t);
}
while (1);
- return t && e.shellSuspendCounter++, ua = la = null, Y = r, F.H = i, F.A = a, X === null && (Zu = null, Z = 0, _i()), o;
+ return t && e.shellSuspendCounter++, ua = la = null, X = r, F.H = i, F.A = a, Z === null && (Xu = null, Q = 0, _i()), o;
}
function Kd() {
- for (; X !== null;) Yd(X);
+ for (; Z !== null;) Yd(Z);
}
function qd(e, t) {
- var n = Y;
- Y |= 2;
+ var n = X;
+ X |= 2;
var r = Hd(), a = Ud();
- Zu !== e || Z !== t ? (hd = null, md = Be() + 500, zd(e, t)) : ed = ot(e, t);
+ Xu !== e || Q !== t ? (hd = null, md = Be() + 500, zd(e, t)) : ed = ot(e, t);
a: do
try {
- if (Q !== 0 && X !== null) {
- t = X;
+ if (Zu !== 0 && Z !== null) {
+ t = Z;
var o = Qu;
- b: switch (Q) {
+ b: switch (Zu) {
case 1:
- Q = 0, Qu = null, Zd(e, t, o, 1);
+ Zu = 0, Qu = null, Zd(e, t, o, 1);
break;
case 2:
case 9:
if (Ka(o)) {
- Q = 0, Qu = null, Xd(t);
+ Zu = 0, Qu = null, Xd(t);
break;
}
t = function() {
- Q !== 2 && Q !== 9 || Zu !== e || (Q = 7), Tf(e);
+ Zu !== 2 && Zu !== 9 || Xu !== e || (Zu = 7), Tf(e);
}, o.then(t, t);
break a;
case 3:
- Q = 7;
+ Zu = 7;
break a;
case 4:
- Q = 5;
+ Zu = 5;
break a;
case 7:
- Ka(o) ? (Q = 0, Qu = null, Xd(t)) : (Q = 0, Qu = null, Zd(e, t, o, 7));
+ Ka(o) ? (Zu = 0, Qu = null, Xd(t)) : (Zu = 0, Qu = null, Zd(e, t, o, 7));
break;
case 5:
var s = null;
- switch (X.tag) {
- case 26: s = X.memoizedState;
+ switch (Z.tag) {
+ case 26: s = Z.memoizedState;
case 5:
case 27:
- var c = X;
+ var c = Z;
if (s ? Ym(s) : c.stateNode.complete) {
- Q = 0, Qu = null;
+ Zu = 0, Qu = null;
var l = c.sibling;
- if (l !== null) X = l;
+ if (l !== null) Z = l;
else {
var u = c.return;
- u === null ? X = null : (X = u, Qd(u));
+ u === null ? Z = null : (Z = u, Qd(u));
}
break b;
}
}
- Q = 0, Qu = null, Zd(e, t, o, 5);
+ Zu = 0, Qu = null, Zd(e, t, o, 5);
break;
case 6:
- Q = 0, Qu = null, Zd(e, t, o, 6);
+ Zu = 0, Qu = null, Zd(e, t, o, 6);
break;
case 8:
Rd(), rd = 6;
@@ -6310,47 +6310,47 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
Bd(e, t);
}
while (1);
- return ua = la = null, F.H = r, F.A = a, Y = n, X === null ? (Zu = null, Z = 0, _i(), rd) : 0;
+ return ua = la = null, F.H = r, F.A = a, X = n, Z === null ? (Xu = null, Q = 0, _i(), rd) : 0;
}
function Jd() {
- for (; X !== null && !Re();) Yd(X);
+ for (; Z !== null && !Re();) Yd(Z);
}
function Yd(e) {
var t = sl(e.alternate, e, nd);
- e.memoizedProps = e.pendingProps, t === null ? Qd(e) : X = t;
+ e.memoizedProps = e.pendingProps, t === null ? Qd(e) : Z = t;
}
function Xd(e) {
var t = e, n = t.alternate;
switch (t.tag) {
case 15:
case 0:
- t = Vc(n, t, t.pendingProps, t.type, void 0, Z);
+ t = Vc(n, t, t.pendingProps, t.type, void 0, Q);
break;
case 11:
- t = Vc(n, t, t.pendingProps, t.type.render, t.ref, Z);
+ t = Vc(n, t, t.pendingProps, t.type.render, t.ref, Q);
break;
case 5:
$o(t);
var r = t;
r === Xi && (q ? (ra(r), r.tag === 5 && r.stateNode != null && (Zi = r.stateNode)) : (ra(r), q = !0));
- default: gl(n, t), t = X = Oi(t, nd), t = sl(n, t, nd);
+ default: gl(n, t), t = Z = Oi(t, nd), t = sl(n, t, nd);
}
- e.memoizedProps = e.pendingProps, t === null ? Qd(e) : X = t;
+ e.memoizedProps = e.pendingProps, t === null ? Qd(e) : Z = t;
}
function Zd(e, t, n, r) {
ua = la = null, $o(t), Qa = null, $a = 0;
var i = t.return;
try {
- if (Ec(e, i, t, n, Z)) {
- rd = 1, xc(e, Fi(n, e.current)), X = null;
+ if (Ec(e, i, t, n, Q)) {
+ rd = 1, xc(e, Fi(n, e.current)), Z = null;
return;
}
} catch (t) {
- if (i !== null) throw X = i, t;
- rd = 1, xc(e, Fi(n, e.current)), X = null;
+ if (i !== null) throw Z = i, t;
+ rd = 1, xc(e, Fi(n, e.current)), Z = null;
return;
}
- t.flags & 32768 ? (q || r === 1 ? e = !0 : ed || Z & 536870912 ? e = !1 : ($u = e = !0, (r === 2 || r === 9 || r === 3 || r === 6) && (r = wo.current, r !== null && r.tag === 13 && (r.flags |= 16384))), $d(t, e)) : Qd(t);
+ t.flags & 32768 ? (q || r === 1 ? e = !0 : ed || Q & 536870912 ? e = !1 : ($u = e = !0, (r === 2 || r === 9 || r === 3 || r === 6) && (r = wo.current, r !== null && r.tag === 13 && (r.flags |= 16384))), $d(t, e)) : Qd(t);
}
function Qd(e) {
var t = e;
@@ -6362,14 +6362,14 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
e = t.return;
var n = ml(t.alternate, t, nd);
if (n !== null) {
- X = n;
+ Z = n;
return;
}
if (t = t.sibling, t !== null) {
- X = t;
+ Z = t;
return;
}
- X = t = e;
+ Z = t = e;
} while (t !== null);
rd === 0 && (rd = 5);
}
@@ -6377,26 +6377,26 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
do {
var n = hl(e.alternate, e);
if (n !== null) {
- n.flags &= 32767, X = 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)) {
- X = e;
+ Z = e;
return;
}
- X = e = n;
+ Z = e = n;
} while (e !== null);
- rd = 6, X = null;
+ rd = 6, Z = null;
}
function ef(e, t, n, r, a, o, s, c, l, u, d, f) {
e.cancelPendingCommit = null;
do
lf();
while (_d !== 0);
- if (Y & 6) throw Error(i(327));
+ if (X & 6) throw Error(i(327));
if (t !== null) {
if (t === e.current) throw Error(i(177));
- e === Zu && (X = Zu = null, Z = 0), yd = t, vd = e, bd = n, Sd = a, Cd = r, tf(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 tf(e, t, n, r, i, a, o) {
@@ -6404,11 +6404,11 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
if (xd = s, s |= gi, ft(e, n, s, r, i, a), Td = null, (n & 335544064) === n ? (Ed = ka(e), r = 10262) : (Ed = null, r = 10256), (t.subtreeFlags & r) !== 0 || (t.flags & r) !== 0 ? (e.callbackNode = null, e.callbackPriority = 0, vf(Ue, function() {
return uf(), null;
})) : (e.callbackNode = null, e.callbackPriority = 0), Fl = !1, r = !!(t.flags & 13878), t.subtreeFlags & 13878 || r) {
- r = F.T, F.T = null, i = I.p, I.p = 2, a = Y, Y |= 4;
+ r = F.T, F.T = null, i = I.p, I.p = 2, a = X, X |= 4;
try {
- uu(e, t, n);
+ lu(e, t, n);
} finally {
- Y = a, I.p = i, F.T = r;
+ X = a, I.p = i, F.T = r;
}
}
_d = 1, Fl ? wd = Mp(o, e.containerInfo, Ed, af, of, rf, sf, uf, nf, null, null) : (af(), of(), sf());
@@ -6420,7 +6420,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
}
}
function rf() {
- _d === 3 && (_d = 0, ju(yd, vd), _d = 4);
+ _d === 3 && (_d = 0, Au(yd, vd), _d = 4);
}
function af() {
if (_d === 1) {
@@ -6430,10 +6430,10 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
r = F.T, F.T = null;
var i = I.p;
I.p = 2;
- var a = Y;
- Y |= 4;
+ var a = X;
+ X |= 4;
try {
- su = cu = !1, Du(t, e, n), n = cp;
+ ou = su = !1, Eu(t, e, n), n = cp;
var o = Br(e.containerInfo), s = n.focusedElem, c = n.selectionRange;
if (o !== s && s && s.ownerDocument && zr(s.ownerDocument.documentElement, s)) {
if (c !== null && Vr(s)) {
@@ -6464,7 +6464,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
}
gh = !!sp, cp = sp = null;
} finally {
- Y = a, I.p = i, F.T = r;
+ X = a, I.p = i, F.T = r;
}
}
e.current = t, _d = 2;
@@ -6478,12 +6478,12 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
n = F.T, F.T = null;
var r = I.p;
I.p = 2;
- var i = Y;
- Y |= 4;
+ var i = X;
+ X |= 4;
try {
- fu(e, t.alternate, t);
+ du(e, t.alternate, t);
} finally {
- Y = i, I.p = r, F.T = n;
+ X = i, I.p = r, F.T = n;
}
}
_d = 3;
@@ -6527,9 +6527,9 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
try {
I.p = 32 > n ? 32 : n, F.T = null, n = Sd, Sd = null;
var o = vd, s = bd;
- if (_d = 0, yd = vd = null, bd = 0, Y & 6) throw Error(i(331));
- var c = Y;
- if (Y |= 4, Ku(o.current), Ru(o, o.current, s, n), Y = c, Ef(0, !1), Ye && typeof Ye.onPostCommitFiberRoot == "function") try {
+ 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), Ye && typeof Ye.onPostCommitFiberRoot == "function") try {
Ye.onPostCommitFiberRoot(Je, o);
} catch {}
return !0;
@@ -6560,7 +6560,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
function pf(e, t, n) {
var r = e.pingCache;
if (r === null) {
- r = e.pingCache = new Xu();
+ 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));
@@ -6568,7 +6568,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
}
function mf(e, t, n) {
var r = e.pingCache;
- r !== null && r.delete(t), e.pingedLanes |= e.suspendedLanes & n, e.warmLanes &= ~n, Zu === e && (Z & n) === n && (rd === 4 || rd === 3 && (Z & 62914560) === Z && 300 > Be() - fd ? Y & 2 ? od |= n : zd(e, 0) : od |= n, cd === Z && (cd = 0)), Tf(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 > Be() - fd ? X & 2 ? od |= n : zd(e, 0) : od |= n, cd === Q && (cd = 0)), Tf(e);
}
function hf(e, t) {
t === 0 && (t = lt()), e = bi(e, t), e !== null && (dt(e, t), Tf(e));
@@ -6616,7 +6616,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
a = (1 << 31 - Ze(42 | e) + 1) - 1, a &= i & ~(o & ~s), a = a & 201326741 ? a & 201326741 | 1 : a ? a | 2 : 0;
}
a !== 0 && (n = !0, jf(r, a));
- } else a = Z, a = at(r, r === Zu ? a : 0, r.cancelPendingCommit !== null || r.timeoutHandle !== -1), !(a & 3) || ot(r, a) || (n = !0, jf(r, a));
+ } else a = Q, a = at(r, r === Xu ? a : 0, r.cancelPendingCommit !== null || r.timeoutHandle !== -1), !(a & 3) || ot(r, a) || (n = !0, jf(r, a));
}
r = r.next;
}
@@ -6642,7 +6642,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
var o = 31 - Ze(a), s = 1 << o, c = i[o];
c === -1 ? ((s & n) === 0 || (s & r) !== 0) && (i[o] = ct(s, t)) : c <= t && (e.expiredLanes |= s), a &= ~s;
}
- if (t = Zu, n = Z, n = at(e, e === t ? n : 0, e.cancelPendingCommit !== null || e.timeoutHandle !== -1), r = e.callbackNode, n === 0 || e === t && (Q === 2 || Q === 9) || e.cancelPendingCommit !== null) return r !== null && r !== null && Le(r), e.callbackNode = null, e.callbackPriority = 0;
+ if (t = Xu, n = Q, n = at(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 && Le(r), e.callbackNode = null, e.callbackPriority = 0;
if (!(n & 3) || ot(e, n)) {
if (t = n & -n, t === e.callbackPriority) return t;
switch (r !== null && Le(r), _t(n)) {
@@ -6666,8 +6666,8 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
if (_d !== 0 && _d !== 5) return e.callbackNode = null, e.callbackPriority = 0, null;
var n = e.callbackNode;
if (lf() && e.callbackNode !== n) return null;
- var r = Z;
- return r = at(e, e === Zu ? r : 0, e.cancelPendingCommit !== null || e.timeoutHandle !== -1), r === 0 ? null : (Nd(e, r, t), kf(e, Be()), e.callbackNode != null && e.callbackNode === n ? Af.bind(null, e) : null);
+ var r = Q;
+ return r = at(e, e === Xu ? r : 0, e.cancelPendingCommit !== null || e.timeoutHandle !== -1), r === 0 ? null : (Nd(e, r, t), kf(e, Be()), e.callbackNode != null && e.callbackNode === n ? Af.bind(null, e) : null);
}
function jf(e, t) {
if (lf()) return null;
@@ -6675,7 +6675,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
}
function Mf() {
bp(function() {
- Y & 6 ? Ie(He, Df) : Of();
+ X & 6 ? Ie(He, Df) : Of();
});
}
function Nf() {
@@ -6686,13 +6686,13 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
return wf;
}
function Pf(e) {
- return e == null || typeof e == "symbol" || typeof e == "boolean" ? null : typeof e == "function" ? e : mn(e);
+ return e == null || typeof e == "symbol" || typeof e == "boolean" ? null : typeof e == "function" ? e : fn(e);
}
function Ff(e, t, n, r, i) {
if (t === "submit" && n && n.stateNode === i) {
var a = Pf((i[xt] || null).action), o = r.submitter;
o && (t = (t = o[xt] || null) ? Pf(t.formAction) : o.getAttribute("formAction"), t !== null && (a = t, o = null));
- var s = new Fn("action", "action", null, r, i);
+ var s = new Mn("action", "action", null, r, i);
e.push({
event: s,
listeners: [{
@@ -6724,12 +6724,12 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
var Lf = si[If];
ci(Lf.toLowerCase(), "on" + (Lf[0].toUpperCase() + Lf.slice(1)));
}
- ci($r, "onAnimationEnd"), ci(ei, "onAnimationIteration"), ci(ti, "onAnimationStart"), ci("dblclick", "onDoubleClick"), ci("focusin", "onFocus"), ci("focusout", "onBlur"), ci(ni, "onTransitionRun"), ci(ri, "onTransitionStart"), ci(ii, "onTransitionCancel"), ci(ai, "onTransitionEnd"), zt("onMouseEnter", ["mouseout", "mouseover"]), zt("onMouseLeave", ["mouseout", "mouseover"]), zt("onPointerEnter", ["pointerout", "pointerover"]), zt("onPointerLeave", ["pointerout", "pointerover"]), Rt("onChange", "change click focusin focusout input keydown keyup selectionchange".split(" ")), Rt("onSelect", "focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")), Rt("onBeforeInput", [
+ ci($r, "onAnimationEnd"), ci(ei, "onAnimationIteration"), ci(ti, "onAnimationStart"), ci("dblclick", "onDoubleClick"), ci("focusin", "onFocus"), ci("focusout", "onBlur"), ci(ni, "onTransitionRun"), ci(ri, "onTransitionStart"), ci(ii, "onTransitionCancel"), ci(ai, "onTransitionEnd"), Rt("onMouseEnter", ["mouseout", "mouseover"]), Rt("onMouseLeave", ["mouseout", "mouseover"]), Rt("onPointerEnter", ["pointerout", "pointerover"]), Rt("onPointerLeave", ["pointerout", "pointerover"]), Lt("onChange", "change click focusin focusout input keydown keyup selectionchange".split(" ")), Lt("onSelect", "focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")), Lt("onBeforeInput", [
"compositionend",
"keypress",
"textInput",
"paste"
- ]), Rt("onCompositionEnd", "compositionend focusout keydown keypress keyup mousedown".split(" ")), Rt("onCompositionStart", "compositionstart focusout keydown keypress keyup mousedown".split(" ")), Rt("onCompositionUpdate", "compositionupdate focusout keydown keypress keyup mousedown".split(" "));
+ ]), Lt("onCompositionEnd", "compositionend focusout keydown keypress keyup mousedown".split(" ")), Lt("onCompositionStart", "compositionstart focusout keydown keypress keyup mousedown".split(" ")), Lt("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);
@@ -6775,7 +6775,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
var Hf = "_reactListening" + Math.random().toString(36).slice(2);
function Uf(e) {
if (!e[Hf]) {
- e[Hf] = !0, It.forEach(function(t) {
+ e[Hf] = !0, Ft.forEach(function(t) {
t !== "selectionchange" && (zf.has(t) || Vf(t, !1, e), Vf(t, !0, e));
});
var t = e.nodeType === 9 ? e : e.ownerDocument;
@@ -6792,7 +6792,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
break;
default: i = yh;
}
- n = i.bind(null, t, n, e), i = void 0, !Tn || 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, !xn || 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 });
@@ -6811,7 +6811,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
s = s.return;
}
for (; c !== null;) {
- if (s = At(c), s === null) return;
+ if (s = kt(c), s === null) return;
if (l = s.tag, l === 5 || l === 6 || l === 26 || l === 27) {
r = a = s;
continue a;
@@ -6821,27 +6821,27 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
}
r = r.return;
}
- Sn(function() {
- var r = a, i = _n(n), s = [];
+ G(function() {
+ var r = a, i = hn(n), s = [];
a: {
var c = oi.get(e);
if (c !== void 0) {
- var l = Fn, u = e;
+ var l = Mn, u = e;
switch (e) {
- case "keypress": if (An(n) === 0) break a;
+ case "keypress": if (Dn(n) === 0) break a;
case "keydown":
case "keyup":
- l = K;
+ l = Xn;
break;
case "focusin":
- u = "focus", l = Un;
+ u = "focus", l = Vn;
break;
case "focusout":
- u = "blur", l = Un;
+ u = "blur", l = Vn;
break;
case "beforeblur":
case "afterblur":
- l = Un;
+ l = Vn;
break;
case "click": if (n.button === 2) break a;
case "auxclick":
@@ -6852,7 +6852,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
case "mouseout":
case "mouseover":
case "contextmenu":
- l = Vn;
+ l = zn;
break;
case "drag":
case "dragend":
@@ -6862,7 +6862,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
case "dragover":
case "dragstart":
case "drop":
- l = Hn;
+ l = Bn;
break;
case "touchcancel":
case "touchend":
@@ -6873,14 +6873,14 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
case $r:
case ei:
case ti:
- l = Wn;
+ l = Hn;
break;
case ai:
l = er;
break;
case "scroll":
case "scrollend":
- l = Ln;
+ l = Pn;
break;
case "wheel":
l = tr;
@@ -6888,7 +6888,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
case "copy":
case "cut":
case "paste":
- l = Gn;
+ l = Un;
break;
case "gotpointercapture":
case "lostpointercapture":
@@ -6910,7 +6910,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
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 = Cn(m, p), g != null && d.push(Kf(m, g, h))), f) break;
+ if (h = g.stateNode, g = g.tag, g !== 5 && g !== 26 && g !== 27 || h === null || p === null || (g = bn(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({
@@ -6921,25 +6921,25 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
}
if (!(t & 7)) {
a: {
- if (l = e === "mouseover" || e === "pointerover", c = e === "mouseout" || e === "pointerout", l && n !== gn && (u = n.relatedTarget || n.fromElement) && (At(u) || u[St])) 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 ? At(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 = Vn, g = "onMouseLeave", p = "onMouseEnter", m = "mouse", (e === "pointerout" || e === "pointerover") && (d = Zn, g = "onPointerLeave", p = "onPointerEnter", m = "pointer"), f = c == null ? u : Mt(c), h = l == null ? u : Mt(l), u = new d(g, m + "leave", c, n, i), u.target = f, u.relatedTarget = h, g = null, At(i) === r && (d = new d(p, m + "enter", l, n, i), d.target = h, d.relatedTarget = f, g = d), f = g, d = c && l ? E(c, l, Jf) : null, c !== null && Yf(s, u, c, d, !1), l !== null && f !== null && Yf(s, f, l, d, !0)));
+ if (l = e === "mouseover" || e === "pointerover", c = e === "mouseout" || e === "pointerout", l && n !== mn && (u = n.relatedTarget || n.fromElement) && (kt(u) || u[St])) 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 ? kt(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 = zn, g = "onMouseLeave", p = "onMouseEnter", m = "mouse", (e === "pointerout" || e === "pointerover") && (d = Zn, g = "onPointerLeave", p = "onPointerEnter", m = "pointer"), f = c == null ? u : jt(c), h = l == null ? u : jt(l), u = new d(g, m + "leave", c, n, i), u.target = f, u.relatedTarget = h, g = null, kt(i) === r && (d = new d(p, m + "enter", l, n, i), d.target = h, d.relatedTarget = f, g = d), f = g, d = c && l ? E(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 ? Mt(r) : window, l = c.nodeName && c.nodeName.toLowerCase(), l === "select" || l === "input" && c.type === "file") var _ = Sr;
+ if (c = r ? jt(r) : window, l = c.nodeName && c.nodeName.toLowerCase(), l === "select" || l === "input" && c.type === "file") var _ = Sr;
else if (gr(c)) {
if (Cr) _ = Mr;
else {
_ = Ar;
var v = kr;
}
- } else l = c.nodeName, !l || l.toLowerCase() !== "input" || c.type !== "checkbox" && c.type !== "radio" ? r && dn(r.elementType) && (_ = Sr) : _ = jr;
+ } else l = c.nodeName, !l || l.toLowerCase() !== "input" || c.type !== "checkbox" && c.type !== "radio" ? r && un(r.elementType) && (_ = Sr) : _ = jr;
if (_ &&= _(e, r)) {
_r(s, _, n, i);
break a;
}
v && v(e, c, r);
}
- switch (v = r ? Mt(r) : window, e) {
+ switch (v = r ? jt(r) : window, e) {
case "focusin":
(gr(v) || v.contentEditable === "true") && (Ur = v, Wr = r, Gr = null);
break;
@@ -6974,10 +6974,10 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
b = void 0;
}
else fr ? ur(e, n) && (b = "onCompositionEnd") : e === "keydown" && n.keyCode === 229 && (b = "onCompositionStart");
- b && (sr && n.locale !== "ko" && (fr || b !== "onCompositionStart" ? b === "onCompositionEnd" && fr && (y = kn()) : (Dn = i, U = "value" in Dn ? Dn.value : Dn.textContent, fr = !0)), v = qf(r, b), 0 < v.length && (b = new Kn(b, e, null, n, i), s.push({
+ b && (sr && n.locale !== "ko" && (fr || b !== "onCompositionStart" ? b === "onCompositionEnd" && fr && (y = En()) : (Cn = i, wn = "value" in Cn ? Cn.value : Cn.textContent, fr = !0)), v = qf(r, b), 0 < v.length && (b = new Wn(b, e, null, n, i), s.push({
event: b,
listeners: v
- }), y ? b.data = y : (y = dr(n), y !== null && (b.data = y)))), (y = or ? pr(e, n) : mr(e, n)) && (b = qf(r, "onBeforeInput"), 0 < b.length && (v = new Kn("onBeforeInput", "beforeinput", null, n, i), s.push({
+ }), y ? b.data = y : (y = dr(n), y !== null && (b.data = y)))), (y = or ? pr(e, n) : mr(e, n)) && (b = qf(r, "onBeforeInput"), 0 < b.length && (v = new Wn("onBeforeInput", "beforeinput", null, n, i), s.push({
event: v,
listeners: b
}), v.data = y)), Ff(s, e, r, n, i);
@@ -6995,7 +6995,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
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 = Cn(e, n), i != null && r.unshift(Kf(e, i, a)), i = Cn(e, t), i != null && r.push(Kf(e, i, a))), e.tag === 3) return r;
+ if (i = i.tag, i !== 5 && i !== 26 && i !== 27 || a === null || (i = bn(e, n), i != null && r.unshift(Kf(e, i, a)), i = bn(e, t), i != null && r.push(Kf(e, i, a))), e.tag === 3) return r;
e = e.return;
}
return [];
@@ -7011,7 +7011,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
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 = Cn(n, a), l != null && o.unshift(Kf(n, l, c))) : i || (l = Cn(n, a), l != null && o.push(Kf(n, l, c)))), n = n.return;
+ s !== 5 && s !== 26 && s !== 27 || l === null || (c = l, i ? (l = bn(n, a), l != null && o.unshift(Kf(n, l, c))) : i || (l = bn(n, a), l != null && o.push(Kf(n, l, c)))), n = n.return;
}
o.length !== 0 && e.push({
event: t,
@@ -7028,28 +7028,28 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
function ep(e, t, n, r, a, o) {
switch (n) {
case "children":
- if (typeof r == "string") t === "body" || t === "textarea" && r === "" || sn(e, r);
- else if (typeof r == "number" || typeof r == "bigint") t !== "body" && sn(e, "" + r);
+ if (typeof r == "string") t === "body" || t === "textarea" && r === "" || on(e, r);
+ else if (typeof r == "number" || typeof r == "bigint") t !== "body" && on(e, "" + r);
else return;
break;
case "className":
- Kt(e, "class", r);
+ Gt(e, "class", r);
break;
case "tabIndex":
- Kt(e, "tabindex", r);
+ Gt(e, "tabindex", r);
break;
case "dir":
case "role":
case "viewBox":
case "width":
case "height":
- Kt(e, n, r);
+ Gt(e, n, r);
break;
case "style":
- un(e, r, o);
+ ln(e, r, o);
return;
case "data": if (t !== "object") {
- Kt(e, "data", r);
+ Gt(e, "data", r);
break;
}
case "src":
@@ -7062,7 +7062,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
e.removeAttribute(n);
break;
}
- r = mn(r), e.setAttribute(n, r);
+ r = fn(r), e.setAttribute(n, r);
break;
case "action":
case "formAction":
@@ -7074,10 +7074,10 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
e.removeAttribute(n);
break;
}
- r = mn(r), e.setAttribute(n, r);
+ r = fn(r), e.setAttribute(n, r);
break;
case "onClick":
- r != null && (e.onclick = hn);
+ r != null && (e.onclick = pn);
return;
case "onScroll":
r != null && $("scroll", e);
@@ -7112,7 +7112,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
e.removeAttribute("xlink:href");
break;
}
- n = mn(r), e.setAttributeNS("http://www.w3.org/1999/xlink", "xlink:href", n);
+ n = fn(r), e.setAttributeNS("http://www.w3.org/1999/xlink", "xlink:href", n);
break;
case "contentEditable":
case "spellCheck":
@@ -7165,49 +7165,49 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
r == null || typeof r == "function" || typeof r == "symbol" || isNaN(r) ? e.removeAttribute(n) : e.setAttribute(n, r);
break;
case "popover":
- $("beforetoggle", e), $("toggle", e), Gt(e, "popover", r);
+ $("beforetoggle", e), $("toggle", e), Wt(e, "popover", r);
break;
case "xlinkActuate":
- qt(e, "http://www.w3.org/1999/xlink", "xlink:actuate", r);
+ Kt(e, "http://www.w3.org/1999/xlink", "xlink:actuate", r);
break;
case "xlinkArcrole":
- qt(e, "http://www.w3.org/1999/xlink", "xlink:arcrole", r);
+ Kt(e, "http://www.w3.org/1999/xlink", "xlink:arcrole", r);
break;
case "xlinkRole":
- qt(e, "http://www.w3.org/1999/xlink", "xlink:role", r);
+ Kt(e, "http://www.w3.org/1999/xlink", "xlink:role", r);
break;
case "xlinkShow":
- qt(e, "http://www.w3.org/1999/xlink", "xlink:show", r);
+ Kt(e, "http://www.w3.org/1999/xlink", "xlink:show", r);
break;
case "xlinkTitle":
- qt(e, "http://www.w3.org/1999/xlink", "xlink:title", r);
+ Kt(e, "http://www.w3.org/1999/xlink", "xlink:title", r);
break;
case "xlinkType":
- qt(e, "http://www.w3.org/1999/xlink", "xlink:type", r);
+ Kt(e, "http://www.w3.org/1999/xlink", "xlink:type", r);
break;
case "xmlBase":
- qt(e, "http://www.w3.org/XML/1998/namespace", "xml:base", r);
+ Kt(e, "http://www.w3.org/XML/1998/namespace", "xml:base", r);
break;
case "xmlLang":
- qt(e, "http://www.w3.org/XML/1998/namespace", "xml:lang", r);
+ Kt(e, "http://www.w3.org/XML/1998/namespace", "xml:lang", r);
break;
case "xmlSpace":
- qt(e, "http://www.w3.org/XML/1998/namespace", "xml:space", r);
+ Kt(e, "http://www.w3.org/XML/1998/namespace", "xml:space", r);
break;
case "is":
- Gt(e, "is", r);
+ Wt(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 = fn.get(n) || n, Gt(e, n, r);
+ default: if (!(2 < n.length) || n[0] !== "o" && n[0] !== "O" || n[1] !== "n" && n[1] !== "N") n = W.get(n) || n, Wt(e, n, r);
else return;
}
- V = !0;
+ H = !0;
}
function tp(e, t, n, r, a, o) {
switch (n) {
case "style":
- un(e, r, o);
+ ln(e, r, o);
return;
case "dangerouslySetInnerHTML":
if (r != null) {
@@ -7219,8 +7219,8 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
}
break;
case "children":
- if (typeof r == "string") sn(e, r);
- else if (typeof r == "number" || typeof r == "bigint") sn(e, "" + r);
+ if (typeof r == "string") on(e, r);
+ else if (typeof r == "number" || typeof r == "bigint") on(e, "" + r);
else return;
break;
case "onScroll":
@@ -7230,7 +7230,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
r != null && $("scrollend", e);
return;
case "onClick":
- r != null && (e.onclick = hn);
+ r != null && (e.onclick = pn);
return;
case "suppressContentEditableWarning":
case "suppressHydrationWarning":
@@ -7239,16 +7239,16 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
case "innerText":
case "textContent": return;
default:
- if (!Lt.hasOwnProperty(n)) a: {
+ if (!It.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[xt] || 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;
}
- V = !0, n in e ? e[n] = r : !0 === r ? e.setAttribute(n, "") : Gt(e, n, r);
+ H = !0, n in e ? e[n] = r : !0 === r ? e.setAttribute(n, "") : Wt(e, n, r);
}
return;
}
- V = !0;
+ H = !0;
}
function np(e, t, n) {
switch (t) {
@@ -7310,7 +7310,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
default: ep(e, t, r, d, n, null);
}
}
- nn(e, o, c, l, u, s, a, !1);
+ en(e, o, c, l, u, s, a, !1);
return;
case "select":
for (a in $("invalid", e), r = s = o = null, n) if (n.hasOwnProperty(a) && (c = n[a], c != null)) switch (a) {
@@ -7323,7 +7323,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
case "multiple": r = c;
default: ep(e, t, a, c, n, null);
}
- t = o, n = s, e.multiple = !!r, t == null ? n != null && rn(e, !!r, n, !0) : rn(e, !!r, t, !1);
+ t = o, n = s, e.multiple = !!r, t == null ? n != null && nn(e, !!r, n, !0) : nn(e, !!r, t, !1);
return;
case "textarea":
for (s in $("invalid", e), o = a = r = null, n) if (n.hasOwnProperty(s) && (c = n[s], c != null)) switch (s) {
@@ -7341,7 +7341,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
break;
default: ep(e, t, s, c, n, null);
}
- on(e, r, a, o);
+ an(e, r, a, o);
return;
case "option":
for (l in n) if (n.hasOwnProperty(l) && (r = n[l], r != null)) switch (l) {
@@ -7388,7 +7388,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
default: ep(e, t, u, r, n, null);
}
return;
- default: if (dn(t)) {
+ default: if (un(t)) {
for (d in n) n.hasOwnProperty(d) && (r = n[d], r !== void 0 && tp(e, t, d, r, n, void 0));
return;
}
@@ -7421,22 +7421,22 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
var m = r[p];
if (f = n[p], r.hasOwnProperty(p) && (m != null || f != null)) switch (p) {
case "type":
- m !== f && (V = !0), o = m;
+ m !== f && (H = !0), o = m;
break;
case "name":
- m !== f && (V = !0), a = m;
+ m !== f && (H = !0), a = m;
break;
case "checked":
- m !== f && (V = !0), u = m;
+ m !== f && (H = !0), u = m;
break;
case "defaultChecked":
- m !== f && (V = !0), d = m;
+ m !== f && (H = !0), d = m;
break;
case "value":
- m !== f && (V = !0), s = m;
+ m !== f && (H = !0), s = m;
break;
case "defaultValue":
- m !== f && (V = !0), c = m;
+ m !== f && (H = !0), c = m;
break;
case "children":
case "dangerouslySetInnerHTML":
@@ -7445,7 +7445,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
default: m !== f && ep(e, t, p, m, r, f);
}
}
- tn(e, s, c, l, u, d, o, a);
+ $t(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) {
@@ -7455,15 +7455,15 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
}
for (a in r) if (o = r[a], l = n[a], r.hasOwnProperty(a) && (o != null || l != null)) switch (a) {
case "value":
- o !== l && (V = !0), p = o;
+ o !== l && (H = !0), p = o;
break;
case "defaultValue":
- o !== l && (V = !0), c = o;
+ o !== l && (H = !0), c = o;
break;
- case "multiple": o !== l && (V = !0), s = o;
+ 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 ? rn(e, !!n, n ? [] : "", !1) : rn(e, !!n, t, !0)) : rn(e, !!n, p, !1);
+ t = c, n = s, r = m, p == null ? !!r != !!n && (t == null ? nn(e, !!n, n ? [] : "", !1) : nn(e, !!n, t, !0)) : nn(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) {
@@ -7473,10 +7473,10 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
}
for (s in r) if (a = r[s], o = n[s], r.hasOwnProperty(s) && (a != null || o != null)) switch (s) {
case "value":
- a !== o && (V = !0), p = a;
+ a !== o && (H = !0), p = a;
break;
case "defaultValue":
- a !== o && (V = !0), m = a;
+ a !== o && (H = !0), m = a;
break;
case "children": break;
case "dangerouslySetInnerHTML":
@@ -7484,7 +7484,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
break;
default: a !== o && ep(e, t, s, a, r, o);
}
- an(e, p, m);
+ rn(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) {
@@ -7495,7 +7495,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
}
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 && (V = !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: ep(e, t, l, p, r, m);
}
@@ -7524,7 +7524,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
default: ep(e, t, u, p, r, m);
}
return;
- default: if (dn(t)) {
+ default: if (un(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;
@@ -7583,7 +7583,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
return e === 1 && t === "foreignObject" ? 0 : e;
}
function fp(e, t, n, r) {
- return n = lp(n).createElement(e), n[bt] = r, n[xt] = t, np(n, e, t), Pt(n), n;
+ return n = lp(n).createElement(e), n[bt] = r, n[xt] = t, np(n, e, t), Nt(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;
@@ -7952,7 +7952,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
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 = At(i);
+ var a = kt(i);
if (e & Node.DOCUMENT_POSITION_CONTAINED_BY) {
if (n = !!a) a: {
for (; a !== null;) {
@@ -8049,7 +8049,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
case "HTML":
case "HEAD":
case "BODY":
- nm(n), kt(n);
+ nm(n), Ot(n);
continue;
case "SCRIPT":
case "STYLE": continue;
@@ -8192,11 +8192,11 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
var i = n[r];
n.hasOwnProperty(r) && i != null && ep(e, t, r, null, rp, i);
}
- n.dangerouslySetInnerHTML != null && (e.textContent = ""), e.onclick === hn && (e.onclick = null), kt(e);
+ n.dangerouslySetInnerHTML != null && (e.textContent = ""), e.onclick === pn && (e.onclick = null), Ot(e);
}
function _m(e) {
for (var t = e.attributes; t.length;) e.removeAttributeNode(t[0]);
- kt(e);
+ Ot(e);
}
var vm = /* @__PURE__ */ new Map(), ym = /* @__PURE__ */ new Set();
function bm(e) {
@@ -8223,19 +8223,19 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
return e || t;
}
function Cm(e) {
- var t = jt(e);
+ var t = At(e);
t !== null && t.tag === 5 && t.type === "form" ? Zs(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 = en(t);
+ var i = Qt(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), Pt(t), r.head.appendChild(t)));
+ }, r.querySelector(i) === null && (t = r.createElement("link"), np(t, "link", e), Nt(t), r.head.appendChild(t)));
}
}
function Em(e) {
@@ -8248,8 +8248,8 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
xm.L(e, t, n);
var r = wm;
if (r && e && t) {
- var i = "link[rel=\"preload\"][as=\"" + en(t) + "\"]";
- t === "image" && n && n.imageSrcSet ? (i += "[imagesrcset=\"" + en(n.imageSrcSet) + "\"]", typeof n.imageSizes == "string" && (i += "[imagesizes=\"" + en(n.imageSizes) + "\"]")) : i += "[href=\"" + en(e) + "\"]";
+ var i = "link[rel=\"preload\"][as=\"" + Qt(t) + "\"]";
+ t === "image" && n && n.imageSrcSet ? (i += "[imagesrcset=\"" + Qt(n.imageSrcSet) + "\"]", typeof n.imageSizes == "string" && (i += "[imagesizes=\"" + Qt(n.imageSizes) + "\"]")) : i += "[href=\"" + Qt(e) + "\"]";
var a = i;
switch (t) {
case "style":
@@ -8263,9 +8263,9 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
as: 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[Ot] = !0, o.onload = o.onerror = function() {
- Ft(o);
- }), Pt(o), r.head.appendChild(o);
+ np(o, "link", e), t === "style" && (o[V] = !0, o.onload = o.onerror = function() {
+ Pt(o);
+ }), Nt(o), r.head.appendChild(o);
}
}
}
@@ -8273,7 +8273,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
xm.m(e, t);
var n = wm;
if (n && e) {
- var r = t && typeof t.as == "string" ? t.as : "script", i = "link[rel=\"modulepreload\"][as=\"" + en(r) + "\"][href=\"" + en(e) + "\"]", a = i;
+ var r = t && typeof t.as == "string" ? t.as : "script", i = "link[rel=\"modulepreload\"][as=\"" + Qt(r) + "\"][href=\"" + Qt(e) + "\"]", a = i;
switch (r) {
case "audioworklet":
case "paintworklet":
@@ -8294,7 +8294,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
case "worker":
case "script": if (n.querySelector(zm(a))) return;
}
- r = n.createElement("link"), np(r, "link", e), Pt(r), n.head.appendChild(r);
+ r = n.createElement("link"), np(r, "link", e), Nt(r), n.head.appendChild(r);
}
}
}
@@ -8302,7 +8302,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
xm.S(e, t, n);
var r = wm;
if (r && e) {
- var i = Nt(r).hoistableStyles, a = Pm(e);
+ var i = Mt(r).hoistableStyles, a = Pm(e);
t ||= "default";
var o = i.get(a);
if (!o) {
@@ -8318,7 +8318,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
"data-precedence": t
}, n), (n = vm.get(a)) && Hm(e, n);
var c = o = r.createElement("link");
- Pt(c), np(c, "link", e), c._p = new Promise(function(e, t) {
+ Nt(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;
@@ -8339,11 +8339,11 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
xm.X(e, t);
var n = wm;
if (n && e) {
- var r = Nt(n).hoistableScripts, i = Rm(e), a = r.get(i);
+ var r = Mt(n).hoistableScripts, i = Rm(e), a = r.get(i);
a || (a = n.querySelector(zm(i)), a || (e = D({
src: e,
async: !0
- }, t), (t = vm.get(i)) && Um(e, t), a = n.createElement("script"), Pt(a), np(a, "link", e), n.head.appendChild(a)), a = {
+ }, t), (t = vm.get(i)) && Um(e, t), a = n.createElement("script"), Nt(a), np(a, "link", e), n.head.appendChild(a)), a = {
type: "script",
instance: a,
count: 1,
@@ -8355,12 +8355,12 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
xm.M(e, t);
var n = wm;
if (n && e) {
- var r = Nt(n).hoistableScripts, i = Rm(e), a = r.get(i);
+ var r = Mt(n).hoistableScripts, i = Rm(e), a = r.get(i);
a || (a = n.querySelector(zm(i)), a || (e = D({
src: e,
async: !0,
type: "module"
- }, t), (t = vm.get(i)) && Um(e, t), a = n.createElement("script"), Pt(a), np(a, "link", e), n.head.appendChild(a)), a = {
+ }, t), (t = vm.get(i)) && Um(e, t), a = n.createElement("script"), Nt(a), np(a, "link", e), n.head.appendChild(a)), a = {
type: "script",
instance: a,
count: 1,
@@ -8374,7 +8374,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
switch (e) {
case "meta":
case "title": return null;
- case "style": return typeof n.precedence == "string" && typeof n.href == "string" ? (n = Pm(n.href), t = Nt(a).hoistableStyles, r = t.get(n), r || (r = {
+ case "style": return typeof n.precedence == "string" && typeof n.href == "string" ? (n = Pm(n.href), t = Mt(a).hoistableStyles, r = t.get(n), r || (r = {
type: "style",
instance: null,
count: 0,
@@ -8388,7 +8388,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
case "link":
if (n.rel === "stylesheet" && typeof n.href == "string" && typeof n.precedence == "string") {
e = Pm(n.href);
- var o = Nt(a).hoistableStyles, s = o.get(e);
+ var o = Mt(a).hoistableStyles, s = o.get(e);
if (s || (a = a.ownerDocument || a, s = {
type: "stylesheet",
instance: null,
@@ -8411,7 +8411,7 @@ var e = Object.create, t = Object.defineProperty, n = 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 = Nt(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 = Mt(a).hoistableScripts, r = t.get(n), r || (r = {
type: "script",
instance: null,
count: 0,
@@ -8426,7 +8426,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
}
}
function Pm(e) {
- return "href=\"" + en(e) + "\"";
+ return "href=\"" + Qt(e) + "\"";
}
function Fm(e) {
return "link[rel=\"stylesheet\"][" + e + "]";
@@ -8439,11 +8439,11 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
}
function Lm(e, t, n, r) {
if (t = e.querySelector("link[rel=\"preload\"][as=\"style\"][" + t + "]")) {
- if (!0 !== t[Ot]) {
+ if (!0 !== t[V]) {
r.loading = 1;
return;
}
- } else t = e.createElement("link"), t[Ot] = !0, t.onload = t.onerror = Ft.bind(null, t), np(t, "link", n), Pt(t), e.head.appendChild(t);
+ } else t = e.createElement("link"), t[V] = !0, t.onload = t.onerror = Pt.bind(null, t), np(t, "link", n), Nt(t), e.head.appendChild(t);
r.preload = t, t.addEventListener("load", function() {
return r.loading |= 1;
}), t.addEventListener("error", function() {
@@ -8451,7 +8451,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
});
}
function Rm(e) {
- return "[src=\"" + en(e) + "\"]";
+ return "[src=\"" + Qt(e) + "\"]";
}
function zm(e) {
return "script[async]" + e;
@@ -8459,25 +8459,25 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
function Bm(e, t, n) {
if (t.count++, t.instance === null) switch (t.type) {
case "style":
- var r = e.querySelector("style[data-href~=\"" + en(n.href) + "\"]");
- if (r) return t.instance = r, Pt(r), r;
+ var r = e.querySelector("style[data-href~=\"" + Qt(n.href) + "\"]");
+ if (r) return t.instance = r, Nt(r), r;
var a = D({}, n, {
"data-href": n.href,
"data-precedence": n.precedence,
href: null,
precedence: null
});
- return r = (e.ownerDocument || e).createElement("style"), Pt(r), np(r, "style", a), Vm(r, n.precedence, e), t.instance = r;
+ return r = (e.ownerDocument || e).createElement("style"), Nt(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, Pt(o), o;
- r = Im(n), (a = vm.get(a)) && Hm(r, a), o = (e.ownerDocument || e).createElement("link"), Pt(o);
+ if (o) return t.state.loading |= 4, t.instance = o, Nt(o), o;
+ r = Im(n), (a = vm.get(a)) && Hm(r, a), o = (e.ownerDocument || e).createElement("link"), Nt(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, Pt(a), a) : (r = n, (a = vm.get(o)) && (r = D({}, n), Um(r, a)), e = e.ownerDocument || e, a = e.createElement("script"), Pt(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, Nt(a), a) : (r = n, (a = vm.get(o)) && (r = D({}, n), Um(r, a)), e = e.ownerDocument || e, a = e.createElement("script"), Nt(a), np(a, "link", r), e.head.appendChild(a), t.instance = a);
case "void": return null;
default: throw Error(i(443, t.type));
}
@@ -8554,10 +8554,10 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
if (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, Pt(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, Nt(a);
return;
}
- a = t.ownerDocument || t, r = Im(r), (i = vm.get(i)) && Hm(r, i), a = a.createElement("link"), Pt(a);
+ a = t.ownerDocument || t, r = Im(r), (i = vm.get(i)) && Hm(r, i), a = a.createElement("link"), Nt(a);
var o = a;
o._p = new Promise(function(e, t) {
o.onload = e, o.onerror = t;
@@ -8696,7 +8696,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
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 = jt(i);
+ var a = At(i);
if (a !== null) switch (a.tag) {
case 3:
if (a = a.stateNode, a.current.memoizedState.isDehydrated) {
@@ -8707,7 +8707,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
var c = 1 << 31 - Ze(o);
s.entanglements[1] |= c, o &= ~c;
}
- Tf(a), !(Y & 6) && (md = Be() + 500, Ef(0, !1));
+ Tf(a), !(X & 6) && (md = Be() + 500, Ef(0, !1));
}
}
break;
@@ -8722,11 +8722,11 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
}
}
function bh(e) {
- return e = _n(e), Sh(e);
+ return e = hn(e), Sh(e);
}
var xh = null;
function Sh(e) {
- if (xh = null, e = At(e), e !== null) {
+ if (xh = null, e = kt(e), e !== null) {
var t = o(e);
if (t === null) e = null;
else {
@@ -8860,7 +8860,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
eventSystemFlags: r,
nativeEvent: a,
targetContainers: [i]
- }, t !== null && (t = jt(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 = At(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) {
@@ -8875,7 +8875,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
return !1;
}
function Fh(e) {
- var t = At(e.target);
+ var t = kt(e.target);
if (t !== null) {
var n = o(t);
if (n !== null) {
@@ -8908,8 +8908,8 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
if (n === null) {
n = e.nativeEvent;
var r = new n.constructor(n.type, n);
- gn = r, n.target.dispatchEvent(r), gn = null;
- } else return t = jt(n), t !== null && mh(t), e.blockedOn = n, !1;
+ mn = r, n.target.dispatchEvent(r), mn = null;
+ } else return t = At(n), t !== null && mh(t), e.blockedOn = n, !1;
t.shift();
}
return !0;
@@ -8933,7 +8933,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
if (Sh(r || n) === null) continue;
break;
}
- var a = jt(n);
+ var a = At(n);
a !== null && (e.splice(t, 3), t -= 3, Ys(a, {
pending: !0,
data: i,
@@ -9054,7 +9054,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
var n = !1, r = "", o = vc, s = yc, c = bc;
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[St] = t.current, Uf(e), new Wh(t);
};
-})), g = (/* @__PURE__ */ o(((e, t) => {
+})), g = /* @__PURE__ */ o(((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,79 +9063,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
}
}
n(), t.exports = h();
-})))();
-function _(e, { variant: t = "" } = {}) {
- if (!e || e.dataset.overlayScrollbar) return null;
- let n = e === document.documentElement, r = n ? document.body : e.parentElement;
- if (!r) return null;
- e.dataset.overlayScrollbar = "true", !n && getComputedStyle(r).position === "static" && (r.style.position = "relative");
- let i = n ? null : document.createElement("div");
- i && (i.className = "ov-edges", i.setAttribute("aria-hidden", "true"), i.innerHTML = "<span class=\"ov-edge-top\"></span><span class=\"ov-edge-bottom\"></span>", r.append(i));
- let a = (n ? ["y"] : ["y", "x"]).map((e) => {
- let n = document.createElement("div");
- n.className = `ovtrack ${e === "y" ? "ov-y" : "ov-x"}${t ? ` ${t}` : ""}`;
- let i = document.createElement("div");
- return i.className = "ovthumb", n.append(i), r.append(n), {
- axis: e,
- track: n,
- thumb: i
- };
- }), o = () => {
- let t = 0, n = 0, i = e;
- for (; i && i !== r;) {
- let e = i;
- t += e.offsetLeft, n += e.offsetTop, i = e.offsetParent;
- }
- if (i === r) return {
- left: t,
- top: n
- };
- let a = r.getBoundingClientRect(), o = e.getBoundingClientRect();
- return {
- left: o.left - a.left - r.clientLeft,
- top: o.top - a.top - r.clientTop
- };
- }, s = ({ axis: t, track: i }) => {
- if (n) return;
- let { left: a, top: s } = o();
- t === "y" ? (i.style.top = `${s + 8}px`, i.style.height = `${Math.max(0, e.clientHeight - 16)}px`, i.style.right = `${r.clientWidth - a - e.clientWidth}px`) : (i.style.left = `${a + 8}px`, i.style.width = `${Math.max(0, e.clientWidth - 16)}px`, i.style.bottom = `${r.clientHeight - s - e.clientHeight}px`);
- }, c = () => {
- if (i) {
- let { left: t, top: n } = o(), r = e.scrollHeight - e.clientHeight, a = r > 1 && e.scrollTop > 1, s = r > 1 && e.scrollTop < r - 1;
- i.hidden = !a && !s, i.style.left = `${t}px`, i.style.top = `${n}px`, i.style.width = `${e.clientWidth}px`, i.style.height = `${e.clientHeight}px`, i.classList.toggle("can-scroll-top", a), i.classList.toggle("can-scroll-bottom", s), a || s ? (e.style.setProperty("--scroll-edge-top", a ? "16px" : "0px"), e.style.setProperty("--scroll-edge-bottom", s ? "16px" : "0px")) : (e.style.removeProperty("--scroll-edge-top"), e.style.removeProperty("--scroll-edge-bottom")), e.toggleAttribute("data-scroll-edges", a || s);
- }
- a.forEach((t) => {
- let { axis: n, track: r, thumb: i } = t, a = n === "y", o = a ? e.clientHeight : e.clientWidth, c = a ? e.scrollHeight : e.scrollWidth, l = c - o;
- if (l <= 1) {
- r.hidden = !0;
- return;
- }
- r.hidden = !1, s(t);
- let u = a ? r.clientHeight : r.clientWidth;
- if (!u) return;
- let d = Math.max(24, Math.min(u, o / c * u)), f = u - d, p = a ? e.scrollTop : e.scrollLeft, m = f > 0 ? p / l * f : 0;
- i.style[a ? "height" : "width"] = `${d}px`, i.style.transform = `translate${a ? "Y" : "X"}(${m}px)`;
- });
- };
- return (n ? document : e).addEventListener("scroll", c, { passive: !0 }), new ResizeObserver(c).observe(e), n || e.addEventListener("load", c, !0), n ? new ResizeObserver(c).observe(document.body) : new MutationObserver(c).observe(e, {
- childList: !0,
- characterData: !0,
- subtree: !0
- }), a.forEach(({ axis: t, track: n, thumb: r }) => n.addEventListener("pointerdown", (i) => {
- let a = t === "y", o = n.getBoundingClientRect(), s = r.getBoundingClientRect(), c = a ? o.height - s.height : o.width - s.width, l = a ? e.scrollHeight - e.clientHeight : e.scrollWidth - e.clientWidth;
- if (c <= 0 || l <= 0) return;
- let u = (e) => a ? e.clientY : e.clientX, d = a ? s.top : s.left, f = a ? s.bottom : s.right, p = u(i) >= d && u(i) <= f ? u(i) - d : (a ? s.height : s.width) / 2, m = a ? o.top : o.left, h = (t) => {
- let n = Math.max(0, Math.min(l, (u(t) - m - p) / c * l));
- a ? e.scrollTop = n : e.scrollLeft = n;
- }, g = () => {
- n.classList.remove("dragging"), n.removeEventListener("pointermove", h), n.removeEventListener("pointerup", g), n.removeEventListener("pointercancel", g);
- };
- n.classList.add("dragging"), n.setPointerCapture(i.pointerId), n.addEventListener("pointermove", h), n.addEventListener("pointerup", g), n.addEventListener("pointercancel", g), h(i), i.preventDefault();
- })), c(), c;
-}
-//#endregion
-//#region node_modules/tailwind-merge/dist/bundle-mjs.mjs
-var v = /* @__PURE__ */ c(f(), 1), y = (e, t) => {
+})), _ = /* @__PURE__ */ c(f(), 1), v = g(), y = (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];
@@ -11074,52 +11002,8 @@ function bt({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, lead
});
}
//#endregion
-//#region src/react/components/note.tsx
-function xt({ tone: e, title: t, action: n, extra: r, children: i }) {
- let a = /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsxs)("div", {
- className: "flex flex-wrap items-center justify-between gap-3",
- children: [/* @__PURE__ */ (0, B.jsxs)("div", {
- className: "flex min-w-0 flex-1 flex-col gap-0.5",
- children: [t ? /* @__PURE__ */ (0, B.jsx)("p", {
- className: "text-body-medium",
- children: t
- }) : null, /* @__PURE__ */ (0, B.jsx)("p", {
- className: "text-body-2-regular",
- children: i
- })]
- }), n]
- }), r] });
- switch (e) {
- case "info": return /* @__PURE__ */ (0, B.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: a
- });
- case "success": return /* @__PURE__ */ (0, B.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: a
- });
- case "warning": return /* @__PURE__ */ (0, B.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: a
- });
- case "error": return /* @__PURE__ */ (0, B.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: a
- });
- default: return /* @__PURE__ */ (0, B.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: a
- });
- }
-}
-//#endregion
//#region src/react/pages/auth-card.tsx
-function St({ title: e, lede: t, busy: n = !1, children: r }) {
+function xt({ title: e, lede: t, busy: n = !1, children: r }) {
return /* @__PURE__ */ (0, B.jsx)("main", {
className: "flex justify-center px-6 py-12 max-sm:px-4 max-sm:py-6",
children: /* @__PURE__ */ (0, B.jsxs)("section", {
@@ -11141,23 +11025,23 @@ function St({ title: e, lede: t, busy: n = !1, children: r }) {
className: "text-title-2-medium text-text-primary",
children: e
}),
- /* @__PURE__ */ (0, B.jsx)("p", {
+ t ? /* @__PURE__ */ (0, B.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: t
- })
+ }) : null
]
}), r]
})
});
}
-function Ct({ first: e = !1, labelledBy: t, children: n }) {
+function St({ first: e = !1, labelledBy: t, children: n }) {
return /* @__PURE__ */ (0, B.jsx)("section", {
"aria-labelledby": t,
className: e ? "flex flex-col gap-4" : "flex flex-col gap-4 border-t border-separator-border pt-6",
children: n
});
}
-function wt({ id: e, children: t }) {
+function Ct({ id: e, children: t }) {
return /* @__PURE__ */ (0, B.jsx)("h2", {
id: e,
className: "text-body-semibold text-text-primary",
@@ -11165,413 +11049,137 @@ function wt({ id: e, children: t }) {
});
}
//#endregion
-//#region src/configuration-endpoints.ts
-var Tt = "/api/pick-folder", Et = "/api/setup/questions", Dt = "/api/setup", Ot = class extends Error {
- status;
- errors;
- constructor(e, t, n) {
- super(t), this.status = e, this.errors = n;
- }
+//#region src/react/pages/error/error-page.tsx
+var wt = {
+ 403: "这里不能打开",
+ 404: "四〇四",
+ 409: "现在不能这样做"
};
-async function kt(e, t, n) {
- let r;
- try {
- r = await fetch(e, {
- credentials: "same-origin",
- ...t,
- headers: {
- Accept: "application/json",
- ...t.body ? { "Content-Type": "application/json" } : {}
- }
- });
- } catch (e) {
- throw t.signal?.aborted ? e : new Ot(0, "连接不到 Peach,请确认它仍在运行后重试");
- }
- let i = await r.json().catch(() => null);
- if (!r.ok) throw new Ot(r.status, i?.error || n, i?.errors);
- return i;
-}
-var At = (e) => kt(Et, { signal: e }, "没能读取设置题目"), jt = (e) => kt(Dt, {
- method: "POST",
- body: JSON.stringify(e)
-}, "没能完成设置"), Mt = async (e) => (await kt(Tt, {
- method: "POST",
- body: JSON.stringify({ initial: e })
-}, "没能打开文件夹对话框")).path, Nt = (e) => e instanceof Error && e.message || "请求失败,请重试", Pt = 8e3, Ft = ({ 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: "M11 11V5H13V11H19V13H13V19H11V13H5V11H11Z" })), It = ({ 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: "M13.1717 12.0007L8.22192 7.05093L9.63614 5.63672L16.0001 12.0007L9.63614 18.3646L8.22192 16.9504L13.1717 12.0007Z" })), Lt = ({ 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: "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" })), Rt = ({ 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: "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" })), zt = ({ 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" })), Bt = /* @__PURE__ */ new WeakMap();
-function Vt(e, t, n) {
- t.classList.add("fcollapse");
- let r = (Bt.get(t) || 0) + 1;
- Bt.set(t, r);
- let i = () => Bt.get(t) === r;
- if (n) {
- t.inert = !1;
- let n = e.open ? t.getBoundingClientRect().height : 0;
- e.open = !0, Ut(t, n, i);
- } else t.inert = !0, t.classList.remove("fcollapse-settled"), t.style.height = t.getBoundingClientRect().height + "px", t.getBoundingClientRect(), t.style.height = "0px", Ht(t, () => {
- i() && (e.open = !1, t.style.height = "");
+function Tt(e) {
+ return wt[e ?? ""] ?? "出了点问题";
+}
+function Et({ data: e }) {
+ let t = Tt(e.status);
+ return (0, _.useEffect)(() => {
+ document.title = `Peach · ${t}`;
+ }, [t]), /* @__PURE__ */ (0, B.jsx)(xt, {
+ title: t,
+ lede: e.status === "404" ? void 0 : e.detail,
+ children: /* @__PURE__ */ (0, B.jsx)(bt, {
+ href: "/",
+ className: "self-start",
+ children: "返回首页"
+ })
});
}
-function Ht(e, t) {
- let n = !1, r, i = (a) => {
- a && a.propertyName !== "height" || n || (n = !0, e.removeEventListener("transitionend", i), clearTimeout(r), t());
+//#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);
};
- e.addEventListener("transitionend", i), r = setTimeout(i, 260);
}
-function Ut(e, t, n = () => !0) {
- e.classList.remove("fcollapse-settled"), e.style.height = t + "px", e.getBoundingClientRect(), e.style.height = e.scrollHeight + "px", Ht(e, () => {
- n() && (e.style.height = "auto", e.classList.add("fcollapse-settled"));
+//#endregion
+//#region node_modules/react-aria/dist/private/utils/useLayoutEffect.mjs
+var V = typeof document < "u" ? _.useLayoutEffect : () => {}, Ot = {
+ prefix: String(Math.round(Math.random() * 1e10)),
+ current: 0
+}, kt = /*#__PURE__*/ _.createContext(Ot), At = /*#__PURE__*/ _.createContext(!1);
+typeof window < "u" && window.document && window.document.createElement;
+var jt = /* @__PURE__ */ new WeakMap();
+function Mt(e = !1) {
+ let t = (0, _.useContext)(kt), n = (0, _.useRef)(null);
+ if (n.current === null && !e) {
+ let e = _.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?.ReactCurrentOwner?.current;
+ if (e) {
+ let n = jt.get(e);
+ n == null ? jt.set(e, {
+ id: t.current,
+ state: e.memoizedState
+ }) : e.memoizedState !== n.state && (t.current = n.id, jt.delete(e));
+ }
+ n.current = ++t.current;
+ }
+ return n.current;
+}
+function Nt(e) {
+ let t = (0, _.useContext)(kt), n = Mt(!!e), r = `react-aria${t.prefix}`;
+ return e || `${r}-${n}`;
+}
+function Pt(e) {
+ let t = _.useId(), [n] = (0, _.useState)(zt()), r = n ? "react-aria" : `react-aria${Ot.prefix}`;
+ return e || `${r}-${t}`;
+}
+var Ft = typeof _.useId == "function" ? Pt : Nt;
+function It() {
+ return !1;
+}
+function Lt() {
+ return !0;
+}
+function Rt(e) {
+ return () => {};
+}
+function zt() {
+ return typeof _.useSyncExternalStore == "function" ? _.useSyncExternalStore(Rt, It, Lt) : (0, _.useContext)(At);
+}
+//#endregion
+//#region node_modules/react-aria/dist/private/utils/useValueEffect.mjs
+function Bt(e) {
+ let [t, n] = (0, _.useState)(e), r = (0, _.useRef)(t), i = (0, _.useRef)(null), a = (0, _.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);
});
-}
-//#endregion
-//#region src/ui-kit/media-source-icons.ts
-var V = {
- local: "hard-drive",
- 115: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAHB0lEQVR4nO2bbUwURxjH/zN38qIcb4JWoIoHFYumWhDbRquNiSlYC4ZGjVYrotHWD1VTLdY00X7zbA22Na21KWqsUMHYSiygJjaRQDW+VK2YioBarVZBQA9QDm6nedajCuxxHrfH7dX+kiXcvszM8+zO7DPP/JfBzcQmfx4O1jpJEmKUgBTHwUYIIAyAwbYRZtoYUCdBVDLwi5yxCgjfo1Uly2vd2T7mjkJj3vgsUVitcwWkqQxstAv1CAFxnoEfZjpdbvXPq05p1gFxqSZDexuWCIhMCMTDHTBcYGA5+n7YdrEwy6xOkS4yJi07uMliWSGEeB9ACPqGBsbYFwE+PpvP7l/Z6BEHCCFYzDRTBgATBMLhCRhofMiqLsrawRgTvSuiFxinbxjK2pErgAnQAAwoE3rMrTmw5s9eXOscxpSNE5iQ9glgEDQEA24LxtNrij8sc+Y67szJscmmTAjpiNaMJ+Q2CemI3Ea1n4CZM/N1p5pqPoXASngDDNmJAcbVBQWzrI5PfRLjzTX7AKTCuyhMNBjTHTmBOypFvvPeZzyRamt775+A2GRTpgTxHbwYDraoqiQrx2kHGFM2TqBBBYAPvBsLGJ9i7+3AenjPn9DiaN/rV6QeSUpxgl4pwotNMeWqbXw/PceYuAiEBvk7dZ2/Xz8MCQvE2JERGB4ZgteXOt8jyRY5cBPi1a4Ro77rybbwVtUIzzDAF7mmOYiPGexSOZt2Hu31tRS12mzbbvctMCYtO1iO7VVmUXqSy8bX323Bjp9OutoUk81GZQc0WSwr1J7YBAb4IiNtnMvlbCs4jpYHba4VIhAu26jkgLhUk8E2pVWVRenj5S7QWyxtVhQcOoecH0+o0h6ykWztNga0t2GJ2vP5oAA/ZKQldtv/1Q+/Yv8vFWg0P3BYhrm5Fa2WdjWbFWKzdVMnB8iZHJVZ/NZ4BPTvfPfzis64NJipgc1W2QG8I4endhor2OCHd1ITOu27/6AN2btK4XEE4mWbYXMAJTD74u5/f+A07jS2QAt02MzlH5Cmqn/3u/d9vV6HyeOM8nFP02Ezo7y9hPu31MwQr86YjHdnv9zjOTXX7+D4uWsoKv0D5WeuwgMIDv/Belq0gFDP+JBAf8zv0veVMEYNlLc508bir1t3sffw78g/eA5/16mS7X4SGNnOacVG7b4/wN+5CWTk4CAsnzcRh79djPlvOnaeWkhCjOK0XKVmoXWNzdhTchalpy7Ld9YZ+vv5YP2yqfK8YfDAALgbASmOxSRvoGmv67GqHcJCBuDFkRHybC5pdBQSno8EY457XPW1O5i9ajca7t13V9Oo359kxuQNlwFEo494JsyAGVNGYeGMcbJzeuLcxZt4e02e63MA+1yh1+C/cXFfQIPc1vxjmJSxFZt3lcJqleye+0LcEKyYP9GdzTH0uQM6oPj+y9xyzM3Kw83ae3bPmzc9ARGDAt3qAI9ysuI6Zn2wG7X1TYrHfX30WDb7FbfVz23iBI9yo/YeFq/bK88VlJicZHRX1WZNOIA4X3ULuw6cVjwWER6I6Ai3rLybOclSoBFy9p2wO/ePHTpQ9foYUMdJkwONUNvQjIuXlSVBOp36w5UEUclJkAQNcdPOXIDTs6oyjMRYshpLQ1gl5big5nq96nVxxio4SdEeps21QVx0uGJesPKK6mo5QbZz0uGRFA0agMLk4ZGh3faX/XaF9HKqQjZXlSyvlUcW0uFBA9BUWKmvUxZZbTps5vIPnS4XHoZecwsU0mgHyypRUU0JK3XpsJnTH1mByXABHoKySFvWzpAXQrtOiT/aXKx+hQwXOlSn/NE+ZldE4E6GDQlGwaZ5eG4YyYcfcbu+CRkf5+Nuk+PFE2d53Fbe8Q/JT0mBiT6CJjlLZ76Eoq8zMTyq88B36WodFqzdgxu37c8SXaDBZqtMpxEnJsW0XgixDm6CNAKUGaLU+OzkMQgN6t/peLtVwjf5x7Alr1xeE3QHjLFPqouz1ivqAwJ8fDabLa3LXF0hHjEsDBMSoqHjHH4+egwM7g9jVCgS46O69XOC0l6Hyiuxs/CU3VBYFRhqycbOu7pgTNmwEAI5aiyMvjbeiEkJRhifDUXkoCB5qbyt3YrmFguu3mxE5dVaHCq7hPIzV2CV+iAWY8isKV6zvUcHiIcSmVKt6IDV1BNXFWd1k8jwbicyJkh4TMIi/EewiaTmKinKudIFpKYi4bEsMfN+LLKI2o6SnNu7inR1HOw9eDlkQ08Kct7TxbLCkiEb3gpDdk8qUcJhmoVU1yQ8hvdRaGs7XHJAQcEsK6muvepJILn8EyjFCafyTDbx9Nca1g9bqM87euwfhzlbw1P9yQxBFZDwmAILaATbR1NJzhpP/P/ZHFzkqf1wsitP7aezSjyVH0/DDlr/fP4fOwTeE5lpP+gAAAAASUVORK5CYII=",
- pikpak: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAACY0lEQVR4nNWXy2tTQRSHv7m5RUWttqlNW1OairhKNbrU+lhE/AOkdCOIIO7arty0QhSxCIIQ7VJwIfgfCIJdFB+rgC32AVIflD5CbFUsoohJRiZzb5Ne05p4kxv94HCTc+bO+c0MM3eOoICD/TJswAAQBdoBH5UhA8wDo1mIv7ojpuyAsH9EBuQgkmuASXVJI4lN3BXDawIifXIQwQ28RDA0ERfDwpr2cQ9G7iSdhcOGteZeJ1eYKreB5DS1I2oiCJba2hDQVA9tjdDaCHMfICuhMwDJz5D8BMtftK9E2s2NttrJMOxvzSdT1rIb6goW69KIXsjr5/K+nxlIWWKWrOebJIxNFhXgK7r20QjcPL+59PllGH8LarDvU3oWFHU+CDZpK+TKA3j88vd+zGKd93av/y8lrKxao7Ls6bROrrj6EE6E9WzZppZKrJ0y0Hu8RAGhZuhohqk5nShp2Y/0+nZqxPaoFQsr2my2mNDSkBe01w/7AvAu9QcB/nrYs0vboU4qSsNOwCHAoMYY/5WAsckNt1NJ8WKY5TS+fF8/E7f/Lu5aQDrjLu5agOlzF3ct4NYFd3HXAk51uYv/k9vQLPeFr9/h4gh0dcCBNu17vaiP7nt9sGNblQVs3wo9x+DZNCRm9aUyFICebh0rF9PpWP22+QvqC3f2qLZyKda34XTMLsGLGSrO8xndtxMR6ZfqQ+tz7uczRyDor0zyxY/6LlDkoMqYVsUSKvSqho8SVB/JglqCUWqF4ImharVcueQ96j4bN3KFoiDmeXpJTOXO7QJVoyEZ8mgm0rm6sLA4talFef4LaurBZfZxNPMAAAAASUVORK5CYII="
-}, Wt = gt({
- 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 Gt({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {
- let c = ht(Wt.base, Wt.size[t], Wt.variant[e], a), l = /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [
- n ? /* @__PURE__ */ (0, B.jsx)(n, {
- className: Wt.icon[t],
- "aria-hidden": !0
- }) : null,
- i != null && /* @__PURE__ */ (0, B.jsx)("span", { children: i }),
- r ? /* @__PURE__ */ (0, B.jsx)(r, {
- className: Wt.icon[t],
- "aria-hidden": !0
- }) : null
- ] });
- if (s.href !== void 0) {
- let { ref: e, href: t, ...n } = s;
- return /* @__PURE__ */ (0, B.jsx)("a", {
- ref: e,
- href: o ? void 0 : t,
- "aria-disabled": o || void 0,
- className: c,
- ...n,
- children: l
- });
- }
- let { ref: u, type: d = "button", ...f } = s;
- return /* @__PURE__ */ (0, B.jsx)("button", {
- ref: u,
- type: d,
- disabled: o,
- className: c,
- ...f,
- children: l
- });
-}
-//#endregion
-//#region src/react/settings/section.tsx
-function Kt({ role: e, children: t }) {
- return /* @__PURE__ */ (0, B.jsx)("p", {
- role: e,
- className: "text-body-2-regular text-text-secondary",
- children: t
- });
-}
-function qt({ children: e }) {
- return /* @__PURE__ */ (0, B.jsx)("p", {
- role: "alert",
- className: "text-body-2-regular text-text-error-primary",
- children: e
- });
-}
-function Jt({ children: e }) {
- return /* @__PURE__ */ (0, B.jsx)("p", {
- className: "text-body-medium text-text-primary",
- children: e
- });
-}
-function Yt({ href: e, children: t, leadingIcon: n }) {
- return /* @__PURE__ */ (0, B.jsx)(Gt, {
- href: e,
- target: "_blank",
- rel: "noopener noreferrer",
- size: "small",
- leadingIcon: n,
- trailingIcon: Rt,
- className: "min-w-0 max-w-full",
- children: /* @__PURE__ */ (0, B.jsx)("span", {
- className: "min-w-0 whitespace-normal break-all",
- children: t
- })
- });
-}
-function Xt({ children: e }) {
- return /* @__PURE__ */ (0, B.jsx)("dl", {
- className: "flex flex-col",
- children: e
- });
-}
-function Zt({ term: e, children: t }) {
- return /* @__PURE__ */ (0, B.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, B.jsx)("dt", {
- className: "flex shrink-0 items-center gap-2 text-body-regular text-text-secondary",
- children: e
- }), /* @__PURE__ */ (0, B.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 Qt({ summary: e, defaultOpen: t = !1, children: n }) {
- let r = (0, v.useId)(), i = (0, v.useRef)(null), a = (0, v.useRef)(null), o = (0, v.useRef)(!1), [s, c] = (0, v.useState)(t);
- return /* @__PURE__ */ (0, B.jsxs)("details", {
- ref: (e) => {
- i.current = e, e && t && !o.current && (o.current = !0, e.open = !0);
- },
- children: [/* @__PURE__ */ (0, B.jsxs)("summary", {
- "aria-expanded": s,
- "aria-controls": r,
- onClick: (e) => {
- e.preventDefault(), !(!i.current || !a.current) && (Vt(i.current, a.current, !s), c(!s));
- },
- 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, B.jsx)(It, {
- "aria-hidden": !0,
- className: s ? "size-4 shrink-0 rotate-90 transition-transform" : "size-4 shrink-0 transition-transform"
- }), e]
- }), /* @__PURE__ */ (0, B.jsx)("div", {
- ref: a,
- id: r,
- inert: !s,
- children: /* @__PURE__ */ (0, B.jsx)("div", {
- className: "flex flex-col gap-2 pt-3",
- children: n
- })
- })]
- });
-}
-function $t({ name: e }) {
- return /* @__PURE__ */ (0, B.jsx)("svg", {
- "aria-hidden": !0,
- viewBox: "0 0 24 24",
- fill: "none",
- className: "size-4 shrink-0 stroke-current stroke-2",
- children: /* @__PURE__ */ (0, B.jsx)("use", { href: `#i-${e}` })
- });
-}
-function en({ mark: e }) {
- return e.startsWith("data:image/png;base64,") ? /* @__PURE__ */ (0, B.jsx)("img", {
- src: e,
- alt: "",
- width: 16,
- height: 16,
- className: "size-4 shrink-0"
- }) : /* @__PURE__ */ (0, B.jsx)($t, { name: e });
-}
-//#endregion
-//#region src/react/pages/setup/setup-done.tsx
-function tn({ done: e }) {
- let t = (0, v.useRef)(null);
- return (0, v.useEffect)(() => {
- document.title = "Peach · 设置完成", t.current?.focus();
- }, []), (0, v.useEffect)(() => {
- let t = e.redirect;
- if (!t) return;
- let n = setTimeout(() => location.assign(t), Pt);
- return () => clearTimeout(n);
- }, [e.redirect]), /* @__PURE__ */ (0, B.jsxs)(St, {
- title: "设置完成",
- lede: "正在启动馆藏。",
- children: [
- /* @__PURE__ */ (0, B.jsx)("p", {
- className: "text-body-regular text-text-primary",
- children: e.scan_requested ? "首次扫描已排队,在后台整理媒体库,期间可以照常使用 Peach。" : "稍后在配置页开始扫描媒体库。"
- }),
- /* @__PURE__ */ (0, B.jsx)(bt, {
- ref: t,
- href: e.url,
- className: "self-start",
- children: e.history_guide ? "导入浏览器历史记录" : "进入 Peach"
- }),
- /* @__PURE__ */ (0, B.jsx)(Qt, {
- summary: "运行信息",
- children: /* @__PURE__ */ (0, B.jsx)(Xt, { children: e.facts.map((e) => /* @__PURE__ */ (0, B.jsxs)(Zt, {
- term: e.term,
- children: [e.value, e.download_url ? /* @__PURE__ */ (0, B.jsx)(Yt, {
- href: e.download_url,
- children: e.download_label ?? e.download_url
- }) : null]
- }, e.term)) })
- })
- ]
- });
-}
-//#endregion
-//#region node_modules/react-aria/dist/private/utils/chain.mjs
-function nn(...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 H = typeof document < "u" ? v.useLayoutEffect : () => {}, rn = {
- prefix: String(Math.round(Math.random() * 1e10)),
- current: 0
-}, an = /*#__PURE__*/ v.createContext(rn), on = /*#__PURE__*/ v.createContext(!1);
-typeof window < "u" && window.document && window.document.createElement;
-var sn = /* @__PURE__ */ new WeakMap();
-function cn(e = !1) {
- let t = (0, v.useContext)(an), 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 = sn.get(e);
- n == null ? sn.set(e, {
- id: t.current,
- state: e.memoizedState
- }) : e.memoizedState !== n.state && (t.current = n.id, sn.delete(e));
- }
- n.current = ++t.current;
- }
- return n.current;
-}
-function ln(e) {
- let t = (0, v.useContext)(an), n = cn(!!e), r = `react-aria${t.prefix}`;
- return e || `${r}-${n}`;
-}
-function un(e) {
- let t = v.useId(), [n] = (0, v.useState)(hn()), r = n ? "react-aria" : `react-aria${rn.prefix}`;
- return e || `${r}-${t}`;
-}
-var dn = typeof v.useId == "function" ? un : ln;
-function fn() {
- return !1;
-}
-function pn() {
- return !0;
-}
-function mn(e) {
- return () => {};
-}
-function hn() {
- return typeof v.useSyncExternalStore == "function" ? v.useSyncExternalStore(mn, fn, pn) : (0, v.useContext)(on);
-}
-//#endregion
-//#region node_modules/react-aria/dist/private/utils/useValueEffect.mjs
-function gn(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 H(() => {
- r.current = t, i.current && a.current();
- }), [t, (0, v.useCallback)((e) => {
- i.current = e(r.current), a.current();
- }, [a])];
+ return V(() => {
+ r.current = t, i.current && a.current();
+ }), [t, (0, _.useCallback)((e) => {
+ i.current = e(r.current), a.current();
+ }, [a])];
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useId.mjs
-var _n = !!(typeof window < "u" && window.document && window.document.createElement), vn = /* @__PURE__ */ new Map(), yn;
-typeof FinalizationRegistry < "u" && (yn = new FinalizationRegistry((e) => {
- vn.delete(e);
+var Vt = !!(typeof window < "u" && window.document && window.document.createElement), Ht = /* @__PURE__ */ new Map(), H;
+typeof FinalizationRegistry < "u" && (H = new FinalizationRegistry((e) => {
+ Ht.delete(e);
}));
-var bn = /* @__PURE__ */ new WeakMap();
-function xn(e) {
- let [t, n] = (0, v.useState)(e), r = (0, v.useRef)(null), i = dn(t), a = (0, v.useRef)(null), o = bn.get(a);
- if (yn && o !== i && (o != null && yn.unregister(a), yn.register(a, i, a), bn.set(a, i)), _n) {
- let e = vn.get(i);
- e && !e.includes(r) ? e.push(r) : vn.set(i, [r]);
- }
- return H(() => {
+var Ut = /* @__PURE__ */ new WeakMap();
+function Wt(e) {
+ let [t, n] = (0, _.useState)(e), r = (0, _.useRef)(null), i = Ft(t), a = (0, _.useRef)(null), o = Ut.get(a);
+ if (H && o !== i && (o != null && H.unregister(a), H.register(a, i, a), Ut.set(a, i)), Vt) {
+ let e = Ht.get(i);
+ e && !e.includes(r) ? e.push(r) : Ht.set(i, [r]);
+ }
+ return V(() => {
let e = i;
return () => {
- yn && (yn.unregister(a), bn.delete(a)), vn.delete(e);
+ H && (H.unregister(a), Ut.delete(a)), Ht.delete(e);
};
- }, [i]), (0, v.useEffect)(() => {
+ }, [i]), (0, _.useEffect)(() => {
let e = r.current;
return e && n(e), () => {
e && (r.current = null);
};
}), i;
}
-function Sn(e, t) {
+function Gt(e, t) {
if (e === t) return e;
- let n = vn.get(e);
+ let n = Ht.get(e);
if (n) return n.forEach((e) => e.current = t), t;
- let r = vn.get(t);
+ let r = Ht.get(t);
return r ? (r.forEach((t) => t.current = e), e) : t;
}
-function Cn(e = []) {
- let t = xn(), [n, r] = gn(t), i = (0, v.useCallback)(() => {
+function Kt(e = []) {
+ let t = Wt(), [n, r] = Bt(t), i = (0, _.useCallback)(() => {
r(function* () {
yield t, yield document.getElementById(t) ? t : void 0;
});
}, [t, r]);
- return H(i, [
+ return V(i, [
t,
i,
...e
@@ -11579,38 +11187,38 @@ function Cn(e = []) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/mergeRefs.mjs
-function wn(...e) {
+function qt(...e) {
return e.length === 1 && e[0] ? e[0] : (t) => {
let n = !1, r = e.map((e) => {
- let r = Tn(e, t);
+ let r = Jt(e, t);
return n ||= typeof r == "function", r;
});
if (n) return () => {
r.forEach((t, n) => {
- typeof t == "function" ? t() : Tn(e[n], null);
+ typeof t == "function" ? t() : Jt(e[n], null);
});
};
};
}
-function Tn(e, t) {
+function Jt(e, t) {
if (typeof e == "function") return e(t);
e != null && (e.current = t);
}
//#endregion
//#region node_modules/clsx/dist/clsx.mjs
-function En(e) {
+function Yt(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 = En(e[t])) && (r && (r += " "), r += n);
+ for (t = 0; t < i; t++) e[t] && (n = Yt(e[t])) && (r && (r += " "), r += n);
} else for (n in e) e[n] && (r && (r += " "), r += n);
}
return r;
}
-function Dn() {
- for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = En(e)) && (r && (r += " "), r += t);
+function Xt() {
+ for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = Yt(e)) && (r && (r += " "), r += t);
return r;
}
//#endregion
@@ -11621,15 +11229,15 @@ function U(...e) {
let r = e[n];
for (let e in r) {
let n = t[e], i = r[e];
- typeof n == "function" && typeof i == "function" && e[0] === "o" && e[1] === "n" && e.charCodeAt(2) >= 65 && e.charCodeAt(2) <= 90 ? t[e] = nn(n, i) : (e === "className" || e === "UNSAFE_className") && typeof n == "string" && typeof i == "string" ? t[e] = Dn(n, i) : e === "id" && n && i ? t.id = Sn(n, i) : e === "ref" && n && i ? t.ref = wn(n, i) : t[e] = i === void 0 ? n : i;
+ typeof n == "function" && typeof i == "function" && e[0] === "o" && e[1] === "n" && e.charCodeAt(2) >= 65 && e.charCodeAt(2) <= 90 ? t[e] = Dt(n, i) : (e === "className" || e === "UNSAFE_className") && typeof n == "string" && typeof i == "string" ? t[e] = Xt(n, i) : e === "id" && n && i ? t.id = Gt(n, i) : e === "ref" && n && i ? t.ref = qt(n, i) : t[e] = i === void 0 ? n : i;
}
}
return t;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useObjectRef.mjs
-function On(e) {
- let t = (0, v.useRef)(null), n = (0, v.useRef)(void 0), r = (0, v.useCallback)((t) => {
+function Zt(e) {
+ let t = (0, _.useRef)(null), n = (0, _.useRef)(void 0), r = (0, _.useCallback)((t) => {
if (typeof e == "function") {
let n = e, r = n(t);
return () => {
@@ -11640,7 +11248,7 @@ function On(e) {
e.current = null;
};
}, [e]);
- return (0, v.useMemo)(() => ({
+ return (0, _.useMemo)(() => ({
get current() {
return t.current;
},
@@ -11651,14 +11259,14 @@ function On(e) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/utils.mjs
-var kn = Symbol("default");
-function An({ values: e, children: t }) {
- for (let [n, r] of e) t = /*#__PURE__*/ v.createElement(n.Provider, { value: r }, t);
+var Qt = Symbol("default");
+function $t({ values: e, children: t }) {
+ for (let [n, r] of e) t = /*#__PURE__*/ _.createElement(n.Provider, { value: r }, t);
return t;
}
-function jn(e) {
+function en(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, _.useMemo)(() => {
let e, l, u;
return e = typeof t == "function" ? t({
...s,
@@ -11690,11 +11298,11 @@ function jn(e) {
c
]);
}
-function Mn(e, t) {
- let n = (0, v.useContext)(e);
+function tn(e, t) {
+ let n = (0, _.useContext)(e);
if (t === null) return null;
if (n && typeof n == "object" && "slots" in n && n.slots) {
- let e = t || kn;
+ let e = t || Qt;
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}.`);
@@ -11703,8 +11311,8 @@ function Mn(e, t) {
}
return n;
}
-function Nn(e, t, n) {
- let { ref: r, ...i } = Mn(n, e.slot) || {}, a = On((0, v.useMemo)(() => wn(t, r), [t, r])), o = U(i, e);
+function nn(e, t, n) {
+ let { ref: r, ...i } = tn(n, e.slot) || {}, a = Zt((0, _.useMemo)(() => qt(t, r), [t, r])), o = U(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,
@@ -11722,46 +11330,46 @@ function Nn(e, t, n) {
...e.style
}), [o, a];
}
-function Pn(e = !0) {
- let [t, n] = (0, v.useState)(e), r = (0, v.useRef)(!1), i = (0, v.useCallback)((e) => {
+function rn(e = !0) {
+ let [t, n] = (0, _.useState)(e), r = (0, _.useRef)(!1), i = (0, _.useCallback)((e) => {
r.current = !0, n(!!e);
}, []);
- return H(() => {
+ return V(() => {
r.current || n(!1);
}, []), [i, t];
}
-function Fn(e) {
+function an(e) {
let t = /^(data-.*)$/, n = {};
for (let r in e) t.test(r) || (n[r] = e[r]);
return n;
}
-function In(e, t, n) {
- let { render: r, ...i } = t, a = (0, v.useRef)(null), o = (0, v.useMemo)(() => wn(n, a), [n, a]);
- H(() => {}, [e, r]);
+function on(e, t, n) {
+ let { render: r, ...i } = t, a = (0, _.useRef)(null), o = (0, _.useMemo)(() => qt(n, a), [n, a]);
+ V(() => {}, [e, r]);
let s = {
...i,
ref: o
};
- return r ? r(s, void 0) : /*#__PURE__*/ v.createElement(e, s);
+ return r ? r(s, void 0) : /*#__PURE__*/ _.createElement(e, s);
}
-var Ln = {}, Rn = new Proxy({}, { get(e, t) {
+var sn = {}, cn = new Proxy({}, { get(e, t) {
if (typeof t != "string") return;
- let n = Ln[t];
- return n || (n = /*#__PURE__*/ (0, v.forwardRef)(In.bind(null, t)), Ln[t] = n), n;
-} }), zn = "react-aria-clear-focus", Bn = "react-aria-focus", W = (e) => Un(e) ? e.document : Wn(e) ? e : e?.ownerDocument ?? (typeof document < "u" ? document : void 0), Vn = (e) => W(e)?.defaultView ?? (typeof window < "u" ? window : void 0);
-function Hn(e) {
+ let n = sn[t];
+ return n || (n = /*#__PURE__*/ (0, _.forwardRef)(on.bind(null, t)), sn[t] = n), n;
+} }), ln = "react-aria-clear-focus", un = "react-aria-focus", W = (e) => pn(e) ? e.document : mn(e) ? e : e?.ownerDocument ?? (typeof document < "u" ? document : void 0), dn = (e) => W(e)?.defaultView ?? (typeof window < "u" ? window : void 0);
+function fn(e) {
return typeof e == "object" && !!e && "nodeType" in e && typeof e.nodeType == "number";
}
-function Un(e) {
+function pn(e) {
return typeof e == "object" && !!e && "window" in e && e.window === e;
}
-function Wn(e) {
- return Hn(e) && e.nodeType === 9;
+function mn(e) {
+ return fn(e) && e.nodeType === 9;
}
-function Gn(e) {
- return Hn(e) && e.nodeType === 11 && "host" in e;
+function hn(e) {
+ return fn(e) && e.nodeType === 11 && "host" in e;
}
-function Kn(e, t, n, r) {
+function gn(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);
@@ -11769,7 +11377,7 @@ function Kn(e, t, n, r) {
for (let e of i) e.removeEventListener(t, n, r);
};
}
-function qn(e, t, n, r) {
+function _n(e, t, n, r) {
if (e == null) return () => {};
let i = [], a = Array.isArray(e) ? e : [e];
for (let e of a) {
@@ -11784,95 +11392,95 @@ function qn(e, t, n, r) {
}
//#endregion
//#region node_modules/react-stately/dist/private/flags/flags.mjs
-var Jn = !1;
-function Yn() {
- return Jn;
+var vn = !1;
+function yn() {
+ return vn;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/shadowdom/DOMFunctions.mjs
function G(e, t) {
- if (!Yn()) return t && e ? e.contains(t) : !1;
+ 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 : Gn(n) ? n.host : n.parentNode;
+ n = typeof n.assignedElements != "function" && n.assignedSlot?.parentNode ? n.assignedSlot.parentNode : hn(n) ? n.host : n.parentNode;
}
return !1;
}
-var Xn = (e = document) => {
- if (!Yn()) return e.activeElement;
+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 K(e) {
- if (Yn() && e.target instanceof Element && e.target.shadowRoot) {
+ 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;
}
-function Zn(e, t) {
+function xn(e, t) {
if (t === null) return [];
- t ??= Vn(e);
+ t ??= dn(e);
let n = [t];
- if (!Yn() || !e || e === t) return n;
+ if (!yn() || !e || e === t) return n;
let r = "getRootNode" in t ? t.getRootNode() : null, i = e.getRootNode() ?? null;
- for (; Gn(i) && i !== r;) n.push(i), i = i.host.getRootNode();
+ for (; hn(i) && i !== r;) n.push(i), i = i.host.getRootNode();
return n;
}
-function Qn(e) {
+function Sn(e) {
if (!e) return !1;
- let t = e.getRootNode(), n = Vn(e);
+ let t = e.getRootNode(), n = dn(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/focus/virtualFocus.mjs
-function $n(e) {
- let t = nr(W(e));
- t !== e && (t && er(t, e), e && tr(e, t));
+function Cn(e) {
+ let t = En(W(e));
+ t !== e && (t && wn(t, e), e && Tn(e, t));
}
-function er(e, t) {
+function wn(e, t) {
e.dispatchEvent(new FocusEvent("blur", { relatedTarget: t })), e.dispatchEvent(new FocusEvent("focusout", {
bubbles: !0,
relatedTarget: t
}));
}
-function tr(e, t) {
+function Tn(e, t) {
e.dispatchEvent(new FocusEvent("focus", { relatedTarget: t })), e.dispatchEvent(new FocusEvent("focusin", {
bubbles: !0,
relatedTarget: t
}));
}
-function nr(e) {
- let t = Xn(e), n = t?.getAttribute("aria-activedescendant");
+function En(e) {
+ let t = bn(e), n = t?.getAttribute("aria-activedescendant");
return n && e.getElementById(n) || t;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/focusWithoutScrolling.mjs
-function rr(e) {
- if (ar()) e.focus({ preventScroll: !0 });
+function Dn(e) {
+ if (kn()) e.focus({ preventScroll: !0 });
else {
- let t = or(e);
- e.focus(), sr(t);
+ let t = An(e);
+ e.focus(), jn(t);
}
}
-var ir = null;
-function ar() {
- if (ir == null) {
- ir = !1;
+var On = null;
+function kn() {
+ if (On == null) {
+ On = !1;
try {
document.createElement("div").focus({ get preventScroll() {
- return ir = !0, !0;
+ return On = !0, !0;
} });
} catch {}
}
- return ir;
+ return On;
}
-function or(e) {
+function An(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,
@@ -11885,31 +11493,31 @@ function or(e) {
scrollLeft: r.scrollLeft
}), n;
}
-function sr(e) {
+function jn(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 cr = typeof Element < "u" && "checkVisibility" in Element.prototype;
-function lr(e) {
- let t = Vn(e);
+var Mn = typeof Element < "u" && "checkVisibility" in Element.prototype;
+function Nn(e) {
+ let t = dn(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 } = Vn(e), { display: n, visibility: r } = t(e);
+ let { getComputedStyle: t } = dn(e), { display: n, visibility: r } = t(e);
i = n !== "none" && r !== "hidden" && r !== "collapse";
}
return i;
}
-function ur(e, t) {
+function Pn(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 dr(e, t) {
- return cr ? e.checkVisibility({ visibilityProperty: !0 }) && !e.closest("[data-react-aria-prevent-focus]") : e.nodeName !== "#comment" && lr(e) && ur(e, t) && (!e.parentElement || dr(e.parentElement, e));
+function Fn(e, t) {
+ return Mn ? e.checkVisibility({ visibilityProperty: !0 }) && !e.closest("[data-react-aria-prevent-focus]") : e.nodeName !== "#comment" && Nn(e) && Pn(e, t) && (!e.parentElement || Fn(e.parentElement, e));
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/isFocusable.mjs
-var fr = [
+var In = [
"input:not([disabled]):not([type=hidden])",
"select:not([disabled])",
"textarea:not([disabled])",
@@ -11924,57 +11532,57 @@ var fr = [
"video[controls]",
"[contenteditable]:not([contenteditable^=\"false\"])",
"permission"
-], pr = fr.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";
-fr.push("[tabindex]:not([tabindex=\"-1\"]):not([disabled])");
-var mr = fr.join(":not([hidden]):not([tabindex=\"-1\"]),");
-function hr(e, t) {
- return e.matches(pr) && !_r(e) && (t?.skipVisibilityCheck || dr(e));
+], Ln = In.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";
+In.push("[tabindex]:not([tabindex=\"-1\"]):not([disabled])");
+var Rn = In.join(":not([hidden]):not([tabindex=\"-1\"]),");
+function zn(e, t) {
+ return e.matches(Ln) && !Vn(e) && (t?.skipVisibilityCheck || Fn(e));
}
-function gr(e) {
- return e.matches(mr) && dr(e) && !_r(e);
+function Bn(e) {
+ return e.matches(Rn) && Fn(e) && !Vn(e);
}
-function _r(e) {
+function Vn(e) {
let t = e;
for (; t != null;) {
- if (t instanceof Vn(t).HTMLElement && t.inert) return !0;
+ if (t instanceof dn(t).HTMLElement && t.inert) return !0;
t = t.parentElement;
}
return !1;
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/utils.mjs
-function vr(e) {
+function Hn(e) {
let t = e;
return t.nativeEvent = e, t.isDefaultPrevented = () => t.defaultPrevented, t.isPropagationStopped = () => t.cancelBubble, t.persist = () => {}, t;
}
-function yr(e, t) {
+function Un(e, t) {
Object.defineProperty(e, "target", { value: t }), Object.defineProperty(e, "currentTarget", { value: t });
}
-function br(e) {
- let t = (0, v.useRef)({
+function Wn(e) {
+ let t = (0, _.useRef)({
isFocused: !1,
observer: null
});
- return H(() => {
+ return V(() => {
let e = t.current;
return () => {
e.observer &&= (e.observer.disconnect(), null);
};
- }, []), (0, v.useCallback)((n) => {
+ }, []), (0, _.useCallback)((n) => {
let r = K(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 = vr(r);
+ let t = Hn(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 === Xn() ? null : Xn();
+ let e = n === bn() ? null : bn();
n.dispatchEvent(new FocusEvent("blur", { relatedTarget: e })), n.dispatchEvent(new FocusEvent("focusout", {
bubbles: !0,
relatedTarget: e
@@ -11987,83 +11595,83 @@ function br(e) {
}
}, [e]);
}
-var xr = !1;
-function Sr(e) {
- for (; e && !hr(e, { skipVisibilityCheck: !0 });) e = e.parentElement;
- let t = Xn(Vn(e).document);
+var Gn = !1;
+function Kn(e) {
+ for (; e && !zn(e, { skipVisibilityCheck: !0 });) e = e.parentElement;
+ let t = bn(dn(e).document);
if (!t || t === e) return;
- let n = e?.getRootNode(), r = n != null && Gn(n) ? n : Vn(e), i = (t) => t === e || t != null && G(e, t), a = (e) => e === t || t != null && e != null && G(t, e);
- xr = !0;
+ let n = e?.getRootNode(), r = n != null && hn(n) ? n : dn(e), i = (t) => t === e || t != null && G(e, t), a = (e) => e === t || t != null && e != null && G(t, e);
+ Gn = !0;
let o = !1, s = (e) => {
(a(K(e)) || o) && e.stopImmediatePropagation();
}, c = (n) => {
- (a(K(n)) || o) && (n.stopImmediatePropagation(), !e && !o && (o = !0, rr(t), d()));
+ (a(K(n)) || o) && (n.stopImmediatePropagation(), !e && !o && (o = !0, Dn(t), d()));
}, l = (e) => {
(i(K(e)) || o) && e.stopImmediatePropagation();
}, u = (e) => {
- (i(K(e)) || o) && (e.stopImmediatePropagation(), o || (o = !0, rr(t), d()));
+ (i(K(e)) || o) && (e.stopImmediatePropagation(), o || (o = !0, Dn(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), xr = !1, o = !1;
+ cancelAnimationFrame(f), r.removeEventListener("blur", s, !0), r.removeEventListener("focusout", c, !0), r.removeEventListener("focusin", u, !0), r.removeEventListener("focus", l, !0), Gn = !1, o = !1;
}, f = requestAnimationFrame(d);
return d;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/platform.mjs
-function Cr(e) {
+function qn(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 wr(e) {
+function Jn(e) {
return typeof window < "u" && window.navigator != null && e.test(window.navigator.userAgentData?.platform || window.navigator.platform);
}
-function Tr(e) {
+function Yn(e) {
let t = null;
return () => (t ??= e(), t);
}
-var Er = Tr(function() {
- return wr(/^Mac/i);
-}), Dr = Tr(function() {
- return wr(/^iPhone/i);
-}), Or = Tr(function() {
- return wr(/^iPad/i) || Er() && navigator.maxTouchPoints > 1;
-}), kr = Tr(function() {
- return Dr() || Or();
-}), Ar = Tr(function() {
- return Er() || kr();
-}), jr = Tr(function() {
- return Cr(/AppleWebKit/i) && (kr() || !Mr());
-}), Mr = Tr(function() {
- return Cr(/Chrome|CriOS|CrMo/i);
-}), Nr = Tr(function() {
- return Cr(/Android/i);
-}), Pr = Tr(function() {
- return Cr(/(Firefox|FxiOS)/i);
+var Xn = Yn(function() {
+ return Jn(/^Mac/i);
+}), Zn = Yn(function() {
+ return Jn(/^iPhone/i);
+}), Qn = Yn(function() {
+ return Jn(/^iPad/i) || Xn() && navigator.maxTouchPoints > 1;
+}), $n = Yn(function() {
+ return Zn() || Qn();
+}), er = Yn(function() {
+ return Xn() || $n();
+}), tr = Yn(function() {
+ return qn(/AppleWebKit/i) && ($n() || !nr());
+}), nr = Yn(function() {
+ return qn(/Chrome|CriOS|CrMo/i);
+}), rr = Yn(function() {
+ return qn(/Android/i);
+}), ir = Yn(function() {
+ return qn(/(Firefox|FxiOS)/i);
});
//#endregion
//#region node_modules/react-aria/dist/private/utils/isVirtualEvent.mjs
-function Fr(e) {
- return e.pointerType === "" && e.isTrusted ? !0 : Nr() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
+function ar(e) {
+ return e.pointerType === "" && e.isTrusted ? !0 : rr() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
}
-function Ir(e) {
- return !Nr() && e.width === 0 && e.height === 0 || Nr() && e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "mouse";
+function or(e) {
+ return !rr() && e.width === 0 && e.height === 0 || rr() && 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 Lr = /*#__PURE__*/ (0, v.createContext)({
+var sr = /*#__PURE__*/ (0, _.createContext)({
isNative: !0,
- open: Vr,
+ open: dr,
useHref: (e) => e
});
-function Rr() {
- return (0, v.useContext)(Lr);
+function cr() {
+ return (0, _.useContext)(sr);
}
-function zr(e, t, n = !0) {
+function lr(e, t, n = !0) {
let { metaKey: r, ctrlKey: i, altKey: a, shiftKey: o } = t;
- !jr() && Pr() && window.event?.type?.startsWith("key") && e.target === "_blank" && (Er() ? r = !0 : i = !0);
- let s = jr() && Er() && !Or() ? new KeyboardEvent("keydown", {
+ !tr() && ir() && window.event?.type?.startsWith("key") && e.target === "_blank" && (Xn() ? r = !0 : i = !0);
+ let s = tr() && Xn() && !Qn() ? new KeyboardEvent("keydown", {
keyIdentifier: "Enter",
metaKey: r,
ctrlKey: i,
@@ -12078,21 +11686,21 @@ function zr(e, t, n = !0) {
bubbles: !0,
cancelable: !0
});
- zr.isOpening = n, rr(e), e.dispatchEvent(s), zr.isOpening = !1;
+ lr.isOpening = n, Dn(e), e.dispatchEvent(s), lr.isOpening = !1;
}
-zr.isOpening = !1;
-function Br(e, t) {
+lr.isOpening = !1;
+function ur(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 Vr(e, t) {
- Br(e, (e) => zr(e, t));
+function dr(e, t) {
+ ur(e, (e) => lr(e, t));
}
-function Hr(e) {
- let t = Rr().useHref(e?.href ?? ""), n = {};
+function fr(e) {
+ let t = cr().useHref(e?.href ?? ""), n = {};
if (e) for (let r of [
"href",
"target",
@@ -12105,77 +11713,77 @@ function Hr(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useFocusVisible.mjs
-var Ur = null, Wr = /* @__PURE__ */ new Set(), Gr = /* @__PURE__ */ new Map(), Kr = !1, qr = !1, Jr = {
+var pr = null, mr = /* @__PURE__ */ new Set(), hr = /* @__PURE__ */ new Map(), gr = !1, _r = !1, vr = {
Tab: !0,
Escape: !0
};
-function Yr(e, t) {
- for (let n of Wr) n(e, t);
+function yr(e, t) {
+ for (let n of mr) n(e, t);
}
-function Xr(e) {
- return !(e.metaKey || !Er() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
+function br(e) {
+ return !(e.metaKey || !Xn() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
}
-function Zr(e) {
- Kr = !0, !zr.isOpening && Xr(e) && (Ur = "keyboard", Yr("keyboard", e));
+function xr(e) {
+ gr = !0, !lr.isOpening && br(e) && (pr = "keyboard", yr("keyboard", e));
}
-function Qr(e) {
- Ur = "pointer", "pointerType" in e && e.pointerType, (e.type === "mousedown" || e.type === "pointerdown") && (Kr = !0, Yr("pointer", e));
+function Sr(e) {
+ pr = "pointer", "pointerType" in e && e.pointerType, (e.type === "mousedown" || e.type === "pointerdown") && (gr = !0, yr("pointer", e));
}
-function $r(e) {
- !zr.isOpening && Fr(e) && (Kr = !0, Ur = "virtual");
+function Cr(e) {
+ !lr.isOpening && ar(e) && (gr = !0, pr = "virtual");
}
-function ei(e) {
- if (xr) return;
- let t = K(e), n = Vn(t), r = W(t);
+function wr(e) {
+ if (Gn) return;
+ let t = K(e), n = dn(t), r = W(t);
if (t === n) {
- qr = !0;
+ _r = !0;
return;
}
- t === r || !e.isTrusted || (!Kr && !qr && (Ur = "virtual", Yr("virtual", e)), Kr = !1, qr = !1);
+ t === r || !e.isTrusted || (!gr && !_r && (pr = "virtual", yr("virtual", e)), gr = !1, _r = !1);
}
-function ti() {
- xr || (Kr = !1, qr = !0);
+function Tr() {
+ Gn || (gr = !1, _r = !0);
}
-function ni(e) {
+function Er(e) {
if (typeof window > "u" || typeof document > "u") return;
- let t = Vn(e), n = W(e);
- if (Gr.get(t)) return;
+ let t = dn(e), n = W(e);
+ if (hr.get(t)) return;
let r = t.HTMLElement.prototype.focus;
Reflect.defineProperty(t.HTMLElement.prototype, "focus", {
configurable: !0,
writable: !0,
value: function() {
- Kr = !0, r.apply(this, arguments);
+ gr = !0, r.apply(this, arguments);
}
- }), n.addEventListener("keydown", Zr, !0), n.addEventListener("keyup", Zr, !0), n.addEventListener("click", $r, !0), t.addEventListener("focus", ei, !0), t.addEventListener("blur", ti, !1), typeof PointerEvent < "u" && (n.addEventListener("pointerdown", Qr, !0), n.addEventListener("pointermove", Qr, !0), n.addEventListener("pointerup", Qr, !0)), t.addEventListener("beforeunload", () => {
- ri(e);
- }, { once: !0 }), Gr.set(t, { focus: r });
+ }), n.addEventListener("keydown", xr, !0), n.addEventListener("keyup", xr, !0), n.addEventListener("click", Cr, !0), t.addEventListener("focus", wr, !0), t.addEventListener("blur", Tr, !1), typeof PointerEvent < "u" && (n.addEventListener("pointerdown", Sr, !0), n.addEventListener("pointermove", Sr, !0), n.addEventListener("pointerup", Sr, !0)), t.addEventListener("beforeunload", () => {
+ Dr(e);
+ }, { once: !0 }), hr.set(t, { focus: r });
}
-var ri = (e, t) => {
- let n = Vn(e), r = W(e);
- t && r.removeEventListener("DOMContentLoaded", t), Gr.has(n) && (Reflect.defineProperty(n.HTMLElement.prototype, "focus", {
+var Dr = (e, t) => {
+ let n = dn(e), r = W(e);
+ t && r.removeEventListener("DOMContentLoaded", t), hr.has(n) && (Reflect.defineProperty(n.HTMLElement.prototype, "focus", {
configurable: !0,
writable: !0,
- value: Gr.get(n).focus
- }), r.removeEventListener("keydown", Zr, !0), r.removeEventListener("keyup", Zr, !0), r.removeEventListener("click", $r, !0), n.removeEventListener("focus", ei, !0), n.removeEventListener("blur", ti, !1), typeof PointerEvent < "u" && (r.removeEventListener("pointerdown", Qr, !0), r.removeEventListener("pointermove", Qr, !0), r.removeEventListener("pointerup", Qr, !0)), Gr.delete(n));
+ value: hr.get(n).focus
+ }), r.removeEventListener("keydown", xr, !0), r.removeEventListener("keyup", xr, !0), r.removeEventListener("click", Cr, !0), n.removeEventListener("focus", wr, !0), n.removeEventListener("blur", Tr, !1), typeof PointerEvent < "u" && (r.removeEventListener("pointerdown", Sr, !0), r.removeEventListener("pointermove", Sr, !0), r.removeEventListener("pointerup", Sr, !0)), hr.delete(n));
};
-function ii(e) {
+function Or(e) {
let t = W(e), n;
return t.readyState === "loading" ? (n = () => {
- ni(e);
- }, t.addEventListener("DOMContentLoaded", n)) : ni(e), () => ri(e, n);
+ Er(e);
+ }, t.addEventListener("DOMContentLoaded", n)) : Er(e), () => Dr(e, n);
}
-typeof document < "u" && ii();
-function ai() {
- return Ur !== "pointer";
+typeof document < "u" && Or();
+function kr() {
+ return pr !== "pointer";
}
-function oi() {
- return Ur;
+function Ar() {
+ return pr;
}
-function si(e) {
- Ur = e, Yr(e, null);
+function jr(e) {
+ pr = e, yr(e, null);
}
-var ci = /* @__PURE__ */ new Set([
+var Mr = /* @__PURE__ */ new Set([
"checkbox",
"radio",
"range",
@@ -12186,27 +11794,27 @@ var ci = /* @__PURE__ */ new Set([
"submit",
"reset"
]);
-function li(e, t, n) {
- let r = n ? K(n) : void 0, i = W(r), a = Vn(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 = Xn(i);
- return e = e || u instanceof o && !ci.has(u.type) || u instanceof s || u instanceof c && u.isContentEditable, !(e && t === "keyboard" && n instanceof l && !Jr[n.key]);
+function Nr(e, t, n) {
+ let r = n ? K(n) : void 0, i = W(r), a = dn(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 && !Mr.has(u.type) || u instanceof s || u instanceof c && u.isContentEditable, !(e && t === "keyboard" && n instanceof l && !vr[n.key]);
}
-function ui(e, t, n) {
- ni(), (0, v.useEffect)(() => {
+function Pr(e, t, n) {
+ Er(), (0, _.useEffect)(() => {
if (n?.enabled === !1) return;
let t = (t, r) => {
- li(!!n?.isTextInput, t, r) && e(ai());
+ Nr(!!n?.isTextInput, t, r) && e(kr());
};
- return Wr.add(t), () => {
- Wr.delete(t);
+ return mr.add(t), () => {
+ mr.delete(t);
};
}, t);
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/keyboard.mjs
-function di(e) {
- return Er() ? e.metaKey : e.ctrlKey;
+function Fr(e) {
+ return Xn() ? e.metaKey : e.ctrlKey;
}
-var fi = /* @__PURE__ */ new Set([
+var Ir = /* @__PURE__ */ new Set([
"checkbox",
"radio",
"range",
@@ -12217,27 +11825,27 @@ var fi = /* @__PURE__ */ new Set([
"submit",
"reset"
]);
-function pi(e) {
- return e instanceof HTMLInputElement && !fi.has(e.type) || e instanceof HTMLTextAreaElement || e instanceof HTMLElement && e.isContentEditable;
+function Lr(e) {
+ return e instanceof HTMLInputElement && !Ir.has(e.type) || e instanceof HTMLTextAreaElement || e instanceof HTMLElement && e.isContentEditable;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useEffectEvent.mjs
-var mi = v.useInsertionEffect ?? H;
-function hi(e) {
- let t = (0, v.useRef)(null);
- return mi(() => {
+var Rr = _.useInsertionEffect ?? V;
+function zr(e) {
+ let t = (0, _.useRef)(null);
+ return Rr(() => {
t.current = e;
- }, [e]), (0, v.useCallback)((...e) => {
+ }, [e]), (0, _.useCallback)((...e) => {
let n = t.current;
return n?.(...e);
}, []);
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useEvent.mjs
-function gi(e, t, n, r) {
- let i = hi(n), a = n == null;
- (0, v.useEffect)(() => {
- if (!(a || e.current == null)) return Kn(e.current, t, i, r);
+function Br(e, t, n, r) {
+ let i = zr(n), a = n == null;
+ (0, _.useEffect)(() => {
+ if (!(a || e.current == null)) return gn(e.current, t, i, r);
}, [
e,
t,
@@ -12247,9 +11855,9 @@ function gi(e, t, n, r) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useLabels.mjs
-function _i(e, t) {
+function Vr(e, t) {
let { id: n, "aria-label": r, "aria-labelledby": i } = e;
- return n = xn(n), i && r ? i = [.../* @__PURE__ */ new Set([n, ...i.trim().split(/\s+/)])].join(" ") : i &&= i.trim().split(/\s+/).join(" "), !r && !i && t && (r = t), {
+ return n = Wt(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
@@ -12257,7 +11865,7 @@ function _i(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/utils.mjs
-var vi = /* @__PURE__ */ new Set([
+var Hr = /* @__PURE__ */ new Set([
"Arab",
"Syrc",
"Samr",
@@ -12268,7 +11876,7 @@ var vi = /* @__PURE__ */ new Set([
"Adlm",
"Rohg",
"Hebr"
-]), yi = /* @__PURE__ */ new Set([
+]), Ur = /* @__PURE__ */ new Set([
"ae",
"ar",
"arc",
@@ -12289,20 +11897,20 @@ var vi = /* @__PURE__ */ new Set([
"ur",
"yi"
]);
-function bi(e) {
+function Wr(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 vi.has(t.script);
+ if (t.script) return Hr.has(t.script);
}
let t = e.split("-")[0];
- return yi.has(t);
+ return Ur.has(t);
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/useDefaultLocale.mjs
-var xi = Symbol.for("react-aria.i18n.locale");
-function Si() {
- let e = typeof window < "u" && window[xi] || typeof navigator < "u" && (navigator.language || navigator.userLanguage) || "en-US";
+var Gr = Symbol.for("react-aria.i18n.locale");
+function Kr() {
+ let e = typeof window < "u" && window[Gr] || typeof navigator < "u" && (navigator.language || navigator.userLanguage) || "en-US";
try {
Intl.DateTimeFormat.supportedLocalesOf([e]);
} catch {
@@ -12310,33 +11918,33 @@ function Si() {
}
return {
locale: e,
- direction: bi(e) ? "rtl" : "ltr"
+ direction: Wr(e) ? "rtl" : "ltr"
};
}
-var Ci = Si(), wi = /* @__PURE__ */ new Set();
-function Ti() {
- Ci = Si();
- for (let e of wi) e(Ci);
+var qr = Kr(), Jr = /* @__PURE__ */ new Set();
+function Yr() {
+ qr = Kr();
+ for (let e of Jr) e(qr);
}
-function Ei() {
- let e = hn(), [t, n] = (0, v.useState)(Ci);
- return (0, v.useEffect)(() => (wi.size === 0 && window.addEventListener("languagechange", Ti), wi.add(n), () => {
- wi.delete(n), wi.size === 0 && window.removeEventListener("languagechange", Ti);
+function Xr() {
+ let e = zt(), [t, n] = (0, _.useState)(qr);
+ return (0, _.useEffect)(() => (Jr.size === 0 && window.addEventListener("languagechange", Yr), Jr.add(n), () => {
+ Jr.delete(n), Jr.size === 0 && window.removeEventListener("languagechange", Yr);
}), []), e ? {
- locale: typeof window < "u" && window[xi] || "en-US",
+ locale: typeof window < "u" && window[Gr] || "en-US",
direction: "ltr"
} : t;
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/I18nProvider.mjs
-var Di = /*#__PURE__*/ v.createContext(null);
-function Oi() {
- let e = Ei();
- return (0, v.useContext)(Di) || e;
+var Zr = /*#__PURE__*/ _.createContext(null);
+function Qr() {
+ let e = Xr();
+ return (0, _.useContext)(Zr) || e;
}
//#endregion
//#region node_modules/@internationalized/string/dist/private/LocalizedStringDictionary.mjs
-var ki = Symbol.for("react-aria.i18n.locale"), Ai = Symbol.for("react-aria.i18n.strings"), ji = void 0, Mi = class e {
+var $r = Symbol.for("react-aria.i18n.locale"), ei = Symbol.for("react-aria.i18n.strings"), ti = void 0, ni = class e {
constructor(e, t = "en-US") {
this.strings = Object.fromEntries(Object.entries(e).filter(([, e]) => e)), this.defaultLocale = t;
}
@@ -12347,39 +11955,39 @@ var ki = Symbol.for("react-aria.i18n.locale"), Ai = Symbol.for("react-aria.i18n.
}
getStringsForLocale(e) {
let t = this.strings[e];
- return t || (t = Ni(e, this.strings, this.defaultLocale), this.strings[e] = t), t;
+ return t || (t = ri(e, this.strings, this.defaultLocale), this.strings[e] = t), t;
}
static getGlobalDictionaryForPackage(t) {
if (typeof window > "u") return null;
- let n = window[ki];
- if (ji === void 0) {
- let t = window[Ai];
+ let n = window[$r];
+ if (ti === void 0) {
+ let t = window[ei];
if (!t) return null;
- ji = {};
- for (let r in t) ji[r] = new e({ [n]: t[r] }, n);
+ ti = {};
+ for (let r in t) ti[r] = new e({ [n]: t[r] }, n);
}
- let r = ji?.[t];
+ let r = ti?.[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 Ni(e, t, n = "en-US") {
+function ri(e, t, n = "en-US") {
if (t[e]) return t[e];
- let r = Pi(e), i = Fi(e);
+ let r = ii(e), i = ai(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 Pi(e) {
+function ii(e) {
return Intl.Locale ? new Intl.Locale(e).language : e.split("-")[0];
}
-function Fi(e) {
+function ai(e) {
if (Intl.Locale) return new Intl.Locale(e).script;
}
//#endregion
//#region node_modules/@internationalized/string/dist/private/LocalizedStringFormatter.mjs
-var Ii = /* @__PURE__ */ new Map(), Li = /* @__PURE__ */ new Map(), Ri = class {
+var oi = /* @__PURE__ */ new Map(), si = /* @__PURE__ */ new Map(), ci = class {
constructor(e, t) {
this.locale = e, this.strings = t;
}
@@ -12390,50 +11998,50 @@ var Ii = /* @__PURE__ */ new Map(), Li = /* @__PURE__ */ new Map(), Ri = class {
plural(e, t, n = "cardinal") {
let r = t["=" + e];
if (r) return typeof r == "function" ? r() : r;
- let i = this.locale + ":" + n, a = Ii.get(i);
- return a || (a = new Intl.PluralRules(this.locale, { type: n }), Ii.set(i, a)), r = t[a.select(e)] || t.other, typeof r == "function" ? r() : r;
+ let i = this.locale + ":" + n, a = oi.get(i);
+ return a || (a = new Intl.PluralRules(this.locale, { type: n }), oi.set(i, a)), r = t[a.select(e)] || t.other, typeof r == "function" ? r() : r;
}
number(e) {
- let t = Li.get(this.locale);
- return t || (t = new Intl.NumberFormat(this.locale), Li.set(this.locale, t)), t.format(e);
+ let t = si.get(this.locale);
+ return t || (t = new Intl.NumberFormat(this.locale), si.set(this.locale, t)), t.format(e);
}
select(e, t) {
let n = e[t] || e.other;
return typeof n == "function" ? n() : n;
}
-}, zi = /* @__PURE__ */ new WeakMap();
-function Bi(e) {
- let t = zi.get(e);
- return t || (t = new Mi(e), zi.set(e, t)), t;
+}, li = /* @__PURE__ */ new WeakMap();
+function ui(e) {
+ let t = li.get(e);
+ return t || (t = new ni(e), li.set(e, t)), t;
}
-function Vi(e, t) {
- return t && Mi.getGlobalDictionaryForPackage(t) || Bi(e);
+function di(e, t) {
+ return t && ni.getGlobalDictionaryForPackage(t) || ui(e);
}
-function Hi(e, t) {
- let { locale: n } = Oi(), r = Vi(e, t);
- return (0, v.useMemo)(() => new Ri(n, r), [n, r]);
+function fi(e, t) {
+ let { locale: n } = Qr(), r = di(e, t);
+ return (0, _.useMemo)(() => new ci(n, r), [n, r]);
}
//#endregion
//#region node_modules/react-stately/dist/private/utils/useControlledState.mjs
-var Ui = typeof document < "u" ? v.useInsertionEffect ?? v.useLayoutEffect : () => {};
-function Wi(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)(() => {
+var pi = typeof document < "u" ? _.useInsertionEffect ?? _.useLayoutEffect : () => {};
+function mi(e, t, n) {
+ let [r, i] = (0, _.useState)(e || t), a = (0, _.useRef)(r), o = (0, _.useRef)(e !== void 0), s = e !== void 0;
+ (0, _.useEffect)(() => {
o.current, o.current = s;
}, [s]);
let c = s ? e : r;
- Ui(() => {
+ pi(() => {
a.current = c;
});
- let [, l] = (0, v.useReducer)(() => ({}), {});
- return [c, (0, v.useCallback)((e, ...t) => {
+ let [, l] = (0, _.useReducer)(() => ({}), {});
+ return [c, (0, _.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-aria-components/dist/private/Autocomplete.mjs
-var Gi = /*#__PURE__*/ (0, v.createContext)(null), Ki = /*#__PURE__*/ (0, v.createContext)(null), qi = class {
+var hi = /*#__PURE__*/ (0, _.createContext)(null), gi = /*#__PURE__*/ (0, _.createContext)(null), _i = 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;
}
@@ -12448,22 +12056,22 @@ var Gi = /*#__PURE__*/ (0, v.createContext)(null), Ki = /*#__PURE__*/ (0, v.crea
let r = this.clone();
return t.addDescendants(r, e), r;
}
-}, Ji = class extends qi {
+}, vi = class extends _i {
filter(e, t, n) {
- let [r, i] = q(e, t, this.firstChildKey, n), a = this.clone();
+ let [r, i] = Si(e, t, this.firstChildKey, n), a = this.clone();
return a.firstChildKey = r, a.lastChildKey = i, a;
}
};
-(class extends qi {
+(class extends _i {
static {
this.type = "header";
}
});
-var Yi = class extends qi {
+var yi = class extends _i {
static {
this.type = "loader";
}
-}, Xi = class extends Ji {
+}, bi = class extends vi {
static {
this.type = "item";
}
@@ -12475,7 +12083,7 @@ var Yi = class extends qi {
return null;
}
};
-(class extends Ji {
+(class extends vi {
static {
this.type = "section";
}
@@ -12488,7 +12096,7 @@ var Yi = class extends qi {
return null;
}
});
-var Zi = class {
+var xi = class {
get size() {
return this.itemCount;
}
@@ -12563,14 +12171,14 @@ var Zi = class {
this.firstKey = e, this.lastKey = t, this.frozen = !n;
}
filter(e) {
- let t = new this.constructor(), [n, r] = q(this, t, this.firstKey, e);
+ let t = new this.constructor(), [n, r] = Si(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 q(e, t, n, r) {
+function Si(e, t, n, r) {
if (n == null) return [null, null];
let i = null, a = null, o = e.getItem(n);
for (; o != null;) {
@@ -12585,7 +12193,7 @@ function q(e, t, n, r) {
}
//#endregion
//#region node_modules/react-aria/dist/private/collections/Document.mjs
-var Qi = class {
+var Ci = class {
constructor(e) {
this._firstChild = null, this._lastChild = null, this._previousSibling = null, this._nextSibling = null, this._parentNode = null, this._minInvalidChildIndex = null, this.ownerDocument = e;
}
@@ -12666,7 +12274,7 @@ var Qi = class {
for (; e && e.isHidden;) e = e.previousSibling;
return e;
}
-}, $i = class e extends Qi {
+}, wi = class e extends Ci {
constructor(e, t) {
super(t), this.nodeType = 8, this.isMutated = !0, this._index = 0, this.isHidden = !1, this.node = null;
}
@@ -12717,7 +12325,7 @@ var Qi = class {
setAttribute() {}
setAttributeNS() {}
removeAttribute() {}
-}, ea = class extends Qi {
+}, Ti = class extends Ci {
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;
}
@@ -12725,7 +12333,7 @@ var Qi = class {
return !0;
}
createElement(e) {
- return new $i(e, this);
+ return new wi(e, this);
}
getMutableCollection() {
return this.nextCollection ||= this.collection.clone(), this.nextCollection;
@@ -12747,8 +12355,8 @@ var Qi = class {
return this.inSubscription ? this.collection : (this.queuedRender = !1, this.updateCollection(), this.collection);
}
updateCollection() {
- for (let e of this.dirtyNodes) e instanceof $i && (!e.isConnected || e.isHidden) ? this.removeNode(e) : e.updateChildIndices();
- for (let e of this.dirtyNodes) e instanceof $i ? (e.isConnected && !e.isHidden && (e.updateNode(), this.addNode(e)), e.node && this.dirtyNodes.delete(e), e.isMutated = !1) : this.dirtyNodes.delete(e);
+ for (let e of this.dirtyNodes) e instanceof wi && (!e.isConnected || e.isHidden) ? this.removeNode(e) : e.updateChildIndices();
+ for (let e of this.dirtyNodes) e instanceof wi ? (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() {
@@ -12767,19 +12375,19 @@ var Qi = class {
};
//#endregion
//#region node_modules/react-aria/dist/private/collections/useCachedChildren.mjs
-function ta(e) {
- let { children: t, items: n, idScope: r, addIdAndValue: i, dependencies: a = [] } = e, o = (0, v.useMemo)(() => void 0, [t]), s = (0, v.useMemo)(() => /* @__PURE__ */ new WeakMap(), [...a, o]);
- return (0, v.useMemo)(() => {
+function Ei(e) {
+ let { children: t, items: n, idScope: r, addIdAndValue: i, dependencies: a = [] } = e, o = (0, _.useMemo)(() => void 0, [t]), s = (0, _.useMemo)(() => /* @__PURE__ */ new WeakMap(), [...a, o]);
+ return (0, _.useMemo)(() => {
if (n && typeof t == "function") {
let e = [];
for (let a of n) {
- let n = na(a) ? a : null, o = n ? s.get(n) : null;
+ let n = Di(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, v.cloneElement)(o, i ? {
+ o = (0, _.cloneElement)(o, i ? {
key: l,
id: c,
value: a
@@ -12798,7 +12406,7 @@ function ta(e) {
i
]);
}
-function na(e) {
+function Di(e) {
switch (typeof e) {
case "object": return e != null;
case "function":
@@ -12808,8 +12416,8 @@ function na(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/runAfterTransition.mjs
-var ra = /* @__PURE__ */ new Map(), ia = /* @__PURE__ */ new Set();
-function aa() {
+var Oi = /* @__PURE__ */ new Map(), ki = /* @__PURE__ */ new Set();
+function Ai() {
if (typeof window > "u") return;
function e(e) {
return "propertyName" in e;
@@ -12817,48 +12425,48 @@ function aa() {
let t = (t) => {
let r = K(t);
if (!e(t) || !r) return;
- let i = ra.get(r);
- i || (i = /* @__PURE__ */ new Set(), ra.set(r, i), r.addEventListener("transitioncancel", n, { once: !0 })), i.add(t.propertyName);
+ let i = Oi.get(r);
+ i || (i = /* @__PURE__ */ new Set(), Oi.set(r, i), r.addEventListener("transitioncancel", n, { once: !0 })), i.add(t.propertyName);
}, n = (t) => {
let r = K(t);
if (!e(t) || !r) return;
- let i = ra.get(r);
- if (i && (i.delete(t.propertyName), i.size === 0 && (r.removeEventListener("transitioncancel", n), ra.delete(r)), ra.size === 0)) {
- for (let e of ia) e();
- ia.clear();
+ let i = Oi.get(r);
+ if (i && (i.delete(t.propertyName), i.size === 0 && (r.removeEventListener("transitioncancel", n), Oi.delete(r)), Oi.size === 0)) {
+ for (let e of ki) e();
+ ki.clear();
}
};
document.body.addEventListener("transitionrun", t), document.body.addEventListener("transitionend", n);
}
-typeof document < "u" && (document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", aa) : aa());
-function oa() {
- for (let [e] of ra) "isConnected" in e && !e.isConnected && ra.delete(e);
+typeof document < "u" && (document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", Ai) : Ai());
+function ji() {
+ for (let [e] of Oi) "isConnected" in e && !e.isConnected && Oi.delete(e);
}
-function sa(e) {
+function Mi(e) {
requestAnimationFrame(() => {
- oa(), ra.size === 0 ? e() : ia.add(e);
+ ji(), Oi.size === 0 ? e() : ki.add(e);
});
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/focusSafely.mjs
-function ca(e) {
+function Ni(e) {
if (!e.isConnected) return;
let t = W(e);
- if (oi() === "virtual") {
- let n = Xn(t);
- sa(() => {
- let r = Xn(t);
- (r === n || r === t.body) && e.isConnected && rr(e);
+ if (Ar() === "virtual") {
+ let n = bn(t);
+ Mi(() => {
+ let r = bn(t);
+ (r === n || r === t.body) && e.isConnected && Dn(e);
});
- } else rr(e);
+ } else Dn(e);
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useFocus.mjs
-function la(e) {
- let { isDisabled: t, onFocus: n, onBlur: r, onFocusChange: i } = e, a = (0, v.useCallback)((e) => {
+function Pi(e) {
+ let { isDisabled: t, onFocus: n, onBlur: r, onFocusChange: i } = e, a = (0, _.useCallback)((e) => {
if (K(e) === e.currentTarget) return r && r(e), i && i(!1), !0;
- }, [r, i]), o = br(a), s = (0, v.useCallback)((e) => {
- let t = K(e), r = W(t), a = r ? Xn(r) : Xn();
+ }, [r, i]), o = Wn(a), s = (0, _.useCallback)((e) => {
+ let t = K(e), r = W(t), a = r ? bn(r) : bn();
t === e.currentTarget && t === a && (n && n(e), i && i(!0), o(e));
}, [
i,
@@ -12872,7 +12480,7 @@ function la(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/createEventHandler.mjs
-function ua(e) {
+function Fi(e) {
if (e) return (t) => {
let n = !0;
e({
@@ -12897,33 +12505,33 @@ function ua(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/createKeyboardShortcutHandler.mjs
-var da = /* @__PURE__ */ new Set([
+var Ii = /* @__PURE__ */ new Set([
"shift",
"alt",
"control",
"meta",
"mod"
-]), fa = [
+]), Li = [
"Alt",
"Control",
"Meta",
"Shift"
];
-function pa(e) {
+function Ri(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(Er() ? "Meta" : "Control"), t;
+ return e.alt && t.add("Alt"), e.shift && t.add("Shift"), e.ctrl && t.add("Control"), e.meta && t.add("Meta"), e.mod && t.add(Xn() ? "Meta" : "Control"), t;
}
-function ma(e) {
+function zi(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 ha(e) {
- return fa.filter((t) => e.has(t));
+function Bi(e) {
+ return Li.filter((t) => e.has(t));
}
-function ga(e) {
+function Vi(e) {
let t = e.split("+").reduce((e, t) => {
let n = t.toLowerCase();
- return da.has(n) ? n === "shift" ? e.shift = !0 : n === "alt" ? e.alt = !0 : n === "control" ? e.ctrl = !0 : n === "meta" ? e.meta = !0 : n === "mod" && (e.mod = !0) : e.key = t, e;
+ return Ii.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,
@@ -12935,10 +12543,10 @@ function ga(e) {
if (t.key === "") throw Error(`Invalid keyboard shortcut: "${e}". Must include exactly one non-modifier key (e.g. "a", "Enter", "ArrowDown"). Combine any of Shift, Alt, Ctrl, Meta, and Mod.`);
return t;
}
-function _a(e) {
+function Hi(e) {
return e.toLowerCase();
}
-var va = {
+var Ui = {
space: " ",
esc: "escape",
del: "delete",
@@ -12950,26 +12558,26 @@ var va = {
pageup: "pageup",
pagedown: "pagedown"
};
-function ya(e) {
- let t = _a(e);
- return va[t] ?? t;
+function Wi(e) {
+ let t = Hi(e);
+ return Ui[t] ?? t;
}
-function ba(e) {
- let t = ha(pa(e)), n = ya(e.key);
+function Gi(e) {
+ let t = Bi(Ri(e)), n = Wi(e.key);
return t.length > 0 ? `${t.join("+")}+${n}` : n;
}
-function xa(e) {
- let t = ha(ma(e)), n = _a(e.key);
+function Ki(e) {
+ let t = Bi(zi(e)), n = Hi(e.key);
return (t.length > 0 ? `${t.join("+")}+` : "") + n;
}
-function Sa(e) {
+function qi(e) {
let t = /* @__PURE__ */ new Map();
for (let [n, r] of Object.entries(e)) {
- let e = ga(n);
- t.set(ba(e), r);
+ let e = Vi(n);
+ t.set(Gi(e), r);
}
return (e) => {
- let n = xa(e), r = t.get(n), i = r?.(e);
+ let n = Ki(e), r = t.get(n), i = r?.(e);
i === void 0 && r !== void 0 ? i = {
shouldContinuePropagation: !1,
shouldPreventDefault: !0
@@ -12981,10 +12589,10 @@ function Sa(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useKeyboard.mjs
-function Ca(e) {
+function Ji(e) {
let { shortcuts: t, allowRepeats: n = !1, allowComposing: r = !1 } = e, i, a;
if (t) {
- let o = Sa(t), s = ua((e) => {
+ let o = qi(t), s = Fi((e) => {
if (!G(e.currentTarget, K(e))) {
e.continuePropagation();
return;
@@ -12994,7 +12602,7 @@ function Ca(e) {
return;
}
o(e);
- }), c = ua((e) => {
+ }), c = Fi((e) => {
if (!G(e.currentTarget, K(e))) {
e.continuePropagation();
return;
@@ -13005,8 +12613,8 @@ function Ca(e) {
}
e.continuePropagation();
});
- i = e.onKeyDown ? nn(e.onKeyDown, s) : s, a = e.onKeyUp ? nn(e.onKeyUp, c) : c;
- } else i = ua(e.onKeyDown), a = ua(e.onKeyUp);
+ i = e.onKeyDown ? Dt(e.onKeyDown, s) : s, a = e.onKeyUp ? Dt(e.onKeyUp, c) : c;
+ } else i = Fi(e.onKeyDown), a = Fi(e.onKeyUp);
return { keyboardProps: e.isDisabled ? {} : {
onKeyDown: i,
onKeyUp: a
@@ -13014,8 +12622,8 @@ function Ca(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useSyncRef.mjs
-function wa(e, t) {
- H(() => {
+function Yi(e, t) {
+ V(() => {
if (e && e.ref && t) return e.ref.current = t.current, () => {
e.ref && (e.ref.current = null);
};
@@ -13023,17 +12631,17 @@ function wa(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useFocusable.mjs
-var Ta = /*#__PURE__*/ v.createContext(null);
-function Ea(e) {
- let t = (0, v.useContext)(Ta) || {};
- wa(t, e);
+var Xi = /*#__PURE__*/ _.createContext(null);
+function Zi(e) {
+ let t = (0, _.useContext)(Xi) || {};
+ Yi(t, e);
let { ref: n, ...r } = t;
return r;
}
-function Da(e, t) {
- let { focusProps: n } = la(e), { keyboardProps: r } = Ca(e), i = U(n, r), a = Ea(t), o = e.isDisabled ? {} : a, s = (0, v.useRef)(e.autoFocus);
- (0, v.useEffect)(() => {
- s.current && t.current && ca(t.current), s.current = !1;
+function q(e, t) {
+ let { focusProps: n } = Pi(e), { keyboardProps: r } = Ji(e), i = U(n, r), a = Zi(t), o = e.isDisabled ? {} : a, s = (0, _.useRef)(e.autoFocus);
+ (0, _.useEffect)(() => {
+ s.current && t.current && Ni(t.current), s.current = !1;
}, [t]);
let c = e.excludeFromTabOrder ? -1 : 0;
return e.isDisabled && (c = void 0), { focusableProps: U({
@@ -13068,22 +12676,22 @@ typeof HTMLTemplateElement < "u" && (Object.defineProperty(HTMLTemplateElement.p
return this.content.insertBefore(e, t);
}
}));
-var Oa = /*#__PURE__*/ (0, v.createContext)(!1);
-function ka(e) {
- if ((0, v.useContext)(Oa)) return /*#__PURE__*/ v.createElement(v.Fragment, null, e.children);
- let t = /*#__PURE__*/ v.createElement(Oa.Provider, { value: !0 }, e.children);
- return /*#__PURE__*/ v.createElement("template", null, t);
+var Qi = /*#__PURE__*/ (0, _.createContext)(!1);
+function $i(e) {
+ if ((0, _.useContext)(Qi)) return /*#__PURE__*/ _.createElement(_.Fragment, null, e.children);
+ let t = /*#__PURE__*/ _.createElement(Qi.Provider, { value: !0 }, e.children);
+ return /*#__PURE__*/ _.createElement("template", null, t);
}
-function Aa(e) {
- let t = (t, n) => (0, v.useContext)(Oa) ? null : e(t, n);
- return t.displayName = e.displayName || e.name, (0, v.forwardRef)(t);
+function ea(e) {
+ let t = (t, n) => (0, _.useContext)(Qi) ? null : e(t, n);
+ return t.displayName = e.displayName || e.name, (0, _.forwardRef)(t);
}
-function ja() {
- return (0, v.useContext)(Oa);
+function ta() {
+ return (0, _.useContext)(Qi);
}
//#endregion
//#region node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js
-var Ma = /* @__PURE__ */ o(((e) => {
+var na = /* @__PURE__ */ o(((e) => {
var t = f();
function n(e, t) {
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
@@ -13121,48 +12729,48 @@ var Ma = /* @__PURE__ */ o(((e) => {
}
var d = typeof window > "u" || window.document === void 0 || window.document.createElement === void 0 ? u : c;
e.useSyncExternalStore = t.useSyncExternalStore === void 0 ? d : t.useSyncExternalStore;
-})), Na = /* @__PURE__ */ o(((e, t) => {
- t.exports = Ma();
-})), Pa = /* @__PURE__ */ c(m(), 1), Fa = Na(), Ia = /*#__PURE__*/ (0, v.createContext)(!1), La = /*#__PURE__*/ (0, v.createContext)(null);
-function Ra(e) {
- if ((0, v.useContext)(La)) return e.content;
- let { collection: t, document: n } = Ha(e.createCollection);
- return /*#__PURE__*/ v.createElement(v.Fragment, null, /*#__PURE__*/ v.createElement(ka, null, /*#__PURE__*/ v.createElement(La.Provider, { value: n }, e.content)), /*#__PURE__*/ v.createElement(za, {
+})), ra = /* @__PURE__ */ o(((e, t) => {
+ t.exports = na();
+})), ia = /* @__PURE__ */ c(m(), 1), aa = ra(), oa = /*#__PURE__*/ (0, _.createContext)(!1), sa = /*#__PURE__*/ (0, _.createContext)(null);
+function ca(e) {
+ if ((0, _.useContext)(sa)) return e.content;
+ let { collection: t, document: n } = fa(e.createCollection);
+ return /*#__PURE__*/ _.createElement(_.Fragment, null, /*#__PURE__*/ _.createElement($i, null, /*#__PURE__*/ _.createElement(sa.Provider, { value: n }, e.content)), /*#__PURE__*/ _.createElement(la, {
render: e.children,
collection: t
}));
}
-function za({ collection: e, render: t }) {
+function la({ collection: e, render: t }) {
return t(e);
}
-function Ba(e, t, n) {
- let r = hn(), i = (0, v.useRef)(r);
+function ua(e, t, n) {
+ let r = zt(), i = (0, _.useRef)(r);
i.current = r;
- let a = (0, v.useCallback)(() => i.current ? n() : t(), [t, n]);
- return (0, Fa.useSyncExternalStore)(e, a);
+ let a = (0, _.useCallback)(() => i.current ? n() : t(), [t, n]);
+ return (0, aa.useSyncExternalStore)(e, a);
}
-var Va = typeof v.useSyncExternalStore == "function" ? v.useSyncExternalStore : Ba;
-function Ha(e) {
- let [t] = (0, v.useState)(() => new ea(e?.() || new Zi()));
+var da = typeof _.useSyncExternalStore == "function" ? _.useSyncExternalStore : ua;
+function fa(e) {
+ let [t] = (0, _.useState)(() => new Ti(e?.() || new xi()));
return {
- collection: Va((0, v.useCallback)((e) => t.subscribe(e), [t]), (0, v.useCallback)(() => {
+ collection: da((0, _.useCallback)((e) => t.subscribe(e), [t]), (0, _.useCallback)(() => {
let e = t.getCollection();
return t.isSSR && t.resetAfterSSR(), e;
- }, [t]), (0, v.useCallback)(() => (t.isSSR = !0, t.getCollection()), [t])),
+ }, [t]), (0, _.useCallback)(() => (t.isSSR = !0, t.getCollection()), [t])),
document: t
};
}
-var Ua = /*#__PURE__*/ (0, v.createContext)(null);
-function Wa(e) {
- return class extends qi {
+var pa = /*#__PURE__*/ (0, _.createContext)(null);
+function ma(e) {
+ return class extends _i {
static {
this.type = e;
}
};
}
-function Ga(e, t, n, r, i, a) {
- typeof e == "string" && (e = Wa(e));
- let o = (0, v.useCallback)((i) => {
+function ha(e, t, n, r, i, a) {
+ typeof e == "string" && (e = ma(e));
+ let o = (0, _.useCallback)((i) => {
i?.setProps(t, n, e, r, a);
}, [
t,
@@ -13170,72 +12778,72 @@ function Ga(e, t, n, r, i, a) {
r,
a,
e
- ]), s = (0, v.useContext)(Ua);
+ ]), s = (0, _.useContext)(pa);
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__*/ v.createElement(Ua.Provider, { value: o }, i) : null;
+ return o || (o = s.ownerDocument.createElement(e.type), o.setProps(t, n, e, r, a), s.appendChild(o), s.ownerDocument.updateCollection(), s.ownerDocument.nodesByProps.set(t, o)), i ? /*#__PURE__*/ _.createElement(pa.Provider, { value: o }, i) : null;
}
- return /*#__PURE__*/ v.createElement(e.type, { ref: o }, i);
+ return /*#__PURE__*/ _.createElement(e.type, { ref: o }, i);
}
-function Ka(e, t) {
- let n = ({ node: e }) => t(e.props, e.props.ref, e), r = (0, v.forwardRef)((r, i) => {
- let a = (0, v.useContext)(Ta);
- if (!(0, v.useContext)(Ia)) {
+function ga(e, t) {
+ let n = ({ node: e }) => t(e.props, e.props.ref, e), r = (0, _.forwardRef)((r, i) => {
+ let a = (0, _.useContext)(Xi);
+ if (!(0, _.useContext)(oa)) {
if (t.length >= 3) throw Error(t.name + " cannot be rendered outside a collection.");
return t(r, i);
}
- return Ga(e, r, i, "children" in r ? r.children : null, null, (e) => /*#__PURE__*/ v.createElement(Ta.Provider, { value: a }, /*#__PURE__*/ v.createElement(n, { node: e })));
+ return ha(e, r, i, "children" in r ? r.children : null, null, (e) => /*#__PURE__*/ _.createElement(Xi.Provider, { value: a }, /*#__PURE__*/ _.createElement(n, { node: e })));
});
return r.displayName = t.name, r;
}
-function qa(e) {
- return ta({
+function _a(e) {
+ return Ei({
...e,
addIdAndValue: !0
});
}
-var Ja = /*#__PURE__*/ (0, v.createContext)(null);
-function Ya(e) {
- let t = (0, v.useContext)(Ja), n = (t?.dependencies || []).concat(e.dependencies), r = e.idScope ?? t?.idScope, i = qa({
+var va = /*#__PURE__*/ (0, _.createContext)(null);
+function ya(e) {
+ let t = (0, _.useContext)(va), n = (t?.dependencies || []).concat(e.dependencies), r = e.idScope ?? t?.idScope, i = _a({
...e,
idScope: r,
dependencies: n
});
- return (0, v.useContext)(La) && (i = /*#__PURE__*/ v.createElement(Xa, null, i)), t = (0, v.useMemo)(() => ({
+ return (0, _.useContext)(sa) && (i = /*#__PURE__*/ _.createElement(ba, null, i)), t = (0, _.useMemo)(() => ({
dependencies: n,
idScope: r
- }), [r, ...n]), /*#__PURE__*/ v.createElement(Ja.Provider, { value: t }, i);
+ }), [r, ...n]), /*#__PURE__*/ _.createElement(va.Provider, { value: t }, i);
}
-function Xa({ children: e }) {
- let t = (0, v.useContext)(La), n = (0, v.useMemo)(() => /*#__PURE__*/ v.createElement(La.Provider, { value: null }, /*#__PURE__*/ v.createElement(Ia.Provider, { value: !0 }, e)), [e]);
- return hn() ? /*#__PURE__*/ v.createElement(Ua.Provider, { value: t }, n) : /*#__PURE__*/ (0, Pa.createPortal)(n, t);
+function ba({ children: e }) {
+ let t = (0, _.useContext)(sa), n = (0, _.useMemo)(() => /*#__PURE__*/ _.createElement(sa.Provider, { value: null }, /*#__PURE__*/ _.createElement(oa.Provider, { value: !0 }, e)), [e]);
+ return zt() ? /*#__PURE__*/ _.createElement(pa.Provider, { value: t }, n) : /*#__PURE__*/ (0, ia.createPortal)(n, t);
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Collection.mjs
-var Za = /*#__PURE__*/ (0, v.createContext)(null), Qa = {
+var xa = /*#__PURE__*/ (0, _.createContext)(null), Sa = {
CollectionRoot({ collection: e, renderDropIndicator: t }) {
- return $a(e, null, t);
+ return Ca(e, null, t);
},
CollectionBranch({ collection: e, parent: t, renderDropIndicator: n }) {
- return $a(e, t, n);
+ return Ca(e, t, n);
}
};
-function $a(e, t, n) {
- return ta({
+function Ca(e, t, n) {
+ return Ei({
items: t ? e.getChildren(t.key) : e,
dependencies: [n],
children(t) {
- if (t.type === "content") return /*#__PURE__*/ v.createElement(v.Fragment, null);
+ if (t.type === "content") return /*#__PURE__*/ _.createElement(_.Fragment, null);
let r = t.render(t);
- return !n || t.type !== "item" ? r : /*#__PURE__*/ v.createElement(v.Fragment, null, n({
+ return !n || t.type !== "item" ? r : /*#__PURE__*/ _.createElement(_.Fragment, null, n({
type: "item",
key: t.key,
dropPosition: "before"
- }), r, eo(e, t, n));
+ }), r, wa(e, t, n));
}
});
}
-function eo(e, t, n) {
+function wa(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);
@@ -13249,17 +12857,17 @@ function eo(e, t, n) {
key: r.key,
dropPosition: "after"
});
- /*#__PURE__*/ (0, v.isValidElement)(t) && s.push(/*#__PURE__*/ (0, v.cloneElement)(t, { key: `${r.key}-after` })), r = r.parentKey == null ? null : e.getItem(r.parentKey);
+ /*#__PURE__*/ (0, _.isValidElement)(t) && s.push(/*#__PURE__*/ (0, _.cloneElement)(t, { key: `${r.key}-after` })), r = r.parentKey == null ? null : e.getItem(r.parentKey);
}
}
return s;
}
-var to = /*#__PURE__*/ (0, v.createContext)(Qa), no = /* @__PURE__ */ new Set(["id"]), ro = /* @__PURE__ */ new Set([
+var Ta = /*#__PURE__*/ (0, _.createContext)(Sa), Ea = /* @__PURE__ */ new Set(["id"]), Da = /* @__PURE__ */ new Set([
"aria-label",
"aria-labelledby",
"aria-describedby",
"aria-details"
-]), io = /* @__PURE__ */ new Set([
+]), Oa = /* @__PURE__ */ new Set([
"href",
"hrefLang",
"target",
@@ -13267,72 +12875,72 @@ var to = /*#__PURE__*/ (0, v.createContext)(Qa), no = /* @__PURE__ */ new Set(["
"download",
"ping",
"referrerPolicy"
-]), ao = /* @__PURE__ */ new Set([
+]), ka = /* @__PURE__ */ new Set([
"dir",
"lang",
"hidden",
"inert",
"translate"
-]), oo = /* @__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(".")), so = /^(data-.*)$/;
-function co(e, t = {}) {
+]), Aa = /* @__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(".")), ja = /^(data-.*)$/;
+function Ma(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) && (no.has(t) || n && ro.has(t) || r && io.has(t) || i && ao.has(t) || a && (oo.has(t) || t.endsWith("Capture") && oo.has(t.slice(0, -7))) || o?.has(t) || so.test(t)) && (s[t] = e[t]);
+ for (let t in e) Object.prototype.hasOwnProperty.call(e, t) && (Ea.has(t) || n && Da.has(t) || r && Oa.has(t) || i && ka.has(t) || a && (Aa.has(t) || t.endsWith("Capture") && Aa.has(t.slice(0, -7))) || o?.has(t) || ja.test(t)) && (s[t] = e[t]);
return s;
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/textSelection.mjs
-var lo = "default", uo = "", fo = /* @__PURE__ */ new WeakMap();
-function po(e) {
- if (kr() && jr()) {
- if (lo === "default") {
+var Na = "default", Pa = "", Fa = /* @__PURE__ */ new WeakMap();
+function Ia(e) {
+ if ($n() && tr()) {
+ if (Na === "default") {
let t = W(e);
- uo = t.documentElement.style.webkitUserSelect, t.documentElement.style.webkitUserSelect = "none";
+ Pa = t.documentElement.style.webkitUserSelect, t.documentElement.style.webkitUserSelect = "none";
}
- lo = "disabled";
+ Na = "disabled";
} else if (e instanceof HTMLElement || e instanceof SVGElement) {
let t = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
- fo.set(e, e.style[t]), e.style[t] = "none";
+ Fa.set(e, e.style[t]), e.style[t] = "none";
}
}
-function mo(e) {
- if (kr() && jr()) {
- if (lo !== "disabled") return;
- lo = "restoring", setTimeout(() => {
- sa(() => {
- if (lo === "restoring") {
+function La(e) {
+ if ($n() && tr()) {
+ if (Na !== "disabled") return;
+ Na = "restoring", setTimeout(() => {
+ Mi(() => {
+ if (Na === "restoring") {
let t = W(e);
- t.documentElement.style.webkitUserSelect === "none" && (t.documentElement.style.webkitUserSelect = uo || ""), uo = "", lo = "default";
+ t.documentElement.style.webkitUserSelect === "none" && (t.documentElement.style.webkitUserSelect = Pa || ""), Pa = "", Na = "default";
}
});
}, 300);
- } else if ((e instanceof HTMLElement || e instanceof SVGElement) && e && fo.has(e)) {
- let t = fo.get(e), n = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
- e.style[n] === "none" && (e.style[n] = t), e.getAttribute("style") === "" && e.removeAttribute("style"), fo.delete(e);
+ } else if ((e instanceof HTMLElement || e instanceof SVGElement) && e && Fa.has(e)) {
+ let t = Fa.get(e), n = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
+ e.style[n] === "none" && (e.style[n] = t), e.getAttribute("style") === "" && e.removeAttribute("style"), Fa.delete(e);
}
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/getMetaValue.mjs
-function ho(e, t) {
- let n = Vn(t), r = W(t);
+function Ra(e, t) {
+ let n = dn(t), r = W(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 go = /* @__PURE__ */ new WeakMap();
-function _o(e) {
- let t = W(e), n = go.get(t);
- return n ??= ho("csp-nonce", t), n !== void 0 && go.set(t, n), n;
+var za = /* @__PURE__ */ new WeakMap();
+function Ba(e) {
+ let t = W(e), n = za.get(t);
+ return n ??= Ra("csp-nonce", t), n !== void 0 && za.set(t, n), n;
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/context.mjs
-var vo = v.createContext({ register: () => {} });
-vo.displayName = "PressResponderContext";
+var Va = _.createContext({ register: () => {} });
+Va.displayName = "PressResponderContext";
//#endregion
//#region node_modules/react-aria/dist/private/utils/useGlobalListeners.mjs
-function yo() {
- let e = (0, v.useRef)(/* @__PURE__ */ new Map()), t = (0, v.useCallback)((t, n, r, i) => {
+function Ha() {
+ let e = (0, _.useRef)(/* @__PURE__ */ new Map()), t = (0, _.useCallback)((t, n, r, i) => {
let a = i?.once ? (...t) => {
e.current.delete(r), r(...t);
} : r;
@@ -13342,15 +12950,15 @@ function yo() {
fn: a,
options: i
}), t.addEventListener(n, a, i);
- }, []), n = (0, v.useCallback)((t, n, r, i) => {
+ }, []), n = (0, _.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)(() => {
+ }, []), r = (0, _.useCallback)(() => {
e.current.forEach((e, t) => {
n(e.eventTarget, e.type, t, e.options);
});
}, [n]);
- return (0, v.useEffect)(() => r, [r]), {
+ return (0, _.useEffect)(() => r, [r]), {
addGlobalListener: t,
removeGlobalListener: n,
removeAllGlobalListeners: r
@@ -13358,15 +12966,15 @@ function yo() {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/usePress.mjs
-function bo(e) {
- let t = (0, v.useContext)(vo);
+function Ua(e) {
+ let t = (0, _.useContext)(Va);
if (t) {
let { register: n, ref: r, ...i } = t;
e = U(i, e), n();
}
- return wa(t, e.ref), e;
+ return Yi(t, e.ref), e;
}
-var xo = class {
+var Wa = class {
#e;
constructor(e, t, n, r) {
this.#e = !0;
@@ -13379,9 +12987,9 @@ var xo = class {
get shouldStopPropagation() {
return this.#e;
}
-}, So = Symbol("linkClicked"), Co = "react-aria-pressable-style", wo = "data-react-aria-pressable";
-function To(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 } = bo(e), [m, h] = (0, v.useState)(!1), g = (0, v.useRef)({
+}, Ga = Symbol("linkClicked"), Ka = "react-aria-pressable-style", qa = "data-react-aria-pressable";
+function Ja(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 } = Ua(e), [m, h] = (0, _.useState)(!1), g = (0, _.useRef)({
isPressed: !1,
ignoreEmulatedMouseEvents: !1,
didFirePressStart: !1,
@@ -13391,12 +12999,12 @@ function To(e) {
isOverTarget: !1,
pointerType: null,
disposables: []
- }), { addGlobalListener: _, removeAllGlobalListeners: y } = yo(), b = (0, v.useCallback)((e, t) => {
+ }), { addGlobalListener: v, removeAllGlobalListeners: y } = Ha(), b = (0, _.useCallback)((e, t) => {
let i = g.current;
if (s || i.didFirePressStart) return !1;
let a = !0;
if (i.isTriggeringEvent = !0, r) {
- let n = new xo("pressstart", t, e);
+ let n = new Wa("pressstart", t, e);
r(n), a = n.shouldStopPropagation;
}
return n && n(!0), i.isTriggeringEvent = !1, i.didFirePressStart = !0, h(!0), a;
@@ -13404,17 +13012,17 @@ function To(e) {
s,
r,
n
- ]), x = (0, v.useCallback)((e, r, a = !0) => {
+ ]), x = (0, _.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 xo("pressend", r, e);
+ let t = new Wa("pressend", r, e);
i(t), c = t.shouldStopPropagation;
}
if (n && n(!1), h(!1), t && a && !s) {
- let n = new xo("press", r, e);
+ let n = new Wa("press", r, e);
t(n), c &&= n.shouldStopPropagation;
}
return o.isTriggeringEvent = !1, c;
@@ -13423,19 +13031,19 @@ function To(e) {
i,
n,
t
- ]), S = hi(x), C = hi((0, v.useCallback)((e, t) => {
+ ]), S = zr(x), C = zr((0, _.useCallback)((e, t) => {
let n = g.current;
if (s) return !1;
if (a) {
n.isTriggeringEvent = !0;
- let r = new xo("pressup", t, e);
+ let r = new Wa("pressup", t, e);
return a(r), n.isTriggeringEvent = !1, r.shouldStopPropagation;
}
return !0;
- }, [s, a])), w = (0, v.useCallback)((e) => {
+ }, [s, a])), w = (0, _.useCallback)((e) => {
let t = g.current;
if (t.isPressed && t.target) {
- t.didFirePressStart && t.pointerType != null && x(Oo(t.target, e), t.pointerType, !1), t.isPressed = !1, t.isOverTarget = !1, t.activePointerId = null, t.pointerType = null, y(), d || mo(t.target);
+ t.didFirePressStart && t.pointerType != null && x(Za(t.target, e), t.pointerType, !1), t.isPressed = !1, t.isOverTarget = !1, t.activePointerId = null, t.pointerType = null, y(), d || La(t.target);
for (let e of t.disposables) e();
t.disposables = [];
}
@@ -13443,8 +13051,8 @@ function To(e) {
d,
y,
x
- ]), T = hi(w);
- (0, v.useEffect)(() => {
+ ]), T = zr(w);
+ (0, _.useEffect)(() => {
s && g.current.isPressed && T({
currentTarget: g.current.target,
shiftKey: !1,
@@ -13453,46 +13061,46 @@ function To(e) {
altKey: !1
});
}, [s]);
- let E = (0, v.useCallback)((e) => {
+ let E = (0, _.useCallback)((e) => {
u && w(e);
- }, [u, w]), D = (0, v.useCallback)((e) => {
+ }, [u, w]), D = (0, _.useCallback)((e) => {
s || o?.(e);
- }, [s, o]), O = (0, v.useCallback)((e, t) => {
+ }, [s, o]), O = (0, _.useCallback)((e, t) => {
if (!s && o) {
let n = new MouseEvent("click", e);
- yr(n, t), o(vr(n));
+ Un(n, t), o(Hn(n));
}
- }, [s, o]), k = (0, v.useMemo)(() => {
+ }, [s, o]), k = (0, _.useMemo)(() => {
let e = g.current, t = {
onKeyDown(t) {
- if (Do(t.nativeEvent, t.currentTarget) && G(t.currentTarget, K(t))) {
- Ao(K(t), t.key) && t.preventDefault();
+ if (Xa(t.nativeEvent, t.currentTarget) && G(t.currentTarget, K(t))) {
+ $a(K(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;
- _(W(t.currentTarget), "keyup", nn((t) => {
- Do(t, i) && !t.repeat && G(i, K(t)) && e.target && C(Oo(e.target, t), "keyboard");
- }, n), !0), r && t.stopPropagation(), t.metaKey && Er() && e.metaKeyEvents?.set(t.key, t.nativeEvent);
+ v(W(t.currentTarget), "keyup", Dt((t) => {
+ Xa(t, i) && !t.repeat && G(i, K(t)) && e.target && C(Za(e.target, t), "keyboard");
+ }, n), !0), r && t.stopPropagation(), t.metaKey && Xn() && e.metaKeyEvents?.set(t.key, t.nativeEvent);
} else t.key === "Meta" && (e.metaKeyEvents = /* @__PURE__ */ new Map());
},
onClick(t) {
- if (!(t && !G(t.currentTarget, K(t))) && t && t.button === 0 && !e.isTriggeringEvent && !zr.isOpening) {
+ if (!(t && !G(t.currentTarget, K(t))) && t && t.button === 0 && !e.isTriggeringEvent && !lr.isOpening) {
let n = !0;
- if (s && t.preventDefault(), !e.ignoreEmulatedMouseEvents && !e.isPressed && (e.pointerType === "virtual" || Fr(t.nativeEvent))) {
+ if (s && t.preventDefault(), !e.ignoreEmulatedMouseEvents && !e.isPressed && (e.pointerType === "virtual" || ar(t.nativeEvent))) {
let e = b(t, "virtual"), r = C(t, "virtual"), i = S(t, "virtual");
D(t), n = e && r && i;
} else if (e.isPressed && e.pointerType !== "keyboard") {
- let r = e.pointerType || t.nativeEvent.pointerType || "virtual", i = C(Oo(t.currentTarget, t), r), a = S(Oo(t.currentTarget, t), r, !0);
+ let r = e.pointerType || t.nativeEvent.pointerType || "virtual", i = C(Za(t.currentTarget, t), r), a = S(Za(t.currentTarget, t), r, !0);
n = i && a, e.isOverTarget = !1, D(t), T(t);
}
e.ignoreEmulatedMouseEvents = !1, n && t.stopPropagation();
}
}
}, n = (t) => {
- if (e.isPressed && e.target && Do(t, e.target)) {
- Ao(K(t), t.key) && t.preventDefault();
+ if (e.isPressed && e.target && Xa(t, e.target)) {
+ $a(K(t), t.key) && t.preventDefault();
let n = K(t), r = G(e.target, n);
- S(Oo(e.target, t), "keyboard", r), r && O(t, e.target), y(), t.key !== "Enter" && Eo(e.target) && G(e.target, n) && !t[So] && (t[So] = !0, zr(e.target, t, !1)), e.isPressed = !1, e.metaKeyEvents?.delete(t.key);
+ S(Za(e.target, t), "keyboard", r), r && O(t, e.target), y(), t.key !== "Enter" && Ya(e.target) && G(e.target, n) && !t[Ga] && (t[Ga] = !0, lr(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;
@@ -13502,22 +13110,22 @@ function To(e) {
if (typeof PointerEvent < "u") {
t.onPointerDown = (t) => {
if (t.button !== 0 || !G(t.currentTarget, K(t))) return;
- if (Ir(t.nativeEvent)) {
+ if (or(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 || po(e.target), i = b(t, e.pointerType);
+ e.isPressed = !0, e.isOverTarget = !0, e.activePointerId = t.pointerId, e.target = t.currentTarget, d || Ia(e.target), i = b(t, e.pointerType);
let a = K(t);
- "releasePointerCapture" in a && ("hasPointerCapture" in a ? a.hasPointerCapture(t.pointerId) && a.releasePointerCapture(t.pointerId) : a.releasePointerCapture(t.pointerId)), _(W(t.currentTarget), "pointerup", n, !1), _(W(t.currentTarget), "pointercancel", r, !1);
+ "releasePointerCapture" in a && ("hasPointerCapture" in a ? a.hasPointerCapture(t.pointerId) && a.releasePointerCapture(t.pointerId) : a.releasePointerCapture(t.pointerId)), v(W(t.currentTarget), "pointerup", n, !1), v(W(t.currentTarget), "pointercancel", r, !1);
}
i && t.stopPropagation();
}, t.onMouseDown = (t) => {
if (G(t.currentTarget, K(t)) && t.button === 0) {
if (l) {
- let n = Sr(t.target);
+ let n = Kn(t.target);
n && e.disposables.push(n);
}
t.stopPropagation();
@@ -13525,17 +13133,17 @@ function To(e) {
}, t.onPointerUp = (t) => {
!G(t.currentTarget, K(t)) || e.pointerType === "virtual" || t.button === 0 && !e.isPressed && C(t, e.pointerType || t.pointerType);
}, t.onPointerEnter = (t) => {
- t.pointerId === e.activePointerId && e.target && !e.isOverTarget && e.pointerType != null && (e.isOverTarget = !0, b(Oo(e.target, t), e.pointerType));
+ t.pointerId === e.activePointerId && e.target && !e.isOverTarget && e.pointerType != null && (e.isOverTarget = !0, b(Za(e.target, t), e.pointerType));
}, t.onPointerLeave = (t) => {
- t.pointerId === e.activePointerId && e.target && e.isOverTarget && e.pointerType != null && (e.isOverTarget = !1, S(Oo(e.target, t), e.pointerType, !1), E(t));
+ t.pointerId === e.activePointerId && e.target && e.isOverTarget && e.pointerType != null && (e.isOverTarget = !1, S(Za(e.target, t), e.pointerType, !1), E(t));
};
let n = (t) => {
if (t.pointerId === e.activePointerId && e.isPressed && t.button === 0 && e.target) {
if (G(e.target, K(t)) && e.pointerType != null) {
let n = !1, r = setTimeout(() => {
- e.isPressed && e.target instanceof HTMLElement && (n ? T(t) : (rr(e.target), e.target.click()));
+ e.isPressed && e.target instanceof HTMLElement && (n ? T(t) : (Dn(e.target), e.target.click()));
}, 80);
- _(t.currentTarget, "click", () => n = !0, !0), e.disposables.push(() => clearTimeout(r));
+ v(t.currentTarget, "click", () => n = !0, !0), e.disposables.push(() => clearTimeout(r));
} else T(t);
e.isOverTarget = !1;
}
@@ -13548,7 +13156,7 @@ function To(e) {
}
return t;
}, [
- _,
+ v,
s,
l,
y,
@@ -13558,40 +13166,40 @@ function To(e) {
D,
O
]);
- return (0, v.useEffect)(() => {
+ return (0, _.useEffect)(() => {
if (!f) return;
let e = W(f.current);
- if (!e || !e.head || e.getElementById(Co)) return;
+ if (!e || !e.head || e.getElementById(Ka)) return;
let t = e.createElement("style");
- t.id = Co;
- let n = _o(e);
+ t.id = Ka;
+ let n = Ba(e);
n && (t.nonce = n), t.textContent = `
@layer {
- [${wo}] {
+ [${qa}] {
touch-action: pan-x pan-y pinch-zoom;
}
}
`.trim(), e.head.prepend(t);
- }, [f]), (0, v.useEffect)(() => {
+ }, [f]), (0, _.useEffect)(() => {
let e = g.current;
return () => {
- d || mo(e.target ?? void 0);
+ d || La(e.target ?? void 0);
for (let t of e.disposables) t();
e.disposables = [];
};
}, [d]), {
isPressed: c || m,
- pressProps: U(p, k, { [wo]: !0 })
+ pressProps: U(p, k, { [qa]: !0 })
};
}
-function Eo(e) {
+function Ya(e) {
return e.tagName === "A" && e.hasAttribute("href");
}
-function Do(e, t) {
+function Xa(e, t) {
let { key: n, code: r } = e, i = t, a = i.getAttribute("role");
- return (n === "Enter" || n === " " || n === "Spacebar" || r === "Space") && !(i instanceof Vn(i).HTMLInputElement && !Mo(i, n) || i instanceof Vn(i).HTMLTextAreaElement || i.isContentEditable) && !((a === "link" || !a && Eo(i)) && n !== "Enter");
+ return (n === "Enter" || n === " " || n === "Spacebar" || r === "Space") && !(i instanceof dn(i).HTMLInputElement && !to(i, n) || i instanceof dn(i).HTMLTextAreaElement || i.isContentEditable) && !((a === "link" || !a && Ya(i)) && n !== "Enter");
}
-function Oo(e, t) {
+function Za(e, t) {
let n = t.clientX, r = t.clientY;
return {
currentTarget: e,
@@ -13604,13 +13212,13 @@ function Oo(e, t) {
key: t.key
};
}
-function ko(e) {
- return e instanceof HTMLInputElement ? !1 : e instanceof HTMLButtonElement ? e.type !== "submit" && e.type !== "reset" : !Eo(e);
+function Qa(e) {
+ return e instanceof HTMLInputElement ? !1 : e instanceof HTMLButtonElement ? e.type !== "submit" && e.type !== "reset" : !Ya(e);
}
-function Ao(e, t) {
- return Er() && t === "Enter" ? !1 : e instanceof HTMLInputElement ? t === "Enter" && (e.type === "checkbox" || e.type === "radio") ? !1 : !Mo(e, t) : ko(e);
+function $a(e, t) {
+ return Xn() && t === "Enter" ? !1 : e instanceof HTMLInputElement ? t === "Enter" && (e.type === "checkbox" || e.type === "radio") ? !1 : !to(e, t) : Qa(e);
}
-var jo = /* @__PURE__ */ new Set([
+var eo = /* @__PURE__ */ new Set([
"checkbox",
"radio",
"range",
@@ -13621,22 +13229,22 @@ var jo = /* @__PURE__ */ new Set([
"submit",
"reset"
]);
-function Mo(e, t) {
- return e.type === "checkbox" || e.type === "radio" ? t === " " : jo.has(e.type);
+function to(e, t) {
+ return e.type === "checkbox" || e.type === "radio" ? t === " " : eo.has(e.type);
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useFocusWithin.mjs
-function No(e) {
- let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: i } = e, a = (0, v.useRef)({ isFocusWithin: !1 }), { addGlobalListener: o, removeAllGlobalListeners: s } = yo(), c = (0, v.useCallback)((e) => {
+function no(e) {
+ let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: i } = e, a = (0, _.useRef)({ isFocusWithin: !1 }), { addGlobalListener: o, removeAllGlobalListeners: s } = Ha(), c = (0, _.useCallback)((e) => {
G(e.currentTarget, K(e)) && a.current.isFocusWithin && !G(e.currentTarget, e.relatedTarget) && (a.current.isFocusWithin = !1, s(), n && n(e), i && i(!1));
}, [
n,
i,
a,
s
- ]), l = br(c), u = (0, v.useCallback)((e) => {
+ ]), l = Wn(c), u = (0, _.useCallback)((e) => {
if (!G(e.currentTarget, K(e))) return;
- let t = K(e), n = W(t), s = Xn(n);
+ let t = K(e), n = W(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;
@@ -13644,8 +13252,8 @@ function No(e) {
let r = K(e);
if (a.current.isFocusWithin && !G(t, r)) {
let e = new n.defaultView.FocusEvent("blur", { relatedTarget: r });
- yr(e, t);
- let i = vr(e);
+ Un(e, t);
+ let i = Hn(e);
c(i);
}
}, { capture: !0 });
@@ -13667,23 +13275,23 @@ function No(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/focus/useFocusRing.mjs
-function Po(e = {}) {
- let { autoFocus: t = !1, isTextInput: n, within: r } = e, i = (0, v.useRef)({
+function ro(e = {}) {
+ let { autoFocus: t = !1, isTextInput: n, within: r } = e, i = (0, _.useRef)({
isFocused: !1,
- isFocusVisible: t || ai()
- }), [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 = ai(), o(e), l();
+ isFocusVisible: t || kr()
+ }), [a, o] = (0, _.useState)(!1), [s, c] = (0, _.useState)(() => i.current.isFocused && i.current.isFocusVisible), l = (0, _.useCallback)(() => c(i.current.isFocused && i.current.isFocusVisible), []), u = (0, _.useCallback)((e) => {
+ i.current.isFocused = e, i.current.isFocusVisible = kr(), o(e), l();
}, [l]);
- ui((e) => {
+ Pr((e) => {
i.current.isFocusVisible = e, l();
}, [n, a], {
enabled: a,
isTextInput: n
});
- let { focusProps: d } = la({
+ let { focusProps: d } = Pi({
isDisabled: r,
onFocusChange: u
- }), { focusWithinProps: f } = No({
+ }), { focusWithinProps: f } = no({
isDisabled: !r,
onFocusWithinChange: u
});
@@ -13695,30 +13303,30 @@ function Po(e = {}) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useHover.mjs
-var Fo = !1, J = 0;
-function Io() {
- Fo = !0, setTimeout(() => {
- Fo = !1;
+var io = !1, ao = 0;
+function oo() {
+ io = !0, setTimeout(() => {
+ io = !1;
}, 500);
}
-function Lo(e) {
- e.pointerType === "touch" && Io();
+function so(e) {
+ e.pointerType === "touch" && oo();
}
-function Ro() {
+function co() {
let e = W(null);
- if (e !== void 0) return J === 0 && typeof PointerEvent < "u" && e.addEventListener("pointerup", Lo), J++, () => {
- J--, !(J > 0) && typeof PointerEvent < "u" && e.removeEventListener("pointerup", Lo);
+ if (e !== void 0) return ao === 0 && typeof PointerEvent < "u" && e.addEventListener("pointerup", so), ao++, () => {
+ ao--, !(ao > 0) && typeof PointerEvent < "u" && e.removeEventListener("pointerup", so);
};
}
-function zo(e) {
- let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, isDisabled: i } = e, [a, o] = (0, v.useState)(!1), s = (0, v.useRef)({
+function lo(e) {
+ let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, isDisabled: i } = e, [a, o] = (0, _.useState)(!1), s = (0, _.useRef)({
isHovered: !1,
ignoreEmulatedMouseEvents: !1,
pointerType: "",
target: null
}).current;
- (0, v.useEffect)(Ro, []);
- let { addGlobalListener: c, removeAllGlobalListeners: l } = yo(), { hoverProps: u, triggerHoverEnd: d } = (0, v.useMemo)(() => {
+ (0, _.useEffect)(co, []);
+ let { addGlobalListener: c, removeAllGlobalListeners: l } = Ha(), { hoverProps: u, triggerHoverEnd: d } = (0, _.useMemo)(() => {
let e = (e, r) => {
if (s.pointerType = r, i || r === "touch" || s.isHovered || !G(e.currentTarget, K(e))) return;
s.isHovered = !0;
@@ -13739,7 +13347,7 @@ function zo(e) {
}), n && n(!1), o(!1));
}, u = {};
return typeof PointerEvent < "u" && (u.onPointerEnter = (t) => {
- Fo && t.pointerType === "mouse" || e(t, t.pointerType);
+ io && t.pointerType === "mouse" || e(t, t.pointerType);
}, u.onPointerLeave = (e) => {
!i && G(e.currentTarget, K(e)) && a(e, e.pointerType);
}), {
@@ -13755,7 +13363,7 @@ function zo(e) {
c,
l
]);
- return (0, v.useEffect)(() => {
+ return (0, _.useEffect)(() => {
i && d({ currentTarget: s.target }, s.pointerType);
}, [i]), {
hoverProps: u,
@@ -13764,10 +13372,10 @@ function zo(e) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Label.mjs
-var Bo = /*#__PURE__*/ (0, v.createContext)({}), Vo = /*#__PURE__*/ Aa(function(e, t) {
- [e, t] = Nn(e, t, Bo);
- let { elementType: n = "label", ...r } = e, i = Rn[n];
- return /*#__PURE__*/ v.createElement(i, {
+var uo = /*#__PURE__*/ (0, _.createContext)({}), fo = /*#__PURE__*/ ea(function(e, t) {
+ [e, t] = nn(e, t, uo);
+ let { elementType: n = "label", ...r } = e, i = cn[n];
+ return /*#__PURE__*/ _.createElement(i, {
className: "react-aria-Label",
...r,
ref: t
@@ -13775,15 +13383,15 @@ var Bo = /*#__PURE__*/ (0, v.createContext)({}), Vo = /*#__PURE__*/ Aa(function(
});
//#endregion
//#region node_modules/react-aria/dist/private/label/useLabel.mjs
-function Ho(e) {
+function po(e) {
let { id: t, label: n, "aria-labelledby": r, "aria-label": i, labelElementType: a = "label" } = e;
- t = xn(t);
- let o = xn(), s = {};
+ t = Wt(t);
+ let o = Wt(), s = {};
n && (r = r ? `${o} ${r}` : o, s = {
id: o,
htmlFor: a === "label" ? t : void 0
});
- let c = _i({
+ let c = Vr({
id: t,
"aria-label": i,
"aria-labelledby": r
@@ -13795,18 +13403,18 @@ function Ho(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/utils/number.mjs
-function Uo(e, t = -Infinity, n = Infinity) {
+function mo(e, t = -Infinity, n = Infinity) {
return Math.min(Math.max(e, t), n);
}
//#endregion
//#region node_modules/react-aria-components/dist/private/ProgressBar.mjs
-var Wo = /*#__PURE__*/ (0, v.createContext)(null), Go = 7e3, Ko = null;
-function qo(e, t = "assertive", n = Go) {
- Ko ? Ko.announce(e, t, n) : (Ko = new Jo(), (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") ? Ko.announce(e, t, n) : setTimeout(() => {
- Ko?.isAttached() && Ko?.announce(e, t, n);
+var ho = /*#__PURE__*/ (0, _.createContext)(null), go = 7e3, _o = null;
+function vo(e, t = "assertive", n = go) {
+ _o ? _o.announce(e, t, n) : (_o = new yo(), (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") ? _o.announce(e, t, n) : setTimeout(() => {
+ _o?.isAttached() && _o?.announce(e, t, n);
}, 100));
}
-var Jo = class {
+var yo = 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,
@@ -13831,7 +13439,7 @@ var Jo = class {
destroy() {
this.node &&= (document.body.removeChild(this.node), null);
}
- announce(e, t = "assertive", n = Go) {
+ announce(e, t = "assertive", n = go) {
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(() => {
@@ -13844,7 +13452,7 @@ var Jo = class {
};
//#endregion
//#region node_modules/react-aria/dist/private/button/useButton.mjs
-function Yo(e, t) {
+function bo(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,
@@ -13866,7 +13474,7 @@ function Yo(e, t) {
"aria-disabled": !r || n === "input" ? void 0 : r,
rel: n === "a" ? m : void 0
};
- let { pressProps: _, isPressed: v } = To({
+ let { pressProps: _, isPressed: v } = Ja({
onPressStart: a,
onPressEnd: o,
onPressChange: c,
@@ -13876,9 +13484,9 @@ function Yo(e, t) {
isDisabled: r,
preventFocusOnPress: l,
ref: t
- }), { focusableProps: y } = Da(e, t);
+ }), { focusableProps: y } = q(e, t);
u && (y.tabIndex = r ? -1 : y.tabIndex);
- let b = U(y, _, co(e, { labelable: !0 }));
+ let b = U(y, _, Ma(e, { labelable: !0 }));
return {
isPressed: v,
buttonProps: U(g, b, {
@@ -13893,11 +13501,11 @@ function Yo(e, t) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Button.mjs
-var Xo = /*#__PURE__*/ (0, v.createContext)({}), Zo = /*#__PURE__*/ Aa(function(e, t) {
- [e, t] = Nn(e, t, Xo);
- let n = e, { isPending: r } = n, { buttonProps: i, isPressed: a } = Yo(e, t);
- i = $o(i, r);
- let { focusProps: o, isFocused: s, isFocusVisible: c } = Po(e), { hoverProps: l, isHovered: u } = zo({
+var xo = /*#__PURE__*/ (0, _.createContext)({}), So = /*#__PURE__*/ ea(function(e, t) {
+ [e, t] = nn(e, t, xo);
+ let n = e, { isPending: r } = n, { buttonProps: i, isPressed: a } = bo(e, t);
+ i = wo(i, r);
+ let { focusProps: o, isFocused: s, isFocusVisible: c } = ro(e), { hoverProps: l, isHovered: u } = lo({
...e,
isDisabled: e.isDisabled || r
}), d = {
@@ -13907,25 +13515,25 @@ var Xo = /*#__PURE__*/ (0, v.createContext)({}), Zo = /*#__PURE__*/ Aa(function(
isFocusVisible: c,
isDisabled: e.isDisabled || !1,
isPending: r ?? !1
- }, f = jn({
+ }, f = en({
...e,
values: d,
defaultClassName: "react-aria-Button"
- }), p = xn(i.id), m = xn(), h = i["aria-labelledby"];
+ }), p = Wt(i.id), m = Wt(), h = i["aria-labelledby"];
r && (h ? h = `${h} ${m}` : i["aria-label"] && (h = `${p} ${m}`));
- let g = (0, v.useRef)(r);
- (0, v.useEffect)(() => {
+ let g = (0, _.useRef)(r);
+ (0, _.useEffect)(() => {
let e = { "aria-labelledby": h || p };
- (!g.current && s && r || g.current && s && !r) && qo(e, "assertive"), g.current = r;
+ (!g.current && s && r || g.current && s && !r) && vo(e, "assertive"), g.current = r;
}, [
r,
s,
h,
p
]);
- let _ = co(e, { global: !0 });
- return delete _.onClick, /*#__PURE__*/ v.createElement(Rn.button, {
- ...U(_, f, i, o, l),
+ let v = Ma(e, { global: !0 });
+ return delete v.onClick, /*#__PURE__*/ _.createElement(cn.button, {
+ ...U(v, f, i, o, l),
type: i.type === "submit" && r ? "button" : i.type,
id: p,
ref: t,
@@ -13938,21 +13546,21 @@ var Xo = /*#__PURE__*/ (0, v.createContext)({}), Zo = /*#__PURE__*/ Aa(function(
"data-focused": s || void 0,
"data-pending": r || void 0,
"data-focus-visible": c || void 0
- }, /*#__PURE__*/ v.createElement(Wo.Provider, { value: { id: m } }, f.children));
-}), Qo = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;
-function $o(e, t) {
+ }, /*#__PURE__*/ _.createElement(ho.Provider, { value: { id: m } }, f.children));
+}), Co = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;
+function wo(e, t) {
if (t) {
- for (let t in e) t.startsWith("on") && !Qo.test(t) && (e[t] = void 0);
+ for (let t in e) t.startsWith("on") && !Co.test(t) && (e[t] = void 0);
e.href = void 0, e.target = void 0;
}
return e;
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Text.mjs
-var es = /*#__PURE__*/ (0, v.createContext)({}), ts = /*#__PURE__*/ Aa(function(e, t) {
- [e, t] = Nn(e, t, es);
- let { elementType: n = "span", ...r } = e, i = Rn[n];
- return /*#__PURE__*/ v.createElement(i, {
+var To = /*#__PURE__*/ (0, _.createContext)({}), Eo = /*#__PURE__*/ ea(function(e, t) {
+ [e, t] = nn(e, t, To);
+ let { elementType: n = "span", ...r } = e, i = cn[n];
+ return /*#__PURE__*/ _.createElement(i, {
className: "react-aria-Text",
...r,
ref: t
@@ -13960,33 +13568,33 @@ var es = /*#__PURE__*/ (0, v.createContext)({}), ts = /*#__PURE__*/ Aa(function(
});
//#endregion
//#region node_modules/react-aria/dist/private/utils/isScrollable.mjs
-function ns(e, t) {
+function Do(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 rs(e, t) {
+function Oo(e, t) {
let n = e;
- for (ns(n, t) && (n = n.parentElement); n && !ns(n, t);) n = n.parentElement;
+ for (Do(n, t) && (n = n.parentElement); n && !Do(n, t);) n = n.parentElement;
return n || document.scrollingElement || document.documentElement;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/getScrollParents.mjs
-function is(e, t) {
+function ko(e, t) {
let n = [], r = document.scrollingElement || document.documentElement;
- for (; e && (ns(e, t) && n.push(e), e !== r);) e = e.parentElement;
+ for (; e && (Do(e, t) && n.push(e), e !== r);) e = e.parentElement;
return n;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/scrollIntoView.mjs
-function as(e, t, n = {}) {
- e !== t && os(e, t, t.getBoundingClientRect(), n);
+function Ao(e, t, n = {}) {
+ e !== t && jo(e, t, t.getBoundingClientRect(), n);
}
-function os(e, t, n, r = {}) {
+function jo(e, t, n, r = {}) {
let { block: i = "nearest", inline: a = "nearest" } = r, o = e.scrollTop, s = e.scrollLeft, c = e.getBoundingClientRect(), l = window.getComputedStyle(t), u = window.getComputedStyle(e), d = document.scrollingElement || document.documentElement, f = e === d, p = e === d ? 0 : c.top, m = e === d ? e.clientHeight : c.bottom, h = e === d ? 0 : c.left, g = e === d ? e.clientWidth : c.right, _ = parseFloat(l.scrollMarginTop) || 0, v = parseFloat(l.scrollMarginBottom) || 0, y = parseFloat(l.scrollMarginLeft) || 0, b = parseFloat(l.scrollMarginRight) || 0, x = parseFloat(u.scrollPaddingTop) || 0, S = parseFloat(u.scrollPaddingBottom) || 0, C = parseFloat(u.scrollPaddingLeft) || 0, w = parseFloat(u.scrollPaddingRight) || 0, T = parseFloat(u.borderTopWidth) || 0, E = parseFloat(u.borderBottomWidth) || 0, D = parseFloat(u.borderLeftWidth) || 0, O = parseFloat(u.borderRightWidth) || 0, k = n.top - _, A = n.bottom + v, j = n.left - y, M = n.right + b, ee = e === d ? 0 : D + O, te = e === d ? 0 : T + E, N = e === d ? 0 : e.offsetWidth - e.clientWidth - ee, P = e === d ? 0 : e.offsetHeight - e.clientHeight - te, 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;
- kr() && jr() || u.direction === "ltr" ? ae -= N : u.direction === "rtl" && (ie += N);
+ $n() && tr() || u.direction === "ltr" ? ae -= N : u.direction === "rtl" && (ie += N);
let oe = k < ne || A > re, se = j < ie || M > ae;
if (oe && i === "start") o += k - ne;
else if (oe && i === "center") o += (k + A) / 2 - (ne + re) / 2;
@@ -14007,7 +13615,7 @@ function os(e, t, n, r = {}) {
top: o
});
}
-function ss(e, t = {}) {
+function Mo(e, t = {}) {
let { containingElement: n } = t;
if (e && e.isConnected) {
let t = document.scrollingElement || document.documentElement;
@@ -14020,46 +13628,46 @@ function ss(e, t = {}) {
inline: "center"
}), e.scrollIntoView?.({ block: "nearest" }));
} else {
- let { left: t, top: r } = e.getBoundingClientRect(), i = is(e, !0);
- for (let t of i) as(t, e);
+ let { left: t, top: r } = e.getBoundingClientRect(), i = ko(e, !0);
+ for (let t of i) Ao(t, e);
let { left: a, top: o } = e.getBoundingClientRect();
if (Math.abs(t - a) > 1 || Math.abs(r - o) > 1) {
- i = n ? is(n, !0) : [];
- for (let e of i) as(e, n, {
+ i = n ? ko(n, !0) : [];
+ for (let e of i) Ao(e, n, {
block: "center",
inline: "center"
});
- for (let t of is(e, !0)) as(t, e);
+ for (let t of ko(e, !0)) Ao(t, e);
}
}
}
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useDescription.mjs
-var cs = 0, ls = /* @__PURE__ */ new Map();
-function us(e) {
- let [t, n] = (0, v.useState)();
- return H(() => {
+var No = 0, Po = /* @__PURE__ */ new Map();
+function Fo(e) {
+ let [t, n] = (0, _.useState)();
+ return V(() => {
if (!e) return;
- let t = ls.get(e);
+ let t = Po.get(e);
if (t) n(t.element.id);
else {
- let r = `react-aria-description-${cs++}`;
+ let r = `react-aria-description-${No++}`;
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
- }, ls.set(e, t);
+ }, Po.set(e, t);
}
return t.refCount++, () => {
- t && --t.refCount === 0 && (t.element.remove(), ls.delete(e));
+ t && --t.refCount === 0 && (t.element.remove(), Po.delete(e));
};
}, [e]), { "aria-describedby": e ? t : void 0 };
}
//#endregion
//#region node_modules/react-aria/dist/private/visually-hidden/VisuallyHidden.mjs
-var ds = {
+var J = {
border: 0,
clip: "rect(0 0 0 0)",
clipPath: "inset(50%)",
@@ -14071,26 +13679,26 @@ var ds = {
width: "1px",
whiteSpace: "nowrap"
};
-function fs(e = {}) {
- let { style: t, isFocusable: n } = e, [r, i] = (0, v.useState)(!1), { focusWithinProps: a } = No({
+function Io(e = {}) {
+ let { style: t, isFocusable: n } = e, [r, i] = (0, _.useState)(!1), { focusWithinProps: a } = no({
isDisabled: !n,
onFocusWithinChange: (e) => i(e)
- }), o = (0, v.useMemo)(() => r ? t : t ? {
- ...ds,
+ }), o = (0, _.useMemo)(() => r ? t : t ? {
+ ...J,
...t
- } : ds, [r]);
+ } : J, [r]);
return { visuallyHiddenProps: {
...a,
style: o
} };
}
-function ps(e) {
- let { children: t, elementType: n = "div", isFocusable: r, style: i, ...a } = e, { visuallyHiddenProps: o } = fs(e);
- return /*#__PURE__*/ v.createElement(n, U(a, o), t);
+function Lo(e) {
+ let { children: t, elementType: n = "div", isFocusable: r, style: i, ...a } = e, { visuallyHiddenProps: o } = Io(e);
+ return /*#__PURE__*/ _.createElement(n, U(a, o), t);
}
//#endregion
//#region node_modules/react-aria-components/dist/private/FieldError.mjs
-var ms = /*#__PURE__*/ (0, v.createContext)(null), hs = {
+var Ro = /*#__PURE__*/ (0, _.createContext)(null), zo = {
badInput: !1,
customError: !1,
patternMismatch: !1,
@@ -14102,18 +13710,18 @@ var ms = /*#__PURE__*/ (0, v.createContext)(null), hs = {
typeMismatch: !1,
valueMissing: !1,
valid: !0
-}, gs = {
- ...hs,
+}, Bo = {
+ ...zo,
customError: !0,
valid: !1
-}, _s = {
+}, Vo = {
isInvalid: !1,
- validationDetails: hs,
+ validationDetails: zo,
validationErrors: []
-}, vs = (0, v.createContext)({}), ys = "__reactAriaFormValidationState";
-function bs(e) {
+}, Ho = (0, _.createContext)({}), Uo = "__reactAriaFormValidationState";
+function Wo(e) {
if (e.__reactAriaFormValidationState) {
- let { realtimeValidation: t, displayValidation: n, updateValidation: r, resetValidation: i, commitValidation: a } = e[ys];
+ let { realtimeValidation: t, displayValidation: n, updateValidation: r, resetValidation: i, commitValidation: a } = e[Uo];
return {
realtimeValidation: t,
displayValidation: n,
@@ -14122,72 +13730,72 @@ function bs(e) {
commitValidation: a
};
}
- return xs(e);
+ return Go(e);
}
-function xs(e) {
+function Go(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: gs
- }, l = (0, v.useMemo)(() => !o || i == null ? null : ws(Cs(o, i)), [o, i]);
+ validationDetails: Bo
+ }, l = (0, _.useMemo)(() => !o || i == null ? null : Jo(qo(o, i)), [o, i]);
a?.validationDetails.valid && (a = void 0);
- let u = (0, v.useContext)(vs), d = (0, v.useMemo)(() => r ? Array.isArray(r) ? r.flatMap((e) => Ss(u[e])) : Ss(u[r]) : [], [u, r]), [f, p] = (0, v.useState)(u), [m, h] = (0, v.useState)(!1);
+ let u = (0, _.useContext)(Ho), d = (0, _.useMemo)(() => r ? Array.isArray(r) ? r.flatMap((e) => Ko(u[e])) : Ko(u[r]) : [], [u, r]), [f, p] = (0, _.useState)(u), [m, h] = (0, _.useState)(!1);
u !== f && (p(u), h(!1));
- let g = (0, v.useMemo)(() => ws(m ? [] : d), [m, d]), _ = (0, v.useRef)(_s), [y, b] = (0, v.useState)(_s), x = (0, v.useRef)(_s), S = () => {
+ let g = (0, _.useMemo)(() => Jo(m ? [] : d), [m, d]), v = (0, _.useRef)(Vo), [y, b] = (0, _.useState)(Vo), x = (0, _.useRef)(Vo), S = () => {
if (!C) return;
w(!1);
- let e = l || a || _.current;
- Ts(e, x.current) || (x.current = e, b(e));
- }, [C, w] = (0, v.useState)(!1);
- return (0, v.useEffect)(S), {
- realtimeValidation: c || g || l || a || _s,
+ let e = l || a || v.current;
+ Yo(e, x.current) || (x.current = e, b(e));
+ }, [C, w] = (0, _.useState)(!1);
+ return (0, _.useEffect)(S), {
+ realtimeValidation: c || g || l || a || Vo,
displayValidation: s === "native" ? c || g || y : c || g || l || a || y,
updateValidation(e) {
- s === "aria" && !Ts(y, e) ? b(e) : _.current = e;
+ s === "aria" && !Yo(y, e) ? b(e) : v.current = e;
},
resetValidation() {
- let e = _s;
- Ts(e, x.current) || (x.current = e, b(e)), s === "native" && w(!1), h(!0);
+ let e = Vo;
+ Yo(e, x.current) || (x.current = e, b(e)), s === "native" && w(!1), h(!0);
},
commitValidation() {
s === "native" && w(!0), h(!0);
}
};
}
-function Ss(e) {
+function Ko(e) {
return e ? Array.isArray(e) ? e : [e] : [];
}
-function Cs(e, t) {
+function qo(e, t) {
if (typeof e == "function") {
let n = e(t);
- if (n && typeof n != "boolean") return Ss(n);
+ if (n && typeof n != "boolean") return Ko(n);
}
return [];
}
-function ws(e) {
+function Jo(e) {
return e.length ? {
isInvalid: !0,
validationErrors: e,
- validationDetails: gs
+ validationDetails: Bo
} : null;
}
-function Ts(e, t) {
+function Yo(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 Es = /*#__PURE__*/ (0, v.createContext)(null), Ds = /* @__PURE__ */ new WeakMap();
+var Xo = /*#__PURE__*/ (0, _.createContext)(null), Zo = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/label/useField.mjs
-function Os(e) {
- let { description: t, errorMessage: n, isInvalid: r, validationState: i } = e, { labelProps: a, fieldProps: o } = Ho(e), s = Cn([
+function Qo(e) {
+ let { description: t, errorMessage: n, isInvalid: r, validationState: i } = e, { labelProps: a, fieldProps: o } = po(e), s = Kt([
!!t,
!!n,
r,
i
- ]), c = Cn([
+ ]), c = Kt([
!!t,
!!n,
r,
@@ -14206,11 +13814,11 @@ function Os(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useFormReset.mjs
-function ks(e, t, n) {
- let r = hi((e) => {
+function $o(e, t, n) {
+ let r = zr((e) => {
n && !e.defaultPrevented && n(t);
});
- (0, v.useEffect)(() => {
+ (0, _.useEffect)(() => {
let t = e?.current?.form;
return t?.addEventListener("reset", r), () => {
t?.removeEventListener("reset", r);
@@ -14219,24 +13827,24 @@ function ks(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/form/useFormValidation.mjs
-function As(e, t, n) {
+function es(e, t, n) {
let { validationBehavior: r, focus: i } = e;
- H(() => {
+ V(() => {
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(Ms(n.current));
+ n.current.setCustomValidity(e), n.current.hasAttribute("title") || (n.current.title = ""), t.realtimeValidation.isInvalid || t.updateValidation(ns(n.current));
}
});
- let a = (0, v.useRef)(!1), o = hi(() => {
+ let a = (0, _.useRef)(!1), o = zr(() => {
a.current || t.resetValidation();
- }), s = hi((e) => {
+ }), s = zr((e) => {
t.displayValidation.isInvalid || t.commitValidation();
let r = n?.current?.form;
- !e.defaultPrevented && n && r && Ns(r) === n.current && (i ? i() : n.current?.focus(), si("keyboard")), e.preventDefault();
- }), c = hi(() => {
+ !e.defaultPrevented && n && r && rs(r) === n.current && (i ? i() : n.current?.focus(), jr("keyboard")), e.preventDefault();
+ }), c = zr(() => {
t.commitValidation();
});
- (0, v.useEffect)(() => {
+ (0, _.useEffect)(() => {
let e = n?.current;
if (!e) return;
let t = e.form, r = t?.reset;
@@ -14247,7 +13855,7 @@ function As(e, t, n) {
};
}, [n, r]);
}
-function js(e) {
+function ts(e) {
let t = e.validity;
return {
badInput: t.badInput,
@@ -14263,14 +13871,14 @@ function js(e) {
valid: t.valid
};
}
-function Ms(e) {
+function ns(e) {
return {
isInvalid: !e.validity.valid,
- validationDetails: js(e),
+ validationDetails: ts(e),
validationErrors: e.validationMessage ? [e.validationMessage] : []
};
}
-function Ns(e) {
+function rs(e) {
for (let t = 0; t < e.elements.length; t++) {
let n = e.elements[t];
if (n.validity?.valid === !1) return n;
@@ -14279,16 +13887,16 @@ function Ns(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useSlot.mjs
-function Ps(e = !0) {
- let [t, n] = (0, v.useState)(e), r = (0, v.useRef)(!1), i = (0, v.useCallback)((e) => {
+function is(e = !0) {
+ let [t, n] = (0, _.useState)(e), r = (0, _.useRef)(!1), i = (0, _.useCallback)((e) => {
r.current = !0, n(!!e);
}, []);
- return H(() => {
+ return V(() => {
r.current || n(!1);
}, []), [i, t];
}
-function Fs(e = !0) {
- let t = xn(), [n, r] = Ps(e);
+function as(e = !0) {
+ let t = Wt(), [n, r] = is(e);
return {
id: r ? t : void 0,
ref: n
@@ -14296,23 +13904,23 @@ function Fs(e = !0) {
}
//#endregion
//#region node_modules/react-aria/dist/private/toggle/useToggle.mjs
-function Is(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 = bs({
+function os(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: v, onPressUp: y, onClick: b } = e, x = Wo({
...e,
value: t.isSelected
}), { isInvalid: S, validationErrors: C, validationDetails: w } = x.displayValidation;
- As(e, x, n);
+ es(e, x, n);
let T = (e) => {
e.stopPropagation(), t.setSelected(K(e).checked);
- }, { pressProps: E, isPressed: D } = To({
+ }, { pressProps: E, isPressed: D } = Ja({
onPressStart: m,
onPressEnd: h,
onPressChange: g,
- onPress: _,
+ onPress: v,
onPressUp: y,
onClick: b,
isDisabled: r
- }), [O, k] = (0, v.useState)(!1), { pressProps: A } = To({
+ }), [O, k] = (0, _.useState)(!1), { pressProps: A } = Ja({
onPressStart(e) {
if (e.pointerType === "keyboard" || e.pointerType === "virtual") {
e.continuePropagation();
@@ -14340,14 +13948,14 @@ function Is(e, t, n) {
r.continuePropagation();
return;
}
- _?.(r), t.toggle(), n.current?.focus();
- let { [ys]: i } = e, { commitValidation: a } = i || x;
+ v?.(r), t.toggle(), n.current?.focus();
+ let { [Uo]: i } = e, { commitValidation: a } = i || x;
a();
},
isDisabled: r || i
- }), { focusableProps: j } = Da(e, n), M = U(E, j), ee = co(e, { labelable: !0 });
- ks(n, t.defaultSelected, t.setSelected);
- let te = Fs(), N = Fs();
+ }), { focusableProps: j } = q(e, n), M = U(E, j), ee = Ma(e, { labelable: !0 });
+ $o(n, t.defaultSelected, t.setSelected);
+ let te = as(), N = as();
return {
labelProps: U(A, { onClick: (e) => e.preventDefault() }),
inputProps: U(ee, {
@@ -14384,12 +13992,12 @@ function Is(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/checkbox/useCheckbox.mjs
-function Ls(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 } = Is(e, t, n), { isIndeterminate: m } = e;
- return (0, v.useEffect)(() => {
+function ss(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 } = os(e, t, n), { isIndeterminate: m } = e;
+ return (0, _.useEffect)(() => {
n.current && (n.current.indeterminate = !!m);
}), {
- labelProps: U(r, (0, v.useMemo)(() => ({ onMouseDown: (e) => e.preventDefault() }), [])),
+ labelProps: U(r, (0, _.useMemo)(() => ({ onMouseDown: (e) => e.preventDefault() }), [])),
inputProps: i,
descriptionProps: a,
errorMessageProps: o,
@@ -14404,8 +14012,8 @@ function Ls(e, t, n) {
}
//#endregion
//#region node_modules/react-stately/dist/private/toggle/useToggleState.mjs
-function Rs(e = {}) {
- let { isReadOnly: t } = e, [n, r] = Wi(e.isSelected, e.defaultSelected || !1, e.onChange), [i] = (0, v.useState)(n);
+function cs(e = {}) {
+ let { isReadOnly: t } = e, [n, r] = mi(e.isSelected, e.defaultSelected || !1, e.onChange), [i] = (0, _.useState)(n);
function a(e) {
t || r(e);
}
@@ -14421,26 +14029,26 @@ function Rs(e = {}) {
}
//#endregion
//#region node_modules/react-aria/dist/private/checkbox/useCheckboxGroupItem.mjs
-function zs(e, t, n) {
- let r = Rs({
+function ls(e, t, n) {
+ let r = cs({
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 } = Ds.get(t);
+ }), { name: i, form: a, descriptionId: o, errorMessageId: s, validationBehavior: c } = Zo.get(t);
c = e.validationBehavior ?? c;
- let { realtimeValidation: l } = bs({
+ let { realtimeValidation: l } = Wo({
...e,
value: r.isSelected,
name: void 0,
validationBehavior: "aria"
- }), u = (0, v.useRef)(_s), d = () => {
+ }), u = (0, _.useRef)(Vo), 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 = Ls({
+ (0, _.useEffect)(d);
+ let f = t.realtimeValidation.isInvalid ? t.realtimeValidation : l, p = c === "native" ? t.displayValidation : f, m = ss({
...e,
isReadOnly: e.isReadOnly || t.isReadOnly,
isDisabled: e.isDisabled || t.isDisabled,
@@ -14448,7 +14056,7 @@ function zs(e, t, n) {
form: e.form || a,
isRequired: e.isRequired ?? t.isRequired,
validationBehavior: c,
- [ys]: {
+ [Uo]: {
realtimeValidation: f,
displayValidation: p,
resetValidation: t.resetValidation,
@@ -14472,35 +14080,35 @@ function zs(e, t, n) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Checkbox.mjs
-var Bs = /*#__PURE__*/ (0, v.createContext)(null), Vs = /*#__PURE__*/ (0, v.createContext)(null), Hs = /*#__PURE__*/ (0, v.createContext)(null);
-function Us(e, t) {
- let { validationBehavior: n } = Mn(Es) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, v.useContext)(Vs), a = On((0, v.useMemo)(() => wn(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
- ...Fn(e),
+var us = /*#__PURE__*/ (0, _.createContext)(null), ds = /*#__PURE__*/ (0, _.createContext)(null), fs = /*#__PURE__*/ (0, _.createContext)(null);
+function ps(e, t) {
+ let { validationBehavior: n } = tn(Xo) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, _.useContext)(ds), a = Zt((0, _.useMemo)(() => qt(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
+ ...an(e),
children: typeof e.children == "function" || e.children,
value: e.value,
validationBehavior: r
};
- return [i ? zs(o, i, a) : Ls(o, Rs(e), a), a];
+ return [i ? ls(o, i, a) : ss(o, cs(e), a), a];
}
-var Ws = /*#__PURE__*/ (0, v.forwardRef)(function(e, t) {
+var ms = /*#__PURE__*/ (0, _.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = Nn(r, t, Bs);
- let [i, a] = Us(e, n);
- return /*#__PURE__*/ v.createElement(Hs.Provider, { value: {
+ [e, t] = nn(r, t, us);
+ let [i, a] = ps(e, n);
+ return /*#__PURE__*/ _.createElement(fs.Provider, { value: {
...i,
inputRef: a,
defaultClassName: "react-aria-Checkbox",
isIndeterminate: e.isIndeterminate,
isRequired: e.isRequired
- } }, /*#__PURE__*/ v.createElement(Gs, {
+ } }, /*#__PURE__*/ _.createElement(hs, {
...e,
ref: t
}));
-}), Gs = /*#__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)(Hs), { isFocused: p, isFocusVisible: m, focusProps: h } = Po(), g = a || o, { hoverProps: _, isHovered: y } = zo({
+}), hs = /*#__PURE__*/ (0, _.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, _.useContext)(fs), { isFocused: p, isFocusVisible: m, focusProps: h } = ro(), g = a || o, { hoverProps: v, isHovered: y } = lo({
...e,
isDisabled: g
- }), b = jn({
+ }), b = en({
...e,
defaultClassName: u,
values: {
@@ -14515,9 +14123,9 @@ var Ws = /*#__PURE__*/ (0, v.forwardRef)(function(e, t) {
isInvalid: c,
isRequired: f || !1
}
- }), x = co(e, { global: !0 });
- return delete x.id, delete x.onClick, /*#__PURE__*/ v.createElement(Rn.label, {
- ...U(x, n, _, b),
+ }), x = Ma(e, { global: !0 });
+ return delete x.id, delete x.onClick, /*#__PURE__*/ _.createElement(cn.label, {
+ ...U(x, n, v, b),
ref: t,
slot: e.slot || void 0,
"data-selected": i || void 0,
@@ -14530,20 +14138,20 @@ var Ws = /*#__PURE__*/ (0, v.forwardRef)(function(e, t) {
"data-readonly": o || void 0,
"data-invalid": c || void 0,
"data-required": f || void 0
- }, /*#__PURE__*/ v.createElement(ps, { elementType: "span" }, /*#__PURE__*/ v.createElement("input", {
+ }, /*#__PURE__*/ _.createElement(Lo, { elementType: "span" }, /*#__PURE__*/ _.createElement("input", {
...U(r, h),
ref: l
})), b.children);
-}), Ks = /*#__PURE__*/ (0, v.createContext)({}), qs = /*#__PURE__*/ (0, v.forwardRef)(function(e, t) {
- [e, t] = Nn(e, t, Ks);
+}), gs = /*#__PURE__*/ (0, _.createContext)({}), _s = /*#__PURE__*/ (0, _.forwardRef)(function(e, t) {
+ [e, t] = nn(e, t, gs);
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 } = zo({
+ let { hoverProps: l, isHovered: u } = lo({
onHoverStart: a,
onHoverChange: o,
onHoverEnd: s,
isDisabled: n
- }), { isFocused: d, isFocusVisible: f, focusProps: p } = Po({ within: !0 }), m = jn({
+ }), { isFocused: d, isFocusVisible: f, focusProps: p } = ro({ within: !0 }), m = en({
...e,
values: {
isHovered: u,
@@ -14554,7 +14162,7 @@ var Ws = /*#__PURE__*/ (0, v.forwardRef)(function(e, t) {
},
defaultClassName: "react-aria-Group"
});
- return /*#__PURE__*/ v.createElement(Rn.div, {
+ return /*#__PURE__*/ _.createElement(cn.div, {
...U(c, p, l),
...m,
ref: t,
@@ -14567,18 +14175,18 @@ var Ws = /*#__PURE__*/ (0, v.forwardRef)(function(e, t) {
"data-invalid": r || void 0,
"data-readonly": i || void 0
}, m.children);
-}), Js = /*#__PURE__*/ (0, v.createContext)({}), Ys = (e) => {
+}), vs = /*#__PURE__*/ (0, _.createContext)({}), ys = (e) => {
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, ...i } = e;
return i;
-}, Xs = /*#__PURE__*/ Aa(function(e, t) {
- [e, t] = Nn(e, t, Js);
- let { hoverProps: n, isHovered: r } = zo({
+}, bs = /*#__PURE__*/ ea(function(e, t) {
+ [e, t] = nn(e, t, vs);
+ let { hoverProps: n, isHovered: r } = lo({
...e,
isDisabled: e.disabled
- }), { isFocused: i, isFocusVisible: a, focusProps: o } = Po({
+ }), { isFocused: i, isFocusVisible: a, focusProps: o } = ro({
isTextInput: !0,
autoFocus: e.autoFocus
- }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = jn({
+ }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = en({
...e,
values: {
isHovered: r,
@@ -14589,8 +14197,8 @@ var Ws = /*#__PURE__*/ (0, v.forwardRef)(function(e, t) {
},
defaultClassName: "react-aria-Input"
});
- return /*#__PURE__*/ v.createElement(Rn.input, {
- ...U(Ys(e), o, n),
+ return /*#__PURE__*/ _.createElement(cn.input, {
+ ...U(ys(e), o, n),
...c,
ref: t,
"data-focused": i || void 0,
@@ -14602,19 +14210,19 @@ var Ws = /*#__PURE__*/ (0, v.forwardRef)(function(e, t) {
});
//#endregion
//#region node_modules/react-aria/dist/private/textfield/useTextField.mjs
-function Zs(e, t) {
- let { inputElementType: n = "input", isDisabled: r = !1, isRequired: i = !1, isReadOnly: a = !1, type: o = "text", validationBehavior: s = "aria" } = e, [c, l] = Wi(e.value, e.defaultValue || "", e.onChange), { focusableProps: u } = Da(e, t), d = bs({
+function xs(e, t) {
+ let { inputElementType: n = "input", isDisabled: r = !1, isRequired: i = !1, isReadOnly: a = !1, type: o = "text", validationBehavior: s = "aria" } = e, [c, l] = mi(e.value, e.defaultValue || "", e.onChange), { focusableProps: u } = q(e, t), d = Wo({
...e,
value: c
- }), { isInvalid: f, validationErrors: p, validationDetails: m } = d.displayValidation, { labelProps: h, fieldProps: g, descriptionProps: _, errorMessageProps: y } = Os({
+ }), { isInvalid: f, validationErrors: p, validationDetails: m } = d.displayValidation, { labelProps: h, fieldProps: g, descriptionProps: v, errorMessageProps: y } = Qo({
...e,
isInvalid: f,
errorMessage: e.errorMessage || p
- }), b = co(e, { labelable: !0 }), x = {
+ }), b = Ma(e, { labelable: !0 }), x = {
type: o,
pattern: e.pattern
- }, [S] = (0, v.useState)(c);
- return ks(t, e.defaultValue ?? S, l), As(e, d, t), {
+ }, [S] = (0, _.useState)(c);
+ return $o(t, e.defaultValue ?? S, l), es(e, d, t), {
labelProps: h,
inputProps: U(b, n === "input" ? x : void 0, {
disabled: r,
@@ -14652,7 +14260,7 @@ function Zs(e, t) {
...u,
...g
}),
- descriptionProps: _,
+ descriptionProps: v,
errorMessageProps: y,
isInvalid: f,
validationErrors: p,
@@ -14661,8 +14269,8 @@ function Zs(e, t) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ar-AE.mjs
-var Qs = {};
-Qs = {
+var Ss = {};
+Ss = {
colorSwatchPicker: "تغييرات الألوان",
dropzoneLabel: "DropZone",
selectPlaceholder: "حدد عنصرًا",
@@ -14670,8 +14278,8 @@ Qs = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/bg-BG.mjs
-var $s = {};
-$s = {
+var Cs = {};
+Cs = {
colorSwatchPicker: "Цветови мостри",
dropzoneLabel: "DropZone",
selectPlaceholder: "Изберете предмет",
@@ -14679,8 +14287,8 @@ $s = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/cs-CZ.mjs
-var ec = {};
-ec = {
+var ws = {};
+ws = {
colorSwatchPicker: "Vzorky barev",
dropzoneLabel: "Místo pro přetažení",
selectPlaceholder: "Vyberte položku",
@@ -14688,8 +14296,8 @@ ec = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/da-DK.mjs
-var tc = {};
-tc = {
+var Ts = {};
+Ts = {
colorSwatchPicker: "Farveprøver",
dropzoneLabel: "DropZone",
selectPlaceholder: "Vælg et element",
@@ -14697,8 +14305,8 @@ tc = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/de-DE.mjs
-var nc = {};
-nc = {
+var Es = {};
+Es = {
colorSwatchPicker: "Farbfelder",
dropzoneLabel: "Ablegebereich",
selectPlaceholder: "Element wählen",
@@ -14706,8 +14314,8 @@ nc = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/el-GR.mjs
-var rc = {};
-rc = {
+var Ds = {};
+Ds = {
colorSwatchPicker: "Χρωματικά δείγματα",
dropzoneLabel: "DropZone",
selectPlaceholder: "Επιλέξτε ένα αντικείμενο",
@@ -14715,8 +14323,8 @@ rc = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/en-US.mjs
-var ic = {};
-ic = {
+var Os = {};
+Os = {
selectPlaceholder: "Select an item",
tableResizer: "Resizer",
dropzoneLabel: "DropZone",
@@ -14724,8 +14332,8 @@ ic = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/es-ES.mjs
-var ac = {};
-ac = {
+var ks = {};
+ks = {
colorSwatchPicker: "Muestras de colores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Seleccionar un artículo",
@@ -14733,8 +14341,8 @@ ac = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/et-EE.mjs
-var oc = {};
-oc = {
+var As = {};
+As = {
colorSwatchPicker: "Värvinäidised",
dropzoneLabel: "DropZone",
selectPlaceholder: "Valige üksus",
@@ -14742,8 +14350,8 @@ oc = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/fi-FI.mjs
-var sc = {};
-sc = {
+var js = {};
+js = {
colorSwatchPicker: "Värimallit",
dropzoneLabel: "DropZone",
selectPlaceholder: "Valitse kohde",
@@ -14751,8 +14359,8 @@ sc = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/fr-FR.mjs
-var cc = {};
-cc = {
+var Ms = {};
+Ms = {
colorSwatchPicker: "Échantillons de couleurs",
dropzoneLabel: "DropZone",
selectPlaceholder: "Sélectionner un élément",
@@ -14760,8 +14368,8 @@ cc = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/he-IL.mjs
-var lc = {};
-lc = {
+var Ns = {};
+Ns = {
colorSwatchPicker: "דוגמיות צבע",
dropzoneLabel: "DropZone",
selectPlaceholder: "בחר פריט",
@@ -14769,8 +14377,8 @@ lc = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/hr-HR.mjs
-var uc = {};
-uc = {
+var Ps = {};
+Ps = {
colorSwatchPicker: "Uzorci boja",
dropzoneLabel: "Zona spuštanja",
selectPlaceholder: "Odaberite stavku",
@@ -14778,8 +14386,8 @@ uc = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/hu-HU.mjs
-var dc = {};
-dc = {
+var Fs = {};
+Fs = {
colorSwatchPicker: "Színtárak",
dropzoneLabel: "DropZone",
selectPlaceholder: "Válasszon ki egy elemet",
@@ -14787,8 +14395,8 @@ dc = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/it-IT.mjs
-var fc = {};
-fc = {
+var Is = {};
+Is = {
colorSwatchPicker: "Campioni di colore",
dropzoneLabel: "Zona di rilascio",
selectPlaceholder: "Seleziona un elemento",
@@ -14796,8 +14404,8 @@ fc = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ja-JP.mjs
-var pc = {};
-pc = {
+var Ls = {};
+Ls = {
colorSwatchPicker: "カラースウォッチ",
dropzoneLabel: "ドロップゾーン",
selectPlaceholder: "項目を選択",
@@ -14805,8 +14413,8 @@ pc = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ko-KR.mjs
-var mc = {};
-mc = {
+var Rs = {};
+Rs = {
colorSwatchPicker: "색상 견본",
dropzoneLabel: "드롭 영역",
selectPlaceholder: "항목 선택",
@@ -14814,8 +14422,8 @@ mc = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/lt-LT.mjs
-var hc = {};
-hc = {
+var zs = {};
+zs = {
colorSwatchPicker: "Spalvų pavyzdžiai",
dropzoneLabel: "„DropZone“",
selectPlaceholder: "Pasirinkite elementą",
@@ -14823,8 +14431,8 @@ hc = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/lv-LV.mjs
-var gc = {};
-gc = {
+var Bs = {};
+Bs = {
colorSwatchPicker: "Krāsu paraugi",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izvēlēties vienumu",
@@ -14832,8 +14440,8 @@ gc = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/nb-NO.mjs
-var _c = {};
-_c = {
+var Vs = {};
+Vs = {
colorSwatchPicker: "Fargekart",
dropzoneLabel: "Droppsone",
selectPlaceholder: "Velg et element",
@@ -14841,8 +14449,8 @@ _c = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/nl-NL.mjs
-var vc = {};
-vc = {
+var Hs = {};
+Hs = {
colorSwatchPicker: "kleurstalen",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecteer een item",
@@ -14850,8 +14458,8 @@ vc = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/pl-PL.mjs
-var yc = {};
-yc = {
+var Us = {};
+Us = {
colorSwatchPicker: "Próbki kolorów",
dropzoneLabel: "Strefa upuszczania",
selectPlaceholder: "Wybierz element",
@@ -14859,8 +14467,8 @@ yc = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/pt-BR.mjs
-var bc = {};
-bc = {
+var Ws = {};
+Ws = {
colorSwatchPicker: "Amostras de cores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecione um item",
@@ -14868,8 +14476,8 @@ bc = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/pt-PT.mjs
-var xc = {};
-xc = {
+var Gs = {};
+Gs = {
colorSwatchPicker: "Amostras de cores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecione um item",
@@ -14877,8 +14485,8 @@ xc = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ro-RO.mjs
-var Sc = {};
-Sc = {
+var Ks = {};
+Ks = {
colorSwatchPicker: "Specimene de culoare",
dropzoneLabel: "Zonă de plasare",
selectPlaceholder: "Selectați un element",
@@ -14886,8 +14494,8 @@ Sc = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ru-RU.mjs
-var Cc = {};
-Cc = {
+var qs = {};
+qs = {
colorSwatchPicker: "Цветовые образцы",
dropzoneLabel: "DropZone",
selectPlaceholder: "Выберите элемент",
@@ -14895,8 +14503,8 @@ Cc = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sk-SK.mjs
-var wc = {};
-wc = {
+var Js = {};
+Js = {
colorSwatchPicker: "Vzorkovníky farieb",
dropzoneLabel: "DropZone",
selectPlaceholder: "Vyberte položku",
@@ -14904,8 +14512,8 @@ wc = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sl-SI.mjs
-var Tc = {};
-Tc = {
+var Ys = {};
+Ys = {
colorSwatchPicker: "Barvne palete",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izberite element",
@@ -14913,8 +14521,8 @@ Tc = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sr-SP.mjs
-var Ec = {};
-Ec = {
+var Xs = {};
+Xs = {
colorSwatchPicker: "Uzorci boje",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izaberite stavku",
@@ -14922,8 +14530,8 @@ Ec = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sv-SE.mjs
-var Dc = {};
-Dc = {
+var Zs = {};
+Zs = {
colorSwatchPicker: "Färgrutor",
dropzoneLabel: "DropZone",
selectPlaceholder: "Välj en artikel",
@@ -14931,8 +14539,8 @@ Dc = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/tr-TR.mjs
-var Oc = {};
-Oc = {
+var Qs = {};
+Qs = {
colorSwatchPicker: "Renk örnekleri",
dropzoneLabel: "Bırakma Bölgesi",
selectPlaceholder: "Bir öğe seçin",
@@ -14940,8 +14548,8 @@ Oc = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/uk-UA.mjs
-var kc = {};
-kc = {
+var $s = {};
+$s = {
colorSwatchPicker: "Зразки кольорів",
dropzoneLabel: "DropZone",
selectPlaceholder: "Виберіть елемент",
@@ -14949,8 +14557,8 @@ kc = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/zh-CN.mjs
-var Ac = {};
-Ac = {
+var ec = {};
+ec = {
colorSwatchPicker: "颜色色板",
dropzoneLabel: "放置区域",
selectPlaceholder: "选择一个项目",
@@ -14958,8 +14566,8 @@ Ac = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/zh-TW.mjs
-var jc = {};
-jc = {
+var tc = {};
+tc = {
colorSwatchPicker: "色票",
dropzoneLabel: "放置區",
selectPlaceholder: "選取項目",
@@ -14967,52 +14575,52 @@ jc = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intlStrings.mjs
-var Mc = {};
-Mc = {
- "ar-AE": Qs,
- "bg-BG": $s,
- "cs-CZ": ec,
- "da-DK": tc,
- "de-DE": nc,
- "el-GR": rc,
- "en-US": ic,
- "es-ES": ac,
- "et-EE": oc,
- "fi-FI": sc,
- "fr-FR": cc,
- "he-IL": lc,
- "hr-HR": uc,
- "hu-HU": dc,
- "it-IT": fc,
- "ja-JP": pc,
- "ko-KR": mc,
- "lt-LT": hc,
- "lv-LV": gc,
- "nb-NO": _c,
- "nl-NL": vc,
- "pl-PL": yc,
- "pt-BR": bc,
- "pt-PT": xc,
- "ro-RO": Sc,
- "ru-RU": Cc,
- "sk-SK": wc,
- "sl-SI": Tc,
- "sr-SP": Ec,
- "sv-SE": Dc,
- "tr-TR": Oc,
- "uk-UA": kc,
- "zh-CN": Ac,
- "zh-TW": jc
+var nc = {};
+nc = {
+ "ar-AE": Ss,
+ "bg-BG": Cs,
+ "cs-CZ": ws,
+ "da-DK": Ts,
+ "de-DE": Es,
+ "el-GR": Ds,
+ "en-US": Os,
+ "es-ES": ks,
+ "et-EE": As,
+ "fi-FI": js,
+ "fr-FR": Ms,
+ "he-IL": Ns,
+ "hr-HR": Ps,
+ "hu-HU": Fs,
+ "it-IT": Is,
+ "ja-JP": Ls,
+ "ko-KR": Rs,
+ "lt-LT": zs,
+ "lv-LV": Bs,
+ "nb-NO": Vs,
+ "nl-NL": Hs,
+ "pl-PL": Us,
+ "pt-BR": Ws,
+ "pt-PT": Gs,
+ "ro-RO": Ks,
+ "ru-RU": qs,
+ "sk-SK": Js,
+ "sl-SI": Ys,
+ "sr-SP": Xs,
+ "sv-SE": Zs,
+ "tr-TR": Qs,
+ "uk-UA": $s,
+ "zh-CN": ec,
+ "zh-TW": tc
};
//#endregion
//#region node_modules/react-aria-components/dist/private/DragAndDrop.mjs
-var Nc = /*#__PURE__*/ (0, v.createContext)({}), Pc = /*#__PURE__*/ (0, v.createContext)(null), Fc = /*#__PURE__*/ (0, v.forwardRef)(function(e, t) {
- let { render: n } = (0, v.useContext)(Pc);
- return /*#__PURE__*/ v.createElement(v.Fragment, null, n(e, t));
+var rc = /*#__PURE__*/ (0, _.createContext)({}), ic = /*#__PURE__*/ (0, _.createContext)(null), ac = /*#__PURE__*/ (0, _.forwardRef)(function(e, t) {
+ let { render: n } = (0, _.useContext)(ic);
+ return /*#__PURE__*/ _.createElement(_.Fragment, null, n(e, t));
});
-function Ic(e, t) {
- let n = e?.renderDropIndicator, r = e?.isVirtualDragging?.(), i = (0, v.useCallback)((e) => {
- if (r || t?.isDropTarget(e)) return n ? n(e) : /*#__PURE__*/ v.createElement(Fc, { target: e });
+function oc(e, t) {
+ let n = e?.renderDropIndicator, r = e?.isVirtualDragging?.(), i = (0, _.useCallback)((e) => {
+ if (r || t?.isDropTarget(e)) return n ? n(e) : /*#__PURE__*/ _.createElement(ac, { target: e });
}, [
t?.target,
r,
@@ -15020,7 +14628,7 @@ function Ic(e, t) {
]);
return e?.useDropIndicator ? i : void 0;
}
-function Lc(e, t, n) {
+function sc(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;
@@ -15039,19 +14647,19 @@ function Lc(e, t, n) {
}
i = e ?? t ?? i;
}
- return (0, v.useMemo)(() => new Set([r, i].filter((e) => e != null)), [r, i]);
+ return (0, _.useMemo)(() => new Set([r, i].filter((e) => e != null)), [r, i]);
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Header.mjs
-var Rc = /*#__PURE__*/ (0, v.createContext)({}), zc = /*#__PURE__*/ (0, v.createContext)(null);
-function Bc(e) {
- let t = (0, v.useRef)({});
- return /*#__PURE__*/ v.createElement(zc.Provider, { value: t }, e.children);
+var cc = /*#__PURE__*/ (0, _.createContext)({}), lc = /*#__PURE__*/ (0, _.createContext)(null);
+function uc(e) {
+ let t = (0, _.useRef)({});
+ return /*#__PURE__*/ _.createElement(lc.Provider, { value: t }, e.children);
}
//#endregion
//#region node_modules/react-aria-components/dist/private/SelectionIndicator.mjs
-var Vc = /*#__PURE__*/ (0, v.createContext)({ isSelected: !1 }), Hc = /*#__PURE__*/ (0, v.createContext)({});
-(class extends qi {
+var dc = /*#__PURE__*/ (0, _.createContext)({ isSelected: !1 }), fc = /*#__PURE__*/ (0, _.createContext)({});
+(class extends _i {
static {
this.type = "separator";
}
@@ -15066,18 +14674,18 @@ var Vc = /*#__PURE__*/ (0, v.createContext)({ isSelected: !1 }), Hc = /*#__PURE_
});
//#endregion
//#region node_modules/react-aria/dist/private/listbox/utils.mjs
-var Uc = /* @__PURE__ */ new WeakMap();
-function Wc(e) {
+var pc = /* @__PURE__ */ new WeakMap();
+function mc(e) {
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
}
-function Gc(e, t) {
- let n = Uc.get(e);
+function hc(e, t) {
+ let n = pc.get(e);
if (!n) throw Error("Unknown list");
- return `${n.id}-option-${Wc(t)}`;
+ return `${n.id}-option-${mc(t)}`;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/shadowdom/ShadowTreeWalker.mjs
-var Kc = class {
+var gc = class {
constructor(e, t, n, r) {
this._walkerStack = [], this._currentSetFor = /* @__PURE__ */ new Set(), this._acceptNode = (e) => {
if (e.nodeType === Node.ELEMENT_NODE) {
@@ -15180,202 +14788,202 @@ var Kc = class {
return null;
}
};
-function qc(e, t, n, r) {
- return Yn() ? new Kc(e, t, n, r) : e.createTreeWalker(t, n, r);
+function _c(e, t, n, r) {
+ return yn() ? new gc(e, t, n, r) : e.createTreeWalker(t, n, r);
}
//#endregion
//#region node_modules/react-aria/dist/private/focus/FocusScope.mjs
-var Jc = /*#__PURE__*/ v.createContext(null), Yc = "react-aria-focus-scope-restore", Xc = null;
-function Zc(e) {
- let { children: t, contain: n, restoreFocus: r, autoFocus: i } = e, a = (0, v.useRef)(null), o = (0, v.useRef)(null), s = (0, v.useRef)([]), { parentNode: c } = (0, v.useContext)(Jc) || {}, l = (0, v.useMemo)(() => new yl({ scopeRef: s }), [s]);
- H(() => {
- let e = c || bl.root;
- if (bl.getTreeNode(e.scopeRef) && Xc && !cl(Xc, e.scopeRef)) {
- let t = bl.getTreeNode(Xc);
+var vc = /*#__PURE__*/ _.createContext(null), yc = "react-aria-focus-scope-restore", bc = null;
+function xc(e) {
+ let { children: t, contain: n, restoreFocus: r, autoFocus: i } = e, a = (0, _.useRef)(null), o = (0, _.useRef)(null), s = (0, _.useRef)([]), { parentNode: c } = (0, _.useContext)(vc) || {}, l = (0, _.useMemo)(() => new Uc({ scopeRef: s }), [s]);
+ V(() => {
+ let e = c || Wc.root;
+ if (Wc.getTreeNode(e.scopeRef) && bc && !Mc(bc, e.scopeRef)) {
+ let t = Wc.getTreeNode(bc);
t && (e = t);
}
- e.addChild(l), bl.addNode(l);
- }, [l, c]), H(() => {
- let e = bl.getTreeNode(s);
+ e.addChild(l), Wc.addNode(l);
+ }, [l, c]), V(() => {
+ let e = Wc.getTreeNode(s);
e && (e.contain = !!n);
- }, [n]), H(() => {
+ }, [n]), V(() => {
let e = a.current?.nextSibling, t = [], n = (e) => e.stopPropagation();
- for (; e && e !== o.current;) t.push(e), e.addEventListener(Yc, n), e = e.nextSibling;
+ for (; e && e !== o.current;) t.push(e), e.addEventListener(yc, n), e = e.nextSibling;
return s.current = t, () => {
- for (let e of t) e.removeEventListener(Yc, n);
+ for (let e of t) e.removeEventListener(yc, n);
};
- }, [t]), pl(s, r, n), rl(s, n), hl(s, r, n), fl(s, i), (0, v.useEffect)(() => {
- let e = Xn(W(s.current ? s.current[0] : void 0)), t = null;
- if (al(e, s.current)) {
- for (let n of bl.traverse()) n.scopeRef && al(e, n.scopeRef.current) && (t = n);
- t === bl.getTreeNode(s) && (Xc = t.scopeRef);
- }
- }, [s]), H(() => () => {
- let e = bl.getTreeNode(s)?.parent?.scopeRef ?? null;
- (s === Xc || cl(s, Xc)) && (!e || bl.getTreeNode(e)) && (Xc = e), bl.removeTreeNode(s);
+ }, [t]), Lc(s, r, n), Dc(s, n), zc(s, r, n), Ic(s, i), (0, _.useEffect)(() => {
+ let e = bn(W(s.current ? s.current[0] : void 0)), t = null;
+ if (kc(e, s.current)) {
+ for (let n of Wc.traverse()) n.scopeRef && kc(e, n.scopeRef.current) && (t = n);
+ t === Wc.getTreeNode(s) && (bc = t.scopeRef);
+ }
+ }, [s]), V(() => () => {
+ let e = Wc.getTreeNode(s)?.parent?.scopeRef ?? null;
+ (s === bc || Mc(s, bc)) && (!e || Wc.getTreeNode(e)) && (bc = e), Wc.removeTreeNode(s);
}, [s]);
- let u = (0, v.useMemo)(() => Qc(s), []), d = (0, v.useMemo)(() => ({
+ let u = (0, _.useMemo)(() => Sc(s), []), d = (0, _.useMemo)(() => ({
focusManager: u,
parentNode: l
}), [l, u]);
- return /*#__PURE__*/ v.createElement(Jc.Provider, { value: d }, /*#__PURE__*/ v.createElement("span", {
+ return /*#__PURE__*/ _.createElement(vc.Provider, { value: d }, /*#__PURE__*/ _.createElement("span", {
"data-focus-scope-start": !0,
hidden: !0,
ref: a
- }), t, /*#__PURE__*/ v.createElement("span", {
+ }), t, /*#__PURE__*/ _.createElement("span", {
"data-focus-scope-end": !0,
hidden: !0,
ref: o
}));
}
-function Qc(e) {
+function Sc(e) {
return {
focusNext(t = {}) {
- let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || Xn(W(n[0] ?? void 0)), c = n[0].previousElementSibling, l = _l($c(n), {
+ let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || bn(W(n[0] ?? void 0)), c = n[0].previousElementSibling, l = Vc(Cc(n), {
tabbable: i,
accept: o
}, n);
- l.currentNode = al(s, n) ? s : c;
+ l.currentNode = kc(s, n) ? s : c;
let u = l.nextNode();
- return !u && a && (l.currentNode = c, u = l.nextNode()), u && ll(u, !0), u;
+ return !u && a && (l.currentNode = c, u = l.nextNode()), u && Nc(u, !0), u;
},
focusPrevious(t = {}) {
- let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || Xn(W(n[0] ?? void 0)), c = n[n.length - 1].nextElementSibling, l = _l($c(n), {
+ let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || bn(W(n[0] ?? void 0)), c = n[n.length - 1].nextElementSibling, l = Vc(Cc(n), {
tabbable: i,
accept: o
}, n);
- l.currentNode = al(s, n) ? s : c;
+ l.currentNode = kc(s, n) ? s : c;
let u = l.previousNode();
- return !u && a && (l.currentNode = c, u = l.previousNode()), u && ll(u, !0), u;
+ return !u && a && (l.currentNode = c, u = l.previousNode()), u && Nc(u, !0), u;
},
focusFirst(t = {}) {
- let n = e.current, { tabbable: r, accept: i } = t, a = _l($c(n), {
+ let n = e.current, { tabbable: r, accept: i } = t, a = Vc(Cc(n), {
tabbable: r,
accept: i
}, n);
a.currentNode = n[0].previousElementSibling;
let o = a.nextNode();
- return o && ll(o, !0), o;
+ return o && Nc(o, !0), o;
},
focusLast(t = {}) {
- let n = e.current, { tabbable: r, accept: i } = t, a = _l($c(n), {
+ let n = e.current, { tabbable: r, accept: i } = t, a = Vc(Cc(n), {
tabbable: r,
accept: i
}, n);
a.currentNode = n[n.length - 1].nextElementSibling;
let o = a.previousNode();
- return o && ll(o, !0), o;
+ return o && Nc(o, !0), o;
}
};
}
-function $c(e) {
+function Cc(e) {
return e[0].parentElement;
}
-function el(e) {
- let t = bl.getTreeNode(Xc);
+function wc(e) {
+ let t = Wc.getTreeNode(bc);
for (; t && t.scopeRef !== e;) {
if (t.contain) return !1;
t = t.parent;
}
return !0;
}
-function tl(e) {
+function Tc(e) {
if (!e.form) return Array.from(W(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter((e) => !e.form);
- let t = e.form.elements.namedItem(e.name), n = Vn(e);
+ let t = e.form.elements.namedItem(e.name), n = dn(e);
return t instanceof n.RadioNodeList ? Array.from(t).filter((e) => e instanceof n.HTMLInputElement) : t instanceof n.HTMLInputElement ? [t] : [];
}
-function nl(e) {
+function Ec(e) {
if (e.checked) return !0;
- let t = tl(e);
+ let t = Tc(e);
return t.length > 0 && !t.some((e) => e.checked);
}
-function rl(e, t) {
- let n = (0, v.useRef)(void 0), r = (0, v.useRef)(void 0);
- H(() => {
+function Dc(e, t) {
+ let n = (0, _.useRef)(void 0), r = (0, _.useRef)(void 0);
+ V(() => {
let i = e.current;
if (!t) {
r.current &&= (cancelAnimationFrame(r.current), void 0);
return;
}
let a = W(i ? i[0] : void 0), o = (t) => {
- if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !el(e) || t.isComposing) return;
- let n = Xn(a), r = e.current;
- if (!r || !al(n, r)) return;
- let i = _l($c(r), { tabbable: !0 }, r);
+ if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !wc(e) || t.isComposing) return;
+ let n = bn(a), r = e.current;
+ if (!r || !kc(n, r)) return;
+ let i = Vc(Cc(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 && (ll(o, !0), o instanceof Vn(o).HTMLInputElement && o.select());
+ o ||= (i.currentNode = t.shiftKey ? r[r.length - 1].nextElementSibling : r[0].previousElementSibling, t.shiftKey ? i.previousNode() : i.nextNode()), t.preventDefault(), o && (Nc(o, !0), o instanceof dn(o).HTMLInputElement && o.select());
}, s = (t) => {
- (!Xc || cl(Xc, e)) && al(K(t), e.current) ? (Xc = e, n.current = K(t)) : el(e) && !ol(K(t), e) ? n.current ? ll(n.current) : Xc && Xc.current && dl(Xc.current) : el(e) && (n.current = K(t));
+ (!bc || Mc(bc, e)) && kc(K(t), e.current) ? (bc = e, n.current = K(t)) : wc(e) && !Ac(K(t), e) ? n.current ? Nc(n.current) : bc && bc.current && Fc(bc.current) : wc(e) && (n.current = K(t));
}, c = (t) => {
r.current && cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
- let r = oi(), i = (r === "virtual" || r === null) && Nr() && Mr(), o = Xn(a);
- if (!i && o && el(e) && !ol(o, e)) {
- Xc = e;
+ let r = Ar(), i = (r === "virtual" || r === null) && rr() && nr(), o = bn(a);
+ if (!i && o && wc(e) && !Ac(o, e)) {
+ bc = e;
let r = K(t);
- r && r.isConnected ? (n.current = r, ll(n.current)) : Xc.current && dl(Xc.current);
+ r && r.isConnected ? (n.current = r, Nc(n.current)) : bc.current && Fc(bc.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]), H(() => () => {
+ }, [e, t]), V(() => () => {
r.current && cancelAnimationFrame(r.current);
}, [r]);
}
-function il(e) {
- return ol(e);
+function Oc(e) {
+ return Ac(e);
}
-function al(e, t) {
+function kc(e, t) {
return !e || !t ? !1 : t.some((t) => G(t, e));
}
-function ol(e, t = null) {
+function Ac(e, t = null) {
if (e instanceof Element && e.closest("[data-react-aria-top-layer]")) return !0;
- for (let { scopeRef: n } of bl.traverse(bl.getTreeNode(t))) if (n && al(e, n.current)) return !0;
+ for (let { scopeRef: n } of Wc.traverse(Wc.getTreeNode(t))) if (n && kc(e, n.current)) return !0;
return !1;
}
-function sl(e) {
- return ol(e, Xc);
+function jc(e) {
+ return Ac(e, bc);
}
-function cl(e, t) {
- let n = bl.getTreeNode(t)?.parent;
+function Mc(e, t) {
+ let n = Wc.getTreeNode(t)?.parent;
for (; n;) {
if (n.scopeRef === e) return !0;
n = n.parent;
}
return !1;
}
-function ll(e, t = !1) {
+function Nc(e, t = !1) {
if (e != null && !t) try {
- ca(e);
+ Ni(e);
} catch {}
else if (e != null) try {
e.focus();
} catch {}
}
-function ul(e, t = !0) {
- let n = e[0].previousElementSibling, r = $c(e), i = _l(r, { tabbable: t }, e);
+function Pc(e, t = !0) {
+ let n = e[0].previousElementSibling, r = Cc(e), i = Vc(r, { tabbable: t }, e);
i.currentNode = n;
let a = i.nextNode();
- return t && !a && (r = $c(e), i = _l(r, { tabbable: !1 }, e), i.currentNode = n, a = i.nextNode()), a;
+ return t && !a && (r = Cc(e), i = Vc(r, { tabbable: !1 }, e), i.currentNode = n, a = i.nextNode()), a;
}
-function dl(e, t = !0) {
- ll(ul(e, t));
+function Fc(e, t = !0) {
+ Nc(Pc(e, t));
}
-function fl(e, t) {
- let n = v.useRef(t);
- (0, v.useEffect)(() => {
- n.current && (Xc = e, !al(Xn(W(e.current ? e.current[0] : void 0)), Xc.current) && e.current && dl(e.current)), n.current = !1;
+function Ic(e, t) {
+ let n = _.useRef(t);
+ (0, _.useEffect)(() => {
+ n.current && (bc = e, !kc(bn(W(e.current ? e.current[0] : void 0)), bc.current) && e.current && Fc(e.current)), n.current = !1;
}, [e]);
}
-function pl(e, t, n) {
- H(() => {
+function Lc(e, t, n) {
+ V(() => {
if (t || n) return;
let r = e.current, i = W(r ? r[0] : void 0), a = (t) => {
let n = K(t);
- al(n, e.current) ? Xc = e : il(n) || (Xc = null);
+ kc(n, e.current) ? bc = e : Oc(n) || (bc = 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));
@@ -15386,43 +14994,43 @@ function pl(e, t, n) {
n
]);
}
-function ml(e) {
- let t = bl.getTreeNode(Xc);
+function Rc(e) {
+ let t = Wc.getTreeNode(bc);
for (; t && t.scopeRef !== e;) {
if (t.nodeToRestore) return !1;
t = t.parent;
}
return t?.scopeRef === e;
}
-function hl(e, t, n) {
- let r = (0, v.useRef)(typeof document < "u" ? Xn(W(e.current ? e.current[0] : void 0)) : null);
- H(() => {
+function zc(e, t, n) {
+ let r = (0, _.useRef)(typeof document < "u" ? bn(W(e.current ? e.current[0] : void 0)) : null);
+ V(() => {
let r = e.current, i = W(r ? r[0] : void 0);
if (!t || n) return;
let a = () => {
- (!Xc || cl(Xc, e)) && al(Xn(i), e.current) && (Xc = e);
+ (!bc || Mc(bc, e)) && kc(bn(i), e.current) && (bc = 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]), H(() => {
+ }, [e, n]), V(() => {
let r = W(e.current ? e.current[0] : void 0);
if (!t) return;
let i = (t) => {
- if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !el(e) || t.isComposing) return;
+ if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !wc(e) || t.isComposing) return;
let n = r.activeElement;
- if (!ol(n, e) || !ml(e)) return;
- let i = bl.getTreeNode(e);
+ if (!Ac(n, e) || !Rc(e)) return;
+ let i = Wc.getTreeNode(e);
if (!i) return;
- let a = i.nodeToRestore, o = _l(r.body, { tabbable: !0 });
+ let a = i.nodeToRestore, o = Vc(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 || !ol(s, e)) && a) {
+ if ((!a || !a.isConnected || a === r.body) && (a = void 0, i.nodeToRestore = void 0), (!s || !Ac(s, e)) && a) {
o.currentNode = a;
do
s = t.shiftKey ? o.previousNode() : o.nextNode();
- while (ol(s, e));
- t.preventDefault(), t.stopPropagation(), s ? ll(s, !0) : il(a) ? ll(a, !0) : n.blur();
+ while (Ac(s, e));
+ t.preventDefault(), t.stopPropagation(), s ? Nc(s, !0) : Oc(a) ? Nc(a, !0) : n.blur();
}
};
return n || r.addEventListener("keydown", i, !0), () => {
@@ -15432,31 +15040,31 @@ function hl(e, t, n) {
e,
t,
n
- ]), H(() => {
+ ]), V(() => {
let n = W(e.current ? e.current[0] : void 0);
if (!t) return;
- let i = bl.getTreeNode(e);
+ let i = Wc.getTreeNode(e);
if (i) return i.nodeToRestore = r.current ?? void 0, () => {
- let r = bl.getTreeNode(e);
+ let r = Wc.getTreeNode(e);
if (!r) return;
- let i = r.nodeToRestore, a = Xn(n);
- if (t && i && (a && ol(a, e) || a === n.body && ml(e))) {
- let t = bl.clone();
+ let i = r.nodeToRestore, a = bn(n);
+ if (t && i && (a && Ac(a, e) || a === n.body && Rc(e))) {
+ let t = Wc.clone();
requestAnimationFrame(() => {
if (n.activeElement === n.body) {
let n = t.getTreeNode(e);
for (; n;) {
if (n.nodeToRestore && n.nodeToRestore.isConnected) {
- gl(n.nodeToRestore);
+ Bc(n.nodeToRestore);
return;
}
n = n.parent;
}
for (n = t.getTreeNode(e); n;) {
- if (n.scopeRef && n.scopeRef.current && bl.getTreeNode(n.scopeRef)) {
- let e = ul(n.scopeRef.current, !0);
+ if (n.scopeRef && n.scopeRef.current && Wc.getTreeNode(n.scopeRef)) {
+ let e = Pc(n.scopeRef.current, !0);
if (e) {
- gl(e);
+ Bc(e);
return;
}
}
@@ -15468,21 +15076,21 @@ function hl(e, t, n) {
};
}, [e, t]);
}
-function gl(e) {
- e.dispatchEvent(new CustomEvent(Yc, {
+function Bc(e) {
+ e.dispatchEvent(new CustomEvent(yc, {
bubbles: !0,
cancelable: !0
- })) && ll(e);
+ })) && Nc(e);
}
-function _l(e, t, n) {
- let r = t?.tabbable ? gr : hr, i = W(e?.nodeType === Node.ELEMENT_NODE ? e : null), a = qc(i, e || i, NodeFilter.SHOW_ELEMENT, { acceptNode(e) {
- return G(t?.from, e) || t?.tabbable && e.tagName === "INPUT" && e.getAttribute("type") === "radio" && (!nl(e) || a.currentNode.tagName === "INPUT" && a.currentNode.type === "radio" && a.currentNode.name === e.name) ? NodeFilter.FILTER_REJECT : r(e) && (!n || al(e, n)) && (!t?.accept || t.accept(e)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
+function Vc(e, t, n) {
+ let r = t?.tabbable ? Bn : zn, i = W(e?.nodeType === Node.ELEMENT_NODE ? e : null), a = _c(i, e || i, NodeFilter.SHOW_ELEMENT, { acceptNode(e) {
+ return G(t?.from, e) || t?.tabbable && e.tagName === "INPUT" && e.getAttribute("type") === "radio" && (!Ec(e) || a.currentNode.tagName === "INPUT" && a.currentNode.type === "radio" && a.currentNode.name === e.name) ? NodeFilter.FILTER_REJECT : r(e) && (!n || kc(e, n)) && (!t?.accept || t.accept(e)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
} });
return t?.from && (a.currentNode = t.from), a;
}
-var vl = class e {
+var Hc = class e {
constructor() {
- this.fastMap = /* @__PURE__ */ new Map(), this.root = new yl({ scopeRef: null }), this.fastMap.set(null, this.root);
+ this.fastMap = /* @__PURE__ */ new Map(), this.root = new Uc({ scopeRef: null }), this.fastMap.set(null, this.root);
}
get size() {
return this.fastMap.size;
@@ -15493,7 +15101,7 @@ var vl = class e {
addTreeNode(e, t, n) {
let r = this.fastMap.get(t ?? null);
if (!r) return;
- let i = new yl({ scopeRef: e });
+ let i = new Uc({ scopeRef: e });
r.addChild(i), i.parent = r, this.fastMap.set(e, i), n && (i.nodeToRestore = n);
}
addNode(e) {
@@ -15504,7 +15112,7 @@ var vl = class e {
let t = this.fastMap.get(e);
if (!t) return;
let n = t.parent;
- for (let e of this.traverse()) e !== t && t.nodeToRestore && e.nodeToRestore && t.scopeRef && t.scopeRef.current && al(e.nodeToRestore, t.scopeRef.current) && (e.nodeToRestore = t.nodeToRestore);
+ for (let e of this.traverse()) e !== t && t.nodeToRestore && e.nodeToRestore && t.scopeRef && t.scopeRef.current && kc(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);
}
@@ -15516,7 +15124,7 @@ var vl = class e {
for (let e of this.traverse()) t.addTreeNode(e.scopeRef, e.parent?.scopeRef ?? null, e.nodeToRestore);
return t;
}
-}, yl = class {
+}, Uc = class {
constructor(e) {
this.children = /* @__PURE__ */ new Set(), this.contain = !1, this.scopeRef = e.scopeRef;
}
@@ -15526,33 +15134,33 @@ var vl = class e {
removeChild(e) {
this.children.delete(e), e.parent = void 0;
}
-}, bl = new vl();
+}, Wc = new Hc();
//#endregion
//#region node_modules/react-aria/dist/private/selection/utils.mjs
-function xl(e) {
- return Ar() ? e.altKey : e.ctrlKey;
+function Gc(e) {
+ return er() ? e.altKey : e.ctrlKey;
}
-function Sl(e, t) {
+function Kc(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 Cl = /* @__PURE__ */ new WeakMap();
-function wl(e) {
- let t = xn();
- return Cl.set(e, t), t;
+var qc = /* @__PURE__ */ new WeakMap();
+function Jc(e) {
+ let t = Wt();
+ return qc.set(e, t), t;
}
-function Tl(e) {
- return Cl.get(e);
+function Yc(e) {
+ return qc.get(e);
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/useTypeSelect.mjs
-var El = 1e3;
-function Dl(e) {
- let { keyboardDelegate: t, selectionManager: n, onTypeSelect: r } = e, i = (0, v.useRef)({
+var Xc = 1e3;
+function Zc(e) {
+ let { keyboardDelegate: t, selectionManager: n, onTypeSelect: r } = e, i = (0, _.useRef)({
search: "",
timeout: void 0
});
- return (0, v.useEffect)(() => {
+ return (0, _.useEffect)(() => {
let e = i.current.timeout;
return () => {
clearTimeout(e);
@@ -15566,11 +15174,11 @@ function Dl(e) {
}
clearTimeout(i.current.timeout), i.current.timeout = setTimeout(() => {
i.current.search = "";
- }, El);
+ }, Xc);
}
} : void 0,
onKeyDown: t.getKeyForSearch ? (e) => {
- let a = Ol(e.key);
+ let a = Qc(e.key);
if (!(!a || e.ctrlKey || e.metaKey || e.altKey || !G(e.currentTarget, K(e)) || i.current.search.length === 0 && a === " ")) {
if (i.current.search += a, t.getKeyForSearch != null) {
let a = t.getKeyForSearch(i.current.search, n.focusedKey);
@@ -15582,36 +15190,36 @@ function Dl(e) {
}
clearTimeout(i.current.timeout), i.current.timeout = setTimeout(() => {
i.current.search = "";
- }, El);
+ }, Xc);
}
} : void 0
} };
}
-function Ol(e) {
+function Qc(e) {
return e.length === 1 || !/^[A-Z]/i.test(e) ? e : "";
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useUpdateLayoutEffect.mjs
-function kl(e, t) {
- let n = (0, v.useRef)(!0), r = (0, v.useRef)(null);
- H(() => (n.current = !0, () => {
+function $c(e, t) {
+ let n = (0, _.useRef)(!0), r = (0, _.useRef)(null);
+ V(() => (n.current = !0, () => {
n.current = !1;
- }), []), H(() => {
+ }), []), V(() => {
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 Al(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 } = Oi(), _ = Rr(), y = (e, n, i) => {
+function el(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 } = Qr(), v = cr(), y = (e, n, i) => {
if (n != null) {
- if (t.isLink(n) && m === "selection" && l && !xl(e)) {
- (0, Pa.flushSync)(() => {
+ if (t.isLink(n) && m === "selection" && l && !Gc(e)) {
+ (0, ia.flushSync)(() => {
t.setFocusedKey(n, i);
});
- let a = Sl(r, n), o = t.getItemProps(n);
+ let a = Kc(r, n), o = t.getItemProps(n);
if (a) {
- _.open(a, e, o.href, o.routerOptions);
+ v.open(a, e, o.href, o.routerOptions);
return;
}
return !1;
@@ -15621,7 +15229,7 @@ function Al(e) {
t.extendSelection(n);
return;
}
- if (l && !xl(e)) {
+ if (l && !Gc(e)) {
t.replaceSelection(n);
return;
}
@@ -15648,9 +15256,9 @@ function Al(e) {
}, S = (e) => {
if (n.getFirstKey) {
if (t.focusedKey === null && e.shiftKey) return !1;
- let r = n.getFirstKey(t.focusedKey, di(e));
+ let r = n.getFirstKey(t.focusedKey, Fr(e));
if (t.setFocusedKey(r), r != null) {
- if (di(e) && e.shiftKey && t.selectionMode === "multiple") {
+ if (Fr(e) && e.shiftKey && t.selectionMode === "multiple") {
t.extendSelection(r);
return;
}
@@ -15682,9 +15290,9 @@ function Al(e) {
}, T = (e) => {
if (n.getLastKey) {
if (t.focusedKey === null && e.shiftKey) return !1;
- let r = n.getLastKey(t.focusedKey, di(e));
+ let r = n.getLastKey(t.focusedKey, Fr(e));
if (t.setFocusedKey(r), r != null) {
- if (di(e) && e.shiftKey && t.selectionMode === "multiple") {
+ if (Fr(e) && e.shiftKey && t.selectionMode === "multiple") {
t.extendSelection(r);
return;
}
@@ -15721,12 +15329,12 @@ function Al(e) {
return !1;
}, A = () => {
if (!f && r.current) {
- let e = _l(r.current, { tabbable: !0 }), t, n;
+ let e = Vc(r.current, { tabbable: !0 }), t, n;
do
n = e.lastChild(), n && (t = n);
while (n);
- let i = Xn();
- t && (!Qn(t) || i && !gr(i)) && rr(t);
+ let i = bn();
+ t && (!Sn(t) || i && !Bn(i)) && Dn(t);
}
return {
shouldContinuePropagation: !0,
@@ -15736,11 +15344,11 @@ function Al(e) {
shouldContinuePropagation: !0,
shouldPreventDefault: !1
}), M = (e, t) => ({
- [Er() ? e + "+Shift+Alt" : e + "+Shift+Control"]: t,
+ [Xn() ? e + "+Shift+Alt" : e + "+Shift+Control"]: t,
[e + "+Shift"]: t,
- [Er() ? e + "+Alt" : e + "+Control"]: t,
+ [Xn() ? e + "+Alt" : e + "+Control"]: t,
[e]: t
- }), { keyboardProps: ee } = Ca({
+ }), { keyboardProps: ee } = Ji({
shortcuts: {
...M("ArrowDown", b),
...M("ArrowUp", x),
@@ -15750,18 +15358,18 @@ function Al(e) {
...M("PageUp", D)
},
allowRepeats: !0
- }), { keyboardProps: te } = Ca({ shortcuts: {
+ }), { keyboardProps: te } = Ji({ shortcuts: {
...M("Home", S),
...M("End", T),
"Mod+A": O,
Escape: k,
Tab: A,
"Tab+Shift": j
- } }), N = (0, v.useRef)({
+ } }), N = (0, _.useRef)({
top: 0,
left: 0
});
- gi(p, "scroll", () => {
+ Br(p, "scroll", () => {
N.current = {
top: p.current?.scrollTop ?? 0,
left: p.current?.scrollLeft ?? 0
@@ -15773,7 +15381,7 @@ function Al(e) {
return;
}
if (!G(e.currentTarget, K(e))) return;
- let i = oi();
+ let i = Ar();
t.setFocused(!0);
let a = (e) => {
e != null && (t.setFocusedKey(e), l && !t.isSelected(e) && t.replaceSelection(e));
@@ -15784,31 +15392,31 @@ function Al(e) {
r && e.currentTarget.compareDocumentPosition(r) & Node.DOCUMENT_POSITION_FOLLOWING ? a(t.lastSelectedKey ?? n.getLastKey?.()) : a(t.firstSelectedKey ?? n.getFirstKey?.());
} else p.current && (p.current.scrollTop = N.current.top, p.current.scrollLeft = N.current.left);
if (t.focusedKey != null && p.current) {
- let e = Sl(r, t.focusedKey);
- e instanceof HTMLElement && (!Qn(e) && !d && rr(e), (i === "keyboard" || h && i === "virtual") && ss(e, { containingElement: r.current }));
+ let e = Kc(r, t.focusedKey);
+ e instanceof HTMLElement && (!Sn(e) && !d && Dn(e), (i === "keyboard" || h && i === "virtual") && Mo(e, { containingElement: r.current }));
}
}, ne = (e) => {
G(e.currentTarget, e.relatedTarget) || t.setFocused(!1);
- }, re = (0, v.useRef)(!1);
- gi(r, Bn, d ? (e) => {
+ }, re = (0, _.useRef)(!1);
+ Br(r, un, d ? (e) => {
let { detail: n } = e;
e.stopPropagation(), t.setFocused(!0), n?.focusStrategy === "first" && (re.current = !0);
} : void 0);
let ie = n.getFirstKey?.() ?? null;
- kl(() => {
+ $c(() => {
if (re.current) {
if (ie == null) {
- let e = Xn();
- $n(r.current), tr(e, null), t.collection.size > 0 && (re.current = !1);
+ let e = bn();
+ Cn(r.current), Tn(e, null), t.collection.size > 0 && (re.current = !1);
} else t.setFocusedKey(ie), re.current = !1;
}
- }, [ie, t.collection.size]), kl(() => {
+ }, [ie, t.collection.size]), $c(() => {
t.collection.size > 0 && (re.current = !1);
- }, [t.focusedKey]), gi(r, zn, d ? (e) => {
+ }, [t.focusedKey]), Br(r, ln, d ? (e) => {
e.stopPropagation(), t.setFocused(!1), e.detail?.clearFocusKey && t.setFocusedKey(null);
} : void 0);
- let ae = (0, v.useRef)(i), oe = (0, v.useRef)(!1);
- (0, v.useEffect)(() => {
+ let ae = (0, _.useRef)(i), oe = (0, _.useRef)(!1);
+ (0, _.useEffect)(() => {
if (ae.current) {
let e = null;
i === "first" && (e = n.getFirstKey?.() ?? null), i === "last" && (e = n.getLastKey?.() ?? null);
@@ -15819,22 +15427,22 @@ function Al(e) {
break;
}
}
- t.setFocused(!0), t.setFocusedKey(e), e != null && l && !a.size && t.canSelectItem(e) && t.replaceSelection(e), e == null && !d && r.current && ca(r.current), t.collection.size > 0 && (ae.current = !1, oe.current = !0);
+ t.setFocused(!0), t.setFocusedKey(e), e != null && l && !a.size && t.canSelectItem(e) && t.replaceSelection(e), e == null && !d && r.current && Ni(r.current), t.collection.size > 0 && (ae.current = !1, oe.current = !0);
}
});
- let se = (0, v.useRef)(t.focusedKey), ce = (0, v.useRef)(null);
- (0, v.useEffect)(() => {
+ let se = (0, _.useRef)(t.focusedKey), ce = (0, _.useRef)(null);
+ (0, _.useEffect)(() => {
if (t.isFocused && t.focusedKey != null && (t.focusedKey !== se.current || oe.current) && p.current && r.current) {
- let e = oi(), n = Sl(r, t.focusedKey);
+ let e = Ar(), n = Kc(r, t.focusedKey);
if (!(n instanceof HTMLElement)) return;
(e === "keyboard" || oe.current) && (ce.current && cancelAnimationFrame(ce.current), ce.current = requestAnimationFrame(() => {
- p.current && (as(p.current, n), e !== "virtual" && ss(n, { containingElement: r.current }));
+ p.current && (Ao(p.current, n), e !== "virtual" && Mo(n, { containingElement: r.current }));
}));
}
- !d && t.isFocused && t.focusedKey == null && se.current != null && r.current && ca(r.current), se.current = t.focusedKey, oe.current = !1;
- }), (0, v.useEffect)(() => () => {
+ !d && t.isFocused && t.focusedKey == null && se.current != null && r.current && Ni(r.current), se.current = t.focusedKey, oe.current = !1;
+ }), (0, _.useEffect)(() => () => {
ce.current && cancelAnimationFrame(ce.current);
- }, []), gi(r, "react-aria-focus-scope-restore", (e) => {
+ }, []), Br(r, "react-aria-focus-scope-restore", (e) => {
e.preventDefault(), t.setFocused(!0);
});
let le = {
@@ -15844,14 +15452,14 @@ function Al(e) {
onMouseDown(e) {
p.current === K(e) && e.preventDefault();
}
- }, { typeSelectProps: ue } = Dl({
+ }, { typeSelectProps: ue } = Zc({
keyboardDelegate: n,
selectionManager: t
});
u || (le = U(ue, le));
let de;
d || (de = t.focusedKey == null ? 0 : -1);
- let fe = wl(t.collection);
+ let fe = Jc(t.collection);
return { collectionProps: U(le, {
tabIndex: de,
"data-collection": fe
@@ -15859,14 +15467,14 @@ function Al(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/DOMLayoutDelegate.mjs
-var jl = class {
+var tl = class {
constructor(e) {
this.ref = e;
}
getItemRect(e) {
let t = this.ref.current;
if (!t) return null;
- let n = e == null ? null : Sl(this.ref, e);
+ let n = e == null ? null : Kc(this.ref, e);
if (!n) return null;
let r = t.getBoundingClientRect(), i = n.getBoundingClientRect();
return {
@@ -15892,12 +15500,12 @@ var jl = class {
height: e?.clientHeight ?? 0
};
}
-}, Ml = class {
+}, nl = 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 jl(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 jl(this.ref);
+ this.collection = t.collection, this.ref = t.ref, this.collator = t.collator, this.disabledKeys = t.disabledKeys || /* @__PURE__ */ new Set(), this.disabledBehavior = t.disabledBehavior || "all", this.orientation = t.orientation || "vertical", this.direction = t.direction, this.layout = t.layout || "stack", this.layoutDelegate = t.layoutDelegate || new tl(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 tl(this.ref);
this.layout === "stack" && this.orientation === "vertical" && (this.getKeyLeftOf = void 0, this.getKeyRightOf = void 0);
}
isDisabled(e) {
@@ -15937,14 +15545,14 @@ var jl = class {
return e.x === t.x || e.y !== t.y;
}
isReversed(e) {
- let t = this.getNextKey(e), n = Sl(this.ref, e);
+ let t = this.getNextKey(e), n = Kc(this.ref, e);
if (t != null) {
- let e = Sl(this.ref, t);
+ let e = Kc(this.ref, t);
return !n || !e ? !1 : n.getBoundingClientRect().top > e.getBoundingClientRect().top;
}
let r = this.getPreviousKey(e);
if (r != null) {
- let e = Sl(this.ref, r);
+ let e = Kc(this.ref, r);
return !n || !e ? !1 : e.getBoundingClientRect().top > n.getBoundingClientRect().top;
}
return !1;
@@ -15978,7 +15586,7 @@ var jl = class {
let t = this.ref.current, n = this.layoutDelegate.getItemRect(e);
if (!n) return null;
let r = this.isReversed(e);
- if (t && !ns(t)) return this.getFirstKey();
+ if (t && !Do(t)) return this.getFirstKey();
let i = e;
if (this.orientation === "horizontal") {
let e = Math.max(0, n.x + n.width - this.layoutDelegate.getVisibleRect().width);
@@ -15993,7 +15601,7 @@ var jl = class {
let t = this.ref.current, n = this.layoutDelegate.getItemRect(e);
if (!n) return null;
let r = this.isReversed(e);
- if (t && !ns(t)) return this.getLastKey();
+ if (t && !Do(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);
@@ -16016,20 +15624,20 @@ var jl = class {
}
return null;
}
-}, Nl = /* @__PURE__ */ new Map();
-function Pl(e) {
- let { locale: t } = Oi(), n = t + (e ? Object.entries(e).sort((e, t) => e[0] < t[0] ? -1 : 1).join() : "");
- if (Nl.has(n)) return Nl.get(n);
+}, rl = /* @__PURE__ */ new Map();
+function il(e) {
+ let { locale: t } = Qr(), n = t + (e ? Object.entries(e).sort((e, t) => e[0] < t[0] ? -1 : 1).join() : "");
+ if (rl.has(n)) return rl.get(n);
let r = new Intl.Collator(t, e);
- return Nl.set(n, r), r;
+ return rl.set(n, r), r;
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/useSelectableList.mjs
-function Fl(e) {
- let { selectionManager: t, collection: n, disabledKeys: r, ref: i, keyboardDelegate: a, layoutDelegate: o, orientation: s } = e, c = Pl({
+function al(e) {
+ let { selectionManager: t, collection: n, disabledKeys: r, ref: i, keyboardDelegate: a, layoutDelegate: o, orientation: s } = e, c = il({
usage: "search",
sensitivity: "base"
- }), l = t.disabledBehavior, u = (0, v.useMemo)(() => a || new Ml({
+ }), l = t.disabledBehavior, u = (0, _.useMemo)(() => a || new nl({
collection: n,
disabledKeys: r,
disabledBehavior: l,
@@ -16046,7 +15654,7 @@ function Fl(e) {
c,
l,
s
- ]), { collectionProps: d } = Al({
+ ]), { collectionProps: d } = el({
...e,
ref: i,
selectionManager: t,
@@ -16056,22 +15664,22 @@ function Fl(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/listbox/useListBox.mjs
-function Il(e, t, n) {
- let r = co(e, { labelable: !0 }), i = e.selectionBehavior || "toggle", a = e.orientation || "vertical", o = e.linkBehavior || (i === "replace" ? "action" : "override");
+function ol(e, t, n) {
+ let r = Ma(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 } = Fl({
+ let { listProps: s } = al({
...e,
ref: n,
selectionManager: t.selectionManager,
collection: t.collection,
disabledKeys: t.disabledKeys,
linkBehavior: o
- }), { focusWithinProps: c } = No({
+ }), { focusWithinProps: c } = no({
onFocusWithin: e.onFocus,
onBlurWithin: e.onBlur,
onFocusWithinChange: e.onFocusChange
- }), l = xn(e.id);
- Uc.set(t, {
+ }), l = Wt(e.id);
+ pc.set(t, {
id: l,
shouldUseVirtualFocus: e.shouldUseVirtualFocus,
shouldSelectOnPressUp: e.shouldSelectOnPressUp,
@@ -16081,7 +15689,7 @@ function Il(e, t, n) {
linkBehavior: o,
UNSTABLE_itemBehavior: e.UNSTABLE_itemBehavior
});
- let { labelProps: u, fieldProps: d } = Ho({
+ let { labelProps: u, fieldProps: d } = po({
...e,
id: l,
labelElementType: "span"
@@ -16097,9 +15705,9 @@ function Il(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useLongPress.mjs
-var Ll = 500;
-function Rl(e) {
- let { isDisabled: t, pointerType: n, onLongPressStart: r, onLongPressEnd: i, onLongPress: a, threshold: o = Ll, accessibilityDescription: s } = e, c = (0, v.useRef)(void 0), { addGlobalListener: l, removeAllGlobalListeners: u } = yo(), d = (e) => n ? e.pointerType === n : e.pointerType === "mouse" || e.pointerType === "touch", { pressProps: f } = To({
+var sl = 500;
+function cl(e) {
+ let { isDisabled: t, pointerType: n, onLongPressStart: r, onLongPressEnd: i, onLongPress: a, threshold: o = sl, accessibilityDescription: s } = e, c = (0, _.useRef)(void 0), { addGlobalListener: l, removeAllGlobalListeners: u } = Ha(), d = (e) => n ? e.pointerType === n : e.pointerType === "mouse" || e.pointerType === "touch", { pressProps: f } = Ja({
isDisabled: t,
onPressStart(e) {
if (e.continuePropagation(), d(e)) {
@@ -16107,12 +15715,12 @@ function Rl(e) {
...e,
type: "longpressstart"
}), c.current = setTimeout(() => {
- e.target.dispatchEvent(new PointerEvent("pointercancel", { bubbles: !0 })), l(e.target, "click", (e) => e.preventDefault(), { once: !0 }), W(e.target).activeElement !== e.target && rr(e.target), a && a({
+ e.target.dispatchEvent(new PointerEvent("pointercancel", { bubbles: !0 })), l(e.target, "click", (e) => e.preventDefault(), { once: !0 }), W(e.target).activeElement !== e.target && Dn(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 = Vn(e.target);
+ let t = dn(e.target);
l(t, "pointerup", () => {
setTimeout(() => {
u();
@@ -16127,15 +15735,15 @@ function Rl(e) {
});
}
});
- return { longPressProps: U(f, us(a && !t ? s : void 0)) };
+ return { longPressProps: U(f, Fo(a && !t ? s : void 0)) };
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/useSelectableItem.mjs
-function zl(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 = Rr();
- t = xn(t);
+function ll(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 = cr();
+ t = Wt(t);
let p = (e) => {
- if (e.pointerType === "keyboard" && xl(e)) n.toggleSelection(r);
+ if (e.pointerType === "keyboard" && Gc(e)) n.toggleSelection(r);
else {
if (n.selectionMode === "none") return;
if (n.isLink(r)) {
@@ -16146,11 +15754,11 @@ function zl(e) {
}
if (d === "override" || d === "none") return;
}
- n.selectionMode === "single" ? n.isSelected(r) && !n.disallowEmptySelection ? n.toggleSelection(r) : n.replaceSelection(r) : e && e.shiftKey ? n.extendSelection(r) : n.selectionBehavior === "toggle" || e && (di(e) || e.pointerType === "touch" || e.pointerType === "virtual") ? n.toggleSelection(r) : n.replaceSelection(r);
+ n.selectionMode === "single" ? n.isSelected(r) && !n.disallowEmptySelection ? n.toggleSelection(r) : n.replaceSelection(r) : e && e.shiftKey ? n.extendSelection(r) : n.selectionBehavior === "toggle" || e && (Fr(e) || e.pointerType === "touch" || e.pointerType === "virtual") ? n.toggleSelection(r) : n.replaceSelection(r);
}
};
- (0, v.useEffect)(() => {
- r === n.focusedKey && n.isFocused && (o ? $n(i.current) : s ? s() : Xn() !== i.current && i.current && ca(i.current));
+ (0, _.useEffect)(() => {
+ r === n.focusedKey && n.isFocused && (o ? Cn(i.current) : s ? s() : bn() !== i.current && i.current && Ni(i.current));
}, [
i,
r,
@@ -16167,33 +15775,33 @@ function zl(e) {
}
} : c && (m.onMouseDown = (e) => {
e.preventDefault();
- }), (0, v.useEffect)(() => {
+ }), (0, _.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", y = !c && n.canSelectItem(r) && !h && !g, b = (l || _) && !c, x = b && (n.selectionBehavior === "replace" ? !y : !y || n.isEmpty), S = b && y && n.selectionBehavior === "replace", C = x || S, w = (0, v.useRef)(null), T = C && y, E = (0, v.useRef)(!1), D = (0, v.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);
+ let h = n.isLink(r) && d === "override", g = l && e.UNSTABLE_itemBehavior === "action", v = n.isLink(r) && d !== "selection" && d !== "none", y = !c && n.canSelectItem(r) && !h && !g, b = (l || v) && !c, x = b && (n.selectionBehavior === "replace" ? !y : !y || n.isEmpty), S = b && y && n.selectionBehavior === "replace", C = x || S, w = (0, _.useRef)(null), T = C && y, E = (0, _.useRef)(!1), D = (0, _.useRef)(!1), O = n.getItemProps(r), k = (e) => {
+ l && (l(), i.current?.dispatchEvent(new CustomEvent("react-aria-item-action", { bubbles: !0 }))), v && 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" && (!C || Vl(e.key)) && p(e);
+ w.current = e.pointerType, E.current = T, e.pointerType === "keyboard" && (!C || dl(e.key)) && p(e);
}, u ? (A.onPressUp = x ? void 0 : (e) => {
e.pointerType === "mouse" && y && p(e);
}, A.onPress = x ? k : (e) => {
e.pointerType !== "keyboard" && e.pointerType !== "mouse" && y && p(e);
}) : A.onPress = (e) => {
if (x || S && e.pointerType !== "mouse") {
- if (e.pointerType === "keyboard" && !Bl(e.key)) return;
+ if (e.pointerType === "keyboard" && !ul(e.key)) return;
k(e);
} else e.pointerType !== "keyboard" && y && p(e);
}) : (A.onPressStart = (e) => {
- w.current = e.pointerType, E.current = T, D.current = x, y && (e.pointerType === "mouse" && !x || e.pointerType === "keyboard" && (!b || Vl(e.key))) && p(e);
+ w.current = e.pointerType, E.current = T, D.current = x, y && (e.pointerType === "mouse" && !x || e.pointerType === "keyboard" && (!b || dl(e.key))) && p(e);
}, A.onPress = (e) => {
- (e.pointerType === "touch" || e.pointerType === "pen" || e.pointerType === "virtual" || e.pointerType === "keyboard" && C && Bl(e.key) || e.pointerType === "mouse" && D.current) && (C ? k(e) : y && p(e));
+ (e.pointerType === "touch" || e.pointerType === "pen" || e.pointerType === "virtual" || e.pointerType === "keyboard" && C && ul(e.key) || e.pointerType === "mouse" && D.current) && (C ? k(e) : y && p(e));
});
- let j = Tl(n.collection);
+ let j = Yc(n.collection);
if (m["data-collection"] = j, m["data-key"] = r, A.preventFocusOnPress = o, o && (A = U(A, {
onPressStart(e) {
e.pointerType !== "touch" && (n.setFocused(!0), n.setFocusedKey(r));
@@ -16208,10 +15816,10 @@ function zl(e) {
"onPress",
"onPressUp",
"onClick"
- ]) O[e] && (A[e] = nn(A[e], O[e]));
- let { pressProps: M, isPressed: ee } = To(A), te = S ? (e) => {
+ ]) O[e] && (A[e] = Dt(A[e], O[e]));
+ let { pressProps: M, isPressed: ee } = Ja(A), te = S ? (e) => {
w.current === "mouse" && (e.stopPropagation(), e.preventDefault(), k(e));
- } : void 0, { longPressProps: N } = Rl({
+ } : void 0, { longPressProps: N } = cl({
isDisabled: !T,
onLongPress(e) {
e.pointerType === "touch" && (p(e), n.setSelectionBehavior("toggle"));
@@ -16219,7 +15827,7 @@ function zl(e) {
}), P = (e) => {
w.current === "touch" && E.current && e.preventDefault();
}, ne = d !== "none" && n.isLink(r) ? (e) => {
- zr.isOpening || e.preventDefault();
+ lr.isOpening || e.preventDefault();
} : void 0, re = U(m, y || x || o && !c ? M : {}, T ? N : {}, {
onDoubleClick: te,
onDragStartCapture: P,
@@ -16232,7 +15840,7 @@ function zl(e) {
if (e != null) return e !== j;
t = t.parentElement;
}
- return gr(e);
+ return Bn(e);
}, ae = re.onPointerDown;
re.onPointerDown = (e) => {
let t = K(e);
@@ -16260,21 +15868,21 @@ function zl(e) {
hasAction: C
};
}
-function Bl(e) {
+function ul(e) {
return e === "Enter";
}
-function Vl(e) {
+function dl(e) {
return e === " ";
}
//#endregion
//#region node_modules/react-stately/dist/private/collections/getChildNodes.mjs
-function Hl(e, t) {
+function fl(e, t) {
return typeof t.getChildren == "function" ? t.getChildren(e.key) : e.childNodes;
}
-function Ul(e) {
- return Wl(e, 0);
+function pl(e) {
+ return ml(e, 0);
}
-function Wl(e, t) {
+function ml(e, t) {
if (t < 0) return;
let n = 0;
for (let r of e) {
@@ -16282,31 +15890,31 @@ function Wl(e, t) {
n++;
}
}
-function Gl(e, t, n) {
+function hl(e, t, n) {
if (t.parentKey === n.parentKey) return t.index - n.index;
- let r = [...Kl(e, t), t], i = [...Kl(e, n), n], a = r.slice(0, i.length).findIndex((e, t) => e !== i[t]);
+ let r = [...gl(e, t), t], i = [...gl(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 Kl(e, t) {
+function gl(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 ql = /* @__PURE__ */ new WeakMap();
-function Jl(e) {
- let t = ql.get(e);
+var _l = /* @__PURE__ */ new WeakMap();
+function vl(e) {
+ let t = _l.get(e);
if (t != null) return t;
let n = 0, r = (t) => {
- for (let i of t) i.type === "section" ? r(Hl(i, e)) : i.type === "item" && n++;
+ for (let i of t) i.type === "section" ? r(fl(i, e)) : i.type === "item" && n++;
};
- return r(e), ql.set(e, n), n;
+ return r(e), _l.set(e, n), n;
}
//#endregion
//#region node_modules/react-aria/dist/private/listbox/useOption.mjs
-function Yl(e, t, n) {
- let { key: r } = e, i = Uc.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 = Cn(), f = Cn(), p = {
+function yl(e, t, n) {
+ let { key: r } = e, i = pc.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 = Kt(), f = Kt(), p = {
role: "option",
"aria-disabled": a || void 0,
"aria-selected": t.selectionManager.selectionMode === "none" ? void 0 : o,
@@ -16316,9 +15924,9 @@ function Yl(e, t, n) {
}, m = t.collection.getItem(r);
if (u) {
let e = Number(m?.index);
- p["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, p["aria-setsize"] = Jl(t.collection);
+ p["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, p["aria-setsize"] = vl(t.collection);
}
- let h = i?.onAction ? () => i?.onAction?.(r) : void 0, g = Gc(t, r), { itemProps: _, isPressed: v, isFocused: y, hasAction: b, allowsSelection: x } = zl({
+ let h = i?.onAction ? () => i?.onAction?.(r) : void 0, g = hc(t, r), { itemProps: _, isPressed: v, isFocused: y, hasAction: b, allowsSelection: x } = ll({
selectionManager: t.selectionManager,
key: r,
ref: n,
@@ -16327,18 +15935,18 @@ function Yl(e, t, n) {
isVirtualized: u,
shouldUseVirtualFocus: l,
isDisabled: a,
- onAction: h || m?.props?.onAction ? nn(m?.props?.onAction, h) : void 0,
+ onAction: h || m?.props?.onAction ? Dt(m?.props?.onAction, h) : void 0,
linkBehavior: i?.linkBehavior,
UNSTABLE_itemBehavior: i?.UNSTABLE_itemBehavior,
id: g
- }), { hoverProps: S } = zo({
+ }), { hoverProps: S } = lo({
isDisabled: a || !c,
onHoverStart() {
- ai() || (t.selectionManager.setFocused(!0), t.selectionManager.setFocusedKey(r));
+ kr() || (t.selectionManager.setFocused(!0), t.selectionManager.setFocusedKey(r));
}
- }), C = co(m?.props);
+ }), C = Ma(m?.props);
delete C.id;
- let w = Hr(m?.props);
+ let w = fr(m?.props);
return {
optionProps: {
...p,
@@ -16348,7 +15956,7 @@ function Yl(e, t, n) {
labelProps: { id: d },
descriptionProps: { id: f },
isFocused: y,
- isFocusVisible: y && t.selectionManager.isFocused && ai(),
+ isFocusVisible: y && t.selectionManager.isFocused && kr(),
isSelected: o,
isDisabled: a,
isPressed: v,
@@ -16358,8 +15966,8 @@ function Yl(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/listbox/useListBoxSection.mjs
-function Xl(e) {
- let { heading: t, "aria-label": n } = e, r = xn();
+function bl(e) {
+ let { heading: t, "aria-label": n } = e, r = Wt();
return {
itemProps: { role: "presentation" },
headingProps: t ? {
@@ -16378,13 +15986,13 @@ function Xl(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/inertValue.mjs
-function Zl(e) {
- let t = v.version.split(".");
+function xl(e) {
+ let t = _.version.split(".");
return parseInt(t[0], 10) >= 19 ? e : e ? "true" : void 0;
}
//#endregion
//#region node_modules/react-stately/dist/private/list/ListCollection.mjs
-var Ql = class {
+var Sl = class {
constructor(e) {
this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.iterable = e;
let t = (e) => {
@@ -16428,23 +16036,23 @@ var Ql = class {
getChildren(e) {
return this.keyMap.get(e)?.childNodes || [];
}
-}, $l = class e extends Set {
+}, Cl = 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-stately/dist/private/selection/useMultipleSelectionState.mjs
-function eu(e, t) {
+function wl(e, t) {
if (e.size !== t.size) return !1;
for (let n of e) if (!t.has(n)) return !1;
return !0;
}
-function tu(e) {
- let { selectionMode: t = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: a = "all" } = e, o = (0, v.useRef)(!1), [, s] = (0, v.useState)(!1), c = (0, v.useRef)(null), l = (0, v.useRef)(null), [, u] = (0, v.useState)(null), [d, f] = Wi((0, v.useMemo)(() => nu(e.selectedKeys), [e.selectedKeys]), (0, v.useMemo)(() => nu(e.defaultSelectedKeys, new $l()), [e.defaultSelectedKeys]), e.onSelectionChange), p = (0, v.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), [m, h] = (0, v.useState)(i);
+function Tl(e) {
+ let { selectionMode: t = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: a = "all" } = e, o = (0, _.useRef)(!1), [, s] = (0, _.useState)(!1), c = (0, _.useRef)(null), l = (0, _.useRef)(null), [, u] = (0, _.useState)(null), [d, f] = mi((0, _.useMemo)(() => El(e.selectedKeys), [e.selectedKeys]), (0, _.useMemo)(() => El(e.defaultSelectedKeys, new Cl()), [e.defaultSelectedKeys]), e.onSelectionChange), p = (0, _.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), [m, h] = (0, _.useState)(i);
i === "replace" && m === "toggle" && typeof d == "object" && d.size === 0 && h("replace");
- let g = (0, v.useRef)(i);
- return (0, v.useEffect)(() => {
+ let g = (0, _.useRef)(i);
+ return (0, _.useEffect)(() => {
i !== g.current && (h(i), g.current = i);
}, [i]), {
selectionMode: t,
@@ -16468,18 +16076,18 @@ function tu(e) {
},
selectedKeys: d,
setSelectedKeys(e) {
- (r || !eu(e, d)) && f(e);
+ (r || !wl(e, d)) && f(e);
},
disabledKeys: p,
disabledBehavior: a
};
}
-function nu(e, t) {
- return e ? e === "all" ? "all" : new $l(e) : t;
+function El(e, t) {
+ return e ? e === "all" ? "all" : new Cl(e) : t;
}
//#endregion
//#region node_modules/react-stately/dist/private/selection/SelectionManager.mjs
-var ru = class e {
+var Dl = 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;
}
@@ -16535,7 +16143,7 @@ var ru = class e {
let e = null;
for (let t of this.state.selectedKeys) {
let n = this.collection.getItem(t);
- (!e || n && Gl(this.collection, n, e) < 0) && (e = n);
+ (!e || n && hl(this.collection, n, e) < 0) && (e = n);
}
return e?.key ?? null;
}
@@ -16543,7 +16151,7 @@ var ru = class e {
let e = null;
for (let t of this.state.selectedKeys) {
let n = this.collection.getItem(t);
- (!e || n && Gl(this.collection, n, e) > 0) && (e = n);
+ (!e || n && hl(this.collection, n, e) > 0) && (e = n);
}
return e?.key ?? null;
}
@@ -16562,10 +16170,10 @@ var ru = class e {
let t = this.getKey(e);
if (t == null) return;
let n;
- if (this.state.selectedKeys === "all") n = new $l([t], t, t);
+ if (this.state.selectedKeys === "all") n = new Cl([t], t, t);
else {
let e = this.state.selectedKeys, r = e.anchorKey ?? t;
- n = new $l(e, r, t);
+ n = new Cl(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);
}
@@ -16573,7 +16181,7 @@ var ru = class e {
}
getKeyRange(e, t) {
let n = this.collection.getItem(e), r = this.collection.getItem(t);
- return n && r ? Gl(this.collection, n, r) <= 0 ? this.getKeyRangeInternal(e, t) : this.getKeyRangeInternal(t, e) : [];
+ return n && r ? hl(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);
@@ -16599,19 +16207,19 @@ var ru = class e {
}
let t = this.getKey(e);
if (t == null) return;
- let n = new $l(this.state.selectedKeys === "all" ? this.getSelectAllKeys() : this.state.selectedKeys);
+ let n = new Cl(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 $l([t], t, t) : new $l();
+ let n = this.canSelectItem(t) ? new Cl([t], t, t) : new Cl();
this.state.setSelectedKeys(n);
}
setSelectedKeys(e) {
if (this.selectionMode === "none") return;
- let t = new $l();
+ let t = new Cl();
for (let n of e) {
let e = this.getKey(n);
if (e != null && (t.add(e), this.selectionMode === "single")) break;
@@ -16623,7 +16231,7 @@ var ru = class e {
for (; r != null;) {
if (this.canSelectItemIn(r, e)) {
let i = e.getItem(r);
- i?.type === "item" && t.push(r), i?.hasChildNodes && (this.allowsCellSelection || i.type !== "item") && n(Ul(Hl(i, e))?.key ?? null);
+ i?.type === "item" && t.push(r), i?.hasChildNodes && (this.allowsCellSelection || i.type !== "item") && n(pl(fl(i, e))?.key ?? null);
}
r = e.getKeyAfter(r);
}
@@ -16634,7 +16242,7 @@ var ru = class e {
!this.isSelectAll && this.selectionMode === "multiple" && this.state.setSelectedKeys("all");
}
clearSelection() {
- !this.disallowEmptySelection && (this.state.selectedKeys === "all" || this.state.selectedKeys.size > 0) && this.state.setSelectedKeys(new $l());
+ !this.disallowEmptySelection && (this.state.selectedKeys === "all" || this.state.selectedKeys.size > 0) && this.state.setSelectedKeys(new Cl());
}
toggleSelectAll() {
this.isSelectAll ? this.clearSelection() : this.selectAll();
@@ -16675,13 +16283,13 @@ var ru = class e {
fullCollection: this.fullCollection ?? this.collection
});
}
-}, iu = class {
+}, Ol = class {
build(e, t) {
- return this.context = t, au(() => this.iterateCollection(e));
+ return this.context = t, kl(() => this.iterateCollection(e));
}
*iterateCollection(e) {
let { children: t, items: n } = e;
- if (v.isValidElement(t) && t.type === v.Fragment) yield* this.iterateCollection({
+ if (_.isValidElement(t) && t.type === _.Fragment) yield* this.iterateCollection({
children: t.props.children,
items: n
});
@@ -16694,7 +16302,7 @@ var ru = class e {
}, { renderer: t }), e++;
} else {
let e = [];
- v.Children.forEach(t, (t) => {
+ _.Children.forEach(t, (t) => {
t && e.push(t);
});
let n = 0;
@@ -16722,9 +16330,9 @@ var ru = class e {
return { renderer: t.renderer || e.renderer };
}
*getFullNode(e, t, n, r) {
- if (v.isValidElement(e.element) && e.element.type === v.Fragment) {
+ if (_.isValidElement(e.element) && e.element.type === _.Fragment) {
let i = [];
- v.Children.forEach(e.element.props.children, (e) => {
+ _.Children.forEach(e.element.props.children, (e) => {
i.push(e);
});
let a = e.index ?? 0;
@@ -16743,7 +16351,7 @@ var ru = class e {
}
i = t.renderer(e.value);
}
- if (v.isValidElement(i)) {
+ if (_.isValidElement(i)) {
let a = i.type;
if (typeof a != "function" && typeof a.getCollectionNode != "function") {
let e = i.type;
@@ -16759,10 +16367,10 @@ var ru = class e {
...a,
key: l,
index: s,
- wrapper: ou(e.wrapper, a.wrapper)
+ wrapper: Al(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 <${su(t.type)}> in <${su(r?.type ?? "unknown parent type")}>. Only <${su(e.type)}> is supported.`);
+ if (t.value = a.value ?? e.value ?? null, t.value && this.cache.set(t.value, t), e.type && t.type !== e.type) throw Error(`Unsupported type <${jl(t.type)}> in <${jl(r?.type ?? "unknown parent type")}>. Only <${jl(e.type)}> is supported.`);
s++, yield t;
}
c = o.next(u);
@@ -16784,7 +16392,7 @@ var ru = class e {
wrapper: e.wrapper,
shouldInvalidate: e.shouldInvalidate,
hasChildNodes: e.hasChildNodes || !1,
- childNodes: au(function* () {
+ childNodes: kl(function* () {
if (!e.hasChildNodes || !e.childNodes) return;
let n = 0;
for (let r of e.childNodes()) {
@@ -16803,7 +16411,7 @@ var ru = class e {
this.cache = /* @__PURE__ */ new WeakMap();
}
};
-function au(e) {
+function kl(e) {
let t = [], n = null;
return { *[Symbol.iterator]() {
for (let e of t) yield e;
@@ -16811,19 +16419,19 @@ function au(e) {
for (let e of n) t.push(e), yield e;
} };
}
-function ou(e, t) {
+function Al(e, t) {
if (e && t) return (n) => e(t(n));
if (e) return e;
if (t) return t;
}
-function su(e) {
+function jl(e) {
return e[0].toUpperCase() + e.slice(1);
}
//#endregion
//#region node_modules/react-stately/dist/private/collections/useCollection.mjs
-function cu(e, t, n) {
- let r = (0, v.useMemo)(() => new iu(), []), { children: i, items: a, collection: o } = e;
- return (0, v.useMemo)(() => o || t(r.build({
+function Ml(e, t, n) {
+ let r = (0, _.useMemo)(() => new Ol(), []), { children: i, items: a, collection: o } = e;
+ return (0, _.useMemo)(() => o || t(r.build({
children: i,
items: a
}, n)), [
@@ -16837,29 +16445,29 @@ function cu(e, t, n) {
}
//#endregion
//#region node_modules/react-stately/dist/private/list/useListState.mjs
-function lu(e) {
- let { filter: t, layoutDelegate: n } = e, r = tu(e), i = (0, v.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = cu(e, (0, v.useCallback)((e) => t ? new Ql(t(e)) : new Ql(e), [t]), (0, v.useMemo)(() => ({ suppressTextValueWarning: e.suppressTextValueWarning }), [e.suppressTextValueWarning])), o = (0, v.useMemo)(() => new ru(a, r, { layoutDelegate: n }), [
+function Nl(e) {
+ let { filter: t, layoutDelegate: n } = e, r = Tl(e), i = (0, _.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = Ml(e, (0, _.useCallback)((e) => t ? new Sl(t(e)) : new Sl(e), [t]), (0, _.useMemo)(() => ({ suppressTextValueWarning: e.suppressTextValueWarning }), [e.suppressTextValueWarning])), o = (0, _.useMemo)(() => new Dl(a, r, { layoutDelegate: n }), [
a,
r,
n
]);
- return du(a, o), {
+ return Fl(a, o), {
collection: a,
disabledKeys: i,
selectionManager: o
};
}
-function uu(e, t) {
- let n = (0, v.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);
- return du(n, r), {
+function Pl(e, t) {
+ let n = (0, _.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);
+ return Fl(n, r), {
collection: n,
selectionManager: r,
disabledKeys: e.disabledKeys
};
}
-function du(e, t) {
- let n = (0, v.useRef)(null);
- (0, v.useEffect)(() => {
+function Fl(e, t) {
+ let n = (0, _.useRef)(null);
+ (0, _.useEffect)(() => {
if (t.focusedKey != null && !e.getItem(t.focusedKey) && n.current) {
let r = n.current.getKeyAfter(t.focusedKey), i = null;
for (; r != null;) {
@@ -16885,15 +16493,15 @@ function du(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useLoadMoreSentinel.mjs
-function fu(e, t) {
- let { collection: n, onLoadMore: r, scrollOffset: i = 1, direction: a = "end" } = e, o = (0, v.useRef)(null), s = hi((e) => {
+function Il(e, t) {
+ let { collection: n, onLoadMore: r, scrollOffset: i = 1, direction: a = "end" } = e, o = (0, _.useRef)(null), s = zr((e) => {
for (let t of e) t.isIntersecting && r && r();
});
- H(() => {
+ V(() => {
if (t.current) {
let e = 100 * i, n = a === "start" ? `${e}% 0px 0px 0px` : `0px ${e}% ${e}% ${e}%`;
o.current = new IntersectionObserver(s, {
- root: rs(t?.current),
+ root: Oo(t?.current),
rootMargin: n
}), o.current.observe(t.current);
}
@@ -16909,42 +16517,42 @@ function fu(e, t) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/ListBox.mjs
-var pu = /*#__PURE__*/ (0, v.createContext)(null), mu = /*#__PURE__*/ (0, v.createContext)(null), hu = /*#__PURE__*/ (0, v.forwardRef)(function(e, t) {
- [e, t] = Nn(e, t, pu);
- let n = (0, v.useContext)(mu);
- return n ? /*#__PURE__*/ v.createElement(_u, {
+var Ll = /*#__PURE__*/ (0, _.createContext)(null), Rl = /*#__PURE__*/ (0, _.createContext)(null), zl = /*#__PURE__*/ (0, _.forwardRef)(function(e, t) {
+ [e, t] = nn(e, t, Ll);
+ let n = (0, _.useContext)(Rl);
+ return n ? /*#__PURE__*/ _.createElement(Vl, {
state: n,
props: e,
listBoxRef: t
- }) : /*#__PURE__*/ v.createElement(Ra, { content: /*#__PURE__*/ v.createElement(Ya, e) }, (n) => /*#__PURE__*/ v.createElement(gu, {
+ }) : /*#__PURE__*/ _.createElement(ca, { content: /*#__PURE__*/ _.createElement(ya, e) }, (n) => /*#__PURE__*/ _.createElement(Bl, {
props: e,
listBoxRef: t,
collection: n
}));
});
-function gu({ props: e, listBoxRef: t, collection: n }) {
+function Bl({ props: e, listBoxRef: t, collection: n }) {
e = {
...e,
collection: n,
children: null,
items: null
};
- let { layoutDelegate: r } = (0, v.useContext)(to), i = lu({
+ let { layoutDelegate: r } = (0, _.useContext)(Ta), i = Nl({
...e,
layoutDelegate: r
});
- return /*#__PURE__*/ v.createElement(_u, {
+ return /*#__PURE__*/ _.createElement(Vl, {
state: i,
props: e,
listBoxRef: t
});
}
-function _u({ state: e, props: t, listBoxRef: n }) {
- [t, n] = Nn(t, n, Gi);
- let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = uu(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = Oi(), { disabledBehavior: p, disabledKeys: m } = l, h = Pl({
+function Vl({ state: e, props: t, listBoxRef: n }) {
+ [t, n] = nn(t, n, hi);
+ let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = Pl(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = Qr(), { disabledBehavior: p, disabledKeys: m } = l, h = il({
usage: "search",
sensitivity: "base"
- }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: y, CollectionRoot: b } = (0, v.useContext)(to), x = (0, v.useMemo)(() => t.keyboardDelegate || new Ml({
+ }), { isVirtualized: g, layoutDelegate: v, dropTargetDelegate: y, CollectionRoot: b } = (0, _.useContext)(Ta), x = (0, _.useMemo)(() => t.keyboardDelegate || new nl({
collection: c,
collator: h,
ref: n,
@@ -16953,7 +16561,7 @@ function _u({ state: e, props: t, listBoxRef: n }) {
layout: i,
orientation: a,
direction: f,
- layoutDelegate: _
+ layoutDelegate: v
}), [
c,
h,
@@ -16964,15 +16572,15 @@ function _u({ state: e, props: t, listBoxRef: n }) {
f,
t.keyboardDelegate,
i,
- _
- ]), { listBoxProps: S } = Il({
+ v
+ ]), { listBoxProps: S } = ol({
...t,
shouldSelectOnPressUp: u || t.shouldSelectOnPressUp,
keyboardDelegate: x,
isVirtualized: g
}, s, n);
- (0, v.useRef)(u), (0, v.useRef)(d), (0, v.useEffect)(() => {}, [u, d]);
- let C, w, T, E = !1, D = null, O = (0, v.useRef)(null);
+ (0, _.useRef)(u), (0, _.useRef)(d), (0, _.useEffect)(() => {}, [u, d]);
+ let C, w, T, E = !1, D = null, O = (0, _.useRef)(null);
if (u && r) {
C = r.useDraggableCollectionState({
collection: c,
@@ -16980,7 +16588,7 @@ function _u({ state: e, props: t, listBoxRef: n }) {
preview: r.renderDragPreview ? O : void 0
}), r.useDraggableCollection({}, C, n);
let e = r.DragPreview;
- D = r.renderDragPreview ? /*#__PURE__*/ v.createElement(e, { ref: O }, r.renderDragPreview) : null;
+ D = r.renderDragPreview ? /*#__PURE__*/ _.createElement(e, { ref: O }, r.renderDragPreview) : null;
}
if (d && r) {
w = r.useDroppableCollectionState({
@@ -16997,7 +16605,7 @@ function _u({ state: e, props: t, listBoxRef: n }) {
dropTargetDelegate: e
}, w, n), E = w.isDropTarget({ type: "root" });
}
- let { focusProps: k, isFocused: A, isFocusVisible: j } = Po(), M = s.collection.size === 0, ee = {
+ let { focusProps: k, isFocused: A, isFocusVisible: j } = ro(), M = s.collection.size === 0, ee = {
isDropTarget: E,
isEmpty: M,
isFocused: A,
@@ -17005,18 +16613,18 @@ function _u({ state: e, props: t, listBoxRef: n }) {
layout: t.layout || "stack",
orientation: a,
state: s
- }, te = jn({
+ }, te = en({
...t,
children: void 0,
defaultClassName: "react-aria-ListBox",
values: ee
}), N = null;
- M && t.renderEmptyState && (N = /*#__PURE__*/ v.createElement("div", {
+ M && t.renderEmptyState && (N = /*#__PURE__*/ _.createElement("div", {
role: "option",
style: { display: "contents" }
}, t.renderEmptyState(ee)));
- let P = co(t, { global: !0 });
- return /*#__PURE__*/ v.createElement(Zc, null, /*#__PURE__*/ v.createElement(Rn.div, {
+ let P = Ma(t, { global: !0 });
+ return /*#__PURE__*/ _.createElement(xc, null, /*#__PURE__*/ _.createElement(cn.div, {
...U(P, te, S, k, T?.collectionProps),
ref: n,
slot: t.slot || void 0,
@@ -17027,61 +16635,61 @@ function _u({ state: e, props: t, listBoxRef: n }) {
"data-focus-visible": j || void 0,
"data-layout": t.layout || "stack",
"data-orientation": a
- }, /*#__PURE__*/ v.createElement(An, { values: [
- [pu, t],
- [mu, s],
- [Nc, {
+ }, /*#__PURE__*/ _.createElement($t, { values: [
+ [Ll, t],
+ [Rl, s],
+ [rc, {
dragAndDropHooks: r,
dragState: C,
dropState: w
}],
- [Hc, { elementType: "div" }],
- [Pc, { render: bu }],
- [Za, {
+ [fc, { elementType: "div" }],
+ [ic, { render: Wl }],
+ [xa, {
name: "ListBoxSection",
- render: vu
+ render: Hl
}]
- ] }, /*#__PURE__*/ v.createElement(Bc, null, /*#__PURE__*/ v.createElement(b, {
+ ] }, /*#__PURE__*/ _.createElement(uc, null, /*#__PURE__*/ _.createElement(b, {
collection: c,
scrollRef: n,
- persistedKeys: Lc(l, r, w),
- renderDropIndicator: Ic(r, w)
+ persistedKeys: sc(l, r, w),
+ renderDropIndicator: oc(r, w)
}))), N, D));
}
-function vu(e, t, n, r = "react-aria-ListBoxSection") {
- let i = (0, v.useContext)(mu), { dragAndDropHooks: a, dropState: o } = (0, v.useContext)(Nc), { CollectionBranch: s } = (0, v.useContext)(to), [c, l] = Pn(), { headingProps: u, groupProps: d } = Xl({
+function Hl(e, t, n, r = "react-aria-ListBoxSection") {
+ let i = (0, _.useContext)(Rl), { dragAndDropHooks: a, dropState: o } = (0, _.useContext)(rc), { CollectionBranch: s } = (0, _.useContext)(Ta), [c, l] = rn(), { headingProps: u, groupProps: d } = bl({
heading: l,
"aria-label": e["aria-label"] ?? void 0
- }), f = jn({
+ }), f = en({
...e,
id: void 0,
children: void 0,
defaultClassName: r,
values: void 0
- }), p = co(e, { global: !0 });
- return delete p.id, /*#__PURE__*/ v.createElement(Rn.section, {
+ }), p = Ma(e, { global: !0 });
+ return delete p.id, /*#__PURE__*/ _.createElement(cn.section, {
...U(p, f, d),
ref: t
- }, /*#__PURE__*/ v.createElement(Rc.Provider, { value: {
+ }, /*#__PURE__*/ _.createElement(cc.Provider, { value: {
...u,
ref: c
- } }, /*#__PURE__*/ v.createElement(s, {
+ } }, /*#__PURE__*/ _.createElement(s, {
collection: i.collection,
parent: n,
- renderDropIndicator: Ic(a, o)
+ renderDropIndicator: oc(a, o)
})));
}
-var yu = /*#__PURE__*/ Ka(Xi, function(e, t, n) {
- let r = On(t), i = (0, v.useContext)(mu), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, v.useContext)(Nc), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = Yl({
+var Ul = /*#__PURE__*/ ga(bi, function(e, t, n) {
+ let r = Zt(t), i = (0, _.useContext)(Rl), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, _.useContext)(rc), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = yl({
key: n.key,
"aria-label": e?.["aria-label"]
- }, i, r), { hoverProps: p, isHovered: m } = zo({
+ }, i, r), { hoverProps: p, isHovered: m } = lo({
isDisabled: !f.allowsSelection && !f.hasAction && !c,
onHoverStart: n.props.onHoverStart,
onHoverChange: n.props.onHoverChange,
onHoverEnd: n.props.onHoverEnd
- }), { keyboardProps: h } = Ca(e), { focusProps: g } = la(e), _ = null;
- o && a && (_ = a.useDraggableItem({
+ }), { keyboardProps: h } = Ji(e), { focusProps: g } = Pi(e), v = null;
+ o && a && (v = a.useDraggableItem({
key: n.key,
hasAction: f.hasAction
}, o));
@@ -17091,7 +16699,7 @@ var yu = /*#__PURE__*/ Ka(Xi, function(e, t, n) {
key: n.key,
dropPosition: "on"
} }, s, r));
- let b = o && o.isDragging(n.key), x = jn({
+ let b = o && o.isDragging(n.key), x = en({
...e,
id: void 0,
children: e.children,
@@ -17106,12 +16714,12 @@ var yu = /*#__PURE__*/ Ka(Xi, function(e, t, n) {
isDropTarget: y?.isDropTarget
}
});
- (0, v.useEffect)(() => {
+ (0, _.useEffect)(() => {
n.textValue;
}, [n.textValue]);
- let S = e.href ? Rn.a : Rn.div, C = co(e, { global: !0 });
- return delete C.id, delete C.onClick, e.href && l.tabIndex == null && (l.tabIndex = -1), /*#__PURE__*/ v.createElement(S, {
- ...U(C, x, l, p, h, g, _?.dragProps, y?.dropProps),
+ let S = e.href ? cn.a : cn.div, C = Ma(e, { global: !0 });
+ return delete C.id, delete C.onClick, e.href && l.tabIndex == null && (l.tabIndex = -1), /*#__PURE__*/ _.createElement(S, {
+ ...U(C, x, l, p, h, g, v?.dragProps, y?.dropProps),
ref: r,
"data-allows-dragging": !!o || void 0,
"data-selected": f.isSelected || void 0,
@@ -17123,29 +16731,29 @@ var yu = /*#__PURE__*/ Ka(Xi, function(e, t, n) {
"data-dragging": b || void 0,
"data-drop-target": y?.isDropTarget || void 0,
"data-selection-mode": i.selectionManager.selectionMode === "none" ? void 0 : i.selectionManager.selectionMode
- }, /*#__PURE__*/ v.createElement(An, { values: [[es, { slots: {
- [kn]: u,
+ }, /*#__PURE__*/ _.createElement($t, { values: [[To, { slots: {
+ [Qt]: u,
label: u,
description: d
- } }], [Vc, { isSelected: f.isSelected }]] }, x.children));
+ } }], [dc, { isSelected: f.isSelected }]] }, x.children));
});
-function bu(e, t) {
- t = On(t);
- let { dragAndDropHooks: n, dropState: r } = (0, v.useContext)(Nc), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);
- return a ? null : /*#__PURE__*/ v.createElement(Su, {
+function Wl(e, t) {
+ t = Zt(t);
+ let { dragAndDropHooks: n, dropState: r } = (0, _.useContext)(rc), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);
+ return a ? null : /*#__PURE__*/ _.createElement(Kl, {
...e,
dropIndicatorProps: i,
isDropTarget: o,
ref: t
});
}
-function xu(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, ...i } = e, a = jn({
+function Gl(e, t) {
+ let { dropIndicatorProps: n, isDropTarget: r, ...i } = e, a = en({
...i,
defaultClassName: "react-aria-DropIndicator",
values: { isDropTarget: r }
});
- return /*#__PURE__*/ v.createElement(v.Fragment, null, /*#__PURE__*/ v.createElement(Rn.div, {
+ return /*#__PURE__*/ _.createElement(_.Fragment, null, /*#__PURE__*/ _.createElement(cn.div, {
...n,
...a,
role: "option",
@@ -17153,10 +16761,10 @@ function xu(e, t) {
"data-drop-target": r || void 0
}));
}
-var Su = /*#__PURE__*/ (0, v.forwardRef)(xu);
-Ka(Yi, function(e, t, n) {
- let r = (0, v.useContext)(mu), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, v.useRef)(null);
- fu((0, v.useMemo)(() => ({
+var Kl = /*#__PURE__*/ (0, _.forwardRef)(Gl);
+ga(yi, function(e, t, n) {
+ let r = (0, _.useContext)(Rl), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, _.useRef)(null);
+ Il((0, _.useMemo)(() => ({
onLoadMore: a,
collection: r?.collection,
sentinelRef: c,
@@ -17166,21 +16774,21 @@ Ka(Yi, function(e, t, n) {
o,
r?.collection
]), c);
- let l = jn({
+ let l = en({
...s,
id: void 0,
children: n.rendered,
defaultClassName: "react-aria-ListBoxLoadingIndicator",
values: void 0
});
- return /*#__PURE__*/ v.createElement(v.Fragment, null, /*#__PURE__*/ v.createElement("div", {
+ return /*#__PURE__*/ _.createElement(_.Fragment, null, /*#__PURE__*/ _.createElement("div", {
style: {
position: "relative",
width: 0,
height: 0
},
- inert: Zl(!0)
- }, /*#__PURE__*/ v.createElement("div", {
+ inert: xl(!0)
+ }, /*#__PURE__*/ _.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: c,
style: {
@@ -17188,8 +16796,8 @@ Ka(Yi, function(e, t, n) {
height: 1,
width: 1
}
- })), i && l.children && /*#__PURE__*/ v.createElement(v.Fragment, null, /*#__PURE__*/ v.createElement(Rn.div, {
- ...U(co(e, { global: !0 }), { tabIndex: -1 }),
+ })), i && l.children && /*#__PURE__*/ _.createElement(_.Fragment, null, /*#__PURE__*/ _.createElement(cn.div, {
+ ...U(Ma(e, { global: !0 }), { tabIndex: -1 }),
...l,
role: "option",
ref: t
@@ -17197,20 +16805,20 @@ Ka(Yi, function(e, t, n) {
});
//#endregion
//#region node_modules/react-aria-components/dist/private/OverlayArrow.mjs
-var Cu = /*#__PURE__*/ (0, v.createContext)({ placement: "bottom" }), wu = typeof HTMLElement < "u" && "inert" in HTMLElement.prototype;
-function Tu(e) {
+var ql = /*#__PURE__*/ (0, _.createContext)({ placement: "bottom" }), Jl = typeof HTMLElement < "u" && "inert" in HTMLElement.prototype;
+function Yl(e) {
return e.dataset.liveAnnouncer === "true" || e.dataset.reactAriaTopLayer !== void 0;
}
-var Eu = /* @__PURE__ */ new WeakMap(), Du = [];
-function Ou(e, t) {
- let n = Vn(e?.[0]), r = t instanceof n.Element ? { root: t } : t, i = r?.root ?? document.body, a = r?.shouldUseInert && wu, o = new Set(e), s = /* @__PURE__ */ new Set(), c = (e) => a && e instanceof n.HTMLElement ? e.inert : e.getAttribute("aria-hidden") === "true", l = (e, t) => {
+var Xl = /* @__PURE__ */ new WeakMap(), Zl = [];
+function Ql(e, t) {
+ let n = dn(e?.[0]), r = t instanceof n.Element ? { root: t } : t, i = r?.root ?? document.body, a = r?.shouldUseInert && Jl, 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 (Yn()) {
+ if (yn()) {
let t = i.getRootNode();
for (let n of e) {
let e = n.getRootNode();
- for (; Gn(e) && e !== t;) u.add(e), e = e.host.getRootNode();
+ for (; hn(e) && e !== t;) u.add(e), e = e.host.getRootNode();
}
}
let d = (e) => {
@@ -17219,20 +16827,20 @@ function Ou(e, t) {
if (s.has(e) || o.has(e) || e.parentElement && s.has(e.parentElement) && e.parentElement.getAttribute("role") !== "row") return NodeFilter.FILTER_REJECT;
for (let t of o) if (G(e, t)) return NodeFilter.FILTER_SKIP;
return NodeFilter.FILTER_ACCEPT;
- }, n = qc(W(e), e, NodeFilter.SHOW_ELEMENT, { acceptNode: t }), r = t(e);
+ }, n = _c(W(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 = Eu.get(e) ?? 0;
- c(e) && t === 0 || (t === 0 && l(e, !0), s.add(e), Eu.set(e, t + 1));
+ let t = Xl.get(e) ?? 0;
+ c(e) && t === 0 || (t === 0 && l(e, !0), s.add(e), Xl.set(e, t + 1));
};
- Du.length && Du[Du.length - 1].disconnect(), d(i);
+ Zl.length && Zl[Zl.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) => G(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && Tu(e) ? o.add(e) : e instanceof Element && d(e);
- if (Yn()) {
+ if (t.target.isConnected && ![...o, ...s].some((e) => G(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && Yl(e) ? o.add(e) : e instanceof Element && d(e);
+ if (yn()) {
for (let e of u) if (!e.isConnected) {
p.disconnect();
break;
@@ -17245,11 +16853,11 @@ function Ou(e, t) {
subtree: !0
});
let m = /* @__PURE__ */ new Set();
- if (Yn()) for (let e of u) {
+ if (yn()) 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) => G(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && Tu(e) ? o.add(e) : e instanceof Element && d(e);
- if (Yn()) {
+ if (t.target.isConnected && ![...o, ...s].some((e) => G(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && Yl(e) ? o.add(e) : e instanceof Element && d(e);
+ if (yn()) {
for (let e of u) if (!e.isConnected) {
p.disconnect();
break;
@@ -17275,50 +16883,50 @@ function Ou(e, t) {
p.disconnect();
}
};
- return Du.push(h), () => {
- if (p.disconnect(), Yn()) for (let e of m) e.disconnect();
+ return Zl.push(h), () => {
+ if (p.disconnect(), yn()) for (let e of m) e.disconnect();
for (let e of s) {
- let t = Eu.get(e);
- t != null && (t === 1 ? (l(e, !1), Eu.delete(e)) : Eu.set(e, t - 1));
+ let t = Xl.get(e);
+ t != null && (t === 1 ? (l(e, !1), Xl.delete(e)) : Xl.set(e, t - 1));
}
- h === Du[Du.length - 1] ? (Du.pop(), Du.length && Du[Du.length - 1].observe()) : Du.splice(Du.indexOf(h), 1);
+ h === Zl[Zl.length - 1] ? (Zl.pop(), Zl.length && Zl[Zl.length - 1].observe()) : Zl.splice(Zl.indexOf(h), 1);
};
}
-function ku(e) {
- let t = Du[Du.length - 1];
+function $l(e) {
+ let t = Zl[Zl.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/overlays/calculatePosition.mjs
-var Au = {
+var eu = {
top: "top",
bottom: "top",
left: "left",
right: "left"
-}, ju = {
+}, Y = {
top: "bottom",
bottom: "top",
left: "right",
right: "left"
-}, Mu = {
+}, tu = {
top: "left",
left: "top"
-}, Nu = {
+}, nu = {
top: "height",
left: "width"
-}, Pu = {
+}, ru = {
width: "totalWidth",
height: "totalHeight"
-}, Fu = {}, Iu = () => typeof document < "u" ? window.visualViewport : null;
-function Lu(e, t) {
+}, iu = {}, au = () => typeof document < "u" ? window.visualViewport : null;
+function ou(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} = Ju(e, !1)), c.top = e.scrollTop, c.left = e.scrollLeft, i = n, a = r;
- return jr() && (e.tagName === "BODY" || e.tagName === "HTML") && l && (c.top = 0, c.left = 0, o = t?.pageTop ?? 0, s = t?.pageLeft ?? 0), {
+ } else ({width: n, height: r, top: o, left: s} = _u(e, !1)), c.top = e.scrollTop, c.left = e.scrollLeft, i = n, a = r;
+ return tr() && (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,
@@ -17328,7 +16936,7 @@ function Lu(e, t) {
left: s
};
}
-function Ru(e) {
+function su(e) {
return {
top: e.scrollTop,
left: e.scrollLeft,
@@ -17336,11 +16944,11 @@ function Ru(e) {
height: e.scrollHeight
};
}
-function zu(e, t, n, r, i, a, o) {
- let s = i.scroll[e] ?? 0, c = r[Nu[e]], l = o[e] + r.scroll[Au[e]] + a, u = o[e] + r.scroll[Au[e]] + c - a, d = t - s + r.scroll[Au[e]] + o[e] - r[Au[e]], f = t - s + n + r.scroll[Au[e]] + o[e] - r[Au[e]];
+function cu(e, t, n, r, i, a, o) {
+ let s = i.scroll[e] ?? 0, c = r[nu[e]], l = o[e] + r.scroll[eu[e]] + a, u = o[e] + r.scroll[eu[e]] + c - a, d = t - s + r.scroll[eu[e]] + o[e] - r[eu[e]], f = t - s + n + r.scroll[eu[e]] + o[e] - r[eu[e]];
return d < l ? l - d : f > u ? Math.max(u - f, l - d) : 0;
}
-function Bu(e) {
+function lu(e) {
let t = window.getComputedStyle(e);
return {
top: parseInt(t.marginTop, 10) || 0,
@@ -17349,55 +16957,55 @@ function Bu(e) {
right: parseInt(t.marginRight, 10) || 0
};
}
-function Vu(e) {
- if (Fu[e]) return Fu[e];
- let [t, n] = e.split(" "), r = Au[t] || "right", i = Mu[r];
- Au[n] || (n = "center");
- let a = Nu[r], o = Nu[i];
- return Fu[e] = {
+function uu(e) {
+ if (iu[e]) return iu[e];
+ let [t, n] = e.split(" "), r = eu[t] || "right", i = tu[r];
+ eu[n] || (n = "center");
+ let a = nu[r], o = nu[i];
+ return iu[e] = {
placement: t,
crossPlacement: n,
axis: r,
crossAxis: i,
size: a,
crossSize: o
- }, Fu[e];
+ }, iu[e];
}
-function Hu(e, t, n, r, i, a, o, s, c, l, u) {
+function du(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] = Uo(_[m], v, y), d === p) {
- let t = s ? u[h] : u[Pu[h]];
- _[ju[p]] = Math.floor(t - e[p] + i);
+ if (_[m] = mo(_[m], v, y), d === p) {
+ let t = s ? u[h] : u[ru[h]];
+ _[Y[p]] = Math.floor(t - e[p] + i);
} else _[p] = Math.floor(e[p] + e[h] + i);
return _;
}
-function Uu(e, t, n, r, i, a, o, s, c, l, u) {
- let d = (e.top == null ? c[Pu.height] - (e.bottom ?? 0) - o : e.top) - (c.scroll.top ?? 0), f = l ? n.top : 0, p = {
+function fu(e, t, n, r, i, a, o, s, c, l, u) {
+ let d = (e.top == null ? c[ru.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 Wu(e, t, n, r, i, a, o, s) {
+function pu(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[ju[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[ju[l]] - i);
+ return c === l ? Math.max(0, n[l] - (o.scroll[l] ?? 0) - (e[l] + (s ? t[l] : 0)) - (r[l] ?? 0) - r[Y[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[Y[l]] - i);
}
-function Gu(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
- let v = Vu(e), { size: y, crossAxis: b, crossSize: x, placement: S, crossPlacement: C } = v, w = Hu(t, s, n, v, u, d, l, f, m, h, c), T = u, E = Wu(s, l, t, i, a + u, v, c, g);
+function mu(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
+ let v = uu(e), { size: y, crossAxis: b, crossSize: x, placement: S, crossPlacement: C } = v, w = du(t, s, n, v, u, d, l, f, m, h, c), T = u, E = pu(s, l, t, i, a + u, v, c, g);
if (o && n[y] > E) {
- let e = Vu(`${ju[S]} ${C}`), r = Hu(t, s, n, e, u, d, l, f, m, h, c);
- Wu(s, l, t, i, a + u, e, c, g) > E && (v = e, w = r, T = u);
+ let e = uu(`${Y[S]} ${C}`), r = du(t, s, n, e, u, d, l, f, m, h, c);
+ pu(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 = zu(b, w[b], n[x], s, c, a, l);
+ let O = cu(b, w[b], n[x], s, c, a, l);
w[b] += O;
- let k = Uu(w, s, l, f, i, a, n.height, D, c, g, _);
- p && p < k && (k = p), n.height = Math.min(n.height, k), w = Hu(t, s, n, v, T, d, l, f, m, h, c), O = zu(b, w[b], n[x], s, c, a, l), w[b] += O;
- let A = {}, j = t[b] - w[b] - i[Au[b]], M = j + .5 * t[x], ee = m / 2 + h, te = Au[b] === "left" ? (i.left ?? 0) + (i.right ?? 0) : (i.top ?? 0) + (i.bottom ?? 0), N = n[x] - te - m / 2 - h;
- A[b] = Uo(Uo(M, t[b] + m / 2 - (w[b] + i[Au[b]]), t[b] + t[x] - m / 2 - (w[b] + i[Au[b]])), ee, N), {placement: S, crossPlacement: C} = v, m ? j = A[b] : C === "right" ? j += t[x] : C === "center" && (j += t[x] / 2);
+ let k = fu(w, s, l, f, i, a, n.height, D, c, g, _);
+ p && p < k && (k = p), n.height = Math.min(n.height, k), w = du(t, s, n, v, T, d, l, f, m, h, c), O = cu(b, w[b], n[x], s, c, a, l), w[b] += O;
+ let A = {}, j = t[b] - w[b] - i[eu[b]], M = j + .5 * t[x], ee = m / 2 + h, te = eu[b] === "left" ? (i.left ?? 0) + (i.right ?? 0) : (i.top ?? 0) + (i.bottom ?? 0), N = n[x] - te - m / 2 - h;
+ A[b] = mo(mo(M, t[b] + m / 2 - (w[b] + i[eu[b]]), t[b] + t[x] - m / 2 - (w[b] + i[eu[b]])), ee, N), {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
@@ -17411,17 +17019,17 @@ function Gu(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
triggerAnchorPoint: ne
};
}
-function Ku(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 = Iu(), h = r instanceof HTMLElement ? Xu(r) : document.documentElement, g = h === document.documentElement, _ = window.getComputedStyle(h).position, v = !!_ && _ !== "static", y = g ? Ju(n, !1, p) : Yu(n, h, !1, p);
+function hu(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 = au(), h = r instanceof HTMLElement ? yu(r) : document.documentElement, g = h === document.documentElement, _ = window.getComputedStyle(h).position, v = !!_ && _ !== "static", y = g ? _u(n, !1, p) : vu(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 = Ju(r, !0), x = Bu(r);
+ let b = _u(r, !0), x = lu(r);
b.width += (x.left ?? 0) + (x.right ?? 0), b.height += (x.top ?? 0) + (x.bottom ?? 0);
- let S = Ru(i), C = Lu(s, m), w = Lu(h, m), T;
+ let S = su(i), C = ou(s, m), w = ou(h, m), T;
if ((s.tagName === "BODY" || s.tagName === "HTML") && !g) {
- let e = qu(h, !1);
+ let e = gu(h, !1);
T = {
top: -(e.top - C.top),
left: -(e.left - C.left),
@@ -17433,11 +17041,11 @@ function Ku(e) {
left: 0,
width: 0,
height: 0
- } : Yu(s, h, !1);
+ } : vu(s, h, !1);
let E = G(s, h);
- return Gu(t, y, b, S, x, a, o, C, w, T, c, l, v, u, d, f, E, m);
+ return mu(t, y, b, S, x, a, o, C, w, T, c, l, v, u, d, f, E, m);
}
-function qu(e, t) {
+function gu(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,
@@ -17446,8 +17054,8 @@ function qu(e, t) {
height: a
};
}
-function Ju(e, t, n) {
- let { top: r, left: i, width: a, height: o } = n || qu(e, t), { scrollTop: s, scrollLeft: c, clientTop: l, clientLeft: u } = document.documentElement;
+function _u(e, t, n) {
+ let { top: r, left: i, width: a, height: o } = n || gu(e, t), { scrollTop: s, scrollLeft: c, clientTop: l, clientLeft: u } = document.documentElement;
return {
top: r + s - l,
left: i + c - u,
@@ -17455,34 +17063,34 @@ function Ju(e, t, n) {
height: o
};
}
-function Yu(e, t, n, r) {
+function vu(e, t, n, r) {
let i = window.getComputedStyle(e), a;
- if (i.position === "fixed") a = r || qu(e, n);
+ if (i.position === "fixed") a = r || gu(e, n);
else {
- a = Ju(e, n, r);
- let i = Ju(t, n), o = window.getComputedStyle(t);
+ a = _u(e, n, r);
+ let i = _u(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 Xu(e) {
+function yu(e) {
let t = e.offsetParent;
- if (t && t === document.body && window.getComputedStyle(t).position === "static" && !Y(t) && (t = document.documentElement), t == null) for (t = e.parentElement; t && !Y(t);) t = t.parentElement;
+ if (t && t === document.body && window.getComputedStyle(t).position === "static" && !bu(t) && (t = document.documentElement), t == null) for (t = e.parentElement; t && !bu(t);) t = t.parentElement;
return t || document.documentElement;
}
-function Y(e) {
+function bu(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/useCloseOnScroll.mjs
-var Zu = /* @__PURE__ */ new WeakMap();
-function X(e) {
+var xu = /* @__PURE__ */ new WeakMap();
+function Su(e) {
let { triggerRef: t, isOpen: n, onClose: r } = e;
- (0, v.useEffect)(() => !n || r === null ? void 0 : Kn(Zn(t.current), "scroll", (e) => {
+ (0, _.useEffect)(() => !n || r === null ? void 0 : gn(xn(t.current), "scroll", (e) => {
let n = K(e);
if (!t.current || n instanceof Node && !G(n, t.current) || n instanceof HTMLInputElement || n instanceof HTMLTextAreaElement) return;
- let i = r || Zu.get(t.current);
+ let i = r || xu.get(t.current);
i && i();
}, !0), [
n,
@@ -17492,15 +17100,15 @@ function X(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useResizeObserver.mjs
-function Z() {
+function Cu() {
return window.ResizeObserver !== void 0;
}
-function Q(e) {
- let { ref: t, box: n, onResize: r } = e, i = hi(r);
- (0, v.useEffect)(() => {
+function wu(e) {
+ let { ref: t, box: n, onResize: r } = e, i = zr(r);
+ (0, _.useEffect)(() => {
let e = t?.current;
if (e) {
- if (Z()) {
+ if (Cu()) {
let t = new window.ResizeObserver((e) => {
e.length && i();
});
@@ -17516,9 +17124,9 @@ function Q(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useOverlayPosition.mjs
-var Qu = typeof document < "u" ? window.visualViewport : null;
-function $u(e) {
- let { direction: t } = Oi(), { 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: y } = e, [b, x] = (0, v.useState)(null), S = [
+var Tu = typeof document < "u" ? window.visualViewport : null;
+function Eu(e) {
+ let { direction: t } = Qr(), { 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: v = 0, getTargetRect: y } = e, [b, x] = (0, _.useState)(null), S = [
p,
s,
i.current,
@@ -17533,17 +17141,17 @@ function $u(e) {
m,
t,
g,
- _,
+ v,
n
- ], C = (0, v.useRef)(Qu?.scale);
- (0, v.useEffect)(() => {
- m && (C.current = Qu?.scale);
+ ], C = (0, _.useRef)(Tu?.scale);
+ (0, _.useEffect)(() => {
+ m && (C.current = Tu?.scale);
}, [m]);
- let w = (0, v.useCallback)(() => {
- if (p === !1 || !m || !i.current || !r.current || !u || Qu?.scale !== C.current) return;
+ let w = (0, _.useCallback)(() => {
+ if (p === !1 || !m || !i.current || !r.current || !u || Tu?.scale !== C.current) return;
let e = null;
- if (o.current && Qn(o.current)) {
- let t = Xn()?.getBoundingClientRect(), n = o.current.getBoundingClientRect();
+ if (o.current && Sn(o.current)) {
+ let t = bn()?.getBoundingClientRect(), n = o.current.getBoundingClientRect();
e = {
type: "top",
offset: (t?.top ?? 0) - n.top
@@ -17551,8 +17159,8 @@ function $u(e) {
}
let h = i.current;
!g && i.current && (h.style.top = "0px", h.style.bottom = "", h.style.maxHeight = (window.visualViewport?.height ?? window.innerHeight) + "px");
- let v = Ku({
- placement: td(s, t),
+ let _ = hu({
+ placement: Ou(s, t),
overlayNode: i.current,
targetNode: r.current,
scrollNode: o.current || i.current,
@@ -17562,28 +17170,28 @@ function $u(e) {
offset: d,
crossOffset: f,
maxHeight: g,
- arrowSize: n ?? (a?.current ? qu(a.current, !0).width : 0),
- arrowBoundaryOffset: _,
+ arrowSize: n ?? (a?.current ? gu(a.current, !0).width : 0),
+ arrowBoundaryOffset: v,
targetRect: y?.(r.current)
});
- if (!v.position) return;
- h.style.top = "", h.style.bottom = "", h.style.left = "", h.style.right = "", Object.keys(v.position).forEach((e) => h.style[e] = v.position[e] + "px"), h.style.maxHeight = v.maxHeight == null ? "" : v.maxHeight + "px";
- let b = Xn();
+ if (!_.position) return;
+ h.style.top = "", h.style.bottom = "", h.style.left = "", h.style.right = "", Object.keys(_.position).forEach((e) => h.style[e] = _.position[e] + "px"), h.style.maxHeight = _.maxHeight == null ? "" : _.maxHeight + "px";
+ let b = bn();
if (e && b && o.current) {
let t = b.getBoundingClientRect(), n = o.current.getBoundingClientRect(), r = t[e.type] - n[e.type];
o.current.scrollTop += r - e.offset;
}
- x(v);
+ x(_);
}, S);
- H(w, S), ed(w), Q({
+ V(w, S), Du(w), wu({
ref: i,
onResize: w
- }), Q({
+ }), wu({
ref: r,
onResize: w
});
- let T = (0, v.useRef)(!1);
- H(() => {
+ let T = (0, _.useRef)(!1);
+ V(() => {
let e, t = () => {
T.current = !0, clearTimeout(e), e = setTimeout(() => {
T.current = !1;
@@ -17591,16 +17199,16 @@ function $u(e) {
}, n = () => {
T.current && t();
};
- Qu?.addEventListener("resize", t), Qu?.addEventListener("scroll", n);
- let r = Kn(Zn(window), "scroll", n);
+ Tu?.addEventListener("resize", t), Tu?.addEventListener("scroll", n);
+ let r = gn(xn(window), "scroll", n);
return () => {
- Qu?.removeEventListener("resize", t), Qu?.removeEventListener("scroll", n), r();
+ Tu?.removeEventListener("resize", t), Tu?.removeEventListener("scroll", n), r();
};
}, [w]);
- let E = (0, v.useCallback)(() => {
+ let E = (0, _.useCallback)(() => {
T.current || h?.();
}, [h, T]);
- return X({
+ return Su({
triggerRef: r,
isOpen: m,
onClose: h && E
@@ -17626,32 +17234,32 @@ function $u(e) {
updatePosition: w
};
}
-function ed(e) {
- H(() => (window.addEventListener("resize", e, !1), () => {
+function Du(e) {
+ V(() => (window.addEventListener("resize", e, !1), () => {
window.removeEventListener("resize", e, !1);
}), [e]);
}
-function td(e, t) {
+function Ou(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/interactions/useInteractOutside.mjs
-function nd(e) {
- let { ref: t, onInteractOutside: n, isDisabled: r, onInteractOutsideStart: i } = e, a = (0, v.useRef)({
+function ku(e) {
+ let { ref: t, onInteractOutside: n, isDisabled: r, onInteractOutsideStart: i } = e, a = (0, _.useRef)({
isPointerDown: !1,
ignoreEmulatedMouseEvents: !1
- }), o = hi((e) => {
- n && rd(e, t) && (i && i(e), a.current.isPointerDown = !0);
- }), s = hi((e) => {
+ }), o = zr((e) => {
+ n && Au(e, t) && (i && i(e), a.current.isPointerDown = !0);
+ }), s = zr((e) => {
n && n(e);
});
- (0, v.useEffect)(() => {
+ (0, _.useEffect)(() => {
let e = a.current;
if (r) return;
let n = t.current, i = W(n);
if (typeof PointerEvent < "u") {
let n = (n) => {
- e.isPointerDown && rd(n, t) && s(n), e.isPointerDown = !1;
+ e.isPointerDown && Au(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);
@@ -17659,7 +17267,7 @@ function nd(e) {
}
}, [t, r]);
}
-function rd(e, t) {
+function Au(e, t) {
if (e.button > 0) return !1;
let n = K(e);
if (n) {
@@ -17670,38 +17278,38 @@ function rd(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useOverlay.mjs
-var id = [];
-function ad(e, t) {
- let { onClose: n, shouldCloseOnBlur: r, isOpen: i, isDismissable: a = !1, isKeyboardDismissDisabled: o = !1, shouldCloseOnInteractOutside: s } = e, c = (0, v.useRef)(void 0);
- (0, v.useEffect)(() => {
- if (i && !id.includes(t)) return id.push(t), () => {
- let e = id.indexOf(t);
- e >= 0 && id.splice(e, 1);
+var ju = [];
+function Mu(e, t) {
+ let { onClose: n, shouldCloseOnBlur: r, isOpen: i, isDismissable: a = !1, isKeyboardDismissDisabled: o = !1, shouldCloseOnInteractOutside: s } = e, c = (0, _.useRef)(void 0);
+ (0, _.useEffect)(() => {
+ if (i && !ju.includes(t)) return ju.push(t), () => {
+ let e = ju.indexOf(t);
+ e >= 0 && ju.splice(e, 1);
};
}, [i, t]);
let l = () => {
- id[id.length - 1] === t && n && n();
+ ju[ju.length - 1] === t && n && n();
}, u = (e) => {
- let n = id[id.length - 1];
+ let n = ju[ju.length - 1];
c.current = n, (!s || s(K(e))) && n === t && e.stopPropagation();
}, d = (e) => {
- (!s || s(K(e))) && (id[id.length - 1] === t && e.stopPropagation(), c.current === t && l()), c.current = void 0;
- }, { keyboardProps: f } = Ca({ shortcuts: { Escape: () => {
+ (!s || s(K(e))) && (ju[ju.length - 1] === t && e.stopPropagation(), c.current === t && l()), c.current = void 0;
+ }, { keyboardProps: f } = Ji({ shortcuts: { Escape: () => {
if (!o) {
l();
return;
}
return !1;
} } });
- nd({
+ ku({
ref: t,
onInteractOutside: a && i ? d : void 0,
onInteractOutsideStart: u
});
- let { focusWithinProps: p } = No({
+ let { focusWithinProps: p } = no({
isDisabled: !r,
onBlurWithin: (e) => {
- !e.relatedTarget || sl(e.relatedTarget) || (!s || s(e.relatedTarget)) && n?.();
+ !e.relatedTarget || jc(e.relatedTarget) || (!s || s(e.relatedTarget)) && n?.();
}
});
return {
@@ -17714,26 +17322,26 @@ function ad(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/usePreventScroll.mjs
-var od = typeof document < "u" && window.visualViewport, sd = 0, cd;
-function ld(e = {}) {
+var Nu = typeof document < "u" && window.visualViewport, Pu = 0, Fu;
+function Iu(e = {}) {
let { isDisabled: t } = e;
- H(() => {
- if (!t) return sd++, sd === 1 && (cd = kr() && jr() ? dd() : ud()), () => {
- sd--, sd === 0 && cd();
+ V(() => {
+ if (!t) return Pu++, Pu === 1 && (Fu = $n() && tr() ? Ru() : Lu()), () => {
+ Pu--, Pu === 0 && Fu();
};
}, [t]);
}
-function ud() {
+function Lu() {
let e = window.innerWidth - document.documentElement.clientWidth;
- return nn(e > 0 && ("scrollbarGutter" in document.documentElement.style ? qn(document.documentElement, "scrollbar-gutter", "stable") : qn(document.documentElement, "padding-right", `${e}px`)), qn(document.documentElement, "overflow", "hidden"));
+ return Dt(e > 0 && ("scrollbarGutter" in document.documentElement.style ? _n(document.documentElement, "scrollbar-gutter", "stable") : _n(document.documentElement, "padding-right", `${e}px`)), _n(document.documentElement, "overflow", "hidden"));
}
-function dd() {
- let e = qn(document.documentElement, "overflow", "hidden"), t, n = !1, r = (e) => {
+function Ru() {
+ let e = _n(document.documentElement, "overflow", "hidden"), t, n = !1, r = (e) => {
let r = K(e);
- t = ns(r) ? r : rs(r, !0), n = !1;
+ t = Do(r) ? r : Oo(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 = _o();
+ }, i = document.createElement("style"), a = Ba();
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)) {
@@ -17745,26 +17353,26 @@ function dd() {
}
}, s = (e) => {
let t = K(e), n = e.relatedTarget;
- n && pi(n) ? (n.focus({ preventScroll: !0 }), fd(n, pi(t))) : n || (t.parentElement?.closest("[tabindex]"))?.focus({ preventScroll: !0 });
+ n && Lr(n) ? (n.focus({ preventScroll: !0 }), zu(n, Lr(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 = Xn(), n = t != null && pi(t);
+ let t = bn(), n = t != null && Lr(t);
c.call(this, {
...e,
preventScroll: !0
- }), (!e || !e.preventScroll) && fd(this, n);
+ }), (!e || !e.preventScroll) && zu(this, n);
}
});
- let l = nn(Kn(document, "touchstart", r, {
+ let l = Dt(gn(document, "touchstart", r, {
passive: !1,
capture: !0
- }), Kn(document, "touchmove", o, {
+ }), gn(document, "touchmove", o, {
passive: !1,
capture: !0
- }), Kn(document, "blur", s, !0));
+ }), gn(document, "blur", s, !0));
return () => {
e(), l(), i.remove(), Reflect.defineProperty(HTMLElement.prototype, "focus", {
configurable: !0,
@@ -17773,18 +17381,18 @@ function dd() {
});
};
}
-function fd(e, t) {
- t || !od ? pd(e) : od.addEventListener("resize", () => pd(e), { once: !0 });
+function zu(e, t) {
+ t || !Nu ? Bu(e) : Nu.addEventListener("resize", () => Bu(e), { once: !0 });
}
-function pd(e) {
+function Bu(e) {
let t = document.scrollingElement || document.documentElement, n = e;
for (; n && n !== t;) {
- let e = rs(n);
+ let e = Oo(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;
- od && (n = Math.min(n, od.offsetTop + od.height));
+ Nu && (n = Math.min(n, Nu.offsetTop + Nu.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)),
@@ -17797,15 +17405,15 @@ function pd(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/usePopover.mjs
-function md(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 } = ad({
+function Vu(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 } = Mu({
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 } = $u({
+ }, i ?? r), { overlayProps: f, arrowProps: p, placement: m, triggerAnchorPoint: h } = Eu({
...c,
targetRef: n,
overlayRef: r,
@@ -17813,15 +17421,15 @@ function md(e, t) {
onClose: a && !l ? t.close : null,
getTargetRect: c.getTargetRect ?? (t.point ? () => new DOMRect(t.point.x, t.point.y, 0, 0) : void 0)
});
- ld({ isDisabled: a || !t.isOpen }), (0, v.useEffect)(() => {
- if (t.isOpen && r.current) return a ? ku(i?.current ?? r.current) : Ou([i?.current ?? r.current], { shouldUseInert: !0 });
+ Iu({ isDisabled: a || !t.isOpen }), (0, _.useEffect)(() => {
+ if (t.isOpen && r.current) return a ? $l(i?.current ?? r.current) : Ql([i?.current ?? r.current], { shouldUseInert: !0 });
}, [
a,
t.isOpen,
r,
i
]);
- let { focusWithinProps: g } = No(e);
+ let { focusWithinProps: g } = no(e);
return {
popoverProps: U(u, f, g),
arrowProps: p,
@@ -17832,189 +17440,189 @@ function md(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ar-AE.mjs
-var hd = {};
-hd = { dismiss: "تجاهل" };
+var Hu = {};
+Hu = { dismiss: "تجاهل" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/bg-BG.mjs
-var gd = {};
-gd = { dismiss: "Отхвърляне" };
+var Uu = {};
+Uu = { dismiss: "Отхвърляне" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/cs-CZ.mjs
-var _d = {};
-_d = { dismiss: "Odstranit" };
+var Wu = {};
+Wu = { dismiss: "Odstranit" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/da-DK.mjs
-var vd = {};
-vd = { dismiss: "Luk" };
+var Gu = {};
+Gu = { dismiss: "Luk" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/de-DE.mjs
-var yd = {};
-yd = { dismiss: "Schließen" };
+var Ku = {};
+Ku = { dismiss: "Schließen" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/el-GR.mjs
-var bd = {};
-bd = { dismiss: "Απόρριψη" };
+var qu = {};
+qu = { dismiss: "Απόρριψη" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/en-US.mjs
-var xd = {};
-xd = { dismiss: "Dismiss" };
+var Ju = {};
+Ju = { dismiss: "Dismiss" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/es-ES.mjs
-var Sd = {};
-Sd = { dismiss: "Descartar" };
+var Yu = {};
+Yu = { dismiss: "Descartar" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/et-EE.mjs
-var Cd = {};
-Cd = { dismiss: "Lõpeta" };
+var X = {};
+X = { dismiss: "Lõpeta" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/fi-FI.mjs
-var wd = {};
-wd = { dismiss: "Hylkää" };
+var Xu = {};
+Xu = { dismiss: "Hylkää" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/fr-FR.mjs
-var Td = {};
-Td = { dismiss: "Rejeter" };
+var Z = {};
+Z = { dismiss: "Rejeter" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/he-IL.mjs
-var Ed = {};
-Ed = { dismiss: "התעלם" };
+var Q = {};
+Q = { dismiss: "התעלם" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/hr-HR.mjs
-var Dd = {};
-Dd = { dismiss: "Odbaci" };
+var Zu = {};
+Zu = { dismiss: "Odbaci" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/hu-HU.mjs
-var Od = {};
-Od = { dismiss: "Elutasítás" };
+var Qu = {};
+Qu = { dismiss: "Elutasítás" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/it-IT.mjs
-var kd = {};
-kd = { dismiss: "Ignora" };
+var $u = {};
+$u = { dismiss: "Ignora" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ja-JP.mjs
-var Ad = {};
-Ad = { dismiss: "閉じる" };
+var ed = {};
+ed = { dismiss: "閉じる" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ko-KR.mjs
-var jd = {};
-jd = { dismiss: "무시" };
+var td = {};
+td = { dismiss: "무시" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/lt-LT.mjs
-var Md = {};
-Md = { dismiss: "Atmesti" };
+var nd = {};
+nd = { dismiss: "Atmesti" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/lv-LV.mjs
-var Nd = {};
-Nd = { dismiss: "Nerādīt" };
+var rd = {};
+rd = { dismiss: "Nerādīt" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/nb-NO.mjs
-var Pd = {};
-Pd = { dismiss: "Lukk" };
+var id = {};
+id = { dismiss: "Lukk" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/nl-NL.mjs
-var Fd = {};
-Fd = { dismiss: "Negeren" };
+var ad = {};
+ad = { dismiss: "Negeren" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/pl-PL.mjs
-var Id = {};
-Id = { dismiss: "Zignoruj" };
+var od = {};
+od = { dismiss: "Zignoruj" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/pt-BR.mjs
-var Ld = {};
-Ld = { dismiss: "Descartar" };
+var sd = {};
+sd = { dismiss: "Descartar" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/pt-PT.mjs
-var Rd = {};
-Rd = { dismiss: "Dispensar" };
+var cd = {};
+cd = { dismiss: "Dispensar" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ro-RO.mjs
-var zd = {};
-zd = { dismiss: "Revocare" };
+var ld = {};
+ld = { dismiss: "Revocare" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ru-RU.mjs
-var Bd = {};
-Bd = { dismiss: "Пропустить" };
+var ud = {};
+ud = { dismiss: "Пропустить" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sk-SK.mjs
-var Vd = {};
-Vd = { dismiss: "Zrušiť" };
+var dd = {};
+dd = { dismiss: "Zrušiť" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sl-SI.mjs
-var Hd = {};
-Hd = { dismiss: "Opusti" };
+var fd = {};
+fd = { dismiss: "Opusti" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sr-SP.mjs
-var Ud = {};
-Ud = { dismiss: "Odbaci" };
+var pd = {};
+pd = { dismiss: "Odbaci" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sv-SE.mjs
-var Wd = {};
-Wd = { dismiss: "Avvisa" };
+var md = {};
+md = { dismiss: "Avvisa" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/tr-TR.mjs
-var Gd = {};
-Gd = { dismiss: "Kapat" };
+var hd = {};
+hd = { dismiss: "Kapat" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/uk-UA.mjs
-var Kd = {};
-Kd = { dismiss: "Скасувати" };
+var gd = {};
+gd = { dismiss: "Скасувати" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/zh-CN.mjs
-var qd = {};
-qd = { dismiss: "取消" };
+var _d = {};
+_d = { dismiss: "取消" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/zh-TW.mjs
-var Jd = {};
-Jd = { dismiss: "關閉" };
+var vd = {};
+vd = { dismiss: "關閉" };
//#endregion
//#region node_modules/react-aria/dist/private/overlays/intlStrings.mjs
-var Yd = {};
-Yd = {
- "ar-AE": hd,
- "bg-BG": gd,
- "cs-CZ": _d,
- "da-DK": vd,
- "de-DE": yd,
- "el-GR": bd,
- "en-US": xd,
- "es-ES": Sd,
- "et-EE": Cd,
- "fi-FI": wd,
- "fr-FR": Td,
- "he-IL": Ed,
- "hr-HR": Dd,
- "hu-HU": Od,
- "it-IT": kd,
- "ja-JP": Ad,
- "ko-KR": jd,
- "lt-LT": Md,
- "lv-LV": Nd,
- "nb-NO": Pd,
- "nl-NL": Fd,
- "pl-PL": Id,
- "pt-BR": Ld,
- "pt-PT": Rd,
- "ro-RO": zd,
- "ru-RU": Bd,
- "sk-SK": Vd,
- "sl-SI": Hd,
- "sr-SP": Ud,
- "sv-SE": Wd,
- "tr-TR": Gd,
- "uk-UA": Kd,
- "zh-CN": qd,
- "zh-TW": Jd
+var yd = {};
+yd = {
+ "ar-AE": Hu,
+ "bg-BG": Uu,
+ "cs-CZ": Wu,
+ "da-DK": Gu,
+ "de-DE": Ku,
+ "el-GR": qu,
+ "en-US": Ju,
+ "es-ES": Yu,
+ "et-EE": X,
+ "fi-FI": Xu,
+ "fr-FR": Z,
+ "he-IL": Q,
+ "hr-HR": Zu,
+ "hu-HU": Qu,
+ "it-IT": $u,
+ "ja-JP": ed,
+ "ko-KR": td,
+ "lt-LT": nd,
+ "lv-LV": rd,
+ "nb-NO": id,
+ "nl-NL": ad,
+ "pl-PL": od,
+ "pt-BR": sd,
+ "pt-PT": cd,
+ "ro-RO": ld,
+ "ru-RU": ud,
+ "sk-SK": dd,
+ "sl-SI": fd,
+ "sr-SP": pd,
+ "sv-SE": md,
+ "tr-TR": hd,
+ "uk-UA": gd,
+ "zh-CN": _d,
+ "zh-TW": vd
};
//#endregion
//#region node_modules/react-aria/dist/private/overlays/DismissButton.mjs
-function Xd(e) {
+function bd(e) {
return e && e.__esModule ? e.default : e;
}
-function Zd(e) {
- let { onDismiss: t, ...n } = e, r = _i(n, Hi(Xd(Yd), "@react-aria/overlays").format("dismiss")), i = () => {
+function xd(e) {
+ let { onDismiss: t, ...n } = e, r = Vr(n, fi(bd(yd), "@react-aria/overlays").format("dismiss")), i = () => {
t && t();
};
- return /*#__PURE__*/ v.createElement(ps, null, /*#__PURE__*/ v.createElement("button", {
+ return /*#__PURE__*/ _.createElement(Lo, null, /*#__PURE__*/ _.createElement("button", {
...r,
tabIndex: -1,
onClick: i,
@@ -18026,45 +17634,45 @@ function Zd(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/PressResponder.mjs
-function Qd({ children: e }) {
- let t = (0, v.useMemo)(() => ({ register: () => {} }), []);
- return /*#__PURE__*/ v.createElement(vo.Provider, { value: t }, e);
+function Sd({ children: e }) {
+ let t = (0, _.useMemo)(() => ({ register: () => {} }), []);
+ return /*#__PURE__*/ _.createElement(Va.Provider, { value: t }, e);
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/PortalProvider.mjs
-var $d = /*#__PURE__*/ (0, v.createContext)({});
-function ef() {
- return (0, v.useContext)($d) ?? {};
+var Cd = /*#__PURE__*/ (0, _.createContext)({});
+function wd() {
+ return (0, _.useContext)(Cd) ?? {};
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/Overlay.mjs
-var tf = /*#__PURE__*/ v.createContext(null);
-function nf(e) {
- let t = hn(), { portalContainer: n = t ? null : document.body, isExiting: r } = e, [i, a] = (0, v.useState)(!1), o = (0, v.useMemo)(() => ({
+var Td = /*#__PURE__*/ _.createContext(null);
+function Ed(e) {
+ let t = zt(), { portalContainer: n = t ? null : document.body, isExiting: r } = e, [i, a] = (0, _.useState)(!1), o = (0, _.useMemo)(() => ({
contain: i,
setContain: a
- }), [i, a]), { getContainer: s } = ef();
+ }), [i, a]), { getContainer: s } = wd();
if (!e.portalContainer && s && (n = s()), !n) return null;
let c = e.children;
- return e.disableFocusManagement || (c = /*#__PURE__*/ v.createElement(Zc, {
+ return e.disableFocusManagement || (c = /*#__PURE__*/ _.createElement(xc, {
restoreFocus: !0,
contain: (e.shouldContainFocus || i) && !r
- }, c)), c = /*#__PURE__*/ v.createElement(tf.Provider, { value: o }, /*#__PURE__*/ v.createElement(Qd, null, /*#__PURE__*/ v.createElement(Ta.Provider, { value: null }, c))), /*#__PURE__*/ Pa.createPortal(c, n);
+ }, c)), c = /*#__PURE__*/ _.createElement(Td.Provider, { value: o }, /*#__PURE__*/ _.createElement(Sd, null, /*#__PURE__*/ _.createElement(Xi.Provider, { value: null }, c))), /*#__PURE__*/ ia.createPortal(c, n);
}
//#endregion
//#region node_modules/react-stately/dist/private/overlays/useOverlayTriggerState.mjs
-function rf(e) {
- let [t, n] = Wi(e.isOpen, e.defaultOpen || !1, e.onOpenChange), [r, i] = (0, v.useState)(null);
+function Dd(e) {
+ let [t, n] = mi(e.isOpen, e.defaultOpen || !1, e.onOpenChange), [r, i] = (0, _.useState)(null);
return {
isOpen: t,
setOpen: n,
- open: (0, v.useCallback)(() => {
+ open: (0, _.useCallback)(() => {
n(!0);
}, [n]),
- close: (0, v.useCallback)(() => {
+ close: (0, _.useCallback)(() => {
n(!1);
}, [n]),
- toggle: (0, v.useCallback)(() => {
+ toggle: (0, _.useCallback)(() => {
n(!t);
}, [n, t]),
point: r,
@@ -18073,14 +17681,14 @@ function rf(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/animation.mjs
-function af(e, t = !0) {
- let [n, r] = (0, v.useState)(!0), i = n && t;
- return H(() => {
+function Od(e, t = !0) {
+ let [n, r] = (0, _.useState)(!0), i = n && t;
+ return V(() => {
if (i && e.current && "getAnimations" in e.current) for (let t of e.current.getAnimations()) t instanceof CSSTransition && t.cancel();
- }, [e, i]), sf(e, i, (0, v.useCallback)(() => r(!1), [])), i;
+ }, [e, i]), Ad(e, i, (0, _.useCallback)(() => r(!1), [])), i;
}
-function of(e, t) {
- let [n, r] = (0, v.useState)(t ? "open" : "closed");
+function kd(e, t) {
+ let [n, r] = (0, _.useState)(t ? "open" : "closed");
switch (n) {
case "open":
t || r("exiting");
@@ -18089,12 +17697,12 @@ function of(e, t) {
case "exiting": t && r("open");
}
let i = n === "exiting";
- return sf(e, i, (0, v.useCallback)(() => {
+ return Ad(e, i, (0, _.useCallback)(() => {
r((e) => e === "exiting" ? "closed" : e);
}, [])), i;
}
-function sf(e, t, n) {
- H(() => {
+function Ad(e, t, n) {
+ V(() => {
if (t && e.current) {
if (!("getAnimations" in e.current)) {
n();
@@ -18107,7 +17715,7 @@ function sf(e, t, n) {
}
let r = !1;
return Promise.allSettled(t.map((e) => e.finished)).then(() => {
- r || (0, Pa.flushSync)(() => {
+ r || (0, ia.flushSync)(() => {
n();
});
}), () => {
@@ -18122,9 +17730,9 @@ function sf(e, t, n) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Popover.mjs
-var cf = /*#__PURE__*/ (0, v.createContext)(null), lf = /*#__PURE__*/ (0, v.createContext)(null), uf = /*#__PURE__*/ (0, v.forwardRef)(function(e, t) {
- [e, t] = Nn(e, t, cf);
- let n = (0, v.useContext)(Xf), r = rf(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = of(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = ja(), { direction: c } = Oi();
+var jd = /*#__PURE__*/ (0, _.createContext)(null), Md = /*#__PURE__*/ (0, _.createContext)(null), Nd = /*#__PURE__*/ (0, _.forwardRef)(function(e, t) {
+ [e, t] = nn(e, t, jd);
+ let n = (0, _.useContext)(xf), r = Dd(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = kd(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = ta(), { direction: c } = Qr();
if (s) {
let t = e.children;
return typeof t == "function" && (t = t({
@@ -18133,9 +17741,9 @@ var cf = /*#__PURE__*/ (0, v.createContext)(null), lf = /*#__PURE__*/ (0, v.crea
isEntering: !1,
isExiting: !1,
defaultChildren: null
- })), /*#__PURE__*/ v.createElement(v.Fragment, null, t);
+ })), /*#__PURE__*/ _.createElement(_.Fragment, null, t);
}
- return i && !i.isOpen && !o ? null : /*#__PURE__*/ v.createElement(df, {
+ return i && !i.isOpen && !o ? null : /*#__PURE__*/ _.createElement(Pd, {
...e,
triggerRef: e.triggerRef,
state: i,
@@ -18144,13 +17752,13 @@ var cf = /*#__PURE__*/ (0, v.createContext)(null), lf = /*#__PURE__*/ (0, v.crea
dir: c
});
});
-function df({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts: r, ...i }) {
- let a = (0, v.useRef)(null), o = (0, v.useRef)(null), s = (0, v.useContext)(lf), c = s && i.trigger === "SubmenuTrigger", { popoverProps: l, underlayProps: u, arrowProps: d, placement: f, triggerAnchorPoint: p } = md({
+function Pd({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts: r, ...i }) {
+ let a = (0, _.useRef)(null), o = (0, _.useRef)(null), s = (0, _.useContext)(Md), c = s && i.trigger === "SubmenuTrigger", { popoverProps: l, underlayProps: u, arrowProps: d, placement: f, triggerAnchorPoint: p } = Vu({
...i,
offset: i.offset ?? 8,
arrowRef: a,
groupRef: c ? s : o
- }, e), m = i.popoverRef, h = af(m, !!f), g = i.isEntering || !i.shouldSkipAnimation && h || !1, _ = jn({
+ }, e), m = i.popoverRef, h = Od(m, !!f), g = i.isEntering || !i.shouldSkipAnimation && h || !1, v = en({
...i,
defaultClassName: "react-aria-Popover",
values: {
@@ -18159,35 +17767,35 @@ function df({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts
isEntering: g,
isExiting: t
}
- }), y = !i.isNonModal || i.trigger === "SubmenuTrigger" || i.trigger === "PreviewTrigger", [b, x] = (0, v.useState)(i.trigger === "PreviewTrigger");
- H(() => {
+ }), y = !i.isNonModal || i.trigger === "SubmenuTrigger" || i.trigger === "PreviewTrigger", [b, x] = (0, _.useState)(i.trigger === "PreviewTrigger");
+ V(() => {
m.current && x(y && !m.current.querySelector("[role=dialog]"));
- }, [m, y]), (0, v.useEffect)(() => {
- b && i.trigger !== "PreviewTrigger" && (i.trigger !== "SubmenuTrigger" || oi() !== "pointer") && m.current && !Qn(m.current) && ca(m.current);
+ }, [m, y]), (0, _.useEffect)(() => {
+ b && i.trigger !== "PreviewTrigger" && (i.trigger !== "SubmenuTrigger" || Ar() !== "pointer") && m.current && !Sn(m.current) && Ni(m.current);
}, [
b,
m,
i.trigger
]);
- let S = (0, v.useMemo)(() => {
- let e = _.children;
- if (r) for (let t of r) e = /*#__PURE__*/ v.createElement(t.Provider, { value: null }, e);
+ let S = (0, _.useMemo)(() => {
+ let e = v.children;
+ if (r) for (let t of r) e = /*#__PURE__*/ _.createElement(t.Provider, { value: null }, e);
return e;
- }, [_.children, r]), [C, w] = (0, v.useState)(null), T = (0, v.useCallback)(() => {
+ }, [v.children, r]), [C, w] = (0, _.useState)(null), T = (0, _.useCallback)(() => {
i.triggerRef.current && w(i.triggerRef.current.getBoundingClientRect().width + "px");
}, [i.triggerRef]);
- H(T, [T]), Q({
- ref: _.style?.["--trigger-width"] ? void 0 : i.triggerRef,
+ V(T, [T]), wu({
+ ref: v.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"] || C
- }, D = /*#__PURE__*/ v.createElement(Rn.div, {
- ...U(co(i, { global: !0 }), l),
- ..._,
+ ...v.style,
+ "--trigger-width": v.style?.["--trigger-width"] || C
+ }, D = /*#__PURE__*/ _.createElement(cn.div, {
+ ...U(Ma(i, { global: !0 }), l),
+ ...v,
id: b ? i.id : void 0,
role: b ? "dialog" : void 0,
tabIndex: b ? -1 : void 0,
@@ -18201,212 +17809,212 @@ function df({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts
"data-placement": f,
"data-entering": g || void 0,
"data-exiting": t || void 0
- }, !i.isNonModal && /*#__PURE__*/ v.createElement(Zd, { onDismiss: e.close }), /*#__PURE__*/ v.createElement(Cu.Provider, { value: {
+ }, !i.isNonModal && /*#__PURE__*/ _.createElement(xd, { onDismiss: e.close }), /*#__PURE__*/ _.createElement(ql.Provider, { value: {
...d,
placement: f,
ref: a
- } }, S), /*#__PURE__*/ v.createElement(Zd, { onDismiss: e.close }));
- return c ? /*#__PURE__*/ v.createElement(nf, {
+ } }, S), /*#__PURE__*/ _.createElement(xd, { onDismiss: e.close }));
+ return c ? /*#__PURE__*/ _.createElement(Ed, {
...i,
shouldContainFocus: b && i.trigger !== "PreviewTrigger",
isExiting: t,
portalContainer: n ?? s?.current ?? void 0
- }, D) : /*#__PURE__*/ v.createElement(nf, {
+ }, D) : /*#__PURE__*/ _.createElement(Ed, {
...i,
shouldContainFocus: b && i.trigger !== "PreviewTrigger",
isExiting: t,
portalContainer: n
- }, !i.isNonModal && e.isOpen && /*#__PURE__*/ v.createElement("div", {
+ }, !i.isNonModal && e.isOpen && /*#__PURE__*/ _.createElement("div", {
"data-testid": "underlay",
...u,
style: {
position: "fixed",
inset: 0
}
- }), /*#__PURE__*/ v.createElement("div", {
+ }), /*#__PURE__*/ _.createElement("div", {
ref: o,
style: { display: "contents" }
- }, /*#__PURE__*/ v.createElement(lf.Provider, { value: o }, D)));
+ }, /*#__PURE__*/ _.createElement(Md.Provider, { value: o }, D)));
}
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/ar-AE.mjs
-var ff = {};
-ff = { longPressMessage: "اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة" };
+var Fd = {};
+Fd = { longPressMessage: "اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/bg-BG.mjs
-var pf = {};
-pf = { longPressMessage: "Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто" };
+var Id = {};
+Id = { longPressMessage: "Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/cs-CZ.mjs
-var mf = {};
-mf = { longPressMessage: "Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku" };
+var Ld = {};
+Ld = { 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 hf = {};
-hf = { longPressMessage: "Langt tryk eller tryk på Alt + pil ned for at åbne menuen" };
+var Rd = {};
+Rd = { 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 gf = {};
-gf = { longPressMessage: "Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen" };
+var zd = {};
+zd = { 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 _f = {};
-_f = { longPressMessage: "Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού" };
+var Bd = {};
+Bd = { longPressMessage: "Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/en-US.mjs
-var vf = {};
-vf = { longPressMessage: "Long press or press Alt + ArrowDown to open menu" };
+var Vd = {};
+Vd = { longPressMessage: "Long press or press Alt + ArrowDown to open menu" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/es-ES.mjs
-var yf = {};
-yf = { longPressMessage: "Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú" };
+var Hd = {};
+Hd = { 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 bf = {};
-bf = { longPressMessage: "Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool" };
+var Ud = {};
+Ud = { 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 xf = {};
-xf = { longPressMessage: "Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli" };
+var Wd = {};
+Wd = { 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 Sf = {};
-Sf = { longPressMessage: "Appuyez de manière prolongée ou appuyez sur Alt\xA0+\xA0Flèche vers le bas pour ouvrir le menu." };
+var Gd = {};
+Gd = { 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 Cf = {};
-Cf = { longPressMessage: "לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט" };
+var Kd = {};
+Kd = { longPressMessage: "לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/hr-HR.mjs
-var wf = {};
-wf = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika" };
+var qd = {};
+qd = { 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 Tf = {};
-Tf = { longPressMessage: "Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához" };
+var Jd = {};
+Jd = { 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 Ef = {};
-Ef = { longPressMessage: "Premi a lungo o premi Alt + Freccia giù per aprire il menu" };
+var Yd = {};
+Yd = { 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 Df = {};
-Df = { longPressMessage: "長押しまたは Alt+下矢印キーでメニューを開く" };
+var Xd = {};
+Xd = { longPressMessage: "長押しまたは Alt+下矢印キーでメニューを開く" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/ko-KR.mjs
-var Of = {};
-Of = { longPressMessage: "길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기" };
+var Zd = {};
+Zd = { longPressMessage: "길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/lt-LT.mjs
-var kf = {};
-kf = { longPressMessage: "Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“." };
+var Qd = {};
+Qd = { 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 Af = {};
-Af = { longPressMessage: "Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa" };
+var $d = {};
+$d = { 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 jf = {};
-jf = { longPressMessage: "Langt trykk eller trykk Alt + PilNed for å åpne menyen" };
+var ef = {};
+ef = { longPressMessage: "Langt trykk eller trykk Alt + PilNed for å åpne menyen" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/nl-NL.mjs
-var Mf = {};
-Mf = { longPressMessage: "Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen" };
+var tf = {};
+tf = { 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 Nf = {};
-Nf = { longPressMessage: "Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu" };
+var nf = {};
+nf = { 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 Pf = {};
-Pf = { longPressMessage: "Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu" };
+var rf = {};
+rf = { 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 Ff = {};
-Ff = { longPressMessage: "Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu" };
+var af = {};
+af = { 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 If = {};
-If = { longPressMessage: "Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul" };
+var of = {};
+of = { 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 Lf = {};
-Lf = { longPressMessage: "Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню" };
+var sf = {};
+sf = { longPressMessage: "Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/sk-SK.mjs
-var Rf = {};
-Rf = { longPressMessage: "Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol" };
+var cf = {};
+cf = { 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 zf = {};
-zf = { longPressMessage: "Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol" };
+var lf = {};
+lf = { 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 Bf = {};
-Bf = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni" };
+var uf = {};
+uf = { 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 $ = {};
-$ = { longPressMessage: "Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn" };
+var df = {};
+df = { 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 Vf = {};
-Vf = { longPressMessage: "Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın" };
+var ff = {};
+ff = { 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 Hf = {};
-Hf = { longPressMessage: "Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню" };
+var pf = {};
+pf = { longPressMessage: "Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/zh-CN.mjs
-var Uf = {};
-Uf = { longPressMessage: "长按或按 Alt + 向下方向键以打开菜单" };
+var mf = {};
+mf = { longPressMessage: "长按或按 Alt + 向下方向键以打开菜单" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/zh-TW.mjs
-var Wf = {};
-Wf = { longPressMessage: "長按或按 Alt+向下鍵以開啟功能表" };
+var hf = {};
+hf = { longPressMessage: "長按或按 Alt+向下鍵以開啟功能表" };
//#endregion
//#region node_modules/react-aria/dist/private/menu/intlStrings.mjs
-var Gf = {};
-Gf = {
- "ar-AE": ff,
- "bg-BG": pf,
- "cs-CZ": mf,
- "da-DK": hf,
- "de-DE": gf,
- "el-GR": _f,
- "en-US": vf,
- "es-ES": yf,
- "et-EE": bf,
- "fi-FI": xf,
- "fr-FR": Sf,
- "he-IL": Cf,
- "hr-HR": wf,
- "hu-HU": Tf,
- "it-IT": Ef,
- "ja-JP": Df,
- "ko-KR": Of,
- "lt-LT": kf,
- "lv-LV": Af,
- "nb-NO": jf,
- "nl-NL": Mf,
- "pl-PL": Nf,
- "pt-BR": Pf,
- "pt-PT": Ff,
- "ro-RO": If,
- "ru-RU": Lf,
- "sk-SK": Rf,
- "sl-SI": zf,
- "sr-SP": Bf,
- "sv-SE": $,
- "tr-TR": Vf,
- "uk-UA": Hf,
- "zh-CN": Uf,
- "zh-TW": Wf
+var gf = {};
+gf = {
+ "ar-AE": Fd,
+ "bg-BG": Id,
+ "cs-CZ": Ld,
+ "da-DK": Rd,
+ "de-DE": zd,
+ "el-GR": Bd,
+ "en-US": Vd,
+ "es-ES": Hd,
+ "et-EE": Ud,
+ "fi-FI": Wd,
+ "fr-FR": Gd,
+ "he-IL": Kd,
+ "hr-HR": qd,
+ "hu-HU": Jd,
+ "it-IT": Yd,
+ "ja-JP": Xd,
+ "ko-KR": Zd,
+ "lt-LT": Qd,
+ "lv-LV": $d,
+ "nb-NO": ef,
+ "nl-NL": tf,
+ "pl-PL": nf,
+ "pt-BR": rf,
+ "pt-PT": af,
+ "ro-RO": of,
+ "ru-RU": sf,
+ "sk-SK": cf,
+ "sl-SI": lf,
+ "sr-SP": uf,
+ "sv-SE": df,
+ "tr-TR": ff,
+ "uk-UA": pf,
+ "zh-CN": mf,
+ "zh-TW": hf
};
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useContextMenu.mjs
-function Kf(e) {
- let { onContextMenu: t } = e, n = (0, v.useRef)(!1), { longPressProps: r } = Rl({
+function _f(e) {
+ let { onContextMenu: t } = e, n = (0, _.useRef)(!1), { longPressProps: r } = cl({
onLongPressStart() {
n.current = !1;
},
@@ -18418,7 +18026,7 @@ function Kf(e) {
});
}
});
- return t ? { contextMenuProps: U(kr() ? r : {}, {
+ return t ? { contextMenuProps: U($n() ? r : {}, {
onContextMenu(e) {
e.stopPropagation(), e.preventDefault(), n.current = !0;
let r = e.currentTarget.getBoundingClientRect();
@@ -18429,7 +18037,7 @@ function Kf(e) {
});
},
onKeyDown(e) {
- if (Er() && e.ctrlKey && e.key === "Enter") {
+ if (Xn() && e.ctrlKey && e.key === "Enter") {
n.current = !1;
let r = e.currentTarget;
e.stopPropagation(), setTimeout(() => {
@@ -18449,14 +18057,14 @@ function Kf(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useOverlayTrigger.mjs
-function qf(e, t, n) {
+function vf(e, t, n) {
let { type: r } = e, { isOpen: i } = t;
- (0, v.useEffect)(() => {
- n && n.current && Zu.set(n.current, t.close);
+ (0, _.useEffect)(() => {
+ n && n.current && xu.set(n.current, t.close);
});
let a;
r === "menu" ? a = !0 : r === "listbox" && (a = "listbox");
- let o = xn();
+ let o = Wt();
return {
triggerProps: {
"aria-haspopup": a,
@@ -18469,14 +18077,14 @@ function qf(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/menu/useMenuTrigger.mjs
-function Jf(e) {
+function yf(e) {
return e && e.__esModule ? e.default : e;
}
-function Yf(e, t, n) {
- let { type: r = "menu", isDisabled: i, trigger: a = "press" } = e, o = xn(), { triggerProps: s, overlayProps: c } = qf({ type: r }, t, n), l = (e, n, r = "first") => {
+function bf(e, t, n) {
+ let { type: r = "menu", isDisabled: i, trigger: a = "press" } = e, o = Wt(), { triggerProps: s, overlayProps: c } = vf({ type: r }, t, n), l = (e, n, r = "first") => {
if (!e || n.isDefaultPrevented()) return !1;
t.toggle(r);
- }, { keyboardProps: u } = Ca({
+ }, { keyboardProps: u } = Ji({
isDisabled: i,
shortcuts: {
Enter: (e) => l(a !== "longPress", e, "first"),
@@ -18488,7 +18096,7 @@ function Yf(e, t, n) {
"Alt+ArrowDown": (e) => l(!0, e, "first"),
"Alt+ArrowUp": (e) => l(!0, e, "last")
}
- }), d = Hi(Jf(Gf), "@react-aria/menu"), { longPressProps: f } = Rl({
+ }), d = fi(yf(gf), "@react-aria/menu"), { longPressProps: f } = cl({
isDisabled: i || a !== "longPress",
accessibilityDescription: d.format("longPressMessage"),
onLongPressStart() {
@@ -18500,21 +18108,21 @@ function Yf(e, t, n) {
}), p = {
preventFocusOnPress: !0,
onPressStart(e) {
- e.pointerType !== "touch" && e.pointerType !== "keyboard" && !i && (rr(e.target), t.open(e.pointerType === "virtual" ? "first" : null));
+ e.pointerType !== "touch" && e.pointerType !== "keyboard" && !i && (Dn(e.target), t.open(e.pointerType === "virtual" ? "first" : null));
},
onPress(e) {
- e.pointerType === "touch" && !i && (rr(e.target), t.toggle());
+ e.pointerType === "touch" && !i && (Dn(e.target), t.toggle());
}
};
delete s.onPress;
- let { contextMenuProps: m } = Kf({ onContextMenu(e) {
+ let { contextMenuProps: m } = _f({ onContextMenu(e) {
let n = e.target.getBoundingClientRect();
t.setPoint({
x: n.x + e.x,
y: n.y + e.y
}), t.open();
} });
- (0, v.useEffect)(() => {
+ (0, _.useEffect)(() => {
if (t.isOpen && a === "contextMenu") {
let e = (e) => {
(e.button === 2 || e.button === 0 && e.ctrlKey === !0) && K(e) === document.body && t.close();
@@ -18552,22 +18160,22 @@ function Yf(e, t, n) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Dialog.mjs
-var Xf = /*#__PURE__*/ (0, v.createContext)(null);
+var xf = /*#__PURE__*/ (0, _.createContext)(null);
//#endregion
//#region node_modules/react-aria/dist/private/i18n/useListFormatter.mjs
-function Zf(e = {}) {
- let { locale: t } = Oi();
- return (0, v.useMemo)(() => new Intl.ListFormat(t, e), [t, e]);
+function Sf(e = {}) {
+ let { locale: t } = Qr();
+ return (0, _.useMemo)(() => new Intl.ListFormat(t, e), [t, e]);
}
//#endregion
//#region node_modules/react-aria/dist/private/radio/utils.mjs
-var Qf = /* @__PURE__ */ new WeakMap();
+var Cf = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/radio/useRadio.mjs
-function $f(e, t, n) {
+function wf(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: _ } = To({
+ }, { pressProps: g, isPressed: v } = Ja({
onPressStart: s,
onPressEnd: c,
onPressChange: l,
@@ -18575,7 +18183,7 @@ function $f(e, t, n) {
onPressUp: d,
onClick: f,
isDisabled: p
- }), { pressProps: y, isPressed: b } = To({
+ }), { pressProps: y, isPressed: b } = Ja({
onPressStart: s,
onPressEnd: c,
onPressChange: l,
@@ -18585,13 +18193,13 @@ function $f(e, t, n) {
onPress(e) {
u?.(e), t.setSelectedValue(r), n.current?.focus();
}
- }), { focusableProps: x } = Da(U(e, { onFocus: () => t.setLastFocusedValue(r) }), n), S = U(g, x), C = co(e, { labelable: !0 }), w = -1;
+ }), { focusableProps: x } = q(U(e, { onFocus: () => t.setLastFocusedValue(r) }), n), S = U(g, x), C = Ma(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 } = Qf.get(t);
- ks(n, t.defaultSelectedValue, t.setSelectedValue), As({ validationBehavior: k }, t, n);
- let A = Fs();
+ let { name: T, form: E, descriptionId: D, errorMessageId: O, validationBehavior: k } = Cf.get(t);
+ $o(n, t.defaultSelectedValue, t.setSelectedValue), es({ validationBehavior: k }, t, n);
+ let A = as();
return {
- labelProps: U(y, (0, v.useMemo)(() => ({
+ labelProps: U(y, (0, _.useMemo)(() => ({
onClick: (e) => e.preventDefault(),
onMouseDown: (e) => e.preventDefault()
}), [])),
@@ -18616,18 +18224,18 @@ function $f(e, t, n) {
descriptionProps: A,
isDisabled: p,
isSelected: m,
- isPressed: _ || b
+ isPressed: v || b
};
}
//#endregion
//#region node_modules/react-aria/dist/private/radio/useRadioGroup.mjs
-function ep(e, t) {
- let { name: n, form: r, isReadOnly: i, isRequired: a, isDisabled: o, orientation: s = "vertical", validationBehavior: c = "aria" } = e, { direction: l } = Oi(), { isInvalid: u, validationErrors: d, validationDetails: f } = t.displayValidation, { labelProps: p, fieldProps: m, descriptionProps: h, errorMessageProps: g } = Os({
+function Tf(e, t) {
+ let { name: n, form: r, isReadOnly: i, isRequired: a, isDisabled: o, orientation: s = "vertical", validationBehavior: c = "aria" } = e, { direction: l } = Qr(), { isInvalid: u, validationErrors: d, validationDetails: f } = t.displayValidation, { labelProps: p, fieldProps: m, descriptionProps: h, errorMessageProps: g } = Qo({
...e,
labelElementType: "span",
isInvalid: t.isInvalid,
errorMessage: e.errorMessage || d
- }), _ = co(e, { labelable: !0 }), { focusWithinProps: v } = No({
+ }), _ = Ma(e, { labelable: !0 }), { focusWithinProps: v } = no({
onBlurWithin(n) {
e.onBlur?.(n), t.selectedValue || t.setLastFocusedValue(null);
},
@@ -18635,13 +18243,13 @@ function ep(e, t) {
onFocusWithinChange: e.onFocusChange
});
function y(e, n) {
- let r = _l(n.currentTarget, {
+ let r = Vc(n.currentTarget, {
from: K(n),
- accept: (e) => e instanceof Vn(e).HTMLInputElement && e.type === "radio"
+ accept: (e) => e instanceof dn(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 } = Ca({
+ let { keyboardProps: b } = Ji({
shortcuts: {
ArrowRight: (e) => y(l === "rtl" && s !== "vertical" ? "prev" : "next", e),
ArrowLeft: (e) => y(l === "rtl" && s !== "vertical" ? "next" : "prev", e),
@@ -18649,8 +18257,8 @@ function ep(e, t) {
ArrowUp: (e) => y("prev", e)
},
allowRepeats: !0
- }), x = xn(n);
- return Qf.set(t, {
+ }), x = Wt(n);
+ return Cf.set(t, {
name: x,
form: r,
descriptionId: h.id,
@@ -18679,9 +18287,9 @@ function ep(e, t) {
}
//#endregion
//#region node_modules/react-stately/dist/private/radio/useRadioGroupState.mjs
-var tp = Math.round(Math.random() * 1e10), np = 0;
-function rp(e) {
- let t = (0, v.useMemo)(() => e.name || `radio-group-${tp}-${++np}`, [e.name]), [n, r] = Wi(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, v.useState)(n), [a, o] = (0, v.useState)(null), s = bs({
+var Ef = Math.round(Math.random() * 1e10), Df = 0;
+function Of(e) {
+ let t = (0, _.useMemo)(() => e.name || `radio-group-${Ef}-${++Df}`, [e.name]), [n, r] = mi(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, _.useState)(n), [a, o] = (0, _.useState)(null), s = Wo({
...e,
value: n
}), c = (t) => {
@@ -18704,16 +18312,16 @@ function rp(e) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/RadioGroup.mjs
-var ip = /*#__PURE__*/ (0, v.createContext)(null), ap = /*#__PURE__*/ (0, v.createContext)(null), op = /*#__PURE__*/ (0, v.createContext)(null), sp = /*#__PURE__*/ (0, v.forwardRef)(function(e, t) {
- [e, t] = Nn(e, t, ip);
- let { validationBehavior: n } = Mn(Es) || {}, r = e.validationBehavior ?? n ?? "native", i = rp({
+var kf = /*#__PURE__*/ (0, _.createContext)(null), Af = /*#__PURE__*/ (0, _.createContext)(null), jf = /*#__PURE__*/ (0, _.createContext)(null), Mf = /*#__PURE__*/ (0, _.forwardRef)(function(e, t) {
+ [e, t] = nn(e, t, kf);
+ let { validationBehavior: n } = tn(Xo) || {}, r = e.validationBehavior ?? n ?? "native", i = Of({
...e,
validationBehavior: r
- }), [a, o] = Pn(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = ep({
+ }), [a, o] = rn(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = Tf({
...e,
label: o,
validationBehavior: r
- }, i), f = jn({
+ }, i), f = en({
...e,
values: {
orientation: e.orientation || "vertical",
@@ -18724,8 +18332,8 @@ var ip = /*#__PURE__*/ (0, v.createContext)(null), ap = /*#__PURE__*/ (0, v.crea
state: i
},
defaultClassName: "react-aria-RadioGroup"
- }), p = co(e, { global: !0 });
- return /*#__PURE__*/ v.createElement(Rn.div, {
+ }), p = Ma(e, { global: !0 });
+ return /*#__PURE__*/ _.createElement(cn.div, {
...U(p, f, s),
ref: t,
slot: e.slot || void 0,
@@ -18734,39 +18342,39 @@ var ip = /*#__PURE__*/ (0, v.createContext)(null), ap = /*#__PURE__*/ (0, v.crea
"data-disabled": i.isDisabled || void 0,
"data-readonly": i.isReadOnly || void 0,
"data-required": i.isRequired || void 0
- }, /*#__PURE__*/ v.createElement(An, { values: [
- [op, i],
- [Bo, {
+ }, /*#__PURE__*/ _.createElement($t, { values: [
+ [jf, i],
+ [uo, {
...c,
ref: a,
elementType: "span"
}],
- [es, { slots: {
+ [To, { slots: {
description: l,
errorMessage: u
} }],
- [ms, d]
- ] }, /*#__PURE__*/ v.createElement(Bc, null, f.children)));
-}), cp = /*#__PURE__*/ (0, v.forwardRef)(function(e, t) {
+ [Ro, d]
+ ] }, /*#__PURE__*/ _.createElement(uc, null, f.children)));
+}), Nf = /*#__PURE__*/ (0, _.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = Nn(r, t, ap);
- let i = v.useContext(op), a = On((0, v.useMemo)(() => wn(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = $f({
- ...Fn(e),
+ [e, t] = nn(r, t, Af);
+ let i = _.useContext(jf), a = Zt((0, _.useMemo)(() => qt(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = wf({
+ ...an(e),
children: typeof e.children == "function" || e.children
}, i, a);
- return /*#__PURE__*/ v.createElement(lp.Provider, { value: {
+ return /*#__PURE__*/ _.createElement(Pf.Provider, { value: {
...o,
inputRef: a,
defaultClassName: "react-aria-Radio"
- } }, /*#__PURE__*/ v.createElement(up, {
+ } }, /*#__PURE__*/ _.createElement(Ff, {
...e,
ref: t
}));
-}), lp = /*#__PURE__*/ (0, v.createContext)(null), up = /*#__PURE__*/ (0, v.forwardRef)(function(e, t) {
- let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, v.useContext)(lp), l = v.useContext(op), { isFocused: u, isFocusVisible: d, focusProps: f } = Po(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = zo({
+}), Pf = /*#__PURE__*/ (0, _.createContext)(null), Ff = /*#__PURE__*/ (0, _.forwardRef)(function(e, t) {
+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, _.useContext)(Pf), l = _.useContext(jf), { isFocused: u, isFocusVisible: d, focusProps: f } = ro(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = lo({
...e,
isDisabled: p
- }), g = jn({
+ }), g = en({
...e,
defaultClassName: s,
values: {
@@ -18780,9 +18388,9 @@ var ip = /*#__PURE__*/ (0, v.createContext)(null), ap = /*#__PURE__*/ (0, v.crea
isInvalid: l.isInvalid,
isRequired: l.isRequired
}
- }), _ = co(e, { global: !0 });
- return delete _.id, delete _.onClick, /*#__PURE__*/ v.createElement(Rn.label, {
- ...U(_, n, m, g),
+ }), v = Ma(e, { global: !0 });
+ return delete v.id, delete v.onClick, /*#__PURE__*/ _.createElement(cn.label, {
+ ...U(v, n, m, g),
ref: t,
"data-selected": i || void 0,
"data-pressed": o || void 0,
@@ -18793,25 +18401,25 @@ var ip = /*#__PURE__*/ (0, v.createContext)(null), ap = /*#__PURE__*/ (0, v.crea
"data-readonly": l.isReadOnly || void 0,
"data-invalid": l.isInvalid || void 0,
"data-required": l.isRequired || void 0
- }, /*#__PURE__*/ v.createElement(ps, { elementType: "span" }, /*#__PURE__*/ v.createElement("input", {
+ }, /*#__PURE__*/ _.createElement(Lo, { elementType: "span" }, /*#__PURE__*/ _.createElement("input", {
...U(r, f),
ref: c
})), g.children);
-}), dp = /* @__PURE__ */ new WeakMap();
-function fp(e, t, n) {
- let { keyboardDelegate: r, isDisabled: i, isRequired: a, name: o, form: s, validationBehavior: c = "aria" } = e, l = Pl({
+}), If = /* @__PURE__ */ new WeakMap();
+function Lf(e, t, n) {
+ let { keyboardDelegate: r, isDisabled: i, isRequired: a, name: o, form: s, validationBehavior: c = "aria" } = e, l = il({
usage: "search",
sensitivity: "base"
- }), u = (0, v.useMemo)(() => r || new Ml(t.collection, t.disabledKeys, n, l), [
+ }), u = (0, _.useMemo)(() => r || new nl(t.collection, t.disabledKeys, n, l), [
r,
t.collection,
t.disabledKeys,
l,
n
- ]), { menuTriggerProps: d, menuProps: f } = Yf({
+ ]), { menuTriggerProps: d, menuProps: f } = bf({
isDisabled: i,
type: "listbox"
- }, t, n), { keyboardProps: p } = Ca({
+ }, t, n), { keyboardProps: p } = Ji({
shortcuts: {
ArrowLeft: () => {
if (t.selectionManager.selectionMode === "multiple") return !1;
@@ -18827,21 +18435,21 @@ function fp(e, t, n) {
allowRepeats: !0,
onKeyDown: e.onKeyDown,
onKeyUp: e.onKeyUp
- }), { typeSelectProps: m } = Dl({
+ }), { typeSelectProps: m } = Zc({
keyboardDelegate: u,
selectionManager: t.selectionManager,
onTypeSelect(e) {
t.setSelectedKey(e);
}
- }), { isInvalid: h, validationErrors: g, validationDetails: _ } = t.displayValidation, { labelProps: y, fieldProps: b, descriptionProps: x, errorMessageProps: S } = Os({
+ }), { isInvalid: h, validationErrors: g, validationDetails: v } = t.displayValidation, { labelProps: y, fieldProps: b, descriptionProps: x, errorMessageProps: S } = Qo({
...e,
labelElementType: "span",
isInvalid: h,
errorMessage: e.errorMessage || g
});
t.selectionManager.selectionMode === "multiple" && (m = {});
- let C = co(e, { labelable: !0 }), w = U(m, d, b), T = xn();
- return dp.set(t, {
+ let C = Ma(e, { labelable: !0 }), w = U(m, d, b), T = Wt();
+ return If.set(t, {
isDisabled: i,
isRequired: a,
name: o,
@@ -18851,13 +18459,13 @@ function fp(e, t, n) {
labelProps: {
...y,
onClick: () => {
- e.isDisabled || (n.current?.focus(), si("keyboard"));
+ e.isDisabled || (n.current?.focus(), jr("keyboard"));
}
},
triggerProps: U(C, {
...w,
isDisabled: i,
- onKeyDown: nn(w.onKeyDown, p.onKeyDown),
+ onKeyDown: Dt(w.onKeyDown, p.onKeyDown),
onKeyUp: p.onKeyUp,
"aria-labelledby": [
T,
@@ -18889,7 +18497,7 @@ function fp(e, t, n) {
errorMessageProps: S,
isInvalid: h,
validationErrors: g,
- validationDetails: _,
+ validationDetails: v,
hiddenSelectProps: {
isDisabled: i,
name: o,
@@ -18902,17 +18510,17 @@ function fp(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/select/HiddenSelect.mjs
-function pp(e, t, n) {
- let r = dp.get(t) || {}, { autoComplete: i, name: a = r.name, form: o = r.form, isDisabled: s = r.isDisabled } = e, { validationBehavior: c, isRequired: l } = r, { visuallyHiddenProps: u } = fs({ style: {
+function Rf(e, t, n) {
+ let r = If.get(t) || {}, { autoComplete: i, name: a = r.name, form: o = r.form, isDisabled: s = r.isDisabled } = e, { validationBehavior: c, isRequired: l } = r, { visuallyHiddenProps: u } = Io({ style: {
position: "fixed",
top: 0,
left: 0
} });
- ks(e.selectRef, t.defaultValue, t.setValue), As({
+ $o(e.selectRef, t.defaultValue, t.setValue), es({
validationBehavior: c,
focus: () => n.current?.focus()
}, t, e.selectRef);
- let d = t.setValue, f = (0, v.useCallback)((e) => {
+ let d = t.setValue, f = (0, _.useCallback)((e) => {
let t = K(e);
t.multiple ? d(Array.from(t.selectedOptions, (e) => e.value)) : d(e.currentTarget.value);
}, [d]);
@@ -18938,32 +18546,32 @@ function pp(e, t, n) {
}
};
}
-function mp(e) {
- let { state: t, triggerRef: n, label: r, name: i, form: a, isDisabled: o } = e, s = (0, v.useRef)(null), c = (0, v.useRef)(null), { containerProps: l, selectProps: u } = pp({
+function zf(e) {
+ let { state: t, triggerRef: n, label: r, name: i, form: a, isDisabled: o } = e, s = (0, _.useRef)(null), c = (0, _.useRef)(null), { containerProps: l, selectProps: u } = Rf({
...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__*/ v.createElement("div", {
+ if (t.collection.size <= 300) return /*#__PURE__*/ _.createElement("div", {
...l,
"data-testid": "hidden-select-container"
- }, /*#__PURE__*/ v.createElement("label", null, r, /*#__PURE__*/ v.createElement("select", {
+ }, /*#__PURE__*/ _.createElement("label", null, r, /*#__PURE__*/ _.createElement("select", {
...u,
ref: s
- }, /*#__PURE__*/ v.createElement("option", {
+ }, /*#__PURE__*/ _.createElement("option", {
value: "",
label: "\xA0"
}, "\xA0"), [...t.collection.getKeys()].map((e) => {
let n = t.collection.getItem(e);
- if (n && n.type === "item") return /*#__PURE__*/ v.createElement("option", {
+ if (n && n.type === "item") return /*#__PURE__*/ _.createElement("option", {
key: n.key,
value: n.key
}, n.textValue);
- }), t.collection.size === 0 && i && d.map((e, t) => /*#__PURE__*/ v.createElement("option", {
+ }), t.collection.size === 0 && i && d.map((e, t) => /*#__PURE__*/ _.createElement("option", {
key: t,
value: e ?? ""
})))));
if (i) {
- let { validationBehavior: e } = dp.get(t) || {};
+ let { validationBehavior: e } = If.get(t) || {};
d.length === 0 && (d = [null]);
let n = d.map((t, n) => {
let r = {
@@ -18974,7 +18582,7 @@ function mp(e) {
disabled: o,
value: t ?? ""
};
- return e === "native" ? /*#__PURE__*/ v.createElement("input", {
+ return e === "native" ? /*#__PURE__*/ _.createElement("input", {
key: n,
...r,
ref: n === 0 ? c : null,
@@ -18982,24 +18590,24 @@ function mp(e) {
type: "text",
required: n === 0 && u.required,
onChange: () => {}
- }) : /*#__PURE__*/ v.createElement("input", {
+ }) : /*#__PURE__*/ _.createElement("input", {
key: n,
...r,
ref: n === 0 ? c : null
});
});
- return /*#__PURE__*/ v.createElement(v.Fragment, null, n);
+ return /*#__PURE__*/ _.createElement(_.Fragment, null, n);
}
return null;
}
//#endregion
//#region node_modules/react-stately/dist/private/select/useSelectState.mjs
-function hp(e) {
- let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = rf(e), [i, a] = (0, v.useState)(null), o = (0, v.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [
+function Bf(e) {
+ let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = Dd(e), [i, a] = (0, _.useState)(null), o = (0, _.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [
e.defaultValue,
e.defaultSelectedKey,
t
- ]), [s, c] = Wi((0, v.useMemo)(() => e.value === void 0 ? t === "single" ? e.selectedKey : void 0 : e.value, [
+ ]), [s, c] = mi((0, _.useMemo)(() => e.value === void 0 ? t === "single" ? e.selectedKey : void 0 : e.value, [
e.value,
e.selectedKey,
t
@@ -19011,12 +18619,12 @@ function hp(e) {
let e = [];
Array.isArray(n) ? e = n : n != null && (e = [n]), c(e);
}
- }, d = lu({
+ }, d = Nl({
...e,
selectionMode: t,
disallowEmptySelection: t === "single",
allowDuplicateSelectionEvents: !0,
- selectedKeys: (0, v.useMemo)(() => gp(l), [l]),
+ selectedKeys: (0, _.useMemo)(() => $(l), [l]),
onSelectionChange: (e) => {
if (e !== "all") {
if (t === "single") {
@@ -19026,22 +18634,22 @@ function hp(e) {
n && r.close(), m.commitValidation();
}
}
- }), f = d.selectionManager.firstSelectedKey, p = (0, v.useMemo)(() => [...d.selectionManager.selectedKeys].map((e) => d.collection.getItem(e)).filter((e) => e != null), [d.selectionManager.selectedKeys, d.collection]), m = bs({
+ }), f = d.selectionManager.firstSelectedKey, p = (0, _.useMemo)(() => [...d.selectionManager.selectedKeys].map((e) => d.collection.getItem(e)).filter((e) => e != null), [d.selectionManager.selectedKeys, d.collection]), m = Wo({
...e,
value: Array.isArray(l) && l.length === 0 ? null : l
- }), [h, g] = (0, v.useState)(!1), [_] = (0, v.useState)(l);
+ }), [h, g] = (0, _.useState)(!1), [v] = (0, _.useState)(l);
return {
...m,
...d,
...r,
value: l,
- defaultValue: o ?? _,
+ defaultValue: o ?? v,
setValue: u,
selectedKey: f,
setSelectedKey: u,
selectedItem: p[0] ?? null,
selectedItems: p,
- defaultSelectedKey: e.defaultSelectedKey ?? (e.selectionMode === "single" ? _ : null),
+ defaultSelectedKey: e.defaultSelectedKey ?? (e.selectionMode === "single" ? v : null),
focusStrategy: i,
open(t = null) {
(d.collection.size !== 0 || e.allowsEmptyCollection) && (a(t), r.open());
@@ -19053,17 +18661,17 @@ function hp(e) {
setFocused: g
};
}
-function gp(e) {
+function $(e) {
if (e !== void 0) return e === null ? [] : Array.isArray(e) ? e : [e];
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Select.mjs
-function _p(e) {
+function Vf(e) {
return e && e.__esModule ? e.default : e;
}
-var vp = /*#__PURE__*/ (0, v.createContext)(null), yp = /*#__PURE__*/ (0, v.createContext)(null), bp = /*#__PURE__*/ Aa(function(e, t) {
- [e, t] = Nn(e, t, vp);
- let { children: n, isDisabled: r = !1, isInvalid: i = !1, isRequired: a = !1 } = e, o = (0, v.useMemo)(() => typeof n == "function" ? n({
+var Hf = /*#__PURE__*/ (0, _.createContext)(null), Uf = /*#__PURE__*/ (0, _.createContext)(null), Wf = /*#__PURE__*/ ea(function(e, t) {
+ [e, t] = nn(e, t, Hf);
+ let { children: n, isDisabled: r = !1, isInvalid: i = !1, isRequired: a = !1 } = e, o = (0, _.useMemo)(() => typeof n == "function" ? n({
isOpen: !1,
isDisabled: r,
isInvalid: i,
@@ -19077,27 +18685,27 @@ var vp = /*#__PURE__*/ (0, v.createContext)(null), yp = /*#__PURE__*/ (0, v.crea
i,
a
]);
- return /*#__PURE__*/ v.createElement(Ra, { content: o }, (n) => /*#__PURE__*/ v.createElement(Sp, {
+ return /*#__PURE__*/ _.createElement(ca, { content: o }, (n) => /*#__PURE__*/ _.createElement(Kf, {
props: e,
collection: n,
selectRef: t
}));
-}), xp = [
- Bo,
- Xo,
- es
+}), Gf = [
+ uo,
+ xo,
+ To
];
-function Sp({ props: e, selectRef: t, collection: n }) {
- let { validationBehavior: r } = Mn(Es) || {}, i = e.validationBehavior ?? r ?? "native", a = hp({
+function Kf({ props: e, selectRef: t, collection: n }) {
+ let { validationBehavior: r } = tn(Xo) || {}, i = e.validationBehavior ?? r ?? "native", a = Bf({
...e,
collection: n,
children: void 0,
validationBehavior: i
- }), { isFocusVisible: o, focusProps: s } = Po({ within: !0 }), c = (0, v.useRef)(null), [l, u] = Pn(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...y } = fp({
- ...Fn(e),
+ }), { isFocusVisible: o, focusProps: s } = ro({ within: !0 }), c = (0, _.useRef)(null), [l, u] = rn(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: v, ...y } = Lf({
+ ...an(e),
label: u,
validationBehavior: i
- }, a, c), b = (0, v.useMemo)(() => ({
+ }, a, c), b = (0, _.useMemo)(() => ({
isOpen: a.isOpen,
isFocused: a.isFocused,
isFocusVisible: o,
@@ -19111,48 +18719,48 @@ function Sp({ props: e, selectRef: t, collection: n }) {
e.isDisabled,
y.isInvalid,
e.isRequired
- ]), x = jn({
+ ]), x = en({
...e,
values: b,
defaultClassName: "react-aria-Select"
- }), S = co(e, { global: !0 });
+ }), S = Ma(e, { global: !0 });
delete S.id;
- let C = (0, v.useRef)(null);
- return /*#__PURE__*/ v.createElement(An, { values: [
- [vp, e],
- [yp, a],
- [Cp, p],
- [Bo, {
+ let C = (0, _.useRef)(null);
+ return /*#__PURE__*/ _.createElement($t, { values: [
+ [Hf, e],
+ [Uf, a],
+ [qf, p],
+ [uo, {
...d,
ref: l,
elementType: "span"
}],
- [Xo, {
+ [xo, {
...f,
ref: c,
isPressed: a.isOpen,
autoFocus: e.autoFocus
}],
- [Xf, a],
- [cf, {
+ [xf, a],
+ [jd, {
trigger: "Select",
triggerRef: c,
scrollRef: C,
placement: "bottom start",
"aria-labelledby": m["aria-labelledby"],
- clearContexts: xp
+ clearContexts: Gf
}],
- [pu, {
+ [Ll, {
...m,
ref: C
}],
- [mu, a],
- [es, { slots: {
+ [Rl, a],
+ [To, { slots: {
description: h,
errorMessage: g
} }],
- [ms, y]
- ] }, /*#__PURE__*/ v.createElement(Rn.div, {
+ [Ro, y]
+ ] }, /*#__PURE__*/ _.createElement(cn.div, {
...U(S, x, s),
ref: t,
slot: e.slot || void 0,
@@ -19162,14 +18770,14 @@ function Sp({ props: e, selectRef: t, collection: n }) {
"data-disabled": e.isDisabled || void 0,
"data-invalid": y.isInvalid || void 0,
"data-required": e.isRequired || void 0
- }, x.children, /*#__PURE__*/ v.createElement(mp, {
- ..._,
+ }, x.children, /*#__PURE__*/ _.createElement(zf, {
+ ...v,
autoComplete: e.autoComplete
})));
}
-var Cp = /*#__PURE__*/ (0, v.createContext)(null), wp = /*#__PURE__*/ Aa(function(e, t) {
- [e, t] = Nn(e, t, Cp);
- let n = (0, v.useContext)(yp), { placeholder: r } = Mn(vp), i = n.selectedItems.map((e) => {
+var qf = /*#__PURE__*/ (0, _.createContext)(null), Jf = /*#__PURE__*/ ea(function(e, t) {
+ [e, t] = nn(e, t, qf);
+ let n = (0, _.useContext)(Uf), { placeholder: r } = tn(Hf), i = n.selectedItems.map((e) => {
let t = e.props?.children;
return typeof t == "function" && (t = t({
isHovered: !1,
@@ -19181,44 +18789,44 @@ var Cp = /*#__PURE__*/ (0, v.createContext)(null), wp = /*#__PURE__*/ Aa(functio
selectionMode: "single",
selectionBehavior: "toggle"
})), t;
- }), a = Zf(), o = (0, v.useMemo)(() => n.selectedItems.map((e) => e?.textValue), [n.selectedItems]), s = n.selectionManager.selectionMode, c = (0, v.useMemo)(() => s === "single" ? o[0] ?? "" : a.format(o), [
+ }), a = Sf(), o = (0, _.useMemo)(() => n.selectedItems.map((e) => e?.textValue), [n.selectedItems]), s = n.selectionManager.selectionMode, c = (0, _.useMemo)(() => s === "single" ? o[0] ?? "" : a.format(o), [
s,
a,
o
- ]), l = (0, v.useMemo)(() => {
+ ]), l = (0, _.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__*/ v.createElement(v.Fragment, { key: t }, i[t++]) : e.value);
+ return e.map((e) => e.type === "element" ? /*#__PURE__*/ _.createElement(_.Fragment, { key: t }, i[t++]) : e.value);
}, [
s,
a,
o,
i
- ]), u = Hi(_p(Mc), "react-aria-components"), d = jn({
+ ]), u = fi(Vf(nc), "react-aria-components"), d = en({
...e,
defaultChildren: l ?? r ?? u.format("selectPlaceholder"),
defaultClassName: "react-aria-SelectValue",
values: {
selectedItem: n.selectedItems[0]?.value ?? null,
- selectedItems: (0, v.useMemo)(() => n.selectedItems.map((e) => e.value ?? null), [n.selectedItems]),
+ selectedItems: (0, _.useMemo)(() => n.selectedItems.map((e) => e.value ?? null), [n.selectedItems]),
selectedText: c,
isPlaceholder: n.selectedItems.length === 0,
state: n
}
- }), f = co(e, { global: !0 });
- return /*#__PURE__*/ v.createElement(Rn.span, {
+ }), f = Ma(e, { global: !0 });
+ return /*#__PURE__*/ _.createElement(cn.span, {
ref: t,
...f,
...d,
"data-placeholder": n.selectedItems.length === 0 || void 0
- }, /*#__PURE__*/ v.createElement(es.Provider, { value: void 0 }, d.children));
+ }, /*#__PURE__*/ _.createElement(To.Provider, { value: void 0 }, d.children));
});
//#endregion
//#region node_modules/react-aria/dist/private/switch/useSwitch.mjs
-function Tp(e, t, n) {
- let { labelProps: r, inputProps: i, isSelected: a, ...o } = Is(e, t, n);
+function Yf(e, t, n) {
+ let { labelProps: r, inputProps: i, isSelected: a, ...o } = os(e, t, n);
return {
labelProps: r,
inputProps: {
@@ -19232,26 +18840,26 @@ function Tp(e, t, n) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Switch.mjs
-var Ep = /*#__PURE__*/ (0, v.createContext)(null), Dp = /*#__PURE__*/ (0, v.createContext)(null), Op = /*#__PURE__*/ (0, v.forwardRef)(function(e, t) {
+var Xf = /*#__PURE__*/ (0, _.createContext)(null), Zf = /*#__PURE__*/ (0, _.createContext)(null), Qf = /*#__PURE__*/ (0, _.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = Nn(r, t, Ep);
- let i = On((0, v.useMemo)(() => wn(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = Rs(e), o = Tp({
- ...Fn(e),
+ [e, t] = nn(r, t, Xf);
+ let i = Zt((0, _.useMemo)(() => qt(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = cs(e), o = Yf({
+ ...an(e),
children: typeof e.children == "function" || e.children
}, a, i);
- return /*#__PURE__*/ v.createElement(An, { values: [[Dp, a], [kp, {
+ return /*#__PURE__*/ _.createElement($t, { values: [[Zf, a], [$f, {
...o,
inputRef: i,
defaultClassName: "react-aria-Switch"
- }]] }, /*#__PURE__*/ v.createElement(Ap, {
+ }]] }, /*#__PURE__*/ _.createElement(ep, {
...e,
ref: t
}));
-}), kp = /*#__PURE__*/ (0, v.createContext)(null), Ap = /*#__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, isRequired: d } = (0, v.useContext)(kp), { isFocused: f, isFocusVisible: p, focusProps: m } = Po(), h = a || o, g = (0, v.useContext)(Dp), { hoverProps: _, isHovered: y } = zo({
+}), $f = /*#__PURE__*/ (0, _.createContext)(null), ep = /*#__PURE__*/ (0, _.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, _.useContext)($f), { isFocused: f, isFocusVisible: p, focusProps: m } = ro(), h = a || o, g = (0, _.useContext)(Zf), { hoverProps: v, isHovered: y } = lo({
...e,
isDisabled: h
- }), b = jn({
+ }), b = en({
...e,
defaultClassName: u,
values: {
@@ -19266,9 +18874,9 @@ var Ep = /*#__PURE__*/ (0, v.createContext)(null), Dp = /*#__PURE__*/ (0, v.crea
isRequired: d || !1,
state: g
}
- }), x = co(e, { global: !0 });
- return delete x.id, delete x.onClick, /*#__PURE__*/ v.createElement(Rn.label, {
- ...U(x, n, _, b),
+ }), x = Ma(e, { global: !0 });
+ return delete x.id, delete x.onClick, /*#__PURE__*/ _.createElement(cn.label, {
+ ...U(x, n, v, b),
ref: t,
slot: e.slot || void 0,
"data-selected": i || void 0,
@@ -19280,22 +18888,22 @@ var Ep = /*#__PURE__*/ (0, v.createContext)(null), Dp = /*#__PURE__*/ (0, v.crea
"data-readonly": o || void 0,
"data-invalid": c || void 0,
"data-required": d || void 0
- }, /*#__PURE__*/ v.createElement(ps, { elementType: "span" }, /*#__PURE__*/ v.createElement("input", {
+ }, /*#__PURE__*/ _.createElement(Lo, { elementType: "span" }, /*#__PURE__*/ _.createElement("input", {
...U(r, m),
ref: l
})), b.children);
-}), jp = /*#__PURE__*/ (0, v.createContext)({}), Mp = /*#__PURE__*/ (0, v.createContext)(null), Np = /*#__PURE__*/ Aa(function(e, t) {
- [e, t] = Nn(e, t, Mp);
- let { validationBehavior: n } = Mn(Es) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, v.useRef)(null);
- [e, i] = Nn(e, i, Ki);
- let [a, o] = Pn(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, v.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = Zs({
- ...Fn(e),
+}), tp = /*#__PURE__*/ (0, _.createContext)({}), np = /*#__PURE__*/ (0, _.createContext)(null), rp = /*#__PURE__*/ ea(function(e, t) {
+ [e, t] = nn(e, t, np);
+ let { validationBehavior: n } = tn(Xo) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, _.useRef)(null);
+ [e, i] = nn(e, i, gi);
+ let [a, o] = rn(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, _.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = xs({
+ ...an(e),
inputElementType: s,
label: o,
validationBehavior: r
- }, i), m = (0, v.useCallback)((e) => {
+ }, i), m = (0, _.useCallback)((e) => {
i.current = e, e && c(e instanceof HTMLTextAreaElement ? "textarea" : "input");
- }, [i]), h = jn({
+ }, [i]), h = en({
...e,
values: {
isDisabled: e.isDisabled || !1,
@@ -19304,8 +18912,8 @@ var Ep = /*#__PURE__*/ (0, v.createContext)(null), Dp = /*#__PURE__*/ (0, v.crea
isRequired: e.isRequired || !1
},
defaultClassName: "react-aria-TextField"
- }), g = co(e, { global: !0 });
- return delete g.id, /*#__PURE__*/ v.createElement(Rn.div, {
+ }), g = Ma(e, { global: !0 });
+ return delete g.id, /*#__PURE__*/ _.createElement(cn.div, {
...g,
...h,
ref: t,
@@ -19314,31 +18922,31 @@ var Ep = /*#__PURE__*/ (0, v.createContext)(null), Dp = /*#__PURE__*/ (0, v.crea
"data-invalid": p.isInvalid || void 0,
"data-readonly": e.isReadOnly || void 0,
"data-required": e.isRequired || void 0
- }, /*#__PURE__*/ v.createElement(An, { values: [
- [Bo, {
+ }, /*#__PURE__*/ _.createElement($t, { values: [
+ [uo, {
...l,
ref: a
}],
- [Js, {
+ [vs, {
...u,
ref: m
}],
- [jp, {
+ [tp, {
...u,
ref: m
}],
- [Ks, {
+ [gs, {
role: "presentation",
isInvalid: p.isInvalid,
isDisabled: e.isDisabled || !1
}],
- [es, { slots: {
+ [To, { slots: {
description: d,
errorMessage: f
} }],
- [ms, p]
+ [Ro, p]
] }, h.children));
-}), Pp = {
+}), ip = {
md: {
box: "size-4",
glyph: "size-4",
@@ -19352,8 +18960,8 @@ var Ep = /*#__PURE__*/ (0, v.createContext)(null), Dp = /*#__PURE__*/ (0, v.crea
gap: "gap-1.5"
}
};
-function Fp({ state: e, size: t = "md" }) {
- let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = Pp[t], c = n || r, l = o && !a;
+function ap({ state: e, size: t = "md" }) {
+ let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = ip[t], c = n || r, l = o && !a;
return /* @__PURE__ */ (0, B.jsx)("span", {
"aria-hidden": !0,
className: ht("flex shrink-0 items-center justify-center rounded-sm", "transition-[background-color,border-color,box-shadow] duration-150 ease", s.box, c ? ht("bg-linear-to-b shadow-checkbox-selected", l ? "from-accent-400 to-accent-500" : "from-accent-500 to-accent-600") : ht("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"),
@@ -19380,13 +18988,13 @@ function Fp({ state: e, size: t = "md" }) {
}
//#endregion
//#region src/react/boardui/components/base/checkbox/checkbox.tsx
-function Ip({ className: e, children: t, size: n = "md", ref: r, ...i }) {
- let a = Pp[n];
- return /* @__PURE__ */ (0, B.jsx)(Ws, {
+function op({ className: e, children: t, size: n = "md", ref: r, ...i }) {
+ let a = ip[n];
+ return /* @__PURE__ */ (0, B.jsx)(ms, {
ref: r,
...i,
className: (t) => ht("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, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(Fp, {
+ children: (e) => /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(ap, {
state: e,
size: n
}), t != null && /* @__PURE__ */ (0, B.jsx)("span", {
@@ -19396,9 +19004,52 @@ function Ip({ className: e, children: t, size: n = "md", ref: r, ...i }) {
});
}
//#endregion
+//#region node_modules/@remixicon/react/index.mjs
+var sp = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => _.createElement("svg", {
+ viewBox: "0 0 24 24",
+ xmlns: "http://www.w3.org/2000/svg",
+ width: t,
+ height: t,
+ fill: e,
+ ...r,
+ className: "remixicon " + (n || "")
+}, _.createElement("path", { d: "M11 11V5H13V11H19V13H13V19H11V13H5V11H11Z" })), cp = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => _.createElement("svg", {
+ viewBox: "0 0 24 24",
+ xmlns: "http://www.w3.org/2000/svg",
+ width: t,
+ height: t,
+ fill: e,
+ ...r,
+ className: "remixicon " + (n || "")
+}, _.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" })), lp = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => _.createElement("svg", {
+ viewBox: "0 0 24 24",
+ xmlns: "http://www.w3.org/2000/svg",
+ width: t,
+ height: t,
+ fill: e,
+ ...r,
+ className: "remixicon " + (n || "")
+}, _.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" })), up = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => _.createElement("svg", {
+ viewBox: "0 0 24 24",
+ xmlns: "http://www.w3.org/2000/svg",
+ width: t,
+ height: t,
+ fill: e,
+ ...r,
+ className: "remixicon " + (n || "")
+}, _.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" })), dp = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => _.createElement("svg", {
+ viewBox: "0 0 24 24",
+ xmlns: "http://www.w3.org/2000/svg",
+ width: t,
+ height: t,
+ fill: e,
+ ...r,
+ className: "remixicon " + (n || "")
+}, _.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" }));
+//#endregion
//#region src/react/boardui/components/base/input/label.tsx
-function Lp({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {
- return /* @__PURE__ */ (0, B.jsxs)(Vo, {
+function fp({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {
+ return /* @__PURE__ */ (0, B.jsxs)(fo, {
"data-label": "true",
...a,
className: ht("flex cursor-default items-center gap-0.5", "text-body-medium text-text-primary", r),
@@ -19409,7 +19060,7 @@ function Lp({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, childr
className: "text-body-medium text-text-error-primary",
children: "*"
}),
- n && /* @__PURE__ */ (0, B.jsx)(zt, {
+ n && /* @__PURE__ */ (0, B.jsx)(dp, {
className: "size-4 shrink-0 text-foreground-icon-quaternary",
"aria-hidden": !0
})
@@ -19418,8 +19069,8 @@ function Lp({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, childr
}
//#endregion
//#region src/react/boardui/components/base/input/hint-text.tsx
-function Rp({ isInvalid: e = !1, className: t, ...n }) {
- return /* @__PURE__ */ (0, B.jsx)(ts, {
+function pp({ isInvalid: e = !1, className: t, ...n }) {
+ return /* @__PURE__ */ (0, B.jsx)(Eo, {
slot: e ? "errorMessage" : "description",
...n,
className: ht("pt-px text-caption-1-medium text-text-secondary", e && "text-text-error-primary", t)
@@ -19427,15 +19078,15 @@ function Rp({ isInvalid: e = !1, className: t, ...n }) {
}
//#endregion
//#region src/react/boardui/components/base/input/input.tsx
-var zp = (0, v.createContext)({});
-function Bp({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {
- return /* @__PURE__ */ (0, B.jsx)(zp.Provider, {
+var mp = (0, _.createContext)({});
+function hp({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {
+ return /* @__PURE__ */ (0, B.jsx)(mp.Provider, {
value: {
size: e,
fieldClassName: t,
inputClassName: n
},
- children: /* @__PURE__ */ (0, B.jsx)(Np, {
+ children: /* @__PURE__ */ (0, B.jsx)(rp, {
...a,
"data-input-size": e,
className: ht("group flex h-max w-full flex-col items-start gap-1", r),
@@ -19443,8 +19094,8 @@ function Bp({ size: e = "medium", fieldClassName: t, inputClassName: n, classNam
})
});
}
-Bp.displayName = "TextField";
-var Vp = gt({
+hp.displayName = "TextField";
+var gp = gt({
field: [
"relative flex w-full items-center",
"rounded-2lg",
@@ -19473,44 +19124,44 @@ var Vp = gt({
].join(" "),
icon: "size-5 shrink-0"
});
-function Hp({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {
- let l = (0, v.useContext)(zp), u = e ?? l.size ?? "medium", d = r != null;
- return /* @__PURE__ */ (0, B.jsx)(qs, {
+function _p({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {
+ let l = (0, _.useContext)(mp), u = e ?? l.size ?? "medium", d = r != null;
+ return /* @__PURE__ */ (0, B.jsx)(_s, {
ref: s,
- className: ({ isFocusWithin: e, isHovered: t, isDisabled: n, isInvalid: r }) => ht(Vp.field, d ? Vp.fieldWithAddonSize[u] : Vp.fieldSize[u], t && !e && !n && !r && "ring-border-button-hover", e && !n && !r && "ring-border-button-active", n && "bg-input-disabled-background text-input-disabled-foreground", r && "bg-background-tertiary-error text-foreground-icon-error", l.fieldClassName, i),
+ className: ({ isFocusWithin: e, isHovered: t, isDisabled: n, isInvalid: r }) => ht(gp.field, d ? gp.fieldWithAddonSize[u] : gp.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, B.jsxs)("div", {
- className: Vp.content,
+ className: gp.content,
children: [/* @__PURE__ */ (0, B.jsxs)("div", {
- className: Vp.leftSection,
+ className: gp.leftSection,
children: [d ? r : t ? /* @__PURE__ */ (0, B.jsx)(t, {
- className: Vp.icon,
+ className: gp.icon,
"aria-hidden": !0
- }) : null, /* @__PURE__ */ (0, B.jsx)(Xs, {
+ }) : null, /* @__PURE__ */ (0, B.jsx)(bs, {
ref: o,
...c,
- className: ht(Vp.input, l.inputClassName, a)
+ className: ht(gp.input, l.inputClassName, a)
})]
}), n ? /* @__PURE__ */ (0, B.jsx)(n, {
- className: Vp.icon,
+ className: gp.icon,
"aria-hidden": !0
}) : null]
})
});
}
-Hp.displayName = "InputBase";
-function Up({ 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, B.jsx)(Bp, {
+_p.displayName = "InputBase";
+function vp({ 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, B.jsx)(hp, {
...d,
className: u,
"aria-label": d["aria-label"] ?? (!e && typeof r == "string" ? r : void 0),
children: ({ isRequired: u, isInvalid: d }) => /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [
- e && /* @__PURE__ */ (0, B.jsx)(Lp, {
+ e && /* @__PURE__ */ (0, B.jsx)(fp, {
isRequired: u,
isInvalid: d,
tooltip: n,
children: e
}),
- /* @__PURE__ */ (0, B.jsx)(Hp, {
+ /* @__PURE__ */ (0, B.jsx)(_p, {
ref: c,
groupRef: l,
placeholder: r,
@@ -19519,17 +19170,367 @@ function Up({ label: e, hint: t, tooltip: n, placeholder: r, leadingIcon: i, tra
leadingAddon: o,
fieldClassName: s
}),
- t && /* @__PURE__ */ (0, B.jsx)(Rp, {
+ t && /* @__PURE__ */ (0, B.jsx)(pp, {
isInvalid: d,
children: t
})
] })
});
}
-Up.displayName = "Input";
+vp.displayName = "Input";
+function yp({ data: e }) {
+ let [t, n] = (0, _.useState)(e.error || (e.invalid === "true" ? "访问密码不正确" : ""));
+ return /* @__PURE__ */ (0, B.jsx)(xt, {
+ title: "Peach",
+ children: /* @__PURE__ */ (0, B.jsxs)("form", {
+ method: "post",
+ action: "/login",
+ "aria-labelledby": "auth-card-title",
+ className: "flex flex-col gap-6",
+ children: [
+ /* @__PURE__ */ (0, B.jsx)(vp, {
+ id: "login-token",
+ label: "访问密码",
+ name: "token",
+ type: "password",
+ maxLength: 256,
+ autoComplete: "current-password",
+ autoFocus: !0,
+ isRequired: !0,
+ isInvalid: t ? !0 : void 0,
+ onChange: () => n(""),
+ hint: t ? /* @__PURE__ */ (0, B.jsx)("span", {
+ role: "alert",
+ children: t
+ }) : void 0
+ }),
+ /* @__PURE__ */ (0, B.jsx)("input", {
+ type: "hidden",
+ name: "next",
+ value: e.next || "/"
+ }),
+ /* @__PURE__ */ (0, B.jsx)(op, {
+ name: "days",
+ value: "30",
+ defaultSelected: !0,
+ children: "保持登录"
+ }),
+ /* @__PURE__ */ (0, B.jsx)(yt, {
+ type: "submit",
+ className: "w-full",
+ children: "登录"
+ })
+ ]
+ })
+ });
+}
+//#endregion
+//#region src/react/components/note.tsx
+function bp({ tone: e, title: t, action: n, extra: r, children: i }) {
+ let a = /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsxs)("div", {
+ className: "flex flex-wrap items-center justify-between gap-3",
+ children: [/* @__PURE__ */ (0, B.jsxs)("div", {
+ className: "flex min-w-0 flex-1 flex-col gap-0.5",
+ children: [t ? /* @__PURE__ */ (0, B.jsx)("p", {
+ className: "text-body-medium",
+ children: t
+ }) : null, /* @__PURE__ */ (0, B.jsx)("p", {
+ className: "text-body-2-regular",
+ children: i
+ })]
+ }), n]
+ }), r] });
+ switch (e) {
+ case "info": return /* @__PURE__ */ (0, B.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: a
+ });
+ case "success": return /* @__PURE__ */ (0, B.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: a
+ });
+ case "warning": return /* @__PURE__ */ (0, B.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: a
+ });
+ case "error": return /* @__PURE__ */ (0, B.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: a
+ });
+ default: return /* @__PURE__ */ (0, B.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: a
+ });
+ }
+}
+//#endregion
+//#region src/configuration-endpoints.ts
+var xp = "/api/pick-folder", Sp = "/api/setup/questions", Cp = "/api/setup", wp = class extends Error {
+ status;
+ errors;
+ constructor(e, t, n) {
+ super(t), this.status = e, this.errors = n;
+ }
+};
+async function Tp(e, t, n) {
+ let r;
+ try {
+ r = await fetch(e, {
+ credentials: "same-origin",
+ ...t,
+ headers: {
+ Accept: "application/json",
+ ...t.body ? { "Content-Type": "application/json" } : {}
+ }
+ });
+ } catch (e) {
+ throw t.signal?.aborted ? e : new wp(0, "连接不到 Peach,请确认它仍在运行后重试");
+ }
+ let i = await r.json().catch(() => null);
+ if (!r.ok) throw new wp(r.status, i?.error || n, i?.errors);
+ return i;
+}
+var Ep = (e) => Tp(Sp, { signal: e }, "没能读取设置题目"), Dp = (e) => Tp(Cp, {
+ method: "POST",
+ body: JSON.stringify(e)
+}, "没能完成设置"), Op = async (e) => (await Tp(xp, {
+ method: "POST",
+ body: JSON.stringify({ initial: e })
+}, "没能打开文件夹对话框")).path, kp = (e) => e instanceof Error && e.message || "请求失败,请重试", Ap = 8e3, jp = /* @__PURE__ */ new WeakMap();
+function Mp(e, t, n) {
+ t.classList.add("fcollapse");
+ let r = (jp.get(t) || 0) + 1;
+ jp.set(t, r);
+ let i = () => jp.get(t) === r;
+ if (n) {
+ t.inert = !1;
+ let n = e.open ? t.getBoundingClientRect().height : 0;
+ e.open = !0, Pp(t, n, i);
+ } else t.inert = !0, t.classList.remove("fcollapse-settled"), t.style.height = t.getBoundingClientRect().height + "px", t.getBoundingClientRect(), t.style.height = "0px", Np(t, () => {
+ i() && (e.open = !1, t.style.height = "");
+ });
+}
+function Np(e, t) {
+ let n = !1, r, i = (a) => {
+ a && a.propertyName !== "height" || n || (n = !0, e.removeEventListener("transitionend", i), clearTimeout(r), t());
+ };
+ e.addEventListener("transitionend", i), r = setTimeout(i, 260);
+}
+function Pp(e, t, n = () => !0) {
+ e.classList.remove("fcollapse-settled"), e.style.height = t + "px", e.getBoundingClientRect(), e.style.height = e.scrollHeight + "px", Np(e, () => {
+ n() && (e.style.height = "auto", e.classList.add("fcollapse-settled"));
+ });
+}
+//#endregion
+//#region src/ui-kit/media-source-icons.ts
+var Fp = {
+ local: "hard-drive",
+ 115: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAHB0lEQVR4nO2bbUwURxjH/zN38qIcb4JWoIoHFYumWhDbRquNiSlYC4ZGjVYrotHWD1VTLdY00X7zbA22Na21KWqsUMHYSiygJjaRQDW+VK2YioBarVZBQA9QDm6nedajCuxxHrfH7dX+kiXcvszM8+zO7DPP/JfBzcQmfx4O1jpJEmKUgBTHwUYIIAyAwbYRZtoYUCdBVDLwi5yxCgjfo1Uly2vd2T7mjkJj3vgsUVitcwWkqQxstAv1CAFxnoEfZjpdbvXPq05p1gFxqSZDexuWCIhMCMTDHTBcYGA5+n7YdrEwy6xOkS4yJi07uMliWSGEeB9ACPqGBsbYFwE+PpvP7l/Z6BEHCCFYzDRTBgATBMLhCRhofMiqLsrawRgTvSuiFxinbxjK2pErgAnQAAwoE3rMrTmw5s9eXOscxpSNE5iQ9glgEDQEA24LxtNrij8sc+Y67szJscmmTAjpiNaMJ+Q2CemI3Ea1n4CZM/N1p5pqPoXASngDDNmJAcbVBQWzrI5PfRLjzTX7AKTCuyhMNBjTHTmBOypFvvPeZzyRamt775+A2GRTpgTxHbwYDraoqiQrx2kHGFM2TqBBBYAPvBsLGJ9i7+3AenjPn9DiaN/rV6QeSUpxgl4pwotNMeWqbXw/PceYuAiEBvk7dZ2/Xz8MCQvE2JERGB4ZgteXOt8jyRY5cBPi1a4Ro77rybbwVtUIzzDAF7mmOYiPGexSOZt2Hu31tRS12mzbbvctMCYtO1iO7VVmUXqSy8bX323Bjp9OutoUk81GZQc0WSwr1J7YBAb4IiNtnMvlbCs4jpYHba4VIhAu26jkgLhUk8E2pVWVRenj5S7QWyxtVhQcOoecH0+o0h6ykWztNga0t2GJ2vP5oAA/ZKQldtv/1Q+/Yv8vFWg0P3BYhrm5Fa2WdjWbFWKzdVMnB8iZHJVZ/NZ4BPTvfPfzis64NJipgc1W2QG8I4endhor2OCHd1ITOu27/6AN2btK4XEE4mWbYXMAJTD74u5/f+A07jS2QAt02MzlH5Cmqn/3u/d9vV6HyeOM8nFP02Ezo7y9hPu31MwQr86YjHdnv9zjOTXX7+D4uWsoKv0D5WeuwgMIDv/Belq0gFDP+JBAf8zv0veVMEYNlLc508bir1t3sffw78g/eA5/16mS7X4SGNnOacVG7b4/wN+5CWTk4CAsnzcRh79djPlvOnaeWkhCjOK0XKVmoXWNzdhTchalpy7Ld9YZ+vv5YP2yqfK8YfDAALgbASmOxSRvoGmv67GqHcJCBuDFkRHybC5pdBQSno8EY457XPW1O5i9ajca7t13V9Oo359kxuQNlwFEo494JsyAGVNGYeGMcbJzeuLcxZt4e02e63MA+1yh1+C/cXFfQIPc1vxjmJSxFZt3lcJqleye+0LcEKyYP9GdzTH0uQM6oPj+y9xyzM3Kw83ae3bPmzc9ARGDAt3qAI9ysuI6Zn2wG7X1TYrHfX30WDb7FbfVz23iBI9yo/YeFq/bK88VlJicZHRX1WZNOIA4X3ULuw6cVjwWER6I6Ai3rLybOclSoBFy9p2wO/ePHTpQ9foYUMdJkwONUNvQjIuXlSVBOp36w5UEUclJkAQNcdPOXIDTs6oyjMRYshpLQ1gl5big5nq96nVxxio4SdEeps21QVx0uGJesPKK6mo5QbZz0uGRFA0agMLk4ZGh3faX/XaF9HKqQjZXlSyvlUcW0uFBA9BUWKmvUxZZbTps5vIPnS4XHoZecwsU0mgHyypRUU0JK3XpsJnTH1mByXABHoKySFvWzpAXQrtOiT/aXKx+hQwXOlSn/NE+ZldE4E6GDQlGwaZ5eG4YyYcfcbu+CRkf5+Nuk+PFE2d53Fbe8Q/JT0mBiT6CJjlLZ76Eoq8zMTyq88B36WodFqzdgxu37c8SXaDBZqtMpxEnJsW0XgixDm6CNAKUGaLU+OzkMQgN6t/peLtVwjf5x7Alr1xeE3QHjLFPqouz1ivqAwJ8fDabLa3LXF0hHjEsDBMSoqHjHH4+egwM7g9jVCgS46O69XOC0l6Hyiuxs/CU3VBYFRhqycbOu7pgTNmwEAI5aiyMvjbeiEkJRhifDUXkoCB5qbyt3YrmFguu3mxE5dVaHCq7hPIzV2CV+iAWY8isKV6zvUcHiIcSmVKt6IDV1BNXFWd1k8jwbicyJkh4TMIi/EewiaTmKinKudIFpKYi4bEsMfN+LLKI2o6SnNu7inR1HOw9eDlkQ08Kct7TxbLCkiEb3gpDdk8qUcJhmoVU1yQ8hvdRaGs7XHJAQcEsK6muvepJILn8EyjFCafyTDbx9Nca1g9bqM87euwfhzlbw1P9yQxBFZDwmAILaATbR1NJzhpP/P/ZHFzkqf1wsitP7aezSjyVH0/DDlr/fP4fOwTeE5lpP+gAAAAASUVORK5CYII=",
+ pikpak: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAACY0lEQVR4nNWXy2tTQRSHv7m5RUWttqlNW1OairhKNbrU+lhE/AOkdCOIIO7arty0QhSxCIIQ7VJwIfgfCIJdFB+rgC32AVIflD5CbFUsoohJRiZzb5Ne05p4kxv94HCTc+bO+c0MM3eOoICD/TJswAAQBdoBH5UhA8wDo1mIv7ojpuyAsH9EBuQgkmuASXVJI4lN3BXDawIifXIQwQ28RDA0ERfDwpr2cQ9G7iSdhcOGteZeJ1eYKreB5DS1I2oiCJba2hDQVA9tjdDaCHMfICuhMwDJz5D8BMtftK9E2s2NttrJMOxvzSdT1rIb6goW69KIXsjr5/K+nxlIWWKWrOebJIxNFhXgK7r20QjcPL+59PllGH8LarDvU3oWFHU+CDZpK+TKA3j88vd+zGKd93av/y8lrKxao7Ls6bROrrj6EE6E9WzZppZKrJ0y0Hu8RAGhZuhohqk5nShp2Y/0+nZqxPaoFQsr2my2mNDSkBe01w/7AvAu9QcB/nrYs0vboU4qSsNOwCHAoMYY/5WAsckNt1NJ8WKY5TS+fF8/E7f/Lu5aQDrjLu5agOlzF3ct4NYFd3HXAk51uYv/k9vQLPeFr9/h4gh0dcCBNu17vaiP7nt9sGNblQVs3wo9x+DZNCRm9aUyFICebh0rF9PpWP22+QvqC3f2qLZyKda34XTMLsGLGSrO8xndtxMR6ZfqQ+tz7uczRyDor0zyxY/6LlDkoMqYVsUSKvSqho8SVB/JglqCUWqF4ImharVcueQ96j4bN3KFoiDmeXpJTOXO7QJVoyEZ8mgm0rm6sLA4talFef4LaurBZfZxNPMAAAAASUVORK5CYII="
+}, Ip = gt({
+ 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 Lp({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {
+ let c = ht(Ip.base, Ip.size[t], Ip.variant[e], a), l = /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [
+ n ? /* @__PURE__ */ (0, B.jsx)(n, {
+ className: Ip.icon[t],
+ "aria-hidden": !0
+ }) : null,
+ i != null && /* @__PURE__ */ (0, B.jsx)("span", { children: i }),
+ r ? /* @__PURE__ */ (0, B.jsx)(r, {
+ className: Ip.icon[t],
+ "aria-hidden": !0
+ }) : null
+ ] });
+ if (s.href !== void 0) {
+ let { ref: e, href: t, ...n } = s;
+ return /* @__PURE__ */ (0, B.jsx)("a", {
+ ref: e,
+ href: o ? void 0 : t,
+ "aria-disabled": o || void 0,
+ className: c,
+ ...n,
+ children: l
+ });
+ }
+ let { ref: u, type: d = "button", ...f } = s;
+ return /* @__PURE__ */ (0, B.jsx)("button", {
+ ref: u,
+ type: d,
+ disabled: o,
+ className: c,
+ ...f,
+ children: l
+ });
+}
+//#endregion
+//#region src/react/settings/section.tsx
+function Rp({ role: e, children: t }) {
+ return /* @__PURE__ */ (0, B.jsx)("p", {
+ role: e,
+ className: "text-body-2-regular text-text-secondary",
+ children: t
+ });
+}
+function zp({ children: e }) {
+ return /* @__PURE__ */ (0, B.jsx)("p", {
+ role: "alert",
+ className: "text-body-2-regular text-text-error-primary",
+ children: e
+ });
+}
+function Bp({ children: e }) {
+ return /* @__PURE__ */ (0, B.jsx)("p", {
+ className: "text-body-medium text-text-primary",
+ children: e
+ });
+}
+function Vp({ href: e, children: t, leadingIcon: n }) {
+ return /* @__PURE__ */ (0, B.jsx)(Lp, {
+ href: e,
+ target: "_blank",
+ rel: "noopener noreferrer",
+ size: "small",
+ leadingIcon: n,
+ trailingIcon: up,
+ className: "min-w-0 max-w-full",
+ children: /* @__PURE__ */ (0, B.jsx)("span", {
+ className: "min-w-0 whitespace-normal break-all",
+ children: t
+ })
+ });
+}
+function Hp({ children: e }) {
+ return /* @__PURE__ */ (0, B.jsx)("dl", {
+ className: "flex flex-col",
+ children: e
+ });
+}
+function Up({ term: e, children: t }) {
+ return /* @__PURE__ */ (0, B.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, B.jsx)("dt", {
+ className: "flex shrink-0 items-center gap-2 text-body-regular text-text-secondary",
+ children: e
+ }), /* @__PURE__ */ (0, B.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 Wp({ summary: e, defaultOpen: t = !1, children: n }) {
+ let r = (0, _.useId)(), i = (0, _.useRef)(null), a = (0, _.useRef)(null), o = (0, _.useRef)(!1), [s, c] = (0, _.useState)(t);
+ return /* @__PURE__ */ (0, B.jsxs)("details", {
+ ref: (e) => {
+ i.current = e, e && t && !o.current && (o.current = !0, e.open = !0);
+ },
+ children: [/* @__PURE__ */ (0, B.jsxs)("summary", {
+ "aria-expanded": s,
+ "aria-controls": r,
+ onClick: (e) => {
+ e.preventDefault(), !(!i.current || !a.current) && (Mp(i.current, a.current, !s), c(!s));
+ },
+ 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, B.jsx)(cp, {
+ "aria-hidden": !0,
+ className: s ? "size-4 shrink-0 rotate-90 transition-transform" : "size-4 shrink-0 transition-transform"
+ }), e]
+ }), /* @__PURE__ */ (0, B.jsx)("div", {
+ ref: a,
+ id: r,
+ inert: !s,
+ children: /* @__PURE__ */ (0, B.jsx)("div", {
+ className: "flex flex-col gap-2 pt-3",
+ children: n
+ })
+ })]
+ });
+}
+function Gp({ name: e }) {
+ return /* @__PURE__ */ (0, B.jsx)("svg", {
+ "aria-hidden": !0,
+ viewBox: "0 0 24 24",
+ fill: "none",
+ className: "size-4 shrink-0 stroke-current stroke-2",
+ children: /* @__PURE__ */ (0, B.jsx)("use", { href: `#i-${e}` })
+ });
+}
+function Kp({ mark: e }) {
+ return e.startsWith("data:image/png;base64,") ? /* @__PURE__ */ (0, B.jsx)("img", {
+ src: e,
+ alt: "",
+ width: 16,
+ height: 16,
+ className: "size-4 shrink-0"
+ }) : /* @__PURE__ */ (0, B.jsx)(Gp, { name: e });
+}
+//#endregion
+//#region src/react/pages/setup/setup-done.tsx
+function qp({ done: e }) {
+ let t = (0, _.useRef)(null);
+ return (0, _.useEffect)(() => {
+ document.title = "Peach · 设置完成", t.current?.focus();
+ }, []), (0, _.useEffect)(() => {
+ let t = e.redirect;
+ if (!t) return;
+ let n = setTimeout(() => location.assign(t), Ap);
+ return () => clearTimeout(n);
+ }, [e.redirect]), /* @__PURE__ */ (0, B.jsxs)(xt, {
+ title: "设置完成",
+ lede: "正在启动馆藏。",
+ children: [
+ /* @__PURE__ */ (0, B.jsx)("p", {
+ className: "text-body-regular text-text-primary",
+ children: e.scan_requested ? "首次扫描已排队,在后台整理媒体库,期间可以照常使用 Peach。" : "稍后在配置页开始扫描媒体库。"
+ }),
+ /* @__PURE__ */ (0, B.jsx)(bt, {
+ ref: t,
+ href: e.url,
+ className: "self-start",
+ children: e.history_guide ? "导入浏览器历史记录" : "进入 Peach"
+ }),
+ /* @__PURE__ */ (0, B.jsx)(Wp, {
+ summary: "运行信息",
+ children: /* @__PURE__ */ (0, B.jsx)(Hp, { children: e.facts.map((e) => /* @__PURE__ */ (0, B.jsxs)(Up, {
+ term: e.term,
+ children: [e.value, e.download_url ? /* @__PURE__ */ (0, B.jsx)(Vp, {
+ href: e.download_url,
+ children: e.download_label ?? e.download_url
+ }) : null]
+ }, e.term)) })
+ })
+ ]
+ });
+}
//#endregion
//#region src/react/boardui/components/base/switch/switch.tsx
-var Wp = gt({
+var Jp = gt({
sm: {
track: "h-4 w-7",
trackRadius: {
@@ -19591,8 +19592,8 @@ var Wp = gt({
}
}
});
-function Gp({ state: e, size: t = "md", shape: n = "pill" }) {
- let r = Wp[t];
+function Yp({ state: e, size: t = "md", shape: n = "pill" }) {
+ let r = Jp[t];
return /* @__PURE__ */ (0, B.jsx)("span", {
"aria-hidden": !0,
className: ht("relative shrink-0 transition-colors duration-200 ease", r.track, r.trackRadius[n], e.isSelected ? ht("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"),
@@ -19602,12 +19603,12 @@ function Gp({ state: e, size: t = "md", shape: n = "pill" }) {
})
});
}
-function Kp({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {
- return /* @__PURE__ */ (0, B.jsx)(Op, {
+function Xp({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {
+ return /* @__PURE__ */ (0, B.jsx)(Qf, {
ref: i,
...a,
className: (t) => ht("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, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(Gp, {
+ children: (e) => /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(Yp, {
state: e,
size: n,
shape: r
@@ -19619,42 +19620,42 @@ function Kp({ className: e, children: t, size: n = "md", shape: r = "pill", ref:
}
//#endregion
//#region node_modules/motion-utils/dist/es/clamp.mjs
-var qp = (e, t, n) => n > t ? t : n < e ? e : n;
+var Zp = (e, t, n) => n > t ? t : n < e ? e : n;
//#endregion
//#region node_modules/motion-utils/dist/es/memo.mjs
/*#__NO_SIDE_EFFECTS__*/
-function Jp(e) {
+function Qp(e) {
let t;
return () => (t === void 0 && (t = e()), t);
}
//#endregion
//#region node_modules/motion-utils/dist/es/noop.mjs
-var Yp = /* @__NO_SIDE_EFFECTS__ */ (e) => e, Xp = /* @__NO_SIDE_EFFECTS__ */ (e) => e * 1e3, Zp = /* @__NO_SIDE_EFFECTS__ */ (e) => e / 1e3, Qp = /* @__NO_SIDE_EFFECTS__ */ (e) => Array.isArray(e) && typeof e[0] == "number", $p = (e, t, n = 10) => {
+var $p = /* @__NO_SIDE_EFFECTS__ */ (e) => e, em = /* @__NO_SIDE_EFFECTS__ */ (e) => e * 1e3, tm = /* @__NO_SIDE_EFFECTS__ */ (e) => e / 1e3, nm = /* @__NO_SIDE_EFFECTS__ */ (e) => Array.isArray(e) && typeof e[0] == "number", rm = (e, t, n = 10) => {
let r = "", i = Math.max(Math.round(t / n), 2);
for (let t = 0; t < i; t++) r += Math.round(e(t / (i - 1)) * 1e4) / 1e4 + ", ";
return `linear(${r.substring(0, r.length - 2)})`;
-}, em = 2e4;
-function tm(e) {
+}, im = 2e4;
+function am(e) {
let t = 0, n = e.next(t);
for (; !n.done && t < 2e4;) t += 50, n = e.next(t);
return t >= 2e4 ? Infinity : t;
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.mjs
-function nm(e, t = 100, n) {
+function om(e, t = 100, n) {
let r = n({
...e,
keyframes: [0, t]
- }), i = Math.min(tm(r), em);
+ }), i = Math.min(am(r), im);
return {
type: "keyframes",
ease: (e) => r.next(i * e).value / t,
- duration: /* @__PURE__ */ Zp(i)
+ duration: /* @__PURE__ */ tm(i)
};
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/generators/spring.mjs
-var rm = {
+var sm = {
stiffness: 100,
damping: 10,
mass: 1,
@@ -19675,31 +19676,31 @@ var rm = {
minDamping: .05,
maxDamping: 1
};
-function im(e, t) {
+function cm(e, t) {
return e * Math.sqrt(1 - t * t);
}
-var am = 12;
-function om(e, t, n) {
+var lm = 12;
+function um(e, t, n) {
let r = n;
- for (let n = 1; n < am; n++) r -= e(r) / t(r);
+ for (let n = 1; n < lm; n++) r -= e(r) / t(r);
return r;
}
-var sm = .001;
-function cm({ duration: e = rm.duration, bounce: t = rm.bounce, velocity: n = rm.velocity, mass: r = rm.mass }) {
+var dm = .001;
+function fm({ duration: e = sm.duration, bounce: t = sm.bounce, velocity: n = sm.velocity, mass: r = sm.mass }) {
let i, a;
- rm.maxDuration;
+ sm.maxDuration;
let o = 1 - t;
- o = qp(rm.minDamping, rm.maxDamping, o), e = qp(rm.minDuration, rm.maxDuration, /* @__PURE__ */ Zp(e)), o < 1 ? (i = (t) => {
- let r = t * o, i = r * e, a = r - n, s = im(t, o), c = Math.exp(-i);
- return sm - a / s * c;
+ o = Zp(sm.minDamping, sm.maxDamping, o), e = Zp(sm.minDuration, sm.maxDuration, /* @__PURE__ */ tm(e)), o < 1 ? (i = (t) => {
+ let r = t * o, i = r * e, a = r - n, s = cm(t, o), c = Math.exp(-i);
+ return dm - a / s * c;
}, a = (t) => {
- let r = t * o * e, a = r * n + n, s = o ** 2 * t ** 2 * e, c = Math.exp(-r), l = im(t ** 2, o);
- return (-i(t) + sm > 0 ? -1 : 1) * ((a - s) * c) / l;
+ let r = t * o * e, a = r * n + n, s = o ** 2 * t ** 2 * e, c = Math.exp(-r), l = cm(t ** 2, o);
+ return (-i(t) + dm > 0 ? -1 : 1) * ((a - s) * c) / l;
}) : (i = (t) => -.001 + Math.exp(-t * e) * ((t - n) * e + 1), a = (t) => Math.exp(-t * e) * ((n - t) * (e * e)));
- let s = 5 / e, c = om(i, a, s);
- if (e = /* @__PURE__ */ Xp(e), isNaN(c)) return {
- stiffness: rm.stiffness,
- damping: rm.damping,
+ let s = 5 / e, c = um(i, a, s);
+ if (e = /* @__PURE__ */ em(e), isNaN(c)) return {
+ stiffness: sm.stiffness,
+ damping: sm.damping,
duration: e
};
{
@@ -19711,47 +19712,47 @@ function cm({ duration: e = rm.duration, bounce: t = rm.bounce, velocity: n = rm
};
}
}
-var lm = ["duration", "bounce"], um = [
+var pm = ["duration", "bounce"], mm = [
"stiffness",
"damping",
"mass"
];
-function dm(e, t) {
+function hm(e, t) {
return t.some((t) => e[t] !== void 0);
}
-function fm(e) {
+function gm(e) {
let t = {
- velocity: rm.velocity,
- stiffness: rm.stiffness,
- damping: rm.damping,
- mass: rm.mass,
+ velocity: sm.velocity,
+ stiffness: sm.stiffness,
+ damping: sm.damping,
+ mass: sm.mass,
isResolvedFromDuration: !1,
...e
};
- if (!dm(e, um) && dm(e, lm)) {
+ if (!hm(e, mm) && hm(e, pm)) {
if (t.velocity = 0, e.visualDuration) {
- let n = e.visualDuration, r = 2 * Math.PI / (n * 1.2), i = r * r, a = 2 * qp(.05, 1, 1 - (e.bounce || 0)) * Math.sqrt(i);
+ let n = e.visualDuration, r = 2 * Math.PI / (n * 1.2), i = r * r, a = 2 * Zp(.05, 1, 1 - (e.bounce || 0)) * Math.sqrt(i);
t = {
...t,
- mass: rm.mass,
+ mass: sm.mass,
stiffness: i,
damping: a
};
} else {
- let n = cm({
+ let n = fm({
...e,
velocity: 0
});
t = {
...t,
...n,
- mass: rm.mass
+ mass: sm.mass
}, t.isResolvedFromDuration = !0;
}
}
return t;
}
-function pm(e = rm.visualDuration, t = rm.bounce) {
+function _m(e = sm.visualDuration, t = sm.bounce) {
let n = typeof e == "object" ? e : {
visualDuration: e,
keyframes: [0, 1],
@@ -19759,13 +19760,13 @@ function pm(e = rm.visualDuration, t = rm.bounce) {
}, { restSpeed: r, restDelta: i } = n, a = n.keyframes[0], o = n.keyframes[n.keyframes.length - 1], s = {
done: !1,
value: a
- }, { stiffness: c, damping: l, mass: u, duration: d, velocity: f, isResolvedFromDuration: p } = fm({
+ }, { stiffness: c, damping: l, mass: u, duration: d, velocity: f, isResolvedFromDuration: p } = gm({
...n,
- velocity: -/* @__PURE__ */ Zp(n.velocity || 0)
- }), m = f || 0, h = l / (2 * Math.sqrt(c * u)), g = o - a, _ = /* @__PURE__ */ Zp(Math.sqrt(c / u)), v = Math.abs(g) < 5;
- r ||= v ? rm.restSpeed.granular : rm.restSpeed.default, i ||= v ? rm.restDelta.granular : rm.restDelta.default;
+ velocity: -/* @__PURE__ */ tm(n.velocity || 0)
+ }), m = f || 0, h = l / (2 * Math.sqrt(c * u)), g = o - a, _ = /* @__PURE__ */ tm(Math.sqrt(c / u)), v = Math.abs(g) < 5;
+ r ||= v ? sm.restSpeed.granular : sm.restSpeed.default, i ||= v ? sm.restDelta.granular : sm.restDelta.default;
let y, b, x, S, C, w;
- if (h < 1) x = im(_, h), S = (m + h * _ * g) / x, y = (e) => {
+ if (h < 1) x = cm(_, h), S = (m + h * _ * g) / x, y = (e) => {
let t = Math.exp(-h * _ * e);
return o - t * (S * Math.sin(x * e) + g * Math.cos(x * e));
}, C = h * _ * S + g * x, w = h * _ * g - S * x, b = (e) => Math.exp(-h * _ * e) * (C * Math.sin(x * e) + w * Math.cos(x * e));
@@ -19787,42 +19788,42 @@ function pm(e = rm.visualDuration, t = rm.bounce) {
}
let T = {
calculatedDuration: p && d || null,
- velocity: (e) => /* @__PURE__ */ Xp(b(e)),
+ velocity: (e) => /* @__PURE__ */ em(b(e)),
next: (e) => {
if (!p && h < 1) {
- let t = Math.exp(-h * _ * e), n = Math.sin(x * e), a = Math.cos(x * e), c = o - t * (S * n + g * a), l = /* @__PURE__ */ Xp(t * (C * n + w * a));
+ let t = Math.exp(-h * _ * e), n = Math.sin(x * e), a = Math.cos(x * e), c = o - t * (S * n + g * a), l = /* @__PURE__ */ em(t * (C * n + w * a));
return s.done = Math.abs(l) <= r && Math.abs(o - c) <= i, s.value = s.done ? o : c, s;
}
let t = y(e);
if (p) s.done = e >= d;
else {
- let n = /* @__PURE__ */ Xp(b(e));
+ let n = /* @__PURE__ */ em(b(e));
s.done = Math.abs(n) <= r && Math.abs(o - t) <= i;
}
return s.value = s.done ? o : t, s;
},
toString: () => {
- let e = Math.min(tm(T), em), t = $p((t) => T.next(e * t).value, e, 30);
+ let e = Math.min(am(T), im), t = rm((t) => T.next(e * t).value, e, 30);
return e + "ms " + t;
},
toTransition: () => {}
};
return T;
}
-pm.applyToOptions = (e) => {
- let t = nm(e, 100, pm);
- return e.ease = t.ease, e.duration = /* @__PURE__ */ Xp(t.duration), e.type = "keyframes", e;
+_m.applyToOptions = (e) => {
+ let t = om(e, 100, _m);
+ return e.ease = t.ease, e.duration = /* @__PURE__ */ em(t.duration), e.type = "keyframes", e;
};
//#endregion
//#region node_modules/motion-dom/dist/es/animation/keyframes/get-final.mjs
-var mm = (e) => e !== null;
-function hm(e, { repeat: t, repeatType: n = "loop" }, r, i = 1) {
- let a = e.filter(mm), o = i < 0 || t && n !== "loop" && t % 2 == 1 ? 0 : a.length - 1;
+var vm = (e) => e !== null;
+function ym(e, { repeat: t, repeatType: n = "loop" }, r, i = 1) {
+ let a = e.filter(vm), o = i < 0 || t && n !== "loop" && t % 2 == 1 ? 0 : a.length - 1;
return !o || r === void 0 ? a[o] : r;
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/utils/WithPromise.mjs
-var gm = class {
+var bm = class {
constructor() {
this.updateFinished();
}
@@ -19843,60 +19844,60 @@ var gm = class {
};
//#endregion
//#region node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.mjs
-function _m(e) {
+function xm(e) {
for (let t = 1; t < e.length; t++) e[t] ?? (e[t] = e[t - 1]);
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/dom/is-css-var.mjs
-var vm = (e) => e.startsWith("--");
+var Sm = (e) => e.startsWith("--");
//#endregion
//#region node_modules/motion-dom/dist/es/render/dom/style-set.mjs
-function ym(e, t, n) {
- vm(t) ? e.style.setProperty(t, n) : e.style[t] = n;
+function Cm(e, t, n) {
+ Sm(t) ? e.style.setProperty(t, n) : e.style[t] = n;
}
//#endregion
//#region node_modules/motion-dom/dist/es/utils/supports/flags.mjs
-var bm = {};
+var wm = {};
//#endregion
//#region node_modules/motion-dom/dist/es/utils/supports/memo.mjs
-function xm(e, t) {
- let n = /* @__PURE__ */ Jp(e);
- return () => bm[t] ?? n();
+function Tm(e, t) {
+ let n = /* @__PURE__ */ Qp(e);
+ return () => wm[t] ?? n();
}
//#endregion
//#region node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.mjs
-var Sm = /* @__PURE__ */ xm(() => window.ScrollTimeline !== void 0, "scrollTimeline"), Cm = /*@__PURE__*/ xm(() => {
+var Em = /* @__PURE__ */ Tm(() => window.ScrollTimeline !== void 0, "scrollTimeline"), Dm = /*@__PURE__*/ Tm(() => {
try {
document.createElement("div").animate({ opacity: 0 }, { easing: "linear(0, 1)" });
} catch {
return !1;
}
return !0;
-}, "linearEasing"), wm = ([e, t, n, r]) => `cubic-bezier(${e}, ${t}, ${n}, ${r})`, Tm = {
+}, "linearEasing"), Om = ([e, t, n, r]) => `cubic-bezier(${e}, ${t}, ${n}, ${r})`, km = {
linear: "linear",
ease: "ease",
easeIn: "ease-in",
easeOut: "ease-out",
easeInOut: "ease-in-out",
- circIn: /*@__PURE__*/ wm([
+ circIn: /*@__PURE__*/ Om([
0,
.65,
.55,
1
]),
- circOut: /*@__PURE__*/ wm([
+ circOut: /*@__PURE__*/ Om([
.55,
0,
1,
.45
]),
- backIn: /*@__PURE__*/ wm([
+ backIn: /*@__PURE__*/ Om([
.31,
.01,
.66,
-.59
]),
- backOut: /*@__PURE__*/ wm([
+ backOut: /*@__PURE__*/ Om([
.33,
1.53,
.69,
@@ -19905,15 +19906,15 @@ var Sm = /* @__PURE__ */ xm(() => window.ScrollTimeline !== void 0, "scrollTimel
};
//#endregion
//#region node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.mjs
-function Em(e, t) {
- if (e) return typeof e == "function" ? Cm() ? $p(e, t) : "ease-out" : /* @__PURE__ */ Qp(e) ? wm(e) : Array.isArray(e) ? e.map((e) => Em(e, t) || Tm.easeOut) : Tm[e];
+function Am(e, t) {
+ if (e) return typeof e == "function" ? Dm() ? rm(e, t) : "ease-out" : /* @__PURE__ */ nm(e) ? Om(e) : Array.isArray(e) ? e.map((e) => Am(e, t) || km.easeOut) : km[e];
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.mjs
-function Dm(e, t, n, { delay: r = 0, duration: i = 300, repeat: a = 0, repeatType: o = "loop", ease: s = "easeOut", times: c } = {}, l = void 0) {
+function jm(e, t, n, { delay: r = 0, duration: i = 300, repeat: a = 0, repeatType: o = "loop", ease: s = "easeOut", times: c } = {}, l = void 0) {
let u = { [t]: n };
c && (u.offset = c);
- let d = Em(s, i);
+ let d = Am(s, i);
Array.isArray(d) && (u.easing = d);
let f = {
delay: r,
@@ -19927,26 +19928,26 @@ function Dm(e, t, n, { delay: r = 0, duration: i = 300, repeat: a = 0, repeatTyp
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.mjs
-function Om(e) {
+function Mm(e) {
return typeof e == "function" && "applyToOptions" in e;
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.mjs
-function km({ type: e, ...t }) {
- return Om(e) && Cm() ? e.applyToOptions(t) : (t.duration ??= 300, t.ease ??= "easeOut", t);
+function Nm({ type: e, ...t }) {
+ return Mm(e) && Dm() ? e.applyToOptions(t) : (t.duration ??= 300, t.ease ??= "easeOut", t);
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/NativeAnimation.mjs
-var Am = class extends gm {
+var Pm = class extends bm {
constructor(e) {
if (super(), this.finishedTime = null, this.isStopped = !1, this.manualStartTime = null, !e) return;
let { element: t, name: n, keyframes: r, pseudoElement: i, allowFlatten: a = !1, finalKeyframe: o, onComplete: s } = e;
this.isPseudoElement = !!i, this.allowFlatten = a, this.options = e, e.type;
- let c = km(e);
- this.animation = Dm(t, n, r, c, i), c.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
+ let c = Nm(e);
+ this.animation = jm(t, n, r, c, i), c.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
if (this.finishedTime = this.time, !i) {
- let e = hm(r, this.options, o, this.speed);
- this.updateMotionValue && this.updateMotionValue(e), ym(t, n, e), this.animation.cancel();
+ let e = ym(r, this.options, o, this.speed);
+ this.updateMotionValue && this.updateMotionValue(e), Cm(t, n, e), this.animation.cancel();
}
s?.(), this.notifyFinished();
};
@@ -19977,18 +19978,18 @@ var Am = class extends gm {
}
get duration() {
let e = this.animation.effect?.getComputedTiming?.().duration || 0;
- return /* @__PURE__ */ Zp(Number(e));
+ return /* @__PURE__ */ tm(Number(e));
}
get iterationDuration() {
let { delay: e = 0 } = this.options || {};
- return this.duration + /* @__PURE__ */ Zp(e);
+ return this.duration + /* @__PURE__ */ tm(e);
}
get time() {
- return /* @__PURE__ */ Zp(Number(this.animation.currentTime) || 0);
+ return /* @__PURE__ */ tm(Number(this.animation.currentTime) || 0);
}
set time(e) {
let t = this.finishedTime !== null;
- this.manualStartTime = null, this.finishedTime = null, this.animation.currentTime = /* @__PURE__ */ Xp(e), t && this.animation.pause();
+ this.manualStartTime = null, this.finishedTime = null, this.animation.currentTime = /* @__PURE__ */ em(e), t && this.animation.pause();
}
get speed() {
return this.animation.playbackRate;
@@ -20006,9 +20007,9 @@ var Am = class extends gm {
this.manualStartTime = this.animation.startTime = e;
}
attachTimeline({ timeline: e, rangeStart: t, rangeEnd: n, observe: r }) {
- return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, e && Sm() ? (this.animation.timeline = e, t && (this.animation.rangeStart = t), n && (this.animation.rangeEnd = n), Yp) : r(this);
+ return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, e && Em() ? (this.animation.timeline = e, t && (this.animation.rangeStart = t), n && (this.animation.rangeEnd = n), $p) : r(this);
}
-}, jm = class {
+}, Fm = class {
constructor(e) {
this.stop = () => this.runAll("stop"), this.animations = e.filter(Boolean);
}
@@ -20048,10 +20049,10 @@ var Am = class extends gm {
return this.getAll("startTime");
}
get duration() {
- return Mm(this.animations, "duration");
+ return Im(this.animations, "duration");
}
get iterationDuration() {
- return Mm(this.animations, "iterationDuration");
+ return Im(this.animations, "iterationDuration");
}
runAll(e) {
this.animations.forEach((t) => t[e]());
@@ -20069,7 +20070,7 @@ var Am = class extends gm {
this.runAll("complete");
}
};
-function Mm(e, t) {
+function Im(e, t) {
let n = 0;
for (let r = 0; r < e.length; r++) {
let i = e[r][t];
@@ -20079,18 +20080,18 @@ function Mm(e, t) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/GroupAnimationWithThen.mjs
-var Nm = class extends jm {
+var Lm = class extends Fm {
then(e, t) {
return this.finished.finally(e).then(() => {});
}
-}, Pm = /* @__PURE__ */ new WeakMap(), Fm = (e, t = "") => `${e}:${t}`;
-function Im(e) {
- let t = Pm.get(e);
- return t || (t = /* @__PURE__ */ new Map(), Pm.set(e, t)), t;
+}, Rm = /* @__PURE__ */ new WeakMap(), zm = (e, t = "") => `${e}:${t}`;
+function Bm(e) {
+ let t = Rm.get(e);
+ return t || (t = /* @__PURE__ */ new Map(), Rm.set(e, t)), t;
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/utils/resolve-transition.mjs
-function Lm(e, t) {
+function Vm(e, t) {
if (e?.inherit && t) {
let { inherit: n, ...r } = e;
return {
@@ -20102,21 +20103,21 @@ function Lm(e, t) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/utils/get-value-transition.mjs
-function Rm(e, t) {
+function Hm(e, t) {
let n = e?.[t] ?? e?.default ?? e;
- return n === e ? n : Lm(n, e);
+ return n === e ? n : Vm(n, e);
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/waapi/utils/px-values.mjs
-var zm = /* @__PURE__ */ new Set(/* @__PURE__ */ "borderWidth.borderTopWidth.borderRightWidth.borderBottomWidth.borderLeftWidth.borderRadius.borderTopLeftRadius.borderTopRightRadius.borderBottomRightRadius.borderBottomLeftRadius.width.maxWidth.height.maxHeight.top.right.bottom.left.inset.insetBlock.insetBlockStart.insetBlockEnd.insetInline.insetInlineStart.insetInlineEnd.padding.paddingTop.paddingRight.paddingBottom.paddingLeft.paddingBlock.paddingBlockStart.paddingBlockEnd.paddingInline.paddingInlineStart.paddingInlineEnd.margin.marginTop.marginRight.marginBottom.marginLeft.marginBlock.marginBlockStart.marginBlockEnd.marginInline.marginInlineStart.marginInlineEnd.fontSize.backgroundPositionX.backgroundPositionY".split("."));
+var Um = /* @__PURE__ */ new Set(/* @__PURE__ */ "borderWidth.borderTopWidth.borderRightWidth.borderBottomWidth.borderLeftWidth.borderRadius.borderTopLeftRadius.borderTopRightRadius.borderBottomRightRadius.borderBottomLeftRadius.width.maxWidth.height.maxHeight.top.right.bottom.left.inset.insetBlock.insetBlockStart.insetBlockEnd.insetInline.insetInlineStart.insetInlineEnd.padding.paddingTop.paddingRight.paddingBottom.paddingLeft.paddingBlock.paddingBlockStart.paddingBlockEnd.paddingInline.paddingInlineStart.paddingInlineEnd.margin.marginTop.marginRight.marginBottom.marginLeft.marginBlock.marginBlockStart.marginBlockEnd.marginInline.marginInlineStart.marginInlineEnd.fontSize.backgroundPositionX.backgroundPositionY".split("."));
//#endregion
//#region node_modules/motion-dom/dist/es/animation/keyframes/utils/apply-px-defaults.mjs
-function Bm(e, t) {
- for (let n = 0; n < e.length; n++) typeof e[n] == "number" && zm.has(t) && (e[n] = e[n] + "px");
+function Wm(e, t) {
+ for (let n = 0; n < e.length; n++) typeof e[n] == "number" && Um.has(t) && (e[n] = e[n] + "px");
}
//#endregion
//#region node_modules/motion-dom/dist/es/utils/resolve-elements.mjs
-function Vm(e, t, n) {
+function Gm(e, t, n) {
if (e == null) return [];
if (e instanceof EventTarget) return [e];
if (typeof e == "string") {
@@ -20129,24 +20130,24 @@ function Vm(e, t, n) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/dom/style-computed.mjs
-function Hm(e, t) {
+function Km(e, t) {
let n = window.getComputedStyle(e);
- return vm(t) ? n.getPropertyValue(t) : n[t];
+ return Sm(t) ? n.getPropertyValue(t) : n[t];
}
//#endregion
//#region node_modules/framer-motion/dist/es/animation/animators/waapi/animate-elements.mjs
-function Um(e, t, n, r) {
+function qm(e, t, n, r) {
if (e == null) return [];
- let i = Vm(e, r), a = i.length, o = [];
+ let i = Gm(e, r), a = i.length, o = [];
for (let e = 0; e < a; e++) {
let r = i[e], s = { ...n };
typeof s.delay == "function" && (s.delay = s.delay(e, a));
for (let e in t) {
let n = t[e];
Array.isArray(n) || (n = [n]);
- let i = { ...Rm(s, e) };
- i.duration &&= /* @__PURE__ */ Xp(i.duration), i.delay &&= /* @__PURE__ */ Xp(i.delay);
- let a = Im(r), c = Fm(e, i.pseudoElement || ""), l = a.get(c);
+ let i = { ...Hm(s, e) };
+ i.duration &&= /* @__PURE__ */ em(i.duration), i.delay &&= /* @__PURE__ */ em(i.delay);
+ let a = Bm(r), c = zm(e, i.pseudoElement || ""), l = a.get(c);
l && l.stop(), o.push({
map: a,
key: c,
@@ -20162,35 +20163,35 @@ function Um(e, t, n, r) {
}
for (let e = 0; e < o.length; e++) {
let { unresolvedKeyframes: t, options: n } = o[e], { element: r, name: i, pseudoElement: a } = n;
- !a && t[0] === null && (t[0] = Hm(r, i)), _m(t), Bm(t, i), !a && t.length < 2 && t.unshift(Hm(r, i)), n.keyframes = t;
+ !a && t[0] === null && (t[0] = Km(r, i)), xm(t), Wm(t, i), !a && t.length < 2 && t.unshift(Km(r, i)), n.keyframes = t;
}
let s = [];
for (let e = 0; e < o.length; e++) {
- let { map: t, key: n, options: r } = o[e], i = new Am(r);
+ let { map: t, key: n, options: r } = o[e], i = new Pm(r);
t.set(n, i), i.finished.finally(() => t.delete(n)), s.push(i);
}
return s;
}
-var Wm = /*@__PURE__*/ ((e) => {
+var Jm = /*@__PURE__*/ ((e) => {
function t(t, n, r) {
- return new Nm(Um(t, n, r, e));
+ return new Lm(qm(t, n, r, e));
}
return t;
-})(), Gm = {
+})(), Ym = {
selection: {
- type: pm,
+ type: _m,
duration: .16,
bounce: 0
},
hover: {
- type: pm,
+ type: _m,
duration: .08,
bounce: 0
}
};
-function Km(e) {
- let [t, n] = (0, v.useState)(null);
- return (0, v.useLayoutEffect)(() => {
+function Xm(e) {
+ let [t, n] = (0, _.useState)(null);
+ return (0, _.useLayoutEffect)(() => {
if (!t) return;
let n = document.createElement("span");
n.setAttribute("aria-hidden", "true"), n.dataset.movingSurface = e, n.hidden = !0, t.prepend(n), t.dataset.surfaceHost = e;
@@ -20209,7 +20210,7 @@ function Km(e) {
let E = `translate(${b}px, ${x}px) scale(1, 1)`;
if (u && a && !r.matches && T && s !== h) {
let r = `translate(${(T.left - _.left) / v + t.scrollLeft - t.clientLeft}px, ${(T.top - _.top) / y + t.scrollTop - t.clientTop}px) scale(${T.width / v / S}, ${T.height / y / C})`;
- l = Wm(n, { transform: [r, E] }, Gm[e]);
+ l = Jm(n, { transform: [r, E] }, Ym[e]);
} else n.style.transform = E;
s = h, c = w, t.dataset.surfaceReady = "";
}, m = (t) => {
@@ -20246,17 +20247,17 @@ function Km(e) {
}
//#endregion
//#region src/react/components/segmented.tsx
-function qm(e) {
- let t = Km("selection");
- return /* @__PURE__ */ (0, B.jsx)(sp, {
+function Zm(e) {
+ let t = Xm("selection");
+ return /* @__PURE__ */ (0, B.jsx)(Mf, {
...e,
ref: t
});
}
-var Jm = "inline-flex w-max max-w-full items-center gap-0.5 overflow-x-auto overscroll-x-contain rounded-2lg bg-background-tertiary-default p-1", Ym = "flex min-h-7 flex-none cursor-pointer items-center gap-1.5 rounded-md px-2.5 py-1 text-body-medium whitespace-nowrap text-text-secondary outline-none transition-colors hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-focus-visible:ring-2 data-focus-visible:ring-border-focus-ring data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover";
+var Qm = "inline-flex w-max max-w-full items-center gap-0.5 overflow-x-auto overscroll-x-contain rounded-2lg bg-background-tertiary-default p-1", $m = "flex min-h-7 flex-none cursor-pointer items-center gap-1.5 rounded-md px-2.5 py-1 text-body-medium whitespace-nowrap text-text-secondary outline-none transition-colors hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-focus-visible:ring-2 data-focus-visible:ring-border-focus-ring data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover";
//#endregion
//#region src/react/settings/busy-props.ts
-function Xm(e) {
+function eh(e) {
return e ? {
"aria-busy": !0,
"aria-disabled": !0
@@ -20264,7 +20265,7 @@ function Xm(e) {
}
//#endregion
//#region src/react/boardui/components/base/buttons/icon-button.tsx
-var Zm = gt({
+var th = gt({
base: [
"relative inline-flex shrink-0 items-center justify-center overflow-visible rounded-2lg",
"bg-background-primary-default text-foreground-icon-primary",
@@ -20285,21 +20286,21 @@ var Zm = gt({
small: "size-4 shrink-0"
}
});
-function Qm({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {
+function nh({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {
return /* @__PURE__ */ (0, B.jsx)("button", {
ref: i,
type: r,
- className: ht(Zm.base, Zm.size[t], n),
+ className: ht(th.base, th.size[t], n),
...a,
children: /* @__PURE__ */ (0, B.jsx)(e, {
- className: Zm.icon[t],
+ className: th.icon[t],
"aria-hidden": !0
})
});
}
//#endregion
//#region src/react/boardui/components/base/dropdown/menu-styles.ts
-var $m = [
+var rh = [
"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",
@@ -20307,10 +20308,10 @@ var $m = [
"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(" "), eh = "w-[266px]", th = "flex w-full flex-col gap-1 outline-none", nh = ["flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left", "text-text-primary outline-none transition-colors"].join(" ");
+].join(" "), ih = "w-[266px]", ah = "flex w-full flex-col gap-1 outline-none", oh = ["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 rh(e) {
+function sh(e) {
return /* @__PURE__ */ (0, B.jsx)("svg", {
viewBox: "0 0 16 16",
fill: "none",
@@ -20326,8 +20327,8 @@ function rh(e) {
}
//#endregion
//#region src/react/boardui/utils/use-dismiss-on-outside-press.ts
-function ih(e, t, n) {
- (0, v.useEffect)(() => {
+function ch(e, t, n) {
+ (0, _.useEffect)(() => {
if (!e) return;
let r = (e) => {
let r = e.target;
@@ -20340,9 +20341,9 @@ function ih(e, t, n) {
n
]);
}
-function ah(e, t) {
- let n = (0, v.useRef)(!1);
- return (0, v.useEffect)(() => {
+function lh(e, t) {
+ let n = (0, _.useRef)(!1);
+ return (0, _.useEffect)(() => {
if (!e) return;
let r = (e) => {
t.current?.contains(e.target) && (n.current = !0, setTimeout(() => {
@@ -20354,33 +20355,33 @@ function ah(e, t) {
}
//#endregion
//#region src/react/boardui/components/base/select/select.tsx
-var oh = (0, v.createContext)("md");
-function sh({ className: e, triggerClassName: t, popoverClassName: n, size: r = "md", children: i, items: a, renderValue: o, ref: s, ...c }) {
- let l = (0, v.useRef)(null), u = (0, v.useRef)(null), [d, f] = (0, v.useState)(!1);
- ih(d, () => f(!1), [l, u]);
- let p = ah(d, l);
- return /* @__PURE__ */ (0, B.jsx)(bp, {
+var uh = (0, _.createContext)("md");
+function dh({ className: e, triggerClassName: t, popoverClassName: n, size: r = "md", children: i, items: a, renderValue: o, ref: s, ...c }) {
+ let l = (0, _.useRef)(null), u = (0, _.useRef)(null), [d, f] = (0, _.useState)(!1);
+ ch(d, () => f(!1), [l, u]);
+ let p = lh(d, l);
+ return /* @__PURE__ */ (0, B.jsx)(Wf, {
ref: s,
...c,
isOpen: d,
onOpenChange: (e) => p(e) && f(e),
className: ht("group flex flex-col", e),
- children: ({ isOpen: e }) => /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsxs)(Zo, {
+ children: ({ isOpen: e }) => /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsxs)(So, {
ref: l,
className: ht("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, B.jsx)(wp, {
+ children: [/* @__PURE__ */ (0, B.jsx)(Jf, {
className: ht("flex min-w-0 items-center truncate", r === "sm" ? "gap-1" : "gap-[5px]"),
children: o
- }), /* @__PURE__ */ (0, B.jsx)(rh, { className: ht("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
- }), /* @__PURE__ */ (0, B.jsx)(uf, {
+ }), /* @__PURE__ */ (0, B.jsx)(sh, { className: ht("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
+ }), /* @__PURE__ */ (0, B.jsx)(Nd, {
ref: u,
isNonModal: !0,
offset: 4,
- className: ht(eh, $m, "p-2", n),
- children: /* @__PURE__ */ (0, B.jsx)(hu, {
+ className: ht(ih, rh, "p-2", n),
+ children: /* @__PURE__ */ (0, B.jsx)(zl, {
items: a,
- className: ht(th, "max-h-[240px] overflow-auto"),
- children: /* @__PURE__ */ (0, B.jsx)(oh.Provider, {
+ className: ht(ah, "max-h-[240px] overflow-auto"),
+ children: /* @__PURE__ */ (0, B.jsx)(uh.Provider, {
value: r,
children: i
})
@@ -20388,17 +20389,17 @@ function sh({ className: e, triggerClassName: t, popoverClassName: n, size: r =
})] })
});
}
-function ch({ className: e, children: t, ...n }) {
- let r = (0, v.useContext)(oh);
- return /* @__PURE__ */ (0, B.jsx)(yu, {
+function fh({ className: e, children: t, ...n }) {
+ let r = (0, _.useContext)(uh);
+ return /* @__PURE__ */ (0, B.jsx)(Ul, {
...n,
- className: (t) => ht(nh, r === "sm" ? "px-2 py-1.5 text-body-2-medium" : "text-body-medium", (t.isFocused || t.isSelected) && "bg-dropdown-item-hover-background", t.isDisabled && "cursor-not-allowed text-text-disabled", typeof e == "function" ? e(t) : e),
+ className: (t) => ht(oh, 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/folder-rows.tsx
-function lh({ className: e }) {
+function ph({ className: e }) {
return /* @__PURE__ */ (0, B.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@ -20411,14 +20412,14 @@ function lh({ className: e }) {
children: /* @__PURE__ */ (0, B.jsx)("use", { href: "#i-folder-search" })
});
}
-var uh = [
+var mh = [
["local", "本地磁盘"],
["115", "CloudDrive · 115"],
["pikpak", "CloudDrive · PikPak"]
-], dh = (e) => V[e] || "database", fh = (e) => e === "115" || e === "pikpak";
-function ph({ initial: e, blank: t, pickFolder: n, describe: r, focusAfterPick: i = !1 }) {
- let [a, o] = (0, v.useState)(e), [s, c] = (0, v.useState)([]), [l, u] = (0, v.useState)(null), [d, f] = (0, v.useState)(null), p = (0, v.useRef)(!1), m = (0, v.useRef)([]);
- (0, v.useLayoutEffect)(() => {
+], hh = (e) => Fp[e] || "database", gh = (e) => e === "115" || e === "pikpak";
+function _h({ initial: e, blank: t, pickFolder: n, describe: r, focusAfterPick: i = !1 }) {
+ let [a, o] = (0, _.useState)(e), [s, c] = (0, _.useState)([]), [l, u] = (0, _.useState)(null), [d, f] = (0, _.useState)(null), p = (0, _.useRef)(!1), m = (0, _.useRef)([]);
+ (0, _.useLayoutEffect)(() => {
l !== null && (m.current[l]?.focus(), u(null));
}, [l]);
let h = (e, t) => o((n) => n.map((n, r) => r === e ? {
@@ -20459,14 +20460,14 @@ function ph({ initial: e, blank: t, pickFolder: n, describe: r, focusAfterPick:
}
};
}
-function mh({ label: e, path: t, onPath: n, error: r, inputRef: i, picking: a, onPick: o, onRemove: s, children: c }) {
+function vh({ label: e, path: t, onPath: n, error: r, inputRef: i, picking: a, onPick: o, onRemove: s, children: c }) {
return /* @__PURE__ */ (0, B.jsxs)("div", {
"data-folder-row": !0,
className: "@container flex flex-col gap-3 rounded-2lg border border-separator-border bg-background-primary-default p-3",
children: [/* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex items-start gap-2",
children: [
- /* @__PURE__ */ (0, B.jsx)(Up, {
+ /* @__PURE__ */ (0, B.jsx)(vp, {
className: "min-w-0 flex-1",
"aria-label": e,
placeholder: "本机文件夹路径",
@@ -20477,14 +20478,14 @@ function mh({ label: e, path: t, onPath: n, error: r, inputRef: i, picking: a, o
isInvalid: !!r,
hint: r || void 0
}),
- /* @__PURE__ */ (0, B.jsx)(Qm, {
- icon: lh,
+ /* @__PURE__ */ (0, B.jsx)(nh, {
+ icon: ph,
"aria-label": "选择文件夹",
onClick: o,
- ...Xm(a)
+ ...eh(a)
}),
- s ? /* @__PURE__ */ (0, B.jsx)(Qm, {
- icon: Lt,
+ s ? /* @__PURE__ */ (0, B.jsx)(nh, {
+ icon: lp,
"aria-label": "移除这个文件夹",
onClick: s
}) : null
@@ -20495,25 +20496,25 @@ function mh({ label: e, path: t, onPath: n, error: r, inputRef: i, picking: a, o
})]
});
}
-function hh({ index: e, value: t, onChange: n, options: r = uh }) {
+function yh({ index: e, value: t, onChange: n, options: r = mh }) {
return /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-col gap-1.5",
- children: [/* @__PURE__ */ (0, B.jsx)(Jt, { children: "媒体来源" }), /* @__PURE__ */ (0, B.jsx)(sh, {
+ children: [/* @__PURE__ */ (0, B.jsx)(Bp, { children: "媒体来源" }), /* @__PURE__ */ (0, B.jsx)(dh, {
"aria-label": `媒体来源 ${e + 1}`,
selectedKey: t,
onSelectionChange: (e) => {
e !== null && n(String(e));
},
- children: r.map(([e, t]) => /* @__PURE__ */ (0, B.jsxs)(ch, {
+ children: r.map(([e, t]) => /* @__PURE__ */ (0, B.jsxs)(fh, {
id: e,
textValue: t,
- children: [/* @__PURE__ */ (0, B.jsx)(en, { mark: dh(e) }), t]
+ children: [/* @__PURE__ */ (0, B.jsx)(Kp, { mark: hh(e) }), t]
}, e))
})]
});
}
-function gh({ value: e, onChange: t, label: n = "Windows 中的对应路径", placeholder: r = "例如 B:\\" }) {
- return /* @__PURE__ */ (0, B.jsx)(Up, {
+function bh({ value: e, onChange: t, label: n = "Windows 中的对应路径", placeholder: r = "例如 B:\\" }) {
+ return /* @__PURE__ */ (0, B.jsx)(vp, {
label: n,
placeholder: r,
value: e,
@@ -20522,8 +20523,8 @@ function gh({ value: e, onChange: t, label: n = "Windows 中的对应路径", pl
}
//#endregion
//#region src/react/settings/password-pair.tsx
-function _h({ label: e, password: t, confirmation: n, onPassword: r, onConfirmation: i, disabled: a = !1, passwordError: o, passwordHint: s, confirmationError: c, confirmationInvalid: l = !1 }) {
- return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(Up, {
+function xh({ label: e, password: t, confirmation: n, onPassword: r, onConfirmation: i, disabled: a = !1, passwordError: o, passwordHint: s, confirmationError: c, confirmationInvalid: l = !1 }) {
+ return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(vp, {
id: "access-password",
type: "password",
label: e,
@@ -20536,7 +20537,7 @@ function _h({ label: e, password: t, confirmation: n, onPassword: r, onConfirmat
validationBehavior: "aria",
isInvalid: !a && !!o,
hint: a ? s : o || s
- }), /* @__PURE__ */ (0, B.jsx)(Up, {
+ }), /* @__PURE__ */ (0, B.jsx)(vp, {
id: "access-confirm",
type: "password",
label: "确认访问密码",
@@ -20553,13 +20554,13 @@ function _h({ label: e, password: t, confirmation: n, onPassword: r, onConfirmat
}
//#endregion
//#region src/react/pages/setup/setup-form.tsx
-var vh = [
+var Sh = [
"data_root",
"host",
"port",
"mdns_name"
];
-function yh(e, t) {
+function Ch(e, t) {
return Array.isArray(e) ? e.length === t ? {
rows: e,
table: ""
@@ -20571,23 +20572,23 @@ function yh(e, t) {
table: e ?? ""
};
}
-function bh(e) {
+function wh(e) {
return e.length ? e.length === 1 ? `完成设置后扫描并补全资料:${e[0]}` : `完成设置后扫描这 ${e.length} 个文件夹并补全资料` : "完成设置后扫描并补全资料";
}
-var xh = (e) => Array.isArray(e) ? e.filter(Boolean).join(" ") : e ?? "";
-function Sh({ setup: e, onDone: t }) {
+var Th = (e) => Array.isArray(e) ? e.filter(Boolean).join(" ") : e ?? "";
+function Eh({ setup: e, onDone: t }) {
let n = e.questions.find((e) => e.input === "folders"), r = e.questions.filter((e) => e.input !== "folders"), i = e.media_sources.map(({ value: e, label: t }) => [e, t]), a = (t = "") => ({
path: t,
location: e.media_source_default,
root: ""
- }), o = ph({
+ }), o = _h({
initial: () => [a(n?.default ?? "")],
blank: () => a(),
- pickFolder: Mt,
- describe: Nt,
+ pickFolder: Op,
+ describe: kp,
focusAfterPick: !0
- }), [s, c] = (0, v.useState)(() => Object.fromEntries(r.map((e) => [e.key, e.default]))), [l, u] = (0, v.useState)(e.access_enabled), [d, f] = (0, v.useState)(""), [p, m] = (0, v.useState)(""), [h, g] = (0, v.useState)(e.scan_now), [_, y] = (0, v.useState)(e.history_guide), [b, x] = (0, v.useState)({}), [S, C] = (0, v.useState)(""), [w, T] = (0, v.useState)(""), [E, D] = (0, v.useState)(!1), [O, k] = (0, v.useState)(0), A = (0, v.useRef)(null), j = (0, v.useRef)(null), [M, ee] = (0, v.useState)(0);
- (0, v.useEffect)(() => {
+ }), [s, c] = (0, _.useState)(() => Object.fromEntries(r.map((e) => [e.key, e.default]))), [l, u] = (0, _.useState)(e.access_enabled), [d, f] = (0, _.useState)(""), [p, m] = (0, _.useState)(""), [h, g] = (0, _.useState)(e.scan_now), [v, y] = (0, _.useState)(e.history_guide), [b, x] = (0, _.useState)({}), [S, C] = (0, _.useState)(""), [w, T] = (0, _.useState)(""), [E, D] = (0, _.useState)(!1), [O, k] = (0, _.useState)(0), A = (0, _.useRef)(null), j = (0, _.useRef)(null), [M, ee] = (0, _.useState)(0);
+ (0, _.useEffect)(() => {
M && A.current?.querySelector("input[aria-invalid=\"true\"]")?.focus();
}, [M]);
let te = (e) => e ? /* @__PURE__ */ (0, B.jsx)("span", {
@@ -20603,7 +20604,7 @@ function Sh({ setup: e, onDone: t }) {
media_dir: o.rows,
access_enabled: l,
scan_now: h,
- history_guide: _
+ history_guide: v
};
for (let e of r) N(e) && (n[e.key] = s[e.key] ?? "");
l && Object.assign(n, {
@@ -20611,45 +20612,45 @@ function Sh({ setup: e, onDone: t }) {
access_confirm: p
});
try {
- t(await jt(n));
+ t(await Dp(n));
} catch (e) {
- if (e instanceof Ot && e.status === 400 && e.errors) {
- let t = e.errors, { rows: n, table: r } = yh(t.media_dir, o.rows.length);
- o.setErrors(n), C(r), x(t), vh.some((e) => t[e]) && k((e) => e + 1), t.access_password && u(!0), ee((e) => e + 1);
- } else T(Nt(e));
+ if (e instanceof wp && e.status === 400 && e.errors) {
+ let t = e.errors, { rows: n, table: r } = Ch(t.media_dir, o.rows.length);
+ o.setErrors(n), C(r), x(t), Sh.some((e) => t[e]) && k((e) => e + 1), t.access_password && u(!0), ee((e) => e + 1);
+ } else T(kp(e));
} finally {
D(!1);
}
}, re = (e) => {
- let t = xh(b[e.key]), n = e.help.join("");
+ let t = Th(b[e.key]), n = e.help.join("");
if (e.input === "choice") {
let r = `setup-${e.key}-label`;
return /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-col gap-1.5",
children: [
- /* @__PURE__ */ (0, B.jsx)(Lp, {
+ /* @__PURE__ */ (0, B.jsx)(fp, {
id: r,
elementType: "span",
children: e.label
}),
- /* @__PURE__ */ (0, B.jsx)(qm, {
+ /* @__PURE__ */ (0, B.jsx)(Zm, {
"aria-labelledby": r,
orientation: "horizontal",
- className: Jm,
+ className: Qm,
value: s[e.key] ?? e.default,
onChange: (t) => P(e.key, t),
- children: (e.options ?? []).map((e) => /* @__PURE__ */ (0, B.jsx)(cp, {
+ children: (e.options ?? []).map((e) => /* @__PURE__ */ (0, B.jsx)(Nf, {
value: e.value,
- className: Ym,
+ className: $m,
children: e.label
}, e.value))
}),
- n ? /* @__PURE__ */ (0, B.jsx)(Kt, { children: n }) : null,
- t ? /* @__PURE__ */ (0, B.jsx)(qt, { children: t }, M) : null
+ n ? /* @__PURE__ */ (0, B.jsx)(Rp, { children: n }) : null,
+ t ? /* @__PURE__ */ (0, B.jsx)(zp, { children: t }, M) : null
]
}, e.key);
}
- return /* @__PURE__ */ (0, B.jsx)(Up, {
+ return /* @__PURE__ */ (0, B.jsx)(vp, {
id: `f-${e.key}`,
label: e.label,
isRequired: e.required,
@@ -20670,7 +20671,7 @@ function Sh({ setup: e, onDone: t }) {
isInvalid: !!t,
hint: te(t) ?? (n || void 0)
}, e.key);
- }, ie = o.rows.map((e) => e.path.trim()).filter(Boolean), ae = o.rows.some((e) => fh(e.location));
+ }, ie = o.rows.map((e) => e.path.trim()).filter(Boolean), ae = o.rows.some((e) => gh(e.location));
return /* @__PURE__ */ (0, B.jsxs)("form", {
ref: A,
noValidate: !0,
@@ -20678,11 +20679,11 @@ function Sh({ setup: e, onDone: t }) {
"aria-labelledby": "auth-card-title",
className: "flex flex-col gap-6",
children: [
- n ? /* @__PURE__ */ (0, B.jsxs)(Ct, {
+ n ? /* @__PURE__ */ (0, B.jsxs)(St, {
first: !0,
labelledBy: "setup-media-title",
children: [
- /* @__PURE__ */ (0, B.jsxs)(wt, {
+ /* @__PURE__ */ (0, B.jsxs)(Ct, {
id: "setup-media-title",
children: [n.label, /* @__PURE__ */ (0, B.jsx)("span", {
"aria-hidden": !0,
@@ -20690,12 +20691,12 @@ function Sh({ setup: e, onDone: t }) {
children: "*"
})]
}),
- S ? /* @__PURE__ */ (0, B.jsx)(qt, { children: S }, M) : null,
+ S ? /* @__PURE__ */ (0, B.jsx)(zp, { children: S }, M) : null,
/* @__PURE__ */ (0, B.jsx)("div", {
role: "group",
"aria-labelledby": "setup-media-title",
className: "flex flex-col gap-3",
- children: o.rows.map((t, r) => /* @__PURE__ */ (0, B.jsxs)(mh, {
+ children: o.rows.map((t, r) => /* @__PURE__ */ (0, B.jsxs)(vh, {
label: `${n.label} ${r + 1}`,
path: t.path,
onPath: (e) => o.edit(r, { path: e }),
@@ -20706,12 +20707,12 @@ function Sh({ setup: e, onDone: t }) {
onRemove: o.rows.length > 1 ? () => {
o.remove(r), j.current?.focus();
} : void 0,
- children: [/* @__PURE__ */ (0, B.jsx)(hh, {
+ children: [/* @__PURE__ */ (0, B.jsx)(yh, {
index: r,
value: t.location,
options: i,
onChange: (e) => o.edit(r, { location: e })
- }), e.media_root ? /* @__PURE__ */ (0, B.jsx)(gh, {
+ }), e.media_root ? /* @__PURE__ */ (0, B.jsx)(bh, {
label: e.media_root.label,
placeholder: e.media_root.placeholder,
value: t.root,
@@ -20722,29 +20723,29 @@ function Sh({ setup: e, onDone: t }) {
/* @__PURE__ */ (0, B.jsx)(yt, {
ref: j,
variant: "secondary",
- leadingIcon: Ft,
+ leadingIcon: sp,
className: "self-start",
onClick: o.add,
children: "添加媒体库"
}),
- ae ? /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsxs)(Kt, { children: [e.cloud.help, /* @__PURE__ */ (0, B.jsx)(Yt, {
+ ae ? /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsxs)(Rp, { children: [e.cloud.help, /* @__PURE__ */ (0, B.jsx)(Vp, {
href: e.cloud.link.url,
children: e.cloud.link.label
- })] }), e.cloud.dependencies.map((e) => /* @__PURE__ */ (0, B.jsxs)(Kt, { children: [e.message, /* @__PURE__ */ (0, B.jsx)(Yt, {
+ })] }), e.cloud.dependencies.map((e) => /* @__PURE__ */ (0, B.jsxs)(Rp, { children: [e.message, /* @__PURE__ */ (0, B.jsx)(Vp, {
href: e.download_url,
children: e.download_label
})] }, e.name))] }) : null,
- n.help.map((e) => /* @__PURE__ */ (0, B.jsx)(Kt, { children: e }, e))
+ n.help.map((e) => /* @__PURE__ */ (0, B.jsx)(Rp, { children: e }, e))
]
}) : null,
- /* @__PURE__ */ (0, B.jsxs)(Ct, {
+ /* @__PURE__ */ (0, B.jsxs)(St, {
labelledBy: "setup-access-title",
children: [
/* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex items-start justify-between gap-4",
children: [/* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex min-w-0 flex-col gap-0.5",
- children: [/* @__PURE__ */ (0, B.jsx)(wt, {
+ children: [/* @__PURE__ */ (0, B.jsx)(Ct, {
id: "setup-access-title",
children: "访问密码"
}), /* @__PURE__ */ (0, B.jsx)("p", {
@@ -20752,27 +20753,27 @@ function Sh({ setup: e, onDone: t }) {
className: "text-body-2-regular text-text-secondary",
children: "开启后,访问 Peach 需要先登录。"
})]
- }), /* @__PURE__ */ (0, B.jsx)(Kp, {
+ }), /* @__PURE__ */ (0, B.jsx)(Xp, {
"aria-labelledby": "setup-access-title",
"aria-describedby": "setup-access-description",
isSelected: l,
onChange: u
})]
}),
- /* @__PURE__ */ (0, B.jsx)(Kt, { children: "未设置密码时,能连接到 Peach 的设备可直接进入。" }),
- l ? /* @__PURE__ */ (0, B.jsx)(_h, {
+ /* @__PURE__ */ (0, B.jsx)(Rp, { children: "未设置密码时,能连接到 Peach 的设备可直接进入。" }),
+ l ? /* @__PURE__ */ (0, B.jsx)(xh, {
label: "访问密码",
password: d,
confirmation: p,
onPassword: f,
onConfirmation: m,
- passwordError: te(xh(b.access_password)),
+ passwordError: te(Th(b.access_password)),
passwordHint: "请输入 8–256 个字符。",
confirmationInvalid: !!b.access_password
}) : null
]
}),
- /* @__PURE__ */ (0, B.jsx)(Ct, { children: /* @__PURE__ */ (0, B.jsx)(Qt, {
+ /* @__PURE__ */ (0, B.jsx)(St, { children: /* @__PURE__ */ (0, B.jsx)(Wp, {
summary: "高级设置",
defaultOpen: O > 0,
children: /* @__PURE__ */ (0, B.jsx)("div", {
@@ -20780,20 +20781,20 @@ function Sh({ setup: e, onDone: t }) {
children: r.filter(N).map(re)
})
}, O) }),
- /* @__PURE__ */ (0, B.jsxs)(Ct, {
+ /* @__PURE__ */ (0, B.jsxs)(St, {
labelledBy: "setup-options-title",
children: [
- /* @__PURE__ */ (0, B.jsx)(wt, {
+ /* @__PURE__ */ (0, B.jsx)(Ct, {
id: "setup-options-title",
children: "完成设置后"
}),
/* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-col gap-1.5",
- children: [/* @__PURE__ */ (0, B.jsx)(Ip, {
+ children: [/* @__PURE__ */ (0, B.jsx)(op, {
isSelected: h,
onChange: g,
- children: bh(ie)
- }), /* @__PURE__ */ (0, B.jsx)(Kt, { children: "读取已有 NFO 和封面,采集缺失资料。符合自动规则的资料会在处理完成后落库,其余候选留在复核。" })]
+ children: wh(ie)
+ }), /* @__PURE__ */ (0, B.jsx)(Rp, { children: "读取已有 NFO 和封面,采集缺失资料。符合自动规则的资料会在处理完成后落库,其余候选留在复核。" })]
}),
/* @__PURE__ */ (0, B.jsxs)("section", {
"aria-labelledby": "setup-history-title",
@@ -20807,21 +20808,21 @@ function Sh({ setup: e, onDone: t }) {
children: "可选"
})]
}),
- /* @__PURE__ */ (0, B.jsx)(Ip, {
- isSelected: _,
+ /* @__PURE__ */ (0, B.jsx)(op, {
+ isSelected: v,
onChange: y,
children: "接下来导入浏览器历史记录"
}),
- /* @__PURE__ */ (0, B.jsx)(Kt, { children: "用于生成口味分析。完成设置后选择读取这台电脑,或导入其他设备的记录;也可稍后从「口味」进入。" })
+ /* @__PURE__ */ (0, B.jsx)(Rp, { children: "用于生成口味分析。完成设置后选择读取这台电脑,或导入其他设备的记录;也可稍后从「口味」进入。" })
]
})
]
}),
- w ? /* @__PURE__ */ (0, B.jsx)(qt, { children: w }) : null,
+ w ? /* @__PURE__ */ (0, B.jsx)(zp, { children: w }) : null,
/* @__PURE__ */ (0, B.jsx)(yt, {
type: "submit",
className: "self-start",
- ...Xm(E),
+ ...eh(E),
children: "完成设置"
})
]
@@ -20829,29 +20830,29 @@ function Sh({ setup: e, onDone: t }) {
}
//#endregion
//#region src/react/pages/setup/setup-page.tsx
-function Ch() {
- let [e, t] = (0, v.useState)({ kind: "loading" }), [n, r] = (0, v.useState)(0);
- return (0, v.useEffect)(() => {
+function Dh() {
+ let [e, t] = (0, _.useState)({ kind: "loading" }), [n, r] = (0, _.useState)(0);
+ return (0, _.useEffect)(() => {
let e = new AbortController();
- return At(e.signal).then((e) => t({
+ return Ep(e.signal).then((e) => t({
kind: "form",
setup: e
}), (n) => {
- e.signal.aborted || t(n instanceof Ot && n.status === 403 ? { kind: "denied" } : {
+ e.signal.aborted || t(n instanceof wp && n.status === 403 ? { kind: "denied" } : {
kind: "failed",
- message: Nt(n)
+ message: kp(n)
});
}), () => e.abort();
- }, [n]), e.kind === "done" ? /* @__PURE__ */ (0, B.jsx)(tn, { done: e.done }) : /* @__PURE__ */ (0, B.jsxs)(St, {
+ }, [n]), e.kind === "done" ? /* @__PURE__ */ (0, B.jsx)(qp, { done: e.done }) : /* @__PURE__ */ (0, B.jsxs)(xt, {
title: "欢迎使用 Peach",
lede: "添加媒体库,开始整理馆藏。",
busy: e.kind === "loading",
children: [
- e.kind === "denied" ? /* @__PURE__ */ (0, B.jsx)(xt, {
+ e.kind === "denied" ? /* @__PURE__ */ (0, B.jsx)(bp, {
tone: "error",
children: "请在运行 Peach 的这台电脑上打开设置。"
}) : null,
- e.kind === "failed" ? /* @__PURE__ */ (0, B.jsx)(xt, {
+ e.kind === "failed" ? /* @__PURE__ */ (0, B.jsx)(bp, {
tone: "error",
action: /* @__PURE__ */ (0, B.jsx)(yt, {
variant: "secondary",
@@ -20862,7 +20863,7 @@ function Ch() {
}),
children: e.message
}) : null,
- e.kind === "form" ? /* @__PURE__ */ (0, B.jsx)(Sh, {
+ e.kind === "form" ? /* @__PURE__ */ (0, B.jsx)(Eh, {
setup: e.setup,
onDone: (e) => t({
kind: "done",
@@ -20874,6 +20875,10 @@ function Ch() {
}
//#endregion
//#region src/react/pages/index.tsx
-var wh = { setup: Ch }, Th = document.getElementById("peach-page"), Eh = Th ? wh[Th.dataset.page ?? ""] : void 0;
-Th && Eh && (_(document.documentElement, { variant: "page" }), (0, g.createRoot)(Th).render(/* @__PURE__ */ (0, B.jsx)(Eh, {})));
+var Oh = {
+ setup: Dh,
+ login: yp,
+ error: Et
+}, kh = document.getElementById("peach-page"), Ah = kh ? Oh[kh.dataset.page ?? ""] : void 0;
+kh && Ah && (0, v.createRoot)(kh).render(/* @__PURE__ */ (0, B.jsx)(Ah, { data: { ...kh.dataset } }));
//#endregion