Skip to content

armgit / peach

Public Imported from GitHub
0

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

feat(web): 来源和凭证页改为 React 档

longmeidao86de31651693
diff --git a/frontend/e2e/design.test.ts b/frontend/e2e/design.test.ts
index 154dcb7d6..814591cd5 100644
--- a/frontend/e2e/design.test.ts
+++ b/frontend/e2e/design.test.ts
@@ -87,6 +87,34 @@ async function openQualityGoals(browser: Browser, items: unknown[]): Promise<Vis
return opened;
}
+/** 一个采集来源。字段以 `/api/scraping`(`src/peach/web_scraping.py`)为准。 */
+const scrapingSource = (source: string, label: string, cookie: boolean) => ({
+ source, label, login: `https://${source}.example/login`,
+ accepts_cookie: cookie, network: 'peach', cookie_saved: cookie,
+});
+
+/** 来源和凭证页按给定的一份 `/api/scraping` 打开:演示库里未必同时有收 Cookie 和不收的来源。
+ *
+ * 站标走服务端的 `/site-mark`,而这几个来源是造出来的,那一趟必然取不到;那是另一条判据,
+ * 这里给它一张能加载完的图,免得运行期问题名单里混进与本条无关的失败。 */
+async function openScraping(browser: Browser): Promise<Visit> {
+ const opened = await visit(browser, '/scraping', DESKTOP);
+ await opened.page.route('**/api/scraping', (route) => route.fulfill({
+ status: 200,
+ contentType: 'application/json',
+ body: JSON.stringify({
+ sources: [scrapingSource('demoa', '演示来源甲', true), scrapingSource('demob', '演示来源乙', false)],
+ }),
+ }));
+ await opened.page.route('**/site-mark**', (route) => route.fulfill({
+ status: 200, contentType: 'image/png', body: Buffer.from(PIXEL, 'base64'),
+ }));
+ await opened.page.reload({ waitUntil: 'load' });
+ await opened.page.locator('form[aria-label="演示来源甲"]').waitFor({ timeout: 15_000 });
+ await settle(opened.page);
+ return opened;
+}
+
describe('设计决定', () => {
let browser: Browser;
@@ -213,4 +241,36 @@ describe('设计决定', () => {
await opened.close();
}
});
+
+ it('一张来源卡底下只有写入那一颗是主按钮,其余次级', { timeout: 60_000 }, async () => {
+ const opened = await openScraping(browser);
+ try {
+ const card = opened.page.locator('form[aria-label="演示来源甲"]');
+ const fill = (name: string) => card.getByRole('button', { name, exact: true })
+ .evaluate((element) => getComputedStyle(element).backgroundColor);
+ // 收 Cookie 且已存了一份的来源,底下三颗:撤销、检查、保存;只有保存是写入。
+ assert.equal(await fill('保存'), await tokenColor(opened.page, '.peach-react', '--color-button-primary'));
+ const secondary = await tokenColor(opened.page, '.peach-react', '--color-background-primary-default');
+ assert.equal(await fill('检查连接'), secondary, '检查连接被画成了主按钮');
+ assert.equal(await fill('撤销 Cookie'), secondary, '撤销 Cookie 被画成了主按钮');
+ // 没存过 Cookie 的来源没有可撤的对象,那一颗不画。
+ const plain = opened.page.locator('form[aria-label="演示来源乙"]');
+ assert.equal(await plain.getByRole('button', { name: '撤销 Cookie', exact: true }).count(), 0);
+ assert.deepEqual(opened.problems, []);
+ } finally {
+ await opened.close();
+ }
+ });
+
+ it('新窗口打开的来源地址两项 rel 都写:不带走会话,也不带走来处', { timeout: 60_000 }, async () => {
+ const opened = await openScraping(browser);
+ try {
+ const link = opened.page.locator('form[aria-label="演示来源甲"] a[target="_blank"]');
+ assert.equal(await link.getAttribute('href'), 'https://demoa.example/login');
+ assert.equal((await link.getAttribute('rel'))!.split(/\s+/).sort().join(' '), 'noopener noreferrer');
+ assert.deepEqual(opened.problems, []);
+ } finally {
+ await opened.close();
+ }
+ });
});
diff --git a/frontend/src/islands.ts b/frontend/src/islands.ts
index 47802e89c..cbc7dff4e 100644
--- a/frontend/src/islands.ts
+++ b/frontend/src/islands.ts
@@ -26,8 +26,6 @@ import type { Attributes, ComponentType } from 'preact';
import { errorMessage } from './api';
import { Configuration, loadConfiguration } from './islands/configuration';
import type { ConfigurationData, ConfigurationProps } from './islands/configuration';
-import { Scraping, loadScraping } from './islands/scraping';
-import type { ScrapingData, ScrapingProps } from './islands/scraping';
import { LibraryProcessing, loadLibraryProcessing } from './islands/library-processing';
import type { LibraryProcessingData, LibraryProcessingProps } from './islands/library-processing';
import type * as ReactBundle from '@peach/react';
@@ -56,7 +54,7 @@ export interface IslandState<D> {
* React 档的页面自己管数据(首屏落在共用的 Query 缓存里),`data` 写成 `null`。 */
export interface IslandContracts {
'library-processing': { props: LibraryProcessingProps; data: LibraryProcessingData };
- 'scraping': { props: ScrapingProps; data: ScrapingData };
+ 'scraping': { props: ReactBundle.ScrapingProps; data: null };
'quality-goals': { props: ReactBundle.QualityGoalsProps; data: null };
configuration: { props: ConfigurationProps; data: ConfigurationData };
activity: { props: ReactBundle.ActivityProps; data: null };
@@ -84,7 +82,7 @@ type IslandDefinition<N extends IslandName> = PreactIsland<N> | ReactIsland;
const REGISTRY: { [N in IslandName]: IslandDefinition<N> } = {
'library-processing': { load: loadLibraryProcessing, component: LibraryProcessing },
- 'scraping': { load: loadScraping, component: Scraping },
+ 'scraping': { react: 'scraping' },
'quality-goals': { react: 'quality-goals' },
configuration: { load: loadConfiguration, component: Configuration },
activity: { react: 'activity' },
diff --git a/frontend/src/islands/scraping.tsx b/frontend/src/islands/scraping.tsx
deleted file mode 100644
index 8cd6ed0b6..000000000
--- a/frontend/src/islands/scraping.tsx
+++ /dev/null
@@ -1,192 +0,0 @@
-import { useEffect, useLayoutEffect, useRef, useState } from 'preact/hooks';
-import { apiGet, apiSend, errorMessage } from '../api';
-import { noteHtml, fieldsetTitle, loadingDotsHtml, setActionBusy, selectFieldHtml, wireSelectField } from '@peach/legacy/ui';
-import { siteMarkUrl } from '@peach/legacy/core';
-import type { IslandState } from '../islands';
-import { watchJob } from '../jobs';
-import { LinkButton } from '../link-button';
-import type { JobState } from '../jobs';
-
-interface Source {
- source: string; label: string; login: string; accepts_cookie: boolean;
- network: string; cookie_saved: boolean;
-}
-export interface ScrapingData { sources: Source[] }
-export interface ScrapingProps { toast(message: string): void }
-interface Check { label: string; ok: boolean; status?: number; message?: string; width?: number; height?: number }
-export const loadScraping = (_props: ScrapingProps, signal: AbortSignal) => apiGet<ScrapingData>('/api/scraping', signal);
-
-function NetworkSelect({ value, onChange }: { value: string; onChange(value: string): void }) {
- const mount = useRef<HTMLDivElement>(null);
- const callback = useRef(onChange);
- callback.current = onChange;
- useLayoutEffect(() => {
- const root = mount.current!;
- root.innerHTML = selectFieldHtml([['peach', 'Peach 代理'], ['direct', '直接连接']],
- value, { label: '连接方式' });
- const field = wireSelectField(root.firstElementChild!);
- const change = () => callback.current(field.value);
- field.addEventListener('change', change);
- return () => { field.disabled = true; field.removeEventListener('change', change); root.replaceChildren(); };
- }, []);
- return <div ref={mount} class="scraping-network" />;
-}
-
-function SourceForm({ source, toast }: { source: Source } & ScrapingProps) {
- const [saved, setSaved] = useState(source);
- const [network, setNetwork] = useState(source.network);
- const [cookie, setCookie] = useState('');
- const [cookieText, setCookieText] = useState('');
- const [cookieMethod, setCookieMethod] = useState('paste');
- const [fileName, setFileName] = useState('');
- const [busy, setBusy] = useState(false);
- const [error, setError] = useState('');
- const [checks, setChecks] = useState<Check[]>([]);
- const file = useRef<HTMLInputElement>(null);
- const form = useRef<HTMLFormElement>(null);
- useLayoutEffect(() => {
- form.current?.querySelectorAll('footer button').forEach(button => setActionBusy(button, busy));
- }, [busy]);
- const lifetime = useRef(new AbortController());
- useEffect(() => () => lifetime.current.abort(), []);
- async function action(kind: 'save' | 'revoke' | 'check') {
- if (busy) return;
- setBusy(true); setError(''); setChecks([]);
- try {
- if (kind === 'check') {
- const result = await apiSend<{ results: Check[] }>('/api/scraping/check', { source: source.source }, 'POST', lifetime.current.signal);
- if (!lifetime.current.signal.aborted) setChecks(result.results);
- } else {
- const result = await apiSend<{ saved: Source }>('/api/scraping/settings', {
- source: source.source, network, cookie, cookies_text: cookieText, revoke: kind === 'revoke',
- }, 'POST', lifetime.current.signal);
- if (!lifetime.current.signal.aborted) {
- setSaved(result.saved); setCookie(''); setCookieText(''); setFileName('');
- if (file.current) file.current.value = '';
- toast(kind === 'revoke' ? 'Cookie 已撤销' : '来源设置已保存');
- }
- }
- } catch (cause) {
- if (!lifetime.current.signal.aborted) setError(errorMessage(cause));
- } finally {
- if (!lifetime.current.signal.aborted) setBusy(false);
- }
- }
- return <section class="scraping-source">
- <form ref={form} class="cleanupfieldset" data-geist-fieldset onSubmit={event => { event.preventDefault(); void action('save'); }}>
- <div class="geist-fieldset-content scraping-fields">
- <div class="geist-fieldset-heading">
- <div dangerouslySetInnerHTML={{ __html: fieldsetTitle(`scraping-${source.source}`, source.label) }} />
- {/* 前面是站点自己的图标(指对象),后面是外链箭头(指形态)——两枚都在
- `vercel-geist-button-icons.md` 的「加图标」那一侧,中间的地址不重复说这两件事。
- 图标走服务端的 `/site-mark`:这一页确实本来就要连这些站,但浏览器直连
- 只拿得到 `/favicon.ico` 那一枚 16px,站点自己备好的 apple-touch-icon 和 SVG
- 问都不问;需要代理才通的来源更是常年空着。取不到时把 `<img>` 摘掉,不留破图。 */}
- <a class="scraping-url externallink" href={source.login} target="_blank" rel="noopener noreferrer">
- <img src={siteMarkUrl({ source: source.source })} alt="" width="16" height="16" loading="lazy"
- onError={event => event.currentTarget.remove()} />
- <span>{source.login}</span>
- <svg class="externalmark" viewBox="0 0 24 24" aria-hidden="true"><use href="#i-external-link" /></svg>
- </a>
- </div>
- <div class="scraping-label">连接方式<NetworkSelect value={network} onChange={setNetwork} /></div>
- {network === 'peach' && <LinkButton href="/configuration#peachProxy">配置 Peach 代理</LinkButton>}
- {source.accepts_cookie && <>
- <p>{saved.cookie_saved ? 'Cookie 已保存,登录是否有效请在抓取时确认。' : '需要登录时,任选一种方式提供 Cookie。'}</p>
- <div class="insightswitch scraping-cookie-method" role="radiogroup" aria-label="提供 Cookie 的方式(二选一)">
- {([['paste', '粘贴 Cookie'], ['file', '导入文件']] as const).map(([value, label]) => <label key={value}>
- <input type="radio" name={`cookie-method-${source.source}`} value={value} checked={cookieMethod === value}
- onChange={() => { setCookieMethod(value); setCookie(''); setCookieText(''); setFileName(''); }} />
- <span>{label}</span>
- </label>)}
- </div>
- {cookieMethod === 'paste' ? <label>Cookie<input class="geist-input" type="password" autoComplete="off" value={cookie} disabled={busy}
- onInput={event => setCookie(event.currentTarget.value)} /></label>
- : <label class="scraping-file">Netscape Cookie 文件(.txt)<span class="scraping-file-control">
- <span class="geist-button">选择文件</span><span class="scraping-file-name">{fileName || '未选择文件'}</span>
- <input ref={file} type="file" accept=".txt" disabled={busy}
- onChange={async event => {
- const selected = event.currentTarget.files?.[0];
- if (!selected) { setCookieText(''); setFileName(''); return; }
- setCookieText('');
- if (selected.size > 256 * 1024) { setError('Cookie 文本超过 256 KiB'); event.currentTarget.value = ''; return; }
- setBusy(true);
- try { const text = await selected.text(); if (!lifetime.current.signal.aborted) { setCookieText(text); setFileName(selected.name); } }
- catch { if (!lifetime.current.signal.aborted) setError('Cookie 文件未读取,请重新选择'); }
- finally { if (!lifetime.current.signal.aborted) setBusy(false); }
- }} /></span></label>}
- </>}
- {error && <div role="alert" dangerouslySetInnerHTML={{ __html: noteHtml(error, { variant: 'error' }) }} />}
- {checks.map(check => <div role="status" key={check.label} dangerouslySetInnerHTML={{ __html: noteHtml(
- `${source.label}${check.label === '来源页面' ? '' : ' 高清图片'}:${check.ok ? '可连接' : '不能连接'}`
- + (check.width ? ` · ${check.width} × ${check.height}` : '')
- + (check.message ? `。${check.message}` : ''), { variant: check.ok ? 'success' : 'error' },
- ) }} />)}
- </div>
- {/* 主体动作在最右。次级动作先出现,`保存` 是这张卡唯一的写入,放在一行的末尾。
- 表单里只有它一个 `type=submit`,所以挪位置不影响回车提交。 */}
- <footer class="geist-fieldset-footer" data-geist-fieldset-footer>
- {source.accepts_cookie && saved.cookie_saved && <button class="geist-button" type="button" onClick={() => void action('revoke')}>撤销 Cookie</button>}
- <button class="geist-button" type="button" onClick={() => void action('check')}>检查连接</button>
- <button class="geist-button primary" type="submit">保存</button>
- </footer>
- </form>
- </section>;
-}
-
-export function Scraping({ data, error, toast }: ScrapingProps & IslandState<ScrapingData>) {
- const [code, setCode] = useState('');
- const [running, setRunning] = useState(false);
- const [problem, setProblem] = useState('');
- const [result, setResult] = useState('');
- const submit = useRef<HTMLButtonElement>(null);
- useLayoutEffect(() => setActionBusy(submit.current, running), [running]);
- const lifetime = useRef(new AbortController());
- const generation = useRef(0);
- async function followJob(resume = false) {
- const epoch = ++generation.current;
- await watchJob<JobState & { result?: string; width?: number; height?: number }>({
- read: signal => apiGet('/api/scraping/cover', signal),
- active: () => !lifetime.current.signal.aborted && epoch === generation.current,
- render: state => {
- setRunning(state.status === 'running');
- if (state.status === 'running') resume = false;
- if (state.status === 'failed' && !resume) setProblem(state.error || '采集未取得');
- if (state.status === 'complete' && !resume) { setResult(state.result || '封面采集完成'); toast(state.result || '封面采集完成'); }
- },
- disconnected: () => setProblem('连接中断,正在重新读取后台进度'),
- });
- }
- useEffect(() => { void followJob(true); return () => lifetime.current.abort(); }, []);
- async function fetchCover() {
- if (running) return;
- generation.current++;
- setRunning(true); setProblem(''); setResult('');
- try {
- await apiSend('/api/scraping/cover', { code }, 'POST', lifetime.current.signal);
- await followJob();
- } catch (cause) {
- if (!lifetime.current.signal.aborted) { setRunning(false); setProblem(errorMessage(cause)); }
- }
- }
- if (error) return <div role="alert" dangerouslySetInnerHTML={{ __html: noteHtml(error, { variant: 'error' }) }} />;
- return <div class="scraping-page">
- <p>高清图片可能需要代理才能下载,请先检查连接。</p>
- <section class="cleanupfieldset scraping-source" data-geist-fieldset>
- <div class="geist-fieldset-content scraping-fields">
- <div dangerouslySetInnerHTML={{ __html: fieldsetTitle('scraping-cover', '高清封面') }} />
- <form class="scraping-cover-form" onSubmit={event => { event.preventDefault(); void fetchCover(); }}>
- <input class="geist-input" aria-label="馆藏番号" required value={code} disabled={running} placeholder="输入馆藏番号,如 ABW-232"
- onInput={event => setCode(event.currentTarget.value)} />
- <button ref={submit} class="geist-button primary" type="submit">抓取封面</button>
- </form>
- {/* 这一趟要挨个问几家站点、还可能走代理,没有可数的总量,也不能编一个百分比出来。
- 关掉页面它照样在跑,回来能接上,所以状态得留在页面上,而不是只让按钮转一下。 */}
- {running && <div aria-live="polite" dangerouslySetInnerHTML={{ __html: loadingDotsHtml('正在抓取封面') }} />}
- {problem && <div role="alert" dangerouslySetInnerHTML={{ __html: noteHtml(problem, { variant: 'error' }) }} />}
- {result && <div role="status" dangerouslySetInnerHTML={{ __html: noteHtml(result) }} />}
- </div>
- </section>
- {data?.sources.map(source => <SourceForm key={source.source} source={source} toast={toast} />)}
- </div>;
-}
diff --git a/frontend/src/react/bundle.d.ts b/frontend/src/react/bundle.d.ts
index ac3e8ef4f..627fd76b8 100644
--- a/frontend/src/react/bundle.d.ts
+++ b/frontend/src/react/bundle.d.ts
@@ -112,9 +112,16 @@ export interface QualityGoalsProps {
srcBadge(location: string, cost: string): string;
}
+/** 来源和凭证页只要遗留层的 Toast:保存与撤销是写操作,回执归全站那一份。 */
+export interface ScrapingProps {
+ /** 写操作在服务端落地之后的过去时回执。 */
+ toast(message: string): void;
+}
+
export interface ReactPages {
activity: ReactPage<ActivityProps>;
'quality-goals': ReactPage<QualityGoalsProps>;
+ scraping: ReactPage<ScrapingProps>;
}
export declare const pages: ReactPages;
diff --git a/frontend/src/react/entry.tsx b/frontend/src/react/entry.tsx
index 65cd038fc..da1112c12 100644
--- a/frontend/src/react/entry.tsx
+++ b/frontend/src/react/entry.tsx
@@ -12,6 +12,8 @@ import type * as Bundle from './bundle';
import { QualityGoalsPage } from './quality-goals/quality-goals-page';
import { prefetchQualityGoals } from './quality-goals/quality-goals';
import { queryClient } from './query';
+import { ScrapingPage } from './scraping/scraping-page';
+import { prefetchScraping } from './scraping/scraping';
import { GeneralSettings } from './settings/general-settings';
import { MaintenanceSettings } from './settings/maintenance-settings';
import { MediaSettings } from './settings/media-settings';
@@ -52,6 +54,7 @@ export const pages: Bundle.ReactPages = {
'quality-goals': {
prefetch: (_props, signal) => prefetchQualityGoals(signal), mount: mounter(QualityGoalsPage),
},
+ scraping: { prefetch: (_props, signal) => prefetchScraping(signal), mount: mounter(ScrapingPage) },
};
export const mountGeneralSettings: typeof Bundle.mountGeneralSettings = mounter(GeneralSettings);
diff --git a/frontend/src/react/scraping/scraping-page.tsx b/frontend/src/react/scraping/scraping-page.tsx
new file mode 100644
index 000000000..cd807a3e5
--- /dev/null
+++ b/frontend/src/react/scraping/scraping-page.tsx
@@ -0,0 +1,314 @@
+/* 来源和凭证页:每个采集来源怎么连、拿什么身份连,外加一趟按番号补高清封面。
+ *
+ * 这是第一个带写操作的 React 档,两件事在这里定型:
+ * - **写操作是 `useMutation`**,不进 Query 的缓存节律。保存成功后用 `setQueryData` 把服务端
+ * 回的那一条换进列表,而不是把整页重取一遍:用户可能正在填另一张卡,重取会把它一起重画。
+ * 失败只在卡内留一句原因,缓存里的上一份数据不动。
+ * - **后台任务是按状态开关的 `refetchInterval`**:跑起来两秒一次,停了就不问。轮询跟着组件走,
+ * 遗留壳换页时卸根,它自己就停了。
+ *
+ * 还有一条只在有后台任务的页面才成立:**首屏读到的旧结果不冒充新结果**。抓封面关掉页面
+ * 照样在跑,所以任务状态里常年躺着上一趟的回执;它是那一刻的快照,铺开会被读成刚刚跑完。
+ * 只有本次启动过、或者本次亲眼见过它在跑,终态才画成结果并发回执。 */
+import { useEffect, useRef, useState } from 'react';
+import type { ChangeEvent, FormEvent } from 'react';
+import { RiArrowRightLine } from '@remixicon/react';
+import { useMutation, useQuery } from '@tanstack/react-query';
+import { Radio, RadioGroup } from 'react-aria-components';
+import { siteMarkUrl } from '@peach/legacy/core';
+
+import { SettingsRow } from '@/components/application/settings/settings-rows';
+import { Button } from '@/components/base/buttons/button';
+import { LinkButton } from '@/components/base/buttons/link-button';
+import { Input } from '@/components/base/input/input';
+import { Select, SelectItem } from '@/components/base/select/select';
+
+import { apiSend, errorMessage } from '../../api';
+import type { ScrapingProps } from '../bundle';
+import { LoadingDots } from '../components/loading-dots';
+import { Note } from '../components/note';
+import { Page } from '../components/page';
+import { queryClient } from '../query';
+import {
+ ErrorText, ExternalLink, FieldLabel, Footer, Rows, Section, Stack,
+} from '../settings/section';
+import { busyProps } from '../settings/use-action';
+import {
+ checkText, COOKIE_TEXT_LIMIT, COVER_JOB_KEY, COVER_POLL_MS, fetchCoverJob, fetchSources,
+ SCRAPING_CHECK_URL, SCRAPING_COVER_URL, SCRAPING_KEY, SCRAPING_SETTINGS_URL,
+ type Check, type CoverJob, type ScrapingData, type Source,
+} from './scraping';
+
+const NETWORKS = [['peach', 'Peach 代理'], ['direct', '直接连接']] as const;
+const COOKIE_METHODS = [['paste', '粘贴 Cookie'], ['file', '导入文件']] as const;
+
+/* 前面是站点自己的图标(指对象),后面是外链箭头(指形态)——两枚都在
+ `vercel-geist-button-icons.md` 的「加图标」那一侧,中间的地址不重复说这两件事。
+ 图标走服务端的 `/site-mark`:这一页确实本来就要连这些站,但浏览器直连只拿得到
+ `/favicon.ico` 那一枚 16px,站点自己备好的 apple-touch-icon 和 SVG 问都不问;
+ 需要代理才通的来源更是常年空着。取不到时把 `<img>` 摘掉,不留破图。 */
+function SiteMark({ source }: { source: string }) {
+ return (
+ <img src={siteMarkUrl({ source })} alt="" width={16} height={16} loading="lazy"
+ onError={(event) => event.currentTarget.remove()}
+ className="size-4 shrink-0 rounded-sm object-contain" />
+ );
+}
+
+/** 一个来源一张卡:怎么连、拿什么身份连,底下三个动作。 */
+function SourceCard({ source, toast }: { source: Source } & ScrapingProps) {
+ const [network, setNetwork] = useState(source.network);
+ const [cookie, setCookie] = useState('');
+ const [cookieText, setCookieText] = useState('');
+ const [method, setMethod] = useState<string>(COOKIE_METHODS[0][0]);
+ const [fileName, setFileName] = useState('');
+ const [fileProblem, setFileProblem] = useState('');
+ const file = useRef<HTMLInputElement>(null);
+
+ /* 秘密只在提交那一刻存在于页面上:保存回来之后输入框清空,页面上不再留着刚交上去的
+ 那一份。文件选择器自己也要清,否则同名文件再选一次不会触发 change。 */
+ function forgetSecrets() {
+ setCookie('');
+ setCookieText('');
+ setFileName('');
+ setFileProblem('');
+ if (file.current) file.current.value = '';
+ }
+
+ const save = useMutation({
+ mutationFn: (revoke: boolean) => apiSend<{ saved: Source }>(SCRAPING_SETTINGS_URL, {
+ source: source.source, network, cookie, cookies_text: cookieText, revoke,
+ }),
+ onSuccess: (result, revoke) => {
+ // 服务端回的就是这一条的新样子,换进列表即可,不为一次保存把整页重取一遍。
+ queryClient.setQueryData<ScrapingData>(SCRAPING_KEY, (current) => current && {
+ ...current,
+ sources: current.sources.map(
+ (row) => (row.source === result.saved.source ? result.saved : row)),
+ });
+ forgetSecrets();
+ toast(revoke ? 'Cookie 已撤销' : '来源设置已保存');
+ },
+ });
+ const check = useMutation({
+ mutationFn: () => apiSend<{ results: Check[] }>(SCRAPING_CHECK_URL, { source: source.source }),
+ });
+ // 一张卡上三个动作互斥:它们改的是同一份凭据,谁先落地都会让另一次的结果说不清楚。
+ const busy = save.isPending || check.isPending;
+
+ const submit = (event: FormEvent<HTMLFormElement>) => {
+ event.preventDefault();
+ if (busy) return;
+ check.reset();
+ save.mutate(false);
+ };
+ const revoke = () => {
+ if (busy) return;
+ check.reset();
+ save.mutate(true);
+ };
+ const connect = () => {
+ if (busy) return;
+ save.reset();
+ check.mutate();
+ };
+
+ async function pickFile(event: ChangeEvent<HTMLInputElement>) {
+ const input = event.currentTarget;
+ const selected = input.files?.[0];
+ setCookieText('');
+ setFileProblem('');
+ if (!selected) {
+ setFileName('');
+ return;
+ }
+ if (selected.size > COOKIE_TEXT_LIMIT) {
+ // 超限的多半根本不是 Cookie 文件。在浏览器里就拦住,不拿它去占一次请求。
+ input.value = '';
+ setFileName('');
+ setFileProblem('Cookie 文本超过 256 KiB');
+ return;
+ }
+ try {
+ const text = await selected.text();
+ setCookieText(text);
+ setFileName(selected.name);
+ } catch {
+ setFileProblem('Cookie 文件未读取,请重新选择');
+ }
+ }
+
+ const problem = fileProblem
+ || (save.error ? errorMessage(save.error) : '')
+ || (check.error ? errorMessage(check.error) : '');
+ const results = check.data?.results ?? [];
+ // 这一块空着时连同它那道分隔线一起不画:直连、又不收 Cookie 的来源只有一行连接方式。
+ const detailed = network === 'peach' || source.accepts_cookie || !!problem || results.length > 0;
+
+ return (
+ <Section title={source.label} onSubmit={submit} aside={
+ <span className="flex min-w-0 items-center gap-1">
+ <SiteMark source={source.source} />
+ <ExternalLink href={source.login}>{source.login}</ExternalLink>
+ </span>
+ }>
+ <Rows>
+ <SettingsRow label="连接方式">
+ <Select aria-label="连接方式" selectedKey={network}
+ onSelectionChange={(key) => { if (key !== null) setNetwork(String(key)) }}>
+ {NETWORKS.map(([key, name]) => <SelectItem key={key} id={key}>{name}</SelectItem>)}
+ </Select>
+ </SettingsRow>
+ </Rows>
+ {detailed ? <Stack divided>
+ {network === 'peach'
+ ? <span className="self-start">
+ <LinkButton href="/configuration#peachProxy" size="small" trailingIcon={RiArrowRightLine}>
+ 配置 Peach 代理
+ </LinkButton>
+ </span>
+ : null}
+ {source.accepts_cookie ? <>
+ <p className="text-body-2-regular text-text-secondary">
+ {source.cookie_saved
+ ? 'Cookie 已保存,登录是否有效请在抓取时确认。'
+ : '需要登录时,任选一种方式提供 Cookie。'}
+ </p>
+ {/* 两种方式互斥,交上去的只能是其中一种:切换时把另一种的输入清掉,
+ 不让看不见的那一份跟着提交。 */}
+ <RadioGroup aria-label="提供 Cookie 的方式(二选一)" value={method}
+ onChange={(next) => { setMethod(next); forgetSecrets() }}
+ className="flex flex-wrap gap-1">
+ {COOKIE_METHODS.map(([value, label]) => (
+ <Radio key={value} value={value}
+ className="flex h-8 cursor-pointer items-center rounded-lg px-3 text-body-2-medium text-text-secondary outline-none hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:bg-background-tertiary-default data-selected:text-text-primary">
+ {label}
+ </Radio>
+ ))}
+ </RadioGroup>
+ {method === 'paste'
+ ? <Input type="password" label="Cookie" autoComplete="off" value={cookie} onChange={setCookie} />
+ : <div className="flex flex-col gap-2">
+ <FieldLabel>Netscape Cookie 文件(.txt)</FieldLabel>
+ <div className="flex flex-wrap items-center gap-3">
+ <Button variant="secondary" onClick={() => file.current?.click()}>选择文件</Button>
+ <span className="min-w-0 text-body-2-regular break-all text-text-secondary">
+ {fileName || '未选择文件'}
+ </span>
+ </div>
+ {/* 原生文件选择器长相不可控,按钮归 BoardUI,输入框只留着接文件。 */}
+ <input ref={file} type="file" accept=".txt" tabIndex={-1} aria-hidden
+ className="hidden" onChange={(event) => { void pickFile(event) }} />
+ </div>}
+ </> : null}
+ {problem ? <ErrorText>{problem}</ErrorText> : null}
+ {results.map((result) => (
+ <Note key={result.label} tone={result.ok ? 'success' : 'error'}>
+ {checkText(result, source.label)}
+ </Note>
+ ))}
+ </Stack> : null}
+ {/* 主体动作在最右。次级动作先出现,`保存` 是这张卡唯一的写入,放在一行的末尾;
+ 表单里只有它一个 `type=submit`,所以挪位置不影响回车提交。 */}
+ <Footer>
+ {source.accepts_cookie && source.cookie_saved
+ ? <Button variant="secondary" onClick={revoke} {...busyProps(busy)}>撤销 Cookie</Button>
+ : null}
+ <Button variant="secondary" onClick={connect} {...busyProps(busy)}>检查连接</Button>
+ <Button type="submit" {...busyProps(busy)}>保存</Button>
+ </Footer>
+ </Section>
+ );
+}
+
+/** 按番号补一张高清封面。这一趟在后台跑,页面上留状态。 */
+function CoverCard({ toast }: ScrapingProps) {
+ const [code, setCode] = useState('');
+ /** 本次是不是在跟一趟:启动过,或者本次见过它在跑。 */
+ const [tracking, setTracking] = useState(false);
+ /** 本次跟完的那一趟。首屏读到的旧终态不算,它不会走到这里。 */
+ const [outcome, setOutcome] = useState<CoverJob | null>(null);
+
+ const job = useQuery({
+ queryKey: COVER_JOB_KEY,
+ queryFn: ({ signal }) => fetchCoverJob(signal),
+ refetchInterval: (query) => (query.state.data?.status === 'running' ? COVER_POLL_MS : false),
+ });
+ const start = useMutation({
+ mutationFn: () => apiSend<CoverJob>(SCRAPING_COVER_URL, { code }),
+ onSuccess: () => {
+ setTracking(true);
+ setOutcome(null);
+ // 启动的那一次回的就是任务快照,但轮询的节律由这个键说了算:让它立刻重读一次接上。
+ void queryClient.invalidateQueries({ queryKey: COVER_JOB_KEY });
+ },
+ });
+
+ const status = job.data?.status ?? 'idle';
+ const running = status === 'running';
+ useEffect(() => {
+ const state = job.data;
+ if (!state) return;
+ if (state.status === 'running') {
+ if (!tracking) setTracking(true);
+ return;
+ }
+ if (!tracking) return;
+ setTracking(false);
+ setOutcome(state);
+ if (state.status === 'complete') toast(state.result || '封面采集完成');
+ }, [job.data, tracking, toast]);
+
+ const submit = (event: FormEvent<HTMLFormElement>) => {
+ event.preventDefault();
+ if (running || start.isPending || !code.trim()) return;
+ start.mutate();
+ };
+
+ const problem = start.error ? errorMessage(start.error)
+ : outcome?.status === 'failed' ? (outcome.error || '采集未取得') : '';
+ return (
+ <Section title="高清封面" onSubmit={submit}>
+ <Stack>
+ <div className="flex flex-wrap items-end gap-2">
+ <div className="min-w-0 flex-1">
+ <Input aria-label="馆藏番号" isRequired isDisabled={running} value={code} onChange={setCode}
+ placeholder="输入馆藏番号,如 ABW-232" />
+ </div>
+ <Button type="submit" disabled={!code.trim()} {...busyProps(running || start.isPending)}>
+ 抓取封面
+ </Button>
+ </div>
+ {/* 这一趟要挨个问几家站点、还可能走代理,没有可数的总量,也不能编一个百分比出来。
+ 关掉页面它照样在跑,回来能接上,所以状态得留在页面上,而不是只让按钮转一下。 */}
+ {running ? <LoadingDots label="正在抓取封面" /> : null}
+ {problem ? <Note tone="error">{problem}</Note> : null}
+ {outcome?.status === 'complete'
+ ? <Note tone="success">{outcome.result || '封面采集完成'}</Note>
+ : null}
+ </Stack>
+ </Section>
+ );
+}
+
+export function ScrapingPage({ toast }: ScrapingProps) {
+ const sources = useQuery({ queryKey: SCRAPING_KEY, queryFn: ({ signal }) => fetchSources(signal) });
+ const data = sources.data;
+ if (!data) {
+ return (
+ <Page>
+ <Note tone="error" title="读取失败">
+ {sources.error ? errorMessage(sources.error) : '读取采集来源失败'}
+ </Note>
+ </Page>
+ );
+ }
+ return (
+ <Page>
+ <p className="text-body-2-regular text-text-secondary">高清图片可能需要代理才能下载,请先检查连接。</p>
+ <CoverCard toast={toast} />
+ {(data.sources || []).map(
+ (source) => <SourceCard key={source.source} source={source} toast={toast} />)}
+ </Page>
+ );
+}
diff --git a/frontend/src/react/scraping/scraping.ts b/frontend/src/react/scraping/scraping.ts
new file mode 100644
index 000000000..8307d1221
--- /dev/null
+++ b/frontend/src/react/scraping/scraping.ts
@@ -0,0 +1,82 @@
+/* 来源和凭证页的数据契约与折算。四条端点在 `frontend/src` 里都只在这里声明一次
+ * (`tests/test_frontend_build.py` 盯着)。
+ *
+ * 这一页有两个键,因为屏幕上是两个不同节律的真相:来源列表由用户改、改完由写操作把
+ * 那一条换进缓存;封面任务是后台自己推进的状态,跑起来时两秒问一次。合成一个键的话,
+ * 每一轮轮询都要把整张来源列表重取一遍,用户正在填的那张卡也会跟着重画。 */
+import { apiGet } from '../../api';
+import { queryClient } from '../query';
+
+export const SCRAPING_URL = '/api/scraping';
+export const SCRAPING_SETTINGS_URL = '/api/scraping/settings';
+export const SCRAPING_CHECK_URL = '/api/scraping/check';
+export const SCRAPING_COVER_URL = '/api/scraping/cover';
+
+/** 来源列表共用这一个键。 */
+export const SCRAPING_KEY = ['scraping'] as const;
+/** 抓封面那一趟后台任务的状态。 */
+export const COVER_JOB_KEY = ['scraping', 'cover'] as const;
+
+/** 一个采集来源。字段以 `q_scraping`(`src/peach/web_scraping.py`)为准。 */
+export interface Source {
+ source: string;
+ label: string;
+ login: string;
+ accepts_cookie: boolean;
+ network: string;
+ cookie_saved: boolean;
+}
+
+export interface ScrapingData {
+ sources: Source[];
+}
+
+/** 一次连接检查的一项结果:来源页面,以及部分来源另有的高清图片地址。 */
+export interface Check {
+ label: string;
+ ok: boolean;
+ status?: number;
+ message?: string;
+ width?: number;
+ height?: number;
+}
+
+/** 抓封面的后台任务快照(`scraping_cover_job`)。`status` 是 `idle|running|complete|failed`。 */
+export interface CoverJob {
+ status: string;
+ job_id?: string;
+ result?: string;
+ error?: string;
+ width?: number;
+ height?: number;
+}
+
+/** 在跑的时候两秒问一次,和别的后台任务同一个节律;停了就不再问。 */
+export const COVER_POLL_MS = 2000;
+
+/** Netscape Cookie 文件的上限。再大的多半不是 Cookie 文件,先拦住再说。 */
+export const COOKIE_TEXT_LIMIT = 256 * 1024;
+
+export const fetchSources = (signal?: AbortSignal) => apiGet<ScrapingData>(SCRAPING_URL, signal);
+export const fetchCoverJob = (signal?: AbortSignal) => apiGet<CoverJob>(SCRAPING_COVER_URL, signal);
+
+/** 首屏:两个键都取回来才画。
+ *
+ * 抓封面的状态也算首屏——页面一上来就得知道有没有一趟正在跑,才接得上它的进度。
+ * 中止时 `fetchQuery` 把 `AbortError` 抛回给挂载方,它据此放弃这一次。 */
+export async function prefetchScraping(signal: AbortSignal): Promise<void> {
+ await Promise.all([
+ queryClient.fetchQuery({ queryKey: SCRAPING_KEY, queryFn: () => fetchSources(signal) }),
+ queryClient.fetchQuery({ queryKey: COVER_JOB_KEY, queryFn: () => fetchCoverJob(signal) }),
+ ]);
+}
+
+/** 一条检查结果说成一句话:谁、通不通、图有多大、服务端补充了什么。
+ *
+ * 结果里的 `label` 是这一跳查的是什么;只有一跳时它就是来源页面本身,句子里不必再说一遍。 */
+export function checkText(check: Check, sourceLabel: string): string {
+ return `${sourceLabel}${check.label === '来源页面' ? '' : ' 高清图片'}`
+ + `:${check.ok ? '可连接' : '不能连接'}`
+ + (check.width ? ` · ${check.width} × ${check.height}` : '')
+ + (check.message ? `。${check.message}` : '');
+}
diff --git a/frontend/src/react/settings/section.tsx b/frontend/src/react/settings/section.tsx
index 018610f6e..d8a3340e7 100644
--- a/frontend/src/react/settings/section.tsx
+++ b/frontend/src/react/settings/section.tsx
@@ -14,15 +14,22 @@ import { LinkButton } from '@/components/base/buttons/link-button';
interface SectionProps {
title: string;
id?: string;
+ /** 跟着标题走的次要内容(来源站点的外链)。标题占剩下的宽度,它靠右。 */
+ aside?: ReactNode;
/** 给了就画成表单:回车提交,提交键放在 `Footer` 里。 */
onSubmit?: (event: FormEvent<HTMLFormElement>) => void;
children: ReactNode;
}
-export function Section({ title, id, onSubmit, children }: SectionProps) {
+export function Section({ title, id, aside, onSubmit, children }: SectionProps) {
const body = (
<>
- <SettingsSectionLabel>{title}</SettingsSectionLabel>
+ {aside
+ ? <div className="flex w-full flex-wrap items-center justify-between gap-2">
+ <div className="min-w-0 flex-1"><SettingsSectionLabel>{title}</SettingsSectionLabel></div>
+ {aside}
+ </div>
+ : <SettingsSectionLabel>{title}</SettingsSectionLabel>}
<SettingsCard>{children}</SettingsCard>
</>
);
@@ -67,10 +74,11 @@ export function FieldLabel({ children }: { children: ReactNode }) {
return <p className="text-body-medium text-text-primary">{children}</p>;
}
-/** 新窗口打开的外部链接,尾部带外链字形。 */
+/** 新窗口打开的外部链接,尾部带外链字形。`rel` 两项都写:新标签页不继承这一页的会话,
+ * 来源地址也不带走 Peach 自己的地址。 */
export function ExternalLink({ href, children }: { href: string; children: ReactNode }) {
return (
- <LinkButton href={href} target="_blank" rel="noreferrer" size="small" trailingIcon={RiExternalLinkLine}>
+ <LinkButton href={href} target="_blank" rel="noopener noreferrer" size="small" trailingIcon={RiExternalLinkLine}>
{children}
</LinkButton>
);
diff --git a/frontend/test/react/scraping.test.tsx b/frontend/test/react/scraping.test.tsx
new file mode 100644
index 000000000..5f1dcb129
--- /dev/null
+++ b/frontend/test/react/scraping.test.tsx
@@ -0,0 +1,258 @@
+/* 来源和凭证页的行为:交什么、清什么、结果怎么说、后台那一趟跟到什么时候。
+ *
+ * 外观(页脚三键的主次、来源外链的 `rel`)是设计决定,由 `frontend/e2e/design.test.ts`
+ * 读 `getComputedStyle` 断言;这里只看结构、文字与请求。 */
+import { act } from 'react';
+import { notifyManager, QueryClientProvider } from '@tanstack/react-query';
+import { afterEach, expect, it, vi } from 'vitest';
+
+import { queryClient } from '../../src/react/query';
+import { ScrapingPage } from '../../src/react/scraping/scraping-page';
+import { prefetchScraping } from '../../src/react/scraping/scraping';
+import type { Check, CoverJob, Source } from '../../src/react/scraping/scraping';
+
+import { buttonNamed, click, mount, mountRoot, section, settle, submit, type } from './render';
+
+// 客户端是模块级的单例(所有 React 根共用一个),用例之间不清就互相喂数据。
+afterEach(() => queryClient.clear());
+
+/* Query 派发更新用的是它自己抓住的那个真 `setTimeout(0)`,假时钟推不动它:推完时钟
+ 断言到的还是上一帧的 DOM。用例里改成当场派发。 */
+notifyManager.setScheduler((notify) => notify());
+
+const source = (overrides: Partial<Source> = {}): Source => ({
+ source: 'fc2cmadb',
+ label: 'FC2CMADB',
+ login: 'https://fc2cmadb.com/',
+ accepts_cookie: true,
+ network: 'peach',
+ cookie_saved: false,
+ ...overrides,
+});
+
+interface Reply {
+ ok?: boolean;
+ status?: number;
+ body: unknown;
+}
+
+/** 按「方法 + 路径」应答。用例没造的请求当场失败,而不是静悄悄回一个空对象。 */
+function serve(handlers: Record<string, (body: never) => Reply>) {
+ const calls: { path: string; method: string; body: unknown }[] = [];
+ const fetcher = vi.fn(async (path: string, init?: RequestInit) => {
+ const method = init?.method ?? 'GET';
+ const body = init?.body ? JSON.parse(String(init.body)) : undefined;
+ calls.push({ path, method, body });
+ const handler = handlers[`${method} ${path}`];
+ if (!handler) throw new Error(`用例没有给 ${method} ${path} 造数据`);
+ const reply = handler(body as never);
+ return { ok: reply.ok !== false, status: reply.status ?? 200, json: async () => reply.body };
+ });
+ vi.stubGlobal('fetch', fetcher);
+ return { calls, fetcher };
+}
+
+/** 依次回这几份任务快照,最后一份之后一直回它。 */
+function coverStates(...states: CoverJob[]) {
+ let at = 0;
+ return () => {
+ const state = states[Math.min(at, states.length - 1)]!;
+ at += 1;
+ return { body: state };
+ };
+}
+
+const page = (toast: (message: string) => void) => (
+ <QueryClientProvider client={queryClient}><ScrapingPage toast={toast} /></QueryClientProvider>
+);
+
+/** 走完真实的首屏路径:先 prefetch 落进缓存,再挂载。 */
+async function open(handlers: Record<string, (body: never) => Reply>) {
+ const toast = vi.fn();
+ const served = serve(handlers);
+ await prefetchScraping(new AbortController().signal).catch(() => {});
+ return { ...served, toast, host: await mount(page(toast)) };
+}
+
+/** 一份只有一个来源、后台没有任务的首屏。 */
+const quiet = (overrides: Partial<Source> = {}) => ({
+ 'GET /api/scraping': () => ({ body: { sources: [source(overrides)] } }),
+ 'GET /api/scraping/cover': () => ({ body: { status: 'idle' } }),
+});
+
+const password = (root: ParentNode) => root.querySelector<HTMLInputElement>('input[type=password]');
+const radio = (value: string) => document.querySelector<HTMLInputElement>(`input[type=radio][value="${value}"]`);
+/** 轮询是组件里的定时器,推进时钟会引起重画,得在 act 里推。 */
+const tick = (ms: number) => act(async () => { await vi.advanceTimersByTimeAsync(ms) });
+
+it('首屏用 prefetch 落进缓存的两份画出来,挂载时不再请求一次', async () => {
+ const { calls, host } = await open(quiet());
+ expect(calls.map((call) => call.path))
+ .toEqual(['/api/scraping', '/api/scraping/cover']);
+ expect(section(host, 'FC2CMADB')).not.toBeNull();
+ expect(section(host, '高清封面')).not.toBeNull();
+ // 连接方式是 BoardUI 的 Select,画出来的是按钮;原生 select 是 React Aria 藏在后面
+ // 供表单取值的那一个,不是这一行的长相。
+ expect(host.querySelector('[aria-haspopup=listbox]')?.textContent?.trim()).toBe('Peach 代理');
+ expect(host.querySelector<HTMLAnchorElement>('a[href="/configuration#peachProxy"]')?.textContent)
+ .toContain('配置 Peach 代理');
+ expect(host.querySelector<HTMLAnchorElement>('a[href="https://fc2cmadb.com/"]')?.target).toBe('_blank');
+});
+
+it('保存后清空秘密输入,列表就地换成服务端回的那一条,撤销随之可操作', async () => {
+ const { calls, host, toast } = await open({
+ ...quiet(),
+ 'POST /api/scraping/settings': () => ({ body: { saved: source({ cookie_saved: true }) } }),
+ });
+ await type(password(host), 'session=fixture');
+ await submit(section(host, 'FC2CMADB'));
+ await settle();
+
+ expect(calls[2]).toEqual({
+ path: '/api/scraping/settings',
+ method: 'POST',
+ body: {
+ source: 'fc2cmadb', network: 'peach', cookie: 'session=fixture', cookies_text: '', revoke: false,
+ },
+ });
+ expect(password(host)?.value, '保存回来之后页面上不再留着刚交上去的那一份').toBe('');
+ expect(host.textContent).toContain('登录是否有效请在抓取时确认');
+ expect(buttonNamed('撤销 Cookie', host)).not.toBeNull();
+ expect(toast).toHaveBeenCalledWith('来源设置已保存');
+ expect(calls.filter((call) => call.path === '/api/scraping' && call.method === 'GET'),
+ '保存换的是列表里的一条,不为它把整页重取一遍').toHaveLength(1);
+});
+
+it('撤销走同一条写入,回执说的是撤销', async () => {
+ const { calls, host, toast } = await open({
+ ...quiet({ cookie_saved: true }),
+ 'POST /api/scraping/settings': () => ({ body: { saved: source({ cookie_saved: false }) } }),
+ });
+ await click(buttonNamed('撤销 Cookie', host));
+ await settle();
+ expect(calls[2]?.body).toMatchObject({ source: 'fc2cmadb', revoke: true });
+ expect(toast).toHaveBeenCalledWith('Cookie 已撤销');
+ expect(buttonNamed('撤销 Cookie', host), '撤销之后这颗键没有对象可撤了').toBeNull();
+});
+
+it('保存失败时原因留在卡内,列表和刚填的内容都不动', async () => {
+ const { host, toast } = await open({
+ ...quiet(),
+ 'POST /api/scraping/settings': () => ({ ok: false, status: 400, body: { message: 'Cookie 不是 Netscape 格式' } }),
+ });
+ await type(password(host), 'session=fixture');
+ await submit(section(host, 'FC2CMADB'));
+ await settle();
+
+ expect(host.querySelector('[role=alert]')?.textContent).toContain('Cookie 不是 Netscape 格式');
+ expect(password(host)?.value, '失败了还清空输入,等于让人重打一遍').toBe('session=fixture');
+ expect(buttonNamed('撤销 Cookie', host)).toBeNull();
+ expect(toast).not.toHaveBeenCalled();
+});
+
+it('连接结果按来源名称与这一跳查的是什么说成一句话', async () => {
+ const results: Check[] = [
+ { label: '来源页面', ok: true, width: 800, height: 538 },
+ { label: '高清图片 CDN', ok: false, status: 403, message: '需要登录' },
+ ];
+ const { host } = await open({
+ ...quiet(),
+ 'POST /api/scraping/check': () => ({ body: { results } }),
+ });
+ await click(buttonNamed('检查连接', host));
+ await settle();
+
+ expect(host.querySelector('[role=status]')?.textContent).toBe('FC2CMADB:可连接 · 800 × 538');
+ expect(host.querySelector('[role=alert]')?.textContent).toBe('FC2CMADB 高清图片:不能连接。需要登录');
+});
+
+it('Cookie 二选一:切过去的那一种才交,另一种连输入都不留', async () => {
+ const { calls, host } = await open({
+ ...quiet(),
+ 'POST /api/scraping/settings': () => ({ body: { saved: source() } }),
+ });
+ expect(host.querySelector('input[type=file]')).toBeNull();
+ await type(password(host), 'private');
+ await click(radio('file'));
+ expect(password(host), '粘贴框还在页面上就会跟着提交').toBeNull();
+ expect(host.querySelector('input[type=file]')).not.toBeNull();
+ expect(host.textContent).toContain('未选择文件');
+
+ await submit(section(host, 'FC2CMADB'));
+ await settle();
+ expect(calls[2]?.body).toMatchObject({ cookie: '', cookies_text: '' });
+
+ await click(radio('paste'));
+ expect(password(host)?.value).toBe('');
+});
+
+it('Cookie 文件超过上限时当场拦住,不拿它去占一次请求', async () => {
+ const { calls, host } = await open(quiet());
+ await click(radio('file'));
+ const input = host.querySelector<HTMLInputElement>('input[type=file]')!;
+ const oversized = new File(['x'.repeat(256 * 1024 + 1)], 'cookies.txt', { type: 'text/plain' });
+ Object.defineProperty(input, 'files', { configurable: true, value: [oversized] });
+ await act(async () => { input.dispatchEvent(new Event('change', { bubbles: true })) });
+ await settle();
+
+ expect(host.querySelector('[role=alert]')?.textContent).toBe('Cookie 文本超过 256 KiB');
+ expect(host.textContent).toContain('未选择文件');
+ expect(calls).toHaveLength(2);
+});
+
+it('首屏读到的旧结果不冒充新结果:不画、也不发回执', async () => {
+ const { host, toast } = await open({
+ ...quiet(),
+ 'GET /api/scraping/cover': () => ({ body: { status: 'complete', result: '上一趟的封面' } }),
+ });
+ expect(toast).not.toHaveBeenCalled();
+ expect(host.textContent).not.toContain('上一趟的封面');
+ expect(host.textContent).not.toContain('正在抓取封面');
+});
+
+it('抓封面跟到终态:跑的时候两秒一次,跑完发一次回执就不再问', async () => {
+ vi.useFakeTimers();
+ const toast = vi.fn();
+ const { calls } = serve({
+ ...quiet(),
+ 'GET /api/scraping/cover': coverStates(
+ { status: 'idle' }, { status: 'running' }, { status: 'complete', result: '已取得 1600 × 1077 封面' }),
+ 'POST /api/scraping/cover': () => ({ body: { status: 'running' } }),
+ });
+ await prefetchScraping(new AbortController().signal);
+ const host = await mount(page(toast));
+
+ await type(host.querySelector<HTMLInputElement>('input[aria-label=馆藏番号]'), 'ABW-232');
+ await click(buttonNamed('抓取封面', host));
+ await settle();
+ expect(calls[2]).toMatchObject({ path: '/api/scraping/cover', method: 'POST', body: { code: 'ABW-232' } });
+ expect(host.textContent).toContain('正在抓取封面');
+
+ await tick(2000);
+ expect(host.textContent).toContain('已取得 1600 × 1077 封面');
+ expect(host.textContent).not.toContain('正在抓取封面');
+ expect(toast).toHaveBeenCalledTimes(1);
+ expect(toast).toHaveBeenCalledWith('已取得 1600 × 1077 封面');
+
+ const asked = calls.length;
+ await tick(60_000);
+ expect(calls.length, '任务已经结束,不必接着敲后台').toBe(asked);
+ expect(toast).toHaveBeenCalledTimes(1);
+});
+
+it('卸载之后不再敲后台:轮询跟着这棵根一起走', async () => {
+ vi.useFakeTimers();
+ const { calls } = serve({
+ ...quiet(),
+ 'GET /api/scraping/cover': () => ({ body: { status: 'running' } }),
+ });
+ await prefetchScraping(new AbortController().signal);
+ const mounted = await mountRoot(page(vi.fn()));
+
+ await tick(2000);
+ const asked = calls.length;
+ expect(asked).toBeGreaterThan(2);
+ await mounted.unmount();
+ await tick(60_000);
+ expect(calls.length, '卸载之后还在轮询').toBe(asked);
+});
diff --git a/frontend/test/scraping.test.tsx b/frontend/test/scraping.test.tsx
deleted file mode 100644
index f7c9d2817..000000000
--- a/frontend/test/scraping.test.tsx
+++ /dev/null
@@ -1,88 +0,0 @@
-import { h, render } from 'preact';
-import { act } from 'preact/test-utils';
-import { afterEach, expect, it, vi } from 'vitest';
-import { Scraping } from '../src/islands/scraping';
-
-const source = { source: 'fc2cmadb', label: 'FC2CMADB', login: 'https://fc2cmadb.com/',
- accepts_cookie: true, network: 'peach', cookie_saved: false };
-let host: HTMLDivElement;
-afterEach(() => { if (host) render(null, host); document.body.innerHTML = ''; vi.unstubAllGlobals(); });
-
-it('保存后清空秘密输入,状态只表示保存且撤销可操作', async () => {
- const requests: { path: string; body: unknown }[] = [];
- vi.stubGlobal('fetch', vi.fn(async (path: string, init?: RequestInit) => {
- if (init?.method === 'POST') {
- requests.push({ path, body: JSON.parse(String(init.body)) });
- return { ok: true, json: async () => ({ saved: { ...source, cookie_saved: true } }) };
- }
- return { ok: true, json: async () => ({ status: 'idle' }) };
- }));
- host = document.createElement('div'); document.body.append(host);
- const toast = vi.fn();
- await act(async () => render(h(Scraping, { data: { sources: [source] }, error: '', toast }), host));
- const heading = host.querySelector('.geist-fieldset-heading')!;
- expect(heading.querySelector('.geist-fieldset-title')?.textContent?.trim()).toBe(source.label);
- expect(heading.querySelector('a')?.href).toBe(source.login);
- const proxyLink = host.querySelector<HTMLAnchorElement>('.board-link-button')!;
- expect(proxyLink.getAttribute('href')).toBe('/configuration#peachProxy');
- expect(proxyLink.textContent).toBe('配置 Peach 代理');
- expect(proxyLink.target).toBe('');
- expect(proxyLink.querySelector('svg[aria-hidden="true"]')).not.toBeNull();
- const input = host.querySelector<HTMLInputElement>('input[type=password]')!;
- await act(async () => { input.value = 'session=fixture'; input.dispatchEvent(new Event('input', { bubbles: true })); });
- await act(async () => {
- input.closest('form')!.dispatchEvent(new Event('submit', { bubbles: true, cancelable: true }));
- await new Promise(resolve => setTimeout(resolve, 0));
- });
- expect(requests[0]).toEqual({ path: '/api/scraping/settings', body: {
- source: 'fc2cmadb', network: 'peach', cookie: 'session=fixture', cookies_text: '', revoke: false,
- } });
- expect(host.querySelector<HTMLInputElement>('input[type=password]')!.value).toBe('');
- expect(host.textContent).toContain('登录是否有效请在抓取时确认');
- expect(host.textContent).toContain('撤销 Cookie');
- expect(toast).toHaveBeenCalledWith('来源设置已保存');
-});
-
-it('已有后台结果不在首屏冒充新结果', async () => {
- vi.stubGlobal('fetch', vi.fn(async () => ({ ok: true, json: async () => ({ status: 'complete', result: 'old result' }) })));
- host = document.createElement('div'); document.body.append(host);
- const toast = vi.fn();
- await act(async () => render(h(Scraping, { data: { sources: [] }, error: '', toast }), host));
- expect(toast).not.toHaveBeenCalled();
- expect(host.textContent).not.toContain('old result');
- expect(host.querySelector('input[required]')).not.toBeNull();
-});
-
-it('连接结果用站点名称与共享状态组件呈现', async () => {
- let connected = true;
- vi.stubGlobal('fetch', vi.fn(async (path: string) => ({ ok: true, json: async () =>
- path.endsWith('/check') ? { results: [{ label: '来源页面', ok: connected }] } : { status: 'idle' },
- })));
- host = document.createElement('div'); document.body.append(host);
- await act(async () => render(h(Scraping, { data: { sources: [source] }, error: '', toast: vi.fn() }), host));
- const check = [...host.querySelectorAll('button')].find(button => button.textContent === '检查连接')!;
- await act(async () => { check.click(); await new Promise(resolve => setTimeout(resolve, 0)); });
- expect(host.querySelector('.geist-note-success')?.textContent?.trim()).toBe('FC2CMADB:可连接');
- connected = false;
- await act(async () => { check.click(); await new Promise(resolve => setTimeout(resolve, 0)); });
- expect(host.querySelector('.geist-note-error')?.textContent?.trim()).toBe('FC2CMADB:不能连接');
-});
-
-it('代理复用重绘下拉,Cookie 二选一且切换后不携带隐藏输入', async () => {
- vi.stubGlobal('fetch', vi.fn(async () => ({ ok: true, json: async () => ({ status: 'idle' }) })));
- host = document.createElement('div'); document.body.append(host);
- await act(async () => render(h(Scraping, { data: { sources: [source] }, error: '', toast: vi.fn() }), host));
- expect(host.querySelector('select')).toBeNull();
- expect(host.querySelector('.gselect [aria-haspopup=listbox]')?.textContent?.trim()).toBe('Peach 代理');
- expect(host.querySelector('.scraping-url')?.textContent?.trim()).toBe(source.login);
- expect(host.querySelector('input[type=file]')).toBeNull();
- const input = host.querySelector<HTMLInputElement>('input[type=password]')!;
- await act(async () => { input.value = 'private'; input.dispatchEvent(new Event('input', { bubbles: true })); });
- const choose = (value: string) => host.querySelector<HTMLInputElement>(`input[type=radio][value=${value}]`)!.dispatchEvent(new Event('change', { bubbles: true }));
- await act(async () => { choose('file'); });
- expect(host.querySelector('input[type=password]')).toBeNull();
- expect(host.querySelector('input[type=file]')).not.toBeNull();
- await act(async () => { choose('paste'); });
- expect(host.querySelector<HTMLInputElement>('input[type=password]')!.value).toBe('');
- expect(host.querySelector('.scraping-cover-form')?.children).toHaveLength(2);
-});
diff --git a/tests/test_frontend_build.py b/tests/test_frontend_build.py
index 55b82a9a3..523772cba 100644
--- a/tests/test_frontend_build.py
+++ b/tests/test_frontend_build.py
@@ -330,6 +330,29 @@ class IslandSourceContractTests(unittest.TestCase):
self.assertEqual(len(routed), 1, f"quality-goals 声明在 {routed}")
+class ScrapingEndpointTests(unittest.TestCase):
+ """来源和凭证页的四条端点,声明处都只有这一页的数据模块。
+
+ 这一页除了读列表还有三个写操作,散着写最容易在第二处悄悄改一条路径。基址是另外三条
+ 的前缀,所以按带引号的字面量数,`'/api/scraping'` 不会把 `/settings` 那条也算进来。
+ """
+
+ SCRAPING = FRONTEND / "src" / "react" / "scraping" / "scraping.ts"
+
+ def test_the_endpoints_are_declared_once(self):
+ sources = sorted(path for path in (FRONTEND / "src").rglob("*.ts*"))
+ for endpoint in ("'/api/scraping'", "'/api/scraping/settings'",
+ "'/api/scraping/check'", "'/api/scraping/cover'"):
+ with self.subTest(endpoint=endpoint):
+ declared = [path for path in sources
+ if endpoint in path.read_text(encoding="utf-8")]
+ self.assertEqual(declared, [self.SCRAPING],
+ f"{endpoint} 声明在 {[path.name for path in declared]}")
+ routed = [path.name for path in sorted((ROOT / "src" / "peach").glob("web_*.py"))
+ if "/api/scraping" in path.read_text(encoding="utf-8")]
+ self.assertEqual(len(routed), 1, f"/api/scraping 的路由声明在 {routed}")
+
+
class ConfigurationEndpointTests(unittest.TestCase):
"""配置页的 Preact 外壳和 React 分区读同一条 `/api/configuration`,两份产物各打包一份。"""
diff --git a/tests/test_web_ui.py b/tests/test_web_ui.py
index 34a0e2491..af0c96912 100644
--- a/tests/test_web_ui.py
+++ b/tests/test_web_ui.py
@@ -353,7 +353,7 @@ class WebUiSourceTests(unittest.TestCase):
".geist-progress", ".watchprogress", ".vjs-play-progress", ".vjs-progress-holder",
".trace .bar", ".tokbar", # 进度与数据
".ptoggle:checked", # Toggle 开态:Geist Toggle 实测轨道 rgb(0,112,243)
- ".entitylink", ".flink", ".fsourcelink", ".fcred a", ".tokauthor>a", ".taste-history-guide-content a", ".scraping-url", # 真正的链接
+ ".entitylink", ".flink", ".fsourcelink", ".fcred a", ".tokauthor>a", ".taste-history-guide-content a", # 真正的链接
)
def test_tungsten_is_reserved_for_focus_links_progress_and_toggle(self):
@@ -2133,8 +2133,8 @@ class WebUiSourceTests(unittest.TestCase):
for gone in ("google.com/s2/favicons", "faviconFallbackUrl", "SITE_FAVICONS"):
self.assertPageLacks(gone, "站点图标不得由浏览器向站外取")
scraping = (Path(__file__).resolve().parents[1]
- / "frontend/src/islands/scraping.tsx").read_text(encoding="utf-8")
- self.assertIn("<img src={siteMarkUrl({ source: source.source })}", scraping)
+ / "frontend/src/react/scraping/scraping-page.tsx").read_text(encoding="utf-8")
+ self.assertIn("<img src={siteMarkUrl({ source })}", scraping)
self.assertNotIn("faviconUrl", scraping)
def test_no_caller_ever_hands_the_link_mark_endpoint_a_url(self):
@@ -5040,24 +5040,27 @@ class WebUiSourceTests(unittest.TestCase):
"统计页只讲库里现在有多少,不该再挂对齐外部现实的面板")
self.assertNotIn("resourceSyncMarkup()", stats)
- def test_scraping_uses_shared_controls_and_source_links(self):
+ def test_scraping_is_reachable_from_the_library_processing_card(self):
+ """来源和凭证自成一页,入口在数据管理那张「扫描与采集」卡上。
+
+ 这一页是 React 档(ADR-0031):遗留层只铺骨架、交容器,正文在
+ `frontend/src/react/scraping/` 里。所以这里断言的是外壳——路由、名字与入口。
+ 连接方式、Cookie 二选一、保存与撤销交什么、检查结果怎么说由
+ `frontend/test/react/scraping.test.tsx` 守,页脚三键的外观与来源外链的
+ `rel` 由 `frontend/e2e/design.test.ts` 读计算值守。
+ """
self.assertPageContains("'/scraping':'来源和凭证'")
self.assertPageContains('id="libraryProcessing"')
processing = (Path(__file__).resolve().parents[1] / 'frontend/src/islands/library-processing.tsx').read_text(encoding='utf-8')
self.assertIn('href="/scraping"', processing)
- self.assertPageContains('.scraping-fields .gselectfield{justify-content:space-between;padding-right:16px;')
- # 来源链接是站外地址:站标加外链标,读者不点也知道这一跳会离开 Peach。
- # 站标和地址之间那 4px 挂在站标身上,行内的 gap 只管地址与外链标之间的 2px。
- self.assertPageContains('.scraping-fields .scraping-url{display:inline-flex;align-items:center;gap:2px;')
- self.assertPageContains('.scraping-fields .scraping-url img{flex:none;margin-inline-end:4px;')
- # 来源地址使用链接蓝,悬停通过下划线反馈。
- self.assertPageContains('.scraping-fields .scraping-url:hover{color:var(--tungsten);text-decoration:underline;text-underline-offset:3px}')
- self.assertPageContains('.scraping-fields .scraping-cover-form{display:flex;align-items:center;')
- source = (Path(__file__).resolve().parents[1] / 'frontend/src/islands/scraping.tsx').read_text(encoding='utf-8')
- self.assertIn('wireSelectField(root.firstElementChild!)', source)
- self.assertNotIn('<select', source)
- self.assertIn('提供 Cookie 的方式(二选一)', source)
- self.assertIn('class="scraping-url externallink" href={source.login}', source)
+ self.assertPageContains(
+ "await ui.mountIsland('scraping',$('#stats'),{toast},"
+ "{isCurrent:()=>surfaceCurrent(surface)})")
+ # 正文归 React 子树:控件、来源外链与 Cookie 二选一用 BoardUI 的源码加 Tailwind,
+ # 遗留样式表里只剩骨架要的那两条。
+ self.assertPageLacks('.scraping-fields')
+ self.assertPageLacks('.scraping-url')
+ self.assertPageLacks('.scraping-cover-form')
def test_data_management_subpages_carry_geist_breadcrumbs(self):
"""数据管理五张卡进的是它的子页,得有回去的路和自己的名字。
@@ -10390,12 +10393,15 @@ class WebUiSourceTests(unittest.TestCase):
它要挨个问几家站点、还可能走代理,没有可数的总量,也不能编一个百分比出来,
所以是 Loading Dots 不是 Progress。关掉页面它照样在跑、回来能接上,状态就得
留在页面上——按钮的忙态随着重进页面一起没了。
+
+ 页面归 React 子树(ADR-0031):轮询接不接得上、首屏读到的旧结果画不画、回执发
+ 几次由 `frontend/test/react/scraping.test.tsx` 守,等待点的外观由共用组件与
+ `frontend/e2e/design.test.ts` 守。这里只钉「用哪一种等待态」这个选择。
"""
- island = (Path(__file__).resolve().parents[1]
- / "frontend/src/islands/scraping.tsx").read_text(encoding="utf-8")
- self.assertIn("loadingDotsHtml", island.split("from '@peach/legacy/ui';", 1)[0])
- self.assertIn("{running && <div aria-live=\"polite\" dangerouslySetInnerHTML="
- "{{ __html: loadingDotsHtml('正在抓取封面') }} />}", island)
+ page = (Path(__file__).resolve().parents[1]
+ / "frontend/src/react/scraping/scraping-page.tsx").read_text(encoding="utf-8")
+ self.assertIn("<LoadingDots label=\"正在抓取封面\" />", page)
+ self.assertNotIn("<Progress", page)
def test_the_floating_filter_panel_leaves_the_same_gap_above_and_below(self):
"""浮层上下留一样宽的空隙;上面那段由页面给,它自己就不再加一层。
@@ -11123,7 +11129,9 @@ class WebUiSourceTests(unittest.TestCase):
self.app_js.count("icon('external-link','externalmark')"),
"web/app.js 里每一枚外链标都带 externalmark")
root = Path(__file__).resolve().parents[1]
- for name in ('islands/scraping.tsx', 'management.ts', 'review-evidence.ts'):
+ # React 子树的外链标是 BoardUI `LinkButton` 的 `trailingIcon`,不走雪碧图,
+ # 所以只数仍在拼 HTML 字符串的那几处。
+ for name in ('management.ts', 'review-evidence.ts'):
source = (root / 'frontend/src' / name).read_text(encoding='utf-8')
self.assertEqual(source.count('#i-external-link'),
source.count('class="externalmark" viewBox="0 0 24 24"'),
diff --git a/web/css/04-manage.css b/web/css/04-manage.css
index c614f120b..40cb3c6b2 100644
--- a/web/css/04-manage.css
+++ b/web/css/04-manage.css
@@ -121,9 +121,6 @@
操作条固定 52px、竖直居中,按钮一律靠右;左侧有说明时说明推到最左。
字阶照 Geist 示例实测:标题 20px/600、说明 14px/400——标题必须压过正文。 */
.geist-fieldset-title{margin:0 0 8px;color:var(--ink);font-size:var(--fs-xl);font-weight:600}
-.geist-fieldset-heading{display:grid;gap:8px;min-width:0}
-.geist-fieldset-heading .geist-fieldset-title{margin:0}
-.geist-fieldset-heading>p{margin:0}
.cleanupfieldset>.geist-fieldset-footer{box-sizing:border-box;min-height:var(--fieldset-bar-h);
margin:0;padding:12px 12px 12px 20px;display:flex;align-items:center;justify-content:flex-end;gap:8px;
border-top:1px solid var(--line-soft);background:var(--overlay-5)}
@@ -175,39 +172,10 @@
.taste-history-guide-content a:hover{text-decoration:underline;text-underline-offset:3px}
.stats h2{margin:0 0 4px;font-size:var(--fs-2xl)}
.stats .sub{color:var(--muted);margin:0}
-/* 采集来源表单复用管理页 Fieldset。 */
+/* 来源和凭证页的正文归 React 子树(ADR-0031)。这两条只服务遗留骨架:那一句静态说明
+ 和四块占位卡,宽度另由 `board.css` 那条钉到 `--board-content`。 */
.scraping-page{width:min(812px,100%);margin:0 auto;display:grid;gap:20px}
.scraping-page>h1,.scraping-page p{margin:0}
-.scraping-fields .scraping-cover-form{display:flex;align-items:center;gap:8px;min-width:0}
-.scraping-cover-form>input{flex:1}
-.scraping-cover-form>button{height:var(--control-h);white-space:nowrap}
-.scraping-fields{padding:20px;display:grid;gap:20px;min-width:0}
-.scraping-fields .geist-fieldset-title{margin:0}
-.scraping-fields label,.scraping-label{display:grid;gap:8px;min-width:0}
-.scraping-fields input:not([type=radio]):not([type=file]){width:100%;min-width:0;min-height:var(--control-h);box-sizing:border-box}
-.scraping-fields .scraping-url{display:inline-flex;align-items:center;gap:2px;align-self:start;min-width:0;text-decoration:none;color:var(--tungsten);overflow-wrap:anywhere;font-size:var(--fs-md)}
-.scraping-fields .scraping-url:hover{color:var(--tungsten);text-decoration:underline;text-underline-offset:3px}
-.scraping-fields .scraping-url img{flex:none;margin-inline-end:4px;width:16px;height:16px;border-radius:var(--badge-radius);object-fit:contain}
-.scraping-fields .scraping-url>span{min-width:0;overflow-wrap:anywhere}
-.scraping-network,.scraping-network .gselect{width:100%;min-width:0}
-.scraping-fields .gselectfield{justify-content:space-between;padding-right:16px;border-color:var(--field-ring)}
-.scraping-fields .gselectmenu button{border:0;justify-content:flex-start;padding:0 8px;background:transparent}
-.scraping-fields .gselectmenu button:hover,.scraping-fields .gselectmenu button[aria-selected=true]{background:var(--hover)}
-.scraping-cookie-method{justify-self:start}
-.scraping-cookie-method label{display:block}
-.scraping-cookie-method input:checked+span{font-weight:400}
-.scraping-file-control{position:relative;display:flex;align-items:center;gap:12px;min-width:0;min-height:var(--control-h)}
-/* 这颗假按钮站在 --ground 的卡面上,而次级档填的也是 --ground:去掉边框之后它和卡面
- 同色,就只剩「选择文件」四个字。操作条上的次级不用管(条子是 --overlay-5,比它暗一档),
- 站在卡面上的这一颗要自己沉下去一档才有边界。 */
-.scraping-file-control>.geist-button{flex:none;height:var(--control-h);background:var(--sunk)}
-.scraping-file-control>.geist-button:hover{background:var(--hover)}
-.scraping-file-name{min-width:0;overflow-wrap:anywhere;color:var(--muted)}
-.scraping-file-control>input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}
-.scraping-file-control:focus-within{outline:2px solid var(--tungsten);outline-offset:2px;border-radius:var(--control-radius)}
-.scraping-source{min-width:0}
-.scraping-source .geist-fieldset-footer{flex-wrap:wrap}
-@media(max-width:600px){.scraping-page{--control-h:44px}.scraping-source button{min-height:44px}.scraping-cookie-method span{height:44px}}
#libraryProcessing{scroll-margin-top:80px}
.reviewbulktoolbar{padding-block:0;margin-bottom:0}
diff --git a/web/dist/peach-react.css b/web/dist/peach-react.css
index 8a50a34de..47d22440b 100644
--- a/web/dist/peach-react.css
+++ b/web/dist/peach-react.css
@@ -1,3 +1,3 @@
/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
-@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-ease:initial;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1}}}@layer theme{:root,:host{--font-sans:var(--font-inter), ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:var(--font-mono-source), ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;--color-red-100: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;--ease-out:cubic-bezier(0, 0, .2, 1);--ease-in-out:cubic-bezier(.4, 0, .2, 1);--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-neutral-925:#121212;--color-accent-50:var(--color-blue-50);--color-accent-100:var(--color-blue-100);--color-accent-200:var(--color-blue-200);--color-accent-300:var(--color-blue-300);--color-accent-400:var(--color-blue-400);--color-accent-500:var(--color-blue-500);--color-accent-600:var(--color-blue-600);--color-accent-700:var(--color-blue-700);--color-accent-800:var(--color-blue-800);--color-accent-900:var(--color-blue-900);--color-accent-950:var(--color-blue-950);--radius-2lg:10px;--shadow-checkbox-selected:inset 0 2px 0 0 #ffffff40, inset 0 0 0 1px var(--color-accent-500);--color-foreground-full:var(--color-foreground-full);--color-foreground-icon-primary:var(--color-foreground-icon-primary);--color-foreground-icon-hover:var(--color-foreground-icon-hover);--color-foreground-icon-secondary:var(--color-foreground-icon-secondary);--color-foreground-icon-tertiary:var(--color-foreground-icon-tertiary);--color-foreground-icon-quaternary:var(--color-foreground-icon-quaternary);--color-foreground-icon-error:var(--color-foreground-icon-error);--color-foreground-icon-disabled:var(--color-foreground-icon-disabled);--color-foreground-disabled:var(--color-foreground-disabled);--color-foreground-disabled-danger:var(--color-foreground-disabled-danger);--color-input-disabled-foreground:var(--color-input-disabled-foreground);--color-icon-button-disabled-foreground:var(--color-icon-button-disabled-foreground);--color-button-primary-disabled-foreground:var(--color-button-primary-disabled-foreground);--color-text-primary:var(--color-text-primary);--color-text-secondary:var(--color-text-secondary);--color-text-tertiary:var(--color-text-tertiary);--color-text-disabled:var(--color-text-disabled);--color-text-disabled-danger:var(--color-text-disabled-danger);--color-text-placeholder:var(--color-text-placeholder);--color-text-error-primary:var(--color-text-error-primary);--color-input-disabled-text:var(--color-input-disabled-text);--color-text-white:var(--color-text-white);--color-background-full:var(--color-background-full);--color-background-primary-default:var(--color-background-primary-default);--color-background-inner-default:var(--color-background-inner-default);--color-background-primary-hover:var(--color-background-primary-hover);--color-background-primary-active:var(--color-background-primary-active);--color-background-primary-disabled:var(--color-background-primary-disabled);--color-input-disabled-background:var(--color-input-disabled-background);--color-background-secondary-default:var(--color-background-secondary-default);--color-background-secondary-hover:var(--color-background-secondary-hover);--color-background-tertiary-default:var(--color-background-tertiary-default);--color-background-tertiary-hover:var(--color-background-tertiary-hover);--color-background-tertiary-error:var(--color-background-tertiary-error);--color-background-recent-hire-role:var(--color-background-recent-hire-role);--color-avatar-neutral-background:var(--color-avatar-neutral-background);--color-background-quaternary-default:var(--color-background-quaternary-default);--color-background-quaternary-hover:var(--color-background-quaternary-hover);--color-background-quaternary-error:var(--color-background-quaternary-error);--color-file-upload-icon-background:var(--color-file-upload-icon-background);--color-file-upload-icon-foreground:var(--color-file-upload-icon-foreground);--color-file-upload-icon-foreground-hover:var(--color-file-upload-icon-foreground-hover);--color-border-button-default:var(--color-border-button-default);--color-border-button-hover:var(--color-border-button-hover);--color-border-button-active:var(--color-border-button-active);--color-border-button-white:var(--color-border-button-white);--color-border-error-default:var(--color-border-error-default);--color-border-checkbox-default:var(--color-border-checkbox-default);--color-border-checkbox-hover:var(--color-border-checkbox-hover);--color-border-checkbox-active:var(--color-border-checkbox-active);--color-border-checkbox-white:var(--color-border-checkbox-white);--color-border-component-detail-container:var(--color-border-component-detail-container);--color-border-ai-profile-card:var(--color-border-ai-profile-card);--color-border-table:var(--color-border-table);--color-border-button-group:var(--color-border-button-group);--color-border-sidebar-profile-hover:var(--color-border-sidebar-profile-hover);--color-separator-border:var(--color-separator-border);--color-separator-border-strong:var(--color-separator-border-strong);--color-border-focus-ring:var(--color-border-focus-ring);--color-state-success-text:var(--color-state-success-text);--color-state-success-base:var(--color-state-success-base);--color-control-indicator-background:var(--color-control-indicator-background);--color-control-indicator-background-subtle:var(--color-control-indicator-background-subtle);--color-switch-off-chip-start:var(--color-switch-off-chip-start);--color-switch-off-chip-end:var(--color-switch-off-chip-end);--color-switch-on-chip-start:var(--color-switch-on-chip-start);--color-switch-on-chip-end:var(--color-switch-on-chip-end);--color-stat-card-icon-background:var(--color-stat-card-icon-background);--color-segmented-control-background:var(--color-segmented-control-background);--color-segmented-control-selected-background:var(--color-segmented-control-selected-background);--color-theme-toggle-sidebar-background:var(--color-theme-toggle-sidebar-background);--color-theme-toggle-sidebar-selected-background:var(--color-theme-toggle-sidebar-selected-background);--color-ai-chat-composer-add-background:var(--color-ai-chat-composer-add-background);--color-ai-chat-composer-add-hover-background:var(--color-ai-chat-composer-add-hover-background);--color-composer-panel-tab-background:var(--color-composer-panel-tab-background);--color-composer-panel-add-background:var(--color-composer-panel-add-background);--color-composer-panel-add-hover-background:var(--color-composer-panel-add-hover-background);--color-composer-panel-tile-border:var(--color-composer-panel-tile-border);--color-composer-panel-rail-background:var(--color-composer-panel-rail-background);--color-questionnaire-key-background:var(--color-questionnaire-key-background);--color-questionnaire-key-hover-background:var(--color-questionnaire-key-hover-background);--color-agent-progress-ring:var(--color-agent-progress-ring);--color-button-ghost-background:var(--color-button-ghost-background);--color-button-ghost-hover:var(--color-button-ghost-hover);--color-button-ghost-active:var(--color-button-ghost-active);--color-button-ghost-disabled:var(--color-button-ghost-disabled);--color-button-ghost-foreground:var(--color-button-ghost-foreground);--color-button-ghost-disabled-foreground:var(--color-button-ghost-disabled-foreground);--color-dropdown-item-hover-background:var(--color-dropdown-item-hover-background);--color-kbd-background:var(--color-kbd-background);--color-kbd-foreground:var(--color-kbd-foreground);--color-docs-file-chip-background:var(--color-docs-file-chip-background);--color-docs-file-chip-border:var(--color-docs-file-chip-border);--color-docs-file-chip-foreground:var(--color-docs-file-chip-foreground);--color-docs-command-accent:var(--color-docs-command-accent);--color-docs-code-background:var(--color-docs-code-background);--color-docs-install-rail:var(--color-docs-install-rail);--color-badge-neutral-background:var(--color-badge-neutral-background);--color-team-menu-count-background:var(--color-team-menu-count-background);--color-team-menu-count-foreground:var(--color-team-menu-count-foreground);--color-badge-new-background:var(--color-badge-new-background);--color-badge-new-text:var(--color-badge-new-text);--color-tab-count-selected-background:var(--color-tab-count-selected-background);--color-pill-tab-blue-selected-background:var(--color-pill-tab-blue-selected-background);--color-pill-tab-blue-hover-background:var(--color-pill-tab-blue-hover-background);--color-notification-information-background:var(--color-notification-information-background);--color-notification-information-foreground:var(--color-notification-information-foreground);--color-notification-success-background:var(--color-notification-success-background);--color-notification-success-foreground:var(--color-notification-success-foreground);--color-notification-error-background:var(--color-notification-error-background);--color-notification-error-foreground:var(--color-notification-error-foreground);--color-notification-center-background:var(--color-notification-center-background);--color-status-lime-background:var(--color-status-lime-background);--color-status-lime-text:var(--color-status-lime-text);--color-status-yellow-background:var(--color-status-yellow-background);--color-status-yellow-text:var(--color-status-yellow-text);--color-status-rose-background:var(--color-status-rose-background);--color-status-rose-text:var(--color-status-rose-text);--color-status-cyan-background:var(--color-status-cyan-background);--color-status-cyan-text:var(--color-status-cyan-text);--color-status-blue-background:var(--color-status-blue-background);--color-status-blue-text:var(--color-status-blue-text);--color-status-purple-background:var(--color-status-purple-background);--color-status-purple-text:var(--color-status-purple-text);--color-status-dot-green-halo:var(--color-status-dot-green-halo);--color-status-dot-yellow-halo:var(--color-status-dot-yellow-halo);--color-status-dot-indigo-halo:var(--color-status-dot-indigo-halo);--color-date-range-background:var(--color-date-range-background);--color-date-range-edge-background:var(--color-date-range-edge-background);--color-calendar-event-blue-background:var(--color-calendar-event-blue-background);--color-calendar-event-blue-title:var(--color-calendar-event-blue-title);--color-calendar-event-blue-time:var(--color-calendar-event-blue-time);--color-calendar-event-pink-background:var(--color-calendar-event-pink-background);--color-calendar-event-pink-title:var(--color-calendar-event-pink-title);--color-calendar-event-pink-time:var(--color-calendar-event-pink-time);--color-calendar-event-purple-background:var(--color-calendar-event-purple-background);--color-calendar-event-purple-title:var(--color-calendar-event-purple-title);--color-calendar-event-purple-time:var(--color-calendar-event-purple-time);--color-calendar-event-lime-background:var(--color-calendar-event-lime-background);--color-calendar-event-lime-title:var(--color-calendar-event-lime-title);--color-calendar-event-lime-time:var(--color-calendar-event-lime-time);--color-calendar-event-emerald-background:var(--color-calendar-event-emerald-background);--color-calendar-event-emerald-title:var(--color-calendar-event-emerald-title);--color-calendar-event-emerald-time:var(--color-calendar-event-emerald-time);--color-text-error-placeholder:var(--color-text-error-placeholder);--color-chart-track:var(--color-chart-track);--color-chart-cursor:var(--color-chart-cursor);--color-chart-neutral:var(--color-chart-neutral);--color-chart-1:var(--color-chart-1);--color-chart-1-active:var(--color-chart-1-active);--color-chart-2:var(--color-chart-2);--color-chart-2-active:var(--color-chart-2-active);--color-chart-3:var(--color-chart-3);--color-chart-3-active:var(--color-chart-3-active);--color-chart-4:var(--color-chart-4);--color-chart-4-active:var(--color-chart-4-active);--color-chart-5:var(--color-chart-5);--color-chart-5-active:var(--color-chart-5-active);--color-chart-6:var(--color-chart-6);--color-chart-6-active:var(--color-chart-6-active);--color-chart-7:var(--color-chart-7);--color-chart-7-active:var(--color-chart-7-active);--color-chart-8:var(--color-chart-8);--color-chart-8-active:var(--color-chart-8-active);--color-chart-9:var(--color-chart-9);--color-chart-9-active:var(--color-chart-9-active);--color-chart-agents-bar:var(--color-chart-agents-bar);--color-chart-agents-bar-active:var(--color-chart-agents-bar-active);--button-transition-ms:.15s;--input-transition-ms:.15s;--text-title-1-medium:1.5rem;--text-title-1-medium--line-height:2.125rem;--text-title-1-medium--letter-spacing:0;--text-title-1-medium--font-weight:500;--text-title-1-semibold:1.5rem;--text-title-1-semibold--line-height:2.125rem;--text-title-1-semibold--letter-spacing:0;--text-title-1-semibold--font-weight:600;--text-title-2-semibold:1.25rem;--text-title-2-semibold--line-height:1.625rem;--text-title-2-semibold--letter-spacing:0;--text-title-2-semibold--font-weight:600;--text-headline-medium:1rem;--text-headline-medium--line-height:1.375rem;--text-headline-medium--letter-spacing:0;--text-headline-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-2-regular:.8125rem;--text-body-2-regular--line-height:1.125rem;--text-body-2-regular--letter-spacing:0;--text-body-2-regular--font-weight:400;--text-body-2-medium:.8125rem;--text-body-2-medium--line-height:1.125rem;--text-body-2-medium--letter-spacing:0;--text-body-2-medium--font-weight:500;--text-caption-1-regular:.75rem;--text-caption-1-regular--line-height:1rem;--text-caption-1-regular--letter-spacing:.15px;--text-caption-1-regular--font-weight:400;--text-caption-1-medium:.75rem;--text-caption-1-medium--line-height:1rem;--text-caption-1-medium--letter-spacing:.15px;--text-caption-1-medium--font-weight:500;--text-caption-1-semibold:.75rem;--text-caption-1-semibold--line-height:1rem;--text-caption-1-semibold--letter-spacing:.15px;--text-caption-1-semibold--font-weight:600;--container-board:var(--board-content,1120px);--container-card-cover:150px;--aspect-card-cover:16 / 10}}.\@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}.inset-0{inset:0}.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}.mx-auto{margin-inline:auto}.mr-auto{margin-right:auto}.card-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,360px),1fr));display:grid}.block{display:block}.contents{display:contents}.flex{display:flex}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.inline-grid{display:inline-grid}.table{display:table}.aspect-card-cover{aspect-ratio:var(--aspect-card-cover)}.size-1{width:var(--spacing);height:var(--spacing)}.size-1\.5{width:calc(var(--spacing) * 1.5);height:calc(var(--spacing) * 1.5)}.size-3{width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.size-3\.5{width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-5{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.size-6{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.size-8{width:calc(var(--spacing) * 8);height:calc(var(--spacing) * 8)}.size-9{width:calc(var(--spacing) * 9);height:calc(var(--spacing) * 9)}.size-\[5px\]{width:5px;height:5px}.size-\[7\.5px\]{width:7.5px;height:7.5px}.size-\[10px\]{width:10px;height:10px}.size-\[18px\]{width:18px;height:18px}.size-full{width:100%;height:100%}.h-1\.5{height:calc(var(--spacing) * 1.5)}.h-4{height:calc(var(--spacing) * 4)}.h-6{height:calc(var(--spacing) * 6)}.h-8{height:calc(var(--spacing) * 8)}.h-9{height:calc(var(--spacing) * 9)}.h-10{height:calc(var(--spacing) * 10)}.h-full{height:100%}.h-max{height:max-content}.max-h-\[240px\]{max-height:240px}.min-h-11{min-height:calc(var(--spacing) * 11)}.min-h-\[52px\]{min-height:52px}.w-7{width:calc(var(--spacing) * 7)}.w-14{width:calc(var(--spacing) * 14)}.w-72{width:calc(var(--spacing) * 72)}.w-\[42px\]{width:42px}.w-\[202px\]{width:202px}.w-\[266px\]{width:266px}.w-card-cover{width:var(--container-card-cover)}.w-fit{width:fit-content}.w-full{width:100%}.max-w-\[calc\(100vw-32px\)\]{max-width:calc(100vw - 32px)}.max-w-board{max-width:var(--container-board)}.max-w-prose{max-width:65ch}.min-w-0{min-width:0}.flex-1{flex:1}.shrink-0{flex-shrink:0}.translate-x-3{--tw-translate-x:calc(var(--spacing) * 3);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-6{--tw-translate-x:calc(var(--spacing) * 6);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-\[18px\]{--tw-translate-x:18px;translate:var(--tw-translate-x) var(--tw-translate-y)}.rotate-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}}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.dot-wave-0{animation:1.2s ease-in-out infinite peach-dot-wave}.dot-wave-1{animation:1.2s ease-in-out .15s infinite peach-dot-wave}.dot-wave-2{animation:1.2s ease-in-out .3s infinite peach-dot-wave}.cursor-default{cursor:default}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.list-disc{list-style-type:disc}.list-none{list-style-type:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.place-items-center{place-items:center}.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-5{gap:calc(var(--spacing) * 5)}.gap-6{gap:calc(var(--spacing) * 6)}.gap-8{gap:calc(var(--spacing) * 8)}.gap-\[5px\]{gap:5px}.self-start{align-self:flex-start}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-2lg{border-radius:var(--radius-2lg)}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-\[0\.5px\]{border-radius:.5px}.rounded-\[0\.75px\]{border-radius:.75px}.rounded-\[1\.5px\]{border-radius:1.5px}.rounded-\[1px\]{border-radius:1px}.rounded-\[3px\]{border-radius:3px}.rounded-\[4\.5px\]{border-radius:4.5px}.rounded-full{border-radius:2147483647px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-sm{border-radius:var(--radius-sm)}.rounded-xs{border-radius:var(--radius-xs)}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-\[0\.5px\]{border-style:var(--tw-border-style);border-width:.5px}.border-\[0\.25px\]{border-style:var(--tw-border-style);border-width:.25px}.border-\[0\.375px\]{border-style:var(--tw-border-style);border-width:.375px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-solid{--tw-border-style:solid;border-style:solid}.border-accent-600{border-color:var(--color-accent-600)}.border-border-button-default,.border-border-button-default\/50{border-color:var(--color-border-button-default)}@supports (color:color-mix(in lab, red, red)){.border-border-button-default\/50{border-color:color-mix(in oklab, var(--color-border-button-default) 50%, transparent)}}.border-border-checkbox-default{border-color:var(--color-border-checkbox-default)}.border-border-checkbox-hover{border-color:var(--color-border-checkbox-hover)}.border-border-error-default{border-color:var(--color-border-error-default)}.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-black{background-color:var(--color-black)}.bg-button-ghost-background{background-color:var(--color-button-ghost-background)}.bg-current{background-color:currentColor}.bg-dropdown-item-hover-background{background-color:var(--color-dropdown-item-hover-background)}.bg-input-disabled-background{background-color:var(--color-input-disabled-background)}.bg-notification-information-background{background-color:var(--color-notification-information-background)}.bg-notification-success-background{background-color:var(--color-notification-success-background)}.bg-status-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))}.fill-background-secondary-default{fill:var(--color-background-secondary-default)}.fill-background-tertiary-default{fill:var(--color-background-tertiary-default)}.fill-border-focus-ring{fill:var(--color-border-focus-ring)}.stroke-current{stroke:currentColor}.stroke-2{stroke-width:2px}.object-contain{object-fit:contain}.p-0{padding:0}.p-2{padding:calc(var(--spacing) * 2)}.p-2\.5{padding:calc(var(--spacing) * 2.5)}.p-3{padding:calc(var(--spacing) * 3)}.px-0\.5{padding-inline:calc(var(--spacing) * .5)}.px-1{padding-inline:var(--spacing)}.px-1\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-5{padding-inline:calc(var(--spacing) * 5)}.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-2\.5{padding-top:calc(var(--spacing) * 2.5)}.pt-3{padding-top:calc(var(--spacing) * 3)}.pt-5{padding-top:calc(var(--spacing) * 5)}.pt-px{padding-top:1px}.pr-1\.5{padding-right:calc(var(--spacing) * 1.5)}.pr-2{padding-right:calc(var(--spacing) * 2)}.pr-2\.5{padding-right:calc(var(--spacing) * 2.5)}.pr-3{padding-right:calc(var(--spacing) * 3)}.pb-4{padding-bottom:calc(var(--spacing) * 4)}.pl-1{padding-left:var(--spacing)}.pl-3{padding-left:calc(var(--spacing) * 3)}.pl-5{padding-left:calc(var(--spacing) * 5)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.font-sans{font-family:var(--font-sans)}.text-body-2-medium{font-size:var(--text-body-2-medium);line-height:var(--tw-leading,var(--text-body-2-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-body-2-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-2-medium--font-weight))}.text-body-2-regular{font-size:var(--text-body-2-regular);line-height:var(--tw-leading,var(--text-body-2-regular--line-height));letter-spacing:var(--tw-tracking,var(--text-body-2-regular--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-2-regular--font-weight))}.text-body-medium{font-size:var(--text-body-medium);line-height:var(--tw-leading,var(--text-body-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-body-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-medium--font-weight))}.text-body-regular{font-size:var(--text-body-regular);line-height:var(--tw-leading,var(--text-body-regular--line-height));letter-spacing:var(--tw-tracking,var(--text-body-regular--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-regular--font-weight))}.text-caption-1-medium{font-size:var(--text-caption-1-medium);line-height:var(--tw-leading,var(--text-caption-1-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-caption-1-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-caption-1-medium--font-weight))}.text-caption-1-regular{font-size:var(--text-caption-1-regular);line-height:var(--tw-leading,var(--text-caption-1-regular--line-height));letter-spacing:var(--tw-tracking,var(--text-caption-1-regular--letter-spacing));font-weight:var(--tw-font-weight,var(--text-caption-1-regular--font-weight))}.text-caption-1-semibold{font-size:var(--text-caption-1-semibold);line-height:var(--tw-leading,var(--text-caption-1-semibold--line-height));letter-spacing:var(--tw-tracking,var(--text-caption-1-semibold--letter-spacing));font-weight:var(--tw-font-weight,var(--text-caption-1-semibold--font-weight))}.text-headline-medium{font-size:var(--text-headline-medium);line-height:var(--tw-leading,var(--text-headline-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-headline-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-headline-medium--font-weight))}.text-title-1-medium{font-size:var(--text-title-1-medium);line-height:var(--tw-leading,var(--text-title-1-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-title-1-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-title-1-medium--font-weight))}.text-title-1-semibold{font-size:var(--text-title-1-semibold);line-height:var(--tw-leading,var(--text-title-1-semibold--line-height));letter-spacing:var(--tw-tracking,var(--text-title-1-semibold--letter-spacing));font-weight:var(--tw-font-weight,var(--text-title-1-semibold--font-weight))}.text-title-2-semibold{font-size:var(--text-title-2-semibold);line-height:var(--tw-leading,var(--text-title-2-semibold--line-height));letter-spacing:var(--tw-tracking,var(--text-title-2-semibold--letter-spacing));font-weight:var(--tw-font-weight,var(--text-title-2-semibold--font-weight))}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.whitespace-nowrap{white-space:nowrap}.text-accent-600{color:var(--color-accent-600)}.text-button-ghost-foreground{color:var(--color-button-ghost-foreground)}.text-foreground-full{color:var(--color-foreground-full)}.text-foreground-icon-error{color:var(--color-foreground-icon-error)}.text-foreground-icon-primary{color:var(--color-foreground-icon-primary)}.text-foreground-icon-quaternary{color:var(--color-foreground-icon-quaternary)}.text-foreground-icon-secondary{color:var(--color-foreground-icon-secondary)}.text-foreground-icon-tertiary{color:var(--color-foreground-icon-tertiary)}.text-input-disabled-foreground{color:var(--color-input-disabled-foreground)}.text-notification-information-foreground{color:var(--color-notification-information-foreground)}.text-notification-success-foreground{color:var(--color-notification-success-foreground)}.text-status-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:0 1px 1px 0 var(--tw-shadow-color,#0000000a), 0 4px 4px 0 var(--tw-shadow-color,#00000005);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow\/xs{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-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-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.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-text-primary:hover{color:var(--color-text-primary)}.hover\:underline:hover{text-decoration-line:underline}}.focus\:placeholder\:text-text-primary:focus::placeholder{color:var(--color-text-primary)}.focus-visible\:bg-dropdown-item-hover-background:focus-visible{background-color:var(--color-dropdown-item-hover-background)}.focus-visible\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus-visible\:ring-border-focus-ring:focus-visible{--tw-ring-color:var(--color-border-focus-ring)}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.active\:border-border-button-active:active{border-color:var(--color-border-button-active)}.active\:bg-background-primary-active:active{background-color:var(--color-background-primary-active)}.active\:bg-button-ghost-active:active{background-color:var(--color-button-ghost-active)}.active\:text-accent-800:active{color:var(--color-accent-800)}.active\:text-text-primary:active{color:var(--color-text-primary)}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:border-border-button-default:disabled{border-color:var(--color-border-button-default)}.disabled\:bg-background-primary-disabled:disabled{background-color:var(--color-background-primary-disabled)}.disabled\:bg-button-ghost-disabled:disabled{background-color:var(--color-button-ghost-disabled)}.disabled\:text-button-ghost-disabled-foreground:disabled{color:var(--color-button-ghost-disabled-foreground)}.disabled\:text-button-primary-disabled-foreground:disabled{color:var(--color-button-primary-disabled-foreground)}.disabled\:text-foreground-disabled-danger:disabled{color:var(--color-foreground-disabled-danger)}.disabled\:text-icon-button-disabled-foreground:disabled{color:var(--color-icon-button-disabled-foreground)}.disabled\:text-input-disabled-text:disabled{color:var(--color-input-disabled-text)}.disabled\:text-text-tertiary:disabled{color:var(--color-text-tertiary)}.disabled\:no-underline:disabled{text-decoration-line:none}.disabled\:opacity-60:disabled{opacity:.6}.disabled\:shadow-none:disabled{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.disabled\:placeholder\:text-input-disabled-text:disabled::placeholder{color:var(--color-input-disabled-text)}.aria-disabled\:cursor-not-allowed[aria-disabled=true]{cursor:not-allowed}.aria-disabled\:border-border-button-default[aria-disabled=true]{border-color:var(--color-border-button-default)}.aria-disabled\:bg-background-primary-disabled[aria-disabled=true]{background-color:var(--color-background-primary-disabled)}.aria-disabled\:bg-button-ghost-disabled[aria-disabled=true]{background-color:var(--color-button-ghost-disabled)}.aria-disabled\:text-button-ghost-disabled-foreground[aria-disabled=true]{color:var(--color-button-ghost-disabled-foreground)}.aria-disabled\:text-button-primary-disabled-foreground[aria-disabled=true]{color:var(--color-button-primary-disabled-foreground)}.aria-disabled\:text-foreground-disabled-danger[aria-disabled=true]{color:var(--color-foreground-disabled-danger)}.aria-disabled\:text-text-tertiary[aria-disabled=true]{color:var(--color-text-tertiary)}.aria-disabled\:no-underline[aria-disabled=true]{text-decoration-line:none}.aria-disabled\:shadow-none[aria-disabled=true]{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.aria-invalid\:placeholder\:text-text-error-placeholder[aria-invalid=true]::placeholder{color:var(--color-text-error-placeholder)}.data-selected\:bg-dropdown-item-hover-background[data-selected]{background-color:var(--color-dropdown-item-hover-background)}.data-selected\:text-text-primary[data-selected]{color:var(--color-text-primary)}.data-\[entering\]\:scale-95[data-entering]{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.data-\[entering\]\:opacity-0[data-entering]{opacity:0}.data-\[entering\]\:blur-\[2px\][data-entering]{--tw-blur:blur(2px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.data-\[exiting\]\:scale-95[data-exiting]{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.data-\[exiting\]\:opacity-0[data-exiting]{opacity:0}.data-\[exiting\]\:blur-\[2px\][data-exiting]{--tw-blur:blur(2px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.data-\[placement\=bottom\]\:origin-top-left[data-placement=bottom]{transform-origin:0 0}.data-\[placement\=left\]\:origin-right[data-placement=left]{transform-origin:100%}.data-\[placement\=right\]\:origin-left[data-placement=right]{transform-origin:0}.data-\[placement\=top\]\:origin-bottom-left[data-placement=top]{transform-origin:0 100%}@container (width>=28rem){.\@md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}@container (width>=32rem){.\@lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@scope(.peach-react){*,:after,:before,::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)}}@keyframes peach-dot-wave{0%,80%,to{opacity:.25;transform:translateY(0)}40%{opacity:1;transform:translateY(-2px)}}:root{--font-inter:"Inter Variable", "Inter"}.peach-react{font-family:var(--font-sans);color:var(--color-text-primary);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-variant-ligatures:contextual;font-kerning:normal;--color-text-primary:var(--color-neutral-950);--color-text-secondary:var(--color-neutral-500);--color-text-tertiary:var(--color-neutral-400);--color-text-disabled:var(--color-neutral-300);--color-text-white:var(--color-white);--color-background-full:var(--color-white);--color-background-primary-default:var(--color-white);--color-background-primary-hover:var(--color-neutral-100);--color-background-secondary-default:var(--color-neutral-100);--color-background-tertiary-default:var(--color-neutral-200);--color-border-button-default:var(--color-neutral-200);--color-border-button-hover:var(--color-neutral-300);--color-border-button-active:var(--color-neutral-400);--color-border-checkbox-default:var(--color-neutral-300);--color-border-checkbox-hover:var(--color-neutral-400);--color-border-focus-ring:var(--color-accent-500);--color-separator-border:var(--color-neutral-200);line-height:1.5}.dark .peach-react{--color-text-primary:var(--color-neutral-50);--color-text-tertiary:var(--color-neutral-600);--color-text-disabled:var(--color-neutral-800);--color-background-full:var(--color-neutral-925);--color-background-primary-default:var(--color-neutral-800);--color-background-primary-hover:#40404099}@supports (color:color-mix(in lab, red, red)){.dark .peach-react{--color-background-primary-hover:color-mix(in srgb, var(--color-neutral-700) 60%, transparent)}}.dark .peach-react{--color-background-secondary-default:var(--color-neutral-900);--color-background-tertiary-default:var(--color-neutral-800);--color-border-button-default:var(--color-neutral-700);--color-border-button-hover:var(--color-neutral-500);--color-border-button-active:var(--color-neutral-600);--color-border-checkbox-default:var(--color-neutral-700);--color-border-checkbox-hover:var(--color-neutral-500);--color-separator-border:var(--color-neutral-800)}@keyframes check-draw{0%{stroke-dashoffset:1px}to{stroke-dashoffset:0}}.animate-check-draw{stroke-dasharray:1;stroke-dashoffset:1px;animation:.2s cubic-bezier(.65,0,.35,1) forwards check-draw}@media (prefers-reduced-motion:reduce){.animate-check-draw{stroke-dashoffset:0;animation:none}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}
+@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-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-ease:initial;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1}}}@layer theme{:root,:host{--font-sans:var(--font-inter), ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:var(--font-mono-source), ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;--color-red-100: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;--ease-out:cubic-bezier(0, 0, .2, 1);--ease-in-out:cubic-bezier(.4, 0, .2, 1);--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-neutral-925:#121212;--color-accent-50:var(--color-blue-50);--color-accent-100:var(--color-blue-100);--color-accent-200:var(--color-blue-200);--color-accent-300:var(--color-blue-300);--color-accent-400:var(--color-blue-400);--color-accent-500:var(--color-blue-500);--color-accent-600:var(--color-blue-600);--color-accent-700:var(--color-blue-700);--color-accent-800:var(--color-blue-800);--color-accent-900:var(--color-blue-900);--color-accent-950:var(--color-blue-950);--radius-2lg:10px;--shadow-checkbox-selected:inset 0 2px 0 0 #ffffff40, inset 0 0 0 1px var(--color-accent-500);--color-foreground-full:var(--color-foreground-full);--color-foreground-icon-primary:var(--color-foreground-icon-primary);--color-foreground-icon-hover:var(--color-foreground-icon-hover);--color-foreground-icon-secondary:var(--color-foreground-icon-secondary);--color-foreground-icon-tertiary:var(--color-foreground-icon-tertiary);--color-foreground-icon-quaternary:var(--color-foreground-icon-quaternary);--color-foreground-icon-error:var(--color-foreground-icon-error);--color-foreground-icon-disabled:var(--color-foreground-icon-disabled);--color-foreground-disabled:var(--color-foreground-disabled);--color-foreground-disabled-danger:var(--color-foreground-disabled-danger);--color-input-disabled-foreground:var(--color-input-disabled-foreground);--color-icon-button-disabled-foreground:var(--color-icon-button-disabled-foreground);--color-button-primary-disabled-foreground:var(--color-button-primary-disabled-foreground);--color-text-primary:var(--color-text-primary);--color-text-secondary:var(--color-text-secondary);--color-text-tertiary:var(--color-text-tertiary);--color-text-disabled:var(--color-text-disabled);--color-text-disabled-danger:var(--color-text-disabled-danger);--color-text-placeholder:var(--color-text-placeholder);--color-text-error-primary:var(--color-text-error-primary);--color-input-disabled-text:var(--color-input-disabled-text);--color-text-white:var(--color-text-white);--color-background-full:var(--color-background-full);--color-background-primary-default:var(--color-background-primary-default);--color-background-inner-default:var(--color-background-inner-default);--color-background-primary-hover:var(--color-background-primary-hover);--color-background-primary-active:var(--color-background-primary-active);--color-background-primary-disabled:var(--color-background-primary-disabled);--color-input-disabled-background:var(--color-input-disabled-background);--color-background-secondary-default:var(--color-background-secondary-default);--color-background-secondary-hover:var(--color-background-secondary-hover);--color-background-tertiary-default:var(--color-background-tertiary-default);--color-background-tertiary-hover:var(--color-background-tertiary-hover);--color-background-tertiary-error:var(--color-background-tertiary-error);--color-background-recent-hire-role:var(--color-background-recent-hire-role);--color-avatar-neutral-background:var(--color-avatar-neutral-background);--color-background-quaternary-default:var(--color-background-quaternary-default);--color-background-quaternary-hover:var(--color-background-quaternary-hover);--color-background-quaternary-error:var(--color-background-quaternary-error);--color-file-upload-icon-background:var(--color-file-upload-icon-background);--color-file-upload-icon-foreground:var(--color-file-upload-icon-foreground);--color-file-upload-icon-foreground-hover:var(--color-file-upload-icon-foreground-hover);--color-border-button-default:var(--color-border-button-default);--color-border-button-hover:var(--color-border-button-hover);--color-border-button-active:var(--color-border-button-active);--color-border-button-white:var(--color-border-button-white);--color-border-error-default:var(--color-border-error-default);--color-border-checkbox-default:var(--color-border-checkbox-default);--color-border-checkbox-hover:var(--color-border-checkbox-hover);--color-border-checkbox-active:var(--color-border-checkbox-active);--color-border-checkbox-white:var(--color-border-checkbox-white);--color-border-component-detail-container:var(--color-border-component-detail-container);--color-border-ai-profile-card:var(--color-border-ai-profile-card);--color-border-table:var(--color-border-table);--color-border-button-group:var(--color-border-button-group);--color-border-sidebar-profile-hover:var(--color-border-sidebar-profile-hover);--color-separator-border:var(--color-separator-border);--color-separator-border-strong:var(--color-separator-border-strong);--color-border-focus-ring:var(--color-border-focus-ring);--color-state-success-text:var(--color-state-success-text);--color-state-success-base:var(--color-state-success-base);--color-control-indicator-background:var(--color-control-indicator-background);--color-control-indicator-background-subtle:var(--color-control-indicator-background-subtle);--color-switch-off-chip-start:var(--color-switch-off-chip-start);--color-switch-off-chip-end:var(--color-switch-off-chip-end);--color-switch-on-chip-start:var(--color-switch-on-chip-start);--color-switch-on-chip-end:var(--color-switch-on-chip-end);--color-stat-card-icon-background:var(--color-stat-card-icon-background);--color-segmented-control-background:var(--color-segmented-control-background);--color-segmented-control-selected-background:var(--color-segmented-control-selected-background);--color-theme-toggle-sidebar-background:var(--color-theme-toggle-sidebar-background);--color-theme-toggle-sidebar-selected-background:var(--color-theme-toggle-sidebar-selected-background);--color-ai-chat-composer-add-background:var(--color-ai-chat-composer-add-background);--color-ai-chat-composer-add-hover-background:var(--color-ai-chat-composer-add-hover-background);--color-composer-panel-tab-background:var(--color-composer-panel-tab-background);--color-composer-panel-add-background:var(--color-composer-panel-add-background);--color-composer-panel-add-hover-background:var(--color-composer-panel-add-hover-background);--color-composer-panel-tile-border:var(--color-composer-panel-tile-border);--color-composer-panel-rail-background:var(--color-composer-panel-rail-background);--color-questionnaire-key-background:var(--color-questionnaire-key-background);--color-questionnaire-key-hover-background:var(--color-questionnaire-key-hover-background);--color-agent-progress-ring:var(--color-agent-progress-ring);--color-button-ghost-background:var(--color-button-ghost-background);--color-button-ghost-hover:var(--color-button-ghost-hover);--color-button-ghost-active:var(--color-button-ghost-active);--color-button-ghost-disabled:var(--color-button-ghost-disabled);--color-button-ghost-foreground:var(--color-button-ghost-foreground);--color-button-ghost-disabled-foreground:var(--color-button-ghost-disabled-foreground);--color-dropdown-item-hover-background:var(--color-dropdown-item-hover-background);--color-kbd-background:var(--color-kbd-background);--color-kbd-foreground:var(--color-kbd-foreground);--color-docs-file-chip-background:var(--color-docs-file-chip-background);--color-docs-file-chip-border:var(--color-docs-file-chip-border);--color-docs-file-chip-foreground:var(--color-docs-file-chip-foreground);--color-docs-command-accent:var(--color-docs-command-accent);--color-docs-code-background:var(--color-docs-code-background);--color-docs-install-rail:var(--color-docs-install-rail);--color-badge-neutral-background:var(--color-badge-neutral-background);--color-team-menu-count-background:var(--color-team-menu-count-background);--color-team-menu-count-foreground:var(--color-team-menu-count-foreground);--color-badge-new-background:var(--color-badge-new-background);--color-badge-new-text:var(--color-badge-new-text);--color-tab-count-selected-background:var(--color-tab-count-selected-background);--color-pill-tab-blue-selected-background:var(--color-pill-tab-blue-selected-background);--color-pill-tab-blue-hover-background:var(--color-pill-tab-blue-hover-background);--color-notification-information-background:var(--color-notification-information-background);--color-notification-information-foreground:var(--color-notification-information-foreground);--color-notification-success-background:var(--color-notification-success-background);--color-notification-success-foreground:var(--color-notification-success-foreground);--color-notification-error-background:var(--color-notification-error-background);--color-notification-error-foreground:var(--color-notification-error-foreground);--color-notification-center-background:var(--color-notification-center-background);--color-status-lime-background:var(--color-status-lime-background);--color-status-lime-text:var(--color-status-lime-text);--color-status-yellow-background:var(--color-status-yellow-background);--color-status-yellow-text:var(--color-status-yellow-text);--color-status-rose-background:var(--color-status-rose-background);--color-status-rose-text:var(--color-status-rose-text);--color-status-cyan-background:var(--color-status-cyan-background);--color-status-cyan-text:var(--color-status-cyan-text);--color-status-blue-background:var(--color-status-blue-background);--color-status-blue-text:var(--color-status-blue-text);--color-status-purple-background:var(--color-status-purple-background);--color-status-purple-text:var(--color-status-purple-text);--color-status-dot-green-halo:var(--color-status-dot-green-halo);--color-status-dot-yellow-halo:var(--color-status-dot-yellow-halo);--color-status-dot-indigo-halo:var(--color-status-dot-indigo-halo);--color-date-range-background:var(--color-date-range-background);--color-date-range-edge-background:var(--color-date-range-edge-background);--color-calendar-event-blue-background:var(--color-calendar-event-blue-background);--color-calendar-event-blue-title:var(--color-calendar-event-blue-title);--color-calendar-event-blue-time:var(--color-calendar-event-blue-time);--color-calendar-event-pink-background:var(--color-calendar-event-pink-background);--color-calendar-event-pink-title:var(--color-calendar-event-pink-title);--color-calendar-event-pink-time:var(--color-calendar-event-pink-time);--color-calendar-event-purple-background:var(--color-calendar-event-purple-background);--color-calendar-event-purple-title:var(--color-calendar-event-purple-title);--color-calendar-event-purple-time:var(--color-calendar-event-purple-time);--color-calendar-event-lime-background:var(--color-calendar-event-lime-background);--color-calendar-event-lime-title:var(--color-calendar-event-lime-title);--color-calendar-event-lime-time:var(--color-calendar-event-lime-time);--color-calendar-event-emerald-background:var(--color-calendar-event-emerald-background);--color-calendar-event-emerald-title:var(--color-calendar-event-emerald-title);--color-calendar-event-emerald-time:var(--color-calendar-event-emerald-time);--color-text-error-placeholder:var(--color-text-error-placeholder);--color-chart-track:var(--color-chart-track);--color-chart-cursor:var(--color-chart-cursor);--color-chart-neutral:var(--color-chart-neutral);--color-chart-1:var(--color-chart-1);--color-chart-1-active:var(--color-chart-1-active);--color-chart-2:var(--color-chart-2);--color-chart-2-active:var(--color-chart-2-active);--color-chart-3:var(--color-chart-3);--color-chart-3-active:var(--color-chart-3-active);--color-chart-4:var(--color-chart-4);--color-chart-4-active:var(--color-chart-4-active);--color-chart-5:var(--color-chart-5);--color-chart-5-active:var(--color-chart-5-active);--color-chart-6:var(--color-chart-6);--color-chart-6-active:var(--color-chart-6-active);--color-chart-7:var(--color-chart-7);--color-chart-7-active:var(--color-chart-7-active);--color-chart-8:var(--color-chart-8);--color-chart-8-active:var(--color-chart-8-active);--color-chart-9:var(--color-chart-9);--color-chart-9-active:var(--color-chart-9-active);--color-chart-agents-bar:var(--color-chart-agents-bar);--color-chart-agents-bar-active:var(--color-chart-agents-bar-active);--button-transition-ms:.15s;--input-transition-ms:.15s;--text-title-1-medium:1.5rem;--text-title-1-medium--line-height:2.125rem;--text-title-1-medium--letter-spacing:0;--text-title-1-medium--font-weight:500;--text-title-1-semibold:1.5rem;--text-title-1-semibold--line-height:2.125rem;--text-title-1-semibold--letter-spacing:0;--text-title-1-semibold--font-weight:600;--text-title-2-semibold:1.25rem;--text-title-2-semibold--line-height:1.625rem;--text-title-2-semibold--letter-spacing:0;--text-title-2-semibold--font-weight:600;--text-headline-medium:1rem;--text-headline-medium--line-height:1.375rem;--text-headline-medium--letter-spacing:0;--text-headline-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-2-regular:.8125rem;--text-body-2-regular--line-height:1.125rem;--text-body-2-regular--letter-spacing:0;--text-body-2-regular--font-weight:400;--text-body-2-medium:.8125rem;--text-body-2-medium--line-height:1.125rem;--text-body-2-medium--letter-spacing:0;--text-body-2-medium--font-weight:500;--text-caption-1-regular:.75rem;--text-caption-1-regular--line-height:1rem;--text-caption-1-regular--letter-spacing:.15px;--text-caption-1-regular--font-weight:400;--text-caption-1-medium:.75rem;--text-caption-1-medium--line-height:1rem;--text-caption-1-medium--letter-spacing:.15px;--text-caption-1-medium--font-weight:500;--text-caption-1-semibold:.75rem;--text-caption-1-semibold--line-height:1rem;--text-caption-1-semibold--letter-spacing:.15px;--text-caption-1-semibold--font-weight:600;--container-board:var(--board-content,1120px);--container-card-cover:150px;--aspect-card-cover:16 / 10}}.\@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}.inset-0{inset:0}.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}.mx-auto{margin-inline:auto}.mr-auto{margin-right:auto}.card-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,360px),1fr));display:grid}.block{display:block}.contents{display:contents}.flex{display:flex}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.inline-grid{display:inline-grid}.table{display:table}.aspect-card-cover{aspect-ratio:var(--aspect-card-cover)}.size-1{width:var(--spacing);height:var(--spacing)}.size-1\.5{width:calc(var(--spacing) * 1.5);height:calc(var(--spacing) * 1.5)}.size-3{width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.size-3\.5{width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-5{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.size-6{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.size-8{width:calc(var(--spacing) * 8);height:calc(var(--spacing) * 8)}.size-9{width:calc(var(--spacing) * 9);height:calc(var(--spacing) * 9)}.size-\[5px\]{width:5px;height:5px}.size-\[7\.5px\]{width:7.5px;height:7.5px}.size-\[10px\]{width:10px;height:10px}.size-\[18px\]{width:18px;height:18px}.size-full{width:100%;height:100%}.h-1\.5{height:calc(var(--spacing) * 1.5)}.h-4{height:calc(var(--spacing) * 4)}.h-6{height:calc(var(--spacing) * 6)}.h-8{height:calc(var(--spacing) * 8)}.h-9{height:calc(var(--spacing) * 9)}.h-10{height:calc(var(--spacing) * 10)}.h-full{height:100%}.h-max{height:max-content}.max-h-\[240px\]{max-height:240px}.min-h-11{min-height:calc(var(--spacing) * 11)}.min-h-\[52px\]{min-height:52px}.w-7{width:calc(var(--spacing) * 7)}.w-14{width:calc(var(--spacing) * 14)}.w-72{width:calc(var(--spacing) * 72)}.w-\[42px\]{width:42px}.w-\[202px\]{width:202px}.w-\[266px\]{width:266px}.w-card-cover{width:var(--container-card-cover)}.w-fit{width:fit-content}.w-full{width:100%}.max-w-\[calc\(100vw-32px\)\]{max-width:calc(100vw - 32px)}.max-w-board{max-width:var(--container-board)}.max-w-prose{max-width:65ch}.min-w-0{min-width:0}.flex-1{flex:1}.shrink-0{flex-shrink:0}.translate-x-3{--tw-translate-x:calc(var(--spacing) * 3);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-6{--tw-translate-x:calc(var(--spacing) * 6);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-\[18px\]{--tw-translate-x:18px;translate:var(--tw-translate-x) var(--tw-translate-y)}.rotate-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}}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.dot-wave-0{animation:1.2s ease-in-out infinite peach-dot-wave}.dot-wave-1{animation:1.2s ease-in-out .15s infinite peach-dot-wave}.dot-wave-2{animation:1.2s ease-in-out .3s infinite peach-dot-wave}.cursor-default{cursor:default}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.list-disc{list-style-type:disc}.list-none{list-style-type:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.place-items-center{place-items:center}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-0\.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-5{gap:calc(var(--spacing) * 5)}.gap-6{gap:calc(var(--spacing) * 6)}.gap-8{gap:calc(var(--spacing) * 8)}.gap-\[5px\]{gap:5px}.self-start{align-self:flex-start}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-2lg{border-radius:var(--radius-2lg)}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-\[0\.5px\]{border-radius:.5px}.rounded-\[0\.75px\]{border-radius:.75px}.rounded-\[1\.5px\]{border-radius:1.5px}.rounded-\[1px\]{border-radius:1px}.rounded-\[3px\]{border-radius:3px}.rounded-\[4\.5px\]{border-radius:4.5px}.rounded-full{border-radius:2147483647px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-sm{border-radius:var(--radius-sm)}.rounded-xs{border-radius:var(--radius-xs)}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-\[0\.5px\]{border-style:var(--tw-border-style);border-width:.5px}.border-\[0\.25px\]{border-style:var(--tw-border-style);border-width:.25px}.border-\[0\.375px\]{border-style:var(--tw-border-style);border-width:.375px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-solid{--tw-border-style:solid;border-style:solid}.border-accent-600{border-color:var(--color-accent-600)}.border-border-button-default,.border-border-button-default\/50{border-color:var(--color-border-button-default)}@supports (color:color-mix(in lab, red, red)){.border-border-button-default\/50{border-color:color-mix(in oklab, var(--color-border-button-default) 50%, transparent)}}.border-border-checkbox-default{border-color:var(--color-border-checkbox-default)}.border-border-checkbox-hover{border-color:var(--color-border-checkbox-hover)}.border-border-error-default{border-color:var(--color-border-error-default)}.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-black{background-color:var(--color-black)}.bg-button-ghost-background{background-color:var(--color-button-ghost-background)}.bg-current{background-color:currentColor}.bg-dropdown-item-hover-background{background-color:var(--color-dropdown-item-hover-background)}.bg-input-disabled-background{background-color:var(--color-input-disabled-background)}.bg-notification-information-background{background-color:var(--color-notification-information-background)}.bg-notification-success-background{background-color:var(--color-notification-success-background)}.bg-status-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))}.fill-background-secondary-default{fill:var(--color-background-secondary-default)}.fill-background-tertiary-default{fill:var(--color-background-tertiary-default)}.fill-border-focus-ring{fill:var(--color-border-focus-ring)}.stroke-current{stroke:currentColor}.stroke-2{stroke-width:2px}.object-contain{object-fit:contain}.p-0{padding:0}.p-2{padding:calc(var(--spacing) * 2)}.p-2\.5{padding:calc(var(--spacing) * 2.5)}.p-3{padding:calc(var(--spacing) * 3)}.px-0\.5{padding-inline:calc(var(--spacing) * .5)}.px-1{padding-inline:var(--spacing)}.px-1\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-5{padding-inline:calc(var(--spacing) * 5)}.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-2\.5{padding-top:calc(var(--spacing) * 2.5)}.pt-3{padding-top:calc(var(--spacing) * 3)}.pt-5{padding-top:calc(var(--spacing) * 5)}.pt-px{padding-top:1px}.pr-1\.5{padding-right:calc(var(--spacing) * 1.5)}.pr-2{padding-right:calc(var(--spacing) * 2)}.pr-2\.5{padding-right:calc(var(--spacing) * 2.5)}.pr-3{padding-right:calc(var(--spacing) * 3)}.pb-4{padding-bottom:calc(var(--spacing) * 4)}.pl-1{padding-left:var(--spacing)}.pl-3{padding-left:calc(var(--spacing) * 3)}.pl-5{padding-left:calc(var(--spacing) * 5)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.font-sans{font-family:var(--font-sans)}.text-body-2-medium{font-size:var(--text-body-2-medium);line-height:var(--tw-leading,var(--text-body-2-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-body-2-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-2-medium--font-weight))}.text-body-2-regular{font-size:var(--text-body-2-regular);line-height:var(--tw-leading,var(--text-body-2-regular--line-height));letter-spacing:var(--tw-tracking,var(--text-body-2-regular--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-2-regular--font-weight))}.text-body-medium{font-size:var(--text-body-medium);line-height:var(--tw-leading,var(--text-body-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-body-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-medium--font-weight))}.text-body-regular{font-size:var(--text-body-regular);line-height:var(--tw-leading,var(--text-body-regular--line-height));letter-spacing:var(--tw-tracking,var(--text-body-regular--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-regular--font-weight))}.text-caption-1-medium{font-size:var(--text-caption-1-medium);line-height:var(--tw-leading,var(--text-caption-1-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-caption-1-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-caption-1-medium--font-weight))}.text-caption-1-regular{font-size:var(--text-caption-1-regular);line-height:var(--tw-leading,var(--text-caption-1-regular--line-height));letter-spacing:var(--tw-tracking,var(--text-caption-1-regular--letter-spacing));font-weight:var(--tw-font-weight,var(--text-caption-1-regular--font-weight))}.text-caption-1-semibold{font-size:var(--text-caption-1-semibold);line-height:var(--tw-leading,var(--text-caption-1-semibold--line-height));letter-spacing:var(--tw-tracking,var(--text-caption-1-semibold--letter-spacing));font-weight:var(--tw-font-weight,var(--text-caption-1-semibold--font-weight))}.text-headline-medium{font-size:var(--text-headline-medium);line-height:var(--tw-leading,var(--text-headline-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-headline-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-headline-medium--font-weight))}.text-title-1-medium{font-size:var(--text-title-1-medium);line-height:var(--tw-leading,var(--text-title-1-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-title-1-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-title-1-medium--font-weight))}.text-title-1-semibold{font-size:var(--text-title-1-semibold);line-height:var(--tw-leading,var(--text-title-1-semibold--line-height));letter-spacing:var(--tw-tracking,var(--text-title-1-semibold--letter-spacing));font-weight:var(--tw-font-weight,var(--text-title-1-semibold--font-weight))}.text-title-2-semibold{font-size:var(--text-title-2-semibold);line-height:var(--tw-leading,var(--text-title-2-semibold--line-height));letter-spacing:var(--tw-tracking,var(--text-title-2-semibold--letter-spacing));font-weight:var(--tw-font-weight,var(--text-title-2-semibold--font-weight))}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.whitespace-nowrap{white-space:nowrap}.text-accent-600{color:var(--color-accent-600)}.text-button-ghost-foreground{color:var(--color-button-ghost-foreground)}.text-foreground-full{color:var(--color-foreground-full)}.text-foreground-icon-error{color:var(--color-foreground-icon-error)}.text-foreground-icon-primary{color:var(--color-foreground-icon-primary)}.text-foreground-icon-quaternary{color:var(--color-foreground-icon-quaternary)}.text-foreground-icon-secondary{color:var(--color-foreground-icon-secondary)}.text-foreground-icon-tertiary{color:var(--color-foreground-icon-tertiary)}.text-input-disabled-foreground{color:var(--color-input-disabled-foreground)}.text-notification-information-foreground{color:var(--color-notification-information-foreground)}.text-notification-success-foreground{color:var(--color-notification-success-foreground)}.text-status-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:0 1px 1px 0 var(--tw-shadow-color,#0000000a), 0 4px 4px 0 var(--tw-shadow-color,#00000005);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow\/xs{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-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-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.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-text-primary:hover{color:var(--color-text-primary)}.hover\:underline:hover{text-decoration-line:underline}}.focus\:placeholder\:text-text-primary:focus::placeholder{color:var(--color-text-primary)}.focus-visible\:bg-dropdown-item-hover-background:focus-visible{background-color:var(--color-dropdown-item-hover-background)}.focus-visible\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus-visible\:ring-border-focus-ring:focus-visible{--tw-ring-color:var(--color-border-focus-ring)}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.active\:border-border-button-active:active{border-color:var(--color-border-button-active)}.active\:bg-background-primary-active:active{background-color:var(--color-background-primary-active)}.active\:bg-button-ghost-active:active{background-color:var(--color-button-ghost-active)}.active\:text-accent-800:active{color:var(--color-accent-800)}.active\:text-text-primary:active{color:var(--color-text-primary)}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:border-border-button-default:disabled{border-color:var(--color-border-button-default)}.disabled\:bg-background-primary-disabled:disabled{background-color:var(--color-background-primary-disabled)}.disabled\:bg-button-ghost-disabled:disabled{background-color:var(--color-button-ghost-disabled)}.disabled\:text-button-ghost-disabled-foreground:disabled{color:var(--color-button-ghost-disabled-foreground)}.disabled\:text-button-primary-disabled-foreground:disabled{color:var(--color-button-primary-disabled-foreground)}.disabled\:text-foreground-disabled-danger:disabled{color:var(--color-foreground-disabled-danger)}.disabled\:text-icon-button-disabled-foreground:disabled{color:var(--color-icon-button-disabled-foreground)}.disabled\:text-input-disabled-text:disabled{color:var(--color-input-disabled-text)}.disabled\:text-text-tertiary:disabled{color:var(--color-text-tertiary)}.disabled\:no-underline:disabled{text-decoration-line:none}.disabled\:opacity-60:disabled{opacity:.6}.disabled\:shadow-none:disabled{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.disabled\:placeholder\:text-input-disabled-text:disabled::placeholder{color:var(--color-input-disabled-text)}.aria-disabled\:cursor-not-allowed[aria-disabled=true]{cursor:not-allowed}.aria-disabled\:border-border-button-default[aria-disabled=true]{border-color:var(--color-border-button-default)}.aria-disabled\:bg-background-primary-disabled[aria-disabled=true]{background-color:var(--color-background-primary-disabled)}.aria-disabled\:bg-button-ghost-disabled[aria-disabled=true]{background-color:var(--color-button-ghost-disabled)}.aria-disabled\:text-button-ghost-disabled-foreground[aria-disabled=true]{color:var(--color-button-ghost-disabled-foreground)}.aria-disabled\:text-button-primary-disabled-foreground[aria-disabled=true]{color:var(--color-button-primary-disabled-foreground)}.aria-disabled\:text-foreground-disabled-danger[aria-disabled=true]{color:var(--color-foreground-disabled-danger)}.aria-disabled\:text-text-tertiary[aria-disabled=true]{color:var(--color-text-tertiary)}.aria-disabled\:no-underline[aria-disabled=true]{text-decoration-line:none}.aria-disabled\:shadow-none[aria-disabled=true]{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.aria-invalid\:placeholder\:text-text-error-placeholder[aria-invalid=true]::placeholder{color:var(--color-text-error-placeholder)}.data-selected\:bg-background-tertiary-default[data-selected]{background-color:var(--color-background-tertiary-default)}.data-selected\:bg-dropdown-item-hover-background[data-selected]{background-color:var(--color-dropdown-item-hover-background)}.data-selected\:text-text-primary[data-selected]{color:var(--color-text-primary)}.data-\[entering\]\:scale-95[data-entering]{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.data-\[entering\]\:opacity-0[data-entering]{opacity:0}.data-\[entering\]\:blur-\[2px\][data-entering]{--tw-blur:blur(2px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.data-\[exiting\]\:scale-95[data-exiting]{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.data-\[exiting\]\:opacity-0[data-exiting]{opacity:0}.data-\[exiting\]\:blur-\[2px\][data-exiting]{--tw-blur:blur(2px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.data-\[placement\=bottom\]\:origin-top-left[data-placement=bottom]{transform-origin:0 0}.data-\[placement\=left\]\:origin-right[data-placement=left]{transform-origin:100%}.data-\[placement\=right\]\:origin-left[data-placement=right]{transform-origin:0}.data-\[placement\=top\]\:origin-bottom-left[data-placement=top]{transform-origin:0 100%}@container (width>=28rem){.\@md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}@container (width>=32rem){.\@lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@scope(.peach-react){*,:after,:before,::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)}}@keyframes peach-dot-wave{0%,80%,to{opacity:.25;transform:translateY(0)}40%{opacity:1;transform:translateY(-2px)}}:root{--font-inter:"Inter Variable", "Inter"}.peach-react{font-family:var(--font-sans);color:var(--color-text-primary);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-variant-ligatures:contextual;font-kerning:normal;--color-text-primary:var(--color-neutral-950);--color-text-secondary:var(--color-neutral-500);--color-text-tertiary:var(--color-neutral-400);--color-text-disabled:var(--color-neutral-300);--color-text-white:var(--color-white);--color-background-full:var(--color-white);--color-background-primary-default:var(--color-white);--color-background-primary-hover:var(--color-neutral-100);--color-background-secondary-default:var(--color-neutral-100);--color-background-tertiary-default:var(--color-neutral-200);--color-border-button-default:var(--color-neutral-200);--color-border-button-hover:var(--color-neutral-300);--color-border-button-active:var(--color-neutral-400);--color-border-checkbox-default:var(--color-neutral-300);--color-border-checkbox-hover:var(--color-neutral-400);--color-border-focus-ring:var(--color-accent-500);--color-separator-border:var(--color-neutral-200);line-height:1.5}.dark .peach-react{--color-text-primary:var(--color-neutral-50);--color-text-tertiary:var(--color-neutral-600);--color-text-disabled:var(--color-neutral-800);--color-background-full:var(--color-neutral-925);--color-background-primary-default:var(--color-neutral-800);--color-background-primary-hover:#40404099}@supports (color:color-mix(in lab, red, red)){.dark .peach-react{--color-background-primary-hover:color-mix(in srgb, var(--color-neutral-700) 60%, transparent)}}.dark .peach-react{--color-background-secondary-default:var(--color-neutral-900);--color-background-tertiary-default:var(--color-neutral-800);--color-border-button-default:var(--color-neutral-700);--color-border-button-hover:var(--color-neutral-500);--color-border-button-active:var(--color-neutral-600);--color-border-checkbox-default:var(--color-neutral-700);--color-border-checkbox-hover:var(--color-neutral-500);--color-separator-border:var(--color-neutral-800)}@keyframes check-draw{0%{stroke-dashoffset:1px}to{stroke-dashoffset:0}}.animate-check-draw{stroke-dasharray:1;stroke-dashoffset:1px;animation:.2s cubic-bezier(.65,0,.35,1) forwards check-draw}@media (prefers-reduced-motion:reduce){.animate-check-draw{stroke-dashoffset:0;animation:none}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}
/*$vite$:1*/
\ No newline at end of file
diff --git a/web/dist/peach-react.js b/web/dist/peach-react.js
index a777593fb..6f7a26226 100644
--- a/web/dist/peach-react.js
+++ b/web/dist/peach-react.js
@@ -1,16 +1,16 @@
-import { LOC as e, fmtDur as t, fmtSize as n, requestErrorMessage as r } from "/js/core.js";
-import { MEDIA_SOURCE_ICONS as i, confirmModal as a, setCollapseOpen as o } from "/js/ui-components.js";
+import { LOC as e, fmtDur as t, fmtSize as n, requestErrorMessage as r, siteMarkUrl as i } from "/js/core.js";
+import { MEDIA_SOURCE_ICONS as a, confirmModal as o, setCollapseOpen as s } from "/js/ui-components.js";
//#region \0rolldown/runtime.js
-var s = Object.create, c = Object.defineProperty, l = Object.getOwnPropertyDescriptor, u = Object.getOwnPropertyNames, d = Object.getPrototypeOf, f = Object.prototype.hasOwnProperty, p = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), m = (e, t, n, r) => {
- if (t && typeof t == "object" || typeof t == "function") for (var i = u(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !f.call(e, s) && s !== n && c(e, s, {
+var c = Object.create, l = Object.defineProperty, u = Object.getOwnPropertyDescriptor, d = Object.getOwnPropertyNames, f = Object.getPrototypeOf, p = Object.prototype.hasOwnProperty, m = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), h = (e, t, n, r) => {
+ if (t && typeof t == "object" || typeof t == "function") for (var i = d(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !p.call(e, s) && s !== n && l(e, s, {
get: ((e) => t[e]).bind(null, s),
- enumerable: !(r = l(t, s)) || r.enumerable
+ enumerable: !(r = u(t, s)) || r.enumerable
});
return e;
-}, h = (e, t, n) => (n = e == null ? {} : s(d(e)), m(t || !e || !e.__esModule || !f.call(e, "default") ? c(n, "default", {
+}, g = (e, t, n) => (n = e == null ? {} : c(f(e)), h(t || !e || !e.__esModule || !p.call(e, "default") ? l(n, "default", {
value: e,
enumerable: !0
-}) : n, e)), g = /* @__PURE__ */ p(((e) => {
+}) : n, e)), _ = /* @__PURE__ */ m(((e) => {
var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), o = Symbol.for("react.consumer"), s = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), u = Symbol.for("react.memo"), d = Symbol.for("react.lazy"), f = Symbol.for("react.activity"), p = Symbol.for("react.view_transition"), m = Symbol.iterator;
function h(e) {
return typeof e != "object" || !e ? null : (e = m && e[m] || e["@@iterator"], typeof e == "function" ? e : null);
@@ -72,11 +72,11 @@ var s = Object.create, c = Object.defineProperty, l = Object.getOwnPropertyDescr
return t[e];
});
}
- var j = /\/+/g;
- function M(e, t) {
+ var ee = /\/+/g;
+ function j(e, t) {
return typeof e == "object" && e && e.key != null ? A("" + e.key) : t.toString(36);
}
- function N(e) {
+ function te(e) {
switch (e.status) {
case "fulfilled": return e.value;
case "rejected": throw e.reason;
@@ -91,7 +91,7 @@ var s = Object.create, c = Object.defineProperty, l = Object.getOwnPropertyDescr
}
throw e;
}
- function ee(e, r, i, a, o) {
+ function M(e, r, i, a, o) {
var s = typeof e;
(s === "undefined" || s === "boolean") && (e = null);
var c = !1;
@@ -107,30 +107,30 @@ var s = Object.create, c = Object.defineProperty, l = Object.getOwnPropertyDescr
case n:
c = !0;
break;
- case d: return c = e._init, ee(c(e._payload), r, i, a, o);
+ case d: return c = e._init, M(c(e._payload), r, i, a, o);
}
}
- if (c) return o = o(e), c = a === "" ? "." + M(e, 0) : a, C(o) ? (i = "", c != null && (i = c.replace(j, "$&/") + "/"), ee(o, r, i, "", function(e) {
+ if (c) return o = o(e), c = a === "" ? "." + j(e, 0) : a, C(o) ? (i = "", c != null && (i = c.replace(ee, "$&/") + "/"), M(o, r, i, "", function(e) {
return e;
- })) : o != null && (k(o) && (o = O(o, i + (o.key == null || e && e.key === o.key ? "" : ("" + o.key).replace(j, "$&/") + "/") + c)), r.push(o)), 1;
+ })) : o != null && (k(o) && (o = O(o, i + (o.key == null || e && e.key === o.key ? "" : ("" + o.key).replace(ee, "$&/") + "/") + c)), r.push(o)), 1;
c = 0;
var l = a === "" ? "." : a + ":";
- if (C(e)) for (var u = 0; u < e.length; u++) a = e[u], s = l + M(a, u), c += ee(a, r, i, s, o);
- else if (u = h(e), typeof u == "function") for (e = u.call(e), u = 0; !(a = e.next()).done;) a = a.value, s = l + M(a, u++), c += ee(a, r, i, s, o);
+ if (C(e)) for (var u = 0; u < e.length; u++) a = e[u], s = l + j(a, u), c += M(a, r, i, s, o);
+ else if (u = h(e), typeof u == "function") for (e = u.call(e), u = 0; !(a = e.next()).done;) a = a.value, s = l + j(a, u++), c += M(a, r, i, s, o);
else if (s === "object") {
- if (typeof e.then == "function") return ee(N(e), r, i, a, o);
+ if (typeof e.then == "function") return M(te(e), r, i, a, o);
throw r = String(e), Error("Objects are not valid as a React child (found: " + (r === "[object Object]" ? "object with keys {" + Object.keys(e).join(", ") + "}" : r) + "). If you meant to render a collection of children, use an array instead.");
}
return c;
}
- function te(e, t, n) {
+ function ne(e, t, n) {
if (e == null) return e;
var r = [], i = 0;
- return ee(e, r, "", "", function(e) {
+ return M(e, r, "", "", function(e) {
return t.call(n, e, i++);
}), r;
}
- function P(e) {
+ function N(e) {
if (e._status === -1) {
var t = e._result, n = t();
n.then(function(t) {
@@ -142,7 +142,7 @@ var s = Object.create, c = Object.defineProperty, l = Object.getOwnPropertyDescr
if (e._status === 1) return e._result.default;
throw e._result;
}
- var ne = typeof reportError == "function" ? reportError : function(e) {
+ var re = typeof reportError == "function" ? reportError : function(e) {
if (typeof window == "object" && typeof window.ErrorEvent == "function") {
var t = new window.ErrorEvent("error", {
bubbles: !0,
@@ -157,40 +157,40 @@ var s = Object.create, c = Object.defineProperty, l = Object.getOwnPropertyDescr
}
console.error(e);
};
- function F(e) {
+ function P(e) {
var t = T.T, n = {};
n.types = t === null ? null : t.types, T.T = n;
try {
var r = e(), i = T.S;
- i !== null && i(n, r), typeof r == "object" && r && typeof r.then == "function" && r.then(w, ne);
+ i !== null && i(n, r), typeof r == "object" && r && typeof r.then == "function" && r.then(w, re);
} catch (e) {
- ne(e);
+ re(e);
} finally {
t !== null && n.types !== null && (t.types = n.types), T.T = t;
}
}
- function re(e) {
+ function ie(e) {
var t = T.T;
if (t !== null) {
var n = t.types;
n === null ? t.types = [e] : n.indexOf(e) === -1 && n.push(e);
- } else F(re.bind(null, e));
+ } else P(ie.bind(null, e));
}
- var ie = {
- map: te,
+ var ae = {
+ map: ne,
forEach: function(e, t, n) {
- te(e, function() {
+ ne(e, function() {
t.apply(this, arguments);
}, n);
},
count: function(e) {
var t = 0;
- return te(e, function() {
+ return ne(e, function() {
t++;
}), t;
},
toArray: function(e) {
- return te(e, function(e) {
+ return ne(e, function(e) {
return e;
}) || [];
},
@@ -199,12 +199,12 @@ var s = Object.create, c = Object.defineProperty, l = Object.getOwnPropertyDescr
return e;
}
};
- e.Activity = f, e.Children = ie, e.Component = y, e.Fragment = r, e.Profiler = a, e.PureComponent = x, e.StrictMode = i, e.Suspense = l, e.ViewTransition = p, e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = T, e.__COMPILER_RUNTIME = {
+ e.Activity = f, e.Children = ae, e.Component = y, e.Fragment = r, e.Profiler = a, e.PureComponent = x, e.StrictMode = i, e.Suspense = l, e.ViewTransition = p, e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = T, e.__COMPILER_RUNTIME = {
__proto__: null,
c: function(e) {
return T.H.useMemoCache(e);
}
- }, e.addTransitionType = re, e.cache = function(e) {
+ }, e.addTransitionType = ie, e.cache = function(e) {
return function() {
return e.apply(null, arguments);
};
@@ -258,7 +258,7 @@ var s = Object.create, c = Object.defineProperty, l = Object.getOwnPropertyDescr
_status: -1,
_result: e
},
- _init: P
+ _init: N
};
}, e.memo = function(e, t) {
return {
@@ -266,7 +266,7 @@ var s = Object.create, c = Object.defineProperty, l = Object.getOwnPropertyDescr
type: e,
compare: t === void 0 ? null : t
};
- }, e.startTransition = F, e.unstable_useCacheRefresh = function() {
+ }, e.startTransition = P, e.unstable_useCacheRefresh = function() {
return T.H.useCacheRefresh();
}, e.use = function(e) {
return T.H.use(e);
@@ -305,9 +305,9 @@ var s = Object.create, c = Object.defineProperty, l = Object.getOwnPropertyDescr
}, e.useTransition = function() {
return T.H.useTransition();
}, e.version = "19.3.0";
-})), _ = /* @__PURE__ */ p(((e, t) => {
- t.exports = g();
-})), v = /* @__PURE__ */ p(((e) => {
+})), v = /* @__PURE__ */ m(((e, t) => {
+ t.exports = _();
+})), y = /* @__PURE__ */ m(((e) => {
var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.fragment");
function r(e, n, r) {
var i = null;
@@ -322,25 +322,25 @@ var s = Object.create, c = Object.defineProperty, l = Object.getOwnPropertyDescr
};
}
e.Fragment = n, e.jsx = r, e.jsxs = r;
-})), y = /* @__PURE__ */ p(((e, t) => {
- t.exports = v();
-})), b = /* @__PURE__ */ h(_(), 1), x = y(), S = b.createContext(void 0), C = (e) => {
- let t = b.useContext(S);
+})), b = /* @__PURE__ */ m(((e, t) => {
+ t.exports = y();
+})), x = /* @__PURE__ */ g(v(), 1), S = b(), C = x.createContext(void 0), w = (e) => {
+ let t = x.useContext(C);
if (e) return e;
if (!t) throw Error("No QueryClient set, use QueryClientProvider to set one");
return t;
-}, w = ({ client: e, children: t }) => (b.useEffect(() => (e.mount(), () => {
+}, T = ({ client: e, children: t }) => (x.useEffect(() => (e.mount(), () => {
e.unmount();
-}), [e]), /* @__PURE__ */ (0, x.jsx)(S.Provider, {
+}), [e]), /* @__PURE__ */ (0, S.jsx)(C.Provider, {
value: e,
children: t
-})), T = {
+})), E = {
setTimeout: (e, t) => setTimeout(e, t),
clearTimeout: (e) => clearTimeout(e),
setInterval: (e, t) => setInterval(e, t),
clearInterval: (e) => clearInterval(e)
-}, E = new class {
- #e = T;
+}, D = new class {
+ #e = E;
setTimeoutProvider(e) {
this.#e = e;
}
@@ -357,31 +357,31 @@ var s = Object.create, c = Object.defineProperty, l = Object.getOwnPropertyDescr
this.#e.clearInterval(e);
}
}();
-function D(e) {
+function O(e) {
setTimeout(e, 0);
}
//#endregion
//#region node_modules/@tanstack/query-core/build/modern/utils.js
-var O = typeof window > "u" || "Deno" in globalThis;
-function k() {}
-function A(e, t) {
+var k = typeof window > "u" || "Deno" in globalThis;
+function A() {}
+function ee(e, t) {
return typeof e == "function" ? e(t) : e;
}
function j(e) {
return typeof e == "number" && e >= 0 && e !== Infinity;
}
-function M(e, t) {
+function te(e, t) {
return Math.max(e + (t || 0) - Date.now(), 0);
}
-function N(e, t) {
+function M(e, t) {
return typeof e == "function" ? e(t) : e;
}
-function ee(e, t) {
+function ne(e, t) {
let { type: n = "all", exact: r, fetchStatus: i, predicate: a, queryKey: o, stale: s } = e;
if (o) {
if (r) {
- if (t.queryHash !== P(o, t.options)) return !1;
- } else if (!F(t.queryKey, o)) return !1;
+ if (t.queryHash !== re(o, t.options)) return !1;
+ } else if (!ie(t.queryKey, o)) return !1;
}
if (n !== "all") {
let e = t.isActive();
@@ -389,100 +389,100 @@ function ee(e, t) {
}
return !(typeof s == "boolean" && t.isStale() !== s || i && i !== t.state.fetchStatus || a && !a(t));
}
-function te(e, t) {
+function N(e, t) {
let { exact: n, status: r, predicate: i, mutationKey: a } = e;
if (a) {
if (!t.options.mutationKey) return !1;
if (n) {
- if (ne(t.options.mutationKey) !== ne(a)) return !1;
- } else if (!F(t.options.mutationKey, a)) return !1;
+ if (P(t.options.mutationKey) !== P(a)) return !1;
+ } else if (!ie(t.options.mutationKey, a)) return !1;
}
return !(r && t.state.status !== r || i && !i(t));
}
-function P(e, t) {
- return (t?.queryKeyHashFn || ne)(e);
+function re(e, t) {
+ return (t?.queryKeyHashFn || P)(e);
}
-function ne(e) {
- return JSON.stringify(e, (e, t) => se(t) ? Object.keys(t).sort().reduce((e, n) => (e[n] = t[n], e), {}) : t);
+function P(e) {
+ return JSON.stringify(e, (e, t) => le(t) ? Object.keys(t).sort().reduce((e, n) => (e[n] = t[n], e), {}) : t);
}
-function F(e, t) {
+function ie(e, t) {
if (e === t) return !0;
if (typeof e != typeof t) return !1;
if (e && t && typeof e == "object" && typeof t == "object") {
if (Array.isArray(e) && Array.isArray(t)) {
- for (let n = 0; n < t.length; n++) if (!F(e[n], t[n])) return !1;
+ for (let n = 0; n < t.length; n++) if (!ie(e[n], t[n])) return !1;
return !0;
}
let n = Object.keys(t);
- for (let r of n) if (!F(e[r], t[r])) return !1;
+ for (let r of n) if (!ie(e[r], t[r])) return !1;
return !0;
}
return !1;
}
-var re = Object.prototype.hasOwnProperty;
-function ie(e, t, n = 0) {
+var ae = Object.prototype.hasOwnProperty;
+function oe(e, t, n = 0) {
if (e === t) return e;
if (n > 500) return t;
- let r = oe(e) && oe(t);
- if (!r && !(se(e) && se(t))) return t;
+ let r = ce(e) && ce(t);
+ if (!r && !(le(e) && le(t))) return t;
let i = (r ? e : Object.keys(e)).length, a = r ? t : Object.keys(t), o = a.length, s = r ? Array(o) : {}, c = 0;
for (let l = 0; l < o; l++) {
let o = r ? l : a[l], u = e[o], d = t[o];
if (u === d) {
- s[o] = u, (r ? l < i : re.call(e, o)) && c++;
+ s[o] = u, (r ? l < i : ae.call(e, o)) && c++;
continue;
}
if (u === null || d === null || typeof u != "object" || typeof d != "object") {
s[o] = d;
continue;
}
- let f = ie(u, d, n + 1);
+ let f = oe(u, d, n + 1);
s[o] = f, f === u && c++;
}
return i === o && c === i ? e : s;
}
-function ae(e, t) {
+function se(e, t) {
if (!t || Object.keys(e).length !== Object.keys(t).length) return !1;
for (let n in e) if (e[n] !== t[n]) return !1;
return !0;
}
-function oe(e) {
+function ce(e) {
return Array.isArray(e) && e.length === Object.keys(e).length;
}
-function se(e) {
- if (!ce(e)) return !1;
+function le(e) {
+ if (!ue(e)) return !1;
let t = e.constructor;
if (t === void 0) return !0;
let n = t.prototype;
- return !(!ce(n) || !n.hasOwnProperty("isPrototypeOf") || Object.getPrototypeOf(e) !== Object.prototype);
+ return !(!ue(n) || !n.hasOwnProperty("isPrototypeOf") || Object.getPrototypeOf(e) !== Object.prototype);
}
-function ce(e) {
+function ue(e) {
return Object.prototype.toString.call(e) === "[object Object]";
}
-function le(e) {
+function de(e) {
return new Promise((t) => {
- E.setTimeout(t, e);
+ D.setTimeout(t, e);
});
}
-function ue(e, t, n) {
- return typeof n.structuralSharing == "function" ? n.structuralSharing(e, t) : n.structuralSharing === !1 ? t : ie(e, t);
+function fe(e, t, n) {
+ return typeof n.structuralSharing == "function" ? n.structuralSharing(e, t) : n.structuralSharing === !1 ? t : oe(e, t);
}
-function de(e, t, n = 0) {
+function pe(e, t, n = 0) {
let r = [...e, t];
return n && r.length > n ? r.slice(1) : r;
}
-function fe(e, t, n = 0) {
+function F(e, t, n = 0) {
let r = [t, ...e];
return n && r.length > n ? r.slice(0, -1) : r;
}
var I = Symbol();
-function L(e, t) {
+function me(e, t) {
return !e.queryFn && t?.initialPromise ? () => t.initialPromise : !e.queryFn || e.queryFn === I ? () => Promise.reject(/* @__PURE__ */ Error(`Missing queryFn: '${e.queryHash}'`)) : e.queryFn;
}
-function pe(e, t) {
+function he(e, t) {
return typeof e == "function" ? e(...t) : !!e;
}
-function me(e, t, n) {
+function ge(e, t, n) {
let r = !1, i;
return Object.defineProperty(e, "signal", {
enumerable: !0,
@@ -491,7 +491,7 @@ function me(e, t, n) {
}
//#endregion
//#region node_modules/@tanstack/query-core/build/modern/environmentManager.js
-var he = () => O, ge = () => he(), _e = class {
+var _e = () => k, ve = () => _e(), ye = class {
constructor() {
this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
}
@@ -505,7 +505,7 @@ var he = () => O, ge = () => he(), _e = class {
}
onSubscribe() {}
onUnsubscribe() {}
-}, ve = new class extends _e {
+}, be = new class extends ye {
#e;
#t;
#n;
@@ -542,13 +542,13 @@ var he = () => O, ge = () => he(), _e = class {
isFocused() {
return typeof this.#e == "boolean" ? this.#e : globalThis.document?.visibilityState !== "hidden";
}
-}(), ye = D;
-function be() {
+}(), xe = O;
+function Se() {
let e = [], t = 0, n = (e) => {
e();
}, r = (e) => {
e();
- }, i = ye, a = (r) => {
+ }, i = xe, a = (r) => {
t ? e.push(r) : i(() => {
n(r);
});
@@ -590,7 +590,7 @@ function be() {
}
};
}
-var xe = be(), Se = new class extends _e {
+var Ce = Se(), we = new class extends ye {
#e = !0;
#t;
#n;
@@ -624,32 +624,32 @@ var xe = be(), Se = new class extends _e {
}();
//#endregion
//#region node_modules/@tanstack/query-core/build/modern/retryer.js
-function Ce(e) {
+function Te(e) {
return Math.min(1e3 * 2 ** e, 3e4);
}
-function we(e) {
- return (e ?? "online") !== "online" || Se.isOnline();
+function Ee(e) {
+ return (e ?? "online") !== "online" || we.isOnline();
}
-var Te = class extends Error {
+var De = class extends Error {
constructor(e) {
super("CancelledError"), this.revert = e?.revert, this.silent = e?.silent;
}
};
-function Ee(e) {
+function Oe(e) {
let t = !1, n = 0, r, i = "pending", a, o, s = new Promise((e, t) => {
a = e, o = t;
});
- s.catch(k);
+ s.catch(A);
let c = () => i !== "pending", l = (t) => {
if (!c()) {
- let n = new Te(t);
+ let n = new De(t);
h(n), e.onCancel?.(n);
}
}, u = () => {
t = !0;
}, d = () => {
t = !1;
- }, f = () => ve.isFocused() && (e.networkMode === "always" || Se.isOnline()) && e.canRun(), p = () => we(e.networkMode) && e.canRun(), m = (e) => {
+ }, f = () => be.isFocused() && (e.networkMode === "always" || we.isOnline()) && e.canRun(), p = () => Ee(e.networkMode) && e.canRun(), m = (e) => {
c() || (r?.(), i = "resolved", a(e));
}, h = (e) => {
c() || (r?.(), i = "rejected", o(e));
@@ -669,12 +669,12 @@ function Ee(e) {
}
Promise.resolve(r).then(m).catch((r) => {
if (c()) return;
- let i = e.retry ?? (ge() ? 0 : 3), a = e.retryDelay ?? Ce, o = typeof a == "function" ? a(n, r) : a, s = i === !0 || typeof i == "number" && n < i || typeof i == "function" && i(n, r);
+ let i = e.retry ?? (ve() ? 0 : 3), a = e.retryDelay ?? Te, o = typeof a == "function" ? a(n, r) : a, s = i === !0 || typeof i == "number" && n < i || typeof i == "function" && i(n, r);
if (t || !s) {
h(r);
return;
}
- n++, e.onFail?.(n, r), le(o).then(() => f() ? void 0 : g()).then(() => {
+ n++, e.onFail?.(n, r), de(o).then(() => f() ? void 0 : g()).then(() => {
t ? h(r) : _();
});
});
@@ -692,34 +692,34 @@ function Ee(e) {
}
//#endregion
//#region node_modules/@tanstack/query-core/build/modern/removable.js
-var De = class {
+var ke = class {
#e;
destroy() {
this.clearGcTimeout();
}
scheduleGc() {
- this.clearGcTimeout(), j(this.gcTime) && (this.#e = E.setTimeout(() => {
+ this.clearGcTimeout(), j(this.gcTime) && (this.#e = D.setTimeout(() => {
this.optionalRemove();
}, this.gcTime));
}
updateGcTime(e) {
- this.gcTime = Math.max(this.gcTime || 0, e ?? (ge() ? Infinity : 3e5));
+ this.gcTime = Math.max(this.gcTime || 0, e ?? (ve() ? Infinity : 3e5));
}
clearGcTimeout() {
- this.#e !== void 0 && (E.clearTimeout(this.#e), this.#e = void 0);
+ this.#e !== void 0 && (D.clearTimeout(this.#e), this.#e = void 0);
}
};
//#endregion
//#region node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.js
-function Oe(e) {
+function Ae(e) {
return { onFetch: (t, n) => {
let r = t.options, i = t.fetchOptions?.meta?.fetchMore?.direction, a = t.state.data?.pages || [], o = t.state.data?.pageParams || [], s = {
pages: [],
pageParams: []
}, c = 0, l = async () => {
let n = !1, l = (e) => {
- me(e, () => t.signal, () => n = !0);
- }, u = L(t.options, t.fetchOptions), d = async (e, r, i) => {
+ ge(e, () => t.signal, () => n = !0);
+ }, u = me(t.options, t.fetchOptions), d = async (e, r, i) => {
if (n) return Promise.reject(t.signal.reason);
if (r == null && e.pages.length) return Promise.resolve(e);
let a = (() => {
@@ -731,14 +731,14 @@ function Oe(e) {
meta: t.options.meta
};
return l(e), e;
- })(), o = await u(a), { maxPages: s } = t.options, c = i ? fe : de;
+ })(), o = await u(a), { maxPages: s } = t.options, c = i ? F : pe;
return {
pages: c(e.pages, o, s),
pageParams: c(e.pageParams, r, s)
};
};
if (i && a.length) {
- let e = i === "backward", t = e ? Ae : ke, n = {
+ let e = i === "backward", t = e ? Me : je, n = {
pages: a,
pageParams: o
};
@@ -746,7 +746,7 @@ function Oe(e) {
} else {
let t = e ?? a.length;
do {
- let e = c === 0 ? o[0] ?? r.initialPageParam : ke(r, s);
+ let e = c === 0 ? o[0] ?? r.initialPageParam : je(r, s);
if (c > 0 && e == null) break;
s = await d(s, e), c++;
} while (c < t);
@@ -761,16 +761,16 @@ function Oe(e) {
}, n) : l;
} };
}
-function ke(e, { pages: t, pageParams: n }) {
+function je(e, { pages: t, pageParams: n }) {
let r = t.length - 1;
return t.length > 0 ? e.getNextPageParam(t[r], t, n[r], n) : void 0;
}
-function Ae(e, { pages: t, pageParams: n }) {
+function Me(e, { pages: t, pageParams: n }) {
return t.length > 0 ? e.getPreviousPageParam?.(t[0], t, n[0], n) : void 0;
}
//#endregion
//#region node_modules/@tanstack/query-core/build/modern/query.js
-var je = class extends De {
+var Ne = class extends ke {
#e;
#t;
#n;
@@ -780,7 +780,7 @@ var je = class extends De {
#o;
#s;
constructor(e) {
- super(), this.#s = !1, this.#o = e.defaultOptions, this.setOptions(e.options), this.observers = [], this.#i = e.client, this.#r = this.#i.getQueryCache(), this.queryKey = e.queryKey, this.queryHash = e.queryHash, this.#t = Pe(this.options), this.state = e.state ?? this.#t, this.scheduleGc();
+ super(), this.#s = !1, this.#o = e.defaultOptions, this.setOptions(e.options), this.observers = [], this.#i = e.client, this.#r = this.#i.getQueryCache(), this.queryKey = e.queryKey, this.queryHash = e.queryHash, this.#t = Ie(this.options), this.state = e.state ?? this.#t, this.scheduleGc();
}
get meta() {
return this.options.meta;
@@ -796,15 +796,15 @@ var je = class extends De {
...this.#o,
...e
}, e?._type && (this.#e = e._type), this.updateGcTime(this.options.gcTime), this.state && this.state.data === void 0) {
- let e = Pe(this.options);
- e.data !== void 0 && (this.setState(Ne(e.data, e.dataUpdatedAt)), this.#t = e);
+ let e = Ie(this.options);
+ e.data !== void 0 && (this.setState(Fe(e.data, e.dataUpdatedAt)), this.#t = e);
}
}
optionalRemove() {
!this.observers.length && this.state.fetchStatus === "idle" && this.#r.remove(this);
}
setData(e, t) {
- let n = ue(this.state.data, e, this.options);
+ let n = fe(this.state.data, e, this.options);
return this.#c({
data: n,
type: "success",
@@ -820,7 +820,7 @@ var je = class extends De {
}
cancel(e) {
let t = this.#a?.promise;
- return this.#a?.cancel(e), t ? t.then(k).catch(k) : Promise.resolve();
+ return this.#a?.cancel(e), t ? t.then(A).catch(A) : Promise.resolve();
}
destroy() {
super.destroy(), this.cancel({ silent: !0 });
@@ -832,7 +832,7 @@ var je = class extends De {
this.destroy(), this.setState(this.resetState);
}
isActive() {
- return this.observers.some((e) => N(e.options.enabled, this) !== !1);
+ return this.observers.some((e) => M(e.options.enabled, this) !== !1);
}
isDisabled() {
return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === I || !this.isFetched();
@@ -841,13 +841,13 @@ var je = class extends De {
return this.state.dataUpdateCount + this.state.errorUpdateCount > 0;
}
isStatic() {
- return this.getObserversCount() > 0 && this.observers.some((e) => N(e.options.staleTime, this) === "static");
+ return this.getObserversCount() > 0 && this.observers.some((e) => M(e.options.staleTime, this) === "static");
}
isStale() {
return this.getObserversCount() > 0 ? this.observers.some((e) => e.getCurrentResult().isStale) : this.state.data === void 0 || this.state.isInvalidated;
}
isStaleByTime(e = 0) {
- return this.state.data === void 0 ? !0 : e === "static" ? !1 : this.state.isInvalidated ? !0 : !M(this.state.dataUpdatedAt, e);
+ return this.state.data === void 0 ? !0 : e === "static" ? !1 : this.state.isInvalidated ? !0 : !te(this.state.dataUpdatedAt, e);
}
onFocus() {
this.observers.find((e) => e.shouldFetchOnWindowFocus())?.refetch({ cancelRefetch: !1 }), this.#a?.continue();
@@ -891,7 +891,7 @@ var je = class extends De {
get: () => (this.#s = !0, n.signal)
});
}, i = () => {
- let e = L(this.options, t), n = (() => {
+ let e = me(this.options, t), n = (() => {
let e = {
client: this.#i,
queryKey: this.queryKey,
@@ -911,15 +911,15 @@ var je = class extends De {
};
return r(e), e;
})();
- (this.#e === "infinite" ? Oe(this.options.pages) : this.options.behavior)?.onFetch(a, this), this.#n = this.state, (this.state.fetchStatus === "idle" || this.state.fetchMeta !== a.fetchOptions?.meta) && this.#c({
+ (this.#e === "infinite" ? Ae(this.options.pages) : this.options.behavior)?.onFetch(a, this), this.#n = this.state, (this.state.fetchStatus === "idle" || this.state.fetchMeta !== a.fetchOptions?.meta) && this.#c({
type: "fetch",
meta: a.fetchOptions?.meta
});
- let o = this.#a = Ee({
+ let o = this.#a = Oe({
initialPromise: t?.initialPromise,
fn: a.fetchFn,
onCancel: (e) => {
- e instanceof Te && e.revert && this.setState({
+ e instanceof De && e.revert && this.setState({
...this.#n,
fetchStatus: "idle"
}), n.abort();
@@ -947,7 +947,7 @@ var je = class extends De {
if (e === void 0) throw Error(`${this.queryHash} data is undefined`);
return this.setData(e), this.#r.config.onSuccess?.(e, this), this.#r.config.onSettled?.(e, this.state.error, this), e;
} catch (e) {
- if (e instanceof Te) {
+ if (e instanceof De) {
if (e.silent) return this.#a.promise;
if (e.revert) {
if (this.state.data === void 0) throw e;
@@ -980,13 +980,13 @@ var je = class extends De {
};
case "fetch": return {
...t,
- ...Me(t.data, this.options),
+ ...Pe(t.data, this.options),
fetchMeta: e.meta ?? null
};
case "success":
let n = {
...t,
- ...Ne(e.data, e.dataUpdatedAt),
+ ...Fe(e.data, e.dataUpdatedAt),
dataUpdateCount: t.dataUpdateCount + 1,
...!e.manual && {
fetchStatus: "idle",
@@ -1018,7 +1018,7 @@ var je = class extends De {
};
}
};
- this.state = t(this.state), xe.batch(() => {
+ this.state = t(this.state), Ce.batch(() => {
this.observers.slice().forEach((e) => {
e.onQueryUpdate();
}), this.#r.notify({
@@ -1029,18 +1029,18 @@ var je = class extends De {
});
}
};
-function Me(e, t) {
+function Pe(e, t) {
return {
fetchFailureCount: 0,
fetchFailureReason: null,
- fetchStatus: we(t.networkMode) ? "fetching" : "paused",
+ fetchStatus: Ee(t.networkMode) ? "fetching" : "paused",
...e === void 0 && {
error: null,
status: "pending"
}
};
}
-function Ne(e, t) {
+function Fe(e, t) {
return {
data: e,
dataUpdatedAt: t ?? Date.now(),
@@ -1049,7 +1049,7 @@ function Ne(e, t) {
status: "success"
};
}
-function Pe(e) {
+function Ie(e) {
let t = typeof e.initialData == "function" ? e.initialData() : e.initialData, n = t !== void 0, r = n ? typeof e.initialDataUpdatedAt == "function" ? e.initialDataUpdatedAt() : e.initialDataUpdatedAt : 0;
return {
data: t,
@@ -1068,7 +1068,7 @@ function Pe(e) {
}
//#endregion
//#region node_modules/@tanstack/query-core/build/modern/queryObserver.js
-var Fe = class extends _e {
+var Le = class extends ye {
#e;
#t = void 0;
#n = void 0;
@@ -1090,36 +1090,36 @@ var Fe = class extends _e {
this.refetch = this.refetch.bind(this);
}
onSubscribe() {
- this.listeners.size === 1 && (this.#t.addObserver(this), Le(this.#t, this.options) ? this.#m() : this.updateResult(), this.#y());
+ this.listeners.size === 1 && (this.#t.addObserver(this), ze(this.#t, this.options) ? this.#m() : this.updateResult(), this.#y());
}
onUnsubscribe() {
this.hasListeners() || this.destroy();
}
shouldFetchOnReconnect() {
- return Re(this.#t, this.options, this.options.refetchOnReconnect);
+ return Be(this.#t, this.options, this.options.refetchOnReconnect);
}
shouldFetchOnWindowFocus() {
- return Re(this.#t, this.options, this.options.refetchOnWindowFocus);
+ return Be(this.#t, this.options, this.options.refetchOnWindowFocus);
}
destroy() {
this.listeners = /* @__PURE__ */ new Set(), this.#b(), this.#x(), this.#t.removeObserver(this);
}
setOptions(e) {
let t = this.options, n = this.#t;
- if (this.options = this.#e.defaultQueryOptions(e), this.options.enabled !== void 0 && typeof this.options.enabled != "boolean" && typeof this.options.enabled != "function" && typeof N(this.options.enabled, this.#t) != "boolean") throw Error("Expected enabled to be a boolean or a callback that returns a boolean");
- this.#S(), this.#t.setOptions(this.options), t._defaulted && !ae(this.options, t) && this.#e.getQueryCache().notify({
+ if (this.options = this.#e.defaultQueryOptions(e), this.options.enabled !== void 0 && typeof this.options.enabled != "boolean" && typeof this.options.enabled != "function" && typeof M(this.options.enabled, this.#t) != "boolean") throw Error("Expected enabled to be a boolean or a callback that returns a boolean");
+ this.#S(), this.#t.setOptions(this.options), t._defaulted && !se(this.options, t) && this.#e.getQueryCache().notify({
type: "observerOptionsUpdated",
query: this.#t,
observer: this
});
let r = this.hasListeners();
- r && ze(this.#t, n, this.options, t) && this.#m(), this.updateResult(), r && (this.#t !== n || N(this.options.enabled, this.#t) !== N(t.enabled, this.#t) || N(this.options.staleTime, this.#t) !== N(t.staleTime, this.#t)) && this.#g();
+ r && Ve(this.#t, n, this.options, t) && this.#m(), this.updateResult(), r && (this.#t !== n || M(this.options.enabled, this.#t) !== M(t.enabled, this.#t) || M(this.options.staleTime, this.#t) !== M(t.staleTime, this.#t)) && this.#g();
let i = this.#_();
- r && (this.#t !== n || N(this.options.enabled, this.#t) !== N(t.enabled, this.#t) || i !== this.#f) && this.#v(i);
+ r && (this.#t !== n || M(this.options.enabled, this.#t) !== M(t.enabled, this.#t) || i !== this.#f) && this.#v(i);
}
getOptimisticResult(e) {
let t = this.#e.getQueryCache().build(this.#e, e), n = this.createResult(t, e);
- return ae(this.getCurrentResult(), n) || (this.#r = n, this.#a = this.options, this.#i = this.#t.state), n;
+ return se(this.getCurrentResult(), n) || (this.#r = n, this.#a = this.options, this.#i = this.#t.state), n;
}
getCurrentResult() {
return this.#r;
@@ -1158,17 +1158,17 @@ var Fe = class extends _e {
#m(e) {
this.#S();
let t = this.#t.fetch(this.options, e);
- return e?.throwOnError || (t = t.catch(k)), t;
+ return e?.throwOnError || (t = t.catch(A)), t;
}
#h(e) {
- return !ge() && N(this.options.enabled, this.#t) !== !1 && j(e);
+ return !ve() && M(this.options.enabled, this.#t) !== !1 && j(e);
}
#g() {
this.#b();
- let e = N(this.options.staleTime, this.#t);
+ let e = M(this.options.staleTime, this.#t);
if (this.#r.isStale || !this.#h(e)) return;
- let t = M(this.#r.dataUpdatedAt, e) + 1;
- this.#u = E.setTimeout(() => {
+ let t = te(this.#r.dataUpdatedAt, e) + 1;
+ this.#u = D.setTimeout(() => {
this.#r.isStale || this.updateResult();
}, t);
}
@@ -1176,26 +1176,26 @@ var Fe = class extends _e {
return (typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(this.#t) : this.options.refetchInterval) ?? !1;
}
#v(e) {
- this.#x(), this.#f = e, !(this.#f === 0 || !this.#h(this.#f)) && (this.#d = E.setInterval(() => {
- (this.options.refetchIntervalInBackground || ve.isFocused()) && this.#m();
+ this.#x(), this.#f = e, !(this.#f === 0 || !this.#h(this.#f)) && (this.#d = D.setInterval(() => {
+ (this.options.refetchIntervalInBackground || be.isFocused()) && this.#m();
}, this.#f));
}
#y() {
this.#g(), this.#v(this.#_());
}
#b() {
- this.#u !== void 0 && (E.clearTimeout(this.#u), this.#u = void 0);
+ this.#u !== void 0 && (D.clearTimeout(this.#u), this.#u = void 0);
}
#x() {
- this.#d !== void 0 && (E.clearInterval(this.#d), this.#d = void 0);
+ this.#d !== void 0 && (D.clearInterval(this.#d), this.#d = void 0);
}
createResult(e, t) {
let n = this.#t, r = this.options, i = this.#r, a = this.#i, o = this.#a, s = e === n ? this.#n : e.state, { state: c } = e, l = { ...c }, u = !1, d;
if (t._optimisticResults) {
- let i = this.hasListeners(), a = !i && Le(e, t), o = i && ze(e, n, t, r);
+ let i = this.hasListeners(), a = !i && ze(e, t), o = i && Ve(e, n, t, r);
(a || o) && (l = {
...l,
- ...Me(c.data, e.options)
+ ...Pe(c.data, e.options)
}), t._optimisticResults === "isRestoring" && (l.fetchStatus = "idle");
}
let { error: f, errorUpdatedAt: p, status: m } = l;
@@ -1203,12 +1203,12 @@ var Fe = class extends _e {
let h = !1;
if (t.placeholderData !== void 0 && d === void 0 && m === "pending") {
let e;
- i?.isPlaceholderData && t.placeholderData === o?.placeholderData ? (e = i.data, h = !0) : e = typeof t.placeholderData == "function" ? t.placeholderData(this.#l?.state.data, this.#l) : t.placeholderData, e !== void 0 && (m = "success", d = ue(i?.data, e, t), u = !0);
+ i?.isPlaceholderData && t.placeholderData === o?.placeholderData ? (e = i.data, h = !0) : e = typeof t.placeholderData == "function" ? t.placeholderData(this.#l?.state.data, this.#l) : t.placeholderData, e !== void 0 && (m = "success", d = fe(i?.data, e, t), u = !0);
}
if (t.select && d !== void 0 && !h) {
if (i && d === a?.data && t.select === this.#s) d = this.#c;
else try {
- this.#s = t.select, d = t.select(d), d = ue(i?.data, d, t), this.#c = d, this.#o = null;
+ this.#s = t.select, d = t.select(d), d = fe(i?.data, d, t), this.#c = d, this.#o = null;
} catch (e) {
this.#o = e;
}
@@ -1238,14 +1238,14 @@ var Fe = class extends _e {
isPaused: l.fetchStatus === "paused",
isPlaceholderData: u,
isRefetchError: v && b,
- isStale: Be(e, t),
+ isStale: He(e, t),
refetch: this.refetch,
- isEnabled: N(t.enabled, e) !== !1
+ isEnabled: M(t.enabled, e) !== !1
};
}
updateResult() {
let e = this.#r, t = this.createResult(this.#t, this.options);
- if (this.#i = this.#t.state, this.#a = this.options, this.#i.data !== void 0 && (this.#l = this.#t), ae(t, e)) return;
+ if (this.#i = this.#t.state, this.#a = this.options, this.#i.data !== void 0 && (this.#l = this.#t), se(t, e)) return;
this.#r = t;
let n = (() => {
if (!e) return !0;
@@ -1257,7 +1257,7 @@ var Fe = class extends _e {
return this.#r[n] !== e[n] && r.has(n);
});
})();
- xe.batch(() => {
+ Ce.batch(() => {
n && this.listeners.forEach((e) => {
e(this.#r);
}), this.#e.getQueryCache().notify({
@@ -1276,34 +1276,34 @@ var Fe = class extends _e {
this.updateResult(), this.hasListeners() && this.#y();
}
};
-function Ie(e, t) {
- return N(t.enabled, e) !== !1 && e.state.data === void 0 && (e.state.status !== "error" || N(t.retryOnMount, e) !== !1);
+function Re(e, t) {
+ return M(t.enabled, e) !== !1 && e.state.data === void 0 && (e.state.status !== "error" || M(t.retryOnMount, e) !== !1);
}
-function Le(e, t) {
- return Ie(e, t) || e.state.data !== void 0 && Re(e, t, t.refetchOnMount);
+function ze(e, t) {
+ return Re(e, t) || e.state.data !== void 0 && Be(e, t, t.refetchOnMount);
}
-function Re(e, t, n) {
- if (N(t.enabled, e) !== !1 && N(t.staleTime, e) !== "static") {
+function Be(e, t, n) {
+ if (M(t.enabled, e) !== !1 && M(t.staleTime, e) !== "static") {
let r = typeof n == "function" ? n(e) : n;
- return r === "always" || r !== !1 && Be(e, t);
+ return r === "always" || r !== !1 && He(e, t);
}
return !1;
}
-function ze(e, t, n, r) {
- return (e !== t || N(r.enabled, e) === !1) && (!n.suspense || e.state.status !== "error") && Be(e, n);
+function Ve(e, t, n, r) {
+ return (e !== t || M(r.enabled, e) === !1) && (!n.suspense || e.state.status !== "error") && He(e, n);
}
-function Be(e, t) {
- return N(t.enabled, e) !== !1 && e.isStaleByTime(N(t.staleTime, e));
+function He(e, t) {
+ return M(t.enabled, e) !== !1 && e.isStaleByTime(M(t.staleTime, e));
}
//#endregion
//#region node_modules/@tanstack/query-core/build/modern/mutation.js
-var Ve = class extends De {
+var Ue = class extends ke {
#e;
#t;
#n;
#r;
constructor(e) {
- super(), this.#e = e.client, this.mutationId = e.mutationId, this.#n = e.mutationCache, this.#t = [], this.state = e.state || He(), this.setOptions(e.options), this.scheduleGc();
+ super(), this.#e = e.client, this.mutationId = e.mutationId, this.#n = e.mutationCache, this.#t = [], this.state = e.state || We(), this.setOptions(e.options), this.scheduleGc();
}
setOptions(e) {
this.options = e, this.updateGcTime(this.options.gcTime);
@@ -1338,7 +1338,7 @@ var Ve = class extends De {
client: this.#e,
meta: this.options.meta,
mutationKey: this.options.mutationKey
- }, r = this.#r = Ee({
+ }, r = this.#r = Oe({
fn: () => this.options.mutationFn ? this.options.mutationFn(e, n) : Promise.reject(/* @__PURE__ */ Error("No mutationFn found")),
onFail: (e, t) => {
this.#i({
@@ -1454,7 +1454,7 @@ var Ve = class extends De {
};
}
};
- this.state = t(this.state), xe.batch(() => {
+ this.state = t(this.state), Ce.batch(() => {
this.#t.forEach((t) => {
t.onMutationUpdate(e);
}), this.#n.notify({
@@ -1465,7 +1465,7 @@ var Ve = class extends De {
});
}
};
-function He() {
+function We() {
return {
context: void 0,
data: void 0,
@@ -1480,7 +1480,7 @@ function He() {
}
//#endregion
//#region node_modules/@tanstack/query-core/build/modern/mutationCache.js
-var Ue = class extends _e {
+var Ge = class extends ye {
#e;
#t;
#n;
@@ -1488,7 +1488,7 @@ var Ue = class extends _e {
super(), this.config = e, this.#e = /* @__PURE__ */ new Set(), this.#t = /* @__PURE__ */ new Map(), this.#n = 0;
}
build(e, t, n) {
- let r = new Ve({
+ let r = new Ue({
client: e,
mutationCache: this,
mutationId: ++this.#n,
@@ -1499,7 +1499,7 @@ var Ue = class extends _e {
}
add(e) {
this.#e.add(e);
- let t = We(e);
+ let t = Ke(e);
if (typeof t == "string") {
let n = this.#t.get(t);
n ? n.push(e) : this.#t.set(t, [e]);
@@ -1511,7 +1511,7 @@ var Ue = class extends _e {
}
remove(e) {
if (this.#e.delete(e)) {
- let t = We(e);
+ let t = Ke(e);
if (typeof t == "string") {
let n = this.#t.get(t);
if (n) {
@@ -1528,7 +1528,7 @@ var Ue = class extends _e {
});
}
canRun(e) {
- let t = We(e);
+ let t = Ke(e);
if (typeof t == "string") {
let n = this.#t.get(t)?.find((e) => e.state.status === "pending");
return !n || n === e;
@@ -1536,11 +1536,11 @@ var Ue = class extends _e {
return !0;
}
runNext(e) {
- let t = We(e);
+ let t = Ke(e);
return typeof t == "string" ? (this.#t.get(t)?.find((t) => t !== e && t.state.isPaused))?.continue() ?? Promise.resolve() : Promise.resolve();
}
clear() {
- xe.batch(() => {
+ Ce.batch(() => {
this.#e.forEach((e) => {
this.notify({
type: "removed",
@@ -1557,13 +1557,13 @@ var Ue = class extends _e {
exact: !0,
...e
};
- return this.getAll().find((e) => te(t, e));
+ return this.getAll().find((e) => N(t, e));
}
findAll(e = {}) {
- return this.getAll().filter((t) => te(e, t));
+ return this.getAll().filter((t) => N(e, t));
}
notify(e) {
- xe.batch(() => {
+ Ce.batch(() => {
this.listeners.forEach((t) => {
t(e);
});
@@ -1571,22 +1571,108 @@ var Ue = class extends _e {
}
resumePausedMutations() {
let e = this.getAll().filter((e) => e.state.isPaused);
- return xe.batch(() => Promise.all(e.map((e) => e.continue().catch(k))));
+ return Ce.batch(() => Promise.all(e.map((e) => e.continue().catch(A))));
}
};
-function We(e) {
+function Ke(e) {
return e.options.scope?.id;
}
//#endregion
-//#region node_modules/@tanstack/query-core/build/modern/queryCache.js
-var Ge = class extends _e {
+//#region node_modules/@tanstack/query-core/build/modern/mutationObserver.js
+var qe = class extends ye {
+ #e;
+ #t = void 0;
+ #n;
+ #r;
+ constructor(e, t) {
+ super(), this.#e = e, this.setOptions(t), this.bindMethods(), this.#i();
+ }
+ bindMethods() {
+ this.mutate = this.mutate.bind(this), this.reset = this.reset.bind(this);
+ }
+ setOptions(e) {
+ let t = this.options;
+ this.options = this.#e.defaultMutationOptions(e), se(this.options, t) || this.#e.getMutationCache().notify({
+ type: "observerOptionsUpdated",
+ mutation: this.#n,
+ observer: this
+ }), t?.mutationKey && this.options.mutationKey && P(t.mutationKey) !== P(this.options.mutationKey) ? this.reset() : this.#n?.state.status === "pending" && this.#n.setOptions(this.options);
+ }
+ onSubscribe() {
+ this.listeners.size === 1 && this.#n && (this.#n.addObserver(this), this.#i());
+ }
+ onUnsubscribe() {
+ this.hasListeners() || this.#n?.removeObserver(this);
+ }
+ onMutationUpdate(e) {
+ this.#i(), this.#a(e);
+ }
+ getCurrentResult() {
+ return this.#t;
+ }
+ reset() {
+ this.#n?.removeObserver(this), this.#n = void 0, this.#i(), this.#a();
+ }
+ mutate(e, t) {
+ return this.#r = t, this.#n?.removeObserver(this), this.#n = this.#e.getMutationCache().build(this.#e, this.options), this.#n.addObserver(this), this.#n.execute(e);
+ }
+ #i() {
+ let e = this.#n?.state ?? We();
+ this.#t = {
+ ...e,
+ isPending: e.status === "pending",
+ isSuccess: e.status === "success",
+ isError: e.status === "error",
+ isIdle: e.status === "idle",
+ mutate: this.mutate,
+ reset: this.reset
+ };
+ }
+ #a(e) {
+ Ce.batch(() => {
+ if (this.#r && this.hasListeners()) {
+ let t = this.#t.variables, n = this.#t.context, r = {
+ client: this.#e,
+ meta: this.options.meta,
+ mutationKey: this.options.mutationKey
+ };
+ if (e?.type === "success") {
+ try {
+ this.#r.onSuccess?.(e.data, t, n, r);
+ } catch (e) {
+ Promise.reject(e);
+ }
+ try {
+ this.#r.onSettled?.(e.data, null, t, n, r);
+ } catch (e) {
+ Promise.reject(e);
+ }
+ } else if (e?.type === "error") {
+ try {
+ this.#r.onError?.(e.error, t, n, r);
+ } catch (e) {
+ Promise.reject(e);
+ }
+ try {
+ this.#r.onSettled?.(void 0, e.error, t, n, r);
+ } catch (e) {
+ Promise.reject(e);
+ }
+ }
+ }
+ this.listeners.forEach((e) => {
+ e(this.#t);
+ });
+ });
+ }
+}, Je = class extends ye {
#e;
constructor(e = {}) {
super(), this.config = e, this.#e = /* @__PURE__ */ new Map();
}
build(e, t, n) {
- let r = t.queryKey, i = t.queryHash ?? P(r, t), a = this.get(i);
- return a || (a = new je({
+ let r = t.queryKey, i = t.queryHash ?? re(r, t), a = this.get(i);
+ return a || (a = new Ne({
client: e,
queryKey: r,
queryHash: i,
@@ -1609,7 +1695,7 @@ var Ge = class extends _e {
}));
}
clear() {
- xe.batch(() => {
+ Ce.batch(() => {
this.getAll().forEach((e) => {
this.remove(e);
});
@@ -1626,34 +1712,34 @@ var Ge = class extends _e {
exact: !0,
...e
};
- return this.getAll().find((e) => ee(t, e));
+ return this.getAll().find((e) => ne(t, e));
}
findAll(e = {}) {
let t = this.getAll();
- return Object.keys(e).length > 0 ? t.filter((t) => ee(e, t)) : t;
+ return Object.keys(e).length > 0 ? t.filter((t) => ne(e, t)) : t;
}
notify(e) {
- xe.batch(() => {
+ Ce.batch(() => {
this.listeners.forEach((t) => {
t(e);
});
});
}
onFocus() {
- xe.batch(() => {
+ Ce.batch(() => {
this.getAll().forEach((e) => {
e.onFocus();
});
});
}
onOnline() {
- xe.batch(() => {
+ Ce.batch(() => {
this.getAll().forEach((e) => {
e.onOnline();
});
});
}
-}, Ke = class {
+}, Ye = class {
#e;
#t;
#n;
@@ -1663,12 +1749,12 @@ var Ge = class extends _e {
#o;
#s;
constructor(e = {}) {
- this.#e = e.queryCache || new Ge(), this.#t = e.mutationCache || new Ue(), this.#n = e.defaultOptions || {}, this.#r = /* @__PURE__ */ new Map(), this.#i = /* @__PURE__ */ new Map(), this.#a = 0;
+ this.#e = e.queryCache || new Je(), this.#t = e.mutationCache || new Ge(), this.#n = e.defaultOptions || {}, this.#r = /* @__PURE__ */ new Map(), this.#i = /* @__PURE__ */ new Map(), this.#a = 0;
}
mount() {
- this.#a++, this.#a === 1 && (this.#o = ve.subscribe(async (e) => {
+ this.#a++, this.#a === 1 && (this.#o = be.subscribe(async (e) => {
e && (await this.resumePausedMutations(), this.#e.onFocus());
- }), this.#s = Se.subscribe(async (e) => {
+ }), this.#s = we.subscribe(async (e) => {
e && (await this.resumePausedMutations(), this.#e.onOnline());
}));
}
@@ -1693,20 +1779,20 @@ var Ge = class extends _e {
}
ensureQueryData(e) {
let t = this.defaultQueryOptions(e), n = this.#e.build(this, t), r = n.state.data;
- return r === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && n.isStaleByTime(N(t.staleTime, n)) && this.prefetchQuery(t), Promise.resolve(r));
+ return r === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && n.isStaleByTime(M(t.staleTime, n)) && this.prefetchQuery(t), Promise.resolve(r));
}
getQueriesData(e) {
return this.#e.findAll(e).map(({ queryKey: e, state: t }) => [e, t.data]);
}
setQueryData(e, t, n) {
- let r = this.defaultQueryOptions({ queryKey: e }), i = this.#e.get(r.queryHash)?.state.data, a = A(t, i);
+ let r = this.defaultQueryOptions({ queryKey: e }), i = this.#e.get(r.queryHash)?.state.data, a = ee(t, i);
if (a !== void 0) return this.#e.build(this, r).setData(a, {
...n,
manual: !0
});
}
setQueriesData(e, t, n) {
- return xe.batch(() => this.#e.findAll(e).map(({ queryKey: e }) => [e, this.setQueryData(e, t, n)]));
+ return Ce.batch(() => this.#e.findAll(e).map(({ queryKey: e }) => [e, this.setQueryData(e, t, n)]));
}
getQueryState(e) {
let t = this.defaultQueryOptions({ queryKey: e });
@@ -1714,7 +1800,7 @@ var Ge = class extends _e {
}
removeQueries(e) {
let t = this.#e;
- xe.batch(() => {
+ Ce.batch(() => {
t.findAll(e).forEach((e) => {
t.remove(e);
});
@@ -1722,7 +1808,7 @@ var Ge = class extends _e {
}
resetQueries(e, t) {
let n = this.#e;
- return xe.batch(() => {
+ return Ce.batch(() => {
let r = n.findAll(e), i = new Set(r);
return r.forEach((e) => {
e.reset();
@@ -1736,11 +1822,11 @@ var Ge = class extends _e {
let n = {
revert: !0,
...t
- }, r = xe.batch(() => this.#e.findAll(e).map((e) => e.cancel(n)));
- return Promise.all(r).then(k).catch(k);
+ }, r = Ce.batch(() => this.#e.findAll(e).map((e) => e.cancel(n)));
+ return Promise.all(r).then(A).catch(A);
}
invalidateQueries(e, t = {}) {
- return xe.batch(() => (this.#e.findAll(e).forEach((e) => {
+ return Ce.batch(() => (this.#e.findAll(e).forEach((e) => {
e.invalidate();
}), e?.refetchType === "none" ? Promise.resolve() : this.refetchQueries({
...e,
@@ -1751,26 +1837,26 @@ var Ge = class extends _e {
let n = {
...t,
cancelRefetch: t.cancelRefetch ?? !0
- }, r = xe.batch(() => this.#e.findAll(e).filter((e) => !e.isDisabled() && !e.isStatic()).map((e) => {
+ }, r = Ce.batch(() => this.#e.findAll(e).filter((e) => !e.isDisabled() && !e.isStatic()).map((e) => {
let t = e.fetch(void 0, n);
- return n.throwOnError || (t = t.catch(k)), e.state.fetchStatus === "paused" ? Promise.resolve() : t;
+ return n.throwOnError || (t = t.catch(A)), e.state.fetchStatus === "paused" ? Promise.resolve() : t;
}));
- return Promise.all(r).then(k);
+ return Promise.all(r).then(A);
}
async query(e) {
let t = this.defaultQueryOptions(e);
t.retry === void 0 && (t.retry = !1);
- let n = this.#e.build(this, t), r = n.isStaleByTime(N(t.staleTime, n)) ? await n.fetch(t) : n.state.data, i = t.select;
+ let n = this.#e.build(this, t), r = n.isStaleByTime(M(t.staleTime, n)) ? await n.fetch(t) : n.state.data, i = t.select;
return i ? i(r) : r;
}
fetchQuery(e) {
let t = this.defaultQueryOptions(e);
t.retry === void 0 && (t.retry = !1);
let n = this.#e.build(this, t);
- return n.isStaleByTime(N(t.staleTime, n)) ? n.fetch(t) : Promise.resolve(n.state.data);
+ return n.isStaleByTime(M(t.staleTime, n)) ? n.fetch(t) : Promise.resolve(n.state.data);
}
prefetchQuery(e) {
- return this.fetchQuery(e).then(k).catch(k);
+ return this.fetchQuery(e).then(A).catch(A);
}
infiniteQuery(e) {
return e._type = "infinite", this.query(e);
@@ -1779,13 +1865,13 @@ var Ge = class extends _e {
return e._type = "infinite", this.fetchQuery(e);
}
prefetchInfiniteQuery(e) {
- return this.fetchInfiniteQuery(e).then(k).catch(k);
+ return this.fetchInfiniteQuery(e).then(A).catch(A);
}
ensureInfiniteQueryData(e) {
return e._type = "infinite", this.ensureQueryData(e);
}
resumePausedMutations() {
- return Se.isOnline() ? this.#t.resumePausedMutations() : Promise.resolve();
+ return we.isOnline() ? this.#t.resumePausedMutations() : Promise.resolve();
}
getQueryCache() {
return this.#e;
@@ -1800,7 +1886,7 @@ var Ge = class extends _e {
this.#n = e;
}
setQueryDefaults(e, t) {
- this.#r.set(ne(e), {
+ this.#r.set(P(e), {
queryKey: e,
defaultOptions: t
});
@@ -1808,11 +1894,11 @@ var Ge = class extends _e {
getQueryDefaults(e) {
let t = [...this.#r.values()], n = {};
return t.forEach((t) => {
- F(e, t.queryKey) && Object.assign(n, t.defaultOptions);
+ ie(e, t.queryKey) && Object.assign(n, t.defaultOptions);
}), n;
}
setMutationDefaults(e, t) {
- this.#i.set(ne(e), {
+ this.#i.set(P(e), {
mutationKey: e,
defaultOptions: t
});
@@ -1820,7 +1906,7 @@ var Ge = class extends _e {
getMutationDefaults(e) {
let t = [...this.#i.values()], n = {};
return t.forEach((t) => {
- F(e, t.mutationKey) && Object.assign(n, t.defaultOptions);
+ ie(e, t.mutationKey) && Object.assign(n, t.defaultOptions);
}), n;
}
defaultQueryOptions(e) {
@@ -1831,7 +1917,7 @@ var Ge = class extends _e {
...e,
_defaulted: !0
};
- return t.queryHash ||= P(t.queryKey, t), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.queryFn === I && (t.enabled = !1), t;
+ return t.queryHash ||= re(t.queryKey, t), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.queryFn === I && (t.enabled = !1), t;
}
defaultMutationOptions(e) {
return e?._defaulted ? e : {
@@ -1844,11 +1930,11 @@ var Ge = class extends _e {
clear() {
this.#e.clear(), this.#t.clear();
}
-}, qe = b.createContext(!1), Je = () => b.useContext(qe);
-qe.Provider;
+}, Xe = x.createContext(!1), Ze = () => x.useContext(Xe);
+Xe.Provider;
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.js
-function Ye() {
+function Qe() {
let e = !1;
return {
clearReset: () => {
@@ -1860,34 +1946,34 @@ function Ye() {
isReset: () => e
};
}
-var Xe = b.createContext(Ye()), Ze = () => b.useContext(Xe), Qe = (e, t, n) => {
- let r = n?.state.error && typeof e.throwOnError == "function" ? pe(e.throwOnError, [n.state.error, n]) : e.throwOnError;
+var $e = x.createContext(Qe()), et = () => x.useContext($e), tt = (e, t, n) => {
+ let r = n?.state.error && typeof e.throwOnError == "function" ? he(e.throwOnError, [n.state.error, n]) : e.throwOnError;
(e.suspense || r) && (t.isReset() || (e.retryOnMount = !1));
-}, $e = (e) => {
- b.useEffect(() => {
+}, nt = (e) => {
+ x.useEffect(() => {
e.clearReset();
}, [e]);
-}, et = ({ result: e, errorResetBoundary: t, throwOnError: n, query: r, suspense: i }) => e.isError && !t.isReset() && !e.isFetching && r && (i && e.data === void 0 || pe(n, [e.error, r])), tt = (e) => {
+}, rt = ({ result: e, errorResetBoundary: t, throwOnError: n, query: r, suspense: i }) => e.isError && !t.isReset() && !e.isFetching && r && (i && e.data === void 0 || he(n, [e.error, r])), it = (e) => {
if (e.suspense) {
let t = 1e3, n = (e) => e === "static" ? e : Math.max(e ?? t, t), r = e.staleTime;
e.staleTime = typeof r == "function" ? (...e) => n(r(...e)) : n(r), typeof e.gcTime == "number" && (e.gcTime = Math.max(e.gcTime, t));
}
-}, nt = (e, t) => e?.suspense && t.isPending, rt = (e, t, n) => t.fetchOptimistic(e).catch(() => {
+}, at = (e, t) => e?.suspense && t.isPending, ot = (e, t, n) => t.fetchOptimistic(e).catch(() => {
n.clearReset();
});
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/useBaseQuery.js
-function it(e, t, n) {
- let r = Je(), i = Ze(), a = C(n), o = a.defaultQueryOptions(e), s = a.getQueryCache().get(o.queryHash), c = e.subscribed !== !1;
- o._optimisticResults = r ? "isRestoring" : c ? "optimistic" : void 0, tt(o), Qe(o, i, s), $e(i);
- let [l] = b.useState(() => new t(a, o)), u = l.getOptimisticResult(o), d = !r && c;
- if (b.useSyncExternalStore(b.useCallback((e) => {
- let t = d ? l.subscribe(xe.batchCalls(e)) : k;
+function st(e, t, n) {
+ let r = Ze(), i = et(), a = w(n), o = a.defaultQueryOptions(e), s = a.getQueryCache().get(o.queryHash), c = e.subscribed !== !1;
+ o._optimisticResults = r ? "isRestoring" : c ? "optimistic" : void 0, it(o), tt(o, i, s), nt(i);
+ let [l] = x.useState(() => new t(a, o)), u = l.getOptimisticResult(o), d = !r && c;
+ if (x.useSyncExternalStore(x.useCallback((e) => {
+ let t = d ? l.subscribe(Ce.batchCalls(e)) : A;
return l.updateResult(), t;
- }, [l, d]), () => l.getCurrentResult(), () => l.getCurrentResult()), b.useEffect(() => {
+ }, [l, d]), () => l.getCurrentResult(), () => l.getCurrentResult()), x.useEffect(() => {
l.setOptions(o);
- }, [o, l]), nt(o, u)) throw rt(o, l, i);
- if (et({
+ }, [o, l]), at(o, u)) throw ot(o, l, i);
+ if (rt({
result: u,
errorResetBoundary: i,
throwOnError: o.throwOnError,
@@ -1898,12 +1984,29 @@ function it(e, t, n) {
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/useQuery.js
-function at(e, t) {
- return it(e, Fe, t);
+function ct(e, t) {
+ return st(e, Le, t);
+}
+//#endregion
+//#region node_modules/@tanstack/react-query/build/modern/useMutation.js
+function lt(e, t) {
+ let n = w(t), [r] = x.useState(() => new qe(n, e));
+ x.useEffect(() => {
+ r.setOptions(e);
+ }, [r, e]);
+ let i = x.useSyncExternalStore(x.useCallback((e) => r.subscribe(Ce.batchCalls(e)), [r]), () => r.getCurrentResult(), () => r.getCurrentResult()), a = x.useCallback((...e) => {
+ r.mutate(e[0], e[1]).catch(A);
+ }, [r]);
+ if (i.error && he(r.options.throwOnError, [i.error])) throw i.error;
+ return {
+ ...i,
+ mutate: a,
+ mutateAsync: i.mutate
+ };
}
//#endregion
//#region node_modules/react-aria/dist/private/collections/BaseCollection.mjs
-var ot = class {
+var ut = 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;
}
@@ -1918,22 +2021,22 @@ var ot = class {
let r = this.clone();
return t.addDescendants(r, e), r;
}
-}, st = class extends ot {
+}, dt = class extends ut {
filter(e, t, n) {
- let [r, i] = dt(e, t, this.firstChildKey, n), a = this.clone();
+ let [r, i] = ht(e, t, this.firstChildKey, n), a = this.clone();
return a.firstChildKey = r, a.lastChildKey = i, a;
}
};
-(class extends ot {
+(class extends ut {
static {
this.type = "header";
}
});
-var ct = class extends ot {
+var ft = class extends ut {
static {
this.type = "loader";
}
-}, lt = class extends st {
+}, pt = class extends dt {
static {
this.type = "item";
}
@@ -1945,7 +2048,7 @@ var ct = class extends ot {
return null;
}
};
-(class extends st {
+(class extends dt {
static {
this.type = "section";
}
@@ -1958,7 +2061,7 @@ var ct = class extends ot {
return null;
}
});
-var ut = class {
+var mt = class {
get size() {
return this.itemCount;
}
@@ -2033,14 +2136,14 @@ var ut = class {
this.firstKey = e, this.lastKey = t, this.frozen = !n;
}
filter(e) {
- let t = new this.constructor(), [n, r] = dt(this, t, this.firstKey, e);
+ let t = new this.constructor(), [n, r] = ht(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 dt(e, t, n, r) {
+function ht(e, t, n, r) {
if (n == null) return [null, null];
let i = null, a = null, o = e.getItem(n);
for (; o != null;) {
@@ -2055,7 +2158,7 @@ function dt(e, t, n, r) {
}
//#endregion
//#region node_modules/react-aria/dist/private/collections/Document.mjs
-var ft = class {
+var gt = class {
constructor(e) {
this._firstChild = null, this._lastChild = null, this._previousSibling = null, this._nextSibling = null, this._parentNode = null, this._minInvalidChildIndex = null, this.ownerDocument = e;
}
@@ -2136,7 +2239,7 @@ var ft = class {
for (; e && e.isHidden;) e = e.previousSibling;
return e;
}
-}, pt = class e extends ft {
+}, _t = class e extends gt {
constructor(e, t) {
super(t), this.nodeType = 8, this.isMutated = !0, this._index = 0, this.isHidden = !1, this.node = null;
}
@@ -2187,7 +2290,7 @@ var ft = class {
setAttribute() {}
setAttributeNS() {}
removeAttribute() {}
-}, mt = class extends ft {
+}, vt = class extends gt {
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;
}
@@ -2195,7 +2298,7 @@ var ft = class {
return !0;
}
createElement(e) {
- return new pt(e, this);
+ return new _t(e, this);
}
getMutableCollection() {
return this.nextCollection ||= this.collection.clone(), this.nextCollection;
@@ -2217,8 +2320,8 @@ var ft = class {
return this.inSubscription ? this.collection : (this.queuedRender = !1, this.updateCollection(), this.collection);
}
updateCollection() {
- for (let e of this.dirtyNodes) e instanceof pt && (!e.isConnected || e.isHidden) ? this.removeNode(e) : e.updateChildIndices();
- for (let e of this.dirtyNodes) e instanceof pt ? (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 _t && (!e.isConnected || e.isHidden) ? this.removeNode(e) : e.updateChildIndices();
+ for (let e of this.dirtyNodes) e instanceof _t ? (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() {
@@ -2237,19 +2340,19 @@ var ft = class {
};
//#endregion
//#region node_modules/react-aria/dist/private/collections/useCachedChildren.mjs
-function ht(e) {
- let { children: t, items: n, idScope: r, addIdAndValue: i, dependencies: a = [] } = e, o = (0, b.useMemo)(() => void 0, [t]), s = (0, b.useMemo)(() => /* @__PURE__ */ new WeakMap(), [...a, o]);
- return (0, b.useMemo)(() => {
+function yt(e) {
+ let { children: t, items: n, idScope: r, addIdAndValue: i, dependencies: a = [] } = e, o = (0, x.useMemo)(() => void 0, [t]), s = (0, x.useMemo)(() => /* @__PURE__ */ new WeakMap(), [...a, o]);
+ return (0, x.useMemo)(() => {
if (n && typeof t == "function") {
let e = [];
for (let a of n) {
- let n = gt(a) ? a : null, o = n ? s.get(n) : null;
+ let n = bt(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, b.cloneElement)(o, i ? {
+ o = (0, x.cloneElement)(o, i ? {
key: l,
id: c,
value: a
@@ -2268,7 +2371,7 @@ function ht(e) {
i
]);
}
-function gt(e) {
+function bt(e) {
switch (typeof e) {
case "object": return e != null;
case "function":
@@ -2278,26 +2381,26 @@ function gt(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/focusWithoutScrolling.mjs
-function _t(e) {
- if (yt()) e.focus({ preventScroll: !0 });
+function xt(e) {
+ if (Ct()) e.focus({ preventScroll: !0 });
else {
- let t = bt(e);
- e.focus(), xt(t);
+ let t = wt(e);
+ e.focus(), Tt(t);
}
}
-var vt = null;
-function yt() {
- if (vt == null) {
- vt = !1;
+var St = null;
+function Ct() {
+ if (St == null) {
+ St = !1;
try {
document.createElement("div").focus({ get preventScroll() {
- return vt = !0, !0;
+ return St = !0, !0;
} });
} catch {}
}
- return vt;
+ return St;
}
-function bt(e) {
+function wt(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,
@@ -2310,25 +2413,25 @@ function bt(e) {
scrollLeft: r.scrollLeft
}), n;
}
-function xt(e) {
+function Tt(e) {
for (let { element: t, scrollTop: n, scrollLeft: r } of e) t.scrollTop = n, t.scrollLeft = r;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/domHelpers.mjs
-var R = (e) => wt(e) ? e.document : Tt(e) ? e : e?.ownerDocument ?? (typeof document < "u" ? document : void 0), St = (e) => R(e)?.defaultView ?? (typeof window < "u" ? window : void 0);
-function Ct(e) {
+var L = (e) => Ot(e) ? e.document : kt(e) ? e : e?.ownerDocument ?? (typeof document < "u" ? document : void 0), Et = (e) => L(e)?.defaultView ?? (typeof window < "u" ? window : void 0);
+function Dt(e) {
return typeof e == "object" && !!e && "nodeType" in e && typeof e.nodeType == "number";
}
-function wt(e) {
+function Ot(e) {
return typeof e == "object" && !!e && "window" in e && e.window === e;
}
-function Tt(e) {
- return Ct(e) && e.nodeType === 9;
+function kt(e) {
+ return Dt(e) && e.nodeType === 9;
}
-function Et(e) {
- return Ct(e) && e.nodeType === 11 && "host" in e;
+function At(e) {
+ return Dt(e) && e.nodeType === 11 && "host" in e;
}
-function Dt(e, t, n, r) {
+function jt(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);
@@ -2336,7 +2439,7 @@ function Dt(e, t, n, r) {
for (let e of i) e.removeEventListener(t, n, r);
};
}
-function Ot(e, t, n, r) {
+function Mt(e, t, n, r) {
if (e == null) return () => {};
let i = [], a = Array.isArray(e) ? e : [e];
for (let e of a) {
@@ -2351,73 +2454,73 @@ function Ot(e, t, n, r) {
}
//#endregion
//#region node_modules/react-stately/dist/private/flags/flags.mjs
-var kt = !1;
-function At() {
- return kt;
+var Nt = !1;
+function Pt() {
+ return Nt;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/shadowdom/DOMFunctions.mjs
-function z(e, t) {
- if (!At()) return t && e ? e.contains(t) : !1;
+function R(e, t) {
+ if (!Pt()) 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 : Et(n) ? n.host : n.parentNode;
+ n = typeof n.assignedElements != "function" && n.assignedSlot?.parentNode ? n.assignedSlot.parentNode : At(n) ? n.host : n.parentNode;
}
return !1;
}
-var jt = (e = document) => {
- if (!At()) return e.activeElement;
+var Ft = (e = document) => {
+ if (!Pt()) return e.activeElement;
let t = e.activeElement;
for (; t && "shadowRoot" in t && t.shadowRoot?.activeElement;) t = t.shadowRoot.activeElement;
return t;
};
-function B(e) {
- if (At() && e.target instanceof Element && e.target.shadowRoot) {
+function z(e) {
+ if (Pt() && 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 Mt(e, t) {
+function It(e, t) {
if (t === null) return [];
- t ??= St(e);
+ t ??= Et(e);
let n = [t];
- if (!At() || !e || e === t) return n;
+ if (!Pt() || !e || e === t) return n;
let r = "getRootNode" in t ? t.getRootNode() : null, i = e.getRootNode() ?? null;
- for (; Et(i) && i !== r;) n.push(i), i = i.host.getRootNode();
+ for (; At(i) && i !== r;) n.push(i), i = i.host.getRootNode();
return n;
}
-function Nt(e) {
+function Lt(e) {
if (!e) return !1;
- let t = e.getRootNode(), n = St(e);
+ let t = e.getRootNode(), n = Et(e);
if (!(t instanceof n.Document || t instanceof n.ShadowRoot)) return !1;
let r = t.activeElement;
return r != null && e.contains(r);
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/isElementVisible.mjs
-var Pt = typeof Element < "u" && "checkVisibility" in Element.prototype;
-function Ft(e) {
- let t = St(e);
+var Rt = typeof Element < "u" && "checkVisibility" in Element.prototype;
+function zt(e) {
+ let t = Et(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 } = St(e), { display: n, visibility: r } = t(e);
+ let { getComputedStyle: t } = Et(e), { display: n, visibility: r } = t(e);
i = n !== "none" && r !== "hidden" && r !== "collapse";
}
return i;
}
-function It(e, t) {
+function Bt(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 Lt(e, t) {
- return Pt ? e.checkVisibility({ visibilityProperty: !0 }) && !e.closest("[data-react-aria-prevent-focus]") : e.nodeName !== "#comment" && Ft(e) && It(e, t) && (!e.parentElement || Lt(e.parentElement, e));
+function Vt(e, t) {
+ return Rt ? e.checkVisibility({ visibilityProperty: !0 }) && !e.closest("[data-react-aria-prevent-focus]") : e.nodeName !== "#comment" && zt(e) && Bt(e, t) && (!e.parentElement || Vt(e.parentElement, e));
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/isFocusable.mjs
-var Rt = [
+var Ht = [
"input:not([disabled]):not([type=hidden])",
"select:not([disabled])",
"textarea:not([disabled])",
@@ -2432,60 +2535,60 @@ var Rt = [
"video[controls]",
"[contenteditable]:not([contenteditable^=\"false\"])",
"permission"
-], zt = Rt.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";
-Rt.push("[tabindex]:not([tabindex=\"-1\"]):not([disabled])");
-var Bt = Rt.join(":not([hidden]):not([tabindex=\"-1\"]),");
-function Vt(e, t) {
- return e.matches(zt) && !Ht(e) && (t?.skipVisibilityCheck || Lt(e));
+], B = Ht.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";
+Ht.push("[tabindex]:not([tabindex=\"-1\"]):not([disabled])");
+var Ut = Ht.join(":not([hidden]):not([tabindex=\"-1\"]),");
+function Wt(e, t) {
+ return e.matches(B) && !Kt(e) && (t?.skipVisibilityCheck || Vt(e));
}
-function V(e) {
- return e.matches(Bt) && Lt(e) && !Ht(e);
+function Gt(e) {
+ return e.matches(Ut) && Vt(e) && !Kt(e);
}
-function Ht(e) {
+function Kt(e) {
let t = e;
for (; t != null;) {
- if (t instanceof St(t).HTMLElement && t.inert) return !0;
+ if (t instanceof Et(t).HTMLElement && t.inert) return !0;
t = t.parentElement;
}
return !1;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useLayoutEffect.mjs
-var H = typeof document < "u" ? b.useLayoutEffect : () => {};
+var V = typeof document < "u" ? x.useLayoutEffect : () => {};
//#endregion
//#region node_modules/react-aria/dist/private/interactions/utils.mjs
-function Ut(e) {
+function qt(e) {
let t = e;
return t.nativeEvent = e, t.isDefaultPrevented = () => t.defaultPrevented, t.isPropagationStopped = () => t.cancelBubble, t.persist = () => {}, t;
}
-function Wt(e, t) {
+function Jt(e, t) {
Object.defineProperty(e, "target", { value: t }), Object.defineProperty(e, "currentTarget", { value: t });
}
-function Gt(e) {
- let t = (0, b.useRef)({
+function Yt(e) {
+ let t = (0, x.useRef)({
isFocused: !1,
observer: null
});
- return H(() => {
+ return V(() => {
let e = t.current;
return () => {
e.observer &&= (e.observer.disconnect(), null);
};
- }, []), (0, b.useCallback)((n) => {
- let r = B(n);
+ }, []), (0, x.useCallback)((n) => {
+ let r = z(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 = Ut(r);
+ let t = qt(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 === jt() ? null : jt();
+ let e = n === Ft() ? null : Ft();
n.dispatchEvent(new FocusEvent("blur", { relatedTarget: e })), n.dispatchEvent(new FocusEvent("focusout", {
bubbles: !0,
relatedTarget: e
@@ -2498,83 +2601,83 @@ function Gt(e) {
}
}, [e]);
}
-var Kt = !1;
-function qt(e) {
- for (; e && !Vt(e, { skipVisibilityCheck: !0 });) e = e.parentElement;
- let t = jt(St(e).document);
+var Xt = !1;
+function Zt(e) {
+ for (; e && !Wt(e, { skipVisibilityCheck: !0 });) e = e.parentElement;
+ let t = Ft(Et(e).document);
if (!t || t === e) return;
- let n = e?.getRootNode(), r = n != null && Et(n) ? n : St(e), i = (t) => t === e || t != null && z(e, t), a = (e) => e === t || t != null && e != null && z(t, e);
- Kt = !0;
+ let n = e?.getRootNode(), r = n != null && At(n) ? n : Et(e), i = (t) => t === e || t != null && R(e, t), a = (e) => e === t || t != null && e != null && R(t, e);
+ Xt = !0;
let o = !1, s = (e) => {
- (a(B(e)) || o) && e.stopImmediatePropagation();
+ (a(z(e)) || o) && e.stopImmediatePropagation();
}, c = (n) => {
- (a(B(n)) || o) && (n.stopImmediatePropagation(), !e && !o && (o = !0, _t(t), d()));
+ (a(z(n)) || o) && (n.stopImmediatePropagation(), !e && !o && (o = !0, xt(t), d()));
}, l = (e) => {
- (i(B(e)) || o) && e.stopImmediatePropagation();
+ (i(z(e)) || o) && e.stopImmediatePropagation();
}, u = (e) => {
- (i(B(e)) || o) && (e.stopImmediatePropagation(), o || (o = !0, _t(t), d()));
+ (i(z(e)) || o) && (e.stopImmediatePropagation(), o || (o = !0, xt(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), Kt = !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), Xt = !1, o = !1;
}, f = requestAnimationFrame(d);
return d;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/platform.mjs
-function Jt(e) {
+function Qt(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 Yt(e) {
+function $t(e) {
return typeof window < "u" && window.navigator != null && e.test(window.navigator.userAgentData?.platform || window.navigator.platform);
}
-function Xt(e) {
+function en(e) {
let t = null;
return () => (t ??= e(), t);
}
-var Zt = Xt(function() {
- return Yt(/^Mac/i);
-}), Qt = Xt(function() {
- return Yt(/^iPhone/i);
-}), $t = Xt(function() {
- return Yt(/^iPad/i) || Zt() && navigator.maxTouchPoints > 1;
-}), en = Xt(function() {
- return Qt() || $t();
-}), tn = Xt(function() {
- return Zt() || en();
-}), nn = Xt(function() {
- return Jt(/AppleWebKit/i) && (en() || !rn());
-}), rn = Xt(function() {
- return Jt(/Chrome|CriOS|CrMo/i);
-}), an = Xt(function() {
- return Jt(/Android/i);
-}), on = Xt(function() {
- return Jt(/(Firefox|FxiOS)/i);
+var tn = en(function() {
+ return $t(/^Mac/i);
+}), nn = en(function() {
+ return $t(/^iPhone/i);
+}), rn = en(function() {
+ return $t(/^iPad/i) || tn() && navigator.maxTouchPoints > 1;
+}), an = en(function() {
+ return nn() || rn();
+}), on = en(function() {
+ return tn() || an();
+}), sn = en(function() {
+ return Qt(/AppleWebKit/i) && (an() || !cn());
+}), cn = en(function() {
+ return Qt(/Chrome|CriOS|CrMo/i);
+}), ln = en(function() {
+ return Qt(/Android/i);
+}), un = en(function() {
+ return Qt(/(Firefox|FxiOS)/i);
});
//#endregion
//#region node_modules/react-aria/dist/private/utils/isVirtualEvent.mjs
-function sn(e) {
- return e.pointerType === "" && e.isTrusted ? !0 : an() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
+function dn(e) {
+ return e.pointerType === "" && e.isTrusted ? !0 : ln() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
}
-function cn(e) {
- return !an() && e.width === 0 && e.height === 0 || an() && e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "mouse";
+function fn(e) {
+ return !ln() && e.width === 0 && e.height === 0 || ln() && 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 ln = /*#__PURE__*/ (0, b.createContext)({
+var pn = /*#__PURE__*/ (0, x.createContext)({
isNative: !0,
- open: pn,
+ open: _n,
useHref: (e) => e
});
-function un() {
- return (0, b.useContext)(ln);
+function mn() {
+ return (0, x.useContext)(pn);
}
-function dn(e, t, n = !0) {
+function hn(e, t, n = !0) {
let { metaKey: r, ctrlKey: i, altKey: a, shiftKey: o } = t;
- !nn() && on() && window.event?.type?.startsWith("key") && e.target === "_blank" && (Zt() ? r = !0 : i = !0);
- let s = nn() && Zt() && !$t() ? new KeyboardEvent("keydown", {
+ !sn() && un() && window.event?.type?.startsWith("key") && e.target === "_blank" && (tn() ? r = !0 : i = !0);
+ let s = sn() && tn() && !rn() ? new KeyboardEvent("keydown", {
keyIdentifier: "Enter",
metaKey: r,
ctrlKey: i,
@@ -2589,21 +2692,21 @@ function dn(e, t, n = !0) {
bubbles: !0,
cancelable: !0
});
- dn.isOpening = n, _t(e), e.dispatchEvent(s), dn.isOpening = !1;
+ hn.isOpening = n, xt(e), e.dispatchEvent(s), hn.isOpening = !1;
}
-dn.isOpening = !1;
-function fn(e, t) {
+hn.isOpening = !1;
+function gn(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 pn(e, t) {
- fn(e, (e) => dn(e, t));
+function _n(e, t) {
+ gn(e, (e) => hn(e, t));
}
-function mn(e) {
- let t = un().useHref(e?.href ?? ""), n = {};
+function vn(e) {
+ let t = mn().useHref(e?.href ?? ""), n = {};
if (e) for (let r of [
"href",
"target",
@@ -2616,121 +2719,121 @@ function mn(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/ssr/SSRProvider.mjs
-var hn = {
+var yn = {
prefix: String(Math.round(Math.random() * 1e10)),
current: 0
-}, gn = /*#__PURE__*/ b.createContext(hn), _n = /*#__PURE__*/ b.createContext(!1);
+}, bn = /*#__PURE__*/ x.createContext(yn), xn = /*#__PURE__*/ x.createContext(!1);
typeof window < "u" && window.document && window.document.createElement;
-var vn = /* @__PURE__ */ new WeakMap();
-function yn(e = !1) {
- let t = (0, b.useContext)(gn), n = (0, b.useRef)(null);
+var Sn = /* @__PURE__ */ new WeakMap();
+function Cn(e = !1) {
+ let t = (0, x.useContext)(bn), n = (0, x.useRef)(null);
if (n.current === null && !e) {
- let e = b.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?.ReactCurrentOwner?.current;
+ let e = x.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?.ReactCurrentOwner?.current;
if (e) {
- let n = vn.get(e);
- n == null ? vn.set(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, vn.delete(e));
+ }) : e.memoizedState !== n.state && (t.current = n.id, Sn.delete(e));
}
n.current = ++t.current;
}
return n.current;
}
-function bn(e) {
- let t = (0, b.useContext)(gn), n = yn(!!e), r = `react-aria${t.prefix}`;
+function wn(e) {
+ let t = (0, x.useContext)(bn), n = Cn(!!e), r = `react-aria${t.prefix}`;
return e || `${r}-${n}`;
}
-function xn(e) {
- let t = b.useId(), [n] = (0, b.useState)(En()), r = n ? "react-aria" : `react-aria${hn.prefix}`;
+function Tn(e) {
+ let t = x.useId(), [n] = (0, x.useState)(An()), r = n ? "react-aria" : `react-aria${yn.prefix}`;
return e || `${r}-${t}`;
}
-var Sn = typeof b.useId == "function" ? xn : bn;
-function Cn() {
+var En = typeof x.useId == "function" ? Tn : wn;
+function Dn() {
return !1;
}
-function wn() {
+function On() {
return !0;
}
-function Tn(e) {
+function kn(e) {
return () => {};
}
-function En() {
- return typeof b.useSyncExternalStore == "function" ? b.useSyncExternalStore(Tn, Cn, wn) : (0, b.useContext)(_n);
+function An() {
+ return typeof x.useSyncExternalStore == "function" ? x.useSyncExternalStore(kn, Dn, On) : (0, x.useContext)(xn);
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useFocusVisible.mjs
-var Dn = null, On = /* @__PURE__ */ new Set(), kn = /* @__PURE__ */ new Map(), An = !1, jn = !1, Mn = {
+var jn = null, Mn = /* @__PURE__ */ new Set(), Nn = /* @__PURE__ */ new Map(), Pn = !1, Fn = !1, In = {
Tab: !0,
Escape: !0
};
-function Nn(e, t) {
- for (let n of On) n(e, t);
+function Ln(e, t) {
+ for (let n of Mn) n(e, t);
}
-function Pn(e) {
- return !(e.metaKey || !Zt() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
+function Rn(e) {
+ return !(e.metaKey || !tn() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
}
-function Fn(e) {
- An = !0, !dn.isOpening && Pn(e) && (Dn = "keyboard", Nn("keyboard", e));
+function zn(e) {
+ Pn = !0, !hn.isOpening && Rn(e) && (jn = "keyboard", Ln("keyboard", e));
}
-function In(e) {
- Dn = "pointer", "pointerType" in e && e.pointerType, (e.type === "mousedown" || e.type === "pointerdown") && (An = !0, Nn("pointer", e));
+function Bn(e) {
+ jn = "pointer", "pointerType" in e && e.pointerType, (e.type === "mousedown" || e.type === "pointerdown") && (Pn = !0, Ln("pointer", e));
}
-function Ln(e) {
- !dn.isOpening && sn(e) && (An = !0, Dn = "virtual");
+function Vn(e) {
+ !hn.isOpening && dn(e) && (Pn = !0, jn = "virtual");
}
-function Rn(e) {
- if (Kt) return;
- let t = B(e), n = St(t), r = R(t);
+function Hn(e) {
+ if (Xt) return;
+ let t = z(e), n = Et(t), r = L(t);
if (t === n) {
- jn = !0;
+ Fn = !0;
return;
}
- t === r || !e.isTrusted || (!An && !jn && (Dn = "virtual", Nn("virtual", e)), An = !1, jn = !1);
+ t === r || !e.isTrusted || (!Pn && !Fn && (jn = "virtual", Ln("virtual", e)), Pn = !1, Fn = !1);
}
-function zn() {
- Kt || (An = !1, jn = !0);
+function Un() {
+ Xt || (Pn = !1, Fn = !0);
}
-function Bn(e) {
+function Wn(e) {
if (typeof window > "u" || typeof document > "u") return;
- let t = St(e), n = R(e);
- if (kn.get(t)) return;
+ let t = Et(e), n = L(e);
+ if (Nn.get(t)) return;
let r = t.HTMLElement.prototype.focus;
Reflect.defineProperty(t.HTMLElement.prototype, "focus", {
configurable: !0,
writable: !0,
value: function() {
- An = !0, r.apply(this, arguments);
+ Pn = !0, r.apply(this, arguments);
}
- }), n.addEventListener("keydown", Fn, !0), n.addEventListener("keyup", Fn, !0), n.addEventListener("click", Ln, !0), t.addEventListener("focus", Rn, !0), t.addEventListener("blur", zn, !1), typeof PointerEvent < "u" && (n.addEventListener("pointerdown", In, !0), n.addEventListener("pointermove", In, !0), n.addEventListener("pointerup", In, !0)), t.addEventListener("beforeunload", () => {
- Vn(e);
- }, { once: !0 }), kn.set(t, { focus: r });
+ }), n.addEventListener("keydown", zn, !0), n.addEventListener("keyup", zn, !0), n.addEventListener("click", Vn, !0), t.addEventListener("focus", Hn, !0), t.addEventListener("blur", Un, !1), typeof PointerEvent < "u" && (n.addEventListener("pointerdown", Bn, !0), n.addEventListener("pointermove", Bn, !0), n.addEventListener("pointerup", Bn, !0)), t.addEventListener("beforeunload", () => {
+ Gn(e);
+ }, { once: !0 }), Nn.set(t, { focus: r });
}
-var Vn = (e, t) => {
- let n = St(e), r = R(e);
- t && r.removeEventListener("DOMContentLoaded", t), kn.has(n) && (Reflect.defineProperty(n.HTMLElement.prototype, "focus", {
+var Gn = (e, t) => {
+ let n = Et(e), r = L(e);
+ t && r.removeEventListener("DOMContentLoaded", t), Nn.has(n) && (Reflect.defineProperty(n.HTMLElement.prototype, "focus", {
configurable: !0,
writable: !0,
- value: kn.get(n).focus
- }), r.removeEventListener("keydown", Fn, !0), r.removeEventListener("keyup", Fn, !0), r.removeEventListener("click", Ln, !0), n.removeEventListener("focus", Rn, !0), n.removeEventListener("blur", zn, !1), typeof PointerEvent < "u" && (r.removeEventListener("pointerdown", In, !0), r.removeEventListener("pointermove", In, !0), r.removeEventListener("pointerup", In, !0)), kn.delete(n));
+ value: Nn.get(n).focus
+ }), r.removeEventListener("keydown", zn, !0), r.removeEventListener("keyup", zn, !0), r.removeEventListener("click", Vn, !0), n.removeEventListener("focus", Hn, !0), n.removeEventListener("blur", Un, !1), typeof PointerEvent < "u" && (r.removeEventListener("pointerdown", Bn, !0), r.removeEventListener("pointermove", Bn, !0), r.removeEventListener("pointerup", Bn, !0)), Nn.delete(n));
};
-function Hn(e) {
- let t = R(e), n;
+function Kn(e) {
+ let t = L(e), n;
return t.readyState === "loading" ? (n = () => {
- Bn(e);
- }, t.addEventListener("DOMContentLoaded", n)) : Bn(e), () => Vn(e, n);
+ Wn(e);
+ }, t.addEventListener("DOMContentLoaded", n)) : Wn(e), () => Gn(e, n);
}
-typeof document < "u" && Hn();
-function Un() {
- return Dn !== "pointer";
+typeof document < "u" && Kn();
+function qn() {
+ return jn !== "pointer";
}
-function Wn() {
- return Dn;
+function Jn() {
+ return jn;
}
-function Gn(e) {
- Dn = e, Nn(e, null);
+function Yn(e) {
+ jn = e, Ln(e, null);
}
-var Kn = /* @__PURE__ */ new Set([
+var Xn = /* @__PURE__ */ new Set([
"checkbox",
"radio",
"range",
@@ -2741,78 +2844,78 @@ var Kn = /* @__PURE__ */ new Set([
"submit",
"reset"
]);
-function qn(e, t, n) {
- let r = n ? B(n) : void 0, i = R(r), a = St(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 = jt(i);
- return e = e || u instanceof o && !Kn.has(u.type) || u instanceof s || u instanceof c && u.isContentEditable, !(e && t === "keyboard" && n instanceof l && !Mn[n.key]);
+function Zn(e, t, n) {
+ let r = n ? z(n) : void 0, i = L(r), a = Et(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 = Ft(i);
+ return e = e || u instanceof o && !Xn.has(u.type) || u instanceof s || u instanceof c && u.isContentEditable, !(e && t === "keyboard" && n instanceof l && !In[n.key]);
}
-function Jn(e, t, n) {
- Bn(), (0, b.useEffect)(() => {
+function Qn(e, t, n) {
+ Wn(), (0, x.useEffect)(() => {
if (n?.enabled === !1) return;
let t = (t, r) => {
- qn(!!n?.isTextInput, t, r) && e(Un());
+ Zn(!!n?.isTextInput, t, r) && e(qn());
};
- return On.add(t), () => {
- On.delete(t);
+ return Mn.add(t), () => {
+ Mn.delete(t);
};
}, t);
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/runAfterTransition.mjs
-var Yn = /* @__PURE__ */ new Map(), Xn = /* @__PURE__ */ new Set();
-function Zn() {
+var $n = /* @__PURE__ */ new Map(), er = /* @__PURE__ */ new Set();
+function tr() {
if (typeof window > "u") return;
function e(e) {
return "propertyName" in e;
}
let t = (t) => {
- let r = B(t);
+ let r = z(t);
if (!e(t) || !r) return;
- let i = Yn.get(r);
- i || (i = /* @__PURE__ */ new Set(), Yn.set(r, i), r.addEventListener("transitioncancel", n, { once: !0 })), i.add(t.propertyName);
+ let i = $n.get(r);
+ i || (i = /* @__PURE__ */ new Set(), $n.set(r, i), r.addEventListener("transitioncancel", n, { once: !0 })), i.add(t.propertyName);
}, n = (t) => {
- let r = B(t);
+ let r = z(t);
if (!e(t) || !r) return;
- let i = Yn.get(r);
- if (i && (i.delete(t.propertyName), i.size === 0 && (r.removeEventListener("transitioncancel", n), Yn.delete(r)), Yn.size === 0)) {
- for (let e of Xn) e();
- Xn.clear();
+ let i = $n.get(r);
+ if (i && (i.delete(t.propertyName), i.size === 0 && (r.removeEventListener("transitioncancel", n), $n.delete(r)), $n.size === 0)) {
+ for (let e of er) e();
+ er.clear();
}
};
document.body.addEventListener("transitionrun", t), document.body.addEventListener("transitionend", n);
}
-typeof document < "u" && (document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", Zn) : Zn());
-function Qn() {
- for (let [e] of Yn) "isConnected" in e && !e.isConnected && Yn.delete(e);
+typeof document < "u" && (document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", tr) : tr());
+function nr() {
+ for (let [e] of $n) "isConnected" in e && !e.isConnected && $n.delete(e);
}
-function $n(e) {
+function rr(e) {
requestAnimationFrame(() => {
- Qn(), Yn.size === 0 ? e() : Xn.add(e);
+ nr(), $n.size === 0 ? e() : er.add(e);
});
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/focusSafely.mjs
-function er(e) {
+function ir(e) {
if (!e.isConnected) return;
- let t = R(e);
- if (Wn() === "virtual") {
- let n = jt(t);
- $n(() => {
- let r = jt(t);
- (r === n || r === t.body) && e.isConnected && _t(e);
+ let t = L(e);
+ if (Jn() === "virtual") {
+ let n = Ft(t);
+ rr(() => {
+ let r = Ft(t);
+ (r === n || r === t.body) && e.isConnected && xt(e);
});
- } else _t(e);
+ } else xt(e);
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/chain.mjs
-function tr(...e) {
+function ar(...e) {
return (...t) => {
for (let n of e) typeof n == "function" && n(...t);
};
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useValueEffect.mjs
-function nr(e) {
- let [t, n] = (0, b.useState)(e), r = (0, b.useRef)(t), i = (0, b.useRef)(null), a = (0, b.useRef)(() => {
+function or(e) {
+ let [t, n] = (0, x.useState)(e), r = (0, x.useRef)(t), i = (0, x.useRef)(null), a = (0, x.useRef)(() => {
if (!i.current) return;
let e = i.current.next();
if (e.done) {
@@ -2821,51 +2924,51 @@ function nr(e) {
}
r.current === e.value ? a.current() : n(e.value);
});
- return H(() => {
+ return V(() => {
r.current = t, i.current && a.current();
- }), [t, (0, b.useCallback)((e) => {
+ }), [t, (0, x.useCallback)((e) => {
i.current = e(r.current), a.current();
}, [a])];
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useId.mjs
-var rr = !!(typeof window < "u" && window.document && window.document.createElement), ir = /* @__PURE__ */ new Map(), ar;
-typeof FinalizationRegistry < "u" && (ar = new FinalizationRegistry((e) => {
- ir.delete(e);
+var sr = !!(typeof window < "u" && window.document && window.document.createElement), cr = /* @__PURE__ */ new Map(), lr;
+typeof FinalizationRegistry < "u" && (lr = new FinalizationRegistry((e) => {
+ cr.delete(e);
}));
-var or = /* @__PURE__ */ new WeakMap();
-function sr(e) {
- let [t, n] = (0, b.useState)(e), r = (0, b.useRef)(null), i = Sn(t), a = (0, b.useRef)(null), o = or.get(a);
- if (ar && o !== i && (o != null && ar.unregister(a), ar.register(a, i, a), or.set(a, i)), rr) {
- let e = ir.get(i);
- e && !e.includes(r) ? e.push(r) : ir.set(i, [r]);
- }
- return H(() => {
+var ur = /* @__PURE__ */ new WeakMap();
+function dr(e) {
+ let [t, n] = (0, x.useState)(e), r = (0, x.useRef)(null), i = En(t), a = (0, x.useRef)(null), o = ur.get(a);
+ if (lr && o !== i && (o != null && lr.unregister(a), lr.register(a, i, a), ur.set(a, i)), sr) {
+ let e = cr.get(i);
+ e && !e.includes(r) ? e.push(r) : cr.set(i, [r]);
+ }
+ return V(() => {
let e = i;
return () => {
- ar && (ar.unregister(a), or.delete(a)), ir.delete(e);
+ lr && (lr.unregister(a), ur.delete(a)), cr.delete(e);
};
- }, [i]), (0, b.useEffect)(() => {
+ }, [i]), (0, x.useEffect)(() => {
let e = r.current;
return e && n(e), () => {
e && (r.current = null);
};
}), i;
}
-function cr(e, t) {
+function fr(e, t) {
if (e === t) return e;
- let n = ir.get(e);
+ let n = cr.get(e);
if (n) return n.forEach((e) => e.current = t), t;
- let r = ir.get(t);
+ let r = cr.get(t);
return r ? (r.forEach((t) => t.current = e), e) : t;
}
-function lr(e = []) {
- let t = sr(), [n, r] = nr(t), i = (0, b.useCallback)(() => {
+function pr(e = []) {
+ let t = dr(), [n, r] = or(t), i = (0, x.useCallback)(() => {
r(function* () {
yield t, yield document.getElementById(t) ? t : void 0;
});
}, [t, r]);
- return H(i, [
+ return V(i, [
t,
i,
...e
@@ -2873,60 +2976,60 @@ function lr(e = []) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/mergeRefs.mjs
-function ur(...e) {
+function mr(...e) {
return e.length === 1 && e[0] ? e[0] : (t) => {
let n = !1, r = e.map((e) => {
- let r = dr(e, t);
+ let r = hr(e, t);
return n ||= typeof r == "function", r;
});
if (n) return () => {
r.forEach((t, n) => {
- typeof t == "function" ? t() : dr(e[n], null);
+ typeof t == "function" ? t() : hr(e[n], null);
});
};
};
}
-function dr(e, t) {
+function hr(e, t) {
if (typeof e == "function") return e(t);
e != null && (e.current = t);
}
//#endregion
//#region node_modules/clsx/dist/clsx.mjs
-function fr(e) {
+function gr(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 = fr(e[t])) && (r && (r += " "), r += n);
+ for (t = 0; t < i; t++) e[t] && (n = gr(e[t])) && (r && (r += " "), r += n);
} else for (n in e) e[n] && (r && (r += " "), r += n);
}
return r;
}
-function pr() {
- for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = fr(e)) && (r && (r += " "), r += t);
+function _r() {
+ for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = gr(e)) && (r && (r += " "), r += t);
return r;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/mergeProps.mjs
-function U(...e) {
+function H(...e) {
let t = { ...e[0] };
for (let n = 1; n < e.length; n++) {
let r = e[n];
for (let e in r) {
let n = t[e], i = r[e];
- typeof n == "function" && typeof i == "function" && e[0] === "o" && e[1] === "n" && e.charCodeAt(2) >= 65 && e.charCodeAt(2) <= 90 ? t[e] = tr(n, i) : (e === "className" || e === "UNSAFE_className") && typeof n == "string" && typeof i == "string" ? t[e] = pr(n, i) : e === "id" && n && i ? t.id = cr(n, i) : e === "ref" && n && i ? t.ref = ur(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] = ar(n, i) : (e === "className" || e === "UNSAFE_className") && typeof n == "string" && typeof i == "string" ? t[e] = _r(n, i) : e === "id" && n && i ? t.id = fr(n, i) : e === "ref" && n && i ? t.ref = mr(n, i) : t[e] = i === void 0 ? n : i;
}
}
return t;
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useFocus.mjs
-function mr(e) {
- let { isDisabled: t, onFocus: n, onBlur: r, onFocusChange: i } = e, a = (0, b.useCallback)((e) => {
- if (B(e) === e.currentTarget) return r && r(e), i && i(!1), !0;
- }, [r, i]), o = Gt(a), s = (0, b.useCallback)((e) => {
- let t = B(e), r = R(t), a = r ? jt(r) : jt();
+function vr(e) {
+ let { isDisabled: t, onFocus: n, onBlur: r, onFocusChange: i } = e, a = (0, x.useCallback)((e) => {
+ if (z(e) === e.currentTarget) return r && r(e), i && i(!1), !0;
+ }, [r, i]), o = Yt(a), s = (0, x.useCallback)((e) => {
+ let t = z(e), r = L(t), a = r ? Ft(r) : Ft();
t === e.currentTarget && t === a && (n && n(e), i && i(!0), o(e));
}, [
i,
@@ -2940,7 +3043,7 @@ function mr(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/createEventHandler.mjs
-function hr(e) {
+function yr(e) {
if (e) return (t) => {
let n = !0;
e({
@@ -2965,33 +3068,33 @@ function hr(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/createKeyboardShortcutHandler.mjs
-var gr = /* @__PURE__ */ new Set([
+var br = /* @__PURE__ */ new Set([
"shift",
"alt",
"control",
"meta",
"mod"
-]), _r = [
+]), xr = [
"Alt",
"Control",
"Meta",
"Shift"
];
-function vr(e) {
+function Sr(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(Zt() ? "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(tn() ? "Meta" : "Control"), t;
}
-function yr(e) {
+function Cr(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 br(e) {
- return _r.filter((t) => e.has(t));
+function wr(e) {
+ return xr.filter((t) => e.has(t));
}
-function xr(e) {
+function Tr(e) {
let t = e.split("+").reduce((e, t) => {
let n = t.toLowerCase();
- return gr.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 br.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,
@@ -3003,10 +3106,10 @@ function xr(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 Sr(e) {
+function Er(e) {
return e.toLowerCase();
}
-var Cr = {
+var Dr = {
space: " ",
esc: "escape",
del: "delete",
@@ -3018,26 +3121,26 @@ var Cr = {
pageup: "pageup",
pagedown: "pagedown"
};
-function wr(e) {
- let t = Sr(e);
- return Cr[t] ?? t;
+function Or(e) {
+ let t = Er(e);
+ return Dr[t] ?? t;
}
-function Tr(e) {
- let t = br(vr(e)), n = wr(e.key);
+function kr(e) {
+ let t = wr(Sr(e)), n = Or(e.key);
return t.length > 0 ? `${t.join("+")}+${n}` : n;
}
-function Er(e) {
- let t = br(yr(e)), n = Sr(e.key);
+function Ar(e) {
+ let t = wr(Cr(e)), n = Er(e.key);
return (t.length > 0 ? `${t.join("+")}+` : "") + n;
}
-function Dr(e) {
+function jr(e) {
let t = /* @__PURE__ */ new Map();
for (let [n, r] of Object.entries(e)) {
- let e = xr(n);
- t.set(Tr(e), r);
+ let e = Tr(n);
+ t.set(kr(e), r);
}
return (e) => {
- let n = Er(e), r = t.get(n), i = r?.(e);
+ let n = Ar(e), r = t.get(n), i = r?.(e);
i === void 0 && r !== void 0 ? i = {
shouldContinuePropagation: !1,
shouldPreventDefault: !0
@@ -3049,11 +3152,11 @@ function Dr(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useKeyboard.mjs
-function Or(e) {
+function Mr(e) {
let { shortcuts: t, allowRepeats: n = !1, allowComposing: r = !1 } = e, i, a;
if (t) {
- let o = Dr(t), s = hr((e) => {
- if (!z(e.currentTarget, B(e))) {
+ let o = jr(t), s = yr((e) => {
+ if (!R(e.currentTarget, z(e))) {
e.continuePropagation();
return;
}
@@ -3062,8 +3165,8 @@ function Or(e) {
return;
}
o(e);
- }), c = hr((e) => {
- if (!z(e.currentTarget, B(e))) {
+ }), c = yr((e) => {
+ if (!R(e.currentTarget, z(e))) {
e.continuePropagation();
return;
}
@@ -3073,8 +3176,8 @@ function Or(e) {
}
e.continuePropagation();
});
- i = e.onKeyDown ? tr(e.onKeyDown, s) : s, a = e.onKeyUp ? tr(e.onKeyUp, c) : c;
- } else i = hr(e.onKeyDown), a = hr(e.onKeyUp);
+ i = e.onKeyDown ? ar(e.onKeyDown, s) : s, a = e.onKeyUp ? ar(e.onKeyUp, c) : c;
+ } else i = yr(e.onKeyDown), a = yr(e.onKeyUp);
return { keyboardProps: e.isDisabled ? {} : {
onKeyDown: i,
onKeyUp: a
@@ -3082,8 +3185,8 @@ function Or(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useObjectRef.mjs
-function kr(e) {
- let t = (0, b.useRef)(null), n = (0, b.useRef)(void 0), r = (0, b.useCallback)((t) => {
+function Nr(e) {
+ let t = (0, x.useRef)(null), n = (0, x.useRef)(void 0), r = (0, x.useCallback)((t) => {
if (typeof e == "function") {
let n = e, r = n(t);
return () => {
@@ -3094,7 +3197,7 @@ function kr(e) {
e.current = null;
};
}, [e]);
- return (0, b.useMemo)(() => ({
+ return (0, x.useMemo)(() => ({
get current() {
return t.current;
},
@@ -3105,8 +3208,8 @@ function kr(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useSyncRef.mjs
-function Ar(e, t) {
- H(() => {
+function Pr(e, t) {
+ V(() => {
if (e && e.ref && t) return e.ref.current = t.current, () => {
e.ref && (e.ref.current = null);
};
@@ -3114,20 +3217,20 @@ function Ar(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useFocusable.mjs
-var jr = /*#__PURE__*/ b.createContext(null);
-function Mr(e) {
- let t = (0, b.useContext)(jr) || {};
- Ar(t, e);
+var Fr = /*#__PURE__*/ x.createContext(null);
+function Ir(e) {
+ let t = (0, x.useContext)(Fr) || {};
+ Pr(t, e);
let { ref: n, ...r } = t;
return r;
}
-function Nr(e, t) {
- let { focusProps: n } = mr(e), { keyboardProps: r } = Or(e), i = U(n, r), a = Mr(t), o = e.isDisabled ? {} : a, s = (0, b.useRef)(e.autoFocus);
- (0, b.useEffect)(() => {
- s.current && t.current && er(t.current), s.current = !1;
+function Lr(e, t) {
+ let { focusProps: n } = vr(e), { keyboardProps: r } = Mr(e), i = H(n, r), a = Ir(t), o = e.isDisabled ? {} : a, s = (0, x.useRef)(e.autoFocus);
+ (0, x.useEffect)(() => {
+ s.current && t.current && ir(t.current), s.current = !1;
}, [t]);
let c = e.excludeFromTabOrder ? -1 : 0;
- return e.isDisabled && (c = void 0), { focusableProps: U({
+ return e.isDisabled && (c = void 0), { focusableProps: H({
...i,
tabIndex: c
}, o) };
@@ -3159,23 +3262,23 @@ typeof HTMLTemplateElement < "u" && (Object.defineProperty(HTMLTemplateElement.p
return this.content.insertBefore(e, t);
}
}));
-var Pr = /*#__PURE__*/ (0, b.createContext)(!1);
-function Fr(e) {
- if ((0, b.useContext)(Pr)) return /*#__PURE__*/ b.createElement(b.Fragment, null, e.children);
- let t = /*#__PURE__*/ b.createElement(Pr.Provider, { value: !0 }, e.children);
- return /*#__PURE__*/ b.createElement("template", null, t);
+var Rr = /*#__PURE__*/ (0, x.createContext)(!1);
+function zr(e) {
+ if ((0, x.useContext)(Rr)) return /*#__PURE__*/ x.createElement(x.Fragment, null, e.children);
+ let t = /*#__PURE__*/ x.createElement(Rr.Provider, { value: !0 }, e.children);
+ return /*#__PURE__*/ x.createElement("template", null, t);
}
-function Ir(e) {
- let t = (t, n) => (0, b.useContext)(Pr) ? null : e(t, n);
- return t.displayName = e.displayName || e.name, (0, b.forwardRef)(t);
+function Br(e) {
+ let t = (t, n) => (0, x.useContext)(Rr) ? null : e(t, n);
+ return t.displayName = e.displayName || e.name, (0, x.forwardRef)(t);
}
-function Lr() {
- return (0, b.useContext)(Pr);
+function Vr() {
+ return (0, x.useContext)(Rr);
}
//#endregion
//#region node_modules/react-dom/cjs/react-dom.production.js
-var Rr = /* @__PURE__ */ p(((e) => {
- var t = _();
+var Hr = /* @__PURE__ */ m(((e) => {
+ var t = v();
function n(e) {
var t = "https://react.dev/errors/" + e;
if (1 < arguments.length) {
@@ -3302,7 +3405,7 @@ var Rr = /* @__PURE__ */ p(((e) => {
}, e.useFormStatus = function() {
return l.H.useHostTransitionStatus();
}, e.version = "19.3.0";
-})), zr = /* @__PURE__ */ p(((e, t) => {
+})), Ur = /* @__PURE__ */ m(((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);
@@ -3310,9 +3413,9 @@ var Rr = /* @__PURE__ */ p(((e) => {
console.error(e);
}
}
- n(), t.exports = Rr();
-})), Br = /* @__PURE__ */ p(((e) => {
- var t = _();
+ n(), t.exports = Hr();
+})), Wr = /* @__PURE__ */ m(((e) => {
+ var t = v();
function n(e, t) {
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
}
@@ -3349,48 +3452,48 @@ var Rr = /* @__PURE__ */ p(((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;
-})), Vr = /* @__PURE__ */ p(((e, t) => {
- t.exports = Br();
-})), Hr = /* @__PURE__ */ h(zr(), 1), Ur = Vr(), Wr = /*#__PURE__*/ (0, b.createContext)(!1), Gr = /*#__PURE__*/ (0, b.createContext)(null);
-function Kr(e) {
- if ((0, b.useContext)(Gr)) return e.content;
- let { collection: t, document: n } = Xr(e.createCollection);
- return /*#__PURE__*/ b.createElement(b.Fragment, null, /*#__PURE__*/ b.createElement(Fr, null, /*#__PURE__*/ b.createElement(Gr.Provider, { value: n }, e.content)), /*#__PURE__*/ b.createElement(qr, {
+})), Gr = /* @__PURE__ */ m(((e, t) => {
+ t.exports = Wr();
+})), Kr = /* @__PURE__ */ g(Ur(), 1), qr = Gr(), Jr = /*#__PURE__*/ (0, x.createContext)(!1), Yr = /*#__PURE__*/ (0, x.createContext)(null);
+function Xr(e) {
+ if ((0, x.useContext)(Yr)) return e.content;
+ let { collection: t, document: n } = ei(e.createCollection);
+ return /*#__PURE__*/ x.createElement(x.Fragment, null, /*#__PURE__*/ x.createElement(zr, null, /*#__PURE__*/ x.createElement(Yr.Provider, { value: n }, e.content)), /*#__PURE__*/ x.createElement(Zr, {
render: e.children,
collection: t
}));
}
-function qr({ collection: e, render: t }) {
+function Zr({ collection: e, render: t }) {
return t(e);
}
-function Jr(e, t, n) {
- let r = En(), i = (0, b.useRef)(r);
+function Qr(e, t, n) {
+ let r = An(), i = (0, x.useRef)(r);
i.current = r;
- let a = (0, b.useCallback)(() => i.current ? n() : t(), [t, n]);
- return (0, Ur.useSyncExternalStore)(e, a);
+ let a = (0, x.useCallback)(() => i.current ? n() : t(), [t, n]);
+ return (0, qr.useSyncExternalStore)(e, a);
}
-var Yr = typeof b.useSyncExternalStore == "function" ? b.useSyncExternalStore : Jr;
-function Xr(e) {
- let [t] = (0, b.useState)(() => new mt(e?.() || new ut()));
+var $r = typeof x.useSyncExternalStore == "function" ? x.useSyncExternalStore : Qr;
+function ei(e) {
+ let [t] = (0, x.useState)(() => new vt(e?.() || new mt()));
return {
- collection: Yr((0, b.useCallback)((e) => t.subscribe(e), [t]), (0, b.useCallback)(() => {
+ collection: $r((0, x.useCallback)((e) => t.subscribe(e), [t]), (0, x.useCallback)(() => {
let e = t.getCollection();
return t.isSSR && t.resetAfterSSR(), e;
- }, [t]), (0, b.useCallback)(() => (t.isSSR = !0, t.getCollection()), [t])),
+ }, [t]), (0, x.useCallback)(() => (t.isSSR = !0, t.getCollection()), [t])),
document: t
};
}
-var Zr = /*#__PURE__*/ (0, b.createContext)(null);
-function Qr(e) {
- return class extends ot {
+var ti = /*#__PURE__*/ (0, x.createContext)(null);
+function ni(e) {
+ return class extends ut {
static {
this.type = e;
}
};
}
-function $r(e, t, n, r, i, a) {
- typeof e == "string" && (e = Qr(e));
- let o = (0, b.useCallback)((i) => {
+function ri(e, t, n, r, i, a) {
+ typeof e == "string" && (e = ni(e));
+ let o = (0, x.useCallback)((i) => {
i?.setProps(t, n, e, r, a);
}, [
t,
@@ -3398,77 +3501,77 @@ function $r(e, t, n, r, i, a) {
r,
a,
e
- ]), s = (0, b.useContext)(Zr);
+ ]), s = (0, x.useContext)(ti);
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__*/ b.createElement(Zr.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__*/ x.createElement(ti.Provider, { value: o }, i) : null;
}
- return /*#__PURE__*/ b.createElement(e.type, { ref: o }, i);
+ return /*#__PURE__*/ x.createElement(e.type, { ref: o }, i);
}
-function ei(e, t) {
- let n = ({ node: e }) => t(e.props, e.props.ref, e), r = (0, b.forwardRef)((r, i) => {
- let a = (0, b.useContext)(jr);
- if (!(0, b.useContext)(Wr)) {
+function ii(e, t) {
+ let n = ({ node: e }) => t(e.props, e.props.ref, e), r = (0, x.forwardRef)((r, i) => {
+ let a = (0, x.useContext)(Fr);
+ if (!(0, x.useContext)(Jr)) {
if (t.length >= 3) throw Error(t.name + " cannot be rendered outside a collection.");
return t(r, i);
}
- return $r(e, r, i, "children" in r ? r.children : null, null, (e) => /*#__PURE__*/ b.createElement(jr.Provider, { value: a }, /*#__PURE__*/ b.createElement(n, { node: e })));
+ return ri(e, r, i, "children" in r ? r.children : null, null, (e) => /*#__PURE__*/ x.createElement(Fr.Provider, { value: a }, /*#__PURE__*/ x.createElement(n, { node: e })));
});
return r.displayName = t.name, r;
}
-function ti(e) {
- return ht({
+function ai(e) {
+ return yt({
...e,
addIdAndValue: !0
});
}
-var ni = /*#__PURE__*/ (0, b.createContext)(null);
-function ri(e) {
- let t = (0, b.useContext)(ni), n = (t?.dependencies || []).concat(e.dependencies), r = e.idScope ?? t?.idScope, i = ti({
+var oi = /*#__PURE__*/ (0, x.createContext)(null);
+function si(e) {
+ let t = (0, x.useContext)(oi), n = (t?.dependencies || []).concat(e.dependencies), r = e.idScope ?? t?.idScope, i = ai({
...e,
idScope: r,
dependencies: n
});
- return (0, b.useContext)(Gr) && (i = /*#__PURE__*/ b.createElement(ii, null, i)), t = (0, b.useMemo)(() => ({
+ return (0, x.useContext)(Yr) && (i = /*#__PURE__*/ x.createElement(ci, null, i)), t = (0, x.useMemo)(() => ({
dependencies: n,
idScope: r
- }), [r, ...n]), /*#__PURE__*/ b.createElement(ni.Provider, { value: t }, i);
+ }), [r, ...n]), /*#__PURE__*/ x.createElement(oi.Provider, { value: t }, i);
}
-function ii({ children: e }) {
- let t = (0, b.useContext)(Gr), n = (0, b.useMemo)(() => /*#__PURE__*/ b.createElement(Gr.Provider, { value: null }, /*#__PURE__*/ b.createElement(Wr.Provider, { value: !0 }, e)), [e]);
- return En() ? /*#__PURE__*/ b.createElement(Zr.Provider, { value: t }, n) : /*#__PURE__*/ (0, Hr.createPortal)(n, t);
+function ci({ children: e }) {
+ let t = (0, x.useContext)(Yr), n = (0, x.useMemo)(() => /*#__PURE__*/ x.createElement(Yr.Provider, { value: null }, /*#__PURE__*/ x.createElement(Jr.Provider, { value: !0 }, e)), [e]);
+ return An() ? /*#__PURE__*/ x.createElement(ti.Provider, { value: t }, n) : /*#__PURE__*/ (0, Kr.createPortal)(n, t);
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/constants.mjs
-var ai = "react-aria-clear-focus", oi = "react-aria-focus";
+var li = "react-aria-clear-focus", ui = "react-aria-focus";
//#endregion
//#region node_modules/react-aria/dist/private/focus/virtualFocus.mjs
-function si(e) {
- let t = ui(R(e));
- t !== e && (t && ci(t, e), e && li(e, t));
+function di(e) {
+ let t = mi(L(e));
+ t !== e && (t && fi(t, e), e && pi(e, t));
}
-function ci(e, t) {
+function fi(e, t) {
e.dispatchEvent(new FocusEvent("blur", { relatedTarget: t })), e.dispatchEvent(new FocusEvent("focusout", {
bubbles: !0,
relatedTarget: t
}));
}
-function li(e, t) {
+function pi(e, t) {
e.dispatchEvent(new FocusEvent("focus", { relatedTarget: t })), e.dispatchEvent(new FocusEvent("focusin", {
bubbles: !0,
relatedTarget: t
}));
}
-function ui(e) {
- let t = jt(e), n = t?.getAttribute("aria-activedescendant");
+function mi(e) {
+ let t = Ft(e), n = t?.getAttribute("aria-activedescendant");
return n && e.getElementById(n) || t;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/keyboard.mjs
-function di(e) {
- return Zt() ? e.metaKey : e.ctrlKey;
+function hi(e) {
+ return tn() ? e.metaKey : e.ctrlKey;
}
-var fi = /* @__PURE__ */ new Set([
+var gi = /* @__PURE__ */ new Set([
"checkbox",
"radio",
"range",
@@ -3479,27 +3582,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 _i(e) {
+ return e instanceof HTMLInputElement && !gi.has(e.type) || e instanceof HTMLTextAreaElement || e instanceof HTMLElement && e.isContentEditable;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useEffectEvent.mjs
-var mi = b.useInsertionEffect ?? H;
-function hi(e) {
- let t = (0, b.useRef)(null);
- return mi(() => {
+var vi = x.useInsertionEffect ?? V;
+function yi(e) {
+ let t = (0, x.useRef)(null);
+ return vi(() => {
t.current = e;
- }, [e]), (0, b.useCallback)((...e) => {
+ }, [e]), (0, x.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, b.useEffect)(() => {
- if (!(a || e.current == null)) return Dt(e.current, t, i, r);
+function bi(e, t, n, r) {
+ let i = yi(n), a = n == null;
+ (0, x.useEffect)(() => {
+ if (!(a || e.current == null)) return jt(e.current, t, i, r);
}, [
e,
t,
@@ -3509,9 +3612,9 @@ function gi(e, t, n, r) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useLabels.mjs
-function _i(e, t) {
+function xi(e, t) {
let { id: n, "aria-label": r, "aria-labelledby": i } = e;
- return n = sr(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 = dr(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
@@ -3519,7 +3622,7 @@ function _i(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/utils.mjs
-var vi = /* @__PURE__ */ new Set([
+var Si = /* @__PURE__ */ new Set([
"Arab",
"Syrc",
"Samr",
@@ -3530,7 +3633,7 @@ var vi = /* @__PURE__ */ new Set([
"Adlm",
"Rohg",
"Hebr"
-]), yi = /* @__PURE__ */ new Set([
+]), Ci = /* @__PURE__ */ new Set([
"ae",
"ar",
"arc",
@@ -3551,20 +3654,20 @@ var vi = /* @__PURE__ */ new Set([
"ur",
"yi"
]);
-function bi(e) {
+function wi(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 Si.has(t.script);
}
let t = e.split("-")[0];
- return yi.has(t);
+ return Ci.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 Ti = Symbol.for("react-aria.i18n.locale");
+function Ei() {
+ let e = typeof window < "u" && window[Ti] || typeof navigator < "u" && (navigator.language || navigator.userLanguage) || "en-US";
try {
Intl.DateTimeFormat.supportedLocalesOf([e]);
} catch {
@@ -3572,33 +3675,33 @@ function Si() {
}
return {
locale: e,
- direction: bi(e) ? "rtl" : "ltr"
+ direction: wi(e) ? "rtl" : "ltr"
};
}
-var Ci = Si(), wi = /* @__PURE__ */ new Set();
-function Ti() {
- Ci = Si();
- for (let e of wi) e(Ci);
+var Di = Ei(), Oi = /* @__PURE__ */ new Set();
+function ki() {
+ Di = Ei();
+ for (let e of Oi) e(Di);
}
-function Ei() {
- let e = En(), [t, n] = (0, b.useState)(Ci);
- return (0, b.useEffect)(() => (wi.size === 0 && window.addEventListener("languagechange", Ti), wi.add(n), () => {
- wi.delete(n), wi.size === 0 && window.removeEventListener("languagechange", Ti);
+function Ai() {
+ let e = An(), [t, n] = (0, x.useState)(Di);
+ return (0, x.useEffect)(() => (Oi.size === 0 && window.addEventListener("languagechange", ki), Oi.add(n), () => {
+ Oi.delete(n), Oi.size === 0 && window.removeEventListener("languagechange", ki);
}), []), e ? {
- locale: typeof window < "u" && window[xi] || "en-US",
+ locale: typeof window < "u" && window[Ti] || "en-US",
direction: "ltr"
} : t;
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/I18nProvider.mjs
-var Di = /*#__PURE__*/ b.createContext(null);
-function Oi() {
- let e = Ei();
- return (0, b.useContext)(Di) || e;
+var ji = /*#__PURE__*/ x.createContext(null);
+function Mi() {
+ let e = Ai();
+ return (0, x.useContext)(ji) || 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 Ni = Symbol.for("react-aria.i18n.locale"), Pi = Symbol.for("react-aria.i18n.strings"), Fi = void 0, Ii = class e {
constructor(e, t = "en-US") {
this.strings = Object.fromEntries(Object.entries(e).filter(([, e]) => e)), this.defaultLocale = t;
}
@@ -3609,39 +3712,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 = Li(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[Ni];
+ if (Fi === void 0) {
+ let t = window[Pi];
if (!t) return null;
- ji = {};
- for (let r in t) ji[r] = new e({ [n]: t[r] }, n);
+ Fi = {};
+ for (let r in t) Fi[r] = new e({ [n]: t[r] }, n);
}
- let r = ji?.[t];
+ let r = Fi?.[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 Li(e, t, n = "en-US") {
if (t[e]) return t[e];
- let r = Pi(e), i = Fi(e);
+ let r = Ri(e), i = zi(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 Ri(e) {
return Intl.Locale ? new Intl.Locale(e).language : e.split("-")[0];
}
-function Fi(e) {
+function zi(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 Bi = /* @__PURE__ */ new Map(), Vi = /* @__PURE__ */ new Map(), Hi = class {
constructor(e, t) {
this.locale = e, this.strings = t;
}
@@ -3652,37 +3755,37 @@ 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 = Bi.get(i);
+ return a || (a = new Intl.PluralRules(this.locale, { type: n }), Bi.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 = Vi.get(this.locale);
+ return t || (t = new Intl.NumberFormat(this.locale), Vi.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;
+}, Ui = /* @__PURE__ */ new WeakMap();
+function Wi(e) {
+ let t = Ui.get(e);
+ return t || (t = new Ii(e), Ui.set(e, t)), t;
}
-function Vi(e, t) {
- return t && Mi.getGlobalDictionaryForPackage(t) || Bi(e);
+function Gi(e, t) {
+ return t && Ii.getGlobalDictionaryForPackage(t) || Wi(e);
}
-function Hi(e, t) {
- let { locale: n } = Oi(), r = Vi(e, t);
- return (0, b.useMemo)(() => new Ri(n, r), [n, r]);
+function Ki(e, t) {
+ let { locale: n } = Mi(), r = Gi(e, t);
+ return (0, x.useMemo)(() => new Hi(n, r), [n, r]);
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/filterDOMProps.mjs
-var Ui = /* @__PURE__ */ new Set(["id"]), Wi = /* @__PURE__ */ new Set([
+var qi = /* @__PURE__ */ new Set(["id"]), Ji = /* @__PURE__ */ new Set([
"aria-label",
"aria-labelledby",
"aria-describedby",
"aria-details"
-]), Gi = /* @__PURE__ */ new Set([
+]), Yi = /* @__PURE__ */ new Set([
"href",
"hrefLang",
"target",
@@ -3690,72 +3793,72 @@ var Ui = /* @__PURE__ */ new Set(["id"]), Wi = /* @__PURE__ */ new Set([
"download",
"ping",
"referrerPolicy"
-]), Ki = /* @__PURE__ */ new Set([
+]), Xi = /* @__PURE__ */ new Set([
"dir",
"lang",
"hidden",
"inert",
"translate"
-]), qi = /* @__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(".")), Ji = /^(data-.*)$/;
-function Yi(e, t = {}) {
+]), Zi = /* @__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(".")), Qi = /^(data-.*)$/;
+function U(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) && (Ui.has(t) || n && Wi.has(t) || r && Gi.has(t) || i && Ki.has(t) || a && (qi.has(t) || t.endsWith("Capture") && qi.has(t.slice(0, -7))) || o?.has(t) || Ji.test(t)) && (s[t] = e[t]);
+ for (let t in e) Object.prototype.hasOwnProperty.call(e, t) && (qi.has(t) || n && Ji.has(t) || r && Yi.has(t) || i && Xi.has(t) || a && (Zi.has(t) || t.endsWith("Capture") && Zi.has(t.slice(0, -7))) || o?.has(t) || Qi.test(t)) && (s[t] = e[t]);
return s;
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/textSelection.mjs
-var Xi = "default", Zi = "", Qi = /* @__PURE__ */ new WeakMap();
-function $i(e) {
- if (en() && nn()) {
- if (Xi === "default") {
- let t = R(e);
- Zi = t.documentElement.style.webkitUserSelect, t.documentElement.style.webkitUserSelect = "none";
- }
- Xi = "disabled";
+var $i = "default", W = "", ea = /* @__PURE__ */ new WeakMap();
+function ta(e) {
+ if (an() && sn()) {
+ if ($i === "default") {
+ let t = L(e);
+ W = t.documentElement.style.webkitUserSelect, t.documentElement.style.webkitUserSelect = "none";
+ }
+ $i = "disabled";
} else if (e instanceof HTMLElement || e instanceof SVGElement) {
let t = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
- Qi.set(e, e.style[t]), e.style[t] = "none";
+ ea.set(e, e.style[t]), e.style[t] = "none";
}
}
-function W(e) {
- if (en() && nn()) {
- if (Xi !== "disabled") return;
- Xi = "restoring", setTimeout(() => {
- $n(() => {
- if (Xi === "restoring") {
- let t = R(e);
- t.documentElement.style.webkitUserSelect === "none" && (t.documentElement.style.webkitUserSelect = Zi || ""), Zi = "", Xi = "default";
+function na(e) {
+ if (an() && sn()) {
+ if ($i !== "disabled") return;
+ $i = "restoring", setTimeout(() => {
+ rr(() => {
+ if ($i === "restoring") {
+ let t = L(e);
+ t.documentElement.style.webkitUserSelect === "none" && (t.documentElement.style.webkitUserSelect = W || ""), W = "", $i = "default";
}
});
}, 300);
- } else if ((e instanceof HTMLElement || e instanceof SVGElement) && e && Qi.has(e)) {
- let t = Qi.get(e), n = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
- e.style[n] === "none" && (e.style[n] = t), e.getAttribute("style") === "" && e.removeAttribute("style"), Qi.delete(e);
+ } else if ((e instanceof HTMLElement || e instanceof SVGElement) && e && ea.has(e)) {
+ let t = ea.get(e), n = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
+ e.style[n] === "none" && (e.style[n] = t), e.getAttribute("style") === "" && e.removeAttribute("style"), ea.delete(e);
}
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/getMetaValue.mjs
-function ea(e, t) {
- let n = St(t), r = R(t);
+function ra(e, t) {
+ let n = Et(t), r = L(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 ta = /* @__PURE__ */ new WeakMap();
-function na(e) {
- let t = R(e), n = ta.get(t);
- return n ??= ea("csp-nonce", t), n !== void 0 && ta.set(t, n), n;
+var ia = /* @__PURE__ */ new WeakMap();
+function aa(e) {
+ let t = L(e), n = ia.get(t);
+ return n ??= ra("csp-nonce", t), n !== void 0 && ia.set(t, n), n;
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/context.mjs
-var ra = b.createContext({ register: () => {} });
-ra.displayName = "PressResponderContext";
+var oa = x.createContext({ register: () => {} });
+oa.displayName = "PressResponderContext";
//#endregion
//#region node_modules/react-aria/dist/private/utils/useGlobalListeners.mjs
-function ia() {
- let e = (0, b.useRef)(/* @__PURE__ */ new Map()), t = (0, b.useCallback)((t, n, r, i) => {
+function sa() {
+ let e = (0, x.useRef)(/* @__PURE__ */ new Map()), t = (0, x.useCallback)((t, n, r, i) => {
let a = i?.once ? (...t) => {
e.current.delete(r), r(...t);
} : r;
@@ -3765,15 +3868,15 @@ function ia() {
fn: a,
options: i
}), t.addEventListener(n, a, i);
- }, []), n = (0, b.useCallback)((t, n, r, i) => {
+ }, []), n = (0, x.useCallback)((t, n, r, i) => {
let a = e.current.get(r)?.fn || r;
t.removeEventListener(n, a, i), e.current.delete(r);
- }, []), r = (0, b.useCallback)(() => {
+ }, []), r = (0, x.useCallback)(() => {
e.current.forEach((e, t) => {
n(e.eventTarget, e.type, t, e.options);
});
}, [n]);
- return (0, b.useEffect)(() => r, [r]), {
+ return (0, x.useEffect)(() => r, [r]), {
addGlobalListener: t,
removeGlobalListener: n,
removeAllGlobalListeners: r
@@ -3781,15 +3884,15 @@ function ia() {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/usePress.mjs
-function aa(e) {
- let t = (0, b.useContext)(ra);
+function ca(e) {
+ let t = (0, x.useContext)(oa);
if (t) {
let { register: n, ref: r, ...i } = t;
- e = U(i, e), n();
+ e = H(i, e), n();
}
- return Ar(t, e.ref), e;
+ return Pr(t, e.ref), e;
}
-var oa = class {
+var la = class {
#e;
constructor(e, t, n, r) {
this.#e = !0;
@@ -3802,9 +3905,9 @@ var oa = class {
get shouldStopPropagation() {
return this.#e;
}
-}, sa = Symbol("linkClicked"), ca = "react-aria-pressable-style", la = "data-react-aria-pressable";
-function ua(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 } = aa(e), [m, h] = (0, b.useState)(!1), g = (0, b.useRef)({
+}, ua = Symbol("linkClicked"), da = "react-aria-pressable-style", fa = "data-react-aria-pressable";
+function pa(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 } = ca(e), [m, h] = (0, x.useState)(!1), g = (0, x.useRef)({
isPressed: !1,
ignoreEmulatedMouseEvents: !1,
didFirePressStart: !1,
@@ -3814,12 +3917,12 @@ function ua(e) {
isOverTarget: !1,
pointerType: null,
disposables: []
- }), { addGlobalListener: _, removeAllGlobalListeners: v } = ia(), y = (0, b.useCallback)((e, t) => {
+ }), { addGlobalListener: _, removeAllGlobalListeners: v } = sa(), y = (0, x.useCallback)((e, t) => {
let i = g.current;
if (s || i.didFirePressStart) return !1;
let a = !0;
if (i.isTriggeringEvent = !0, r) {
- let n = new oa("pressstart", t, e);
+ let n = new la("pressstart", t, e);
r(n), a = n.shouldStopPropagation;
}
return n && n(!0), i.isTriggeringEvent = !1, i.didFirePressStart = !0, h(!0), a;
@@ -3827,17 +3930,17 @@ function ua(e) {
s,
r,
n
- ]), x = (0, b.useCallback)((e, r, a = !0) => {
+ ]), b = (0, x.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 oa("pressend", r, e);
+ let t = new la("pressend", r, e);
i(t), c = t.shouldStopPropagation;
}
if (n && n(!1), h(!1), t && a && !s) {
- let n = new oa("press", r, e);
+ let n = new la("press", r, e);
t(n), c &&= n.shouldStopPropagation;
}
return o.isTriggeringEvent = !1, c;
@@ -3846,28 +3949,28 @@ function ua(e) {
i,
n,
t
- ]), S = hi(x), C = hi((0, b.useCallback)((e, t) => {
+ ]), S = yi(b), C = yi((0, x.useCallback)((e, t) => {
let n = g.current;
if (s) return !1;
if (a) {
n.isTriggeringEvent = !0;
- let r = new oa("pressup", t, e);
+ let r = new la("pressup", t, e);
return a(r), n.isTriggeringEvent = !1, r.shouldStopPropagation;
}
return !0;
- }, [s, a])), w = (0, b.useCallback)((e) => {
+ }, [s, a])), w = (0, x.useCallback)((e) => {
let t = g.current;
if (t.isPressed && t.target) {
- t.didFirePressStart && t.pointerType != null && x(pa(t.target, e), t.pointerType, !1), t.isPressed = !1, t.isOverTarget = !1, t.activePointerId = null, t.pointerType = null, v(), d || W(t.target);
+ t.didFirePressStart && t.pointerType != null && b(ga(t.target, e), t.pointerType, !1), t.isPressed = !1, t.isOverTarget = !1, t.activePointerId = null, t.pointerType = null, v(), d || na(t.target);
for (let e of t.disposables) e();
t.disposables = [];
}
}, [
d,
v,
- x
- ]), T = hi(w);
- (0, b.useEffect)(() => {
+ b
+ ]), T = yi(w);
+ (0, x.useEffect)(() => {
s && g.current.isPressed && T({
currentTarget: g.current.target,
shiftKey: !1,
@@ -3876,46 +3979,46 @@ function ua(e) {
altKey: !1
});
}, [s]);
- let E = (0, b.useCallback)((e) => {
+ let E = (0, x.useCallback)((e) => {
u && w(e);
- }, [u, w]), D = (0, b.useCallback)((e) => {
+ }, [u, w]), D = (0, x.useCallback)((e) => {
s || o?.(e);
- }, [s, o]), O = (0, b.useCallback)((e, t) => {
+ }, [s, o]), O = (0, x.useCallback)((e, t) => {
if (!s && o) {
let n = new MouseEvent("click", e);
- Wt(n, t), o(Ut(n));
+ Jt(n, t), o(qt(n));
}
- }, [s, o]), k = (0, b.useMemo)(() => {
+ }, [s, o]), k = (0, x.useMemo)(() => {
let e = g.current, t = {
onKeyDown(t) {
- if (fa(t.nativeEvent, t.currentTarget) && z(t.currentTarget, B(t))) {
- ha(B(t), t.key) && t.preventDefault();
+ if (ha(t.nativeEvent, t.currentTarget) && R(t.currentTarget, z(t))) {
+ va(z(t), t.key) && t.preventDefault();
let r = !0;
!e.isPressed && !t.repeat && (e.target = t.currentTarget, e.isPressed = !0, e.pointerType = "keyboard", r = y(t, "keyboard"));
let i = t.currentTarget;
- _(R(t.currentTarget), "keyup", tr((t) => {
- fa(t, i) && !t.repeat && z(i, B(t)) && e.target && C(pa(e.target, t), "keyboard");
- }, n), !0), r && t.stopPropagation(), t.metaKey && Zt() && e.metaKeyEvents?.set(t.key, t.nativeEvent);
+ _(L(t.currentTarget), "keyup", ar((t) => {
+ ha(t, i) && !t.repeat && R(i, z(t)) && e.target && C(ga(e.target, t), "keyboard");
+ }, n), !0), r && t.stopPropagation(), t.metaKey && tn() && e.metaKeyEvents?.set(t.key, t.nativeEvent);
} else t.key === "Meta" && (e.metaKeyEvents = /* @__PURE__ */ new Map());
},
onClick(t) {
- if (!(t && !z(t.currentTarget, B(t))) && t && t.button === 0 && !e.isTriggeringEvent && !dn.isOpening) {
+ if (!(t && !R(t.currentTarget, z(t))) && t && t.button === 0 && !e.isTriggeringEvent && !hn.isOpening) {
let n = !0;
- if (s && t.preventDefault(), !e.ignoreEmulatedMouseEvents && !e.isPressed && (e.pointerType === "virtual" || sn(t.nativeEvent))) {
+ if (s && t.preventDefault(), !e.ignoreEmulatedMouseEvents && !e.isPressed && (e.pointerType === "virtual" || dn(t.nativeEvent))) {
let e = y(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(pa(t.currentTarget, t), r), a = S(pa(t.currentTarget, t), r, !0);
+ let r = e.pointerType || t.nativeEvent.pointerType || "virtual", i = C(ga(t.currentTarget, t), r), a = S(ga(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 && fa(t, e.target)) {
- ha(B(t), t.key) && t.preventDefault();
- let n = B(t), r = z(e.target, n);
- S(pa(e.target, t), "keyboard", r), r && O(t, e.target), v(), t.key !== "Enter" && da(e.target) && z(e.target, n) && !t[sa] && (t[sa] = !0, dn(e.target, t, !1)), e.isPressed = !1, e.metaKeyEvents?.delete(t.key);
+ if (e.isPressed && e.target && ha(t, e.target)) {
+ va(z(t), t.key) && t.preventDefault();
+ let n = z(t), r = R(e.target, n);
+ S(ga(e.target, t), "keyboard", r), r && O(t, e.target), v(), t.key !== "Enter" && ma(e.target) && R(e.target, n) && !t[ua] && (t[ua] = !0, hn(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;
@@ -3924,39 +4027,39 @@ function ua(e) {
};
if (typeof PointerEvent < "u") {
t.onPointerDown = (t) => {
- if (t.button !== 0 || !z(t.currentTarget, B(t))) return;
- if (cn(t.nativeEvent)) {
+ if (t.button !== 0 || !R(t.currentTarget, z(t))) return;
+ if (fn(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 || $i(e.target), i = y(t, e.pointerType);
- let a = B(t);
- "releasePointerCapture" in a && ("hasPointerCapture" in a ? a.hasPointerCapture(t.pointerId) && a.releasePointerCapture(t.pointerId) : a.releasePointerCapture(t.pointerId)), _(R(t.currentTarget), "pointerup", n, !1), _(R(t.currentTarget), "pointercancel", r, !1);
+ e.isPressed = !0, e.isOverTarget = !0, e.activePointerId = t.pointerId, e.target = t.currentTarget, d || ta(e.target), i = y(t, e.pointerType);
+ let a = z(t);
+ "releasePointerCapture" in a && ("hasPointerCapture" in a ? a.hasPointerCapture(t.pointerId) && a.releasePointerCapture(t.pointerId) : a.releasePointerCapture(t.pointerId)), _(L(t.currentTarget), "pointerup", n, !1), _(L(t.currentTarget), "pointercancel", r, !1);
}
i && t.stopPropagation();
}, t.onMouseDown = (t) => {
- if (z(t.currentTarget, B(t)) && t.button === 0) {
+ if (R(t.currentTarget, z(t)) && t.button === 0) {
if (l) {
- let n = qt(t.target);
+ let n = Zt(t.target);
n && e.disposables.push(n);
}
t.stopPropagation();
}
}, t.onPointerUp = (t) => {
- !z(t.currentTarget, B(t)) || e.pointerType === "virtual" || t.button === 0 && !e.isPressed && C(t, e.pointerType || t.pointerType);
+ !R(t.currentTarget, z(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, y(pa(e.target, t), e.pointerType));
+ t.pointerId === e.activePointerId && e.target && !e.isOverTarget && e.pointerType != null && (e.isOverTarget = !0, y(ga(e.target, t), e.pointerType));
}, t.onPointerLeave = (t) => {
- t.pointerId === e.activePointerId && e.target && e.isOverTarget && e.pointerType != null && (e.isOverTarget = !1, S(pa(e.target, t), e.pointerType, !1), E(t));
+ t.pointerId === e.activePointerId && e.target && e.isOverTarget && e.pointerType != null && (e.isOverTarget = !1, S(ga(e.target, t), e.pointerType, !1), E(t));
};
let n = (t) => {
if (t.pointerId === e.activePointerId && e.isPressed && t.button === 0 && e.target) {
- if (z(e.target, B(t)) && e.pointerType != null) {
+ if (R(e.target, z(t)) && e.pointerType != null) {
let n = !1, r = setTimeout(() => {
- e.isPressed && e.target instanceof HTMLElement && (n ? T(t) : (_t(e.target), e.target.click()));
+ e.isPressed && e.target instanceof HTMLElement && (n ? T(t) : (xt(e.target), e.target.click()));
}, 80);
_(t.currentTarget, "click", () => n = !0, !0), e.disposables.push(() => clearTimeout(r));
} else T(t);
@@ -3966,7 +4069,7 @@ function ua(e) {
T(e);
};
t.onDragStart = (e) => {
- z(e.currentTarget, B(e)) && T(e);
+ R(e.currentTarget, z(e)) && T(e);
};
}
return t;
@@ -3981,40 +4084,40 @@ function ua(e) {
D,
O
]);
- return (0, b.useEffect)(() => {
+ return (0, x.useEffect)(() => {
if (!f) return;
- let e = R(f.current);
- if (!e || !e.head || e.getElementById(ca)) return;
+ let e = L(f.current);
+ if (!e || !e.head || e.getElementById(da)) return;
let t = e.createElement("style");
- t.id = ca;
- let n = na(e);
+ t.id = da;
+ let n = aa(e);
n && (t.nonce = n), t.textContent = `
@layer {
- [${la}] {
+ [${fa}] {
touch-action: pan-x pan-y pinch-zoom;
}
}
`.trim(), e.head.prepend(t);
- }, [f]), (0, b.useEffect)(() => {
+ }, [f]), (0, x.useEffect)(() => {
let e = g.current;
return () => {
- d || W(e.target ?? void 0);
+ d || na(e.target ?? void 0);
for (let t of e.disposables) t();
e.disposables = [];
};
}, [d]), {
isPressed: c || m,
- pressProps: U(p, k, { [la]: !0 })
+ pressProps: H(p, k, { [fa]: !0 })
};
}
-function da(e) {
+function ma(e) {
return e.tagName === "A" && e.hasAttribute("href");
}
-function fa(e, t) {
+function ha(e, t) {
let { key: n, code: r } = e, i = t, a = i.getAttribute("role");
- return (n === "Enter" || n === " " || n === "Spacebar" || r === "Space") && !(i instanceof St(i).HTMLInputElement && !_a(i, n) || i instanceof St(i).HTMLTextAreaElement || i.isContentEditable) && !((a === "link" || !a && da(i)) && n !== "Enter");
+ return (n === "Enter" || n === " " || n === "Spacebar" || r === "Space") && !(i instanceof Et(i).HTMLInputElement && !ba(i, n) || i instanceof Et(i).HTMLTextAreaElement || i.isContentEditable) && !((a === "link" || !a && ma(i)) && n !== "Enter");
}
-function pa(e, t) {
+function ga(e, t) {
let n = t.clientX, r = t.clientY;
return {
currentTarget: e,
@@ -4027,13 +4130,13 @@ function pa(e, t) {
key: t.key
};
}
-function ma(e) {
- return e instanceof HTMLInputElement ? !1 : e instanceof HTMLButtonElement ? e.type !== "submit" && e.type !== "reset" : !da(e);
+function _a(e) {
+ return e instanceof HTMLInputElement ? !1 : e instanceof HTMLButtonElement ? e.type !== "submit" && e.type !== "reset" : !ma(e);
}
-function ha(e, t) {
- return Zt() && t === "Enter" ? !1 : e instanceof HTMLInputElement ? t === "Enter" && (e.type === "checkbox" || e.type === "radio") ? !1 : !_a(e, t) : ma(e);
+function va(e, t) {
+ return tn() && t === "Enter" ? !1 : e instanceof HTMLInputElement ? t === "Enter" && (e.type === "checkbox" || e.type === "radio") ? !1 : !ba(e, t) : _a(e);
}
-var ga = /* @__PURE__ */ new Set([
+var ya = /* @__PURE__ */ new Set([
"checkbox",
"radio",
"range",
@@ -4044,12 +4147,12 @@ var ga = /* @__PURE__ */ new Set([
"submit",
"reset"
]);
-function _a(e, t) {
- return e.type === "checkbox" || e.type === "radio" ? t === " " : ga.has(e.type);
+function ba(e, t) {
+ return e.type === "checkbox" || e.type === "radio" ? t === " " : ya.has(e.type);
}
//#endregion
//#region node_modules/react-aria/dist/private/button/useButton.mjs
-function va(e, t) {
+function xa(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,
@@ -4071,7 +4174,7 @@ function va(e, t) {
"aria-disabled": !r || n === "input" ? void 0 : r,
rel: n === "a" ? m : void 0
};
- let { pressProps: _, isPressed: v } = ua({
+ let { pressProps: _, isPressed: v } = pa({
onPressStart: a,
onPressEnd: o,
onPressChange: c,
@@ -4081,12 +4184,12 @@ function va(e, t) {
isDisabled: r,
preventFocusOnPress: l,
ref: t
- }), { focusableProps: y } = Nr(e, t);
+ }), { focusableProps: y } = Lr(e, t);
u && (y.tabIndex = r ? -1 : y.tabIndex);
- let b = U(y, _, Yi(e, { labelable: !0 }));
+ let b = H(y, _, U(e, { labelable: !0 }));
return {
isPressed: v,
- buttonProps: U(g, b, {
+ buttonProps: H(g, b, {
"aria-haspopup": e["aria-haspopup"],
"aria-expanded": e["aria-expanded"],
"aria-controls": e["aria-controls"],
@@ -4098,7 +4201,7 @@ function va(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/shadowdom/ShadowTreeWalker.mjs
-var ya = class {
+var Sa = class {
constructor(e, t, n, r) {
this._walkerStack = [], this._currentSetFor = /* @__PURE__ */ new Set(), this._acceptNode = (e) => {
if (e.nodeType === Node.ELEMENT_NODE) {
@@ -4123,7 +4226,7 @@ var ya = class {
return this._currentNode;
}
set currentNode(e) {
- if (!z(this.root, e)) throw Error("Cannot set currentNode to a node that is not contained by the root node.");
+ if (!R(this.root, e)) throw Error("Cannot set currentNode to a node that is not contained by the root node.");
let t = [], n = e, r = e;
for (this._currentNode = e; n && n !== this.root;) if (n.nodeType === Node.DOCUMENT_FRAGMENT_NODE) {
let e = n, i = this._doc.createTreeWalker(e, this.whatToShow, { acceptNode: this._acceptNode });
@@ -4137,7 +4240,7 @@ var ya = class {
}
firstChild() {
let e = this.currentNode, t = this.nextNode();
- return z(e, t) ? (t && (this.currentNode = t), t) : (this.currentNode = e, null);
+ return R(e, t) ? (t && (this.currentNode = t), t) : (this.currentNode = e, null);
}
lastChild() {
let e = this._walkerStack[0].lastChild();
@@ -4201,202 +4304,202 @@ var ya = class {
return null;
}
};
-function ba(e, t, n, r) {
- return At() ? new ya(e, t, n, r) : e.createTreeWalker(t, n, r);
+function Ca(e, t, n, r) {
+ return Pt() ? new Sa(e, t, n, r) : e.createTreeWalker(t, n, r);
}
//#endregion
//#region node_modules/react-aria/dist/private/focus/FocusScope.mjs
-var xa = /*#__PURE__*/ b.createContext(null), Sa = "react-aria-focus-scope-restore", Ca = null;
-function wa(e) {
- let { children: t, contain: n, restoreFocus: r, autoFocus: i } = e, a = (0, b.useRef)(null), o = (0, b.useRef)(null), s = (0, b.useRef)([]), { parentNode: c } = (0, b.useContext)(xa) || {}, l = (0, b.useMemo)(() => new Ka({ scopeRef: s }), [s]);
- H(() => {
- let e = c || qa.root;
- if (qa.getTreeNode(e.scopeRef) && Ca && !Fa(Ca, e.scopeRef)) {
- let t = qa.getTreeNode(Ca);
+var wa = /*#__PURE__*/ x.createContext(null), Ta = "react-aria-focus-scope-restore", G = null;
+function Ea(e) {
+ let { children: t, contain: n, restoreFocus: r, autoFocus: i } = e, a = (0, x.useRef)(null), o = (0, x.useRef)(null), s = (0, x.useRef)([]), { parentNode: c } = (0, x.useContext)(wa) || {}, l = (0, x.useMemo)(() => new Ja({ scopeRef: s }), [s]);
+ V(() => {
+ let e = c || Ya.root;
+ if (Ya.getTreeNode(e.scopeRef) && G && !La(G, e.scopeRef)) {
+ let t = Ya.getTreeNode(G);
t && (e = t);
}
- e.addChild(l), qa.addNode(l);
- }, [l, c]), H(() => {
- let e = qa.getTreeNode(s);
+ e.addChild(l), Ya.addNode(l);
+ }, [l, c]), V(() => {
+ let e = Ya.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(Sa, n), e = e.nextSibling;
+ for (; e && e !== o.current;) t.push(e), e.addEventListener(Ta, n), e = e.nextSibling;
return s.current = t, () => {
- for (let e of t) e.removeEventListener(Sa, n);
+ for (let e of t) e.removeEventListener(Ta, n);
};
- }, [t]), Ba(s, r, n), Aa(s, n), Ha(s, r, n), za(s, i), (0, b.useEffect)(() => {
- let e = jt(R(s.current ? s.current[0] : void 0)), t = null;
- if (Ma(e, s.current)) {
- for (let n of qa.traverse()) n.scopeRef && Ma(e, n.scopeRef.current) && (t = n);
- t === qa.getTreeNode(s) && (Ca = t.scopeRef);
- }
- }, [s]), H(() => () => {
- let e = qa.getTreeNode(s)?.parent?.scopeRef ?? null;
- (s === Ca || Fa(s, Ca)) && (!e || qa.getTreeNode(e)) && (Ca = e), qa.removeTreeNode(s);
+ }, [t]), Ha(s, r, n), Ma(s, n), Wa(s, r, n), Va(s, i), (0, x.useEffect)(() => {
+ let e = Ft(L(s.current ? s.current[0] : void 0)), t = null;
+ if (Pa(e, s.current)) {
+ for (let n of Ya.traverse()) n.scopeRef && Pa(e, n.scopeRef.current) && (t = n);
+ t === Ya.getTreeNode(s) && (G = t.scopeRef);
+ }
+ }, [s]), V(() => () => {
+ let e = Ya.getTreeNode(s)?.parent?.scopeRef ?? null;
+ (s === G || La(s, G)) && (!e || Ya.getTreeNode(e)) && (G = e), Ya.removeTreeNode(s);
}, [s]);
- let u = (0, b.useMemo)(() => Ta(s), []), d = (0, b.useMemo)(() => ({
+ let u = (0, x.useMemo)(() => Da(s), []), d = (0, x.useMemo)(() => ({
focusManager: u,
parentNode: l
}), [l, u]);
- return /*#__PURE__*/ b.createElement(xa.Provider, { value: d }, /*#__PURE__*/ b.createElement("span", {
+ return /*#__PURE__*/ x.createElement(wa.Provider, { value: d }, /*#__PURE__*/ x.createElement("span", {
"data-focus-scope-start": !0,
hidden: !0,
ref: a
- }), t, /*#__PURE__*/ b.createElement("span", {
+ }), t, /*#__PURE__*/ x.createElement("span", {
"data-focus-scope-end": !0,
hidden: !0,
ref: o
}));
}
-function Ta(e) {
+function Da(e) {
return {
focusNext(t = {}) {
- let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || jt(R(n[0] ?? void 0)), c = n[0].previousElementSibling, l = Wa(Ea(n), {
+ let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || Ft(L(n[0] ?? void 0)), c = n[0].previousElementSibling, l = Ka(Oa(n), {
tabbable: i,
accept: o
}, n);
- l.currentNode = Ma(s, n) ? s : c;
+ l.currentNode = Pa(s, n) ? s : c;
let u = l.nextNode();
- return !u && a && (l.currentNode = c, u = l.nextNode()), u && Ia(u, !0), u;
+ return !u && a && (l.currentNode = c, u = l.nextNode()), u && Ra(u, !0), u;
},
focusPrevious(t = {}) {
- let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || jt(R(n[0] ?? void 0)), c = n[n.length - 1].nextElementSibling, l = Wa(Ea(n), {
+ let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || Ft(L(n[0] ?? void 0)), c = n[n.length - 1].nextElementSibling, l = Ka(Oa(n), {
tabbable: i,
accept: o
}, n);
- l.currentNode = Ma(s, n) ? s : c;
+ l.currentNode = Pa(s, n) ? s : c;
let u = l.previousNode();
- return !u && a && (l.currentNode = c, u = l.previousNode()), u && Ia(u, !0), u;
+ return !u && a && (l.currentNode = c, u = l.previousNode()), u && Ra(u, !0), u;
},
focusFirst(t = {}) {
- let n = e.current, { tabbable: r, accept: i } = t, a = Wa(Ea(n), {
+ let n = e.current, { tabbable: r, accept: i } = t, a = Ka(Oa(n), {
tabbable: r,
accept: i
}, n);
a.currentNode = n[0].previousElementSibling;
let o = a.nextNode();
- return o && Ia(o, !0), o;
+ return o && Ra(o, !0), o;
},
focusLast(t = {}) {
- let n = e.current, { tabbable: r, accept: i } = t, a = Wa(Ea(n), {
+ let n = e.current, { tabbable: r, accept: i } = t, a = Ka(Oa(n), {
tabbable: r,
accept: i
}, n);
a.currentNode = n[n.length - 1].nextElementSibling;
let o = a.previousNode();
- return o && Ia(o, !0), o;
+ return o && Ra(o, !0), o;
}
};
}
-function Ea(e) {
+function Oa(e) {
return e[0].parentElement;
}
-function Da(e) {
- let t = qa.getTreeNode(Ca);
+function ka(e) {
+ let t = Ya.getTreeNode(G);
for (; t && t.scopeRef !== e;) {
if (t.contain) return !1;
t = t.parent;
}
return !0;
}
-function Oa(e) {
- if (!e.form) return Array.from(R(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter((e) => !e.form);
- let t = e.form.elements.namedItem(e.name), n = St(e);
+function Aa(e) {
+ if (!e.form) return Array.from(L(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter((e) => !e.form);
+ let t = e.form.elements.namedItem(e.name), n = Et(e);
return t instanceof n.RadioNodeList ? Array.from(t).filter((e) => e instanceof n.HTMLInputElement) : t instanceof n.HTMLInputElement ? [t] : [];
}
-function ka(e) {
+function ja(e) {
if (e.checked) return !0;
- let t = Oa(e);
+ let t = Aa(e);
return t.length > 0 && !t.some((e) => e.checked);
}
-function Aa(e, t) {
- let n = (0, b.useRef)(void 0), r = (0, b.useRef)(void 0);
- H(() => {
+function Ma(e, t) {
+ let n = (0, x.useRef)(void 0), r = (0, x.useRef)(void 0);
+ V(() => {
let i = e.current;
if (!t) {
r.current &&= (cancelAnimationFrame(r.current), void 0);
return;
}
- let a = R(i ? i[0] : void 0), o = (t) => {
- if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !Da(e) || t.isComposing) return;
- let n = jt(a), r = e.current;
- if (!r || !Ma(n, r)) return;
- let i = Wa(Ea(r), { tabbable: !0 }, r);
+ let a = L(i ? i[0] : void 0), o = (t) => {
+ if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !ka(e) || t.isComposing) return;
+ let n = Ft(a), r = e.current;
+ if (!r || !Pa(n, r)) return;
+ let i = Ka(Oa(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 && (Ia(o, !0), o instanceof St(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 && (Ra(o, !0), o instanceof Et(o).HTMLInputElement && o.select());
}, s = (t) => {
- (!Ca || Fa(Ca, e)) && Ma(B(t), e.current) ? (Ca = e, n.current = B(t)) : Da(e) && !Na(B(t), e) ? n.current ? Ia(n.current) : Ca && Ca.current && Ra(Ca.current) : Da(e) && (n.current = B(t));
+ (!G || La(G, e)) && Pa(z(t), e.current) ? (G = e, n.current = z(t)) : ka(e) && !Fa(z(t), e) ? n.current ? Ra(n.current) : G && G.current && Ba(G.current) : ka(e) && (n.current = z(t));
}, c = (t) => {
r.current && cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
- let r = Wn(), i = (r === "virtual" || r === null) && an() && rn(), o = jt(a);
- if (!i && o && Da(e) && !Na(o, e)) {
- Ca = e;
- let r = B(t);
- r && r.isConnected ? (n.current = r, Ia(n.current)) : Ca.current && Ra(Ca.current);
+ let r = Jn(), i = (r === "virtual" || r === null) && ln() && cn(), o = Ft(a);
+ if (!i && o && ka(e) && !Fa(o, e)) {
+ G = e;
+ let r = z(t);
+ r && r.isConnected ? (n.current = r, Ra(n.current)) : G.current && Ba(G.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 ja(e) {
- return Na(e);
+function Na(e) {
+ return Fa(e);
}
-function Ma(e, t) {
- return !e || !t ? !1 : t.some((t) => z(t, e));
+function Pa(e, t) {
+ return !e || !t ? !1 : t.some((t) => R(t, e));
}
-function Na(e, t = null) {
+function Fa(e, t = null) {
if (e instanceof Element && e.closest("[data-react-aria-top-layer]")) return !0;
- for (let { scopeRef: n } of qa.traverse(qa.getTreeNode(t))) if (n && Ma(e, n.current)) return !0;
+ for (let { scopeRef: n } of Ya.traverse(Ya.getTreeNode(t))) if (n && Pa(e, n.current)) return !0;
return !1;
}
-function Pa(e) {
- return Na(e, Ca);
+function Ia(e) {
+ return Fa(e, G);
}
-function Fa(e, t) {
- let n = qa.getTreeNode(t)?.parent;
+function La(e, t) {
+ let n = Ya.getTreeNode(t)?.parent;
for (; n;) {
if (n.scopeRef === e) return !0;
n = n.parent;
}
return !1;
}
-function Ia(e, t = !1) {
+function Ra(e, t = !1) {
if (e != null && !t) try {
- er(e);
+ ir(e);
} catch {}
else if (e != null) try {
e.focus();
} catch {}
}
-function La(e, t = !0) {
- let n = e[0].previousElementSibling, r = Ea(e), i = Wa(r, { tabbable: t }, e);
+function za(e, t = !0) {
+ let n = e[0].previousElementSibling, r = Oa(e), i = Ka(r, { tabbable: t }, e);
i.currentNode = n;
let a = i.nextNode();
- return t && !a && (r = Ea(e), i = Wa(r, { tabbable: !1 }, e), i.currentNode = n, a = i.nextNode()), a;
+ return t && !a && (r = Oa(e), i = Ka(r, { tabbable: !1 }, e), i.currentNode = n, a = i.nextNode()), a;
}
-function Ra(e, t = !0) {
- Ia(La(e, t));
+function Ba(e, t = !0) {
+ Ra(za(e, t));
}
-function za(e, t) {
- let n = b.useRef(t);
- (0, b.useEffect)(() => {
- n.current && (Ca = e, !Ma(jt(R(e.current ? e.current[0] : void 0)), Ca.current) && e.current && Ra(e.current)), n.current = !1;
+function Va(e, t) {
+ let n = x.useRef(t);
+ (0, x.useEffect)(() => {
+ n.current && (G = e, !Pa(Ft(L(e.current ? e.current[0] : void 0)), G.current) && e.current && Ba(e.current)), n.current = !1;
}, [e]);
}
-function Ba(e, t, n) {
- H(() => {
+function Ha(e, t, n) {
+ V(() => {
if (t || n) return;
- let r = e.current, i = R(r ? r[0] : void 0), a = (t) => {
- let n = B(t);
- Ma(n, e.current) ? Ca = e : ja(n) || (Ca = null);
+ let r = e.current, i = L(r ? r[0] : void 0), a = (t) => {
+ let n = z(t);
+ Pa(n, e.current) ? G = e : Na(n) || (G = 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));
@@ -4407,43 +4510,43 @@ function Ba(e, t, n) {
n
]);
}
-function Va(e) {
- let t = qa.getTreeNode(Ca);
+function Ua(e) {
+ let t = Ya.getTreeNode(G);
for (; t && t.scopeRef !== e;) {
if (t.nodeToRestore) return !1;
t = t.parent;
}
return t?.scopeRef === e;
}
-function Ha(e, t, n) {
- let r = (0, b.useRef)(typeof document < "u" ? jt(R(e.current ? e.current[0] : void 0)) : null);
- H(() => {
- let r = e.current, i = R(r ? r[0] : void 0);
+function Wa(e, t, n) {
+ let r = (0, x.useRef)(typeof document < "u" ? Ft(L(e.current ? e.current[0] : void 0)) : null);
+ V(() => {
+ let r = e.current, i = L(r ? r[0] : void 0);
if (!t || n) return;
let a = () => {
- (!Ca || Fa(Ca, e)) && Ma(jt(i), e.current) && (Ca = e);
+ (!G || La(G, e)) && Pa(Ft(i), e.current) && (G = 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(() => {
- let r = R(e.current ? e.current[0] : void 0);
+ }, [e, n]), V(() => {
+ let r = L(e.current ? e.current[0] : void 0);
if (!t) return;
let i = (t) => {
- if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !Da(e) || t.isComposing) return;
+ if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !ka(e) || t.isComposing) return;
let n = r.activeElement;
- if (!Na(n, e) || !Va(e)) return;
- let i = qa.getTreeNode(e);
+ if (!Fa(n, e) || !Ua(e)) return;
+ let i = Ya.getTreeNode(e);
if (!i) return;
- let a = i.nodeToRestore, o = Wa(r.body, { tabbable: !0 });
+ let a = i.nodeToRestore, o = Ka(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 || !Na(s, e)) && a) {
+ if ((!a || !a.isConnected || a === r.body) && (a = void 0, i.nodeToRestore = void 0), (!s || !Fa(s, e)) && a) {
o.currentNode = a;
do
s = t.shiftKey ? o.previousNode() : o.nextNode();
- while (Na(s, e));
- t.preventDefault(), t.stopPropagation(), s ? Ia(s, !0) : ja(a) ? Ia(a, !0) : n.blur();
+ while (Fa(s, e));
+ t.preventDefault(), t.stopPropagation(), s ? Ra(s, !0) : Na(a) ? Ra(a, !0) : n.blur();
}
};
return n || r.addEventListener("keydown", i, !0), () => {
@@ -4453,31 +4556,31 @@ function Ha(e, t, n) {
e,
t,
n
- ]), H(() => {
- let n = R(e.current ? e.current[0] : void 0);
+ ]), V(() => {
+ let n = L(e.current ? e.current[0] : void 0);
if (!t) return;
- let i = qa.getTreeNode(e);
+ let i = Ya.getTreeNode(e);
if (i) return i.nodeToRestore = r.current ?? void 0, () => {
- let r = qa.getTreeNode(e);
+ let r = Ya.getTreeNode(e);
if (!r) return;
- let i = r.nodeToRestore, a = jt(n);
- if (t && i && (a && Na(a, e) || a === n.body && Va(e))) {
- let t = qa.clone();
+ let i = r.nodeToRestore, a = Ft(n);
+ if (t && i && (a && Fa(a, e) || a === n.body && Ua(e))) {
+ let t = Ya.clone();
requestAnimationFrame(() => {
if (n.activeElement === n.body) {
let n = t.getTreeNode(e);
for (; n;) {
if (n.nodeToRestore && n.nodeToRestore.isConnected) {
- Ua(n.nodeToRestore);
+ Ga(n.nodeToRestore);
return;
}
n = n.parent;
}
for (n = t.getTreeNode(e); n;) {
- if (n.scopeRef && n.scopeRef.current && qa.getTreeNode(n.scopeRef)) {
- let e = La(n.scopeRef.current, !0);
+ if (n.scopeRef && n.scopeRef.current && Ya.getTreeNode(n.scopeRef)) {
+ let e = za(n.scopeRef.current, !0);
if (e) {
- Ua(e);
+ Ga(e);
return;
}
}
@@ -4489,21 +4592,21 @@ function Ha(e, t, n) {
};
}, [e, t]);
}
-function Ua(e) {
- e.dispatchEvent(new CustomEvent(Sa, {
+function Ga(e) {
+ e.dispatchEvent(new CustomEvent(Ta, {
bubbles: !0,
cancelable: !0
- })) && Ia(e);
+ })) && Ra(e);
}
-function Wa(e, t, n) {
- let r = t?.tabbable ? V : Vt, i = R(e?.nodeType === Node.ELEMENT_NODE ? e : null), a = ba(i, e || i, NodeFilter.SHOW_ELEMENT, { acceptNode(e) {
- return z(t?.from, e) || t?.tabbable && e.tagName === "INPUT" && e.getAttribute("type") === "radio" && (!ka(e) || a.currentNode.tagName === "INPUT" && a.currentNode.type === "radio" && a.currentNode.name === e.name) ? NodeFilter.FILTER_REJECT : r(e) && (!n || Ma(e, n)) && (!t?.accept || t.accept(e)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
+function Ka(e, t, n) {
+ let r = t?.tabbable ? Gt : Wt, i = L(e?.nodeType === Node.ELEMENT_NODE ? e : null), a = Ca(i, e || i, NodeFilter.SHOW_ELEMENT, { acceptNode(e) {
+ return R(t?.from, e) || t?.tabbable && e.tagName === "INPUT" && e.getAttribute("type") === "radio" && (!ja(e) || a.currentNode.tagName === "INPUT" && a.currentNode.type === "radio" && a.currentNode.name === e.name) ? NodeFilter.FILTER_REJECT : r(e) && (!n || Pa(e, n)) && (!t?.accept || t.accept(e)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
} });
return t?.from && (a.currentNode = t.from), a;
}
-var Ga = class e {
+var qa = class e {
constructor() {
- this.fastMap = /* @__PURE__ */ new Map(), this.root = new Ka({ scopeRef: null }), this.fastMap.set(null, this.root);
+ this.fastMap = /* @__PURE__ */ new Map(), this.root = new Ja({ scopeRef: null }), this.fastMap.set(null, this.root);
}
get size() {
return this.fastMap.size;
@@ -4514,7 +4617,7 @@ var Ga = class e {
addTreeNode(e, t, n) {
let r = this.fastMap.get(t ?? null);
if (!r) return;
- let i = new Ka({ scopeRef: e });
+ let i = new Ja({ scopeRef: e });
r.addChild(i), i.parent = r, this.fastMap.set(e, i), n && (i.nodeToRestore = n);
}
addNode(e) {
@@ -4525,7 +4628,7 @@ var Ga = 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 && Ma(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 && Pa(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);
}
@@ -4537,7 +4640,7 @@ var Ga = class e {
for (let e of this.traverse()) t.addTreeNode(e.scopeRef, e.parent?.scopeRef ?? null, e.nodeToRestore);
return t;
}
-}, Ka = class {
+}, Ja = class {
constructor(e) {
this.children = /* @__PURE__ */ new Set(), this.contain = !1, this.scopeRef = e.scopeRef;
}
@@ -4547,13 +4650,13 @@ var Ga = class e {
removeChild(e) {
this.children.delete(e), e.parent = void 0;
}
-}, qa = new Ga(), Ja = 7e3, Ya = null;
-function Xa(e, t = "assertive", n = Ja) {
- Ya ? Ya.announce(e, t, n) : (Ya = new Za(), (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") ? Ya.announce(e, t, n) : setTimeout(() => {
- Ya?.isAttached() && Ya?.announce(e, t, n);
+}, Ya = new qa(), Xa = 7e3, Za = null;
+function Qa(e, t = "assertive", n = Xa) {
+ Za ? Za.announce(e, t, n) : (Za = new $a(), (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") ? Za.announce(e, t, n) : setTimeout(() => {
+ Za?.isAttached() && Za?.announce(e, t, n);
}, 100));
}
-var Za = class {
+var $a = 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,
@@ -4578,7 +4681,7 @@ var Za = class {
destroy() {
this.node &&= (document.body.removeChild(this.node), null);
}
- announce(e, t = "assertive", n = Ja) {
+ announce(e, t = "assertive", n = Xa) {
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(() => {
@@ -4591,46 +4694,46 @@ var Za = class {
};
//#endregion
//#region node_modules/react-aria/dist/private/utils/isScrollable.mjs
-function Qa(e, t) {
+function eo(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 $a(e, t) {
+function to(e, t) {
let n = e;
- for (Qa(n, t) && (n = n.parentElement); n && !Qa(n, t);) n = n.parentElement;
+ for (eo(n, t) && (n = n.parentElement); n && !eo(n, t);) n = n.parentElement;
return n || document.scrollingElement || document.documentElement;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/getScrollParents.mjs
-function eo(e, t) {
+function no(e, t) {
let n = [], r = document.scrollingElement || document.documentElement;
- for (; e && (Qa(e, t) && n.push(e), e !== r);) e = e.parentElement;
+ for (; e && (eo(e, t) && n.push(e), e !== r);) e = e.parentElement;
return n;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/scrollIntoView.mjs
-function to(e, t, n = {}) {
- e !== t && no(e, t, t.getBoundingClientRect(), n);
-}
-function no(e, t, n, r = {}) {
- let { block: i = "nearest", inline: a = "nearest" } = r, o = e.scrollTop, s = e.scrollLeft, c = e.getBoundingClientRect(), l = window.getComputedStyle(t), u = window.getComputedStyle(e), d = document.scrollingElement || document.documentElement, f = e === d, p = e === d ? 0 : c.top, m = e === d ? e.clientHeight : c.bottom, h = e === d ? 0 : c.left, g = e === d ? e.clientWidth : c.right, _ = parseFloat(l.scrollMarginTop) || 0, v = parseFloat(l.scrollMarginBottom) || 0, y = parseFloat(l.scrollMarginLeft) || 0, b = parseFloat(l.scrollMarginRight) || 0, x = parseFloat(u.scrollPaddingTop) || 0, S = parseFloat(u.scrollPaddingBottom) || 0, C = parseFloat(u.scrollPaddingLeft) || 0, w = parseFloat(u.scrollPaddingRight) || 0, T = parseFloat(u.borderTopWidth) || 0, E = parseFloat(u.borderBottomWidth) || 0, D = parseFloat(u.borderLeftWidth) || 0, O = parseFloat(u.borderRightWidth) || 0, k = n.top - _, A = n.bottom + v, j = n.left - y, M = n.right + b, N = e === d ? 0 : D + O, ee = e === d ? 0 : T + E, te = e === d ? 0 : e.offsetWidth - e.clientWidth - N, P = e === d ? 0 : e.offsetHeight - e.clientHeight - ee, ne = p + (f ? 0 : T) + x, F = m - (f ? 0 : E) - S - P, re = h + (f ? 0 : D) + C, ie = g - (f ? 0 : O) - w;
- en() && nn() || u.direction === "ltr" ? ie -= te : u.direction === "rtl" && (re += te);
- let ae = k < ne || A > F, oe = j < re || M > ie;
- if (ae && i === "start") o += k - ne;
- else if (ae && i === "center") o += (k + A) / 2 - (ne + F) / 2;
- else if (ae && i === "end") o += A - F;
- else if (ae && i === "nearest") {
- let e = k - ne, t = A - F;
+function ro(e, t, n = {}) {
+ e !== t && io(e, t, t.getBoundingClientRect(), n);
+}
+function io(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, ee = n.left - y, j = n.right + b, te = e === d ? 0 : D + O, M = e === d ? 0 : T + E, ne = e === d ? 0 : e.offsetWidth - e.clientWidth - te, N = e === d ? 0 : e.offsetHeight - e.clientHeight - M, re = p + (f ? 0 : T) + x, P = m - (f ? 0 : E) - S - N, ie = h + (f ? 0 : D) + C, ae = g - (f ? 0 : O) - w;
+ an() && sn() || u.direction === "ltr" ? ae -= ne : u.direction === "rtl" && (ie += ne);
+ let oe = k < re || A > P, se = ee < ie || j > ae;
+ if (oe && i === "start") o += k - re;
+ else if (oe && i === "center") o += (k + A) / 2 - (re + P) / 2;
+ else if (oe && i === "end") o += A - P;
+ else if (oe && i === "nearest") {
+ let e = k - re, t = A - P;
o += Math.abs(e) <= Math.abs(t) ? e : t;
}
- if (oe && a === "start") s += j - re;
- else if (oe && a === "center") s += (j + M) / 2 - (re + ie) / 2;
- else if (oe && a === "end") s += M - ie;
- else if (oe && a === "nearest") {
- let e = j - re, t = M - ie;
+ if (se && a === "start") s += ee - ie;
+ else if (se && a === "center") s += (ee + j) / 2 - (ie + ae) / 2;
+ else if (se && a === "end") s += j - ae;
+ else if (se && a === "nearest") {
+ let e = ee - ie, t = j - ae;
s += Math.abs(e) <= Math.abs(t) ? e : t;
}
e.scrollTo({
@@ -4638,7 +4741,7 @@ function no(e, t, n, r = {}) {
top: o
});
}
-function ro(e, t = {}) {
+function ao(e, t = {}) {
let { containingElement: n } = t;
if (e && e.isConnected) {
let t = document.scrollingElement || document.documentElement;
@@ -4651,50 +4754,50 @@ function ro(e, t = {}) {
inline: "center"
}), e.scrollIntoView?.({ block: "nearest" }));
} else {
- let { left: t, top: r } = e.getBoundingClientRect(), i = eo(e, !0);
- for (let t of i) to(t, e);
+ let { left: t, top: r } = e.getBoundingClientRect(), i = no(e, !0);
+ for (let t of i) ro(t, e);
let { left: a, top: o } = e.getBoundingClientRect();
if (Math.abs(t - a) > 1 || Math.abs(r - o) > 1) {
- i = n ? eo(n, !0) : [];
- for (let e of i) to(e, n, {
+ i = n ? no(n, !0) : [];
+ for (let e of i) ro(e, n, {
block: "center",
inline: "center"
});
- for (let t of eo(e, !0)) to(t, e);
+ for (let t of no(e, !0)) ro(t, e);
}
}
}
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useDescription.mjs
-var io = 0, ao = /* @__PURE__ */ new Map();
-function oo(e) {
- let [t, n] = (0, b.useState)();
- return H(() => {
+var oo = 0, so = /* @__PURE__ */ new Map();
+function co(e) {
+ let [t, n] = (0, x.useState)();
+ return V(() => {
if (!e) return;
- let t = ao.get(e);
+ let t = so.get(e);
if (t) n(t.element.id);
else {
- let r = `react-aria-description-${io++}`;
+ let r = `react-aria-description-${oo++}`;
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
- }, ao.set(e, t);
+ }, so.set(e, t);
}
return t.refCount++, () => {
- t && --t.refCount === 0 && (t.element.remove(), ao.delete(e));
+ t && --t.refCount === 0 && (t.element.remove(), so.delete(e));
};
}, [e]), { "aria-describedby": e ? t : void 0 };
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useFormReset.mjs
-function so(e, t, n) {
- let r = hi((e) => {
+function lo(e, t, n) {
+ let r = yi((e) => {
n && !e.defaultPrevented && n(t);
});
- (0, b.useEffect)(() => {
+ (0, x.useEffect)(() => {
let t = e?.current?.form;
return t?.addEventListener("reset", r), () => {
t?.removeEventListener("reset", r);
@@ -4703,35 +4806,35 @@ function so(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/form/useFormValidation.mjs
-function co(e, t, n) {
+function uo(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(uo(n.current));
+ n.current.setCustomValidity(e), n.current.hasAttribute("title") || (n.current.title = ""), t.realtimeValidation.isInvalid || t.updateValidation(po(n.current));
}
});
- let a = (0, b.useRef)(!1), o = hi(() => {
+ let a = (0, x.useRef)(!1), o = yi(() => {
a.current || t.resetValidation();
- }), s = hi((e) => {
+ }), s = yi((e) => {
t.displayValidation.isInvalid || t.commitValidation();
let r = n?.current?.form;
- !e.defaultPrevented && n && r && fo(r) === n.current && (i ? i() : n.current?.focus(), Gn("keyboard")), e.preventDefault();
- }), c = hi(() => {
+ !e.defaultPrevented && n && r && mo(r) === n.current && (i ? i() : n.current?.focus(), Yn("keyboard")), e.preventDefault();
+ }), c = yi(() => {
t.commitValidation();
});
- (0, b.useEffect)(() => {
+ (0, x.useEffect)(() => {
let e = n?.current;
if (!e) return;
let t = e.form, r = t?.reset;
return t && (t.reset = () => {
- a.current = !window.event || window.event.type === "message" && B(window.event) instanceof MessagePort, r?.call(t), a.current = !1;
+ a.current = !window.event || window.event.type === "message" && z(window.event) instanceof MessagePort, r?.call(t), a.current = !1;
}), e.addEventListener("invalid", s), e.addEventListener("change", c), t?.addEventListener("reset", o), () => {
e.removeEventListener("invalid", s), e.removeEventListener("change", c), t?.removeEventListener("reset", o), t && (t.reset = r);
};
}, [n, r]);
}
-function lo(e) {
+function fo(e) {
let t = e.validity;
return {
badInput: t.badInput,
@@ -4747,14 +4850,14 @@ function lo(e) {
valid: t.valid
};
}
-function uo(e) {
+function po(e) {
return {
isInvalid: !e.validity.valid,
- validationDetails: lo(e),
+ validationDetails: fo(e),
validationErrors: e.validationMessage ? [e.validationMessage] : []
};
}
-function fo(e) {
+function mo(e) {
for (let t = 0; t < e.elements.length; t++) {
let n = e.elements[t];
if (n.validity?.valid === !1) return n;
@@ -4763,16 +4866,16 @@ function fo(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useSlot.mjs
-function po(e = !0) {
- let [t, n] = (0, b.useState)(e), r = (0, b.useRef)(!1), i = (0, b.useCallback)((e) => {
+function ho(e = !0) {
+ let [t, n] = (0, x.useState)(e), r = (0, x.useRef)(!1), i = (0, x.useCallback)((e) => {
r.current = !0, n(!!e);
}, []);
- return H(() => {
+ return V(() => {
r.current || n(!1);
}, []), [i, t];
}
-function mo(e = !0) {
- let t = sr(), [n, r] = po(e);
+function go(e = !0) {
+ let t = dr(), [n, r] = ho(e);
return {
id: r ? t : void 0,
ref: n
@@ -4780,7 +4883,7 @@ function mo(e = !0) {
}
//#endregion
//#region node_modules/react-stately/dist/private/form/useFormValidationState.mjs
-var ho = {
+var _o = {
badInput: !1,
customError: !1,
patternMismatch: !1,
@@ -4792,18 +4895,18 @@ var ho = {
typeMismatch: !1,
valueMissing: !1,
valid: !0
-}, go = {
- ...ho,
+}, vo = {
+ ..._o,
customError: !0,
valid: !1
-}, _o = {
+}, yo = {
isInvalid: !1,
- validationDetails: ho,
+ validationDetails: _o,
validationErrors: []
-}, vo = (0, b.createContext)({}), yo = "__reactAriaFormValidationState";
-function bo(e) {
+}, bo = (0, x.createContext)({}), xo = "__reactAriaFormValidationState";
+function So(e) {
if (e.__reactAriaFormValidationState) {
- let { realtimeValidation: t, displayValidation: n, updateValidation: r, resetValidation: i, commitValidation: a } = e[yo];
+ let { realtimeValidation: t, displayValidation: n, updateValidation: r, resetValidation: i, commitValidation: a } = e[xo];
return {
realtimeValidation: t,
displayValidation: n,
@@ -4812,71 +4915,71 @@ function bo(e) {
commitValidation: a
};
}
- return xo(e);
+ return Co(e);
}
-function xo(e) {
+function Co(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: go
- }, l = (0, b.useMemo)(() => !o || i == null ? null : wo(Co(o, i)), [o, i]);
+ validationDetails: vo
+ }, l = (0, x.useMemo)(() => !o || i == null ? null : Eo(To(o, i)), [o, i]);
a?.validationDetails.valid && (a = void 0);
- let u = (0, b.useContext)(vo), d = (0, b.useMemo)(() => r ? Array.isArray(r) ? r.flatMap((e) => So(u[e])) : So(u[r]) : [], [u, r]), [f, p] = (0, b.useState)(u), [m, h] = (0, b.useState)(!1);
+ let u = (0, x.useContext)(bo), d = (0, x.useMemo)(() => r ? Array.isArray(r) ? r.flatMap((e) => wo(u[e])) : wo(u[r]) : [], [u, r]), [f, p] = (0, x.useState)(u), [m, h] = (0, x.useState)(!1);
u !== f && (p(u), h(!1));
- let g = (0, b.useMemo)(() => wo(m ? [] : d), [m, d]), _ = (0, b.useRef)(_o), [v, y] = (0, b.useState)(_o), x = (0, b.useRef)(_o), S = () => {
+ let g = (0, x.useMemo)(() => Eo(m ? [] : d), [m, d]), _ = (0, x.useRef)(yo), [v, y] = (0, x.useState)(yo), b = (0, x.useRef)(yo), S = () => {
if (!C) return;
w(!1);
let e = l || a || _.current;
- To(e, x.current) || (x.current = e, y(e));
- }, [C, w] = (0, b.useState)(!1);
- return (0, b.useEffect)(S), {
- realtimeValidation: c || g || l || a || _o,
+ Do(e, b.current) || (b.current = e, y(e));
+ }, [C, w] = (0, x.useState)(!1);
+ return (0, x.useEffect)(S), {
+ realtimeValidation: c || g || l || a || yo,
displayValidation: s === "native" ? c || g || v : c || g || l || a || v,
updateValidation(e) {
- s === "aria" && !To(v, e) ? y(e) : _.current = e;
+ s === "aria" && !Do(v, e) ? y(e) : _.current = e;
},
resetValidation() {
- let e = _o;
- To(e, x.current) || (x.current = e, y(e)), s === "native" && w(!1), h(!0);
+ let e = yo;
+ Do(e, b.current) || (b.current = e, y(e)), s === "native" && w(!1), h(!0);
},
commitValidation() {
s === "native" && w(!0), h(!0);
}
};
}
-function So(e) {
+function wo(e) {
return e ? Array.isArray(e) ? e : [e] : [];
}
-function Co(e, t) {
+function To(e, t) {
if (typeof e == "function") {
let n = e(t);
- if (n && typeof n != "boolean") return So(n);
+ if (n && typeof n != "boolean") return wo(n);
}
return [];
}
-function wo(e) {
+function Eo(e) {
return e.length ? {
isInvalid: !0,
validationErrors: e,
- validationDetails: go
+ validationDetails: vo
} : null;
}
-function To(e, t) {
+function Do(e, t) {
return e === t || !!e && !!t && e.isInvalid === t.isInvalid && e.validationErrors.length === t.validationErrors.length && e.validationErrors.every((e, n) => e === t.validationErrors[n]) && Object.entries(e.validationDetails).every(([e, n]) => t.validationDetails[e] === n);
}
//#endregion
//#region node_modules/react-aria/dist/private/toggle/useToggle.mjs
-function Eo(e, t, n) {
- let { isDisabled: r = !1, isReadOnly: i = !1, value: a, name: o, form: s, children: c, isRequired: l, validationBehavior: u = "aria", "aria-label": d, "aria-labelledby": f, "aria-describedby": p, onPressStart: m, onPressEnd: h, onPressChange: g, onPress: _, onPressUp: v, onClick: y } = e, x = bo({
+function Oo(e, t, n) {
+ let { isDisabled: r = !1, isReadOnly: i = !1, value: a, name: o, form: s, children: c, isRequired: l, validationBehavior: u = "aria", "aria-label": d, "aria-labelledby": f, "aria-describedby": p, onPressStart: m, onPressEnd: h, onPressChange: g, onPress: _, onPressUp: v, onClick: y } = e, b = So({
...e,
value: t.isSelected
- }), { isInvalid: S, validationErrors: C, validationDetails: w } = x.displayValidation;
- co(e, x, n);
+ }), { isInvalid: S, validationErrors: C, validationDetails: w } = b.displayValidation;
+ uo(e, b, n);
let T = (e) => {
- e.stopPropagation(), t.setSelected(B(e).checked);
- }, { pressProps: E, isPressed: D } = ua({
+ e.stopPropagation(), t.setSelected(z(e).checked);
+ }, { pressProps: E, isPressed: D } = pa({
onPressStart: m,
onPressEnd: h,
onPressChange: g,
@@ -4884,7 +4987,7 @@ function Eo(e, t, n) {
onPressUp: v,
onClick: y,
isDisabled: r
- }), [O, k] = (0, b.useState)(!1), { pressProps: A } = ua({
+ }), [O, k] = (0, x.useState)(!1), { pressProps: A } = pa({
onPressStart(e) {
if (e.pointerType === "keyboard" || e.pointerType === "virtual") {
e.continuePropagation();
@@ -4913,16 +5016,16 @@ function Eo(e, t, n) {
return;
}
_?.(r), t.toggle(), n.current?.focus();
- let { [yo]: i } = e, { commitValidation: a } = i || x;
+ let { [xo]: i } = e, { commitValidation: a } = i || b;
a();
},
isDisabled: r || i
- }), { focusableProps: j } = Nr(e, n), M = U(E, j), N = Yi(e, { labelable: !0 });
- so(n, t.defaultSelected, t.setSelected);
- let ee = mo(), te = mo();
+ }), { focusableProps: ee } = Lr(e, n), j = H(E, ee), te = U(e, { labelable: !0 });
+ lo(n, t.defaultSelected, t.setSelected);
+ let M = go(), ne = go();
return {
- labelProps: U(A, { onClick: (e) => e.preventDefault() }),
- inputProps: U(N, {
+ labelProps: H(A, { onClick: (e) => e.preventDefault() }),
+ inputProps: H(te, {
checked: t.isSelected,
"aria-required": l && u === "aria" || void 0,
required: l && u === "native",
@@ -4931,8 +5034,8 @@ function Eo(e, t, n) {
"aria-controls": e["aria-controls"],
"aria-readonly": i || void 0,
"aria-describedby": [
- ee.id,
- te.id,
+ M.id,
+ ne.id,
p
].filter(Boolean).join(" ") || void 0,
onChange: T,
@@ -4941,10 +5044,10 @@ function Eo(e, t, n) {
name: o,
form: s,
type: "checkbox",
- ...M
+ ...j
}),
- descriptionProps: ee,
- errorMessageProps: te,
+ descriptionProps: M,
+ errorMessageProps: ne,
isSelected: t.isSelected,
isPressed: D || O,
isDisabled: r,
@@ -4956,12 +5059,12 @@ function Eo(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/checkbox/useCheckbox.mjs
-function Do(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 } = Eo(e, t, n), { isIndeterminate: m } = e;
- return (0, b.useEffect)(() => {
+function ko(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 } = Oo(e, t, n), { isIndeterminate: m } = e;
+ return (0, x.useEffect)(() => {
n.current && (n.current.indeterminate = !!m);
}), {
- labelProps: U(r, (0, b.useMemo)(() => ({ onMouseDown: (e) => e.preventDefault() }), [])),
+ labelProps: H(r, (0, x.useMemo)(() => ({ onMouseDown: (e) => e.preventDefault() }), [])),
inputProps: i,
descriptionProps: a,
errorMessageProps: o,
@@ -4976,18 +5079,18 @@ function Do(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/checkbox/utils.mjs
-var Oo = /* @__PURE__ */ new WeakMap();
+var Ao = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/label/useLabel.mjs
-function ko(e) {
+function jo(e) {
let { id: t, label: n, "aria-labelledby": r, "aria-label": i, labelElementType: a = "label" } = e;
- t = sr(t);
- let o = sr(), s = {};
+ t = dr(t);
+ let o = dr(), s = {};
n && (r = r ? `${o} ${r}` : o, s = {
id: o,
htmlFor: a === "label" ? t : void 0
});
- let c = _i({
+ let c = xi({
id: t,
"aria-label": i,
"aria-labelledby": r
@@ -4999,19 +5102,19 @@ function ko(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/label/useField.mjs
-function Ao(e) {
- let { description: t, errorMessage: n, isInvalid: r, validationState: i } = e, { labelProps: a, fieldProps: o } = ko(e), s = lr([
+function Mo(e) {
+ let { description: t, errorMessage: n, isInvalid: r, validationState: i } = e, { labelProps: a, fieldProps: o } = jo(e), s = pr([
!!t,
!!n,
r,
i
- ]), c = lr([
+ ]), c = pr([
!!t,
!!n,
r,
i
]);
- return o = U(o, { "aria-describedby": [
+ return o = H(o, { "aria-describedby": [
s,
c,
e["aria-describedby"]
@@ -5024,26 +5127,26 @@ function Ao(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useFocusWithin.mjs
-function jo(e) {
- let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: i } = e, a = (0, b.useRef)({ isFocusWithin: !1 }), { addGlobalListener: o, removeAllGlobalListeners: s } = ia(), c = (0, b.useCallback)((e) => {
- z(e.currentTarget, B(e)) && a.current.isFocusWithin && !z(e.currentTarget, e.relatedTarget) && (a.current.isFocusWithin = !1, s(), n && n(e), i && i(!1));
+function No(e) {
+ let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: i } = e, a = (0, x.useRef)({ isFocusWithin: !1 }), { addGlobalListener: o, removeAllGlobalListeners: s } = sa(), c = (0, x.useCallback)((e) => {
+ R(e.currentTarget, z(e)) && a.current.isFocusWithin && !R(e.currentTarget, e.relatedTarget) && (a.current.isFocusWithin = !1, s(), n && n(e), i && i(!1));
}, [
n,
i,
a,
s
- ]), l = Gt(c), u = (0, b.useCallback)((e) => {
- if (!z(e.currentTarget, B(e))) return;
- let t = B(e), n = R(t), s = jt(n);
+ ]), l = Yt(c), u = (0, x.useCallback)((e) => {
+ if (!R(e.currentTarget, z(e))) return;
+ let t = z(e), n = L(t), s = Ft(n);
if (!a.current.isFocusWithin && s === t) {
r && r(e), i && i(!0), a.current.isFocusWithin = !0, l(e);
let t = e.currentTarget;
o(n, "focus", (e) => {
- let r = B(e);
- if (a.current.isFocusWithin && !z(t, r)) {
+ let r = z(e);
+ if (a.current.isFocusWithin && !R(t, r)) {
let e = new n.defaultView.FocusEvent("blur", { relatedTarget: r });
- Wt(e, t);
- let i = Ut(e);
+ Jt(e, t);
+ let i = qt(e);
c(i);
}
}, { capture: !0 });
@@ -5065,26 +5168,26 @@ function jo(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/utils/useControlledState.mjs
-var Mo = typeof document < "u" ? b.useInsertionEffect ?? b.useLayoutEffect : () => {};
-function No(e, t, n) {
- let [r, i] = (0, b.useState)(e || t), a = (0, b.useRef)(r), o = (0, b.useRef)(e !== void 0), s = e !== void 0;
- (0, b.useEffect)(() => {
+var Po = typeof document < "u" ? x.useInsertionEffect ?? x.useLayoutEffect : () => {};
+function Fo(e, t, n) {
+ let [r, i] = (0, x.useState)(e || t), a = (0, x.useRef)(r), o = (0, x.useRef)(e !== void 0), s = e !== void 0;
+ (0, x.useEffect)(() => {
o.current, o.current = s;
}, [s]);
let c = s ? e : r;
- Mo(() => {
+ Po(() => {
a.current = c;
});
- let [, l] = (0, b.useReducer)(() => ({}), {});
- return [c, (0, b.useCallback)((e, ...t) => {
+ let [, l] = (0, x.useReducer)(() => ({}), {});
+ return [c, (0, x.useCallback)((e, ...t) => {
let r = typeof e == "function" ? e(a.current) : e;
Object.is(a.current, r) || (a.current = r, i(r), l(), n?.(r, ...t));
}, [n])];
}
//#endregion
//#region node_modules/react-stately/dist/private/toggle/useToggleState.mjs
-function Po(e = {}) {
- let { isReadOnly: t } = e, [n, r] = No(e.isSelected, e.defaultSelected || !1, e.onChange), [i] = (0, b.useState)(n);
+function Io(e = {}) {
+ let { isReadOnly: t } = e, [n, r] = Fo(e.isSelected, e.defaultSelected || !1, e.onChange), [i] = (0, x.useState)(n);
function a(e) {
t || r(e);
}
@@ -5100,26 +5203,26 @@ function Po(e = {}) {
}
//#endregion
//#region node_modules/react-aria/dist/private/checkbox/useCheckboxGroupItem.mjs
-function Fo(e, t, n) {
- let r = Po({
+function K(e, t, n) {
+ let r = Io({
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 } = Oo.get(t);
+ }), { name: i, form: a, descriptionId: o, errorMessageId: s, validationBehavior: c } = Ao.get(t);
c = e.validationBehavior ?? c;
- let { realtimeValidation: l } = bo({
+ let { realtimeValidation: l } = So({
...e,
value: r.isSelected,
name: void 0,
validationBehavior: "aria"
- }), u = (0, b.useRef)(_o), d = () => {
+ }), u = (0, x.useRef)(yo), d = () => {
t.setInvalid(e.value, l.isInvalid ? l : u.current);
};
- (0, b.useEffect)(d);
- let f = t.realtimeValidation.isInvalid ? t.realtimeValidation : l, p = c === "native" ? t.displayValidation : f, m = Do({
+ (0, x.useEffect)(d);
+ let f = t.realtimeValidation.isInvalid ? t.realtimeValidation : l, p = c === "native" ? t.displayValidation : f, m = ko({
...e,
isReadOnly: e.isReadOnly || t.isReadOnly,
isDisabled: e.isDisabled || t.isDisabled,
@@ -5127,7 +5230,7 @@ function Fo(e, t, n) {
form: e.form || a,
isRequired: e.isRequired ?? t.isRequired,
validationBehavior: c,
- [yo]: {
+ [xo]: {
realtimeValidation: f,
displayValidation: p,
resetValidation: t.resetValidation,
@@ -5151,12 +5254,12 @@ function Fo(e, t, n) {
}
//#endregion
//#region node_modules/react-stately/dist/private/utils/number.mjs
-function Io(e, t = -Infinity, n = Infinity) {
+function Lo(e, t = -Infinity, n = Infinity) {
return Math.min(Math.max(e, t), n);
}
//#endregion
//#region node_modules/react-aria/dist/private/visually-hidden/VisuallyHidden.mjs
-var Lo = {
+var Ro = {
border: 0,
clip: "rect(0 0 0 0)",
clipPath: "inset(50%)",
@@ -5168,40 +5271,40 @@ var Lo = {
width: "1px",
whiteSpace: "nowrap"
};
-function G(e = {}) {
- let { style: t, isFocusable: n } = e, [r, i] = (0, b.useState)(!1), { focusWithinProps: a } = jo({
+function zo(e = {}) {
+ let { style: t, isFocusable: n } = e, [r, i] = (0, x.useState)(!1), { focusWithinProps: a } = No({
isDisabled: !n,
onFocusWithinChange: (e) => i(e)
- }), o = (0, b.useMemo)(() => r ? t : t ? {
- ...Lo,
+ }), o = (0, x.useMemo)(() => r ? t : t ? {
+ ...Ro,
...t
- } : Lo, [r]);
+ } : Ro, [r]);
return { visuallyHiddenProps: {
...a,
style: o
} };
}
-function Ro(e) {
- let { children: t, elementType: n = "div", isFocusable: r, style: i, ...a } = e, { visuallyHiddenProps: o } = G(e);
- return /*#__PURE__*/ b.createElement(n, U(a, o), t);
+function Bo(e) {
+ let { children: t, elementType: n = "div", isFocusable: r, style: i, ...a } = e, { visuallyHiddenProps: o } = zo(e);
+ return /*#__PURE__*/ x.createElement(n, H(a, o), t);
}
//#endregion
//#region node_modules/react-aria/dist/private/textfield/useTextField.mjs
-function zo(e, t) {
- let { inputElementType: n = "input", isDisabled: r = !1, isRequired: i = !1, isReadOnly: a = !1, type: o = "text", validationBehavior: s = "aria" } = e, [c, l] = No(e.value, e.defaultValue || "", e.onChange), { focusableProps: u } = Nr(e, t), d = bo({
+function Vo(e, t) {
+ let { inputElementType: n = "input", isDisabled: r = !1, isRequired: i = !1, isReadOnly: a = !1, type: o = "text", validationBehavior: s = "aria" } = e, [c, l] = Fo(e.value, e.defaultValue || "", e.onChange), { focusableProps: u } = Lr(e, t), d = So({
...e,
value: c
- }), { isInvalid: f, validationErrors: p, validationDetails: m } = d.displayValidation, { labelProps: h, fieldProps: g, descriptionProps: _, errorMessageProps: v } = Ao({
+ }), { isInvalid: f, validationErrors: p, validationDetails: m } = d.displayValidation, { labelProps: h, fieldProps: g, descriptionProps: _, errorMessageProps: v } = Mo({
...e,
isInvalid: f,
errorMessage: e.errorMessage || p
- }), y = Yi(e, { labelable: !0 }), x = {
+ }), y = U(e, { labelable: !0 }), b = {
type: o,
pattern: e.pattern
- }, [S] = (0, b.useState)(c);
- return so(t, e.defaultValue ?? S, l), co(e, d, t), {
+ }, [S] = (0, x.useState)(c);
+ return lo(t, e.defaultValue ?? S, l), uo(e, d, t), {
labelProps: h,
- inputProps: U(y, n === "input" ? x : void 0, {
+ inputProps: H(y, n === "input" ? b : void 0, {
disabled: r,
readOnly: a,
required: i && s === "native",
@@ -5213,7 +5316,7 @@ function zo(e, t) {
"aria-haspopup": e["aria-haspopup"],
"aria-controls": e["aria-controls"],
value: c,
- onChange: (e) => l(B(e).value),
+ onChange: (e) => l(z(e).value),
autoComplete: e.autoComplete,
autoCapitalize: e.autoCapitalize,
maxLength: e.maxLength,
@@ -5246,42 +5349,42 @@ function zo(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/ariaHideOutside.mjs
-var Bo = typeof HTMLElement < "u" && "inert" in HTMLElement.prototype;
-function Vo(e) {
+var Ho = typeof HTMLElement < "u" && "inert" in HTMLElement.prototype;
+function Uo(e) {
return e.dataset.liveAnnouncer === "true" || e.dataset.reactAriaTopLayer !== void 0;
}
-var Ho = /* @__PURE__ */ new WeakMap(), Uo = [];
-function Wo(e, t) {
- let n = St(e?.[0]), r = t instanceof n.Element ? { root: t } : t, i = r?.root ?? document.body, a = r?.shouldUseInert && Bo, 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 Wo = /* @__PURE__ */ new WeakMap(), Go = [];
+function Ko(e, t) {
+ let n = Et(e?.[0]), r = t instanceof n.Element ? { root: t } : t, i = r?.root ?? document.body, a = r?.shouldUseInert && Ho, 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 (At()) {
+ if (Pt()) {
let t = i.getRootNode();
for (let n of e) {
let e = n.getRootNode();
- for (; Et(e) && e !== t;) u.add(e), e = e.host.getRootNode();
+ for (; At(e) && e !== t;) u.add(e), e = e.host.getRootNode();
}
}
let d = (e) => {
for (let t of e.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]")) o.add(t);
let t = (e) => {
if (s.has(e) || o.has(e) || e.parentElement && s.has(e.parentElement) && e.parentElement.getAttribute("role") !== "row") return NodeFilter.FILTER_REJECT;
- for (let t of o) if (z(e, t)) return NodeFilter.FILTER_SKIP;
+ for (let t of o) if (R(e, t)) return NodeFilter.FILTER_SKIP;
return NodeFilter.FILTER_ACCEPT;
- }, n = ba(R(e), e, NodeFilter.SHOW_ELEMENT, { acceptNode: t }), r = t(e);
+ }, n = Ca(L(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 = Ho.get(e) ?? 0;
- c(e) && t === 0 || (t === 0 && l(e, !0), s.add(e), Ho.set(e, t + 1));
+ let t = Wo.get(e) ?? 0;
+ c(e) && t === 0 || (t === 0 && l(e, !0), s.add(e), Wo.set(e, t + 1));
};
- Uo.length && Uo[Uo.length - 1].disconnect(), d(i);
+ Go.length && Go[Go.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) => z(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && Vo(e) ? o.add(e) : e instanceof Element && d(e);
- if (At()) {
+ if (t.target.isConnected && ![...o, ...s].some((e) => R(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && Uo(e) ? o.add(e) : e instanceof Element && d(e);
+ if (Pt()) {
for (let e of u) if (!e.isConnected) {
p.disconnect();
break;
@@ -5294,11 +5397,11 @@ function Wo(e, t) {
subtree: !0
});
let m = /* @__PURE__ */ new Set();
- if (At()) for (let e of u) {
+ if (Pt()) 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) => z(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && Vo(e) ? o.add(e) : e instanceof Element && d(e);
- if (At()) {
+ if (t.target.isConnected && ![...o, ...s].some((e) => R(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && Uo(e) ? o.add(e) : e instanceof Element && d(e);
+ if (Pt()) {
for (let e of u) if (!e.isConnected) {
p.disconnect();
break;
@@ -5324,59 +5427,59 @@ function Wo(e, t) {
p.disconnect();
}
};
- return Uo.push(h), () => {
- if (p.disconnect(), At()) for (let e of m) e.disconnect();
+ return Go.push(h), () => {
+ if (p.disconnect(), Pt()) for (let e of m) e.disconnect();
for (let e of s) {
- let t = Ho.get(e);
- t != null && (t === 1 ? (l(e, !1), Ho.delete(e)) : Ho.set(e, t - 1));
+ let t = Wo.get(e);
+ t != null && (t === 1 ? (l(e, !1), Wo.delete(e)) : Wo.set(e, t - 1));
}
- h === Uo[Uo.length - 1] ? (Uo.pop(), Uo.length && Uo[Uo.length - 1].observe()) : Uo.splice(Uo.indexOf(h), 1);
+ h === Go[Go.length - 1] ? (Go.pop(), Go.length && Go[Go.length - 1].observe()) : Go.splice(Go.indexOf(h), 1);
};
}
-function Go(e) {
- let t = Uo[Uo.length - 1];
+function qo(e) {
+ let t = Go[Go.length - 1];
if (t && !t.visibleNodes.has(e)) return t.visibleNodes.add(e), () => {
t.visibleNodes.delete(e);
};
}
//#endregion
//#region node_modules/react-aria/dist/private/listbox/utils.mjs
-var Ko = /* @__PURE__ */ new WeakMap();
-function qo(e) {
+var Jo = /* @__PURE__ */ new WeakMap();
+function Yo(e) {
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
}
-function Jo(e, t) {
- let n = Ko.get(e);
+function Xo(e, t) {
+ let n = Jo.get(e);
if (!n) throw Error("Unknown list");
- return `${n.id}-option-${qo(t)}`;
+ return `${n.id}-option-${Yo(t)}`;
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/utils.mjs
-function Yo(e) {
- return tn() ? e.altKey : e.ctrlKey;
+function Zo(e) {
+ return on() ? e.altKey : e.ctrlKey;
}
-function Xo(e, t) {
+function Qo(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 Zo = /* @__PURE__ */ new WeakMap();
-function Qo(e) {
- let t = sr();
- return Zo.set(e, t), t;
+var $o = /* @__PURE__ */ new WeakMap();
+function es(e) {
+ let t = dr();
+ return $o.set(e, t), t;
}
-function $o(e) {
- return Zo.get(e);
+function ts(e) {
+ return $o.get(e);
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/DOMLayoutDelegate.mjs
-var es = class {
+var ns = class {
constructor(e) {
this.ref = e;
}
getItemRect(e) {
let t = this.ref.current;
if (!t) return null;
- let n = e == null ? null : Xo(this.ref, e);
+ let n = e == null ? null : Qo(this.ref, e);
if (!n) return null;
let r = t.getBoundingClientRect(), i = n.getBoundingClientRect();
return {
@@ -5402,12 +5505,12 @@ var es = class {
height: e?.clientHeight ?? 0
};
}
-}, ts = class {
+}, rs = 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 es(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 es(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 ns(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 ns(this.ref);
this.layout === "stack" && this.orientation === "vertical" && (this.getKeyLeftOf = void 0, this.getKeyRightOf = void 0);
}
isDisabled(e) {
@@ -5447,14 +5550,14 @@ var es = class {
return e.x === t.x || e.y !== t.y;
}
isReversed(e) {
- let t = this.getNextKey(e), n = Xo(this.ref, e);
+ let t = this.getNextKey(e), n = Qo(this.ref, e);
if (t != null) {
- let e = Xo(this.ref, t);
+ let e = Qo(this.ref, t);
return !n || !e ? !1 : n.getBoundingClientRect().top > e.getBoundingClientRect().top;
}
let r = this.getPreviousKey(e);
if (r != null) {
- let e = Xo(this.ref, r);
+ let e = Qo(this.ref, r);
return !n || !e ? !1 : e.getBoundingClientRect().top > n.getBoundingClientRect().top;
}
return !1;
@@ -5488,7 +5591,7 @@ var es = class {
let t = this.ref.current, n = this.layoutDelegate.getItemRect(e);
if (!n) return null;
let r = this.isReversed(e);
- if (t && !Qa(t)) return this.getFirstKey();
+ if (t && !eo(t)) return this.getFirstKey();
let i = e;
if (this.orientation === "horizontal") {
let e = Math.max(0, n.x + n.width - this.layoutDelegate.getVisibleRect().width);
@@ -5503,7 +5606,7 @@ var es = class {
let t = this.ref.current, n = this.layoutDelegate.getItemRect(e);
if (!n) return null;
let r = this.isReversed(e);
- if (t && !Qa(t)) return this.getLastKey();
+ if (t && !eo(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);
@@ -5526,184 +5629,184 @@ var es = class {
}
return null;
}
-}, ns = {};
-ns = { longPressMessage: "اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة" };
+}, is = {};
+is = { longPressMessage: "اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/bg-BG.mjs
-var rs = {};
-rs = { longPressMessage: "Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто" };
+var as = {};
+as = { longPressMessage: "Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/cs-CZ.mjs
-var is = {};
-is = { longPressMessage: "Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku" };
+var os = {};
+os = { 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 as = {};
-as = { longPressMessage: "Langt tryk eller tryk på Alt + pil ned for at åbne menuen" };
+var ss = {};
+ss = { 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 os = {};
-os = { longPressMessage: "Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen" };
+var cs = {};
+cs = { 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 ss = {};
-ss = { longPressMessage: "Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού" };
+var ls = {};
+ls = { longPressMessage: "Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/en-US.mjs
-var cs = {};
-cs = { longPressMessage: "Long press or press Alt + ArrowDown to open menu" };
+var us = {};
+us = { longPressMessage: "Long press or press Alt + ArrowDown to open menu" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/es-ES.mjs
-var ls = {};
-ls = { longPressMessage: "Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú" };
+var ds = {};
+ds = { 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 us = {};
-us = { longPressMessage: "Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool" };
+var fs = {};
+fs = { 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 ds = {};
-ds = { longPressMessage: "Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli" };
+var ps = {};
+ps = { 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 fs = {};
-fs = { longPressMessage: "Appuyez de manière prolongée ou appuyez sur Alt\xA0+\xA0Flèche vers le bas pour ouvrir le menu." };
+var ms = {};
+ms = { 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 ps = {};
-ps = { longPressMessage: "לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט" };
+var hs = {};
+hs = { longPressMessage: "לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/hr-HR.mjs
-var ms = {};
-ms = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika" };
+var gs = {};
+gs = { 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 hs = {};
-hs = { longPressMessage: "Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához" };
+var _s = {};
+_s = { 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 gs = {};
-gs = { longPressMessage: "Premi a lungo o premi Alt + Freccia giù per aprire il menu" };
+var vs = {};
+vs = { 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 _s = {};
-_s = { longPressMessage: "長押しまたは Alt+下矢印キーでメニューを開く" };
+var ys = {};
+ys = { longPressMessage: "長押しまたは Alt+下矢印キーでメニューを開く" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/ko-KR.mjs
-var vs = {};
-vs = { longPressMessage: "길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기" };
+var bs = {};
+bs = { longPressMessage: "길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/lt-LT.mjs
-var ys = {};
-ys = { longPressMessage: "Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“." };
+var xs = {};
+xs = { 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 bs = {};
-bs = { longPressMessage: "Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa" };
+var Ss = {};
+Ss = { 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 xs = {};
-xs = { longPressMessage: "Langt trykk eller trykk Alt + PilNed for å åpne menyen" };
+var Cs = {};
+Cs = { longPressMessage: "Langt trykk eller trykk Alt + PilNed for å åpne menyen" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/nl-NL.mjs
-var Ss = {};
-Ss = { longPressMessage: "Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen" };
+var ws = {};
+ws = { 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 Cs = {};
-Cs = { longPressMessage: "Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu" };
+var Ts = {};
+Ts = { 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 ws = {};
-ws = { longPressMessage: "Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu" };
+var Es = {};
+Es = { 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 Ts = {};
-Ts = { longPressMessage: "Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu" };
+var Ds = {};
+Ds = { 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 Es = {};
-Es = { longPressMessage: "Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul" };
+var Os = {};
+Os = { 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 Ds = {};
-Ds = { longPressMessage: "Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню" };
+var ks = {};
+ks = { longPressMessage: "Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/sk-SK.mjs
-var Os = {};
-Os = { longPressMessage: "Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol" };
+var As = {};
+As = { 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 ks = {};
-ks = { longPressMessage: "Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol" };
+var js = {};
+js = { 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 As = {};
-As = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni" };
+var Ms = {};
+Ms = { 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 js = {};
-js = { longPressMessage: "Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn" };
+var Ns = {};
+Ns = { 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 Ms = {};
-Ms = { longPressMessage: "Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın" };
+var Ps = {};
+Ps = { 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 Ns = {};
-Ns = { longPressMessage: "Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню" };
+var Fs = {};
+Fs = { longPressMessage: "Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/zh-CN.mjs
-var Ps = {};
-Ps = { longPressMessage: "长按或按 Alt + 向下方向键以打开菜单" };
+var Is = {};
+Is = { longPressMessage: "长按或按 Alt + 向下方向键以打开菜单" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/zh-TW.mjs
-var Fs = {};
-Fs = { longPressMessage: "長按或按 Alt+向下鍵以開啟功能表" };
+var Ls = {};
+Ls = { longPressMessage: "長按或按 Alt+向下鍵以開啟功能表" };
//#endregion
//#region node_modules/react-aria/dist/private/menu/intlStrings.mjs
-var Is = {};
-Is = {
- "ar-AE": ns,
- "bg-BG": rs,
- "cs-CZ": is,
- "da-DK": as,
- "de-DE": os,
- "el-GR": ss,
- "en-US": cs,
- "es-ES": ls,
- "et-EE": us,
- "fi-FI": ds,
- "fr-FR": fs,
- "he-IL": ps,
- "hr-HR": ms,
- "hu-HU": hs,
- "it-IT": gs,
- "ja-JP": _s,
- "ko-KR": vs,
- "lt-LT": ys,
- "lv-LV": bs,
- "nb-NO": xs,
- "nl-NL": Ss,
- "pl-PL": Cs,
- "pt-BR": ws,
- "pt-PT": Ts,
- "ro-RO": Es,
- "ru-RU": Ds,
- "sk-SK": Os,
- "sl-SI": ks,
- "sr-SP": As,
- "sv-SE": js,
- "tr-TR": Ms,
- "uk-UA": Ns,
- "zh-CN": Ps,
- "zh-TW": Fs
+var Rs = {};
+Rs = {
+ "ar-AE": is,
+ "bg-BG": as,
+ "cs-CZ": os,
+ "da-DK": ss,
+ "de-DE": cs,
+ "el-GR": ls,
+ "en-US": us,
+ "es-ES": ds,
+ "et-EE": fs,
+ "fi-FI": ps,
+ "fr-FR": ms,
+ "he-IL": hs,
+ "hr-HR": gs,
+ "hu-HU": _s,
+ "it-IT": vs,
+ "ja-JP": ys,
+ "ko-KR": bs,
+ "lt-LT": xs,
+ "lv-LV": Ss,
+ "nb-NO": Cs,
+ "nl-NL": ws,
+ "pl-PL": Ts,
+ "pt-BR": Es,
+ "pt-PT": Ds,
+ "ro-RO": Os,
+ "ru-RU": ks,
+ "sk-SK": As,
+ "sl-SI": js,
+ "sr-SP": Ms,
+ "sv-SE": Ns,
+ "tr-TR": Ps,
+ "uk-UA": Fs,
+ "zh-CN": Is,
+ "zh-TW": Ls
};
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useLongPress.mjs
-var Ls = 500;
-function Rs(e) {
- let { isDisabled: t, pointerType: n, onLongPressStart: r, onLongPressEnd: i, onLongPress: a, threshold: o = Ls, accessibilityDescription: s } = e, c = (0, b.useRef)(void 0), { addGlobalListener: l, removeAllGlobalListeners: u } = ia(), d = (e) => n ? e.pointerType === n : e.pointerType === "mouse" || e.pointerType === "touch", { pressProps: f } = ua({
+var zs = 500;
+function Bs(e) {
+ let { isDisabled: t, pointerType: n, onLongPressStart: r, onLongPressEnd: i, onLongPress: a, threshold: o = zs, accessibilityDescription: s } = e, c = (0, x.useRef)(void 0), { addGlobalListener: l, removeAllGlobalListeners: u } = sa(), d = (e) => n ? e.pointerType === n : e.pointerType === "mouse" || e.pointerType === "touch", { pressProps: f } = pa({
isDisabled: t,
onPressStart(e) {
if (e.continuePropagation(), d(e)) {
@@ -5711,12 +5814,12 @@ function Rs(e) {
...e,
type: "longpressstart"
}), c.current = setTimeout(() => {
- e.target.dispatchEvent(new PointerEvent("pointercancel", { bubbles: !0 })), l(e.target, "click", (e) => e.preventDefault(), { once: !0 }), R(e.target).activeElement !== e.target && _t(e.target), a && a({
+ e.target.dispatchEvent(new PointerEvent("pointercancel", { bubbles: !0 })), l(e.target, "click", (e) => e.preventDefault(), { once: !0 }), L(e.target).activeElement !== e.target && xt(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 = St(e.target);
+ let t = Et(e.target);
l(t, "pointerup", () => {
setTimeout(() => {
u();
@@ -5731,12 +5834,12 @@ function Rs(e) {
});
}
});
- return { longPressProps: U(f, oo(a && !t ? s : void 0)) };
+ return { longPressProps: H(f, co(a && !t ? s : void 0)) };
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useContextMenu.mjs
-function zs(e) {
- let { onContextMenu: t } = e, n = (0, b.useRef)(!1), { longPressProps: r } = Rs({
+function Vs(e) {
+ let { onContextMenu: t } = e, n = (0, x.useRef)(!1), { longPressProps: r } = Bs({
onLongPressStart() {
n.current = !1;
},
@@ -5748,7 +5851,7 @@ function zs(e) {
});
}
});
- return t ? { contextMenuProps: U(en() ? r : {}, {
+ return t ? { contextMenuProps: H(an() ? r : {}, {
onContextMenu(e) {
e.stopPropagation(), e.preventDefault(), n.current = !0;
let r = e.currentTarget.getBoundingClientRect();
@@ -5759,7 +5862,7 @@ function zs(e) {
});
},
onKeyDown(e) {
- if (Zt() && e.ctrlKey && e.key === "Enter") {
+ if (tn() && e.ctrlKey && e.key === "Enter") {
n.current = !1;
let r = e.currentTarget;
e.stopPropagation(), setTimeout(() => {
@@ -5779,13 +5882,13 @@ function zs(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useCloseOnScroll.mjs
-var Bs = /* @__PURE__ */ new WeakMap();
-function Vs(e) {
+var Hs = /* @__PURE__ */ new WeakMap();
+function Us(e) {
let { triggerRef: t, isOpen: n, onClose: r } = e;
- (0, b.useEffect)(() => !n || r === null ? void 0 : Dt(Mt(t.current), "scroll", (e) => {
- let n = B(e);
- if (!t.current || n instanceof Node && !z(n, t.current) || n instanceof HTMLInputElement || n instanceof HTMLTextAreaElement) return;
- let i = r || Bs.get(t.current);
+ (0, x.useEffect)(() => !n || r === null ? void 0 : jt(It(t.current), "scroll", (e) => {
+ let n = z(e);
+ if (!t.current || n instanceof Node && !R(n, t.current) || n instanceof HTMLInputElement || n instanceof HTMLTextAreaElement) return;
+ let i = r || Hs.get(t.current);
i && i();
}, !0), [
n,
@@ -5795,14 +5898,14 @@ function Vs(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useOverlayTrigger.mjs
-function Hs(e, t, n) {
+function Ws(e, t, n) {
let { type: r } = e, { isOpen: i } = t;
- (0, b.useEffect)(() => {
- n && n.current && Bs.set(n.current, t.close);
+ (0, x.useEffect)(() => {
+ n && n.current && Hs.set(n.current, t.close);
});
let a;
r === "menu" ? a = !0 : r === "listbox" && (a = "listbox");
- let o = sr();
+ let o = dr();
return {
triggerProps: {
"aria-haspopup": a,
@@ -5815,14 +5918,14 @@ function Hs(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/menu/useMenuTrigger.mjs
-function Us(e) {
+function Gs(e) {
return e && e.__esModule ? e.default : e;
}
-function Ws(e, t, n) {
- let { type: r = "menu", isDisabled: i, trigger: a = "press" } = e, o = sr(), { triggerProps: s, overlayProps: c } = Hs({ type: r }, t, n), l = (e, n, r = "first") => {
+function Ks(e, t, n) {
+ let { type: r = "menu", isDisabled: i, trigger: a = "press" } = e, o = dr(), { triggerProps: s, overlayProps: c } = Ws({ type: r }, t, n), l = (e, n, r = "first") => {
if (!e || n.isDefaultPrevented()) return !1;
t.toggle(r);
- }, { keyboardProps: u } = Or({
+ }, { keyboardProps: u } = Mr({
isDisabled: i,
shortcuts: {
Enter: (e) => l(a !== "longPress", e, "first"),
@@ -5834,7 +5937,7 @@ function Ws(e, t, n) {
"Alt+ArrowDown": (e) => l(!0, e, "first"),
"Alt+ArrowUp": (e) => l(!0, e, "last")
}
- }), d = Hi(Us(Is), "@react-aria/menu"), { longPressProps: f } = Rs({
+ }), d = Ki(Gs(Rs), "@react-aria/menu"), { longPressProps: f } = Bs({
isDisabled: i || a !== "longPress",
accessibilityDescription: d.format("longPressMessage"),
onLongPressStart() {
@@ -5846,24 +5949,24 @@ function Ws(e, t, n) {
}), p = {
preventFocusOnPress: !0,
onPressStart(e) {
- e.pointerType !== "touch" && e.pointerType !== "keyboard" && !i && (_t(e.target), t.open(e.pointerType === "virtual" ? "first" : null));
+ e.pointerType !== "touch" && e.pointerType !== "keyboard" && !i && (xt(e.target), t.open(e.pointerType === "virtual" ? "first" : null));
},
onPress(e) {
- e.pointerType === "touch" && !i && (_t(e.target), t.toggle());
+ e.pointerType === "touch" && !i && (xt(e.target), t.toggle());
}
};
delete s.onPress;
- let { contextMenuProps: m } = zs({ onContextMenu(e) {
+ let { contextMenuProps: m } = Vs({ onContextMenu(e) {
let n = e.target.getBoundingClientRect();
t.setPoint({
x: n.x + e.x,
y: n.y + e.y
}), t.open();
} });
- (0, b.useEffect)(() => {
+ (0, x.useEffect)(() => {
if (t.isOpen && a === "contextMenu") {
let e = (e) => {
- (e.button === 2 || e.button === 0 && e.ctrlKey === !0) && B(e) === document.body && t.close();
+ (e.button === 2 || e.button === 0 && e.ctrlKey === !0) && z(e) === document.body && t.close();
};
return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
}
@@ -5898,13 +6001,13 @@ function Ws(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/useTypeSelect.mjs
-var Gs = 1e3;
-function Ks(e) {
- let { keyboardDelegate: t, selectionManager: n, onTypeSelect: r } = e, i = (0, b.useRef)({
+var qs = 1e3;
+function Js(e) {
+ let { keyboardDelegate: t, selectionManager: n, onTypeSelect: r } = e, i = (0, x.useRef)({
search: "",
timeout: void 0
});
- return (0, b.useEffect)(() => {
+ return (0, x.useEffect)(() => {
let e = i.current.timeout;
return () => {
clearTimeout(e);
@@ -5918,12 +6021,12 @@ function Ks(e) {
}
clearTimeout(i.current.timeout), i.current.timeout = setTimeout(() => {
i.current.search = "";
- }, Gs);
+ }, qs);
}
} : void 0,
onKeyDown: t.getKeyForSearch ? (e) => {
- let a = qs(e.key);
- if (!(!a || e.ctrlKey || e.metaKey || e.altKey || !z(e.currentTarget, B(e)) || i.current.search.length === 0 && a === " ")) {
+ let a = Ys(e.key);
+ if (!(!a || e.ctrlKey || e.metaKey || e.altKey || !R(e.currentTarget, z(e)) || i.current.search.length === 0 && a === " ")) {
if (i.current.search += a, t.getKeyForSearch != null) {
let a = t.getKeyForSearch(i.current.search, n.focusedKey);
if (a ??= t.getKeyForSearch(i.current.search), a != null) n.setFocusedKey(a), r && r(a), e.preventDefault(), "continuePropagation" in e || e.stopPropagation();
@@ -5934,34 +6037,34 @@ function Ks(e) {
}
clearTimeout(i.current.timeout), i.current.timeout = setTimeout(() => {
i.current.search = "";
- }, Gs);
+ }, qs);
}
} : void 0
} };
}
-function qs(e) {
+function Ys(e) {
return e.length === 1 || !/^[A-Z]/i.test(e) ? e : "";
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useUpdateLayoutEffect.mjs
-function Js(e, t) {
- let n = (0, b.useRef)(!0), r = (0, b.useRef)(null);
- H(() => (n.current = !0, () => {
+function Xs(e, t) {
+ let n = (0, x.useRef)(!0), r = (0, x.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 Ys(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(), _ = un(), v = (e, n, i) => {
+function Zs(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 } = Mi(), _ = mn(), v = (e, n, i) => {
if (n != null) {
- if (t.isLink(n) && m === "selection" && l && !Yo(e)) {
- (0, Hr.flushSync)(() => {
+ if (t.isLink(n) && m === "selection" && l && !Zo(e)) {
+ (0, Kr.flushSync)(() => {
t.setFocusedKey(n, i);
});
- let a = Xo(r, n), o = t.getItemProps(n);
+ let a = Qo(r, n), o = t.getItemProps(n);
if (a) {
_.open(a, e, o.href, o.routerOptions);
return;
@@ -5973,7 +6076,7 @@ function Ys(e) {
t.extendSelection(n);
return;
}
- if (l && !Yo(e)) {
+ if (l && !Zo(e)) {
t.replaceSelection(n);
return;
}
@@ -5988,7 +6091,7 @@ function Ys(e) {
}
}
return !1;
- }, x = (e) => {
+ }, b = (e) => {
if (n.getKeyAbove) {
let r = t.focusedKey == null ? n.getLastKey?.() : n.getKeyAbove?.(t.focusedKey);
if (r == null && a && (r = n.getLastKey?.(t.focusedKey)), r != null) {
@@ -6000,9 +6103,9 @@ function Ys(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, hi(e));
if (t.setFocusedKey(r), r != null) {
- if (di(e) && e.shiftKey && t.selectionMode === "multiple") {
+ if (hi(e) && e.shiftKey && t.selectionMode === "multiple") {
t.extendSelection(r);
return;
}
@@ -6034,9 +6137,9 @@ function Ys(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, hi(e));
if (t.setFocusedKey(r), r != null) {
- if (di(e) && e.shiftKey && t.selectionMode === "multiple") {
+ if (hi(e) && e.shiftKey && t.selectionMode === "multiple") {
t.extendSelection(r);
return;
}
@@ -6073,59 +6176,59 @@ function Ys(e) {
return !1;
}, A = () => {
if (!f && r.current) {
- let e = Wa(r.current, { tabbable: !0 }), t, n;
+ let e = Ka(r.current, { tabbable: !0 }), t, n;
do
n = e.lastChild(), n && (t = n);
while (n);
- let i = jt();
- t && (!Nt(t) || i && !V(i)) && _t(t);
+ let i = Ft();
+ t && (!Lt(t) || i && !Gt(i)) && xt(t);
}
return {
shouldContinuePropagation: !0,
shouldPreventDefault: !1
};
- }, j = () => (!f && r.current && r.current.focus(), {
+ }, ee = () => (!f && r.current && r.current.focus(), {
shouldContinuePropagation: !0,
shouldPreventDefault: !1
- }), M = (e, t) => ({
- [Zt() ? e + "+Shift+Alt" : e + "+Shift+Control"]: t,
+ }), j = (e, t) => ({
+ [tn() ? e + "+Shift+Alt" : e + "+Shift+Control"]: t,
[e + "+Shift"]: t,
- [Zt() ? e + "+Alt" : e + "+Control"]: t,
+ [tn() ? e + "+Alt" : e + "+Control"]: t,
[e]: t
- }), { keyboardProps: N } = Or({
+ }), { keyboardProps: te } = Mr({
shortcuts: {
- ...M("ArrowDown", y),
- ...M("ArrowUp", x),
- ...M("ArrowLeft", C),
- ...M("ArrowRight", w),
- ...M("PageDown", E),
- ...M("PageUp", D)
+ ...j("ArrowDown", y),
+ ...j("ArrowUp", b),
+ ...j("ArrowLeft", C),
+ ...j("ArrowRight", w),
+ ...j("PageDown", E),
+ ...j("PageUp", D)
},
allowRepeats: !0
- }), { keyboardProps: ee } = Or({ shortcuts: {
- ...M("Home", S),
- ...M("End", T),
+ }), { keyboardProps: M } = Mr({ shortcuts: {
+ ...j("Home", S),
+ ...j("End", T),
"Mod+A": O,
Escape: k,
Tab: A,
- "Tab+Shift": j
- } }), te = (0, b.useRef)({
+ "Tab+Shift": ee
+ } }), ne = (0, x.useRef)({
top: 0,
left: 0
});
- gi(p, "scroll", () => {
- te.current = {
+ bi(p, "scroll", () => {
+ ne.current = {
top: p.current?.scrollTop ?? 0,
left: p.current?.scrollLeft ?? 0
};
});
- let P = (e) => {
+ let N = (e) => {
if (t.isFocused) {
- z(e.currentTarget, B(e)) || t.setFocused(!1);
+ R(e.currentTarget, z(e)) || t.setFocused(!1);
return;
}
- if (!z(e.currentTarget, B(e))) return;
- let i = Wn();
+ if (!R(e.currentTarget, z(e))) return;
+ let i = Jn();
t.setFocused(!0);
let a = (e) => {
e != null && (t.setFocusedKey(e), l && !t.isSelected(e) && t.replaceSelection(e));
@@ -6134,34 +6237,34 @@ function Ys(e) {
else if (t.focusedKey == null) {
let r = e.relatedTarget;
r && e.currentTarget.compareDocumentPosition(r) & Node.DOCUMENT_POSITION_FOLLOWING ? a(t.lastSelectedKey ?? n.getLastKey?.()) : a(t.firstSelectedKey ?? n.getFirstKey?.());
- } else p.current && (p.current.scrollTop = te.current.top, p.current.scrollLeft = te.current.left);
+ } else p.current && (p.current.scrollTop = ne.current.top, p.current.scrollLeft = ne.current.left);
if (t.focusedKey != null && p.current) {
- let e = Xo(r, t.focusedKey);
- e instanceof HTMLElement && (!Nt(e) && !d && _t(e), (i === "keyboard" || h && i === "virtual") && ro(e, { containingElement: r.current }));
+ let e = Qo(r, t.focusedKey);
+ e instanceof HTMLElement && (!Lt(e) && !d && xt(e), (i === "keyboard" || h && i === "virtual") && ao(e, { containingElement: r.current }));
}
- }, ne = (e) => {
- z(e.currentTarget, e.relatedTarget) || t.setFocused(!1);
- }, F = (0, b.useRef)(!1);
- gi(r, oi, d ? (e) => {
+ }, re = (e) => {
+ R(e.currentTarget, e.relatedTarget) || t.setFocused(!1);
+ }, P = (0, x.useRef)(!1);
+ bi(r, ui, d ? (e) => {
let { detail: n } = e;
- e.stopPropagation(), t.setFocused(!0), n?.focusStrategy === "first" && (F.current = !0);
+ e.stopPropagation(), t.setFocused(!0), n?.focusStrategy === "first" && (P.current = !0);
} : void 0);
- let re = n.getFirstKey?.() ?? null;
- Js(() => {
- if (F.current) {
- if (re == null) {
- let e = jt();
- si(r.current), li(e, null), t.collection.size > 0 && (F.current = !1);
- } else t.setFocusedKey(re), F.current = !1;
- }
- }, [re, t.collection.size]), Js(() => {
- t.collection.size > 0 && (F.current = !1);
- }, [t.focusedKey]), gi(r, ai, d ? (e) => {
+ let ie = n.getFirstKey?.() ?? null;
+ Xs(() => {
+ if (P.current) {
+ if (ie == null) {
+ let e = Ft();
+ di(r.current), pi(e, null), t.collection.size > 0 && (P.current = !1);
+ } else t.setFocusedKey(ie), P.current = !1;
+ }
+ }, [ie, t.collection.size]), Xs(() => {
+ t.collection.size > 0 && (P.current = !1);
+ }, [t.focusedKey]), bi(r, li, d ? (e) => {
e.stopPropagation(), t.setFocused(!1), e.detail?.clearFocusKey && t.setFocusedKey(null);
} : void 0);
- let ie = (0, b.useRef)(i), ae = (0, b.useRef)(!1);
- (0, b.useEffect)(() => {
- if (ie.current) {
+ let ae = (0, x.useRef)(i), oe = (0, x.useRef)(!1);
+ (0, x.useEffect)(() => {
+ if (ae.current) {
let e = null;
i === "first" && (e = n.getFirstKey?.() ?? null), i === "last" && (e = n.getLastKey?.() ?? null);
let a = t.selectedKeys;
@@ -6171,53 +6274,53 @@ function Ys(e) {
break;
}
}
- t.setFocused(!0), t.setFocusedKey(e), e != null && l && !a.size && t.canSelectItem(e) && t.replaceSelection(e), e == null && !d && r.current && er(r.current), t.collection.size > 0 && (ie.current = !1, ae.current = !0);
+ t.setFocused(!0), t.setFocusedKey(e), e != null && l && !a.size && t.canSelectItem(e) && t.replaceSelection(e), e == null && !d && r.current && ir(r.current), t.collection.size > 0 && (ae.current = !1, oe.current = !0);
}
});
- let oe = (0, b.useRef)(t.focusedKey), se = (0, b.useRef)(null);
- (0, b.useEffect)(() => {
- if (t.isFocused && t.focusedKey != null && (t.focusedKey !== oe.current || ae.current) && p.current && r.current) {
- let e = Wn(), n = Xo(r, t.focusedKey);
+ let se = (0, x.useRef)(t.focusedKey), ce = (0, x.useRef)(null);
+ (0, x.useEffect)(() => {
+ if (t.isFocused && t.focusedKey != null && (t.focusedKey !== se.current || oe.current) && p.current && r.current) {
+ let e = Jn(), n = Qo(r, t.focusedKey);
if (!(n instanceof HTMLElement)) return;
- (e === "keyboard" || ae.current) && (se.current && cancelAnimationFrame(se.current), se.current = requestAnimationFrame(() => {
- p.current && (to(p.current, n), e !== "virtual" && ro(n, { containingElement: r.current }));
+ (e === "keyboard" || oe.current) && (ce.current && cancelAnimationFrame(ce.current), ce.current = requestAnimationFrame(() => {
+ p.current && (ro(p.current, n), e !== "virtual" && ao(n, { containingElement: r.current }));
}));
}
- !d && t.isFocused && t.focusedKey == null && oe.current != null && r.current && er(r.current), oe.current = t.focusedKey, ae.current = !1;
- }), (0, b.useEffect)(() => () => {
- se.current && cancelAnimationFrame(se.current);
- }, []), gi(r, "react-aria-focus-scope-restore", (e) => {
+ !d && t.isFocused && t.focusedKey == null && se.current != null && r.current && ir(r.current), se.current = t.focusedKey, oe.current = !1;
+ }), (0, x.useEffect)(() => () => {
+ ce.current && cancelAnimationFrame(ce.current);
+ }, []), bi(r, "react-aria-focus-scope-restore", (e) => {
e.preventDefault(), t.setFocused(!0);
});
- let ce = {
- ...U(ee, N),
- onFocus: P,
- onBlur: ne,
+ let le = {
+ ...H(M, te),
+ onFocus: N,
+ onBlur: re,
onMouseDown(e) {
- p.current === B(e) && e.preventDefault();
+ p.current === z(e) && e.preventDefault();
}
- }, { typeSelectProps: le } = Ks({
+ }, { typeSelectProps: ue } = Js({
keyboardDelegate: n,
selectionManager: t
});
- u || (ce = U(le, ce));
- let ue;
- d || (ue = t.focusedKey == null ? 0 : -1);
- let de = Qo(t.collection);
- return { collectionProps: U(ce, {
- tabIndex: ue,
- "data-collection": de
+ u || (le = H(ue, le));
+ let de;
+ d || (de = t.focusedKey == null ? 0 : -1);
+ let fe = es(t.collection);
+ return { collectionProps: H(le, {
+ tabIndex: de,
+ "data-collection": fe
}) };
}
//#endregion
//#region node_modules/react-stately/dist/private/collections/getChildNodes.mjs
-function Xs(e, t) {
+function Qs(e, t) {
return typeof t.getChildren == "function" ? t.getChildren(e.key) : e.childNodes;
}
-function Zs(e) {
- return Qs(e, 0);
+function $s(e) {
+ return ec(e, 0);
}
-function Qs(e, t) {
+function ec(e, t) {
if (t < 0) return;
let n = 0;
for (let r of e) {
@@ -6225,96 +6328,96 @@ function Qs(e, t) {
n++;
}
}
-function $s(e, t, n) {
+function tc(e, t, n) {
if (t.parentKey === n.parentKey) return t.index - n.index;
- let r = [...ec(e, t), t], i = [...ec(e, n), n], a = r.slice(0, i.length).findIndex((e, t) => e !== i[t]);
+ let r = [...nc(e, t), t], i = [...nc(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 ec(e, t) {
+function nc(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 tc = /* @__PURE__ */ new WeakMap();
-function nc(e) {
- let t = tc.get(e);
+var rc = /* @__PURE__ */ new WeakMap();
+function ic(e) {
+ let t = rc.get(e);
if (t != null) return t;
let n = 0, r = (t) => {
- for (let i of t) i.type === "section" ? r(Xs(i, e)) : i.type === "item" && n++;
+ for (let i of t) i.type === "section" ? r(Qs(i, e)) : i.type === "item" && n++;
};
- return r(e), tc.set(e, n), n;
+ return r(e), rc.set(e, n), n;
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/useCollator.mjs
-var rc = /* @__PURE__ */ new Map();
-function ic(e) {
- let { locale: t } = Oi(), n = t + (e ? Object.entries(e).sort((e, t) => e[0] < t[0] ? -1 : 1).join() : "");
- if (rc.has(n)) return rc.get(n);
+var ac = /* @__PURE__ */ new Map();
+function oc(e) {
+ let { locale: t } = Mi(), n = t + (e ? Object.entries(e).sort((e, t) => e[0] < t[0] ? -1 : 1).join() : "");
+ if (ac.has(n)) return ac.get(n);
let r = new Intl.Collator(t, e);
- return rc.set(n, r), r;
+ return ac.set(n, r), r;
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/PressResponder.mjs
-function ac({ children: e }) {
- let t = (0, b.useMemo)(() => ({ register: () => {} }), []);
- return /*#__PURE__*/ b.createElement(ra.Provider, { value: t }, e);
+function sc({ children: e }) {
+ let t = (0, x.useMemo)(() => ({ register: () => {} }), []);
+ return /*#__PURE__*/ x.createElement(oa.Provider, { value: t }, e);
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/PortalProvider.mjs
-var oc = /*#__PURE__*/ (0, b.createContext)({});
-function sc(e) {
- let { getContainer: t } = e, { getContainer: n } = cc();
- return /*#__PURE__*/ b.createElement(oc.Provider, { value: { getContainer: t === null ? void 0 : t ?? n } }, e.children);
+var cc = /*#__PURE__*/ (0, x.createContext)({});
+function lc(e) {
+ let { getContainer: t } = e, { getContainer: n } = uc();
+ return /*#__PURE__*/ x.createElement(cc.Provider, { value: { getContainer: t === null ? void 0 : t ?? n } }, e.children);
}
-function cc() {
- return (0, b.useContext)(oc) ?? {};
+function uc() {
+ return (0, x.useContext)(cc) ?? {};
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/Overlay.mjs
-var lc = /*#__PURE__*/ b.createContext(null);
-function uc(e) {
- let t = En(), { portalContainer: n = t ? null : document.body, isExiting: r } = e, [i, a] = (0, b.useState)(!1), o = (0, b.useMemo)(() => ({
+var dc = /*#__PURE__*/ x.createContext(null);
+function fc(e) {
+ let t = An(), { portalContainer: n = t ? null : document.body, isExiting: r } = e, [i, a] = (0, x.useState)(!1), o = (0, x.useMemo)(() => ({
contain: i,
setContain: a
- }), [i, a]), { getContainer: s } = cc();
+ }), [i, a]), { getContainer: s } = uc();
if (!e.portalContainer && s && (n = s()), !n) return null;
let c = e.children;
- return e.disableFocusManagement || (c = /*#__PURE__*/ b.createElement(wa, {
+ return e.disableFocusManagement || (c = /*#__PURE__*/ x.createElement(Ea, {
restoreFocus: !0,
contain: (e.shouldContainFocus || i) && !r
- }, c)), c = /*#__PURE__*/ b.createElement(lc.Provider, { value: o }, /*#__PURE__*/ b.createElement(ac, null, /*#__PURE__*/ b.createElement(jr.Provider, { value: null }, c))), /*#__PURE__*/ Hr.createPortal(c, n);
+ }, c)), c = /*#__PURE__*/ x.createElement(dc.Provider, { value: o }, /*#__PURE__*/ x.createElement(sc, null, /*#__PURE__*/ x.createElement(Fr.Provider, { value: null }, c))), /*#__PURE__*/ Kr.createPortal(c, n);
}
-function dc() {
- let e = (0, b.useContext)(lc)?.setContain;
- H(() => {
+function pc() {
+ let e = (0, x.useContext)(dc)?.setContain;
+ V(() => {
e?.(!0);
}, [e]);
}
//#endregion
//#region node_modules/react-aria/dist/private/dialog/useDialog.mjs
-function fc(e, t) {
- let { role: n = "dialog" } = e, r = lr();
+function mc(e, t) {
+ let { role: n = "dialog" } = e, r = pr();
r = e["aria-label"] ? void 0 : r;
- let i = lr();
+ let i = pr();
i = n === "alertdialog" && !e["aria-describedby"] ? i : void 0;
- let a = (0, b.useRef)(!1);
- (0, b.useEffect)(() => {
- if (t.current && !Nt(t.current)) {
- er(t.current);
+ let a = (0, x.useRef)(!1);
+ (0, x.useEffect)(() => {
+ if (t.current && !Lt(t.current)) {
+ ir(t.current);
let e = setTimeout(() => {
- (jt() === t.current || jt() === document.body) && (a.current = !0, t.current && (t.current.blur(), er(t.current)), a.current = !1);
+ (Ft() === t.current || Ft() === document.body) && (a.current = !0, t.current && (t.current.blur(), ir(t.current)), a.current = !1);
}, 500);
return () => {
clearTimeout(e);
};
}
- }, [t]), dc(), (0, b.useRef)(!1), (0, b.useEffect)(() => {});
+ }, [t]), pc(), (0, x.useRef)(!1), (0, x.useEffect)(() => {});
let o = e["aria-describedby"] ?? i;
return {
dialogProps: {
- ...Yi(e, { labelable: !0 }),
+ ...U(e, { labelable: !0 }),
role: n,
tabIndex: -1,
"aria-labelledby": e["aria-labelledby"] ?? r,
@@ -6329,23 +6432,23 @@ function fc(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/focus/useFocusRing.mjs
-function pc(e = {}) {
- let { autoFocus: t = !1, isTextInput: n, within: r } = e, i = (0, b.useRef)({
+function hc(e = {}) {
+ let { autoFocus: t = !1, isTextInput: n, within: r } = e, i = (0, x.useRef)({
isFocused: !1,
- isFocusVisible: t || Un()
- }), [a, o] = (0, b.useState)(!1), [s, c] = (0, b.useState)(() => i.current.isFocused && i.current.isFocusVisible), l = (0, b.useCallback)(() => c(i.current.isFocused && i.current.isFocusVisible), []), u = (0, b.useCallback)((e) => {
- i.current.isFocused = e, i.current.isFocusVisible = Un(), o(e), l();
+ isFocusVisible: t || qn()
+ }), [a, o] = (0, x.useState)(!1), [s, c] = (0, x.useState)(() => i.current.isFocused && i.current.isFocusVisible), l = (0, x.useCallback)(() => c(i.current.isFocused && i.current.isFocusVisible), []), u = (0, x.useCallback)((e) => {
+ i.current.isFocused = e, i.current.isFocusVisible = qn(), o(e), l();
}, [l]);
- Jn((e) => {
+ Qn((e) => {
i.current.isFocusVisible = e, l();
}, [n, a], {
enabled: a,
isTextInput: n
});
- let { focusProps: d } = mr({
+ let { focusProps: d } = vr({
isDisabled: r,
onFocusChange: u
- }), { focusWithinProps: f } = jo({
+ }), { focusWithinProps: f } = No({
isDisabled: !r,
onFocusWithinChange: u
});
@@ -6357,42 +6460,42 @@ function pc(e = {}) {
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/useListFormatter.mjs
-function mc(e = {}) {
- let { locale: t } = Oi();
- return (0, b.useMemo)(() => new Intl.ListFormat(t, e), [t, e]);
+function gc(e = {}) {
+ let { locale: t } = Mi();
+ return (0, x.useMemo)(() => new Intl.ListFormat(t, e), [t, e]);
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useHover.mjs
-var hc = !1, gc = 0;
-function _c() {
- hc = !0, setTimeout(() => {
- hc = !1;
+var _c = !1, vc = 0;
+function yc() {
+ _c = !0, setTimeout(() => {
+ _c = !1;
}, 500);
}
-function vc(e) {
- e.pointerType === "touch" && _c();
+function bc(e) {
+ e.pointerType === "touch" && yc();
}
-function yc() {
- let e = R(null);
- if (e !== void 0) return gc === 0 && typeof PointerEvent < "u" && e.addEventListener("pointerup", vc), gc++, () => {
- gc--, !(gc > 0) && typeof PointerEvent < "u" && e.removeEventListener("pointerup", vc);
+function xc() {
+ let e = L(null);
+ if (e !== void 0) return vc === 0 && typeof PointerEvent < "u" && e.addEventListener("pointerup", bc), vc++, () => {
+ vc--, !(vc > 0) && typeof PointerEvent < "u" && e.removeEventListener("pointerup", bc);
};
}
-function bc(e) {
- let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, isDisabled: i } = e, [a, o] = (0, b.useState)(!1), s = (0, b.useRef)({
+function Sc(e) {
+ let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, isDisabled: i } = e, [a, o] = (0, x.useState)(!1), s = (0, x.useRef)({
isHovered: !1,
ignoreEmulatedMouseEvents: !1,
pointerType: "",
target: null
}).current;
- (0, b.useEffect)(yc, []);
- let { addGlobalListener: c, removeAllGlobalListeners: l } = ia(), { hoverProps: u, triggerHoverEnd: d } = (0, b.useMemo)(() => {
+ (0, x.useEffect)(xc, []);
+ let { addGlobalListener: c, removeAllGlobalListeners: l } = sa(), { hoverProps: u, triggerHoverEnd: d } = (0, x.useMemo)(() => {
let e = (e, r) => {
- if (s.pointerType = r, i || r === "touch" || s.isHovered || !z(e.currentTarget, B(e))) return;
+ if (s.pointerType = r, i || r === "touch" || s.isHovered || !R(e.currentTarget, z(e))) return;
s.isHovered = !0;
let l = e.currentTarget;
- s.target = l, c(R(B(e)), "pointerover", (e) => {
- s.isHovered && s.target && !z(s.target, B(e)) && a(e, e.pointerType);
+ s.target = l, c(L(z(e)), "pointerover", (e) => {
+ s.isHovered && s.target && !R(s.target, z(e)) && a(e, e.pointerType);
}, { capture: !0 }), t && t({
type: "hoverstart",
target: l,
@@ -6407,9 +6510,9 @@ function bc(e) {
}), n && n(!1), o(!1));
}, u = {};
return typeof PointerEvent < "u" && (u.onPointerEnter = (t) => {
- hc && t.pointerType === "mouse" || e(t, t.pointerType);
+ _c && t.pointerType === "mouse" || e(t, t.pointerType);
}, u.onPointerLeave = (e) => {
- !i && z(e.currentTarget, B(e)) && a(e, e.pointerType);
+ !i && R(e.currentTarget, z(e)) && a(e, e.pointerType);
}), {
hoverProps: u,
triggerHoverEnd: a
@@ -6423,7 +6526,7 @@ function bc(e) {
c,
l
]);
- return (0, b.useEffect)(() => {
+ return (0, x.useEffect)(() => {
i && d({ currentTarget: s.target }, s.pointerType);
}, [i]), {
hoverProps: u,
@@ -6432,22 +6535,22 @@ function bc(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useInteractOutside.mjs
-function xc(e) {
- let { ref: t, onInteractOutside: n, isDisabled: r, onInteractOutsideStart: i } = e, a = (0, b.useRef)({
+function Cc(e) {
+ let { ref: t, onInteractOutside: n, isDisabled: r, onInteractOutsideStart: i } = e, a = (0, x.useRef)({
isPointerDown: !1,
ignoreEmulatedMouseEvents: !1
- }), o = hi((e) => {
- n && Sc(e, t) && (i && i(e), a.current.isPointerDown = !0);
- }), s = hi((e) => {
+ }), o = yi((e) => {
+ n && wc(e, t) && (i && i(e), a.current.isPointerDown = !0);
+ }), s = yi((e) => {
n && n(e);
});
- (0, b.useEffect)(() => {
+ (0, x.useEffect)(() => {
let e = a.current;
if (r) return;
- let n = t.current, i = R(n);
+ let n = t.current, i = L(n);
if (typeof PointerEvent < "u") {
let n = (n) => {
- e.isPointerDown && Sc(n, t) && s(n), e.isPointerDown = !1;
+ e.isPointerDown && wc(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);
@@ -6455,22 +6558,22 @@ function xc(e) {
}
}, [t, r]);
}
-function Sc(e, t) {
+function wc(e, t) {
if (e.button > 0) return !1;
- let n = B(e);
+ let n = z(e);
if (n) {
let e = n.ownerDocument;
- if (!e || !z(e.documentElement, n) || n.closest("[data-react-aria-top-layer]")) return !1;
+ if (!e || !R(e.documentElement, n) || n.closest("[data-react-aria-top-layer]")) return !1;
}
return t.current ? !e.composedPath().includes(t.current) : !1;
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/useSelectableList.mjs
-function Cc(e) {
- let { selectionManager: t, collection: n, disabledKeys: r, ref: i, keyboardDelegate: a, layoutDelegate: o, orientation: s } = e, c = ic({
+function Tc(e) {
+ let { selectionManager: t, collection: n, disabledKeys: r, ref: i, keyboardDelegate: a, layoutDelegate: o, orientation: s } = e, c = oc({
usage: "search",
sensitivity: "base"
- }), l = t.disabledBehavior, u = (0, b.useMemo)(() => a || new ts({
+ }), l = t.disabledBehavior, u = (0, x.useMemo)(() => a || new rs({
collection: n,
disabledKeys: r,
disabledBehavior: l,
@@ -6487,7 +6590,7 @@ function Cc(e) {
c,
l,
s
- ]), { collectionProps: d } = Ys({
+ ]), { collectionProps: d } = Zs({
...e,
ref: i,
selectionManager: t,
@@ -6497,11 +6600,11 @@ function Cc(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/useSelectableItem.mjs
-function wc(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 = un();
- t = sr(t);
+function Ec(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 = mn();
+ t = dr(t);
let p = (e) => {
- if (e.pointerType === "keyboard" && Yo(e)) n.toggleSelection(r);
+ if (e.pointerType === "keyboard" && Zo(e)) n.toggleSelection(r);
else {
if (n.selectionMode === "none") return;
if (n.isLink(r)) {
@@ -6512,11 +6615,11 @@ function wc(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 && (hi(e) || e.pointerType === "touch" || e.pointerType === "virtual") ? n.toggleSelection(r) : n.replaceSelection(r);
}
};
- (0, b.useEffect)(() => {
- r === n.focusedKey && n.isFocused && (o ? si(i.current) : s ? s() : jt() !== i.current && i.current && er(i.current));
+ (0, x.useEffect)(() => {
+ r === n.focusedKey && n.isFocused && (o ? di(i.current) : s ? s() : Ft() !== i.current && i.current && ir(i.current));
}, [
i,
r,
@@ -6529,38 +6632,38 @@ function wc(e) {
!o && !c ? m = {
tabIndex: r === n.focusedKey ? 0 : -1,
onFocus(e) {
- B(e) === i.current && n.setFocusedKey(r);
+ z(e) === i.current && n.setFocusedKey(r);
}
} : c && (m.onMouseDown = (e) => {
e.preventDefault();
- }), (0, b.useEffect)(() => {
+ }), (0, x.useEffect)(() => {
c && n.focusedKey === r && n.setFocusedKey(null);
}, [
n,
c,
r
]);
- let h = n.isLink(r) && d === "override", g = l && e.UNSTABLE_itemBehavior === "action", _ = n.isLink(r) && d !== "selection" && d !== "none", v = !c && n.canSelectItem(r) && !h && !g, y = (l || _) && !c, x = y && (n.selectionBehavior === "replace" ? !v : !v || n.isEmpty), S = y && v && n.selectionBehavior === "replace", C = x || S, w = (0, b.useRef)(null), T = C && v, E = (0, b.useRef)(!1), D = (0, b.useRef)(!1), O = n.getItemProps(r), k = (e) => {
+ let h = n.isLink(r) && d === "override", g = l && e.UNSTABLE_itemBehavior === "action", _ = n.isLink(r) && d !== "selection" && d !== "none", v = !c && n.canSelectItem(r) && !h && !g, y = (l || _) && !c, b = y && (n.selectionBehavior === "replace" ? !v : !v || n.isEmpty), S = y && v && n.selectionBehavior === "replace", C = b || S, w = (0, x.useRef)(null), T = C && v, E = (0, x.useRef)(!1), D = (0, x.useRef)(!1), O = n.getItemProps(r), k = (e) => {
l && (l(), i.current?.dispatchEvent(new CustomEvent("react-aria-item-action", { bubbles: !0 }))), _ && i.current && f.open(i.current, e, O.href, O.routerOptions);
}, A = { ref: i };
a ? (A.onPressStart = (e) => {
- w.current = e.pointerType, E.current = T, e.pointerType === "keyboard" && (!C || Ec(e.key)) && p(e);
- }, u ? (A.onPressUp = x ? void 0 : (e) => {
+ w.current = e.pointerType, E.current = T, e.pointerType === "keyboard" && (!C || Oc(e.key)) && p(e);
+ }, u ? (A.onPressUp = b ? void 0 : (e) => {
e.pointerType === "mouse" && v && p(e);
- }, A.onPress = x ? k : (e) => {
+ }, A.onPress = b ? k : (e) => {
e.pointerType !== "keyboard" && e.pointerType !== "mouse" && v && p(e);
}) : A.onPress = (e) => {
- if (x || S && e.pointerType !== "mouse") {
- if (e.pointerType === "keyboard" && !Tc(e.key)) return;
+ if (b || S && e.pointerType !== "mouse") {
+ if (e.pointerType === "keyboard" && !Dc(e.key)) return;
k(e);
} else e.pointerType !== "keyboard" && v && p(e);
}) : (A.onPressStart = (e) => {
- w.current = e.pointerType, E.current = T, D.current = x, v && (e.pointerType === "mouse" && !x || e.pointerType === "keyboard" && (!y || Ec(e.key))) && p(e);
+ w.current = e.pointerType, E.current = T, D.current = b, v && (e.pointerType === "mouse" && !b || e.pointerType === "keyboard" && (!y || Oc(e.key))) && p(e);
}, A.onPress = (e) => {
- (e.pointerType === "touch" || e.pointerType === "pen" || e.pointerType === "virtual" || e.pointerType === "keyboard" && C && Tc(e.key) || e.pointerType === "mouse" && D.current) && (C ? k(e) : v && p(e));
+ (e.pointerType === "touch" || e.pointerType === "pen" || e.pointerType === "virtual" || e.pointerType === "keyboard" && C && Dc(e.key) || e.pointerType === "mouse" && D.current) && (C ? k(e) : v && p(e));
});
- let j = $o(n.collection);
- if (m["data-collection"] = j, m["data-key"] = r, A.preventFocusOnPress = o, o && (A = U(A, {
+ let ee = ts(n.collection);
+ if (m["data-collection"] = ee, m["data-key"] = r, A.preventFocusOnPress = o, o && (A = H(A, {
onPressStart(e) {
e.pointerType !== "touch" && (n.setFocused(!0), n.setFocusedKey(r));
},
@@ -6574,51 +6677,51 @@ function wc(e) {
"onPress",
"onPressUp",
"onClick"
- ]) O[e] && (A[e] = tr(A[e], O[e]));
- let { pressProps: M, isPressed: N } = ua(A), ee = S ? (e) => {
+ ]) O[e] && (A[e] = ar(A[e], O[e]));
+ let { pressProps: j, isPressed: te } = pa(A), M = S ? (e) => {
w.current === "mouse" && (e.stopPropagation(), e.preventDefault(), k(e));
- } : void 0, { longPressProps: te } = Rs({
+ } : void 0, { longPressProps: ne } = Bs({
isDisabled: !T,
onLongPress(e) {
e.pointerType === "touch" && (p(e), n.setSelectionBehavior("toggle"));
}
- }), P = (e) => {
+ }), N = (e) => {
w.current === "touch" && E.current && e.preventDefault();
- }, ne = d !== "none" && n.isLink(r) ? (e) => {
- dn.isOpening || e.preventDefault();
- } : void 0, F = U(m, v || x || o && !c ? M : {}, T ? te : {}, {
- onDoubleClick: ee,
- onDragStartCapture: P,
- onClick: ne,
+ }, re = d !== "none" && n.isLink(r) ? (e) => {
+ hn.isOpening || e.preventDefault();
+ } : void 0, P = H(m, v || b || o && !c ? j : {}, T ? ne : {}, {
+ onDoubleClick: M,
+ onDragStartCapture: N,
+ onClick: re,
id: t
- }, o ? { onMouseDown: (e) => e.preventDefault() } : void 0), re = (e) => {
+ }, o ? { onMouseDown: (e) => e.preventDefault() } : void 0), ie = (e) => {
let t = e;
for (; t && t !== i.current;) {
let e = t.getAttribute("data-collection");
- if (e != null) return e !== j;
+ if (e != null) return e !== ee;
t = t.parentElement;
}
- return V(e);
- }, ie = F.onPointerDown;
- F.onPointerDown = (e) => {
- let t = B(e);
- if (t && t !== i.current && re(t)) {
+ return Gt(e);
+ }, ae = P.onPointerDown;
+ P.onPointerDown = (e) => {
+ let t = z(e);
+ if (t && t !== i.current && ie(t)) {
e.stopPropagation();
return;
}
- ie?.(e);
+ ae?.(e);
};
- let ae = F.onMouseDown;
- return F.onMouseDown = (e) => {
- let t = B(e);
- if (t && t !== i.current && re(t)) {
+ let oe = P.onMouseDown;
+ return P.onMouseDown = (e) => {
+ let t = z(e);
+ if (t && t !== i.current && ie(t)) {
e.stopPropagation();
return;
}
- ae?.(e);
+ oe?.(e);
}, {
- itemProps: F,
- isPressed: N,
+ itemProps: P,
+ isPressed: te,
isSelected: n.isSelected(r),
isFocused: n.isFocused && n.focusedKey === r,
isDisabled: c,
@@ -6626,30 +6729,30 @@ function wc(e) {
hasAction: C
};
}
-function Tc(e) {
+function Dc(e) {
return e === "Enter";
}
-function Ec(e) {
+function Oc(e) {
return e === " ";
}
//#endregion
//#region node_modules/react-aria/dist/private/listbox/useListBox.mjs
-function Dc(e, t, n) {
- let r = Yi(e, { labelable: !0 }), i = e.selectionBehavior || "toggle", a = e.orientation || "vertical", o = e.linkBehavior || (i === "replace" ? "action" : "override");
+function kc(e, t, n) {
+ let r = U(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 } = Cc({
+ let { listProps: s } = Tc({
...e,
ref: n,
selectionManager: t.selectionManager,
collection: t.collection,
disabledKeys: t.disabledKeys,
linkBehavior: o
- }), { focusWithinProps: c } = jo({
+ }), { focusWithinProps: c } = No({
onFocusWithin: e.onFocus,
onBlurWithin: e.onBlur,
onFocusWithinChange: e.onFocusChange
- }), l = sr(e.id);
- Ko.set(t, {
+ }), l = dr(e.id);
+ Jo.set(t, {
id: l,
shouldUseVirtualFocus: e.shouldUseVirtualFocus,
shouldSelectOnPressUp: e.shouldSelectOnPressUp,
@@ -6659,24 +6762,24 @@ function Dc(e, t, n) {
linkBehavior: o,
UNSTABLE_itemBehavior: e.UNSTABLE_itemBehavior
});
- let { labelProps: u, fieldProps: d } = ko({
+ let { labelProps: u, fieldProps: d } = jo({
...e,
id: l,
labelElementType: "span"
});
return {
labelProps: u,
- listBoxProps: U(r, c, t.selectionManager.selectionMode === "multiple" ? { "aria-multiselectable": "true" } : {}, {
+ listBoxProps: H(r, c, t.selectionManager.selectionMode === "multiple" ? { "aria-multiselectable": "true" } : {}, {
role: "listbox",
"aria-orientation": a,
- ...U(d, s)
+ ...H(d, s)
})
};
}
//#endregion
//#region node_modules/react-aria/dist/private/listbox/useListBoxSection.mjs
-function Oc(e) {
- let { heading: t, "aria-label": n } = e, r = sr();
+function Ac(e) {
+ let { heading: t, "aria-label": n } = e, r = dr();
return {
itemProps: { role: "presentation" },
headingProps: t ? {
@@ -6695,8 +6798,8 @@ function Oc(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/listbox/useOption.mjs
-function kc(e, t, n) {
- let { key: r } = e, i = Ko.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 = lr(), f = lr(), p = {
+function jc(e, t, n) {
+ let { key: r } = e, i = Jo.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 = pr(), f = pr(), p = {
role: "option",
"aria-disabled": a || void 0,
"aria-selected": t.selectionManager.selectionMode === "none" ? void 0 : o,
@@ -6706,9 +6809,9 @@ function kc(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"] = nc(t.collection);
+ p["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, p["aria-setsize"] = ic(t.collection);
}
- let h = i?.onAction ? () => i?.onAction?.(r) : void 0, g = Jo(t, r), { itemProps: _, isPressed: v, isFocused: y, hasAction: b, allowsSelection: x } = wc({
+ let h = i?.onAction ? () => i?.onAction?.(r) : void 0, g = Xo(t, r), { itemProps: _, isPressed: v, isFocused: y, hasAction: b, allowsSelection: x } = Ec({
selectionManager: t.selectionManager,
key: r,
ref: n,
@@ -6717,28 +6820,28 @@ function kc(e, t, n) {
isVirtualized: u,
shouldUseVirtualFocus: l,
isDisabled: a,
- onAction: h || m?.props?.onAction ? tr(m?.props?.onAction, h) : void 0,
+ onAction: h || m?.props?.onAction ? ar(m?.props?.onAction, h) : void 0,
linkBehavior: i?.linkBehavior,
UNSTABLE_itemBehavior: i?.UNSTABLE_itemBehavior,
id: g
- }), { hoverProps: S } = bc({
+ }), { hoverProps: S } = Sc({
isDisabled: a || !c,
onHoverStart() {
- Un() || (t.selectionManager.setFocused(!0), t.selectionManager.setFocusedKey(r));
+ qn() || (t.selectionManager.setFocused(!0), t.selectionManager.setFocusedKey(r));
}
- }), C = Yi(m?.props);
+ }), C = U(m?.props);
delete C.id;
- let w = mn(m?.props);
+ let w = vn(m?.props);
return {
optionProps: {
...p,
- ...U(C, _, S, w),
+ ...H(C, _, S, w),
id: g
},
labelProps: { id: d },
descriptionProps: { id: f },
isFocused: y,
- isFocusVisible: y && t.selectionManager.isFocused && Un(),
+ isFocusVisible: y && t.selectionManager.isFocused && qn(),
isSelected: o,
isDisabled: a,
isPressed: v,
@@ -6748,15 +6851,15 @@ function kc(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useResizeObserver.mjs
-function Ac() {
+function Mc() {
return window.ResizeObserver !== void 0;
}
-function jc(e) {
- let { ref: t, box: n, onResize: r } = e, i = hi(r);
- (0, b.useEffect)(() => {
+function Nc(e) {
+ let { ref: t, box: n, onResize: r } = e, i = yi(r);
+ (0, x.useEffect)(() => {
let e = t?.current;
if (e) {
- if (Ac()) {
+ if (Mc()) {
let t = new window.ResizeObserver((e) => {
e.length && i();
});
@@ -6772,189 +6875,189 @@ function jc(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ar-AE.mjs
-var Mc = {};
-Mc = { dismiss: "تجاهل" };
+var Pc = {};
+Pc = { dismiss: "تجاهل" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/bg-BG.mjs
-var Nc = {};
-Nc = { dismiss: "Отхвърляне" };
+var Fc = {};
+Fc = { dismiss: "Отхвърляне" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/cs-CZ.mjs
-var Pc = {};
-Pc = { dismiss: "Odstranit" };
+var Ic = {};
+Ic = { dismiss: "Odstranit" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/da-DK.mjs
-var Fc = {};
-Fc = { dismiss: "Luk" };
+var Lc = {};
+Lc = { dismiss: "Luk" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/de-DE.mjs
-var Ic = {};
-Ic = { dismiss: "Schließen" };
+var Rc = {};
+Rc = { dismiss: "Schließen" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/el-GR.mjs
-var Lc = {};
-Lc = { dismiss: "Απόρριψη" };
+var zc = {};
+zc = { dismiss: "Απόρριψη" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/en-US.mjs
-var Rc = {};
-Rc = { dismiss: "Dismiss" };
+var Bc = {};
+Bc = { dismiss: "Dismiss" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/es-ES.mjs
-var zc = {};
-zc = { dismiss: "Descartar" };
+var Vc = {};
+Vc = { dismiss: "Descartar" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/et-EE.mjs
-var Bc = {};
-Bc = { dismiss: "Lõpeta" };
+var Hc = {};
+Hc = { dismiss: "Lõpeta" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/fi-FI.mjs
-var Vc = {};
-Vc = { dismiss: "Hylkää" };
+var Uc = {};
+Uc = { dismiss: "Hylkää" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/fr-FR.mjs
-var Hc = {};
-Hc = { dismiss: "Rejeter" };
+var Wc = {};
+Wc = { dismiss: "Rejeter" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/he-IL.mjs
-var Uc = {};
-Uc = { dismiss: "התעלם" };
+var Gc = {};
+Gc = { dismiss: "התעלם" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/hr-HR.mjs
-var Wc = {};
-Wc = { dismiss: "Odbaci" };
+var Kc = {};
+Kc = { dismiss: "Odbaci" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/hu-HU.mjs
-var Gc = {};
-Gc = { dismiss: "Elutasítás" };
+var qc = {};
+qc = { dismiss: "Elutasítás" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/it-IT.mjs
-var Kc = {};
-Kc = { dismiss: "Ignora" };
+var Jc = {};
+Jc = { dismiss: "Ignora" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ja-JP.mjs
-var qc = {};
-qc = { dismiss: "閉じる" };
+var Yc = {};
+Yc = { dismiss: "閉じる" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ko-KR.mjs
-var Jc = {};
-Jc = { dismiss: "무시" };
+var Xc = {};
+Xc = { dismiss: "무시" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/lt-LT.mjs
-var Yc = {};
-Yc = { dismiss: "Atmesti" };
+var Zc = {};
+Zc = { dismiss: "Atmesti" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/lv-LV.mjs
-var Xc = {};
-Xc = { dismiss: "Nerādīt" };
+var Qc = {};
+Qc = { dismiss: "Nerādīt" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/nb-NO.mjs
-var Zc = {};
-Zc = { dismiss: "Lukk" };
+var $c = {};
+$c = { dismiss: "Lukk" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/nl-NL.mjs
-var Qc = {};
-Qc = { dismiss: "Negeren" };
+var el = {};
+el = { dismiss: "Negeren" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/pl-PL.mjs
-var $c = {};
-$c = { dismiss: "Zignoruj" };
+var tl = {};
+tl = { dismiss: "Zignoruj" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/pt-BR.mjs
-var el = {};
-el = { dismiss: "Descartar" };
+var nl = {};
+nl = { dismiss: "Descartar" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/pt-PT.mjs
-var tl = {};
-tl = { dismiss: "Dispensar" };
+var rl = {};
+rl = { dismiss: "Dispensar" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ro-RO.mjs
-var nl = {};
-nl = { dismiss: "Revocare" };
+var il = {};
+il = { dismiss: "Revocare" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ru-RU.mjs
-var rl = {};
-rl = { dismiss: "Пропустить" };
+var al = {};
+al = { dismiss: "Пропустить" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sk-SK.mjs
-var il = {};
-il = { dismiss: "Zrušiť" };
+var ol = {};
+ol = { dismiss: "Zrušiť" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sl-SI.mjs
-var al = {};
-al = { dismiss: "Opusti" };
+var sl = {};
+sl = { dismiss: "Opusti" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sr-SP.mjs
-var ol = {};
-ol = { dismiss: "Odbaci" };
+var cl = {};
+cl = { dismiss: "Odbaci" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sv-SE.mjs
-var sl = {};
-sl = { dismiss: "Avvisa" };
+var ll = {};
+ll = { dismiss: "Avvisa" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/tr-TR.mjs
-var cl = {};
-cl = { dismiss: "Kapat" };
+var ul = {};
+ul = { dismiss: "Kapat" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/uk-UA.mjs
-var ll = {};
-ll = { dismiss: "Скасувати" };
+var dl = {};
+dl = { dismiss: "Скасувати" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/zh-CN.mjs
-var ul = {};
-ul = { dismiss: "取消" };
+var fl = {};
+fl = { dismiss: "取消" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/zh-TW.mjs
-var dl = {};
-dl = { dismiss: "關閉" };
+var pl = {};
+pl = { dismiss: "關閉" };
//#endregion
//#region node_modules/react-aria/dist/private/overlays/intlStrings.mjs
-var fl = {};
-fl = {
- "ar-AE": Mc,
- "bg-BG": Nc,
- "cs-CZ": Pc,
- "da-DK": Fc,
- "de-DE": Ic,
- "el-GR": Lc,
- "en-US": Rc,
- "es-ES": zc,
- "et-EE": Bc,
- "fi-FI": Vc,
- "fr-FR": Hc,
- "he-IL": Uc,
- "hr-HR": Wc,
- "hu-HU": Gc,
- "it-IT": Kc,
- "ja-JP": qc,
- "ko-KR": Jc,
- "lt-LT": Yc,
- "lv-LV": Xc,
- "nb-NO": Zc,
- "nl-NL": Qc,
- "pl-PL": $c,
- "pt-BR": el,
- "pt-PT": tl,
- "ro-RO": nl,
- "ru-RU": rl,
- "sk-SK": il,
- "sl-SI": al,
- "sr-SP": ol,
- "sv-SE": sl,
- "tr-TR": cl,
- "uk-UA": ll,
- "zh-CN": ul,
- "zh-TW": dl
+var ml = {};
+ml = {
+ "ar-AE": Pc,
+ "bg-BG": Fc,
+ "cs-CZ": Ic,
+ "da-DK": Lc,
+ "de-DE": Rc,
+ "el-GR": zc,
+ "en-US": Bc,
+ "es-ES": Vc,
+ "et-EE": Hc,
+ "fi-FI": Uc,
+ "fr-FR": Wc,
+ "he-IL": Gc,
+ "hr-HR": Kc,
+ "hu-HU": qc,
+ "it-IT": Jc,
+ "ja-JP": Yc,
+ "ko-KR": Xc,
+ "lt-LT": Zc,
+ "lv-LV": Qc,
+ "nb-NO": $c,
+ "nl-NL": el,
+ "pl-PL": tl,
+ "pt-BR": nl,
+ "pt-PT": rl,
+ "ro-RO": il,
+ "ru-RU": al,
+ "sk-SK": ol,
+ "sl-SI": sl,
+ "sr-SP": cl,
+ "sv-SE": ll,
+ "tr-TR": ul,
+ "uk-UA": dl,
+ "zh-CN": fl,
+ "zh-TW": pl
};
//#endregion
//#region node_modules/react-aria/dist/private/overlays/DismissButton.mjs
-function pl(e) {
+function hl(e) {
return e && e.__esModule ? e.default : e;
}
-function ml(e) {
- let { onDismiss: t, ...n } = e, r = _i(n, Hi(pl(fl), "@react-aria/overlays").format("dismiss")), i = () => {
+function gl(e) {
+ let { onDismiss: t, ...n } = e, r = xi(n, Ki(hl(ml), "@react-aria/overlays").format("dismiss")), i = () => {
t && t();
};
- return /*#__PURE__*/ b.createElement(Ro, null, /*#__PURE__*/ b.createElement("button", {
+ return /*#__PURE__*/ x.createElement(Bo, null, /*#__PURE__*/ x.createElement("button", {
...r,
tabIndex: -1,
onClick: i,
@@ -6966,38 +7069,38 @@ function ml(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useOverlay.mjs
-var K = [];
-function hl(e, t) {
- let { onClose: n, shouldCloseOnBlur: r, isOpen: i, isDismissable: a = !1, isKeyboardDismissDisabled: o = !1, shouldCloseOnInteractOutside: s } = e, c = (0, b.useRef)(void 0);
- (0, b.useEffect)(() => {
- if (i && !K.includes(t)) return K.push(t), () => {
- let e = K.indexOf(t);
- e >= 0 && K.splice(e, 1);
+var _l = [];
+function vl(e, t) {
+ let { onClose: n, shouldCloseOnBlur: r, isOpen: i, isDismissable: a = !1, isKeyboardDismissDisabled: o = !1, shouldCloseOnInteractOutside: s } = e, c = (0, x.useRef)(void 0);
+ (0, x.useEffect)(() => {
+ if (i && !_l.includes(t)) return _l.push(t), () => {
+ let e = _l.indexOf(t);
+ e >= 0 && _l.splice(e, 1);
};
}, [i, t]);
let l = () => {
- K[K.length - 1] === t && n && n();
+ _l[_l.length - 1] === t && n && n();
}, u = (e) => {
- let n = K[K.length - 1];
- c.current = n, (!s || s(B(e))) && n === t && e.stopPropagation();
+ let n = _l[_l.length - 1];
+ c.current = n, (!s || s(z(e))) && n === t && e.stopPropagation();
}, d = (e) => {
- (!s || s(B(e))) && (K[K.length - 1] === t && e.stopPropagation(), c.current === t && l()), c.current = void 0;
- }, { keyboardProps: f } = Or({ shortcuts: { Escape: () => {
+ (!s || s(z(e))) && (_l[_l.length - 1] === t && e.stopPropagation(), c.current === t && l()), c.current = void 0;
+ }, { keyboardProps: f } = Mr({ shortcuts: { Escape: () => {
if (!o) {
l();
return;
}
return !1;
} } });
- xc({
+ Cc({
ref: t,
onInteractOutside: a && i ? d : void 0,
onInteractOutsideStart: u
});
- let { focusWithinProps: p } = jo({
+ let { focusWithinProps: p } = No({
isDisabled: !r,
onBlurWithin: (e) => {
- !e.relatedTarget || Pa(e.relatedTarget) || (!s || s(e.relatedTarget)) && n?.();
+ !e.relatedTarget || Ia(e.relatedTarget) || (!s || s(e.relatedTarget)) && n?.();
}
});
return {
@@ -7010,26 +7113,26 @@ function hl(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/usePreventScroll.mjs
-var gl = typeof document < "u" && window.visualViewport, _l = 0, vl;
-function yl(e = {}) {
+var yl = typeof document < "u" && window.visualViewport, bl = 0, xl;
+function Sl(e = {}) {
let { isDisabled: t } = e;
- H(() => {
- if (!t) return _l++, _l === 1 && (vl = en() && nn() ? xl() : bl()), () => {
- _l--, _l === 0 && vl();
+ V(() => {
+ if (!t) return bl++, bl === 1 && (xl = an() && sn() ? wl() : Cl()), () => {
+ bl--, bl === 0 && xl();
};
}, [t]);
}
-function bl() {
+function Cl() {
let e = window.innerWidth - document.documentElement.clientWidth;
- return tr(e > 0 && ("scrollbarGutter" in document.documentElement.style ? Ot(document.documentElement, "scrollbar-gutter", "stable") : Ot(document.documentElement, "padding-right", `${e}px`)), Ot(document.documentElement, "overflow", "hidden"));
+ return ar(e > 0 && ("scrollbarGutter" in document.documentElement.style ? Mt(document.documentElement, "scrollbar-gutter", "stable") : Mt(document.documentElement, "padding-right", `${e}px`)), Mt(document.documentElement, "overflow", "hidden"));
}
-function xl() {
- let e = Ot(document.documentElement, "overflow", "hidden"), t, n = !1, r = (e) => {
- let r = B(e);
- t = Qa(r) ? r : $a(r, !0), n = !1;
+function wl() {
+ let e = Mt(document.documentElement, "overflow", "hidden"), t, n = !1, r = (e) => {
+ let r = z(e);
+ t = eo(r) ? r : to(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 = na();
+ }, i = document.createElement("style"), a = aa();
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)) {
@@ -7040,27 +7143,27 @@ function xl() {
t.scrollHeight === t.clientHeight && t.scrollWidth === t.clientWidth && e.preventDefault();
}
}, s = (e) => {
- let t = B(e), n = e.relatedTarget;
- n && pi(n) ? (n.focus({ preventScroll: !0 }), Sl(n, pi(t))) : n || (t.parentElement?.closest("[tabindex]"))?.focus({ preventScroll: !0 });
+ let t = z(e), n = e.relatedTarget;
+ n && _i(n) ? (n.focus({ preventScroll: !0 }), Tl(n, _i(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 = jt(), n = t != null && pi(t);
+ let t = Ft(), n = t != null && _i(t);
c.call(this, {
...e,
preventScroll: !0
- }), (!e || !e.preventScroll) && Sl(this, n);
+ }), (!e || !e.preventScroll) && Tl(this, n);
}
});
- let l = tr(Dt(document, "touchstart", r, {
+ let l = ar(jt(document, "touchstart", r, {
passive: !1,
capture: !0
- }), Dt(document, "touchmove", o, {
+ }), jt(document, "touchmove", o, {
passive: !1,
capture: !0
- }), Dt(document, "blur", s, !0));
+ }), jt(document, "blur", s, !0));
return () => {
e(), l(), i.remove(), Reflect.defineProperty(HTMLElement.prototype, "focus", {
configurable: !0,
@@ -7069,18 +7172,18 @@ function xl() {
});
};
}
-function Sl(e, t) {
- t || !gl ? Cl(e) : gl.addEventListener("resize", () => Cl(e), { once: !0 });
+function Tl(e, t) {
+ t || !yl ? El(e) : yl.addEventListener("resize", () => El(e), { once: !0 });
}
-function Cl(e) {
+function El(e) {
let t = document.scrollingElement || document.documentElement, n = e;
for (; n && n !== t;) {
- let e = $a(n);
+ let e = to(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;
- gl && (n = Math.min(n, gl.offsetTop + gl.height));
+ yl && (n = Math.min(n, yl.offsetTop + yl.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)),
@@ -7093,33 +7196,33 @@ function Cl(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/calculatePosition.mjs
-var wl = {
+var Dl = {
top: "top",
bottom: "top",
left: "left",
right: "left"
-}, Tl = {
+}, Ol = {
top: "bottom",
bottom: "top",
left: "right",
right: "left"
-}, El = {
+}, kl = {
top: "left",
left: "top"
-}, Dl = {
+}, Al = {
top: "height",
left: "width"
-}, Ol = {
+}, jl = {
width: "totalWidth",
height: "totalHeight"
-}, kl = {}, Al = () => typeof document < "u" ? window.visualViewport : null;
-function jl(e, t) {
+}, Ml = {}, Nl = () => typeof document < "u" ? window.visualViewport : null;
+function Pl(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} = Hl(e, !1)), c.top = e.scrollTop, c.left = e.scrollLeft, i = n, a = r;
- return nn() && (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} = Gl(e, !1)), c.top = e.scrollTop, c.left = e.scrollLeft, i = n, a = r;
+ return sn() && (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,
@@ -7129,7 +7232,7 @@ function jl(e, t) {
left: s
};
}
-function Ml(e) {
+function Fl(e) {
return {
top: e.scrollTop,
left: e.scrollLeft,
@@ -7137,11 +7240,11 @@ function Ml(e) {
height: e.scrollHeight
};
}
-function Nl(e, t, n, r, i, a, o) {
- let s = i.scroll[e] ?? 0, c = r[Dl[e]], l = o[e] + r.scroll[wl[e]] + a, u = o[e] + r.scroll[wl[e]] + c - a, d = t - s + r.scroll[wl[e]] + o[e] - r[wl[e]], f = t - s + n + r.scroll[wl[e]] + o[e] - r[wl[e]];
+function Il(e, t, n, r, i, a, o) {
+ let s = i.scroll[e] ?? 0, c = r[Al[e]], l = o[e] + r.scroll[Dl[e]] + a, u = o[e] + r.scroll[Dl[e]] + c - a, d = t - s + r.scroll[Dl[e]] + o[e] - r[Dl[e]], f = t - s + n + r.scroll[Dl[e]] + o[e] - r[Dl[e]];
return d < l ? l - d : f > u ? Math.max(u - f, l - d) : 0;
}
-function Pl(e) {
+function Ll(e) {
let t = window.getComputedStyle(e);
return {
top: parseInt(t.marginTop, 10) || 0,
@@ -7150,58 +7253,58 @@ function Pl(e) {
right: parseInt(t.marginRight, 10) || 0
};
}
-function Fl(e) {
- if (kl[e]) return kl[e];
- let [t, n] = e.split(" "), r = wl[t] || "right", i = El[r];
- wl[n] || (n = "center");
- let a = Dl[r], o = Dl[i];
- return kl[e] = {
+function Rl(e) {
+ if (Ml[e]) return Ml[e];
+ let [t, n] = e.split(" "), r = Dl[t] || "right", i = kl[r];
+ Dl[n] || (n = "center");
+ let a = Al[r], o = Al[i];
+ return Ml[e] = {
placement: t,
crossPlacement: n,
axis: r,
crossAxis: i,
size: a,
crossSize: o
- }, kl[e];
+ }, Ml[e];
}
-function Il(e, t, n, r, i, a, o, s, c, l, u) {
+function zl(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] = Io(_[m], v, y), d === p) {
- let t = s ? u[h] : u[Ol[h]];
- _[Tl[p]] = Math.floor(t - e[p] + i);
+ if (_[m] = Lo(_[m], v, y), d === p) {
+ let t = s ? u[h] : u[jl[h]];
+ _[Ol[p]] = Math.floor(t - e[p] + i);
} else _[p] = Math.floor(e[p] + e[h] + i);
return _;
}
-function Ll(e, t, n, r, i, a, o, s, c, l, u) {
- let d = (e.top == null ? c[Ol.height] - (e.bottom ?? 0) - o : e.top) - (c.scroll.top ?? 0), f = l ? n.top : 0, p = {
+function Bl(e, t, n, r, i, a, o, s, c, l, u) {
+ let d = (e.top == null ? c[jl.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 Rl(e, t, n, r, i, a, o, s) {
+function Vl(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[Tl[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[Tl[l]] - i);
+ return c === l ? Math.max(0, n[l] - (o.scroll[l] ?? 0) - (e[l] + (s ? t[l] : 0)) - (r[l] ?? 0) - r[Ol[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[Ol[l]] - i);
}
-function zl(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
- let v = Fl(e), { size: y, crossAxis: b, crossSize: x, placement: S, crossPlacement: C } = v, w = Il(t, s, n, v, u, d, l, f, m, h, c), T = u, E = Rl(s, l, t, i, a + u, v, c, g);
+function Hl(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
+ let v = Rl(e), { size: y, crossAxis: b, crossSize: x, placement: S, crossPlacement: C } = v, w = zl(t, s, n, v, u, d, l, f, m, h, c), T = u, E = Vl(s, l, t, i, a + u, v, c, g);
if (o && n[y] > E) {
- let e = Fl(`${Tl[S]} ${C}`), r = Il(t, s, n, e, u, d, l, f, m, h, c);
- Rl(s, l, t, i, a + u, e, c, g) > E && (v = e, w = r, T = u);
+ let e = Rl(`${Ol[S]} ${C}`), r = zl(t, s, n, e, u, d, l, f, m, h, c);
+ Vl(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 = Nl(b, w[b], n[x], s, c, a, l);
+ let O = Il(b, w[b], n[x], s, c, a, l);
w[b] += O;
- let k = Ll(w, s, l, f, i, a, n.height, D, c, g, _);
- p && p < k && (k = p), n.height = Math.min(n.height, k), w = Il(t, s, n, v, T, d, l, f, m, h, c), O = Nl(b, w[b], n[x], s, c, a, l), w[b] += O;
- let A = {}, j = t[b] - w[b] - i[wl[b]], M = j + .5 * t[x], N = m / 2 + h, ee = wl[b] === "left" ? (i.left ?? 0) + (i.right ?? 0) : (i.top ?? 0) + (i.bottom ?? 0), te = n[x] - ee - m / 2 - h;
- A[b] = Io(Io(M, t[b] + m / 2 - (w[b] + i[wl[b]]), t[b] + t[x] - m / 2 - (w[b] + i[wl[b]])), N, te), {placement: S, crossPlacement: C} = v, m ? j = A[b] : C === "right" ? j += t[x] : C === "center" && (j += t[x] / 2);
- let P = S === "left" || S === "top" ? n[y] : 0, ne = {
- x: S === "top" || S === "bottom" ? j : P,
- y: S === "left" || S === "right" ? j : P
+ let k = Bl(w, s, l, f, i, a, n.height, D, c, g, _);
+ p && p < k && (k = p), n.height = Math.min(n.height, k), w = zl(t, s, n, v, T, d, l, f, m, h, c), O = Il(b, w[b], n[x], s, c, a, l), w[b] += O;
+ let A = {}, ee = t[b] - w[b] - i[Dl[b]], j = ee + .5 * t[x], te = m / 2 + h, M = Dl[b] === "left" ? (i.left ?? 0) + (i.right ?? 0) : (i.top ?? 0) + (i.bottom ?? 0), ne = n[x] - M - m / 2 - h;
+ A[b] = Lo(Lo(j, t[b] + m / 2 - (w[b] + i[Dl[b]]), t[b] + t[x] - m / 2 - (w[b] + i[Dl[b]])), te, ne), {placement: S, crossPlacement: C} = v, m ? ee = A[b] : C === "right" ? ee += t[x] : C === "center" && (ee += t[x] / 2);
+ let N = S === "left" || S === "top" ? n[y] : 0, re = {
+ x: S === "top" || S === "bottom" ? ee : N,
+ y: S === "left" || S === "right" ? ee : N
};
return {
position: w,
@@ -7209,20 +7312,20 @@ function zl(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
arrowOffsetLeft: A.left,
arrowOffsetTop: A.top,
placement: S,
- triggerAnchorPoint: ne
+ triggerAnchorPoint: re
};
}
-function Bl(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 = Al(), h = r instanceof HTMLElement ? Wl(r) : document.documentElement, g = h === document.documentElement, _ = window.getComputedStyle(h).position, v = !!_ && _ !== "static", y = g ? Hl(n, !1, p) : Ul(n, h, !1, p);
+function Ul(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 = Nl(), h = r instanceof HTMLElement ? ql(r) : document.documentElement, g = h === document.documentElement, _ = window.getComputedStyle(h).position, v = !!_ && _ !== "static", y = g ? Gl(n, !1, p) : Kl(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 = Hl(r, !0), x = Pl(r);
+ let b = Gl(r, !0), x = Ll(r);
b.width += (x.left ?? 0) + (x.right ?? 0), b.height += (x.top ?? 0) + (x.bottom ?? 0);
- let S = Ml(i), C = jl(s, m), w = jl(h, m), T;
+ let S = Fl(i), C = Pl(s, m), w = Pl(h, m), T;
if ((s.tagName === "BODY" || s.tagName === "HTML") && !g) {
- let e = Vl(h, !1);
+ let e = Wl(h, !1);
T = {
top: -(e.top - C.top),
left: -(e.left - C.left),
@@ -7234,11 +7337,11 @@ function Bl(e) {
left: 0,
width: 0,
height: 0
- } : Ul(s, h, !1);
- let E = z(s, h);
- return zl(t, y, b, S, x, a, o, C, w, T, c, l, v, u, d, f, E, m);
+ } : Kl(s, h, !1);
+ let E = R(s, h);
+ return Hl(t, y, b, S, x, a, o, C, w, T, c, l, v, u, d, f, E, m);
}
-function Vl(e, t) {
+function Wl(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,
@@ -7247,8 +7350,8 @@ function Vl(e, t) {
height: a
};
}
-function Hl(e, t, n) {
- let { top: r, left: i, width: a, height: o } = n || Vl(e, t), { scrollTop: s, scrollLeft: c, clientTop: l, clientLeft: u } = document.documentElement;
+function Gl(e, t, n) {
+ let { top: r, left: i, width: a, height: o } = n || Wl(e, t), { scrollTop: s, scrollLeft: c, clientTop: l, clientLeft: u } = document.documentElement;
return {
top: r + s - l,
left: i + c - u,
@@ -7256,30 +7359,30 @@ function Hl(e, t, n) {
height: o
};
}
-function Ul(e, t, n, r) {
+function Kl(e, t, n, r) {
let i = window.getComputedStyle(e), a;
- if (i.position === "fixed") a = r || Vl(e, n);
+ if (i.position === "fixed") a = r || Wl(e, n);
else {
- a = Hl(e, n, r);
- let i = Hl(t, n), o = window.getComputedStyle(t);
+ a = Gl(e, n, r);
+ let i = Gl(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 Wl(e) {
+function ql(e) {
let t = e.offsetParent;
- if (t && t === document.body && window.getComputedStyle(t).position === "static" && !Gl(t) && (t = document.documentElement), t == null) for (t = e.parentElement; t && !Gl(t);) t = t.parentElement;
+ if (t && t === document.body && window.getComputedStyle(t).position === "static" && !Jl(t) && (t = document.documentElement), t == null) for (t = e.parentElement; t && !Jl(t);) t = t.parentElement;
return t || document.documentElement;
}
-function Gl(e) {
+function Jl(e) {
let t = window.getComputedStyle(e);
return t.transform !== "none" || /transform|perspective/.test(t.willChange) || t.filter !== "none" || t.contain === "paint" || "backdropFilter" in t && t.backdropFilter !== "none" || "WebkitBackdropFilter" in t && t.WebkitBackdropFilter !== "none";
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useOverlayPosition.mjs
-var Kl = typeof document < "u" ? window.visualViewport : null;
-function ql(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: v } = e, [y, x] = (0, b.useState)(null), S = [
+var Yl = typeof document < "u" ? window.visualViewport : null;
+function Xl(e) {
+ let { direction: t } = Mi(), { arrowSize: n, targetRef: r, overlayRef: i, arrowRef: a, scrollRef: o = i, placement: s = "bottom", containerPadding: c = 12, shouldFlip: l = !0, boundaryElement: u = typeof document < "u" ? document.body : null, offset: d = 0, crossOffset: f = 0, shouldUpdatePosition: p = !0, isOpen: m = !0, onClose: h, maxHeight: g, arrowBoundaryOffset: _ = 0, getTargetRect: v } = e, [y, b] = (0, x.useState)(null), S = [
p,
s,
i.current,
@@ -7296,15 +7399,15 @@ function ql(e) {
g,
_,
n
- ], C = (0, b.useRef)(Kl?.scale);
- (0, b.useEffect)(() => {
- m && (C.current = Kl?.scale);
+ ], C = (0, x.useRef)(Yl?.scale);
+ (0, x.useEffect)(() => {
+ m && (C.current = Yl?.scale);
}, [m]);
- let w = (0, b.useCallback)(() => {
- if (p === !1 || !m || !i.current || !r.current || !u || Kl?.scale !== C.current) return;
+ let w = (0, x.useCallback)(() => {
+ if (p === !1 || !m || !i.current || !r.current || !u || Yl?.scale !== C.current) return;
let e = null;
- if (o.current && Nt(o.current)) {
- let t = jt()?.getBoundingClientRect(), n = o.current.getBoundingClientRect();
+ if (o.current && Lt(o.current)) {
+ let t = Ft()?.getBoundingClientRect(), n = o.current.getBoundingClientRect();
e = {
type: "top",
offset: (t?.top ?? 0) - n.top
@@ -7312,8 +7415,8 @@ function ql(e) {
}
let h = i.current;
!g && i.current && (h.style.top = "0px", h.style.bottom = "", h.style.maxHeight = (window.visualViewport?.height ?? window.innerHeight) + "px");
- let y = Bl({
- placement: Yl(s, t),
+ let y = Ul({
+ placement: Ql(s, t),
overlayNode: i.current,
targetNode: r.current,
scrollNode: o.current || i.current,
@@ -7323,28 +7426,28 @@ function ql(e) {
offset: d,
crossOffset: f,
maxHeight: g,
- arrowSize: n ?? (a?.current ? Vl(a.current, !0).width : 0),
+ arrowSize: n ?? (a?.current ? Wl(a.current, !0).width : 0),
arrowBoundaryOffset: _,
targetRect: v?.(r.current)
});
if (!y.position) return;
h.style.top = "", h.style.bottom = "", h.style.left = "", h.style.right = "", Object.keys(y.position).forEach((e) => h.style[e] = y.position[e] + "px"), h.style.maxHeight = y.maxHeight == null ? "" : y.maxHeight + "px";
- let b = jt();
- if (e && b && o.current) {
- let t = b.getBoundingClientRect(), n = o.current.getBoundingClientRect(), r = t[e.type] - n[e.type];
+ let x = Ft();
+ if (e && x && o.current) {
+ let t = x.getBoundingClientRect(), n = o.current.getBoundingClientRect(), r = t[e.type] - n[e.type];
o.current.scrollTop += r - e.offset;
}
- x(y);
+ b(y);
}, S);
- H(w, S), Jl(w), jc({
+ V(w, S), Zl(w), Nc({
ref: i,
onResize: w
- }), jc({
+ }), Nc({
ref: r,
onResize: w
});
- let T = (0, b.useRef)(!1);
- H(() => {
+ let T = (0, x.useRef)(!1);
+ V(() => {
let e, t = () => {
T.current = !0, clearTimeout(e), e = setTimeout(() => {
T.current = !1;
@@ -7352,16 +7455,16 @@ function ql(e) {
}, n = () => {
T.current && t();
};
- Kl?.addEventListener("resize", t), Kl?.addEventListener("scroll", n);
- let r = Dt(Mt(window), "scroll", n);
+ Yl?.addEventListener("resize", t), Yl?.addEventListener("scroll", n);
+ let r = jt(It(window), "scroll", n);
return () => {
- Kl?.removeEventListener("resize", t), Kl?.removeEventListener("scroll", n), r();
+ Yl?.removeEventListener("resize", t), Yl?.removeEventListener("scroll", n), r();
};
}, [w]);
- let E = (0, b.useCallback)(() => {
+ let E = (0, x.useCallback)(() => {
T.current || h?.();
}, [h, T]);
- return Vs({
+ return Us({
triggerRef: r,
isOpen: m,
onClose: h && E
@@ -7387,25 +7490,25 @@ function ql(e) {
updatePosition: w
};
}
-function Jl(e) {
- H(() => (window.addEventListener("resize", e, !1), () => {
+function Zl(e) {
+ V(() => (window.addEventListener("resize", e, !1), () => {
window.removeEventListener("resize", e, !1);
}), [e]);
}
-function Yl(e, t) {
+function Ql(e, t) {
return t === "rtl" ? e.replace("start", "right").replace("end", "left") : e.replace("start", "left").replace("end", "right");
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/usePopover.mjs
-function Xl(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 } = hl({
+function $l(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 } = vl({
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 } = ql({
+ }, i ?? r), { overlayProps: f, arrowProps: p, placement: m, triggerAnchorPoint: h } = Xl({
...c,
targetRef: n,
overlayRef: r,
@@ -7413,17 +7516,17 @@ function Xl(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)
});
- yl({ isDisabled: a || !t.isOpen }), (0, b.useEffect)(() => {
- if (t.isOpen && r.current) return a ? Go(i?.current ?? r.current) : Wo([i?.current ?? r.current], { shouldUseInert: !0 });
+ Sl({ isDisabled: a || !t.isOpen }), (0, x.useEffect)(() => {
+ if (t.isOpen && r.current) return a ? qo(i?.current ?? r.current) : Ko([i?.current ?? r.current], { shouldUseInert: !0 });
}, [
a,
t.isOpen,
r,
i
]);
- let { focusWithinProps: g } = jo(e);
+ let { focusWithinProps: g } = No(e);
return {
- popoverProps: U(u, f, g),
+ popoverProps: H(u, f, g),
arrowProps: p,
underlayProps: d,
placement: m,
@@ -7432,13 +7535,13 @@ function Xl(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/radio/utils.mjs
-var Zl = /* @__PURE__ */ new WeakMap();
+var eu = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/radio/useRadio.mjs
-function Ql(e, t, n) {
+function tu(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: _ } = ua({
+ }, { pressProps: g, isPressed: _ } = pa({
onPressStart: s,
onPressEnd: c,
onPressChange: l,
@@ -7446,7 +7549,7 @@ function Ql(e, t, n) {
onPressUp: d,
onClick: f,
isDisabled: p
- }), { pressProps: v, isPressed: y } = ua({
+ }), { pressProps: v, isPressed: y } = pa({
onPressStart: s,
onPressEnd: c,
onPressChange: l,
@@ -7456,17 +7559,17 @@ function Ql(e, t, n) {
onPress(e) {
u?.(e), t.setSelectedValue(r), n.current?.focus();
}
- }), { focusableProps: x } = Nr(U(e, { onFocus: () => t.setLastFocusedValue(r) }), n), S = U(g, x), C = Yi(e, { labelable: !0 }), w = -1;
+ }), { focusableProps: b } = Lr(H(e, { onFocus: () => t.setLastFocusedValue(r) }), n), S = H(g, b), C = U(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 } = Zl.get(t);
- so(n, t.defaultSelectedValue, t.setSelectedValue), co({ validationBehavior: k }, t, n);
- let A = mo();
+ let { name: T, form: E, descriptionId: D, errorMessageId: O, validationBehavior: k } = eu.get(t);
+ lo(n, t.defaultSelectedValue, t.setSelectedValue), uo({ validationBehavior: k }, t, n);
+ let A = go();
return {
- labelProps: U(v, (0, b.useMemo)(() => ({
+ labelProps: H(v, (0, x.useMemo)(() => ({
onClick: (e) => e.preventDefault(),
onMouseDown: (e) => e.preventDefault()
}), [])),
- inputProps: U(C, {
+ inputProps: H(C, {
...S,
type: "radio",
name: T,
@@ -7492,13 +7595,13 @@ function Ql(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/radio/useRadioGroup.mjs
-function $l(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 } = Ao({
+function nu(e, t) {
+ let { name: n, form: r, isReadOnly: i, isRequired: a, isDisabled: o, orientation: s = "vertical", validationBehavior: c = "aria" } = e, { direction: l } = Mi(), { isInvalid: u, validationErrors: d, validationDetails: f } = t.displayValidation, { labelProps: p, fieldProps: m, descriptionProps: h, errorMessageProps: g } = Mo({
...e,
labelElementType: "span",
isInvalid: t.isInvalid,
errorMessage: e.errorMessage || d
- }), _ = Yi(e, { labelable: !0 }), { focusWithinProps: v } = jo({
+ }), _ = U(e, { labelable: !0 }), { focusWithinProps: v } = No({
onBlurWithin(n) {
e.onBlur?.(n), t.selectedValue || t.setLastFocusedValue(null);
},
@@ -7506,13 +7609,13 @@ function $l(e, t) {
onFocusWithinChange: e.onFocusChange
});
function y(e, n) {
- let r = Wa(n.currentTarget, {
- from: B(n),
- accept: (e) => e instanceof St(e).HTMLInputElement && e.type === "radio"
+ let r = Ka(n.currentTarget, {
+ from: z(n),
+ accept: (e) => e instanceof Et(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 } = Or({
+ let { keyboardProps: b } = Mr({
shortcuts: {
ArrowRight: (e) => y(l === "rtl" && s !== "vertical" ? "prev" : "next", e),
ArrowLeft: (e) => y(l === "rtl" && s !== "vertical" ? "next" : "prev", e),
@@ -7520,15 +7623,15 @@ function $l(e, t) {
ArrowUp: (e) => y("prev", e)
},
allowRepeats: !0
- }), x = sr(n);
- return Zl.set(t, {
+ }), x = dr(n);
+ return eu.set(t, {
name: x,
form: r,
descriptionId: h.id,
errorMessageId: g.id,
validationBehavior: c
}), {
- radioGroupProps: U(_, {
+ radioGroupProps: H(_, {
role: "radiogroup",
...b,
"aria-invalid": t.isInvalid || void 0,
@@ -7550,21 +7653,21 @@ function $l(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/select/useSelect.mjs
-var eu = /* @__PURE__ */ new WeakMap();
-function tu(e, t, n) {
- let { keyboardDelegate: r, isDisabled: i, isRequired: a, name: o, form: s, validationBehavior: c = "aria" } = e, l = ic({
+var ru = /* @__PURE__ */ new WeakMap();
+function iu(e, t, n) {
+ let { keyboardDelegate: r, isDisabled: i, isRequired: a, name: o, form: s, validationBehavior: c = "aria" } = e, l = oc({
usage: "search",
sensitivity: "base"
- }), u = (0, b.useMemo)(() => r || new ts(t.collection, t.disabledKeys, n, l), [
+ }), u = (0, x.useMemo)(() => r || new rs(t.collection, t.disabledKeys, n, l), [
r,
t.collection,
t.disabledKeys,
l,
n
- ]), { menuTriggerProps: d, menuProps: f } = Ws({
+ ]), { menuTriggerProps: d, menuProps: f } = Ks({
isDisabled: i,
type: "listbox"
- }, t, n), { keyboardProps: p } = Or({
+ }, t, n), { keyboardProps: p } = Mr({
shortcuts: {
ArrowLeft: () => {
if (t.selectionManager.selectionMode === "multiple") return !1;
@@ -7580,21 +7683,21 @@ function tu(e, t, n) {
allowRepeats: !0,
onKeyDown: e.onKeyDown,
onKeyUp: e.onKeyUp
- }), { typeSelectProps: m } = Ks({
+ }), { typeSelectProps: m } = Js({
keyboardDelegate: u,
selectionManager: t.selectionManager,
onTypeSelect(e) {
t.setSelectedKey(e);
}
- }), { isInvalid: h, validationErrors: g, validationDetails: _ } = t.displayValidation, { labelProps: v, fieldProps: y, descriptionProps: x, errorMessageProps: S } = Ao({
+ }), { isInvalid: h, validationErrors: g, validationDetails: _ } = t.displayValidation, { labelProps: v, fieldProps: y, descriptionProps: b, errorMessageProps: S } = Mo({
...e,
labelElementType: "span",
isInvalid: h,
errorMessage: e.errorMessage || g
});
t.selectionManager.selectionMode === "multiple" && (m = {});
- let C = Yi(e, { labelable: !0 }), w = U(m, d, y), T = sr();
- return eu.set(t, {
+ let C = U(e, { labelable: !0 }), w = H(m, d, y), T = dr();
+ return ru.set(t, {
isDisabled: i,
isRequired: a,
name: o,
@@ -7604,13 +7707,13 @@ function tu(e, t, n) {
labelProps: {
...v,
onClick: () => {
- e.isDisabled || (n.current?.focus(), Gn("keyboard"));
+ e.isDisabled || (n.current?.focus(), Yn("keyboard"));
}
},
- triggerProps: U(C, {
+ triggerProps: H(C, {
...w,
isDisabled: i,
- onKeyDown: tr(w.onKeyDown, p.onKeyDown),
+ onKeyDown: ar(w.onKeyDown, p.onKeyDown),
onKeyUp: p.onKeyUp,
"aria-labelledby": [
T,
@@ -7634,11 +7737,11 @@ function tu(e, t, n) {
disallowEmptySelection: !0,
linkBehavior: "selection",
onBlur: (n) => {
- z(n.currentTarget, n.relatedTarget) || (e.onBlur && e.onBlur(n), e.onFocusChange && e.onFocusChange(!1), t.setFocused(!1));
+ R(n.currentTarget, n.relatedTarget) || (e.onBlur && e.onBlur(n), e.onFocusChange && e.onFocusChange(!1), t.setFocused(!1));
},
"aria-labelledby": [y["aria-labelledby"], w["aria-label"] && !y["aria-labelledby"] ? w.id : null].filter(Boolean).join(" ")
},
- descriptionProps: x,
+ descriptionProps: b,
errorMessageProps: S,
isInvalid: h,
validationErrors: g,
@@ -7655,18 +7758,18 @@ function tu(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/select/HiddenSelect.mjs
-function nu(e, t, n) {
- let r = eu.get(t) || {}, { autoComplete: i, name: a = r.name, form: o = r.form, isDisabled: s = r.isDisabled } = e, { validationBehavior: c, isRequired: l } = r, { visuallyHiddenProps: u } = G({ style: {
+function au(e, t, n) {
+ let r = ru.get(t) || {}, { autoComplete: i, name: a = r.name, form: o = r.form, isDisabled: s = r.isDisabled } = e, { validationBehavior: c, isRequired: l } = r, { visuallyHiddenProps: u } = zo({ style: {
position: "fixed",
top: 0,
left: 0
} });
- so(e.selectRef, t.defaultValue, t.setValue), co({
+ lo(e.selectRef, t.defaultValue, t.setValue), uo({
validationBehavior: c,
focus: () => n.current?.focus()
}, t, e.selectRef);
- let d = t.setValue, f = (0, b.useCallback)((e) => {
- let t = B(e);
+ let d = t.setValue, f = (0, x.useCallback)((e) => {
+ let t = z(e);
t.multiple ? d(Array.from(t.selectedOptions, (e) => e.value)) : d(e.currentTarget.value);
}, [d]);
return {
@@ -7691,32 +7794,32 @@ function nu(e, t, n) {
}
};
}
-function ru(e) {
- let { state: t, triggerRef: n, label: r, name: i, form: a, isDisabled: o } = e, s = (0, b.useRef)(null), c = (0, b.useRef)(null), { containerProps: l, selectProps: u } = nu({
+function ou(e) {
+ let { state: t, triggerRef: n, label: r, name: i, form: a, isDisabled: o } = e, s = (0, x.useRef)(null), c = (0, x.useRef)(null), { containerProps: l, selectProps: u } = au({
...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__*/ b.createElement("div", {
+ if (t.collection.size <= 300) return /*#__PURE__*/ x.createElement("div", {
...l,
"data-testid": "hidden-select-container"
- }, /*#__PURE__*/ b.createElement("label", null, r, /*#__PURE__*/ b.createElement("select", {
+ }, /*#__PURE__*/ x.createElement("label", null, r, /*#__PURE__*/ x.createElement("select", {
...u,
ref: s
- }, /*#__PURE__*/ b.createElement("option", {
+ }, /*#__PURE__*/ x.createElement("option", {
value: "",
label: "\xA0"
}, "\xA0"), [...t.collection.getKeys()].map((e) => {
let n = t.collection.getItem(e);
- if (n && n.type === "item") return /*#__PURE__*/ b.createElement("option", {
+ if (n && n.type === "item") return /*#__PURE__*/ x.createElement("option", {
key: n.key,
value: n.key
}, n.textValue);
- }), t.collection.size === 0 && i && d.map((e, t) => /*#__PURE__*/ b.createElement("option", {
+ }), t.collection.size === 0 && i && d.map((e, t) => /*#__PURE__*/ x.createElement("option", {
key: t,
value: e ?? ""
})))));
if (i) {
- let { validationBehavior: e } = eu.get(t) || {};
+ let { validationBehavior: e } = ru.get(t) || {};
d.length === 0 && (d = [null]);
let n = d.map((t, n) => {
let r = {
@@ -7727,7 +7830,7 @@ function ru(e) {
disabled: o,
value: t ?? ""
};
- return e === "native" ? /*#__PURE__*/ b.createElement("input", {
+ return e === "native" ? /*#__PURE__*/ x.createElement("input", {
key: n,
...r,
ref: n === 0 ? c : null,
@@ -7735,20 +7838,20 @@ function ru(e) {
type: "text",
required: n === 0 && u.required,
onChange: () => {}
- }) : /*#__PURE__*/ b.createElement("input", {
+ }) : /*#__PURE__*/ x.createElement("input", {
key: n,
...r,
ref: n === 0 ? c : null
});
});
- return /*#__PURE__*/ b.createElement(b.Fragment, null, n);
+ return /*#__PURE__*/ x.createElement(x.Fragment, null, n);
}
return null;
}
//#endregion
//#region node_modules/react-aria/dist/private/switch/useSwitch.mjs
-function iu(e, t, n) {
- let { labelProps: r, inputProps: i, isSelected: a, ...o } = Eo(e, t, n);
+function su(e, t, n) {
+ let { labelProps: r, inputProps: i, isSelected: a, ...o } = Oo(e, t, n);
return {
labelProps: r,
inputProps: {
@@ -7762,7 +7865,7 @@ function iu(e, t, n) {
}
//#endregion
//#region node_modules/scheduler/cjs/scheduler.production.js
-var au = /* @__PURE__ */ p(((e) => {
+var cu = /* @__PURE__ */ m(((e) => {
function t(e, t) {
var n = e.length;
e.push(t);
@@ -7818,7 +7921,7 @@ var au = /* @__PURE__ */ p(((e) => {
if (n(c) !== null) m = !0, S || (S = !0, O());
else {
var t = n(l);
- t !== null && j(x, t.startTime - e);
+ t !== null && ee(x, t.startTime - e);
}
}
}
@@ -7853,7 +7956,7 @@ var au = /* @__PURE__ */ p(((e) => {
if (d !== null) i = !0;
else {
var u = n(l);
- u !== null && j(x, u.startTime - t), i = !1;
+ u !== null && ee(x, u.startTime - t), i = !1;
}
}
break a;
@@ -7879,7 +7982,7 @@ var au = /* @__PURE__ */ p(((e) => {
} else O = function() {
_(D, 0);
};
- function j(t, n) {
+ function ee(t, n) {
C = _(function() {
t(e.unstable_now());
}, n);
@@ -7948,7 +8051,7 @@ var au = /* @__PURE__ */ p(((e) => {
startTime: a,
expirationTime: s,
sortIndex: -1
- }, a > o ? (r.sortIndex = a, t(l, r), n(c) === null && r === n(l) && (h ? (v(C), C = -1) : h = !0, j(x, a - o))) : (r.sortIndex = s, t(c, r), m || p || (m = !0, S || (S = !0, O()))), r;
+ }, a > o ? (r.sortIndex = a, t(l, r), n(c) === null && r === n(l) && (h ? (v(C), C = -1) : h = !0, ee(x, a - o))) : (r.sortIndex = s, t(c, r), m || p || (m = !0, S || (S = !0, O()))), r;
}, e.unstable_shouldYield = E, e.unstable_wrapCallback = function(e) {
var t = f;
return function() {
@@ -7961,10 +8064,10 @@ var au = /* @__PURE__ */ p(((e) => {
}
};
};
-})), ou = /* @__PURE__ */ p(((e, t) => {
- t.exports = au();
-})), su = /* @__PURE__ */ p(((e) => {
- var t = ou(), n = _(), r = zr();
+})), lu = /* @__PURE__ */ m(((e, t) => {
+ t.exports = cu();
+})), uu = /* @__PURE__ */ m(((e) => {
+ var t = lu(), n = v(), r = Ur();
function i(e) {
var t = "https://react.dev/errors/" + e;
if (1 < arguments.length) {
@@ -8099,7 +8202,7 @@ var au = /* @__PURE__ */ p(((e) => {
}
return !1;
}
- function v(e) {
+ function _(e) {
switch (e.tag) {
case 5:
case 27:
@@ -8134,58 +8237,58 @@ var au = /* @__PURE__ */ p(((e) => {
}
return null;
}
- var T = Object.assign, E = Symbol.for("react.element"), D = Symbol.for("react.transitional.element"), O = Symbol.for("react.portal"), k = Symbol.for("react.fragment"), A = Symbol.for("react.strict_mode"), j = Symbol.for("react.profiler"), M = Symbol.for("react.consumer"), N = Symbol.for("react.context"), ee = Symbol.for("react.forward_ref"), te = Symbol.for("react.suspense"), P = Symbol.for("react.suspense_list"), ne = Symbol.for("react.memo"), F = Symbol.for("react.lazy"), re = Symbol.for("react.activity"), ie = Symbol.for("react.legacy_hidden"), ae = Symbol.for("react.memo_cache_sentinel"), oe = Symbol.for("react.view_transition"), se = Symbol.for("react.recoverable"), ce = Symbol.iterator;
- function le(e) {
- return typeof e != "object" || !e ? null : (e = ce && e[ce] || e["@@iterator"], typeof e == "function" ? e : null);
+ var T = Object.assign, E = Symbol.for("react.element"), D = Symbol.for("react.transitional.element"), O = Symbol.for("react.portal"), k = Symbol.for("react.fragment"), A = Symbol.for("react.strict_mode"), ee = Symbol.for("react.profiler"), j = Symbol.for("react.consumer"), te = Symbol.for("react.context"), M = Symbol.for("react.forward_ref"), ne = Symbol.for("react.suspense"), N = Symbol.for("react.suspense_list"), re = Symbol.for("react.memo"), P = Symbol.for("react.lazy"), ie = Symbol.for("react.activity"), ae = Symbol.for("react.legacy_hidden"), oe = Symbol.for("react.memo_cache_sentinel"), se = Symbol.for("react.view_transition"), ce = Symbol.for("react.recoverable"), le = Symbol.iterator;
+ function ue(e) {
+ return typeof e != "object" || !e ? null : (e = le && e[le] || e["@@iterator"], typeof e == "function" ? e : null);
}
- var ue = Symbol.for("react.client.reference");
- function de(e) {
+ var de = Symbol.for("react.client.reference");
+ function fe(e) {
if (e == null) return null;
- if (typeof e == "function") return e.$$typeof === ue ? null : e.displayName || e.name || null;
+ if (typeof e == "function") return e.$$typeof === de ? null : e.displayName || e.name || null;
if (typeof e == "string") return e;
switch (e) {
case k: return "Fragment";
- case j: return "Profiler";
+ case ee: return "Profiler";
case A: return "StrictMode";
- case te: return "Suspense";
- case P: return "SuspenseList";
- case re: return "Activity";
- case oe: return "ViewTransition";
+ case ne: return "Suspense";
+ case N: return "SuspenseList";
+ case ie: return "Activity";
+ case se: return "ViewTransition";
}
if (typeof e == "object") switch (e.$$typeof) {
case O: return "Portal";
- case N: return e.displayName || "Context";
- case M: return (e._context.displayName || "Context") + ".Consumer";
- case ee:
+ case te: return e.displayName || "Context";
+ case j: return (e._context.displayName || "Context") + ".Consumer";
+ case M:
var t = e.render;
return e = e.displayName, e ||= (e = t.displayName || t.name || "", e === "" ? "ForwardRef" : "ForwardRef(" + e + ")"), e;
- case ne: return t = e.displayName || null, t === null ? de(e.type) || "Memo" : t;
- case F:
+ case re: return t = e.displayName || null, t === null ? fe(e.type) || "Memo" : t;
+ case P:
t = e._payload, e = e._init;
try {
- return de(e(t));
+ return fe(e(t));
} catch {}
}
return null;
}
- var fe = Array.isArray, I = n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, L = r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, pe = {
+ var pe = Array.isArray, F = n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, I = r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, me = {
pending: !1,
data: null,
method: null,
action: null
- }, me = [], he = -1;
- function ge(e) {
+ }, he = [], ge = -1;
+ function _e(e) {
return { current: e };
}
- function _e(e) {
- 0 > he || (e.current = me[he], me[he] = null, he--);
+ function ve(e) {
+ 0 > ge || (e.current = he[ge], he[ge] = null, ge--);
}
- function ve(e, t) {
- he++, me[he] = e.current, e.current = t;
+ function ye(e, t) {
+ ge++, he[ge] = e.current, e.current = t;
}
- var ye = ge(null), be = ge(null), xe = ge(null), Se = ge(null);
- function Ce(e, t) {
- switch (ve(xe, t), ve(be, e), ve(ye, null), t.nodeType) {
+ var be = _e(null), xe = _e(null), Se = _e(null), Ce = _e(null);
+ function we(e, t) {
+ switch (ye(Se, t), ye(xe, e), ye(be, null), t.nodeType) {
case 9:
case 11:
e = (e = t.documentElement) && (e = e.namespaceURI) ? up(e) : 0;
@@ -8201,34 +8304,34 @@ var au = /* @__PURE__ */ p(((e) => {
default: e = 0;
}
}
- _e(ye), ve(ye, e);
+ ve(be), ye(be, e);
}
- function we() {
- _e(ye), _e(be), _e(xe);
+ function Te() {
+ ve(be), ve(xe), ve(Se);
}
- function Te(e) {
+ function Ee(e) {
var t = e.memoizedState;
- t !== null && (sh._currentValue = t.memoizedState, ve(Se, e)), t = ye.current;
+ t !== null && (sh._currentValue = t.memoizedState, ye(Ce, e)), t = be.current;
var n = dp(t, e.type);
- t !== n && (ve(be, e), ve(ye, n));
+ t !== n && (ye(xe, e), ye(be, n));
}
- function Ee(e) {
- be.current === e && (_e(ye), _e(be)), Se.current === e && (_e(Se), sh._currentValue = pe);
+ function De(e) {
+ xe.current === e && (ve(be), ve(xe)), Ce.current === e && (ve(Ce), sh._currentValue = me);
}
- var De, Oe;
- function ke(e) {
- if (De === void 0) try {
+ var Oe, ke;
+ function Ae(e) {
+ if (Oe === void 0) try {
throw Error();
} catch (e) {
var t = e.stack.trim().match(/\n( *(at )?)/);
- De = t && t[1] || "", Oe = -1 < e.stack.indexOf("\n at") ? " (<anonymous>)" : -1 < e.stack.indexOf("@") ? "@unknown:0:0" : "";
+ Oe = t && t[1] || "", ke = -1 < e.stack.indexOf("\n at") ? " (<anonymous>)" : -1 < e.stack.indexOf("@") ? "@unknown:0:0" : "";
}
- return "\n" + De + e + Oe;
+ return "\n" + Oe + e + ke;
}
- var Ae = !1;
- function je(e, t) {
- if (!e || Ae) return "";
- Ae = !0;
+ var je = !1;
+ function Me(e, t) {
+ if (!e || je) return "";
+ je = !0;
var n = Error.prepareStackTrace;
Error.prepareStackTrace = void 0;
try {
@@ -8299,50 +8402,50 @@ var au = /* @__PURE__ */ p(((e) => {
}
}
} finally {
- Ae = !1, Error.prepareStackTrace = n;
+ je = !1, Error.prepareStackTrace = n;
}
- return (n = e ? e.displayName || e.name : "") ? ke(n) : "";
+ return (n = e ? e.displayName || e.name : "") ? Ae(n) : "";
}
- function Me(e, t) {
+ function Ne(e, t) {
switch (e.tag) {
case 26:
case 27:
- case 5: return ke(e.type);
- case 16: return ke("Lazy");
- case 13: return e.child !== t && t !== null ? ke("Suspense Fallback") : ke("Suspense");
- case 19: return ke("SuspenseList");
+ case 5: return Ae(e.type);
+ case 16: return Ae("Lazy");
+ case 13: return e.child !== t && t !== null ? Ae("Suspense Fallback") : Ae("Suspense");
+ case 19: return Ae("SuspenseList");
case 0:
- case 15: return je(e.type, !1);
- case 11: return je(e.type.render, !1);
- case 1: return je(e.type, !0);
- case 31: return ke("Activity");
- case 30: return ke("ViewTransition");
+ case 15: return Me(e.type, !1);
+ case 11: return Me(e.type.render, !1);
+ case 1: return Me(e.type, !0);
+ case 31: return Ae("Activity");
+ case 30: return Ae("ViewTransition");
default: return "";
}
}
- function Ne(e) {
+ function Pe(e) {
try {
var t = "", n = null;
do
- t += Me(e, n), n = e, e = e.return;
+ t += Ne(e, n), n = e, e = e.return;
while (e);
return t;
} catch (e) {
return "\nError generating stack: " + e.message + "\n" + e.stack;
}
}
- var Pe = Object.prototype.hasOwnProperty, Fe = t.unstable_scheduleCallback, Ie = t.unstable_cancelCallback, Le = t.unstable_shouldYield, Re = t.unstable_requestPaint, ze = t.unstable_now, Be = t.unstable_getCurrentPriorityLevel, Ve = t.unstable_ImmediatePriority, He = t.unstable_UserBlockingPriority, Ue = t.unstable_NormalPriority, We = t.unstable_LowPriority, Ge = t.unstable_IdlePriority, Ke = t.log, qe = t.unstable_setDisableYieldValue, Je = null, Ye = null;
- function Xe(e) {
- if (typeof Ke == "function" && qe(e), Ye && typeof Ye.setStrictMode == "function") try {
- Ye.setStrictMode(Je, e);
+ var Fe = Object.prototype.hasOwnProperty, Ie = t.unstable_scheduleCallback, Le = t.unstable_cancelCallback, Re = t.unstable_shouldYield, ze = t.unstable_requestPaint, Be = t.unstable_now, Ve = t.unstable_getCurrentPriorityLevel, He = t.unstable_ImmediatePriority, Ue = t.unstable_UserBlockingPriority, We = t.unstable_NormalPriority, Ge = t.unstable_LowPriority, Ke = t.unstable_IdlePriority, qe = t.log, Je = t.unstable_setDisableYieldValue, Ye = null, Xe = null;
+ function Ze(e) {
+ if (typeof qe == "function" && Je(e), Xe && typeof Xe.setStrictMode == "function") try {
+ Xe.setStrictMode(Ye, e);
} catch {}
}
- var Ze = Math.clz32 ? Math.clz32 : et, Qe = Math.log, $e = Math.LN2;
- function et(e) {
- return e >>>= 0, e === 0 ? 32 : 31 - (Qe(e) / $e | 0) | 0;
+ var Qe = Math.clz32 ? Math.clz32 : tt, $e = Math.log, et = Math.LN2;
+ function tt(e) {
+ return e >>>= 0, e === 0 ? 32 : 31 - ($e(e) / et | 0) | 0;
}
- var tt = 256, nt = 262144, rt = 4194304;
- function it(e) {
+ var nt = 256, rt = 262144, it = 4194304;
+ function at(e) {
var t = e & 42;
if (t !== 0) return t;
switch (e & -e) {
@@ -8380,27 +8483,27 @@ var au = /* @__PURE__ */ p(((e) => {
default: return e;
}
}
- function at(e, t, n) {
+ function ot(e, t, n) {
var r = e.pendingLanes;
if (r === 0) return 0;
var i = 0, a = e.suspendedLanes, o = e.pingedLanes;
e = e.warmLanes;
var s = r & 134217727;
- return s === 0 ? (s = r & ~a, s === 0 ? o === 0 ? n || (n = r & ~e, n !== 0 && (i = it(n))) : i = it(o) : i = it(s)) : (r = s & ~a, r === 0 ? (o &= s, o === 0 ? n || (n = s & ~e, n !== 0 && (i = it(n))) : i = it(o)) : i = it(r)), i === 0 ? 0 : t !== 0 && t !== i && (t & a) === 0 && (a = i & -i, n = t & -t, a >= n || a === 32 && n & 4194048) ? t : i;
+ return s === 0 ? (s = r & ~a, s === 0 ? o === 0 ? n || (n = r & ~e, n !== 0 && (i = at(n))) : i = at(o) : i = at(s)) : (r = s & ~a, r === 0 ? (o &= s, o === 0 ? n || (n = s & ~e, n !== 0 && (i = at(n))) : i = at(o)) : i = at(r)), i === 0 ? 0 : t !== 0 && t !== i && (t & a) === 0 && (a = i & -i, n = t & -t, a >= n || a === 32 && n & 4194048) ? t : i;
}
- function ot(e, t) {
+ function st(e, t) {
return (e.pendingLanes & ~(e.suspendedLanes & ~e.pingedLanes) & t) === 0;
}
- function st(e, t) {
+ function ct(e, t) {
t & 8 && (t |= t & 32);
var n = e.entangledLanes;
if (n !== 0) for (e = e.entanglements, n &= t; 0 < n;) {
- var r = 31 - Ze(n), i = 1 << r;
+ var r = 31 - Qe(n), i = 1 << r;
t |= e[r], n &= ~i;
}
return t;
}
- function ct(e, t) {
+ function lt(e, t) {
switch (e) {
case 1:
case 2:
@@ -8436,23 +8539,23 @@ var au = /* @__PURE__ */ p(((e) => {
default: return -1;
}
}
- function lt() {
- var e = rt;
- return rt <<= 1, !(rt & 62914560) && (rt = 4194304), e;
+ function ut() {
+ var e = it;
+ return it <<= 1, !(it & 62914560) && (it = 4194304), e;
}
- function ut(e) {
+ function dt(e) {
for (var t = [], n = 0; 31 > n; n++) t.push(e);
return t;
}
- function dt(e, t) {
+ function ft(e, t) {
e.pendingLanes |= t, t !== 268435456 && (e.suspendedLanes = 0, e.pingedLanes = 0, e.warmLanes = 0);
}
- function ft(e, t, n, r, i, a) {
+ function pt(e, t, n, r, i, a) {
var o = e.pendingLanes;
e.pendingLanes = n, e.suspendedLanes = 0, e.pingedLanes = 0, e.warmLanes = 0, e.expiredLanes &= n, e.entangledLanes &= n, e.errorRecoveryDisabledLanes &= n, e.shellSuspendCounter = 0;
var s = e.entanglements, c = e.expirationTimes, l = e.hiddenUpdates;
for (n = o & ~n; 0 < n;) {
- var u = 31 - Ze(n), d = 1 << u;
+ var u = 31 - Qe(n), d = 1 << u;
s[u] = 0, c[u] = -1;
var f = l[u];
if (f !== null) for (l[u] = null, u = 0; u < f.length; u++) {
@@ -8461,25 +8564,25 @@ var au = /* @__PURE__ */ p(((e) => {
}
n &= ~d;
}
- r !== 0 && pt(e, r, 0), a !== 0 && i === 0 && e.tag !== 0 && (e.suspendedLanes |= a & ~(o & ~t));
+ r !== 0 && mt(e, r, 0), a !== 0 && i === 0 && e.tag !== 0 && (e.suspendedLanes |= a & ~(o & ~t));
}
- function pt(e, t, n) {
+ function mt(e, t, n) {
e.pendingLanes |= t, e.suspendedLanes &= ~t;
- var r = 31 - Ze(t);
+ var r = 31 - Qe(t);
e.entangledLanes |= t, e.entanglements[r] = e.entanglements[r] | 1073741824 | n & 261930;
}
- function mt(e, t) {
+ function ht(e, t) {
var n = e.entangledLanes |= t;
for (e = e.entanglements; n;) {
- var r = 31 - Ze(n), i = 1 << r;
+ var r = 31 - Qe(n), i = 1 << r;
i & t | e[r] & t && (e[r] |= t), n &= ~i;
}
}
- function ht(e, t) {
+ function gt(e, t) {
var n = t & -t;
- return n = n & 42 ? 1 : gt(n), (n & (e.suspendedLanes | t)) === 0 ? n : 0;
+ return n = n & 42 ? 1 : _t(n), (n & (e.suspendedLanes | t)) === 0 ? n : 0;
}
- function gt(e) {
+ function _t(e) {
switch (e) {
case 2:
e = 1;
@@ -8517,32 +8620,32 @@ var au = /* @__PURE__ */ p(((e) => {
}
return e;
}
- function _t(e) {
+ function vt(e) {
return e &= -e, 2 < e ? 8 < e ? e & 134217727 ? 32 : 268435456 : 8 : 2;
}
- function vt() {
- var e = L.p;
+ function yt() {
+ var e = I.p;
return e === 0 ? (e = window.event, e === void 0 ? 32 : Ch(e.type)) : e;
}
- function yt(e, t) {
- var n = L.p;
+ function bt(e, t) {
+ var n = I.p;
try {
- return L.p = e, t();
+ return I.p = e, t();
} finally {
- L.p = n;
+ I.p = n;
}
}
- var bt = Math.random().toString(36).slice(2), xt = "__reactFiber$" + bt, R = "__reactProps$" + bt, St = "__reactContainer$" + bt, Ct = "__reactEvents$" + bt, wt = "__reactListeners$" + bt, Tt = "__reactHandles$" + bt, Et = "__reactResources$" + bt, Dt = "__reactMarker$" + bt, Ot = "__reactLoad$" + bt;
- function kt(e) {
- delete e[xt], delete e[R], delete e[wt], delete e[Tt];
- }
+ var xt = Math.random().toString(36).slice(2), St = "__reactFiber$" + xt, Ct = "__reactProps$" + xt, wt = "__reactContainer$" + xt, Tt = "__reactEvents$" + xt, L = "__reactListeners$" + xt, Et = "__reactHandles$" + xt, Dt = "__reactResources$" + xt, Ot = "__reactMarker$" + xt, kt = "__reactLoad$" + xt;
function At(e) {
+ delete e[St], delete e[Ct], delete e[L], delete e[Et];
+ }
+ function jt(e) {
var t;
- if (t = e[xt]) return t;
+ if (t = e[St]) return t;
for (var n = e.parentNode; n;) {
- if (t = n[St] || n[xt]) {
+ if (t = n[wt] || n[St]) {
if (n = t.alternate, t.child !== null || n !== null && n.child !== null) for (e = fm(e); e !== null;) {
- if (n = e[xt]) return n;
+ if (n = e[St]) return n;
e = fm(e);
}
return t;
@@ -8551,49 +8654,49 @@ var au = /* @__PURE__ */ p(((e) => {
}
return null;
}
- function z(e) {
- if (e = e[xt] || e[St]) {
+ function Mt(e) {
+ if (e = e[St] || e[wt]) {
var t = e.tag;
if (t === 5 || t === 6 || t === 13 || t === 31 || t === 26 || t === 27 || t === 3) return e;
}
return null;
}
- function jt(e) {
+ function Nt(e) {
var t = e.tag;
if (t === 5 || t === 26 || t === 27 || t === 6) return e.stateNode;
throw Error(i(33));
}
- function B(e) {
- var t = e[Et];
- return t ||= e[Et] = {
+ function Pt(e) {
+ var t = e[Dt];
+ return t ||= e[Dt] = {
hoistableStyles: /* @__PURE__ */ new Map(),
hoistableScripts: /* @__PURE__ */ new Map()
}, t;
}
- function Mt(e) {
- e[Dt] = !0;
- }
- function Nt(e) {
- e[Ot] = void 0;
+ function R(e) {
+ e[Ot] = !0;
}
- var Pt = /* @__PURE__ */ new Set(), Ft = {};
- function It(e, t) {
- Lt(e, t), Lt(e + "Capture", t);
+ function Ft(e) {
+ e[kt] = void 0;
}
+ var z = /* @__PURE__ */ new Set(), It = {};
function Lt(e, t) {
- for (Ft[e] = t, e = 0; e < t.length; e++) Pt.add(t[e]);
+ Rt(e, t), Rt(e + "Capture", t);
+ }
+ function Rt(e, t) {
+ for (It[e] = t, e = 0; e < t.length; e++) z.add(t[e]);
}
- var Rt = RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"), zt = {}, Bt = {};
- function Vt(e) {
- return Pe.call(Bt, e) ? !0 : Pe.call(zt, e) ? !1 : Rt.test(e) ? Bt[e] = !0 : (zt[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 Fe.call(Vt, e) ? !0 : Fe.call(Bt, e) ? !1 : zt.test(e) ? Vt[e] = !0 : (Bt[e] = !0, !1);
}
- var V = !1;
- function Ht() {
- var e = V;
- return V = !1, e;
+ var B = !1;
+ function Ut() {
+ var e = B;
+ return B = !1, e;
}
- function H(e, t, n) {
- if (Vt(t)) {
+ function Wt(e, t, n) {
+ if (Ht(t)) {
if (n === null) e.removeAttribute(t);
else {
switch (typeof n) {
@@ -8613,7 +8716,7 @@ var au = /* @__PURE__ */ p(((e) => {
}
}
}
- function Ut(e, t, n) {
+ function Gt(e, t, n) {
if (n === null) e.removeAttribute(t);
else {
switch (typeof n) {
@@ -8627,7 +8730,7 @@ var au = /* @__PURE__ */ p(((e) => {
e.setAttribute(t, n);
}
}
- function Wt(e, t, n, r) {
+ function Kt(e, t, n, r) {
if (r === null) e.removeAttribute(n);
else {
switch (typeof r) {
@@ -8641,7 +8744,7 @@ var au = /* @__PURE__ */ p(((e) => {
e.setAttributeNS(t, n, r);
}
}
- function Gt(e) {
+ function V(e) {
switch (typeof e) {
case "bigint":
case "boolean":
@@ -8652,11 +8755,11 @@ var au = /* @__PURE__ */ p(((e) => {
default: return "";
}
}
- function Kt(e) {
+ function qt(e) {
var t = e.type;
return (e = e.nodeName) && e.toLowerCase() === "input" && (t === "checkbox" || t === "radio");
}
- function qt(e, t, n) {
+ function Jt(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;
@@ -8681,48 +8784,48 @@ var au = /* @__PURE__ */ p(((e) => {
};
}
}
- function Jt(e) {
+ function Yt(e) {
if (!e._valueTracker) {
- var t = Kt(e) ? "checked" : "value";
- e._valueTracker = qt(e, t, "" + e[t]);
+ var t = qt(e) ? "checked" : "value";
+ e._valueTracker = Jt(e, t, "" + e[t]);
}
}
- function Yt(e) {
+ function Xt(e) {
if (!e) return !1;
var t = e._valueTracker;
if (!t) return !0;
var n = t.getValue(), r = "";
- return e && (r = Kt(e) ? e.checked ? "true" : "false" : e.value), e = r, e !== n && (t.setValue(e), !0);
+ return e && (r = qt(e) ? e.checked ? "true" : "false" : e.value), e = r, e !== n && (t.setValue(e), !0);
}
- var Xt = /[\n"\\]/g;
- function Zt(e) {
- return e.replace(Xt, function(e) {
+ var Zt = /[\n"\\]/g;
+ function Qt(e) {
+ return e.replace(Zt, function(e) {
return "\\" + e.charCodeAt(0).toString(16) + " ";
});
}
- function Qt(e, t, n, r, i, a, o, s) {
- e.name = "", o != null && typeof o != "function" && typeof o != "symbol" && typeof o != "boolean" ? e.type = o : e.removeAttribute("type"), t == null ? o !== "submit" && o !== "reset" || e.removeAttribute("value") : o === "number" ? (t === 0 && e.value === "" || e.value != t) && (e.value = "" + Gt(t)) : e.value !== "" + Gt(t) && (e.value = "" + Gt(t)), t == null ? n == null ? r != null && e.removeAttribute("value") : en(e, Gt(n)) : o === "number" && e.value == t ? en(e, Gt(e.value)) : en(e, Gt(t)), i == null && a != null && (e.defaultChecked = !!a), i != null && (e.checked = i && typeof i != "function" && typeof i != "symbol"), s != null && typeof s != "function" && typeof s != "symbol" && typeof s != "boolean" ? e.name = "" + Gt(s) : e.removeAttribute("name");
- }
function $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 = "" + V(t)) : e.value !== "" + V(t) && (e.value = "" + V(t)), t == null ? n == null ? r != null && e.removeAttribute("value") : tn(e, V(n)) : o === "number" && e.value == t ? tn(e, V(e.value)) : tn(e, V(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 = "" + V(s) : e.removeAttribute("name");
+ }
+ 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)) {
- Jt(e);
+ Yt(e);
return;
}
- n = n == null ? "" : "" + Gt(n), t = t == null ? n : "" + Gt(t), s || t === e.value || (e.value = t), e.defaultValue = t;
+ n = n == null ? "" : "" + V(n), t = t == null ? n : "" + V(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), Jt(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), Yt(e);
}
- function en(e, t) {
+ function tn(e, t) {
e.defaultValue !== "" + t && (e.defaultValue = "" + t);
}
- function tn(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 = "" + Gt(n), t = null, i = 0; i < e.length; i++) {
+ for (n = "" + V(n), t = null, i = 0; i < e.length; i++) {
if (e[i].value === n) {
e[i].selected = !0, r && (e[i].defaultSelected = !0);
return;
@@ -8732,18 +8835,18 @@ var au = /* @__PURE__ */ p(((e) => {
t !== null && (t.selected = !0);
}
}
- function nn(e, t, n) {
- if (t != null && (t = "" + Gt(t), t !== e.value && (e.value = t), n == null)) {
+ function rn(e, t, n) {
+ if (t != null && (t = "" + V(t), t !== e.value && (e.value = t), n == null)) {
e.defaultValue !== t && (e.defaultValue = t);
return;
}
- e.defaultValue = n == null ? "" : "" + Gt(n);
+ e.defaultValue = n == null ? "" : "" + V(n);
}
- function rn(e, t, n, r) {
+ function an(e, t, n, r) {
if (t == null) {
if (r != null) {
if (n != null) throw Error(i(92));
- if (fe(r)) {
+ if (pe(r)) {
if (1 < r.length) throw Error(i(93));
r = r[0];
}
@@ -8751,9 +8854,9 @@ var au = /* @__PURE__ */ p(((e) => {
}
n ??= "", t = n;
}
- n = Gt(t), e.defaultValue = n, r = e.textContent, r === n && r !== "" && r !== null && (e.value = r), Jt(e);
+ n = V(t), e.defaultValue = n, r = e.textContent, r === n && r !== "" && r !== null && (e.value = r), Yt(e);
}
- function an(e, t) {
+ function on(e, t) {
if (t) {
var n = e.firstChild;
if (n && n === e.lastChild && n.nodeType === 3) {
@@ -8763,19 +8866,19 @@ var au = /* @__PURE__ */ p(((e) => {
}
e.textContent = t;
}
- var on = new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));
- function sn(e, t, n) {
+ var 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 || on.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 cn(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 && (sn(e, a, r), V = !0);
- } else for (var o in t) t.hasOwnProperty(o) && sn(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] = "", B = !0);
+ for (var a in t) r = t[a], t.hasOwnProperty(a) && n[a] !== r && (cn(e, a, r), B = !0);
+ } else for (var o in t) t.hasOwnProperty(o) && cn(e, o, t[o]);
}
- function ln(e) {
+ function un(e) {
if (e.indexOf("-") === -1) return !1;
switch (e) {
case "annotation-xml":
@@ -8789,7 +8892,7 @@ var au = /* @__PURE__ */ p(((e) => {
default: return !0;
}
}
- var un = /* @__PURE__ */ new Map([
+ var dn = /* @__PURE__ */ new Map([
["acceptCharset", "accept-charset"],
["htmlFor", "for"],
["httpEquiv", "http-equiv"],
@@ -8869,56 +8972,56 @@ var au = /* @__PURE__ */ p(((e) => {
["writingMode", "writing-mode"],
["xmlnsXlink", "xmlns:xlink"],
["xHeight", "x-height"]
- ]), 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;
+ ]), fn = /^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;
+ function pn(e) {
+ return fn.test("" + e) ? "javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')" : e;
}
- function pn() {}
- var mn = null;
- function hn(e) {
+ function mn() {}
+ var hn = null;
+ function gn(e) {
return e = e.target || e.srcElement || window, e.correspondingUseElement && (e = e.correspondingUseElement), e.nodeType === 3 ? e.parentNode : e;
}
- var gn = null, _n = null;
- function vn(e) {
- var t = z(e);
+ var _n = null, vn = null;
+ function yn(e) {
+ var t = Mt(e);
if (t && (e = t.stateNode)) {
- var n = e[R] || null;
+ var n = e[Ct] || null;
a: switch (e = t.stateNode, t.type) {
case "input":
- if (Qt(e, n.value, n.defaultValue, n.defaultValue, n.checked, n.defaultChecked, n.type, n.name), t = n.name, n.type === "radio" && t != null) {
+ 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=\"" + Zt("" + 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[R] || null;
+ var a = r[Ct] || null;
if (!a) throw Error(i(90));
- Qt(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 && Yt(r);
+ for (t = 0; t < n.length; t++) r = n[t], r.form === e.form && Xt(r);
}
break a;
case "textarea":
- nn(e, n.value, n.defaultValue);
+ rn(e, n.value, n.defaultValue);
break a;
- case "select": t = n.value, t != null && tn(e, !!n.multiple, t, !1);
+ case "select": t = n.value, t != null && nn(e, !!n.multiple, t, !1);
}
}
}
- var yn = !1;
- function bn(e, t, n) {
- if (yn) return e(t, n);
- yn = !0;
+ var bn = !1;
+ function xn(e, t, n) {
+ if (bn) return e(t, n);
+ bn = !0;
try {
return e(t);
} finally {
- 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]);
+ if (bn = !1, (_n !== null || vn !== null) && (Ld(), _n && (t = _n, e = vn, vn = _n = null, yn(t), e))) for (t = 0; t < e.length; t++) yn(e[t]);
}
}
- function xn(e, t) {
+ function Sn(e, t) {
var n = e.stateNode;
if (n === null) return null;
- var r = n[R] || null;
+ var r = n[Ct] || null;
if (r === null) return null;
n = r[t];
a: switch (t) {
@@ -8941,54 +9044,54 @@ var au = /* @__PURE__ */ p(((e) => {
if (n && typeof n != "function") throw Error(i(231, t, typeof n));
return n;
}
- var Sn = !(typeof window > "u" || window.document === void 0 || window.document.createElement === void 0), Cn = !1;
- if (Sn) try {
- var wn = {};
- Object.defineProperty(wn, "passive", { get: function() {
- Cn = !0;
- } }), window.addEventListener("test", wn, wn), window.removeEventListener("test", wn, wn);
+ var Cn = !(typeof window > "u" || window.document === void 0 || window.document.createElement === void 0), wn = !1;
+ if (Cn) try {
+ var Tn = {};
+ Object.defineProperty(Tn, "passive", { get: function() {
+ wn = !0;
+ } }), window.addEventListener("test", Tn, Tn), window.removeEventListener("test", Tn, Tn);
} catch {
- Cn = !1;
+ wn = !1;
}
- var Tn = null, En = null, Dn = null;
- function On() {
- if (Dn) return Dn;
- var e, t = En, n = t.length, r, i = "value" in Tn ? Tn.value : Tn.textContent, a = i.length;
+ var En = null, Dn = null, On = null;
+ function kn() {
+ if (On) return On;
+ var e, t = Dn, n = t.length, r, i = "value" in En ? En.value : En.textContent, a = i.length;
for (e = 0; e < n && t[e] === i[e]; e++);
var o = n - e;
for (r = 1; r <= o && t[n - r] === i[a - r]; r++);
- return Dn = i.slice(e, 1 < r ? 1 - r : void 0);
+ return On = i.slice(e, 1 < r ? 1 - r : void 0);
}
- function kn(e) {
+ function An(e) {
var t = e.keyCode;
return "charCode" in e ? (e = e.charCode, e === 0 && t === 13 && (e = 13)) : e = t, e === 10 && (e = 13), 32 <= e || e === 13 ? e : 0;
}
- function An() {
+ function jn() {
return !0;
}
- function jn() {
+ function Mn() {
return !1;
}
- function Mn(e) {
+ function Nn(e) {
function t(t, n, r, i, a) {
for (var o in this._reactName = t, this._targetInst = r, this.type = n, this.nativeEvent = i, this.target = a, this.currentTarget = null, e) e.hasOwnProperty(o) && (t = e[o], this[o] = t ? t(i) : i[o]);
- return this.isDefaultPrevented = (i.defaultPrevented == null ? !1 === i.returnValue : i.defaultPrevented) ? An : jn, this.isPropagationStopped = jn, this;
+ return this.isDefaultPrevented = (i.defaultPrevented == null ? !1 === i.returnValue : i.defaultPrevented) ? jn : Mn, this.isPropagationStopped = Mn, this;
}
return T(t.prototype, {
preventDefault: function() {
this.defaultPrevented = !0;
var e = this.nativeEvent;
- e && (e.preventDefault ? e.preventDefault() : typeof e.returnValue != "unknown" && (e.returnValue = !1), this.isDefaultPrevented = An);
+ e && (e.preventDefault ? e.preventDefault() : typeof e.returnValue != "unknown" && (e.returnValue = !1), this.isDefaultPrevented = jn);
},
stopPropagation: function() {
var e = this.nativeEvent;
- e && (e.stopPropagation ? e.stopPropagation() : typeof e.cancelBubble != "unknown" && (e.cancelBubble = !0), this.isPropagationStopped = An);
+ e && (e.stopPropagation ? e.stopPropagation() : typeof e.cancelBubble != "unknown" && (e.cancelBubble = !0), this.isPropagationStopped = jn);
},
persist: function() {},
- isPersistent: An
+ isPersistent: jn
}), t;
}
- var Nn = {
+ var Pn = {
eventPhase: 0,
bubbles: 0,
cancelable: 0,
@@ -8997,10 +9100,10 @@ var au = /* @__PURE__ */ p(((e) => {
},
defaultPrevented: 0,
isTrusted: 0
- }, Pn = Mn(Nn), Fn = T({}, Nn, {
+ }, Fn = Nn(Pn), In = T({}, Pn, {
view: 0,
detail: 0
- }), In = Mn(Fn), Ln, Rn, zn, Bn = T({}, Fn, {
+ }), Ln = Nn(In), Rn, zn, Bn, Vn = T({}, In, {
screenX: 0,
screenY: 0,
clientX: 0,
@@ -9011,25 +9114,25 @@ var au = /* @__PURE__ */ p(((e) => {
shiftKey: 0,
altKey: 0,
metaKey: 0,
- getModifierState: Zn,
+ getModifierState: Qn,
button: 0,
buttons: 0,
relatedTarget: function(e) {
return e.relatedTarget === void 0 ? e.fromElement === e.srcElement ? e.toElement : e.fromElement : e.relatedTarget;
},
movementX: function(e) {
- return "movementX" in e ? e.movementX : (e !== zn && (zn && e.type === "mousemove" ? (Ln = e.screenX - zn.screenX, Rn = e.screenY - zn.screenY) : Rn = Ln = 0, zn = e), Ln);
+ return "movementX" in e ? e.movementX : (e !== Bn && (Bn && e.type === "mousemove" ? (Rn = e.screenX - Bn.screenX, zn = e.screenY - Bn.screenY) : zn = Rn = 0, Bn = e), Rn);
},
movementY: function(e) {
- return "movementY" in e ? e.movementY : Rn;
+ return "movementY" in e ? e.movementY : zn;
}
- }), Vn = Mn(Bn), Hn = Mn(T({}, Bn, { dataTransfer: 0 })), Un = Mn(T({}, Fn, { relatedTarget: 0 })), Wn = Mn(T({}, Nn, {
+ }), Hn = Nn(Vn), Un = Nn(T({}, Vn, { dataTransfer: 0 })), Wn = Nn(T({}, In, { relatedTarget: 0 })), Gn = Nn(T({}, Pn, {
animationName: 0,
elapsedTime: 0,
pseudoElement: 0
- })), Gn = Mn(T({}, Nn, { clipboardData: function(e) {
+ })), Kn = Nn(T({}, Pn, { clipboardData: function(e) {
return "clipboardData" in e ? e.clipboardData : window.clipboardData;
- } })), Kn = Mn(T({}, Nn, { data: 0 })), qn = {
+ } })), qn = Nn(T({}, Pn, { data: 0 })), Jn = {
Esc: "Escape",
Spacebar: " ",
Left: "ArrowLeft",
@@ -9042,7 +9145,7 @@ var au = /* @__PURE__ */ p(((e) => {
Apps: "ContextMenu",
Scroll: "ScrollLock",
MozPrintableKey: "Unidentified"
- }, Jn = {
+ }, Yn = {
8: "Backspace",
9: "Tab",
12: "Clear",
@@ -9079,26 +9182,26 @@ var au = /* @__PURE__ */ p(((e) => {
144: "NumLock",
145: "ScrollLock",
224: "Meta"
- }, Yn = {
+ }, Xn = {
Alt: "altKey",
Control: "ctrlKey",
Meta: "metaKey",
Shift: "shiftKey"
};
- function Xn(e) {
+ function Zn(e) {
var t = this.nativeEvent;
- return t.getModifierState ? t.getModifierState(e) : (e = Yn[e]) ? !!t[e] : !1;
+ return t.getModifierState ? t.getModifierState(e) : (e = Xn[e]) ? !!t[e] : !1;
}
- function Zn() {
- return Xn;
+ function Qn() {
+ return Zn;
}
- var Qn = Mn(T({}, Fn, {
+ var $n = Nn(T({}, In, {
key: function(e) {
if (e.key) {
- var t = qn[e.key] || e.key;
+ var t = Jn[e.key] || e.key;
if (t !== "Unidentified") return t;
}
- return e.type === "keypress" ? (e = kn(e), e === 13 ? "Enter" : String.fromCharCode(e)) : e.type === "keydown" || e.type === "keyup" ? Jn[e.keyCode] || "Unidentified" : "";
+ return e.type === "keypress" ? (e = An(e), e === 13 ? "Enter" : String.fromCharCode(e)) : e.type === "keydown" || e.type === "keyup" ? Yn[e.keyCode] || "Unidentified" : "";
},
code: 0,
location: 0,
@@ -9108,17 +9211,17 @@ var au = /* @__PURE__ */ p(((e) => {
metaKey: 0,
repeat: 0,
locale: 0,
- getModifierState: Zn,
+ getModifierState: Qn,
charCode: function(e) {
- return e.type === "keypress" ? kn(e) : 0;
+ return e.type === "keypress" ? An(e) : 0;
},
keyCode: function(e) {
return e.type === "keydown" || e.type === "keyup" ? e.keyCode : 0;
},
which: function(e) {
- return e.type === "keypress" ? kn(e) : e.type === "keydown" || e.type === "keyup" ? e.keyCode : 0;
+ return e.type === "keypress" ? An(e) : e.type === "keydown" || e.type === "keyup" ? e.keyCode : 0;
}
- })), $n = Mn(T({}, Bn, {
+ })), er = Nn(T({}, Vn, {
pointerId: 0,
width: 0,
height: 0,
@@ -9129,7 +9232,7 @@ var au = /* @__PURE__ */ p(((e) => {
twist: 0,
pointerType: 0,
isPrimary: 0
- })), er = Mn(T({}, Nn, { submitter: 0 })), tr = Mn(T({}, Fn, {
+ })), tr = Nn(T({}, Pn, { submitter: 0 })), nr = Nn(T({}, In, {
touches: 0,
targetTouches: 0,
changedTouches: 0,
@@ -9137,12 +9240,12 @@ var au = /* @__PURE__ */ p(((e) => {
metaKey: 0,
ctrlKey: 0,
shiftKey: 0,
- getModifierState: Zn
- })), nr = Mn(T({}, Nn, {
+ getModifierState: Qn
+ })), rr = Nn(T({}, Pn, {
propertyName: 0,
elapsedTime: 0,
pseudoElement: 0
- })), rr = Mn(T({}, Bn, {
+ })), ir = Nn(T({}, Vn, {
deltaX: function(e) {
return "deltaX" in e ? e.deltaX : "wheelDeltaX" in e ? -e.wheelDeltaX : 0;
},
@@ -9151,21 +9254,21 @@ var au = /* @__PURE__ */ p(((e) => {
},
deltaZ: 0,
deltaMode: 0
- })), ir = Mn(T({}, Nn, {
+ })), ar = Nn(T({}, Pn, {
newState: 0,
oldState: 0,
source: 0
- })), ar = [
+ })), or = [
9,
13,
27,
32
- ], or = Sn && "CompositionEvent" in window, sr = null;
- Sn && "documentMode" in document && (sr = document.documentMode);
- var cr = Sn && "TextEvent" in window && !sr, lr = Sn && (!or || sr && 8 < sr && 11 >= sr), ur = " ", dr = !1;
- function fr(e, t) {
+ ], sr = Cn && "CompositionEvent" in window, cr = null;
+ Cn && "documentMode" in document && (cr = document.documentMode);
+ var lr = Cn && "TextEvent" in window && !cr, ur = Cn && (!sr || cr && 8 < cr && 11 >= cr), dr = " ", fr = !1;
+ function pr(e, t) {
switch (e) {
- case "keyup": return ar.indexOf(t.keyCode) !== -1;
+ case "keyup": return or.indexOf(t.keyCode) !== -1;
case "keydown": return t.keyCode !== 229;
case "keypress":
case "mousedown":
@@ -9173,20 +9276,20 @@ var au = /* @__PURE__ */ p(((e) => {
default: return !1;
}
}
- function pr(e) {
+ function mr(e) {
return e = e.detail, typeof e == "object" && "data" in e ? e.data : null;
}
- var U = !1;
- function mr(e, t) {
+ var hr = !1;
+ function gr(e, t) {
switch (e) {
- case "compositionend": return pr(t);
- case "keypress": return t.which === 32 ? (dr = !0, ur) : null;
- case "textInput": return e = t.data, e === ur && dr ? null : e;
+ case "compositionend": return mr(t);
+ case "keypress": return t.which === 32 ? (fr = !0, dr) : null;
+ case "textInput": return e = t.data, e === dr && fr ? null : e;
default: return null;
}
}
- function hr(e, t) {
- if (U) return e === "compositionend" || !or && fr(e, t) ? (e = On(), Dn = En = Tn = null, U = !1, e) : null;
+ function _r(e, t) {
+ if (hr) return e === "compositionend" || !sr && pr(e, t) ? (e = kn(), On = Dn = En = null, hr = !1, e) : null;
switch (e) {
case "paste": return null;
case "keypress":
@@ -9195,11 +9298,11 @@ var au = /* @__PURE__ */ p(((e) => {
if (t.which) return String.fromCharCode(t.which);
}
return null;
- case "compositionend": return lr && t.locale !== "ko" ? null : t.data;
+ case "compositionend": return ur && t.locale !== "ko" ? null : t.data;
default: return null;
}
}
- var gr = {
+ var H = {
color: !0,
date: !0,
datetime: !0,
@@ -9216,76 +9319,76 @@ var au = /* @__PURE__ */ p(((e) => {
url: !0,
week: !0
};
- function _r(e) {
+ function vr(e) {
var t = e && e.nodeName && e.nodeName.toLowerCase();
- return t === "input" ? !!gr[e.type] : t === "textarea";
+ return t === "input" ? !!H[e.type] : t === "textarea";
}
- function vr(e, t, n, r) {
- gn ? _n ? _n.push(r) : _n = [r] : gn = r, t = qf(t, "onChange"), 0 < t.length && (n = new Pn("onChange", "change", null, n, r), e.push({
+ function yr(e, t, n, r) {
+ _n ? vn ? vn.push(r) : vn = [r] : _n = r, t = qf(t, "onChange"), 0 < t.length && (n = new Fn("onChange", "change", null, n, r), e.push({
event: n,
listeners: t
}));
}
- var yr = null, br = null;
- function xr(e) {
+ var br = null, xr = null;
+ function Sr(e) {
Bf(e, 0);
}
- function Sr(e) {
- if (Yt(jt(e))) return e;
+ function Cr(e) {
+ if (Xt(Nt(e))) return e;
}
- function Cr(e, t) {
+ function wr(e, t) {
if (e === "change") return t;
}
- var wr = !1;
- if (Sn) {
- var Tr;
- if (Sn) {
- var Er = "oninput" in document;
- if (!Er) {
- var Dr = document.createElement("div");
- Dr.setAttribute("oninput", "return;"), Er = typeof Dr.oninput == "function";
+ var Tr = !1;
+ if (Cn) {
+ var Er;
+ if (Cn) {
+ var Dr = "oninput" in document;
+ if (!Dr) {
+ var Or = document.createElement("div");
+ Or.setAttribute("oninput", "return;"), Dr = typeof Or.oninput == "function";
}
- Tr = Er;
- } else Tr = !1;
- wr = Tr && (!document.documentMode || 9 < document.documentMode);
+ Er = Dr;
+ } else Er = !1;
+ Tr = Er && (!document.documentMode || 9 < document.documentMode);
}
- function Or() {
- yr && (yr.detachEvent("onpropertychange", kr), br = yr = null);
+ function kr() {
+ br && (br.detachEvent("onpropertychange", Ar), xr = br = null);
}
- function kr(e) {
- if (e.propertyName === "value" && Sr(br)) {
+ function Ar(e) {
+ if (e.propertyName === "value" && Cr(xr)) {
var t = [];
- vr(t, br, e, hn(e)), bn(xr, t);
+ yr(t, xr, e, gn(e)), xn(Sr, t);
}
}
- function Ar(e, t, n) {
- e === "focusin" ? (Or(), yr = t, br = n, yr.attachEvent("onpropertychange", kr)) : e === "focusout" && Or();
+ function jr(e, t, n) {
+ e === "focusin" ? (kr(), br = t, xr = n, br.attachEvent("onpropertychange", Ar)) : e === "focusout" && kr();
}
- function jr(e) {
- if (e === "selectionchange" || e === "keyup" || e === "keydown") return Sr(br);
- }
- function Mr(e, t) {
- if (e === "click") return Sr(t);
+ function Mr(e) {
+ if (e === "selectionchange" || e === "keyup" || e === "keydown") return Cr(xr);
}
function Nr(e, t) {
- if (e === "input" || e === "change") return Sr(t);
+ if (e === "click") return Cr(t);
}
function Pr(e, t) {
+ if (e === "input" || e === "change") return Cr(t);
+ }
+ function Fr(e, t) {
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
}
- var Fr = typeof Object.is == "function" ? Object.is : Pr;
- function Ir(e, t) {
- if (Fr(e, t)) return !0;
+ var Ir = typeof Object.is == "function" ? Object.is : Fr;
+ function Lr(e, t) {
+ if (Ir(e, t)) return !0;
if (typeof e != "object" || !e || typeof t != "object" || !t) return !1;
var n = Object.keys(e), r = Object.keys(t);
if (n.length !== r.length) return !1;
for (r = 0; r < n.length; r++) {
var i = n[r];
- if (!Pe.call(t, i) || !Fr(e[i], t[i])) return !1;
+ if (!Fe.call(t, i) || !Ir(e[i], t[i])) return !1;
}
return !0;
}
- function Lr(e) {
+ function Rr(e) {
if (e ||= typeof document < "u" ? document : void 0, e === void 0) return null;
try {
return e.activeElement || e.body;
@@ -9293,12 +9396,12 @@ var au = /* @__PURE__ */ p(((e) => {
return e.body;
}
}
- function Rr(e) {
+ function zr(e) {
for (; e && e.firstChild;) e = e.firstChild;
return e;
}
function Br(e, t) {
- var n = Rr(e);
+ var n = zr(e);
e = 0;
for (var r; n;) {
if (n.nodeType === 3) {
@@ -9318,7 +9421,7 @@ var au = /* @__PURE__ */ p(((e) => {
}
n = void 0;
}
- n = Rr(n);
+ n = zr(n);
}
}
function Vr(e, t) {
@@ -9326,7 +9429,7 @@ var au = /* @__PURE__ */ p(((e) => {
}
function Hr(e) {
e = e != null && e.ownerDocument != null && e.ownerDocument.defaultView != null ? e.ownerDocument.defaultView : window;
- for (var t = Lr(e.document); t instanceof e.HTMLIFrameElement;) {
+ for (var t = Rr(e.document); t instanceof e.HTMLIFrameElement;) {
try {
var n = typeof t.contentWindow.location.href == "string";
} catch {
@@ -9334,18 +9437,18 @@ var au = /* @__PURE__ */ p(((e) => {
}
if (n) e = t.contentWindow;
else break;
- t = Lr(e.document);
+ t = Rr(e.document);
}
return t;
}
- function Ur(e) {
+ function Wr(e) {
var t = e && e.nodeName && e.nodeName.toLowerCase();
return t && (t === "input" && (e.type === "text" || e.type === "search" || e.type === "tel" || e.type === "url" || e.type === "password") || t === "textarea" || e.contentEditable === "true");
}
- var Wr = Sn && "documentMode" in document && 11 >= document.documentMode, Gr = null, Kr = null, qr = null, Jr = !1;
- function Yr(e, t, n) {
+ var Gr = Cn && "documentMode" in document && 11 >= document.documentMode, Kr = null, qr = null, Jr = null, Yr = !1;
+ function Xr(e, t, n) {
var r = n.window === n ? n.document : n.nodeType === 9 ? n : n.ownerDocument;
- Jr || Gr == null || Gr !== Lr(r) || (r = Gr, "selectionStart" in r && Ur(r) ? r = {
+ Yr || Kr == null || Kr !== Rr(r) || (r = Kr, "selectionStart" in r && Wr(r) ? r = {
start: r.selectionStart,
end: r.selectionEnd
} : (r = (r.ownerDocument && r.ownerDocument.defaultView || window).getSelection(), r = {
@@ -9353,46 +9456,46 @@ var au = /* @__PURE__ */ p(((e) => {
anchorOffset: r.anchorOffset,
focusNode: r.focusNode,
focusOffset: r.focusOffset
- }), qr && Ir(qr, r) || (qr = r, r = qf(Kr, "onSelect"), 0 < r.length && (t = new Pn("onSelect", "select", null, t, n), e.push({
+ }), Jr && Lr(Jr, r) || (Jr = r, r = qf(qr, "onSelect"), 0 < r.length && (t = new Fn("onSelect", "select", null, t, n), e.push({
event: t,
listeners: r
- }), t.target = Gr)));
+ }), t.target = Kr)));
}
- function Xr(e, t) {
+ function Zr(e, t) {
var n = {};
return n[e.toLowerCase()] = t.toLowerCase(), n["Webkit" + e] = "webkit" + t, n["Moz" + e] = "moz" + t, n;
}
- var Zr = {
- animationend: Xr("Animation", "AnimationEnd"),
- animationiteration: Xr("Animation", "AnimationIteration"),
- animationstart: Xr("Animation", "AnimationStart"),
- transitionrun: Xr("Transition", "TransitionRun"),
- transitionstart: Xr("Transition", "TransitionStart"),
- transitioncancel: Xr("Transition", "TransitionCancel"),
- transitionend: Xr("Transition", "TransitionEnd")
- }, Qr = {}, $r = {};
- Sn && ($r = document.createElement("div").style, "AnimationEvent" in window || (delete Zr.animationend.animation, delete Zr.animationiteration.animation, delete Zr.animationstart.animation), "TransitionEvent" in window || delete Zr.transitionend.transition);
- function ei(e) {
- if (Qr[e]) return Qr[e];
- if (!Zr[e]) return e;
- var t = Zr[e], n;
- for (n in t) if (t.hasOwnProperty(n) && n in $r) return Qr[e] = t[n];
+ var Qr = {
+ animationend: Zr("Animation", "AnimationEnd"),
+ animationiteration: Zr("Animation", "AnimationIteration"),
+ animationstart: Zr("Animation", "AnimationStart"),
+ transitionrun: Zr("Transition", "TransitionRun"),
+ transitionstart: Zr("Transition", "TransitionStart"),
+ transitioncancel: Zr("Transition", "TransitionCancel"),
+ transitionend: Zr("Transition", "TransitionEnd")
+ }, $r = {}, ei = {};
+ Cn && (ei = document.createElement("div").style, "AnimationEvent" in window || (delete Qr.animationend.animation, delete Qr.animationiteration.animation, delete Qr.animationstart.animation), "TransitionEvent" in window || delete Qr.transitionend.transition);
+ function ti(e) {
+ if ($r[e]) return $r[e];
+ if (!Qr[e]) return e;
+ var t = Qr[e], n;
+ for (n in t) if (t.hasOwnProperty(n) && n in ei) return $r[e] = t[n];
return e;
}
- var ti = ei("animationend"), ni = ei("animationiteration"), ri = ei("animationstart"), ii = ei("transitionrun"), ai = ei("transitionstart"), oi = ei("transitioncancel"), si = ei("transitionend"), ci = /* @__PURE__ */ new Map(), li = "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(" ");
- li.push("scrollEnd");
- function ui(e, t) {
- ci.set(e, t), It(t, [e]);
+ var ni = ti("animationend"), ri = ti("animationiteration"), ii = ti("animationstart"), ai = ti("transitionrun"), oi = ti("transitionstart"), si = ti("transitioncancel"), ci = ti("transitionend"), li = /* @__PURE__ */ new Map(), ui = "abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");
+ ui.push("scrollEnd");
+ function di(e, t) {
+ li.set(e, t), Lt(t, [e]);
}
- var di = 0;
- function fi(e, t) {
+ var fi = 0;
+ function pi(e, t) {
if (e.name != null && e.name !== "auto") return e.name;
if (t.autoName !== null) return t.autoName;
- e = Q.identifierPrefix;
- var n = di++;
+ e = yd.identifierPrefix;
+ var n = fi++;
return e = "_" + e + "t_" + n.toString(32) + "_", t.autoName = e;
}
- function pi(e) {
+ function mi(e) {
if (e == null || typeof e == "string") return e;
var t = null, n = Ed;
if (n !== null) for (var r = 0; r < n.length; r++) {
@@ -9404,10 +9507,10 @@ var au = /* @__PURE__ */ p(((e) => {
}
return t ?? e.default;
}
- function mi(e, t) {
- return e = pi(e), t = pi(t), t == null ? e === "auto" ? null : e : t === "auto" ? null : t;
+ function hi(e, t) {
+ return e = mi(e), t = mi(t), t == null ? e === "auto" ? null : e : t === "auto" ? null : t;
}
- var hi = typeof reportError == "function" ? reportError : function(e) {
+ var gi = typeof reportError == "function" ? reportError : function(e) {
if (typeof window == "object" && typeof window.ErrorEvent == "function") {
var t = new window.ErrorEvent("error", {
bubbles: !0,
@@ -9421,62 +9524,62 @@ var au = /* @__PURE__ */ p(((e) => {
return;
}
console.error(e);
- }, gi = [], _i = 0, vi = 0;
- function yi() {
- for (var e = _i, t = vi = _i = 0; t < e;) {
- var n = gi[t];
- gi[t++] = null;
- var r = gi[t];
- gi[t++] = null;
- var i = gi[t];
- gi[t++] = null;
- var a = gi[t];
- if (gi[t++] = null, r !== null && i !== null) {
+ }, _i = [], vi = 0, yi = 0;
+ function bi() {
+ for (var e = vi, t = yi = vi = 0; t < e;) {
+ var n = _i[t];
+ _i[t++] = null;
+ var r = _i[t];
+ _i[t++] = null;
+ var i = _i[t];
+ _i[t++] = null;
+ var a = _i[t];
+ if (_i[t++] = null, r !== null && i !== null) {
var o = r.pending;
o === null ? i.next = i : (i.next = o.next, o.next = i), r.pending = i;
}
- a !== 0 && Ci(n, i, a);
+ a !== 0 && wi(n, i, a);
}
}
- function bi(e, t, n, r) {
- gi[_i++] = e, gi[_i++] = t, gi[_i++] = n, gi[_i++] = r, vi |= r, e.lanes |= r, e = e.alternate, e !== null && (e.lanes |= r);
- }
function xi(e, t, n, r) {
- return bi(e, t, n, r), wi(e);
+ _i[vi++] = e, _i[vi++] = t, _i[vi++] = n, _i[vi++] = r, yi |= r, e.lanes |= r, e = e.alternate, e !== null && (e.lanes |= r);
+ }
+ function Si(e, t, n, r) {
+ return xi(e, t, n, r), Ti(e);
}
- function Si(e, t) {
- return bi(e, null, null, t), wi(e);
+ function Ci(e, t) {
+ return xi(e, null, null, t), Ti(e);
}
- function Ci(e, t, n) {
+ function wi(e, t, n) {
e.lanes |= n;
var r = e.alternate;
r !== null && (r.lanes |= n);
for (var i = !1, a = e.return; a !== null;) a.childLanes |= n, r = a.alternate, r !== null && (r.childLanes |= n), a.tag === 22 && (e = a.stateNode, e === null || e._visibility & 1 || (i = !0)), e = a, a = a.return;
- return e.tag === 3 ? (a = e.stateNode, i && t !== null && (i = 31 - Ze(n), e = a.hiddenUpdates, r = e[i], r === null ? e[i] = [t] : r.push(t), t.lane = n | 536870912), a) : null;
+ return e.tag === 3 ? (a = e.stateNode, i && t !== null && (i = 31 - Qe(n), e = a.hiddenUpdates, r = e[i], r === null ? e[i] = [t] : r.push(t), t.lane = n | 536870912), a) : null;
}
- function wi(e) {
+ function Ti(e) {
if (50 < Dd) throw Dd = 0, Od = null, Error(i(185));
for (var t = e.return; t !== null;) e = t, t = e.return;
return e.tag === 3 ? e.stateNode : null;
}
- var Ti = {};
- function Ei(e, t, n, r) {
+ var Ei = {};
+ function Di(e, t, n, r) {
this.tag = e, this.key = n, this.sibling = this.child = this.return = this.stateNode = this.type = this.elementType = null, this.index = 0, this.refCleanup = this.ref = null, this.pendingProps = t, this.dependencies = this.memoizedState = this.updateQueue = this.memoizedProps = null, this.mode = r, this.subtreeFlags = this.flags = 0, this.deletions = null, this.childLanes = this.lanes = 0, this.alternate = null;
}
- function Di(e, t, n, r) {
- return new Ei(e, t, n, r);
+ function Oi(e, t, n, r) {
+ return new Di(e, t, n, r);
}
- function Oi(e) {
+ function ki(e) {
return e = e.prototype, !(!e || !e.isReactComponent);
}
- function ki(e, t) {
+ function Ai(e, t) {
var n = e.alternate;
- return n === null ? (n = Di(e.tag, t, e.key, e.mode), n.elementType = e.elementType, n.type = e.type, n.stateNode = e.stateNode, n.alternate = e, e.alternate = n) : (n.pendingProps = t, n.type = e.type, n.flags = 0, n.subtreeFlags = 0, n.deletions = null), n.flags = e.flags & 1206910976, n.childLanes = e.childLanes, n.lanes = e.lanes, n.child = e.child, n.memoizedProps = e.memoizedProps, n.memoizedState = e.memoizedState, n.updateQueue = e.updateQueue, t = e.dependencies, n.dependencies = t === null ? null : {
+ return n === null ? (n = Oi(e.tag, t, e.key, e.mode), n.elementType = e.elementType, n.type = e.type, n.stateNode = e.stateNode, n.alternate = e, e.alternate = n) : (n.pendingProps = t, n.type = e.type, n.flags = 0, n.subtreeFlags = 0, n.deletions = null), n.flags = e.flags & 1206910976, n.childLanes = e.childLanes, n.lanes = e.lanes, n.child = e.child, n.memoizedProps = e.memoizedProps, n.memoizedState = e.memoizedState, n.updateQueue = e.updateQueue, t = e.dependencies, n.dependencies = t === null ? null : {
lanes: t.lanes,
firstContext: t.firstContext
}, n.sibling = e.sibling, n.index = e.index, n.ref = e.ref, n.refCleanup = e.refCleanup, n;
}
- function Ai(e, t) {
+ function ji(e, t) {
e.flags &= 1206910978;
var n = e.alternate;
return n === null ? (e.childLanes = 0, e.lanes = t, e.child = null, e.subtreeFlags = 0, e.memoizedProps = null, e.memoizedState = null, e.updateQueue = null, e.dependencies = null, e.stateNode = null) : (e.childLanes = n.childLanes, e.lanes = n.lanes, e.child = n.child, e.subtreeFlags = 0, e.deletions = null, e.memoizedProps = n.memoizedProps, e.memoizedState = n.memoizedState, e.updateQueue = n.updateQueue, e.type = n.type, t = n.dependencies, e.dependencies = t === null ? null : {
@@ -9484,21 +9587,21 @@ var au = /* @__PURE__ */ p(((e) => {
firstContext: t.firstContext
}), e;
}
- function ji(e, t, n, r, a, o) {
+ function Mi(e, t, n, r, a, o) {
var s = 0;
- if (r = e, typeof r == "function") Oi(r) && (s = 1);
- else if (typeof r == "string") s = qm(e, n, ye.current) ? 26 : e === "html" || e === "head" || e === "body" ? 27 : 5;
+ if (r = e, typeof r == "function") ki(r) && (s = 1);
+ else if (typeof r == "string") s = qm(e, n, be.current) ? 26 : e === "html" || e === "head" || e === "body" ? 27 : 5;
else a: switch (r) {
- case re: return e = Di(31, n, t, a), e.elementType = re, e.lanes = o, e;
- case k: return Mi(n.children, a, o, t);
+ case ie: return e = Oi(31, n, t, a), e.elementType = ie, e.lanes = o, e;
+ case k: return Ni(n.children, a, o, t);
case A:
s = 8, a |= 24;
break;
- case j: return e = Di(12, n, t, a | 2), e.elementType = j, e.lanes = o, e;
- case te: return e = Di(13, n, t, a), e.elementType = te, e.lanes = o, e;
- case P: return e = Di(19, n, t, a), e.elementType = P, e.lanes = o, e;
- case ie:
- case oe: return e = a | 32, e = Di(30, n, t, e), e.elementType = oe, e.lanes = o, e.stateNode = {
+ case ee: return e = Oi(12, n, t, a | 2), e.elementType = ee, e.lanes = o, e;
+ case ne: return e = Oi(13, n, t, a), e.elementType = ne, e.lanes = o, e;
+ case N: return e = Oi(19, n, t, a), e.elementType = N, e.lanes = o, e;
+ case ae:
+ case se: return e = a | 32, e = Oi(30, n, t, e), e.elementType = se, e.lanes = o, e.stateNode = {
autoName: null,
paired: null,
clones: null,
@@ -9506,92 +9609,92 @@ var au = /* @__PURE__ */ p(((e) => {
}, e;
default:
if (typeof r == "object" && r) switch (r.$$typeof) {
- case N:
+ case te:
s = 10;
break a;
- case M:
+ case j:
s = 9;
break a;
- case ee:
+ case M:
s = 11;
break a;
- case ne:
+ case re:
s = 14;
break a;
- case F:
+ case P:
s = 16, r = null;
break a;
}
s = 29, n = Error(i(130, e === null ? "null" : typeof e, "")), r = null;
}
- return t = Di(s, n, t, a), t.elementType = e, t.type = r, t.lanes = o, t;
+ return t = Oi(s, n, t, a), t.elementType = e, t.type = r, t.lanes = o, t;
}
- function Mi(e, t, n, r) {
- return e = Di(7, e, r, t), e.lanes = n, e;
+ function Ni(e, t, n, r) {
+ return e = Oi(7, e, r, t), e.lanes = n, e;
}
- function Ni(e, t, n) {
- return e = Di(6, e, null, t), e.lanes = n, e;
+ function Pi(e, t, n) {
+ return e = Oi(6, e, null, t), e.lanes = n, e;
}
- function Pi(e) {
- var t = Di(18, null, null, 0);
+ function Fi(e) {
+ var t = Oi(18, null, null, 0);
return t.stateNode = e, t;
}
- function Fi(e, t, n) {
- return t = Di(4, e.children === null ? [] : e.children, e.key, t), t.lanes = n, t.stateNode = {
+ function Ii(e, t, n) {
+ return t = Oi(4, e.children === null ? [] : e.children, e.key, t), t.lanes = n, t.stateNode = {
containerInfo: e.containerInfo,
pendingChildren: null,
implementation: e.implementation
}, t;
}
- var Ii = /* @__PURE__ */ new WeakMap();
- function Li(e, t) {
+ var Li = /* @__PURE__ */ new WeakMap();
+ function Ri(e, t) {
if (typeof e == "object" && e) {
- var n = Ii.get(e);
+ var n = Li.get(e);
return n === void 0 ? (t = {
value: e,
source: t,
- stack: Ne(t)
- }, Ii.set(e, t), t) : n;
+ stack: Pe(t)
+ }, Li.set(e, t), t) : n;
}
return {
value: e,
source: t,
- stack: Ne(t)
+ stack: Pe(t)
};
}
- var Ri = [], zi = 0, Bi = null, Vi = 0, Hi = [], Ui = 0, Wi = null, Gi = 1, Ki = "";
- function qi(e, t) {
- Ri[zi++] = Vi, Ri[zi++] = Bi, Bi = e, Vi = t;
+ var zi = [], Bi = 0, Vi = null, Hi = 0, Ui = [], Wi = 0, Gi = null, Ki = 1, qi = "";
+ function Ji(e, t) {
+ zi[Bi++] = Hi, zi[Bi++] = Vi, Vi = e, Hi = t;
}
- function Ji(e, t, n) {
- Hi[Ui++] = Gi, Hi[Ui++] = Ki, Hi[Ui++] = Wi, Wi = e;
- var r = Gi;
- e = Ki;
- var i = 32 - Ze(r) - 1;
+ function Yi(e, t, n) {
+ Ui[Wi++] = Ki, Ui[Wi++] = qi, Ui[Wi++] = Gi, Gi = e;
+ var r = Ki;
+ e = qi;
+ var i = 32 - Qe(r) - 1;
r &= ~(1 << i), n += 1;
- var a = 32 - Ze(t) + i;
+ var a = 32 - Qe(t) + i;
if (30 < a) {
var o = i - i % 5;
- a = (r & (1 << o) - 1).toString(32), r >>= o, i -= o, Gi = 1 << 32 - Ze(t) + i | n << i | r, Ki = a + e;
- } else Gi = 1 << a | n << i | r, Ki = e;
- }
- function Yi(e) {
- e.return !== null && (qi(e, 1), Ji(e, 1, 0));
+ a = (r & (1 << o) - 1).toString(32), r >>= o, i -= o, Ki = 1 << 32 - Qe(t) + i | n << i | r, qi = a + e;
+ } else Ki = 1 << a | n << i | r, qi = e;
}
function Xi(e) {
- for (; e === Bi;) Bi = Ri[--zi], Ri[zi] = null, Vi = Ri[--zi], Ri[zi] = null;
- for (; e === Wi;) Wi = Hi[--Ui], Hi[Ui] = null, Ki = Hi[--Ui], Hi[Ui] = null, Gi = Hi[--Ui], Hi[Ui] = null;
+ e.return !== null && (Ji(e, 1), Yi(e, 1, 0));
+ }
+ function Zi(e) {
+ for (; e === Vi;) Vi = zi[--Bi], zi[Bi] = null, Hi = zi[--Bi], zi[Bi] = null;
+ for (; e === Gi;) Gi = Ui[--Wi], Ui[Wi] = null, qi = Ui[--Wi], Ui[Wi] = null, Ki = Ui[--Wi], Ui[Wi] = null;
}
- function Zi(e, t) {
- Hi[Ui++] = Gi, Hi[Ui++] = Ki, Hi[Ui++] = Wi, Gi = t.id, Ki = t.overflow, Wi = e;
+ function Qi(e, t) {
+ Ui[Wi++] = Ki, Ui[Wi++] = qi, Ui[Wi++] = Gi, Ki = t.id, qi = t.overflow, Gi = e;
}
- var Qi = null, $i = null, W = !1, ea = null, ta = !1, na = Error(i(519));
+ var U = null, $i = null, W = !1, ea = null, ta = !1, na = Error(i(519));
function ra(e) {
- throw la(Li(Error(i(418, 1 < arguments.length && arguments[1] !== void 0 && arguments[1] ? "text" : "HTML", "")), e)), na;
+ throw la(Ri(Error(i(418, 1 < arguments.length && arguments[1] !== void 0 && arguments[1] ? "text" : "HTML", "")), e)), na;
}
function ia(e) {
var t = e.stateNode, n = e.type, r = e.memoizedProps;
- switch (t[xt] = e, t[R] = r, n) {
+ switch (t[St] = e, t[Ct] = r, n) {
case "dialog":
$("cancel", t), $("close", t);
break;
@@ -9616,17 +9719,17 @@ var au = /* @__PURE__ */ p(((e) => {
$("toggle", t);
break;
case "input":
- $("invalid", t), $t(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), rn(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 = pn), t = !0) : t = !1, t || ra(e, !0);
+ n = r.children, typeof n != "string" && typeof n != "number" && typeof n != "bigint" || t.textContent === "" + n || !0 === r.suppressHydrationWarning || $f(t.textContent, n) ? (r.popover != null && ($("beforetoggle", t), $("toggle", t)), r.onScroll != null && $("scroll", t), r.onScrollEnd != null && $("scrollend", t), r.onClick != null && (t.onclick = mn), t = !0) : t = !1, t || ra(e, !0);
}
function aa(e) {
- for (Qi = e.return; Qi;) switch (Qi.tag) {
+ for (U = e.return; U;) switch (U.tag) {
case 5:
case 31:
case 13:
@@ -9636,11 +9739,11 @@ var au = /* @__PURE__ */ p(((e) => {
case 3:
ta = !0;
return;
- default: Qi = Qi.return;
+ default: U = U.return;
}
}
function oa(e) {
- if (e !== Qi) return !1;
+ if (e !== U) return !1;
if (!W) return aa(e), W = !0, !1;
var t = e.tag, n;
if ((n = t !== 3 && t !== 27) && ((n = t === 5) && (n = e.type, n = n === "form" || n === "button" || pp(e.type, e.memoizedProps)), n = !n), n && $i && ra(e), aa(e), t === 13) {
@@ -9649,25 +9752,25 @@ var au = /* @__PURE__ */ p(((e) => {
} else if (t === 31) {
if (e = e.memoizedState, e = e === null ? null : e.dehydrated, !e) throw Error(i(317));
$i = dm(e);
- } else t === 27 ? (t = $i, Sp(e.type) ? (e = um, um = null, $i = e) : $i = t) : $i = Qi ? lm(e.stateNode.nextSibling) : null;
+ } else t === 27 ? (t = $i, Sp(e.type) ? (e = um, um = null, $i = e) : $i = t) : $i = U ? lm(e.stateNode.nextSibling) : null;
return !0;
}
function sa() {
- $i = Qi = null, W = !1;
+ $i = U = null, W = !1;
}
function ca() {
var e = ea;
- return e !== null && (Z === null ? Z = e : Z.push.apply(Z, e), ea = null), e;
+ return e !== null && (fd === null ? fd = e : fd.push.apply(fd, e), ea = null), e;
}
function la(e) {
ea === null ? ea = [e] : ea.push(e);
}
- var ua = ge(null), da = null, fa = null;
+ var ua = _e(null), da = null, fa = null;
function pa(e, t, n) {
- ve(ua, t._currentValue), t._currentValue = n;
+ ye(ua, t._currentValue), t._currentValue = n;
}
function ma(e) {
- e._currentValue = ua.current, _e(ua);
+ e._currentValue = ua.current, ve(ua);
}
function ha(e, t, n) {
for (; e !== null;) {
@@ -9723,9 +9826,9 @@ var au = /* @__PURE__ */ p(((e) => {
if (s === null) throw Error(i(387));
if (s = s.memoizedProps, s !== null) {
var c = a.type;
- Fr(a.pendingProps.value, s.value) || (e === null ? e = [c] : e.push(c));
+ Ir(a.pendingProps.value, s.value) || (e === null ? e = [c] : e.push(c));
}
- } else if (a === Se.current) {
+ } else if (a === Ce.current) {
if (s = a.alternate, s === null) throw Error(i(387));
s.memoizedState.memoizedState !== a.memoizedState.memoizedState && (e === null ? e = [sh] : e.push(sh));
}
@@ -9735,7 +9838,7 @@ var au = /* @__PURE__ */ p(((e) => {
}
function va(e) {
for (e = e.firstContext; e !== null;) {
- if (!Fr(e.context._currentValue, e.memoizedValue)) return !0;
+ if (!Ir(e.context._currentValue, e.memoizedValue)) return !0;
e = e.next;
}
return !1;
@@ -9776,27 +9879,27 @@ var au = /* @__PURE__ */ p(((e) => {
return e();
});
};
- }, wa = t.unstable_scheduleCallback, Ta = t.unstable_NormalPriority, Ea = {
- $$typeof: N,
+ }, wa = t.unstable_scheduleCallback, Ta = t.unstable_NormalPriority, G = {
+ $$typeof: te,
Consumer: null,
Provider: null,
_currentValue: null,
_currentValue2: null,
_threadCount: 0
};
- function Da() {
+ function Ea() {
return {
controller: new Ca(),
data: /* @__PURE__ */ new Map(),
refCount: 0
};
}
- function Oa(e) {
+ function Da(e) {
e.refCount--, e.refCount === 0 && wa(Ta, function() {
e.controller.abort();
});
}
- function ka(e, t) {
+ function Oa(e, t) {
if (e.pendingLanes & 4194048) {
var n = e.transitionTypes;
for (n === null && (n = e.transitionTypes = []), e = 0; e < t.length; e++) {
@@ -9805,16 +9908,16 @@ var au = /* @__PURE__ */ p(((e) => {
}
}
}
- var Aa = null;
- function ja(e) {
+ var ka = null;
+ function Aa(e) {
var t = e.transitionTypes;
return e.transitionTypes = null, t;
}
- var Ma = null, Na = 0, Pa = 0, Fa = null;
- function Ia(e, t) {
- if (Ma === null) {
- var n = Ma = [];
- Na = 0, Pa = Nf(), Fa = {
+ var ja = null, Ma = 0, Na = 0, Pa = null;
+ function Fa(e, t) {
+ if (ja === null) {
+ var n = ja = [];
+ Ma = 0, Na = Nf(), Pa = {
status: "pending",
value: void 0,
then: function(e) {
@@ -9822,17 +9925,17 @@ var au = /* @__PURE__ */ p(((e) => {
}
};
}
- return Na++, t.then(La, La), t;
+ return Ma++, t.then(Ia, Ia), t;
}
- function La() {
- if (--Na === 0 && (Aa = null, Ma !== null)) {
- Fa !== null && (Fa.status = "fulfilled");
- var e = Ma;
- Ma = null, Pa = 0, Fa = null;
+ function Ia() {
+ if (--Ma === 0 && (ka = null, ja !== null)) {
+ Pa !== null && (Pa.status = "fulfilled");
+ var e = ja;
+ ja = null, Na = 0, Pa = null;
for (var t = 0; t < e.length; t++) (0, e[t])();
}
}
- function Ra(e, t) {
+ function La(e, t) {
var n = [], r = {
status: "pending",
value: null,
@@ -9848,48 +9951,48 @@ var au = /* @__PURE__ */ p(((e) => {
for (r.status = "rejected", r.reason = e, e = 0; e < n.length; e++) (0, n[e])(void 0);
}), r;
}
- var za = I.S;
- I.S = function(e, t) {
- if (md = ze(), typeof t == "object" && t && typeof t.then == "function" && Ia(e, t), Aa !== null) for (var n = yf; n !== null;) ka(n, Aa), n = n.next;
+ var Ra = F.S;
+ F.S = function(e, t) {
+ if (hd = Be(), typeof t == "object" && t && typeof t.then == "function" && Fa(e, t), ka !== null) for (var n = yf; n !== null;) Oa(n, ka), n = n.next;
if (n = e.types, n !== null) {
- for (var r = yf; r !== null;) ka(r, n), r = r.next;
- if (Pa !== 0) {
- r = Aa, r === null && (r = Aa = []);
+ for (var r = yf; r !== null;) Oa(r, n), r = r.next;
+ if (Na !== 0) {
+ r = ka, r === null && (r = ka = []);
for (var i = 0; i < n.length; i++) {
var a = n[i];
r.indexOf(a) === -1 && r.push(a);
}
}
}
- za !== null && za(e, t);
+ Ra !== null && Ra(e, t);
};
- var Ba = ge(null);
- function Va() {
- var e = Ba.current;
- return e === null ? ed.pooledCache : e;
+ var za = _e(null);
+ function Ba() {
+ var e = za.current;
+ return e === null ? $u.pooledCache : e;
}
- function Ha(e, t) {
- t === null ? ve(Ba, Ba.current) : ve(Ba, t.pool);
+ function Va(e, t) {
+ t === null ? ye(za, za.current) : ye(za, t.pool);
}
- function Ua() {
- var e = Va();
+ function Ha() {
+ var e = Ba();
return e === null ? null : {
- parent: Ea._currentValue,
+ parent: G._currentValue,
pool: e
};
}
- var Wa = Error(i(460)), Ga = Error(i(474)), Ka = Error(i(542)), qa = { then: function() {} };
- function Ja(e) {
+ var Ua = Error(i(460)), Wa = Error(i(474)), Ga = Error(i(542)), Ka = { then: function() {} };
+ function qa(e) {
return e = e.status, e === "fulfilled" || e === "rejected";
}
- function Ya(e, t, n) {
- switch (n = e[n], n === void 0 ? e.push(t) : n !== t && (t.then(pn, pn), t = n), t.status) {
+ function Ja(e, t, n) {
+ switch (n = e[n], n === void 0 ? e.push(t) : n !== t && (t.then(mn, mn), t = n), t.status) {
case "fulfilled": return t.value;
- case "rejected": throw e = t.reason, $a(e), e === void 0 && !("reason" in t) ? Error(i(600)) : e;
+ case "rejected": throw e = t.reason, Qa(e), e === void 0 && !("reason" in t) ? Error(i(600)) : e;
default:
- if (typeof t.status == "string") t.then(pn, pn);
+ if (typeof t.status == "string") t.then(mn, mn);
else {
- if (e = ed, e !== null && 100 < e.shellSuspendCounter) throw Error(i(482));
+ if (e = $u, 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;
@@ -9904,40 +10007,40 @@ var au = /* @__PURE__ */ p(((e) => {
}
switch (t.status) {
case "fulfilled": return t.value;
- case "rejected": throw e = t.reason, $a(e), e;
+ case "rejected": throw e = t.reason, Qa(e), e;
}
- throw Za = t, Wa;
+ throw Xa = t, Ua;
}
}
- function Xa(e) {
+ function Ya(e) {
try {
var t = e._init;
return t(e._payload);
} catch (e) {
- throw typeof e == "object" && e && typeof e.then == "function" ? (Za = e, Wa) : e;
+ throw typeof e == "object" && e && typeof e.then == "function" ? (Xa = e, Ua) : e;
}
}
- var Za = null;
- function Qa() {
- if (Za === null) throw Error(i(459));
- var e = Za;
- return Za = null, e;
+ var Xa = null;
+ function Za() {
+ if (Xa === null) throw Error(i(459));
+ var e = Xa;
+ return Xa = null, e;
}
- function $a(e) {
- if (e === Wa || e === Ka) throw Error(i(483));
+ function Qa(e) {
+ if (e === Ua || e === Ga) throw Error(i(483));
}
- var eo = null, to = 0;
- function no(e) {
- var t = to;
- return to += 1, eo === null && (eo = []), Ya(eo, e, t);
+ var $a = null, eo = 0;
+ function to(e) {
+ var t = eo;
+ return eo += 1, $a === null && ($a = []), Ja($a, e, t);
}
- function ro(e, t) {
+ function no(e, t) {
t = t.props.ref, e.ref = t === void 0 ? null : t;
}
- function io(e, t) {
+ function ro(e, t) {
throw t.$$typeof === E ? Error(i(525)) : (e = Object.prototype.toString.call(t), Error(i(31, e === "[object Object]" ? "object with keys {" + Object.keys(t).join(", ") + "}" : e)));
}
- function ao(e) {
+ function io(e) {
function t(t, n) {
if (e) {
var r = t.deletions;
@@ -9954,7 +10057,7 @@ var au = /* @__PURE__ */ p(((e) => {
return t;
}
function a(e, t) {
- return e = ki(e, t), e.index = 0, e.sibling = null, e;
+ return e = Ai(e, t), e.index = 0, e.sibling = null, e;
}
function o(t, n, r) {
return t.index = r, e ? (r = t.alternate, r === null ? (t.flags |= 134217730, n) : (r = r.index, r < n ? (t.flags |= 2, n) : r)) : (t.flags |= 1048576, n);
@@ -9963,30 +10066,30 @@ var au = /* @__PURE__ */ p(((e) => {
return e && t.alternate === null && (t.flags |= 134217730), t;
}
function c(e, t, n, r) {
- return t === null || t.tag !== 6 ? (t = Ni(n, e.mode, r), t.return = e, t) : (t = a(t, n), t.return = e, t);
+ return t === null || t.tag !== 6 ? (t = Pi(n, e.mode, r), t.return = e, t) : (t = a(t, n), t.return = e, t);
}
function l(e, t, n, r) {
var i = n.type;
- return i === k ? (e = d(e, t, n.props.children, r, n.key), ro(e, n), e) : t !== null && (t.elementType === i || typeof i == "object" && i && i.$$typeof === F && Xa(i) === t.type) ? (t = a(t, n.props), ro(t, n), t.return = e, t) : (t = ji(n.type, n.key, n.props, null, e.mode, r), ro(t, n), t.return = e, t);
+ return i === k ? (e = d(e, t, n.props.children, r, n.key), no(e, n), e) : t !== null && (t.elementType === i || typeof i == "object" && i && i.$$typeof === P && Ya(i) === t.type) ? (t = a(t, n.props), no(t, n), t.return = e, t) : (t = Mi(n.type, n.key, n.props, null, e.mode, r), no(t, n), t.return = e, t);
}
function u(e, t, n, r) {
- return t === null || t.tag !== 4 || t.stateNode.containerInfo !== n.containerInfo || t.stateNode.implementation !== n.implementation ? (t = Fi(n, e.mode, r), t.return = e, t) : (t = a(t, n.children || []), t.return = e, t);
+ return t === null || t.tag !== 4 || t.stateNode.containerInfo !== n.containerInfo || t.stateNode.implementation !== n.implementation ? (t = Ii(n, e.mode, r), t.return = e, t) : (t = a(t, n.children || []), t.return = e, t);
}
function d(e, t, n, r, i) {
- return t === null || t.tag !== 7 ? (t = Mi(n, e.mode, r, i), t.return = e, t) : (t = a(t, n), t.return = e, t);
+ return t === null || t.tag !== 7 ? (t = Ni(n, e.mode, r, i), t.return = e, t) : (t = a(t, n), t.return = e, t);
}
function f(e, t, n) {
- if (typeof t == "string" && t !== "" || typeof t == "number" || typeof t == "bigint") return t = Ni("" + t, e.mode, n), t.return = e, t;
+ if (typeof t == "string" && t !== "" || typeof t == "number" || typeof t == "bigint") return t = Pi("" + t, e.mode, n), t.return = e, t;
if (typeof t == "object" && t) {
switch (t.$$typeof) {
- case D: return n = ji(t.type, t.key, t.props, null, e.mode, n), ro(n, t), n.return = e, n;
- case O: return t = Fi(t, e.mode, n), t.return = e, t;
- case F: return t = Xa(t), f(e, t, n);
+ case D: return n = Mi(t.type, t.key, t.props, null, e.mode, n), no(n, t), n.return = e, n;
+ case O: return t = Ii(t, e.mode, n), t.return = e, t;
+ case P: return t = Ya(t), f(e, t, n);
}
- if (fe(t) || le(t)) return t = Mi(t, e.mode, n, null), t.return = e, t;
- if (typeof t.then == "function") return f(e, no(t), n);
- if (t.$$typeof === N) return f(e, xa(e, t), n);
- io(e, t);
+ if (pe(t) || ue(t)) return t = Ni(t, e.mode, n, null), t.return = e, t;
+ if (typeof t.then == "function") return f(e, to(t), n);
+ if (t.$$typeof === te) return f(e, xa(e, t), n);
+ ro(e, t);
}
return null;
}
@@ -9997,12 +10100,12 @@ var au = /* @__PURE__ */ p(((e) => {
switch (n.$$typeof) {
case D: return n.key === i ? l(e, t, n, r) : null;
case O: return n.key === i ? u(e, t, n, r) : null;
- case F: return n = Xa(n), p(e, t, n, r);
+ case P: return n = Ya(n), p(e, t, n, r);
}
- if (fe(n) || le(n)) return i === null ? d(e, t, n, r, null) : null;
- if (typeof n.then == "function") return p(e, t, no(n), r);
- if (n.$$typeof === N) return p(e, t, xa(e, n), r);
- io(e, n);
+ if (pe(n) || ue(n)) return i === null ? d(e, t, n, r, null) : null;
+ if (typeof n.then == "function") return p(e, t, to(n), r);
+ if (n.$$typeof === te) return p(e, t, xa(e, n), r);
+ ro(e, n);
}
return null;
}
@@ -10012,12 +10115,12 @@ var au = /* @__PURE__ */ p(((e) => {
switch (r.$$typeof) {
case D: return e = e.get(r.key === null ? n : r.key) || null, l(t, e, r, i);
case O: return e = e.get(r.key === null ? n : r.key) || null, u(t, e, r, i);
- case F: return r = Xa(r), m(e, t, n, r, i);
+ case P: return r = Ya(r), m(e, t, n, r, i);
}
- if (fe(r) || le(r)) return e = e.get(n) || null, d(t, e, r, i, null);
- if (typeof r.then == "function") return m(e, t, n, no(r), i);
- if (r.$$typeof === N) return m(e, t, n, xa(t, r), i);
- io(t, r);
+ if (pe(r) || ue(r)) return e = e.get(n) || null, d(t, e, r, i, null);
+ if (typeof r.then == "function") return m(e, t, n, to(r), i);
+ if (r.$$typeof === te) return m(e, t, n, xa(t, r), i);
+ ro(t, r);
}
return null;
}
@@ -10031,15 +10134,15 @@ var au = /* @__PURE__ */ p(((e) => {
}
e && d && _.alternate === null && t(i, d), a = o(_, a, h), u === null ? l = _ : u.sibling = _, u = _, d = g;
}
- if (h === s.length) return n(i, d), W && qi(i, h), l;
+ if (h === s.length) return n(i, d), W && Ji(i, h), l;
if (d === null) {
for (; h < s.length; h++) d = f(i, s[h], c), d !== null && (a = o(d, a, h), u === null ? l = d : u.sibling = d, u = d);
- return W && qi(i, h), l;
+ return W && Ji(i, h), l;
}
for (d = r(d); h < s.length; h++) g = m(d, i, h, s[h], c), g !== null && (e && (_ = g.alternate, _ !== null && d.delete(_.key === null ? h : _.key)), a = o(g, a, h), u === null ? l = g : u.sibling = g, u = g);
return e && d.forEach(function(e) {
return t(i, e);
- }), W && qi(i, h), l;
+ }), W && Ji(i, h), l;
}
function g(a, s, c, l) {
if (c == null) throw Error(i(151));
@@ -10052,15 +10155,15 @@ var au = /* @__PURE__ */ p(((e) => {
}
e && h && y.alternate === null && t(a, h), s = o(y, s, g), d === null ? u = y : d.sibling = y, d = y, h = _;
}
- if (v.done) return n(a, h), W && qi(a, g), u;
+ if (v.done) return n(a, h), W && Ji(a, g), u;
if (h === null) {
for (; !v.done; g++, v = c.next()) v = f(a, v.value, l), v !== null && (s = o(v, s, g), d === null ? u = v : d.sibling = v, d = v);
- return W && qi(a, g), u;
+ return W && Ji(a, g), u;
}
for (h = r(h); !v.done; g++, v = c.next()) v = m(h, a, g, v.value, l), v !== null && (e && (_ = v.alternate, _ !== null && h.delete(_.key === null ? g : _.key)), s = o(v, s, g), d === null ? u = v : d.sibling = v, d = v);
return e && h.forEach(function(e) {
return t(a, e);
- }), W && qi(a, g), u;
+ }), W && Ji(a, g), u;
}
function _(e, r, o, c) {
if (typeof o == "object" && o && o.type === k && o.key === null && o.props.ref === void 0 && (o = o.props.children), typeof o == "object" && o) {
@@ -10071,11 +10174,11 @@ var au = /* @__PURE__ */ p(((e) => {
if (r.key === l) {
if (l = o.type, l === k) {
if (r.tag === 7) {
- n(e, r.sibling), c = a(r, o.props.children), ro(c, o), c.return = e, e = c;
+ n(e, r.sibling), c = a(r, o.props.children), no(c, o), c.return = e, e = c;
break a;
}
- } else if (r.elementType === l || typeof l == "object" && l && l.$$typeof === F && Xa(l) === r.type) {
- n(e, r.sibling), c = a(r, o.props), ro(c, o), c.return = e, e = c;
+ } else if (r.elementType === l || typeof l == "object" && l && l.$$typeof === P && Ya(l) === r.type) {
+ n(e, r.sibling), c = a(r, o.props), no(c, o), c.return = e, e = c;
break a;
}
n(e, r);
@@ -10083,7 +10186,7 @@ var au = /* @__PURE__ */ p(((e) => {
}
t(e, r), r = r.sibling;
}
- o.type === k ? (c = Mi(o.props.children, e.mode, c, o.key), ro(c, o), c.return = e, e = c) : (c = ji(o.type, o.key, o.props, null, e.mode, c), ro(c, o), c.return = e, e = c);
+ o.type === k ? (c = Ni(o.props.children, e.mode, c, o.key), no(c, o), c.return = e, e = c) : (c = Mi(o.type, o.key, o.props, null, e.mode, c), no(c, o), c.return = e, e = c);
}
return s(e);
case O:
@@ -10099,36 +10202,36 @@ var au = /* @__PURE__ */ p(((e) => {
}
t(e, r), r = r.sibling;
}
- c = Fi(o, e.mode, c), c.return = e, e = c;
+ c = Ii(o, e.mode, c), c.return = e, e = c;
}
return s(e);
- case F: return o = Xa(o), _(e, r, o, c);
+ case P: return o = Ya(o), _(e, r, o, c);
}
- if (fe(o)) return h(e, r, o, c);
- if (le(o)) {
- if (l = le(o), typeof l != "function") throw Error(i(150));
+ if (pe(o)) return h(e, r, o, c);
+ if (ue(o)) {
+ if (l = ue(o), typeof l != "function") throw Error(i(150));
return o = l.call(o), g(e, r, o, c);
}
- if (typeof o.then == "function") return _(e, r, no(o), c);
- if (o.$$typeof === N) return _(e, r, xa(e, o), c);
- io(e, o);
+ if (typeof o.then == "function") return _(e, r, to(o), c);
+ if (o.$$typeof === te) return _(e, r, xa(e, o), c);
+ ro(e, o);
}
- return typeof o == "string" && o !== "" || typeof o == "number" || typeof o == "bigint" ? (o = "" + o, r !== null && r.tag === 6 ? (n(e, r.sibling), c = a(r, o), c.return = e, e = c) : (n(e, r), c = Ni(o, e.mode, c), c.return = e, e = c), s(e)) : n(e, r);
+ return typeof o == "string" && o !== "" || typeof o == "number" || typeof o == "bigint" ? (o = "" + o, r !== null && r.tag === 6 ? (n(e, r.sibling), c = a(r, o), c.return = e, e = c) : (n(e, r), c = Pi(o, e.mode, c), c.return = e, e = c), s(e)) : n(e, r);
}
return function(e, t, n, r) {
try {
- to = 0;
+ eo = 0;
var i = _(e, t, n, r);
- return eo = null, i;
+ return $a = null, i;
} catch (t) {
- if (t === Wa || t === Ka) throw t;
- var a = Di(29, t, null, e.mode);
+ if (t === Ua || t === Ga) throw t;
+ var a = Oi(29, t, null, e.mode);
return a.lanes = r, a.return = e, a;
}
};
}
- var oo = ao(!0), so = ao(!1), co = !1;
- function lo(e) {
+ var ao = io(!0), oo = io(!1), so = !1;
+ function co(e) {
e.updateQueue = {
baseState: e.memoizedState,
firstBaseUpdate: null,
@@ -10141,7 +10244,7 @@ var au = /* @__PURE__ */ p(((e) => {
callbacks: null
};
}
- function uo(e, t) {
+ function lo(e, t) {
e = e.updateQueue, t.updateQueue === e && (t.updateQueue = {
baseState: e.baseState,
firstBaseUpdate: e.firstBaseUpdate,
@@ -10150,7 +10253,7 @@ var au = /* @__PURE__ */ p(((e) => {
callbacks: null
});
}
- function fo(e) {
+ function uo(e) {
return {
lane: e,
tag: 0,
@@ -10159,22 +10262,22 @@ var au = /* @__PURE__ */ p(((e) => {
next: null
};
}
- function po(e, t, n) {
+ function fo(e, t, n) {
var r = e.updateQueue;
if (r === null) return null;
- if (r = r.shared, $u & 2) {
+ if (r = r.shared, q & 2) {
var i = r.pending;
- return i === null ? t.next = t : (t.next = i.next, i.next = t), r.pending = t, t = wi(e), Ci(e, null, n), t;
+ return i === null ? t.next = t : (t.next = i.next, i.next = t), r.pending = t, t = Ti(e), wi(e, null, n), t;
}
- return bi(e, r, t, n), wi(e);
+ return xi(e, r, t, n), Ti(e);
}
- function mo(e, t, n) {
+ function po(e, t, n) {
if (t = t.updateQueue, t !== null && (t = t.shared, n & 4194048)) {
var r = t.lanes;
- r &= e.pendingLanes, n |= r, t.lanes = n, mt(e, n);
+ r &= e.pendingLanes, n |= r, t.lanes = n, ht(e, n);
}
}
- function ho(e, t) {
+ function mo(e, t) {
var n = e.updateQueue, r = e.alternate;
if (r !== null && (r = r.updateQueue, n === r)) {
var i = null, a = null;
@@ -10202,17 +10305,17 @@ var au = /* @__PURE__ */ p(((e) => {
}
e = n.lastBaseUpdate, e === null ? n.firstBaseUpdate = t : e.next = t, n.lastBaseUpdate = t;
}
- var go = !1;
- function _o() {
- if (go) {
- var e = Fa;
+ var ho = !1;
+ function go() {
+ if (ho) {
+ var e = Pa;
if (e !== null) throw e;
}
}
- function vo(e, t, n, r) {
- go = !1;
+ function _o(e, t, n, r) {
+ ho = !1;
var i = e.updateQueue;
- co = !1;
+ so = !1;
var a = i.firstBaseUpdate, o = i.lastBaseUpdate, s = i.shared.pending;
if (s !== null) {
i.shared.pending = null;
@@ -10226,8 +10329,8 @@ var au = /* @__PURE__ */ p(((e) => {
o = 0, u = l = c = null, s = a;
do {
var f = s.lane & -536870913, p = f !== s.lane;
- if (p ? (J & f) === f : (r & f) === f) {
- f !== 0 && f === Pa && (go = !0), u !== null && (u = u.next = {
+ if (p ? (Y & f) === f : (r & f) === f) {
+ f !== 0 && f === Na && (ho = !0), u !== null && (u = u.next = {
lane: 0,
tag: s.tag,
payload: s.payload,
@@ -10251,7 +10354,7 @@ var au = /* @__PURE__ */ p(((e) => {
if (m = h.payload, f = typeof m == "function" ? m.call(g, d, f) : m, f == null) break a;
d = T({}, d, f);
break a;
- case 2: co = !0;
+ case 2: so = !0;
}
}
f = s.callback, f !== null && (e.flags |= 64, p && (e.flags |= 8192), p = i.callbacks, p === null ? i.callbacks = [f] : p.push(f));
@@ -10270,49 +10373,49 @@ var au = /* @__PURE__ */ p(((e) => {
u === null && (c = d), i.baseState = c, i.firstBaseUpdate = l, i.lastBaseUpdate = u, a === null && (i.shared.lanes = 0), od |= o, e.lanes = o, e.memoizedState = d;
}
}
- function yo(e, t) {
+ function vo(e, t) {
if (typeof e != "function") throw Error(i(191, e));
e.call(t);
}
- function bo(e, t) {
+ function yo(e, t) {
var n = e.callbacks;
- if (n !== null) for (e.callbacks = null, e = 0; e < n.length; e++) yo(n[e], t);
+ if (n !== null) for (e.callbacks = null, e = 0; e < n.length; e++) vo(n[e], t);
+ }
+ var bo = _e(null), xo = _e(0);
+ function So(e, t) {
+ e = X, ye(xo, e), ye(bo, t), X = e | t.baseLanes;
}
- var xo = ge(null), So = ge(0);
- function Co(e, t) {
- e = id, ve(So, e), ve(xo, t), id = e | t.baseLanes;
+ function Co() {
+ ye(xo, X), ye(bo, bo.current);
}
function wo() {
- ve(So, id), ve(xo, xo.current);
+ X = xo.current, ve(bo), ve(xo);
}
- function To() {
- id = So.current, _e(xo), _e(So);
+ var To = _e(null), Eo = null;
+ function Do(e) {
+ var t = e.alternate;
+ ye(Mo, Mo.current & 1), ye(To, e), Eo === null && (t === null || bo.current !== null || t.memoizedState !== null) && (Eo = e);
}
- var Eo = ge(null), Do = null;
function Oo(e) {
- var t = e.alternate;
- ve(No, No.current & 1), ve(Eo, e), Do === null && (t === null || xo.current !== null || t.memoizedState !== null) && (Do = e);
+ ye(Mo, Mo.current), ye(To, e), Eo === null && (Eo = e);
}
function ko(e) {
- ve(No, No.current), ve(Eo, e), Do === null && (Do = e);
+ e.tag === 22 ? (ye(Mo, Mo.current), ye(To, e), Eo === null && (Eo = e)) : Ao();
}
- function Ao(e) {
- e.tag === 22 ? (ve(No, No.current), ve(Eo, e), Do === null && (Do = e)) : jo();
+ function Ao() {
+ ye(Mo, Mo.current), ye(To, To.current);
}
- function jo() {
- ve(No, No.current), ve(Eo, Eo.current);
+ function jo(e) {
+ ve(To), Eo === e && (Eo = null), ve(Mo);
}
- function Mo(e) {
- _e(Eo), Do === e && (Do = null), _e(No);
+ var Mo = _e(0);
+ function No(e, t) {
+ ye(To, To.current), ye(Mo, t);
}
- var No = ge(0);
- function Po(e, t) {
- ve(Eo, Eo.current), ve(No, t);
+ function Po(e) {
+ ve(Mo), ve(To), Eo === e && (Eo = null);
}
function Fo(e) {
- _e(No), _e(Eo), Do === e && (Do = null);
- }
- function Io(e) {
for (var t = e; t !== null;) {
if (t.tag === 13) {
var n = t.memoizedState;
@@ -10332,59 +10435,59 @@ var au = /* @__PURE__ */ p(((e) => {
}
return null;
}
- var Lo = 0, G = null, Ro = null, zo = null, Bo = !1, Vo = !1, Ho = !1, Uo = 0, Wo = 0, Go = null, Ko = 0;
- function qo() {
+ var Io = 0, K = null, Lo = null, Ro = null, zo = !1, Bo = !1, Vo = !1, Ho = 0, Uo = 0, Wo = null, Go = 0;
+ function Ko() {
throw Error(i(321));
}
- function Jo(e, t) {
+ function qo(e, t) {
if (t === null) return !1;
- for (var n = 0; n < t.length && n < e.length; n++) if (!Fr(e[n], t[n])) return !1;
+ for (var n = 0; n < t.length && n < e.length; n++) if (!Ir(e[n], t[n])) return !1;
return !0;
}
- function Yo(e, t, n, r, i, a) {
- return Lo = a, G = t, t.memoizedState = null, t.updateQueue = null, t.lanes = 0, I.H = e === null || e.memoizedState === null ? fc : pc, Ho = !1, a = n(r, i), Ho = !1, Vo && (a = Zo(t, n, r, i)), Xo(e), a;
+ function Jo(e, t, n, r, i, a) {
+ return Io = a, K = t, t.memoizedState = null, t.updateQueue = null, t.lanes = 0, F.H = e === null || e.memoizedState === null ? dc : fc, Vo = !1, a = n(r, i), Vo = !1, Bo && (a = Xo(t, n, r, i)), Yo(e), a;
}
- function Xo(e) {
- I.H = dc;
- var t = Ro !== null && Ro.next !== null;
- if (Lo = 0, zo = Ro = G = null, Bo = !1, Wo = 0, Go = null, t) throw Error(i(300));
- e === null || Ac || (e = e.dependencies, e !== null && va(e) && (Ac = !0));
+ function Yo(e) {
+ F.H = uc;
+ var t = Lo !== null && Lo.next !== null;
+ if (Io = 0, Ro = Lo = K = null, zo = !1, Uo = 0, Wo = null, t) throw Error(i(300));
+ e === null || kc || (e = e.dependencies, e !== null && va(e) && (kc = !0));
}
- function Zo(e, t, n, r) {
- G = e;
+ function Xo(e, t, n, r) {
+ K = e;
var a = 0;
do {
- if (Vo && (Go = null), Wo = 0, Vo = !1, 25 <= a) throw Error(i(301));
- if (a += 1, zo = Ro = null, e.updateQueue != null) {
+ if (Bo && (Wo = null), Uo = 0, Bo = !1, 25 <= a) throw Error(i(301));
+ if (a += 1, Ro = Lo = null, e.updateQueue != null) {
var o = e.updateQueue;
o.lastEffect = null, o.events = null, o.stores = null, o.memoCache != null && (o.memoCache.index = 0);
}
- I.H = mc, o = t(n, r);
- } while (Vo);
+ F.H = pc, o = t(n, r);
+ } while (Bo);
return o;
}
- function Qo() {
- var e = I.H, t = e.useState()[0];
- return t = typeof t.then == "function" ? as(t) : t, e = e.useState()[0], (Ro === null ? null : Ro.memoizedState) !== e && (G.flags |= 1024), t;
+ function Zo() {
+ var e = F.H, t = e.useState()[0];
+ return t = typeof t.then == "function" ? is(t) : t, e = e.useState()[0], (Lo === null ? null : Lo.memoizedState) !== e && (K.flags |= 1024), t;
}
- function $o() {
- var e = Uo !== 0;
- return Uo = 0, e;
+ function Qo() {
+ var e = Ho !== 0;
+ return Ho = 0, e;
}
- function es(e, t, n) {
+ function $o(e, t, n) {
t.updateQueue = e.updateQueue, t.flags &= -2053, e.lanes &= ~n;
}
- function ts(e) {
- if (Bo) {
+ function es(e) {
+ if (zo) {
for (e = e.memoizedState; e !== null;) {
var t = e.queue;
t !== null && (t.pending = null), e = e.next;
}
- Bo = !1;
+ zo = !1;
}
- Lo = 0, zo = Ro = G = null, Vo = !1, Wo = Uo = 0, Go = null;
+ Io = 0, Ro = Lo = K = null, Bo = !1, Uo = Ho = 0, Wo = null;
}
- function ns() {
+ function ts() {
var e = {
memoizedState: null,
baseState: null,
@@ -10392,28 +10495,28 @@ var au = /* @__PURE__ */ p(((e) => {
queue: null,
next: null
};
- return zo === null ? G.memoizedState = zo = e : zo = zo.next = e, zo;
+ return Ro === null ? K.memoizedState = Ro = e : Ro = Ro.next = e, Ro;
}
- function rs() {
- if (Ro === null) {
- var e = G.alternate;
+ function ns() {
+ if (Lo === null) {
+ var e = K.alternate;
e = e === null ? null : e.memoizedState;
- } else e = Ro.next;
- var t = zo === null ? G.memoizedState : zo.next;
- if (t !== null) zo = t, Ro = e;
+ } else e = Lo.next;
+ var t = Ro === null ? K.memoizedState : Ro.next;
+ if (t !== null) Ro = t, Lo = e;
else {
- if (e === null) throw G.alternate === null ? Error(i(467)) : Error(i(310));
- Ro = e, e = {
- memoizedState: Ro.memoizedState,
- baseState: Ro.baseState,
- baseQueue: Ro.baseQueue,
- queue: Ro.queue,
+ if (e === null) throw K.alternate === null ? Error(i(467)) : Error(i(310));
+ Lo = e, e = {
+ memoizedState: Lo.memoizedState,
+ baseState: Lo.baseState,
+ baseQueue: Lo.baseQueue,
+ queue: Lo.queue,
next: null
- }, zo === null ? G.memoizedState = zo = e : zo = zo.next = e;
+ }, Ro === null ? K.memoizedState = Ro = e : Ro = Ro.next = e;
}
- return zo;
+ return Ro;
}
- function is() {
+ function rs() {
return {
lastEffect: null,
events: null,
@@ -10421,22 +10524,22 @@ var au = /* @__PURE__ */ p(((e) => {
memoCache: null
};
}
- function as(e) {
- var t = Wo;
- return Wo += 1, Go === null && (Go = []), e = Ya(Go, e, t), t = G, (zo === null ? t.memoizedState : zo.next) === null && (t = t.alternate, I.H = t === null || t.memoizedState === null ? fc : pc), e;
+ function is(e) {
+ var t = Uo;
+ return Uo += 1, Wo === null && (Wo = []), e = Ja(Wo, e, t), t = K, (Ro === null ? t.memoizedState : Ro.next) === null && (t = t.alternate, F.H = t === null || t.memoizedState === null ? dc : fc), e;
}
- function os(e) {
+ function as(e) {
if (typeof e == "object" && e) {
- if (typeof e.then == "function") return as(e);
- if (e.$$typeof === se) return;
- if (e.$$typeof === N) return ba(e);
+ if (typeof e.then == "function") return is(e);
+ if (e.$$typeof === ce) return;
+ if (e.$$typeof === te) return ba(e);
}
throw Error(i(438, String(e)));
}
- function ss(e) {
- var t = null, n = G.updateQueue;
+ function os(e) {
+ var t = null, n = K.updateQueue;
if (n !== null && (t = n.memoCache), t == null) {
- var r = G.alternate;
+ var r = K.alternate;
r !== null && (r = r.updateQueue, r !== null && (r = r.memoCache, r != null && (t = {
data: r.data.map(function(e) {
return e.slice();
@@ -10447,16 +10550,16 @@ var au = /* @__PURE__ */ p(((e) => {
if (t ??= {
data: [],
index: 0
- }, n === null && (n = is(), G.updateQueue = n), n.memoCache = t, n = t.data[t.index], n === void 0) for (n = t.data[t.index] = Array(e), r = 0; r < e; r++) n[r] = ae;
+ }, n === null && (n = rs(), K.updateQueue = n), n.memoCache = t, n = t.data[t.index], n === void 0) for (n = t.data[t.index] = Array(e), r = 0; r < e; r++) n[r] = oe;
return t.index++, n;
}
- function cs(e, t) {
+ function ss(e, t) {
return typeof t == "function" ? t(e) : t;
}
- function ls(e) {
- return us(rs(), Ro, e);
+ function cs(e) {
+ return ls(ns(), Lo, e);
}
- function us(e, t, n) {
+ function ls(e, t, n) {
var r = e.queue;
if (r === null) throw Error(i(311));
r.lastRenderedReducer = n;
@@ -10474,7 +10577,7 @@ var au = /* @__PURE__ */ p(((e) => {
var c = s = null, l = null, u = t, d = !1;
do {
var f = u.lane & -536870913;
- if (f === u.lane ? (Lo & f) === f : (J & f) === f) {
+ if (f === u.lane ? (Io & f) === f : (Y & f) === f) {
var p = u.revertLane;
if (p === 0) l !== null && (l = l.next = {
lane: 0,
@@ -10484,9 +10587,9 @@ var au = /* @__PURE__ */ p(((e) => {
hasEagerState: u.hasEagerState,
eagerState: u.eagerState,
next: null
- }), f === Pa && (d = !0);
- else if ((Lo & p) === p) {
- u = u.next, p === Pa && (d = !0);
+ }), f === Na && (d = !0);
+ else if ((Io & p) === p) {
+ u = u.next, p === Na && (d = !0);
continue;
} else f = {
lane: 0,
@@ -10496,8 +10599,8 @@ var au = /* @__PURE__ */ p(((e) => {
hasEagerState: u.hasEagerState,
eagerState: u.eagerState,
next: null
- }, l === null ? (c = l = f, s = o) : l = l.next = f, G.lanes |= p, od |= p;
- f = u.action, Ho && n(o, f), o = u.hasEagerState ? u.eagerState : n(o, f);
+ }, l === null ? (c = l = f, s = o) : l = l.next = f, K.lanes |= p, od |= p;
+ f = u.action, Vo && n(o, f), o = u.hasEagerState ? u.eagerState : n(o, f);
} else p = {
lane: f,
revertLane: u.revertLane,
@@ -10506,16 +10609,16 @@ var au = /* @__PURE__ */ p(((e) => {
hasEagerState: u.hasEagerState,
eagerState: u.eagerState,
next: null
- }, l === null ? (c = l = p, s = o) : l = l.next = p, G.lanes |= f, od |= f;
+ }, l === null ? (c = l = p, s = o) : l = l.next = p, K.lanes |= f, od |= f;
u = u.next;
} while (u !== null && u !== t);
- if (l === null ? s = o : l.next = c, !Fr(o, e.memoizedState) && (Ac = !0, d && (n = Fa, n !== null))) throw n;
+ if (l === null ? s = o : l.next = c, !Ir(o, e.memoizedState) && (kc = !0, d && (n = Pa, n !== null))) throw n;
e.memoizedState = o, e.baseState = s, e.baseQueue = l, r.lastRenderedState = o;
}
return a === null && (r.lanes = 0), [e.memoizedState, r.dispatch];
}
- function ds(e) {
- var t = rs(), n = t.queue;
+ function us(e) {
+ var t = ns(), n = t.queue;
if (n === null) throw Error(i(311));
n.lastRenderedReducer = e;
var r = n.dispatch, a = n.pending, o = t.memoizedState;
@@ -10525,61 +10628,61 @@ var au = /* @__PURE__ */ p(((e) => {
do
o = e(o, s.action), s = s.next;
while (s !== a);
- Fr(o, t.memoizedState) || (Ac = !0), t.memoizedState = o, t.baseQueue === null && (t.baseState = o), n.lastRenderedState = o;
+ Ir(o, t.memoizedState) || (kc = !0), t.memoizedState = o, t.baseQueue === null && (t.baseState = o), n.lastRenderedState = o;
}
return [o, r];
}
- function fs(e, t, n) {
- var r = G, a = rs(), o = W;
+ function ds(e, t, n) {
+ var r = K, a = ns(), o = W;
if (o) {
if (n === void 0) throw Error(i(407));
n = n();
} else n = t();
- var s = !Fr((Ro || a).memoizedState, n);
- if (s && (a.memoizedState = n, Ac = !0), a = a.queue, Ls(hs.bind(null, r, a, e), [e]), e = a.getSnapshot !== t || s || zo !== null && !!(zo.memoizedState.tag & 1), Ms(e ? 9 : 8, { destroy: void 0 }, ms.bind(null, r, a, n, t), null), e) {
- if (r.flags |= 2048, ed === null) throw Error(i(349));
- o || Lo & 127 || ps(r, t, n);
+ var s = !Ir((Lo || a).memoizedState, n);
+ if (s && (a.memoizedState = n, kc = !0), a = a.queue, Is(ms.bind(null, r, a, e), [e]), e = a.getSnapshot !== t || s || Ro !== null && !!(Ro.memoizedState.tag & 1), js(e ? 9 : 8, { destroy: void 0 }, ps.bind(null, r, a, n, t), null), e) {
+ if (r.flags |= 2048, $u === null) throw Error(i(349));
+ o || Io & 127 || fs(r, t, n);
}
return n;
}
- function ps(e, t, n) {
+ function fs(e, t, n) {
e.flags |= 16384, e = {
getSnapshot: t,
value: n
- }, t = G.updateQueue, t === null ? (t = is(), G.updateQueue = t, t.stores = [e]) : (n = t.stores, n === null ? t.stores = [e] : n.push(e));
+ }, t = K.updateQueue, t === null ? (t = rs(), K.updateQueue = t, t.stores = [e]) : (n = t.stores, n === null ? t.stores = [e] : n.push(e));
}
- function ms(e, t, n, r) {
- t.value = n, t.getSnapshot = r, gs(t) && _s(e);
+ function ps(e, t, n, r) {
+ t.value = n, t.getSnapshot = r, hs(t) && gs(e);
}
- function hs(e, t, n) {
+ function ms(e, t, n) {
return n(function() {
- gs(t) && _s(e);
+ hs(t) && gs(e);
});
}
- function gs(e) {
+ function hs(e) {
var t = e.getSnapshot;
e = e.value;
try {
var n = t();
- return !Fr(e, n);
+ return !Ir(e, n);
} catch {
return !0;
}
}
- function _s(e) {
- var t = Si(e, 2);
+ function gs(e) {
+ var t = Ci(e, 2);
t !== null && Md(t, e, 2);
}
- function vs(e) {
- var t = ns();
+ function _s(e) {
+ var t = ts();
if (typeof e == "function") {
var n = e;
- if (e = n(), Ho) {
- Xe(!0);
+ if (e = n(), Vo) {
+ Ze(!0);
try {
n();
} finally {
- Xe(!1);
+ Ze(!1);
}
}
}
@@ -10587,15 +10690,15 @@ var au = /* @__PURE__ */ p(((e) => {
pending: null,
lanes: 0,
dispatch: null,
- lastRenderedReducer: cs,
+ lastRenderedReducer: ss,
lastRenderedState: e
}, t;
}
- function ys(e, t, n, r) {
- return e.baseState = n, us(e, Ro, typeof r == "function" ? r : cs);
+ function vs(e, t, n, r) {
+ return e.baseState = n, ls(e, Lo, typeof r == "function" ? r : ss);
}
- function bs(e, t, n, r, a) {
- if (cc(e)) throw Error(i(485));
+ function ys(e, t, n, r, a) {
+ if (sc(e)) throw Error(i(485));
if (e = t.action, e !== null) {
var o = {
payload: a,
@@ -10610,61 +10713,61 @@ var au = /* @__PURE__ */ p(((e) => {
o.listeners.push(e);
}
};
- I.T === null ? o.isTransition = !1 : n(!0), r(o), n = t.pending, n === null ? (o.next = t.pending = o, xs(t, o)) : (o.next = n.next, t.pending = n.next = o);
+ F.T === null ? o.isTransition = !1 : n(!0), r(o), n = t.pending, n === null ? (o.next = t.pending = o, bs(t, o)) : (o.next = n.next, t.pending = n.next = o);
}
}
- function xs(e, t) {
+ function bs(e, t) {
var n = t.action, r = t.payload, i = e.state;
if (t.isTransition) {
- var a = I.T, o = {};
- o.types = a === null ? null : a.types, I.T = o;
+ var a = F.T, o = {};
+ o.types = a === null ? null : a.types, F.T = o;
try {
- var s = n(i, r), c = I.S;
- c !== null && c(o, s), Ss(e, t, s);
+ var s = n(i, r), c = F.S;
+ c !== null && c(o, s), xs(e, t, s);
} catch (n) {
- ws(e, t, n);
+ Cs(e, t, n);
} finally {
- a !== null && o.types !== null && (a.types = o.types), I.T = a;
+ a !== null && o.types !== null && (a.types = o.types), F.T = a;
}
} else try {
- a = n(i, r), Ss(e, t, a);
+ a = n(i, r), xs(e, t, a);
} catch (n) {
- ws(e, t, n);
+ Cs(e, t, n);
}
}
- function Ss(e, t, n) {
+ function xs(e, t, n) {
typeof n == "object" && n && typeof n.then == "function" ? n.then(function(n) {
- Cs(e, t, n);
+ Ss(e, t, n);
}, function(n) {
- return ws(e, t, n);
- }) : Cs(e, t, n);
+ return Cs(e, t, n);
+ }) : Ss(e, t, n);
}
- function Cs(e, t, n) {
- t.status = "fulfilled", t.value = n, Ts(t), e.state = n, t = e.pending, t !== null && (n = t.next, n === t ? e.pending = null : (n = n.next, t.next = n, xs(e, n)));
+ function Ss(e, t, n) {
+ t.status = "fulfilled", t.value = n, ws(t), e.state = n, t = e.pending, t !== null && (n = t.next, n === t ? e.pending = null : (n = n.next, t.next = n, bs(e, n)));
}
- function ws(e, t, n) {
+ function Cs(e, t, n) {
var r = e.pending;
if (e.pending = null, r !== null) {
r = r.next;
do
- t.status = "rejected", t.reason = n, Ts(t), t = t.next;
+ t.status = "rejected", t.reason = n, ws(t), t = t.next;
while (t !== r);
}
e.action = null;
}
- function Ts(e) {
+ function ws(e) {
e = e.listeners;
for (var t = 0; t < e.length; t++) (0, e[t])();
}
- function Es(e, t) {
+ function Ts(e, t) {
return t;
}
- function Ds(e, t) {
+ function Es(e, t) {
if (W) {
- var n = ed.formState;
+ var n = $u.formState;
if (n !== null) {
a: {
- var r = G;
+ var r = K;
if (W) {
if ($i) {
b: {
@@ -10692,48 +10795,48 @@ var au = /* @__PURE__ */ p(((e) => {
r && (t = n[0]);
}
}
- return n = ns(), n.memoizedState = n.baseState = t, r = {
+ return n = ts(), n.memoizedState = n.baseState = t, r = {
pending: null,
lanes: 0,
dispatch: null,
- lastRenderedReducer: Es,
+ lastRenderedReducer: Ts,
lastRenderedState: t
- }, n.queue = r, n = ac.bind(null, G, r), r.dispatch = n, r = vs(!1), a = sc.bind(null, G, !1, r.queue), r = ns(), i = {
+ }, n.queue = r, n = ic.bind(null, K, r), r.dispatch = n, r = _s(!1), a = oc.bind(null, K, !1, r.queue), r = ts(), i = {
state: t,
dispatch: null,
action: e,
pending: null
- }, r.queue = i, n = bs.bind(null, G, i, a, n), i.dispatch = n, r.memoizedState = e, [
+ }, r.queue = i, n = ys.bind(null, K, i, a, n), i.dispatch = n, r.memoizedState = e, [
t,
n,
!1
];
}
- function Os(e) {
- return ks(rs(), Ro, e);
+ function Ds(e) {
+ return Os(ns(), Lo, e);
}
- function ks(e, t, n) {
- if (t = us(e, t, Es)[0], e = ls(cs)[0], typeof t == "object" && t && typeof t.then == "function") try {
- var r = as(t);
+ function Os(e, t, n) {
+ if (t = ls(e, t, Ts)[0], e = cs(ss)[0], typeof t == "object" && t && typeof t.then == "function") try {
+ var r = is(t);
} catch (e) {
- throw e === Wa ? Ka : e;
+ throw e === Ua ? Ga : e;
}
else r = t;
- t = rs();
+ t = ns();
var i = t.queue, a = i.dispatch;
- return n !== t.memoizedState && (G.flags |= 2048, Ms(9, { destroy: void 0 }, As.bind(null, i, n), null)), [
+ return n !== t.memoizedState && (K.flags |= 2048, js(9, { destroy: void 0 }, ks.bind(null, i, n), null)), [
r,
a,
e
];
}
- function As(e, t) {
+ function ks(e, t) {
e.action = t;
}
- function js(e) {
- var t = rs(), n = Ro;
- if (n !== null) return ks(t, n, e);
- rs(), t = t.memoizedState, n = rs();
+ function As(e) {
+ var t = ns(), n = Lo;
+ if (n !== null) return Os(t, n, e);
+ ns(), t = t.memoizedState, n = ns();
var r = n.queue.dispatch;
return n.memoizedState = e, [
t,
@@ -10741,60 +10844,60 @@ var au = /* @__PURE__ */ p(((e) => {
!1
];
}
- function Ms(e, t, n, r) {
+ function js(e, t, n, r) {
return e = {
tag: e,
create: n,
deps: r,
inst: t,
next: null
- }, t = G.updateQueue, t === null && (t = is(), G.updateQueue = t), n = t.lastEffect, n === null ? t.lastEffect = e.next = e : (r = n.next, n.next = e, e.next = r, t.lastEffect = e), e;
+ }, t = K.updateQueue, t === null && (t = rs(), K.updateQueue = t), n = t.lastEffect, n === null ? t.lastEffect = e.next = e : (r = n.next, n.next = e, e.next = r, t.lastEffect = e), e;
+ }
+ function Ms() {
+ return ns().memoizedState;
}
- function Ns() {
- return rs().memoizedState;
+ function Ns(e, t, n, r) {
+ var i = ts();
+ K.flags |= e, i.memoizedState = js(1 | t, { destroy: void 0 }, n, r === void 0 ? null : r);
}
function Ps(e, t, n, r) {
var i = ns();
- G.flags |= e, i.memoizedState = Ms(1 | t, { destroy: void 0 }, n, r === void 0 ? null : r);
- }
- function Fs(e, t, n, r) {
- var i = rs();
r = r === void 0 ? null : r;
var a = i.memoizedState.inst;
- Ro !== null && r !== null && Jo(r, Ro.memoizedState.deps) ? i.memoizedState = Ms(t, a, n, r) : (G.flags |= e, i.memoizedState = Ms(1 | t, a, n, r));
+ Lo !== null && r !== null && qo(r, Lo.memoizedState.deps) ? i.memoizedState = js(t, a, n, r) : (K.flags |= e, i.memoizedState = js(1 | t, a, n, r));
}
- function Is(e, t) {
- Ps(8390656, 8, e, t);
+ function Fs(e, t) {
+ Ns(8390656, 8, e, t);
}
- function Ls(e, t) {
- Fs(2048, 8, e, t);
+ function Is(e, t) {
+ Ps(2048, 8, e, t);
}
- function Rs(e) {
- G.flags |= 4;
- var t = G.updateQueue;
- if (t === null) t = is(), G.updateQueue = t, t.events = [e];
+ function Ls(e) {
+ K.flags |= 4;
+ var t = K.updateQueue;
+ if (t === null) t = rs(), K.updateQueue = t, t.events = [e];
else {
var n = t.events;
n === null ? t.events = [e] : n.push(e);
}
}
- function zs(e) {
- var t = rs().memoizedState;
- return Rs({
+ function Rs(e) {
+ var t = ns().memoizedState;
+ return Ls({
ref: t,
nextImpl: e
}), function() {
- if ($u & 2) throw Error(i(440));
+ if (q & 2) throw Error(i(440));
return t.impl.apply(void 0, arguments);
};
}
+ function zs(e, t) {
+ return Ps(4, 2, e, t);
+ }
function Bs(e, t) {
- return Fs(4, 2, e, t);
+ return Ps(4, 4, e, t);
}
function Vs(e, t) {
- return Fs(4, 4, e, t);
- }
- function Hs(e, t) {
if (typeof t == "function") {
e = e();
var n = t(e);
@@ -10806,76 +10909,76 @@ var au = /* @__PURE__ */ p(((e) => {
t.current = null;
};
}
- function Us(e, t, n) {
- n = n == null ? null : n.concat([e]), Fs(4, 4, Hs.bind(null, t, e), n);
+ function Hs(e, t, n) {
+ n = n == null ? null : n.concat([e]), Ps(4, 4, Vs.bind(null, t, e), n);
}
- function Ws() {}
- function Gs(e, t) {
- var n = rs();
+ function Us() {}
+ function Ws(e, t) {
+ var n = ns();
t = t === void 0 ? null : t;
var r = n.memoizedState;
- return t !== null && Jo(t, r[1]) ? r[0] : (n.memoizedState = [e, t], e);
+ return t !== null && qo(t, r[1]) ? r[0] : (n.memoizedState = [e, t], e);
}
- function Ks(e, t) {
- var n = rs();
+ function Gs(e, t) {
+ var n = ns();
t = t === void 0 ? null : t;
var r = n.memoizedState;
- if (t !== null && Jo(t, r[1])) return r[0];
- if (r = e(), Ho) {
- Xe(!0);
+ if (t !== null && qo(t, r[1])) return r[0];
+ if (r = e(), Vo) {
+ Ze(!0);
try {
e();
} finally {
- Xe(!1);
+ Ze(!1);
}
}
return n.memoizedState = [r, t], r;
}
- function qs(e, t, n) {
- return n === void 0 || Lo & 1073741824 && !(J & 261930) ? e.memoizedState = t : (e.memoizedState = n, e = Ad(), G.lanes |= e, od |= e, n);
+ function Ks(e, t, n) {
+ return n === void 0 || Io & 1073741824 && !(Y & 261930) ? e.memoizedState = t : (e.memoizedState = n, e = Ad(), K.lanes |= e, od |= e, n);
}
- function Js(e, t, n, r) {
- return Fr(n, t) ? n : xo.current === null ? !(Lo & 106) || Lo & 1073741824 && !(J & 261930) ? (Ac = !0, e.memoizedState = n) : (e = Ad(), G.lanes |= e, od |= e, t) : (e = qs(e, n, r), Fr(e, t) || (Ac = !0), e);
+ function qs(e, t, n, r) {
+ return Ir(n, t) ? n : bo.current === null ? !(Io & 106) || Io & 1073741824 && !(Y & 261930) ? (kc = !0, e.memoizedState = n) : (e = Ad(), K.lanes |= e, od |= e, t) : (e = Ks(e, n, r), Ir(e, t) || (kc = !0), e);
}
- function Ys(e, t, n, r, i) {
- var a = L.p;
- L.p = a !== 0 && 8 > a ? a : 8;
- var o = I.T, s = {};
- s.types = o === null ? null : o.types, I.T = s, sc(e, !1, t, n);
+ function Js(e, t, n, r, i) {
+ var a = I.p;
+ I.p = a !== 0 && 8 > a ? a : 8;
+ var o = F.T, s = {};
+ s.types = o === null ? null : o.types, F.T = s, oc(e, !1, t, n);
try {
- var c = i(), l = I.S;
- l !== null && l(s, c), typeof c == "object" && c && typeof c.then == "function" ? oc(e, t, Ra(c, r), kd(e)) : oc(e, t, r, kd(e));
+ var c = i(), l = F.S;
+ l !== null && l(s, c), typeof c == "object" && c && typeof c.then == "function" ? ac(e, t, La(c, r), kd(e)) : ac(e, t, r, kd(e));
} catch (n) {
- oc(e, t, {
+ ac(e, t, {
then: function() {},
status: "rejected",
reason: n
}, kd());
} finally {
- L.p = a, o !== null && s.types !== null && (o.types = s.types), I.T = o;
+ I.p = a, o !== null && s.types !== null && (o.types = s.types), F.T = o;
}
}
- function Xs() {}
- function Zs(e, t, n, r) {
+ function Ys() {}
+ function Xs(e, t, n, r) {
if (e.tag !== 5) throw Error(i(476));
- var a = Qs(e).queue;
- Ys(e, a, t, pe, n === null ? Xs : function() {
- return $s(e), n(r);
+ var a = Zs(e).queue;
+ Js(e, a, t, me, n === null ? Ys : function() {
+ return Qs(e), n(r);
});
}
- function Qs(e) {
+ function Zs(e) {
var t = e.memoizedState;
if (t !== null) return t;
t = {
- memoizedState: pe,
- baseState: pe,
+ memoizedState: me,
+ baseState: me,
baseQueue: null,
queue: {
pending: null,
lanes: 0,
dispatch: null,
- lastRenderedReducer: cs,
- lastRenderedState: pe
+ lastRenderedReducer: ss,
+ lastRenderedState: me
},
next: null
};
@@ -10888,40 +10991,40 @@ var au = /* @__PURE__ */ p(((e) => {
pending: null,
lanes: 0,
dispatch: null,
- lastRenderedReducer: cs,
+ lastRenderedReducer: ss,
lastRenderedState: n
},
next: null
}, e.memoizedState = t, e = e.alternate, e !== null && (e.memoizedState = t), t;
}
- function $s(e) {
- var t = Qs(e);
- t.next === null && (t = e.alternate.memoizedState), oc(e, t.next.queue, {}, kd());
+ function Qs(e) {
+ var t = Zs(e);
+ t.next === null && (t = e.alternate.memoizedState), ac(e, t.next.queue, {}, kd());
}
- function ec() {
+ function $s() {
return ba(sh);
}
- function tc() {
- return rs().memoizedState;
+ function ec() {
+ return ns().memoizedState;
}
- function nc() {
- return rs().memoizedState;
+ function tc() {
+ return ns().memoizedState;
}
- function rc(e) {
+ function nc(e) {
for (var t = e.return; t !== null;) {
switch (t.tag) {
case 24:
case 3:
var n = kd();
- e = fo(n);
- var r = po(t, e, n);
- r !== null && (Md(r, t, n), mo(r, t, n)), t = { cache: Da() }, e.payload = t;
+ e = uo(n);
+ var r = fo(t, e, n);
+ r !== null && (Md(r, t, n), po(r, t, n)), t = { cache: Ea() }, e.payload = t;
return;
}
t = t.return;
}
}
- function ic(e, t, n) {
+ function rc(e, t, n) {
var r = kd();
n = {
lane: r,
@@ -10931,12 +11034,12 @@ var au = /* @__PURE__ */ p(((e) => {
hasEagerState: !1,
eagerState: null,
next: null
- }, cc(e) ? lc(t, n) : (n = xi(e, t, n, r), n !== null && (Md(n, e, r), uc(n, t, r)));
+ }, sc(e) ? cc(t, n) : (n = Si(e, t, n, r), n !== null && (Md(n, e, r), lc(n, t, r)));
}
- function ac(e, t, n) {
- oc(e, t, n, kd());
+ function ic(e, t, n) {
+ ac(e, t, n, kd());
}
- function oc(e, t, n, r) {
+ function ac(e, t, n, r) {
var i = {
lane: r,
revertLane: 0,
@@ -10946,18 +11049,18 @@ var au = /* @__PURE__ */ p(((e) => {
eagerState: null,
next: null
};
- if (cc(e)) lc(t, i);
+ if (sc(e)) cc(t, i);
else {
var a = e.alternate;
if (e.lanes === 0 && (a === null || a.lanes === 0) && (a = t.lastRenderedReducer, a !== null)) try {
var o = t.lastRenderedState, s = a(o, n);
- if (i.hasEagerState = !0, i.eagerState = s, Fr(s, o)) return bi(e, t, i, 0), ed === null && yi(), !1;
+ if (i.hasEagerState = !0, i.eagerState = s, Ir(s, o)) return xi(e, t, i, 0), $u === null && bi(), !1;
} catch {}
- if (n = xi(e, t, i, r), n !== null) return Md(n, e, r), uc(n, t, r), !0;
+ if (n = Si(e, t, i, r), n !== null) return Md(n, e, r), lc(n, t, r), !0;
}
return !1;
}
- function sc(e, t, n, r) {
+ function oc(e, t, n, r) {
if (r = {
lane: 2,
revertLane: Nf(),
@@ -10966,91 +11069,91 @@ var au = /* @__PURE__ */ p(((e) => {
hasEagerState: !1,
eagerState: null,
next: null
- }, cc(e)) {
+ }, sc(e)) {
if (t) throw Error(i(479));
- } else t = xi(e, n, r, 2), t !== null && Md(t, e, 2);
+ } else t = Si(e, n, r, 2), t !== null && Md(t, e, 2);
}
- function cc(e) {
+ function sc(e) {
var t = e.alternate;
- return e === G || t !== null && t === G;
+ return e === K || t !== null && t === K;
}
- function lc(e, t) {
- Vo = Bo = !0;
+ function cc(e, t) {
+ Bo = zo = !0;
var n = e.pending;
n === null ? t.next = t : (t.next = n.next, n.next = t), e.pending = t;
}
- function uc(e, t, n) {
+ function lc(e, t, n) {
if (n & 4194048) {
var r = t.lanes;
- r &= e.pendingLanes, n |= r, t.lanes = n, mt(e, n);
+ r &= e.pendingLanes, n |= r, t.lanes = n, ht(e, n);
}
}
- var dc = {
+ var uc = {
readContext: ba,
- use: os,
- useCallback: qo,
- useContext: qo,
- useEffect: qo,
- useImperativeHandle: qo,
- useLayoutEffect: qo,
- useInsertionEffect: qo,
- useMemo: qo,
- useReducer: qo,
- useRef: qo,
- useState: qo,
- useDebugValue: qo,
- useDeferredValue: qo,
- useTransition: qo,
- useSyncExternalStore: qo,
- useId: qo,
- useHostTransitionStatus: qo,
- useFormState: qo,
- useActionState: qo,
- useOptimistic: qo,
- useMemoCache: qo,
- useCacheRefresh: qo,
- useEffectEvent: qo
- }, fc = {
+ use: as,
+ useCallback: Ko,
+ useContext: Ko,
+ useEffect: Ko,
+ useImperativeHandle: Ko,
+ useLayoutEffect: Ko,
+ useInsertionEffect: Ko,
+ useMemo: Ko,
+ useReducer: Ko,
+ useRef: Ko,
+ useState: Ko,
+ useDebugValue: Ko,
+ useDeferredValue: Ko,
+ useTransition: Ko,
+ useSyncExternalStore: Ko,
+ useId: Ko,
+ useHostTransitionStatus: Ko,
+ useFormState: Ko,
+ useActionState: Ko,
+ useOptimistic: Ko,
+ useMemoCache: Ko,
+ useCacheRefresh: Ko,
+ useEffectEvent: Ko
+ }, dc = {
readContext: ba,
- use: os,
+ use: as,
useCallback: function(e, t) {
- return ns().memoizedState = [e, t === void 0 ? null : t], e;
+ return ts().memoizedState = [e, t === void 0 ? null : t], e;
},
useContext: ba,
- useEffect: Is,
+ useEffect: Fs,
useImperativeHandle: function(e, t, n) {
- n = n == null ? null : n.concat([e]), Ps(4194308, 4, Hs.bind(null, t, e), n);
+ n = n == null ? null : n.concat([e]), Ns(4194308, 4, Vs.bind(null, t, e), n);
},
useLayoutEffect: function(e, t) {
- return Ps(4194308, 4, e, t);
+ return Ns(4194308, 4, e, t);
},
useInsertionEffect: function(e, t) {
- Ps(4, 2, e, t);
+ Ns(4, 2, e, t);
},
useMemo: function(e, t) {
- var n = ns();
+ var n = ts();
t = t === void 0 ? null : t;
var r = e();
- if (Ho) {
- Xe(!0);
+ if (Vo) {
+ Ze(!0);
try {
e();
} finally {
- Xe(!1);
+ Ze(!1);
}
}
return n.memoizedState = [r, t], r;
},
useReducer: function(e, t, n) {
- var r = ns();
+ var r = ts();
if (n !== void 0) {
var i = n(t);
- if (Ho) {
- Xe(!0);
+ if (Vo) {
+ Ze(!0);
try {
n(t);
} finally {
- Xe(!1);
+ Ze(!1);
}
}
} else i = t;
@@ -11060,54 +11163,54 @@ var au = /* @__PURE__ */ p(((e) => {
dispatch: null,
lastRenderedReducer: e,
lastRenderedState: i
- }, r.queue = e, e = e.dispatch = ic.bind(null, G, e), [r.memoizedState, e];
+ }, r.queue = e, e = e.dispatch = rc.bind(null, K, e), [r.memoizedState, e];
},
useRef: function(e) {
- var t = ns();
+ var t = ts();
return e = { current: e }, t.memoizedState = e;
},
useState: function(e) {
- e = vs(e);
- var t = e.queue, n = ac.bind(null, G, t);
+ e = _s(e);
+ var t = e.queue, n = ic.bind(null, K, t);
return t.dispatch = n, [e.memoizedState, n];
},
- useDebugValue: Ws,
+ useDebugValue: Us,
useDeferredValue: function(e, t) {
- return qs(ns(), e, t);
+ return Ks(ts(), e, t);
},
useTransition: function() {
- var e = vs(!1);
- return e = Ys.bind(null, G, e.queue, !0, !1), ns().memoizedState = e, [!1, e];
+ var e = _s(!1);
+ return e = Js.bind(null, K, e.queue, !0, !1), ts().memoizedState = e, [!1, e];
},
useSyncExternalStore: function(e, t, n) {
- var r = G, a = ns();
+ var r = K, a = ts();
if (W) {
if (n === void 0) throw Error(i(407));
n = n();
} else {
- if (n = t(), ed === null) throw Error(i(349));
- J & 127 || ps(r, t, n);
+ if (n = t(), $u === null) throw Error(i(349));
+ Y & 127 || fs(r, t, n);
}
a.memoizedState = n;
var o = {
value: n,
getSnapshot: t
};
- return a.queue = o, Is(hs.bind(null, r, o, e), [e]), r.flags |= 2048, Ms(9, { destroy: void 0 }, ms.bind(null, r, o, n, t), null), n;
+ return a.queue = o, Fs(ms.bind(null, r, o, e), [e]), r.flags |= 2048, js(9, { destroy: void 0 }, ps.bind(null, r, o, n, t), null), n;
},
useId: function() {
- var e = ns(), t = ed.identifierPrefix;
+ var e = ts(), t = $u.identifierPrefix;
if (W) {
- var n = Ki, r = Gi;
- n = (r & ~(1 << 32 - Ze(r) - 1)).toString(32) + n, t = "_" + t + "R_" + n, n = Uo++, 0 < n && (t += "H" + n.toString(32)), t += "_";
- } else n = Ko++, t = "_" + t + "r_" + n.toString(32) + "_";
+ var n = qi, r = Ki;
+ n = (r & ~(1 << 32 - Qe(r) - 1)).toString(32) + n, t = "_" + t + "R_" + n, n = Ho++, 0 < n && (t += "H" + n.toString(32)), t += "_";
+ } else n = Go++, t = "_" + t + "r_" + n.toString(32) + "_";
return e.memoizedState = t;
},
- useHostTransitionStatus: ec,
- useFormState: Ds,
- useActionState: Ds,
+ useHostTransitionStatus: $s,
+ useFormState: Es,
+ useActionState: Es,
useOptimistic: function(e) {
- var t = ns();
+ var t = ts();
t.memoizedState = t.baseState = e;
var n = {
pending: null,
@@ -11116,132 +11219,132 @@ var au = /* @__PURE__ */ p(((e) => {
lastRenderedReducer: null,
lastRenderedState: null
};
- return t.queue = n, t = sc.bind(null, G, !0, n), n.dispatch = t, [e, t];
+ return t.queue = n, t = oc.bind(null, K, !0, n), n.dispatch = t, [e, t];
},
- useMemoCache: ss,
+ useMemoCache: os,
useCacheRefresh: function() {
- return ns().memoizedState = rc.bind(null, G);
+ return ts().memoizedState = nc.bind(null, K);
},
useEffectEvent: function(e) {
- var t = ns(), n = { impl: e };
+ var t = ts(), n = { impl: e };
return t.memoizedState = n, function() {
- if ($u & 2) throw Error(i(440));
+ if (q & 2) throw Error(i(440));
return n.impl.apply(void 0, arguments);
};
}
- }, pc = {
+ }, fc = {
readContext: ba,
- use: os,
- useCallback: Gs,
+ use: as,
+ useCallback: Ws,
useContext: ba,
- useEffect: Ls,
- useImperativeHandle: Us,
- useInsertionEffect: Bs,
- useLayoutEffect: Vs,
- useMemo: Ks,
- useReducer: ls,
- useRef: Ns,
+ useEffect: Is,
+ useImperativeHandle: Hs,
+ useInsertionEffect: zs,
+ useLayoutEffect: Bs,
+ useMemo: Gs,
+ useReducer: cs,
+ useRef: Ms,
useState: function() {
- return ls(cs);
+ return cs(ss);
},
- useDebugValue: Ws,
+ useDebugValue: Us,
useDeferredValue: function(e, t) {
- return Js(rs(), Ro.memoizedState, e, t);
+ return qs(ns(), Lo.memoizedState, e, t);
},
useTransition: function() {
- var e = ls(cs)[0], t = rs().memoizedState;
- return [typeof e == "boolean" ? e : as(e), t];
+ var e = cs(ss)[0], t = ns().memoizedState;
+ return [typeof e == "boolean" ? e : is(e), t];
},
- useSyncExternalStore: fs,
- useId: tc,
- useHostTransitionStatus: ec,
- useFormState: Os,
- useActionState: Os,
+ useSyncExternalStore: ds,
+ useId: ec,
+ useHostTransitionStatus: $s,
+ useFormState: Ds,
+ useActionState: Ds,
useOptimistic: function(e, t) {
- return ys(rs(), Ro, e, t);
+ return vs(ns(), Lo, e, t);
},
- useMemoCache: ss,
- useCacheRefresh: nc,
- useEffectEvent: zs
- }, mc = {
+ useMemoCache: os,
+ useCacheRefresh: tc,
+ useEffectEvent: Rs
+ }, pc = {
readContext: ba,
- use: os,
- useCallback: Gs,
+ use: as,
+ useCallback: Ws,
useContext: ba,
- useEffect: Ls,
- useImperativeHandle: Us,
- useInsertionEffect: Bs,
- useLayoutEffect: Vs,
- useMemo: Ks,
- useReducer: ds,
- useRef: Ns,
+ useEffect: Is,
+ useImperativeHandle: Hs,
+ useInsertionEffect: zs,
+ useLayoutEffect: Bs,
+ useMemo: Gs,
+ useReducer: us,
+ useRef: Ms,
useState: function() {
- return ds(cs);
+ return us(ss);
},
- useDebugValue: Ws,
+ useDebugValue: Us,
useDeferredValue: function(e, t) {
- var n = rs();
- return Ro === null ? qs(n, e, t) : Js(n, Ro.memoizedState, e, t);
+ var n = ns();
+ return Lo === null ? Ks(n, e, t) : qs(n, Lo.memoizedState, e, t);
},
useTransition: function() {
- var e = ds(cs)[0], t = rs().memoizedState;
- return [typeof e == "boolean" ? e : as(e), t];
+ var e = us(ss)[0], t = ns().memoizedState;
+ return [typeof e == "boolean" ? e : is(e), t];
},
- useSyncExternalStore: fs,
- useId: tc,
- useHostTransitionStatus: ec,
- useFormState: js,
- useActionState: js,
+ useSyncExternalStore: ds,
+ useId: ec,
+ useHostTransitionStatus: $s,
+ useFormState: As,
+ useActionState: As,
useOptimistic: function(e, t) {
- var n = rs();
- return Ro === null ? (n.baseState = e, [e, n.queue.dispatch]) : ys(n, Ro, e, t);
+ var n = ns();
+ return Lo === null ? (n.baseState = e, [e, n.queue.dispatch]) : vs(n, Lo, e, t);
},
- useMemoCache: ss,
- useCacheRefresh: nc,
- useEffectEvent: zs
+ useMemoCache: os,
+ useCacheRefresh: tc,
+ useEffectEvent: Rs
};
- function hc(e, t, n, r) {
+ function mc(e, t, n, r) {
t = e.memoizedState, n = n(r, t), n = n == null ? t : T({}, t, n), e.memoizedState = n, e.lanes === 0 && (e.updateQueue.baseState = n);
}
- var gc = {
+ var hc = {
enqueueSetState: function(e, t, n) {
e = e._reactInternals;
- var r = kd(), i = fo(r);
- i.payload = t, n != null && (i.callback = n), t = po(e, i, r), t !== null && (Md(t, e, r), mo(t, e, r));
+ var r = kd(), i = uo(r);
+ i.payload = t, n != null && (i.callback = n), t = fo(e, i, r), t !== null && (Md(t, e, r), po(t, e, r));
},
enqueueReplaceState: function(e, t, n) {
e = e._reactInternals;
- var r = kd(), i = fo(r);
- i.tag = 1, i.payload = t, n != null && (i.callback = n), t = po(e, i, r), t !== null && (Md(t, e, r), mo(t, e, r));
+ var r = kd(), i = uo(r);
+ i.tag = 1, i.payload = t, n != null && (i.callback = n), t = fo(e, i, r), t !== null && (Md(t, e, r), po(t, e, r));
},
enqueueForceUpdate: function(e, t) {
e = e._reactInternals;
- var n = kd(), r = fo(n);
- r.tag = 2, t != null && (r.callback = t), t = po(e, r, n), t !== null && (Md(t, e, n), mo(t, e, n));
+ var n = kd(), r = uo(n);
+ r.tag = 2, t != null && (r.callback = t), t = fo(e, r, n), t !== null && (Md(t, e, n), po(t, e, n));
}
};
- function _c(e, t, n, r, i, a, o) {
- return e = e.stateNode, typeof e.shouldComponentUpdate == "function" ? e.shouldComponentUpdate(r, a, o) : t.prototype && t.prototype.isPureReactComponent ? !Ir(n, r) || !Ir(i, a) : !0;
+ function gc(e, t, n, r, i, a, o) {
+ return e = e.stateNode, typeof e.shouldComponentUpdate == "function" ? e.shouldComponentUpdate(r, a, o) : t.prototype && t.prototype.isPureReactComponent ? !Lr(n, r) || !Lr(i, a) : !0;
}
- function vc(e, t, n, r) {
- e = t.state, typeof t.componentWillReceiveProps == "function" && t.componentWillReceiveProps(n, r), typeof t.UNSAFE_componentWillReceiveProps == "function" && t.UNSAFE_componentWillReceiveProps(n, r), t.state !== e && gc.enqueueReplaceState(t, t.state, null);
+ function _c(e, t, n, r) {
+ e = t.state, typeof t.componentWillReceiveProps == "function" && t.componentWillReceiveProps(n, r), typeof t.UNSAFE_componentWillReceiveProps == "function" && t.UNSAFE_componentWillReceiveProps(n, r), t.state !== e && hc.enqueueReplaceState(t, t.state, null);
}
- function yc(e, t) {
+ function vc(e, t) {
var n = t;
if ("ref" in t) for (var r in n = {}, t) r !== "ref" && (n[r] = t[r]);
if (e = e.defaultProps) for (var i in n === t && (n = T({}, n)), e) n[i] === void 0 && (n[i] = e[i]);
return n;
}
- function bc(e) {
- hi(e);
+ function yc(e) {
+ gi(e);
}
- function xc(e) {
+ function bc(e) {
console.error(e);
}
- function Sc(e) {
- hi(e);
+ function xc(e) {
+ gi(e);
}
- function Cc(e, t) {
+ function Sc(e, t) {
try {
var n = e.onUncaughtError;
n(t.value, { componentStack: t.stack });
@@ -11251,7 +11354,7 @@ var au = /* @__PURE__ */ p(((e) => {
});
}
}
- function wc(e, t, n) {
+ function Cc(e, t, n) {
try {
var r = e.onCaughtError;
r(n.value, {
@@ -11264,39 +11367,39 @@ var au = /* @__PURE__ */ p(((e) => {
});
}
}
- function Tc(e, t, n) {
- return n = fo(n), n.tag = 3, n.payload = { element: null }, n.callback = function() {
- Cc(e, t);
+ function wc(e, t, n) {
+ return n = uo(n), n.tag = 3, n.payload = { element: null }, n.callback = function() {
+ Sc(e, t);
}, n;
}
- function Ec(e) {
- return e = fo(e), e.tag = 3, e;
+ function Tc(e) {
+ return e = uo(e), e.tag = 3, e;
}
- function Dc(e, t, n, r) {
+ function Ec(e, t, n, r) {
var i = n.type.getDerivedStateFromError;
if (typeof i == "function") {
var a = r.value;
e.payload = function() {
return i(a);
}, e.callback = function() {
- wc(t, n, r);
+ Cc(t, n, r);
};
}
var o = n.stateNode;
o !== null && typeof o.componentDidCatch == "function" && (e.callback = function() {
- wc(t, n, r), typeof i != "function" && (_d === null ? _d = /* @__PURE__ */ new Set([this]) : _d.add(this));
+ Cc(t, n, r), typeof i != "function" && (_d === null ? _d = /* @__PURE__ */ new Set([this]) : _d.add(this));
var e = r.stack;
this.componentDidCatch(r.value, { componentStack: e === null ? "" : e });
});
}
- function Oc(e, t, n, r, a) {
+ function Dc(e, t, n, r, a) {
if (n.flags |= 32768, typeof r == "object" && r && typeof r.then == "function") {
- if (t = n.alternate, t !== null && _a(t, n, a, !0), n = Eo.current, n !== null) {
+ if (t = n.alternate, t !== null && _a(t, n, a, !0), n = To.current, n !== null) {
switch (n.tag) {
case 31:
case 13:
- case 19: return Do === null ? Wd() : n.alternate === null && ad === 0 && (ad = 3), n.flags &= -257, n.flags |= 65536, n.lanes = a, r === qa ? n.flags |= 16384 : (t = n.updateQueue, t === null ? n.updateQueue = /* @__PURE__ */ new Set([r]) : t.add(r), pf(e, r, a)), !1;
- case 22: return n.flags |= 65536, r === qa ? n.flags |= 16384 : (t = n.updateQueue, t === null ? (t = {
+ case 19: return Eo === null ? Wd() : n.alternate === null && ad === 0 && (ad = 3), n.flags &= -257, n.flags |= 65536, n.lanes = a, r === Ka ? n.flags |= 16384 : (t = n.updateQueue, t === null ? n.updateQueue = /* @__PURE__ */ new Set([r]) : t.add(r), pf(e, r, a)), !1;
+ case 22: return n.flags |= 65536, r === Ka ? n.flags |= 16384 : (t = n.updateQueue, t === null ? (t = {
transitions: null,
markerInstances: null,
retryQueue: /* @__PURE__ */ new Set([r])
@@ -11306,15 +11409,15 @@ var au = /* @__PURE__ */ p(((e) => {
}
return pf(e, r, a), Wd(), !1;
}
- if (W) return t = Eo.current, t === null ? (r !== na && (t = Error(i(423), { cause: r }), la(Li(t, n))), e = e.current.alternate, e.flags |= 65536, a &= -a, e.lanes |= a, r = Li(r, n), a = Tc(e.stateNode, r, a), ho(e, a), ad !== 4 && (ad = 2)) : (!(t.flags & 65536) && (t.flags |= 256), t.flags |= 65536, t.lanes = a, r !== na && (e = Error(i(422), { cause: r }), la(Li(e, n)))), !1;
+ if (W) return t = To.current, t === null ? (r !== na && (t = Error(i(423), { cause: r }), la(Ri(t, n))), e = e.current.alternate, e.flags |= 65536, a &= -a, e.lanes |= a, r = Ri(r, n), a = wc(e.stateNode, r, a), mo(e, a), ad !== 4 && (ad = 2)) : (!(t.flags & 65536) && (t.flags |= 256), t.flags |= 65536, t.lanes = a, r !== na && (e = Error(i(422), { cause: r }), la(Ri(e, n)))), !1;
var o = Error(i(520), { cause: r });
- if (o = Li(o, n), dd === null ? dd = [o] : dd.push(o), ad !== 4 && (ad = 2), t === null) return !0;
- r = Li(r, n), n = t;
+ if (o = Ri(o, n), dd === null ? dd = [o] : dd.push(o), ad !== 4 && (ad = 2), t === null) return !0;
+ r = Ri(r, n), n = t;
do {
switch (n.tag) {
- case 3: return n.flags |= 65536, e = a & -a, n.lanes |= e, e = Tc(n.stateNode, r, e), ho(n, e), !1;
+ case 3: return n.flags |= 65536, e = a & -a, n.lanes |= e, e = wc(n.stateNode, r, e), mo(n, e), !1;
case 1:
- if (t = n.type, o = n.stateNode, !(n.flags & 128) && (typeof t.getDerivedStateFromError == "function" || o !== null && typeof o.componentDidCatch == "function" && (_d === null || !_d.has(o)))) return n.flags |= 65536, a &= -a, n.lanes |= a, a = Ec(a), Dc(a, e, n, r), ho(n, a), !1;
+ if (t = n.type, o = n.stateNode, !(n.flags & 128) && (typeof t.getDerivedStateFromError == "function" || o !== null && typeof o.componentDidCatch == "function" && (_d === null || !_d.has(o)))) return n.flags |= 65536, a &= -a, n.lanes |= a, a = Tc(a), Ec(a, e, n, r), mo(n, a), !1;
break;
case 22: if (n.memoizedState !== null) return n.flags |= 65536, !1;
}
@@ -11322,41 +11425,41 @@ var au = /* @__PURE__ */ p(((e) => {
} while (n !== null);
return !1;
}
- var kc = Error(i(461)), Ac = !1;
- function jc(e, t, n, r) {
- t.child = e === null ? so(t, null, n, r) : oo(t, e.child, n, r);
+ var Oc = Error(i(461)), kc = !1;
+ function Ac(e, t, n, r) {
+ t.child = e === null ? oo(t, null, n, r) : ao(t, e.child, n, r);
}
- function Mc(e, t, n, r, i) {
+ function jc(e, t, n, r, i) {
n = n.render;
var a = t.ref;
if ("ref" in r) {
var o = {};
for (var s in r) s !== "ref" && (o[s] = r[s]);
} else o = r;
- return ya(t), r = Yo(e, t, n, o, a, i), s = $o(), e !== null && !Ac ? (es(e, t, i), ol(e, t, i)) : (W && s && Yi(t), t.flags |= 1, jc(e, t, r, i), t.child);
+ return ya(t), r = Jo(e, t, n, o, a, i), s = Qo(), e !== null && !kc ? ($o(e, t, i), al(e, t, i)) : (W && s && Xi(t), t.flags |= 1, Ac(e, t, r, i), t.child);
}
- function Nc(e, t, n, r, i) {
+ function Mc(e, t, n, r, i) {
if (e === null) {
var a = n.type;
- return typeof a == "function" && !Oi(a) && a.defaultProps === void 0 && n.compare === null ? (t.tag = 15, t.type = a, Pc(e, t, a, r, i)) : (e = ji(n.type, null, r, t, t.mode, i), e.ref = t.ref, e.return = t, t.child = e);
+ return typeof a == "function" && !ki(a) && a.defaultProps === void 0 && n.compare === null ? (t.tag = 15, t.type = a, Nc(e, t, a, r, i)) : (e = Mi(n.type, null, r, t, t.mode, i), e.ref = t.ref, e.return = t, t.child = e);
}
- if (a = e.child, !sl(e, i)) {
+ if (a = e.child, !ol(e, i)) {
var o = a.memoizedProps;
- if (n = n.compare, n = n === null ? Ir : n, n(o, r) && e.ref === t.ref) return ol(e, t, i);
+ if (n = n.compare, n = n === null ? Lr : n, n(o, r) && e.ref === t.ref) return al(e, t, i);
}
- return t.flags |= 1, e = ki(a, r), e.ref = t.ref, e.return = t, t.child = e;
+ return t.flags |= 1, e = Ai(a, r), e.ref = t.ref, e.return = t, t.child = e;
}
- function Pc(e, t, n, r, i) {
+ function Nc(e, t, n, r, i) {
if (e !== null) {
var a = e.memoizedProps;
- if (Ir(a, r) && e.ref === t.ref) {
- if (Ac = !1, t.pendingProps = r = a, sl(e, i)) e.flags & 131072 && (Ac = !0);
- else return t.lanes = e.lanes, ol(e, t, i);
+ if (Lr(a, r) && e.ref === t.ref) {
+ if (kc = !1, t.pendingProps = r = a, ol(e, i)) e.flags & 131072 && (kc = !0);
+ else return t.lanes = e.lanes, al(e, t, i);
}
}
- return Hc(e, t, n, r, i);
+ return Vc(e, t, n, r, i);
}
- function Fc(e, t, n, r) {
+ function Pc(e, t, n, r) {
var i = r.children, a = e === null ? null : e.memoizedState;
if (e === null && t.stateNode === null && (t.stateNode = {
_visibility: 1,
@@ -11369,17 +11472,17 @@ var au = /* @__PURE__ */ p(((e) => {
for (r = t.child = e.child, i = 0; r !== null;) i = i | r.lanes | r.childLanes, r = r.sibling;
r = i & ~a;
} else r = 0, t.child = null;
- return Lc(e, t, a, n, r);
+ return Ic(e, t, a, n, r);
}
if (n & 536870912) t.memoizedState = {
baseLanes: 0,
cachePool: null
- }, e !== null && Ha(t, a === null ? null : a.cachePool), a === null ? wo() : Co(t, a), Ao(t);
- else return r = t.lanes = 536870912, Lc(e, t, a === null ? n : a.baseLanes | n, n, r);
- } else a === null ? (e !== null && Ha(t, null), wo(), jo()) : (Ha(t, a.cachePool), Co(t, a), jo(), t.memoizedState = null);
- return jc(e, t, i, n), t.child;
+ }, e !== null && Va(t, a === null ? null : a.cachePool), a === null ? Co() : So(t, a), ko(t);
+ else return r = t.lanes = 536870912, Ic(e, t, a === null ? n : a.baseLanes | n, n, r);
+ } else a === null ? (e !== null && Va(t, null), Co(), Ao()) : (Va(t, a.cachePool), So(t, a), Ao(), t.memoizedState = null);
+ return Ac(e, t, i, n), t.child;
}
- function Ic(e, t) {
+ function Fc(e, t) {
return e !== null && e.tag === 22 || t.stateNode !== null || (t.stateNode = {
_visibility: 1,
_pendingMarkers: null,
@@ -11387,68 +11490,68 @@ var au = /* @__PURE__ */ p(((e) => {
_transitions: null
}), t.sibling;
}
- function Lc(e, t, n, r, i) {
- var a = Va();
+ function Ic(e, t, n, r, i) {
+ var a = Ba();
return a = a === null ? null : {
- parent: Ea._currentValue,
+ parent: G._currentValue,
pool: a
}, t.memoizedState = {
baseLanes: n,
cachePool: a
- }, e !== null && Ha(t, null), wo(), Ao(t), e !== null && _a(e, t, r, !0), t.childLanes = i, null;
+ }, e !== null && Va(t, null), Co(), ko(t), e !== null && _a(e, t, r, !0), t.childLanes = i, null;
}
- function Rc(e, t) {
- return t = Zc({
+ function Lc(e, t) {
+ return t = Xc({
mode: t.mode,
children: t.children
}, e.mode), t.ref = e.ref, e.child = t, t.return = e, t;
}
- function zc(e, t, n) {
- return oo(t, e.child, null, n), e = Rc(t, t.pendingProps), e.flags |= 2, Mo(t), t.memoizedState = null, e;
+ function Rc(e, t, n) {
+ return ao(t, e.child, null, n), e = Lc(t, t.pendingProps), e.flags |= 2, jo(t), t.memoizedState = null, e;
}
- function Bc(e, t, n) {
+ function zc(e, t, n) {
var r = t.pendingProps, a = !!(t.flags & 128);
if (t.flags &= -129, e === null) {
if (W) {
- if (r.mode === "hidden") return e = Rc(t, r), t.lanes = 536870912, e.memoizedState = {
+ if (r.mode === "hidden") return e = Lc(t, r), t.lanes = 536870912, e.memoizedState = {
baseLanes: 0,
cachePool: null
- }, Ic(null, e);
- if (ko(t), (e = $i) ? (e = am(e, ta), e = e !== null && e.data === "&" ? e : null, e !== null && (t.memoizedState = {
+ }, Fc(null, e);
+ if (Oo(t), (e = $i) ? (e = am(e, ta), e = e !== null && e.data === "&" ? e : null, e !== null && (t.memoizedState = {
dehydrated: e,
- treeContext: Wi === null ? null : {
- id: Gi,
- overflow: Ki
+ treeContext: Gi === null ? null : {
+ id: Ki,
+ overflow: qi
},
retryLane: 536870912,
hydrationErrors: null
- }, n = Pi(e), n.return = t, t.child = n, Qi = t, $i = null)) : e = null, e === null) throw ra(t);
+ }, n = Fi(e), n.return = t, t.child = n, U = t, $i = null)) : e = null, e === null) throw ra(t);
return t.lanes = 536870912, null;
}
- return Rc(t, r);
+ return Lc(t, r);
}
var o = e.memoizedState;
if (o !== null) {
var s = o.dehydrated;
- if (ko(t), a) {
- if (t.flags & 256) t.flags &= -257, t = zc(e, t, n);
+ if (Oo(t), a) {
+ if (t.flags & 256) t.flags &= -257, t = Rc(e, t, n);
else if (t.memoizedState !== null) t.child = e.child, t.flags |= 128, t = null;
else throw Error(i(558));
- } else if (Ac || _a(e, t, n, !1), a = (n & e.childLanes) !== 0, Ac || a) {
- if (xo.current === null) {
- if (r = ed, r !== null && (s = ht(r, n), s !== 0 && s !== o.retryLane)) throw o.retryLane = s, Si(e, s), Md(r, e, s), kc;
+ } else if (kc || _a(e, t, n, !1), a = (n & e.childLanes) !== 0, kc || a) {
+ if (bo.current === null) {
+ if (r = $u, r !== null && (s = gt(r, n), s !== 0 && s !== o.retryLane)) throw o.retryLane = s, Ci(e, s), Md(r, e, s), Oc;
Wd();
}
- t = zc(e, t, n);
- } else e = o.treeContext, $i = lm(s.nextSibling), Qi = t, W = !0, ea = null, ta = !1, e !== null && Zi(t, e), t = Rc(t, r), t.flags |= 134221824;
+ t = Rc(e, t, n);
+ } else e = o.treeContext, $i = lm(s.nextSibling), U = t, W = !0, ea = null, ta = !1, e !== null && Qi(t, e), t = Lc(t, r), t.flags |= 134221824;
return t;
}
- return e = ki(e.child, {
+ return e = Ai(e.child, {
mode: r.mode,
children: r.children
}), e.ref = t.ref, t.child = e, e.return = t, e;
}
- function Vc(e, t) {
+ function Bc(e, t) {
var n = t.ref;
if (n === null) e !== null && e.ref !== null && (t.flags |= 4194816);
else {
@@ -11456,135 +11559,135 @@ var au = /* @__PURE__ */ p(((e) => {
(e === null || e.ref !== n) && (t.flags |= 4194816);
}
}
- function Hc(e, t, n, r, i) {
- return ya(t), n = Yo(e, t, n, r, void 0, i), r = $o(), e !== null && !Ac ? (es(e, t, i), ol(e, t, i)) : (W && r && Yi(t), t.flags |= 1, jc(e, t, n, i), t.child);
+ function Vc(e, t, n, r, i) {
+ return ya(t), n = Jo(e, t, n, r, void 0, i), r = Qo(), e !== null && !kc ? ($o(e, t, i), al(e, t, i)) : (W && r && Xi(t), t.flags |= 1, Ac(e, t, n, i), t.child);
}
- function Uc(e, t, n, r, i, a) {
- return ya(t), t.updateQueue = null, n = Zo(t, r, n, i), Xo(e), r = $o(), e !== null && !Ac ? (es(e, t, a), ol(e, t, a)) : (W && r && Yi(t), t.flags |= 1, jc(e, t, n, a), t.child);
+ function Hc(e, t, n, r, i, a) {
+ return ya(t), t.updateQueue = null, n = Xo(t, r, n, i), Yo(e), r = Qo(), e !== null && !kc ? ($o(e, t, a), al(e, t, a)) : (W && r && Xi(t), t.flags |= 1, Ac(e, t, n, a), t.child);
}
- function Wc(e, t, n, r, i) {
+ function Uc(e, t, n, r, i) {
if (ya(t), t.stateNode === null) {
- var a = Ti, o = n.contextType;
- typeof o == "object" && o && (a = ba(o)), a = new n(r, a), t.memoizedState = a.state !== null && a.state !== void 0 ? a.state : null, a.updater = gc, t.stateNode = a, a._reactInternals = t, a = t.stateNode, a.props = r, a.state = t.memoizedState, a.refs = {}, lo(t), o = n.contextType, a.context = typeof o == "object" && o ? ba(o) : Ti, a.state = t.memoizedState, o = n.getDerivedStateFromProps, typeof o == "function" && (hc(t, n, o, r), a.state = t.memoizedState), typeof n.getDerivedStateFromProps == "function" || typeof a.getSnapshotBeforeUpdate == "function" || typeof a.UNSAFE_componentWillMount != "function" && typeof a.componentWillMount != "function" || (o = a.state, typeof a.componentWillMount == "function" && a.componentWillMount(), typeof a.UNSAFE_componentWillMount == "function" && a.UNSAFE_componentWillMount(), o !== a.state && gc.enqueueReplaceState(a, a.state, null), vo(t, r, a, i), _o(), a.state = t.memoizedState), typeof a.componentDidMount == "function" && (t.flags |= 4194308), r = !0;
+ var a = Ei, o = n.contextType;
+ typeof o == "object" && o && (a = ba(o)), a = new n(r, a), t.memoizedState = a.state !== null && a.state !== void 0 ? a.state : null, a.updater = hc, t.stateNode = a, a._reactInternals = t, a = t.stateNode, a.props = r, a.state = t.memoizedState, a.refs = {}, co(t), o = n.contextType, a.context = typeof o == "object" && o ? ba(o) : Ei, a.state = t.memoizedState, o = n.getDerivedStateFromProps, typeof o == "function" && (mc(t, n, o, r), a.state = t.memoizedState), typeof n.getDerivedStateFromProps == "function" || typeof a.getSnapshotBeforeUpdate == "function" || typeof a.UNSAFE_componentWillMount != "function" && typeof a.componentWillMount != "function" || (o = a.state, typeof a.componentWillMount == "function" && a.componentWillMount(), typeof a.UNSAFE_componentWillMount == "function" && a.UNSAFE_componentWillMount(), o !== a.state && hc.enqueueReplaceState(a, a.state, null), _o(t, r, a, i), go(), a.state = t.memoizedState), typeof a.componentDidMount == "function" && (t.flags |= 4194308), r = !0;
} else if (e === null) {
a = t.stateNode;
- var s = t.memoizedProps, c = yc(n, s);
+ var s = t.memoizedProps, c = vc(n, s);
a.props = c;
var l = a.context, u = n.contextType;
- o = Ti, typeof u == "object" && u && (o = ba(u));
+ o = Ei, typeof u == "object" && u && (o = ba(u));
var d = n.getDerivedStateFromProps;
- u = typeof d == "function" || typeof a.getSnapshotBeforeUpdate == "function", s = t.pendingProps !== s, u || typeof a.UNSAFE_componentWillReceiveProps != "function" && typeof a.componentWillReceiveProps != "function" || (s || l !== o) && vc(t, a, r, o), co = !1;
+ u = typeof d == "function" || typeof a.getSnapshotBeforeUpdate == "function", s = t.pendingProps !== s, u || typeof a.UNSAFE_componentWillReceiveProps != "function" && typeof a.componentWillReceiveProps != "function" || (s || l !== o) && _c(t, a, r, o), so = !1;
var f = t.memoizedState;
- a.state = f, vo(t, r, a, i), _o(), l = t.memoizedState, s || f !== l || co ? (typeof d == "function" && (hc(t, n, d, r), l = t.memoizedState), (c = co || _c(t, n, c, r, f, l, o)) ? (u || typeof a.UNSAFE_componentWillMount != "function" && typeof a.componentWillMount != "function" || (typeof a.componentWillMount == "function" && a.componentWillMount(), typeof a.UNSAFE_componentWillMount == "function" && a.UNSAFE_componentWillMount()), typeof a.componentDidMount == "function" && (t.flags |= 4194308)) : (typeof a.componentDidMount == "function" && (t.flags |= 4194308), t.memoizedProps = r, t.memoizedState = l), a.props = r, a.state = l, a.context = o, r = c) : (typeof a.componentDidMount == "function" && (t.flags |= 4194308), r = !1);
+ a.state = f, _o(t, r, a, i), go(), l = t.memoizedState, s || f !== l || so ? (typeof d == "function" && (mc(t, n, d, r), l = t.memoizedState), (c = so || gc(t, n, c, r, f, l, o)) ? (u || typeof a.UNSAFE_componentWillMount != "function" && typeof a.componentWillMount != "function" || (typeof a.componentWillMount == "function" && a.componentWillMount(), typeof a.UNSAFE_componentWillMount == "function" && a.UNSAFE_componentWillMount()), typeof a.componentDidMount == "function" && (t.flags |= 4194308)) : (typeof a.componentDidMount == "function" && (t.flags |= 4194308), t.memoizedProps = r, t.memoizedState = l), a.props = r, a.state = l, a.context = o, r = c) : (typeof a.componentDidMount == "function" && (t.flags |= 4194308), r = !1);
} else {
- a = t.stateNode, uo(e, t), o = t.memoizedProps, u = yc(n, o), a.props = u, d = t.pendingProps, f = a.context, l = n.contextType, c = Ti, typeof l == "object" && l && (c = ba(l)), s = n.getDerivedStateFromProps, (l = typeof s == "function" || typeof a.getSnapshotBeforeUpdate == "function") || typeof a.UNSAFE_componentWillReceiveProps != "function" && typeof a.componentWillReceiveProps != "function" || (o !== d || f !== c) && vc(t, a, r, c), co = !1, f = t.memoizedState, a.state = f, vo(t, r, a, i), _o();
+ a = t.stateNode, lo(e, t), o = t.memoizedProps, u = vc(n, o), a.props = u, d = t.pendingProps, f = a.context, l = n.contextType, c = Ei, typeof l == "object" && l && (c = ba(l)), s = n.getDerivedStateFromProps, (l = typeof s == "function" || typeof a.getSnapshotBeforeUpdate == "function") || typeof a.UNSAFE_componentWillReceiveProps != "function" && typeof a.componentWillReceiveProps != "function" || (o !== d || f !== c) && _c(t, a, r, c), so = !1, f = t.memoizedState, a.state = f, _o(t, r, a, i), go();
var p = t.memoizedState;
- o !== d || f !== p || co || e !== null && e.dependencies !== null && va(e.dependencies) ? (typeof s == "function" && (hc(t, n, s, r), p = t.memoizedState), (u = co || _c(t, n, u, r, f, p, c) || e !== null && e.dependencies !== null && va(e.dependencies)) ? (l || typeof a.UNSAFE_componentWillUpdate != "function" && typeof a.componentWillUpdate != "function" || (typeof a.componentWillUpdate == "function" && a.componentWillUpdate(r, p, c), typeof a.UNSAFE_componentWillUpdate == "function" && a.UNSAFE_componentWillUpdate(r, p, c)), typeof a.componentDidUpdate == "function" && (t.flags |= 4), typeof a.getSnapshotBeforeUpdate == "function" && (t.flags |= 1024)) : (typeof a.componentDidUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 4), typeof a.getSnapshotBeforeUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 1024), t.memoizedProps = r, t.memoizedState = p), a.props = r, a.state = p, a.context = c, r = u) : (typeof a.componentDidUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 4), typeof a.getSnapshotBeforeUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 1024), r = !1);
+ o !== d || f !== p || so || e !== null && e.dependencies !== null && va(e.dependencies) ? (typeof s == "function" && (mc(t, n, s, r), p = t.memoizedState), (u = so || gc(t, n, u, r, f, p, c) || e !== null && e.dependencies !== null && va(e.dependencies)) ? (l || typeof a.UNSAFE_componentWillUpdate != "function" && typeof a.componentWillUpdate != "function" || (typeof a.componentWillUpdate == "function" && a.componentWillUpdate(r, p, c), typeof a.UNSAFE_componentWillUpdate == "function" && a.UNSAFE_componentWillUpdate(r, p, c)), typeof a.componentDidUpdate == "function" && (t.flags |= 4), typeof a.getSnapshotBeforeUpdate == "function" && (t.flags |= 1024)) : (typeof a.componentDidUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 4), typeof a.getSnapshotBeforeUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 1024), t.memoizedProps = r, t.memoizedState = p), a.props = r, a.state = p, a.context = c, r = u) : (typeof a.componentDidUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 4), typeof a.getSnapshotBeforeUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 1024), r = !1);
}
- return a = r, Vc(e, t), r = !!(t.flags & 128), a || r ? (a = t.stateNode, n = r && typeof n.getDerivedStateFromError != "function" ? null : a.render(), t.flags |= 1, e !== null && r ? (t.child = oo(t, e.child, null, i), t.child = oo(t, null, n, i)) : jc(e, t, n, i), t.memoizedState = a.state, e = t.child) : e = ol(e, t, i), e;
+ return a = r, Bc(e, t), r = !!(t.flags & 128), a || r ? (a = t.stateNode, n = r && typeof n.getDerivedStateFromError != "function" ? null : a.render(), t.flags |= 1, e !== null && r ? (t.child = ao(t, e.child, null, i), t.child = ao(t, null, n, i)) : Ac(e, t, n, i), t.memoizedState = a.state, e = t.child) : e = al(e, t, i), e;
}
- function Gc(e, t, n, r) {
- return sa(), t.flags |= 256, jc(e, t, n, r), t.child;
+ function Wc(e, t, n, r) {
+ return sa(), t.flags |= 256, Ac(e, t, n, r), t.child;
}
- var Kc = {
+ var Gc = {
dehydrated: null,
treeContext: null,
retryLane: 0,
hydrationErrors: null
};
- function qc(e) {
+ function Kc(e) {
return {
baseLanes: e,
- cachePool: Ua()
+ cachePool: Ha()
};
}
- function Jc(e, t, n) {
+ function qc(e, t, n) {
return e = e === null ? 0 : e.childLanes & ~n, t && (e |= ld), e;
}
- function Yc(e, t, n) {
+ function Jc(e, t, n) {
var r = t.pendingProps, i = !1, a = !!(t.flags & 128), o;
- if ((o = a) || (o = e !== null && e.memoizedState === null ? !1 : !!(No.current & 2)), o && (i = !0, t.flags &= -129), o = !!(t.flags & 32), t.flags &= -33, e === null) {
+ if ((o = a) || (o = e !== null && e.memoizedState === null ? !1 : !!(Mo.current & 2)), o && (i = !0, t.flags &= -129), o = !!(t.flags & 32), t.flags &= -33, e === null) {
if (W) {
- if (i ? Oo(t) : jo(), (e = $i) ? (e = am(e, ta), e = e !== null && e.data !== "&" ? e : null, e !== null && (t.memoizedState = {
+ if (i ? Do(t) : Ao(), (e = $i) ? (e = am(e, ta), e = e !== null && e.data !== "&" ? e : null, e !== null && (t.memoizedState = {
dehydrated: e,
- treeContext: Wi === null ? null : {
- id: Gi,
- overflow: Ki
+ treeContext: Gi === null ? null : {
+ id: Ki,
+ overflow: qi
},
retryLane: 536870912,
hydrationErrors: null
- }, n = Pi(e), n.return = t, t.child = n, Qi = t, $i = null)) : e = null, e === null) throw ra(t);
+ }, n = Fi(e), n.return = t, t.child = n, U = t, $i = null)) : e = null, e === null) throw ra(t);
return t.lanes = sm(e) ? 32 : 536870912, null;
}
- return a = r.children, r = r.fallback, i ? (jo(), i = t.mode, a = Zc({
+ return a = r.children, r = r.fallback, i ? (Ao(), i = t.mode, a = Xc({
mode: "hidden",
children: a
- }, i), r = Mi(r, i, n, null), a.return = t, r.return = t, a.sibling = r, t.child = a, r = t.child, r.memoizedState = qc(n), r.childLanes = Jc(e, o, n), t.memoizedState = Kc, Ic(null, r)) : (Oo(t), Xc(t, a));
+ }, i), r = Ni(r, i, n, null), a.return = t, r.return = t, a.sibling = r, t.child = a, r = t.child, r.memoizedState = Kc(n), r.childLanes = qc(e, o, n), t.memoizedState = Gc, Fc(null, r)) : (Do(t), Yc(t, a));
}
var s = e.memoizedState;
if (s !== null) {
var c = s.dehydrated;
- if (c !== null) return $c(e, t, a, o, r, c, s, n);
+ if (c !== null) return Qc(e, t, a, o, r, c, s, n);
}
- return i ? (jo(), i = r.fallback, a = t.mode, s = e.child, c = s.sibling, r = ki(s, {
+ return i ? (Ao(), i = r.fallback, a = t.mode, s = e.child, c = s.sibling, r = Ai(s, {
mode: "hidden",
children: r.children
- }), r.subtreeFlags = s.subtreeFlags & 1206910976, c === null ? (i = Mi(i, a, n, null), i.flags |= 2) : i = ki(c, i), i.return = t, r.return = t, r.sibling = i, t.child = r, Ic(null, r), r = t.child, i = e.child.memoizedState, i === null ? i = qc(n) : (a = i.cachePool, a === null ? a = Ua() : (s = Ea._currentValue, a = a.parent === s ? a : {
+ }), r.subtreeFlags = s.subtreeFlags & 1206910976, c === null ? (i = Ni(i, a, n, null), i.flags |= 2) : i = Ai(c, i), i.return = t, r.return = t, r.sibling = i, t.child = r, Fc(null, r), r = t.child, i = e.child.memoizedState, i === null ? i = Kc(n) : (a = i.cachePool, a === null ? a = Ha() : (s = G._currentValue, a = a.parent === s ? a : {
parent: s,
pool: s
}), i = {
baseLanes: i.baseLanes | n,
cachePool: a
- }), r.memoizedState = i, r.childLanes = Jc(e, o, n), t.memoizedState = Kc, Ic(e.child, r)) : (Oo(t), n = e.child, e = n.sibling, n = ki(n, {
+ }), r.memoizedState = i, r.childLanes = qc(e, o, n), t.memoizedState = Gc, Fc(e.child, r)) : (Do(t), n = e.child, e = n.sibling, n = Ai(n, {
mode: "visible",
children: r.children
}), n.return = t, n.sibling = null, e !== null && (o = t.deletions, o === null ? (t.deletions = [e], t.flags |= 16) : o.push(e)), t.child = n, t.memoizedState = null, n);
}
- function Xc(e, t) {
- return t = Zc({
+ function Yc(e, t) {
+ return t = Xc({
mode: "visible",
children: t
}, e.mode), t.return = e, e.child = t;
}
- function Zc(e, t) {
- return e = Di(22, e, null, t), e.lanes = 0, e;
+ function Xc(e, t) {
+ return e = Oi(22, e, null, t), e.lanes = 0, e;
}
- function Qc(e, t, n) {
- return oo(t, e.child, null, n), e = Xc(t, t.pendingProps.children), e.flags |= 2, t.memoizedState = null, e;
+ function Zc(e, t, n) {
+ return ao(t, e.child, null, n), e = Yc(t, t.pendingProps.children), e.flags |= 2, t.memoizedState = null, e;
}
- function $c(e, t, n, r, a, o, s, c) {
- if (n) return t.flags & 256 ? (Oo(t), t.flags &= -257, Qc(e, t, c)) : t.memoizedState === null ? (jo(), o = a.fallback, s = t.mode, a = Zc({
+ function Qc(e, t, n, r, a, o, s, c) {
+ if (n) return t.flags & 256 ? (Do(t), t.flags &= -257, Zc(e, t, c)) : t.memoizedState === null ? (Ao(), o = a.fallback, s = t.mode, a = Xc({
mode: "visible",
children: a.children
- }, s), o = Mi(o, s, c, null), o.flags |= 2, a.return = t, o.return = t, a.sibling = o, t.child = a, oo(t, e.child, null, c), a = t.child, a.memoizedState = qc(c), a.childLanes = Jc(e, r, c), t.memoizedState = Kc, Ic(null, a)) : (jo(), t.child = e.child, t.flags |= 128, null);
- if (Oo(t), sm(o)) {
+ }, s), o = Ni(o, s, c, null), o.flags |= 2, a.return = t, o.return = t, a.sibling = o, t.child = a, ao(t, e.child, null, c), a = t.child, a.memoizedState = Kc(c), a.childLanes = qc(e, r, c), t.memoizedState = Gc, Fc(null, a)) : (Ao(), t.child = e.child, t.flags |= 128, null);
+ if (Do(t), sm(o)) {
if (r = o.nextSibling && o.nextSibling.dataset, r) var l = r.dgst;
return r = l, r !== "" && (a = Error(i(419)), a.stack = "", a.digest = r, la({
value: a,
source: null,
stack: null
- })), Qc(e, t, c);
+ })), Zc(e, t, c);
}
- if (Ac || _a(e, t, c, !1), r = (c & e.childLanes) !== 0, Ac || r) {
- if (xo.current !== null) return Qc(e, t, c);
- if (r = ed, r !== null && (a = ht(r, c), a !== 0 && a !== s.retryLane)) throw s.retryLane = a, Si(e, a), Md(r, e, a), kc;
- return om(o) || Wd(), Qc(e, t, c);
+ if (kc || _a(e, t, c, !1), r = (c & e.childLanes) !== 0, kc || r) {
+ if (bo.current !== null) return Zc(e, t, c);
+ if (r = $u, r !== null && (a = gt(r, c), a !== 0 && a !== s.retryLane)) throw s.retryLane = a, Ci(e, a), Md(r, e, a), Oc;
+ return om(o) || Wd(), Zc(e, t, c);
}
- return om(o) ? (t.flags |= 192, t.child = e.child, null) : (e = s.treeContext, $i = lm(o.nextSibling), Qi = t, W = !0, ea = null, ta = !1, e !== null && Zi(t, e), t = Xc(t, a.children), t.flags |= 134221824, t);
+ return om(o) ? (t.flags |= 192, t.child = e.child, null) : (e = s.treeContext, $i = lm(o.nextSibling), U = t, W = !0, ea = null, ta = !1, e !== null && Qi(t, e), t = Yc(t, a.children), t.flags |= 134221824, t);
}
- function el(e, t, n) {
+ function $c(e, t, n) {
e.lanes |= t;
var r = e.alternate;
r !== null && (r.lanes |= t), ha(e.return, t, n);
}
- function tl(e) {
+ function el(e) {
for (var t = null; e !== null;) {
var n = e.alternate;
- n !== null && Io(n) === null && (t = e), e = e.sibling;
+ n !== null && Fo(n) === null && (t = e), e = e.sibling;
}
return t;
}
- function nl(e, t, n, r, i, a) {
+ function tl(e, t, n, r, i, a) {
var o = e.memoizedState;
o === null ? e.memoizedState = {
isBackwards: t,
@@ -11596,22 +11699,22 @@ var au = /* @__PURE__ */ p(((e) => {
treeForkCount: a
} : (o.isBackwards = t, o.rendering = null, o.renderingStartTime = 0, o.last = r, o.tail = n, o.tailMode = i, o.treeForkCount = a);
}
- function rl(e) {
+ function nl(e) {
var t = e.child;
for (e.child = null; t !== null;) {
var n = t.sibling;
t.sibling = e.child, e.child = t, t = n;
}
}
- function il(e, t, n) {
+ function rl(e, t, n) {
var r = t.pendingProps, i = r.revealOrder, a = r.tail;
r = r.children;
- var o = No.current;
- if (t.flags & 128) return Po(t, o), null;
+ var o = Mo.current;
+ if (t.flags & 128) return No(t, o), null;
var s = !!(o & 2);
- if (s ? (o = o & 1 | 2, t.flags |= 128) : o &= 1, Po(t, o), i === "backwards" && e !== null ? (rl(e), jc(e, t, r, n), rl(e)) : jc(e, t, r, n), r = W ? Vi : 0, !s && e !== null && e.flags & 128) a: for (e = t.child; e !== null;) {
- if (e.tag === 13) e.memoizedState !== null && el(e, n, t);
- else if (e.tag === 19) el(e, n, t);
+ if (s ? (o = o & 1 | 2, t.flags |= 128) : o &= 1, No(t, o), i === "backwards" && e !== null ? (nl(e), Ac(e, t, r, n), nl(e)) : Ac(e, t, r, n), r = W ? Hi : 0, !s && e !== null && e.flags & 128) a: for (e = t.child; e !== null;) {
+ if (e.tag === 13) e.memoizedState !== null && $c(e, n, t);
+ else if (e.tag === 19) $c(e, n, t);
else if (e.child !== null) {
e.child.return = e, e = e.child;
continue;
@@ -11625,33 +11728,33 @@ var au = /* @__PURE__ */ p(((e) => {
}
switch (i) {
case "backwards":
- n = tl(t.child), n === null ? (i = t.child, t.child = null) : (i = n.sibling, n.sibling = null, rl(t)), nl(t, !0, i, null, a, r);
+ n = el(t.child), n === null ? (i = t.child, t.child = null) : (i = n.sibling, n.sibling = null, nl(t)), tl(t, !0, i, null, a, r);
break;
case "unstable_legacy-backwards":
for (n = null, i = t.child, t.child = null; i !== null;) {
- if (e = i.alternate, e !== null && Io(e) === null) {
+ if (e = i.alternate, e !== null && Fo(e) === null) {
t.child = i;
break;
}
e = i.sibling, i.sibling = n, n = i, i = e;
}
- nl(t, !0, n, null, a, r);
+ tl(t, !0, n, null, a, r);
break;
case "together":
- nl(t, !1, null, null, void 0, r);
+ tl(t, !1, null, null, void 0, r);
break;
case "independent":
t.memoizedState = null;
break;
- default: n = tl(t.child), n === null ? (i = t.child, t.child = null) : (i = n.sibling, n.sibling = null), nl(t, !1, i, n, a, r);
+ default: n = el(t.child), n === null ? (i = t.child, t.child = null) : (i = n.sibling, n.sibling = null), tl(t, !1, i, n, a, r);
}
return t.child;
}
- function al(e, t, n) {
+ function il(e, t, n) {
var r = t.pendingProps;
- return pa(t, t.type, r.value), jc(e, t, r.children, n), t.child;
+ return pa(t, t.type, r.value), Ac(e, t, r.children, n), t.child;
}
- function ol(e, t, n) {
+ function al(e, t, n) {
if (e !== null && (t.dependencies = e.dependencies), od |= t.lanes, (n & t.childLanes) === 0) {
if (e !== null) {
if (_a(e, t, n, !1), (n & t.childLanes) === 0) return null;
@@ -11659,108 +11762,108 @@ var au = /* @__PURE__ */ p(((e) => {
}
if (e !== null && t.child !== e.child) throw Error(i(153));
if (t.child !== null) {
- for (e = t.child, n = ki(e, e.pendingProps), t.child = n, n.return = t; e.sibling !== null;) e = e.sibling, n = n.sibling = ki(e, e.pendingProps), n.return = t;
+ for (e = t.child, n = Ai(e, e.pendingProps), t.child = n, n.return = t; e.sibling !== null;) e = e.sibling, n = n.sibling = Ai(e, e.pendingProps), n.return = t;
n.sibling = null;
}
return t.child;
}
- function sl(e, t) {
+ function ol(e, t) {
return (e.lanes & t) !== 0 || (e = e.dependencies, !!(e !== null && va(e)));
}
- function cl(e, t, n) {
+ function sl(e, t, n) {
switch (t.tag) {
case 3:
- Ce(t, t.stateNode.containerInfo), pa(t, Ea, e.memoizedState.cache), sa();
+ we(t, t.stateNode.containerInfo), pa(t, G, e.memoizedState.cache), sa();
break;
case 27:
case 5:
- Te(t);
+ Ee(t);
break;
case 4:
- Ce(t, t.stateNode.containerInfo);
+ we(t, t.stateNode.containerInfo);
break;
case 10:
pa(t, t.type, t.memoizedProps.value);
break;
case 31:
- if (t.memoizedState !== null) return t.flags |= 128, ko(t), null;
+ if (t.memoizedState !== null) return t.flags |= 128, Oo(t), null;
break;
case 13:
var r = t.memoizedState;
if (r !== null) {
- if (r.dehydrated !== null) return Oo(t), t.flags |= 128, null;
+ if (r.dehydrated !== null) return Do(t), t.flags |= 128, null;
r = _a(e, t, n, !1);
var i = t.child.childLanes;
- return r || (n & i) !== 0 ? Yc(e, t, n) : (Oo(t), e = ol(e, t, n), e === null ? null : e.sibling);
+ return r || (n & i) !== 0 ? Jc(e, t, n) : (Do(t), e = al(e, t, n), e === null ? null : e.sibling);
}
- Oo(t);
+ Do(t);
break;
case 19:
- if (t.flags & 128) return il(e, t, n);
+ if (t.flags & 128) return rl(e, t, n);
if (i = !!(e.flags & 128), r = (n & t.childLanes) !== 0, r ||= (_a(e, t, n, !1), (n & t.childLanes) !== 0), i) {
- if (r) return il(e, t, n);
+ if (r) return rl(e, t, n);
t.flags |= 128;
}
- if (i = t.memoizedState, i !== null && (i.rendering = null, i.tail = null, i.lastEffect = null), Po(t, No.current), r) break;
+ if (i = t.memoizedState, i !== null && (i.rendering = null, i.tail = null, i.lastEffect = null), No(t, Mo.current), r) break;
return null;
- case 22: return t.lanes = 0, Fc(e, t, n, t.pendingProps);
- case 24: pa(t, Ea, e.memoizedState.cache);
+ case 22: return t.lanes = 0, Pc(e, t, n, t.pendingProps);
+ case 24: pa(t, G, e.memoizedState.cache);
}
- return ol(e, t, n);
+ return al(e, t, n);
}
- function ll(e, t, n) {
+ function cl(e, t, n) {
if (e !== null) {
- if (e.memoizedProps !== t.pendingProps) Ac = !0;
+ if (e.memoizedProps !== t.pendingProps) kc = !0;
else {
- if (!sl(e, n) && !(t.flags & 128)) return Ac = !1, cl(e, t, n);
- Ac = !!(e.flags & 131072);
+ if (!ol(e, n) && !(t.flags & 128)) return kc = !1, sl(e, t, n);
+ kc = !!(e.flags & 131072);
}
- } else Ac = !1, W && t.flags & 1048576 && Ji(t, Vi, t.index);
+ } else kc = !1, W && t.flags & 1048576 && Yi(t, Hi, t.index);
switch (t.lanes = 0, t.tag) {
case 16:
a: {
var r = t.pendingProps;
- if (e = Xa(t.elementType), t.type = e, typeof e == "function") Oi(e) ? (r = yc(e, r), t.tag = 1, t = Wc(null, t, e, r, n)) : (t.tag = 0, t = Hc(null, t, e, r, n));
+ if (e = Ya(t.elementType), t.type = e, typeof e == "function") ki(e) ? (r = vc(e, r), t.tag = 1, t = Uc(null, t, e, r, n)) : (t.tag = 0, t = Vc(null, t, e, r, n));
else {
if (e != null) {
var a = e.$$typeof;
- if (a === ee) {
- t.tag = 11, t = Mc(null, t, e, r, n);
+ if (a === M) {
+ t.tag = 11, t = jc(null, t, e, r, n);
break a;
}
- if (a === ne) {
- t.tag = 14, t = Nc(null, t, e, r, n);
+ if (a === re) {
+ t.tag = 14, t = Mc(null, t, e, r, n);
break a;
}
- if (a === N) {
- t.tag = 10, t.type = e, t = al(null, t, n);
+ if (a === te) {
+ t.tag = 10, t.type = e, t = il(null, t, n);
break a;
}
}
- throw t = de(e) || e, Error(i(306, t, ""));
+ throw t = fe(e) || e, Error(i(306, t, ""));
}
}
return t;
- case 0: return Hc(e, t, t.type, t.pendingProps, n);
- case 1: return r = t.type, a = yc(r, t.pendingProps), Wc(e, t, r, a, n);
+ case 0: return Vc(e, t, t.type, t.pendingProps, n);
+ case 1: return r = t.type, a = vc(r, t.pendingProps), Uc(e, t, r, a, n);
case 3:
a: {
- if (Ce(t, t.stateNode.containerInfo), e === null) throw Error(i(387));
+ if (we(t, t.stateNode.containerInfo), e === null) throw Error(i(387));
r = t.pendingProps;
var o = t.memoizedState;
- a = o.element, uo(e, t), vo(t, r, null, n);
+ a = o.element, lo(e, t), _o(t, r, null, n);
var s = t.memoizedState;
- if (r = s.cache, pa(t, Ea, r), r !== o.cache && ga(t, [Ea], n, !0), _o(), r = s.element, o.isDehydrated) {
+ if (r = s.cache, pa(t, G, r), r !== o.cache && ga(t, [G], n, !0), go(), r = s.element, o.isDehydrated) {
if (o = {
element: r,
isDehydrated: !1,
cache: s.cache
}, t.updateQueue.baseState = o, t.memoizedState = o, t.flags & 256) {
- t = Gc(e, t, r, n);
+ t = Wc(e, t, r, n);
break a;
}
if (r !== a) {
- a = Li(Error(i(424)), t), la(a), t = Gc(e, t, r, n);
+ a = Ri(Error(i(424)), t), la(a), t = Wc(e, t, r, n);
break a;
}
switch (e = t.stateNode.containerInfo, e.nodeType) {
@@ -11769,75 +11872,75 @@ var au = /* @__PURE__ */ p(((e) => {
break;
default: e = e.nodeName === "HTML" ? e.ownerDocument.body : e;
}
- for ($i = lm(e.firstChild), Qi = t, W = !0, ea = null, ta = !0, n = so(t, null, r, n), t.child = n; n;) n.flags = n.flags & -3 | 134221824, n = n.sibling;
+ for ($i = lm(e.firstChild), U = t, W = !0, ea = null, ta = !0, n = oo(t, null, r, n), t.child = n; n;) n.flags = n.flags & -3 | 134221824, n = n.sibling;
} else {
if (sa(), r === a) {
- t = ol(e, t, n);
+ t = al(e, t, n);
break a;
}
- jc(e, t, r, n);
+ Ac(e, t, r, n);
}
t = t.child;
}
return t;
- case 26: return Vc(e, t), e === null ? (n = Nm(t.type, null, t.pendingProps, null)) ? t.memoizedState = n : W || (t.stateNode = fp(t.type, t.pendingProps, xe.current, t)) : t.memoizedState = Nm(t.type, e.memoizedProps, t.pendingProps, e.memoizedState), null;
- case 27: return Te(t), e === null && W && (r = t.stateNode = hm(t.type, t.pendingProps, xe.current), Qi = t, ta = !0, a = $i, Sp(t.type) ? (um = a, $i = lm(r.firstChild)) : $i = a), jc(e, t, t.pendingProps.children, n), Vc(e, t), e === null && (t.flags |= 4194304), t.child;
- case 5: return e === null && W && ((a = r = $i) && (r = rm(r, t.type, t.pendingProps, ta), r === null ? a = !1 : (t.stateNode = r, Qi = t, $i = lm(r.firstChild), ta = !1, a = !0)), a || ra(t)), Te(t), a = t.type, o = t.pendingProps, s = e === null ? null : e.memoizedProps, r = o.children, pp(a, o) ? r = null : s !== null && pp(a, s) && (t.flags |= 32), t.memoizedState !== null && (a = Yo(e, t, Qo, null, null, n), sh._currentValue = a), Vc(e, t), jc(e, t, r, n), t.child;
- case 6: return e === null && W && ((e = n = $i) && (n = im(n, t.pendingProps, ta), n === null ? e = !1 : (t.stateNode = n, Qi = t, $i = null, e = !0)), e || ra(t)), null;
- case 13: return Yc(e, t, n);
- case 4: return Ce(t, t.stateNode.containerInfo), r = t.pendingProps, e === null ? t.child = oo(t, null, r, n) : jc(e, t, r, n), t.child;
- case 11: return Mc(e, t, t.type, t.pendingProps, n);
- case 7: return r = t.pendingProps, Vc(e, t), jc(e, t, r, n), t.child;
- case 8: return jc(e, t, t.pendingProps.children, n), t.child;
- case 12: return jc(e, t, t.pendingProps.children, n), t.child;
- case 10: return al(e, t, n);
- case 9: return a = t.type._context, r = t.pendingProps.children, ya(t), a = ba(a), r = r(a), t.flags |= 1, jc(e, t, r, n), t.child;
- case 14: return Nc(e, t, t.type, t.pendingProps, n);
- case 15: return Pc(e, t, t.type, t.pendingProps, n);
- case 19: return il(e, t, n);
- case 31: return Bc(e, t, n);
- case 22: return Fc(e, t, n, t.pendingProps);
- case 24: return ya(t), r = ba(Ea), e === null ? (a = Va(), a === null && (a = ed, o = Da(), a.pooledCache = o, o.refCount++, o !== null && (a.pooledCacheLanes |= n), a = o), t.memoizedState = {
+ case 26: return Bc(e, t), e === null ? (n = Nm(t.type, null, t.pendingProps, null)) ? t.memoizedState = n : W || (t.stateNode = fp(t.type, t.pendingProps, Se.current, t)) : t.memoizedState = Nm(t.type, e.memoizedProps, t.pendingProps, e.memoizedState), null;
+ case 27: return Ee(t), e === null && W && (r = t.stateNode = hm(t.type, t.pendingProps, Se.current), U = t, ta = !0, a = $i, Sp(t.type) ? (um = a, $i = lm(r.firstChild)) : $i = a), Ac(e, t, t.pendingProps.children, n), Bc(e, t), e === null && (t.flags |= 4194304), t.child;
+ case 5: return e === null && W && ((a = r = $i) && (r = rm(r, t.type, t.pendingProps, ta), r === null ? a = !1 : (t.stateNode = r, U = t, $i = lm(r.firstChild), ta = !1, a = !0)), a || ra(t)), Ee(t), a = t.type, o = t.pendingProps, s = e === null ? null : e.memoizedProps, r = o.children, pp(a, o) ? r = null : s !== null && pp(a, s) && (t.flags |= 32), t.memoizedState !== null && (a = Jo(e, t, Zo, null, null, n), sh._currentValue = a), Bc(e, t), Ac(e, t, r, n), t.child;
+ case 6: return e === null && W && ((e = n = $i) && (n = im(n, t.pendingProps, ta), n === null ? e = !1 : (t.stateNode = n, U = t, $i = null, e = !0)), e || ra(t)), null;
+ case 13: return Jc(e, t, n);
+ case 4: return we(t, t.stateNode.containerInfo), r = t.pendingProps, e === null ? t.child = ao(t, null, r, n) : Ac(e, t, r, n), t.child;
+ case 11: return jc(e, t, t.type, t.pendingProps, n);
+ case 7: return r = t.pendingProps, Bc(e, t), Ac(e, t, r, n), t.child;
+ case 8: return Ac(e, t, t.pendingProps.children, n), t.child;
+ case 12: return Ac(e, t, t.pendingProps.children, n), t.child;
+ case 10: return il(e, t, n);
+ case 9: return a = t.type._context, r = t.pendingProps.children, ya(t), a = ba(a), r = r(a), t.flags |= 1, Ac(e, t, r, n), t.child;
+ case 14: return Mc(e, t, t.type, t.pendingProps, n);
+ case 15: return Nc(e, t, t.type, t.pendingProps, n);
+ case 19: return rl(e, t, n);
+ case 31: return zc(e, t, n);
+ case 22: return Pc(e, t, n, t.pendingProps);
+ case 24: return ya(t), r = ba(G), e === null ? (a = Ba(), a === null && (a = $u, o = Ea(), a.pooledCache = o, o.refCount++, o !== null && (a.pooledCacheLanes |= n), a = o), t.memoizedState = {
parent: r,
cache: a
- }, lo(t), pa(t, Ea, a)) : ((e.lanes & n) !== 0 && (uo(e, t), vo(t, null, null, n), _o()), a = e.memoizedState, o = t.memoizedState, a.parent === r ? (r = o.cache, pa(t, Ea, r), r !== a.cache && ga(t, [Ea], n, !0)) : (a = {
+ }, co(t), pa(t, G, a)) : ((e.lanes & n) !== 0 && (lo(e, t), _o(t, null, null, n), go()), a = e.memoizedState, o = t.memoizedState, a.parent === r ? (r = o.cache, pa(t, G, r), r !== a.cache && ga(t, [G], n, !0)) : (a = {
parent: r,
cache: r
- }, t.memoizedState = a, t.lanes === 0 && (t.memoizedState = t.updateQueue.baseState = a), pa(t, Ea, r))), jc(e, t, t.pendingProps.children, n), t.child;
+ }, t.memoizedState = a, t.lanes === 0 && (t.memoizedState = t.updateQueue.baseState = a), pa(t, G, r))), Ac(e, t, t.pendingProps.children, n), t.child;
case 30: return t.stateNode === null && (t.stateNode = {
autoName: null,
paired: null,
clones: null,
ref: null
- }), r = t.pendingProps, r.name != null && r.name !== "auto" ? t.flags |= e === null ? 18882560 : 18874368 : W && Yi(t), e !== null && e.memoizedProps.name !== r.name ? t.flags |= 4194816 : Vc(e, t), jc(e, t, r.children, n), t.child;
+ }), r = t.pendingProps, r.name != null && r.name !== "auto" ? t.flags |= e === null ? 18882560 : 18874368 : W && Xi(t), e !== null && e.memoizedProps.name !== r.name ? t.flags |= 4194816 : Bc(e, t), Ac(e, t, r.children, n), t.child;
case 29: throw t.pendingProps;
}
throw Error(i(156, t.tag));
}
- function ul(e) {
+ function ll(e) {
e.flags |= 4;
}
- function dl(e, t, n, r, i) {
+ function ul(e, t, n, r, i) {
var a;
if ((a = !!(e.mode & 32)) && (a = n === null ? Jm(t, r) : Jm(t, r) && (r.src !== n.src || r.srcSet !== n.srcSet)), a) {
if (e.flags |= 16777216, (i & 335544128) === i) {
if (e.stateNode.complete) e.flags |= 8192;
else if (Vd()) e.flags |= 8192;
- else throw Za = qa, Ga;
+ else throw Xa = Ka, Wa;
}
} else e.flags &= -16777217;
}
- function fl(e, t) {
+ function dl(e, t) {
if (t.type !== "stylesheet" || t.state.loading & 4) e.flags &= -16777217;
else if (e.flags |= 16777216, !Ym(t)) {
if (Vd()) e.flags |= 8192;
- else throw Za = qa, Ga;
+ else throw Xa = Ka, Wa;
}
}
- function pl(e, t) {
- t !== null && (e.flags |= 4), e.flags & 16384 && (t = e.tag === 22 ? 536870912 : lt(), e.lanes |= t, ud |= t);
+ function fl(e, t) {
+ t !== null && (e.flags |= 4), e.flags & 16384 && (t = e.tag === 22 ? 536870912 : ut(), e.lanes |= t, ud |= t);
}
- function ml(e, t) {
+ function pl(e, t) {
if (!W) switch (e.tailMode) {
case "visible": break;
case "collapsed":
@@ -11849,7 +11952,7 @@ var au = /* @__PURE__ */ p(((e) => {
n === null ? e.tail = null : n.sibling = null;
}
}
- function K(e) {
+ function ml(e) {
var t = e.alternate !== null && e.alternate.child === e.child, n = 0, r = 0;
if (t) for (var i = e.child; i !== null;) n |= i.lanes | i.childLanes, r |= i.subtreeFlags & 1206910976, r |= i.flags & 1206910976, i.return = e, i = i.sibling;
else for (i = e.child; i !== null;) n |= i.lanes | i.childLanes, r |= i.subtreeFlags, r |= i.flags, i.return = e, i = i.sibling;
@@ -11857,7 +11960,7 @@ var au = /* @__PURE__ */ p(((e) => {
}
function hl(e, t, n) {
var r = t.pendingProps;
- switch (Xi(t), t.tag) {
+ switch (Zi(t), t.tag) {
case 16:
case 15:
case 0:
@@ -11866,32 +11969,32 @@ var au = /* @__PURE__ */ p(((e) => {
case 8:
case 12:
case 9:
- case 14: return K(t), null;
- case 1: return K(t), null;
- case 3: return n = t.stateNode, r = null, e !== null && (r = e.memoizedState.cache), t.memoizedState.cache !== r && (t.flags |= 2048), ma(Ea), we(), n.pendingContext && (n.context = n.pendingContext, n.pendingContext = null), (e === null || e.child === null) && (oa(t) ? ul(t) : e === null || e.memoizedState.isDehydrated && !(t.flags & 256) || (t.flags |= 1024, ca())), K(t), null;
+ case 14: return ml(t), null;
+ case 1: return ml(t), null;
+ case 3: return n = t.stateNode, r = null, e !== null && (r = e.memoizedState.cache), t.memoizedState.cache !== r && (t.flags |= 2048), ma(G), Te(), n.pendingContext && (n.context = n.pendingContext, n.pendingContext = null), (e === null || e.child === null) && (oa(t) ? ll(t) : e === null || e.memoizedState.isDehydrated && !(t.flags & 256) || (t.flags |= 1024, ca())), ml(t), null;
case 26:
var a = t.type, o = t.memoizedState;
- return e === null ? (ul(t), o === null ? (K(t), dl(t, a, null, r, n)) : (K(t), fl(t, o))) : o ? o === e.memoizedState ? (K(t), t.flags &= -16777217) : (ul(t), K(t), fl(t, o)) : (e = e.memoizedProps, e !== r && ul(t), K(t), dl(t, a, e, r, n)), null;
+ return e === null ? (ll(t), o === null ? (ml(t), ul(t, a, null, r, n)) : (ml(t), dl(t, o))) : o ? o === e.memoizedState ? (ml(t), t.flags &= -16777217) : (ll(t), ml(t), dl(t, o)) : (e = e.memoizedProps, e !== r && ll(t), ml(t), ul(t, a, e, r, n)), null;
case 27:
- if (Ee(t), n = xe.current, a = t.type, e !== null && t.stateNode != null) e.memoizedProps !== r && ul(t);
+ if (De(t), n = Se.current, a = t.type, e !== null && t.stateNode != null) e.memoizedProps !== r && ll(t);
else {
if (!r) {
if (t.stateNode === null) throw Error(i(166));
- return K(t), t.subtreeFlags &= -33554433, null;
+ return ml(t), t.subtreeFlags &= -33554433, null;
}
- e = ye.current, oa(t) ? ia(t, e) : (e = hm(a, r, n), t.stateNode = e, ul(t));
+ e = be.current, oa(t) ? ia(t, e) : (e = hm(a, r, n), t.stateNode = e, ll(t));
}
- return K(t), t.subtreeFlags &= -33554433, null;
+ return ml(t), t.subtreeFlags &= -33554433, null;
case 5:
- if (Ee(t), a = t.type, e !== null && t.stateNode != null) e.memoizedProps !== r && ul(t);
+ if (De(t), a = t.type, e !== null && t.stateNode != null) e.memoizedProps !== r && ll(t);
else {
if (!r) {
if (t.stateNode === null) throw Error(i(166));
- return K(t), t.subtreeFlags &= -33554433, null;
+ return ml(t), t.subtreeFlags &= -33554433, null;
}
- if (o = ye.current, oa(t)) ia(t, o);
+ if (o = be.current, oa(t)) ia(t, o);
else {
- var s = lp(xe.current);
+ var s = lp(Se.current);
switch (o) {
case 1:
o = s.createElementNS("http://www.w3.org/2000/svg", a);
@@ -11915,7 +12018,7 @@ var au = /* @__PURE__ */ p(((e) => {
default: o = typeof r.is == "string" ? s.createElement(a, { is: r.is }) : s.createElement(a);
}
}
- o[xt] = t, o[R] = r;
+ o[St] = t, o[Ct] = r;
a: for (s = t.child; s !== null;) {
if (s.tag === 5 || s.tag === 6) o.appendChild(s.stateNode);
else if (s.tag !== 4 && s.tag !== 27 && s.child !== null) {
@@ -11942,71 +12045,71 @@ var au = /* @__PURE__ */ p(((e) => {
break a;
default: r = !1;
}
- r && ul(t);
+ r && ll(t);
}
}
- return K(t), t.subtreeFlags &= -33554433, dl(t, t.type, e === null ? null : e.memoizedProps, t.pendingProps, n), null;
+ return ml(t), t.subtreeFlags &= -33554433, ul(t, t.type, e === null ? null : e.memoizedProps, t.pendingProps, n), null;
case 6:
- if (e && t.stateNode != null) e.memoizedProps !== r && ul(t);
+ if (e && t.stateNode != null) e.memoizedProps !== r && ll(t);
else {
if (typeof r != "string" && t.stateNode === null) throw Error(i(166));
- if (e = xe.current, oa(t)) {
- if (e = t.stateNode, n = t.memoizedProps, r = null, a = Qi, a !== null) switch (a.tag) {
+ if (e = Se.current, oa(t)) {
+ if (e = t.stateNode, n = t.memoizedProps, r = null, a = U, a !== null) switch (a.tag) {
case 27:
case 5: r = a.memoizedProps;
}
- e[xt] = t, e = !!(e.nodeValue === n || r !== null && !0 === r.suppressHydrationWarning || $f(e.nodeValue, n)), e || ra(t, !0);
- } else e = lp(e).createTextNode(r), e[xt] = t, t.stateNode = e;
+ e[St] = t, e = !!(e.nodeValue === n || r !== null && !0 === r.suppressHydrationWarning || $f(e.nodeValue, n)), e || ra(t, !0);
+ } else e = lp(e).createTextNode(r), e[St] = t, t.stateNode = e;
}
- return K(t), null;
+ return ml(t), null;
case 31:
if (n = t.memoizedState, e === null || e.memoizedState !== null) {
if (r = oa(t), n !== null) {
if (e === null) {
if (!r) throw Error(i(318));
if (e = t.memoizedState, e = e === null ? null : e.dehydrated, !e) throw Error(i(557));
- e[xt] = t;
+ e[St] = t;
} else sa(), !(t.flags & 128) && (t.memoizedState = null), t.flags |= 4;
- K(t), e = !1;
+ ml(t), e = !1;
} else n = ca(), e !== null && e.memoizedState !== null && (e.memoizedState.hydrationErrors = n), e = !0;
- if (!e) return t.flags & 256 ? (Mo(t), t) : (Mo(t), null);
+ if (!e) return t.flags & 256 ? (jo(t), t) : (jo(t), null);
if (t.flags & 128) throw Error(i(558));
}
- return K(t), null;
+ return ml(t), null;
case 13:
if (r = t.memoizedState, e === null || e.memoizedState !== null && e.memoizedState.dehydrated !== null) {
if (a = oa(t), r !== null && r.dehydrated !== null) {
if (e === null) {
if (!a) throw Error(i(318));
if (a = t.memoizedState, a = a === null ? null : a.dehydrated, !a) throw Error(i(317));
- a[xt] = t;
+ a[St] = t;
} else sa(), !(t.flags & 128) && (t.memoizedState = null), t.flags |= 4;
- K(t), a = !1;
+ ml(t), a = !1;
} else a = ca(), e !== null && e.memoizedState !== null && (e.memoizedState.hydrationErrors = a), a = !0;
- if (!a) return t.flags & 256 ? (Mo(t), t) : (Mo(t), null);
+ if (!a) return t.flags & 256 ? (jo(t), t) : (jo(t), null);
}
- return Mo(t), t.flags & 128 ? (t.lanes = n, t) : (n = r !== null, e = e !== null && e.memoizedState !== null, n && (r = t.child, a = null, r.alternate !== null && r.alternate.memoizedState !== null && r.alternate.memoizedState.cachePool !== null && (a = r.alternate.memoizedState.cachePool.pool), o = null, r.memoizedState !== null && r.memoizedState.cachePool !== null && (o = r.memoizedState.cachePool.pool), o !== a && (r.flags |= 2048)), n !== e && n && (t.child.flags |= 8192), pl(t, t.updateQueue), K(t), null);
- case 4: return we(), e === null && Uf(t.stateNode.containerInfo), t.flags |= 67108864, K(t), null;
- case 10: return ma(t.type), K(t), null;
+ return jo(t), t.flags & 128 ? (t.lanes = n, t) : (n = r !== null, e = e !== null && e.memoizedState !== null, n && (r = t.child, a = null, r.alternate !== null && r.alternate.memoizedState !== null && r.alternate.memoizedState.cachePool !== null && (a = r.alternate.memoizedState.cachePool.pool), o = null, r.memoizedState !== null && r.memoizedState.cachePool !== null && (o = r.memoizedState.cachePool.pool), o !== a && (r.flags |= 2048)), n !== e && n && (t.child.flags |= 8192), fl(t, t.updateQueue), ml(t), null);
+ case 4: return Te(), e === null && Uf(t.stateNode.containerInfo), t.flags |= 67108864, ml(t), null;
+ case 10: return ma(t.type), ml(t), null;
case 19:
- if (Fo(t), r = t.memoizedState, r === null) return K(t), null;
+ if (Po(t), r = t.memoizedState, r === null) return ml(t), null;
if (a = !!(t.flags & 128), o = r.rendering, o === null) {
- if (a) ml(r, !1);
+ if (a) pl(r, !1);
else {
if (ad !== 0 || e !== null && e.flags & 128) for (e = t.child; e !== null;) {
- if (o = Io(e), o !== null) {
- for (t.flags |= 128, ml(r, !1), e = o.updateQueue, t.updateQueue = e, pl(t, e), t.subtreeFlags = 0, e = n, n = t.child; n !== null;) Ai(n, e), n = n.sibling;
- return Po(t, No.current & 1 | 2), W && qi(t, r.treeForkCount), t.child;
+ if (o = Fo(e), o !== null) {
+ for (t.flags |= 128, pl(r, !1), e = o.updateQueue, t.updateQueue = e, fl(t, e), t.subtreeFlags = 0, e = n, n = t.child; n !== null;) ji(n, e), n = n.sibling;
+ return No(t, Mo.current & 1 | 2), W && Ji(t, r.treeForkCount), t.child;
}
e = e.sibling;
}
- r.tail !== null && ze() > hd && (t.flags |= 128, a = !0, ml(r, !1), t.lanes = 4194304);
+ r.tail !== null && Be() > Z && (t.flags |= 128, a = !0, pl(r, !1), t.lanes = 4194304);
}
} else {
if (!a) {
- if (e = Io(o), e !== null) {
- if (t.flags |= 128, a = !0, e = e.updateQueue, t.updateQueue = e, pl(t, e), ml(r, !0), r.tail === null && r.tailMode !== "collapsed" && r.tailMode !== "visible" && !o.alternate && !W) return K(t), null;
- } else 2 * ze() - r.renderingStartTime > hd && n !== 536870912 && (t.flags |= 128, a = !0, ml(r, !1), t.lanes = 4194304);
+ if (e = Fo(o), e !== null) {
+ if (t.flags |= 128, a = !0, e = e.updateQueue, t.updateQueue = e, fl(t, e), pl(r, !0), r.tail === null && r.tailMode !== "collapsed" && r.tailMode !== "visible" && !o.alternate && !W) return ml(t), null;
+ } else 2 * Be() - r.renderingStartTime > Z && n !== 536870912 && (t.flags |= 128, a = !0, pl(r, !1), t.lanes = 4194304);
}
r.isBackwards ? (o.sibling = t.child, t.child = o) : (e = r.last, e === null ? t.child = o : e.sibling = o, r.last = o);
}
@@ -12022,76 +12125,76 @@ var au = /* @__PURE__ */ p(((e) => {
}
n = !0;
}
- return r.rendering = e, r.tail = e.sibling, r.renderingStartTime = ze(), e.sibling = null, o = No.current, o = a ? o & 1 | 2 : o & 1, r.tailMode === "visible" || r.tailMode === "collapsed" || !n || W ? Po(t, o) : (n = o, ve(Eo, t), ve(No, n), Do === null && (Do = t)), W && qi(t, r.treeForkCount), e;
+ return r.rendering = e, r.tail = e.sibling, r.renderingStartTime = Be(), e.sibling = null, o = Mo.current, o = a ? o & 1 | 2 : o & 1, r.tailMode === "visible" || r.tailMode === "collapsed" || !n || W ? No(t, o) : (n = o, ye(To, t), ye(Mo, n), Eo === null && (Eo = t)), W && Ji(t, r.treeForkCount), e;
}
- return K(t), null;
+ return ml(t), null;
case 22:
- case 23: return Mo(t), To(), r = t.memoizedState !== null, e === null ? r && (t.flags |= 8192) : e.memoizedState !== null !== r && (t.flags |= 8192), r ? n & 536870912 && !(t.flags & 128) && (K(t), t.subtreeFlags & 6 && (t.flags |= 8192)) : K(t), n = t.updateQueue, n !== null && pl(t, n.retryQueue), n = null, e !== null && e.memoizedState !== null && e.memoizedState.cachePool !== null && (n = e.memoizedState.cachePool.pool), r = null, t.memoizedState !== null && t.memoizedState.cachePool !== null && (r = t.memoizedState.cachePool.pool), r !== n && (t.flags |= 2048), e !== null && _e(Ba), null;
- case 24: return n = null, e !== null && (n = e.memoizedState.cache), t.memoizedState.cache !== n && (t.flags |= 2048), ma(Ea), K(t), null;
+ case 23: return jo(t), wo(), r = t.memoizedState !== null, e === null ? r && (t.flags |= 8192) : e.memoizedState !== null !== r && (t.flags |= 8192), r ? n & 536870912 && !(t.flags & 128) && (ml(t), t.subtreeFlags & 6 && (t.flags |= 8192)) : ml(t), n = t.updateQueue, n !== null && fl(t, n.retryQueue), n = null, e !== null && e.memoizedState !== null && e.memoizedState.cachePool !== null && (n = e.memoizedState.cachePool.pool), r = null, t.memoizedState !== null && t.memoizedState.cachePool !== null && (r = t.memoizedState.cachePool.pool), r !== n && (t.flags |= 2048), e !== null && ve(za), null;
+ case 24: return n = null, e !== null && (n = e.memoizedState.cache), t.memoizedState.cache !== n && (t.flags |= 2048), ma(G), ml(t), null;
case 25: return null;
- case 30: return t.flags |= 33554432, K(t), null;
+ case 30: return t.flags |= 33554432, ml(t), null;
}
throw Error(i(156, t.tag));
}
function gl(e, t) {
- switch (Xi(t), t.tag) {
+ switch (Zi(t), t.tag) {
case 1: return e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;
- case 3: return ma(Ea), we(), e = t.flags, e & 65536 && !(e & 128) ? (t.flags = e & -65537 | 128, t) : null;
+ case 3: return ma(G), Te(), e = t.flags, e & 65536 && !(e & 128) ? (t.flags = e & -65537 | 128, t) : null;
case 26:
case 27:
- case 5: return Ee(t), null;
+ case 5: return De(t), null;
case 31:
if (t.memoizedState !== null) {
- if (Mo(t), t.alternate === null) throw Error(i(340));
+ if (jo(t), t.alternate === null) throw Error(i(340));
sa();
}
return e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;
case 13:
- if (Mo(t), e = t.memoizedState, e !== null && e.dehydrated !== null) {
+ if (jo(t), e = t.memoizedState, e !== null && e.dehydrated !== null) {
if (t.alternate === null) throw Error(i(340));
sa();
}
return e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;
- case 19: return Fo(t), e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, e = t.memoizedState, e !== null && (e.rendering = null, e.tail = null), t.flags |= 4, t) : null;
- case 4: return we(), null;
+ case 19: return Po(t), e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, e = t.memoizedState, e !== null && (e.rendering = null, e.tail = null), t.flags |= 4, t) : null;
+ case 4: return Te(), null;
case 10: return ma(t.type), null;
case 22:
- case 23: return Mo(t), To(), e !== null && _e(Ba), e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;
- case 24: return ma(Ea), null;
+ case 23: return jo(t), wo(), e !== null && ve(za), e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;
+ case 24: return ma(G), null;
case 25: return null;
default: return null;
}
}
function _l(e, t) {
- switch (Xi(t), t.tag) {
+ switch (Zi(t), t.tag) {
case 3:
- ma(Ea), we();
+ ma(G), Te();
break;
case 26:
case 27:
case 5:
- Ee(t);
+ De(t);
break;
case 4:
- we();
+ Te();
break;
case 31:
- t.memoizedState !== null && Mo(t);
+ t.memoizedState !== null && jo(t);
break;
case 13:
- Mo(t);
+ jo(t);
break;
case 19:
- Fo(t);
+ Po(t);
break;
case 10:
ma(t.type);
break;
case 22:
case 23:
- Mo(t), To(), e !== null && _e(Ba);
+ jo(t), wo(), e !== null && ve(za);
break;
- case 24: ma(Ea);
+ case 24: ma(G);
}
}
function vl(e, t) {
@@ -12144,14 +12247,14 @@ var au = /* @__PURE__ */ p(((e) => {
if (t !== null) {
var n = e.stateNode;
try {
- bo(t, n);
+ yo(t, n);
} catch (t) {
ff(e, e.return, t);
}
}
}
function xl(e, t, n) {
- n.props = yc(e.type, e.memoizedProps), n.state = e.memoizedState;
+ n.props = vc(e.type, e.memoizedProps), n.state = e.memoizedState;
try {
n.componentWillUnmount();
} catch (n) {
@@ -12169,7 +12272,7 @@ var au = /* @__PURE__ */ p(((e) => {
var r = e.stateNode;
break;
case 30:
- var i = e.stateNode, a = fi(e.memoizedProps, i);
+ var i = e.stateNode, a = pi(e.memoizedProps, i);
(i.ref === null || i.ref.name !== a) && (i.ref = Pp(a)), r = i.ref;
break;
case 7:
@@ -12239,7 +12342,7 @@ var au = /* @__PURE__ */ p(((e) => {
function Al(e, t, n) {
try {
var r = e.stateNode;
- ip(r, e.type, n, t), r[R] = t;
+ ip(r, e.type, n, t), r[Ct] = t;
} catch (t) {
ff(e, e.return, t);
}
@@ -12262,19 +12365,19 @@ var au = /* @__PURE__ */ p(((e) => {
}
function Nl(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 = pn)), wl(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 = mn)), wl(e, r), B = !0;
else if (i !== 4 && (i === 27 && (wl(e, r), r = null, Sp(e.type) && (n = e.stateNode, t = null)), 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, t, n, r) {
var i = e.tag;
- if (i === 5 || i === 6) i = e.stateNode, t ? n.insertBefore(i, t) : n.appendChild(i), wl(e, r), V = !0;
+ if (i === 5 || i === 6) i = e.stateNode, t ? n.insertBefore(i, t) : n.appendChild(i), wl(e, r), B = !0;
else if (i !== 4 && (i === 27 && (wl(e, r), r = null, Sp(e.type) && (n = e.stateNode)), e = e.child, e !== null)) for (Pl(e, t, n, r), e = e.sibling; e !== null;) Pl(e, t, n, r), e = e.sibling;
}
function Fl(e) {
var t = e.stateNode, n = e.memoizedProps;
try {
for (var r = e.type, i = t.attributes; i.length;) t.removeAttributeNode(i[0]);
- np(t, r, n), t[xt] = e, t[R] = n;
+ np(t, r, n), t[St] = e, t[Ct] = n;
} catch (t) {
ff(e, e.return, t);
}
@@ -12315,14 +12418,14 @@ var au = /* @__PURE__ */ p(((e) => {
var t = e.memoizedProps;
if (t.name == null || t.name === "auto") throw Error(i(544));
var n = t.name;
- t = mi(t.default, t.share), t !== "none" && (Hl(e, n, t, null, !1) || Wl(e.child, !1));
+ t = hi(t.default, t.share), t !== "none" && (Hl(e, n, t, null, !1) || Wl(e.child, !1));
}
e = e.sibling;
}
}
function Kl(e, t) {
if (e.tag === 30) {
- var n = e.stateNode, r = e.memoizedProps, i = fi(r, n), a = mi(r.default, n.paired ? r.share : r.enter);
+ var n = e.stateNode, r = e.memoizedProps, i = pi(r, n), a = hi(r.default, n.paired ? r.share : r.enter);
a === "none" ? Gl(e) : Hl(e, i, a, null, !1) ? (Gl(e), n.paired || t || jd(e, r.onEnter)) : Wl(e.child, !1);
} else if (e.subtreeFlags & 33554432) for (e = e.child; e !== null;) Kl(e, t), e = e.sibling;
else Gl(e);
@@ -12337,7 +12440,7 @@ var au = /* @__PURE__ */ p(((e) => {
if (r != null && r !== "auto") {
var i = t.get(r);
if (i !== void 0) {
- var a = mi(n.default, n.share);
+ var a = hi(n.default, n.share);
if (a !== "none" && (Hl(e, r, a, null, !1) ? (a = e.stateNode, i.paired = a, a.paired = i, jd(e, n.onShare)) : Wl(e.child, !1)), t.delete(r), t.size === 0) break;
}
}
@@ -12350,7 +12453,7 @@ var au = /* @__PURE__ */ p(((e) => {
}
function Jl(e) {
if (e.tag === 30) {
- var t = e.memoizedProps, n = fi(t, e.stateNode), r = Ll === null ? void 0 : Ll.get(n), i = mi(t.default, r === void 0 ? t.exit : t.share);
+ var t = e.memoizedProps, n = pi(t, e.stateNode), r = Ll === null ? void 0 : Ll.get(n), i = hi(t.default, r === void 0 ? t.exit : t.share);
i !== "none" && (Hl(e, n, i, null, !1) ? r === void 0 ? jd(e, t.onExit) : (i = e.stateNode, r.paired = i, i.paired = r, Ll.delete(n), jd(e, t.onShare)) : Wl(e.child, !1)), Ll !== null && ql(e);
} else if (e.subtreeFlags & 33554432) for (e = e.child; e !== null;) Jl(e), e = e.sibling;
else Ll !== null && ql(e);
@@ -12358,8 +12461,8 @@ var au = /* @__PURE__ */ p(((e) => {
function Yl(e) {
for (e = e.child; e !== null;) {
if (e.tag === 30) {
- var t = e.memoizedProps, n = fi(t, e.stateNode);
- t = mi(t.default, t.update), e.flags &= -5, t !== "none" && Hl(e, n, t, e.memoizedState = [], !1);
+ var t = e.memoizedProps, n = pi(t, e.stateNode);
+ t = hi(t.default, t.update), e.flags &= -5, t !== "none" && Hl(e, n, t, e.memoizedState = [], !1);
} else e.subtreeFlags & 33554432 && Yl(e);
e = e.sibling;
}
@@ -12411,7 +12514,7 @@ var au = /* @__PURE__ */ p(((e) => {
function eu(e, t) {
for (e = e.child; e !== null;) {
if (e.tag === 30) {
- var n = e.memoizedProps, r = e.stateNode, i = fi(n, r), a = mi(n.default, n.update);
+ var n = e.memoizedProps, r = e.stateNode, i = pi(n, r), a = hi(n.default, n.update);
if (t) {
r = r.clones;
var o = r === null ? null : r.map(kp);
@@ -12423,9 +12526,9 @@ var au = /* @__PURE__ */ p(((e) => {
e = e.sibling;
}
}
- var tu = !1, nu = !1, ru = !1, iu = !1, au = typeof WeakSet == "function" ? WeakSet : Set, su = null, cu = !1, lu = !1, uu = !1, du = !1;
+ var tu = !1, nu = !1, ru = !1, iu = !1, au = typeof WeakSet == "function" ? WeakSet : Set, ou = null, su = !1, cu = !1, uu = !1, du = !1;
function fu(e, t, n) {
- if (e = e.containerInfo, sp = gh, e = Hr(e), Ur(e)) {
+ if (e = e.containerInfo, sp = gh, e = Hr(e), Wr(e)) {
if ("selectionStart" in e) var r = {
start: e.selectionStart,
end: e.selectionEnd
@@ -12467,8 +12570,8 @@ var au = /* @__PURE__ */ p(((e) => {
for (cp = {
focusedElem: e,
selectionRange: r
- }, gh = !1, n = (n & 335544064) === n, su = t, t = n ? 9270 : 1024; su !== null;) {
- if (e = su, n && (r = e.deletions, r !== null)) for (a = 0; a < r.length; a++) n && Jl(r[a]);
+ }, gh = !1, n = (n & 335544064) === n, ou = t, t = n ? 9270 : 1024; ou !== null;) {
+ if (e = ou, n && (r = e.deletions, r !== null)) for (a = 0; a < r.length; a++) n && Jl(r[a]);
if (e.alternate === null && e.flags & 2) n && Rl(e), pu(n);
else {
if (e.tag === 22) {
@@ -12481,14 +12584,14 @@ var au = /* @__PURE__ */ p(((e) => {
continue;
}
}
- r = e.child, (e.subtreeFlags & t) !== 0 && r !== null ? (r.return = e, su = r) : (n && Yl(e), pu(n));
+ r = e.child, (e.subtreeFlags & t) !== 0 && r !== null ? (r.return = e, ou = r) : (n && Yl(e), pu(n));
}
}
Ll = null;
}
function pu(e) {
- for (; su !== null;) {
- var t = su, n = e, r = t.alternate, a = t.flags;
+ for (; ou !== null;) {
+ var t = ou, n = e, r = t.alternate, a = t.flags;
switch (t.tag) {
case 0:
case 11:
@@ -12498,7 +12601,7 @@ var au = /* @__PURE__ */ p(((e) => {
n = void 0, a = r.memoizedProps, r = r.memoizedState;
var o = t.stateNode;
try {
- var s = yc(t.type, a);
+ var s = vc(t.type, a);
n = o.getSnapshotBeforeUpdate(s, r), o.__reactInternalSnapshotBeforeUpdate = n;
} catch (e) {
ff(t, t.return, e);
@@ -12525,15 +12628,15 @@ var au = /* @__PURE__ */ p(((e) => {
case 4:
case 17: break;
case 30:
- n && r !== null && (n = fi(r.memoizedProps, r.stateNode), a = t.memoizedProps, a = mi(a.default, a.update), a !== "none" && Hl(r, n, a, r.memoizedState = [], !0));
+ n && r !== null && (n = pi(r.memoizedProps, r.stateNode), a = t.memoizedProps, a = hi(a.default, a.update), a !== "none" && Hl(r, n, a, r.memoizedState = [], !0));
break;
default: if (a & 1024) throw Error(i(163));
}
if (r = t.sibling, r !== null) {
- r.return = t.return, su = r;
+ r.return = t.return, ou = r;
break;
}
- su = t.return;
+ ou = t.return;
}
}
function mu(e, t, n) {
@@ -12552,7 +12655,7 @@ var au = /* @__PURE__ */ p(((e) => {
ff(n, n.return, e);
}
else {
- var i = yc(n.type, t.memoizedProps);
+ var i = vc(n.type, t.memoizedProps);
t = t.memoizedState;
try {
e.componentDidUpdate(i, t, e.__reactInternalSnapshotBeforeUpdate);
@@ -12573,7 +12676,7 @@ var au = /* @__PURE__ */ p(((e) => {
case 1: t = n.child.stateNode;
}
try {
- bo(e, t);
+ yo(e, t);
} catch (e) {
ff(n, n.return, e);
}
@@ -12629,7 +12732,7 @@ var au = /* @__PURE__ */ p(((e) => {
break;
case 6:
try {
- e.stateNode.nodeValue = t ? "" : e.memoizedProps, V = !0;
+ e.stateNode.nodeValue = t ? "" : e.memoizedProps, B = !0;
} catch (t) {
ff(e, e.return, t);
}
@@ -12668,15 +12771,15 @@ var au = /* @__PURE__ */ p(((e) => {
}
function vu(e) {
var t = e.alternate;
- t !== null && (e.alternate = null, vu(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, vu(t)), e.child = null, e.deletions = null, e.sibling = null, e.tag === 5 && (t = e.stateNode, t !== null && At(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 yu = null, bu = !1;
function xu(e, t, n) {
for (n = n.child; n !== null;) Su(e, t, n), n = n.sibling;
}
function Su(e, t, n) {
- if (Ye && typeof Ye.onCommitFiberUnmount == "function") try {
- Ye.onCommitFiberUnmount(Je, n);
+ if (Xe && typeof Xe.onCommitFiberUnmount == "function") try {
+ Xe.onCommitFiberUnmount(Ye, n);
} catch {}
switch (n.tag) {
case 26:
@@ -12691,12 +12794,12 @@ var au = /* @__PURE__ */ p(((e) => {
case 6:
if (n.tag === 6 && El(n), r = yu, i = bu, yu = null, xu(e, t, n), yu = r, bu = i, yu !== null) {
if (bu) try {
- (yu.nodeType === 9 ? yu.body : yu.nodeName === "HTML" ? yu.ownerDocument.body : yu).removeChild(n.stateNode), V = !0;
+ (yu.nodeType === 9 ? yu.body : yu.nodeName === "HTML" ? yu.ownerDocument.body : yu).removeChild(n.stateNode), B = !0;
} catch (e) {
ff(n, t, e);
}
else try {
- yu.removeChild(n.stateNode), V = !0;
+ yu.removeChild(n.stateNode), B = !0;
} catch (e) {
ff(n, t, e);
}
@@ -12825,7 +12928,7 @@ var au = /* @__PURE__ */ p(((e) => {
t = e.type, n = e.memoizedProps, a = o.ownerDocument || o;
b: switch (t) {
case "title":
- r = a.getElementsByTagName("title")[0], (!r || r[Dt] || r[xt] || 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[xt] = e, Mt(r), t = r;
+ r = a.getElementsByTagName("title")[0], (!r || r[Ot] || r[St] || 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[St] = e, R(r), t = r;
break a;
case "link":
if (o = Gm("link", "href", a).get(t + (n.href || ""))) {
@@ -12847,7 +12950,7 @@ var au = /* @__PURE__ */ p(((e) => {
break;
default: throw Error(i(468, t));
}
- r[xt] = e, Mt(r), t = r;
+ r[St] = e, R(r), t = r;
}
e.stateNode = t;
}
@@ -12863,7 +12966,7 @@ var au = /* @__PURE__ */ p(((e) => {
if (o = ru, ru = !1, Du(t, e, n), ru = o, Au(e), a & 512 && (nu || r === null || Cl(r, r.return)), e.flags & 32) {
t = e.stateNode;
try {
- an(t, ""), V = !0;
+ on(t, ""), B = !0;
} catch (t) {
ff(e, e.return, t);
}
@@ -12875,22 +12978,22 @@ var au = /* @__PURE__ */ p(((e) => {
if (e.stateNode === null) throw Error(i(162));
t = e.memoizedProps, n = e.stateNode;
try {
- n.nodeValue = t, V = !0;
+ n.nodeValue = t, B = !0;
} catch (t) {
ff(e, e.return, t);
}
}
break;
case 3:
- if (V = !1, Wm = null, o = Ou, Ou = bm(t.containerInfo), Du(t, e, n), Ou = o, Au(e), a & 4 && r !== null && r.memoizedState.isDehydrated) try {
+ if (B = !1, Wm = null, o = Ou, Ou = bm(t.containerInfo), Du(t, e, n), Ou = o, Au(e), a & 4 && r !== null && r.memoizedState.isDehydrated) try {
Hh(t.containerInfo);
} catch (t) {
ff(e, e.return, t);
}
- iu && (iu = !1, ju(e)), V = !1;
+ iu && (iu = !1, ju(e)), B = !1;
break;
case 4:
- a = ru, ru = tu, r = Ht(), o = Ou, Ou = bm(e.stateNode.containerInfo), Du(t, e, n), Au(e), Ou = o, V && lu && (uu = !0), V = r, ru = a;
+ a = ru, ru = tu, r = Ut(), o = Ou, Ou = bm(e.stateNode.containerInfo), Du(t, e, n), Au(e), Ou = o, B && cu && (uu = !0), B = r, ru = a;
break;
case 12:
Du(t, e, n), Au(e);
@@ -12899,7 +13002,7 @@ var au = /* @__PURE__ */ p(((e) => {
Du(t, e, n), Au(e), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, Eu(e, t)));
break;
case 13:
- Du(t, e, n), Au(e), e.child.flags & 8192 && e.memoizedState !== null != (r !== null && r.memoizedState !== null) && (pd = ze()), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, Eu(e, t)));
+ Du(t, e, n), Au(e), e.child.flags & 8192 && e.memoizedState !== null != (r !== null && r.memoizedState !== null) && (md = Be()), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, Eu(e, t)));
break;
case 22:
o = e.memoizedState !== null, s = r !== null && r.memoizedState !== null;
@@ -12910,7 +13013,7 @@ var au = /* @__PURE__ */ p(((e) => {
Du(t, e, n), Au(e), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, Eu(e, t)));
break;
case 30:
- a & 512 && (nu || r === null || Cl(r, r.return)), a = Ht(), o = lu, s = (n & 335544064) === n, c = e.memoizedProps, lu = s && mi(c.default, c.update) !== "none", Du(t, e, n), Au(e), s && r !== null && V && (e.flags |= 4), lu = o, V = a;
+ a & 512 && (nu || r === null || Cl(r, r.return)), a = Ut(), o = cu, s = (n & 335544064) === n, c = e.memoizedProps, cu = s && hi(c.default, c.update) !== "none", Du(t, e, n), Au(e), s && r !== null && B && (e.flags |= 4), cu = o, B = a;
break;
case 21: break;
case 7: a & 512 && (nu || r === null || Cl(r, r.return)), r && r.stateNode !== null && (r.stateNode._fragmentFiber = e);
@@ -12946,7 +13049,7 @@ var au = /* @__PURE__ */ p(((e) => {
break;
case 5:
var l = n.stateNode;
- n.flags & 32 && (an(l, ""), n.flags &= -33), Pl(e, Ml(e), l, s);
+ n.flags & 32 && (on(l, ""), n.flags &= -33), Pl(e, Ml(e), l, s);
break;
case 3:
case 4:
@@ -12977,7 +13080,7 @@ var au = /* @__PURE__ */ p(((e) => {
if (n === null) Kl(e, !1);
else switch (e.tag) {
case 3:
- if (du = cu = !1, Bl(), Mu(t, e), !cu && !uu) {
+ if (du = su = !1, Bl(), Mu(t, e), !su && !uu) {
if (e = zl, e !== null) for (var r = 0; r < e.length; r += 3) {
n = e[r];
var i = e[r + 1];
@@ -13012,17 +13115,17 @@ var au = /* @__PURE__ */ p(((e) => {
Mu(t, e);
break;
case 4:
- r = cu, cu = !1, Mu(t, e), cu && (uu = !0), cu = r;
+ r = su, su = !1, Mu(t, e), su && (uu = !0), su = r;
break;
case 22:
e.memoizedState === null && (n.memoizedState === null ? Mu(t, e) : Kl(e, !1));
break;
case 30:
- r = cu, i = Bl(), cu = !1, Mu(t, e), cu && (e.flags |= 4);
+ r = su, i = Bl(), su = !1, Mu(t, e), su && (e.flags |= 4);
var a = e.memoizedProps, o = e.stateNode;
- t = fi(a, o), o = fi(n.memoizedProps, o);
- var s = mi(a.default, a.update);
- s === "none" ? t = !1 : (a = n.memoizedState, n.memoizedState = null, n = e.child, Vl = 0, t = $l(e, n, t, o, s, a, !0), Vl !== (a === null ? 0 : a.length) && (e.flags |= 32)), e.flags & 4 && t ? (jd(e, e.memoizedProps.onUpdate), zl = i) : i !== null && (i.push.apply(i, zl), zl = i), cu = e.flags & 32 ? !0 : r;
+ t = pi(a, o), o = pi(n.memoizedProps, o);
+ var s = hi(a.default, a.update);
+ s === "none" ? t = !1 : (a = n.memoizedState, n.memoizedState = null, n = e.child, Vl = 0, t = $l(e, n, t, o, s, a, !0), Vl !== (a === null ? 0 : a.length) && (e.flags |= 32)), e.flags & 4 && t ? (jd(e, e.memoizedProps.onUpdate), zl = i) : i !== null && (i.push.apply(i, zl), zl = i), su = e.flags & 32 ? !0 : r;
break;
default: Mu(t, e);
}
@@ -13086,7 +13189,7 @@ var au = /* @__PURE__ */ p(((e) => {
var c = r.stateNode;
try {
var l = i.shared.hiddenCallbacks;
- if (l !== null) for (i.shared.hiddenCallbacks = null, i = 0; i < l.length; i++) yo(l[i], c);
+ if (l !== null) for (i.shared.hiddenCallbacks = null, i = 0; i < l.length; i++) vo(l[i], c);
} catch (e) {
ff(r, r.return, e);
}
@@ -13126,10 +13229,10 @@ var au = /* @__PURE__ */ p(((e) => {
}
function Lu(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 && Oa(n));
+ e !== null && e.memoizedState !== null && e.memoizedState.cachePool !== null && (n = e.memoizedState.cachePool.pool), e = null, t.memoizedState !== null && t.memoizedState.cachePool !== null && (e = t.memoizedState.cachePool.pool), e !== n && (e != null && e.refCount++, n != null && Da(n));
}
function Ru(e, t) {
- e = null, t.alternate !== null && (e = t.alternate.memoizedState.cache), t = t.memoizedState.cache, t !== e && (t.refCount++, e != null && Oa(e));
+ e = null, t.alternate !== null && (e = t.alternate.memoizedState.cache), t = t.memoizedState.cache, t !== e && (t.refCount++, e != null && Da(e));
}
function zu(e, t, n, r) {
var i = (n & 335544064) === n;
@@ -13150,7 +13253,7 @@ var au = /* @__PURE__ */ p(((e) => {
zu(e, t, n, r);
break;
case 3:
- zu(e, t, n, r), i && du && (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 && Oa(a)));
+ zu(e, t, n, r), i && du && (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 && Da(a)));
break;
case 12:
if (a & 2048) {
@@ -13263,7 +13366,7 @@ var au = /* @__PURE__ */ p(((e) => {
if (e.flags & 16) {
if (t !== null) for (var n = 0; n < t.length; n++) {
var r = t[n];
- su = r, Xu(r, e);
+ ou = r, Xu(r, e);
}
Ku(e);
}
@@ -13294,7 +13397,7 @@ var au = /* @__PURE__ */ p(((e) => {
if (e.flags & 16) {
if (t !== null) for (var n = 0; n < t.length; n++) {
var r = t[n];
- su = r, Xu(r, e);
+ ou = r, Xu(r, e);
}
Ku(e);
}
@@ -13314,8 +13417,8 @@ var au = /* @__PURE__ */ p(((e) => {
}
}
function Xu(e, t) {
- for (; su !== null;) {
- var n = su;
+ for (; ou !== null;) {
+ var n = ou;
switch (n.tag) {
case 0:
case 11:
@@ -13329,60 +13432,60 @@ var au = /* @__PURE__ */ p(((e) => {
r != null && r.refCount++;
}
break;
- case 24: Oa(n.memoizedState.cache);
+ case 24: Da(n.memoizedState.cache);
}
- if (r = n.child, r !== null) r.return = n, su = r;
- else a: for (n = e; su !== null;) {
- r = su;
+ if (r = n.child, r !== null) r.return = n, ou = r;
+ else a: for (n = e; ou !== null;) {
+ r = ou;
var i = r.sibling, a = r.return;
if (vu(r), r === n) {
- su = null;
+ ou = null;
break a;
}
if (i !== null) {
- i.return = a, su = i;
+ i.return = a, ou = i;
break a;
}
- su = a;
+ ou = a;
}
}
}
var Zu = {
getCacheForType: function(e) {
- var t = ba(Ea), n = t.data.get(e);
+ var t = ba(G), n = t.data.get(e);
return n === void 0 && (n = e(), t.data.set(e, n)), n;
},
cacheSignal: function() {
- return ba(Ea).controller.signal;
+ return ba(G).controller.signal;
}
- }, Qu = typeof WeakMap == "function" ? WeakMap : Map, $u = 0, ed = null, q = null, J = 0, Y = 0, X = null, td = !1, nd = !1, rd = !1, id = 0, ad = 0, od = 0, sd = 0, cd = 0, ld = 0, ud = 0, dd = null, Z = null, fd = !1, pd = 0, md = 0, hd = Infinity, gd = null, _d = null, vd = 0, Q = null, yd = null, bd = 0, xd = 0, Sd = null, Cd = null, wd = null, Td = null, Ed = null, Dd = 0, Od = null;
+ }, Qu = typeof WeakMap == "function" ? WeakMap : Map, q = 0, $u = null, J = null, Y = 0, ed = 0, td = null, nd = !1, rd = !1, id = !1, X = 0, ad = 0, od = 0, sd = 0, cd = 0, ld = 0, ud = 0, dd = null, fd = null, pd = !1, md = 0, hd = 0, Z = Infinity, gd = null, _d = null, vd = 0, yd = null, bd = null, xd = 0, Sd = 0, Q = null, Cd = null, wd = null, Td = null, Ed = null, Dd = 0, Od = null;
function kd() {
- return $u & 2 && J !== 0 ? J & -J : I.T === null ? vt() : Nf();
+ return q & 2 && Y !== 0 ? Y & -Y : F.T === null ? yt() : Nf();
}
function Ad() {
if (ld === 0) {
- if (!(J & 536870912) || W) {
- var e = nt;
- nt <<= 1, !(nt & 3932160) && (nt = 262144), ld = e;
+ if (!(Y & 536870912) || W) {
+ var e = rt;
+ rt <<= 1, !(rt & 3932160) && (rt = 262144), ld = e;
} else ld = 536870912;
}
- return e = Eo.current, e !== null && (e.flags |= 32), ld;
+ return e = To.current, e !== null && (e.flags |= 32), ld;
}
function jd(e, t) {
if (t != null) {
var n = e.stateNode, r = n.ref;
- r === null && (r = n.ref = Pp(fi(e.memoizedProps, n))), Td === null && (Td = []), Td.push(t.bind(null, r));
+ r === null && (r = n.ref = Pp(pi(e.memoizedProps, n))), Td === null && (Td = []), Td.push(t.bind(null, r));
}
}
function Md(e, t, n) {
- (e === ed && (Y === 2 || Y === 9) || e.cancelPendingCommit !== null) && (zd(e, 0), Id(e, J, ld, !1)), dt(e, n), (!($u & 2) || e !== ed) && (e === ed && (!($u & 2) && (sd |= n), ad === 4 && Id(e, J, ld, !1)), Tf(e));
+ (e === $u && (ed === 2 || ed === 9) || e.cancelPendingCommit !== null) && (zd(e, 0), Id(e, Y, ld, !1)), ft(e, n), (!(q & 2) || e !== $u) && (e === $u && (!(q & 2) && (sd |= n), ad === 4 && Id(e, Y, ld, !1)), Tf(e));
}
function Nd(e, t, n) {
- if ($u & 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;
+ if (q & 6) throw Error(i(327));
+ var r = !n && !(t & 127) && (t & e.expiredLanes) === 0 || st(e, t), a = r ? qd(e, t) : Gd(e, t, !0), o = r;
do {
if (a === 0) {
- nd && !r && Id(e, t, 0, !1);
+ rd && !r && Id(e, t, 0, !1);
break;
}
if (n = e.current.alternate, o && !Fd(n)) {
@@ -13399,11 +13502,11 @@ var au = /* @__PURE__ */ p(((e) => {
a = dd;
var l = c.current.memoizedState.isDehydrated;
if (l && (zd(c, s).flags |= 256), s = Gd(c, s, !1), s !== 2 && s !== 6) {
- if (rd && !l) {
+ if (id && !l) {
c.errorRecoveryDisabledLanes |= o, sd |= o, a = 4;
break a;
}
- o = Z, Z = a, o !== null && (Z === null ? Z = o : Z.push.apply(Z, o));
+ o = fd, fd = a, o !== null && (fd === null ? fd = o : fd.push.apply(fd, o));
}
a = s;
}
@@ -13420,21 +13523,21 @@ var au = /* @__PURE__ */ p(((e) => {
case 1: throw Error(i(345));
case 4: if ((t & 4194048) !== t && (t & 62914560) !== t) break;
case 6:
- Id(r, t, ld, !td);
+ Id(r, t, ld, !nd);
break a;
case 2:
- Z = null;
+ fd = null;
break;
case 3:
case 5: break;
default: throw Error(i(329));
}
- if ((t & 62914560) === t && (a = pd + 300 - ze(), 10 < a)) {
- if (Id(r, t, ld, !td), at(r, 0, !0) !== 0) break a;
- bd = t, r.timeoutHandle = gp(Pd.bind(null, r, n, Z, gd, fd, t, ld, sd, ud, td, o, "Throttled", -0, 0), a);
+ if ((t & 62914560) === t && (a = md + 300 - Be(), 10 < a)) {
+ if (Id(r, t, ld, !nd), ot(r, 0, !0) !== 0) break a;
+ xd = t, r.timeoutHandle = gp(Pd.bind(null, r, n, fd, gd, pd, t, ld, sd, ud, nd, o, "Throttled", -0, 0), a);
break a;
}
- Pd(r, n, Z, gd, fd, t, ld, sd, ud, td, o, null, -0, 0);
+ Pd(r, n, fd, gd, pd, t, ld, sd, ud, nd, o, null, -0, 0);
}
break;
} while (1);
@@ -13451,9 +13554,9 @@ var au = /* @__PURE__ */ p(((e) => {
suspenseyImages: [],
waitingForImages: !0,
waitingForViewTransition: !1,
- unsuspend: pn
- }, Ll = null, Gu(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 ? pd - ze() : (a & 4194048) === a ? md - ze() : 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);
+ unsuspend: mn
+ }, Ll = null, Gu(t, a, d), h && (m = d, h = e.containerInfo, h = (h.nodeType === 9 ? h : h.ownerDocument).__reactViewTransition, h != null && (m.count++, m.waitingForViewTransition = !0, m = nh.bind(m), h.finished.then(m, m))), m = (a & 62914560) === a ? md - Be() : (a & 4194048) === a ? hd - Be() : 0, m = eh(d, m), m !== null)) {
+ xd = 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;
}
ef(e, t, a, n, r, i, o, s, c, l, u, d);
@@ -13465,7 +13568,7 @@ var au = /* @__PURE__ */ p(((e) => {
var i = n[r], a = i.getSnapshot;
i = i.value;
try {
- if (!Fr(a(), i)) return !1;
+ if (!Ir(a(), i)) return !1;
} catch {
return !1;
}
@@ -13483,57 +13586,57 @@ var au = /* @__PURE__ */ p(((e) => {
return !0;
}
function Id(e, t, n, r) {
- t = st(e, t), t &= ~cd, t &= ~sd, e.suspendedLanes |= t, e.pingedLanes &= ~t, r && (e.warmLanes |= t), r = e.expirationTimes;
+ t = ct(e, t), t &= ~cd, t &= ~sd, e.suspendedLanes |= t, e.pingedLanes &= ~t, r && (e.warmLanes |= t), r = e.expirationTimes;
for (var i = t; 0 < i;) {
- var a = 31 - Ze(i), o = 1 << a;
+ var a = 31 - Qe(i), o = 1 << a;
r[a] = -1, i &= ~o;
}
- n !== 0 && pt(e, n, t);
+ n !== 0 && mt(e, n, t);
}
function Ld() {
- return $u & 6 ? !0 : (Ef(0, !1), !1);
+ return q & 6 ? !0 : (Ef(0, !1), !1);
}
function Rd() {
- if (q !== null) {
- if (Y === 0) var e = q.return;
- else e = q, fa = da = null, ts(e), eo = null, to = 0, e = q;
+ if (J !== null) {
+ if (ed === 0) var e = J.return;
+ else e = J, fa = da = null, es(e), $a = null, eo = 0, e = J;
for (; e !== null;) _l(e.alternate, e), e = e.return;
- q = null;
+ J = 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(), ed = e, q = n = ki(e.current, null), J = t, Y = 0, X = null, td = !1, nd = ot(e, t), rd = !1, ud = ld = cd = sd = od = ad = 0, Z = dd = null, fd = !1, id = st(e, t), yi(), n;
+ return n !== -1 && (e.timeoutHandle = -1, _p(n)), n = e.cancelPendingCommit, n !== null && (e.cancelPendingCommit = null, n()), xd = 0, Rd(), $u = e, J = n = Ai(e.current, null), Y = t, ed = 0, td = null, nd = !1, rd = st(e, t), id = !1, ud = ld = cd = sd = od = ad = 0, fd = dd = null, pd = !1, X = ct(e, t), bi(), n;
}
function Bd(e, t) {
- G = null, I.H = dc, t === Wa || t === Ka ? (t = Qa(), Y = 3) : t === Ga ? (t = Qa(), Y = 4) : Y = t === kc ? 8 : typeof t == "object" && t && typeof t.then == "function" ? 6 : 1, X = t, q === null && (ad = 1, Cc(e, Li(t, e.current)));
+ K = null, F.H = uc, t === Ua || t === Ga ? (t = Za(), ed = 3) : t === Wa ? (t = Za(), ed = 4) : ed = t === Oc ? 8 : typeof t == "object" && t && typeof t.then == "function" ? 6 : 1, td = t, J === null && (ad = 1, Sc(e, Ri(t, e.current)));
}
function Vd() {
- var e = Eo.current;
- return e === null ? !0 : (J & 4194048) === J ? Do === null : (J & 62914560) === J || J & 536870912 ? e === Do : !1;
+ var e = To.current;
+ return e === null ? !0 : (Y & 4194048) === Y ? Eo === null : (Y & 62914560) === Y || Y & 536870912 ? e === Eo : !1;
}
function Hd() {
- var e = I.H;
- return I.H = dc, e === null ? dc : e;
+ var e = F.H;
+ return F.H = uc, e === null ? uc : e;
}
function Ud() {
- var e = I.A;
- return I.A = Zu, e;
+ var e = F.A;
+ return F.A = Zu, e;
}
function Wd() {
- ad = 4, td || (J & 4194048) !== J && Eo.current !== null || (nd = !0), !(od & 134217727) && !(sd & 134217727) || ed === null || Id(ed, J, ld, !1);
+ ad = 4, nd || (Y & 4194048) !== Y && To.current !== null || (rd = !0), !(od & 134217727) && !(sd & 134217727) || $u === null || Id($u, Y, ld, !1);
}
function Gd(e, t, n) {
- var r = $u;
- $u |= 2;
+ var r = q;
+ q |= 2;
var i = Hd(), a = Ud();
- (ed !== e || J !== t) && (gd = null, zd(e, t)), t = !1;
+ ($u !== e || Y !== t) && (gd = null, zd(e, t)), t = !1;
var o = ad;
a: do
try {
- if (Y !== 0 && q !== null) {
- var s = q, c = X;
- switch (Y) {
+ if (ed !== 0 && J !== null) {
+ var s = J, c = td;
+ switch (ed) {
case 8:
Rd(), o = 6;
break a;
@@ -13541,14 +13644,14 @@ var au = /* @__PURE__ */ p(((e) => {
case 2:
case 9:
case 6:
- Eo.current === null && (t = !0);
- var l = Y;
- if (Y = 0, X = null, Zd(e, s, c, l), n && nd) {
+ To.current === null && (t = !0);
+ var l = ed;
+ if (ed = 0, td = null, Zd(e, s, c, l), n && rd) {
o = 0;
break a;
}
break;
- default: l = Y, Y = 0, X = null, Zd(e, s, c, l);
+ default: l = ed, ed = 0, td = null, Zd(e, s, c, l);
}
}
Kd(), o = ad;
@@ -13557,66 +13660,66 @@ var au = /* @__PURE__ */ p(((e) => {
Bd(e, t);
}
while (1);
- return t && e.shellSuspendCounter++, fa = da = null, $u = r, I.H = i, I.A = a, q === null && (ed = null, J = 0, yi()), o;
+ return t && e.shellSuspendCounter++, fa = da = null, q = r, F.H = i, F.A = a, J === null && ($u = null, Y = 0, bi()), o;
}
function Kd() {
- for (; q !== null;) Yd(q);
+ for (; J !== null;) Yd(J);
}
function qd(e, t) {
- var n = $u;
- $u |= 2;
+ var n = q;
+ q |= 2;
var r = Hd(), a = Ud();
- ed !== e || J !== t ? (gd = null, hd = ze() + 500, zd(e, t)) : nd = ot(e, t);
+ $u !== e || Y !== t ? (gd = null, Z = Be() + 500, zd(e, t)) : rd = st(e, t);
a: do
try {
- if (Y !== 0 && q !== null) {
- t = q;
- var o = X;
- b: switch (Y) {
+ if (ed !== 0 && J !== null) {
+ t = J;
+ var o = td;
+ b: switch (ed) {
case 1:
- Y = 0, X = null, Zd(e, t, o, 1);
+ ed = 0, td = null, Zd(e, t, o, 1);
break;
case 2:
case 9:
- if (Ja(o)) {
- Y = 0, X = null, Xd(t);
+ if (qa(o)) {
+ ed = 0, td = null, Xd(t);
break;
}
t = function() {
- Y !== 2 && Y !== 9 || ed !== e || (Y = 7), Tf(e);
+ ed !== 2 && ed !== 9 || $u !== e || (ed = 7), Tf(e);
}, o.then(t, t);
break a;
case 3:
- Y = 7;
+ ed = 7;
break a;
case 4:
- Y = 5;
+ ed = 5;
break a;
case 7:
- Ja(o) ? (Y = 0, X = null, Xd(t)) : (Y = 0, X = null, Zd(e, t, o, 7));
+ qa(o) ? (ed = 0, td = null, Xd(t)) : (ed = 0, td = null, Zd(e, t, o, 7));
break;
case 5:
var s = null;
- switch (q.tag) {
- case 26: s = q.memoizedState;
+ switch (J.tag) {
+ case 26: s = J.memoizedState;
case 5:
case 27:
- var c = q;
+ var c = J;
if (s ? Ym(s) : c.stateNode.complete) {
- Y = 0, X = null;
+ ed = 0, td = null;
var l = c.sibling;
- if (l !== null) q = l;
+ if (l !== null) J = l;
else {
var u = c.return;
- u === null ? q = null : (q = u, Qd(u));
+ u === null ? J = null : (J = u, Qd(u));
}
break b;
}
}
- Y = 0, X = null, Zd(e, t, o, 5);
+ ed = 0, td = null, Zd(e, t, o, 5);
break;
case 6:
- Y = 0, X = null, Zd(e, t, o, 6);
+ ed = 0, td = null, Zd(e, t, o, 6);
break;
case 8:
Rd(), ad = 6;
@@ -13630,66 +13733,66 @@ var au = /* @__PURE__ */ p(((e) => {
Bd(e, t);
}
while (1);
- return fa = da = null, I.H = r, I.A = a, $u = n, q === null ? (ed = null, J = 0, yi(), ad) : 0;
+ return fa = da = null, F.H = r, F.A = a, q = n, J === null ? ($u = null, Y = 0, bi(), ad) : 0;
}
function Jd() {
- for (; q !== null && !Le();) Yd(q);
+ for (; J !== null && !Re();) Yd(J);
}
function Yd(e) {
- var t = ll(e.alternate, e, id);
- e.memoizedProps = e.pendingProps, t === null ? Qd(e) : q = t;
+ var t = cl(e.alternate, e, X);
+ e.memoizedProps = e.pendingProps, t === null ? Qd(e) : J = t;
}
function Xd(e) {
var t = e, n = t.alternate;
switch (t.tag) {
case 15:
case 0:
- t = Uc(n, t, t.pendingProps, t.type, void 0, J);
+ t = Hc(n, t, t.pendingProps, t.type, void 0, Y);
break;
case 11:
- t = Uc(n, t, t.pendingProps, t.type.render, t.ref, J);
+ t = Hc(n, t, t.pendingProps, t.type.render, t.ref, Y);
break;
case 5:
- ts(t);
+ es(t);
var r = t;
- r === Qi && (W ? (aa(r), r.tag === 5 && r.stateNode != null && ($i = r.stateNode)) : (aa(r), W = !0));
- default: _l(n, t), t = q = Ai(t, id), t = ll(n, t, id);
+ r === U && (W ? (aa(r), r.tag === 5 && r.stateNode != null && ($i = r.stateNode)) : (aa(r), W = !0));
+ default: _l(n, t), t = J = ji(t, X), t = cl(n, t, X);
}
- e.memoizedProps = e.pendingProps, t === null ? Qd(e) : q = t;
+ e.memoizedProps = e.pendingProps, t === null ? Qd(e) : J = t;
}
function Zd(e, t, n, r) {
- fa = da = null, ts(t), eo = null, to = 0;
+ fa = da = null, es(t), $a = null, eo = 0;
var i = t.return;
try {
- if (Oc(e, i, t, n, J)) {
- ad = 1, Cc(e, Li(n, e.current)), q = null;
+ if (Dc(e, i, t, n, Y)) {
+ ad = 1, Sc(e, Ri(n, e.current)), J = null;
return;
}
} catch (t) {
- if (i !== null) throw q = i, t;
- ad = 1, Cc(e, Li(n, e.current)), q = null;
+ if (i !== null) throw J = i, t;
+ ad = 1, Sc(e, Ri(n, e.current)), J = null;
return;
}
- t.flags & 32768 ? (W || r === 1 ? e = !0 : nd || J & 536870912 ? e = !1 : (td = e = !0, (r === 2 || r === 9 || r === 3 || r === 6) && (r = Eo.current, r !== null && r.tag === 13 && (r.flags |= 16384))), $d(t, e)) : Qd(t);
+ t.flags & 32768 ? (W || r === 1 ? e = !0 : rd || Y & 536870912 ? e = !1 : (nd = e = !0, (r === 2 || r === 9 || r === 3 || r === 6) && (r = To.current, r !== null && r.tag === 13 && (r.flags |= 16384))), $d(t, e)) : Qd(t);
}
function Qd(e) {
var t = e;
do {
if (t.flags & 32768) {
- $d(t, td);
+ $d(t, nd);
return;
}
e = t.return;
- var n = hl(t.alternate, t, id);
+ var n = hl(t.alternate, t, X);
if (n !== null) {
- q = n;
+ J = n;
return;
}
if (t = t.sibling, t !== null) {
- q = t;
+ J = t;
return;
}
- q = t = e;
+ J = t = e;
} while (t !== null);
ad === 0 && (ad = 5);
}
@@ -13697,66 +13800,66 @@ var au = /* @__PURE__ */ p(((e) => {
do {
var n = gl(e.alternate, e);
if (n !== null) {
- n.flags &= 32767, q = n;
+ n.flags &= 32767, J = n;
return;
}
if (n = e.return, n !== null && (n.flags |= 32768, n.subtreeFlags = 0, n.deletions = null), !t && (e = e.sibling, e !== null)) {
- q = e;
+ J = e;
return;
}
- q = e = n;
+ J = e = n;
} while (e !== null);
- ad = 6, q = null;
+ ad = 6, J = null;
}
function ef(e, t, n, r, a, o, s, c, l, u, d, f) {
e.cancelPendingCommit = null;
do
lf();
while (vd !== 0);
- if ($u & 6) throw Error(i(327));
+ if (q & 6) throw Error(i(327));
if (t !== null) {
if (t === e.current) throw Error(i(177));
- e === ed && (q = ed = null, J = 0), yd = t, Q = e, bd = n, Sd = a, Cd = r, tf(e, t, n, s, c, l, f);
+ e === $u && (J = $u = null, Y = 0), bd = t, yd = e, xd = n, Q = a, Cd = r, tf(e, t, n, s, c, l, f);
}
}
function tf(e, t, n, r, i, a, o) {
var s = t.lanes | t.childLanes;
- if (xd = s, s |= vi, ft(e, n, s, r, i, a), Td = null, (n & 335544064) === n ? (Ed = ja(e), r = 10262) : (Ed = null, r = 10256), (t.subtreeFlags & r) !== 0 || (t.flags & r) !== 0 ? (e.callbackNode = null, e.callbackPriority = 0, vf(Ue, function() {
+ if (Sd = s, s |= yi, pt(e, n, s, r, i, a), Td = null, (n & 335544064) === n ? (Ed = Aa(e), r = 10262) : (Ed = null, r = 10256), (t.subtreeFlags & r) !== 0 || (t.flags & r) !== 0 ? (e.callbackNode = null, e.callbackPriority = 0, vf(We, function() {
return uf(), null;
})) : (e.callbackNode = null, e.callbackPriority = 0), Il = !1, r = !!(t.flags & 13878), t.subtreeFlags & 13878 || r) {
- r = I.T, I.T = null, i = L.p, L.p = 2, a = $u, $u |= 4;
+ r = F.T, F.T = null, i = I.p, I.p = 2, a = q, q |= 4;
try {
fu(e, t, n);
} finally {
- $u = a, L.p = i, I.T = r;
+ q = a, I.p = i, F.T = r;
}
}
vd = 1, Il ? wd = Mp(o, e.containerInfo, Ed, af, of, rf, sf, uf, nf, null, null) : (af(), of(), sf());
}
function nf(e) {
if (vd !== 0) {
- var t = Q.onRecoverableError;
+ var t = yd.onRecoverableError;
t(e, { componentStack: null });
}
}
function rf() {
- vd === 3 && (vd = 0, Nu(yd, Q), vd = 4);
+ vd === 3 && (vd = 0, Nu(bd, yd), vd = 4);
}
function af() {
if (vd === 1) {
vd = 0;
- var e = Q, t = yd, n = bd, r = !!(t.flags & 13878);
+ var e = yd, t = bd, n = xd, r = !!(t.flags & 13878);
if (t.subtreeFlags & 13878 || r) {
- r = I.T, I.T = null;
- var i = L.p;
- L.p = 2;
- var a = $u;
- $u |= 4;
+ r = F.T, F.T = null;
+ var i = I.p;
+ I.p = 2;
+ var a = q;
+ q |= 4;
try {
- lu = uu = !1, ku(t, e, n), n = cp;
+ cu = uu = !1, ku(t, e, n), n = cp;
var o = Hr(e.containerInfo), s = n.focusedElem, c = n.selectionRange;
if (o !== s && s && s.ownerDocument && Vr(s.ownerDocument.documentElement, s)) {
- if (c !== null && Ur(s)) {
+ if (c !== null && Wr(s)) {
var l = c.start, u = c.end;
if (u === void 0 && (u = l), "selectionStart" in s) s.selectionStart = l, s.selectionEnd = Math.min(u, s.value.length);
else {
@@ -13784,7 +13887,7 @@ var au = /* @__PURE__ */ p(((e) => {
}
gh = !!sp, cp = sp = null;
} finally {
- $u = a, L.p = i, I.T = r;
+ q = a, I.p = i, F.T = r;
}
}
e.current = t, vd = 2;
@@ -13793,17 +13896,17 @@ var au = /* @__PURE__ */ p(((e) => {
function of() {
if (vd === 2) {
vd = 0;
- var e = Q, t = yd, n = !!(t.flags & 8772);
+ var e = yd, t = bd, n = !!(t.flags & 8772);
if (t.subtreeFlags & 8772 || n) {
- n = I.T, I.T = null;
- var r = L.p;
- L.p = 2;
- var i = $u;
- $u |= 4;
+ n = F.T, F.T = null;
+ var r = I.p;
+ I.p = 2;
+ var i = q;
+ q |= 4;
try {
mu(e, t.alternate, t);
} finally {
- $u = i, L.p = r, I.T = n;
+ q = i, I.p = r, F.T = n;
}
}
vd = 3;
@@ -13813,52 +13916,52 @@ var au = /* @__PURE__ */ p(((e) => {
if (vd === 4 || vd === 3) {
vd = 0;
var e = wd;
- wd = null, Re();
- var t = Q, n = yd, r = bd, i = Cd, a = (r & 335544064) === r ? 10262 : 10256;
- if ((n.subtreeFlags & a) !== 0 || (n.flags & a) !== 0 ? vd = 5 : (vd = 0, yd = Q = null, cf(t, t.pendingLanes)), a = t.pendingLanes, a === 0 && (_d = null), _t(r), n = n.stateNode, Ye && typeof Ye.onCommitFiberRoot == "function") try {
- Ye.onCommitFiberRoot(Je, n, void 0, (n.current.flags & 128) == 128);
+ wd = null, ze();
+ var t = yd, n = bd, r = xd, i = Cd, a = (r & 335544064) === r ? 10262 : 10256;
+ if ((n.subtreeFlags & a) !== 0 || (n.flags & a) !== 0 ? vd = 5 : (vd = 0, bd = yd = null, cf(t, t.pendingLanes)), a = t.pendingLanes, a === 0 && (_d = null), vt(r), n = n.stateNode, Xe && typeof Xe.onCommitFiberRoot == "function") try {
+ Xe.onCommitFiberRoot(Ye, n, void 0, (n.current.flags & 128) == 128);
} catch {}
if (i !== null) {
- n = I.T, a = L.p, L.p = 2, I.T = null;
+ n = F.T, a = I.p, I.p = 2, F.T = null;
try {
for (var o = t.onRecoverableError, s = 0; s < i.length; s++) {
var c = i[s];
o(c.value, { componentStack: c.stack });
}
} finally {
- I.T = n, L.p = a;
+ F.T = n, I.p = a;
}
}
if (i = Td, o = Ed, Ed = null, i !== null && (Td = null, o === null && (o = []), e !== null)) for (c = 0; c < i.length; c++) n = (0, i[c])(o), n !== void 0 && e.finished.finally(n);
- bd & 3 && lf(), Tf(t), a = t.pendingLanes, r & 261930 && a & 42 ? t === Od ? Dd++ : (Dd = 0, Od = t) : (Dd = 0, Od = null), Ef(0, !1);
+ xd & 3 && lf(), Tf(t), a = t.pendingLanes, r & 261930 && a & 42 ? t === Od ? Dd++ : (Dd = 0, Od = t) : (Dd = 0, Od = null), Ef(0, !1);
}
}
function cf(e, t) {
- (e.pooledCacheLanes &= t) === 0 && (t = e.pooledCache, t != null && (e.pooledCache = null, Oa(t)));
+ (e.pooledCacheLanes &= t) === 0 && (t = e.pooledCache, t != null && (e.pooledCache = null, Da(t)));
}
function lf() {
return wd !== null && (wd.skipTransition(), wd = null), af(), of(), sf(), uf();
}
function uf() {
if (vd !== 5) return !1;
- var e = Q, t = xd;
- xd = 0;
- var n = _t(bd), r = I.T, a = L.p;
+ var e = yd, t = Sd;
+ Sd = 0;
+ var n = vt(xd), r = F.T, a = I.p;
try {
- L.p = 32 > n ? 32 : n, I.T = null, n = Sd, Sd = null;
- var o = Q, s = bd;
- if (vd = 0, yd = Q = null, bd = 0, $u & 6) throw Error(i(331));
- var c = $u;
- if ($u |= 4, Ju(o.current), Bu(o, o.current, s, n), $u = c, Ef(0, !1), Ye && typeof Ye.onPostCommitFiberRoot == "function") try {
- Ye.onPostCommitFiberRoot(Je, o);
+ I.p = 32 > n ? 32 : n, F.T = null, n = Q, Q = null;
+ var o = yd, s = xd;
+ if (vd = 0, bd = yd = null, xd = 0, q & 6) throw Error(i(331));
+ var c = q;
+ if (q |= 4, Ju(o.current), Bu(o, o.current, s, n), q = c, Ef(0, !1), Xe && typeof Xe.onPostCommitFiberRoot == "function") try {
+ Xe.onPostCommitFiberRoot(Ye, o);
} catch {}
return !0;
} finally {
- L.p = a, I.T = r, cf(e, t);
+ I.p = a, F.T = r, cf(e, t);
}
}
function df(e, t, n) {
- t = Li(n, t), t = Tc(e.stateNode, t, 2), e = po(e, t, 2), e !== null && (dt(e, 2), Tf(e));
+ t = Ri(n, t), t = wc(e.stateNode, t, 2), e = fo(e, t, 2), e !== null && (ft(e, 2), Tf(e));
}
function ff(e, t, n) {
if (e.tag === 3) df(e, e, n);
@@ -13870,7 +13973,7 @@ var au = /* @__PURE__ */ p(((e) => {
if (t.tag === 1) {
var r = t.stateNode;
if (typeof t.type.getDerivedStateFromError == "function" || typeof r.componentDidCatch == "function" && (_d === null || !_d.has(r))) {
- e = Li(n, e), n = Ec(2), r = po(t, n, 2), r !== null && (Dc(n, r, t, e), dt(r, 2), Tf(r));
+ e = Ri(n, e), n = Tc(2), r = fo(t, n, 2), r !== null && (Ec(n, r, t, e), ft(r, 2), Tf(r));
break;
}
}
@@ -13884,14 +13987,14 @@ var au = /* @__PURE__ */ p(((e) => {
var i = /* @__PURE__ */ new Set();
r.set(t, i);
} else i = r.get(t), i === void 0 && (i = /* @__PURE__ */ new Set(), r.set(t, i));
- i.has(n) || (rd = !0, i.add(n), e = mf.bind(null, e, t, n), t.then(e, e));
+ i.has(n) || (id = !0, i.add(n), e = mf.bind(null, e, t, n), t.then(e, e));
}
function mf(e, t, n) {
var r = e.pingCache;
- r !== null && r.delete(t), e.pingedLanes |= e.suspendedLanes & n, e.warmLanes &= ~n, ed === e && (J & n) === n && (ad === 4 || ad === 3 && (J & 62914560) === J && 300 > ze() - pd ? $u & 2 ? cd |= n : zd(e, 0) : cd |= n, ud === J && (ud = 0)), Tf(e);
+ r !== null && r.delete(t), e.pingedLanes |= e.suspendedLanes & n, e.warmLanes &= ~n, $u === e && (Y & n) === n && (ad === 4 || ad === 3 && (Y & 62914560) === Y && 300 > Be() - md ? q & 2 ? cd |= n : zd(e, 0) : cd |= n, ud === Y && (ud = 0)), Tf(e);
}
function hf(e, t) {
- t === 0 && (t = lt()), e = Si(e, t), e !== null && (dt(e, t), Tf(e));
+ t === 0 && (t = ut()), e = Ci(e, t), e !== null && (ft(e, t), Tf(e));
}
function gf(e) {
var t = e.memoizedState, n = 0;
@@ -13916,7 +14019,7 @@ var au = /* @__PURE__ */ p(((e) => {
r !== null && r.delete(t), hf(e, n);
}
function vf(e, t) {
- return Fe(e, t);
+ return Ie(e, t);
}
var yf = null, bf = null, xf = !1, Sf = !1, Cf = !1, wf = 0;
function Tf(e) {
@@ -13933,10 +14036,10 @@ var au = /* @__PURE__ */ p(((e) => {
if (i === 0) var a = 0;
else {
var o = r.suspendedLanes, s = r.pingedLanes;
- a = (1 << 31 - Ze(42 | e) + 1) - 1, a &= i & ~(o & ~s), a = a & 201326741 ? a & 201326741 | 1 : a ? a | 2 : 0;
+ a = (1 << 31 - Qe(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 = J, a = at(r, r === ed ? a : 0, r.cancelPendingCommit !== null || r.timeoutHandle !== -1), !(a & 3) || ot(r, a) || (n = !0, jf(r, a));
+ } else a = Y, a = ot(r, r === $u ? a : 0, r.cancelPendingCommit !== null || r.timeoutHandle !== -1), !(a & 3) || st(r, a) || (n = !0, jf(r, a));
}
r = r.next;
}
@@ -13951,7 +14054,7 @@ var au = /* @__PURE__ */ p(((e) => {
Sf = xf = !1;
var e = 0;
wf !== 0 && hp() && (e = wf);
- for (var t = ze(), n = null, r = yf; r !== null;) {
+ for (var t = Be(), n = null, r = yf; r !== null;) {
var i = r.next, a = kf(r, t);
a === 0 ? (r.next = null, n === null ? yf = i : n.next = i, i === null && (bf = n)) : (n = r, (e !== 0 || a & 3) && (Sf = !0)), r = i;
}
@@ -13959,35 +14062,35 @@ var au = /* @__PURE__ */ p(((e) => {
}
function kf(e, t) {
for (var n = e.suspendedLanes, r = e.pingedLanes, i = e.expirationTimes, a = e.pendingLanes & -62914561; 0 < a;) {
- 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;
+ var o = 31 - Qe(a), s = 1 << o, c = i[o];
+ c === -1 ? ((s & n) === 0 || (s & r) !== 0) && (i[o] = lt(s, t)) : c <= t && (e.expiredLanes |= s), a &= ~s;
}
- if (t = ed, n = J, n = at(e, e === t ? n : 0, e.cancelPendingCommit !== null || e.timeoutHandle !== -1), r = e.callbackNode, n === 0 || e === t && (Y === 2 || Y === 9) || e.cancelPendingCommit !== null) return r !== null && r !== null && Ie(r), e.callbackNode = null, e.callbackPriority = 0;
- if (!(n & 3) || ot(e, n)) {
+ if (t = $u, n = Y, n = ot(e, e === t ? n : 0, e.cancelPendingCommit !== null || e.timeoutHandle !== -1), r = e.callbackNode, n === 0 || e === t && (ed === 2 || ed === 9) || e.cancelPendingCommit !== null) return r !== null && r !== null && Le(r), e.callbackNode = null, e.callbackPriority = 0;
+ if (!(n & 3) || st(e, n)) {
if (t = n & -n, t === e.callbackPriority) return t;
- switch (r !== null && Ie(r), _t(n)) {
+ switch (r !== null && Le(r), vt(n)) {
case 2:
case 8:
- n = He;
+ n = Ue;
break;
case 32:
- n = Ue;
+ n = We;
break;
case 268435456:
- n = Ge;
+ n = Ke;
break;
- default: n = Ue;
+ default: n = We;
}
- return r = Af.bind(null, e), n = Fe(n, r), e.callbackPriority = t, e.callbackNode = n, t;
+ return r = Af.bind(null, e), n = Ie(n, r), e.callbackPriority = t, e.callbackNode = n, t;
}
- return r !== null && r !== null && Ie(r), e.callbackPriority = 2, e.callbackNode = null, 2;
+ return r !== null && r !== null && Le(r), e.callbackPriority = 2, e.callbackNode = null, 2;
}
function Af(e, t) {
if (vd !== 0 && vd !== 5) return e.callbackNode = null, e.callbackPriority = 0, null;
var n = e.callbackNode;
if (lf() && e.callbackNode !== n) return null;
- var r = J;
- return r = at(e, e === ed ? r : 0, e.cancelPendingCommit !== null || e.timeoutHandle !== -1), r === 0 ? null : (Nd(e, r, t), kf(e, ze()), e.callbackNode != null && e.callbackNode === n ? Af.bind(null, e) : null);
+ var r = Y;
+ return r = ot(e, e === $u ? 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;
@@ -13995,24 +14098,24 @@ var au = /* @__PURE__ */ p(((e) => {
}
function Mf() {
bp(function() {
- $u & 6 ? Fe(Ve, Df) : Of();
+ q & 6 ? Ie(He, Df) : Of();
});
}
function Nf() {
if (wf === 0) {
- var e = Pa;
- e === 0 && (e = tt, tt <<= 1, !(tt & 261888) && (tt = 256)), wf = e;
+ var e = Na;
+ e === 0 && (e = nt, nt <<= 1, !(nt & 261888) && (nt = 256)), wf = e;
}
return wf;
}
function Pf(e) {
- return e == null || typeof e == "symbol" || typeof e == "boolean" ? null : typeof e == "function" ? e : fn(e);
+ return e == null || typeof e == "symbol" || typeof e == "boolean" ? null : typeof e == "function" ? e : pn(e);
}
function Ff(e, t, n, r, i) {
if (t === "submit" && n && n.stateNode === i) {
- var a = Pf((i[R] || null).action), o = r.submitter;
- o && (t = (t = o[R] || null) ? Pf(t.formAction) : o.getAttribute("formAction"), t !== null && (a = t, o = null));
- var s = new Pn("action", "action", null, r, i);
+ var a = Pf((i[Ct] || null).action), o = r.submitter;
+ o && (t = (t = o[Ct] || null) ? Pf(t.formAction) : o.getAttribute("formAction"), t !== null && (a = t, o = null));
+ var s = new Fn("action", "action", null, r, i);
e.push({
event: s,
listeners: [{
@@ -14021,14 +14124,14 @@ var au = /* @__PURE__ */ p(((e) => {
if (r.defaultPrevented) {
if (wf !== 0) {
var e = new FormData(i, o);
- Zs(n, {
+ Xs(n, {
pending: !0,
data: e,
method: i.method,
action: a
}, null, e);
}
- } else typeof a == "function" && (s.preventDefault(), e = new FormData(i, o), Zs(n, {
+ } else typeof a == "function" && (s.preventDefault(), e = new FormData(i, o), Xs(n, {
pending: !0,
data: e,
method: i.method,
@@ -14040,16 +14143,16 @@ var au = /* @__PURE__ */ p(((e) => {
});
}
}
- for (var If = 0; If < li.length; If++) {
- var Lf = li[If];
- ui(Lf.toLowerCase(), "on" + (Lf[0].toUpperCase() + Lf.slice(1)));
+ for (var If = 0; If < ui.length; If++) {
+ var Lf = ui[If];
+ di(Lf.toLowerCase(), "on" + (Lf[0].toUpperCase() + Lf.slice(1)));
}
- ui(ti, "onAnimationEnd"), ui(ni, "onAnimationIteration"), ui(ri, "onAnimationStart"), ui("dblclick", "onDoubleClick"), ui("focusin", "onFocus"), ui("focusout", "onBlur"), ui(ii, "onTransitionRun"), ui(ai, "onTransitionStart"), ui(oi, "onTransitionCancel"), ui(si, "onTransitionEnd"), Lt("onMouseEnter", ["mouseout", "mouseover"]), Lt("onMouseLeave", ["mouseout", "mouseover"]), Lt("onPointerEnter", ["pointerout", "pointerover"]), Lt("onPointerLeave", ["pointerout", "pointerover"]), It("onChange", "change click focusin focusout input keydown keyup selectionchange".split(" ")), It("onSelect", "focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")), It("onBeforeInput", [
+ di(ni, "onAnimationEnd"), di(ri, "onAnimationIteration"), di(ii, "onAnimationStart"), di("dblclick", "onDoubleClick"), di("focusin", "onFocus"), di("focusout", "onBlur"), di(ai, "onTransitionRun"), di(oi, "onTransitionStart"), di(si, "onTransitionCancel"), di(ci, "onTransitionEnd"), 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"
- ]), It("onCompositionEnd", "compositionend focusout keydown keypress keyup mousedown".split(" ")), It("onCompositionStart", "compositionstart focusout keydown keypress keyup mousedown".split(" ")), It("onCompositionUpdate", "compositionupdate focusout keydown keypress keyup mousedown".split(" "));
+ ]), 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);
@@ -14065,7 +14168,7 @@ var au = /* @__PURE__ */ p(((e) => {
try {
a(i);
} catch (e) {
- hi(e);
+ gi(e);
}
i.currentTarget = null, a = c;
}
@@ -14075,7 +14178,7 @@ var au = /* @__PURE__ */ p(((e) => {
try {
a(i);
} catch (e) {
- hi(e);
+ gi(e);
}
i.currentTarget = null, a = c;
}
@@ -14083,8 +14186,8 @@ var au = /* @__PURE__ */ p(((e) => {
}
}
function $(e, t) {
- var n = t[Ct];
- n === void 0 && (n = t[Ct] = /* @__PURE__ */ new Set());
+ var n = t[Tt];
+ n === void 0 && (n = t[Tt] = /* @__PURE__ */ new Set());
var r = e + "__bubble";
n.has(r) || (Wf(t, e, 2, !1), n.add(r));
}
@@ -14095,7 +14198,7 @@ var au = /* @__PURE__ */ p(((e) => {
var Hf = "_reactListening" + Math.random().toString(36).slice(2);
function Uf(e) {
if (!e[Hf]) {
- e[Hf] = !0, Pt.forEach(function(t) {
+ e[Hf] = !0, z.forEach(function(t) {
t !== "selectionchange" && (zf.has(t) || Vf(t, !1, e), Vf(t, !0, e));
});
var t = e.nodeType === 9 ? e : e.ownerDocument;
@@ -14112,7 +14215,7 @@ var au = /* @__PURE__ */ p(((e) => {
break;
default: i = yh;
}
- n = i.bind(null, t, n, e), i = void 0, !Cn || t !== "touchstart" && t !== "touchmove" && t !== "wheel" || (i = !0), r ? i === void 0 ? e.addEventListener(t, n, !0) : e.addEventListener(t, n, {
+ n = i.bind(null, t, n, e), i = void 0, !wn || t !== "touchstart" && t !== "touchmove" && t !== "wheel" || (i = !0), r ? i === void 0 ? e.addEventListener(t, n, !0) : e.addEventListener(t, n, {
capture: !0,
passive: i
}) : i === void 0 ? e.addEventListener(t, n, !1) : e.addEventListener(t, n, { passive: i });
@@ -14131,7 +14234,7 @@ var au = /* @__PURE__ */ p(((e) => {
s = s.return;
}
for (; c !== null;) {
- if (s = At(c), s === null) return;
+ if (s = jt(c), s === null) return;
if (l = s.tag, l === 5 || l === 6 || l === 26 || l === 27) {
r = a = s;
continue a;
@@ -14141,27 +14244,27 @@ var au = /* @__PURE__ */ p(((e) => {
}
r = r.return;
}
- bn(function() {
- var r = a, i = hn(n), s = [];
+ xn(function() {
+ var r = a, i = gn(n), s = [];
a: {
- var c = ci.get(e);
+ var c = li.get(e);
if (c !== void 0) {
- var l = Pn, u = e;
+ var l = Fn, u = e;
switch (e) {
- case "keypress": if (kn(n) === 0) break a;
+ case "keypress": if (An(n) === 0) break a;
case "keydown":
case "keyup":
- l = Qn;
+ l = $n;
break;
case "focusin":
- u = "focus", l = Un;
+ u = "focus", l = Wn;
break;
case "focusout":
- u = "blur", l = Un;
+ u = "blur", l = Wn;
break;
case "beforeblur":
case "afterblur":
- l = Un;
+ l = Wn;
break;
case "click": if (n.button === 2) break a;
case "auxclick":
@@ -14172,7 +14275,7 @@ var au = /* @__PURE__ */ p(((e) => {
case "mouseout":
case "mouseover":
case "contextmenu":
- l = Vn;
+ l = Hn;
break;
case "drag":
case "dragend":
@@ -14182,33 +14285,33 @@ var au = /* @__PURE__ */ p(((e) => {
case "dragover":
case "dragstart":
case "drop":
- l = Hn;
+ l = Un;
break;
case "touchcancel":
case "touchend":
case "touchmove":
case "touchstart":
- l = tr;
+ l = nr;
break;
- case ti:
case ni:
case ri:
- l = Wn;
+ case ii:
+ l = Gn;
break;
- case si:
- l = nr;
+ case ci:
+ l = rr;
break;
case "scroll":
case "scrollend":
- l = In;
+ l = Ln;
break;
case "wheel":
- l = rr;
+ l = ir;
break;
case "copy":
case "cut":
case "paste":
- l = Gn;
+ l = Kn;
break;
case "gotpointercapture":
case "lostpointercapture":
@@ -14218,19 +14321,19 @@ var au = /* @__PURE__ */ p(((e) => {
case "pointerout":
case "pointerover":
case "pointerup":
- l = $n;
+ l = er;
break;
case "submit":
- l = er;
+ l = tr;
break;
case "toggle":
- case "beforetoggle": l = ir;
+ case "beforetoggle": l = ar;
}
var d = !!(t & 4), f = !d && (e === "scroll" || e === "scrollend"), p = d ? c === null ? null : c + "Capture" : c;
d = [];
for (var m = r, h; m !== null;) {
var g = m;
- if (h = g.stateNode, g = g.tag, g !== 5 && g !== 26 && g !== 27 || h === null || p === null || (g = xn(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 = Sn(m, p), g != null && d.push(Kf(m, g, h))), f) break;
m = m.return;
}
0 < d.length && (c = new l(c, u, null, n, i), s.push({
@@ -14241,45 +14344,45 @@ var au = /* @__PURE__ */ p(((e) => {
}
if (!(t & 7)) {
a: {
- if (l = e === "mouseover" || e === "pointerover", c = e === "mouseout" || e === "pointerout", l && n !== mn && (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 = $n, 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, 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 ? w(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 !== hn && (u = n.relatedTarget || n.fromElement) && (jt(u) || u[wt])) 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 ? jt(l) : null, l !== null && (f = o(l), d = l.tag, l !== f || d !== 5 && d !== 27 && d !== 6) && (l = null)) : (c = null, l = r), c !== l && (d = Hn, g = "onMouseLeave", p = "onMouseEnter", m = "mouse", (e === "pointerout" || e === "pointerover") && (d = er, g = "onPointerLeave", p = "onPointerEnter", m = "pointer"), f = c == null ? u : Nt(c), h = l == null ? u : Nt(l), u = new d(g, m + "leave", c, n, i), u.target = f, u.relatedTarget = h, g = null, jt(i) === r && (d = new d(p, m + "enter", l, n, i), d.target = h, d.relatedTarget = f, g = d), f = g, d = c && l ? w(c, l, Jf) : null, c !== null && Yf(s, u, c, d, !1), l !== null && f !== null && Yf(s, f, l, d, !0)));
}
a: {
- if (c = r ? jt(r) : window, l = c.nodeName && c.nodeName.toLowerCase(), l === "select" || l === "input" && c.type === "file") var _ = Cr;
- else if (_r(c)) {
- if (wr) _ = Nr;
+ if (c = r ? Nt(r) : window, l = c.nodeName && c.nodeName.toLowerCase(), l === "select" || l === "input" && c.type === "file") var _ = wr;
+ else if (vr(c)) {
+ if (Tr) _ = Pr;
else {
- _ = jr;
- var v = Ar;
+ _ = Mr;
+ var v = jr;
}
- } else l = c.nodeName, !l || l.toLowerCase() !== "input" || c.type !== "checkbox" && c.type !== "radio" ? r && ln(r.elementType) && (_ = Cr) : _ = Mr;
+ } else l = c.nodeName, !l || l.toLowerCase() !== "input" || c.type !== "checkbox" && c.type !== "radio" ? r && un(r.elementType) && (_ = wr) : _ = Nr;
if (_ &&= _(e, r)) {
- vr(s, _, n, i);
+ yr(s, _, n, i);
break a;
}
v && v(e, c, r);
}
- switch (v = r ? jt(r) : window, e) {
+ switch (v = r ? Nt(r) : window, e) {
case "focusin":
- (_r(v) || v.contentEditable === "true") && (Gr = v, Kr = r, qr = null);
+ (vr(v) || v.contentEditable === "true") && (Kr = v, qr = r, Jr = null);
break;
case "focusout":
- qr = Kr = Gr = null;
+ Jr = qr = Kr = null;
break;
case "mousedown":
- Jr = !0;
+ Yr = !0;
break;
case "contextmenu":
case "mouseup":
case "dragend":
- Jr = !1, Yr(s, n, i);
+ Yr = !1, Xr(s, n, i);
break;
- case "selectionchange": if (Wr) break;
+ case "selectionchange": if (Gr) break;
case "keydown":
- case "keyup": Yr(s, n, i);
+ case "keyup": Xr(s, n, i);
}
var y;
- if (or) b: {
+ if (sr) b: {
switch (e) {
case "compositionstart":
var b = "onCompositionStart";
@@ -14293,11 +14396,11 @@ var au = /* @__PURE__ */ p(((e) => {
}
b = void 0;
}
- else U ? fr(e, n) && (b = "onCompositionEnd") : e === "keydown" && n.keyCode === 229 && (b = "onCompositionStart");
- b && (lr && n.locale !== "ko" && (U || b !== "onCompositionStart" ? b === "onCompositionEnd" && U && (y = On()) : (Tn = i, En = "value" in Tn ? Tn.value : Tn.textContent, U = !0)), v = qf(r, b), 0 < v.length && (b = new Kn(b, e, null, n, i), s.push({
+ else hr ? pr(e, n) && (b = "onCompositionEnd") : e === "keydown" && n.keyCode === 229 && (b = "onCompositionStart");
+ b && (ur && n.locale !== "ko" && (hr || b !== "onCompositionStart" ? b === "onCompositionEnd" && hr && (y = kn()) : (En = i, Dn = "value" in En ? En.value : En.textContent, hr = !0)), v = qf(r, b), 0 < v.length && (b = new qn(b, e, null, n, i), s.push({
event: b,
listeners: v
- }), y ? b.data = y : (y = pr(n), y !== null && (b.data = y)))), (y = cr ? mr(e, n) : hr(e, n)) && (b = qf(r, "onBeforeInput"), 0 < b.length && (v = new Kn("onBeforeInput", "beforeinput", null, n, i), s.push({
+ }), y ? b.data = y : (y = mr(n), y !== null && (b.data = y)))), (y = lr ? gr(e, n) : _r(e, n)) && (b = qf(r, "onBeforeInput"), 0 < b.length && (v = new qn("onBeforeInput", "beforeinput", null, n, i), s.push({
event: v,
listeners: b
}), v.data = y)), Ff(s, e, r, n, i);
@@ -14315,7 +14418,7 @@ var au = /* @__PURE__ */ p(((e) => {
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 = xn(e, n), i != null && r.unshift(Kf(e, i, a)), i = xn(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 = Sn(e, n), i != null && r.unshift(Kf(e, i, a)), i = Sn(e, t), i != null && r.push(Kf(e, i, a))), e.tag === 3) return r;
e = e.return;
}
return [];
@@ -14331,7 +14434,7 @@ var au = /* @__PURE__ */ p(((e) => {
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 = xn(n, a), l != null && o.unshift(Kf(n, l, c))) : i || (l = xn(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 = Sn(n, a), l != null && o.unshift(Kf(n, l, c))) : i || (l = Sn(n, a), l != null && o.push(Kf(n, l, c)))), n = n.return;
}
o.length !== 0 && e.push({
event: t,
@@ -14348,28 +14451,28 @@ var au = /* @__PURE__ */ p(((e) => {
function ep(e, t, n, r, a, o) {
switch (n) {
case "children":
- if (typeof r == "string") t === "body" || t === "textarea" && r === "" || an(e, r);
- else if (typeof r == "number" || typeof r == "bigint") t !== "body" && an(e, "" + r);
+ 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":
- Ut(e, "class", r);
+ Gt(e, "class", r);
break;
case "tabIndex":
- Ut(e, "tabindex", r);
+ Gt(e, "tabindex", r);
break;
case "dir":
case "role":
case "viewBox":
case "width":
case "height":
- Ut(e, n, r);
+ Gt(e, n, r);
break;
case "style":
- cn(e, r, o);
+ ln(e, r, o);
return;
case "data": if (t !== "object") {
- Ut(e, "data", r);
+ Gt(e, "data", r);
break;
}
case "src":
@@ -14382,7 +14485,7 @@ var au = /* @__PURE__ */ p(((e) => {
e.removeAttribute(n);
break;
}
- r = fn(r), e.setAttribute(n, r);
+ r = pn(r), e.setAttribute(n, r);
break;
case "action":
case "formAction":
@@ -14394,10 +14497,10 @@ var au = /* @__PURE__ */ p(((e) => {
e.removeAttribute(n);
break;
}
- r = fn(r), e.setAttribute(n, r);
+ r = pn(r), e.setAttribute(n, r);
break;
case "onClick":
- r != null && (e.onclick = pn);
+ r != null && (e.onclick = mn);
return;
case "onScroll":
r != null && $("scroll", e);
@@ -14432,7 +14535,7 @@ var au = /* @__PURE__ */ p(((e) => {
e.removeAttribute("xlink:href");
break;
}
- n = fn(r), e.setAttributeNS("http://www.w3.org/1999/xlink", "xlink:href", n);
+ n = pn(r), e.setAttributeNS("http://www.w3.org/1999/xlink", "xlink:href", n);
break;
case "contentEditable":
case "spellCheck":
@@ -14485,49 +14588,49 @@ var au = /* @__PURE__ */ p(((e) => {
r == null || typeof r == "function" || typeof r == "symbol" || isNaN(r) ? e.removeAttribute(n) : e.setAttribute(n, r);
break;
case "popover":
- $("beforetoggle", e), $("toggle", e), H(e, "popover", r);
+ $("beforetoggle", e), $("toggle", e), Wt(e, "popover", r);
break;
case "xlinkActuate":
- Wt(e, "http://www.w3.org/1999/xlink", "xlink:actuate", r);
+ Kt(e, "http://www.w3.org/1999/xlink", "xlink:actuate", r);
break;
case "xlinkArcrole":
- Wt(e, "http://www.w3.org/1999/xlink", "xlink:arcrole", r);
+ Kt(e, "http://www.w3.org/1999/xlink", "xlink:arcrole", r);
break;
case "xlinkRole":
- Wt(e, "http://www.w3.org/1999/xlink", "xlink:role", r);
+ Kt(e, "http://www.w3.org/1999/xlink", "xlink:role", r);
break;
case "xlinkShow":
- Wt(e, "http://www.w3.org/1999/xlink", "xlink:show", r);
+ Kt(e, "http://www.w3.org/1999/xlink", "xlink:show", r);
break;
case "xlinkTitle":
- Wt(e, "http://www.w3.org/1999/xlink", "xlink:title", r);
+ Kt(e, "http://www.w3.org/1999/xlink", "xlink:title", r);
break;
case "xlinkType":
- Wt(e, "http://www.w3.org/1999/xlink", "xlink:type", r);
+ Kt(e, "http://www.w3.org/1999/xlink", "xlink:type", r);
break;
case "xmlBase":
- Wt(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":
- Wt(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":
- Wt(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":
- H(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 = un.get(n) || n, H(e, n, r);
+ default: if (!(2 < n.length) || n[0] !== "o" && n[0] !== "O" || n[1] !== "n" && n[1] !== "N") n = dn.get(n) || n, Wt(e, n, r);
else return;
}
- V = !0;
+ B = !0;
}
function tp(e, t, n, r, a, o) {
switch (n) {
case "style":
- cn(e, r, o);
+ ln(e, r, o);
return;
case "dangerouslySetInnerHTML":
if (r != null) {
@@ -14539,8 +14642,8 @@ var au = /* @__PURE__ */ p(((e) => {
}
break;
case "children":
- if (typeof r == "string") an(e, r);
- else if (typeof r == "number" || typeof r == "bigint") an(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":
@@ -14550,7 +14653,7 @@ var au = /* @__PURE__ */ p(((e) => {
r != null && $("scrollend", e);
return;
case "onClick":
- r != null && (e.onclick = pn);
+ r != null && (e.onclick = mn);
return;
case "suppressContentEditableWarning":
case "suppressHydrationWarning":
@@ -14559,16 +14662,16 @@ var au = /* @__PURE__ */ p(((e) => {
case "innerText":
case "textContent": return;
default:
- if (!Ft.hasOwnProperty(n)) a: {
- if (n[0] === "o" && n[1] === "n" && (a = n.endsWith("Capture"), o = n.slice(2, a ? n.length - 7 : void 0), t = e[R] || null, t = t == null ? null : t[n], typeof t == "function" && e.removeEventListener(o, t, a), typeof r == "function")) {
+ 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[Ct] || 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, "") : H(e, n, r);
+ B = !0, n in e ? e[n] = r : !0 === r ? e.setAttribute(n, "") : Wt(e, n, r);
}
return;
}
- V = !0;
+ B = !0;
}
function np(e, t, n) {
switch (t) {
@@ -14630,7 +14733,7 @@ var au = /* @__PURE__ */ p(((e) => {
default: ep(e, t, r, d, n, null);
}
}
- $t(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) {
@@ -14643,7 +14746,7 @@ var au = /* @__PURE__ */ p(((e) => {
case "multiple": r = c;
default: ep(e, t, a, c, n, null);
}
- t = o, n = s, e.multiple = !!r, t == null ? n != null && tn(e, !!r, n, !0) : tn(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) {
@@ -14661,7 +14764,7 @@ var au = /* @__PURE__ */ p(((e) => {
break;
default: ep(e, t, s, c, n, null);
}
- rn(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) {
@@ -14708,7 +14811,7 @@ var au = /* @__PURE__ */ p(((e) => {
default: ep(e, t, u, r, n, null);
}
return;
- default: if (ln(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;
}
@@ -14741,22 +14844,22 @@ var au = /* @__PURE__ */ p(((e) => {
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 && (B = !0), o = m;
break;
case "name":
- m !== f && (V = !0), a = m;
+ m !== f && (B = !0), a = m;
break;
case "checked":
- m !== f && (V = !0), u = m;
+ m !== f && (B = !0), u = m;
break;
case "defaultChecked":
- m !== f && (V = !0), d = m;
+ m !== f && (B = !0), d = m;
break;
case "value":
- m !== f && (V = !0), s = m;
+ m !== f && (B = !0), s = m;
break;
case "defaultValue":
- m !== f && (V = !0), c = m;
+ m !== f && (B = !0), c = m;
break;
case "children":
case "dangerouslySetInnerHTML":
@@ -14765,7 +14868,7 @@ var au = /* @__PURE__ */ p(((e) => {
default: m !== f && ep(e, t, p, m, r, f);
}
}
- Qt(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) {
@@ -14775,15 +14878,15 @@ var au = /* @__PURE__ */ p(((e) => {
}
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 && (B = !0), p = o;
break;
case "defaultValue":
- o !== l && (V = !0), c = o;
+ o !== l && (B = !0), c = o;
break;
- case "multiple": o !== l && (V = !0), s = o;
+ case "multiple": o !== l && (B = !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 ? tn(e, !!n, n ? [] : "", !1) : tn(e, !!n, t, !0)) : tn(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) {
@@ -14793,10 +14896,10 @@ var au = /* @__PURE__ */ p(((e) => {
}
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 && (B = !0), p = a;
break;
case "defaultValue":
- a !== o && (V = !0), m = a;
+ a !== o && (B = !0), m = a;
break;
case "children": break;
case "dangerouslySetInnerHTML":
@@ -14804,7 +14907,7 @@ var au = /* @__PURE__ */ p(((e) => {
break;
default: a !== o && ep(e, t, s, a, r, o);
}
- nn(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) {
@@ -14815,7 +14918,7 @@ var au = /* @__PURE__ */ p(((e) => {
}
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 && (B = !0), e.selected = p && typeof p != "function" && typeof p != "symbol";
break;
default: ep(e, t, l, p, r, m);
}
@@ -14844,7 +14947,7 @@ var au = /* @__PURE__ */ p(((e) => {
default: ep(e, t, u, p, r, m);
}
return;
- default: if (ln(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;
@@ -14903,7 +15006,7 @@ var au = /* @__PURE__ */ p(((e) => {
return e === 1 && t === "foreignObject" ? 0 : e;
}
function fp(e, t, n, r) {
- return n = lp(n).createElement(e), n[xt] = r, n[R] = t, np(n, e, t), Mt(n), n;
+ return n = lp(n).createElement(e), n[St] = r, n[Ct] = t, np(n, e, t), R(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;
@@ -14941,7 +15044,7 @@ var au = /* @__PURE__ */ p(((e) => {
n = e.ownerDocument.head, _m(n);
for (var a = n.firstChild; a;) {
var o = a.nextSibling, s = a.nodeName;
- a[Dt] || s === "SCRIPT" || s === "STYLE" || s === "LINK" && a.rel.toLowerCase() === "stylesheet" || n.removeChild(a), a = o;
+ a[Ot] || s === "SCRIPT" || s === "STYLE" || s === "LINK" && a.rel.toLowerCase() === "stylesheet" || n.removeChild(a), a = o;
}
} else n === "body" && _m(e.ownerDocument.body);
}
@@ -15120,7 +15223,7 @@ var au = /* @__PURE__ */ p(((e) => {
}
};
function Ip(e, t, n, r) {
- return v(e).addEventListener(t, n, r), !1;
+ return _(e).addEventListener(t, n, r), !1;
}
Fp.prototype.removeEventListener = function(e, t, n) {
var r = this._eventListeners;
@@ -15132,7 +15235,7 @@ var au = /* @__PURE__ */ p(((e) => {
}
};
function Lp(e, t, n, r) {
- return v(e).removeEventListener(t, n, r), !1;
+ return _(e).removeEventListener(t, n, r), !1;
}
function Rp(e) {
return e != null && typeof e != "boolean" && (!0 === e.once || e.signal instanceof AbortSignal) ? {
@@ -15155,7 +15258,7 @@ var au = /* @__PURE__ */ p(((e) => {
Fp.prototype.dispatchEvent = function(e) {
var t = p(this._fragmentFiber);
if (t === null) return !0;
- t = v(t);
+ t = _(t);
var n = this._eventListeners;
if (n !== null && 0 < n.length || !e.bubbles) {
var r = t.nodeType === 9 ? t.createComment("") : document.createTextNode("");
@@ -15171,7 +15274,7 @@ var au = /* @__PURE__ */ p(((e) => {
f(this._fragmentFiber.child, !0, Vp, e, void 0, void 0);
};
function Vp(e, t) {
- return e.tag !== 6 && (e = v(e), pm(e, t));
+ return e.tag !== 6 && (e = _(e), pm(e, t));
}
Fp.prototype.focusLast = function(e) {
var t = [];
@@ -15183,16 +15286,16 @@ var au = /* @__PURE__ */ p(((e) => {
}
Fp.prototype.blur = function() {
var e = p(this._fragmentFiber);
- e !== null && (e = v(e), e = lp(e).activeElement, e !== null && f(this._fragmentFiber.child, !1, Up, e, void 0, void 0));
+ e !== null && (e = _(e), e = lp(e).activeElement, e !== null && f(this._fragmentFiber.child, !1, Up, e, void 0, void 0));
};
function Up(e, t) {
- return e.tag !== 6 && (e = v(e), e === t || e.contains(t) ? (t.blur(), !0) : !1);
+ return e.tag !== 6 && (e = _(e), e === t || e.contains(t) ? (t.blur(), !0) : !1);
}
Fp.prototype.observeUsing = function(e) {
this._observers === null && (this._observers = /* @__PURE__ */ new Set()), this._observers.add(e), f(this._fragmentFiber.child, !1, Wp, e, void 0, void 0);
};
function Wp(e, t) {
- return e.tag !== 6 && (e = v(e), t.observe(e), !1);
+ return e.tag !== 6 && (e = _(e), t.observe(e), !1);
}
Fp.prototype.unobserveUsing = function(e) {
var t = this._observers;
@@ -15206,7 +15309,7 @@ var au = /* @__PURE__ */ p(((e) => {
}
};
function Gp(e, t) {
- return e.tag !== 6 && (e = v(e), t.unobserve(e), !1);
+ return e.tag !== 6 && (e = _(e), t.unobserve(e), !1);
}
var Kp = [], qp = !1;
function Jp(e, t, n) {
@@ -15233,18 +15336,18 @@ var au = /* @__PURE__ */ p(((e) => {
e = e.stateNode;
var n = e.ownerDocument.createRange();
n.selectNodeContents(e), t.push.apply(t, n.getClientRects());
- } else e = v(e), t.push.apply(t, e.getClientRects());
+ } else e = _(e), t.push.apply(t, e.getClientRects());
return !1;
}
Fp.prototype.getRootNode = function(e) {
var t = p(this._fragmentFiber);
- return t === null ? this : v(t).getRootNode(e);
+ return t === null ? this : _(t).getRootNode(e);
}, Fp.prototype.compareDocumentPosition = function(e) {
var t = p(this._fragmentFiber);
if (t === null) return Node.DOCUMENT_POSITION_DISCONNECTED;
var n = [];
f(this._fragmentFiber.child, !1, Hp, n, void 0, void 0);
- var r = v(t);
+ var r = _(t);
if (n.length === 0) {
if (n = r, m(this._fragmentFiber)) {
a: {
@@ -15262,9 +15365,9 @@ var au = /* @__PURE__ */ p(((e) => {
}
t = this._fragmentFiber;
var i = r = n.compareDocumentPosition(e);
- return n === e ? i = Node.DOCUMENT_POSITION_CONTAINS : r & Node.DOCUMENT_POSITION_CONTAINED_BY && (n = h(t)[1], n === null ? i = Node.DOCUMENT_POSITION_PRECEDING : (e = v(n).compareDocumentPosition(e), i = e === 0 || e & Node.DOCUMENT_POSITION_FOLLOWING ? Node.DOCUMENT_POSITION_FOLLOWING : Node.DOCUMENT_POSITION_PRECEDING)), i |= Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC;
+ return n === e ? i = Node.DOCUMENT_POSITION_CONTAINS : r & Node.DOCUMENT_POSITION_CONTAINED_BY && (n = h(t)[1], n === null ? i = Node.DOCUMENT_POSITION_PRECEDING : (e = _(n).compareDocumentPosition(e), i = e === 0 || e & Node.DOCUMENT_POSITION_FOLLOWING ? Node.DOCUMENT_POSITION_FOLLOWING : Node.DOCUMENT_POSITION_PRECEDING)), i |= Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC;
}
- t = v(n[0]), i = v(n[n.length - 1]);
+ t = _(n[0]), i = _(n[n.length - 1]);
var a = m(this._fragmentFiber) ? t.parentElement : r;
if (a == null) return Node.DOCUMENT_POSITION_DISCONNECTED;
r = a.compareDocumentPosition(t) & Node.DOCUMENT_POSITION_CONTAINED_BY, a = a.compareDocumentPosition(i) & Node.DOCUMENT_POSITION_CONTAINED_BY;
@@ -15272,7 +15375,7 @@ var au = /* @__PURE__ */ p(((e) => {
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 = jt(i);
if (e & Node.DOCUMENT_POSITION_CONTAINED_BY) {
if (n = !!a) a: {
for (; a !== null;) {
@@ -15315,10 +15418,10 @@ var au = /* @__PURE__ */ p(((e) => {
var r = h(this._fragmentFiber);
if (r = n ? r[1] || r[0] || p(this._fragmentFiber) : r[0] || r[1], r === null) return;
if (r.tag === 6) {
- e = v(r), Zp(e, n);
+ e = _(r), Zp(e, n);
return;
}
- if (r = v(r), r.nodeType !== 9) {
+ if (r = _(r), r.nodeType !== 9) {
if (r.nodeType === 11) {
n = "host" in r ? r.host : null, n !== null && n.scrollIntoView(e);
return;
@@ -15328,11 +15431,11 @@ var au = /* @__PURE__ */ p(((e) => {
}
for (r = n ? t.length - 1 : 0; r !== (n ? -1 : t.length);) {
var a = t[r];
- a.tag === 6 ? (a = v(a), Zp(a, n)) : v(a).scrollIntoView(e), r += n ? -1 : 1;
+ a.tag === 6 ? (a = _(a), Zp(a, n)) : _(a).scrollIntoView(e), r += n ? -1 : 1;
}
};
function Qp(e, t) {
- return e = v(e), $p(e, t), !1;
+ return e = _(e), $p(e, t), !1;
}
function $p(e, t) {
e.reactFragments ??= /* @__PURE__ */ new Set(), e.reactFragments.add(t);
@@ -15369,7 +15472,7 @@ var au = /* @__PURE__ */ p(((e) => {
case "HTML":
case "HEAD":
case "BODY":
- nm(n), kt(n);
+ nm(n), At(n);
continue;
case "SCRIPT":
case "STYLE": continue;
@@ -15388,7 +15491,7 @@ var au = /* @__PURE__ */ p(((e) => {
var a = i.name == null ? null : "" + i.name;
if (i.type === "hidden" && e.getAttribute("name") === a) return e;
} else return e;
- } else if (!e[Dt]) switch (t) {
+ } else if (!e[Ot]) switch (t) {
case "meta":
if (!e.hasAttribute("itemprop")) break;
return e;
@@ -15512,11 +15615,11 @@ var au = /* @__PURE__ */ p(((e) => {
var i = n[r];
n.hasOwnProperty(r) && i != null && ep(e, t, r, null, rp, i);
}
- n.dangerouslySetInnerHTML != null && (e.textContent = ""), e.onclick === pn && (e.onclick = null), kt(e);
+ n.dangerouslySetInnerHTML != null && (e.textContent = ""), e.onclick === mn && (e.onclick = null), At(e);
}
function _m(e) {
for (var t = e.attributes; t.length;) e.removeAttributeNode(t[0]);
- kt(e);
+ At(e);
}
var vm = /* @__PURE__ */ new Map(), ym = /* @__PURE__ */ new Set();
function bm(e) {
@@ -15526,8 +15629,8 @@ var au = /* @__PURE__ */ p(((e) => {
}
return e.nodeType === 9 ? e : e.ownerDocument;
}
- var xm = L.d;
- L.d = {
+ var xm = I.d;
+ I.d = {
f: Sm,
r: Cm,
D: Em,
@@ -15543,19 +15646,19 @@ var au = /* @__PURE__ */ p(((e) => {
return e || t;
}
function Cm(e) {
- var t = z(e);
- t !== null && t.tag === 5 && t.type === "form" ? $s(t) : xm.r(e);
+ var t = Mt(e);
+ t !== null && t.tag === 5 && t.type === "form" ? Qs(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 = Zt(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), Mt(t), r.head.appendChild(t)));
+ }, r.querySelector(i) === null && (t = r.createElement("link"), np(t, "link", e), R(t), r.head.appendChild(t)));
}
}
function Em(e) {
@@ -15568,8 +15671,8 @@ var au = /* @__PURE__ */ p(((e) => {
xm.L(e, t, n);
var r = wm;
if (r && e && t) {
- var i = "link[rel=\"preload\"][as=\"" + Zt(t) + "\"]";
- t === "image" && n && n.imageSrcSet ? (i += "[imagesrcset=\"" + Zt(n.imageSrcSet) + "\"]", typeof n.imageSizes == "string" && (i += "[imagesizes=\"" + Zt(n.imageSizes) + "\"]")) : i += "[href=\"" + Zt(e) + "\"]";
+ var 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":
@@ -15583,9 +15686,9 @@ var au = /* @__PURE__ */ p(((e) => {
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() {
- Nt(o);
- }), Mt(o), r.head.appendChild(o);
+ np(o, "link", e), t === "style" && (o[kt] = !0, o.onload = o.onerror = function() {
+ Ft(o);
+ }), R(o), r.head.appendChild(o);
}
}
}
@@ -15593,7 +15696,7 @@ var au = /* @__PURE__ */ p(((e) => {
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=\"" + Zt(r) + "\"][href=\"" + Zt(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":
@@ -15614,7 +15717,7 @@ var au = /* @__PURE__ */ p(((e) => {
case "worker":
case "script": if (n.querySelector(zm(a))) return;
}
- r = n.createElement("link"), np(r, "link", e), Mt(r), n.head.appendChild(r);
+ r = n.createElement("link"), np(r, "link", e), R(r), n.head.appendChild(r);
}
}
}
@@ -15622,7 +15725,7 @@ var au = /* @__PURE__ */ p(((e) => {
xm.S(e, t, n);
var r = wm;
if (r && e) {
- var i = B(r).hoistableStyles, a = Pm(e);
+ var i = Pt(r).hoistableStyles, a = Pm(e);
t ||= "default";
var o = i.get(a);
if (!o) {
@@ -15638,7 +15741,7 @@ var au = /* @__PURE__ */ p(((e) => {
"data-precedence": t
}, n), (n = vm.get(a)) && Hm(e, n);
var c = o = r.createElement("link");
- Mt(c), np(c, "link", e), c._p = new Promise(function(e, t) {
+ R(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;
@@ -15659,11 +15762,11 @@ var au = /* @__PURE__ */ p(((e) => {
xm.X(e, t);
var n = wm;
if (n && e) {
- var r = B(n).hoistableScripts, i = Rm(e), a = r.get(i);
+ var r = Pt(n).hoistableScripts, i = Rm(e), a = r.get(i);
a || (a = n.querySelector(zm(i)), a || (e = T({
src: e,
async: !0
- }, t), (t = vm.get(i)) && Um(e, t), a = n.createElement("script"), Mt(a), np(a, "link", e), n.head.appendChild(a)), a = {
+ }, t), (t = vm.get(i)) && Um(e, t), a = n.createElement("script"), R(a), np(a, "link", e), n.head.appendChild(a)), a = {
type: "script",
instance: a,
count: 1,
@@ -15675,12 +15778,12 @@ var au = /* @__PURE__ */ p(((e) => {
xm.M(e, t);
var n = wm;
if (n && e) {
- var r = B(n).hoistableScripts, i = Rm(e), a = r.get(i);
+ var r = Pt(n).hoistableScripts, i = Rm(e), a = r.get(i);
a || (a = n.querySelector(zm(i)), a || (e = T({
src: e,
async: !0,
type: "module"
- }, t), (t = vm.get(i)) && Um(e, t), a = n.createElement("script"), Mt(a), np(a, "link", e), n.head.appendChild(a)), a = {
+ }, t), (t = vm.get(i)) && Um(e, t), a = n.createElement("script"), R(a), np(a, "link", e), n.head.appendChild(a)), a = {
type: "script",
instance: a,
count: 1,
@@ -15689,12 +15792,12 @@ var au = /* @__PURE__ */ p(((e) => {
}
}
function Nm(e, t, n, r) {
- var a = (a = xe.current) ? bm(a) : null;
+ var a = (a = Se.current) ? bm(a) : null;
if (!a) throw Error(i(446));
switch (e) {
case "meta":
case "title": return null;
- case "style": return typeof n.precedence == "string" && typeof n.href == "string" ? (n = Pm(n.href), t = B(a).hoistableStyles, r = t.get(n), r || (r = {
+ case "style": return typeof n.precedence == "string" && typeof n.href == "string" ? (n = Pm(n.href), t = Pt(a).hoistableStyles, r = t.get(n), r || (r = {
type: "style",
instance: null,
count: 0,
@@ -15708,7 +15811,7 @@ var au = /* @__PURE__ */ p(((e) => {
case "link":
if (n.rel === "stylesheet" && typeof n.href == "string" && typeof n.precedence == "string") {
e = Pm(n.href);
- var o = B(a).hoistableStyles, s = o.get(e);
+ var o = Pt(a).hoistableStyles, s = o.get(e);
if (s || (a = a.ownerDocument || a, s = {
type: "stylesheet",
instance: null,
@@ -15731,7 +15834,7 @@ var au = /* @__PURE__ */ p(((e) => {
}
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 = B(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 = Pt(a).hoistableScripts, r = t.get(n), r || (r = {
type: "script",
instance: null,
count: 0,
@@ -15746,7 +15849,7 @@ var au = /* @__PURE__ */ p(((e) => {
}
}
function Pm(e) {
- return "href=\"" + Zt(e) + "\"";
+ return "href=\"" + Qt(e) + "\"";
}
function Fm(e) {
return "link[rel=\"stylesheet\"][" + e + "]";
@@ -15759,11 +15862,11 @@ var au = /* @__PURE__ */ p(((e) => {
}
function Lm(e, t, n, r) {
if (t = e.querySelector("link[rel=\"preload\"][as=\"style\"][" + t + "]")) {
- if (!0 !== t[Ot]) {
+ if (!0 !== t[kt]) {
r.loading = 1;
return;
}
- } else t = e.createElement("link"), t[Ot] = !0, t.onload = t.onerror = Nt.bind(null, t), np(t, "link", n), Mt(t), e.head.appendChild(t);
+ } else t = e.createElement("link"), t[kt] = !0, t.onload = t.onerror = Ft.bind(null, t), np(t, "link", n), R(t), e.head.appendChild(t);
r.preload = t, t.addEventListener("load", function() {
return r.loading |= 1;
}), t.addEventListener("error", function() {
@@ -15771,7 +15874,7 @@ var au = /* @__PURE__ */ p(((e) => {
});
}
function Rm(e) {
- return "[src=\"" + Zt(e) + "\"]";
+ return "[src=\"" + Qt(e) + "\"]";
}
function zm(e) {
return "script[async]" + e;
@@ -15779,25 +15882,25 @@ var au = /* @__PURE__ */ p(((e) => {
function Bm(e, t, n) {
if (t.count++, t.instance === null) switch (t.type) {
case "style":
- var r = e.querySelector("style[data-href~=\"" + Zt(n.href) + "\"]");
- if (r) return t.instance = r, Mt(r), r;
+ var r = e.querySelector("style[data-href~=\"" + Qt(n.href) + "\"]");
+ if (r) return t.instance = r, R(r), r;
var a = T({}, n, {
"data-href": n.href,
"data-precedence": n.precedence,
href: null,
precedence: null
});
- return r = (e.ownerDocument || e).createElement("style"), Mt(r), np(r, "style", a), Vm(r, n.precedence, e), t.instance = r;
+ return r = (e.ownerDocument || e).createElement("style"), R(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, Mt(o), o;
- r = Im(n), (a = vm.get(a)) && Hm(r, a), o = (e.ownerDocument || e).createElement("link"), Mt(o);
+ if (o) return t.state.loading |= 4, t.instance = o, R(o), o;
+ r = Im(n), (a = vm.get(a)) && Hm(r, a), o = (e.ownerDocument || e).createElement("link"), R(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, Mt(a), a) : (r = n, (a = vm.get(o)) && (r = T({}, n), Um(r, a)), e = e.ownerDocument || e, a = e.createElement("script"), Mt(a), np(a, "link", r), e.head.appendChild(a), t.instance = a);
+ case "script": return o = Rm(n.src), (a = e.querySelector(zm(o))) ? (t.instance = a, R(a), a) : (r = n, (a = vm.get(o)) && (r = T({}, n), Um(r, a)), e = e.ownerDocument || e, a = e.createElement("script"), R(a), np(a, "link", r), e.head.appendChild(a), t.instance = a);
case "void": return null;
default: throw Error(i(443, t.type));
}
@@ -15827,7 +15930,7 @@ var au = /* @__PURE__ */ p(((e) => {
if (r.has(e)) return r;
for (r.set(e, null), n = n.getElementsByTagName(e), i = 0; i < n.length; i++) {
var a = n[i];
- if (!(a[Dt] || a[xt] || e === "link" && a.getAttribute("rel") === "stylesheet") && a.namespaceURI !== "http://www.w3.org/2000/svg") {
+ if (!(a[Ot] || a[St] || e === "link" && a.getAttribute("rel") === "stylesheet") && a.namespaceURI !== "http://www.w3.org/2000/svg") {
var o = a.getAttribute(t) || "";
o = e + o;
var s = r.get(o);
@@ -15874,10 +15977,10 @@ var au = /* @__PURE__ */ p(((e) => {
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, Mt(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, R(a);
return;
}
- a = t.ownerDocument || t, r = Im(r), (i = vm.get(i)) && Hm(r, i), a = a.createElement("link"), Mt(a);
+ a = t.ownerDocument || t, r = Im(r), (i = vm.get(i)) && Hm(r, i), a = a.createElement("link"), R(a);
var o = a;
o._p = new Promise(function(e, t) {
o.onload = e, o.onerror = t;
@@ -15942,28 +16045,28 @@ var au = /* @__PURE__ */ p(((e) => {
}
}
var sh = {
- $$typeof: N,
+ $$typeof: te,
Provider: null,
Consumer: null,
- _currentValue: pe,
- _currentValue2: pe,
+ _currentValue: me,
+ _currentValue2: me,
_threadCount: 0
};
function ch(e, t, n, r, i, a, o, s, c) {
- this.tag = 1, this.containerInfo = e, this.pingCache = this.current = this.pendingChildren = null, this.timeoutHandle = -1, this.callbackNode = this.next = this.pendingContext = this.context = this.cancelPendingCommit = null, this.callbackPriority = 0, this.expirationTimes = ut(-1), this.entangledLanes = this.shellSuspendCounter = this.errorRecoveryDisabledLanes = this.expiredLanes = this.warmLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0, this.entanglements = ut(0), this.hiddenUpdates = ut(null), this.identifierPrefix = r, this.onUncaughtError = i, this.onCaughtError = a, this.onRecoverableError = o, this.pooledCache = null, this.pooledCacheLanes = 0, this.formState = c, this.transitionTypes = null, this.incompleteTransitions = /* @__PURE__ */ new Map();
+ this.tag = 1, this.containerInfo = e, this.pingCache = this.current = this.pendingChildren = null, this.timeoutHandle = -1, this.callbackNode = this.next = this.pendingContext = this.context = this.cancelPendingCommit = null, this.callbackPriority = 0, this.expirationTimes = dt(-1), this.entangledLanes = this.shellSuspendCounter = this.errorRecoveryDisabledLanes = this.expiredLanes = this.warmLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0, this.entanglements = dt(0), this.hiddenUpdates = dt(null), this.identifierPrefix = r, this.onUncaughtError = i, this.onCaughtError = a, this.onRecoverableError = o, this.pooledCache = null, this.pooledCacheLanes = 0, this.formState = c, this.transitionTypes = null, this.incompleteTransitions = /* @__PURE__ */ new Map();
}
function lh(e, t, n, r, i, a, o, s, c, l, u, d) {
- return e = new ch(e, t, n, o, c, l, u, d, s), t = 1, !0 === a && (t |= 24), a = Di(3, null, null, t), e.current = a, a.stateNode = e, t = Da(), t.refCount++, e.pooledCache = t, t.refCount++, a.memoizedState = {
+ return e = new ch(e, t, n, o, c, l, u, d, s), t = 1, !0 === a && (t |= 24), a = Oi(3, null, null, t), e.current = a, a.stateNode = e, t = Ea(), t.refCount++, e.pooledCache = t, t.refCount++, a.memoizedState = {
element: r,
isDehydrated: n,
cache: t
- }, lo(a), e;
+ }, co(a), e;
}
function uh(e) {
- return e ? (e = Ti, e) : Ti;
+ return e ? (e = Ei, e) : Ei;
}
function dh(e, t, n, r, i, a) {
- i = uh(i), r.context === null ? r.context = i : r.pendingContext = i, r = fo(t), r.payload = { element: n }, a = a === void 0 ? null : a, a !== null && (r.callback = a), n = po(e, r, t), n !== null && (Md(n, e, t), mo(n, e, t));
+ i = uh(i), r.context === null ? r.context = i : r.pendingContext = i, r = uo(t), r.payload = { element: n }, a = a === void 0 ? null : a, a !== null && (r.callback = a), n = fo(e, r, t), n !== null && (Md(n, e, t), po(n, e, t));
}
function fh(e, t) {
if (e = e.memoizedState, e !== null && e.dehydrated !== null) {
@@ -15976,37 +16079,37 @@ var au = /* @__PURE__ */ p(((e) => {
}
function mh(e) {
if (e.tag === 13 || e.tag === 31) {
- var t = Si(e, 67108864);
+ var t = Ci(e, 67108864);
t !== null && Md(t, e, 67108864), ph(e, 67108864);
}
}
function hh(e) {
if (e.tag === 13 || e.tag === 31) {
var t = kd();
- t = gt(t);
- var n = Si(e, t);
+ t = _t(t);
+ var n = Ci(e, t);
n !== null && Md(n, e, t), ph(e, t);
}
}
var gh = !0;
function _h(e, t, n, r) {
- var i = I.T;
- I.T = null;
- var a = L.p;
+ var i = F.T;
+ F.T = null;
+ var a = I.p;
try {
- L.p = 2, yh(e, t, n, r);
+ I.p = 2, yh(e, t, n, r);
} finally {
- L.p = a, I.T = i;
+ I.p = a, F.T = i;
}
}
function vh(e, t, n, r) {
- var i = I.T;
- I.T = null;
- var a = L.p;
+ var i = F.T;
+ F.T = null;
+ var a = I.p;
try {
- L.p = 8, yh(e, t, n, r);
+ I.p = 8, yh(e, t, n, r);
} finally {
- L.p = a, I.T = i;
+ I.p = a, F.T = i;
}
}
function yh(e, t, n, r) {
@@ -16016,23 +16119,23 @@ var au = /* @__PURE__ */ p(((e) => {
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 = z(i);
+ var a = Mt(i);
if (a !== null) switch (a.tag) {
case 3:
if (a = a.stateNode, a.current.memoizedState.isDehydrated) {
- var o = it(a.pendingLanes);
+ var o = at(a.pendingLanes);
if (o !== 0) {
var s = a;
for (s.pendingLanes |= 2, s.entangledLanes |= 2; o;) {
- var c = 1 << 31 - Ze(o);
+ var c = 1 << 31 - Qe(o);
s.entanglements[1] |= c, o &= ~c;
}
- Tf(a), !($u & 6) && (hd = ze() + 500, Ef(0, !1));
+ Tf(a), !(q & 6) && (Z = Be() + 500, Ef(0, !1));
}
}
break;
case 31:
- case 13: s = Si(a, 2), s !== null && Md(s, a, 2), Ld(), ph(a, 2);
+ case 13: s = Ci(a, 2), s !== null && Md(s, a, 2), Ld(), ph(a, 2);
}
if (a = bh(r), a === null && Gf(e, t, r, xh, n), a === i) break;
i = a;
@@ -16042,11 +16145,11 @@ var au = /* @__PURE__ */ p(((e) => {
}
}
function bh(e) {
- return e = hn(e), Sh(e);
+ return e = gn(e), Sh(e);
}
var xh = null;
function Sh(e) {
- if (xh = null, e = At(e), e !== null) {
+ if (xh = null, e = jt(e), e !== null) {
var t = o(e);
if (t === null) e = null;
else {
@@ -16139,12 +16242,12 @@ var au = /* @__PURE__ */ p(((e) => {
case "mouseleave":
case "pointerenter":
case "pointerleave": return 8;
- case "message": switch (Be()) {
- case Ve: return 2;
- case He: return 8;
- case Ue:
- case We: return 32;
- case Ge: return 268435456;
+ case "message": switch (Ve()) {
+ case He: return 2;
+ case Ue: return 8;
+ case We:
+ case Ge: return 32;
+ case Ke: return 268435456;
default: return 32;
}
default: return 32;
@@ -16180,7 +16283,7 @@ var au = /* @__PURE__ */ p(((e) => {
eventSystemFlags: r,
nativeEvent: a,
targetContainers: [i]
- }, t !== null && (t = z(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 = Mt(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) {
@@ -16195,20 +16298,20 @@ var au = /* @__PURE__ */ p(((e) => {
return !1;
}
function Fh(e) {
- var t = At(e.target);
+ var t = jt(e.target);
if (t !== null) {
var n = o(t);
if (n !== null) {
if (t = n.tag, t === 13) {
if (t = s(n), t !== null) {
- e.blockedOn = t, yt(e.priority, function() {
+ e.blockedOn = t, bt(e.priority, function() {
hh(n);
});
return;
}
} else if (t === 31) {
if (t = c(n), t !== null) {
- e.blockedOn = t, yt(e.priority, function() {
+ e.blockedOn = t, bt(e.priority, function() {
hh(n);
});
return;
@@ -16228,8 +16331,8 @@ var au = /* @__PURE__ */ p(((e) => {
if (n === null) {
n = e.nativeEvent;
var r = new n.constructor(n.type, n);
- mn = r, n.target.dispatchEvent(r), mn = null;
- } else return t = z(n), t !== null && mh(t), e.blockedOn = n, !1;
+ hn = r, n.target.dispatchEvent(r), hn = null;
+ } else return t = Mt(n), t !== null && mh(t), e.blockedOn = n, !1;
t.shift();
}
return !0;
@@ -16253,8 +16356,8 @@ var au = /* @__PURE__ */ p(((e) => {
if (Sh(r || n) === null) continue;
break;
}
- var a = z(n);
- a !== null && (e.splice(t, 3), t -= 3, Zs(a, {
+ var a = Mt(n);
+ a !== null && (e.splice(t, 3), t -= 3, Xs(a, {
pending: !0,
data: i,
method: n.method,
@@ -16274,12 +16377,12 @@ var au = /* @__PURE__ */ p(((e) => {
}
for (; 0 < Ah.length && (n = Ah[0], n.blockedOn === null);) Fh(n), n.blockedOn === null && Ah.shift();
if (n = (e.ownerDocument || e).$$reactFormReplay, n != null) for (r = 0; r < n.length; r += 3) {
- var i = n[r], a = n[r + 1], o = i[R] || null;
+ var i = n[r], a = n[r + 1], o = i[Ct] || null;
if (typeof a == "function") o || Vh(n);
else if (o) {
var s = null;
if (a && a.hasAttribute("formAction")) {
- if (i = a, o = a[R] || null) s = o.formAction;
+ if (i = a, o = a[Ct] || null) s = o.formAction;
else if (Sh(i) !== null) continue;
} else s = o.action;
typeof s == "function" ? n[r + 1] = s : (n.splice(r, 3), r -= 3), Vh(n);
@@ -16331,7 +16434,7 @@ var au = /* @__PURE__ */ p(((e) => {
if (e !== null) {
this._internalRoot = null;
var t = e.containerInfo;
- dh(e.current, 2, null, e, null, null), Ld(), t[St] = null;
+ dh(e.current, 2, null, e, null, null), Ld(), t[wt] = null;
}
};
function Gh(e) {
@@ -16339,7 +16442,7 @@ var au = /* @__PURE__ */ p(((e) => {
}
Gh.prototype.unstable_scheduleHydration = function(e) {
if (e) {
- var t = vt();
+ var t = yt();
e = {
blockedOn: null,
target: e,
@@ -16351,7 +16454,7 @@ var au = /* @__PURE__ */ p(((e) => {
};
var Kh = n.version;
if (Kh !== "19.3.0") throw Error(i(527, Kh, "19.3.0"));
- L.findDOMNode = function(e) {
+ I.findDOMNode = function(e) {
var t = e._reactInternals;
if (t === void 0) throw typeof e.render == "function" ? Error(i(188)) : (e = Object.keys(e).join(","), Error(i(268, e)));
return e = u(t), e = e === null ? null : d(e), e = e === null ? null : e.stateNode, e;
@@ -16360,21 +16463,21 @@ var au = /* @__PURE__ */ p(((e) => {
bundleType: 0,
version: "19.3.0",
rendererPackageName: "react-dom",
- currentDispatcherRef: I,
+ currentDispatcherRef: F,
reconcilerVersion: "19.3.0"
};
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u") {
var Jh = __REACT_DEVTOOLS_GLOBAL_HOOK__;
if (!Jh.isDisabled && Jh.supportsFiber) try {
- Je = Jh.inject(qh), Ye = Jh;
+ Ye = Jh.inject(qh), Xe = Jh;
} catch {}
}
e.createRoot = function(e, t) {
if (!a(e)) throw Error(i(299));
- var n = !1, r = "", o = bc, s = xc, c = Sc;
- return t != null && (!0 === t.unstable_strictMode && (n = !0), t.identifierPrefix !== void 0 && (r = t.identifierPrefix), t.onUncaughtError !== void 0 && (o = t.onUncaughtError), t.onCaughtError !== void 0 && (s = t.onCaughtError), t.onRecoverableError !== void 0 && (c = t.onRecoverableError)), t = lh(e, 1, !1, null, null, n, r, null, o, s, c, Uh), e[St] = t.current, Uf(e), new Wh(t);
+ var n = !1, r = "", o = yc, s = bc, c = xc;
+ 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[wt] = t.current, Uf(e), new Wh(t);
};
-})), cu = (/* @__PURE__ */ p(((e, t) => {
+})), du = (/* @__PURE__ */ m(((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);
@@ -16382,8 +16485,8 @@ var au = /* @__PURE__ */ p(((e) => {
console.error(e);
}
}
- n(), t.exports = su();
-})))(), lu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
+ n(), t.exports = uu();
+})))(), fu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16391,7 +16494,7 @@ var au = /* @__PURE__ */ p(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, b.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" })), uu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
+}, x.createElement("path", { d: "M16.1716 10.9999L10.8076 5.63589L12.2218 4.22168L20 11.9999L12.2218 19.778L10.8076 18.3638L16.1716 12.9999H4V10.9999H16.1716Z" })), pu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16399,7 +16502,7 @@ var au = /* @__PURE__ */ p(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, b.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" })), du = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
+}, x.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" })), mu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16407,7 +16510,7 @@ var au = /* @__PURE__ */ p(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, b.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" })), fu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
+}, x.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" })), hu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16415,7 +16518,7 @@ var au = /* @__PURE__ */ p(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, b.createElement("path", { d: "M12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12H4C4 16.4183 7.58172 20 12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C9.25022 4 6.82447 5.38734 5.38451 7.50024L8 7.5V9.5H2V3.5H4L3.99989 5.99918C5.82434 3.57075 8.72873 2 12 2ZM13 7L12.9998 11.585L16.2426 14.8284L14.8284 16.2426L10.9998 12.413L11 7H13Z" })), pu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
+}, x.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" })), gu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16423,7 +16526,7 @@ var au = /* @__PURE__ */ p(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, b.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" })), mu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
+}, x.createElement("path", { d: "M12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12H4C4 16.4183 7.58172 20 12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C9.25022 4 6.82447 5.38734 5.38451 7.50024L8 7.5V9.5H2V3.5H4L3.99989 5.99918C5.82434 3.57075 8.72873 2 12 2ZM13 7L12.9998 11.585L16.2426 14.8284L14.8284 16.2426L10.9998 12.413L11 7H13Z" })), _u = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16431,100 +16534,108 @@ var au = /* @__PURE__ */ p(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, b.createElement("path", { d: "M14 4.4375C15.3462 4.4375 16.4375 3.34619 16.4375 2H17.5625C17.5625 3.34619 18.6538 4.4375 20 4.4375V5.5625C18.6538 5.5625 17.5625 6.65381 17.5625 8H16.4375C16.4375 6.65381 15.3462 5.5625 14 5.5625V4.4375ZM1 11C4.31371 11 7 8.31371 7 5H9C9 8.31371 11.6863 11 15 11V13C11.6863 13 9 15.6863 9 19H7C7 15.6863 4.31371 13 1 13V11ZM4.87601 12C6.18717 12.7276 7.27243 13.8128 8 15.124 8.72757 13.8128 9.81283 12.7276 11.124 12 9.81283 11.2724 8.72757 10.1872 8 8.87601 7.27243 10.1872 6.18717 11.2724 4.87601 12ZM17.25 14C17.25 15.7949 15.7949 17.25 14 17.25V18.75C15.7949 18.75 17.25 20.2051 17.25 22H18.75C18.75 20.2051 20.2051 18.75 22 18.75V17.25C20.2051 17.25 18.75 15.7949 18.75 14H17.25Z" })), hu = (e, t) => {
+}, x.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" })), vu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
+ viewBox: "0 0 24 24",
+ xmlns: "http://www.w3.org/2000/svg",
+ width: t,
+ height: t,
+ fill: e,
+ ...r,
+ className: "remixicon " + (n || "")
+}, x.createElement("path", { d: "M14 4.4375C15.3462 4.4375 16.4375 3.34619 16.4375 2H17.5625C17.5625 3.34619 18.6538 4.4375 20 4.4375V5.5625C18.6538 5.5625 17.5625 6.65381 17.5625 8H16.4375C16.4375 6.65381 15.3462 5.5625 14 5.5625V4.4375ZM1 11C4.31371 11 7 8.31371 7 5H9C9 8.31371 11.6863 11 15 11V13C11.6863 13 9 15.6863 9 19H7C7 15.6863 4.31371 13 1 13V11ZM4.87601 12C6.18717 12.7276 7.27243 13.8128 8 15.124 8.72757 13.8128 9.81283 12.7276 11.124 12 9.81283 11.2724 8.72757 10.1872 8 8.87601 7.27243 10.1872 6.18717 11.2724 4.87601 12ZM17.25 14C17.25 15.7949 15.7949 17.25 14 17.25V18.75C15.7949 18.75 17.25 20.2051 17.25 22H18.75C18.75 20.2051 20.2051 18.75 22 18.75V17.25C20.2051 17.25 18.75 15.7949 18.75 14H17.25Z" })), yu = (e, t) => {
let n = Array(e.length + t.length);
for (let t = 0; t < e.length; t++) n[t] = e[t];
for (let r = 0; r < t.length; r++) n[e.length + r] = t[r];
return n;
-}, gu = (e, t) => ({
+}, bu = (e, t) => ({
classGroupId: e,
validator: t
-}), _u = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
+}), xu = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
nextPart: e,
validators: t,
classGroupId: n
-}), vu = "-", yu = [], bu = "arbitrary..", xu = (e) => {
- let t = wu(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
+}), Su = "-", Cu = [], wu = "arbitrary..", Tu = (e) => {
+ let t = Ou(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
return {
getClassGroupId: (e) => {
- if (e.startsWith("[") && e.endsWith("]")) return Cu(e);
- let n = e.split(vu);
- return Su(n, +(n[0] === "" && n.length > 1), t);
+ if (e.startsWith("[") && e.endsWith("]")) return Du(e);
+ let n = e.split(Su);
+ return Eu(n, +(n[0] === "" && n.length > 1), t);
},
getConflictingClassGroupIds: (e, t) => {
if (t) {
let t = r[e], i = n[e];
- return t ? i ? hu(i, t) : t : i || yu;
+ return t ? i ? yu(i, t) : t : i || Cu;
}
- return n[e] || yu;
+ return n[e] || Cu;
}
};
-}, Su = (e, t, n) => {
+}, Eu = (e, t, n) => {
if (e.length - t === 0) return n.classGroupId;
let r = e[t], i = n.nextPart.get(r);
if (i) {
- let n = Su(e, t + 1, i);
+ let n = Eu(e, t + 1, i);
if (n) return n;
}
let a = n.validators;
if (a === null) return;
- let o = t === 0 ? e.join(vu) : e.slice(t).join(vu), s = a.length;
+ let o = t === 0 ? e.join(Su) : e.slice(t).join(Su), s = a.length;
for (let e = 0; e < s; e++) {
let t = a[e];
if (t.validator(o)) return t.classGroupId;
}
-}, Cu = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
+}, Du = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
let t = e.slice(1, -1), n = t.indexOf(":"), r = t.slice(0, n);
- return r ? bu + r : void 0;
-})(), wu = (e) => {
+ return r ? wu + r : void 0;
+})(), Ou = (e) => {
let { theme: t, classGroups: n } = e;
- return Tu(n, t);
-}, Tu = (e, t) => {
- let n = _u();
+ return ku(n, t);
+}, ku = (e, t) => {
+ let n = xu();
for (let r in e) {
let i = e[r];
- Eu(i, n, r, t);
+ Au(i, n, r, t);
}
return n;
-}, Eu = (e, t, n, r) => {
+}, Au = (e, t, n, r) => {
let i = e.length;
for (let a = 0; a < i; a++) {
let i = e[a];
- Du(i, t, n, r);
+ ju(i, t, n, r);
}
-}, Du = (e, t, n, r) => {
+}, ju = (e, t, n, r) => {
if (typeof e == "string") {
- Ou(e, t, n);
+ Mu(e, t, n);
return;
}
if (typeof e == "function") {
- ku(e, t, n, r);
+ Nu(e, t, n, r);
return;
}
- Au(e, t, n, r);
-}, Ou = (e, t, n) => {
- let r = e === "" ? t : ju(t, e);
+ Pu(e, t, n, r);
+}, Mu = (e, t, n) => {
+ let r = e === "" ? t : Fu(t, e);
r.classGroupId = n;
-}, ku = (e, t, n, r) => {
- if (Mu(e)) {
- Eu(e(r), t, n, r);
+}, Nu = (e, t, n, r) => {
+ if (Iu(e)) {
+ Au(e(r), t, n, r);
return;
}
- t.validators === null && (t.validators = []), t.validators.push(gu(n, e));
-}, Au = (e, t, n, r) => {
+ t.validators === null && (t.validators = []), t.validators.push(bu(n, e));
+}, Pu = (e, t, n, r) => {
let i = Object.entries(e), a = i.length;
for (let e = 0; e < a; e++) {
let [a, o] = i[e];
- Eu(o, ju(t, a), n, r);
+ Au(o, Fu(t, a), n, r);
}
-}, ju = (e, t) => {
- let n = e, r = t.split(vu), i = r.length;
+}, Fu = (e, t) => {
+ let n = e, r = t.split(Su), i = r.length;
for (let e = 0; e < i; e++) {
let t = r[e], i = n.nextPart.get(t);
- i || (i = _u(), n.nextPart.set(t, i)), n = i;
+ i || (i = xu(), n.nextPart.set(t, i)), n = i;
}
return n;
-}, Mu = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, Nu = (e) => {
+}, Iu = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, Lu = (e) => {
if (e < 1) return {
get: () => void 0,
set: () => {}
@@ -16542,19 +16653,19 @@ var au = /* @__PURE__ */ p(((e) => {
e in n ? n[e] = t : i(e, t);
}
};
-}, Pu = "!", Fu = ":", Iu = [], Lu = (e, t, n, r, i) => ({
+}, Ru = "!", zu = ":", Bu = [], Vu = (e, t, n, r, i) => ({
modifiers: e,
hasImportantModifier: t,
baseClassName: n,
maybePostfixModifierPosition: r,
isExternal: i
-}), Ru = (e) => {
+}), Hu = (e) => {
let { prefix: t, experimentalParseClassName: n } = e, r = (e) => {
let t = [], n = 0, r = 0, i = 0, a, o = e.length;
for (let s = 0; s < o; s++) {
let o = e[s];
if (n === 0 && r === 0) {
- if (o === Fu) {
+ if (o === zu) {
t.push(e.slice(i, s)), i = s + 1;
continue;
}
@@ -16566,13 +16677,13 @@ var au = /* @__PURE__ */ p(((e) => {
o === "[" ? n++ : o === "]" ? n-- : o === "(" ? r++ : o === ")" && r--;
}
let s = t.length === 0 ? e : e.slice(i), c = s, l = !1;
- s.endsWith(Pu) ? (c = s.slice(0, -1), l = !0) : s.startsWith(Pu) && (c = s.slice(1), l = !0);
+ s.endsWith(Ru) ? (c = s.slice(0, -1), l = !0) : s.startsWith(Ru) && (c = s.slice(1), l = !0);
let u = a && a > i ? a - i : void 0;
- return Lu(t, l, c, u);
+ return Vu(t, l, c, u);
};
if (t) {
- let e = t + Fu, n = r;
- r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : Lu(Iu, !1, t, void 0, !0);
+ let e = t + zu, n = r;
+ r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : Vu(Bu, !1, t, void 0, !0);
}
if (n) {
let e = r;
@@ -16582,7 +16693,7 @@ var au = /* @__PURE__ */ p(((e) => {
});
}
return r;
-}, zu = (e) => {
+}, Uu = (e) => {
let t = /* @__PURE__ */ new Map();
return e.orderSensitiveModifiers.forEach((e, n) => {
t.set(e, 1e6 + n);
@@ -16594,18 +16705,18 @@ var au = /* @__PURE__ */ p(((e) => {
}
return r.length > 0 && (r.sort(), n.push(...r)), n;
};
-}, Bu = (e) => ({
- cache: Nu(e.cacheSize),
- parseClassName: Ru(e),
- sortModifiers: zu(e),
- postfixLookupClassGroupIds: Vu(e),
- ...xu(e)
-}), Vu = (e) => {
+}, Wu = (e) => ({
+ cache: Lu(e.cacheSize),
+ parseClassName: Hu(e),
+ sortModifiers: Uu(e),
+ postfixLookupClassGroupIds: Gu(e),
+ ...Tu(e)
+}), Gu = (e) => {
let t = Object.create(null), n = e.postfixLookupClassGroups;
if (n) for (let e = 0; e < n.length; e++) t[n[e]] = !0;
return t;
-}, Hu = /\s+/, Uu = (e, t) => {
- let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(Hu), l = "";
+}, Ku = /\s+/, qu = (e, t) => {
+ let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(Ku), l = "";
for (let e = c.length - 1; e >= 0; --e) {
let t = c[e], { isExternal: u, modifiers: d, hasImportantModifier: f, baseClassName: p, maybePostfixModifierPosition: m } = n(t);
if (u) {
@@ -16629,7 +16740,7 @@ var au = /* @__PURE__ */ p(((e) => {
}
h = !1;
}
- let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + Pu : _, y = v + g;
+ let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + Ru : _, y = v + g;
if (s.indexOf(y) > -1) continue;
s.push(y);
let b = i(g, h);
@@ -16640,34 +16751,34 @@ var au = /* @__PURE__ */ p(((e) => {
l = t + (l.length > 0 ? " " + l : l);
}
return l;
-}, Wu = (...e) => {
+}, Ju = (...e) => {
let t = 0, n, r, i = "";
- for (; t < e.length;) (n = e[t++]) && (r = Gu(n)) && (i && (i += " "), i += r);
+ for (; t < e.length;) (n = e[t++]) && (r = Yu(n)) && (i && (i += " "), i += r);
return i;
-}, Gu = (e) => {
+}, Yu = (e) => {
if (typeof e == "string") return e;
let t, n = "";
- for (let r = 0; r < e.length; r++) e[r] && (t = Gu(e[r])) && (n && (n += " "), n += t);
+ for (let r = 0; r < e.length; r++) e[r] && (t = Yu(e[r])) && (n && (n += " "), n += t);
return n;
-}, Ku = (e, ...t) => {
- let n, r, i, a, o = (o) => (n = Bu(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
+}, Xu = (e, ...t) => {
+ let n, r, i, a, o = (o) => (n = Wu(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
let t = r(e);
if (t) return t;
- let a = Uu(e, n);
+ let a = qu(e, n);
return i(e, a), a;
};
- return a = o, (...e) => a(Wu(...e));
-}, qu = [], Ju = (e) => {
- let t = (t) => t[e] || qu;
+ return a = o, (...e) => a(Ju(...e));
+}, Zu = [], Qu = (e) => {
+ let t = (t) => t[e] || Zu;
return t.isThemeGetter = !0, t.themeKey = e, t;
-}, Yu = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Xu = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Zu = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, Qu = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, $u = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, ed = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, q = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, J = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Y = (e) => Zu.test(e), X = (e) => !!e && !Number.isNaN(Number(e)), td = (e) => !!e && Number.isInteger(Number(e)), nd = (e) => e.endsWith("%") && X(e.slice(0, -1)), rd = (e) => Qu.test(e), id = () => !0, ad = (e) => $u.test(e) && !ed.test(e), od = () => !1, sd = (e) => q.test(e), cd = (e) => J.test(e), ld = (e) => !Z(e) && !Q(e), ud = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), dd = (e) => Ed(e, Ad, od), Z = (e) => Yu.test(e), fd = (e) => Ed(e, jd, ad), pd = (e) => Ed(e, Md, X), md = (e) => Ed(e, Pd, id), hd = (e) => Ed(e, Nd, od), gd = (e) => Ed(e, Od, od), _d = (e) => Ed(e, kd, cd), vd = (e) => Ed(e, Fd, sd), Q = (e) => Xu.test(e), yd = (e) => Dd(e, jd), bd = (e) => Dd(e, Nd), xd = (e) => Dd(e, Od), Sd = (e) => Dd(e, Ad), Cd = (e) => Dd(e, kd), wd = (e) => Dd(e, Fd, !0), Td = (e) => Dd(e, Pd, !0), Ed = (e, t, n) => {
- let r = Yu.exec(e);
+}, q = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, $u = /^\((?:(\w[\w-]*):)?(.+)\)$/i, J = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, Y = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, ed = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, td = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, nd = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, rd = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, id = (e) => J.test(e), X = (e) => !!e && !Number.isNaN(Number(e)), ad = (e) => !!e && Number.isInteger(Number(e)), od = (e) => e.endsWith("%") && X(e.slice(0, -1)), sd = (e) => Y.test(e), cd = () => !0, ld = (e) => ed.test(e) && !td.test(e), ud = () => !1, dd = (e) => nd.test(e), fd = (e) => rd.test(e), pd = (e) => !Z(e) && !Q(e), md = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), hd = (e) => Ad(e, Pd, ud), Z = (e) => q.test(e), gd = (e) => Ad(e, Fd, ld), _d = (e) => Ad(e, Id, X), vd = (e) => Ad(e, Rd, cd), yd = (e) => Ad(e, Ld, ud), bd = (e) => Ad(e, Md, ud), xd = (e) => Ad(e, Nd, fd), Sd = (e) => Ad(e, zd, dd), Q = (e) => $u.test(e), Cd = (e) => jd(e, Fd), wd = (e) => jd(e, Ld), Td = (e) => jd(e, Md), Ed = (e) => jd(e, Pd), Dd = (e) => jd(e, Nd), Od = (e) => jd(e, zd, !0), kd = (e) => jd(e, Rd, !0), Ad = (e, t, n) => {
+ let r = q.exec(e);
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
-}, Dd = (e, t, n = !1) => {
- let r = Xu.exec(e);
+}, jd = (e, t, n = !1) => {
+ let r = $u.exec(e);
return r ? r[1] ? t(r[1]) : n : !1;
-}, Od = (e) => e === "position" || e === "percentage", kd = (e) => e === "image" || e === "url", Ad = (e) => e === "length" || e === "size" || e === "bg-size", jd = (e) => e === "length", Md = (e) => e === "number", Nd = (e) => e === "family-name", Pd = (e) => e === "number" || e === "weight", Fd = (e) => e === "shadow", Id = () => {
- let e = Ju("color"), t = Ju("font"), n = Ju("text"), r = Ju("font-weight"), i = Ju("tracking"), a = Ju("leading"), o = Ju("breakpoint"), s = Ju("container"), c = Ju("spacing"), l = Ju("radius"), u = Ju("shadow"), d = Ju("inset-shadow"), f = Ju("text-shadow"), p = Ju("drop-shadow"), m = Ju("blur"), h = Ju("perspective"), g = Ju("aspect"), _ = Ju("ease"), v = Ju("animate"), y = () => [
+}, Md = (e) => e === "position" || e === "percentage", Nd = (e) => e === "image" || e === "url", Pd = (e) => e === "length" || e === "size" || e === "bg-size", Fd = (e) => e === "length", Id = (e) => e === "number", Ld = (e) => e === "family-name", Rd = (e) => e === "number" || e === "weight", zd = (e) => e === "shadow", Bd = () => {
+ let e = Qu("color"), t = Qu("font"), n = Qu("text"), r = Qu("font-weight"), i = Qu("tracking"), a = Qu("leading"), o = Qu("breakpoint"), s = Qu("container"), c = Qu("spacing"), l = Qu("radius"), u = Qu("shadow"), d = Qu("inset-shadow"), f = Qu("text-shadow"), p = Qu("drop-shadow"), m = Qu("blur"), h = Qu("perspective"), g = Qu("aspect"), _ = Qu("ease"), v = Qu("animate"), y = () => [
"auto",
"avoid",
"all",
@@ -16709,12 +16820,12 @@ var au = /* @__PURE__ */ p(((e) => {
Z,
c
], T = () => [
- Y,
+ id,
"full",
"auto",
...w()
], E = () => [
- td,
+ ad,
"none",
"subgrid",
Q,
@@ -16723,15 +16834,15 @@ var au = /* @__PURE__ */ p(((e) => {
"auto",
{ span: [
"full",
- td,
+ ad,
Q,
Z
] },
- td,
+ ad,
Q,
Z
], O = () => [
- td,
+ ad,
"auto",
Q,
Z
@@ -16753,15 +16864,15 @@ var au = /* @__PURE__ */ p(((e) => {
"baseline",
"center-safe",
"end-safe"
- ], j = () => [
+ ], ee = () => [
"start",
"end",
"center",
"stretch",
"center-safe",
"end-safe"
- ], M = () => ["auto", ...w()], N = () => [
- Y,
+ ], j = () => ["auto", ...w()], te = () => [
+ id,
"auto",
"full",
"dvw",
@@ -16774,9 +16885,9 @@ var au = /* @__PURE__ */ p(((e) => {
"max",
"fit",
...w()
- ], ee = () => [
+ ], M = () => [
s,
- Y,
+ id,
"screen",
"full",
"dvw",
@@ -16786,8 +16897,8 @@ var au = /* @__PURE__ */ p(((e) => {
"max",
"fit",
...w()
- ], te = () => [
- Y,
+ ], ne = () => [
+ id,
"screen",
"full",
"lh",
@@ -16798,50 +16909,50 @@ var au = /* @__PURE__ */ p(((e) => {
"max",
"fit",
...w()
- ], P = () => [
+ ], N = () => [
e,
Q,
Z
- ], ne = () => [
+ ], re = () => [
...b(),
- xd,
- gd,
+ Td,
+ bd,
{ position: [Q, Z] }
- ], F = () => ["no-repeat", { repeat: [
+ ], P = () => ["no-repeat", { repeat: [
"",
"x",
"y",
"space",
"round"
- ] }], re = () => [
+ ] }], ie = () => [
"auto",
"cover",
"contain",
- Sd,
- dd,
+ Ed,
+ hd,
{ size: [Q, Z] }
- ], ie = () => [
- nd,
- yd,
- fd
], ae = () => [
+ od,
+ Cd,
+ gd
+ ], oe = () => [
"",
"none",
"full",
l,
Q,
Z
- ], oe = () => [
+ ], se = () => [
"",
X,
- yd,
- fd
- ], se = () => [
+ Cd,
+ gd
+ ], ce = () => [
"solid",
"dashed",
"dotted",
"double"
- ], ce = () => [
+ ], le = () => [
"normal",
"multiply",
"screen",
@@ -16858,33 +16969,33 @@ var au = /* @__PURE__ */ p(((e) => {
"saturation",
"color",
"luminosity"
- ], le = () => [
- X,
- nd,
- xd,
- gd
], ue = () => [
+ X,
+ od,
+ Td,
+ bd
+ ], de = () => [
"",
"none",
m,
Q,
Z
- ], de = () => [
+ ], fe = () => [
"none",
X,
Q,
Z
- ], fe = () => [
+ ], pe = () => [
"none",
X,
Q,
Z
- ], I = () => [
+ ], F = () => [
X,
Q,
Z
- ], L = () => [
- Y,
+ ], I = () => [
+ id,
"full",
...w()
];
@@ -16898,17 +17009,17 @@ var au = /* @__PURE__ */ p(((e) => {
"bounce"
],
aspect: ["video"],
- blur: [rd],
- breakpoint: [rd],
- color: [id],
- container: [rd],
- "drop-shadow": [rd],
+ blur: [sd],
+ breakpoint: [sd],
+ color: [cd],
+ container: [sd],
+ "drop-shadow": [sd],
ease: [
"in",
"out",
"in-out"
],
- font: [ld],
+ font: [pd],
"font-weight": [
"thin",
"extralight",
@@ -16920,7 +17031,7 @@ var au = /* @__PURE__ */ p(((e) => {
"extrabold",
"black"
],
- "inset-shadow": [rd],
+ "inset-shadow": [sd],
leading: [
"none",
"tight",
@@ -16937,11 +17048,11 @@ var au = /* @__PURE__ */ p(((e) => {
"distant",
"none"
],
- radius: [rd],
- shadow: [rd],
+ radius: [sd],
+ shadow: [sd],
spacing: ["px", X],
- text: [rd],
- "text-shadow": [rd],
+ text: [sd],
+ "text-shadow": [sd],
tracking: [
"tighter",
"tight",
@@ -16955,7 +17066,7 @@ var au = /* @__PURE__ */ p(((e) => {
aspect: [{ aspect: [
"auto",
"square",
- Y,
+ id,
Z,
Q,
g
@@ -16968,7 +17079,7 @@ var au = /* @__PURE__ */ p(((e) => {
Q,
Z
] }],
- "container-named": [ud],
+ "container-named": [md],
columns: [{ columns: [
X,
"auto",
@@ -17070,13 +17181,13 @@ var au = /* @__PURE__ */ p(((e) => {
"collapse"
],
z: [{ z: [
- td,
+ ad,
"auto",
Q,
Z
] }],
basis: [{ basis: [
- Y,
+ id,
"full",
"auto",
s,
@@ -17095,7 +17206,7 @@ var au = /* @__PURE__ */ p(((e) => {
] }],
flex: [{ flex: [
X,
- Y,
+ id,
"auto",
"initial",
"none",
@@ -17114,7 +17225,7 @@ var au = /* @__PURE__ */ p(((e) => {
Z
] }],
order: [{ order: [
- td,
+ ad,
"first",
"last",
"none",
@@ -17142,18 +17253,18 @@ var au = /* @__PURE__ */ p(((e) => {
"gap-x": [{ "gap-x": w() }],
"gap-y": [{ "gap-y": w() }],
"justify-content": [{ justify: [...A(), "normal"] }],
- "justify-items": [{ "justify-items": [...j(), "normal"] }],
- "justify-self": [{ "justify-self": ["auto", ...j()] }],
+ "justify-items": [{ "justify-items": [...ee(), "normal"] }],
+ "justify-self": [{ "justify-self": ["auto", ...ee()] }],
"align-content": [{ content: ["normal", ...A()] }],
- "align-items": [{ items: [...j(), { baseline: ["", "last"] }] }],
+ "align-items": [{ items: [...ee(), { baseline: ["", "last"] }] }],
"align-self": [{ self: [
"auto",
- ...j(),
+ ...ee(),
{ baseline: ["", "last"] }
] }],
"place-content": [{ "place-content": A() }],
- "place-items": [{ "place-items": [...j(), "baseline"] }],
- "place-self": [{ "place-self": ["auto", ...j()] }],
+ "place-items": [{ "place-items": [...ee(), "baseline"] }],
+ "place-self": [{ "place-self": ["auto", ...ee()] }],
p: [{ p: w() }],
px: [{ px: w() }],
py: [{ py: w() }],
@@ -17165,38 +17276,38 @@ var au = /* @__PURE__ */ p(((e) => {
pr: [{ pr: w() }],
pb: [{ pb: w() }],
pl: [{ pl: w() }],
- m: [{ m: M() }],
- mx: [{ mx: M() }],
- my: [{ my: M() }],
- ms: [{ ms: M() }],
- me: [{ me: M() }],
- mbs: [{ mbs: M() }],
- mbe: [{ mbe: M() }],
- mt: [{ mt: M() }],
- mr: [{ mr: M() }],
- mb: [{ mb: M() }],
- ml: [{ ml: M() }],
+ m: [{ m: j() }],
+ mx: [{ mx: j() }],
+ my: [{ my: j() }],
+ ms: [{ ms: j() }],
+ me: [{ me: j() }],
+ mbs: [{ mbs: j() }],
+ mbe: [{ mbe: j() }],
+ mt: [{ mt: j() }],
+ mr: [{ mr: j() }],
+ mb: [{ mb: j() }],
+ ml: [{ ml: j() }],
"space-x": [{ "space-x": w() }],
"space-x-reverse": ["space-x-reverse"],
"space-y": [{ "space-y": w() }],
"space-y-reverse": ["space-y-reverse"],
- size: [{ size: N() }],
- "inline-size": [{ inline: ["auto", ...ee()] }],
- "min-inline-size": [{ "min-inline": ["auto", ...ee()] }],
- "max-inline-size": [{ "max-inline": ["none", ...ee()] }],
- "block-size": [{ block: ["auto", ...te()] }],
- "min-block-size": [{ "min-block": ["auto", ...te()] }],
- "max-block-size": [{ "max-block": ["none", ...te()] }],
+ size: [{ size: te() }],
+ "inline-size": [{ inline: ["auto", ...M()] }],
+ "min-inline-size": [{ "min-inline": ["auto", ...M()] }],
+ "max-inline-size": [{ "max-inline": ["none", ...M()] }],
+ "block-size": [{ block: ["auto", ...ne()] }],
+ "min-block-size": [{ "min-block": ["auto", ...ne()] }],
+ "max-block-size": [{ "max-block": ["none", ...ne()] }],
w: [{ w: [
s,
"screen",
- ...N()
+ ...te()
] }],
"min-w": [{ "min-w": [
s,
"screen",
"none",
- ...N()
+ ...te()
] }],
"max-w": [{ "max-w": [
s,
@@ -17204,37 +17315,37 @@ var au = /* @__PURE__ */ p(((e) => {
"none",
"prose",
{ screen: [o] },
- ...N()
+ ...te()
] }],
h: [{ h: [
"screen",
"lh",
- ...N()
+ ...te()
] }],
"min-h": [{ "min-h": [
"screen",
"lh",
"none",
- ...N()
+ ...te()
] }],
"max-h": [{ "max-h": [
"screen",
"lh",
"none",
- ...N()
+ ...te()
] }],
"font-size": [{ text: [
"base",
n,
- yd,
- fd
+ Cd,
+ gd
] }],
"font-smoothing": ["antialiased", "subpixel-antialiased"],
"font-style": ["italic", "not-italic"],
"font-weight": [{ font: [
r,
- Td,
- md
+ kd,
+ vd
] }],
"font-stretch": [{ "font-stretch": [
"ultra-condensed",
@@ -17246,12 +17357,12 @@ var au = /* @__PURE__ */ p(((e) => {
"expanded",
"extra-expanded",
"ultra-expanded",
- nd,
+ od,
Z
] }],
"font-family": [{ font: [
- bd,
- hd,
+ wd,
+ yd,
t
] }],
"font-features": [{ "font-features": [Z] }],
@@ -17270,7 +17381,7 @@ var au = /* @__PURE__ */ p(((e) => {
X,
"none",
Q,
- pd
+ _d
] }],
leading: [{ leading: [
"none",
@@ -17298,23 +17409,23 @@ var au = /* @__PURE__ */ p(((e) => {
"start",
"end"
] }],
- "placeholder-color": [{ placeholder: P() }],
- "text-color": [{ text: P() }],
+ "placeholder-color": [{ placeholder: N() }],
+ "text-color": [{ text: N() }],
"text-decoration": [
"underline",
"overline",
"line-through",
"no-underline"
],
- "text-decoration-style": [{ decoration: [...se(), "wavy"] }],
+ "text-decoration-style": [{ decoration: [...ce(), "wavy"] }],
"text-decoration-thickness": [{ decoration: [
X,
"from-font",
"auto",
Q,
- fd
+ gd
] }],
- "text-decoration-color": [{ decoration: P() }],
+ "text-decoration-color": [{ decoration: N() }],
"underline-offset": [{ "underline-offset": [
X,
"auto",
@@ -17340,7 +17451,7 @@ var au = /* @__PURE__ */ p(((e) => {
] }],
indent: [{ indent: w() }],
"tab-size": [{ tab: [
- td,
+ ad,
Q,
Z
] }],
@@ -17401,9 +17512,9 @@ var au = /* @__PURE__ */ p(((e) => {
"padding",
"content"
] }],
- "bg-position": [{ bg: ne() }],
- "bg-repeat": [{ bg: F() }],
- "bg-size": [{ bg: re() }],
+ "bg-position": [{ bg: re() }],
+ "bg-repeat": [{ bg: P() }],
+ "bg-size": [{ bg: ie() }],
"bg-image": [{ bg: [
"none",
{
@@ -17418,7 +17529,7 @@ var au = /* @__PURE__ */ p(((e) => {
"l",
"tl"
] },
- td,
+ ad,
Q,
Z
],
@@ -17429,75 +17540,75 @@ var au = /* @__PURE__ */ p(((e) => {
],
conic: [
"",
- td,
+ ad,
Q,
Z
]
},
- Cd,
- _d
+ Dd,
+ xd
] }],
- "bg-color": [{ bg: P() }],
- "gradient-from-pos": [{ from: ie() }],
- "gradient-via-pos": [{ via: ie() }],
- "gradient-to-pos": [{ to: ie() }],
- "gradient-from": [{ from: P() }],
- "gradient-via": [{ via: P() }],
- "gradient-to": [{ to: P() }],
- rounded: [{ rounded: ae() }],
- "rounded-s": [{ "rounded-s": ae() }],
- "rounded-e": [{ "rounded-e": ae() }],
- "rounded-t": [{ "rounded-t": ae() }],
- "rounded-r": [{ "rounded-r": ae() }],
- "rounded-b": [{ "rounded-b": ae() }],
- "rounded-l": [{ "rounded-l": ae() }],
- "rounded-ss": [{ "rounded-ss": ae() }],
- "rounded-se": [{ "rounded-se": ae() }],
- "rounded-ee": [{ "rounded-ee": ae() }],
- "rounded-es": [{ "rounded-es": ae() }],
- "rounded-tl": [{ "rounded-tl": ae() }],
- "rounded-tr": [{ "rounded-tr": ae() }],
- "rounded-br": [{ "rounded-br": ae() }],
- "rounded-bl": [{ "rounded-bl": ae() }],
- "border-w": [{ border: oe() }],
- "border-w-x": [{ "border-x": oe() }],
- "border-w-y": [{ "border-y": oe() }],
- "border-w-s": [{ "border-s": oe() }],
- "border-w-e": [{ "border-e": oe() }],
- "border-w-bs": [{ "border-bs": oe() }],
- "border-w-be": [{ "border-be": oe() }],
- "border-w-t": [{ "border-t": oe() }],
- "border-w-r": [{ "border-r": oe() }],
- "border-w-b": [{ "border-b": oe() }],
- "border-w-l": [{ "border-l": oe() }],
- "divide-x": [{ "divide-x": oe() }],
+ "bg-color": [{ bg: N() }],
+ "gradient-from-pos": [{ from: ae() }],
+ "gradient-via-pos": [{ via: ae() }],
+ "gradient-to-pos": [{ to: ae() }],
+ "gradient-from": [{ from: N() }],
+ "gradient-via": [{ via: N() }],
+ "gradient-to": [{ to: N() }],
+ rounded: [{ rounded: oe() }],
+ "rounded-s": [{ "rounded-s": oe() }],
+ "rounded-e": [{ "rounded-e": oe() }],
+ "rounded-t": [{ "rounded-t": oe() }],
+ "rounded-r": [{ "rounded-r": oe() }],
+ "rounded-b": [{ "rounded-b": oe() }],
+ "rounded-l": [{ "rounded-l": oe() }],
+ "rounded-ss": [{ "rounded-ss": oe() }],
+ "rounded-se": [{ "rounded-se": oe() }],
+ "rounded-ee": [{ "rounded-ee": oe() }],
+ "rounded-es": [{ "rounded-es": oe() }],
+ "rounded-tl": [{ "rounded-tl": oe() }],
+ "rounded-tr": [{ "rounded-tr": oe() }],
+ "rounded-br": [{ "rounded-br": oe() }],
+ "rounded-bl": [{ "rounded-bl": oe() }],
+ "border-w": [{ border: se() }],
+ "border-w-x": [{ "border-x": se() }],
+ "border-w-y": [{ "border-y": se() }],
+ "border-w-s": [{ "border-s": se() }],
+ "border-w-e": [{ "border-e": se() }],
+ "border-w-bs": [{ "border-bs": se() }],
+ "border-w-be": [{ "border-be": se() }],
+ "border-w-t": [{ "border-t": se() }],
+ "border-w-r": [{ "border-r": se() }],
+ "border-w-b": [{ "border-b": se() }],
+ "border-w-l": [{ "border-l": se() }],
+ "divide-x": [{ "divide-x": se() }],
"divide-x-reverse": ["divide-x-reverse"],
- "divide-y": [{ "divide-y": oe() }],
+ "divide-y": [{ "divide-y": se() }],
"divide-y-reverse": ["divide-y-reverse"],
"border-style": [{ border: [
- ...se(),
+ ...ce(),
"hidden",
"none"
] }],
"divide-style": [{ divide: [
- ...se(),
+ ...ce(),
"hidden",
"none"
] }],
- "border-color": [{ border: P() }],
- "border-color-x": [{ "border-x": P() }],
- "border-color-y": [{ "border-y": P() }],
- "border-color-s": [{ "border-s": P() }],
- "border-color-e": [{ "border-e": P() }],
- "border-color-bs": [{ "border-bs": P() }],
- "border-color-be": [{ "border-be": P() }],
- "border-color-t": [{ "border-t": P() }],
- "border-color-r": [{ "border-r": P() }],
- "border-color-b": [{ "border-b": P() }],
- "border-color-l": [{ "border-l": P() }],
- "divide-color": [{ divide: P() }],
+ "border-color": [{ border: N() }],
+ "border-color-x": [{ "border-x": N() }],
+ "border-color-y": [{ "border-y": N() }],
+ "border-color-s": [{ "border-s": N() }],
+ "border-color-e": [{ "border-e": N() }],
+ "border-color-bs": [{ "border-bs": N() }],
+ "border-color-be": [{ "border-be": N() }],
+ "border-color-t": [{ "border-t": N() }],
+ "border-color-r": [{ "border-r": N() }],
+ "border-color-b": [{ "border-b": N() }],
+ "border-color-l": [{ "border-l": N() }],
+ "divide-color": [{ divide: N() }],
"outline-style": [{ outline: [
- ...se(),
+ ...ce(),
"none",
"hidden"
] }],
@@ -17509,51 +17620,51 @@ var au = /* @__PURE__ */ p(((e) => {
"outline-w": [{ outline: [
"",
X,
- yd,
- fd
+ Cd,
+ gd
] }],
- "outline-color": [{ outline: P() }],
+ "outline-color": [{ outline: N() }],
shadow: [{ shadow: [
"",
"inner",
"none",
u,
- wd,
- vd
+ Od,
+ Sd
] }],
- "shadow-color": [{ shadow: P() }],
+ "shadow-color": [{ shadow: N() }],
"inset-shadow": [{ "inset-shadow": [
"none",
d,
- wd,
- vd
+ Od,
+ Sd
] }],
- "inset-shadow-color": [{ "inset-shadow": P() }],
- "ring-w": [{ ring: oe() }],
+ "inset-shadow-color": [{ "inset-shadow": N() }],
+ "ring-w": [{ ring: se() }],
"ring-w-inset": ["ring-inset"],
- "ring-color": [{ ring: P() }],
- "ring-offset-w": [{ "ring-offset": [X, fd] }],
- "ring-offset-color": [{ "ring-offset": P() }],
- "inset-ring-w": [{ "inset-ring": oe() }],
- "inset-ring-color": [{ "inset-ring": P() }],
+ "ring-color": [{ ring: N() }],
+ "ring-offset-w": [{ "ring-offset": [X, gd] }],
+ "ring-offset-color": [{ "ring-offset": N() }],
+ "inset-ring-w": [{ "inset-ring": se() }],
+ "inset-ring-color": [{ "inset-ring": N() }],
"text-shadow": [{ "text-shadow": [
"none",
f,
- wd,
- vd
+ Od,
+ Sd
] }],
- "text-shadow-color": [{ "text-shadow": P() }],
+ "text-shadow-color": [{ "text-shadow": N() }],
opacity: [{ opacity: [
X,
Q,
Z
] }],
"mix-blend": [{ "mix-blend": [
- ...ce(),
+ ...le(),
"plus-darker",
"plus-lighter"
] }],
- "bg-blend": [{ "bg-blend": ce() }],
+ "bg-blend": [{ "bg-blend": le() }],
"mask-clip": [{ "mask-clip": [
"border",
"padding",
@@ -17569,39 +17680,39 @@ var au = /* @__PURE__ */ p(((e) => {
"exclude"
] }],
"mask-image-linear-pos": [{ "mask-linear": [X] }],
- "mask-image-linear-from-pos": [{ "mask-linear-from": le() }],
- "mask-image-linear-to-pos": [{ "mask-linear-to": le() }],
- "mask-image-linear-from-color": [{ "mask-linear-from": P() }],
- "mask-image-linear-to-color": [{ "mask-linear-to": P() }],
- "mask-image-t-from-pos": [{ "mask-t-from": le() }],
- "mask-image-t-to-pos": [{ "mask-t-to": le() }],
- "mask-image-t-from-color": [{ "mask-t-from": P() }],
- "mask-image-t-to-color": [{ "mask-t-to": P() }],
- "mask-image-r-from-pos": [{ "mask-r-from": le() }],
- "mask-image-r-to-pos": [{ "mask-r-to": le() }],
- "mask-image-r-from-color": [{ "mask-r-from": P() }],
- "mask-image-r-to-color": [{ "mask-r-to": P() }],
- "mask-image-b-from-pos": [{ "mask-b-from": le() }],
- "mask-image-b-to-pos": [{ "mask-b-to": le() }],
- "mask-image-b-from-color": [{ "mask-b-from": P() }],
- "mask-image-b-to-color": [{ "mask-b-to": P() }],
- "mask-image-l-from-pos": [{ "mask-l-from": le() }],
- "mask-image-l-to-pos": [{ "mask-l-to": le() }],
- "mask-image-l-from-color": [{ "mask-l-from": P() }],
- "mask-image-l-to-color": [{ "mask-l-to": P() }],
- "mask-image-x-from-pos": [{ "mask-x-from": le() }],
- "mask-image-x-to-pos": [{ "mask-x-to": le() }],
- "mask-image-x-from-color": [{ "mask-x-from": P() }],
- "mask-image-x-to-color": [{ "mask-x-to": P() }],
- "mask-image-y-from-pos": [{ "mask-y-from": le() }],
- "mask-image-y-to-pos": [{ "mask-y-to": le() }],
- "mask-image-y-from-color": [{ "mask-y-from": P() }],
- "mask-image-y-to-color": [{ "mask-y-to": P() }],
+ "mask-image-linear-from-pos": [{ "mask-linear-from": ue() }],
+ "mask-image-linear-to-pos": [{ "mask-linear-to": ue() }],
+ "mask-image-linear-from-color": [{ "mask-linear-from": N() }],
+ "mask-image-linear-to-color": [{ "mask-linear-to": N() }],
+ "mask-image-t-from-pos": [{ "mask-t-from": ue() }],
+ "mask-image-t-to-pos": [{ "mask-t-to": ue() }],
+ "mask-image-t-from-color": [{ "mask-t-from": N() }],
+ "mask-image-t-to-color": [{ "mask-t-to": N() }],
+ "mask-image-r-from-pos": [{ "mask-r-from": ue() }],
+ "mask-image-r-to-pos": [{ "mask-r-to": ue() }],
+ "mask-image-r-from-color": [{ "mask-r-from": N() }],
+ "mask-image-r-to-color": [{ "mask-r-to": N() }],
+ "mask-image-b-from-pos": [{ "mask-b-from": ue() }],
+ "mask-image-b-to-pos": [{ "mask-b-to": ue() }],
+ "mask-image-b-from-color": [{ "mask-b-from": N() }],
+ "mask-image-b-to-color": [{ "mask-b-to": N() }],
+ "mask-image-l-from-pos": [{ "mask-l-from": ue() }],
+ "mask-image-l-to-pos": [{ "mask-l-to": ue() }],
+ "mask-image-l-from-color": [{ "mask-l-from": N() }],
+ "mask-image-l-to-color": [{ "mask-l-to": N() }],
+ "mask-image-x-from-pos": [{ "mask-x-from": ue() }],
+ "mask-image-x-to-pos": [{ "mask-x-to": ue() }],
+ "mask-image-x-from-color": [{ "mask-x-from": N() }],
+ "mask-image-x-to-color": [{ "mask-x-to": N() }],
+ "mask-image-y-from-pos": [{ "mask-y-from": ue() }],
+ "mask-image-y-to-pos": [{ "mask-y-to": ue() }],
+ "mask-image-y-from-color": [{ "mask-y-from": N() }],
+ "mask-image-y-to-color": [{ "mask-y-to": N() }],
"mask-image-radial": [{ "mask-radial": [Q, Z] }],
- "mask-image-radial-from-pos": [{ "mask-radial-from": le() }],
- "mask-image-radial-to-pos": [{ "mask-radial-to": le() }],
- "mask-image-radial-from-color": [{ "mask-radial-from": P() }],
- "mask-image-radial-to-color": [{ "mask-radial-to": P() }],
+ "mask-image-radial-from-pos": [{ "mask-radial-from": ue() }],
+ "mask-image-radial-to-pos": [{ "mask-radial-to": ue() }],
+ "mask-image-radial-from-color": [{ "mask-radial-from": N() }],
+ "mask-image-radial-to-color": [{ "mask-radial-to": N() }],
"mask-image-radial-shape": [{ "mask-radial": ["circle", "ellipse"] }],
"mask-image-radial-size": [{ "mask-radial": [{
closest: ["side", "corner"],
@@ -17609,10 +17720,10 @@ var au = /* @__PURE__ */ p(((e) => {
}] }],
"mask-image-radial-pos": [{ "mask-radial-at": b() }],
"mask-image-conic-pos": [{ "mask-conic": [X] }],
- "mask-image-conic-from-pos": [{ "mask-conic-from": le() }],
- "mask-image-conic-to-pos": [{ "mask-conic-to": le() }],
- "mask-image-conic-from-color": [{ "mask-conic-from": P() }],
- "mask-image-conic-to-color": [{ "mask-conic-to": P() }],
+ "mask-image-conic-from-pos": [{ "mask-conic-from": ue() }],
+ "mask-image-conic-to-pos": [{ "mask-conic-to": ue() }],
+ "mask-image-conic-from-color": [{ "mask-conic-from": N() }],
+ "mask-image-conic-to-color": [{ "mask-conic-to": N() }],
"mask-mode": [{ mask: [
"alpha",
"luminance",
@@ -17626,9 +17737,9 @@ var au = /* @__PURE__ */ p(((e) => {
"stroke",
"view"
] }],
- "mask-position": [{ mask: ne() }],
- "mask-repeat": [{ mask: F() }],
- "mask-size": [{ mask: re() }],
+ "mask-position": [{ mask: re() }],
+ "mask-repeat": [{ mask: P() }],
+ "mask-size": [{ mask: ie() }],
"mask-type": [{ "mask-type": ["alpha", "luminance"] }],
"mask-image": [{ mask: [
"none",
@@ -17641,7 +17752,7 @@ var au = /* @__PURE__ */ p(((e) => {
Q,
Z
] }],
- blur: [{ blur: ue() }],
+ blur: [{ blur: de() }],
brightness: [{ brightness: [
X,
Q,
@@ -17656,10 +17767,10 @@ var au = /* @__PURE__ */ p(((e) => {
"",
"none",
p,
- wd,
- vd
+ Od,
+ Sd
] }],
- "drop-shadow-color": [{ "drop-shadow": P() }],
+ "drop-shadow-color": [{ "drop-shadow": N() }],
grayscale: [{ grayscale: [
"",
X,
@@ -17694,7 +17805,7 @@ var au = /* @__PURE__ */ p(((e) => {
Q,
Z
] }],
- "backdrop-blur": [{ "backdrop-blur": ue() }],
+ "backdrop-blur": [{ "backdrop-blur": de() }],
"backdrop-brightness": [{ "backdrop-brightness": [
X,
Q,
@@ -17787,18 +17898,18 @@ var au = /* @__PURE__ */ p(((e) => {
Z
] }],
"perspective-origin": [{ "perspective-origin": x() }],
- rotate: [{ rotate: de() }],
- "rotate-x": [{ "rotate-x": de() }],
- "rotate-y": [{ "rotate-y": de() }],
- "rotate-z": [{ "rotate-z": de() }],
- scale: [{ scale: fe() }],
- "scale-x": [{ "scale-x": fe() }],
- "scale-y": [{ "scale-y": fe() }],
- "scale-z": [{ "scale-z": fe() }],
+ rotate: [{ rotate: fe() }],
+ "rotate-x": [{ "rotate-x": fe() }],
+ "rotate-y": [{ "rotate-y": fe() }],
+ "rotate-z": [{ "rotate-z": fe() }],
+ scale: [{ scale: pe() }],
+ "scale-x": [{ "scale-x": pe() }],
+ "scale-y": [{ "scale-y": pe() }],
+ "scale-z": [{ "scale-z": pe() }],
"scale-3d": ["scale-3d"],
- skew: [{ skew: I() }],
- "skew-x": [{ "skew-x": I() }],
- "skew-y": [{ "skew-y": I() }],
+ skew: [{ skew: F() }],
+ "skew-x": [{ "skew-x": F() }],
+ "skew-y": [{ "skew-y": F() }],
transform: [{ transform: [
Q,
Z,
@@ -17809,19 +17920,19 @@ var au = /* @__PURE__ */ p(((e) => {
] }],
"transform-origin": [{ origin: x() }],
"transform-style": [{ transform: ["3d", "flat"] }],
- translate: [{ translate: L() }],
- "translate-x": [{ "translate-x": L() }],
- "translate-y": [{ "translate-y": L() }],
- "translate-z": [{ "translate-z": L() }],
+ translate: [{ translate: I() }],
+ "translate-x": [{ "translate-x": I() }],
+ "translate-y": [{ "translate-y": I() }],
+ "translate-z": [{ "translate-z": I() }],
"translate-none": ["translate-none"],
zoom: [{ zoom: [
- td,
+ ad,
Q,
Z
] }],
- accent: [{ accent: P() }],
+ accent: [{ accent: N() }],
appearance: [{ appearance: ["none", "auto"] }],
- "caret-color": [{ caret: P() }],
+ "caret-color": [{ caret: N() }],
"color-scheme": [{ scheme: [
"normal",
"dark",
@@ -17879,8 +17990,8 @@ var au = /* @__PURE__ */ p(((e) => {
"x"
] }],
"scroll-behavior": [{ scroll: ["auto", "smooth"] }],
- "scrollbar-thumb-color": [{ "scrollbar-thumb": P() }],
- "scrollbar-track-color": [{ "scrollbar-track": P() }],
+ "scrollbar-thumb-color": [{ "scrollbar-thumb": N() }],
+ "scrollbar-track-color": [{ "scrollbar-track": N() }],
"scrollbar-gutter": [{ "scrollbar-gutter": [
"auto",
"stable",
@@ -17957,14 +18068,14 @@ var au = /* @__PURE__ */ p(((e) => {
Q,
Z
] }],
- fill: [{ fill: ["none", ...P()] }],
+ fill: [{ fill: ["none", ...N()] }],
"stroke-w": [{ stroke: [
X,
- yd,
- fd,
- pd
+ Cd,
+ gd,
+ _d
] }],
- stroke: [{ stroke: ["none", ...P()] }],
+ stroke: [{ stroke: ["none", ...N()] }],
"forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]
},
conflictingClassGroups: {
@@ -18220,16 +18331,16 @@ var au = /* @__PURE__ */ p(((e) => {
"selection"
]
};
-}, Ld = (e, { cacheSize: t, prefix: n, experimentalParseClassName: r, extend: i = {}, override: a = {} }) => (Rd(e, "cacheSize", t), Rd(e, "prefix", n), Rd(e, "experimentalParseClassName", r), zd(e.theme, a.theme), zd(e.classGroups, a.classGroups), zd(e.conflictingClassGroups, a.conflictingClassGroups), zd(e.conflictingClassGroupModifiers, a.conflictingClassGroupModifiers), Rd(e, "postfixLookupClassGroups", a.postfixLookupClassGroups), Rd(e, "orderSensitiveModifiers", a.orderSensitiveModifiers), Bd(e.theme, i.theme), Bd(e.classGroups, i.classGroups), Bd(e.conflictingClassGroups, i.conflictingClassGroups), Bd(e.conflictingClassGroupModifiers, i.conflictingClassGroupModifiers), Vd(e, i, "postfixLookupClassGroups"), Vd(e, i, "orderSensitiveModifiers"), e), Rd = (e, t, n) => {
+}, Vd = (e, { cacheSize: t, prefix: n, experimentalParseClassName: r, extend: i = {}, override: a = {} }) => (Hd(e, "cacheSize", t), Hd(e, "prefix", n), Hd(e, "experimentalParseClassName", r), Ud(e.theme, a.theme), Ud(e.classGroups, a.classGroups), Ud(e.conflictingClassGroups, a.conflictingClassGroups), Ud(e.conflictingClassGroupModifiers, a.conflictingClassGroupModifiers), Hd(e, "postfixLookupClassGroups", a.postfixLookupClassGroups), Hd(e, "orderSensitiveModifiers", a.orderSensitiveModifiers), Wd(e.theme, i.theme), Wd(e.classGroups, i.classGroups), Wd(e.conflictingClassGroups, i.conflictingClassGroups), Wd(e.conflictingClassGroupModifiers, i.conflictingClassGroupModifiers), Gd(e, i, "postfixLookupClassGroups"), Gd(e, i, "orderSensitiveModifiers"), e), Hd = (e, t, n) => {
n !== void 0 && (e[t] = n);
-}, zd = (e, t) => {
- if (t) for (let n in t) Rd(e, n, t[n]);
-}, Bd = (e, t) => {
- if (t) for (let n in t) Vd(e, t, n);
-}, Vd = (e, t, n) => {
+}, Ud = (e, t) => {
+ if (t) for (let n in t) Hd(e, n, t[n]);
+}, Wd = (e, t) => {
+ if (t) for (let n in t) Gd(e, t, n);
+}, Gd = (e, t, n) => {
let r = t[n];
r !== void 0 && (e[n] = e[n] ? e[n].concat(r) : r);
-}, Hd = (e, ...t) => typeof e == "function" ? Ku(Id, e, ...t) : Ku(() => Ld(Id(), e), ...t), Ud = [
+}, Kd = (e, ...t) => typeof e == "function" ? Xu(Bd, e, ...t) : Xu(() => Vd(Bd(), e), ...t), qd = [
"large-title",
"display-1",
"display-2",
@@ -18243,18 +18354,18 @@ var au = /* @__PURE__ */ p(((e) => {
"body-2",
"caption-1",
"caption-2"
-], Wd = [
+], Jd = [
"regular",
"medium",
"semibold",
"bold"
-], Gd = Hd({ extend: { classGroups: { "font-size": [{ text: Ud.flatMap((e) => Wd.map((t) => `${e}-${t}`)) }] } } });
-function Kd(e) {
+], Yd = Kd({ extend: { classGroups: { "font-size": [{ text: qd.flatMap((e) => Jd.map((t) => `${e}-${t}`)) }] } } });
+function Xd(e) {
return e;
}
//#endregion
//#region src/react/boardui/components/base/badges/chip.tsx
-var qd = Kd({
+var Zd = Xd({
base: "inline-flex items-center justify-center rounded-md px-1.5 whitespace-nowrap transition-[padding,font-size] duration-200 ease",
variant: {
bold: "py-0.5 text-body-medium",
@@ -18273,22 +18384,22 @@ var qd = Kd({
soft: "bg-background-secondary-default text-text-secondary"
}
});
-function Jd({ variant: e = "bold", color: t = "neutral", className: n, ref: r, ...i }) {
- return /* @__PURE__ */ (0, x.jsx)("span", {
+function Qd({ variant: e = "bold", color: t = "neutral", className: n, ref: r, ...i }) {
+ return /* @__PURE__ */ (0, S.jsx)("span", {
ref: r,
- className: Gd(qd.base, qd.variant[e], qd.color[t], n),
+ className: Yd(Zd.base, Zd.variant[e], Zd.color[t], n),
...i
});
}
//#endregion
//#region src/api.ts
-var Yd = class extends Error {
+var $d = class extends Error {
status;
body;
constructor(e, t, n = null) {
super(r(e, t)), this.name = "ApiError", this.status = t, this.body = n;
}
-}, Xd = (e) => {
+}, ef = (e) => {
if (!e || typeof e != "object") return "";
let t = e;
for (let e of [
@@ -18300,8 +18411,8 @@ var Yd = class extends Error {
if (typeof n == "string" && n) return n;
}
return "";
-}, Zd = (e) => r(e);
-async function Qd(e, t) {
+}, tf = (e) => r(e);
+async function nf(e, t) {
let n = await fetch(e, {
headers: { Accept: "application/json" },
credentials: "same-origin",
@@ -18310,10 +18421,10 @@ async function Qd(e, t) {
try {
r = await n.json();
} catch {}
- if (!n.ok) throw new Yd(Xd(r) || `请求失败(${n.status})`, n.status);
+ if (!n.ok) throw new $d(ef(r) || `请求失败(${n.status})`, n.status);
return r;
}
-async function $d(e, t, n = "POST", r) {
+async function rf(e, t, n = "POST", r) {
let i = await fetch(e, {
method: n,
...r ? { signal: r } : {},
@@ -18327,24 +18438,24 @@ async function $d(e, t, n = "POST", r) {
try {
a = await i.json();
} catch {}
- if (!i.ok) throw new Yd(Xd(a) || `请求失败(${i.status})`, i.status, a);
+ if (!i.ok) throw new $d(ef(a) || `请求失败(${i.status})`, i.status, a);
return a;
}
//#endregion
//#region src/react/components/empty-state.tsx
-function ef({ icon: e, title: t, children: n }) {
- return /* @__PURE__ */ (0, x.jsxs)("div", {
+function af({ icon: e, title: t, children: n }) {
+ return /* @__PURE__ */ (0, S.jsxs)("div", {
className: "flex flex-col items-center gap-2 rounded-2xl border border-separator-border px-6 py-12 text-center",
children: [
- /* @__PURE__ */ (0, x.jsx)(e, {
+ /* @__PURE__ */ (0, S.jsx)(e, {
"aria-hidden": !0,
className: "size-6 text-text-tertiary"
}),
- /* @__PURE__ */ (0, x.jsx)("h3", {
+ /* @__PURE__ */ (0, S.jsx)("h3", {
className: "text-headline-medium text-text-primary",
children: t
}),
- /* @__PURE__ */ (0, x.jsx)("p", {
+ /* @__PURE__ */ (0, S.jsx)("p", {
className: "max-w-prose text-body-2-regular text-text-secondary",
children: n
})
@@ -18353,53 +18464,53 @@ function ef({ icon: e, title: t, children: n }) {
}
//#endregion
//#region src/react/components/loading-dots.tsx
-function tf({ label: e }) {
- return /* @__PURE__ */ (0, x.jsxs)("p", {
+function of({ label: e }) {
+ return /* @__PURE__ */ (0, S.jsxs)("p", {
role: "status",
className: "flex items-center gap-2 text-caption-1-regular text-text-secondary",
- children: [/* @__PURE__ */ (0, x.jsxs)("span", {
+ children: [/* @__PURE__ */ (0, S.jsxs)("span", {
"aria-hidden": !0,
className: "inline-flex items-center gap-1",
children: [
- /* @__PURE__ */ (0, x.jsx)("i", { className: "dot-wave-0 size-1 rounded-full bg-current" }),
- /* @__PURE__ */ (0, x.jsx)("i", { className: "dot-wave-1 size-1 rounded-full bg-current" }),
- /* @__PURE__ */ (0, x.jsx)("i", { className: "dot-wave-2 size-1 rounded-full bg-current" })
+ /* @__PURE__ */ (0, S.jsx)("i", { className: "dot-wave-0 size-1 rounded-full bg-current" }),
+ /* @__PURE__ */ (0, S.jsx)("i", { className: "dot-wave-1 size-1 rounded-full bg-current" }),
+ /* @__PURE__ */ (0, S.jsx)("i", { className: "dot-wave-2 size-1 rounded-full bg-current" })
]
}), e]
});
}
//#endregion
//#region src/react/components/note.tsx
-function nf({ tone: e, title: t, children: n }) {
- let r = /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [t ? /* @__PURE__ */ (0, x.jsx)("p", {
+function sf({ tone: e, title: t, children: n }) {
+ let r = /* @__PURE__ */ (0, S.jsxs)(S.Fragment, { children: [t ? /* @__PURE__ */ (0, S.jsx)("p", {
className: "text-body-medium",
children: t
- }) : null, /* @__PURE__ */ (0, x.jsx)("p", {
+ }) : null, /* @__PURE__ */ (0, S.jsx)("p", {
className: "text-body-2-regular",
children: n
})] });
switch (e) {
- case "info": return /* @__PURE__ */ (0, x.jsx)("div", {
+ case "info": return /* @__PURE__ */ (0, S.jsx)("div", {
role: "status",
className: "flex flex-col gap-0.5 rounded-2lg bg-notification-information-background px-3 py-2 text-notification-information-foreground",
children: r
});
- case "success": return /* @__PURE__ */ (0, x.jsx)("div", {
+ case "success": return /* @__PURE__ */ (0, S.jsx)("div", {
role: "status",
className: "flex flex-col gap-0.5 rounded-2lg bg-notification-success-background px-3 py-2 text-notification-success-foreground",
children: r
});
- case "warning": return /* @__PURE__ */ (0, x.jsx)("div", {
+ case "warning": return /* @__PURE__ */ (0, S.jsx)("div", {
role: "note",
className: "flex flex-col gap-0.5 rounded-2lg bg-status-yellow-background px-3 py-2 text-status-yellow-text",
children: r
});
- case "error": return /* @__PURE__ */ (0, x.jsx)("div", {
+ case "error": return /* @__PURE__ */ (0, S.jsx)("div", {
role: "alert",
className: "flex flex-col gap-0.5 rounded-2lg bg-background-tertiary-error px-3 py-2 text-text-error-primary",
children: r
});
- default: return /* @__PURE__ */ (0, x.jsx)("div", {
+ default: return /* @__PURE__ */ (0, S.jsx)("div", {
role: "note",
className: "flex flex-col gap-0.5 rounded-2lg bg-background-tertiary-default px-3 py-2 text-text-secondary",
children: r
@@ -18408,17 +18519,17 @@ function nf({ tone: e, title: t, children: n }) {
}
//#endregion
//#region src/react/components/page.tsx
-function rf({ children: e }) {
- return /* @__PURE__ */ (0, x.jsx)("div", {
+function cf({ children: e }) {
+ return /* @__PURE__ */ (0, S.jsx)("div", {
className: "mx-auto flex w-full max-w-board flex-col gap-8",
children: e
});
}
//#endregion
//#region src/react/components/progress.tsx
-function af({ label: e, value: t, max: n = 100, stops: r = [] }) {
+function lf({ label: e, value: t, max: n = 100, stops: r = [] }) {
let i = Math.min(Math.max(t, 0), n);
- return /* @__PURE__ */ (0, x.jsxs)("svg", {
+ return /* @__PURE__ */ (0, S.jsxs)("svg", {
role: "progressbar",
"aria-label": e,
"aria-valuemin": 0,
@@ -18428,17 +18539,17 @@ function af({ label: e, value: t, max: n = 100, stops: r = [] }) {
preserveAspectRatio: "none",
className: "h-1.5 w-full overflow-hidden rounded-full",
children: [
- /* @__PURE__ */ (0, x.jsx)("rect", {
+ /* @__PURE__ */ (0, S.jsx)("rect", {
width: n,
height: 1,
className: "fill-background-tertiary-default"
}),
- /* @__PURE__ */ (0, x.jsx)("rect", {
+ /* @__PURE__ */ (0, S.jsx)("rect", {
width: i,
height: 1,
className: "fill-border-focus-ring"
}),
- r.map((e) => /* @__PURE__ */ (0, x.jsx)("rect", {
+ r.map((e) => /* @__PURE__ */ (0, S.jsx)("rect", {
x: e,
width: .4,
height: 1,
@@ -18449,32 +18560,32 @@ function af({ label: e, value: t, max: n = 100, stops: r = [] }) {
}
//#endregion
//#region src/react/query.ts
-var of = new Ke({ defaultOptions: { queries: {
+var uf = new Ye({ defaultOptions: { queries: {
networkMode: "always",
retry: 0,
refetchOnWindowFocus: !1,
refetchOnMount: !1,
retryOnMount: !1
-} } }), sf = "/api/tasks", cf = ["tasks"], lf = 2e3, uf = 1e4, df = (e) => e?.running.length ? lf : uf, ff = (e) => Qd(sf, e);
-async function pf(e) {
- await of.fetchQuery({
- queryKey: cf,
- queryFn: () => ff(e)
+} } }), df = "/api/tasks", ff = ["tasks"], pf = 2e3, mf = 1e4, hf = (e) => e?.running.length ? pf : mf, gf = (e) => nf(df, e);
+async function _f(e) {
+ await uf.fetchQuery({
+ queryKey: ff,
+ queryFn: () => gf(e)
});
}
-var mf = {
+var vf = {
manual: "手动",
scheduled: "定时",
startup: "启动",
cli: "命令行"
-}, hf = {
+}, yf = {
pending: "排队中",
running: "进行中",
succeeded: "已完成",
failed: "失败",
cancelled: "已取消",
interrupted: "被打断"
-}, gf = (e) => hf[e] || e, _f = {
+}, bf = (e) => yf[e] || e, xf = {
checked: "已检查",
total: "总数",
scanned: "已扫描",
@@ -18494,14 +18605,14 @@ var mf = {
exit_code: "退出码",
issue_count: "问题"
};
-function vf(e) {
+function Sf(e) {
if (typeof e != "number" || !Number.isFinite(e) || e < 0) return "";
let t = Math.floor(e);
if (t < 60) return `${t} 秒`;
let n = Math.floor(t / 60);
return n < 60 ? `${n} 分 ${t % 60} 秒` : `${Math.floor(n / 60)} 小时 ${n % 60} 分`;
}
-function yf(e) {
+function Cf(e) {
if (!e) return "";
let t = new Date(e);
return Number.isNaN(t.getTime()) ? "" : t.toLocaleString(void 0, {
@@ -18511,65 +18622,65 @@ function yf(e) {
minute: "2-digit"
});
}
-function bf(e) {
- return Object.entries(e || {}).filter(([e, t]) => e !== "blocked_by" && (typeof t == "number" || typeof t == "string") && String(t) !== "").map(([e, t]) => `${_f[e] || e} ${t}`).join(" · ");
+function wf(e) {
+ return Object.entries(e || {}).filter(([e, t]) => e !== "blocked_by" && (typeof t == "number" || typeof t == "string") && String(t) !== "").map(([e, t]) => `${xf[e] || e} ${t}`).join(" · ");
}
//#endregion
//#region src/react/activity/activity-page.tsx
-var xf = {
+var Tf = {
succeeded: "lime",
failed: "rose",
cancelled: "yellow",
interrupted: "yellow"
};
-function Sf({ status: e }) {
- return /* @__PURE__ */ (0, x.jsx)(Jd, {
- color: xf[e] ?? "neutral",
- children: gf(e)
+function Ef({ status: e }) {
+ return /* @__PURE__ */ (0, S.jsx)(Qd, {
+ color: Tf[e] ?? "neutral",
+ children: bf(e)
});
}
-function Cf({ run: e, meta: t, children: n, footer: r }) {
- return /* @__PURE__ */ (0, x.jsxs)("li", {
+function Df({ run: e, meta: t, children: n, footer: r }) {
+ return /* @__PURE__ */ (0, S.jsxs)("li", {
"data-status": e.status,
"data-task-key": e.task_key,
className: e.status === "failed" ? "flex flex-col rounded-2xl border border-border-error-default" : "flex flex-col rounded-2xl border border-separator-border",
- children: [/* @__PURE__ */ (0, x.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, S.jsxs)("div", {
className: "flex flex-col gap-1.5 px-5 pt-5 pb-4",
children: [
- /* @__PURE__ */ (0, x.jsxs)("div", {
+ /* @__PURE__ */ (0, S.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, x.jsx)("strong", {
+ children: [/* @__PURE__ */ (0, S.jsx)("strong", {
className: "min-w-0 break-words text-title-1-medium text-text-primary",
children: e.task_label
- }), /* @__PURE__ */ (0, x.jsx)(Sf, { status: e.status })]
+ }), /* @__PURE__ */ (0, S.jsx)(Ef, { status: e.status })]
}),
- /* @__PURE__ */ (0, x.jsx)("p", {
+ /* @__PURE__ */ (0, S.jsx)("p", {
className: "text-caption-1-regular text-text-secondary",
children: t
}),
n
]
- }), r ? /* @__PURE__ */ (0, x.jsx)("div", {
+ }), r ? /* @__PURE__ */ (0, S.jsx)("div", {
className: "border-t border-separator-border px-5 py-3",
- children: /* @__PURE__ */ (0, x.jsx)("p", {
+ children: /* @__PURE__ */ (0, S.jsx)("p", {
className: "text-caption-1-regular text-text-secondary",
children: r
})
}) : null]
});
}
-function wf({ run: e }) {
- let t = e.progress_total || 0, n = e.progress_current || 0, r = e.progress_label || "正在进行", i = vf(e.elapsed_seconds), a = [mf[e.trigger] || e.trigger, i && `已跑 ${i}`].filter(Boolean).join(" · ");
- return /* @__PURE__ */ (0, x.jsx)(Cf, {
+function Of({ run: e }) {
+ let t = e.progress_total || 0, n = e.progress_current || 0, r = e.progress_label || "正在进行", i = Sf(e.elapsed_seconds), a = [vf[e.trigger] || e.trigger, i && `已跑 ${i}`].filter(Boolean).join(" · ");
+ return /* @__PURE__ */ (0, S.jsx)(Df, {
run: e,
meta: a,
- children: t > 0 ? /* @__PURE__ */ (0, x.jsxs)("div", {
+ children: t > 0 ? /* @__PURE__ */ (0, S.jsxs)("div", {
className: "flex flex-col gap-1.5",
- children: [/* @__PURE__ */ (0, x.jsx)(af, {
+ children: [/* @__PURE__ */ (0, S.jsx)(lf, {
label: r,
value: n,
max: t
- }), /* @__PURE__ */ (0, x.jsxs)("p", {
+ }), /* @__PURE__ */ (0, S.jsxs)("p", {
className: "text-caption-1-regular text-text-secondary",
children: [
r,
@@ -18580,93 +18691,93 @@ function wf({ run: e }) {
" 项"
]
})]
- }) : /* @__PURE__ */ (0, x.jsx)(tf, { label: r })
+ }) : /* @__PURE__ */ (0, S.jsx)(of, { label: r })
});
}
-function Tf({ run: e }) {
- let t = bf(e.result_summary), n = vf(e.elapsed_seconds), r = [
- mf[e.trigger] || e.trigger,
- yf(e.finished_at),
+function kf({ run: e }) {
+ let t = wf(e.result_summary), n = Sf(e.elapsed_seconds), r = [
+ vf[e.trigger] || e.trigger,
+ Cf(e.finished_at),
n && `用时 ${n}`
].filter(Boolean).join(" · ");
- return /* @__PURE__ */ (0, x.jsx)(Cf, {
+ return /* @__PURE__ */ (0, S.jsx)(Df, {
run: e,
meta: r,
footer: e.error,
- children: t ? /* @__PURE__ */ (0, x.jsx)("p", {
+ children: t ? /* @__PURE__ */ (0, S.jsx)("p", {
className: "text-caption-1-regular text-text-secondary",
children: t
}) : null
});
}
-function Ef({ title: e, children: t }) {
- let n = (0, b.useId)();
- return /* @__PURE__ */ (0, x.jsxs)("section", {
+function Af({ title: e, children: t }) {
+ let n = (0, x.useId)();
+ return /* @__PURE__ */ (0, S.jsxs)("section", {
"aria-labelledby": n,
className: "flex min-w-0 flex-col gap-3",
- children: [/* @__PURE__ */ (0, x.jsx)("h3", {
+ children: [/* @__PURE__ */ (0, S.jsx)("h3", {
id: n,
className: "text-title-2-semibold text-text-primary",
children: e
}), t]
});
}
-function Df({ live: e = !1, children: t }) {
- return /* @__PURE__ */ (0, x.jsx)("ul", {
+function jf({ live: e = !1, children: t }) {
+ return /* @__PURE__ */ (0, S.jsx)("ul", {
"aria-live": e ? "polite" : void 0,
className: "flex min-w-0 flex-col gap-3",
children: t
});
}
-function Of(e) {
- let t = at({
- queryKey: cf,
- queryFn: ({ signal: e }) => ff(e),
- refetchInterval: (e) => df(e.state.data)
- }), n = t.data, r = t.error ? Zd(t.error) : "";
- if (!n) return /* @__PURE__ */ (0, x.jsx)(rf, { children: /* @__PURE__ */ (0, x.jsx)(nf, {
+function Mf(e) {
+ let t = ct({
+ queryKey: ff,
+ queryFn: ({ signal: e }) => gf(e),
+ refetchInterval: (e) => hf(e.state.data)
+ }), n = t.data, r = t.error ? tf(t.error) : "";
+ if (!n) return /* @__PURE__ */ (0, S.jsx)(cf, { children: /* @__PURE__ */ (0, S.jsx)(sf, {
tone: "error",
children: r || "读取任务中心失败"
}) });
let i = n.running || [], a = n.skipped || [], o = (n.finished || []).filter((e) => !a.some((t) => t.id === e.id)), s = !i.length && !a.length && !o.length;
- return /* @__PURE__ */ (0, x.jsxs)(rf, { children: [
- r ? /* @__PURE__ */ (0, x.jsx)(nf, {
+ return /* @__PURE__ */ (0, S.jsxs)(cf, { children: [
+ r ? /* @__PURE__ */ (0, S.jsx)(sf, {
tone: "error",
children: r
}) : null,
- n.available === !1 ? /* @__PURE__ */ (0, x.jsx)(nf, {
+ n.available === !1 ? /* @__PURE__ */ (0, S.jsx)(sf, {
tone: "warning",
children: n.message || "账本上还没有任务中心的表"
}) : null,
- s ? /* @__PURE__ */ (0, x.jsx)(ef, {
- icon: fu,
+ s ? /* @__PURE__ */ (0, S.jsx)(af, {
+ icon: gu,
title: "还没有任务记录",
children: "扫描、追更检查、批量操作和命令行批处理跑起来之后,这里会显示它们的进度与结果。"
- }) : /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [
- /* @__PURE__ */ (0, x.jsx)(Ef, {
+ }) : /* @__PURE__ */ (0, S.jsxs)(S.Fragment, { children: [
+ /* @__PURE__ */ (0, S.jsx)(Af, {
title: "正在进行",
- children: i.length ? /* @__PURE__ */ (0, x.jsx)(Df, {
+ children: i.length ? /* @__PURE__ */ (0, S.jsx)(jf, {
live: !0,
- children: i.map((e) => /* @__PURE__ */ (0, x.jsx)(wf, { run: e }, e.id))
- }) : /* @__PURE__ */ (0, x.jsx)("p", {
+ children: i.map((e) => /* @__PURE__ */ (0, S.jsx)(Of, { run: e }, e.id))
+ }) : /* @__PURE__ */ (0, S.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: "没有任务在跑。"
})
}),
- a.length ? /* @__PURE__ */ (0, x.jsx)(Ef, {
+ a.length ? /* @__PURE__ */ (0, S.jsx)(Af, {
title: "被挡下的",
- children: /* @__PURE__ */ (0, x.jsx)(Df, { children: a.map((e) => /* @__PURE__ */ (0, x.jsx)(Tf, { run: e }, e.id)) })
+ children: /* @__PURE__ */ (0, S.jsx)(jf, { children: a.map((e) => /* @__PURE__ */ (0, S.jsx)(kf, { run: e }, e.id)) })
}) : null,
- o.length ? /* @__PURE__ */ (0, x.jsx)(Ef, {
+ o.length ? /* @__PURE__ */ (0, S.jsx)(Af, {
title: "最近完成",
- children: /* @__PURE__ */ (0, x.jsx)(Df, { children: o.map((e) => /* @__PURE__ */ (0, x.jsx)(Tf, { run: e }, e.id)) })
+ children: /* @__PURE__ */ (0, S.jsx)(jf, { children: o.map((e) => /* @__PURE__ */ (0, S.jsx)(kf, { run: e }, e.id)) })
}) : null
] })
] });
}
//#endregion
//#region src/react/boardui/components/base/buttons/button.tsx
-var kf = Kd({
+var Nf = Xd({
base: [
"inline-flex items-center justify-center gap-0.5 whitespace-nowrap overflow-hidden",
"font-sans select-none cursor-pointer",
@@ -18721,23 +18832,23 @@ var kf = Kd({
].join(" ")
}
});
-function Af({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadingIcon: r, trailingIcon: i, children: a, className: o, type: s = "button", ref: c, ...l }) {
- return /* @__PURE__ */ (0, x.jsxs)("button", {
+function Pf({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadingIcon: r, trailingIcon: i, children: a, className: o, type: s = "button", ref: c, ...l }) {
+ return /* @__PURE__ */ (0, S.jsxs)("button", {
ref: c,
type: s,
- className: Gd(kf.base, kf.size[t], kf.variant[e], n && kf.iconOnlySize[t], o),
+ className: Yd(Nf.base, Nf.size[t], Nf.variant[e], n && Nf.iconOnlySize[t], o),
...l,
children: [
- r ? /* @__PURE__ */ (0, x.jsx)(r, {
- className: kf.icon[t],
+ r ? /* @__PURE__ */ (0, S.jsx)(r, {
+ className: Nf.icon[t],
"aria-hidden": !0
}) : null,
- !n && a != null && /* @__PURE__ */ (0, x.jsx)("span", {
- className: kf.label[t],
+ !n && a != null && /* @__PURE__ */ (0, S.jsx)("span", {
+ className: Nf.label[t],
children: a
}),
- !n && i ? /* @__PURE__ */ (0, x.jsx)(i, {
- className: kf.icon[t],
+ !n && i ? /* @__PURE__ */ (0, S.jsx)(i, {
+ className: Nf.icon[t],
"aria-hidden": !0
}) : null
]
@@ -18745,44 +18856,44 @@ function Af({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, lead
}
//#endregion
//#region src/react/quality-goals/quality-goals.ts
-var jf = "/api/quality-goals?limit=200", Mf = ["quality-goals"], Nf = (e) => Qd(jf, e);
-async function Pf(e) {
- await of.fetchQuery({
- queryKey: Mf,
- queryFn: () => Nf(e)
+var Ff = "/api/quality-goals?limit=200", If = ["quality-goals"], Lf = (e) => nf(Ff, e);
+async function Rf(e) {
+ await uf.fetchQuery({
+ queryKey: If,
+ queryFn: () => Lf(e)
});
}
-var Ff = (e) => e.has_cover ? `/cover?code=${encodeURIComponent(e.code ?? "")}` : `/poster?id=${e.id}&c=4`;
+var zf = (e) => e.has_cover ? `/cover?code=${encodeURIComponent(e.code ?? "")}` : `/poster?id=${e.id}&c=4`;
//#endregion
//#region src/react/quality-goals/quality-goals-page.tsx
-function If({ item: r, openItem: i, javTitleHtml: a, javDisplayName: o, srcBadge: s }) {
+function Bf({ item: r, openItem: i, javTitleHtml: a, javDisplayName: o, srcBadge: s }) {
let c = () => i(r.id);
- return /* @__PURE__ */ (0, x.jsxs)("li", {
+ return /* @__PURE__ */ (0, S.jsxs)("li", {
"data-goal-id": r.id,
className: "flex min-w-0 flex-col gap-3 rounded-2xl border border-separator-border p-3",
- children: [/* @__PURE__ */ (0, x.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, S.jsxs)("div", {
className: "flex min-w-0 gap-4",
- children: [/* @__PURE__ */ (0, x.jsxs)("button", {
+ children: [/* @__PURE__ */ (0, S.jsxs)("button", {
type: "button",
onClick: c,
"aria-label": `打开 ${o(r)}`,
className: "relative inline-grid w-card-cover shrink-0 aspect-card-cover cursor-pointer place-items-center overflow-hidden rounded-lg bg-black",
- children: [/* @__PURE__ */ (0, x.jsx)("span", {
+ children: [/* @__PURE__ */ (0, S.jsx)("span", {
className: "text-caption-1-regular text-text-tertiary",
children: "暂无预览"
- }), /* @__PURE__ */ (0, x.jsx)("img", {
- src: Ff(r),
+ }), /* @__PURE__ */ (0, S.jsx)("img", {
+ src: zf(r),
alt: "",
loading: "lazy",
onError: (e) => e.currentTarget.remove(),
className: "absolute inset-0 size-full object-contain"
})]
- }), /* @__PURE__ */ (0, x.jsxs)("div", {
+ }), /* @__PURE__ */ (0, S.jsxs)("div", {
className: "flex min-w-0 flex-col gap-1.5",
children: [
- /* @__PURE__ */ (0, x.jsx)("h3", {
+ /* @__PURE__ */ (0, S.jsx)("h3", {
className: "text-title-1-medium text-text-primary",
- children: /* @__PURE__ */ (0, x.jsx)("button", {
+ children: /* @__PURE__ */ (0, S.jsx)("button", {
type: "button",
"data-middle-truncate": !0,
onClick: c,
@@ -18790,27 +18901,27 @@ function If({ item: r, openItem: i, javTitleHtml: a, javDisplayName: o, srcBadge
dangerouslySetInnerHTML: { __html: a(r) }
})
}),
- /* @__PURE__ */ (0, x.jsxs)("p", {
+ /* @__PURE__ */ (0, S.jsxs)("p", {
className: "flex flex-wrap items-center gap-2 text-caption-1-regular text-text-secondary",
children: [
- /* @__PURE__ */ (0, x.jsx)("span", {
+ /* @__PURE__ */ (0, S.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: s(r.location, r.cost) }
}),
- /* @__PURE__ */ (0, x.jsx)("span", { children: e[r.location] ?? r.location }),
- /* @__PURE__ */ (0, x.jsx)("span", { children: t(r.duration) }),
- /* @__PURE__ */ (0, x.jsx)("span", { children: n(r.size ?? 0) })
+ /* @__PURE__ */ (0, S.jsx)("span", { children: e[r.location] ?? r.location }),
+ /* @__PURE__ */ (0, S.jsx)("span", { children: t(r.duration) }),
+ /* @__PURE__ */ (0, S.jsx)("span", { children: n(r.size ?? 0) })
]
}),
- r.reason ? /* @__PURE__ */ (0, x.jsx)("p", {
+ r.reason ? /* @__PURE__ */ (0, S.jsx)("p", {
className: "text-caption-1-regular text-text-secondary",
children: r.reason
}) : null
]
})]
- }), /* @__PURE__ */ (0, x.jsx)("footer", {
+ }), /* @__PURE__ */ (0, S.jsx)("footer", {
className: "flex justify-end",
- children: /* @__PURE__ */ (0, x.jsx)(Af, {
+ children: /* @__PURE__ */ (0, S.jsx)(Pf, {
variant: "secondary",
size: "small",
onClick: c,
@@ -18819,21 +18930,21 @@ function If({ item: r, openItem: i, javTitleHtml: a, javDisplayName: o, srcBadge
})]
});
}
-function Lf(e) {
- let t = at({
- queryKey: Mf,
- queryFn: ({ signal: e }) => Nf(e)
+function $(e) {
+ let t = ct({
+ queryKey: If,
+ queryFn: ({ signal: e }) => Lf(e)
}), n = t.data;
- if (!n) return /* @__PURE__ */ (0, x.jsx)(rf, { children: /* @__PURE__ */ (0, x.jsx)(nf, {
+ if (!n) return /* @__PURE__ */ (0, S.jsx)(cf, { children: /* @__PURE__ */ (0, S.jsx)(sf, {
tone: "error",
title: "读取失败",
- children: t.error ? Zd(t.error) : "读取高清版目标失败"
+ children: t.error ? tf(t.error) : "读取高清版目标失败"
}) });
let r = n.items || [];
- return r.length ? /* @__PURE__ */ (0, x.jsxs)(rf, { children: [/* @__PURE__ */ (0, x.jsxs)("p", {
+ return r.length ? /* @__PURE__ */ (0, S.jsxs)(cf, { children: [/* @__PURE__ */ (0, S.jsxs)("p", {
className: "text-body-2-regular text-text-secondary",
children: [
- /* @__PURE__ */ (0, x.jsx)("strong", {
+ /* @__PURE__ */ (0, S.jsx)("strong", {
className: "text-title-2-semibold text-text-primary",
children: "待升级"
}),
@@ -18841,57 +18952,28 @@ function Lf(e) {
n.total,
" 部作品"
]
- }), /* @__PURE__ */ (0, x.jsx)("ul", {
+ }), /* @__PURE__ */ (0, S.jsx)("ul", {
className: "card-grid gap-5",
- children: r.map((t) => /* @__PURE__ */ (0, x.jsx)(If, {
+ children: r.map((t) => /* @__PURE__ */ (0, S.jsx)(Bf, {
item: t,
...e
}, t.id))
- })] }) : /* @__PURE__ */ (0, x.jsx)(rf, { children: /* @__PURE__ */ (0, x.jsx)(ef, {
- icon: mu,
+ })] }) : /* @__PURE__ */ (0, S.jsx)(cf, { children: /* @__PURE__ */ (0, S.jsx)(af, {
+ icon: vu,
title: "没有标记中的高清版目标",
children: "现有版本都已满足条件,或还没有加入追踪。"
}) });
}
//#endregion
-//#region src/react/boardui/components/application/settings/settings-rows.tsx
-function Rf({ className: e, children: t }) {
- return /* @__PURE__ */ (0, x.jsx)("div", {
- className: Gd("flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3", e),
- children: t
- });
-}
-function zf({ className: e, children: t }) {
- return /* @__PURE__ */ (0, x.jsx)("p", {
- className: Gd("w-full px-3 text-body-2-medium text-text-secondary", e),
- children: t
- });
-}
-function Bf({ label: e, description: t, children: n }) {
- return /* @__PURE__ */ (0, x.jsxs)("div", {
- className: Gd("flex min-h-[52px] w-full items-center justify-between gap-4 py-2.5 pr-2.5", "border-b border-separator-border last:border-b-0"),
- children: [/* @__PURE__ */ (0, x.jsxs)("div", {
- className: "flex min-w-0 flex-col",
- children: [/* @__PURE__ */ (0, x.jsx)("p", {
- className: "text-body-regular text-text-primary",
- children: e
- }), t && /* @__PURE__ */ (0, x.jsx)("p", {
- className: "text-body-2-regular text-text-secondary",
- children: t
- })]
- }), n]
- });
-}
-//#endregion
//#region node_modules/react-aria-components/dist/private/utils.mjs
-var $ = Symbol("default");
-function Vf({ values: e, children: t }) {
- for (let [n, r] of e) t = /*#__PURE__*/ b.createElement(n.Provider, { value: r }, t);
+var Vf = Symbol("default");
+function Hf({ values: e, children: t }) {
+ for (let [n, r] of e) t = /*#__PURE__*/ x.createElement(n.Provider, { value: r }, t);
return t;
}
-function Hf(e) {
+function Uf(e) {
let { className: t, style: n, children: r, defaultClassName: i, defaultChildren: a, defaultStyle: o, values: s, render: c } = e;
- return (0, b.useMemo)(() => {
+ return (0, x.useMemo)(() => {
let e, l, u;
return e = typeof t == "function" ? t({
...s,
@@ -18923,11 +19005,11 @@ function Hf(e) {
c
]);
}
-function Uf(e, t) {
- let n = (0, b.useContext)(e);
+function Wf(e, t) {
+ let n = (0, x.useContext)(e);
if (t === null) return null;
if (n && typeof n == "object" && "slots" in n && n.slots) {
- let e = t || $;
+ let e = t || Vf;
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}.`);
@@ -18936,8 +19018,8 @@ function Uf(e, t) {
}
return n;
}
-function Wf(e, t, n) {
- let { ref: r, ...i } = Uf(n, e.slot) || {}, a = kr((0, b.useMemo)(() => ur(t, r), [t, r])), o = U(i, e);
+function Gf(e, t, n) {
+ let { ref: r, ...i } = Wf(n, e.slot) || {}, a = Nr((0, x.useMemo)(() => mr(t, r), [t, r])), o = H(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,
@@ -18955,56 +19037,56 @@ function Wf(e, t, n) {
...e.style
}), [o, a];
}
-function Gf(e = !0) {
- let [t, n] = (0, b.useState)(e), r = (0, b.useRef)(!1), i = (0, b.useCallback)((e) => {
+function Kf(e = !0) {
+ let [t, n] = (0, x.useState)(e), r = (0, x.useRef)(!1), i = (0, x.useCallback)((e) => {
r.current = !0, n(!!e);
}, []);
- return H(() => {
+ return V(() => {
r.current || n(!1);
}, []), [i, t];
}
-function Kf(e) {
+function qf(e) {
let t = /^(data-.*)$/, n = {};
for (let r in e) t.test(r) || (n[r] = e[r]);
return n;
}
-function qf(e, t, n) {
- let { render: r, ...i } = t, a = (0, b.useRef)(null), o = (0, b.useMemo)(() => ur(n, a), [n, a]);
- H(() => {}, [e, r]);
+function Jf(e, t, n) {
+ let { render: r, ...i } = t, a = (0, x.useRef)(null), o = (0, x.useMemo)(() => mr(n, a), [n, a]);
+ V(() => {}, [e, r]);
let s = {
...i,
ref: o
};
- return r ? r(s, void 0) : /*#__PURE__*/ b.createElement(e, s);
+ return r ? r(s, void 0) : /*#__PURE__*/ x.createElement(e, s);
}
-var Jf = {}, Yf = new Proxy({}, { get(e, t) {
+var Yf = {}, Xf = new Proxy({}, { get(e, t) {
if (typeof t != "string") return;
- let n = Jf[t];
- return n || (n = /*#__PURE__*/ (0, b.forwardRef)(qf.bind(null, t)), Jf[t] = n), n;
-} }), Xf = /*#__PURE__*/ (0, b.createContext)(null), Zf = /*#__PURE__*/ (0, b.createContext)(null), Qf = /*#__PURE__*/ (0, b.createContext)(null), $f = {
+ let n = Yf[t];
+ return n || (n = /*#__PURE__*/ (0, x.forwardRef)(Jf.bind(null, t)), Yf[t] = n), n;
+} }), Zf = /*#__PURE__*/ (0, x.createContext)(null), Qf = /*#__PURE__*/ (0, x.createContext)(null), $f = /*#__PURE__*/ (0, x.createContext)(null), ep = {
CollectionRoot({ collection: e, renderDropIndicator: t }) {
- return ep(e, null, t);
+ return tp(e, null, t);
},
CollectionBranch({ collection: e, parent: t, renderDropIndicator: n }) {
- return ep(e, t, n);
+ return tp(e, t, n);
}
};
-function ep(e, t, n) {
- return ht({
+function tp(e, t, n) {
+ return yt({
items: t ? e.getChildren(t.key) : e,
dependencies: [n],
children(t) {
- if (t.type === "content") return /*#__PURE__*/ b.createElement(b.Fragment, null);
+ if (t.type === "content") return /*#__PURE__*/ x.createElement(x.Fragment, null);
let r = t.render(t);
- return !n || t.type !== "item" ? r : /*#__PURE__*/ b.createElement(b.Fragment, null, n({
+ return !n || t.type !== "item" ? r : /*#__PURE__*/ x.createElement(x.Fragment, null, n({
type: "item",
key: t.key,
dropPosition: "before"
- }), r, tp(e, t, n));
+ }), r, np(e, t, n));
}
});
}
-function tp(e, t, n) {
+function np(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);
@@ -19018,24 +19100,24 @@ function tp(e, t, n) {
key: r.key,
dropPosition: "after"
});
- /*#__PURE__*/ (0, b.isValidElement)(t) && s.push(/*#__PURE__*/ (0, b.cloneElement)(t, { key: `${r.key}-after` })), r = r.parentKey == null ? null : e.getItem(r.parentKey);
+ /*#__PURE__*/ (0, x.isValidElement)(t) && s.push(/*#__PURE__*/ (0, x.cloneElement)(t, { key: `${r.key}-after` })), r = r.parentKey == null ? null : e.getItem(r.parentKey);
}
}
return s;
}
-var np = /*#__PURE__*/ (0, b.createContext)($f), rp = /*#__PURE__*/ (0, b.createContext)({}), ip = /*#__PURE__*/ Ir(function(e, t) {
- [e, t] = Wf(e, t, rp);
- let { elementType: n = "label", ...r } = e, i = Yf[n];
- return /*#__PURE__*/ b.createElement(i, {
+var rp = /*#__PURE__*/ (0, x.createContext)(ep), ip = /*#__PURE__*/ (0, x.createContext)({}), ap = /*#__PURE__*/ Br(function(e, t) {
+ [e, t] = Gf(e, t, ip);
+ let { elementType: n = "label", ...r } = e, i = Xf[n];
+ return /*#__PURE__*/ x.createElement(i, {
className: "react-aria-Label",
...r,
ref: t
});
-}), ap = /*#__PURE__*/ (0, b.createContext)(null), op = /*#__PURE__*/ (0, b.createContext)({}), sp = /*#__PURE__*/ Ir(function(e, t) {
- [e, t] = Wf(e, t, op);
- let n = e, { isPending: r } = n, { buttonProps: i, isPressed: a } = va(e, t);
- i = lp(i, r);
- let { focusProps: o, isFocused: s, isFocusVisible: c } = pc(e), { hoverProps: l, isHovered: u } = bc({
+}), op = /*#__PURE__*/ (0, x.createContext)(null), sp = /*#__PURE__*/ (0, x.createContext)({}), cp = /*#__PURE__*/ Br(function(e, t) {
+ [e, t] = Gf(e, t, sp);
+ let n = e, { isPending: r } = n, { buttonProps: i, isPressed: a } = xa(e, t);
+ i = up(i, r);
+ let { focusProps: o, isFocused: s, isFocusVisible: c } = hc(e), { hoverProps: l, isHovered: u } = Sc({
...e,
isDisabled: e.isDisabled || r
}), d = {
@@ -19045,25 +19127,25 @@ var np = /*#__PURE__*/ (0, b.createContext)($f), rp = /*#__PURE__*/ (0, b.create
isFocusVisible: c,
isDisabled: e.isDisabled || !1,
isPending: r ?? !1
- }, f = Hf({
+ }, f = Uf({
...e,
values: d,
defaultClassName: "react-aria-Button"
- }), p = sr(i.id), m = sr(), h = i["aria-labelledby"];
+ }), p = dr(i.id), m = dr(), h = i["aria-labelledby"];
r && (h ? h = `${h} ${m}` : i["aria-label"] && (h = `${p} ${m}`));
- let g = (0, b.useRef)(r);
- (0, b.useEffect)(() => {
+ let g = (0, x.useRef)(r);
+ (0, x.useEffect)(() => {
let e = { "aria-labelledby": h || p };
- (!g.current && s && r || g.current && s && !r) && Xa(e, "assertive"), g.current = r;
+ (!g.current && s && r || g.current && s && !r) && Qa(e, "assertive"), g.current = r;
}, [
r,
s,
h,
p
]);
- let _ = Yi(e, { global: !0 });
- return delete _.onClick, /*#__PURE__*/ b.createElement(Yf.button, {
- ...U(_, f, i, o, l),
+ let _ = U(e, { global: !0 });
+ return delete _.onClick, /*#__PURE__*/ x.createElement(Xf.button, {
+ ...H(_, f, i, o, l),
type: i.type === "submit" && r ? "button" : i.type,
id: p,
ref: t,
@@ -19076,62 +19158,62 @@ var np = /*#__PURE__*/ (0, b.createContext)($f), rp = /*#__PURE__*/ (0, b.create
"data-focused": s || void 0,
"data-pending": r || void 0,
"data-focus-visible": c || void 0
- }, /*#__PURE__*/ b.createElement(ap.Provider, { value: { id: m } }, f.children));
-}), cp = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;
-function lp(e, t) {
+ }, /*#__PURE__*/ x.createElement(op.Provider, { value: { id: m } }, f.children));
+}), lp = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;
+function up(e, t) {
if (t) {
- for (let t in e) t.startsWith("on") && !cp.test(t) && (e[t] = void 0);
+ for (let t in e) t.startsWith("on") && !lp.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/Heading.mjs
-var up = /*#__PURE__*/ (0, b.createContext)({}), dp = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
- [e, t] = Wf(e, t, up);
- let { children: n, level: r = 3, className: i, ...a } = e, o = Yf[`h${r}`];
- return /*#__PURE__*/ b.createElement(o, {
+var dp = /*#__PURE__*/ (0, x.createContext)({}), fp = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
+ [e, t] = Gf(e, t, dp);
+ let { children: n, level: r = 3, className: i, ...a } = e, o = Xf[`h${r}`];
+ return /*#__PURE__*/ x.createElement(o, {
...a,
ref: t,
className: i ?? "react-aria-Heading"
}, n);
-}), fp = /*#__PURE__*/ (0, b.createContext)({}), pp = /*#__PURE__*/ Ir(function(e, t) {
- [e, t] = Wf(e, t, fp);
- let { elementType: n = "span", ...r } = e, i = Yf[n];
- return /*#__PURE__*/ b.createElement(i, {
+}), pp = /*#__PURE__*/ (0, x.createContext)({}), mp = /*#__PURE__*/ Br(function(e, t) {
+ [e, t] = Gf(e, t, pp);
+ let { elementType: n = "span", ...r } = e, i = Xf[n];
+ return /*#__PURE__*/ x.createElement(i, {
className: "react-aria-Text",
...r,
ref: t
});
-}), mp = /*#__PURE__*/ (0, b.createContext)(null), hp = /*#__PURE__*/ (0, b.createContext)(null), gp = /*#__PURE__*/ (0, b.createContext)(null), _p = /*#__PURE__*/ (0, b.createContext)(null), vp = /*#__PURE__*/ (0, b.createContext)(null);
-function yp(e, t) {
- let { validationBehavior: n } = Uf(hp) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, b.useContext)(_p), a = kr((0, b.useMemo)(() => ur(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
- ...Kf(e),
+}), hp = /*#__PURE__*/ (0, x.createContext)(null), gp = /*#__PURE__*/ (0, x.createContext)(null), _p = /*#__PURE__*/ (0, x.createContext)(null), vp = /*#__PURE__*/ (0, x.createContext)(null), yp = /*#__PURE__*/ (0, x.createContext)(null);
+function bp(e, t) {
+ let { validationBehavior: n } = Wf(gp) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, x.useContext)(vp), a = Nr((0, x.useMemo)(() => mr(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
+ ...qf(e),
children: typeof e.children == "function" || e.children,
value: e.value,
validationBehavior: r
};
- return [i ? Fo(o, i, a) : Do(o, Po(e), a), a];
+ return [i ? K(o, i, a) : ko(o, Io(e), a), a];
}
-var bp = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
+var xp = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = Wf(r, t, gp);
- let [i, a] = yp(e, n);
- return /*#__PURE__*/ b.createElement(vp.Provider, { value: {
+ [e, t] = Gf(r, t, _p);
+ let [i, a] = bp(e, n);
+ return /*#__PURE__*/ x.createElement(yp.Provider, { value: {
...i,
inputRef: a,
defaultClassName: "react-aria-Checkbox",
isIndeterminate: e.isIndeterminate,
isRequired: e.isRequired
- } }, /*#__PURE__*/ b.createElement(xp, {
+ } }, /*#__PURE__*/ x.createElement(Sp, {
...e,
ref: t
}));
-}), xp = /*#__PURE__*/ (0, b.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, b.useContext)(vp), { isFocused: p, isFocusVisible: m, focusProps: h } = pc(), g = a || o, { hoverProps: _, isHovered: v } = bc({
+}), Sp = /*#__PURE__*/ (0, x.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, x.useContext)(yp), { isFocused: p, isFocusVisible: m, focusProps: h } = hc(), g = a || o, { hoverProps: _, isHovered: v } = Sc({
...e,
isDisabled: g
- }), y = Hf({
+ }), y = Uf({
...e,
defaultClassName: u,
values: {
@@ -19146,9 +19228,9 @@ var bp = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
isInvalid: c,
isRequired: f || !1
}
- }), x = Yi(e, { global: !0 });
- return delete x.id, delete x.onClick, /*#__PURE__*/ b.createElement(Yf.label, {
- ...U(x, n, _, y),
+ }), b = U(e, { global: !0 });
+ return delete b.id, delete b.onClick, /*#__PURE__*/ x.createElement(Xf.label, {
+ ...H(b, n, _, y),
ref: t,
slot: e.slot || void 0,
"data-selected": i || void 0,
@@ -19161,20 +19243,20 @@ var bp = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
"data-readonly": o || void 0,
"data-invalid": c || void 0,
"data-required": f || void 0
- }, /*#__PURE__*/ b.createElement(Ro, { elementType: "span" }, /*#__PURE__*/ b.createElement("input", {
- ...U(r, h),
+ }, /*#__PURE__*/ x.createElement(Bo, { elementType: "span" }, /*#__PURE__*/ x.createElement("input", {
+ ...H(r, h),
ref: l
})), y.children);
-}), Sp = /*#__PURE__*/ (0, b.createContext)({}), Cp = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
- [e, t] = Wf(e, t, Sp);
+}), Cp = /*#__PURE__*/ (0, x.createContext)({}), wp = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
+ [e, t] = Gf(e, t, Cp);
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 } = bc({
+ let { hoverProps: l, isHovered: u } = Sc({
onHoverStart: a,
onHoverChange: o,
onHoverEnd: s,
isDisabled: n
- }), { isFocused: d, isFocusVisible: f, focusProps: p } = pc({ within: !0 }), m = Hf({
+ }), { isFocused: d, isFocusVisible: f, focusProps: p } = hc({ within: !0 }), m = Uf({
...e,
values: {
isHovered: u,
@@ -19185,8 +19267,8 @@ var bp = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
},
defaultClassName: "react-aria-Group"
});
- return /*#__PURE__*/ b.createElement(Yf.div, {
- ...U(c, p, l),
+ return /*#__PURE__*/ x.createElement(Xf.div, {
+ ...H(c, p, l),
...m,
ref: t,
role: e.role ?? "group",
@@ -19198,18 +19280,18 @@ var bp = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
"data-invalid": r || void 0,
"data-readonly": i || void 0
}, m.children);
-}), wp = /*#__PURE__*/ (0, b.createContext)({}), Tp = (e) => {
+}), Tp = /*#__PURE__*/ (0, x.createContext)({}), Ep = (e) => {
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, ...i } = e;
return i;
-}, Ep = /*#__PURE__*/ Ir(function(e, t) {
- [e, t] = Wf(e, t, wp);
- let { hoverProps: n, isHovered: r } = bc({
+}, Dp = /*#__PURE__*/ Br(function(e, t) {
+ [e, t] = Gf(e, t, Tp);
+ let { hoverProps: n, isHovered: r } = Sc({
...e,
isDisabled: e.disabled
- }), { isFocused: i, isFocusVisible: a, focusProps: o } = pc({
+ }), { isFocused: i, isFocusVisible: a, focusProps: o } = hc({
isTextInput: !0,
autoFocus: e.autoFocus
- }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = Hf({
+ }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = Uf({
...e,
values: {
isHovered: r,
@@ -19220,8 +19302,8 @@ var bp = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
},
defaultClassName: "react-aria-Input"
});
- return /*#__PURE__*/ b.createElement(Yf.input, {
- ...U(Tp(e), o, n),
+ return /*#__PURE__*/ x.createElement(Xf.input, {
+ ...H(Ep(e), o, n),
...c,
ref: t,
"data-focused": i || void 0,
@@ -19230,8 +19312,8 @@ var bp = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
"data-focus-visible": a || void 0,
"data-invalid": s || void 0
});
-}), Dp = {};
-Dp = {
+}), Op = {};
+Op = {
colorSwatchPicker: "تغييرات الألوان",
dropzoneLabel: "DropZone",
selectPlaceholder: "حدد عنصرًا",
@@ -19239,8 +19321,8 @@ Dp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/bg-BG.mjs
-var Op = {};
-Op = {
+var kp = {};
+kp = {
colorSwatchPicker: "Цветови мостри",
dropzoneLabel: "DropZone",
selectPlaceholder: "Изберете предмет",
@@ -19248,8 +19330,8 @@ Op = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/cs-CZ.mjs
-var kp = {};
-kp = {
+var Ap = {};
+Ap = {
colorSwatchPicker: "Vzorky barev",
dropzoneLabel: "Místo pro přetažení",
selectPlaceholder: "Vyberte položku",
@@ -19257,8 +19339,8 @@ kp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/da-DK.mjs
-var Ap = {};
-Ap = {
+var jp = {};
+jp = {
colorSwatchPicker: "Farveprøver",
dropzoneLabel: "DropZone",
selectPlaceholder: "Vælg et element",
@@ -19266,8 +19348,8 @@ Ap = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/de-DE.mjs
-var jp = {};
-jp = {
+var Mp = {};
+Mp = {
colorSwatchPicker: "Farbfelder",
dropzoneLabel: "Ablegebereich",
selectPlaceholder: "Element wählen",
@@ -19275,8 +19357,8 @@ jp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/el-GR.mjs
-var Mp = {};
-Mp = {
+var Np = {};
+Np = {
colorSwatchPicker: "Χρωματικά δείγματα",
dropzoneLabel: "DropZone",
selectPlaceholder: "Επιλέξτε ένα αντικείμενο",
@@ -19284,8 +19366,8 @@ Mp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/en-US.mjs
-var Np = {};
-Np = {
+var Pp = {};
+Pp = {
selectPlaceholder: "Select an item",
tableResizer: "Resizer",
dropzoneLabel: "DropZone",
@@ -19293,8 +19375,8 @@ Np = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/es-ES.mjs
-var Pp = {};
-Pp = {
+var Fp = {};
+Fp = {
colorSwatchPicker: "Muestras de colores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Seleccionar un artículo",
@@ -19302,8 +19384,8 @@ Pp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/et-EE.mjs
-var Fp = {};
-Fp = {
+var Ip = {};
+Ip = {
colorSwatchPicker: "Värvinäidised",
dropzoneLabel: "DropZone",
selectPlaceholder: "Valige üksus",
@@ -19311,8 +19393,8 @@ Fp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/fi-FI.mjs
-var Ip = {};
-Ip = {
+var Lp = {};
+Lp = {
colorSwatchPicker: "Värimallit",
dropzoneLabel: "DropZone",
selectPlaceholder: "Valitse kohde",
@@ -19320,8 +19402,8 @@ Ip = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/fr-FR.mjs
-var Lp = {};
-Lp = {
+var Rp = {};
+Rp = {
colorSwatchPicker: "Échantillons de couleurs",
dropzoneLabel: "DropZone",
selectPlaceholder: "Sélectionner un élément",
@@ -19329,8 +19411,8 @@ Lp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/he-IL.mjs
-var Rp = {};
-Rp = {
+var zp = {};
+zp = {
colorSwatchPicker: "דוגמיות צבע",
dropzoneLabel: "DropZone",
selectPlaceholder: "בחר פריט",
@@ -19338,8 +19420,8 @@ Rp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/hr-HR.mjs
-var zp = {};
-zp = {
+var Bp = {};
+Bp = {
colorSwatchPicker: "Uzorci boja",
dropzoneLabel: "Zona spuštanja",
selectPlaceholder: "Odaberite stavku",
@@ -19347,8 +19429,8 @@ zp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/hu-HU.mjs
-var Bp = {};
-Bp = {
+var Vp = {};
+Vp = {
colorSwatchPicker: "Színtárak",
dropzoneLabel: "DropZone",
selectPlaceholder: "Válasszon ki egy elemet",
@@ -19356,8 +19438,8 @@ Bp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/it-IT.mjs
-var Vp = {};
-Vp = {
+var Hp = {};
+Hp = {
colorSwatchPicker: "Campioni di colore",
dropzoneLabel: "Zona di rilascio",
selectPlaceholder: "Seleziona un elemento",
@@ -19365,8 +19447,8 @@ Vp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ja-JP.mjs
-var Hp = {};
-Hp = {
+var Up = {};
+Up = {
colorSwatchPicker: "カラースウォッチ",
dropzoneLabel: "ドロップゾーン",
selectPlaceholder: "項目を選択",
@@ -19374,8 +19456,8 @@ Hp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ko-KR.mjs
-var Up = {};
-Up = {
+var Wp = {};
+Wp = {
colorSwatchPicker: "색상 견본",
dropzoneLabel: "드롭 영역",
selectPlaceholder: "항목 선택",
@@ -19383,8 +19465,8 @@ Up = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/lt-LT.mjs
-var Wp = {};
-Wp = {
+var Gp = {};
+Gp = {
colorSwatchPicker: "Spalvų pavyzdžiai",
dropzoneLabel: "„DropZone“",
selectPlaceholder: "Pasirinkite elementą",
@@ -19392,8 +19474,8 @@ Wp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/lv-LV.mjs
-var Gp = {};
-Gp = {
+var Kp = {};
+Kp = {
colorSwatchPicker: "Krāsu paraugi",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izvēlēties vienumu",
@@ -19401,8 +19483,8 @@ Gp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/nb-NO.mjs
-var Kp = {};
-Kp = {
+var qp = {};
+qp = {
colorSwatchPicker: "Fargekart",
dropzoneLabel: "Droppsone",
selectPlaceholder: "Velg et element",
@@ -19410,8 +19492,8 @@ Kp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/nl-NL.mjs
-var qp = {};
-qp = {
+var Jp = {};
+Jp = {
colorSwatchPicker: "kleurstalen",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecteer een item",
@@ -19419,8 +19501,8 @@ qp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/pl-PL.mjs
-var Jp = {};
-Jp = {
+var Yp = {};
+Yp = {
colorSwatchPicker: "Próbki kolorów",
dropzoneLabel: "Strefa upuszczania",
selectPlaceholder: "Wybierz element",
@@ -19428,8 +19510,8 @@ Jp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/pt-BR.mjs
-var Yp = {};
-Yp = {
+var Xp = {};
+Xp = {
colorSwatchPicker: "Amostras de cores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecione um item",
@@ -19437,8 +19519,8 @@ Yp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/pt-PT.mjs
-var Xp = {};
-Xp = {
+var Zp = {};
+Zp = {
colorSwatchPicker: "Amostras de cores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecione um item",
@@ -19446,8 +19528,8 @@ Xp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ro-RO.mjs
-var Zp = {};
-Zp = {
+var Qp = {};
+Qp = {
colorSwatchPicker: "Specimene de culoare",
dropzoneLabel: "Zonă de plasare",
selectPlaceholder: "Selectați un element",
@@ -19455,8 +19537,8 @@ Zp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ru-RU.mjs
-var Qp = {};
-Qp = {
+var $p = {};
+$p = {
colorSwatchPicker: "Цветовые образцы",
dropzoneLabel: "DropZone",
selectPlaceholder: "Выберите элемент",
@@ -19464,8 +19546,8 @@ Qp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sk-SK.mjs
-var $p = {};
-$p = {
+var em = {};
+em = {
colorSwatchPicker: "Vzorkovníky farieb",
dropzoneLabel: "DropZone",
selectPlaceholder: "Vyberte položku",
@@ -19473,8 +19555,8 @@ $p = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sl-SI.mjs
-var em = {};
-em = {
+var tm = {};
+tm = {
colorSwatchPicker: "Barvne palete",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izberite element",
@@ -19482,8 +19564,8 @@ em = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sr-SP.mjs
-var tm = {};
-tm = {
+var nm = {};
+nm = {
colorSwatchPicker: "Uzorci boje",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izaberite stavku",
@@ -19491,8 +19573,8 @@ tm = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sv-SE.mjs
-var nm = {};
-nm = {
+var rm = {};
+rm = {
colorSwatchPicker: "Färgrutor",
dropzoneLabel: "DropZone",
selectPlaceholder: "Välj en artikel",
@@ -19500,8 +19582,8 @@ nm = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/tr-TR.mjs
-var rm = {};
-rm = {
+var im = {};
+im = {
colorSwatchPicker: "Renk örnekleri",
dropzoneLabel: "Bırakma Bölgesi",
selectPlaceholder: "Bir öğe seçin",
@@ -19509,8 +19591,8 @@ rm = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/uk-UA.mjs
-var im = {};
-im = {
+var am = {};
+am = {
colorSwatchPicker: "Зразки кольорів",
dropzoneLabel: "DropZone",
selectPlaceholder: "Виберіть елемент",
@@ -19518,8 +19600,8 @@ im = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/zh-CN.mjs
-var am = {};
-am = {
+var om = {};
+om = {
colorSwatchPicker: "颜色色板",
dropzoneLabel: "放置区域",
selectPlaceholder: "选择一个项目",
@@ -19527,8 +19609,8 @@ am = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/zh-TW.mjs
-var om = {};
-om = {
+var sm = {};
+sm = {
colorSwatchPicker: "色票",
dropzoneLabel: "放置區",
selectPlaceholder: "選取項目",
@@ -19536,52 +19618,52 @@ om = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intlStrings.mjs
-var sm = {};
-sm = {
- "ar-AE": Dp,
- "bg-BG": Op,
- "cs-CZ": kp,
- "da-DK": Ap,
- "de-DE": jp,
- "el-GR": Mp,
- "en-US": Np,
- "es-ES": Pp,
- "et-EE": Fp,
- "fi-FI": Ip,
- "fr-FR": Lp,
- "he-IL": Rp,
- "hr-HR": zp,
- "hu-HU": Bp,
- "it-IT": Vp,
- "ja-JP": Hp,
- "ko-KR": Up,
- "lt-LT": Wp,
- "lv-LV": Gp,
- "nb-NO": Kp,
- "nl-NL": qp,
- "pl-PL": Jp,
- "pt-BR": Yp,
- "pt-PT": Xp,
- "ro-RO": Zp,
- "ru-RU": Qp,
- "sk-SK": $p,
- "sl-SI": em,
- "sr-SP": tm,
- "sv-SE": nm,
- "tr-TR": rm,
- "uk-UA": im,
- "zh-CN": am,
- "zh-TW": om
+var cm = {};
+cm = {
+ "ar-AE": Op,
+ "bg-BG": kp,
+ "cs-CZ": Ap,
+ "da-DK": jp,
+ "de-DE": Mp,
+ "el-GR": Np,
+ "en-US": Pp,
+ "es-ES": Fp,
+ "et-EE": Ip,
+ "fi-FI": Lp,
+ "fr-FR": Rp,
+ "he-IL": zp,
+ "hr-HR": Bp,
+ "hu-HU": Vp,
+ "it-IT": Hp,
+ "ja-JP": Up,
+ "ko-KR": Wp,
+ "lt-LT": Gp,
+ "lv-LV": Kp,
+ "nb-NO": qp,
+ "nl-NL": Jp,
+ "pl-PL": Yp,
+ "pt-BR": Xp,
+ "pt-PT": Zp,
+ "ro-RO": Qp,
+ "ru-RU": $p,
+ "sk-SK": em,
+ "sl-SI": tm,
+ "sr-SP": nm,
+ "sv-SE": rm,
+ "tr-TR": im,
+ "uk-UA": am,
+ "zh-CN": om,
+ "zh-TW": sm
};
//#endregion
//#region node_modules/react-aria-components/dist/private/DragAndDrop.mjs
-var cm = /*#__PURE__*/ (0, b.createContext)({}), lm = /*#__PURE__*/ (0, b.createContext)(null), um = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
- let { render: n } = (0, b.useContext)(lm);
- return /*#__PURE__*/ b.createElement(b.Fragment, null, n(e, t));
+var lm = /*#__PURE__*/ (0, x.createContext)({}), um = /*#__PURE__*/ (0, x.createContext)(null), dm = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
+ let { render: n } = (0, x.useContext)(um);
+ return /*#__PURE__*/ x.createElement(x.Fragment, null, n(e, t));
});
-function dm(e, t) {
- let n = e?.renderDropIndicator, r = e?.isVirtualDragging?.(), i = (0, b.useCallback)((e) => {
- if (r || t?.isDropTarget(e)) return n ? n(e) : /*#__PURE__*/ b.createElement(um, { target: e });
+function fm(e, t) {
+ let n = e?.renderDropIndicator, r = e?.isVirtualDragging?.(), i = (0, x.useCallback)((e) => {
+ if (r || t?.isDropTarget(e)) return n ? n(e) : /*#__PURE__*/ x.createElement(dm, { target: e });
}, [
t?.target,
r,
@@ -19589,7 +19671,7 @@ function dm(e, t) {
]);
return e?.useDropIndicator ? i : void 0;
}
-function fm(e, t, n) {
+function pm(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;
@@ -19608,19 +19690,19 @@ function fm(e, t, n) {
}
i = e ?? t ?? i;
}
- return (0, b.useMemo)(() => new Set([r, i].filter((e) => e != null)), [r, i]);
+ return (0, x.useMemo)(() => new Set([r, i].filter((e) => e != null)), [r, i]);
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Header.mjs
-var pm = /*#__PURE__*/ (0, b.createContext)({}), mm = /*#__PURE__*/ (0, b.createContext)(null);
-function hm(e) {
- let t = (0, b.useRef)({});
- return /*#__PURE__*/ b.createElement(mm.Provider, { value: t }, e.children);
+var mm = /*#__PURE__*/ (0, x.createContext)({}), hm = /*#__PURE__*/ (0, x.createContext)(null);
+function gm(e) {
+ let t = (0, x.useRef)({});
+ return /*#__PURE__*/ x.createElement(hm.Provider, { value: t }, e.children);
}
//#endregion
//#region node_modules/react-aria-components/dist/private/SelectionIndicator.mjs
-var gm = /*#__PURE__*/ (0, b.createContext)({ isSelected: !1 }), _m = /*#__PURE__*/ (0, b.createContext)({});
-(class extends ot {
+var _m = /*#__PURE__*/ (0, x.createContext)({ isSelected: !1 }), vm = /*#__PURE__*/ (0, x.createContext)({});
+(class extends ut {
static {
this.type = "separator";
}
@@ -19635,13 +19717,13 @@ var gm = /*#__PURE__*/ (0, b.createContext)({ isSelected: !1 }), _m = /*#__PURE_
});
//#endregion
//#region node_modules/react-aria/dist/private/utils/inertValue.mjs
-function vm(e) {
- let t = b.version.split(".");
+function ym(e) {
+ let t = x.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 ym = class {
+var bm = class {
constructor(e) {
this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.iterable = e;
let t = (e) => {
@@ -19685,23 +19767,23 @@ var ym = class {
getChildren(e) {
return this.keyMap.get(e)?.childNodes || [];
}
-}, bm = class e extends Set {
+}, xm = 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 xm(e, t) {
+function Sm(e, t) {
if (e.size !== t.size) return !1;
for (let n of e) if (!t.has(n)) return !1;
return !0;
}
-function Sm(e) {
- let { selectionMode: t = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: a = "all" } = e, o = (0, b.useRef)(!1), [, s] = (0, b.useState)(!1), c = (0, b.useRef)(null), l = (0, b.useRef)(null), [, u] = (0, b.useState)(null), [d, f] = No((0, b.useMemo)(() => Cm(e.selectedKeys), [e.selectedKeys]), (0, b.useMemo)(() => Cm(e.defaultSelectedKeys, new bm()), [e.defaultSelectedKeys]), e.onSelectionChange), p = (0, b.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), [m, h] = (0, b.useState)(i);
+function Cm(e) {
+ let { selectionMode: t = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: a = "all" } = e, o = (0, x.useRef)(!1), [, s] = (0, x.useState)(!1), c = (0, x.useRef)(null), l = (0, x.useRef)(null), [, u] = (0, x.useState)(null), [d, f] = Fo((0, x.useMemo)(() => wm(e.selectedKeys), [e.selectedKeys]), (0, x.useMemo)(() => wm(e.defaultSelectedKeys, new xm()), [e.defaultSelectedKeys]), e.onSelectionChange), p = (0, x.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), [m, h] = (0, x.useState)(i);
i === "replace" && m === "toggle" && typeof d == "object" && d.size === 0 && h("replace");
- let g = (0, b.useRef)(i);
- return (0, b.useEffect)(() => {
+ let g = (0, x.useRef)(i);
+ return (0, x.useEffect)(() => {
i !== g.current && (h(i), g.current = i);
}, [i]), {
selectionMode: t,
@@ -19725,18 +19807,18 @@ function Sm(e) {
},
selectedKeys: d,
setSelectedKeys(e) {
- (r || !xm(e, d)) && f(e);
+ (r || !Sm(e, d)) && f(e);
},
disabledKeys: p,
disabledBehavior: a
};
}
-function Cm(e, t) {
- return e ? e === "all" ? "all" : new bm(e) : t;
+function wm(e, t) {
+ return e ? e === "all" ? "all" : new xm(e) : t;
}
//#endregion
//#region node_modules/react-stately/dist/private/selection/SelectionManager.mjs
-var wm = class e {
+var Tm = 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;
}
@@ -19792,7 +19874,7 @@ var wm = class e {
let e = null;
for (let t of this.state.selectedKeys) {
let n = this.collection.getItem(t);
- (!e || n && $s(this.collection, n, e) < 0) && (e = n);
+ (!e || n && tc(this.collection, n, e) < 0) && (e = n);
}
return e?.key ?? null;
}
@@ -19800,7 +19882,7 @@ var wm = class e {
let e = null;
for (let t of this.state.selectedKeys) {
let n = this.collection.getItem(t);
- (!e || n && $s(this.collection, n, e) > 0) && (e = n);
+ (!e || n && tc(this.collection, n, e) > 0) && (e = n);
}
return e?.key ?? null;
}
@@ -19819,10 +19901,10 @@ var wm = class e {
let t = this.getKey(e);
if (t == null) return;
let n;
- if (this.state.selectedKeys === "all") n = new bm([t], t, t);
+ if (this.state.selectedKeys === "all") n = new xm([t], t, t);
else {
let e = this.state.selectedKeys, r = e.anchorKey ?? t;
- n = new bm(e, r, t);
+ n = new xm(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);
}
@@ -19830,7 +19912,7 @@ var wm = class e {
}
getKeyRange(e, t) {
let n = this.collection.getItem(e), r = this.collection.getItem(t);
- return n && r ? $s(this.collection, n, r) <= 0 ? this.getKeyRangeInternal(e, t) : this.getKeyRangeInternal(t, e) : [];
+ return n && r ? tc(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);
@@ -19856,19 +19938,19 @@ var wm = class e {
}
let t = this.getKey(e);
if (t == null) return;
- let n = new bm(this.state.selectedKeys === "all" ? this.getSelectAllKeys() : this.state.selectedKeys);
+ let n = new xm(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 bm([t], t, t) : new bm();
+ let n = this.canSelectItem(t) ? new xm([t], t, t) : new xm();
this.state.setSelectedKeys(n);
}
setSelectedKeys(e) {
if (this.selectionMode === "none") return;
- let t = new bm();
+ let t = new xm();
for (let n of e) {
let e = this.getKey(n);
if (e != null && (t.add(e), this.selectionMode === "single")) break;
@@ -19880,7 +19962,7 @@ var wm = 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(Zs(Xs(i, e))?.key ?? null);
+ i?.type === "item" && t.push(r), i?.hasChildNodes && (this.allowsCellSelection || i.type !== "item") && n($s(Qs(i, e))?.key ?? null);
}
r = e.getKeyAfter(r);
}
@@ -19891,7 +19973,7 @@ var wm = 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 bm());
+ !this.disallowEmptySelection && (this.state.selectedKeys === "all" || this.state.selectedKeys.size > 0) && this.state.setSelectedKeys(new xm());
}
toggleSelectAll() {
this.isSelectAll ? this.clearSelection() : this.selectAll();
@@ -19932,13 +20014,13 @@ var wm = class e {
fullCollection: this.fullCollection ?? this.collection
});
}
-}, Tm = class {
+}, Em = class {
build(e, t) {
- return this.context = t, Em(() => this.iterateCollection(e));
+ return this.context = t, Dm(() => this.iterateCollection(e));
}
*iterateCollection(e) {
let { children: t, items: n } = e;
- if (b.isValidElement(t) && t.type === b.Fragment) yield* this.iterateCollection({
+ if (x.isValidElement(t) && t.type === x.Fragment) yield* this.iterateCollection({
children: t.props.children,
items: n
});
@@ -19951,7 +20033,7 @@ var wm = class e {
}, { renderer: t }), e++;
} else {
let e = [];
- b.Children.forEach(t, (t) => {
+ x.Children.forEach(t, (t) => {
t && e.push(t);
});
let n = 0;
@@ -19979,9 +20061,9 @@ var wm = class e {
return { renderer: t.renderer || e.renderer };
}
*getFullNode(e, t, n, r) {
- if (b.isValidElement(e.element) && e.element.type === b.Fragment) {
+ if (x.isValidElement(e.element) && e.element.type === x.Fragment) {
let i = [];
- b.Children.forEach(e.element.props.children, (e) => {
+ x.Children.forEach(e.element.props.children, (e) => {
i.push(e);
});
let a = e.index ?? 0;
@@ -20000,7 +20082,7 @@ var wm = class e {
}
i = t.renderer(e.value);
}
- if (b.isValidElement(i)) {
+ if (x.isValidElement(i)) {
let a = i.type;
if (typeof a != "function" && typeof a.getCollectionNode != "function") {
let e = i.type;
@@ -20016,10 +20098,10 @@ var wm = class e {
...a,
key: l,
index: s,
- wrapper: Dm(e.wrapper, a.wrapper)
+ wrapper: Om(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 <${Om(t.type)}> in <${Om(r?.type ?? "unknown parent type")}>. Only <${Om(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 <${km(t.type)}> in <${km(r?.type ?? "unknown parent type")}>. Only <${km(e.type)}> is supported.`);
s++, yield t;
}
c = o.next(u);
@@ -20041,7 +20123,7 @@ var wm = class e {
wrapper: e.wrapper,
shouldInvalidate: e.shouldInvalidate,
hasChildNodes: e.hasChildNodes || !1,
- childNodes: Em(function* () {
+ childNodes: Dm(function* () {
if (!e.hasChildNodes || !e.childNodes) return;
let n = 0;
for (let r of e.childNodes()) {
@@ -20060,7 +20142,7 @@ var wm = class e {
this.cache = /* @__PURE__ */ new WeakMap();
}
};
-function Em(e) {
+function Dm(e) {
let t = [], n = null;
return { *[Symbol.iterator]() {
for (let e of t) yield e;
@@ -20068,19 +20150,19 @@ function Em(e) {
for (let e of n) t.push(e), yield e;
} };
}
-function Dm(e, t) {
+function Om(e, t) {
if (e && t) return (n) => e(t(n));
if (e) return e;
if (t) return t;
}
-function Om(e) {
+function km(e) {
return e[0].toUpperCase() + e.slice(1);
}
//#endregion
//#region node_modules/react-stately/dist/private/collections/useCollection.mjs
-function km(e, t, n) {
- let r = (0, b.useMemo)(() => new Tm(), []), { children: i, items: a, collection: o } = e;
- return (0, b.useMemo)(() => o || t(r.build({
+function Am(e, t, n) {
+ let r = (0, x.useMemo)(() => new Em(), []), { children: i, items: a, collection: o } = e;
+ return (0, x.useMemo)(() => o || t(r.build({
children: i,
items: a
}, n)), [
@@ -20094,29 +20176,29 @@ function km(e, t, n) {
}
//#endregion
//#region node_modules/react-stately/dist/private/list/useListState.mjs
-function Am(e) {
- let { filter: t, layoutDelegate: n } = e, r = Sm(e), i = (0, b.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = km(e, (0, b.useCallback)((e) => t ? new ym(t(e)) : new ym(e), [t]), (0, b.useMemo)(() => ({ suppressTextValueWarning: e.suppressTextValueWarning }), [e.suppressTextValueWarning])), o = (0, b.useMemo)(() => new wm(a, r, { layoutDelegate: n }), [
+function jm(e) {
+ let { filter: t, layoutDelegate: n } = e, r = Cm(e), i = (0, x.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = Am(e, (0, x.useCallback)((e) => t ? new bm(t(e)) : new bm(e), [t]), (0, x.useMemo)(() => ({ suppressTextValueWarning: e.suppressTextValueWarning }), [e.suppressTextValueWarning])), o = (0, x.useMemo)(() => new Tm(a, r, { layoutDelegate: n }), [
a,
r,
n
]);
- return Mm(a, o), {
+ return Nm(a, o), {
collection: a,
disabledKeys: i,
selectionManager: o
};
}
-function jm(e, t) {
- let n = (0, b.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);
- return Mm(n, r), {
+function Mm(e, t) {
+ let n = (0, x.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);
+ return Nm(n, r), {
collection: n,
selectionManager: r,
disabledKeys: e.disabledKeys
};
}
-function Mm(e, t) {
- let n = (0, b.useRef)(null);
- (0, b.useEffect)(() => {
+function Nm(e, t) {
+ let n = (0, x.useRef)(null);
+ (0, x.useEffect)(() => {
if (t.focusedKey != null && !e.getItem(t.focusedKey) && n.current) {
let r = n.current.getKeyAfter(t.focusedKey), i = null;
for (; r != null;) {
@@ -20142,15 +20224,15 @@ function Mm(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useLoadMoreSentinel.mjs
-function Nm(e, t) {
- let { collection: n, onLoadMore: r, scrollOffset: i = 1, direction: a = "end" } = e, o = (0, b.useRef)(null), s = hi((e) => {
+function Pm(e, t) {
+ let { collection: n, onLoadMore: r, scrollOffset: i = 1, direction: a = "end" } = e, o = (0, x.useRef)(null), s = yi((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: $a(t?.current),
+ root: to(t?.current),
rootMargin: n
}), o.current.observe(t.current);
}
@@ -20166,42 +20248,42 @@ function Nm(e, t) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/ListBox.mjs
-var Pm = /*#__PURE__*/ (0, b.createContext)(null), Fm = /*#__PURE__*/ (0, b.createContext)(null), Im = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
- [e, t] = Wf(e, t, Pm);
- let n = (0, b.useContext)(Fm);
- return n ? /*#__PURE__*/ b.createElement(Rm, {
+var Fm = /*#__PURE__*/ (0, x.createContext)(null), Im = /*#__PURE__*/ (0, x.createContext)(null), Lm = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
+ [e, t] = Gf(e, t, Fm);
+ let n = (0, x.useContext)(Im);
+ return n ? /*#__PURE__*/ x.createElement(zm, {
state: n,
props: e,
listBoxRef: t
- }) : /*#__PURE__*/ b.createElement(Kr, { content: /*#__PURE__*/ b.createElement(ri, e) }, (n) => /*#__PURE__*/ b.createElement(Lm, {
+ }) : /*#__PURE__*/ x.createElement(Xr, { content: /*#__PURE__*/ x.createElement(si, e) }, (n) => /*#__PURE__*/ x.createElement(Rm, {
props: e,
listBoxRef: t,
collection: n
}));
});
-function Lm({ props: e, listBoxRef: t, collection: n }) {
+function Rm({ props: e, listBoxRef: t, collection: n }) {
e = {
...e,
collection: n,
children: null,
items: null
};
- let { layoutDelegate: r } = (0, b.useContext)(np), i = Am({
+ let { layoutDelegate: r } = (0, x.useContext)(rp), i = jm({
...e,
layoutDelegate: r
});
- return /*#__PURE__*/ b.createElement(Rm, {
+ return /*#__PURE__*/ x.createElement(zm, {
state: i,
props: e,
listBoxRef: t
});
}
-function Rm({ state: e, props: t, listBoxRef: n }) {
- [t, n] = Wf(t, n, Xf);
- let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = jm(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = Oi(), { disabledBehavior: p, disabledKeys: m } = l, h = ic({
+function zm({ state: e, props: t, listBoxRef: n }) {
+ [t, n] = Gf(t, n, Zf);
+ let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = Mm(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = Mi(), { disabledBehavior: p, disabledKeys: m } = l, h = oc({
usage: "search",
sensitivity: "base"
- }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, b.useContext)(np), x = (0, b.useMemo)(() => t.keyboardDelegate || new ts({
+ }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, x.useContext)(rp), b = (0, x.useMemo)(() => t.keyboardDelegate || new rs({
collection: c,
collator: h,
ref: n,
@@ -20222,14 +20304,14 @@ function Rm({ state: e, props: t, listBoxRef: n }) {
t.keyboardDelegate,
i,
_
- ]), { listBoxProps: S } = Dc({
+ ]), { listBoxProps: S } = kc({
...t,
shouldSelectOnPressUp: u || t.shouldSelectOnPressUp,
- keyboardDelegate: x,
+ keyboardDelegate: b,
isVirtualized: g
}, s, n);
- (0, b.useRef)(u), (0, b.useRef)(d), (0, b.useEffect)(() => {}, [u, d]);
- let C, w, T, E = !1, D = null, O = (0, b.useRef)(null);
+ (0, x.useRef)(u), (0, x.useRef)(d), (0, x.useEffect)(() => {}, [u, d]);
+ let C, w, T, E = !1, D = null, O = (0, x.useRef)(null);
if (u && r) {
C = r.useDraggableCollectionState({
collection: c,
@@ -20237,7 +20319,7 @@ function Rm({ state: e, props: t, listBoxRef: n }) {
preview: r.renderDragPreview ? O : void 0
}), r.useDraggableCollection({}, C, n);
let e = r.DragPreview;
- D = r.renderDragPreview ? /*#__PURE__*/ b.createElement(e, { ref: O }, r.renderDragPreview) : null;
+ D = r.renderDragPreview ? /*#__PURE__*/ x.createElement(e, { ref: O }, r.renderDragPreview) : null;
}
if (d && r) {
w = r.useDroppableCollectionState({
@@ -20250,94 +20332,94 @@ function Rm({ state: e, props: t, listBoxRef: n }) {
direction: f
});
T = r.useDroppableCollection({
- keyboardDelegate: x,
+ keyboardDelegate: b,
dropTargetDelegate: e
}, w, n), E = w.isDropTarget({ type: "root" });
}
- let { focusProps: k, isFocused: A, isFocusVisible: j } = pc(), M = s.collection.size === 0, N = {
+ let { focusProps: k, isFocused: A, isFocusVisible: ee } = hc(), j = s.collection.size === 0, te = {
isDropTarget: E,
- isEmpty: M,
+ isEmpty: j,
isFocused: A,
- isFocusVisible: j,
+ isFocusVisible: ee,
layout: t.layout || "stack",
orientation: a,
state: s
- }, ee = Hf({
+ }, M = Uf({
...t,
children: void 0,
defaultClassName: "react-aria-ListBox",
- values: N
- }), te = null;
- M && t.renderEmptyState && (te = /*#__PURE__*/ b.createElement("div", {
+ values: te
+ }), ne = null;
+ j && t.renderEmptyState && (ne = /*#__PURE__*/ x.createElement("div", {
role: "option",
style: { display: "contents" }
- }, t.renderEmptyState(N)));
- let P = Yi(t, { global: !0 });
- return /*#__PURE__*/ b.createElement(wa, null, /*#__PURE__*/ b.createElement(Yf.div, {
- ...U(P, ee, S, k, T?.collectionProps),
+ }, t.renderEmptyState(te)));
+ let N = U(t, { global: !0 });
+ return /*#__PURE__*/ x.createElement(Ea, null, /*#__PURE__*/ x.createElement(Xf.div, {
+ ...H(N, M, S, k, T?.collectionProps),
ref: n,
slot: t.slot || void 0,
onScroll: t.onScroll,
"data-drop-target": E || void 0,
- "data-empty": M || void 0,
+ "data-empty": j || void 0,
"data-focused": A || void 0,
- "data-focus-visible": j || void 0,
+ "data-focus-visible": ee || void 0,
"data-layout": t.layout || "stack",
"data-orientation": a
- }, /*#__PURE__*/ b.createElement(Vf, { values: [
- [Pm, t],
- [Fm, s],
- [cm, {
+ }, /*#__PURE__*/ x.createElement(Hf, { values: [
+ [Fm, t],
+ [Im, s],
+ [lm, {
dragAndDropHooks: r,
dragState: C,
dropState: w
}],
- [_m, { elementType: "div" }],
- [lm, { render: Vm }],
- [Qf, {
+ [vm, { elementType: "div" }],
+ [um, { render: Hm }],
+ [$f, {
name: "ListBoxSection",
- render: zm
+ render: Bm
}]
- ] }, /*#__PURE__*/ b.createElement(hm, null, /*#__PURE__*/ b.createElement(y, {
+ ] }, /*#__PURE__*/ x.createElement(gm, null, /*#__PURE__*/ x.createElement(y, {
collection: c,
scrollRef: n,
- persistedKeys: fm(l, r, w),
- renderDropIndicator: dm(r, w)
- }))), te, D));
+ persistedKeys: pm(l, r, w),
+ renderDropIndicator: fm(r, w)
+ }))), ne, D));
}
-function zm(e, t, n, r = "react-aria-ListBoxSection") {
- let i = (0, b.useContext)(Fm), { dragAndDropHooks: a, dropState: o } = (0, b.useContext)(cm), { CollectionBranch: s } = (0, b.useContext)(np), [c, l] = Gf(), { headingProps: u, groupProps: d } = Oc({
+function Bm(e, t, n, r = "react-aria-ListBoxSection") {
+ let i = (0, x.useContext)(Im), { dragAndDropHooks: a, dropState: o } = (0, x.useContext)(lm), { CollectionBranch: s } = (0, x.useContext)(rp), [c, l] = Kf(), { headingProps: u, groupProps: d } = Ac({
heading: l,
"aria-label": e["aria-label"] ?? void 0
- }), f = Hf({
+ }), f = Uf({
...e,
id: void 0,
children: void 0,
defaultClassName: r,
values: void 0
- }), p = Yi(e, { global: !0 });
- return delete p.id, /*#__PURE__*/ b.createElement(Yf.section, {
- ...U(p, f, d),
+ }), p = U(e, { global: !0 });
+ return delete p.id, /*#__PURE__*/ x.createElement(Xf.section, {
+ ...H(p, f, d),
ref: t
- }, /*#__PURE__*/ b.createElement(pm.Provider, { value: {
+ }, /*#__PURE__*/ x.createElement(mm.Provider, { value: {
...u,
ref: c
- } }, /*#__PURE__*/ b.createElement(s, {
+ } }, /*#__PURE__*/ x.createElement(s, {
collection: i.collection,
parent: n,
- renderDropIndicator: dm(a, o)
+ renderDropIndicator: fm(a, o)
})));
}
-var Bm = /*#__PURE__*/ ei(lt, function(e, t, n) {
- let r = kr(t), i = (0, b.useContext)(Fm), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, b.useContext)(cm), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = kc({
+var Vm = /*#__PURE__*/ ii(pt, function(e, t, n) {
+ let r = Nr(t), i = (0, x.useContext)(Im), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, x.useContext)(lm), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = jc({
key: n.key,
"aria-label": e?.["aria-label"]
- }, i, r), { hoverProps: p, isHovered: m } = bc({
+ }, i, r), { hoverProps: p, isHovered: m } = Sc({
isDisabled: !f.allowsSelection && !f.hasAction && !c,
onHoverStart: n.props.onHoverStart,
onHoverChange: n.props.onHoverChange,
onHoverEnd: n.props.onHoverEnd
- }), { keyboardProps: h } = Or(e), { focusProps: g } = mr(e), _ = null;
+ }), { keyboardProps: h } = Mr(e), { focusProps: g } = vr(e), _ = null;
o && a && (_ = a.useDraggableItem({
key: n.key,
hasAction: f.hasAction
@@ -20348,7 +20430,7 @@ var Bm = /*#__PURE__*/ ei(lt, function(e, t, n) {
key: n.key,
dropPosition: "on"
} }, s, r));
- let y = o && o.isDragging(n.key), x = Hf({
+ let y = o && o.isDragging(n.key), b = Uf({
...e,
id: void 0,
children: e.children,
@@ -20363,12 +20445,12 @@ var Bm = /*#__PURE__*/ ei(lt, function(e, t, n) {
isDropTarget: v?.isDropTarget
}
});
- (0, b.useEffect)(() => {
+ (0, x.useEffect)(() => {
n.textValue;
}, [n.textValue]);
- let S = e.href ? Yf.a : Yf.div, C = Yi(e, { global: !0 });
- return delete C.id, delete C.onClick, e.href && l.tabIndex == null && (l.tabIndex = -1), /*#__PURE__*/ b.createElement(S, {
- ...U(C, x, l, p, h, g, _?.dragProps, v?.dropProps),
+ let S = e.href ? Xf.a : Xf.div, C = U(e, { global: !0 });
+ return delete C.id, delete C.onClick, e.href && l.tabIndex == null && (l.tabIndex = -1), /*#__PURE__*/ x.createElement(S, {
+ ...H(C, b, l, p, h, g, _?.dragProps, v?.dropProps),
ref: r,
"data-allows-dragging": !!o || void 0,
"data-selected": f.isSelected || void 0,
@@ -20380,29 +20462,29 @@ var Bm = /*#__PURE__*/ ei(lt, function(e, t, n) {
"data-dragging": y || void 0,
"data-drop-target": v?.isDropTarget || void 0,
"data-selection-mode": i.selectionManager.selectionMode === "none" ? void 0 : i.selectionManager.selectionMode
- }, /*#__PURE__*/ b.createElement(Vf, { values: [[fp, { slots: {
- [$]: u,
+ }, /*#__PURE__*/ x.createElement(Hf, { values: [[pp, { slots: {
+ [Vf]: u,
label: u,
description: d
- } }], [gm, { isSelected: f.isSelected }]] }, x.children));
+ } }], [_m, { isSelected: f.isSelected }]] }, b.children));
});
-function Vm(e, t) {
- t = kr(t);
- let { dragAndDropHooks: n, dropState: r } = (0, b.useContext)(cm), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);
- return a ? null : /*#__PURE__*/ b.createElement(Um, {
+function Hm(e, t) {
+ t = Nr(t);
+ let { dragAndDropHooks: n, dropState: r } = (0, x.useContext)(lm), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);
+ return a ? null : /*#__PURE__*/ x.createElement(Wm, {
...e,
dropIndicatorProps: i,
isDropTarget: o,
ref: t
});
}
-function Hm(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, ...i } = e, a = Hf({
+function Um(e, t) {
+ let { dropIndicatorProps: n, isDropTarget: r, ...i } = e, a = Uf({
...i,
defaultClassName: "react-aria-DropIndicator",
values: { isDropTarget: r }
});
- return /*#__PURE__*/ b.createElement(b.Fragment, null, /*#__PURE__*/ b.createElement(Yf.div, {
+ return /*#__PURE__*/ x.createElement(x.Fragment, null, /*#__PURE__*/ x.createElement(Xf.div, {
...n,
...a,
role: "option",
@@ -20410,10 +20492,10 @@ function Hm(e, t) {
"data-drop-target": r || void 0
}));
}
-var Um = /*#__PURE__*/ (0, b.forwardRef)(Hm);
-ei(ct, function(e, t, n) {
- let r = (0, b.useContext)(Fm), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, b.useRef)(null);
- Nm((0, b.useMemo)(() => ({
+var Wm = /*#__PURE__*/ (0, x.forwardRef)(Um);
+ii(ft, function(e, t, n) {
+ let r = (0, x.useContext)(Im), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, x.useRef)(null);
+ Pm((0, x.useMemo)(() => ({
onLoadMore: a,
collection: r?.collection,
sentinelRef: c,
@@ -20423,21 +20505,21 @@ ei(ct, function(e, t, n) {
o,
r?.collection
]), c);
- let l = Hf({
+ let l = Uf({
...s,
id: void 0,
children: n.rendered,
defaultClassName: "react-aria-ListBoxLoadingIndicator",
values: void 0
});
- return /*#__PURE__*/ b.createElement(b.Fragment, null, /*#__PURE__*/ b.createElement("div", {
+ return /*#__PURE__*/ x.createElement(x.Fragment, null, /*#__PURE__*/ x.createElement("div", {
style: {
position: "relative",
width: 0,
height: 0
},
- inert: vm(!0)
- }, /*#__PURE__*/ b.createElement("div", {
+ inert: ym(!0)
+ }, /*#__PURE__*/ x.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: c,
style: {
@@ -20445,8 +20527,8 @@ ei(ct, function(e, t, n) {
height: 1,
width: 1
}
- })), i && l.children && /*#__PURE__*/ b.createElement(b.Fragment, null, /*#__PURE__*/ b.createElement(Yf.div, {
- ...U(Yi(e, { global: !0 }), { tabIndex: -1 }),
+ })), i && l.children && /*#__PURE__*/ x.createElement(x.Fragment, null, /*#__PURE__*/ x.createElement(Xf.div, {
+ ...H(U(e, { global: !0 }), { tabIndex: -1 }),
...l,
role: "option",
ref: t
@@ -20454,21 +20536,21 @@ ei(ct, function(e, t, n) {
});
//#endregion
//#region node_modules/react-aria-components/dist/private/OverlayArrow.mjs
-var Wm = /*#__PURE__*/ (0, b.createContext)({ placement: "bottom" });
+var Gm = /*#__PURE__*/ (0, x.createContext)({ placement: "bottom" });
//#endregion
//#region node_modules/react-stately/dist/private/overlays/useOverlayTriggerState.mjs
-function Gm(e) {
- let [t, n] = No(e.isOpen, e.defaultOpen || !1, e.onOpenChange), [r, i] = (0, b.useState)(null);
+function Km(e) {
+ let [t, n] = Fo(e.isOpen, e.defaultOpen || !1, e.onOpenChange), [r, i] = (0, x.useState)(null);
return {
isOpen: t,
setOpen: n,
- open: (0, b.useCallback)(() => {
+ open: (0, x.useCallback)(() => {
n(!0);
}, [n]),
- close: (0, b.useCallback)(() => {
+ close: (0, x.useCallback)(() => {
n(!1);
}, [n]),
- toggle: (0, b.useCallback)(() => {
+ toggle: (0, x.useCallback)(() => {
n(!t);
}, [n, t]),
point: r,
@@ -20477,14 +20559,14 @@ function Gm(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/animation.mjs
-function Km(e, t = !0) {
- let [n, r] = (0, b.useState)(!0), i = n && t;
- return H(() => {
+function qm(e, t = !0) {
+ let [n, r] = (0, x.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]), Jm(e, i, (0, b.useCallback)(() => r(!1), [])), i;
+ }, [e, i]), Ym(e, i, (0, x.useCallback)(() => r(!1), [])), i;
}
-function qm(e, t) {
- let [n, r] = (0, b.useState)(t ? "open" : "closed");
+function Jm(e, t) {
+ let [n, r] = (0, x.useState)(t ? "open" : "closed");
switch (n) {
case "open":
t || r("exiting");
@@ -20493,12 +20575,12 @@ function qm(e, t) {
case "exiting": t && r("open");
}
let i = n === "exiting";
- return Jm(e, i, (0, b.useCallback)(() => {
+ return Ym(e, i, (0, x.useCallback)(() => {
r((e) => e === "exiting" ? "closed" : e);
}, [])), i;
}
-function Jm(e, t, n) {
- H(() => {
+function Ym(e, t, n) {
+ V(() => {
if (t && e.current) {
if (!("getAnimations" in e.current)) {
n();
@@ -20511,7 +20593,7 @@ function Jm(e, t, n) {
}
let r = !1;
return Promise.allSettled(t.map((e) => e.finished)).then(() => {
- r || (0, Hr.flushSync)(() => {
+ r || (0, Kr.flushSync)(() => {
n();
});
}), () => {
@@ -20526,9 +20608,9 @@ function Jm(e, t, n) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Popover.mjs
-var Ym = /*#__PURE__*/ (0, b.createContext)(null), Xm = /*#__PURE__*/ (0, b.createContext)(null), Zm = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
- [e, t] = Wf(e, t, Ym);
- let n = (0, b.useContext)(eh), r = Gm(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = qm(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = Lr(), { direction: c } = Oi();
+var Xm = /*#__PURE__*/ (0, x.createContext)(null), Zm = /*#__PURE__*/ (0, x.createContext)(null), Qm = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
+ [e, t] = Gf(e, t, Xm);
+ let n = (0, x.useContext)(th), r = Km(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = Jm(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = Vr(), { direction: c } = Mi();
if (s) {
let t = e.children;
return typeof t == "function" && (t = t({
@@ -20537,9 +20619,9 @@ var Ym = /*#__PURE__*/ (0, b.createContext)(null), Xm = /*#__PURE__*/ (0, b.crea
isEntering: !1,
isExiting: !1,
defaultChildren: null
- })), /*#__PURE__*/ b.createElement(b.Fragment, null, t);
+ })), /*#__PURE__*/ x.createElement(x.Fragment, null, t);
}
- return i && !i.isOpen && !o ? null : /*#__PURE__*/ b.createElement(Qm, {
+ return i && !i.isOpen && !o ? null : /*#__PURE__*/ x.createElement($m, {
...e,
triggerRef: e.triggerRef,
state: i,
@@ -20548,13 +20630,13 @@ var Ym = /*#__PURE__*/ (0, b.createContext)(null), Xm = /*#__PURE__*/ (0, b.crea
dir: c
});
});
-function Qm({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts: r, ...i }) {
- let a = (0, b.useRef)(null), o = (0, b.useRef)(null), s = (0, b.useContext)(Xm), c = s && i.trigger === "SubmenuTrigger", { popoverProps: l, underlayProps: u, arrowProps: d, placement: f, triggerAnchorPoint: p } = Xl({
+function $m({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts: r, ...i }) {
+ let a = (0, x.useRef)(null), o = (0, x.useRef)(null), s = (0, x.useContext)(Zm), c = s && i.trigger === "SubmenuTrigger", { popoverProps: l, underlayProps: u, arrowProps: d, placement: f, triggerAnchorPoint: p } = $l({
...i,
offset: i.offset ?? 8,
arrowRef: a,
groupRef: c ? s : o
- }, e), m = i.popoverRef, h = Km(m, !!f), g = i.isEntering || !i.shouldSkipAnimation && h || !1, _ = Hf({
+ }, e), m = i.popoverRef, h = qm(m, !!f), g = i.isEntering || !i.shouldSkipAnimation && h || !1, _ = Uf({
...i,
defaultClassName: "react-aria-Popover",
values: {
@@ -20563,24 +20645,24 @@ function Qm({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts
isEntering: g,
isExiting: t
}
- }), v = !i.isNonModal || i.trigger === "SubmenuTrigger" || i.trigger === "PreviewTrigger", [y, x] = (0, b.useState)(i.trigger === "PreviewTrigger");
- H(() => {
- m.current && x(v && !m.current.querySelector("[role=dialog]"));
- }, [m, v]), (0, b.useEffect)(() => {
- y && i.trigger !== "PreviewTrigger" && (i.trigger !== "SubmenuTrigger" || Wn() !== "pointer") && m.current && !Nt(m.current) && er(m.current);
+ }), v = !i.isNonModal || i.trigger === "SubmenuTrigger" || i.trigger === "PreviewTrigger", [y, b] = (0, x.useState)(i.trigger === "PreviewTrigger");
+ V(() => {
+ m.current && b(v && !m.current.querySelector("[role=dialog]"));
+ }, [m, v]), (0, x.useEffect)(() => {
+ y && i.trigger !== "PreviewTrigger" && (i.trigger !== "SubmenuTrigger" || Jn() !== "pointer") && m.current && !Lt(m.current) && ir(m.current);
}, [
y,
m,
i.trigger
]);
- let S = (0, b.useMemo)(() => {
+ let S = (0, x.useMemo)(() => {
let e = _.children;
- if (r) for (let t of r) e = /*#__PURE__*/ b.createElement(t.Provider, { value: null }, e);
+ if (r) for (let t of r) e = /*#__PURE__*/ x.createElement(t.Provider, { value: null }, e);
return e;
- }, [_.children, r]), [C, w] = (0, b.useState)(null), T = (0, b.useCallback)(() => {
+ }, [_.children, r]), [C, w] = (0, x.useState)(null), T = (0, x.useCallback)(() => {
i.triggerRef.current && w(i.triggerRef.current.getBoundingClientRect().width + "px");
}, [i.triggerRef]);
- H(T, [T]), jc({
+ V(T, [T]), Nc({
ref: _.style?.["--trigger-width"] ? void 0 : i.triggerRef,
onResize: T
});
@@ -20589,8 +20671,8 @@ function Qm({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts
"--trigger-anchor-point": p ? `${p.x}px ${p.y}px` : void 0,
..._.style,
"--trigger-width": _.style?.["--trigger-width"] || C
- }, D = /*#__PURE__*/ b.createElement(Yf.div, {
- ...U(Yi(i, { global: !0 }), l),
+ }, D = /*#__PURE__*/ x.createElement(Xf.div, {
+ ...H(U(i, { global: !0 }), l),
..._,
id: y ? i.id : void 0,
role: y ? "dialog" : void 0,
@@ -20605,75 +20687,75 @@ function Qm({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts
"data-placement": f,
"data-entering": g || void 0,
"data-exiting": t || void 0
- }, !i.isNonModal && /*#__PURE__*/ b.createElement(ml, { onDismiss: e.close }), /*#__PURE__*/ b.createElement(Wm.Provider, { value: {
+ }, !i.isNonModal && /*#__PURE__*/ x.createElement(gl, { onDismiss: e.close }), /*#__PURE__*/ x.createElement(Gm.Provider, { value: {
...d,
placement: f,
ref: a
- } }, S), /*#__PURE__*/ b.createElement(ml, { onDismiss: e.close }));
- return c ? /*#__PURE__*/ b.createElement(uc, {
+ } }, S), /*#__PURE__*/ x.createElement(gl, { onDismiss: e.close }));
+ return c ? /*#__PURE__*/ x.createElement(fc, {
...i,
shouldContainFocus: y && i.trigger !== "PreviewTrigger",
isExiting: t,
portalContainer: n ?? s?.current ?? void 0
- }, D) : /*#__PURE__*/ b.createElement(uc, {
+ }, D) : /*#__PURE__*/ x.createElement(fc, {
...i,
shouldContainFocus: y && i.trigger !== "PreviewTrigger",
isExiting: t,
portalContainer: n
- }, !i.isNonModal && e.isOpen && /*#__PURE__*/ b.createElement("div", {
+ }, !i.isNonModal && e.isOpen && /*#__PURE__*/ x.createElement("div", {
"data-testid": "underlay",
...u,
style: {
position: "fixed",
inset: 0
}
- }), /*#__PURE__*/ b.createElement("div", {
+ }), /*#__PURE__*/ x.createElement("div", {
ref: o,
style: { display: "contents" }
- }, /*#__PURE__*/ b.createElement(Xm.Provider, { value: o }, D)));
+ }, /*#__PURE__*/ x.createElement(Zm.Provider, { value: o }, D)));
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Dialog.mjs
-var $m = /*#__PURE__*/ (0, b.createContext)(null), eh = /*#__PURE__*/ (0, b.createContext)(null), th = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
+var eh = /*#__PURE__*/ (0, x.createContext)(null), th = /*#__PURE__*/ (0, x.createContext)(null), nh = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
let n = e["aria-labelledby"];
- [e, t] = Wf(e, t, $m);
- let { dialogProps: r, titleProps: i, contentProps: a } = fc({
+ [e, t] = Gf(e, t, eh);
+ let { dialogProps: r, titleProps: i, contentProps: a } = mc({
...e,
"aria-labelledby": n
- }, t), o = (0, b.useContext)(eh);
+ }, t), o = (0, x.useContext)(th);
!r["aria-label"] && !r["aria-labelledby"] && e["aria-labelledby"] && (r["aria-labelledby"] = e["aria-labelledby"]);
- let s = Hf({
+ let s = Uf({
defaultClassName: "react-aria-Dialog",
className: e.className,
style: e.style,
children: e.children,
values: { close: o?.close || (() => {}) }
- }), c = Yi(e, { global: !0 });
- return /*#__PURE__*/ b.createElement(Yf.section, {
- ...U(c, s, r),
+ }), c = U(e, { global: !0 });
+ return /*#__PURE__*/ x.createElement(Xf.section, {
+ ...H(c, s, r),
render: e.render,
ref: t,
slot: e.slot || void 0
- }, /*#__PURE__*/ b.createElement(Vf, { values: [
- [up, { slots: {
- [$]: {},
+ }, /*#__PURE__*/ x.createElement(Hf, { values: [
+ [dp, { slots: {
+ [Vf]: {},
title: {
...i,
level: 2
}
} }],
- [fp, { slots: {
- [$]: {},
+ [pp, { slots: {
+ [Vf]: {},
description: a
} }],
- [op, { slots: {
- [$]: {},
+ [sp, { slots: {
+ [Vf]: {},
close: { onPress: () => o?.close() }
} }]
] }, s.children));
-}), nh = Math.round(Math.random() * 1e10), rh = 0;
-function ih(e) {
- let t = (0, b.useMemo)(() => e.name || `radio-group-${nh}-${++rh}`, [e.name]), [n, r] = No(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, b.useState)(n), [a, o] = (0, b.useState)(null), s = bo({
+}), rh = Math.round(Math.random() * 1e10), ih = 0;
+function ah(e) {
+ let t = (0, x.useMemo)(() => e.name || `radio-group-${rh}-${++ih}`, [e.name]), [n, r] = Fo(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, x.useState)(n), [a, o] = (0, x.useState)(null), s = So({
...e,
value: n
}), c = (t) => {
@@ -20696,16 +20778,16 @@ function ih(e) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/RadioGroup.mjs
-var ah = /*#__PURE__*/ (0, b.createContext)(null), oh = /*#__PURE__*/ (0, b.createContext)(null), sh = /*#__PURE__*/ (0, b.createContext)(null), ch = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
- [e, t] = Wf(e, t, ah);
- let { validationBehavior: n } = Uf(hp) || {}, r = e.validationBehavior ?? n ?? "native", i = ih({
+var oh = /*#__PURE__*/ (0, x.createContext)(null), sh = /*#__PURE__*/ (0, x.createContext)(null), ch = /*#__PURE__*/ (0, x.createContext)(null), lh = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
+ [e, t] = Gf(e, t, oh);
+ let { validationBehavior: n } = Wf(gp) || {}, r = e.validationBehavior ?? n ?? "native", i = ah({
...e,
validationBehavior: r
- }), [a, o] = Gf(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = $l({
+ }), [a, o] = Kf(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = nu({
...e,
label: o,
validationBehavior: r
- }, i), f = Hf({
+ }, i), f = Uf({
...e,
values: {
orientation: e.orientation || "vertical",
@@ -20716,9 +20798,9 @@ var ah = /*#__PURE__*/ (0, b.createContext)(null), oh = /*#__PURE__*/ (0, b.crea
state: i
},
defaultClassName: "react-aria-RadioGroup"
- }), p = Yi(e, { global: !0 });
- return /*#__PURE__*/ b.createElement(Yf.div, {
- ...U(p, f, s),
+ }), p = U(e, { global: !0 });
+ return /*#__PURE__*/ x.createElement(Xf.div, {
+ ...H(p, f, s),
ref: t,
slot: e.slot || void 0,
"data-orientation": e.orientation || "vertical",
@@ -20726,39 +20808,39 @@ var ah = /*#__PURE__*/ (0, b.createContext)(null), oh = /*#__PURE__*/ (0, b.crea
"data-disabled": i.isDisabled || void 0,
"data-readonly": i.isReadOnly || void 0,
"data-required": i.isRequired || void 0
- }, /*#__PURE__*/ b.createElement(Vf, { values: [
- [sh, i],
- [rp, {
+ }, /*#__PURE__*/ x.createElement(Hf, { values: [
+ [ch, i],
+ [ip, {
...c,
ref: a,
elementType: "span"
}],
- [fp, { slots: {
+ [pp, { slots: {
description: l,
errorMessage: u
} }],
- [mp, d]
- ] }, /*#__PURE__*/ b.createElement(hm, null, f.children)));
-}), lh = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
+ [hp, d]
+ ] }, /*#__PURE__*/ x.createElement(gm, null, f.children)));
+}), uh = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = Wf(r, t, oh);
- let i = b.useContext(sh), a = kr((0, b.useMemo)(() => ur(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = Ql({
- ...Kf(e),
+ [e, t] = Gf(r, t, sh);
+ let i = x.useContext(ch), a = Nr((0, x.useMemo)(() => mr(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = tu({
+ ...qf(e),
children: typeof e.children == "function" || e.children
}, i, a);
- return /*#__PURE__*/ b.createElement(uh.Provider, { value: {
+ return /*#__PURE__*/ x.createElement(dh.Provider, { value: {
...o,
inputRef: a,
defaultClassName: "react-aria-Radio"
- } }, /*#__PURE__*/ b.createElement(dh, {
+ } }, /*#__PURE__*/ x.createElement(fh, {
...e,
ref: t
}));
-}), uh = /*#__PURE__*/ (0, b.createContext)(null), dh = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
- let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, b.useContext)(uh), l = b.useContext(sh), { isFocused: u, isFocusVisible: d, focusProps: f } = pc(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = bc({
+}), dh = /*#__PURE__*/ (0, x.createContext)(null), fh = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, x.useContext)(dh), l = x.useContext(ch), { isFocused: u, isFocusVisible: d, focusProps: f } = hc(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = Sc({
...e,
isDisabled: p
- }), g = Hf({
+ }), g = Uf({
...e,
defaultClassName: s,
values: {
@@ -20772,9 +20854,9 @@ var ah = /*#__PURE__*/ (0, b.createContext)(null), oh = /*#__PURE__*/ (0, b.crea
isInvalid: l.isInvalid,
isRequired: l.isRequired
}
- }), _ = Yi(e, { global: !0 });
- return delete _.id, delete _.onClick, /*#__PURE__*/ b.createElement(Yf.label, {
- ...U(_, n, m, g),
+ }), _ = U(e, { global: !0 });
+ return delete _.id, delete _.onClick, /*#__PURE__*/ x.createElement(Xf.label, {
+ ...H(_, n, m, g),
ref: t,
"data-selected": i || void 0,
"data-pressed": o || void 0,
@@ -20785,19 +20867,19 @@ var ah = /*#__PURE__*/ (0, b.createContext)(null), oh = /*#__PURE__*/ (0, b.crea
"data-readonly": l.isReadOnly || void 0,
"data-invalid": l.isInvalid || void 0,
"data-required": l.isRequired || void 0
- }, /*#__PURE__*/ b.createElement(Ro, { elementType: "span" }, /*#__PURE__*/ b.createElement("input", {
- ...U(r, f),
+ }, /*#__PURE__*/ x.createElement(Bo, { elementType: "span" }, /*#__PURE__*/ x.createElement("input", {
+ ...H(r, f),
ref: c
})), g.children);
});
//#endregion
//#region node_modules/react-stately/dist/private/select/useSelectState.mjs
-function fh(e) {
- let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = Gm(e), [i, a] = (0, b.useState)(null), o = (0, b.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [
+function ph(e) {
+ let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = Km(e), [i, a] = (0, x.useState)(null), o = (0, x.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [
e.defaultValue,
e.defaultSelectedKey,
t
- ]), [s, c] = No((0, b.useMemo)(() => e.value === void 0 ? t === "single" ? e.selectedKey : void 0 : e.value, [
+ ]), [s, c] = Fo((0, x.useMemo)(() => e.value === void 0 ? t === "single" ? e.selectedKey : void 0 : e.value, [
e.value,
e.selectedKey,
t
@@ -20809,12 +20891,12 @@ function fh(e) {
let e = [];
Array.isArray(n) ? e = n : n != null && (e = [n]), c(e);
}
- }, d = Am({
+ }, d = jm({
...e,
selectionMode: t,
disallowEmptySelection: t === "single",
allowDuplicateSelectionEvents: !0,
- selectedKeys: (0, b.useMemo)(() => ph(l), [l]),
+ selectedKeys: (0, x.useMemo)(() => mh(l), [l]),
onSelectionChange: (e) => {
if (e !== "all") {
if (t === "single") {
@@ -20824,10 +20906,10 @@ function fh(e) {
n && r.close(), m.commitValidation();
}
}
- }), f = d.selectionManager.firstSelectedKey, p = (0, b.useMemo)(() => [...d.selectionManager.selectedKeys].map((e) => d.collection.getItem(e)).filter((e) => e != null), [d.selectionManager.selectedKeys, d.collection]), m = bo({
+ }), f = d.selectionManager.firstSelectedKey, p = (0, x.useMemo)(() => [...d.selectionManager.selectedKeys].map((e) => d.collection.getItem(e)).filter((e) => e != null), [d.selectionManager.selectedKeys, d.collection]), m = So({
...e,
value: Array.isArray(l) && l.length === 0 ? null : l
- }), [h, g] = (0, b.useState)(!1), [_] = (0, b.useState)(l);
+ }), [h, g] = (0, x.useState)(!1), [_] = (0, x.useState)(l);
return {
...m,
...d,
@@ -20851,17 +20933,17 @@ function fh(e) {
setFocused: g
};
}
-function ph(e) {
+function mh(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 mh(e) {
+function hh(e) {
return e && e.__esModule ? e.default : e;
}
-var hh = /*#__PURE__*/ (0, b.createContext)(null), gh = /*#__PURE__*/ (0, b.createContext)(null), _h = /*#__PURE__*/ Ir(function(e, t) {
- [e, t] = Wf(e, t, hh);
- let { children: n, isDisabled: r = !1, isInvalid: i = !1, isRequired: a = !1 } = e, o = (0, b.useMemo)(() => typeof n == "function" ? n({
+var gh = /*#__PURE__*/ (0, x.createContext)(null), _h = /*#__PURE__*/ (0, x.createContext)(null), vh = /*#__PURE__*/ Br(function(e, t) {
+ [e, t] = Gf(e, t, gh);
+ let { children: n, isDisabled: r = !1, isInvalid: i = !1, isRequired: a = !1 } = e, o = (0, x.useMemo)(() => typeof n == "function" ? n({
isOpen: !1,
isDisabled: r,
isInvalid: i,
@@ -20875,27 +20957,27 @@ var hh = /*#__PURE__*/ (0, b.createContext)(null), gh = /*#__PURE__*/ (0, b.crea
i,
a
]);
- return /*#__PURE__*/ b.createElement(Kr, { content: o }, (n) => /*#__PURE__*/ b.createElement(yh, {
+ return /*#__PURE__*/ x.createElement(Xr, { content: o }, (n) => /*#__PURE__*/ x.createElement(bh, {
props: e,
collection: n,
selectRef: t
}));
-}), vh = [
- rp,
- op,
- fp
+}), yh = [
+ ip,
+ sp,
+ pp
];
-function yh({ props: e, selectRef: t, collection: n }) {
- let { validationBehavior: r } = Uf(hp) || {}, i = e.validationBehavior ?? r ?? "native", a = fh({
+function bh({ props: e, selectRef: t, collection: n }) {
+ let { validationBehavior: r } = Wf(gp) || {}, i = e.validationBehavior ?? r ?? "native", a = ph({
...e,
collection: n,
children: void 0,
validationBehavior: i
- }), { isFocusVisible: o, focusProps: s } = pc({ within: !0 }), c = (0, b.useRef)(null), [l, u] = Gf(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = tu({
- ...Kf(e),
+ }), { isFocusVisible: o, focusProps: s } = hc({ within: !0 }), c = (0, x.useRef)(null), [l, u] = Kf(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = iu({
+ ...qf(e),
label: u,
validationBehavior: i
- }, a, c), y = (0, b.useMemo)(() => ({
+ }, a, c), y = (0, x.useMemo)(() => ({
isOpen: a.isOpen,
isFocused: a.isFocused,
isFocusVisible: o,
@@ -20909,49 +20991,49 @@ function yh({ props: e, selectRef: t, collection: n }) {
e.isDisabled,
v.isInvalid,
e.isRequired
- ]), x = Hf({
+ ]), b = Uf({
...e,
values: y,
defaultClassName: "react-aria-Select"
- }), S = Yi(e, { global: !0 });
+ }), S = U(e, { global: !0 });
delete S.id;
- let C = (0, b.useRef)(null);
- return /*#__PURE__*/ b.createElement(Vf, { values: [
- [hh, e],
- [gh, a],
- [bh, p],
- [rp, {
+ let C = (0, x.useRef)(null);
+ return /*#__PURE__*/ x.createElement(Hf, { values: [
+ [gh, e],
+ [_h, a],
+ [xh, p],
+ [ip, {
...d,
ref: l,
elementType: "span"
}],
- [op, {
+ [sp, {
...f,
ref: c,
isPressed: a.isOpen,
autoFocus: e.autoFocus
}],
- [eh, a],
- [Ym, {
+ [th, a],
+ [Xm, {
trigger: "Select",
triggerRef: c,
scrollRef: C,
placement: "bottom start",
"aria-labelledby": m["aria-labelledby"],
- clearContexts: vh
+ clearContexts: yh
}],
- [Pm, {
+ [Fm, {
...m,
ref: C
}],
- [Fm, a],
- [fp, { slots: {
+ [Im, a],
+ [pp, { slots: {
description: h,
errorMessage: g
} }],
- [mp, v]
- ] }, /*#__PURE__*/ b.createElement(Yf.div, {
- ...U(S, x, s),
+ [hp, v]
+ ] }, /*#__PURE__*/ x.createElement(Xf.div, {
+ ...H(S, b, s),
ref: t,
slot: e.slot || void 0,
"data-focused": a.isFocused || void 0,
@@ -20960,14 +21042,14 @@ function yh({ props: e, selectRef: t, collection: n }) {
"data-disabled": e.isDisabled || void 0,
"data-invalid": v.isInvalid || void 0,
"data-required": e.isRequired || void 0
- }, x.children, /*#__PURE__*/ b.createElement(ru, {
+ }, b.children, /*#__PURE__*/ x.createElement(ou, {
..._,
autoComplete: e.autoComplete
})));
}
-var bh = /*#__PURE__*/ (0, b.createContext)(null), xh = /*#__PURE__*/ Ir(function(e, t) {
- [e, t] = Wf(e, t, bh);
- let n = (0, b.useContext)(gh), { placeholder: r } = Uf(hh), i = n.selectedItems.map((e) => {
+var xh = /*#__PURE__*/ (0, x.createContext)(null), Sh = /*#__PURE__*/ Br(function(e, t) {
+ [e, t] = Gf(e, t, xh);
+ let n = (0, x.useContext)(_h), { placeholder: r } = Wf(gh), i = n.selectedItems.map((e) => {
let t = e.props?.children;
return typeof t == "function" && (t = t({
isHovered: !1,
@@ -20979,59 +21061,59 @@ var bh = /*#__PURE__*/ (0, b.createContext)(null), xh = /*#__PURE__*/ Ir(functio
selectionMode: "single",
selectionBehavior: "toggle"
})), t;
- }), a = mc(), o = (0, b.useMemo)(() => n.selectedItems.map((e) => e?.textValue), [n.selectedItems]), s = n.selectionManager.selectionMode, c = (0, b.useMemo)(() => s === "single" ? o[0] ?? "" : a.format(o), [
+ }), a = gc(), o = (0, x.useMemo)(() => n.selectedItems.map((e) => e?.textValue), [n.selectedItems]), s = n.selectionManager.selectionMode, c = (0, x.useMemo)(() => s === "single" ? o[0] ?? "" : a.format(o), [
s,
a,
o
- ]), l = (0, b.useMemo)(() => {
+ ]), l = (0, x.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__*/ b.createElement(b.Fragment, { key: t }, i[t++]) : e.value);
+ return e.map((e) => e.type === "element" ? /*#__PURE__*/ x.createElement(x.Fragment, { key: t }, i[t++]) : e.value);
}, [
s,
a,
o,
i
- ]), u = Hi(mh(sm), "react-aria-components"), d = Hf({
+ ]), u = Ki(hh(cm), "react-aria-components"), d = Uf({
...e,
defaultChildren: l ?? r ?? u.format("selectPlaceholder"),
defaultClassName: "react-aria-SelectValue",
values: {
selectedItem: n.selectedItems[0]?.value ?? null,
- selectedItems: (0, b.useMemo)(() => n.selectedItems.map((e) => e.value ?? null), [n.selectedItems]),
+ selectedItems: (0, x.useMemo)(() => n.selectedItems.map((e) => e.value ?? null), [n.selectedItems]),
selectedText: c,
isPlaceholder: n.selectedItems.length === 0,
state: n
}
- }), f = Yi(e, { global: !0 });
- return /*#__PURE__*/ b.createElement(Yf.span, {
+ }), f = U(e, { global: !0 });
+ return /*#__PURE__*/ x.createElement(Xf.span, {
ref: t,
...f,
...d,
"data-placeholder": n.selectedItems.length === 0 || void 0
- }, /*#__PURE__*/ b.createElement(fp.Provider, { value: void 0 }, d.children));
-}), Sh = /*#__PURE__*/ (0, b.createContext)(null), Ch = /*#__PURE__*/ (0, b.createContext)(null), wh = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
+ }, /*#__PURE__*/ x.createElement(pp.Provider, { value: void 0 }, d.children));
+}), Ch = /*#__PURE__*/ (0, x.createContext)(null), wh = /*#__PURE__*/ (0, x.createContext)(null), Th = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = Wf(r, t, Sh);
- let i = kr((0, b.useMemo)(() => ur(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = Po(e), o = iu({
- ...Kf(e),
+ [e, t] = Gf(r, t, Ch);
+ let i = Nr((0, x.useMemo)(() => mr(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = Io(e), o = su({
+ ...qf(e),
children: typeof e.children == "function" || e.children
}, a, i);
- return /*#__PURE__*/ b.createElement(Vf, { values: [[Ch, a], [Th, {
+ return /*#__PURE__*/ x.createElement(Hf, { values: [[wh, a], [Eh, {
...o,
inputRef: i,
defaultClassName: "react-aria-Switch"
- }]] }, /*#__PURE__*/ b.createElement(Eh, {
+ }]] }, /*#__PURE__*/ x.createElement(Dh, {
...e,
ref: t
}));
-}), Th = /*#__PURE__*/ (0, b.createContext)(null), Eh = /*#__PURE__*/ (0, b.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, b.useContext)(Th), { isFocused: f, isFocusVisible: p, focusProps: m } = pc(), h = a || o, g = (0, b.useContext)(Ch), { hoverProps: _, isHovered: v } = bc({
+}), Eh = /*#__PURE__*/ (0, x.createContext)(null), Dh = /*#__PURE__*/ (0, x.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, x.useContext)(Eh), { isFocused: f, isFocusVisible: p, focusProps: m } = hc(), h = a || o, g = (0, x.useContext)(wh), { hoverProps: _, isHovered: v } = Sc({
...e,
isDisabled: h
- }), y = Hf({
+ }), y = Uf({
...e,
defaultClassName: u,
values: {
@@ -21046,9 +21128,9 @@ var bh = /*#__PURE__*/ (0, b.createContext)(null), xh = /*#__PURE__*/ Ir(functio
isRequired: d || !1,
state: g
}
- }), x = Yi(e, { global: !0 });
- return delete x.id, delete x.onClick, /*#__PURE__*/ b.createElement(Yf.label, {
- ...U(x, n, _, y),
+ }), b = U(e, { global: !0 });
+ return delete b.id, delete b.onClick, /*#__PURE__*/ x.createElement(Xf.label, {
+ ...H(b, n, _, y),
ref: t,
slot: e.slot || void 0,
"data-selected": i || void 0,
@@ -21060,22 +21142,22 @@ var bh = /*#__PURE__*/ (0, b.createContext)(null), xh = /*#__PURE__*/ Ir(functio
"data-readonly": o || void 0,
"data-invalid": c || void 0,
"data-required": d || void 0
- }, /*#__PURE__*/ b.createElement(Ro, { elementType: "span" }, /*#__PURE__*/ b.createElement("input", {
- ...U(r, m),
+ }, /*#__PURE__*/ x.createElement(Bo, { elementType: "span" }, /*#__PURE__*/ x.createElement("input", {
+ ...H(r, m),
ref: l
})), y.children);
-}), Dh = /*#__PURE__*/ (0, b.createContext)({}), Oh = /*#__PURE__*/ (0, b.createContext)(null), kh = /*#__PURE__*/ Ir(function(e, t) {
- [e, t] = Wf(e, t, Oh);
- let { validationBehavior: n } = Uf(hp) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, b.useRef)(null);
- [e, i] = Wf(e, i, Zf);
- let [a, o] = Gf(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, b.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = zo({
- ...Kf(e),
+}), Oh = /*#__PURE__*/ (0, x.createContext)({}), kh = /*#__PURE__*/ (0, x.createContext)(null), Ah = /*#__PURE__*/ Br(function(e, t) {
+ [e, t] = Gf(e, t, kh);
+ let { validationBehavior: n } = Wf(gp) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, x.useRef)(null);
+ [e, i] = Gf(e, i, Qf);
+ let [a, o] = Kf(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, x.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = Vo({
+ ...qf(e),
inputElementType: s,
label: o,
validationBehavior: r
- }, i), m = (0, b.useCallback)((e) => {
+ }, i), m = (0, x.useCallback)((e) => {
i.current = e, e && c(e instanceof HTMLTextAreaElement ? "textarea" : "input");
- }, [i]), h = Hf({
+ }, [i]), h = Uf({
...e,
values: {
isDisabled: e.isDisabled || !1,
@@ -21084,8 +21166,8 @@ var bh = /*#__PURE__*/ (0, b.createContext)(null), xh = /*#__PURE__*/ Ir(functio
isRequired: e.isRequired || !1
},
defaultClassName: "react-aria-TextField"
- }), g = Yi(e, { global: !0 });
- return delete g.id, /*#__PURE__*/ b.createElement(Yf.div, {
+ }), g = U(e, { global: !0 });
+ return delete g.id, /*#__PURE__*/ x.createElement(Xf.div, {
...g,
...h,
ref: t,
@@ -21094,121 +21176,63 @@ var bh = /*#__PURE__*/ (0, b.createContext)(null), xh = /*#__PURE__*/ Ir(functio
"data-invalid": p.isInvalid || void 0,
"data-readonly": e.isReadOnly || void 0,
"data-required": e.isRequired || void 0
- }, /*#__PURE__*/ b.createElement(Vf, { values: [
- [rp, {
+ }, /*#__PURE__*/ x.createElement(Hf, { values: [
+ [ip, {
...l,
ref: a
}],
- [wp, {
+ [Tp, {
...u,
ref: m
}],
- [Dh, {
+ [Oh, {
...u,
ref: m
}],
- [Sp, {
+ [Cp, {
role: "presentation",
isInvalid: p.isInvalid,
isDisabled: e.isDisabled || !1
}],
- [fp, { slots: {
+ [pp, { slots: {
description: d,
errorMessage: f
} }],
- [mp, p]
+ [hp, p]
] }, h.children));
-}), Ah = Kd({
- sm: {
- track: "h-4 w-7",
- trackRadius: {
- pill: "rounded-full",
- rectangle: "rounded-[3px]"
- },
- onShadow: "shadow-[inset_0_1px_0_0_rgb(255_255_255/0.25),inset_0_0_0_0.5px_var(--color-accent-500)]",
- thumb: "size-3",
- thumbRadius: {
- pill: "rounded-full",
- rectangle: "rounded-[1px]"
- },
- offset: "left-0.5 top-0.5",
- travel: "translate-x-3",
- chip: "size-[5px] border-[0.25px] shadow-[0_2px_2px_0_rgb(0_0_0/0.03)]",
- chipRadius: {
- pill: "rounded-full",
- rectangle: "rounded-[0.5px]"
- }
- },
- md: {
- track: "h-6 w-[42px]",
- trackRadius: {
- pill: "rounded-full",
- rectangle: "rounded-[4.5px]"
- },
- onShadow: "shadow-[inset_0_1.5px_0_0_rgb(255_255_255/0.25),inset_0_0_0_0.75px_var(--color-accent-500)]",
- thumb: "size-[18px]",
- thumbRadius: {
- pill: "rounded-full",
- rectangle: "rounded-[1.5px]"
- },
- offset: "left-[3px] top-[3px]",
- travel: "translate-x-[18px]",
- chip: "size-[7.5px] border-[0.375px] shadow-[0_3px_3px_0_rgb(0_0_0/0.03)]",
- chipRadius: {
- pill: "rounded-full",
- rectangle: "rounded-[0.75px]"
- }
- },
- lg: {
- track: "h-8 w-14",
- trackRadius: {
- pill: "rounded-full",
- rectangle: "rounded-md"
- },
- onShadow: "shadow-checkbox-selected",
- thumb: "size-6",
- thumbRadius: {
- pill: "rounded-full",
- rectangle: "rounded-xs"
- },
- offset: "left-1 top-1",
- travel: "translate-x-6",
- chip: "size-[10px] border-[0.5px] shadow-[0_4px_4px_0_rgb(0_0_0/0.03)]",
- chipRadius: {
- pill: "rounded-full",
- rectangle: "rounded-[1px]"
- }
- }
});
-function jh({ state: e, size: t = "md", shape: n = "pill" }) {
- let r = Ah[t];
- return /* @__PURE__ */ (0, x.jsx)("span", {
- "aria-hidden": !0,
- className: Gd("relative shrink-0 transition-colors duration-200 ease", r.track, r.trackRadius[n], e.isSelected ? Gd("bg-linear-to-b from-accent-500 to-accent-600", r.onShadow) : "bg-background-tertiary-default", e.isDisabled && "opacity-50", e.isFocusVisible && "ring-2 ring-border-focus-ring ring-offset-2"),
- children: /* @__PURE__ */ (0, x.jsx)("span", {
- className: Gd("absolute flex items-center justify-center", "bg-linear-to-b from-control-indicator-background from-[43.837%] to-control-indicator-background-subtle", "shadow-[0_3px_3px_0_rgb(0_0_0/0.03),0_0.75px_0_0_rgb(0_0_0/0.05)]", "transition-transform duration-200 ease", r.thumb, r.thumbRadius[n], r.offset, e.isSelected && r.travel),
- children: /* @__PURE__ */ (0, x.jsx)("span", { className: Gd("border-solid bg-linear-to-t from-[43.837%]", r.chip, r.chipRadius[n], e.isSelected ? "border-accent-600 from-switch-on-chip-start to-switch-on-chip-end" : "border-border-button-default/50 from-switch-off-chip-start to-switch-off-chip-end") })
- })
+//#endregion
+//#region src/react/boardui/components/application/settings/settings-rows.tsx
+function jh({ className: e, children: t }) {
+ return /* @__PURE__ */ (0, S.jsx)("div", {
+ className: Yd("flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3", e),
+ children: t
});
}
-function Mh({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {
- return /* @__PURE__ */ (0, x.jsx)(wh, {
- ref: i,
- ...a,
- className: (t) => Gd("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, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(jh, {
- state: e,
- size: n,
- shape: r
- }), t != null && t !== !1 && /* @__PURE__ */ (0, x.jsx)("span", {
- className: "text-body-medium text-text-primary",
- children: t
- })] })
+function Mh({ className: e, children: t }) {
+ return /* @__PURE__ */ (0, S.jsx)("p", {
+ className: Yd("w-full px-3 text-body-2-medium text-text-secondary", e),
+ children: t
+ });
+}
+function Nh({ label: e, description: t, children: n }) {
+ return /* @__PURE__ */ (0, S.jsxs)("div", {
+ className: Yd("flex min-h-[52px] w-full items-center justify-between gap-4 py-2.5 pr-2.5", "border-b border-separator-border last:border-b-0"),
+ children: [/* @__PURE__ */ (0, S.jsxs)("div", {
+ className: "flex min-w-0 flex-col",
+ children: [/* @__PURE__ */ (0, S.jsx)("p", {
+ className: "text-body-regular text-text-primary",
+ children: e
+ }), t && /* @__PURE__ */ (0, S.jsx)("p", {
+ className: "text-body-2-regular text-text-secondary",
+ children: t
+ })]
+ }), n]
});
}
//#endregion
//#region src/react/boardui/components/base/buttons/link-button.tsx
-var Nh = Kd({
+var Ph = Xd({
base: [
"inline-flex items-center justify-center gap-1 whitespace-nowrap",
"font-sans select-none cursor-pointer rounded-sm",
@@ -21232,21 +21256,21 @@ var Nh = Kd({
secondary: ["text-text-secondary active:text-text-primary", "disabled:text-text-tertiary aria-disabled:text-text-tertiary"].join(" ")
}
});
-function Ph({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {
- let c = Gd(Nh.base, Nh.size[t], Nh.variant[e], a), l = /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [
- n ? /* @__PURE__ */ (0, x.jsx)(n, {
- className: Nh.icon[t],
+function Fh({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {
+ let c = Yd(Ph.base, Ph.size[t], Ph.variant[e], a), l = /* @__PURE__ */ (0, S.jsxs)(S.Fragment, { children: [
+ n ? /* @__PURE__ */ (0, S.jsx)(n, {
+ className: Ph.icon[t],
"aria-hidden": !0
}) : null,
- i != null && /* @__PURE__ */ (0, x.jsx)("span", { children: i }),
- r ? /* @__PURE__ */ (0, x.jsx)(r, {
- className: Nh.icon[t],
+ i != null && /* @__PURE__ */ (0, S.jsx)("span", { children: i }),
+ r ? /* @__PURE__ */ (0, S.jsx)(r, {
+ className: Ph.icon[t],
"aria-hidden": !0
}) : null
] });
if (s.href !== void 0) {
let { ref: e, href: t, ...n } = s;
- return /* @__PURE__ */ (0, x.jsx)("a", {
+ return /* @__PURE__ */ (0, S.jsx)("a", {
ref: e,
href: o ? void 0 : t,
"aria-disabled": o || void 0,
@@ -21256,7 +21280,7 @@ function Ph({ variant: e = "primary", size: t = "medium", leadingIcon: n, traili
});
}
let { ref: u, type: d = "button", ...f } = s;
- return /* @__PURE__ */ (0, x.jsx)("button", {
+ return /* @__PURE__ */ (0, S.jsx)("button", {
ref: u,
type: d,
disabled: o,
@@ -21266,215 +21290,818 @@ function Ph({ variant: e = "primary", size: t = "medium", leadingIcon: n, traili
});
}
//#endregion
+//#region src/react/boardui/components/base/input/label.tsx
+function Ih({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {
+ return /* @__PURE__ */ (0, S.jsxs)(ap, {
+ "data-label": "true",
+ ...a,
+ className: Yd("flex cursor-default items-center gap-0.5", "text-body-medium text-text-primary", r),
+ children: [
+ i,
+ e && /* @__PURE__ */ (0, S.jsx)("span", {
+ "aria-hidden": "true",
+ className: "text-body-medium text-text-error-primary",
+ children: "*"
+ }),
+ n && /* @__PURE__ */ (0, S.jsx)(_u, {
+ className: "size-4 shrink-0 text-foreground-icon-quaternary",
+ "aria-hidden": !0
+ })
+ ]
+ });
+}
+//#endregion
+//#region src/react/boardui/components/base/input/hint-text.tsx
+function Lh({ isInvalid: e = !1, className: t, ...n }) {
+ return /* @__PURE__ */ (0, S.jsx)(mp, {
+ slot: e ? "errorMessage" : "description",
+ ...n,
+ className: Yd("pt-px text-caption-1-medium text-text-secondary", e && "text-text-error-primary", t)
+ });
+}
+//#endregion
+//#region src/react/boardui/components/base/input/input.tsx
+var Rh = (0, x.createContext)({});
+function zh({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {
+ return /* @__PURE__ */ (0, S.jsx)(Rh.Provider, {
+ value: {
+ size: e,
+ fieldClassName: t,
+ inputClassName: n
+ },
+ children: /* @__PURE__ */ (0, S.jsx)(Ah, {
+ ...a,
+ "data-input-size": e,
+ className: Yd("group flex h-max w-full flex-col items-start gap-1", r),
+ children: i
+ })
+ });
+}
+zh.displayName = "TextField";
+var Bh = Xd({
+ field: [
+ "relative flex w-full items-center",
+ "rounded-2lg",
+ "bg-background-tertiary-default text-foreground-icon-tertiary",
+ "ring-2 ring-inset ring-transparent",
+ "transition-[background-color,box-shadow,color] duration-[var(--input-transition-ms)] ease"
+ ].join(" "),
+ fieldSize: {
+ medium: "p-2",
+ small: "h-8 px-1.5 py-2"
+ },
+ fieldWithAddonSize: {
+ medium: "h-9 pl-1 pr-2 py-2",
+ small: "h-8 pl-1 pr-1.5 py-2"
+ },
+ content: "flex w-full items-center gap-2 min-w-0",
+ leftSection: "flex flex-1 items-center gap-0.5 min-w-0",
+ input: [
+ "min-w-0 flex-1 bg-transparent border-0 outline-none p-0 m-0",
+ "font-sans text-body-regular text-text-primary pl-1",
+ "placeholder:text-text-tertiary",
+ "focus:placeholder:text-text-primary",
+ "disabled:text-input-disabled-text disabled:placeholder:text-input-disabled-text",
+ "disabled:cursor-not-allowed",
+ "aria-invalid:placeholder:text-text-error-placeholder"
+ ].join(" "),
+ icon: "size-5 shrink-0"
+});
+function Vh({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {
+ let l = (0, x.useContext)(Rh), u = e ?? l.size ?? "medium", d = r != null;
+ return /* @__PURE__ */ (0, S.jsx)(wp, {
+ ref: s,
+ className: ({ isFocusWithin: e, isHovered: t, isDisabled: n, isInvalid: r }) => Yd(Bh.field, d ? Bh.fieldWithAddonSize[u] : Bh.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, S.jsxs)("div", {
+ className: Bh.content,
+ children: [/* @__PURE__ */ (0, S.jsxs)("div", {
+ className: Bh.leftSection,
+ children: [d ? r : t ? /* @__PURE__ */ (0, S.jsx)(t, {
+ className: Bh.icon,
+ "aria-hidden": !0
+ }) : null, /* @__PURE__ */ (0, S.jsx)(Dp, {
+ ref: o,
+ ...c,
+ className: Yd(Bh.input, l.inputClassName, a)
+ })]
+ }), n ? /* @__PURE__ */ (0, S.jsx)(n, {
+ className: Bh.icon,
+ "aria-hidden": !0
+ }) : null]
+ })
+ });
+}
+Vh.displayName = "InputBase";
+function Hh({ 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, S.jsx)(zh, {
+ ...d,
+ className: u,
+ "aria-label": d["aria-label"] ?? (!e && typeof r == "string" ? r : void 0),
+ children: ({ isRequired: u, isInvalid: d }) => /* @__PURE__ */ (0, S.jsxs)(S.Fragment, { children: [
+ e && /* @__PURE__ */ (0, S.jsx)(Ih, {
+ isRequired: u,
+ isInvalid: d,
+ tooltip: n,
+ children: e
+ }),
+ /* @__PURE__ */ (0, S.jsx)(Vh, {
+ ref: c,
+ groupRef: l,
+ placeholder: r,
+ leadingIcon: i,
+ trailingIcon: a,
+ leadingAddon: o,
+ fieldClassName: s
+ }),
+ t && /* @__PURE__ */ (0, S.jsx)(Lh, {
+ isInvalid: d,
+ children: t
+ })
+ ] })
+ });
+}
+Hh.displayName = "Input";
+//#endregion
+//#region src/react/boardui/components/base/dropdown/menu-styles.ts
+var Uh = [
+ "max-w-[calc(100vw-32px)] overflow-y-auto",
+ "rounded-2xl border border-border-button-default bg-background-primary-default p-2.5 shadow-dropdown",
+ "transition duration-150 ease-out",
+ "data-[entering]:opacity-0 data-[entering]:scale-95 data-[entering]:blur-[2px]",
+ "data-[exiting]:opacity-0 data-[exiting]:scale-95 data-[exiting]:blur-[2px]",
+ "data-[placement=bottom]:origin-top-left data-[placement=top]:origin-bottom-left",
+ "data-[placement=left]:origin-right data-[placement=right]:origin-left"
+].join(" "), Wh = "w-[266px]", Gh = "flex w-full flex-col gap-1 outline-none", Kh = ["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 qh(e) {
+ return /* @__PURE__ */ (0, S.jsx)("svg", {
+ viewBox: "0 0 16 16",
+ fill: "none",
+ "aria-hidden": !0,
+ ...e,
+ children: /* @__PURE__ */ (0, S.jsx)("path", {
+ d: "M4 7L7.29289 10.2929C7.68342 10.6834 8.31658 10.6834 8.70711 10.2929L12 7",
+ stroke: "currentColor",
+ strokeWidth: "2",
+ strokeLinecap: "round"
+ })
+ });
+}
+//#endregion
+//#region src/react/boardui/utils/use-dismiss-on-outside-press.ts
+function Jh(e, t, n) {
+ (0, x.useEffect)(() => {
+ if (!e) return;
+ let r = (e) => {
+ let r = e.target;
+ n.some((e) => e.current?.contains(r)) || t();
+ };
+ return document.addEventListener("pointerdown", r, !0), () => document.removeEventListener("pointerdown", r, !0);
+ }, [
+ e,
+ t,
+ n
+ ]);
+}
+function Yh(e, t) {
+ let n = (0, x.useRef)(!1);
+ return (0, x.useEffect)(() => {
+ if (!e) return;
+ let r = (e) => {
+ t.current?.contains(e.target) && (n.current = !0, setTimeout(() => {
+ n.current = !1;
+ }, 400));
+ };
+ return document.addEventListener("pointerdown", r, !0), () => document.removeEventListener("pointerdown", r, !0);
+ }, [e, t]), (e) => e && n.current ? (n.current = !1, !1) : !0;
+}
+//#endregion
+//#region src/react/boardui/components/base/select/select.tsx
+var Xh = (0, x.createContext)("md");
+function Zh({ className: e, triggerClassName: t, popoverClassName: n, size: r = "md", children: i, items: a, renderValue: o, ref: s, ...c }) {
+ let l = (0, x.useRef)(null), u = (0, x.useRef)(null), [d, f] = (0, x.useState)(!1);
+ Jh(d, () => f(!1), [l, u]);
+ let p = Yh(d, l);
+ return /* @__PURE__ */ (0, S.jsx)(vh, {
+ ref: s,
+ ...c,
+ isOpen: d,
+ onOpenChange: (e) => p(e) && f(e),
+ className: Yd("group flex flex-col", e),
+ children: ({ isOpen: e }) => /* @__PURE__ */ (0, S.jsxs)(S.Fragment, { children: [/* @__PURE__ */ (0, S.jsxs)(cp, {
+ ref: l,
+ className: Yd("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, S.jsx)(Sh, {
+ className: Yd("flex min-w-0 items-center truncate", r === "sm" ? "gap-1" : "gap-[5px]"),
+ children: o
+ }), /* @__PURE__ */ (0, S.jsx)(qh, { className: Yd("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
+ }), /* @__PURE__ */ (0, S.jsx)(Qm, {
+ ref: u,
+ isNonModal: !0,
+ offset: 4,
+ className: Yd(Wh, Uh, "p-2", n),
+ children: /* @__PURE__ */ (0, S.jsx)(Lm, {
+ items: a,
+ className: Yd(Gh, "max-h-[240px] overflow-auto"),
+ children: /* @__PURE__ */ (0, S.jsx)(Xh.Provider, {
+ value: r,
+ children: i
+ })
+ })
+ })] })
+ });
+}
+function Qh({ className: e, children: t, ...n }) {
+ let r = (0, x.useContext)(Xh);
+ return /* @__PURE__ */ (0, S.jsx)(Vm, {
+ ...n,
+ className: (t) => Yd(Kh, 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/section.tsx
-function Fh({ title: e, id: t, onSubmit: n, children: r }) {
- let i = /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(zf, { children: e }), /* @__PURE__ */ (0, x.jsx)(Rf, { children: r })] });
- return n ? /* @__PURE__ */ (0, x.jsx)("form", {
+function $h({ title: e, id: t, aside: n, onSubmit: r, children: i }) {
+ let a = /* @__PURE__ */ (0, S.jsxs)(S.Fragment, { children: [n ? /* @__PURE__ */ (0, S.jsxs)("div", {
+ className: "flex w-full flex-wrap items-center justify-between gap-2",
+ children: [/* @__PURE__ */ (0, S.jsx)("div", {
+ className: "min-w-0 flex-1",
+ children: /* @__PURE__ */ (0, S.jsx)(Mh, { children: e })
+ }), n]
+ }) : /* @__PURE__ */ (0, S.jsx)(Mh, { children: e }), /* @__PURE__ */ (0, S.jsx)(jh, { children: i })] });
+ return r ? /* @__PURE__ */ (0, S.jsx)("form", {
id: t,
"aria-label": e,
noValidate: !0,
- onSubmit: n,
+ onSubmit: r,
className: "flex w-full flex-col gap-2",
- children: i
- }) : /* @__PURE__ */ (0, x.jsx)("section", {
+ children: a
+ }) : /* @__PURE__ */ (0, S.jsx)("section", {
id: t,
"aria-label": e,
className: "flex w-full flex-col gap-2",
- children: i
+ children: a
});
}
-function Ih({ children: e }) {
- return /* @__PURE__ */ (0, x.jsx)("div", {
+function eg({ children: e }) {
+ return /* @__PURE__ */ (0, S.jsx)("div", {
className: "flex flex-col",
children: e
});
}
-function Lh({ divided: e = !1, children: t }) {
- return e ? /* @__PURE__ */ (0, x.jsx)("div", {
+function tg({ divided: e = !1, children: t }) {
+ return e ? /* @__PURE__ */ (0, S.jsx)("div", {
className: "flex flex-col gap-4 border-t border-separator-border py-4 pr-3",
children: t
- }) : /* @__PURE__ */ (0, x.jsx)("div", {
+ }) : /* @__PURE__ */ (0, S.jsx)("div", {
className: "flex flex-col gap-4 py-4 pr-3",
children: t
});
}
-function Rh({ status: e, children: t }) {
- return /* @__PURE__ */ (0, x.jsxs)("div", {
+function ng({ status: e, children: t }) {
+ return /* @__PURE__ */ (0, S.jsxs)("div", {
className: "flex flex-wrap items-center justify-end gap-3 border-t border-separator-border py-3 pr-3",
- children: [e ? /* @__PURE__ */ (0, x.jsx)("div", {
+ children: [e ? /* @__PURE__ */ (0, S.jsx)("div", {
className: "mr-auto min-w-0 text-body-2-regular text-text-secondary",
children: e
}) : null, t]
});
}
-function zh({ role: e, children: t }) {
- return /* @__PURE__ */ (0, x.jsx)("p", {
+function rg({ role: e, children: t }) {
+ return /* @__PURE__ */ (0, S.jsx)("p", {
role: e,
className: "text-body-2-regular text-text-secondary",
children: t
});
}
-function Bh({ children: e }) {
- return /* @__PURE__ */ (0, x.jsx)("p", {
+function ig({ children: e }) {
+ return /* @__PURE__ */ (0, S.jsx)("p", {
role: "alert",
className: "text-body-2-regular text-text-error-primary",
children: e
});
}
-function Vh({ children: e }) {
- return /* @__PURE__ */ (0, x.jsx)("p", {
+function ag({ children: e }) {
+ return /* @__PURE__ */ (0, S.jsx)("p", {
className: "text-body-medium text-text-primary",
children: e
});
}
-function Hh({ href: e, children: t }) {
- return /* @__PURE__ */ (0, x.jsx)(Ph, {
+function og({ href: e, children: t }) {
+ return /* @__PURE__ */ (0, S.jsx)(Fh, {
href: e,
target: "_blank",
- rel: "noreferrer",
+ rel: "noopener noreferrer",
size: "small",
- trailingIcon: du,
+ trailingIcon: hu,
children: t
});
}
-function Uh({ children: e }) {
- return /* @__PURE__ */ (0, x.jsx)("dl", {
+function sg({ children: e }) {
+ return /* @__PURE__ */ (0, S.jsx)("dl", {
className: "flex flex-col",
children: e
});
}
-function Wh({ term: e, children: t }) {
- return /* @__PURE__ */ (0, x.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, x.jsx)("dt", {
- className: "flex shrink-0 items-center gap-2 text-body-regular text-text-secondary",
- children: e
- }), /* @__PURE__ */ (0, x.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",
+function cg({ term: e, children: t }) {
+ return /* @__PURE__ */ (0, S.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, S.jsx)("dt", {
+ className: "flex shrink-0 items-center gap-2 text-body-regular text-text-secondary",
+ children: e
+ }), /* @__PURE__ */ (0, S.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 lg({ summary: e, children: t }) {
+ let n = (0, x.useId)(), r = (0, x.useRef)(null), i = (0, x.useRef)(null), [a, o] = (0, x.useState)(!1);
+ return /* @__PURE__ */ (0, S.jsxs)("details", {
+ ref: r,
+ children: [/* @__PURE__ */ (0, S.jsxs)("summary", {
+ "aria-expanded": a,
+ "aria-controls": n,
+ onClick: (e) => {
+ e.preventDefault(), !(!r.current || !i.current) && (s(r.current, i.current, !a), o(!a));
+ },
+ 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, S.jsx)(pu, {
+ "aria-hidden": !0,
+ className: a ? "size-4 shrink-0 rotate-90 transition-transform" : "size-4 shrink-0 transition-transform"
+ }), e]
+ }), /* @__PURE__ */ (0, S.jsx)("div", {
+ ref: i,
+ id: n,
+ inert: !a,
+ children: /* @__PURE__ */ (0, S.jsx)("div", {
+ className: "flex flex-col gap-2 pt-3",
+ children: t
+ })
+ })]
+ });
+}
+function ug({ name: e }) {
+ return /* @__PURE__ */ (0, S.jsx)("svg", {
+ "aria-hidden": !0,
+ viewBox: "0 0 24 24",
+ fill: "none",
+ className: "size-4 shrink-0 stroke-current stroke-2",
+ children: /* @__PURE__ */ (0, S.jsx)("use", { href: `#i-${e}` })
+ });
+}
+function dg({ mark: e }) {
+ return e.startsWith("data:image/png;base64,") ? /* @__PURE__ */ (0, S.jsx)("img", {
+ src: e,
+ alt: "",
+ width: 16,
+ height: 16,
+ className: "size-4 shrink-0"
+ }) : /* @__PURE__ */ (0, S.jsx)(ug, { name: e });
+}
+//#endregion
+//#region src/react/settings/use-action.ts
+function fg(e = "") {
+ let t = (0, x.useRef)(null), [n, r] = (0, x.useState)(""), [i, a] = (0, x.useState)(e);
+ (0, x.useEffect)(() => () => t.current?.abort(), []);
+ async function o(e, n, i, o) {
+ if (t.current) return;
+ let s = new AbortController();
+ t.current = s, r(e), a("");
+ try {
+ let e = await n(s.signal);
+ s.signal.aborted || i(e);
+ } catch (e) {
+ if (s.signal.aborted) return;
+ o ? o(e) : a(tf(e));
+ } finally {
+ t.current === s && (t.current = null), s.signal.aborted || r("");
+ }
+ }
+ return {
+ run: o,
+ busy: n,
+ error: i,
+ setError: a
+ };
+}
+function pg(e) {
+ return e ? {
+ "aria-busy": !0,
+ "aria-disabled": !0
+ } : {};
+}
+//#endregion
+//#region src/react/scraping/scraping.ts
+var mg = "/api/scraping", hg = "/api/scraping/settings", gg = "/api/scraping/check", _g = "/api/scraping/cover", vg = ["scraping"], yg = ["scraping", "cover"], bg = 2e3, xg = (e) => nf(mg, e), Sg = (e) => nf(_g, e);
+async function Cg(e) {
+ await Promise.all([uf.fetchQuery({
+ queryKey: vg,
+ queryFn: () => xg(e)
+ }), uf.fetchQuery({
+ queryKey: yg,
+ queryFn: () => Sg(e)
+ })]);
+}
+function wg(e, t) {
+ return `${t}${e.label === "来源页面" ? "" : " 高清图片"}:${e.ok ? "可连接" : "不能连接"}` + (e.width ? ` · ${e.width} × ${e.height}` : "") + (e.message ? `。${e.message}` : "");
+}
+//#endregion
+//#region src/react/scraping/scraping-page.tsx
+var Tg = [["peach", "Peach 代理"], ["direct", "直接连接"]], Eg = [["paste", "粘贴 Cookie"], ["file", "导入文件"]];
+function Dg({ source: e }) {
+ return /* @__PURE__ */ (0, S.jsx)("img", {
+ src: i({ source: e }),
+ alt: "",
+ width: 16,
+ height: 16,
+ loading: "lazy",
+ onError: (e) => e.currentTarget.remove(),
+ className: "size-4 shrink-0 rounded-sm object-contain"
+ });
+}
+function Og({ source: e, toast: t }) {
+ let [n, r] = (0, x.useState)(e.network), [i, a] = (0, x.useState)(""), [o, s] = (0, x.useState)(""), [c, l] = (0, x.useState)(Eg[0][0]), [u, d] = (0, x.useState)(""), [f, p] = (0, x.useState)(""), m = (0, x.useRef)(null);
+ function h() {
+ a(""), s(""), d(""), p(""), m.current && (m.current.value = "");
+ }
+ let g = lt({
+ mutationFn: (t) => rf(hg, {
+ source: e.source,
+ network: n,
+ cookie: i,
+ cookies_text: o,
+ revoke: t
+ }),
+ onSuccess: (e, n) => {
+ uf.setQueryData(vg, (t) => t && {
+ ...t,
+ sources: t.sources.map((t) => t.source === e.saved.source ? e.saved : t)
+ }), h(), t(n ? "Cookie 已撤销" : "来源设置已保存");
+ }
+ }), _ = lt({ mutationFn: () => rf(gg, { source: e.source }) }), v = g.isPending || _.isPending, y = (e) => {
+ e.preventDefault(), !v && (_.reset(), g.mutate(!1));
+ }, b = () => {
+ v || (_.reset(), g.mutate(!0));
+ }, C = () => {
+ v || (g.reset(), _.mutate());
+ };
+ async function w(e) {
+ let t = e.currentTarget, n = t.files?.[0];
+ if (s(""), p(""), !n) {
+ d("");
+ return;
+ }
+ if (n.size > 262144) {
+ t.value = "", d(""), p("Cookie 文本超过 256 KiB");
+ return;
+ }
+ try {
+ let e = await n.text();
+ s(e), d(n.name);
+ } catch {
+ p("Cookie 文件未读取,请重新选择");
+ }
+ }
+ let T = f || (g.error ? tf(g.error) : "") || (_.error ? tf(_.error) : ""), E = _.data?.results ?? [], D = n === "peach" || e.accepts_cookie || !!T || E.length > 0;
+ return /* @__PURE__ */ (0, S.jsxs)($h, {
+ title: e.label,
+ onSubmit: y,
+ aside: /* @__PURE__ */ (0, S.jsxs)("span", {
+ className: "flex min-w-0 items-center gap-1",
+ children: [/* @__PURE__ */ (0, S.jsx)(Dg, { source: e.source }), /* @__PURE__ */ (0, S.jsx)(og, {
+ href: e.login,
+ children: e.login
+ })]
+ }),
+ children: [
+ /* @__PURE__ */ (0, S.jsx)(eg, { children: /* @__PURE__ */ (0, S.jsx)(Nh, {
+ label: "连接方式",
+ children: /* @__PURE__ */ (0, S.jsx)(Zh, {
+ "aria-label": "连接方式",
+ selectedKey: n,
+ onSelectionChange: (e) => {
+ e !== null && r(String(e));
+ },
+ children: Tg.map(([e, t]) => /* @__PURE__ */ (0, S.jsx)(Qh, {
+ id: e,
+ children: t
+ }, e))
+ })
+ }) }),
+ D ? /* @__PURE__ */ (0, S.jsxs)(tg, {
+ divided: !0,
+ children: [
+ n === "peach" ? /* @__PURE__ */ (0, S.jsx)("span", {
+ className: "self-start",
+ children: /* @__PURE__ */ (0, S.jsx)(Fh, {
+ href: "/configuration#peachProxy",
+ size: "small",
+ trailingIcon: fu,
+ children: "配置 Peach 代理"
+ })
+ }) : null,
+ e.accepts_cookie ? /* @__PURE__ */ (0, S.jsxs)(S.Fragment, { children: [
+ /* @__PURE__ */ (0, S.jsx)("p", {
+ className: "text-body-2-regular text-text-secondary",
+ children: e.cookie_saved ? "Cookie 已保存,登录是否有效请在抓取时确认。" : "需要登录时,任选一种方式提供 Cookie。"
+ }),
+ /* @__PURE__ */ (0, S.jsx)(lh, {
+ "aria-label": "提供 Cookie 的方式(二选一)",
+ value: c,
+ onChange: (e) => {
+ l(e), h();
+ },
+ className: "flex flex-wrap gap-1",
+ children: Eg.map(([e, t]) => /* @__PURE__ */ (0, S.jsx)(uh, {
+ value: e,
+ className: "flex h-8 cursor-pointer items-center rounded-lg px-3 text-body-2-medium text-text-secondary outline-none hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:bg-background-tertiary-default data-selected:text-text-primary",
+ children: t
+ }, e))
+ }),
+ c === "paste" ? /* @__PURE__ */ (0, S.jsx)(Hh, {
+ type: "password",
+ label: "Cookie",
+ autoComplete: "off",
+ value: i,
+ onChange: a
+ }) : /* @__PURE__ */ (0, S.jsxs)("div", {
+ className: "flex flex-col gap-2",
+ children: [
+ /* @__PURE__ */ (0, S.jsx)(ag, { children: "Netscape Cookie 文件(.txt)" }),
+ /* @__PURE__ */ (0, S.jsxs)("div", {
+ className: "flex flex-wrap items-center gap-3",
+ children: [/* @__PURE__ */ (0, S.jsx)(Pf, {
+ variant: "secondary",
+ onClick: () => m.current?.click(),
+ children: "选择文件"
+ }), /* @__PURE__ */ (0, S.jsx)("span", {
+ className: "min-w-0 text-body-2-regular break-all text-text-secondary",
+ children: u || "未选择文件"
+ })]
+ }),
+ /* @__PURE__ */ (0, S.jsx)("input", {
+ ref: m,
+ type: "file",
+ accept: ".txt",
+ tabIndex: -1,
+ "aria-hidden": !0,
+ className: "hidden",
+ onChange: (e) => {
+ w(e);
+ }
+ })
+ ]
+ })
+ ] }) : null,
+ T ? /* @__PURE__ */ (0, S.jsx)(ig, { children: T }) : null,
+ E.map((t) => /* @__PURE__ */ (0, S.jsx)(sf, {
+ tone: t.ok ? "success" : "error",
+ children: wg(t, e.label)
+ }, t.label))
+ ]
+ }) : null,
+ /* @__PURE__ */ (0, S.jsxs)(ng, { children: [
+ e.accepts_cookie && e.cookie_saved ? /* @__PURE__ */ (0, S.jsx)(Pf, {
+ variant: "secondary",
+ onClick: b,
+ ...pg(v),
+ children: "撤销 Cookie"
+ }) : null,
+ /* @__PURE__ */ (0, S.jsx)(Pf, {
+ variant: "secondary",
+ onClick: C,
+ ...pg(v),
+ children: "检查连接"
+ }),
+ /* @__PURE__ */ (0, S.jsx)(Pf, {
+ type: "submit",
+ ...pg(v),
+ children: "保存"
+ })
+ ] })
+ ]
+ });
+}
+function kg({ toast: e }) {
+ let [t, n] = (0, x.useState)(""), [r, i] = (0, x.useState)(!1), [a, o] = (0, x.useState)(null), s = ct({
+ queryKey: yg,
+ queryFn: ({ signal: e }) => Sg(e),
+ refetchInterval: (e) => e.state.data?.status === "running" && bg
+ }), c = lt({
+ mutationFn: () => rf(_g, { code: t }),
+ onSuccess: () => {
+ i(!0), o(null), uf.invalidateQueries({ queryKey: yg });
+ }
+ }), l = (s.data?.status ?? "idle") === "running";
+ (0, x.useEffect)(() => {
+ let t = s.data;
+ if (t) {
+ if (t.status === "running") {
+ r || i(!0);
+ return;
+ }
+ r && (i(!1), o(t), t.status === "complete" && e(t.result || "封面采集完成"));
+ }
+ }, [
+ s.data,
+ r,
+ e
+ ]);
+ let u = (e) => {
+ e.preventDefault(), !(l || c.isPending || !t.trim()) && c.mutate();
+ }, d = c.error ? tf(c.error) : a?.status === "failed" ? a.error || "采集未取得" : "";
+ return /* @__PURE__ */ (0, S.jsx)($h, {
+ title: "高清封面",
+ onSubmit: u,
+ children: /* @__PURE__ */ (0, S.jsxs)(tg, { children: [
+ /* @__PURE__ */ (0, S.jsxs)("div", {
+ className: "flex flex-wrap items-end gap-2",
+ children: [/* @__PURE__ */ (0, S.jsx)("div", {
+ className: "min-w-0 flex-1",
+ children: /* @__PURE__ */ (0, S.jsx)(Hh, {
+ "aria-label": "馆藏番号",
+ isRequired: !0,
+ isDisabled: l,
+ value: t,
+ onChange: n,
+ placeholder: "输入馆藏番号,如 ABW-232"
+ })
+ }), /* @__PURE__ */ (0, S.jsx)(Pf, {
+ type: "submit",
+ disabled: !t.trim(),
+ ...pg(l || c.isPending),
+ children: "抓取封面"
+ })]
+ }),
+ l ? /* @__PURE__ */ (0, S.jsx)(of, { label: "正在抓取封面" }) : null,
+ d ? /* @__PURE__ */ (0, S.jsx)(sf, {
+ tone: "error",
+ children: d
+ }) : null,
+ a?.status === "complete" ? /* @__PURE__ */ (0, S.jsx)(sf, {
+ tone: "success",
+ children: a.result || "封面采集完成"
+ }) : null
+ ] })
+ });
+}
+function Ag({ toast: e }) {
+ let t = ct({
+ queryKey: vg,
+ queryFn: ({ signal: e }) => xg(e)
+ }), n = t.data;
+ return n ? /* @__PURE__ */ (0, S.jsxs)(cf, { children: [
+ /* @__PURE__ */ (0, S.jsx)("p", {
+ className: "text-body-2-regular text-text-secondary",
+ children: "高清图片可能需要代理才能下载,请先检查连接。"
+ }),
+ /* @__PURE__ */ (0, S.jsx)(kg, { toast: e }),
+ (n.sources || []).map((t) => /* @__PURE__ */ (0, S.jsx)(Og, {
+ source: t,
+ toast: e
+ }, t.source))
+ ] }) : /* @__PURE__ */ (0, S.jsx)(cf, { children: /* @__PURE__ */ (0, S.jsx)(sf, {
+ tone: "error",
+ title: "读取失败",
+ children: t.error ? tf(t.error) : "读取采集来源失败"
+ }) });
+}
+//#endregion
+//#region src/react/boardui/components/base/switch/switch.tsx
+var jg = Xd({
+ sm: {
+ track: "h-4 w-7",
+ trackRadius: {
+ pill: "rounded-full",
+ rectangle: "rounded-[3px]"
+ },
+ onShadow: "shadow-[inset_0_1px_0_0_rgb(255_255_255/0.25),inset_0_0_0_0.5px_var(--color-accent-500)]",
+ thumb: "size-3",
+ thumbRadius: {
+ pill: "rounded-full",
+ rectangle: "rounded-[1px]"
+ },
+ offset: "left-0.5 top-0.5",
+ travel: "translate-x-3",
+ chip: "size-[5px] border-[0.25px] shadow-[0_2px_2px_0_rgb(0_0_0/0.03)]",
+ chipRadius: {
+ pill: "rounded-full",
+ rectangle: "rounded-[0.5px]"
+ }
+ },
+ md: {
+ track: "h-6 w-[42px]",
+ trackRadius: {
+ pill: "rounded-full",
+ rectangle: "rounded-[4.5px]"
+ },
+ onShadow: "shadow-[inset_0_1.5px_0_0_rgb(255_255_255/0.25),inset_0_0_0_0.75px_var(--color-accent-500)]",
+ thumb: "size-[18px]",
+ thumbRadius: {
+ pill: "rounded-full",
+ rectangle: "rounded-[1.5px]"
+ },
+ offset: "left-[3px] top-[3px]",
+ travel: "translate-x-[18px]",
+ chip: "size-[7.5px] border-[0.375px] shadow-[0_3px_3px_0_rgb(0_0_0/0.03)]",
+ chipRadius: {
+ pill: "rounded-full",
+ rectangle: "rounded-[0.75px]"
+ }
+ },
+ lg: {
+ track: "h-8 w-14",
+ trackRadius: {
+ pill: "rounded-full",
+ rectangle: "rounded-md"
+ },
+ onShadow: "shadow-checkbox-selected",
+ thumb: "size-6",
+ thumbRadius: {
+ pill: "rounded-full",
+ rectangle: "rounded-xs"
+ },
+ offset: "left-1 top-1",
+ travel: "translate-x-6",
+ chip: "size-[10px] border-[0.5px] shadow-[0_4px_4px_0_rgb(0_0_0/0.03)]",
+ chipRadius: {
+ pill: "rounded-full",
+ rectangle: "rounded-[1px]"
+ }
+ }
+});
+function Mg({ state: e, size: t = "md", shape: n = "pill" }) {
+ let r = jg[t];
+ return /* @__PURE__ */ (0, S.jsx)("span", {
+ "aria-hidden": !0,
+ className: Yd("relative shrink-0 transition-colors duration-200 ease", r.track, r.trackRadius[n], e.isSelected ? Yd("bg-linear-to-b from-accent-500 to-accent-600", r.onShadow) : "bg-background-tertiary-default", e.isDisabled && "opacity-50", e.isFocusVisible && "ring-2 ring-border-focus-ring ring-offset-2"),
+ children: /* @__PURE__ */ (0, S.jsx)("span", {
+ className: Yd("absolute flex items-center justify-center", "bg-linear-to-b from-control-indicator-background from-[43.837%] to-control-indicator-background-subtle", "shadow-[0_3px_3px_0_rgb(0_0_0/0.03),0_0.75px_0_0_rgb(0_0_0/0.05)]", "transition-transform duration-200 ease", r.thumb, r.thumbRadius[n], r.offset, e.isSelected && r.travel),
+ children: /* @__PURE__ */ (0, S.jsx)("span", { className: Yd("border-solid bg-linear-to-t from-[43.837%]", r.chip, r.chipRadius[n], e.isSelected ? "border-accent-600 from-switch-on-chip-start to-switch-on-chip-end" : "border-border-button-default/50 from-switch-off-chip-start to-switch-off-chip-end") })
+ })
+ });
+}
+function Ng({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {
+ return /* @__PURE__ */ (0, S.jsx)(Th, {
+ ref: i,
+ ...a,
+ className: (t) => Yd("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, S.jsxs)(S.Fragment, { children: [/* @__PURE__ */ (0, S.jsx)(Mg, {
+ state: e,
+ size: n,
+ shape: r
+ }), t != null && t !== !1 && /* @__PURE__ */ (0, S.jsx)("span", {
+ className: "text-body-medium text-text-primary",
children: t
- })]
- });
-}
-function Gh({ summary: e, children: t }) {
- let n = (0, b.useId)(), r = (0, b.useRef)(null), i = (0, b.useRef)(null), [a, s] = (0, b.useState)(!1);
- return /* @__PURE__ */ (0, x.jsxs)("details", {
- ref: r,
- children: [/* @__PURE__ */ (0, x.jsxs)("summary", {
- "aria-expanded": a,
- "aria-controls": n,
- onClick: (e) => {
- e.preventDefault(), !(!r.current || !i.current) && (o(r.current, i.current, !a), s(!a));
- },
- 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, x.jsx)(lu, {
- "aria-hidden": !0,
- className: a ? "size-4 shrink-0 rotate-90 transition-transform" : "size-4 shrink-0 transition-transform"
- }), e]
- }), /* @__PURE__ */ (0, x.jsx)("div", {
- ref: i,
- id: n,
- inert: !a,
- children: /* @__PURE__ */ (0, x.jsx)("div", {
- className: "flex flex-col gap-2 pt-3",
- children: t
- })
- })]
- });
-}
-function Kh({ name: e }) {
- return /* @__PURE__ */ (0, x.jsx)("svg", {
- "aria-hidden": !0,
- viewBox: "0 0 24 24",
- fill: "none",
- className: "size-4 shrink-0 stroke-current stroke-2",
- children: /* @__PURE__ */ (0, x.jsx)("use", { href: `#i-${e}` })
+ })] })
});
}
-function qh({ mark: e }) {
- return e.startsWith("data:image/png;base64,") ? /* @__PURE__ */ (0, x.jsx)("img", {
- src: e,
- alt: "",
- width: 16,
- height: 16,
- className: "size-4 shrink-0"
- }) : /* @__PURE__ */ (0, x.jsx)(Kh, { name: e });
-}
-//#endregion
-//#region src/react/settings/use-action.ts
-function Jh(e = "") {
- let t = (0, b.useRef)(null), [n, r] = (0, b.useState)(""), [i, a] = (0, b.useState)(e);
- (0, b.useEffect)(() => () => t.current?.abort(), []);
- async function o(e, n, i, o) {
- if (t.current) return;
- let s = new AbortController();
- t.current = s, r(e), a("");
- try {
- let e = await n(s.signal);
- s.signal.aborted || i(e);
- } catch (e) {
- if (s.signal.aborted) return;
- o ? o(e) : a(Zd(e));
- } finally {
- t.current === s && (t.current = null), s.signal.aborted || r("");
- }
- }
- return {
- run: o,
- busy: n,
- error: i,
- setError: a
- };
-}
-function Yh(e) {
- return e ? {
- "aria-busy": !0,
- "aria-disabled": !0
- } : {};
-}
//#endregion
//#region src/react/settings/general-settings.tsx
-function Xh({ data: e, receipt: t }) {
- return e.startup ? /* @__PURE__ */ (0, x.jsx)(Zh, {
+function Pg({ data: e, receipt: t }) {
+ return e.startup ? /* @__PURE__ */ (0, S.jsx)(Fg, {
startup: e.startup,
receipt: t
}) : null;
}
-function Zh({ startup: e, receipt: t }) {
- let [n, r] = (0, b.useState)(e.enabled), [i, a] = (0, b.useState)(e.silent), [o, s] = (0, b.useState)(e.desktop), c = Jh(), l = e.available && !e.desktop_message;
- return /* @__PURE__ */ (0, x.jsxs)(Fh, {
+function Fg({ startup: e, receipt: t }) {
+ let [n, r] = (0, x.useState)(e.enabled), [i, a] = (0, x.useState)(e.silent), [o, s] = (0, x.useState)(e.desktop), c = fg(), l = e.available && !e.desktop_message;
+ return /* @__PURE__ */ (0, S.jsxs)($h, {
title: "开机自启",
onSubmit: (r) => {
- r.preventDefault(), e.available && c.run("save", (e) => $d("/api/configuration/startup", {
+ r.preventDefault(), e.available && c.run("save", (e) => rf("/api/configuration/startup", {
enabled: n,
silent: i,
desktop: o
}, "POST", e), () => t("已保存配置"));
},
children: [
- /* @__PURE__ */ (0, x.jsxs)(Ih, { children: [
- /* @__PURE__ */ (0, x.jsx)(Bf, {
+ /* @__PURE__ */ (0, S.jsxs)(eg, { children: [
+ /* @__PURE__ */ (0, S.jsx)(Nh, {
label: "开机后启动 Peach",
- children: /* @__PURE__ */ (0, x.jsx)(Mh, {
+ children: /* @__PURE__ */ (0, S.jsx)(Ng, {
"aria-label": "开机后启动 Peach",
isSelected: n,
isDisabled: !e.available,
onChange: r
})
}),
- /* @__PURE__ */ (0, x.jsx)(Bf, {
+ /* @__PURE__ */ (0, S.jsx)(Nh, {
label: "静默启动",
description: "静默启动仅显示托盘,开机后启动 Peach 打开时生效。",
- children: /* @__PURE__ */ (0, x.jsx)(Mh, {
+ children: /* @__PURE__ */ (0, S.jsx)(Ng, {
"aria-label": "静默启动",
isSelected: i,
isDisabled: !e.available || !n,
onChange: a
})
}),
- /* @__PURE__ */ (0, x.jsx)(Bf, {
+ /* @__PURE__ */ (0, S.jsx)(Nh, {
label: "在桌面创建快捷方式",
description: e.desktop_message || "双击图标打开 Peach 网页;卸载时一并移除。",
- children: /* @__PURE__ */ (0, x.jsx)(Mh, {
+ children: /* @__PURE__ */ (0, S.jsx)(Ng, {
"aria-label": "在桌面创建快捷方式",
isSelected: o,
isDisabled: !l,
@@ -21482,14 +22109,14 @@ function Zh({ startup: e, receipt: t }) {
})
})
] }),
- e.message || c.error ? /* @__PURE__ */ (0, x.jsxs)(Lh, {
+ e.message || c.error ? /* @__PURE__ */ (0, S.jsxs)(tg, {
divided: !0,
- children: [e.message ? /* @__PURE__ */ (0, x.jsx)(zh, { children: e.message }) : null, c.error ? /* @__PURE__ */ (0, x.jsx)(Bh, { children: c.error }) : null]
+ children: [e.message ? /* @__PURE__ */ (0, S.jsx)(rg, { children: e.message }) : null, c.error ? /* @__PURE__ */ (0, S.jsx)(ig, { children: c.error }) : null]
}) : null,
- /* @__PURE__ */ (0, x.jsx)(Rh, { children: /* @__PURE__ */ (0, x.jsx)(Af, {
+ /* @__PURE__ */ (0, S.jsx)(ng, { children: /* @__PURE__ */ (0, S.jsx)(Pf, {
type: "submit",
disabled: !e.available,
- ...Yh(c.busy === "save"),
+ ...pg(c.busy === "save"),
children: "保存配置"
}) })
]
@@ -21497,7 +22124,7 @@ function Zh({ startup: e, receipt: t }) {
}
//#endregion
//#region src/react/boardui/components/base/checkbox/checkbox-glyph.tsx
-var Qh = {
+var Ig = {
md: {
box: "size-4",
glyph: "size-4",
@@ -21511,21 +22138,21 @@ var Qh = {
gap: "gap-1.5"
}
};
-function $h({ state: e, size: t = "md" }) {
- let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = Qh[t], c = n || r, l = o && !a;
- return /* @__PURE__ */ (0, x.jsx)("span", {
+function Lg({ state: e, size: t = "md" }) {
+ let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = Ig[t], c = n || r, l = o && !a;
+ return /* @__PURE__ */ (0, S.jsx)("span", {
"aria-hidden": !0,
- className: Gd("flex shrink-0 items-center justify-center rounded-sm", "transition-[background-color,border-color,box-shadow] duration-150 ease", s.box, c ? Gd("bg-linear-to-b shadow-checkbox-selected", l ? "from-accent-400 to-accent-500" : "from-accent-500 to-accent-600") : Gd("border bg-background-primary-default shadow-xs", l ? "border-border-checkbox-hover" : "border-border-checkbox-default"), a && "opacity-50", i && "ring-2 ring-border-focus-ring ring-offset-2"),
- children: /* @__PURE__ */ (0, x.jsx)("svg", {
+ className: Yd("flex shrink-0 items-center justify-center rounded-sm", "transition-[background-color,border-color,box-shadow] duration-150 ease", s.box, c ? Yd("bg-linear-to-b shadow-checkbox-selected", l ? "from-accent-400 to-accent-500" : "from-accent-500 to-accent-600") : Yd("border bg-background-primary-default shadow-xs", l ? "border-border-checkbox-hover" : "border-border-checkbox-default"), a && "opacity-50", i && "ring-2 ring-border-focus-ring ring-offset-2"),
+ children: /* @__PURE__ */ (0, S.jsx)("svg", {
viewBox: "0 0 16 16",
fill: "none",
className: s.glyph,
- children: r ? /* @__PURE__ */ (0, x.jsx)("path", {
+ children: r ? /* @__PURE__ */ (0, S.jsx)("path", {
d: "M4.5 8H8H11.5",
stroke: "white",
strokeWidth: "2",
strokeLinecap: "round"
- }) : n ? /* @__PURE__ */ (0, x.jsx)("path", {
+ }) : n ? /* @__PURE__ */ (0, S.jsx)("path", {
d: "M4 7.7002L6.64645 10.3466C6.84171 10.5419 7.15829 10.5419 7.35355 10.3466L12 5.7002",
stroke: "white",
strokeWidth: "2",
@@ -21539,123 +22166,24 @@ function $h({ state: e, size: t = "md" }) {
}
//#endregion
//#region src/react/boardui/components/base/checkbox/checkbox.tsx
-function eg({ className: e, children: t, size: n = "md", ref: r, ...i }) {
- let a = Qh[n];
- return /* @__PURE__ */ (0, x.jsx)(bp, {
+function Rg({ className: e, children: t, size: n = "md", ref: r, ...i }) {
+ let a = Ig[n];
+ return /* @__PURE__ */ (0, S.jsx)(xp, {
ref: r,
...i,
- className: (t) => Gd("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, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)($h, {
+ className: (t) => Yd("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, S.jsxs)(S.Fragment, { children: [/* @__PURE__ */ (0, S.jsx)(Lg, {
state: e,
size: n
- }), t != null && /* @__PURE__ */ (0, x.jsx)("span", {
- className: Gd(a.label, "text-text-primary"),
+ }), t != null && /* @__PURE__ */ (0, S.jsx)("span", {
+ className: Yd(a.label, "text-text-primary"),
children: t
})] })
});
}
//#endregion
-//#region src/react/boardui/components/base/dropdown/menu-styles.ts
-var tg = [
- "max-w-[calc(100vw-32px)] overflow-y-auto",
- "rounded-2xl border border-border-button-default bg-background-primary-default p-2.5 shadow-dropdown",
- "transition duration-150 ease-out",
- "data-[entering]:opacity-0 data-[entering]:scale-95 data-[entering]:blur-[2px]",
- "data-[exiting]:opacity-0 data-[exiting]:scale-95 data-[exiting]:blur-[2px]",
- "data-[placement=bottom]:origin-top-left data-[placement=top]:origin-bottom-left",
- "data-[placement=left]:origin-right data-[placement=right]:origin-left"
-].join(" "), ng = "w-[266px]", rg = "flex w-full flex-col gap-1 outline-none", ig = ["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 ag(e) {
- return /* @__PURE__ */ (0, x.jsx)("svg", {
- viewBox: "0 0 16 16",
- fill: "none",
- "aria-hidden": !0,
- ...e,
- children: /* @__PURE__ */ (0, x.jsx)("path", {
- d: "M4 7L7.29289 10.2929C7.68342 10.6834 8.31658 10.6834 8.70711 10.2929L12 7",
- stroke: "currentColor",
- strokeWidth: "2",
- strokeLinecap: "round"
- })
- });
-}
-//#endregion
-//#region src/react/boardui/utils/use-dismiss-on-outside-press.ts
-function og(e, t, n) {
- (0, b.useEffect)(() => {
- if (!e) return;
- let r = (e) => {
- let r = e.target;
- n.some((e) => e.current?.contains(r)) || t();
- };
- return document.addEventListener("pointerdown", r, !0), () => document.removeEventListener("pointerdown", r, !0);
- }, [
- e,
- t,
- n
- ]);
-}
-function sg(e, t) {
- let n = (0, b.useRef)(!1);
- return (0, b.useEffect)(() => {
- if (!e) return;
- let r = (e) => {
- t.current?.contains(e.target) && (n.current = !0, setTimeout(() => {
- n.current = !1;
- }, 400));
- };
- return document.addEventListener("pointerdown", r, !0), () => document.removeEventListener("pointerdown", r, !0);
- }, [e, t]), (e) => e && n.current ? (n.current = !1, !1) : !0;
-}
-//#endregion
-//#region src/react/boardui/components/base/select/select.tsx
-var cg = (0, b.createContext)("md");
-function lg({ className: e, triggerClassName: t, popoverClassName: n, size: r = "md", children: i, items: a, renderValue: o, ref: s, ...c }) {
- let l = (0, b.useRef)(null), u = (0, b.useRef)(null), [d, f] = (0, b.useState)(!1);
- og(d, () => f(!1), [l, u]);
- let p = sg(d, l);
- return /* @__PURE__ */ (0, x.jsx)(_h, {
- ref: s,
- ...c,
- isOpen: d,
- onOpenChange: (e) => p(e) && f(e),
- className: Gd("group flex flex-col", e),
- children: ({ isOpen: e }) => /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsxs)(sp, {
- ref: l,
- className: Gd("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, x.jsx)(xh, {
- className: Gd("flex min-w-0 items-center truncate", r === "sm" ? "gap-1" : "gap-[5px]"),
- children: o
- }), /* @__PURE__ */ (0, x.jsx)(ag, { className: Gd("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
- }), /* @__PURE__ */ (0, x.jsx)(Zm, {
- ref: u,
- isNonModal: !0,
- offset: 4,
- className: Gd(ng, tg, "p-2", n),
- children: /* @__PURE__ */ (0, x.jsx)(Im, {
- items: a,
- className: Gd(rg, "max-h-[240px] overflow-auto"),
- children: /* @__PURE__ */ (0, x.jsx)(cg.Provider, {
- value: r,
- children: i
- })
- })
- })] })
- });
-}
-function ug({ className: e, children: t, ...n }) {
- let r = (0, b.useContext)(cg);
- return /* @__PURE__ */ (0, x.jsx)(Bm, {
- ...n,
- className: (t) => Gd(ig, 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/media-repair.tsx
-var dg = {
+var zg = {
status: "idle",
stage: "",
checked: 0,
@@ -21665,20 +22193,20 @@ var dg = {
failed: 0,
skipped: 0,
message: ""
-}, fg = (e) => Number(e).toLocaleString();
-function pg(e) {
+}, Bg = (e) => Number(e).toLocaleString();
+function Vg(e) {
if (e.status === "running") {
- let t = e.total ? `${fg(e.checked)} / ${fg(e.total)}` : "准备中";
+ let t = e.total ? `${Bg(e.checked)} / ${Bg(e.total)}` : "准备中";
return e.stage === "修复" && e.message ? `修复 ${t} · ${e.message}` : `${e.stage || "扫描"} ${t}`;
}
- return e.status === "complete" && (e.repaired || e.failed) ? e.failed ? `修好 ${fg(e.repaired)} 部,${fg(e.failed)} 部修不了` : `修好 ${fg(e.repaired)} 部` : "";
+ return e.status === "complete" && (e.repaired || e.failed) ? e.failed ? `修好 ${Bg(e.repaired)} 部,${Bg(e.failed)} 部修不了` : `修好 ${Bg(e.repaired)} 部` : "";
}
-function mg({ initial: e }) {
- let [t, n] = (0, b.useState)(e || dg), [r, i] = (0, b.useState)(!1), a = Jh(), o = t.status === "running";
- (0, b.useEffect)(() => {
+function Hg({ initial: e }) {
+ let [t, n] = (0, x.useState)(e || zg), [r, i] = (0, x.useState)(!1), a = fg(), o = t.status === "running";
+ (0, x.useEffect)(() => {
let e = new AbortController(), t, r = async () => {
try {
- let i = await Qd("/api/media-repair", e.signal);
+ let i = await nf("/api/media-repair", e.signal);
if (e.signal.aborted) return;
n(i), i.status === "running" && (t = setTimeout(r, 2e3));
} catch {}
@@ -21687,42 +22215,42 @@ function mg({ initial: e }) {
e.abort(), clearTimeout(t);
};
}, [o]);
- let s = () => void a.run("start", (e) => $d("/api/media-repair", {
+ let s = () => void a.run("start", (e) => rf("/api/media-repair", {
allow_metered: r,
restart: !0
- }, "POST", e), n), c = () => void a.run("stop", (e) => $d("/api/media-repair", { stop: !0 }, "POST", e), n), l = t.total ? Math.round(t.checked / t.total * 100) : 0;
- return /* @__PURE__ */ (0, x.jsxs)(Fh, {
+ }, "POST", e), n), c = () => void a.run("stop", (e) => rf("/api/media-repair", { stop: !0 }, "POST", e), n), l = t.total ? Math.round(t.checked / t.total * 100) : 0;
+ return /* @__PURE__ */ (0, S.jsxs)($h, {
title: "播放兼容修复",
- children: [/* @__PURE__ */ (0, x.jsxs)(Lh, { children: [
- /* @__PURE__ */ (0, x.jsx)(zh, { children: "有些 MP4 少了一张时间戳表,浏览器按容器给的时刻排帧,会把其中一部分丢掉,看着就是卡顿。 修好之后这类片子起播直接用原片,不再实时转码。原始文件不改动,修好的头另存在缓存里。" }),
- /* @__PURE__ */ (0, x.jsx)(eg, {
+ children: [/* @__PURE__ */ (0, S.jsxs)(tg, { children: [
+ /* @__PURE__ */ (0, S.jsx)(rg, { children: "有些 MP4 少了一张时间戳表,浏览器按容器给的时刻排帧,会把其中一部分丢掉,看着就是卡顿。 修好之后这类片子起播直接用原片,不再实时转码。原始文件不改动,修好的头另存在缓存里。" }),
+ /* @__PURE__ */ (0, S.jsx)(Rg, {
isSelected: r,
isDisabled: o,
onChange: i,
children: "连 PikPak 上的一起修(要把片子完整拉一遍,走流量)"
}),
- o ? /* @__PURE__ */ (0, x.jsx)(af, {
+ o ? /* @__PURE__ */ (0, S.jsx)(lf, {
label: "修复进度",
value: l
}) : null,
- t.status === "complete" && !t.repaired && !t.failed ? /* @__PURE__ */ (0, x.jsx)(nf, {
+ t.status === "complete" && !t.repaired && !t.failed ? /* @__PURE__ */ (0, S.jsx)(sf, {
tone: "info",
title: "没有要修的",
children: "库里的片子都能直接播,没找到缺时间戳表的。"
}) : null,
- a.error || t.error ? /* @__PURE__ */ (0, x.jsx)(Bh, { children: a.error || t.error }) : null
- ] }), /* @__PURE__ */ (0, x.jsx)(Rh, {
- status: pg(t) ? /* @__PURE__ */ (0, x.jsx)("p", {
+ a.error || t.error ? /* @__PURE__ */ (0, S.jsx)(ig, { children: a.error || t.error }) : null
+ ] }), /* @__PURE__ */ (0, S.jsx)(ng, {
+ status: Vg(t) ? /* @__PURE__ */ (0, S.jsx)("p", {
role: "status",
- children: pg(t)
+ children: Vg(t)
}) : null,
- children: o ? /* @__PURE__ */ (0, x.jsx)(Af, {
+ children: o ? /* @__PURE__ */ (0, S.jsx)(Pf, {
onClick: c,
- ...Yh(a.busy === "stop"),
+ ...pg(a.busy === "stop"),
children: "停止"
- }) : /* @__PURE__ */ (0, x.jsx)(Af, {
+ }) : /* @__PURE__ */ (0, S.jsx)(Pf, {
onClick: s,
- ...Yh(a.busy === "start"),
+ ...pg(a.busy === "start"),
children: "开始修复"
})
})]
@@ -21730,136 +22258,136 @@ function mg({ initial: e }) {
}
//#endregion
//#region src/react/settings/release-updates.tsx
-var hg = /* @__PURE__ */ new Set([
+var Ug = /* @__PURE__ */ new Set([
"downloading",
"verifying",
"extracting",
"preparing",
"restarting",
"installing"
-]), gg = [
+]), Wg = [
65,
67,
90
-], _g = 120;
-function vg({ initial: e, initialJob: t }) {
- let [n, r] = (0, b.useState)(e), [i, o] = (0, b.useState)(t || {
+], Gg = 120;
+function Kg({ initial: e, initialJob: t }) {
+ let [n, r] = (0, x.useState)(e), [i, a] = (0, x.useState)(t || {
state: "idle",
progress: 0
- }), [s, c] = (0, b.useState)(""), l = Jh(), u = (0, b.useRef)(!1), d = (0, b.useRef)(!0), f = hg.has(i.state);
- (0, b.useEffect)(() => (d.current = !0, () => {
+ }), [s, c] = (0, x.useState)(""), l = fg(), u = (0, x.useRef)(!1), d = (0, x.useRef)(!0), f = Ug.has(i.state);
+ (0, x.useEffect)(() => (d.current = !0, () => {
d.current = !1;
}), []);
let p = async () => {
- let e = await $d("/api/configuration/update-restart", {});
- d.current && o(e);
- }, m = () => void a({
+ let e = await rf("/api/configuration/update-restart", {});
+ d.current && a(e);
+ }, m = () => void o({
title: "更新已准备好",
body: `Peach ${i.version || ""} 将在重启后安装。`,
confirmLabel: "立即重启",
cancelLabel: "稍后",
onConfirm: p
});
- (0, b.useEffect)(() => {
+ (0, x.useEffect)(() => {
i.state !== "ready" || u.current || (u.current = !0, m());
- }, [i.state]), (0, b.useEffect)(() => {
- let e = new AbortController(), t = hg.has(i.state) ? 1e3 : 3e4, n, a = 0, s = async () => {
+ }, [i.state]), (0, x.useEffect)(() => {
+ let e = new AbortController(), t = Ug.has(i.state) ? 1e3 : 3e4, n, o = 0, s = async () => {
try {
- let t = await Qd("/api/configuration/update-status", e.signal);
+ let t = await nf("/api/configuration/update-status", e.signal);
if (e.signal.aborted) return;
- o(t), a = 0, t.state === "complete" && r((e) => ({
+ a(t), o = 0, t.state === "complete" && r((e) => ({
...e,
current_version: t.version || e.current_version,
state: "current",
message: "已是最新测试版。"
}));
- let n = await Qd("/api/configuration/automatic-updates", e.signal);
+ let n = await nf("/api/configuration/automatic-updates", e.signal);
!e.signal.aborted && n.result && r(n.result);
} catch {
- a += 1, a >= _g && !e.signal.aborted && c("尚未连接到 Peach,请检查托盘后刷新页面。");
+ o += 1, o >= Gg && !e.signal.aborted && c("尚未连接到 Peach,请检查托盘后刷新页面。");
}
- !e.signal.aborted && a < _g && (n = setTimeout(s, t));
+ !e.signal.aborted && o < Gg && (n = setTimeout(s, t));
};
return n = setTimeout(s, t), () => {
e.abort(), clearTimeout(n);
};
}, [i.state]);
let h = () => {
- f || (u.current = !1, c(""), l.run("download", (e) => $d("/api/configuration/update", {}, "POST", e), o));
- }, g = () => void l.run("check", (e) => Qd("/api/configuration/updates", e), r, (t) => {
+ f || (u.current = !1, c(""), l.run("download", (e) => rf("/api/configuration/update", {}, "POST", e), a));
+ }, g = () => void l.run("check", (e) => nf("/api/configuration/updates", e), r, (t) => {
r({
...e,
state: "error"
- }), l.setError(Zd(t));
+ }), l.setError(tf(t));
}), _ = l.error || s, v = i.state === "downloading" && i.total ? `${((i.downloaded || 0) / 1048576).toFixed(1)} / ${(i.total / 1048576).toFixed(1)} MB` : `${i.progress}%`;
- return /* @__PURE__ */ (0, x.jsxs)(Fh, {
+ return /* @__PURE__ */ (0, S.jsxs)($h, {
title: "检查更新",
children: [
- /* @__PURE__ */ (0, x.jsxs)(Uh, { children: [
- /* @__PURE__ */ (0, x.jsx)(Wh, {
+ /* @__PURE__ */ (0, S.jsxs)(sg, { children: [
+ /* @__PURE__ */ (0, S.jsx)(cg, {
term: "当前版本",
children: n.current_version
}),
- /* @__PURE__ */ (0, x.jsx)(Wh, {
+ /* @__PURE__ */ (0, S.jsx)(cg, {
term: "安装方式",
children: n.installation
}),
- /* @__PURE__ */ (0, x.jsx)(Wh, {
+ /* @__PURE__ */ (0, S.jsx)(cg, {
term: "更新通道",
children: n.channel
}),
- /* @__PURE__ */ (0, x.jsx)(Wh, {
+ /* @__PURE__ */ (0, S.jsx)(cg, {
term: "最新版本",
children: n.latest_version || (n.state === "unchecked" ? "尚未检查" : "未取得")
})
] }),
- /* @__PURE__ */ (0, x.jsxs)(Lh, {
+ /* @__PURE__ */ (0, S.jsxs)(tg, {
divided: !0,
children: [
- n.checked_at ? /* @__PURE__ */ (0, x.jsxs)(zh, { children: ["检查于 ", (/* @__PURE__ */ new Date(n.checked_at * 1e3)).toLocaleString()] }) : null,
- n.state === "available" && !_ ? /* @__PURE__ */ (0, x.jsx)(nf, {
+ n.checked_at ? /* @__PURE__ */ (0, S.jsxs)(rg, { children: ["检查于 ", (/* @__PURE__ */ new Date(n.checked_at * 1e3)).toLocaleString()] }) : null,
+ n.state === "available" && !_ ? /* @__PURE__ */ (0, S.jsx)(sf, {
tone: "info",
title: "有可用更新",
children: n.message
- }) : _ || n.state === "error" ? /* @__PURE__ */ (0, x.jsx)(Bh, { children: _ || n.message }) : /* @__PURE__ */ (0, x.jsx)(zh, {
+ }) : _ || n.state === "error" ? /* @__PURE__ */ (0, S.jsx)(ig, { children: _ || n.message }) : /* @__PURE__ */ (0, S.jsx)(rg, {
role: "status",
children: n.message
}),
- i.state === "error" ? /* @__PURE__ */ (0, x.jsx)(Bh, { children: i.message }) : null,
- i.state !== "idle" && i.state !== "error" ? /* @__PURE__ */ (0, x.jsxs)("div", {
+ i.state === "error" ? /* @__PURE__ */ (0, S.jsx)(ig, { children: i.message }) : null,
+ i.state !== "idle" && i.state !== "error" ? /* @__PURE__ */ (0, S.jsxs)("div", {
"aria-live": "polite",
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, x.jsx)(af, {
+ /* @__PURE__ */ (0, S.jsx)(lf, {
label: "更新准备进度:下载、校验、解压、准备安装",
value: i.progress,
- stops: gg
+ stops: Wg
}),
- /* @__PURE__ */ (0, x.jsxs)(zh, { children: ["下载 → 校验 → 解压 → 准备安装 · ", i.message] }),
- /* @__PURE__ */ (0, x.jsx)(zh, { children: v })
+ /* @__PURE__ */ (0, S.jsxs)(rg, { children: ["下载 → 校验 → 解压 → 准备安装 · ", i.message] }),
+ /* @__PURE__ */ (0, S.jsx)(rg, { children: v })
]
}) : null
]
}),
- /* @__PURE__ */ (0, x.jsxs)(Rh, {
- status: /* @__PURE__ */ (0, x.jsx)(Hh, {
+ /* @__PURE__ */ (0, S.jsxs)(ng, {
+ status: /* @__PURE__ */ (0, S.jsx)(og, {
href: n.release_url,
children: "查看发布页"
}),
children: [
- i.state === "ready" ? /* @__PURE__ */ (0, x.jsx)(Af, {
+ i.state === "ready" ? /* @__PURE__ */ (0, S.jsx)(Pf, {
onClick: m,
children: "重启安装"
}) : null,
- n.state === "available" && n.installation === "独立测试包" && i.state !== "ready" ? /* @__PURE__ */ (0, x.jsx)(Af, {
+ n.state === "available" && n.installation === "独立测试包" && i.state !== "ready" ? /* @__PURE__ */ (0, S.jsx)(Pf, {
onClick: h,
- ...Yh(f || l.busy === "download"),
+ ...pg(f || l.busy === "download"),
children: "下载并安装"
}) : null,
- /* @__PURE__ */ (0, x.jsx)(Af, {
+ /* @__PURE__ */ (0, S.jsx)(Pf, {
disabled: f,
onClick: g,
- ...Yh(l.busy === "check"),
+ ...pg(l.busy === "check"),
children: "检查更新"
})
]
@@ -21869,142 +22397,142 @@ function vg({ initial: e, initialJob: t }) {
}
//#endregion
//#region src/react/settings/maintenance-settings.tsx
-var yg = [
+var qg = [
["6", "每 6 小时"],
["24", "每天"],
["168", "每周"]
];
-function bg({ data: e, receipt: t }) {
- return /* @__PURE__ */ (0, x.jsxs)("div", {
+function Jg({ data: e, receipt: t }) {
+ return /* @__PURE__ */ (0, S.jsxs)("div", {
className: "flex flex-col gap-6",
children: [
- e.automatic_updates ? /* @__PURE__ */ (0, x.jsx)(xg, {
+ e.automatic_updates ? /* @__PURE__ */ (0, S.jsx)(Yg, {
initial: e.automatic_updates,
receipt: t
}) : null,
- e.updates ? /* @__PURE__ */ (0, x.jsx)(vg, {
+ e.updates ? /* @__PURE__ */ (0, S.jsx)(Kg, {
initial: e.updates,
initialJob: e.update_job
}) : null,
- /* @__PURE__ */ (0, x.jsx)(mg, {}),
- /* @__PURE__ */ (0, x.jsx)(Sg, { facts: e.facts }),
- e.uninstall ? /* @__PURE__ */ (0, x.jsx)(Cg, { uninstall: e.uninstall }) : null
+ /* @__PURE__ */ (0, S.jsx)(Hg, {}),
+ /* @__PURE__ */ (0, S.jsx)(Xg, { facts: e.facts }),
+ e.uninstall ? /* @__PURE__ */ (0, S.jsx)(Zg, { uninstall: e.uninstall }) : null
]
});
}
-function xg({ initial: e, receipt: t }) {
- let [n, r] = (0, b.useState)(e.mode), [i, a] = (0, b.useState)(e.interval_hours), o = Jh(e.error), s = (r) => {
- r.preventDefault(), e.available && o.run("save", (e) => $d("/api/configuration/automatic-updates", {
+function Yg({ initial: e, receipt: t }) {
+ let [n, r] = (0, x.useState)(e.mode), [i, a] = (0, x.useState)(e.interval_hours), o = fg(e.error), s = (r) => {
+ r.preventDefault(), e.available && o.run("save", (e) => rf("/api/configuration/automatic-updates", {
mode: n,
interval_hours: i
}, "POST", e), () => t("已保存配置"));
}, c = e.available ? e.download_available ? "开启后一分钟内开始检查。下载完成后,在此确认重启安装。" : "开启后一分钟内开始检查。源码运行请前往发布页获取新版本。" : "自动更新需要由托盘管理的服务。";
- return /* @__PURE__ */ (0, x.jsxs)(Fh, {
+ return /* @__PURE__ */ (0, S.jsxs)($h, {
title: "自动更新",
onSubmit: s,
children: [
- /* @__PURE__ */ (0, x.jsxs)(Ih, { children: [
- /* @__PURE__ */ (0, x.jsx)(Bf, {
+ /* @__PURE__ */ (0, S.jsxs)(eg, { children: [
+ /* @__PURE__ */ (0, S.jsx)(Nh, {
label: "自动检查新版本",
- children: /* @__PURE__ */ (0, x.jsx)(Mh, {
+ children: /* @__PURE__ */ (0, S.jsx)(Ng, {
"aria-label": "自动检查新版本",
isSelected: n !== "off",
isDisabled: !e.available,
onChange: (e) => r(e ? "check" : "off")
})
}),
- /* @__PURE__ */ (0, x.jsx)(Bf, {
+ /* @__PURE__ */ (0, S.jsx)(Nh, {
label: "自动下载更新",
- children: /* @__PURE__ */ (0, x.jsx)(Mh, {
+ children: /* @__PURE__ */ (0, S.jsx)(Ng, {
"aria-label": "自动下载更新",
isSelected: n === "download",
isDisabled: !e.available || !e.download_available || n === "off",
onChange: (e) => r(e ? "download" : "check")
})
}),
- /* @__PURE__ */ (0, x.jsx)(Bf, {
+ /* @__PURE__ */ (0, S.jsx)(Nh, {
label: "检查频率",
description: c,
- children: /* @__PURE__ */ (0, x.jsx)(lg, {
+ children: /* @__PURE__ */ (0, S.jsx)(Zh, {
"aria-label": "检查频率",
selectedKey: String(i),
isDisabled: !e.available,
onSelectionChange: (e) => {
e !== null && a(Number(e));
},
- children: yg.map(([e, t]) => /* @__PURE__ */ (0, x.jsx)(ug, {
+ children: qg.map(([e, t]) => /* @__PURE__ */ (0, S.jsx)(Qh, {
id: e,
children: t
}, e))
})
})
] }),
- o.error ? /* @__PURE__ */ (0, x.jsx)(Lh, {
+ o.error ? /* @__PURE__ */ (0, S.jsx)(tg, {
divided: !0,
- children: /* @__PURE__ */ (0, x.jsx)(Bh, { children: o.error })
+ children: /* @__PURE__ */ (0, S.jsx)(ig, { children: o.error })
}) : null,
- /* @__PURE__ */ (0, x.jsx)(Rh, { children: /* @__PURE__ */ (0, x.jsx)(Af, {
+ /* @__PURE__ */ (0, S.jsx)(ng, { children: /* @__PURE__ */ (0, S.jsx)(Pf, {
type: "submit",
disabled: !e.available,
- ...Yh(o.busy === "save"),
+ ...pg(o.busy === "save"),
children: "保存配置"
}) })
]
});
}
-function Sg({ facts: e }) {
- return /* @__PURE__ */ (0, x.jsx)(Fh, {
+function Xg({ facts: e }) {
+ return /* @__PURE__ */ (0, S.jsx)($h, {
title: "运行信息",
- children: /* @__PURE__ */ (0, x.jsx)(Uh, { children: e.map((e) => /* @__PURE__ */ (0, x.jsxs)(Wh, {
+ children: /* @__PURE__ */ (0, S.jsx)(sg, { children: e.map((e) => /* @__PURE__ */ (0, S.jsxs)(cg, {
term: e.term,
- children: [e.value, e.download_url ? /* @__PURE__ */ (0, x.jsx)(Hh, {
+ children: [e.value, e.download_url ? /* @__PURE__ */ (0, S.jsx)(og, {
href: e.download_url,
children: e.download_label
}) : null]
}, e.term)) })
});
}
-function Cg({ uninstall: e }) {
- let [t, n] = (0, b.useState)(!1), [r, i] = (0, b.useState)(""), o = () => void a({
+function Zg({ uninstall: e }) {
+ let [t, n] = (0, x.useState)(!1), [r, i] = (0, x.useState)(""), a = () => void o({
title: "卸载 Peach",
danger: !0,
body: t ? "将退出 Peach,移除程序、开机自启、桌面图标、设置、本地数据库、观看记录、凭据和缓存。原始媒体文件保留。" : "将退出 Peach 并移除程序、开机自启和桌面图标。设置、本地数据库、观看记录与缓存保留。",
confirmLabel: "卸载 Peach",
onConfirm: async () => {
- let e = await $d("/api/configuration/uninstall", {
+ let e = await rf("/api/configuration/uninstall", {
delete_data: t,
confirmation: "卸载 Peach"
});
i(e.message);
}
}), s = r || e.message, c = [.../* @__PURE__ */ new Set([e.data_root, ...e.directories])];
- return /* @__PURE__ */ (0, x.jsxs)(Fh, {
+ return /* @__PURE__ */ (0, S.jsxs)($h, {
id: "uninstallPeach",
title: "卸载 Peach",
- children: [/* @__PURE__ */ (0, x.jsxs)(Lh, { children: [
- e.available ? /* @__PURE__ */ (0, x.jsx)(zh, { children: "卸载会退出 Peach、移除程序、开机自启和桌面图标。原始媒体文件保留。" }) : null,
- /* @__PURE__ */ (0, x.jsx)(eg, {
+ children: [/* @__PURE__ */ (0, S.jsxs)(tg, { children: [
+ e.available ? /* @__PURE__ */ (0, S.jsx)(rg, { children: "卸载会退出 Peach、移除程序、开机自启和桌面图标。原始媒体文件保留。" }) : null,
+ /* @__PURE__ */ (0, S.jsx)(Rg, {
isSelected: t,
isDisabled: !e.full_available || !!r,
onChange: n,
children: "完全卸载:同时删除设置、本地数据库、观看记录、凭据和缓存"
}),
- /* @__PURE__ */ (0, x.jsx)(Gh, {
+ /* @__PURE__ */ (0, S.jsx)(lg, {
summary: "数据目录",
- children: c.map((e) => /* @__PURE__ */ (0, x.jsx)("p", {
+ children: c.map((e) => /* @__PURE__ */ (0, S.jsx)("p", {
className: "text-body-2-regular break-all text-text-secondary",
children: e
}, e))
})
- ] }), /* @__PURE__ */ (0, x.jsx)(Rh, {
- status: s ? /* @__PURE__ */ (0, x.jsx)("p", {
+ ] }), /* @__PURE__ */ (0, S.jsx)(ng, {
+ status: s ? /* @__PURE__ */ (0, S.jsx)("p", {
role: r ? "status" : void 0,
children: s
}) : null,
- children: /* @__PURE__ */ (0, x.jsx)(Af, {
+ children: /* @__PURE__ */ (0, S.jsx)(Pf, {
variant: "danger",
disabled: !e.available || !!r,
- onClick: o,
+ onClick: a,
children: "卸载 Peach"
})
})]
@@ -22012,7 +22540,7 @@ function Cg({ uninstall: e }) {
}
//#endregion
//#region src/react/boardui/components/base/buttons/icon-button.tsx
-var wg = Kd({
+var Qg = Xd({
base: [
"relative inline-flex shrink-0 items-center justify-center overflow-visible rounded-2lg",
"bg-background-primary-default text-foreground-icon-primary",
@@ -22033,153 +22561,21 @@ var wg = Kd({
small: "size-4 shrink-0"
}
});
-function Tg({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {
- return /* @__PURE__ */ (0, x.jsx)("button", {
+function $g({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {
+ return /* @__PURE__ */ (0, S.jsx)("button", {
ref: i,
type: r,
- className: Gd(wg.base, wg.size[t], n),
+ className: Yd(Qg.base, Qg.size[t], n),
...a,
- children: /* @__PURE__ */ (0, x.jsx)(e, {
- className: wg.icon[t],
+ children: /* @__PURE__ */ (0, S.jsx)(e, {
+ className: Qg.icon[t],
"aria-hidden": !0
})
});
}
//#endregion
-//#region src/react/boardui/components/base/input/label.tsx
-function Eg({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {
- return /* @__PURE__ */ (0, x.jsxs)(ip, {
- "data-label": "true",
- ...a,
- className: Gd("flex cursor-default items-center gap-0.5", "text-body-medium text-text-primary", r),
- children: [
- i,
- e && /* @__PURE__ */ (0, x.jsx)("span", {
- "aria-hidden": "true",
- className: "text-body-medium text-text-error-primary",
- children: "*"
- }),
- n && /* @__PURE__ */ (0, x.jsx)(pu, {
- className: "size-4 shrink-0 text-foreground-icon-quaternary",
- "aria-hidden": !0
- })
- ]
- });
-}
-//#endregion
-//#region src/react/boardui/components/base/input/hint-text.tsx
-function Dg({ isInvalid: e = !1, className: t, ...n }) {
- return /* @__PURE__ */ (0, x.jsx)(pp, {
- slot: e ? "errorMessage" : "description",
- ...n,
- className: Gd("pt-px text-caption-1-medium text-text-secondary", e && "text-text-error-primary", t)
- });
-}
-//#endregion
-//#region src/react/boardui/components/base/input/input.tsx
-var Og = (0, b.createContext)({});
-function kg({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {
- return /* @__PURE__ */ (0, x.jsx)(Og.Provider, {
- value: {
- size: e,
- fieldClassName: t,
- inputClassName: n
- },
- children: /* @__PURE__ */ (0, x.jsx)(kh, {
- ...a,
- "data-input-size": e,
- className: Gd("group flex h-max w-full flex-col items-start gap-1", r),
- children: i
- })
- });
-}
-kg.displayName = "TextField";
-var Ag = Kd({
- field: [
- "relative flex w-full items-center",
- "rounded-2lg",
- "bg-background-tertiary-default text-foreground-icon-tertiary",
- "ring-2 ring-inset ring-transparent",
- "transition-[background-color,box-shadow,color] duration-[var(--input-transition-ms)] ease"
- ].join(" "),
- fieldSize: {
- medium: "p-2",
- small: "h-8 px-1.5 py-2"
- },
- fieldWithAddonSize: {
- medium: "h-9 pl-1 pr-2 py-2",
- small: "h-8 pl-1 pr-1.5 py-2"
- },
- content: "flex w-full items-center gap-2 min-w-0",
- leftSection: "flex flex-1 items-center gap-0.5 min-w-0",
- input: [
- "min-w-0 flex-1 bg-transparent border-0 outline-none p-0 m-0",
- "font-sans text-body-regular text-text-primary pl-1",
- "placeholder:text-text-tertiary",
- "focus:placeholder:text-text-primary",
- "disabled:text-input-disabled-text disabled:placeholder:text-input-disabled-text",
- "disabled:cursor-not-allowed",
- "aria-invalid:placeholder:text-text-error-placeholder"
- ].join(" "),
- icon: "size-5 shrink-0"
-});
-function jg({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {
- let l = (0, b.useContext)(Og), u = e ?? l.size ?? "medium", d = r != null;
- return /* @__PURE__ */ (0, x.jsx)(Cp, {
- ref: s,
- className: ({ isFocusWithin: e, isHovered: t, isDisabled: n, isInvalid: r }) => Gd(Ag.field, d ? Ag.fieldWithAddonSize[u] : Ag.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, x.jsxs)("div", {
- className: Ag.content,
- children: [/* @__PURE__ */ (0, x.jsxs)("div", {
- className: Ag.leftSection,
- children: [d ? r : t ? /* @__PURE__ */ (0, x.jsx)(t, {
- className: Ag.icon,
- "aria-hidden": !0
- }) : null, /* @__PURE__ */ (0, x.jsx)(Ep, {
- ref: o,
- ...c,
- className: Gd(Ag.input, l.inputClassName, a)
- })]
- }), n ? /* @__PURE__ */ (0, x.jsx)(n, {
- className: Ag.icon,
- "aria-hidden": !0
- }) : null]
- })
- });
-}
-jg.displayName = "InputBase";
-function Mg({ 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, x.jsx)(kg, {
- ...d,
- className: u,
- "aria-label": d["aria-label"] ?? (!e && typeof r == "string" ? r : void 0),
- children: ({ isRequired: u, isInvalid: d }) => /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [
- e && /* @__PURE__ */ (0, x.jsx)(Eg, {
- isRequired: u,
- isInvalid: d,
- tooltip: n,
- children: e
- }),
- /* @__PURE__ */ (0, x.jsx)(jg, {
- ref: c,
- groupRef: l,
- placeholder: r,
- leadingIcon: i,
- trailingIcon: a,
- leadingAddon: o,
- fieldClassName: s
- }),
- t && /* @__PURE__ */ (0, x.jsx)(Dg, {
- isInvalid: d,
- children: t
- })
- ] })
- });
-}
-Mg.displayName = "Input";
-//#endregion
//#region src/configuration-endpoints.ts
-var Ng = "/api/configuration", Pg = "/api/pick-folder", Fg = [
+var e_ = "/api/configuration", t_ = "/api/pick-folder", n_ = [
{
name: "机械硬盘,或内存 8 GB 以内",
cache: "10–20 GiB",
@@ -22198,37 +22594,37 @@ var Ng = "/api/configuration", Pg = "/api/pick-folder", Fg = [
read: "256 / 128 KB",
task: "2 个起步"
}
-], Ig = [
+], r_ = [
["cache", "缓存上限"],
["read", "读取长度(默认 / 最小)"],
["task", "同时处理视频"]
];
-function Lg() {
- return /* @__PURE__ */ (0, x.jsxs)("div", {
+function i_() {
+ return /* @__PURE__ */ (0, S.jsxs)("div", {
className: "@container flex flex-col gap-3",
- children: [/* @__PURE__ */ (0, x.jsxs)(zh, { children: ["先在 CloudDrive 登录网盘并挂载,开启「启动时自动挂载」。", /* @__PURE__ */ (0, x.jsx)(Hh, {
+ children: [/* @__PURE__ */ (0, S.jsxs)(rg, { children: ["先在 CloudDrive 登录网盘并挂载,开启「启动时自动挂载」。", /* @__PURE__ */ (0, S.jsx)(og, {
href: "https://www.clouddrive2.com/help.html",
children: "挂载帮助"
- })] }), /* @__PURE__ */ (0, x.jsxs)(Gh, {
+ })] }), /* @__PURE__ */ (0, S.jsxs)(lg, {
summary: "CloudDrive 缓存建议",
children: [
- /* @__PURE__ */ (0, x.jsx)(zh, { children: "看缓存放在哪块硬盘上,照那一档填。这是起步值,填得越大不一定越快。" }),
- /* @__PURE__ */ (0, x.jsx)("ul", {
+ /* @__PURE__ */ (0, S.jsx)(rg, { children: "看缓存放在哪块硬盘上,照那一档填。这是起步值,填得越大不一定越快。" }),
+ /* @__PURE__ */ (0, S.jsx)("ul", {
"aria-label": "按缓存所在硬盘分档",
className: "flex flex-col gap-2",
- children: Fg.map((e) => /* @__PURE__ */ (0, x.jsxs)("li", {
+ children: n_.map((e) => /* @__PURE__ */ (0, S.jsxs)("li", {
className: "flex flex-col gap-2 rounded-2lg border border-separator-border bg-background-primary-default p-3",
- children: [/* @__PURE__ */ (0, x.jsx)("p", {
+ children: [/* @__PURE__ */ (0, S.jsx)("p", {
className: "text-body-medium text-text-primary",
children: e.name
- }), /* @__PURE__ */ (0, x.jsx)("dl", {
+ }), /* @__PURE__ */ (0, S.jsx)("dl", {
className: "inline-grid grid-cols-1 gap-2 @md:grid-cols-3",
- children: Ig.map(([t, n]) => /* @__PURE__ */ (0, x.jsxs)("div", {
+ children: r_.map(([t, n]) => /* @__PURE__ */ (0, S.jsxs)("div", {
className: "flex flex-col",
- children: [/* @__PURE__ */ (0, x.jsx)("dt", {
+ children: [/* @__PURE__ */ (0, S.jsx)("dt", {
className: "text-caption-1-regular text-text-secondary",
children: n
- }), /* @__PURE__ */ (0, x.jsx)("dd", {
+ }), /* @__PURE__ */ (0, S.jsx)("dd", {
className: "text-body-regular text-text-primary",
children: e[t]
})]
@@ -22236,17 +22632,17 @@ function Lg() {
})]
}, e.name))
}),
- /* @__PURE__ */ (0, x.jsxs)("ul", {
+ /* @__PURE__ */ (0, S.jsxs)("ul", {
className: "flex list-disc flex-col gap-1 pl-5 text-body-2-regular text-text-secondary",
children: [
- /* @__PURE__ */ (0, x.jsx)("li", { children: "缓存上限和清理方式填在 CloudDrive「设置」里,清理方式选 LRU。上限不要填 0,系统盘至少留 40 GiB;填完重开设置页确认存住了。" }),
- /* @__PURE__ */ (0, x.jsx)("li", { children: "读取长度和下载线程填在每个网盘各自的下载设置里,线程都从 2 开始。" }),
- /* @__PURE__ */ (0, x.jsx)("li", { children: "Buffer Cache 占内存,磁盘缓存和文件夹缓存占硬盘,改一个管不住另外两个。" })
+ /* @__PURE__ */ (0, S.jsx)("li", { children: "缓存上限和清理方式填在 CloudDrive「设置」里,清理方式选 LRU。上限不要填 0,系统盘至少留 40 GiB;填完重开设置页确认存住了。" }),
+ /* @__PURE__ */ (0, S.jsx)("li", { children: "读取长度和下载线程填在每个网盘各自的下载设置里,线程都从 2 开始。" }),
+ /* @__PURE__ */ (0, S.jsx)("li", { children: "Buffer Cache 占内存,磁盘缓存和文件夹缓存占硬盘,改一个管不住另外两个。" })
]
}),
- /* @__PURE__ */ (0, x.jsxs)(zh, { children: [
+ /* @__PURE__ */ (0, S.jsxs)(rg, { children: [
"三处缓存分别管什么、这几个值怎么往上调、码率和速度怎么换算、线程上限与直链代理怎么取舍,以及这些起步值的来源,都在",
- /* @__PURE__ */ (0, x.jsx)(Hh, {
+ /* @__PURE__ */ (0, S.jsx)(og, {
href: "https://github.com/longmeidao/peach/blob/master/docs/CLOUDDRIVE.md",
children: "CloudDrive 配置与调优"
}),
@@ -22258,7 +22654,7 @@ function Lg() {
}
//#endregion
//#region src/react/settings/library-icon-picker.tsx
-var Rg = [
+var a_ = [
["", "自动识别"],
["hard-drive", "磁盘"],
["database", "资料库"],
@@ -22302,14 +22698,14 @@ var Rg = [
["star", "收藏"],
["tags", "主题"]
];
-function zg(e) {
- let t = e === "local" ? "" : i[e];
+function o_(e) {
+ let t = e === "local" ? "" : a[e];
return t ? [t, "自动识别"] : ["hard-drive", "默认"];
}
-var Bg = "auto";
-function Vg({ value: e, label: t, kind: n = "local", onChange: r }) {
- let i = (0, b.useRef)(null), [a, o] = (0, b.useState)(!1), [s, c] = (0, b.useState)(e), [l, u] = zg(n);
- return /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(Af, {
+var s_ = "auto";
+function c_({ value: e, label: t, kind: n = "local", onChange: r }) {
+ let i = (0, x.useRef)(null), [a, o] = (0, x.useState)(!1), [s, c] = (0, x.useState)(e), [l, u] = o_(n);
+ return /* @__PURE__ */ (0, S.jsxs)(S.Fragment, { children: [/* @__PURE__ */ (0, S.jsx)(Pf, {
ref: i,
variant: "secondary",
className: "self-start",
@@ -22319,46 +22715,46 @@ function Vg({ value: e, label: t, kind: n = "local", onChange: r }) {
onClick: () => {
c(e), o(!0);
},
- children: /* @__PURE__ */ (0, x.jsxs)("span", {
+ children: /* @__PURE__ */ (0, S.jsxs)("span", {
"data-icon-choice": !0,
className: "flex items-center gap-2",
- children: [/* @__PURE__ */ (0, x.jsx)(qh, { mark: e || l }), ((e) => e && Rg.find(([t]) => t === e)?.[1] || u)(e)]
+ children: [/* @__PURE__ */ (0, S.jsx)(dg, { mark: e || l }), ((e) => e && a_.find(([t]) => t === e)?.[1] || u)(e)]
})
- }), /* @__PURE__ */ (0, x.jsx)(Zm, {
+ }), /* @__PURE__ */ (0, S.jsx)(Qm, {
triggerRef: i,
isOpen: a,
onOpenChange: o,
placement: "bottom start",
offset: 4,
- className: tg,
- children: /* @__PURE__ */ (0, x.jsxs)(th, {
+ className: Uh,
+ children: /* @__PURE__ */ (0, S.jsxs)(nh, {
"aria-label": `${t}候选`,
className: "flex w-72 flex-col gap-3 outline-none",
children: [
- /* @__PURE__ */ (0, x.jsx)(dp, {
+ /* @__PURE__ */ (0, S.jsx)(fp, {
slot: "title",
className: "px-1 text-body-medium text-text-primary",
children: "选择媒体库图标"
}),
- /* @__PURE__ */ (0, x.jsx)(ch, {
+ /* @__PURE__ */ (0, S.jsx)(lh, {
"aria-label": "候选图标",
- value: s || Bg,
- onChange: (e) => c(e === Bg ? "" : e),
+ value: s || s_,
+ onChange: (e) => c(e === s_ ? "" : e),
className: "inline-grid grid-cols-7 gap-1",
- children: Rg.map(([e, t]) => /* @__PURE__ */ (0, x.jsx)(lh, {
- value: e || Bg,
+ children: a_.map(([e, t]) => /* @__PURE__ */ (0, S.jsx)(uh, {
+ value: e || s_,
"aria-label": e ? t : u,
className: "flex h-10 cursor-pointer items-center justify-center rounded-lg text-foreground-icon-secondary outline-none hover:bg-dropdown-item-hover-background focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:bg-dropdown-item-hover-background data-selected:text-text-primary",
- children: /* @__PURE__ */ (0, x.jsx)(qh, { mark: e || l })
- }, e || Bg))
+ children: /* @__PURE__ */ (0, S.jsx)(dg, { mark: e || l })
+ }, e || s_))
}),
- /* @__PURE__ */ (0, x.jsxs)("div", {
+ /* @__PURE__ */ (0, S.jsxs)("div", {
className: "flex justify-end gap-2 border-t border-separator-border pt-2.5",
- children: [/* @__PURE__ */ (0, x.jsx)(Af, {
+ children: [/* @__PURE__ */ (0, S.jsx)(Pf, {
variant: "secondary",
onClick: () => o(!1),
children: "取消"
- }), /* @__PURE__ */ (0, x.jsx)(Af, {
+ }), /* @__PURE__ */ (0, S.jsx)(Pf, {
disabled: s === e,
onClick: () => {
r(s), o(!1);
@@ -22372,9 +22768,9 @@ function Vg({ value: e, label: t, kind: n = "local", onChange: r }) {
}
//#endregion
//#region src/react/settings/media-settings.tsx
-var Hg = 8e3;
-function Ug({ className: e }) {
- return /* @__PURE__ */ (0, x.jsx)("svg", {
+var l_ = 8e3;
+function u_({ className: e }) {
+ return /* @__PURE__ */ (0, S.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
fill: "none",
@@ -22383,51 +22779,51 @@ function Ug({ className: e }) {
strokeLinecap: "round",
strokeLinejoin: "round",
className: e,
- children: /* @__PURE__ */ (0, x.jsx)("use", { href: "#i-folder-search" })
+ children: /* @__PURE__ */ (0, S.jsx)("use", { href: "#i-folder-search" })
});
}
-var Wg = [
+var d_ = [
["local", "本地磁盘"],
["115", "CloudDrive · 115"],
["pikpak", "CloudDrive · PikPak"]
-], Gg = (e) => Wg.find(([t]) => t === e)?.[1] ?? e, Kg = (e) => i[e] || "database", qg = (e = "") => ({
+], f_ = (e) => d_.find(([t]) => t === e)?.[1] ?? e, p_ = (e) => a[e] || "database", m_ = (e = "") => ({
path: e,
location: "local",
root: "",
library: "",
library_icon: ""
});
-function Jg(e) {
- let t = e.media_sources?.filter((e) => Wg.some(([t]) => t === e.location));
+function h_(e) {
+ let t = e.media_sources?.filter((e) => d_.some(([t]) => t === e.location));
return t?.length ? t.map((e) => ({
path: e.path,
location: e.location,
root: e.root,
library: e.library || "",
library_icon: e.library_icon || ""
- })) : (e.media_dirs.length ? e.media_dirs : [""]).map((e) => qg(e));
+ })) : (e.media_dirs.length ? e.media_dirs : [""]).map((e) => m_(e));
}
-var Yg = (e) => !(e instanceof Yd) || e.status !== 400 ? null : e.body?.errors ?? null;
-function Xg({ data: e, receipt: t }) {
- return /* @__PURE__ */ (0, x.jsxs)("div", {
+var g_ = (e) => !(e instanceof $d) || e.status !== 400 ? null : e.body?.errors ?? null;
+function __({ data: e, receipt: t }) {
+ return /* @__PURE__ */ (0, S.jsxs)("div", {
className: "flex flex-col gap-6",
- children: [e.editable ? /* @__PURE__ */ (0, x.jsx)(Zg, {
+ children: [e.editable ? /* @__PURE__ */ (0, S.jsx)(v_, {
data: e,
receipt: t
- }) : /* @__PURE__ */ (0, x.jsx)(nf, {
+ }) : /* @__PURE__ */ (0, S.jsx)(sf, {
tone: "neutral",
title: "只读",
children: e.notice
- }), /* @__PURE__ */ (0, x.jsx)($g, { data: e })]
+ }), /* @__PURE__ */ (0, S.jsx)(b_, { data: e })]
});
}
-function Zg({ data: e, receipt: t }) {
- let [n, r] = (0, b.useState)(() => Jg(e)), [i, a] = (0, b.useState)(String(e.port)), [o, s] = (0, b.useState)(!1), [c, l] = (0, b.useState)([]), [u, d] = (0, b.useState)(""), [f, p] = (0, b.useState)(""), [m, h] = (0, b.useState)(null), [g, _] = (0, b.useState)(null), [v, y] = (0, b.useState)(null), S = (0, b.useRef)(!1), C = (0, b.useRef)(e.revision), w = (0, b.useRef)([]), T = Jh();
- (0, b.useLayoutEffect)(() => {
+function v_({ data: e, receipt: t }) {
+ let [n, r] = (0, x.useState)(() => h_(e)), [i, a] = (0, x.useState)(String(e.port)), [o, s] = (0, x.useState)(!1), [c, l] = (0, x.useState)([]), [u, d] = (0, x.useState)(""), [f, p] = (0, x.useState)(""), [m, h] = (0, x.useState)(null), [g, _] = (0, x.useState)(null), [v, y] = (0, x.useState)(null), b = (0, x.useRef)(!1), C = (0, x.useRef)(e.revision), w = (0, x.useRef)([]), T = fg();
+ (0, x.useLayoutEffect)(() => {
g !== null && (w.current[g]?.focus(), _(null));
- }, [g]), (0, b.useEffect)(() => {
+ }, [g]), (0, x.useEffect)(() => {
if (!m) return;
- let e = setTimeout(() => location.assign(m.url), Hg);
+ let e = setTimeout(() => location.assign(m.url), l_);
return () => clearTimeout(e);
}, [m]);
let E = (e, t) => r((n) => n.map((n, r) => r === e ? {
@@ -22438,23 +22834,23 @@ function Zg({ data: e, receipt: t }) {
for (; r.length <= e;) r.push("");
return r[e] = t, r;
}), O = () => {
- _(n.length), r((e) => [...e, qg()]);
+ _(n.length), r((e) => [...e, m_()]);
}, k = (e) => {
r((t) => t.filter((t, n) => n !== e)), l((t) => t.filter((t, n) => n !== e));
}, A = async (e) => {
- if (!S.current) {
- S.current = !0, y(e);
+ if (!b.current) {
+ b.current = !0, y(e);
try {
- let { path: t } = await $d(Pg, { initial: n[e]?.path ?? "" });
+ let { path: t } = await rf(t_, { initial: n[e]?.path ?? "" });
t && (E(e, { path: t }), D(e, ""));
} catch (t) {
- D(e, Zd(t));
+ D(e, tf(t));
} finally {
- S.current = !1, y(null);
+ b.current = !1, y(null);
}
}
- }, j = (r) => {
- r.preventDefault(), p(""), T.run("save", (t) => $d(Ng, {
+ }, ee = (r) => {
+ r.preventDefault(), p(""), T.run("save", (t) => rf(e_, {
revision: C.current,
media_dirs: n.map((e) => e.path),
...e.media_sources ? { media_sources: n } : {},
@@ -22463,18 +22859,18 @@ function Zg({ data: e, receipt: t }) {
}, "POST", t), (e) => {
C.current = e.revision, l([]), d(""), t("已保存配置"), h(e);
}, (e) => {
- let t = Yg(e);
- l(t?.media_dirs ?? []), d(t?.port ?? ""), t || p(Zd(e));
+ let t = g_(e);
+ l(t?.media_dirs ?? []), d(t?.port ?? ""), t || p(tf(e));
});
};
- if (m) return /* @__PURE__ */ (0, x.jsx)(Fh, {
+ if (m) return /* @__PURE__ */ (0, S.jsx)($h, {
title: "这台电脑",
- children: /* @__PURE__ */ (0, x.jsx)(Lh, { children: /* @__PURE__ */ (0, x.jsxs)(nf, {
+ children: /* @__PURE__ */ (0, S.jsx)(tg, { children: /* @__PURE__ */ (0, S.jsxs)(sf, {
tone: "success",
title: "配置已保存",
children: [
"Peach 正在重新启动。稍后自动跳转,或点击",
- /* @__PURE__ */ (0, x.jsx)(Ph, {
+ /* @__PURE__ */ (0, S.jsx)(Fh, {
href: m.url,
size: "small",
children: "进入馆藏"
@@ -22483,26 +22879,26 @@ function Zg({ data: e, receipt: t }) {
]
}) })
});
- let M = n.some((e) => e.location === "115" || e.location === "pikpak"), N = M ? (e.mount_dependencies ?? []).filter((e) => !e.available) : [];
- return /* @__PURE__ */ (0, x.jsxs)(Fh, {
+ let j = n.some((e) => e.location === "115" || e.location === "pikpak"), te = j ? (e.mount_dependencies ?? []).filter((e) => !e.available) : [];
+ return /* @__PURE__ */ (0, S.jsxs)($h, {
title: "这台电脑",
- onSubmit: j,
- children: [/* @__PURE__ */ (0, x.jsxs)(Lh, { children: [
- /* @__PURE__ */ (0, x.jsxs)("div", {
+ onSubmit: ee,
+ children: [/* @__PURE__ */ (0, S.jsxs)(tg, { children: [
+ /* @__PURE__ */ (0, S.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, x.jsx)(Vh, { children: "媒体文件夹" }),
- /* @__PURE__ */ (0, x.jsx)("div", {
+ /* @__PURE__ */ (0, S.jsx)(ag, { children: "媒体文件夹" }),
+ /* @__PURE__ */ (0, S.jsx)("div", {
role: "group",
"aria-label": "媒体文件夹",
className: "flex flex-col gap-3",
- children: n.map((t, r) => /* @__PURE__ */ (0, x.jsxs)("div", {
+ children: n.map((t, r) => /* @__PURE__ */ (0, S.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, x.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, S.jsxs)("div", {
className: "flex items-start gap-2",
children: [
- /* @__PURE__ */ (0, x.jsx)(Mg, {
+ /* @__PURE__ */ (0, S.jsx)(Hh, {
className: "min-w-0 flex-1",
"aria-label": `媒体文件夹 ${r + 1}`,
placeholder: "本机文件夹路径",
@@ -22515,53 +22911,53 @@ function Zg({ data: e, receipt: t }) {
isInvalid: !!c[r],
hint: c[r] || void 0
}),
- /* @__PURE__ */ (0, x.jsx)(Tg, {
- icon: Ug,
+ /* @__PURE__ */ (0, S.jsx)($g, {
+ icon: u_,
"aria-label": "选择文件夹",
onClick: () => void A(r),
- ...Yh(v === r)
+ ...pg(v === r)
}),
- n.length > 1 ? /* @__PURE__ */ (0, x.jsx)(Tg, {
- icon: uu,
+ n.length > 1 ? /* @__PURE__ */ (0, S.jsx)($g, {
+ icon: mu,
"aria-label": "移除这个文件夹",
onClick: () => k(r)
}) : null
]
- }), /* @__PURE__ */ (0, x.jsxs)("div", {
+ }), /* @__PURE__ */ (0, S.jsxs)("div", {
className: "inline-grid grid-cols-1 gap-3 @lg:grid-cols-2",
children: [
- /* @__PURE__ */ (0, x.jsx)(Mg, {
+ /* @__PURE__ */ (0, S.jsx)(Hh, {
label: "媒体库名称",
maxLength: 80,
placeholder: "同名文件夹归入同一个媒体库",
value: t.library,
onChange: (e) => E(r, { library: e })
}),
- /* @__PURE__ */ (0, x.jsxs)("div", {
+ /* @__PURE__ */ (0, S.jsxs)("div", {
className: "flex flex-col gap-1.5",
- children: [/* @__PURE__ */ (0, x.jsx)(Vh, { children: "媒体库图标" }), /* @__PURE__ */ (0, x.jsx)(Vg, {
+ children: [/* @__PURE__ */ (0, S.jsx)(ag, { children: "媒体库图标" }), /* @__PURE__ */ (0, S.jsx)(c_, {
label: `媒体库图标 ${r + 1}`,
value: t.library_icon,
kind: t.location,
onChange: (e) => E(r, { library_icon: e })
})]
}),
- /* @__PURE__ */ (0, x.jsxs)("div", {
+ /* @__PURE__ */ (0, S.jsxs)("div", {
className: "flex flex-col gap-1.5",
- children: [/* @__PURE__ */ (0, x.jsx)(Vh, { children: "媒体来源" }), /* @__PURE__ */ (0, x.jsx)(lg, {
+ children: [/* @__PURE__ */ (0, S.jsx)(ag, { children: "媒体来源" }), /* @__PURE__ */ (0, S.jsx)(Zh, {
"aria-label": `媒体来源 ${r + 1}`,
selectedKey: t.location,
onSelectionChange: (e) => {
e !== null && E(r, { location: String(e) });
},
- children: Wg.map(([e, t]) => /* @__PURE__ */ (0, x.jsxs)(ug, {
+ children: d_.map(([e, t]) => /* @__PURE__ */ (0, S.jsxs)(Qh, {
id: e,
textValue: t,
- children: [/* @__PURE__ */ (0, x.jsx)(qh, { mark: Kg(e) }), t]
+ children: [/* @__PURE__ */ (0, S.jsx)(dg, { mark: p_(e) }), t]
}, e))
})]
}),
- e.windows === !1 ? /* @__PURE__ */ (0, x.jsx)(Mg, {
+ e.windows === !1 ? /* @__PURE__ */ (0, S.jsx)(Hh, {
label: "Windows 中的对应路径",
placeholder: "例如 B:\\",
value: t.root,
@@ -22571,25 +22967,25 @@ function Zg({ data: e, receipt: t }) {
})]
}, r))
}),
- /* @__PURE__ */ (0, x.jsx)(Af, {
+ /* @__PURE__ */ (0, S.jsx)(Pf, {
className: "self-start",
onClick: O,
children: "添加文件夹"
})
]
}),
- M ? /* @__PURE__ */ (0, x.jsx)(Lg, {}) : null,
- N.map((e) => /* @__PURE__ */ (0, x.jsxs)(zh, { children: [
+ j ? /* @__PURE__ */ (0, S.jsx)(i_, {}) : null,
+ te.map((e) => /* @__PURE__ */ (0, S.jsxs)(rg, { children: [
"未检测到 ",
e.name,
"。",
- /* @__PURE__ */ (0, x.jsxs)(Hh, {
+ /* @__PURE__ */ (0, S.jsxs)(og, {
href: e.download_url,
children: ["下载 ", e.name]
})
] }, e.name)),
- e.windows === !1 ? /* @__PURE__ */ (0, x.jsx)(zh, { children: "本机文件夹是这台电脑读取媒体的位置。Windows 中的对应路径用于匹配馆藏中已有的路径,例如 B:\\ 对应本机挂载文件夹。" }) : null,
- e.port_editable === !1 ? null : /* @__PURE__ */ (0, x.jsx)(Mg, {
+ e.windows === !1 ? /* @__PURE__ */ (0, S.jsx)(rg, { children: "本机文件夹是这台电脑读取媒体的位置。Windows 中的对应路径用于匹配馆藏中已有的路径,例如 B:\\ 对应本机挂载文件夹。" }) : null,
+ e.port_editable === !1 ? null : /* @__PURE__ */ (0, S.jsx)(Hh, {
id: "configPort",
label: "本机访问端口",
inputMode: "numeric",
@@ -22599,66 +22995,66 @@ function Zg({ data: e, receipt: t }) {
isInvalid: !!u,
hint: u || "浏览器地址里冒号后面的数字,一般不用改。"
}),
- /* @__PURE__ */ (0, x.jsx)(eg, {
+ /* @__PURE__ */ (0, S.jsx)(Rg, {
isSelected: o,
onChange: s,
children: "保存后扫描并补全资料"
}),
- f ? /* @__PURE__ */ (0, x.jsx)(nf, {
+ f ? /* @__PURE__ */ (0, S.jsx)(sf, {
tone: "error",
title: "没有保存",
children: f
}) : null
- ] }), /* @__PURE__ */ (0, x.jsx)(Rh, {
+ ] }), /* @__PURE__ */ (0, S.jsx)(ng, {
status: e.port_editable === !1 ? "保存后 Peach 会重新载入配置。" : "保存后 Peach 会重新启动,端口改了就用新地址打开。",
- children: /* @__PURE__ */ (0, x.jsx)(Af, {
+ children: /* @__PURE__ */ (0, S.jsx)(Pf, {
type: "submit",
- ...Yh(T.busy === "save"),
+ ...pg(T.busy === "save"),
children: "保存配置"
})
})]
});
}
-function Qg({ online: e }) {
- return e === !0 ? /* @__PURE__ */ (0, x.jsxs)("span", {
+function y_({ online: e }) {
+ return e === !0 ? /* @__PURE__ */ (0, S.jsxs)("span", {
"data-mount": "online",
className: "inline-flex items-center gap-1.5 text-body-2-medium text-notification-success-foreground",
- children: [/* @__PURE__ */ (0, x.jsx)("span", {
+ children: [/* @__PURE__ */ (0, S.jsx)("span", {
"aria-hidden": !0,
className: "size-1.5 rounded-full bg-current"
}), "在线"]
- }) : e === !1 ? /* @__PURE__ */ (0, x.jsxs)("span", {
+ }) : e === !1 ? /* @__PURE__ */ (0, S.jsxs)("span", {
"data-mount": "offline",
className: "inline-flex items-center gap-1.5 text-body-2-medium text-text-error-primary",
- children: [/* @__PURE__ */ (0, x.jsx)("span", {
+ children: [/* @__PURE__ */ (0, S.jsx)("span", {
"aria-hidden": !0,
className: "size-1.5 rounded-full bg-current"
}), "离线"]
- }) : /* @__PURE__ */ (0, x.jsxs)("span", {
+ }) : /* @__PURE__ */ (0, S.jsxs)("span", {
"data-mount": "unknown",
className: "inline-flex items-center gap-1.5 text-body-2-medium text-text-secondary",
- children: [/* @__PURE__ */ (0, x.jsx)("span", {
+ children: [/* @__PURE__ */ (0, S.jsx)("span", {
"aria-hidden": !0,
className: "size-1.5 rounded-full bg-current"
}), "未检测"]
});
}
-function $g({ data: e }) {
- let [t, n] = (0, b.useState)(e.media_sources), r = Jh();
- return t ? /* @__PURE__ */ (0, x.jsxs)(Fh, {
+function b_({ data: e }) {
+ let [t, n] = (0, x.useState)(e.media_sources), r = fg();
+ return t ? /* @__PURE__ */ (0, S.jsxs)($h, {
title: "挂载状态",
children: [
- /* @__PURE__ */ (0, x.jsx)(Uh, { children: t.map((e, t) => /* @__PURE__ */ (0, x.jsxs)(Wh, {
- term: /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(qh, { mark: Kg(e.location) }), Gg(e.location)] }),
- children: [e.path || "未配置挂载点", /* @__PURE__ */ (0, x.jsx)(Qg, { online: e.online })]
+ /* @__PURE__ */ (0, S.jsx)(sg, { children: t.map((e, t) => /* @__PURE__ */ (0, S.jsxs)(cg, {
+ term: /* @__PURE__ */ (0, S.jsxs)(S.Fragment, { children: [/* @__PURE__ */ (0, S.jsx)(dg, { mark: p_(e.location) }), f_(e.location)] }),
+ children: [e.path || "未配置挂载点", /* @__PURE__ */ (0, S.jsx)(y_, { online: e.online })]
}, t)) }),
- r.error ? /* @__PURE__ */ (0, x.jsx)(Lh, {
+ r.error ? /* @__PURE__ */ (0, S.jsx)(tg, {
divided: !0,
- children: /* @__PURE__ */ (0, x.jsx)(Bh, { children: r.error })
+ children: /* @__PURE__ */ (0, S.jsx)(ig, { children: r.error })
}) : null,
- /* @__PURE__ */ (0, x.jsx)(Rh, { children: /* @__PURE__ */ (0, x.jsx)(Af, {
- onClick: () => void r.run("refresh", (e) => Qd(Ng, e), (e) => n(e.media_sources)),
- ...Yh(r.busy === "refresh"),
+ /* @__PURE__ */ (0, S.jsx)(ng, { children: /* @__PURE__ */ (0, S.jsx)(Pf, {
+ onClick: () => void r.run("refresh", (e) => nf(e_, e), (e) => n(e.media_sources)),
+ ...pg(r.busy === "refresh"),
children: "刷新挂载状态"
}) })
]
@@ -22666,20 +23062,20 @@ function $g({ data: e }) {
}
//#endregion
//#region src/react/settings/access-settings.tsx
-var e_ = {
+var x_ = {
legacy: "当前使用系统生成的访问口令。你可以设置自己的密码,或关闭登录要求。",
locked: "访问设置无法读取,请在本机检查配置文件。",
password: "已设置密码。新设备需要登录,保持登录时间在登录页选择。"
};
-function t_({ initial: e, receipt: t }) {
- let [n, r] = (0, b.useState)(e), [i, a] = (0, b.useState)(""), [o, s] = (0, b.useState)(""), [c, l] = (0, b.useState)(""), [u, d] = (0, b.useState)(!1), [f, p] = (0, b.useState)({}), m = (0, b.useRef)(null), h = Jh(), g = (e) => {
+function S_({ initial: e, receipt: t }) {
+ let [n, r] = (0, x.useState)(e), [i, a] = (0, x.useState)(""), [o, s] = (0, x.useState)(""), [c, l] = (0, x.useState)(""), [u, d] = (0, x.useState)(!1), [f, p] = (0, x.useState)({}), m = (0, x.useRef)(null), h = fg(), g = (e) => {
e.preventDefault();
let f = {};
if (n.mode === "password" && !i && (f.current_password = "请输入当前访问密码"), u || ((o.length < 8 || o.length > 256) && (f.password = "访问密码需为 8–256 个字符"), o !== c && (f.confirmation = "两次输入的密码不一致")), p(f), Object.keys(f).length) {
requestAnimationFrame(() => m.current?.querySelector("input[aria-invalid=\"true\"]")?.focus());
return;
}
- h.run("save", (e) => $d("/api/configuration/access", {
+ h.run("save", (e) => rf("/api/configuration/access", {
revision: n.revision,
action: u ? "disable" : "set",
confirm_disable: u,
@@ -22689,28 +23085,28 @@ function t_({ initial: e, receipt: t }) {
}, "POST", e), (e) => {
r(e), a(""), s(""), l(""), d(!1), p({}), t(e.mode === "open" ? "已关闭访问密码" : "已保存配置");
}, (e) => {
- let t = e instanceof Yd ? e.body : null, n = t?.errors || t?.detail?.errors;
- n ? p(n) : h.setError(Zd(e));
+ let t = e instanceof $d ? e.body : null, n = t?.errors || t?.detail?.errors;
+ n ? p(n) : h.setError(tf(e));
});
- }, _ = e_[n.mode], v = n.mode !== "locked";
- return /* @__PURE__ */ (0, x.jsxs)(Fh, {
+ }, _ = x_[n.mode], v = n.mode !== "locked";
+ return /* @__PURE__ */ (0, S.jsxs)($h, {
title: "访问密码",
onSubmit: g,
- children: [/* @__PURE__ */ (0, x.jsx)("div", {
+ children: [/* @__PURE__ */ (0, S.jsx)("div", {
ref: m,
- children: /* @__PURE__ */ (0, x.jsxs)(Lh, { children: [
- _ ? /* @__PURE__ */ (0, x.jsx)(zh, { children: _ }) : null,
- n.mode === "open" ? /* @__PURE__ */ (0, x.jsx)(nf, {
+ children: /* @__PURE__ */ (0, S.jsxs)(tg, { children: [
+ _ ? /* @__PURE__ */ (0, S.jsx)(rg, { children: _ }) : null,
+ n.mode === "open" ? /* @__PURE__ */ (0, S.jsx)(sf, {
tone: "warning",
title: "未设置访问密码",
children: "能连接到 Peach 的设备打开地址就能看馆藏,不需要登录。"
}) : null,
- n.mode === "password" || n.mode === "legacy" ? /* @__PURE__ */ (0, x.jsx)(eg, {
+ n.mode === "password" || n.mode === "legacy" ? /* @__PURE__ */ (0, S.jsx)(Rg, {
isSelected: u,
onChange: d,
children: "关闭访问密码,允许能连接到 Peach 的设备直接访问"
}) : null,
- n.mode === "password" ? /* @__PURE__ */ (0, x.jsx)(Mg, {
+ n.mode === "password" ? /* @__PURE__ */ (0, S.jsx)(Hh, {
id: "access-current",
type: "password",
label: "当前访问密码",
@@ -22723,7 +23119,7 @@ function t_({ initial: e, receipt: t }) {
isInvalid: !!f.current_password,
hint: f.current_password
}) : null,
- v ? /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(Mg, {
+ v ? /* @__PURE__ */ (0, S.jsxs)(S.Fragment, { children: [/* @__PURE__ */ (0, S.jsx)(Hh, {
id: "access-password",
type: "password",
label: n.mode === "password" ? "新访问密码" : "设置访问密码",
@@ -22736,7 +23132,7 @@ function t_({ initial: e, receipt: t }) {
validationBehavior: "aria",
isInvalid: !u && !!f.password,
hint: u ? "关闭访问密码时无需填写。" : f.password || "至少 8 个字符。保存后其他设备需要重新登录。"
- }), /* @__PURE__ */ (0, x.jsx)(Mg, {
+ }), /* @__PURE__ */ (0, S.jsx)(Hh, {
id: "access-confirm",
type: "password",
label: "确认访问密码",
@@ -22750,18 +23146,18 @@ function t_({ initial: e, receipt: t }) {
isInvalid: !u && !!f.confirmation,
hint: u ? void 0 : f.confirmation
})] }) : null,
- u ? /* @__PURE__ */ (0, x.jsx)(nf, {
+ u ? /* @__PURE__ */ (0, S.jsx)(sf, {
tone: "warning",
title: "访问范围",
children: "保存后,能连接到 Peach 的设备将直接访问馆藏。"
}) : null,
- h.error ? /* @__PURE__ */ (0, x.jsx)(Bh, { children: h.error }) : null
+ h.error ? /* @__PURE__ */ (0, S.jsx)(ig, { children: h.error }) : null
] })
- }), v ? /* @__PURE__ */ (0, x.jsx)(Rh, {
+ }), v ? /* @__PURE__ */ (0, S.jsx)(ng, {
status: "保存后立即生效。",
- children: /* @__PURE__ */ (0, x.jsx)(Af, {
+ children: /* @__PURE__ */ (0, S.jsx)(Pf, {
type: "submit",
- ...Yh(h.busy === "save"),
+ ...pg(h.busy === "save"),
children: "保存配置"
})
}) : null]
@@ -22769,30 +23165,30 @@ function t_({ initial: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/network-settings.tsx
-var n_ = [
+var C_ = [
["environment", "系统代理"],
["direct", "直连"],
["proxy", "自定义"]
];
-function r_({ data: e, receipt: t }) {
- return /* @__PURE__ */ (0, x.jsxs)("div", {
+function w_({ data: e, receipt: t }) {
+ return /* @__PURE__ */ (0, S.jsxs)("div", {
className: "flex flex-col gap-6",
- children: [e.peach_proxy ? /* @__PURE__ */ (0, x.jsx)(i_, {
+ children: [e.peach_proxy ? /* @__PURE__ */ (0, S.jsx)(T_, {
initial: e.peach_proxy,
receipt: t
- }) : null, e.access ? /* @__PURE__ */ (0, x.jsx)(t_, {
+ }) : null, e.access ? /* @__PURE__ */ (0, S.jsx)(S_, {
initial: e.access,
receipt: t
}) : null]
});
}
-function i_({ initial: e, receipt: t }) {
- let [n, r] = (0, b.useState)(e), [i, a] = (0, b.useState)(e.mode), [o, s] = (0, b.useState)(""), c = Jh();
- return /* @__PURE__ */ (0, x.jsxs)(Fh, {
+function T_({ initial: e, receipt: t }) {
+ let [n, r] = (0, x.useState)(e), [i, a] = (0, x.useState)(e.mode), [o, s] = (0, x.useState)(""), c = fg();
+ return /* @__PURE__ */ (0, S.jsxs)($h, {
id: "peachProxy",
title: "Peach 代理",
onSubmit: (e) => {
- e.preventDefault(), c.run("save", (e) => $d("/api/configuration/peach-proxy", {
+ e.preventDefault(), c.run("save", (e) => rf("/api/configuration/peach-proxy", {
mode: i,
proxy: o
}, "POST", e), (e) => {
@@ -22800,25 +23196,25 @@ function i_({ initial: e, receipt: t }) {
});
},
children: [
- /* @__PURE__ */ (0, x.jsx)(Ih, { children: /* @__PURE__ */ (0, x.jsx)(Bf, {
+ /* @__PURE__ */ (0, S.jsx)(eg, { children: /* @__PURE__ */ (0, S.jsx)(Nh, {
label: "连接方式",
description: "采集来源选择“Peach 代理”时共用此设置。",
- children: /* @__PURE__ */ (0, x.jsx)(lg, {
+ children: /* @__PURE__ */ (0, S.jsx)(Zh, {
"aria-label": "连接方式",
selectedKey: i,
onSelectionChange: (e) => {
e !== null && a(String(e));
},
- children: n_.map(([e, t]) => /* @__PURE__ */ (0, x.jsx)(ug, {
+ children: C_.map(([e, t]) => /* @__PURE__ */ (0, S.jsx)(Qh, {
id: e,
children: t
}, e))
})
}) }),
- i === "proxy" || n.needs_selection || c.error ? /* @__PURE__ */ (0, x.jsxs)(Lh, {
+ i === "proxy" || n.needs_selection || c.error ? /* @__PURE__ */ (0, S.jsxs)(tg, {
divided: !0,
children: [
- i === "proxy" ? /* @__PURE__ */ (0, x.jsx)(Mg, {
+ i === "proxy" ? /* @__PURE__ */ (0, S.jsx)(Hh, {
id: "peachProxyAddress",
type: "password",
label: "代理地址",
@@ -22827,17 +23223,17 @@ function i_({ initial: e, receipt: t }) {
onChange: s,
placeholder: n.proxy_saved ? "已保存,留空保留" : "http://127.0.0.1:7890"
}) : null,
- n.needs_selection ? /* @__PURE__ */ (0, x.jsx)(nf, {
+ n.needs_selection ? /* @__PURE__ */ (0, S.jsx)(sf, {
tone: "warning",
title: "需要选择连接方式",
children: "已有来源的代理地址不同,请选择公共连接方式。"
}) : null,
- c.error ? /* @__PURE__ */ (0, x.jsx)(Bh, { children: c.error }) : null
+ c.error ? /* @__PURE__ */ (0, S.jsx)(ig, { children: c.error }) : null
]
}) : null,
- /* @__PURE__ */ (0, x.jsx)(Rh, { children: /* @__PURE__ */ (0, x.jsx)(Af, {
+ /* @__PURE__ */ (0, S.jsx)(ng, { children: /* @__PURE__ */ (0, S.jsx)(Pf, {
type: "submit",
- ...Yh(c.busy === "save"),
+ ...pg(c.busy === "save"),
children: "保存配置"
}) })
]
@@ -22845,17 +23241,17 @@ function i_({ initial: e, receipt: t }) {
}
//#endregion
//#region src/react/entry.tsx
-var a_ = null;
-function o_() {
- return a_?.isConnected || (a_ = document.createElement("div"), a_.className = "peach-react", a_.dataset.reactOverlays = "", document.body.append(a_)), a_;
+var E_ = null;
+function D_() {
+ return E_?.isConnected || (E_ = document.createElement("div"), E_.className = "peach-react", E_.dataset.reactOverlays = "", document.body.append(E_)), E_;
}
-function s_(e) {
+function O_(e) {
return (t, n) => {
- let r = (0, cu.createRoot)(t), i = (t) => r.render(/* @__PURE__ */ (0, x.jsx)(w, {
- client: of,
- children: /* @__PURE__ */ (0, x.jsx)(sc, {
- getContainer: o_,
- children: /* @__PURE__ */ (0, x.jsx)(e, { ...t })
+ let r = (0, du.createRoot)(t), i = (t) => r.render(/* @__PURE__ */ (0, S.jsx)(T, {
+ client: uf,
+ children: /* @__PURE__ */ (0, S.jsx)(lc, {
+ getContainer: D_,
+ children: /* @__PURE__ */ (0, S.jsx)(e, { ...t })
})
}));
return i(n), {
@@ -22864,15 +23260,19 @@ function s_(e) {
};
};
}
-var c_ = {
+var k_ = {
activity: {
- prefetch: (e, t) => pf(t),
- mount: s_(Of)
+ prefetch: (e, t) => _f(t),
+ mount: O_(Mf)
},
"quality-goals": {
- prefetch: (e, t) => Pf(t),
- mount: s_(Lf)
+ prefetch: (e, t) => Rf(t),
+ mount: O_($)
+ },
+ scraping: {
+ prefetch: (e, t) => Cg(t),
+ mount: O_(Ag)
}
-}, l_ = s_(Xh), u_ = s_(Xg), d_ = s_(r_), f_ = s_(bg);
+}, A_ = O_(Pg), j_ = O_(__), M_ = O_(w_), N_ = O_(Jg);
//#endregion
-export { l_ as mountGeneralSettings, f_ as mountMaintenanceSettings, u_ as mountMediaSettings, d_ as mountNetworkSettings, c_ as pages };
+export { A_ as mountGeneralSettings, N_ as mountMaintenanceSettings, j_ as mountMediaSettings, M_ as mountNetworkSettings, k_ as pages };
diff --git a/web/dist/peach-ui.js b/web/dist/peach-ui.js
index 467da5f2b..2ddb0cabd 100644
--- a/web/dist/peach-ui.js
+++ b/web/dist/peach-ui.js
@@ -1,21 +1,21 @@
-import { esc as e, icon as t, requestErrorMessage as n, siteMarkUrl as r } from "/js/core.js";
-import { MEDIA_SOURCE_ICONS as i, attachOverlayScrollbar as a, checkboxHtml as o, emptyStateHtml as s, fieldsetTitle as c, loadingDotsHtml as l, moveGlidePane as u, noteHtml as d, projectBannerHtml as f, selectFieldHtml as p, selectOptionIconHtml as m, setActionBusy as h, wireAnchoredMenu as g, wireCollapse as _, wireSelectField as v } from "/js/ui-components.js";
+import { esc as e, icon as t, requestErrorMessage as n } from "/js/core.js";
+import { MEDIA_SOURCE_ICONS as r, attachOverlayScrollbar as i, checkboxHtml as a, emptyStateHtml as o, fieldsetTitle as s, loadingDotsHtml as c, moveGlidePane as l, noteHtml as u, projectBannerHtml as d, selectFieldHtml as f, selectOptionIconHtml as p, setActionBusy as m, wireAnchoredMenu as h, wireCollapse as g, wireSelectField as _ } from "/js/ui-components.js";
//#region node_modules/preact/dist/preact.module.js
-var y, b, x, S, C, w, T, E, D, O, k, A, j, ee, te = {}, M = [], ne = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, N = Array.isArray;
-function P(e, t) {
+var v, y, b, x, S, C, w, T, E, D, O, k, A, j, M = {}, N = [], ee = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, P = Array.isArray;
+function F(e, t) {
for (var n in t) e[n] = t[n];
return e;
}
-function re(e) {
+function I(e) {
e && e.parentNode && e.parentNode.removeChild(e);
}
-function ie(e, t, n) {
+function L(e, t, n) {
var r, i, a, o = {};
for (a in t) a == "key" ? r = t[a] : a == "ref" ? i = t[a] : o[a] = t[a];
- if (arguments.length > 2 && (o.children = arguments.length > 3 ? y.call(arguments, 2) : n), typeof e == "function" && e.defaultProps != null) for (a in e.defaultProps) o[a] === void 0 && (o[a] = e.defaultProps[a]);
- return ae(e, o, r, i, null);
+ if (arguments.length > 2 && (o.children = arguments.length > 3 ? v.call(arguments, 2) : n), typeof e == "function" && e.defaultProps != null) for (a in e.defaultProps) o[a] === void 0 && (o[a] = e.defaultProps[a]);
+ return te(e, o, r, i, null);
}
-function ae(e, t, n, r, i) {
+function te(e, t, n, r, i) {
var a = {
type: e,
props: t,
@@ -27,68 +27,68 @@ function ae(e, t, n, r, i) {
__e: null,
__c: null,
constructor: void 0,
- __v: i ?? ++x,
+ __v: i ?? ++b,
__i: -1,
__u: 0
};
- return i == null && b.vnode != null && b.vnode(a), a;
+ return i == null && y.vnode != null && y.vnode(a), a;
}
-function F(e) {
+function ne(e) {
return e.children;
}
-function oe(e, t) {
+function re(e, t) {
this.props = e, this.context = t;
}
-function I(e, t) {
- if (t == null) return e.__ ? I(e.__, e.__i + 1) : null;
+function R(e, t) {
+ if (t == null) return e.__ ? R(e.__, e.__i + 1) : null;
for (var n; t < e.__k.length; t++) if ((n = e.__k[t]) != null && n.__e != null) return n.__e;
- return typeof e.type == "function" ? I(e) : null;
+ return typeof e.type == "function" ? R(e) : null;
}
-function se(e) {
+function ie(e) {
if (e.__P && e.__d) {
- var t = e.__v, n = t.__e, r = [], i = [], a = P({}, t);
- a.__v = t.__v + 1, b.vnode && b.vnode(a), ve(e.__P, a, t, e.__n, e.__P.namespaceURI, 32 & t.__u ? [n] : null, r, n ?? I(t), !!(32 & t.__u), i), a.__v = t.__v, a.__.__k[a.__i] = a, be(r, a, i), t.__e = t.__ = null, a.__e != n && ce(a);
+ var t = e.__v, n = t.__e, r = [], i = [], a = F({}, t);
+ a.__v = t.__v + 1, y.vnode && y.vnode(a), he(e.__P, a, t, e.__n, e.__P.namespaceURI, 32 & t.__u ? [n] : null, r, n ?? R(t), !!(32 & t.__u), i), a.__v = t.__v, a.__.__k[a.__i] = a, _e(r, a, i), t.__e = t.__ = null, a.__e != n && ae(a);
}
}
-function ce(e) {
+function ae(e) {
if ((e = e.__) != null && e.__c != null) return e.__e = e.__c.base = null, e.__k.some(function(t) {
if (t != null && t.__e != null) return e.__e = e.__c.base = t.__e;
- }), ce(e);
+ }), ae(e);
}
-function le(e) {
- (!e.__d && (e.__d = !0) && S.push(e) && !ue.__r++ || C != b.debounceRendering) && ((C = b.debounceRendering) || w)(ue);
+function oe(e) {
+ (!e.__d && (e.__d = !0) && x.push(e) && !se.__r++ || S != y.debounceRendering) && ((S = y.debounceRendering) || C)(se);
}
-function ue() {
+function se() {
try {
- for (var e, t = 1; S.length;) S.length > t && S.sort(T), e = S.shift(), t = S.length, se(e);
+ for (var e, t = 1; x.length;) x.length > t && x.sort(w), e = x.shift(), t = x.length, ie(e);
} finally {
- S.length = ue.__r = 0;
+ x.length = se.__r = 0;
}
}
-function de(e, t, n, r, i, a, o, s, c, l, u) {
- var d, f, p, m, h, g, _ = r && r.__k || M, v = t.length;
- for (c = fe(n, t, _, c, v), d = 0; d < v; d++) (p = n.__k[d]) != null && (f = p.__i != -1 && _[p.__i] || te, p.__i = d, g = ve(e, p, f, i, a, o, s, c, l, u), m = p.__e, p.ref && f.ref != p.ref && (f.ref && Ce(f.ref, null, p), u.push(p.ref, p.__c || m, p)), h == null && m != null && (h = m), 4 & p.__u ? (c = pe(p, c, e), f.__e && (f.__e = null)) : typeof p.type == "function" && g !== void 0 ? c = g : m && (c = m.nextSibling), p.__u &= -7);
+function ce(e, t, n, r, i, a, o, s, c, l, u) {
+ var d, f, p, m, h, g, _ = r && r.__k || N, v = t.length;
+ for (c = le(n, t, _, c, v), d = 0; d < v; d++) (p = n.__k[d]) != null && (f = p.__i != -1 && _[p.__i] || M, p.__i = d, g = he(e, p, f, i, a, o, s, c, l, u), m = p.__e, p.ref && f.ref != p.ref && (f.ref && be(f.ref, null, p), u.push(p.ref, p.__c || m, p)), h == null && m != null && (h = m), 4 & p.__u ? (c = ue(p, c, e), f.__e && (f.__e = null)) : typeof p.type == "function" && g !== void 0 ? c = g : m && (c = m.nextSibling), p.__u &= -7);
return n.__e = h, c;
}
-function fe(e, t, n, r, i) {
+function le(e, t, n, r, i) {
var a, o, s, c, l, u = n.length, d = u, f = 0;
- for (e.__k = Array(i), a = 0; a < i; a++) (o = t[a]) != null && typeof o != "boolean" && typeof o != "function" ? (typeof o == "string" || typeof o == "number" || typeof o == "bigint" || o.constructor == String ? o = e.__k[a] = ae(null, o, null, null, null) : N(o) ? o = e.__k[a] = ae(F, { children: o }, null, null, null) : o.constructor === void 0 && o.__b > 0 ? o = e.__k[a] = ae(o.type, o.props, o.key, o.ref ? o.ref : null, o.__v) : e.__k[a] = o, c = a + f, o.__ = e, o.__b = e.__b + 1, s = null, (l = o.__i = me(o, n, c, d)) != -1 && (d--, (s = n[l]) && (s.__u |= 2)), s == null || s.__v == null ? (l == -1 && (i > u ? f-- : i < u && f++), typeof o.type != "function" && (o.__u |= 4)) : l != c && (l == c - 1 ? f-- : l == c + 1 ? f++ : (l > c ? f-- : f++, o.__u |= 4))) : e.__k[a] = null;
- if (d) for (a = 0; a < u; a++) (s = n[a]) != null && !(2 & s.__u) && (s.__e == r && (r = I(s)), we(s, s));
+ for (e.__k = Array(i), a = 0; a < i; a++) (o = t[a]) != null && typeof o != "boolean" && typeof o != "function" ? (typeof o == "string" || typeof o == "number" || typeof o == "bigint" || o.constructor == String ? o = e.__k[a] = te(null, o, null, null, null) : P(o) ? o = e.__k[a] = te(ne, { children: o }, null, null, null) : o.constructor === void 0 && o.__b > 0 ? o = e.__k[a] = te(o.type, o.props, o.key, o.ref ? o.ref : null, o.__v) : e.__k[a] = o, c = a + f, o.__ = e, o.__b = e.__b + 1, s = null, (l = o.__i = de(o, n, c, d)) != -1 && (d--, (s = n[l]) && (s.__u |= 2)), s == null || s.__v == null ? (l == -1 && (i > u ? f-- : i < u && f++), typeof o.type != "function" && (o.__u |= 4)) : l != c && (l == c - 1 ? f-- : l == c + 1 ? f++ : (l > c ? f-- : f++, o.__u |= 4))) : e.__k[a] = null;
+ if (d) for (a = 0; a < u; a++) (s = n[a]) != null && !(2 & s.__u) && (s.__e == r && (r = R(s)), xe(s, s));
return r;
}
-function pe(e, t, n) {
+function ue(e, t, n) {
var r, i;
if (typeof e.type == "function") {
- for (r = e.__k, i = 0; r && i < r.length; i++) r[i] && (r[i].__ = e, t = pe(r[i], t, n));
+ for (r = e.__k, i = 0; r && i < r.length; i++) r[i] && (r[i].__ = e, t = ue(r[i], t, n));
return t;
}
- e.__e != t && (t && e.type && !t.parentNode && (t = I(e)), t = n.insertBefore(e.__e, t || null));
+ e.__e != t && (t && e.type && !t.parentNode && (t = R(e)), t = n.insertBefore(e.__e, t || null));
do
t &&= t.nextSibling;
while (t != null && t.nodeType == 8);
return t;
}
-function me(e, t, n, r) {
+function de(e, t, n, r) {
var i, a, o, s = e.key, c = e.type, l = t[n], u = l != null && !(2 & l.__u);
if (l === null && s == null || u && s == l.key && c == l.type) return n;
if (r > +!!u) {
@@ -96,18 +96,18 @@ function me(e, t, n, r) {
}
return -1;
}
-function he(e, t, n) {
- t[0] == "-" ? e.setProperty(t, n ?? "") : e[t] = n == null ? "" : typeof n != "number" || ne.test(t) ? n : n + "px";
+function fe(e, t, n) {
+ t[0] == "-" ? e.setProperty(t, n ?? "") : e[t] = n == null ? "" : typeof n != "number" || ee.test(t) ? n : n + "px";
}
-function ge(e, t, n, r, i) {
+function pe(e, t, n, r, i) {
var a, o;
n: if (t == "style") {
if (typeof n == "string") e.style.cssText = n;
else {
- if (typeof r == "string" && (e.style.cssText = r = ""), r) for (t in r) n && t in n || he(e.style, t, "");
- if (n) for (t in n) r && n[t] == r[t] || he(e.style, t, n[t]);
+ if (typeof r == "string" && (e.style.cssText = r = ""), r) for (t in r) n && t in n || fe(e.style, t, "");
+ if (n) for (t in n) r && n[t] == r[t] || fe(e.style, t, n[t]);
}
- } else if (t[0] == "o" && t[1] == "n") a = t != (t = t.replace(k, "$1")), o = t.toLowerCase(), t = o in e || t == "onFocusOut" || t == "onFocusIn" ? o.slice(2) : t.slice(2), e.l ||= {}, e.l[t + a] = n, n ? r ? n[O] = r[O] : (n[O] = A, e.addEventListener(t, a ? ee : j, a)) : e.removeEventListener(t, a ? ee : j, a);
+ } else if (t[0] == "o" && t[1] == "n") a = t != (t = t.replace(O, "$1")), o = t.toLowerCase(), t = o in e || t == "onFocusOut" || t == "onFocusIn" ? o.slice(2) : t.slice(2), e.l ||= {}, e.l[t + a] = n, n ? r ? n[D] = r[D] : (n[D] = k, e.addEventListener(t, a ? j : A, a)) : e.removeEventListener(t, a ? j : A, a);
else {
if (i == "http://www.w3.org/2000/svg") t = t.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
else if (t != "width" && t != "height" && t != "href" && t != "list" && t != "form" && t != "tabIndex" && t != "download" && t != "rowSpan" && t != "colSpan" && t != "role" && t != "popover" && t in e) try {
@@ -117,146 +117,146 @@ function ge(e, t, n, r, i) {
typeof n == "function" || (n == null || !1 === n && t[4] != "-" ? e.removeAttribute(t) : e.setAttribute(t, t == "popover" && n == 1 ? "" : n));
}
}
-function _e(e) {
+function me(e) {
return function(t) {
if (this.l) {
var n = this.l[t.type + e];
- if (t[D] == null) t[D] = A++;
- else if (t[D] < n[O]) return;
- return n(b.event ? b.event(t) : t);
+ if (t[E] == null) t[E] = k++;
+ else if (t[E] < n[D]) return;
+ return n(y.event ? y.event(t) : t);
}
};
}
-function ve(e, t, n, r, i, a, o, s, c, l) {
- var u, d, f, p, m, h, g, _, v, y, x, S, C, w, T, E, D = t.type;
+function he(e, t, n, r, i, a, o, s, c, l) {
+ var u, d, f, p, m, h, g, _, v, b, x, S, C, w, T, E, D = t.type;
if (t.constructor !== void 0) return null;
- 128 & n.__u && (c = !!(32 & n.__u), a = [s = t.__e = n.__e]), (u = b.__b) && u(t);
+ 128 & n.__u && (c = !!(32 & n.__u), a = [s = t.__e = n.__e]), (u = y.__b) && u(t);
n: if (typeof D == "function") {
d = o.length;
try {
- if (v = t.props, y = D.prototype && D.prototype.render, x = (u = D.contextType) && r[u.__c], S = u ? x ? x.props.value : u.__ : r, n.__c ? _ = (f = t.__c = n.__c).__ = f.__E : (y ? t.__c = f = new D(v, S) : (t.__c = f = new oe(v, S), f.constructor = D, f.render = Te), x && x.sub(f), f.state || (f.state = {}), f.__n = r, p = f.__d = !0, f.__h = [], f._sb = []), y && f.__s == null && (f.__s = f.state), y && D.getDerivedStateFromProps != null && (f.__s == f.state && (f.__s = P({}, f.__s)), P(f.__s, D.getDerivedStateFromProps(v, f.__s))), m = f.props, h = f.state, f.__v = t, p) y && D.getDerivedStateFromProps == null && f.componentWillMount != null && f.componentWillMount(), y && f.componentDidMount != null && f.__h.push(f.componentDidMount);
+ if (v = t.props, b = D.prototype && D.prototype.render, x = (u = D.contextType) && r[u.__c], S = u ? x ? x.props.value : u.__ : r, n.__c ? _ = (f = t.__c = n.__c).__ = f.__E : (b ? t.__c = f = new D(v, S) : (t.__c = f = new re(v, S), f.constructor = D, f.render = Se), x && x.sub(f), f.state || (f.state = {}), f.__n = r, p = f.__d = !0, f.__h = [], f._sb = []), b && f.__s == null && (f.__s = f.state), b && D.getDerivedStateFromProps != null && (f.__s == f.state && (f.__s = F({}, f.__s)), F(f.__s, D.getDerivedStateFromProps(v, f.__s))), m = f.props, h = f.state, f.__v = t, p) b && D.getDerivedStateFromProps == null && f.componentWillMount != null && f.componentWillMount(), b && f.componentDidMount != null && f.__h.push(f.componentDidMount);
else {
- if (y && D.getDerivedStateFromProps == null && v !== m && f.componentWillReceiveProps != null && f.componentWillReceiveProps(v, S), t.__v == n.__v || !f.__e && f.shouldComponentUpdate != null && !1 === f.shouldComponentUpdate(v, f.__s, S)) {
+ if (b && D.getDerivedStateFromProps == null && v !== m && f.componentWillReceiveProps != null && f.componentWillReceiveProps(v, S), t.__v == n.__v || !f.__e && f.shouldComponentUpdate != null && !1 === f.shouldComponentUpdate(v, f.__s, S)) {
t.__v != n.__v && (f.props = v, f.state = f.__s, f.__d = !1), t.__e = n.__e, t.__k = n.__k, t.__k.some(function(e) {
e && (e.__ = t);
- }), M.push.apply(f.__h, f._sb), f._sb = [], f.__h.length && o.push(f), s = I(n);
+ }), N.push.apply(f.__h, f._sb), f._sb = [], f.__h.length && o.push(f), s = R(n);
break n;
}
- f.componentWillUpdate != null && f.componentWillUpdate(v, f.__s, S), y && f.componentDidUpdate != null && f.__h.push(function() {
+ f.componentWillUpdate != null && f.componentWillUpdate(v, f.__s, S), b && f.componentDidUpdate != null && f.__h.push(function() {
f.componentDidUpdate(m, h, g);
});
}
- if (f.context = S, f.props = v, f.__P = e, f.__e = !1, C = b.__r, w = 0, y) f.state = f.__s, f.__d = !1, C && C(t), u = f.render(f.props, f.state, f.context), M.push.apply(f.__h, f._sb), f._sb = [];
+ if (f.context = S, f.props = v, f.__P = e, f.__e = !1, C = y.__r, w = 0, b) f.state = f.__s, f.__d = !1, C && C(t), u = f.render(f.props, f.state, f.context), N.push.apply(f.__h, f._sb), f._sb = [];
else do
f.__d = !1, C && C(t), u = f.render(f.props, f.state, f.context), f.state = f.__s;
while (f.__d && ++w < 25);
- f.state = f.__s, f.getChildContext != null && (r = P(P({}, r), f.getChildContext())), y && !p && f.getSnapshotBeforeUpdate != null && (g = f.getSnapshotBeforeUpdate(m, h)), T = u != null && u.type === F && u.key == null ? xe(u.props.children) : u, s = de(e, N(T) ? T : [T], t, n, r, i, a, o, s, c, l), f.base = t.__e, t.__u &= -161, f.__h.length && o.push(f), _ && (f.__E = f.__ = null);
+ f.state = f.__s, f.getChildContext != null && (r = F(F({}, r), f.getChildContext())), b && !p && f.getSnapshotBeforeUpdate != null && (g = f.getSnapshotBeforeUpdate(m, h)), T = u != null && u.type === ne && u.key == null ? ve(u.props.children) : u, s = ce(e, P(T) ? T : [T], t, n, r, i, a, o, s, c, l), f.base = t.__e, t.__u &= -161, f.__h.length && o.push(f), _ && (f.__E = f.__ = null);
} catch (e) {
if (o.length = d, t.__v = null, c || a != null) {
if (e.then) {
for (t.__u |= c ? 160 : 128; s && s.nodeType == 8 && s.nextSibling;) s = s.nextSibling;
a != null && (a[a.indexOf(s)] = null), t.__e = s;
- } else if (a != null) for (E = a.length; E--;) re(a[E]);
+ } else if (a != null) for (E = a.length; E--;) I(a[E]);
} else t.__e = n.__e;
- t.__k ??= n.__k || [], e.then || ye(t), b.__e(e, t, n);
+ t.__k ??= n.__k || [], e.then || ge(t), y.__e(e, t, n);
}
- } else a == null && t.__v == n.__v ? (t.__k = n.__k, t.__e = n.__e) : s = t.__e = Se(n.__e, t, n, r, i, a, o, c, l);
- return (u = b.diffed) && u(t), 128 & t.__u ? void 0 : s;
+ } else a == null && t.__v == n.__v ? (t.__k = n.__k, t.__e = n.__e) : s = t.__e = ye(n.__e, t, n, r, i, a, o, c, l);
+ return (u = y.diffed) && u(t), 128 & t.__u ? void 0 : s;
}
-function ye(e) {
- e && (e.__c && (e.__c.__e = !0), e.__k && e.__k.some(ye));
+function ge(e) {
+ e && (e.__c && (e.__c.__e = !0), e.__k && e.__k.some(ge));
}
-function be(e, t, n) {
- for (var r = 0; r < n.length; r++) Ce(n[r], n[++r], n[++r]);
- b.__c && b.__c(t, e), e.some(function(t) {
+function _e(e, t, n) {
+ for (var r = 0; r < n.length; r++) be(n[r], n[++r], n[++r]);
+ y.__c && y.__c(t, e), e.some(function(t) {
try {
e = t.__h, t.__h = [], e.some(function(e) {
e.call(t);
});
} catch (e) {
- b.__e(e, t.__v);
+ y.__e(e, t.__v);
}
});
}
-function xe(e) {
- return typeof e != "object" || !e || e.__b > 0 ? e : N(e) ? e.map(xe) : e.constructor === void 0 ? P({}, e) : null;
+function ve(e) {
+ return typeof e != "object" || !e || e.__b > 0 ? e : P(e) ? e.map(ve) : e.constructor === void 0 ? F({}, e) : null;
}
-function Se(e, t, n, r, i, a, o, s, c) {
- var l, u, d, f, p, m, h, g = n.props || te, _ = t.props, v = t.type;
- if (v == "svg" ? i = "http://www.w3.org/2000/svg" : v == "math" ? i = "http://www.w3.org/1998/Math/MathML" : i ||= "http://www.w3.org/1999/xhtml", a != null) {
- for (l = 0; l < a.length; l++) if ((p = a[l]) && "setAttribute" in p == !!v && (v ? p.localName == v : p.nodeType == 3)) {
+function ye(e, t, n, r, i, a, o, s, c) {
+ var l, u, d, f, p, m, h, g = n.props || M, _ = t.props, b = t.type;
+ if (b == "svg" ? i = "http://www.w3.org/2000/svg" : b == "math" ? i = "http://www.w3.org/1998/Math/MathML" : i ||= "http://www.w3.org/1999/xhtml", a != null) {
+ for (l = 0; l < a.length; l++) if ((p = a[l]) && "setAttribute" in p == !!b && (b ? p.localName == b : p.nodeType == 3)) {
e = p, a[l] = null;
break;
}
}
if (e == null) {
- if (v == null) return document.createTextNode(_);
- e = document.createElementNS(i, v, _.is && _), s &&= (b.__m && b.__m(t, a), !1), a = null;
+ if (b == null) return document.createTextNode(_);
+ e = document.createElementNS(i, b, _.is && _), s &&= (y.__m && y.__m(t, a), !1), a = null;
}
- if (v == null) g === _ || s && e.data == _ || (e.data = _);
+ if (b == null) g === _ || s && e.data == _ || (e.data = _);
else {
- if (a = v == "textarea" && _.defaultValue != null ? null : a && y.call(e.childNodes), !s && a != null) for (g = {}, l = 0; l < e.attributes.length; l++) g[(p = e.attributes[l]).name] = p.value;
- for (l in g) p = g[l], l == "dangerouslySetInnerHTML" ? d = p : l == "children" || l in _ || l == "value" && "defaultValue" in _ || l == "checked" && "defaultChecked" in _ || ge(e, l, null, p, i);
- for (l in _) p = _[l], l == "children" ? f = p : l == "dangerouslySetInnerHTML" ? u = p : l == "value" ? m = p : l == "checked" ? h = p : s && typeof p != "function" || g[l] === p || ge(e, l, p, g[l], i);
+ if (a = b == "textarea" && _.defaultValue != null ? null : a && v.call(e.childNodes), !s && a != null) for (g = {}, l = 0; l < e.attributes.length; l++) g[(p = e.attributes[l]).name] = p.value;
+ for (l in g) p = g[l], l == "dangerouslySetInnerHTML" ? d = p : l == "children" || l in _ || l == "value" && "defaultValue" in _ || l == "checked" && "defaultChecked" in _ || pe(e, l, null, p, i);
+ for (l in _) p = _[l], l == "children" ? f = p : l == "dangerouslySetInnerHTML" ? u = p : l == "value" ? m = p : l == "checked" ? h = p : s && typeof p != "function" || g[l] === p || pe(e, l, p, g[l], i);
if (u) s || d && (u.__html == d.__html || u.__html == e.innerHTML) || (e.innerHTML = u.__html), t.__k = [];
- else if (d && (e.innerHTML = ""), de(t.type == "template" ? e.content : e, N(f) ? f : [f], t, n, r, v == "foreignObject" ? "http://www.w3.org/1999/xhtml" : i, a, o, a ? a[0] : n.__k && I(n, 0), s, c), a != null) for (l = a.length; l--;) re(a[l]);
- s && v != "textarea" || (l = "value", v == "progress" && m == null ? e.removeAttribute("value") : m != null && (m !== e[l] || v == "progress" && !m || v == "option" && m != g[l]) && ge(e, l, m, g[l], i), l = "checked", h != null && h != e[l] && ge(e, l, h, g[l], i));
+ else if (d && (e.innerHTML = ""), ce(t.type == "template" ? e.content : e, P(f) ? f : [f], t, n, r, b == "foreignObject" ? "http://www.w3.org/1999/xhtml" : i, a, o, a ? a[0] : n.__k && R(n, 0), s, c), a != null) for (l = a.length; l--;) I(a[l]);
+ s && b != "textarea" || (l = "value", b == "progress" && m == null ? e.removeAttribute("value") : m != null && (m !== e[l] || b == "progress" && !m || b == "option" && m != g[l]) && pe(e, l, m, g[l], i), l = "checked", h != null && h != e[l] && pe(e, l, h, g[l], i));
}
return e;
}
-function Ce(e, t, n) {
+function be(e, t, n) {
try {
if (typeof e == "function") {
var r = typeof e.__u == "function";
r && e.__u(), r && t == null || (e.__u = e(t));
} else e.current = t;
} catch (e) {
- b.__e(e, n);
+ y.__e(e, n);
}
}
-function we(e, t, n) {
+function xe(e, t, n) {
var r, i;
- if (b.unmount && b.unmount(e), (r = e.ref) && (r.current && r.current != e.__e || Ce(r, null, t)), (r = e.__c) != null) {
+ if (y.unmount && y.unmount(e), (r = e.ref) && (r.current && r.current != e.__e || be(r, null, t)), (r = e.__c) != null) {
if (r.componentWillUnmount) try {
r.componentWillUnmount();
} catch (e) {
- b.__e(e, t);
+ y.__e(e, t);
}
r.base = r.__P = r.__n = null;
}
- if (r = e.__k) for (i = 0; i < r.length; i++) r[i] && we(r[i], t, n || typeof e.type != "function");
- n || re(e.__e), e.__c = e.__ = e.__e = void 0;
+ if (r = e.__k) for (i = 0; i < r.length; i++) r[i] && xe(r[i], t, n || typeof e.type != "function");
+ n || I(e.__e), e.__c = e.__ = e.__e = void 0;
}
-function Te(e, t, n) {
+function Se(e, t, n) {
return this.constructor(e, n);
}
-function Ee(e, t, n) {
+function Ce(e, t, n) {
var r, i, a, o;
- t == document && (t = document.documentElement), b.__ && b.__(e, t), i = (r = typeof n == "function") ? null : n && n.__k || t.__k, a = [], o = [], ve(t, e = (!r && n || t).__k = ie(F, null, [e]), i || te, te, t.namespaceURI, !r && n ? [n] : i ? null : t.firstChild ? y.call(t.childNodes) : null, a, !r && n ? n : i ? i.__e : t.firstChild, r, o), be(a, e, o), e.props.children = null;
+ t == document && (t = document.documentElement), y.__ && y.__(e, t), i = (r = typeof n == "function") ? null : n && n.__k || t.__k, a = [], o = [], he(t, e = (!r && n || t).__k = L(ne, null, [e]), i || M, M, t.namespaceURI, !r && n ? [n] : i ? null : t.firstChild ? v.call(t.childNodes) : null, a, !r && n ? n : i ? i.__e : t.firstChild, r, o), _e(a, e, o), e.props.children = null;
}
-y = M.slice, b = { __e: function(e, t, n, r) {
+v = N.slice, y = { __e: function(e, t, n, r) {
for (var i, a, o; t = t.__;) if ((i = t.__c) && !i.__) try {
if ((a = i.constructor) && a.getDerivedStateFromError != null && (i.setState(a.getDerivedStateFromError(e)), o = i.__d), i.componentDidCatch != null && (i.componentDidCatch(e, r || {}), o = i.__d), o) return i.__E = i;
} catch (t) {
e = t;
}
throw e;
-} }, x = 0, oe.prototype.setState = function(e, t) {
- var n = this.__s != null && this.__s != this.state ? this.__s : this.__s = P({}, this.state);
- typeof e == "function" && (e = e(P({}, n), this.props)), e && P(n, e), e != null && this.__v && (t && this._sb.push(t), le(this));
-}, oe.prototype.forceUpdate = function(e) {
- this.__v && (this.__e = !0, e && this.__h.push(e), le(this));
-}, oe.prototype.render = F, S = [], w = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, T = function(e, t) {
+} }, b = 0, re.prototype.setState = function(e, t) {
+ var n = this.__s != null && this.__s != this.state ? this.__s : this.__s = F({}, this.state);
+ typeof e == "function" && (e = e(F({}, n), this.props)), e && F(n, e), e != null && this.__v && (t && this._sb.push(t), oe(this));
+}, re.prototype.forceUpdate = function(e) {
+ this.__v && (this.__e = !0, e && this.__h.push(e), oe(this));
+}, re.prototype.render = ne, x = [], C = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, w = function(e, t) {
return e.__v.__b - t.__v.__b;
-}, ue.__r = 0, E = Math.random().toString(8), D = "__d" + E, O = "__a" + E, k = /(PointerCapture)$|Capture$/i, A = 0, j = _e(!1), ee = _e(!0);
+}, se.__r = 0, T = Math.random().toString(8), E = "__d" + T, D = "__a" + T, O = /(PointerCapture)$|Capture$/i, k = 0, A = me(!1), j = me(!0);
//#endregion
//#region src/sort-preferences.ts
-function De(e, t, n) {
+function we(e, t, n) {
return e === "seed" ? "" : e === t && n === "asc" ? "asc" : "desc";
}
//#endregion
//#region src/number-setting.ts
-var Oe = {
+var Te = {
loginDaysSetting: {
min: 1,
max: 365,
@@ -304,17 +304,17 @@ var Oe = {
fallback: 60
}
};
-function ke(e, t, n, r) {
+function Ee(e, t, n, r) {
return Number.isInteger(e) && e >= t && e <= n ? e : r;
}
-function Ae(e, t, n) {
+function De(e, t, n) {
let r = e.querySelector("input[type=number]"), i = e.querySelector("[role=switch]"), a = e.querySelector(".board-number-fields");
r && (r.disabled = n, t !== null && t > 0 && (r.value = String(t))), i && (i.disabled = n, t !== null && (i.checked = t > 0)), a && t !== null && (a.hidden = t === 0);
}
-function je(e, t, n, r, i) {
- let a = Oe[t];
+function Oe(e, t, n, r, i) {
+ let a = Te[t];
if (!a) return !1;
- let { min: o, max: s, unit: c, optional: l, fallback: u } = a, d = `peach.number.${t}`, f = ke(Number(localStorage.getItem(d)), o, s, r > 0 ? r : u), p = document.createElement("div");
+ let { min: o, max: s, unit: c, optional: l, fallback: u } = a, d = `peach.number.${t}`, f = Ee(Number(localStorage.getItem(d)), o, s, r > 0 ? r : u), p = document.createElement("div");
p.className = "board-optional-number";
let m = document.createElement("div");
m.className = "board-number-fields", m.hidden = !!l && r === 0;
@@ -349,37 +349,37 @@ function je(e, t, n, r, i) {
}
//#endregion
//#region src/board-metrics.ts
-var L = (e) => String(e ?? "").replace(/[&<>"']/g, (e) => ({
+var z = (e) => String(e ?? "").replace(/[&<>"']/g, (e) => ({
"&": "&amp;",
"<": "&lt;",
">": "&gt;",
"\"": "&quot;",
"'": "&#39;"
})[e]);
-function Me(e, t, n, r = "chart-no-axes-combined") {
- return `<span class="board-stat-label"><span class="board-stat-icon" aria-hidden="true"><svg viewBox="0 0 24 24"><use href="#i-${/^[a-z0-9-]+$/.test(r) ? r : "database"}"/></svg></span>${L(e)}</span><b class="board-stat-value">${L(t)}</b><small class="board-stat-footer">${L(n || "当前记录")}</small>`;
+function ke(e, t, n, r = "chart-no-axes-combined") {
+ return `<span class="board-stat-label"><span class="board-stat-icon" aria-hidden="true"><svg viewBox="0 0 24 24"><use href="#i-${/^[a-z0-9-]+$/.test(r) ? r : "database"}"/></svg></span>${z(e)}</span><b class="board-stat-value">${z(t)}</b><small class="board-stat-footer">${z(n || "当前记录")}</small>`;
}
-function Ne(e, t, n) {
+function Ae(e, t, n) {
if (!Number.isFinite(n) || n <= 0) return "";
let r = Math.max(0, Math.min(n, Number.isFinite(t) ? t : 0)), i = r / n * 100;
- return `<div class="board-job-progress" role="progressbar" aria-label="${L(e)}" aria-valuemin="0" aria-valuemax="${n}" aria-valuenow="${r}"><svg width="36" height="36" viewBox="0 0 36 36" aria-hidden="true"><circle class="board-job-track" cx="18" cy="18" r="15"/><circle class="board-job-fill" cx="18" cy="18" r="15" pathLength="100" stroke-dasharray="${i} ${100 - i}" transform="rotate(-90 18 18)"/></svg><span>${L(e)}<small>${Math.round(i)}%</small></span></div>`;
+ return `<div class="board-job-progress" role="progressbar" aria-label="${z(e)}" aria-valuemin="0" aria-valuemax="${n}" aria-valuenow="${r}"><svg width="36" height="36" viewBox="0 0 36 36" aria-hidden="true"><circle class="board-job-track" cx="18" cy="18" r="15"/><circle class="board-job-fill" cx="18" cy="18" r="15" pathLength="100" stroke-dasharray="${i} ${100 - i}" transform="rotate(-90 18 18)"/></svg><span>${z(e)}<small>${Math.round(i)}%</small></span></div>`;
}
-function Pe(e, t) {
+function je(e, t) {
let n = e.filter((e) => Number.isFinite(e.score) && e.score > 0), r = n.reduce((e, t) => e + t.score, 0);
if (!r) return "";
let i = 0, a = n.map((e, t) => {
- let n = e.score / r * 100, a = `<circle cx="100" cy="100" r="72" pathLength="100" fill="none" stroke="var(--chart-${t % 4})" stroke-width="22" stroke-dasharray="${n} ${100 - n}" stroke-dashoffset="${-i}"><title>${L(e.name)}:${e.score.toLocaleString()}</title></circle>`;
+ let n = e.score / r * 100, a = `<circle cx="100" cy="100" r="72" pathLength="100" fill="none" stroke="var(--chart-${t % 4})" stroke-width="22" stroke-dasharray="${n} ${100 - n}" stroke-dashoffset="${-i}"><title>${z(e.name)}:${e.score.toLocaleString()}</title></circle>`;
return i += n, a;
}).join("");
- return `<svg class="board-distribution" viewBox="0 0 200 200" role="img" aria-label="${L(t)}"><g transform="rotate(-90 100 100)">${a}</g><text x="100" y="100" text-anchor="middle" dominant-baseline="middle">${L(t)}</text></svg>`;
+ return `<svg class="board-distribution" viewBox="0 0 200 200" role="img" aria-label="${z(t)}"><g transform="rotate(-90 100 100)">${a}</g><text x="100" y="100" text-anchor="middle" dominant-baseline="middle">${z(t)}</text></svg>`;
}
-function Fe(e, t) {
+function Me(e, t) {
let n = e.filter((e) => Number.isFinite(e.score) && e.score > 0).slice().sort((e, t) => t.score - e.score).slice(0, 8);
if (!n.length) return "";
- let r = n[0].score, i = n.map((e) => `<li><span class="board-rank-fill" style="width:${(e.score / r * 100).toFixed(2)}%"></span><span>${L(e.name)}</span><b>${e.score.toLocaleString()}</b></li>`).join("");
- return `<ol class="board-ranked-chart" aria-label="${L(t)}">${i}</ol>`;
+ let r = n[0].score, i = n.map((e) => `<li><span class="board-rank-fill" style="width:${(e.score / r * 100).toFixed(2)}%"></span><span>${z(e.name)}</span><b>${e.score.toLocaleString()}</b></li>`).join("");
+ return `<ol class="board-ranked-chart" aria-label="${z(t)}">${i}</ol>`;
}
-function Ie(e, t) {
+function Ne(e, t) {
let n = e.filter((e) => Number.isFinite(e.score) && e.score > 0).slice().sort((e, t) => t.score - e.score).slice(0, 6);
if (n.length < 3) return "";
let r = Math.max(...n.map((e) => e.score)), i = n.length, a = (e, t) => {
@@ -392,30 +392,30 @@ function Ie(e, t) {
100
].map((e) => `<polygon points="${o(() => e)}" class="board-radar-grid"/>`).join(""), c = n.map((e, t) => {
let [n, r] = a(t, 116);
- return `<text x="${n}" y="${r}" text-anchor="${n < 145 ? "end" : n > 175 ? "start" : "middle"}">${L(e.name)}</text>`;
+ return `<text x="${n}" y="${r}" text-anchor="${n < 145 ? "end" : n > 175 ? "start" : "middle"}">${z(e.name)}</text>`;
}).join("");
- return `<svg class="board-radar" viewBox="0 0 320 280" role="img" aria-label="${L(t)}"><title>${L(n.map((e) => `${e.name} ${e.score}`).join(","))}</title>${s}<polygon points="${o((e) => n[e].score / r * 100)}" class="board-radar-value"/>${c}</svg>`;
+ return `<svg class="board-radar" viewBox="0 0 320 280" role="img" aria-label="${z(t)}"><title>${z(n.map((e) => `${e.name} ${e.score}`).join(","))}</title>${s}<polygon points="${o((e) => n[e].score / r * 100)}" class="board-radar-value"/>${c}</svg>`;
}
//#endregion
//#region node_modules/preact/hooks/dist/hooks.module.js
-var R, z, Le, Re, ze = 0, Be = [], B = b, Ve = B.__b, He = B.__r, Ue = B.diffed, We = B.__c, Ge = B.unmount, Ke = B.__;
-function qe(e, t) {
- B.__h && B.__h(z, e, ze || t), ze = 0;
- var n = z.__H || (z.__H = {
+var B, V, Pe, Fe, Ie = 0, Le = [], H = y, Re = H.__b, ze = H.__r, Be = H.diffed, Ve = H.__c, He = H.unmount, Ue = H.__;
+function We(e, t) {
+ H.__h && H.__h(V, e, Ie || t), Ie = 0;
+ var n = V.__H || (V.__H = {
__: [],
__h: []
});
return e >= n.__.length && n.__.push({}), n.__[e];
}
-function V(e) {
- return ze = 1, Je(rt, e);
+function U(e) {
+ return Ie = 1, Ge(et, e);
}
-function Je(e, t, n) {
- var r = qe(R++, 2);
- if (r.t = e, !r.__c && (r.__ = [n ? n(t) : rt(void 0, t), function(e) {
+function Ge(e, t, n) {
+ var r = We(B++, 2);
+ if (r.t = e, !r.__c && (r.__ = [n ? n(t) : et(void 0, t), function(e) {
var t = r.__N ? r.__N[0] : r.__[0], n = r.t(t, e);
t !== n && (r.__N = [n, r.__[1]], r.__c.setState({}));
- }], r.__c = z, !z.__f)) {
+ }], r.__c = V, !V.__f)) {
var i = function(e, t, n) {
if (!r.__c.__H) return !0;
var i = !1, o = r.__c.props !== e;
@@ -431,116 +431,116 @@ function Je(e, t, n) {
}
return !i || o;
};
- z.__f = !0;
- var a = z.shouldComponentUpdate, o = z.componentWillUpdate;
- z.componentWillUpdate = function(e, t, n) {
+ V.__f = !0;
+ var a = V.shouldComponentUpdate, o = V.componentWillUpdate;
+ V.componentWillUpdate = function(e, t, n) {
if (this.__e) {
var r = a;
a = void 0, i(e, t, n), a = r;
}
o && o.call(this, e, t, n);
- }, z.shouldComponentUpdate = i;
+ }, V.shouldComponentUpdate = i;
}
return r.__N || r.__;
}
-function H(e, t) {
- var n = qe(R++, 3);
- !B.__s && nt(n.__H, t) && (n.__ = e, n.u = t, z.__H.__h.push(n));
+function W(e, t) {
+ var n = We(B++, 3);
+ !H.__s && $e(n.__H, t) && (n.__ = e, n.u = t, V.__H.__h.push(n));
}
-function Ye(e, t) {
- var n = qe(R++, 4);
- !B.__s && nt(n.__H, t) && (n.__ = e, n.u = t, z.__h.push(n));
+function Ke(e, t) {
+ var n = We(B++, 4);
+ !H.__s && $e(n.__H, t) && (n.__ = e, n.u = t, V.__h.push(n));
}
-function U(e) {
- return ze = 5, Xe(function() {
+function G(e) {
+ return Ie = 5, qe(function() {
return { current: e };
}, []);
}
-function Xe(e, t) {
- var n = qe(R++, 7);
- return nt(n.__H, t) && (n.__ = e(), n.__H = t, n.__h = e), n.__;
+function qe(e, t) {
+ var n = We(B++, 7);
+ return $e(n.__H, t) && (n.__ = e(), n.__H = t, n.__h = e), n.__;
}
-function Ze() {
- for (var e; e = Be.shift();) {
+function Je() {
+ for (var e; e = Le.shift();) {
var t = e.__H;
if (e.__P && t) try {
- t.__h.some(et), t.__h.some(tt), t.__h = [];
+ t.__h.some(Ze), t.__h.some(Qe), t.__h = [];
} catch (n) {
- t.__h = [], B.__e(n, e.__v);
+ t.__h = [], H.__e(n, e.__v);
}
}
}
-B.__b = function(e) {
- z = null, Ve && Ve(e);
-}, B.__ = function(e, t) {
- e && t.__k && t.__k.__m && (e.__m = t.__k.__m), Ke && Ke(e, t);
-}, B.__r = function(e) {
- He && He(e), R = 0;
- var t = (z = e.__c).__H;
- t && (Le === z ? (t.__h = [], z.__h = [], t.__.some(function(e) {
+H.__b = function(e) {
+ V = null, Re && Re(e);
+}, H.__ = function(e, t) {
+ e && t.__k && t.__k.__m && (e.__m = t.__k.__m), Ue && Ue(e, t);
+}, H.__r = function(e) {
+ ze && ze(e), B = 0;
+ var t = (V = e.__c).__H;
+ t && (Pe === V ? (t.__h = [], V.__h = [], t.__.some(function(e) {
e.__N && (e.__ = e.__N), e.u = e.__N = void 0;
- })) : (t.__h.some(et), t.__h.some(tt), t.__h = [], R = 0)), Le = z;
-}, B.diffed = function(e) {
- Ue && Ue(e);
+ })) : (t.__h.some(Ze), t.__h.some(Qe), t.__h = [], B = 0)), Pe = V;
+}, H.diffed = function(e) {
+ Be && Be(e);
var t = e.__c;
- t && t.__H && (t.__H.__h.length && (Be.push(t) !== 1 && Re === B.requestAnimationFrame || ((Re = B.requestAnimationFrame) || $e)(Ze)), t.__H.__.some(function(e) {
+ t && t.__H && (t.__H.__h.length && (Le.push(t) !== 1 && Fe === H.requestAnimationFrame || ((Fe = H.requestAnimationFrame) || Xe)(Je)), t.__H.__.some(function(e) {
e.u &&= (e.__H = e.u, void 0);
- })), Le = z = null;
-}, B.__c = function(e, t) {
+ })), Pe = V = null;
+}, H.__c = function(e, t) {
t.some(function(e) {
try {
- e.__h.some(et), e.__h = e.__h.filter(function(e) {
- return !e.__ || tt(e);
+ e.__h.some(Ze), e.__h = e.__h.filter(function(e) {
+ return !e.__ || Qe(e);
});
} catch (n) {
t.some(function(e) {
e.__h &&= [];
- }), t = [], B.__e(n, e.__v);
+ }), t = [], H.__e(n, e.__v);
}
- }), We && We(e, t);
-}, B.unmount = function(e) {
- Ge && Ge(e);
+ }), Ve && Ve(e, t);
+}, H.unmount = function(e) {
+ He && He(e);
var t, n = e.__c;
n && n.__H && (n.__H.__.some(function(e) {
try {
- et(e);
+ Ze(e);
} catch (e) {
t = e;
}
- }), n.__H = void 0, t && B.__e(t, n.__v));
+ }), n.__H = void 0, t && H.__e(t, n.__v));
};
-var Qe = typeof requestAnimationFrame == "function";
-function $e(e) {
+var Ye = typeof requestAnimationFrame == "function";
+function Xe(e) {
var t, n = function() {
- clearTimeout(r), Qe && cancelAnimationFrame(t), setTimeout(e);
+ clearTimeout(r), Ye && cancelAnimationFrame(t), setTimeout(e);
}, r = setTimeout(n, 35);
- Qe && (t = requestAnimationFrame(n));
+ Ye && (t = requestAnimationFrame(n));
}
-function et(e) {
- var t = z, n = e.__c;
- typeof n == "function" && (e.__c = void 0, n()), z = t;
+function Ze(e) {
+ var t = V, n = e.__c;
+ typeof n == "function" && (e.__c = void 0, n()), V = t;
}
-function tt(e) {
- var t = z;
- e.__c = e.__(), z = t;
+function Qe(e) {
+ var t = V;
+ e.__c = e.__(), V = t;
}
-function nt(e, t) {
+function $e(e, t) {
return !e || e.length !== t.length || t.some(function(t, n) {
return t !== e[n];
});
}
-function rt(e, t) {
+function et(e, t) {
return typeof t == "function" ? t(e) : t;
}
//#endregion
//#region src/api.ts
-var it = class extends Error {
+var tt = class extends Error {
status;
body;
constructor(e, t, r = null) {
super(n(e, t)), this.name = "ApiError", this.status = t, this.body = r;
}
-}, at = (e) => {
+}, nt = (e) => {
if (!e || typeof e != "object") return "";
let t = e;
for (let e of [
@@ -552,8 +552,8 @@ var it = class extends Error {
if (typeof n == "string" && n) return n;
}
return "";
-}, W = (e) => n(e);
-async function G(e, t) {
+}, rt = (e) => n(e);
+async function it(e, t) {
let n = await fetch(e, {
headers: { Accept: "application/json" },
credentials: "same-origin",
@@ -562,10 +562,10 @@ async function G(e, t) {
try {
r = await n.json();
} catch {}
- if (!n.ok) throw new it(at(r) || `请求失败(${n.status})`, n.status);
+ if (!n.ok) throw new tt(nt(r) || `请求失败(${n.status})`, n.status);
return r;
}
-async function K(e, t, n = "POST", r) {
+async function at(e, t, n = "POST", r) {
let i = await fetch(e, {
method: n,
...r ? { signal: r } : {},
@@ -579,13 +579,13 @@ async function K(e, t, n = "POST", r) {
try {
a = await i.json();
} catch {}
- if (!i.ok) throw new it(at(a) || `请求失败(${i.status})`, i.status, a);
+ if (!i.ok) throw new tt(nt(a) || `请求失败(${i.status})`, i.status, a);
return a;
}
//#endregion
//#region src/jobs.ts
function ot(e, t = 0, n = 0) {
- return n > 0 ? Ne(e, t, n) : l(e);
+ return n > 0 ? Ae(e, t, n) : c(e);
}
async function st(e) {
let t = e.pause || ((e) => new Promise((t) => setTimeout(t, e))), n = 0;
@@ -603,26 +603,26 @@ async function st(e) {
}
}
function ct(e) {
- let t = e.note || ((e) => d(e, {
+ let t = e.note || ((e) => u(e, {
label: "任务状态",
variant: "error"
- })), n = e.loading || l, r = e.progress || ((e, t, n) => ot(n || `已处理 ${e} / ${t}`, e, t)), i = e.container || ((e) => `<section class="followtask" data-geist-fieldset aria-label="任务进度"><div class="geist-fieldset-content">${e}</div></section>`), a = document.createElement("div");
+ })), n = e.loading || c, r = e.progress || ((e, t, n) => ot(n || `已处理 ${e} / ${t}`, e, t)), i = e.container || ((e) => `<section class="followtask" data-geist-fieldset aria-label="任务进度"><div class="geist-fieldset-content">${e}</div></section>`), a = document.createElement("div");
e.host.hidden = !0, a.dataset.followJob = "", a.setAttribute("aria-live", "polite"), e.host.prepend(a);
- let o = e.storageKey || "peach-follow-job", s = sessionStorage.getItem(o) || void 0, c = !1;
+ let o = e.storageKey || "peach-follow-job", s = sessionStorage.getItem(o) || void 0, l = !1;
st({
read: e.read,
- active: () => !c && e.active() && a.isConnected,
+ active: () => !l && e.active() && a.isConnected,
keepWatching: e.watchIdle !== !1,
- render: (l) => {
- let u = l.status === "running";
+ render: (c) => {
+ let u = c.status === "running";
if (e.host.hidden = !u, e.busy(u), u) {
- s = l.job_id, s && sessionStorage.setItem(o, s);
- let t = l.current, c = (t?.attempt || 1) > 1 ? ` · 第 ${t?.attempt}/${t?.max_attempts} 次尝试${t?.retry_in ? `,${t.retry_in} 秒后重试` : ""}` : "", u = (l.message || (e.title ? e.title + (l.total ? `:已完成 ${l.checked || 0}/${l.total}` : "") : "") || (l.total ? `${l.older ? "抓取历史" : "检查更新"}:已完成 ${l.checked || 0}/${l.total} 个来源` : "正在准备检查任务…")) + (t ? ` · ${t.label || t.provider || ""}${c}` : ""), d = (l.total || 0) > 0 ? r(l.checked || 0, l.total, u) : n(u);
+ s = c.job_id, s && sessionStorage.setItem(o, s);
+ let t = c.current, l = (t?.attempt || 1) > 1 ? ` · 第 ${t?.attempt}/${t?.max_attempts} 次尝试${t?.retry_in ? `,${t.retry_in} 秒后重试` : ""}` : "", u = (c.message || (e.title ? e.title + (c.total ? `:已完成 ${c.checked || 0}/${c.total}` : "") : "") || (c.total ? `${c.older ? "抓取历史" : "检查更新"}:已完成 ${c.checked || 0}/${c.total} 个来源` : "正在准备检查任务…")) + (t ? ` · ${t.label || t.provider || ""}${l}` : ""), d = (c.total || 0) > 0 ? r(c.checked || 0, c.total, u) : n(u);
a.innerHTML = i(d);
- } else if (s && s === l.job_id) s = void 0, c = !0, e.host.hidden = l.status !== "failed", sessionStorage.removeItem(o), a.innerHTML = l.status === "failed" ? t(l.error || "检查失败") : "", e.complete(l);
+ } else if (s && s === c.job_id) s = void 0, l = !0, e.host.hidden = c.status !== "failed", sessionStorage.removeItem(o), a.innerHTML = c.status === "failed" ? t(c.error || "检查失败") : "", e.complete(c);
else {
- if (s && l.status === "idle") {
- e.host.hidden = !1, a.innerHTML = t("任务状态已失效,请重新发起任务"), sessionStorage.removeItem(o), c = !0;
+ if (s && c.status === "idle") {
+ e.host.hidden = !1, a.innerHTML = t("任务状态已失效,请重新发起任务"), sessionStorage.removeItem(o), l = !0;
return;
}
a.innerHTML = "";
@@ -637,7 +637,7 @@ function ct(e) {
//#region node_modules/preact/jsx-runtime/dist/jsxRuntime.module.js
var lt = 0;
Array.isArray;
-function q(e, t, n, r, i, a) {
+function K(e, t, n, r, i, a) {
t ||= {};
var o, s, c = t;
if ("ref" in c) for (s in c = {}, t) s == "ref" ? o = t[s] : c[s] = t[s];
@@ -659,39 +659,39 @@ function q(e, t, n, r, i, a) {
__self: a
};
if (typeof e == "function" && (o = e.defaultProps)) for (s in o) c[s] === void 0 && (c[s] = o[s]);
- return b.vnode && b.vnode(l), l;
+ return y.vnode && y.vnode(l), l;
}
//#endregion
//#region src/link-button.tsx
function ut({ href: e, children: t }) {
- return /* @__PURE__ */ q("a", {
+ return /* @__PURE__ */ K("a", {
class: "board-link-button",
href: e,
- children: [/* @__PURE__ */ q("span", { children: t }), /* @__PURE__ */ q("svg", {
+ children: [/* @__PURE__ */ K("span", { children: t }), /* @__PURE__ */ K("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
- children: /* @__PURE__ */ q("use", { href: "#i-arrow-up" })
+ children: /* @__PURE__ */ K("use", { href: "#i-arrow-up" })
})]
});
}
//#endregion
//#region src/split-action.tsx
function dt({ id: e, label: t, actions: n, busy: r }) {
- let i = U(null), a = U();
- Ye(() => {
+ let i = G(null), a = G();
+ Ke(() => {
let e = i.current;
- return a.current = g(e, e.querySelector(".splittoggle"), e.querySelector("[role=menu]")), () => a.current?.setOpen(!1);
- }, []), Ye(() => {
- i.current?.querySelectorAll("button").forEach((e) => h(e, r)), r && a.current?.setOpen(!1);
+ return a.current = h(e, e.querySelector(".splittoggle"), e.querySelector("[role=menu]")), () => a.current?.setOpen(!1);
+ }, []), Ke(() => {
+ i.current?.querySelectorAll("button").forEach((e) => m(e, r)), r && a.current?.setOpen(!1);
}, [r]);
- let o = (e) => /* @__PURE__ */ q("svg", {
+ let o = (e) => /* @__PURE__ */ K("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
- children: /* @__PURE__ */ q("use", { href: `#i-${e}` })
+ children: /* @__PURE__ */ K("use", { href: `#i-${e}` })
}), s = (e) => {
r || (a.current?.setOpen(!1), e.run());
};
- return /* @__PURE__ */ q("div", {
+ return /* @__PURE__ */ K("div", {
ref: i,
class: "splitbutton board-button-group primary",
onClickCapture: (e) => {
@@ -708,13 +708,13 @@ function dt({ id: e, label: t, actions: n, busy: r }) {
e.key === "Tab" && a.current?.setOpen(!1);
},
children: [
- /* @__PURE__ */ q("button", {
+ /* @__PURE__ */ K("button", {
type: "button",
class: "splitmain geist-button primary",
onClick: () => s(n[0]),
children: [o(n[0].icon), n[0].label]
}),
- /* @__PURE__ */ q("button", {
+ /* @__PURE__ */ K("button", {
type: "button",
class: "splittoggle geist-button primary",
"aria-label": t,
@@ -723,16 +723,16 @@ function dt({ id: e, label: t, actions: n, busy: r }) {
"aria-controls": e,
children: o("chevron-down")
}),
- /* @__PURE__ */ q("div", {
+ /* @__PURE__ */ K("div", {
class: "popmenu cardmenupanel",
id: e,
role: "menu",
hidden: !0,
- children: n.map((e) => /* @__PURE__ */ q("button", {
+ children: n.map((e) => /* @__PURE__ */ K("button", {
type: "button",
role: "menuitem",
onClick: () => s(e),
- children: [o(e.icon), /* @__PURE__ */ q("span", { children: e.label })]
+ children: [o(e.icon), /* @__PURE__ */ K("span", { children: e.label })]
}, e.label))
})
]
@@ -740,7 +740,7 @@ function dt({ id: e, label: t, actions: n, busy: r }) {
}
//#endregion
//#region src/islands/library-processing.tsx
-var ft = (e, t) => G("/api/library-processing", t), pt = {
+var ft = (e, t) => it("/api/library-processing", t), pt = {
reading_local: "读取本地资料",
querying_metadata: "查询外部资料",
fetching_cover: "采集缺失封面",
@@ -770,15 +770,15 @@ function yt(e, t, n) {
}
}
function bt({ data: e, error: t, toast: n, onComplete: r, mode: i, monitor: a, preview: o }) {
- let [s, l] = V(e || { status: "idle" }), [u, p] = V(t), [m, h] = V(!1), [g, v] = V(!1), y = U(new AbortController()), b = U(0), x = U(s.status), S = U(null);
- H(() => {
- S.current && _(S.current, ".geist-note-details", "library-issues");
- }, [s, u]);
- let C = m || s.status === "running";
+ let [c, l] = U(e || { status: "idle" }), [f, p] = U(t), [m, h] = U(!1), [_, v] = U(!1), y = G(new AbortController()), b = G(0), x = G(c.status), S = G(null);
+ W(() => {
+ S.current && g(S.current, ".geist-note-details", "library-issues");
+ }, [c, f]);
+ let C = m || c.status === "running";
async function w() {
let e = ++b.current;
await st({
- read: (e) => G("/api/library-processing", e),
+ read: (e) => it("/api/library-processing", e),
active: () => !y.current.signal.aborted && b.current === e,
keepWatching: i === "notice" || !!a,
render: (e) => {
@@ -789,73 +789,73 @@ function bt({ data: e, error: t, toast: n, onComplete: r, mode: i, monitor: a, p
disconnected: () => p("连接中断,正在重新读取处理进度")
});
}
- H(() => (!o && (s.status === "running" || i === "notice" || a) && w(), () => y.current.abort()), []);
+ W(() => (!o && (c.status === "running" || i === "notice" || a) && w(), () => y.current.abort()), []);
async function T(e) {
if (!(C || o)) {
h(!0), p(""), v(!1);
try {
- let t = await K("/api/library-processing", e, "POST", y.current.signal);
+ let t = await at("/api/library-processing", e, "POST", y.current.signal);
if (y.current.signal.aborted) return;
x.current = t.status, l(t), h(!1), await w();
} catch (e) {
- y.current.signal.aborted || (p(W(e)), h(!1));
+ y.current.signal.aborted || (p(rt(e)), h(!1));
}
}
}
let E = () => void T({}), D = () => {
- !s.job_id || !s.retryable_asset_ids?.length || T({
- job_id: s.job_id,
- retry: s.retryable_asset_ids
+ !c.job_id || !c.retryable_asset_ids?.length || T({
+ job_id: c.job_id,
+ retry: c.retryable_asset_ids
});
};
if (i === "notice") {
- if (!u && s.status !== "running" && s.status !== "failed") return null;
- let e = u || (s.status === "failed" ? "扫描与资料采集未完成" : gt(s) + (s.total ? ` · ${s.checked || 0} / ${s.total}` : ""));
- return /* @__PURE__ */ q("div", { dangerouslySetInnerHTML: { __html: f(e, {
- variant: s.status === "failed" ? "error" : u || s.stalled ? "warning" : "gray",
+ if (!f && c.status !== "running" && c.status !== "failed") return null;
+ let e = f || (c.status === "failed" ? "扫描与资料采集未完成" : gt(c) + (c.total ? ` · ${c.checked || 0} / ${c.total}` : ""));
+ return /* @__PURE__ */ K("div", { dangerouslySetInnerHTML: { __html: d(e, {
+ variant: c.status === "failed" ? "error" : f || c.stalled ? "warning" : "gray",
href: "/data-cleanup#libraryProcessing",
- label: u || s.status === "failed" ? "查看并处理" : "查看进度",
- value: s.checked || 0,
- ...s.status === "running" && s.total !== void 0 ? { max: s.total } : {}
+ label: f || c.status === "failed" ? "查看并处理" : "查看进度",
+ value: c.checked || 0,
+ ...c.status === "running" && c.total !== void 0 ? { max: c.total } : {}
}) } });
}
- let O = s.issue_preview || [], k = ht(s.notes || {}), A = s.status === "failed" && !!s.retryable_asset_ids?.length, j = O.length ? {
- label: s.issues_truncated ? `问题清单:共 ${s.issue_count || 0} 项,展开查看前 ${O.length} 项` : `问题清单:共 ${s.issue_count || 0} 项`,
+ let O = c.issue_preview || [], k = ht(c.notes || {}), A = c.status === "failed" && !!c.retryable_asset_ids?.length, j = O.length ? {
+ label: c.issues_truncated ? `问题清单:共 ${c.issue_count || 0} 项,展开查看前 ${O.length} 项` : `问题清单:共 ${c.issue_count || 0} 项`,
items: O.map((e) => ({
label: e.title || (e.asset_id ? `视频 ${e.asset_id}` : "媒体来源"),
href: e.asset_id ? `/item/${e.asset_id}` : "",
note: e.message,
hint: e.path || ""
})),
- footnote: s.issues_log ? `完整记录:${s.issues_log}` : ""
+ footnote: c.issues_log ? `完整记录:${c.issues_log}` : ""
} : null;
- return /* @__PURE__ */ q(F, { children: [/* @__PURE__ */ q("section", {
+ return /* @__PURE__ */ K(ne, { children: [/* @__PURE__ */ K("section", {
class: "cleanupfieldset",
"data-geist-fieldset": !0,
"aria-labelledby": "cleanupScrapingTitle",
- children: [/* @__PURE__ */ q("div", {
+ children: [/* @__PURE__ */ K("div", {
class: "geist-fieldset-content library-processing",
children: [
- /* @__PURE__ */ q("div", { dangerouslySetInnerHTML: { __html: c("cleanupScrapingTitle", "扫描与采集") } }),
- /* @__PURE__ */ q("p", { children: "扫描媒体文件夹,导入已有资料,采集缺失信息。两段也可以分开跑:新盘刚接上时先只扫描,几万个文件登记完就能用;采集被网络拖住时只重跑采集,不必再扫一遍磁盘。" }),
- s.status === "running" && /* @__PURE__ */ q("div", {
+ /* @__PURE__ */ K("div", { dangerouslySetInnerHTML: { __html: s("cleanupScrapingTitle", "扫描与采集") } }),
+ /* @__PURE__ */ K("p", { children: "扫描媒体文件夹,导入已有资料,采集缺失信息。两段也可以分开跑:新盘刚接上时先只扫描,几万个文件登记完就能用;采集被网络拖住时只重跑采集,不必再扫一遍磁盘。" }),
+ c.status === "running" && /* @__PURE__ */ K("div", {
"aria-live": "polite",
- dangerouslySetInnerHTML: { __html: ot(s.total ? `${gt(s)} · ${s.checked || 0} / ${s.total} 个视频` : gt(s), s.checked, s.total) }
+ dangerouslySetInnerHTML: { __html: ot(c.total ? `${gt(c)} · ${c.checked || 0} / ${c.total} 个视频` : gt(c), c.checked, c.total) }
})
]
- }), /* @__PURE__ */ q("footer", {
+ }), /* @__PURE__ */ K("footer", {
class: "geist-fieldset-footer",
"data-geist-fieldset-footer": !0,
children: [
- /* @__PURE__ */ q(ut, {
+ /* @__PURE__ */ K(ut, {
href: "/scraping",
children: "来源和凭证"
}),
- !!s.candidates && /* @__PURE__ */ q(ut, {
+ !!c.candidates && /* @__PURE__ */ K(ut, {
href: "/review",
children: "复核资料"
}),
- (s.status !== "failed" || !A) && /* @__PURE__ */ q(dt, {
+ (c.status !== "failed" || !A) && /* @__PURE__ */ K(dt, {
id: "libraryProcessingMenu",
label: "更多扫描与采集方式",
busy: C,
@@ -879,39 +879,39 @@ function bt({ data: e, error: t, toast: n, onComplete: r, mode: i, monitor: a, p
})
]
})]
- }), /* @__PURE__ */ q("div", {
+ }), /* @__PURE__ */ K("div", {
class: "library-processing-outcome",
"aria-live": "polite",
ref: S,
children: [
- s.status === "running" && s.stalled && /* @__PURE__ */ q("div", {
+ c.status === "running" && c.stalled && /* @__PURE__ */ K("div", {
class: "library-processing-stalled",
- dangerouslySetInnerHTML: { __html: d("这个项目处理时间较长,暂时没有新进展。可以继续等待,或在任务结束后重试未完成项。", {
+ dangerouslySetInnerHTML: { __html: u("这个项目处理时间较长,暂时没有新进展。可以继续等待,或在任务结束后重试未完成项。", {
variant: "warning",
label: "处理较慢",
filled: !0
}) }
}),
- (u || s.status === "failed") && /* @__PURE__ */ q("div", {
+ (f || c.status === "failed") && /* @__PURE__ */ K("div", {
role: "alert",
onClick: (e) => {
e.target.closest("[data-note-action]") && D();
},
- dangerouslySetInnerHTML: { __html: d(u || s.error || "处理未完成,请重试", {
+ dangerouslySetInnerHTML: { __html: u(f || c.error || "处理未完成,请重试", {
variant: "error",
filled: !0,
actionLabel: A ? "重试未完成项" : "",
details: j
}) }
}),
- g && /* @__PURE__ */ q("div", {
+ _ && /* @__PURE__ */ K("div", {
class: "library-processing-result",
- dangerouslySetInnerHTML: { __html: d(`已扫描 ${s.scanned || 0} 个文件,识别 ${s.identified || 0} 个番号,整理 ${s.candidates || 0} 组资料候选。`, {
+ dangerouslySetInnerHTML: { __html: u(`已扫描 ${c.scanned || 0} 个文件,识别 ${c.identified || 0} 个番号,整理 ${c.candidates || 0} 组资料候选。`, {
variant: "success",
label: "处理完成"
}) }
}),
- s.status !== "running" && !!k && /* @__PURE__ */ q("div", { dangerouslySetInnerHTML: { __html: d(k + (s.issues_log ? ` 完整记录:${s.issues_log}` : ""), { variant: "secondary" }) } })
+ c.status !== "running" && !!k && /* @__PURE__ */ K("div", { dangerouslySetInnerHTML: { __html: u(k + (c.issues_log ? ` 完整记录:${c.issues_log}` : ""), { variant: "secondary" }) } })
]
})] });
}
@@ -984,7 +984,7 @@ function wt(e, t = !1, n = !1) {
}
var Tt = "peach-taste-guide-dismissed";
function Et(e, t) {
- _(e, ".taste-history-guide", "taste-guide-collapse");
+ g(e, ".taste-history-guide", "taste-guide-collapse");
let n = e.querySelector(".taste-history-guide");
n?.querySelector(".taste-guide-skip")?.addEventListener("click", () => {
t.setItem(Tt, "1"), n.remove();
@@ -1004,9 +1004,9 @@ var Dt = [
["complete", "任务完成"],
["expired", "状态已失效"],
["paused", "来源已暂停"]
-], J = ({ html: e }) => /* @__PURE__ */ q("div", { dangerouslySetInnerHTML: { __html: e } });
+], q = ({ html: e }) => /* @__PURE__ */ K("div", { dangerouslySetInnerHTML: { __html: e } });
function Ot() {
- let [e, t] = V("running"), [n, r] = V(0), [i, a] = V(document.documentElement.dataset.theme === "dark"), [o, s] = V(38), c = {
+ let [e, t] = U("running"), [n, r] = U(0), [i, a] = U(document.documentElement.dataset.theme === "dark"), [o, s] = U(38), l = {
status: e === "failed" ? "failed" : [
"running",
"preparing",
@@ -1027,20 +1027,20 @@ function Ot() {
}] : [],
issues_log: e === "failed" ? "peach-data\\state\\library-processing-preview.issues.jsonl" : "",
retryable_asset_ids: e === "failed" ? [7] : []
- }, u = e === "disconnected" ? "连接中断,正在重新读取处理进度" : "";
- return /* @__PURE__ */ q("main", {
+ }, f = e === "disconnected" ? "连接中断,正在重新读取处理进度" : "";
+ return /* @__PURE__ */ K("main", {
class: "board-state-preview",
children: [
- /* @__PURE__ */ q("header", { children: [/* @__PURE__ */ q("div", { children: [/* @__PURE__ */ q("h1", { children: "运行状态预览" }), /* @__PURE__ */ q("p", { children: "演示数据 · 不连接任务接口,不执行扫描或写入。" })] }), /* @__PURE__ */ q("button", {
+ /* @__PURE__ */ K("header", { children: [/* @__PURE__ */ K("div", { children: [/* @__PURE__ */ K("h1", { children: "运行状态预览" }), /* @__PURE__ */ K("p", { children: "演示数据 · 不连接任务接口,不执行扫描或写入。" })] }), /* @__PURE__ */ K("button", {
class: "geist-button",
onClick: () => {
document.documentElement.dataset.theme = i ? "light" : "dark", a(!i);
},
children: i ? "浅色" : "深色"
})] }),
- /* @__PURE__ */ q("nav", {
+ /* @__PURE__ */ K("nav", {
"aria-label": "演示状态",
- children: Dt.map(([i, a]) => /* @__PURE__ */ q("button", {
+ children: Dt.map(([i, a]) => /* @__PURE__ */ K("button", {
class: "geist-button",
"aria-pressed": e === i,
onClick: () => {
@@ -1049,31 +1049,31 @@ function Ot() {
children: a
}))
}),
- /* @__PURE__ */ q("div", {
+ /* @__PURE__ */ K("div", {
class: "board-preview-tools",
- children: [/* @__PURE__ */ q("label", { children: [
+ children: [/* @__PURE__ */ K("label", { children: [
"任务进度 ",
- /* @__PURE__ */ q("input", {
+ /* @__PURE__ */ K("input", {
type: "range",
min: "0",
max: "100",
value: o,
onInput: (e) => s(Number(e.currentTarget.value))
}),
- /* @__PURE__ */ q("output", { children: [o, "%"] })
- ] }), /* @__PURE__ */ q("button", {
+ /* @__PURE__ */ K("output", { children: [o, "%"] })
+ ] }), /* @__PURE__ */ K("button", {
class: "geist-button",
onClick: () => r(n + 1),
children: "重播状态"
})]
}),
- /* @__PURE__ */ q("section", {
+ /* @__PURE__ */ K("section", {
"aria-label": "页面横幅",
children: [
- /* @__PURE__ */ q("h2", { children: "全局任务横幅" }),
- /* @__PURE__ */ q(bt, {
- data: c,
- error: u,
+ /* @__PURE__ */ K("h2", { children: "全局任务横幅" }),
+ /* @__PURE__ */ K(bt, {
+ data: l,
+ error: f,
mode: "notice",
preview: !0,
toast: () => {}
@@ -1085,66 +1085,66 @@ function Ot() {
"retrying",
"reconnected",
"failed"
- ].includes(e) && /* @__PURE__ */ q("p", { children: "此状态不常驻全局横幅。" })
+ ].includes(e) && /* @__PURE__ */ K("p", { children: "此状态不常驻全局横幅。" })
]
}),
- /* @__PURE__ */ q("section", { children: [
- /* @__PURE__ */ q("h2", { children: "数据管理 · 扫描与采集" }),
- e === "loading" ? /* @__PURE__ */ q(J, { html: Ct() }) : /* @__PURE__ */ q("div", {
+ /* @__PURE__ */ K("section", { children: [
+ /* @__PURE__ */ K("h2", { children: "数据管理 · 扫描与采集" }),
+ e === "loading" ? /* @__PURE__ */ K(q, { html: Ct() }) : /* @__PURE__ */ K("div", {
class: "cleanupgrid",
- children: /* @__PURE__ */ q("div", {
+ children: /* @__PURE__ */ K("div", {
id: "libraryProcessing",
class: "cleanupscraping",
- children: /* @__PURE__ */ q(bt, {
- data: c,
- error: u,
+ children: /* @__PURE__ */ K(bt, {
+ data: l,
+ error: f,
preview: !0,
toast: () => {}
}, `${e}-${n}-${o}`)
})
}),
- e === "complete" && /* @__PURE__ */ q(J, { html: d("已完成扫描与资料采集", {
+ e === "complete" && /* @__PURE__ */ K(q, { html: u("已完成扫描与资料采集", {
variant: "success",
label: "任务完成"
}) }),
- e === "expired" && /* @__PURE__ */ q(J, { html: d("任务状态已失效,请重新发起任务", { variant: "warning" }) }),
- e === "paused" && /* @__PURE__ */ q("span", {
+ e === "expired" && /* @__PURE__ */ K(q, { html: u("任务状态已失效,请重新发起任务", { variant: "warning" }) }),
+ e === "paused" && /* @__PURE__ */ K("span", {
class: "sbadge paused",
children: "已暂停"
})
] }),
- /* @__PURE__ */ q("section", { children: [/* @__PURE__ */ q("h2", { children: "关注检查与资源同步" }), /* @__PURE__ */ q("div", {
+ /* @__PURE__ */ K("section", { children: [/* @__PURE__ */ K("h2", { children: "关注检查与资源同步" }), /* @__PURE__ */ K("div", {
class: "board-preview-grid",
- children: [/* @__PURE__ */ q("article", { children: [/* @__PURE__ */ q("h3", { children: "检查更新" }), /* @__PURE__ */ q(J, { html: e === "disconnected" ? d("暂时无法读取进度,正在重新连接…", { label: "任务状态" }) : e === "failed" ? d("检查失败:来源连接超时", {
+ children: [/* @__PURE__ */ K("article", { children: [/* @__PURE__ */ K("h3", { children: "检查更新" }), /* @__PURE__ */ K(q, { html: e === "disconnected" ? u("暂时无法读取进度,正在重新连接…", { label: "任务状态" }) : e === "failed" ? u("检查失败:来源连接超时", {
variant: "error",
actionLabel: "重试"
- }) : e === "running" || e === "retrying" || e === "reconnected" ? Ne(`${e === "retrying" ? "第 2/3 次尝试,8 秒后重试 · " : ""}已完成 ${o}/100 个来源`, o, 100) : e === "preparing" ? l("正在准备检查任务…") : d(e === "complete" ? "已完成检查" : e === "paused" ? "已暂停自动检查" : e === "expired" ? "任务状态已失效,请重新发起任务" : "等待开始", { variant: e === "complete" ? "success" : "secondary" }) })] }), /* @__PURE__ */ q("article", { children: [
- /* @__PURE__ */ q("h3", { children: "连接与恢复" }),
- /* @__PURE__ */ q(J, { html: f(e === "disconnected" ? "暂时无法连接服务器,正在重连" : e === "reconnected" ? "连接已恢复,继续读取任务进度" : "连接正常", {
+ }) : e === "running" || e === "retrying" || e === "reconnected" ? Ae(`${e === "retrying" ? "第 2/3 次尝试,8 秒后重试 · " : ""}已完成 ${o}/100 个来源`, o, 100) : e === "preparing" ? c("正在准备检查任务…") : u(e === "complete" ? "已完成检查" : e === "paused" ? "已暂停自动检查" : e === "expired" ? "任务状态已失效,请重新发起任务" : "等待开始", { variant: e === "complete" ? "success" : "secondary" }) })] }), /* @__PURE__ */ K("article", { children: [
+ /* @__PURE__ */ K("h3", { children: "连接与恢复" }),
+ /* @__PURE__ */ K(q, { html: d(e === "disconnected" ? "暂时无法连接服务器,正在重连" : e === "reconnected" ? "连接已恢复,继续读取任务进度" : "连接正常", {
variant: e === "disconnected" ? "warning" : "gray",
href: "#",
label: "查看状态"
}) }),
- /* @__PURE__ */ q("p", { children: "失去连接只影响进度读取;恢复连接后继续展示任务状态。" })
+ /* @__PURE__ */ K("p", { children: "失去连接只影响进度读取;恢复连接后继续展示任务状态。" })
] })]
})] }),
- /* @__PURE__ */ q("section", { children: [/* @__PURE__ */ q("h2", { children: "错误与加载状态一览" }), /* @__PURE__ */ q("div", {
+ /* @__PURE__ */ K("section", { children: [/* @__PURE__ */ K("h2", { children: "错误与加载状态一览" }), /* @__PURE__ */ K("div", {
class: "board-preview-grid",
children: [
- /* @__PURE__ */ q("article", { children: [/* @__PURE__ */ q("h3", { children: "读取失败" }), /* @__PURE__ */ q(J, { html: d("无法读取状态,请重试", {
+ /* @__PURE__ */ K("article", { children: [/* @__PURE__ */ K("h3", { children: "读取失败" }), /* @__PURE__ */ K(q, { html: u("无法读取状态,请重试", {
variant: "error",
actionLabel: "重试"
}) })] }),
- /* @__PURE__ */ q("article", { children: [/* @__PURE__ */ q("h3", { children: "来源离线" }), /* @__PURE__ */ q(J, { html: d("媒体来源离线,请检查挂载状态", { variant: "warning" }) })] }),
- /* @__PURE__ */ q("article", { children: [/* @__PURE__ */ q("h3", { children: "没有待处理内容" }), /* @__PURE__ */ q(J, { html: d("没有待处理内容", { variant: "secondary" }) })] }),
- /* @__PURE__ */ q("article", { children: [/* @__PURE__ */ q("h3", { children: "等待响应" }), /* @__PURE__ */ q(J, { html: l("正在读取来源状态") })] })
+ /* @__PURE__ */ K("article", { children: [/* @__PURE__ */ K("h3", { children: "来源离线" }), /* @__PURE__ */ K(q, { html: u("媒体来源离线,请检查挂载状态", { variant: "warning" }) })] }),
+ /* @__PURE__ */ K("article", { children: [/* @__PURE__ */ K("h3", { children: "没有待处理内容" }), /* @__PURE__ */ K(q, { html: u("没有待处理内容", { variant: "secondary" }) })] }),
+ /* @__PURE__ */ K("article", { children: [/* @__PURE__ */ K("h3", { children: "等待响应" }), /* @__PURE__ */ K(q, { html: c("正在读取来源状态") })] })
]
})] })
]
});
}
function kt(e) {
- Ee(ie(Ot, {}), e);
+ Ce(L(Ot, {}), e);
}
//#endregion
//#region src/board-controls.ts
@@ -1242,7 +1242,7 @@ function Ft(e) {
w: i.offsetWidth,
h: i.offsetHeight
};
- u(t, r, a, "x"), r = a, Pt.set(n, a);
+ l(t, r, a, "x"), r = a, Pt.set(n, a);
};
e.addEventListener("change", i);
let a = new MutationObserver(i);
@@ -1576,7 +1576,7 @@ function Qt() {
}
//#endregion
//#region node_modules/d3-path/src/path.js
-var $t = Math.PI, en = 2 * $t, Y = 1e-6, tn = en - Y;
+var $t = Math.PI, en = 2 * $t, J = 1e-6, tn = en - J;
function nn() {
this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "";
}
@@ -1605,11 +1605,11 @@ nn.prototype = rn.prototype = {
var a = this._x1, o = this._y1, s = n - e, c = r - t, l = a - e, u = o - t, d = l * l + u * u;
if (i < 0) throw Error("negative radius: " + i);
if (this._x1 === null) this._ += "M" + (this._x1 = e) + "," + (this._y1 = t);
- else if (d > Y) {
- if (!(Math.abs(u * s - c * l) > Y) || !i) this._ += "L" + (this._x1 = e) + "," + (this._y1 = t);
+ else if (d > J) {
+ if (!(Math.abs(u * s - c * l) > J) || !i) this._ += "L" + (this._x1 = e) + "," + (this._y1 = t);
else {
var f = n - a, p = r - o, m = s * s + c * c, h = f * f + p * p, g = Math.sqrt(m), _ = Math.sqrt(d), v = i * Math.tan(($t - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
- Math.abs(y - 1) > Y && (this._ += "L" + (e + y * l) + "," + (t + y * u)), this._ += "A" + i + "," + i + ",0,0," + +(u * f > l * p) + "," + (this._x1 = e + b * s) + "," + (this._y1 = t + b * c);
+ Math.abs(y - 1) > J && (this._ += "L" + (e + y * l) + "," + (t + y * u)), this._ += "A" + i + "," + i + ",0,0," + +(u * f > l * p) + "," + (this._x1 = e + b * s) + "," + (this._y1 = t + b * c);
}
}
},
@@ -1617,7 +1617,7 @@ nn.prototype = rn.prototype = {
e = +e, t = +t, n = +n, a = !!a;
var o = n * Math.cos(r), s = n * Math.sin(r), c = e + o, l = t + s, u = 1 ^ a, d = a ? r - i : i - r;
if (n < 0) throw Error("negative radius: " + n);
- this._x1 === null ? this._ += "M" + c + "," + l : (Math.abs(this._x1 - c) > Y || Math.abs(this._y1 - l) > Y) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % en + en), d > tn ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > Y && (this._ += "A" + n + "," + n + ",0," + +(d >= $t) + "," + u + "," + (this._x1 = e + n * Math.cos(i)) + "," + (this._y1 = t + n * Math.sin(i))));
+ this._x1 === null ? this._ += "M" + c + "," + l : (Math.abs(this._x1 - c) > J || Math.abs(this._y1 - l) > J) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % en + en), d > tn ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > J && (this._ += "A" + n + "," + n + ",0," + +(d >= $t) + "," + u + "," + (this._x1 = e + n * Math.cos(i)) + "," + (this._y1 = t + n * Math.sin(i))));
},
rect: function(e, t, n, r) {
this._ += "M" + (this._x0 = this._x1 = +e) + "," + (this._y0 = this._y1 = +t) + "h" + +n + "v" + +r + "h" + -n + "Z";
@@ -1838,7 +1838,7 @@ function Dn(e) {
} catch {}
let i = !!t.querySelector("[aria-pressed=true]");
e.open = r === null ? i : r === "open";
- }), _(e, "details[data-sidebar-group]", "sidebar-collapse"), e.querySelectorAll(".board-section-toggle").forEach((e) => {
+ }), g(e, "details[data-sidebar-group]", "sidebar-collapse"), e.querySelectorAll(".board-section-toggle").forEach((e) => {
e.dataset.persistWired || (e.dataset.persistWired = "true", e.addEventListener("click", () => {
let t = `peach.sidebar.group.${e.closest("[data-sidebar-group]").dataset.sidebarGroup}`;
try {
@@ -1875,10 +1875,10 @@ var An = "/api/configuration";
//#endregion
//#region src/react-slot.tsx
function jn({ mount: e, props: t }) {
- let n = U(null), r = U(null), i = U(t);
+ let n = G(null), r = G(null), i = G(t);
i.current = t;
- let [a, o] = V("");
- return H(() => {
+ let [a, o] = U("");
+ return W(() => {
let t = !1;
return import("/dist/peach-react.js").then((a) => {
if (t || !n.current) return;
@@ -1889,24 +1889,24 @@ function jn({ mount: e, props: t }) {
}), () => {
t = !0, r.current?.unmount(), r.current = null;
};
- }, [e]), H(() => {
+ }, [e]), W(() => {
r.current?.update(t);
- }), a ? /* @__PURE__ */ q("p", {
+ }), a ? /* @__PURE__ */ K("p", {
class: "configbad",
role: "alert",
children: ["界面组件没有加载:", a]
- }) : /* @__PURE__ */ q("div", {
+ }) : /* @__PURE__ */ K("div", {
ref: n,
class: "peach-react"
});
}
//#endregion
//#region src/islands/configuration.tsx
-var Mn = (e, t) => G(An, t);
+var Mn = (e, t) => it(An, t);
function Nn({ receipt: e, data: t, error: n }) {
- if (n || !t) return /* @__PURE__ */ q("div", {
+ if (n || !t) return /* @__PURE__ */ K("div", {
class: "configpage",
- dangerouslySetInnerHTML: { __html: d(n || "没有读到配置", {
+ dangerouslySetInnerHTML: { __html: u(n || "没有读到配置", {
variant: "error",
label: "打不开配置"
}) }
@@ -1915,38 +1915,38 @@ function Nn({ receipt: e, data: t, error: n }) {
data: t,
receipt: e
};
- return /* @__PURE__ */ q("div", {
+ return /* @__PURE__ */ K("div", {
class: "configpage",
children: [
- t.startup ? /* @__PURE__ */ q("h2", {
+ t.startup ? /* @__PURE__ */ K("h2", {
class: "configgroup",
children: "通用"
}) : null,
- t.startup ? /* @__PURE__ */ q(jn, {
+ t.startup ? /* @__PURE__ */ K(jn, {
mount: "mountGeneralSettings",
props: r
}) : null,
- /* @__PURE__ */ q("h2", {
+ /* @__PURE__ */ K("h2", {
class: "configgroup",
children: "媒体"
}),
- /* @__PURE__ */ q(jn, {
+ /* @__PURE__ */ K(jn, {
mount: "mountMediaSettings",
props: r
}),
- t.peach_proxy || t.access ? /* @__PURE__ */ q("h2", {
+ t.peach_proxy || t.access ? /* @__PURE__ */ K("h2", {
class: "configgroup",
children: "网络与访问"
}) : null,
- t.peach_proxy || t.access ? /* @__PURE__ */ q(jn, {
+ t.peach_proxy || t.access ? /* @__PURE__ */ K(jn, {
mount: "mountNetworkSettings",
props: r
}) : null,
- /* @__PURE__ */ q("h2", {
+ /* @__PURE__ */ K("h2", {
class: "configgroup",
children: "更新与维护"
}),
- /* @__PURE__ */ q(jn, {
+ /* @__PURE__ */ K(jn, {
mount: "mountMaintenanceSettings",
props: r
})
@@ -1954,305 +1954,25 @@ function Nn({ receipt: e, data: t, error: n }) {
});
}
//#endregion
-//#region src/islands/scraping.tsx
-var Pn = (e, t) => G("/api/scraping", t);
-function Fn({ value: e, onChange: t }) {
- let n = U(null), r = U(t);
- return r.current = t, Ye(() => {
- let t = n.current;
- t.innerHTML = p([["peach", "Peach 代理"], ["direct", "直接连接"]], e, { label: "连接方式" });
- let i = v(t.firstElementChild), a = () => r.current(i.value);
- return i.addEventListener("change", a), () => {
- i.disabled = !0, i.removeEventListener("change", a), t.replaceChildren();
- };
- }, []), /* @__PURE__ */ q("div", {
- ref: n,
- class: "scraping-network"
- });
-}
-function In({ source: e, toast: t }) {
- let [n, i] = V(e), [a, o] = V(e.network), [s, l] = V(""), [u, f] = V(""), [p, m] = V("paste"), [g, _] = V(""), [v, y] = V(!1), [b, x] = V(""), [S, C] = V([]), w = U(null), T = U(null);
- Ye(() => {
- T.current?.querySelectorAll("footer button").forEach((e) => h(e, v));
- }, [v]);
- let E = U(new AbortController());
- H(() => () => E.current.abort(), []);
- async function D(n) {
- if (!v) {
- y(!0), x(""), C([]);
- try {
- if (n === "check") {
- let t = await K("/api/scraping/check", { source: e.source }, "POST", E.current.signal);
- E.current.signal.aborted || C(t.results);
- } else {
- let r = await K("/api/scraping/settings", {
- source: e.source,
- network: a,
- cookie: s,
- cookies_text: u,
- revoke: n === "revoke"
- }, "POST", E.current.signal);
- E.current.signal.aborted || (i(r.saved), l(""), f(""), _(""), w.current && (w.current.value = ""), t(n === "revoke" ? "Cookie 已撤销" : "来源设置已保存"));
- }
- } catch (e) {
- E.current.signal.aborted || x(W(e));
- } finally {
- E.current.signal.aborted || y(!1);
- }
- }
- }
- return /* @__PURE__ */ q("section", {
- class: "scraping-source",
- children: /* @__PURE__ */ q("form", {
- ref: T,
- class: "cleanupfieldset",
- "data-geist-fieldset": !0,
- onSubmit: (e) => {
- e.preventDefault(), D("save");
- },
- children: [/* @__PURE__ */ q("div", {
- class: "geist-fieldset-content scraping-fields",
- children: [
- /* @__PURE__ */ q("div", {
- class: "geist-fieldset-heading",
- children: [/* @__PURE__ */ q("div", { dangerouslySetInnerHTML: { __html: c(`scraping-${e.source}`, e.label) } }), /* @__PURE__ */ q("a", {
- class: "scraping-url externallink",
- href: e.login,
- target: "_blank",
- rel: "noopener noreferrer",
- children: [
- /* @__PURE__ */ q("img", {
- src: r({ source: e.source }),
- alt: "",
- width: "16",
- height: "16",
- loading: "lazy",
- onError: (e) => e.currentTarget.remove()
- }),
- /* @__PURE__ */ q("span", { children: e.login }),
- /* @__PURE__ */ q("svg", {
- class: "externalmark",
- viewBox: "0 0 24 24",
- "aria-hidden": "true",
- children: /* @__PURE__ */ q("use", { href: "#i-external-link" })
- })
- ]
- })]
- }),
- /* @__PURE__ */ q("div", {
- class: "scraping-label",
- children: ["连接方式", /* @__PURE__ */ q(Fn, {
- value: a,
- onChange: o
- })]
- }),
- a === "peach" && /* @__PURE__ */ q(ut, {
- href: "/configuration#peachProxy",
- children: "配置 Peach 代理"
- }),
- e.accepts_cookie && /* @__PURE__ */ q(F, { children: [
- /* @__PURE__ */ q("p", { children: n.cookie_saved ? "Cookie 已保存,登录是否有效请在抓取时确认。" : "需要登录时,任选一种方式提供 Cookie。" }),
- /* @__PURE__ */ q("div", {
- class: "insightswitch scraping-cookie-method",
- role: "radiogroup",
- "aria-label": "提供 Cookie 的方式(二选一)",
- children: [["paste", "粘贴 Cookie"], ["file", "导入文件"]].map(([t, n]) => /* @__PURE__ */ q("label", { children: [/* @__PURE__ */ q("input", {
- type: "radio",
- name: `cookie-method-${e.source}`,
- value: t,
- checked: p === t,
- onChange: () => {
- m(t), l(""), f(""), _("");
- }
- }), /* @__PURE__ */ q("span", { children: n })] }, t))
- }),
- p === "paste" ? /* @__PURE__ */ q("label", { children: ["Cookie", /* @__PURE__ */ q("input", {
- class: "geist-input",
- type: "password",
- autoComplete: "off",
- value: s,
- disabled: v,
- onInput: (e) => l(e.currentTarget.value)
- })] }) : /* @__PURE__ */ q("label", {
- class: "scraping-file",
- children: ["Netscape Cookie 文件(.txt)", /* @__PURE__ */ q("span", {
- class: "scraping-file-control",
- children: [
- /* @__PURE__ */ q("span", {
- class: "geist-button",
- children: "选择文件"
- }),
- /* @__PURE__ */ q("span", {
- class: "scraping-file-name",
- children: g || "未选择文件"
- }),
- /* @__PURE__ */ q("input", {
- ref: w,
- type: "file",
- accept: ".txt",
- disabled: v,
- onChange: async (e) => {
- let t = e.currentTarget.files?.[0];
- if (!t) {
- f(""), _("");
- return;
- }
- if (f(""), t.size > 262144) {
- x("Cookie 文本超过 256 KiB"), e.currentTarget.value = "";
- return;
- }
- y(!0);
- try {
- let e = await t.text();
- E.current.signal.aborted || (f(e), _(t.name));
- } catch {
- E.current.signal.aborted || x("Cookie 文件未读取,请重新选择");
- } finally {
- E.current.signal.aborted || y(!1);
- }
- }
- })
- ]
- })]
- })
- ] }),
- b && /* @__PURE__ */ q("div", {
- role: "alert",
- dangerouslySetInnerHTML: { __html: d(b, { variant: "error" }) }
- }),
- S.map((t) => /* @__PURE__ */ q("div", {
- role: "status",
- dangerouslySetInnerHTML: { __html: d(`${e.label}${t.label === "来源页面" ? "" : " 高清图片"}:${t.ok ? "可连接" : "不能连接"}` + (t.width ? ` · ${t.width} × ${t.height}` : "") + (t.message ? `。${t.message}` : ""), { variant: t.ok ? "success" : "error" }) }
- }, t.label))
- ]
- }), /* @__PURE__ */ q("footer", {
- class: "geist-fieldset-footer",
- "data-geist-fieldset-footer": !0,
- children: [
- e.accepts_cookie && n.cookie_saved && /* @__PURE__ */ q("button", {
- class: "geist-button",
- type: "button",
- onClick: () => void D("revoke"),
- children: "撤销 Cookie"
- }),
- /* @__PURE__ */ q("button", {
- class: "geist-button",
- type: "button",
- onClick: () => void D("check"),
- children: "检查连接"
- }),
- /* @__PURE__ */ q("button", {
- class: "geist-button primary",
- type: "submit",
- children: "保存"
- })
- ]
- })]
- })
- });
-}
-function Ln({ data: e, error: t, toast: n }) {
- let [r, i] = V(""), [a, o] = V(!1), [s, u] = V(""), [f, p] = V(""), m = U(null);
- Ye(() => h(m.current, a), [a]);
- let g = U(new AbortController()), _ = U(0);
- async function v(e = !1) {
- let t = ++_.current;
- await st({
- read: (e) => G("/api/scraping/cover", e),
- active: () => !g.current.signal.aborted && t === _.current,
- render: (t) => {
- o(t.status === "running"), t.status === "running" && (e = !1), t.status === "failed" && !e && u(t.error || "采集未取得"), t.status === "complete" && !e && (p(t.result || "封面采集完成"), n(t.result || "封面采集完成"));
- },
- disconnected: () => u("连接中断,正在重新读取后台进度")
- });
- }
- H(() => (v(!0), () => g.current.abort()), []);
- async function y() {
- if (!a) {
- _.current++, o(!0), u(""), p("");
- try {
- await K("/api/scraping/cover", { code: r }, "POST", g.current.signal), await v();
- } catch (e) {
- g.current.signal.aborted || (o(!1), u(W(e)));
- }
- }
- }
- return t ? /* @__PURE__ */ q("div", {
- role: "alert",
- dangerouslySetInnerHTML: { __html: d(t, { variant: "error" }) }
- }) : /* @__PURE__ */ q("div", {
- class: "scraping-page",
- children: [
- /* @__PURE__ */ q("p", { children: "高清图片可能需要代理才能下载,请先检查连接。" }),
- /* @__PURE__ */ q("section", {
- class: "cleanupfieldset scraping-source",
- "data-geist-fieldset": !0,
- children: /* @__PURE__ */ q("div", {
- class: "geist-fieldset-content scraping-fields",
- children: [
- /* @__PURE__ */ q("div", { dangerouslySetInnerHTML: { __html: c("scraping-cover", "高清封面") } }),
- /* @__PURE__ */ q("form", {
- class: "scraping-cover-form",
- onSubmit: (e) => {
- e.preventDefault(), y();
- },
- children: [/* @__PURE__ */ q("input", {
- class: "geist-input",
- "aria-label": "馆藏番号",
- required: !0,
- value: r,
- disabled: a,
- placeholder: "输入馆藏番号,如 ABW-232",
- onInput: (e) => i(e.currentTarget.value)
- }), /* @__PURE__ */ q("button", {
- ref: m,
- class: "geist-button primary",
- type: "submit",
- children: "抓取封面"
- })]
- }),
- a && /* @__PURE__ */ q("div", {
- "aria-live": "polite",
- dangerouslySetInnerHTML: { __html: l("正在抓取封面") }
- }),
- s && /* @__PURE__ */ q("div", {
- role: "alert",
- dangerouslySetInnerHTML: { __html: d(s, { variant: "error" }) }
- }),
- f && /* @__PURE__ */ q("div", {
- role: "status",
- dangerouslySetInnerHTML: { __html: d(f) }
- })
- ]
- })
- }),
- e?.sources.map((e) => /* @__PURE__ */ q(In, {
- source: e,
- toast: n
- }, e.source))
- ]
- });
-}
-//#endregion
//#region src/review-evidence.ts
-var Rn = (e = "") => /^https?:\/\//i.test(e) ? e : "";
-function zn(t = "") {
- let n = Rn(t) || (t.startsWith("/") && !t.startsWith("//") ? t : "");
+var Pn = (e = "") => /^https?:\/\//i.test(e) ? e : "";
+function Fn(t = "") {
+ let n = Pn(t) || (t.startsWith("/") && !t.startsWith("//") ? t : "");
return `<div class="reviewimage" data-review-picture><span class="reviewimageempty"${n ? " hidden" : ""}>未取得来源图片</span>${n ? `<img src="${e(n)}" alt="来源候选图片" loading="lazy">` : ""}</div>`;
}
-function Bn(t) {
- let n = Rn(t.profile_url), r = (t.preview_assets || []).slice(0, 6), i = Math.max(0, Number(t.video_count || t.videos || 0));
+function In(t) {
+ let n = Pn(t.profile_url), r = (t.preview_assets || []).slice(0, 6), i = Math.max(0, Number(t.video_count || t.videos || 0));
return `<section class="reviewidentityevidence"><h5>候选身份:${e(t.babepedia_name || "未标注")}</h5>
<div class="reviewevidenceactions">${n ? `<a class="geist-button externallink" href="${e(n)}" target="_blank" rel="noopener noreferrer">来源资料<svg class="externalmark" viewBox="0 0 24 24" aria-hidden="true"><use href="#i-external-link" /></svg></a>` : ""}
<button type="button" class="geist-button" data-entity-kind="creator" data-entity-name="${e(t.creator || "")}">查看全部 ${i.toLocaleString()} 部作品</button></div>
- ${zn(t.preview_url)}
+ ${Fn(t.preview_url)}
<p>通过后记录身份判断。</p>
${r.length ? `<h5>本地作品样本</h5><div class="reviewevidencesamples">${r.map((t) => `<div class="reviewevidencesample">
<button class="geist-button" type="button" data-review-open-item="${t.id}"><span data-middle-truncate title="${e(t.name)}">${e(t.name)}</span></button>
<button class="geist-button" type="button" data-review-reveal="${t.id}" aria-label="打开 ${e(t.name)} 的文件位置">文件位置</button>
</div>`).join("")}</div>` : "<p>暂无本地作品样本,打开全部作品核对。</p>"}</section>`;
}
-function Vn(e) {
+function Ln(e) {
for (let t of e.querySelectorAll("[data-review-picture] img")) {
let e = () => {
t.hidden = !0;
@@ -2264,11 +1984,11 @@ function Vn(e) {
}
//#endregion
//#region src/selection.ts
-function Hn(e, t, n, r, i, a = i || !e.has(r)) {
+function Rn(e, t, n, r, i, a = i || !e.has(r)) {
let o = n === null ? -1 : t.indexOf(n), s = t.indexOf(r);
return i && o >= 0 && s >= 0 ? t.slice(Math.min(o, s), Math.max(o, s) + 1).forEach((t) => e.add(t)) : a ? e.add(r) : e.delete(r), r;
}
-function Un(e, t) {
+function zn(e, t) {
let n = t.filter((t) => e.has(t)).length;
return {
count: n,
@@ -2276,16 +1996,16 @@ function Un(e, t) {
mixed: n > 0 && n < t.length
};
}
-function Wn(e, t, n) {
+function Bn(e, t, n) {
t.forEach((t) => n ? e.add(t) : e.delete(t));
}
-function Gn({ count: e, label: t, all: n, summary: r, actions: i, locked: a = !1 }) {
+function Vn({ count: e, label: t, all: n, summary: r, actions: i, locked: a = !1 }) {
e && (e.textContent = t), n && (n.checked = r.all, n.indeterminate = r.mixed);
for (let e of i) e.disabled = !r.count || a;
}
//#endregion
//#region src/review-bulk.ts
-var Kn = () => ({
+var Hn = () => ({
busy: !1,
category: "",
filter: "",
@@ -2296,7 +2016,7 @@ var Kn = () => ({
assets: /* @__PURE__ */ new Map(),
errors: /* @__PURE__ */ new Map()
});
-function qn(e) {
+function Un(e) {
let t = e?.querySelector(".reviewbulktoolbar");
if (!e || e.classList.contains("review-skeleton") || !t || t.offsetParent === null) return;
e.style.setProperty("--review-controls-height", `${t.getBoundingClientRect().height}px`);
@@ -2312,7 +2032,7 @@ function qn(e) {
let o = i.getBoundingClientRect(), s = a.getBoundingClientRect();
e.style.setProperty("--review-pane-top", `${o.top}px`), e.style.setProperty("--review-pane-left", `${o.left}px`), e.style.setProperty("--review-pane-width", `${o.width}px`), e.style.setProperty("--review-pane-height", `${s.bottom - o.top}px`);
}
-function Jn(e, t) {
+function Wn(e, t) {
let n = [[
"candidates",
t ? "按候选数量" : "全部待复核",
@@ -2328,7 +2048,7 @@ function Jn(e, t) {
"list-filter"
]), n;
}
-function Yn(e, t) {
+function Gn(e, t) {
let n = /* @__PURE__ */ new Map();
for (let r of e) {
let e, i;
@@ -2345,10 +2065,10 @@ function Yn(e, t) {
}
return [...n.values()];
}
-function Xn(e, t, n, r, i) {
- e.anchor = Hn(e.selected, t, e.anchor, n, r, i);
+function Kn(e, t, n, r, i) {
+ e.anchor = Rn(e.selected, t, e.anchor, n, r, i);
}
-async function Zn(e, t, n, r) {
+async function qn(e, t, n, r) {
let i = [], a = 0;
for (let o of e) {
if (!r()) break;
@@ -2359,7 +2079,7 @@ async function Zn(e, t, n, r) {
} catch (e) {
i.push({
key: o.key,
- message: W(e)
+ message: rt(e)
});
}
}
@@ -2368,26 +2088,26 @@ async function Zn(e, t, n, r) {
failures: i
};
}
-function Qn(e) {
+function Jn(e) {
return e.length ? [...new Set(e.flatMap((e) => e.candidates?.map((e) => e.source || "") || []))].filter((t) => t && e.every((e) => e.candidates?.filter((e) => e.source === t).length === 1)) : [];
}
-function $n(e, n) {
+function Yn(e, n) {
let r = e.querySelector(".reviewlist");
if (!r || !n.rows.length || n.locked) return;
- let i = n.state, a = [...r.querySelectorAll("[data-review-key]")];
+ let i = n.state, o = [...r.querySelectorAll("[data-review-key]")];
n.category !== void 0 && i.category !== n.category && (i.category = n.category, i.filter = "", i.groupBy = "candidates", i.anchor = null);
- let s = n.catalog || n.rows, c = Jn(s, n.metadata);
+ let s = n.catalog || n.rows, c = Wn(s, n.metadata);
c.some((e) => e[0] === i.groupBy) || (i.groupBy = "candidates", i.filter = "");
- let l = Yn(s, i.groupBy);
+ let l = Gn(s, i.groupBy);
l.some((e) => e.key === i.filter) || (i.filter = "");
- let u = () => [...r.querySelectorAll("[data-review-key]")].filter((e) => !e.closest("[hidden]")), d = () => u().filter((e) => i.selected.has(e.dataset.reviewKey)), f = () => n.rows.filter((e) => d().some((t) => t.dataset.reviewKey === e.item_key)), m = (e) => !e.querySelector("[data-review-status=\"approved\"]")?.disabled, g = (e, t = "") => {
+ let u = () => [...r.querySelectorAll("[data-review-key]")].filter((e) => !e.closest("[hidden]")), d = () => u().filter((e) => i.selected.has(e.dataset.reviewKey)), p = () => n.rows.filter((e) => d().some((t) => t.dataset.reviewKey === e.item_key)), h = (e) => !e.querySelector("[data-review-status=\"approved\"]")?.disabled, g = (e, t = "") => {
let n = document.createElement("button");
return n.type = "button", n.className = `geist-button ${t}`.trim(), n.textContent = e, n;
- }, _ = document.createElement("div");
- _.className = "reviewbulkbar reviewbulktoolbar", _.setAttribute("role", "group"), _.setAttribute("aria-label", "复核批量操作");
+ }, v = document.createElement("div");
+ v.className = "reviewbulkbar reviewbulktoolbar", v.setAttribute("role", "group"), v.setAttribute("aria-label", "复核批量操作");
let y = document.createElement("div");
- y.className = "reviewgroupby", y.innerHTML = p(c, i.groupBy, { label: "筛选分组方式" });
- let b = v(y.firstElementChild);
+ y.className = "reviewgroupby", y.innerHTML = f(c, i.groupBy, { label: "筛选分组方式" });
+ let b = _(y.firstElementChild);
y.querySelectorAll("[data-select-option] .gselectmark").forEach((e) => e.remove()), b.addEventListener("change", () => {
if (i.busy || !c.some((e) => e[0] === b.value)) return;
i.groupBy = b.value, i.filter = "", i.anchor = null;
@@ -2395,7 +2115,7 @@ function $n(e, n) {
n.refresh(), t?.querySelector(".reviewgroupby button")?.focus({ preventScroll: !0 });
});
let x = document.createElement("div");
- x.className = "reviewcategoryfilter", x.hidden = l.length < 2, x.innerHTML = p([[
+ x.className = "reviewcategoryfilter", x.hidden = l.length < 2, x.innerHTML = f([[
"",
"全部分类",
"list-filter"
@@ -2411,7 +2131,7 @@ function $n(e, n) {
let t = document.createElement("div");
t.className = "reviewfilterheading", t.textContent = e.getAttribute("aria-label"), t.setAttribute("aria-hidden", "true"), e.append(t, ...Array.from(S.children).slice(1)), S.append(e);
}
- let C = v(x.firstElementChild);
+ let C = _(x.firstElementChild);
x.querySelectorAll("[data-select-option] .gselectmark").forEach((e) => e.remove()), C.addEventListener("change", () => {
if (i.busy || C.value && !l.some((e) => e.key === C.value)) return;
i.filter = C.value, i.anchor = null;
@@ -2428,23 +2148,23 @@ function $n(e, n) {
A.className = "reviewbulkdecisions", A.append(T, E);
let j = document.createElement("div");
j.className = "selectiondock reviewdock", j.setAttribute("role", "group"), j.setAttribute("aria-label", "复核所选项目");
- let ee = g("取消选择");
- j.append(D, O, A, ee, k), _.append(y, x, w);
- let te = e.querySelector(".reviewcontrols");
- te ? te.after(_) : r.before(_), e.append(j), r.classList.add("reviewgroups");
- let M = () => {
- i.selected.clear(), i.anchor = null, P();
+ let M = g("取消选择");
+ j.append(D, O, A, M, k), v.append(y, x, w);
+ let N = e.querySelector(".reviewcontrols");
+ N ? N.after(v) : r.before(v), e.append(j), r.classList.add("reviewgroups");
+ let ee = () => {
+ i.selected.clear(), i.anchor = null, I();
};
- ee.onclick = () => {
- i.busy || (M(), w.focus({ preventScroll: !0 }));
+ M.onclick = () => {
+ i.busy || (ee(), w.focus({ preventScroll: !0 }));
}, w.onclick = () => {
if (i.busy) return;
let e = u(), t = d().length === e.length;
- e.forEach((e) => t ? i.selected.delete(e.dataset.reviewKey) : i.selected.add(e.dataset.reviewKey)), P();
- }, T.onclick = () => re("approved", T), E.onclick = () => re("rejected", E);
- let ne = [];
+ e.forEach((e) => t ? i.selected.delete(e.dataset.reviewKey) : i.selected.add(e.dataset.reviewKey)), I();
+ }, T.onclick = () => L("approved", T), E.onclick = () => L("rejected", E);
+ let P = [];
for (let e of l) {
- let n = e.rows.map((e) => a.find((t) => t.dataset.reviewKey === e.item_key)).filter((e) => !!e);
+ let n = e.rows.map((e) => o.find((t) => t.dataset.reviewKey === e.item_key)).filter((e) => !!e);
if (!n.length) continue;
let s = document.createElement("section");
s.className = "reviewgroup", s.hidden = !!i.filter && e.key !== i.filter;
@@ -2456,8 +2176,8 @@ function $n(e, n) {
f.className = "reviewlist", c.append(l, d), s.append(c, f), r.append(s), d.onclick = () => {
if (i.busy) return;
let e = n.map((e) => e.dataset.reviewKey);
- Wn(i.selected, e, !e.every((e) => i.selected.has(e))), P();
- }, ne.push(() => {
+ Bn(i.selected, e, !e.every((e) => i.selected.has(e))), I();
+ }, P.push(() => {
let e = n.every((e) => i.selected.has(e.dataset.reviewKey));
d.innerHTML = t(e ? "check-check-outline" : "check-check") + (e ? "清空本组" : "全选本组"), d.setAttribute("aria-pressed", String(e));
});
@@ -2466,32 +2186,32 @@ function $n(e, n) {
let t = e.dataset.reviewKey;
i.errors.has(t) && (e.querySelector(".reviewstate").textContent = i.errors.get(t));
let n = e.querySelector("h4,.reviewentity b") || e, r = document.createElement("label");
- r.className = "reviewpickitem", r.innerHTML = o();
- let a = r.querySelector("input");
- if (a.setAttribute("aria-label", `选择 ${e.querySelector("legend")?.textContent || n.textContent || t}`), n !== e) {
+ r.className = "reviewpickitem", r.innerHTML = a();
+ let o = r.querySelector("input");
+ if (o.setAttribute("aria-label", `选择 ${e.querySelector("legend")?.textContent || n.textContent || t}`), n !== e) {
let e = document.createElement("span");
e.className = "reviewpickname", e.append(...n.childNodes), n.classList.add("reviewpickheading"), n.append(r, e);
} else e.prepend(r);
let s = (e, n) => {
- Xn(i, u().map((e) => e.dataset.reviewKey), t, e, n), P();
+ Kn(i, u().map((e) => e.dataset.reviewKey), t, e, n), I();
};
if (r.addEventListener("mousedown", (e) => {
e.shiftKey && e.preventDefault();
}), r.addEventListener("click", (e) => {
- e.target !== a && (e.preventDefault(), i.busy || (a.focus(), s(e.shiftKey, !a.checked)));
- }), a.addEventListener("click", (e) => {
- i.busy || s(e.shiftKey, a.checked);
- }), a.addEventListener("keydown", (n) => {
+ e.target !== o && (e.preventDefault(), i.busy || (o.focus(), s(e.shiftKey, !o.checked)));
+ }), o.addEventListener("click", (e) => {
+ i.busy || s(e.shiftKey, o.checked);
+ }), o.addEventListener("keydown", (n) => {
if (!(i.busy || !n.shiftKey)) {
if (n.key === " ") n.preventDefault(), s(!0, !0);
else if (n.key === "ArrowDown" || n.key === "ArrowUp") {
n.preventDefault();
let r = u(), a = r[r.indexOf(e) + (n.key === "ArrowDown" ? 1 : -1)];
- a && (i.anchor === null && (i.anchor = t), Xn(i, r.map((e) => e.dataset.reviewKey), a.dataset.reviewKey, !0, !0), P(), a.querySelector(".reviewpickitem input")?.focus());
+ a && (i.anchor === null && (i.anchor = t), Kn(i, r.map((e) => e.dataset.reviewKey), a.dataset.reviewKey, !0, !0), I(), a.querySelector(".reviewpickitem input")?.focus());
}
}
- }), ne.push(() => {
- a.checked = i.selected.has(t);
+ }), P.push(() => {
+ o.checked = i.selected.has(t);
}), i.assets.has(t)) {
let n = i.assets.get(t), r = [...e.querySelectorAll("[data-review-asset]")];
r.forEach((e) => {
@@ -2505,30 +2225,30 @@ function $n(e, n) {
n.target.closest("[data-review-asset],[data-pick-all],[data-pick-none]") && i.assets.set(t, [...e.querySelectorAll("[data-review-asset][aria-pressed=\"true\"]")].map((e) => Number(e.dataset.reviewAsset)));
});
for (let n of e.querySelectorAll("input[type=\"radio\"]")) i.choices.has(t) && (n.checked = i.choices.get(t) === n.value), n.addEventListener("change", () => {
- n.checked && i.choices.set(t, n.value), P();
+ n.checked && i.choices.set(t, n.value), I();
});
}
}
e.addEventListener("keydown", (t) => {
- i.busy || !e.contains(r) || (t.key === "Escape" && i.selected.size && (t.preventDefault(), t.stopPropagation(), M()), (t.ctrlKey || t.metaKey) && t.key.toLowerCase() === "a" && !t.target.matches("textarea,input:not([type=\"checkbox\"]):not([type=\"radio\"])") && (t.preventDefault(), t.stopPropagation(), u().forEach((e) => i.selected.add(e.dataset.reviewKey)), P()));
+ i.busy || !e.contains(r) || (t.key === "Escape" && i.selected.size && (t.preventDefault(), t.stopPropagation(), ee()), (t.ctrlKey || t.metaKey) && t.key.toLowerCase() === "a" && !t.target.matches("textarea,input:not([type=\"checkbox\"]):not([type=\"radio\"])") && (t.preventDefault(), t.stopPropagation(), u().forEach((e) => i.selected.add(e.dataset.reviewKey)), I()));
});
- let N = "";
- function P() {
+ let F = "";
+ function I() {
let e = d(), r = e.length > 0 && e.length === u().length;
- w.innerHTML = t(r ? "check-check-outline" : "check-check") + (r ? "清空当前选择" : i.filter ? "全选当前分类" : "全选本页"), w.setAttribute("aria-pressed", String(r)), j.hidden = !e.length, Gn({
+ w.innerHTML = t(r ? "check-check-outline" : "check-check") + (r ? "清空当前选择" : i.filter ? "全选当前分类" : "全选本页"), w.setAttribute("aria-pressed", String(r)), j.hidden = !e.length, Vn({
count: D,
label: `已选 ${e.length} 项`,
- summary: Un(i.selected, u().map((e) => e.dataset.reviewKey)),
+ summary: zn(i.selected, u().map((e) => e.dataset.reviewKey)),
actions: [T, E]
- }), T.disabled ||= e.some((e) => !m(e));
- let a = Qn(f());
- O.hidden = !n.metadata || !f().some((e) => (e.candidates?.length || 0) > 1);
+ }), T.disabled ||= e.some((e) => !h(e));
+ let a = Jn(p());
+ O.hidden = !n.metadata || !p().some((e) => (e.candidates?.length || 0) > 1);
let o = e.length && !a.length ? "所选项目无共同来源" : "统一选择来源", s = JSON.stringify([o, a]);
- if (s !== N) {
- N = s, O.innerHTML = p([["", o], ...a.map((e) => [e, e])], "", { label: "统一选择来源" });
- let e = v(O.firstElementChild);
+ if (s !== F) {
+ F = s, O.innerHTML = f([["", o], ...a.map((e) => [e, e])], "", { label: "统一选择来源" });
+ let e = _(O.firstElementChild);
e.disabled = !a.length, e.addEventListener("change", () => {
- if (!(i.busy || !Qn(f()).includes(e.value))) {
+ if (!(i.busy || !Jn(p()).includes(e.value))) {
for (let t of d()) {
let r = n.rows.find((e) => e.item_key === t.dataset.reviewKey).candidates.find((t) => t.source === e.value);
t.querySelectorAll("input[type=\"radio\"]").forEach((e) => {
@@ -2539,9 +2259,9 @@ function $n(e, n) {
}
});
}
- ne.forEach((e) => e());
+ P.forEach((e) => e());
}
- async function re(t, r) {
+ async function L(t, r) {
if (i.busy || !d().length) return;
let a = d().map((e) => ({
key: e.dataset.reviewKey,
@@ -2554,14 +2274,14 @@ function $n(e, n) {
k.textContent = "请先为所选的多来源候选选择来源。", d().find((e) => !e.querySelector("input[type=\"radio\"]:checked"))?.querySelector("input[type=\"radio\"]")?.focus();
return;
}
- i.busy = !0, k.textContent = `正在处理 0 / ${a.length}`, h(r, !0);
+ i.busy = !0, k.textContent = `正在处理 0 / ${a.length}`, m(r, !0);
let o = [...e.querySelectorAll("button,input")], s = o.map((e) => e.getAttribute("aria-disabled"));
o.forEach((e) => e.setAttribute("aria-disabled", "true"));
let c = (e) => {
e instanceof KeyboardEvent && e.key === "Tab" || (e.preventDefault(), e.stopImmediatePropagation());
};
e.addEventListener("click", c, !0), e.addEventListener("keydown", c, !0);
- let l = 0, u = await Zn(a, async (e) => {
+ let l = 0, u = await qn(a, async (e) => {
try {
return await n.submit(e);
} finally {
@@ -2573,14 +2293,14 @@ function $n(e, n) {
if (i.busy = !1, e.removeEventListener("click", c, !0), e.removeEventListener("keydown", c, !0), o.forEach((e, t) => {
let n = s[t];
n === null ? e.removeAttribute("aria-disabled") : e.setAttribute("aria-disabled", n);
- }), h(r, !1), !n.active()) return;
+ }), m(r, !1), !n.active()) return;
n.notify(`已${t === "approved" ? "通过" : "拒绝"} ${u.completed} 项${u.failures.length ? `,${u.failures.length} 项未完成` : ""}`), u.failures.forEach((e) => i.errors.set(e.key, e.message));
let f = e.parentElement;
n.refresh(), f?.querySelector(".reviewbulktoolbar button")?.focus({ preventScroll: !0 });
}
- P(), qn(e);
+ I(), Un(e);
}
-function er(e, t, n = 1) {
+function Xn(e, t, n = 1) {
let r = (e, t) => Array.from({ length: t - e + 1 }, (t, n) => e + n);
if (n * 2 + 5 >= t) return r(1, t);
let i = Math.max(e - n, 1), a = Math.min(e + n, t), o = i > 2, s = a < t - 2;
@@ -2600,15 +2320,15 @@ function er(e, t, n = 1) {
t
];
}
-function tr(e, t) {
+function Zn(e, t) {
return Math.max(1, Math.ceil(e / t));
}
-function nr(e, t) {
+function Qn(e, t) {
return Math.min(Math.max(1, Math.floor(e) || 1), t);
}
-function rr(e, t, n) {
+function $n(e, t, n) {
if (t <= 1) return "";
- let r = er(e, t).map((t) => t === "…" ? "<li class=\"board-page-dots\" aria-hidden=\"true\">…</li>" : `<li><button type="button" class="board-page" data-page="${t}" aria-label="第 ${t} 页"${t === e ? " aria-current=\"page\"" : ""}>${t}</button></li>`).join("");
+ let r = Xn(e, t).map((t) => t === "…" ? "<li class=\"board-page-dots\" aria-hidden=\"true\">…</li>" : `<li><button type="button" class="board-page" data-page="${t}" aria-label="第 ${t} 页"${t === e ? " aria-current=\"page\"" : ""}>${t}</button></li>`).join("");
return `<nav class="board-pagination" aria-label="${n}">
<button type="button" class="geist-button" data-page="${e - 1}"${e <= 1 ? " disabled" : ""}><svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-chevron-left"></use></svg>上一页</button>
<ul>${r}</ul>
@@ -2617,10 +2337,10 @@ function rr(e, t, n) {
}
//#endregion
//#region src/native-image.ts
-function ir(e, t, n, r) {
+function er(e, t, n, r) {
return e > 0 && t > 0 && e === n && t === r;
}
-function ar(e, t, n, r, i = 1) {
+function tr(e, t, n, r, i = 1) {
let a = Number.isFinite(i) && i > 0 ? i : 1;
e /= a, t /= a;
let o = [
@@ -2637,44 +2357,44 @@ function ar(e, t, n, r, i = 1) {
}
//#endregion
//#region src/avatar-picker.tsx
-var or = {
+var nr = {
gfriends: "图库",
history: "用过的"
};
-function sr({ kind: e, id: t, name: n, onPicked: r }) {
- let i = U(null), o = U(null), s = U(null), [c, l] = V(null), [u, d] = V(""), [f, p] = V(""), [m, h] = V(""), [g, _] = V(!1);
- H(() => {
+function rr({ kind: e, id: t, name: n, onPicked: r }) {
+ let a = G(null), o = G(null), s = G(null), [c, l] = U(null), [u, d] = U(""), [f, p] = U(""), [m, h] = U(""), [g, _] = U(!1);
+ W(() => {
if (!g || c) return;
let n = new AbortController();
- return G(`/api/avatar-choices?kind=${e}&id=${t}`, n.signal).then(l).catch((e) => {
- n.signal.aborted || d(W(e));
+ return it(`/api/avatar-choices?kind=${e}&id=${t}`, n.signal).then(l).catch((e) => {
+ n.signal.aborted || d(rt(e));
}), () => n.abort();
}, [
g,
c,
e,
t
- ]), H(() => {
- a(o.current);
+ ]), W(() => {
+ i(o.current);
}, [g, c]);
let v = () => {
- _(!0), i.current?.showModal();
+ _(!0), a.current?.showModal();
}, y = () => {
- _(!1), i.current?.close();
+ _(!1), a.current?.close();
}, b = async (e, t) => {
p(t), d("");
try {
await e(), y(), l(null), r();
} catch (e) {
- d(W(e));
+ d(rt(e));
} finally {
p("");
}
- }, x = (n) => b(() => K("/api/avatar-pick", {
+ }, x = (n) => b(() => at("/api/avatar-pick", {
kind: e,
id: t,
ref: n.ref
- }), n.ref), S = () => b(() => K("/api/avatar-pick", {
+ }), n.ref), S = () => b(() => at("/api/avatar-pick", {
kind: e,
id: t,
url: m.trim()
@@ -2689,112 +2409,112 @@ function sr({ kind: e, id: t, name: n, onPicked: r }) {
throw Error(e?.error || `请求失败(${r.status})`);
}
}, "file"), w = c?.choices || [], T = (c?.matched_names || []).filter((e) => e !== n), E = c ? T.length ? `${n}:图库里按「${T.join("」「")}」找到的。` : w.length ? `${n}:换上的那张留在本机,随时能换回来。` : `${n}:图库里没有这个名字,用下面两种方式换。` : "正在找可用的图…", D = !!c && c.index_stale && !w.some((e) => e.source === "gfriends");
- return /* @__PURE__ */ q("div", {
+ return /* @__PURE__ */ K("div", {
class: "avatarpick",
- children: [/* @__PURE__ */ q("button", {
+ children: [/* @__PURE__ */ K("button", {
type: "button",
class: "avatarpick-open",
onClick: v,
"aria-haspopup": "dialog",
"aria-label": `更换${n}的头像`,
title: "更换头像",
- children: /* @__PURE__ */ q("svg", {
+ children: /* @__PURE__ */ K("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
- children: /* @__PURE__ */ q("use", { href: "#i-plus" })
+ children: /* @__PURE__ */ K("use", { href: "#i-plus" })
})
- }), /* @__PURE__ */ q("dialog", {
- ref: i,
+ }), /* @__PURE__ */ K("dialog", {
+ ref: a,
class: "geist-modal avatarpick-popover",
"aria-label": "更换头像",
onCancel: y,
onClick: (e) => {
- e.target === i.current && y();
+ e.target === a.current && y();
},
- children: [/* @__PURE__ */ q("div", {
+ children: [/* @__PURE__ */ K("div", {
class: "avatarpick-head",
children: [
- /* @__PURE__ */ q("span", {
+ /* @__PURE__ */ K("span", {
class: "avatarpick-mark",
"aria-hidden": "true",
- children: /* @__PURE__ */ q("svg", {
+ children: /* @__PURE__ */ K("svg", {
viewBox: "0 0 24 24",
- children: /* @__PURE__ */ q("use", { href: "#i-user-round" })
+ children: /* @__PURE__ */ K("use", { href: "#i-user-round" })
})
}),
- /* @__PURE__ */ q("div", {
+ /* @__PURE__ */ K("div", {
class: "avatarpick-headtext",
children: [
- /* @__PURE__ */ q("div", {
+ /* @__PURE__ */ K("div", {
class: "avatarpick-title",
- children: [/* @__PURE__ */ q("h3", { children: "更换头像" }), !!w.length && /* @__PURE__ */ q("span", {
+ children: [/* @__PURE__ */ K("h3", { children: "更换头像" }), !!w.length && /* @__PURE__ */ K("span", {
class: "geist-badge",
children: [w.length, " 张可选"]
})]
}),
- /* @__PURE__ */ q("p", { children: E }),
- D && /* @__PURE__ */ q("p", {
+ /* @__PURE__ */ K("p", { children: E }),
+ D && /* @__PURE__ */ K("p", {
class: "avatarpick-note",
children: "图库索引还没取过,只能从用过的图里选。"
}),
- u && /* @__PURE__ */ q("p", {
+ u && /* @__PURE__ */ K("p", {
class: "avatarpick-error",
role: "alert",
children: u
})
]
}),
- /* @__PURE__ */ q("button", {
+ /* @__PURE__ */ K("button", {
type: "button",
class: "avatarpick-close",
onClick: y,
"aria-label": "关闭",
- children: /* @__PURE__ */ q("svg", {
+ children: /* @__PURE__ */ K("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
- children: /* @__PURE__ */ q("use", { href: "#i-x" })
+ children: /* @__PURE__ */ K("use", { href: "#i-x" })
})
})
]
- }), /* @__PURE__ */ q("div", {
+ }), /* @__PURE__ */ K("div", {
class: "avatarpick-panel",
- children: [/* @__PURE__ */ q("div", {
+ children: [/* @__PURE__ */ K("div", {
class: "avatarpick-gridwrap",
- children: /* @__PURE__ */ q("div", {
+ children: /* @__PURE__ */ K("div", {
class: "avatarpick-grid",
role: "listbox",
"aria-label": "候选头像",
ref: o,
- children: w.map((n) => /* @__PURE__ */ q("button", {
+ children: w.map((n) => /* @__PURE__ */ K("button", {
type: "button",
role: "option",
"aria-selected": n.current,
disabled: !!f,
class: `avatarpick-cell${n.current ? " current" : ""}`,
- title: `${or[n.source] || n.source} · ${n.label}` + (n.width ? ` · ${n.width}×${n.height}` : "") + (n.found_by ? ` · 按「${n.found_by}」找到` : ""),
+ title: `${nr[n.source] || n.source} · ${n.label}` + (n.width ? ` · ${n.width}×${n.height}` : "") + (n.found_by ? ` · 按「${n.found_by}」找到` : ""),
onClick: () => x(n),
children: [
- /* @__PURE__ */ q("img", {
+ /* @__PURE__ */ K("img", {
loading: "lazy",
alt: "",
src: `/avatar-choice?kind=${e}&id=${t}&ref=${encodeURIComponent(n.ref)}`
}),
- /* @__PURE__ */ q("span", { children: n.label }),
- n.current && /* @__PURE__ */ q("b", { children: "在用" })
+ /* @__PURE__ */ K("span", { children: n.label }),
+ n.current && /* @__PURE__ */ K("b", { children: "在用" })
]
}, n.ref))
})
- }), /* @__PURE__ */ q("div", {
+ }), /* @__PURE__ */ K("div", {
class: "avatarpick-actions",
children: [
- /* @__PURE__ */ q("button", {
+ /* @__PURE__ */ K("button", {
type: "button",
class: "geist-button",
disabled: !!f,
onClick: () => s.current?.click(),
children: "从本机选图片"
}),
- /* @__PURE__ */ q("input", {
+ /* @__PURE__ */ K("input", {
ref: s,
type: "file",
accept: "image/png,image/jpeg",
@@ -2804,16 +2524,16 @@ function sr({ kind: e, id: t, name: n, onPicked: r }) {
e.currentTarget.value = "", t && C(t);
}
}),
- /* @__PURE__ */ q("div", {
+ /* @__PURE__ */ K("div", {
class: "avatarpick-url",
- children: [/* @__PURE__ */ q("input", {
+ children: [/* @__PURE__ */ K("input", {
type: "url",
class: "geist-input",
value: m,
placeholder: "https://…",
"aria-label": "图片地址",
onInput: (e) => h(e.currentTarget.value)
- }), /* @__PURE__ */ q("button", {
+ }), /* @__PURE__ */ K("button", {
type: "button",
class: "geist-button",
disabled: !m.trim() || !!f,
@@ -2827,15 +2547,15 @@ function sr({ kind: e, id: t, name: n, onPicked: r }) {
})]
});
}
-function cr(e, t) {
- Ee(/* @__PURE__ */ q(sr, { ...t }), e);
+function ir(e, t) {
+ Ce(/* @__PURE__ */ K(rr, { ...t }), e);
}
-function lr(e) {
- Ee(null, e);
+function ar(e) {
+ Ce(null, e);
}
//#endregion
//#region src/entity-skeleton.ts
-function ur(e, t, n) {
+function or(e, t, n) {
return `<section data-skeleton="entity/${e}" role="status" aria-label="正在读取资料">
<span class="sr-only">正在读取资料</span><div aria-hidden="true">
<section class="entityhero"><div class="entityprofile"><div class="entityportrait ${e === "studio" || e === "agency" ? "square " : ""}skeleton"></div>
@@ -2849,27 +2569,27 @@ function ur(e, t, n) {
}
//#endregion
//#region src/board-skeleton.ts
-var X = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, Z = () => `${X("80%")}${X("48%")}`, Q = (e, t) => e.repeat(t), dr = (e, t = "metricstrip") => `<div class="${t}">${e.map((e) => `<div class="tastesummary"><span class="board-stat-label">${e}</span><b class="board-stat-value">${X("45%")}</b><small class="board-stat-footer">${X("60%")}</small></div>`).join("")}</div>`, fr = (e, t = "skeleton-tabs") => `<div class="${t}">${e.map((e) => `<span>${e}</span>`).join("")}</div>`, pr = (e, t) => `<div class="${t} skeleton-segments" data-board-segments="true">${e.map((e, t) => `<span${t === 0 ? " class=\"skeleton-segment-selected\"" : ""}>${e}</span>`).join("")}</div>`, mr = (e) => `<section class="board-radial-card"><header><span>${e}</span><b>${X()}</b></header><div class="board-rings skeleton-rings"><span class="skeleton skeleton-ring"></span></div><div class="skeleton-lines">${Z()}</div></section>`, hr = (e) => `<section class="insightpanel"><header>${e}</header><div class="insightpanelbody skeleton-lines">${Q(Z(), 3)}</div></section>`, gr = (e) => `<button class="fbtn" type="button" disabled>${e}</button>`, _r = (e) => `<div class="fsechead" data-collapse-toolbar><h3>关注列表</h3><span class="fmeta">${X("100px")}</span><div class="followtoolbaractions"><button class="fbtn primary followcheckall" disabled>${t("refresh-cw")}<span data-collapse-label>检查全部</span></button><div class="iconswitch" data-board-segments="true"><label>${t("layout-grid")}</label><label>${t("table")}</label></div><span class="fmanagesort" data-collapse-field>${t("sort")}${p([["checked", "检查时间"]], "checked", {
+var Y = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, X = () => `${Y("80%")}${Y("48%")}`, Z = (e, t) => e.repeat(t), sr = (e, t = "metricstrip") => `<div class="${t}">${e.map((e) => `<div class="tastesummary"><span class="board-stat-label">${e}</span><b class="board-stat-value">${Y("45%")}</b><small class="board-stat-footer">${Y("60%")}</small></div>`).join("")}</div>`, cr = (e, t = "skeleton-tabs") => `<div class="${t}">${e.map((e) => `<span>${e}</span>`).join("")}</div>`, lr = (e, t) => `<div class="${t} skeleton-segments" data-board-segments="true">${e.map((e, t) => `<span${t === 0 ? " class=\"skeleton-segment-selected\"" : ""}>${e}</span>`).join("")}</div>`, ur = (e) => `<section class="board-radial-card"><header><span>${e}</span><b>${Y()}</b></header><div class="board-rings skeleton-rings"><span class="skeleton skeleton-ring"></span></div><div class="skeleton-lines">${X()}</div></section>`, dr = (e) => `<section class="insightpanel"><header>${e}</header><div class="insightpanelbody skeleton-lines">${Z(X(), 3)}</div></section>`, fr = (e) => `<button class="fbtn" type="button" disabled>${e}</button>`, pr = (e) => `<div class="fsechead" data-collapse-toolbar><h3>关注列表</h3><span class="fmeta">${Y("100px")}</span><div class="followtoolbaractions"><button class="fbtn primary followcheckall" disabled>${t("refresh-cw")}<span data-collapse-label>检查全部</span></button><div class="iconswitch" data-board-segments="true"><label>${t("layout-grid")}</label><label>${t("table")}</label></div><span class="fmanagesort" data-collapse-field>${t("sort")}${f([["checked", "检查时间"]], "checked", {
label: "关注列表排序",
attr: "disabled"
-})}</span><button class="fbtn fmanagedir" disabled>${t("arrow-down")}</button>${e ? "" : gr(t("chevron-up") + "<span data-collapse-label>全部收起</span>")}</div></div>`, vr = () => `<div class="fsource frow"><span class="fchannelcheck">${X("18px")}</span><b>${X("85%")}</b><span class="fprovider">${X("54px")}</span><span class="fmeta fchecked">${X("40px")}</span><span class="fsourceactions"><span class="skeleton skeleton-icon"></span><span class="skeleton skeleton-icon"></span></span></div>`, yr = () => `<details class="fauthor" open><summary class="fauthorhead"><span class="favatar skeleton"></span><b>${X("90px")}</b><span class="skeleton skeleton-icon"></span><span class="fmeta">${X("40px")}</span><span class="board-author-actions"><button type="button" class="fbtn small" data-follow-author-select disabled>${t("check-check")}<span data-author-select-label>全选</span></button><span class="skeleton skeleton-icon"></span></span></summary><div class="fauthorsources">${Q(vr(), 3)}</div></details>`;
-function br() {
- return `<div data-skeleton="detail" role="status" aria-label="正在读取作品详情"><div class="sgrid" aria-hidden="true"><div class="vwrap skeleton-detail-media skeleton"></div><aside class="side"><div class="sidecontent skeleton-lines">${X("85%")}${X("65%")}${Q(Z(), 4)}</div></aside></div></div>`;
+})}</span><button class="fbtn fmanagedir" disabled>${t("arrow-down")}</button>${e ? "" : fr(t("chevron-up") + "<span data-collapse-label>全部收起</span>")}</div></div>`, mr = () => `<div class="fsource frow"><span class="fchannelcheck">${Y("18px")}</span><b>${Y("85%")}</b><span class="fprovider">${Y("54px")}</span><span class="fmeta fchecked">${Y("40px")}</span><span class="fsourceactions"><span class="skeleton skeleton-icon"></span><span class="skeleton skeleton-icon"></span></span></div>`, hr = () => `<details class="fauthor" open><summary class="fauthorhead"><span class="favatar skeleton"></span><b>${Y("90px")}</b><span class="skeleton skeleton-icon"></span><span class="fmeta">${Y("40px")}</span><span class="board-author-actions"><button type="button" class="fbtn small" data-follow-author-select disabled>${t("check-check")}<span data-author-select-label>全选</span></button><span class="skeleton skeleton-icon"></span></span></summary><div class="fauthorsources">${Z(mr(), 3)}</div></details>`;
+function gr() {
+ return `<div data-skeleton="detail" role="status" aria-label="正在读取作品详情"><div class="sgrid" aria-hidden="true"><div class="vwrap skeleton-detail-media skeleton"></div><aside class="side"><div class="sidecontent skeleton-lines">${Y("85%")}${Y("65%")}${Z(X(), 4)}</div></aside></div></div>`;
}
-function xr(e, t = {}) {
+function _r(e, t = {}) {
let n = "";
- if (e === "/stats") n = `<div class="insightpage statsdashboard"><header class="insighttoolbar">${X("38%")}</header>${dr([
+ if (e === "/stats") n = `<div class="insightpage statsdashboard"><header class="insighttoolbar">${Y("38%")}</header>${sr([
"馆藏视频",
"看过",
"内容标签",
"使用空间"
- ])}<section class="insightdetail"><div class="insightdetailbody"><div class="board-inventory-charts">${mr("网盘与本地")}${mr("媒体库")}</div></div></section>${hr("内容标签")}</div>`;
- else if (e === "/taste") n = `<div class="tastepage"><header class="tastehead">${pr(["浏览器记录", "Peach 内部"], "insightswitch")}${X("24%")}</header><div class="tastestate"></div>${dr([
+ ])}<section class="insightdetail"><div class="insightdetailbody"><div class="board-inventory-charts">${ur("网盘与本地")}${ur("媒体库")}</div></div></section>${dr("内容标签")}</div>`;
+ else if (e === "/taste") n = `<div class="tastepage"><header class="tastehead">${lr(["浏览器记录", "Peach 内部"], "insightswitch")}${Y("24%")}</header><div class="tastestate"></div>${sr([
"浏览记录",
"口味维度",
"浏览候选",
"私有导出"
- ], "tastesummaries")}<section class="tastehero"><div class="insightcopy"><span>浏览器画像</span><div class="skeleton skeleton-radar"></div></div><div class="tastebars skeleton-lines">${Q(Z(), 4)}</div></section>${hr("口味分析")}<div class="board-activity-charts">${hr("浏览活动")}${hr("时间分布")}</div>${hr("标签")}</div>`;
+ ], "tastesummaries")}<section class="tastehero"><div class="insightcopy"><span>浏览器画像</span><div class="skeleton skeleton-radar"></div></div><div class="tastebars skeleton-lines">${Z(X(), 4)}</div></section>${dr("口味分析")}<div class="board-activity-charts">${dr("浏览活动")}${dr("时间分布")}</div>${dr("标签")}</div>`;
else if (e === "/follow-manage") {
let e = t.followLayout === "table", r = e ? `<div class="ftableframe"><div class="ftablewrap"><table class="ftable"><thead><tr>${[
"选择",
@@ -2879,7 +2599,7 @@ function xr(e, t = {}) {
"状态",
"上次检查",
"操作"
- ].map((e) => `<th>${e === "选择" ? "<label>" + o("disabled aria-label=\"全选本页来源\"") + "</label>" : e}</th>`).join("")}</tr></thead><tbody>${Q(`<tr>${[
+ ].map((e) => `<th>${e === "选择" ? "<label>" + a("disabled aria-label=\"全选本页来源\"") + "</label>" : e}</th>`).join("")}</tr></thead><tbody>${Z(`<tr>${[
"20px",
"90px",
"120px",
@@ -2887,37 +2607,37 @@ function xr(e, t = {}) {
"40px",
"100px",
"60px"
- ].map((e) => `<td>${X(e)}</td>`).join("")}</tr>`, 6)}</tbody></table></div></div>` : `<div class="board-follow-list">${Q(yr(), 4)}</div>`;
+ ].map((e) => `<td>${Y(e)}</td>`).join("")}</tr>`, 6)}</tbody></table></div></div>` : `<div class="board-follow-list">${Z(hr(), 4)}</div>`;
n = `<div class="follow followmanage"><div class="fmanageoverview">${[
"关注创作者",
"启用来源",
"检查失败",
"未看更新"
- ].map((e) => `<div><span>${e}</span><b>${X()}</b></div>`).join("")}</div>${pr([
+ ].map((e) => `<div><span>${e}</span><b>${Y()}</b></div>`).join("")}</div>${lr([
"关注列表",
"添加关注",
"来源和凭证"
- ], "follow-workspace-switch")}<div class="fmain"><section class="fsec" data-follow-workspace-panel="list">${_r(e)}<div class="board-follow-selection"${e ? " hidden" : ""}><label>${o("disabled")}全选本页</label></div><div class="frows fsources" data-layout="${e ? "table" : "default"}">${r}<div class="followpagefooter"><div class="followpageinfo">${X("120px")}${X("100px")}</div></div></div></section></div></div>`;
- } else if (e === "/configuration") n = `<div class="configpage">${fr([
+ ], "follow-workspace-switch")}<div class="fmain"><section class="fsec" data-follow-workspace-panel="list">${pr(e)}<div class="board-follow-selection"${e ? " hidden" : ""}><label>${a("disabled")}全选本页</label></div><div class="frows fsources" data-layout="${e ? "table" : "default"}">${r}<div class="followpagefooter"><div class="followpageinfo">${Y("120px")}${Y("100px")}</div></div></div></section></div></div>`;
+ } else if (e === "/configuration") n = `<div class="configpage">${cr([
"通用",
"媒体",
"网络与访问",
"更新与维护"
- ])}<section class="configfieldset"><div class="geist-fieldset-content"><h3 class="geist-fieldset-title">开机自启</h3><div class="skeleton-lines">${Q(`<div class="skeleton-setting">${X("35%")}<span class="skeleton skeleton-toggle"></span></div>`, 3)}</div></div><footer class="geist-fieldset-footer">${X("100px")}</footer></section></div>`;
+ ])}<section class="configfieldset"><div class="geist-fieldset-content"><h3 class="geist-fieldset-title">开机自启</h3><div class="skeleton-lines">${Z(`<div class="skeleton-setting">${Y("35%")}<span class="skeleton skeleton-toggle"></span></div>`, 3)}</div></div><footer class="geist-fieldset-footer">${Y("100px")}</footer></section></div>`;
else if (e === "/activity") n = `<div class="activitypage">${[
"正在进行",
"被挡下的",
"最近完成"
- ].map((e) => `<section class="activitysection"><h3 class="geist-fieldset-title">${e}</h3><div class="activity-runs"><article class="cleanupfieldset activity-run"><div class="geist-fieldset-content skeleton-lines">${X("35%")}${Z()}</div></article></div></section>`).join("")}</div>`;
- else if (e === "/duplicates") n = `<div class="review"><div class="collection-summary">${X("38%")}</div><div class="fsechead dupactions"><h3>批量保留</h3>${X("40%")}</div>${Q(`<section class="dupgroup"><div class="duphead">${X("45%")}</div><div class="duplist">${Q(`<div class="duprow"><span class="dupcover skeleton"></span><span class="dupmarks">${X()}</span><span class="dupname">${X("90%")}</span>${X()}${X()}${X()}<span class="duppath">${X("70%")}</span></div>`, 2)}</div></section>`, 2)}</div>`;
- else if (e === "/quality-goals") n = `<div class="quality-workspace"><div class="collection-summary"><strong>待升级</strong>${X("20%")}</div><div class="qualitylist">${Q(`<article class="qualityitem"><span class="qualitycover skeleton"></span><div class="qualitybody skeleton-lines">${Z()}</div><footer class="qualityactions">${X("80%")}</footer></article>`, 6)}</div></div>`;
- else if (e === "/playlists") n = `<section class="playlistpage"><header><div><h2>播放列表</h2><p>保存 Mix,按自己的顺序继续播放。</p></div><div class="playlistcreate skeleton-lines"><span>新播放列表</span>${X("200px")}</div></header><div class="playlistcards">${Q(`<article class="card playlistcard"><div class="mixstack"><div class="pic skeleton"></div></div><div class="mixmeta"><span class="mav skeleton"></span><div class="mixcopy skeleton-lines">${Z()}</div></div></article>`, 6)}</div></section>`;
+ ].map((e) => `<section class="activitysection"><h3 class="geist-fieldset-title">${e}</h3><div class="activity-runs"><article class="cleanupfieldset activity-run"><div class="geist-fieldset-content skeleton-lines">${Y("35%")}${X()}</div></article></div></section>`).join("")}</div>`;
+ else if (e === "/duplicates") n = `<div class="review"><div class="collection-summary">${Y("38%")}</div><div class="fsechead dupactions"><h3>批量保留</h3>${Y("40%")}</div>${Z(`<section class="dupgroup"><div class="duphead">${Y("45%")}</div><div class="duplist">${Z(`<div class="duprow"><span class="dupcover skeleton"></span><span class="dupmarks">${Y()}</span><span class="dupname">${Y("90%")}</span>${Y()}${Y()}${Y()}<span class="duppath">${Y("70%")}</span></div>`, 2)}</div></section>`, 2)}</div>`;
+ else if (e === "/quality-goals") n = `<div class="quality-workspace"><div class="collection-summary"><strong>待升级</strong>${Y("20%")}</div><div class="qualitylist">${Z(`<article class="qualityitem"><span class="qualitycover skeleton"></span><div class="qualitybody skeleton-lines">${X()}</div><footer class="qualityactions">${Y("80%")}</footer></article>`, 6)}</div></div>`;
+ else if (e === "/playlists") n = `<section class="playlistpage"><header><div><h2>播放列表</h2><p>保存 Mix,按自己的顺序继续播放。</p></div><div class="playlistcreate skeleton-lines"><span>新播放列表</span>${Y("200px")}</div></header><div class="playlistcards">${Z(`<article class="card playlistcard"><div class="mixstack"><div class="pic skeleton"></div></div><div class="mixmeta"><span class="mav skeleton"></span><div class="mixcopy skeleton-lines">${X()}</div></div></article>`, 6)}</div></section>`;
else return "";
return `<div class="board-page-skeleton" data-skeleton="board${e}" role="status" aria-label="正在读取页面"><div aria-hidden="true" inert>${n}</div></div>`;
}
//#endregion
//#region src/catalog-onboarding.ts
-var Sr = [
+var vr = [
"loc",
"creator",
"performer",
@@ -2935,16 +2655,16 @@ var Sr = [
"jav",
"thumb"
];
-function Cr() {
+function yr() {
let e = (e) => Array(64).fill(e).join("");
return {
tiers: "<div class=\"tier catalog-placeholder\" aria-hidden=\"true\">" + e("<span class=\"av\"><span class=\"ring\"></span><span class=\"nm\">&nbsp;</span></span>") + "</div><div class=\"tier catalog-placeholder\" aria-hidden=\"true\">" + e("<span class=\"brandpill\"><span class=\"mk\"></span><span class=\"placeholder-name\">&nbsp;</span></span>") + "</div>",
tags: "<span class=\"catalog-placeholder placeholder-tags\" aria-hidden=\"true\">" + e("<span class=\"pill\">&nbsp;</span>") + "</span>"
};
}
-async function wr(e, t) {
+async function br(e, t) {
let n = new URLSearchParams();
- for (let t of Sr) e[t] && n.set(t, e[t]);
+ for (let t of vr) e[t] && n.set(t, e[t]);
let [r, i] = await Promise.all([t("/api/facets?" + n), t("/api/items?" + n + "&limit=5")]), a = [...new Set([
...r.creators || [],
...r.tagperformers || [],
@@ -2955,9 +2675,9 @@ async function wr(e, t) {
return r.set("q", e), r.set("limit", "1"), (await t("/api/items?" + r)).total > 0 ? e : "";
}))).filter(Boolean);
}
-function Tr({ kind: e = "catalog", filtered: t = !1, jav: n = !1, configurable: r = !1, online: i = !1 } = {}) {
- let a = r ? "<button class=\"geist-button primary\" data-empty-settings>添加内容</button>" : "", o = "<a class=\"geist-button" + (!r || i ? " primary" : "") + "\" href=\"/follow-manage?tab=add\">添加关注</a>";
- if (t || n) return s("search", n ? "还没有符合条件的 JAV 作品" : "没有符合条件的内容", n ? "已扫描但尚未补充发行资料的视频可在全部内容中查看。" : "清除筛选或搜索条件后查看全部内容。", { actions: "<a class=\"geist-button primary\" href=\"/?loc=&thumb=0\">查看全部内容</a>" });
+function xr({ kind: e = "catalog", filtered: t = !1, jav: n = !1, configurable: r = !1, online: i = !1 } = {}) {
+ let a = r ? "<button class=\"geist-button primary\" data-empty-settings>添加内容</button>" : "", s = "<a class=\"geist-button" + (!r || i ? " primary" : "") + "\" href=\"/follow-manage?tab=add\">添加关注</a>";
+ if (t || n) return o("search", n ? "还没有符合条件的 JAV 作品" : "没有符合条件的内容", n ? "已扫描但尚未补充发行资料的视频可在全部内容中查看。" : "清除筛选或搜索条件后查看全部内容。", { actions: "<a class=\"geist-button primary\" href=\"/?loc=&thumb=0\">查看全部内容</a>" });
if (e !== "catalog") {
let t = (i ? {
tags: "标签",
@@ -2970,13 +2690,13 @@ function Tr({ kind: e = "catalog", filtered: t = !1, jav: n = !1, configurable:
agencies: "事务所",
series: "系列"
}[e] || "资料";
- return s(e === "tags" ? "tags" : "user-round", "还没有" + t, i ? "添加关注来源并获取内容后,这里会显示来源上的" + t + "。" : "添加内容并补充资料后,这里会显示对应信息。", { actions: i ? o : a + o });
+ return o(e === "tags" ? "tags" : "user-round", "还没有" + t, i ? "添加关注来源并获取内容后,这里会显示来源上的" + t + "。" : "添加内容并补充资料后,这里会显示对应信息。", { actions: i ? s : a + s });
}
- return s("play", "还没有视频", "添加媒体文件夹或关注来源,开始建立你的馆藏。", { actions: a + o });
+ return o("play", "还没有视频", "添加媒体文件夹或关注来源,开始建立你的馆藏。", { actions: a + s });
}
//#endregion
//#region src/sidebar.ts
-function Er(e) {
+function Sr(e) {
return [
"/",
"/unseen",
@@ -2986,57 +2706,57 @@ function Er(e) {
"/junk-files"
].includes(e) || /^\/(item|mix|parts|editions)\//.test(e) || /^\/playlists\/\d+\/\d+$/.test(e) || /^\/(performers|studios|creators|series|agencies)\/.+/.test(e);
}
-function Dr(e, t) {
+function Cr(e, t) {
return e.dataset.surface?.split("?")[0] === t.split("?")[0] && e.querySelector(".dnav") ? (e.dataset.surface = t, !1) : (e.dataset.surface = t, e.replaceChildren(), !0);
}
-function Or(e) {
+function wr(e) {
let t = /* @__PURE__ */ new Map();
for (let n of e) for (let e of new Set(n.tags || [])) t.set(e, (t.get(e) || 0) + 1);
return [...t].sort((e, t) => t[1] - e[1]).slice(0, 30);
}
//#endregion
//#region src/resource-sync.ts
-var $ = (e = 0) => Number(e).toLocaleString(), kr = {
+var Q = (e = 0) => Number(e).toLocaleString(), Tr = {
local: "本地磁盘",
115: "115",
pikpak: "PikPak"
-}, Ar = (e) => m(i[e] ?? "database"), jr = (e, t, n) => `<article class="board-plain-stat resourcestat">
+}, Er = (e) => p(r[e] ?? "database"), Dr = (e, t, n) => `<article class="board-plain-stat resourcestat">
<span class="board-plain-stat-head">${e}</span>
<strong>${t}</strong>
<span class="cleanupmeta">${n}</span></article>`;
-function Mr(e, t) {
+function Or(e, t) {
let n = e.cache || {
files: 0,
bytes: 0
}, r = !!(e.missing || n.files);
- return `<div class="cleanupstats resourcestats">${(e.sources || []).map((e) => jr(`<span class="board-stat-tile resourcestat-tile">${Ar(e.location)}</span>${kr[e.location] || "媒体来源"}<span class="resourcestat-state ${e.online ? "online" : "offline"}">${e.online ? "可访问" : "离线,已跳过"}</span>`, e.online ? `${$(e.missing)} 项` : "—", [e.online ? `找不到文件 · 已检查 ${$(e.checked)} 项` : `馆藏中有 ${$(e.total)} 项`, e.unreadable ? `${$(e.unreadable)} 项读取失败,已跳过` : ""].filter(Boolean).join(" · "))).join("")}
- ${jr("待移入回收站", `${$(e.missing)} 项`, "")}
- ${jr("可清理的缓存", `${$(n.files)} 个`, n.files ? t(n.bytes) : "")}</div>
- ${r ? d(`将把找不到文件的 ${$(e.missing)} 项馆藏记录移入回收站,并清理 ${$(n.files)} 个闲置缓存。`, { label: "清理内容" }) : ""}
+ return `<div class="cleanupstats resourcestats">${(e.sources || []).map((e) => Dr(`<span class="board-stat-tile resourcestat-tile">${Er(e.location)}</span>${Tr[e.location] || "媒体来源"}<span class="resourcestat-state ${e.online ? "online" : "offline"}">${e.online ? "可访问" : "离线,已跳过"}</span>`, e.online ? `${Q(e.missing)} 项` : "—", [e.online ? `找不到文件 · 已检查 ${Q(e.checked)} 项` : `馆藏中有 ${Q(e.total)} 项`, e.unreadable ? `${Q(e.unreadable)} 项读取失败,已跳过` : ""].filter(Boolean).join(" · "))).join("")}
+ ${Dr("待移入回收站", `${Q(e.missing)} 项`, "")}
+ ${Dr("可清理的缓存", `${Q(n.files)} 个`, n.files ? t(n.bytes) : "")}</div>
+ ${r ? u(`将把找不到文件的 ${Q(e.missing)} 项馆藏记录移入回收站,并清理 ${Q(n.files)} 个闲置缓存。`, { label: "清理内容" }) : ""}
<div class="resourceapplyrow geist-fieldset-footer" data-geist-fieldset-footer>${r ? "<button class=\"geist-button primary\" type=\"button\" id=\"resourceApply\">清理失效记录与缓存</button>" : "<p class=\"resourcesyncok\">已检查可访问的来源,没有待清理的记录或缓存。</p>"}</div>`;
}
//#endregion
//#region src/jav-artwork.ts
-function Nr(e) {
+function kr(e) {
return [
"small",
"sleeve",
"preview"
].includes(String(e)) ? "small" : "big";
}
-function Pr(e) {
+function Ar(e) {
return {
- javLayout: Nr(e.javLayout),
- javImage: Fr(e.javLayout === "preview" ? "thumbnail" : e.javImage)
+ javLayout: kr(e.javLayout),
+ javImage: jr(e.javLayout === "preview" ? "thumbnail" : e.javImage)
};
}
-function Fr(e) {
+function jr(e) {
return e === "thumbnail" ? "thumbnail" : "cover";
}
-function Ir(e, t) {
- return e.is_jav && e.code && e.has_cover && (Fr(t) === "cover" || !e.has_thumb) ? "cover" : e.has_thumb ? "thumbnail" : "";
+function Mr(e, t) {
+ return e.is_jav && e.code && e.has_cover && (jr(t) === "cover" || !e.has_thumb) ? "cover" : e.has_thumb ? "thumbnail" : "";
}
-function Lr(e, t) {
+function Nr(e, t) {
let n = Number(e?.px?.[0]), r = Number(e?.px?.[1]), i = Number(e?.x0);
if (!(n > 0 && r > 0 && t > 0) || !Number.isFinite(i)) return null;
let a = Math.min(1, Math.max(0, i / n)), o = n / r / t, s = (1 - a) * o;
@@ -3047,39 +2767,36 @@ function Lr(e, t) {
left: l(c)
};
}
-function Rr(e, t) {
+function Pr(e, t) {
e.querySelectorAll("img[data-jav-image]").forEach((e) => {
- let n = e.dataset.javCover || "", r = e.dataset.javThumb || "", i = !!(n && (Fr(t) === "cover" || !r)), a = i ? n : r;
+ let n = e.dataset.javCover || "", r = e.dataset.javThumb || "", i = !!(n && (jr(t) === "cover" || !r)), a = i ? n : r;
e.classList.toggle("cover", i), e.classList.toggle("whole", i && e.dataset.javImageLayout !== "big"), e.classList.toggle("front", i && e.dataset.javImageLayout === "big"), e.classList.remove("panel"), e.removeAttribute("style"), e.closest(".pic")?.style.removeProperty("--cover-blur"), a && e.getAttribute("src") !== a && (e.src = a);
});
}
//#endregion
//#region src/islands.ts
-var zr = {
+var Fr = {
"library-processing": {
load: ft,
component: bt
},
- scraping: {
- load: Pn,
- component: Ln
- },
+ scraping: { react: "scraping" },
"quality-goals": { react: "quality-goals" },
configuration: {
load: Mn,
component: Nn
},
activity: { react: "activity" }
-}, Br = () => Object.keys(zr), Vr = /* @__PURE__ */ new Map();
-async function Hr(e, t, n, r = {}) {
- let i = zr[e];
+}, Ir = () => Object.keys(Fr), $ = /* @__PURE__ */ new Map();
+async function Lr(e, t, n, r = {}) {
+ let i = Fr[e];
if (!i) throw Error(`未注册的 island:${String(e)}`);
- Kr(t);
+ Vr(t);
let a = {
controller: new AbortController(),
painted: !1
};
- if (Vr.set(t, a), "react" in i) return Wr(i, t, n, a, r);
+ if ($.set(t, a), "react" in i) return zr(i, t, n, a, r);
let o;
try {
o = {
@@ -3090,27 +2807,27 @@ async function Hr(e, t, n, r = {}) {
if (a.controller.signal.aborted) return;
o = {
data: null,
- error: W(e)
+ error: rt(e)
};
}
- if (!Ur(t, a, r)) return;
+ if (!Rr(t, a, r)) return;
let s = {
...n,
...o
};
- Ee(ie(i.component, s), t);
+ Ce(L(i.component, s), t);
}
-function Ur(e, t, n) {
- return Vr.get(e) === t ? n.isCurrent && !n.isCurrent() ? (Vr.delete(e), !1) : (e.textContent = "", t.painted = !0, !0) : !1;
+function Rr(e, t, n) {
+ return $.get(e) === t ? n.isCurrent && !n.isCurrent() ? ($.delete(e), !1) : (e.textContent = "", t.painted = !0, !0) : !1;
}
-async function Wr(e, t, n, r, i) {
+async function zr(e, t, n, r, i) {
let a = (await import("/dist/peach-react.js")).pages[e.react];
try {
await a.prefetch(n, r.controller.signal);
} catch {
if (r.controller.signal.aborted) return;
}
- if (!Ur(t, r, i)) return;
+ if (!Rr(t, r, i)) return;
let o = t.ownerDocument.createElement("div");
o.className = "peach-react", t.append(o);
let s = a.mount(o, n);
@@ -3118,10 +2835,10 @@ async function Wr(e, t, n, r, i) {
s.unmount(), o.remove();
};
}
-var Gr = (e) => !!e && Vr.has(e);
-function Kr(e) {
- let t = Vr.get(e);
- t && (t.controller.abort(), Vr.delete(e), t.dispose ? t.dispose() : t.painted && Ee(null, e));
+var Br = (e) => !!e && $.has(e);
+function Vr(e) {
+ let t = $.get(e);
+ t && (t.controller.abort(), $.delete(e), t.dispose ? t.dispose() : t.painted && Ce(null, e));
}
//#endregion
-export { Tt as TASTE_GUIDE_KEY, Cn as activityChartsHtml, xr as boardPageSkeleton, ke as boundedPreference, Tr as catalogEmptyHtml, wr as catalogSuggestions, nr as clampPage, Ct as cleanupSkeletonHtml, xt as cloudLocations, St as cloudPreferenceLocations, Kn as createReviewSelection, _n as creatorSankeyHtml, br as detailSkeletonHtml, Pe as distributionChart, Cr as emptyCatalogLayout, ur as entitySkeletonHtml, ct as followJobProgress, Yn as groupReviewRows, Bn as identityEvidenceHtml, jt as initBoardControls, Gr as islandMounted, Br as islandNames, Ir as javImageKind, ot as jobActivityHtml, Ne as jobProgressHtml, ir as matchesFaceSource, cr as mountAvatarPicker, kt as mountBoardStatePreview, Hr as mountIsland, je as mountNumberSetting, ar as nativeImageFit, Fr as normalizeJavImage, Nr as normalizeJavLayout, Pr as normalizeJavPreferences, tr as pageCount, rr as paginationHtml, Lr as panelFrame, De as preferredDirection, Ie as radarChart, bn as radialCardHtml, Fe as rankedChart, Mr as resourceScanHtml, zn as reviewImageHtml, Wn as selectGroup, Hn as selectRange, Un as selectionSummary, Er as sidebarHasCatalogContent, En as sidebarSectionHtml, Or as sidebarTagCounts, Me as statCardBody, At as syncBoardRange, Rr as syncJavImages, Ae as syncNumberSetting, Gn as syncSelectionToolbar, Dr as syncSidebarSurface, wt as tasteHistoryGuideHtml, kn as transitionTheme, lr as unmountAvatarPicker, Kr as unmountIsland, qn as updateReviewSticky, st as watchJob, wn as wireActivityCharts, vn as wireCreatorSankey, Lt as wireExpandableRanks, It as wireGrowingCharts, xn as wireRadialCards, Vn as wireReviewPictures, $n as wireReviewSelection, Dn as wireSidebarGroups, Et as wireTasteHistoryGuide };
+export { Tt as TASTE_GUIDE_KEY, Cn as activityChartsHtml, _r as boardPageSkeleton, Ee as boundedPreference, xr as catalogEmptyHtml, br as catalogSuggestions, Qn as clampPage, Ct as cleanupSkeletonHtml, xt as cloudLocations, St as cloudPreferenceLocations, Hn as createReviewSelection, _n as creatorSankeyHtml, gr as detailSkeletonHtml, je as distributionChart, yr as emptyCatalogLayout, or as entitySkeletonHtml, ct as followJobProgress, Gn as groupReviewRows, In as identityEvidenceHtml, jt as initBoardControls, Br as islandMounted, Ir as islandNames, Mr as javImageKind, ot as jobActivityHtml, Ae as jobProgressHtml, er as matchesFaceSource, ir as mountAvatarPicker, kt as mountBoardStatePreview, Lr as mountIsland, Oe as mountNumberSetting, tr as nativeImageFit, jr as normalizeJavImage, kr as normalizeJavLayout, Ar as normalizeJavPreferences, Zn as pageCount, $n as paginationHtml, Nr as panelFrame, we as preferredDirection, Ne as radarChart, bn as radialCardHtml, Me as rankedChart, Or as resourceScanHtml, Fn as reviewImageHtml, Bn as selectGroup, Rn as selectRange, zn as selectionSummary, Sr as sidebarHasCatalogContent, En as sidebarSectionHtml, wr as sidebarTagCounts, ke as statCardBody, At as syncBoardRange, Pr as syncJavImages, De as syncNumberSetting, Vn as syncSelectionToolbar, Cr as syncSidebarSurface, wt as tasteHistoryGuideHtml, kn as transitionTheme, ar as unmountAvatarPicker, Vr as unmountIsland, Un as updateReviewSticky, st as watchJob, wn as wireActivityCharts, vn as wireCreatorSankey, Lt as wireExpandableRanks, It as wireGrowingCharts, xn as wireRadialCards, Ln as wireReviewPictures, Yn as wireReviewSelection, Dn as wireSidebarGroups, Et as wireTasteHistoryGuide };