Skip to content

armgit / peach

Public Imported from GitHub
0

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

fix(web): 扫描失败提示的重试键靠右,问题清单铺满并走覆盖式滚动条

longmeidaoa9214cab5522
diff --git a/frontend/e2e/design.test.ts b/frontend/e2e/design.test.ts
index ae284e415..f9de22c72 100644
--- a/frontend/e2e/design.test.ts
+++ b/frontend/e2e/design.test.ts
@@ -180,6 +180,17 @@ async function openCatalogFixture(
/** 一趟跑到一半的扫描与采集。 */
const RUNNING_JOB = { status: 'running', stage: '采集缺失资料', checked: 38, total: 100 };
+/** 一趟断在半路、攒下一份长问题清单的扫描与采集:演示库里这两样都凑不出来。 */
+const FAILED_JOB = {
+ status: 'failed', job_id: 'one', error: '处理被中断,请检查媒体目录后重试。',
+ issue_count: 347, issues_truncated: true, retryable_asset_ids: [1, 2],
+ issues_log: 'C:\\peach-data\\state\\library-processing-demo.issues.jsonl',
+ issue_preview: Array.from({ length: 20 }, (_, at) => ({
+ asset_id: at + 1, title: `示例-${at + 1}.mp4`, path: `B:\\番号\\示例-${at + 1}.mp4`,
+ message: '封面未取得:javdb:请求预算已用完;已有图片保留',
+ })),
+};
+
describe('设计决定', () => {
let browser: Browser;
@@ -407,6 +418,38 @@ describe('设计决定', () => {
}
});
+ it('失败提示里重试键靠右,问题清单铺满提示并走覆盖式滚动条', { timeout: 60_000 }, async () => {
+ const opened = await openProcessing(browser, '/data-cleanup', FAILED_JOB);
+ try {
+ const alert = opened.page.locator('#libraryProcessing [role="alert"]');
+ await alert.waitFor({ state: 'visible', timeout: 15_000 });
+ await alert.locator('summary').click();
+ const list = alert.locator('ul');
+ await list.waitFor({ state: 'visible', timeout: 5_000 });
+ const geometry = await alert.evaluate((element) => {
+ const note = element.getBoundingClientRect();
+ const button = element.querySelector('button')!.getBoundingClientRect();
+ const items = element.querySelector('ul')!;
+ return {
+ padding: parseFloat(getComputedStyle(element).paddingRight),
+ noteRight: note.right, buttonRight: button.right,
+ listRight: items.getBoundingClientRect().right,
+ client: items.clientWidth, offset: items.offsetWidth,
+ track: !!element.querySelector('.ovtrack'),
+ };
+ });
+ assert.ok(geometry.noteRight - geometry.buttonRight - geometry.padding < 1,
+ '重试键没有贴着提示的右内边,读起来就不是这条提示的主动作');
+ assert.ok(geometry.noteRight - geometry.listRight - geometry.padding < 1,
+ '问题清单没有铺满提示的宽度');
+ assert.equal(geometry.client, geometry.offset, '原生滚动条还占着清单右边一列');
+ assert.ok(geometry.track, '清单没有挂上全站那条覆盖式滚动条');
+ assert.deepEqual(opened.problems, []);
+ } finally {
+ await opened.close();
+ }
+ });
+
it('新窗口打开的来源地址两项 rel 都写:不带走会话,也不带走来处', { timeout: 60_000 }, async () => {
const opened = await openScraping(browser);
try {
diff --git a/frontend/src/react/components/note.tsx b/frontend/src/react/components/note.tsx
index 24f0ff7cd..a816cb790 100644
--- a/frontend/src/react/components/note.tsx
+++ b/frontend/src/react/components/note.tsx
@@ -8,16 +8,24 @@ type Tone = 'neutral' | 'info' | 'success' | 'warning' | 'error';
/** 没有密码、保存失败、账本缺表这类是当前状态,不和字段说明共用灰色小字。
*
- * `extra` 收结论以外的东西(重试键、折叠起来的问题清单):它们讲的是同一件事,摆到
- * Note 外面就成了一句话加一个不知道属于谁的按钮。正文是段落,塞不进这些块级内容。 */
+ * `action` 是这条提示要人当场做的那件事,靠右摆在结论那一行,和卡片里「说明在左、
+ * 按钮在右」同一个读法。`extra` 收结论以外的东西(折叠起来的问题清单):它们讲的是
+ * 同一件事,摆到 Note 外面就成了一句话加一块不知道属于谁的内容。
+ * 正文是段落,塞不进这些块级内容。 */
export function Note(
- { tone, title, extra, children }:
- { tone: Tone; title?: string; extra?: ReactNode; children: ReactNode },
+ { tone, title, action, extra, children }:
+ { tone: Tone; title?: string; action?: ReactNode; extra?: ReactNode; children: ReactNode },
) {
const content = (
<>
- {title ? <p className="text-body-medium">{title}</p> : null}
- <p className="text-body-2-regular">{children}</p>
+ {/* 窄屏放不下时按钮换到下一行:挤成两个字一行的按钮比换行更难认。 */}
+ <div className="flex flex-wrap items-center justify-between gap-3">
+ <div className="flex min-w-0 flex-1 flex-col gap-0.5">
+ {title ? <p className="text-body-medium">{title}</p> : null}
+ <p className="text-body-2-regular">{children}</p>
+ </div>
+ {action}
+ </div>
{extra}
</>
);
diff --git a/frontend/src/react/library-processing/library-processing-card.tsx b/frontend/src/react/library-processing/library-processing-card.tsx
index 496d94615..08ace27cd 100644
--- a/frontend/src/react/library-processing/library-processing-card.tsx
+++ b/frontend/src/react/library-processing/library-processing-card.tsx
@@ -12,6 +12,7 @@ import {
} from '@remixicon/react';
import { useMutation } from '@tanstack/react-query';
import { Dialog, Popover } from 'react-aria-components';
+import { attachOverlayScrollbar } from '@peach/legacy/ui';
import { Button } from '@/components/base/buttons/button';
import { LinkButton } from '@/components/base/buttons/link-button';
@@ -115,6 +116,10 @@ function Outcome(
const details = issueDetails(state);
const retryable = state.status === 'failed' && !!state.retryable_asset_ids?.length;
const notes = notesLine(state.notes || {});
+ const list = useRef<HTMLUListElement>(null);
+ /* 清单是这一页唯一自己滚的块,原生滚动条在这儿就是一条系统灰柱子。挂全站那条覆盖式
+ 的:它自带「已挂过」标记,所以每次渲染都试一次,清单从无到有那一次才挂得上。 */
+ useEffect(() => { attachOverlayScrollbar(list.current) });
return (
/* 空着时整块收起:`aria-live` 的容器留着一条空轨道,卡片底下就凭空多出一个间距。 */
<div aria-live="polite" className="flex flex-col gap-4 empty:hidden">
@@ -122,31 +127,33 @@ function Outcome(
? <Note tone="warning" title="处理较慢">{STALLED_TEXT}</Note>
: null}
{problem || state.status === 'failed'
- ? <Note tone="error" extra={
- <div className="flex flex-col items-start gap-3 pt-1">
- {retryable
- ? <Button variant="secondary" size="small" onClick={onRetry}>重试未完成项</Button>
- : null}
- {details
- ? <Disclosure summary={details.label}>
- <ul className="flex max-h-96 flex-col gap-2 overflow-y-auto">
- {details.items.map((item) => (
- <li key={item.key} className="flex flex-col gap-0.5">
- {item.href
- ? <a href={item.href} className="text-body-2-medium underline-offset-4 hover:underline">{item.label}</a>
- : <span className="text-body-2-medium">{item.label}</span>}
- <span className="text-caption-1-regular">{item.note}</span>
- {item.hint ? <code className="text-caption-1-regular break-all">{item.hint}</code> : null}
- </li>
- ))}
- </ul>
+ ? <Note tone="error"
+ action={retryable
+ ? <Button variant="primary" size="small" onClick={onRetry}>重试未完成项</Button>
+ : null}
+ extra={details
+ ? <div className="pt-1">
+ <Disclosure summary={details.label}>
+ {/* 轨道是滚动容器的兄弟,得有一层只裹着清单的定位祖先给它落脚。 */}
+ <div className="relative">
+ <ul ref={list} className="flex max-h-96 flex-col gap-2 overflow-y-auto pr-3">
+ {details.items.map((item) => (
+ <li key={item.key} className="flex flex-col gap-0.5">
+ {item.href
+ ? <a href={item.href} className="text-body-2-medium underline-offset-4 hover:underline">{item.label}</a>
+ : <span className="text-body-2-medium">{item.label}</span>}
+ <span className="text-caption-1-regular">{item.note}</span>
+ {item.hint ? <code className="text-caption-1-regular break-all">{item.hint}</code> : null}
+ </li>
+ ))}
+ </ul>
+ </div>
{details.footnote
? <p className="text-caption-1-regular break-all">{details.footnote}</p>
: null}
</Disclosure>
- : null}
- </div>
- }>
+ </div>
+ : null}>
{problem || state.error || '处理未完成,请重试'}
</Note>
: null}
diff --git a/frontend/test/react/library-processing.test.tsx b/frontend/test/react/library-processing.test.tsx
index 263b273c0..99ec46cb7 100644
--- a/frontend/test/react/library-processing.test.tsx
+++ b/frontend/test/react/library-processing.test.tsx
@@ -186,10 +186,21 @@ it('失败时把问题清单折叠进错误提示,重试只交失败的那些
expect(details.querySelector('li')?.textContent).toContain('样品.mp4');
expect(details.querySelector('li code')?.textContent).toBe('R:\\Media\\样品.mp4');
expect(details.querySelector('p')?.textContent).toContain(LOG);
+ // 清单自己那条滚动条走全站那份覆盖式的,不留系统灰柱子。
+ const list = details.querySelector('ul')!;
+ expect(list.dataset.overlayScrollbar).toBe('true');
+ expect(list.parentElement?.querySelector('.ovtrack')).not.toBeNull();
// 这一趟该做的事是把没做完的补上,页脚不再摆「重新跑一整批」。
expect(buttonNamed('扫描并补全资料', host)).toBeNull();
- await click(buttonNamed('重试未完成项'));
+ // 重试键是这条提示的主动作:和卡片一样摆在右边,不是正文底下一颗次级键。
+ const retry = buttonNamed('重试未完成项')!;
+ expect(retry.className).toContain('bg-button-primary');
+ const headline = alert!.firstElementChild!;
+ expect(headline.className).toContain('justify-between');
+ expect(headline.lastElementChild).toBe(retry);
+
+ await click(retry);
expect(served.posts()).toEqual([{ job_id: 'one', retry: [7, 8] }]);
});
diff --git a/frontend/test/stubs/legacy-ui.ts b/frontend/test/stubs/legacy-ui.ts
index 7e0e6234c..7b12cff03 100644
--- a/frontend/test/stubs/legacy-ui.ts
+++ b/frontend/test/stubs/legacy-ui.ts
@@ -12,8 +12,8 @@ export const emptyStateHtml = (
+ `<div class="es-icon" data-icon="${iconName}"></div>`
+ `<div class="es-copy"><h3>${title}</h3><p>${description}</p></div>${options.actions || ''}</div>`;
-// @ts-expect-error 汇总行复用正式模板,折叠开合用正式实现。
-export {collectionSummaryHtml, setCollapseOpen} from '../../../web/js/ui-components.js';
+// @ts-expect-error 汇总行复用正式模板,折叠开合与覆盖式滚动条用正式实现。
+export {attachOverlayScrollbar, collectionSummaryHtml, setCollapseOpen} from '../../../web/js/ui-components.js';
export const loadingDotsHtml = (label: string): string => `<span>${label}</span>`;
export const checkboxHtml = (attrs = ''): string => `<span class="pcheck"><input type="checkbox" ${attrs}></span>`;
export const progressHtml = (label: string, value: number, max = 100): string =>
diff --git a/tests/test_web_ui.py b/tests/test_web_ui.py
index 37c83d027..1d632bcc9 100644
--- a/tests/test_web_ui.py
+++ b/tests/test_web_ui.py
@@ -10099,6 +10099,8 @@ class WebUiSourceTests(unittest.TestCase):
给标题、说明和路径三段:只给一个链接的话,是哪个文件得逐个点开才知道,而路径
才是去磁盘上确认或改名时要用的。前 20 条之外的去完整日志里看,地址写在折叠底部。
+ 重试是这条提示的主动作,和卡片一样摆在右边:这一页的操作键都在右侧同一列上。
+
默认折叠、重试只交失败那些项由 `frontend/test/react/library-processing.test.tsx` 守。
"""
data = self.read_react("library-processing/library-processing.ts")
@@ -10108,11 +10110,15 @@ class WebUiSourceTests(unittest.TestCase):
self.assertIn("footnote: state.issues_log ? `完整记录:${state.issues_log}` : '',", data)
card = self.read_react("library-processing/library-processing-card.tsx")
# 结论、重试键和这份清单都在同一条 Note 里:摆到外面就成了一句话加两块没有出处的东西。
- note, extra = card.split('<Note tone="error" extra={', 1)
- self.assertIn("重试未完成项", extra)
+ note, rest = card.split('<Note tone="error"', 1)
+ action, extra = rest.split("extra={", 1)
+ self.assertIn("重试未完成项", action)
+ self.assertIn('<Button variant="primary" size="small" onClick={onRetry}>', action)
self.assertIn("<Disclosure summary={details.label}>", extra)
self.assertIn("{details.footnote", extra)
self.assertNotIn("<Disclosure", note)
+ # 清单自己滚,滚动条走全站那条覆盖式的。
+ self.assertIn("attachOverlayScrollbar(list.current)", card)
def test_a_finished_scan_is_announced_once_even_if_it_ended_before_the_page_opened(self):
"""完成用通知报。首次引导那一趟常在跳到目录页之前就跑完,横幅从没见过「运行中」,
diff --git a/web/dist/peach-react.js b/web/dist/peach-react.js
index 013d6b8b6..f55ead9cc 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, mapLimit as r, requestErrorMessage as i, siteMarkUrl as a } from "/js/core.js";
-import { MEDIA_SOURCE_ICONS as o, confirmModal as s, setCollapseOpen as c } from "/js/ui-components.js";
+import { MEDIA_SOURCE_ICONS as o, attachOverlayScrollbar as s, confirmModal as c, setCollapseOpen as l } from "/js/ui-components.js";
//#region \0rolldown/runtime.js
-var l = Object.create, u = Object.defineProperty, d = Object.getOwnPropertyDescriptor, f = Object.getOwnPropertyNames, p = Object.getPrototypeOf, m = Object.prototype.hasOwnProperty, h = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), g = (e, t, n, r) => {
- if (t && typeof t == "object" || typeof t == "function") for (var i = f(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !m.call(e, s) && s !== n && u(e, s, {
+var u = Object.create, d = Object.defineProperty, f = Object.getOwnPropertyDescriptor, p = Object.getOwnPropertyNames, m = Object.getPrototypeOf, h = Object.prototype.hasOwnProperty, g = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), _ = (e, t, n, r) => {
+ if (t && typeof t == "object" || typeof t == "function") for (var i = p(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !h.call(e, s) && s !== n && d(e, s, {
get: ((e) => t[e]).bind(null, s),
- enumerable: !(r = d(t, s)) || r.enumerable
+ enumerable: !(r = f(t, s)) || r.enumerable
});
return e;
-}, _ = (e, t, n) => (n = e == null ? {} : l(p(e)), g(t || !e || !e.__esModule || !m.call(e, "default") ? u(n, "default", {
+}, v = (e, t, n) => (n = e == null ? {} : u(m(e)), _(t || !e || !e.__esModule || !h.call(e, "default") ? d(n, "default", {
value: e,
enumerable: !0
-}) : n, e)), v = /* @__PURE__ */ h(((e) => {
+}) : n, e)), y = /* @__PURE__ */ g(((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);
@@ -305,9 +305,9 @@ var l = Object.create, u = Object.defineProperty, d = Object.getOwnPropertyDescr
}, e.useTransition = function() {
return T.H.useTransition();
}, e.version = "19.3.0";
-})), y = /* @__PURE__ */ h(((e, t) => {
- t.exports = v();
-})), b = /* @__PURE__ */ h(((e) => {
+})), b = /* @__PURE__ */ g(((e, t) => {
+ t.exports = y();
+})), x = /* @__PURE__ */ g(((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 l = Object.create, u = Object.defineProperty, d = Object.getOwnPropertyDescr
};
}
e.Fragment = n, e.jsx = r, e.jsxs = r;
-})), x = /* @__PURE__ */ h(((e, t) => {
- t.exports = b();
-})), S = /* @__PURE__ */ _(y(), 1), C = x(), w = S.createContext(void 0), T = (e) => {
- let t = S.useContext(w);
+})), S = /* @__PURE__ */ g(((e, t) => {
+ t.exports = x();
+})), C = /* @__PURE__ */ v(b(), 1), w = S(), T = C.createContext(void 0), E = (e) => {
+ let t = C.useContext(T);
if (e) return e;
if (!t) throw Error("No QueryClient set, use QueryClientProvider to set one");
return t;
-}, E = ({ client: e, children: t }) => (S.useEffect(() => (e.mount(), () => {
+}, D = ({ client: e, children: t }) => (C.useEffect(() => (e.mount(), () => {
e.unmount();
-}), [e]), /* @__PURE__ */ (0, C.jsx)(w.Provider, {
+}), [e]), /* @__PURE__ */ (0, w.jsx)(T.Provider, {
value: e,
children: t
-})), D = {
+})), O = {
setTimeout: (e, t) => setTimeout(e, t),
clearTimeout: (e) => clearTimeout(e),
setInterval: (e, t) => setInterval(e, t),
clearInterval: (e) => clearInterval(e)
-}, O = new class {
- #e = D;
+}, k = new class {
+ #e = O;
setTimeoutProvider(e) {
this.#e = e;
}
@@ -357,31 +357,31 @@ var l = Object.create, u = Object.defineProperty, d = Object.getOwnPropertyDescr
this.#e.clearInterval(e);
}
}();
-function k(e) {
+function A(e) {
setTimeout(e, 0);
}
//#endregion
//#region node_modules/@tanstack/query-core/build/modern/utils.js
-var A = typeof window > "u" || "Deno" in globalThis;
-function j() {}
-function M(e, t) {
+var j = typeof window > "u" || "Deno" in globalThis;
+function M() {}
+function N(e, t) {
return typeof e == "function" ? e(t) : e;
}
-function N(e) {
+function ee(e) {
return typeof e == "number" && e >= 0 && e !== Infinity;
}
-function ee(e, t) {
+function P(e, t) {
return Math.max(e + (t || 0) - Date.now(), 0);
}
-function P(e, t) {
+function F(e, t) {
return typeof e == "function" ? e(t) : e;
}
-function F(e, t) {
+function te(e, t) {
let { type: n = "all", exact: r, fetchStatus: i, predicate: a, queryKey: o, stale: s } = e;
if (o) {
if (r) {
- if (t.queryHash !== ne(o, t.options)) return !1;
- } else if (!ie(t.queryKey, o)) return !1;
+ if (t.queryHash !== re(o, t.options)) return !1;
+ } else if (!ae(t.queryKey, o)) return !1;
}
if (n !== "all") {
let e = t.isActive();
@@ -389,105 +389,105 @@ function F(e, t) {
}
return !(typeof s == "boolean" && t.isStale() !== s || i && i !== t.state.fetchStatus || a && !a(t));
}
-function te(e, t) {
+function ne(e, t) {
let { exact: n, status: r, predicate: i, mutationKey: a } = e;
if (a) {
if (!t.options.mutationKey) return !1;
if (n) {
- if (re(t.options.mutationKey) !== re(a)) return !1;
- } else if (!ie(t.options.mutationKey, a)) return !1;
+ if (ie(t.options.mutationKey) !== ie(a)) return !1;
+ } else if (!ae(t.options.mutationKey, a)) return !1;
}
return !(r && t.state.status !== r || i && !i(t));
}
-function ne(e, t) {
- return (t?.queryKeyHashFn || re)(e);
+function re(e, t) {
+ return (t?.queryKeyHashFn || ie)(e);
}
-function re(e) {
- return JSON.stringify(e, (e, t) => le(t) ? Object.keys(t).sort().reduce((e, n) => (e[n] = t[n], e), {}) : t);
+function ie(e) {
+ return JSON.stringify(e, (e, t) => ue(t) ? Object.keys(t).sort().reduce((e, n) => (e[n] = t[n], e), {}) : t);
}
-function ie(e, t) {
+function ae(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)) {
if (t.length > e.length) return !1;
- for (let n = 0; n < t.length; n++) if (!ie(e[n], t[n])) return !1;
+ for (let n = 0; n < t.length; n++) if (!ae(e[n], t[n])) return !1;
return !0;
}
let n = Object.keys(t);
- for (let r of n) if (!ie(e[r], t[r])) return !1;
+ for (let r of n) if (!ae(e[r], t[r])) return !1;
return !0;
}
return !1;
}
-var ae = Object.prototype.hasOwnProperty;
-function oe(e, t, n = 0) {
+var oe = Object.prototype.hasOwnProperty;
+function se(e, t, n = 0) {
if (e === t) return e;
if (n > 500) return t;
- let r = ce(e) && ce(t);
- if (!r && !(le(e) && le(t))) return t;
+ let r = le(e) && le(t);
+ if (!r && !(ue(e) && ue(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 : ae.call(e, o)) && c++;
+ s[o] = u, (r ? l < i : oe.call(e, o)) && c++;
continue;
}
if (u === null || d === null || typeof u != "object" || typeof d != "object") {
s[o] = d;
continue;
}
- let f = oe(u, d, n + 1);
+ let f = se(u, d, n + 1);
s[o] = f, f === u && c++;
}
return i === o && c === i ? e : s;
}
-function se(e, t) {
+function ce(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 ce(e) {
+function le(e) {
return Array.isArray(e) && e.length === Object.keys(e).length;
}
-function le(e) {
- if (!ue(e)) return !1;
+function ue(e) {
+ if (!de(e)) return !1;
let t = Object.getPrototypeOf(e), n = t?.constructor;
if (n === void 0) return !0;
if (typeof n != "function") return !1;
let r = n.prototype;
- return !(!ue(r) || !r.hasOwnProperty("isPrototypeOf") || t !== Object.prototype);
+ return !(!de(r) || !r.hasOwnProperty("isPrototypeOf") || t !== Object.prototype);
}
-function ue(e) {
+function de(e) {
return Object.prototype.toString.call(e) === "[object Object]";
}
-function de(e) {
+function fe(e) {
return new Promise((t) => {
- O.setTimeout(t, e);
+ k.setTimeout(t, e);
});
}
-function fe(e, t, n) {
- return typeof n.structuralSharing == "function" ? n.structuralSharing(e, t) : n.structuralSharing === !1 ? t : oe(e, t);
+function I(e, t, n) {
+ return typeof n.structuralSharing == "function" ? n.structuralSharing(e, t) : n.structuralSharing === !1 ? t : se(e, t);
}
-function I(e) {
+function L(e) {
return e;
}
-function L(e, t, n = 0) {
+function pe(e, t, n = 0) {
let r = [...e, t];
return n && r.length > n ? r.slice(1) : r;
}
-function pe(e, t, n = 0) {
+function me(e, t, n = 0) {
let r = [t, ...e];
return n && r.length > n ? r.slice(0, -1) : r;
}
-var me = Symbol();
-function he(e, t) {
- return !e.queryFn && t?.initialPromise ? () => t.initialPromise : !e.queryFn || e.queryFn === me ? () => Promise.reject(/* @__PURE__ */ Error(`Missing queryFn: '${e.queryHash}'`)) : e.queryFn;
-}
+var he = Symbol();
function ge(e, t) {
+ return !e.queryFn && t?.initialPromise ? () => t.initialPromise : !e.queryFn || e.queryFn === he ? () => Promise.reject(/* @__PURE__ */ Error(`Missing queryFn: '${e.queryHash}'`)) : e.queryFn;
+}
+function _e(e, t) {
return typeof e == "function" ? e(...t) : !!e;
}
-function _e(e, t, n) {
+function ve(e, t, n) {
let r = !1, i;
return Object.defineProperty(e, "signal", {
enumerable: !0,
@@ -496,7 +496,7 @@ function _e(e, t, n) {
}
//#endregion
//#region node_modules/@tanstack/query-core/build/modern/environmentManager.js
-var ve = () => A, ye = () => ve(), be = class {
+var ye = () => j, be = () => ye(), xe = class {
constructor() {
this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
}
@@ -510,7 +510,7 @@ var ve = () => A, ye = () => ve(), be = class {
}
onSubscribe() {}
onUnsubscribe() {}
-}, xe = new class extends be {
+}, Se = new class extends xe {
#e;
#t;
#n;
@@ -547,13 +547,13 @@ var ve = () => A, ye = () => ve(), be = class {
isFocused() {
return typeof this.#e == "boolean" ? this.#e : globalThis.document?.visibilityState !== "hidden";
}
-}(), Se = k;
-function Ce() {
+}(), Ce = A;
+function we() {
let e = [], t = 0, n = (e) => {
e();
}, r = (e) => {
e();
- }, i = Se, a = (r) => {
+ }, i = Ce, a = (r) => {
t ? e.push(r) : i(() => {
n(r);
});
@@ -595,7 +595,7 @@ function Ce() {
}
};
}
-var we = Ce(), Te = new class extends be {
+var Te = we(), Ee = new class extends xe {
#e = !0;
#t;
#n;
@@ -629,32 +629,32 @@ var we = Ce(), Te = new class extends be {
}();
//#endregion
//#region node_modules/@tanstack/query-core/build/modern/retryer.js
-function Ee(e) {
+function De(e) {
return Math.min(1e3 * 2 ** e, 3e4);
}
-function De(e) {
- return (e ?? "online") !== "online" || Te.isOnline();
+function Oe(e) {
+ return (e ?? "online") !== "online" || Ee.isOnline();
}
-var Oe = class extends Error {
+var ke = class extends Error {
constructor(e) {
super("CancelledError"), this.revert = e?.revert, this.silent = e?.silent;
}
};
-function ke(e) {
+function Ae(e) {
let t = !1, n = 0, r, i = "pending", a, o, s = new Promise((e, t) => {
a = e, o = t;
});
- s.catch(j);
+ s.catch(M);
let c = () => i !== "pending", l = (t) => {
if (!c()) {
- let n = new Oe(t);
+ let n = new ke(t);
h(n), e.onCancel?.(n);
}
}, u = () => {
t = !0;
}, d = () => {
t = !1;
- }, f = () => xe.isFocused() && (e.networkMode === "always" || Te.isOnline()) && e.canRun(), p = () => De(e.networkMode) && e.canRun(), m = (e) => {
+ }, f = () => Se.isFocused() && (e.networkMode === "always" || Ee.isOnline()) && e.canRun(), p = () => Oe(e.networkMode) && e.canRun(), m = (e) => {
c() || (r?.(), i = "resolved", a(e));
}, h = (e) => {
c() || (r?.(), i = "rejected", o(e));
@@ -674,12 +674,12 @@ function ke(e) {
}
Promise.resolve(r).then(m).catch((r) => {
if (c()) return;
- let i = e.retry ?? (ye() ? 0 : 3), a = e.retryDelay ?? Ee, 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 ?? (be() ? 0 : 3), a = e.retryDelay ?? De, 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), de(o).then(() => f() ? void 0 : g()).then(() => {
+ n++, e.onFail?.(n, r), fe(o).then(() => f() ? void 0 : g()).then(() => {
t ? h(r) : _();
});
});
@@ -697,34 +697,34 @@ function ke(e) {
}
//#endregion
//#region node_modules/@tanstack/query-core/build/modern/removable.js
-var Ae = class {
+var je = class {
#e;
destroy() {
this.clearGcTimeout();
}
scheduleGc() {
- this.clearGcTimeout(), N(this.gcTime) && (this.#e = O.setTimeout(() => {
+ this.clearGcTimeout(), ee(this.gcTime) && (this.#e = k.setTimeout(() => {
this.optionalRemove();
}, this.gcTime));
}
updateGcTime(e) {
- this.gcTime = Math.max(this.gcTime || 0, e ?? (ye() ? Infinity : 3e5));
+ this.gcTime = Math.max(this.gcTime || 0, e ?? (be() ? Infinity : 3e5));
}
clearGcTimeout() {
- this.#e !== void 0 && (O.clearTimeout(this.#e), this.#e = void 0);
+ this.#e !== void 0 && (k.clearTimeout(this.#e), this.#e = void 0);
}
};
//#endregion
//#region node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.js
-function je(e) {
+function Me(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) => {
- _e(e, () => t.signal, () => n = !0);
- }, u = he(t.options, t.fetchOptions), d = async (e, r, i) => {
+ ve(e, () => t.signal, () => n = !0);
+ }, u = ge(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 = (() => {
@@ -736,14 +736,14 @@ function je(e) {
meta: t.options.meta
};
return l(e), e;
- })(), o = await u(a), { maxPages: s } = t.options, c = i ? pe : L;
+ })(), o = await u(a), { maxPages: s } = t.options, c = i ? me : pe;
return {
pages: c(e.pages, o, s),
pageParams: c(e.pageParams, r, s)
};
};
if (i && a.length) {
- let e = i === "backward", t = e ? Ne : Me, n = {
+ let e = i === "backward", t = e ? Pe : Ne, n = {
pages: a,
pageParams: o
};
@@ -751,7 +751,7 @@ function je(e) {
} else {
let t = e ?? a.length;
do {
- let e = c === 0 ? o[0] ?? r.initialPageParam : Me(r, s);
+ let e = c === 0 ? o[0] ?? r.initialPageParam : Ne(r, s);
if (c > 0 && e == null) break;
s = await d(s, e), c++;
} while (c < t);
@@ -766,16 +766,16 @@ function je(e) {
}, n) : l;
} };
}
-function Me(e, { pages: t, pageParams: n }) {
+function Ne(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 Ne(e, { pages: t, pageParams: n }) {
+function Pe(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 Pe = class extends Ae {
+var Fe = class extends je {
#e;
#t;
#n;
@@ -785,7 +785,7 @@ var Pe = class extends Ae {
#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 = Le(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 = Re(this.options), this.state = e.state ?? this.#t, this.scheduleGc();
}
get meta() {
return this.options.meta;
@@ -801,15 +801,15 @@ var Pe = class extends Ae {
...this.#o,
...e
}, e?._type && (this.#e = e._type), this.updateGcTime(this.options.gcTime), this.state && this.state.data === void 0) {
- let e = Le(this.options);
- e.data !== void 0 && (this.setState(Ie(e.data, e.dataUpdatedAt)), this.#t = e);
+ let e = Re(this.options);
+ e.data !== void 0 && (this.setState(Le(e.data, e.dataUpdatedAt)), this.#t = e);
}
}
optionalRemove() {
!this.observers.length && this.state.fetchStatus === "idle" && this.#r.remove(this);
}
setData(e, t) {
- let n = fe(this.state.data, e, this.options);
+ let n = I(this.state.data, e, this.options);
return this.#c({
data: n,
type: "success",
@@ -825,7 +825,7 @@ var Pe = class extends Ae {
}
cancel(e) {
let t = this.#a?.promise;
- return this.#a?.cancel(e), t ? t.then(j).catch(j) : Promise.resolve();
+ return this.#a?.cancel(e), t ? t.then(M).catch(M) : Promise.resolve();
}
destroy() {
super.destroy(), this.cancel({ silent: !0 });
@@ -837,22 +837,22 @@ var Pe = class extends Ae {
this.destroy(), this.setState(this.resetState);
}
isActive() {
- return this.observers.some((e) => P(e.options.enabled, this) !== !1);
+ return this.observers.some((e) => F(e.options.enabled, this) !== !1);
}
isDisabled() {
- return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === me || !this.isFetched();
+ return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === he || !this.isFetched();
}
isFetched() {
return this.state.dataUpdateCount + this.state.errorUpdateCount > 0;
}
isStatic() {
- return this.getObserversCount() > 0 && this.observers.some((e) => P(e.options.staleTime, this) === "static");
+ return this.getObserversCount() > 0 && this.observers.some((e) => F(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 : !ee(this.state.dataUpdatedAt, e);
+ return this.state.data === void 0 ? !0 : e === "static" ? !1 : this.state.isInvalidated ? !0 : !P(this.state.dataUpdatedAt, e);
}
onFocus() {
this.observers.find((e) => e.shouldFetchOnWindowFocus())?.refetch({ cancelRefetch: !1 }), this.#a?.continue();
@@ -896,7 +896,7 @@ var Pe = class extends Ae {
get: () => (this.#s = !0, n.signal)
});
}, i = () => {
- let e = he(this.options, t), n = (() => {
+ let e = ge(this.options, t), n = (() => {
let e = {
client: this.#i,
queryKey: this.queryKey,
@@ -916,15 +916,15 @@ var Pe = class extends Ae {
};
return r(e), e;
})();
- (this.#e === "infinite" ? je(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" ? Me(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 = ke({
+ let o = this.#a = Ae({
initialPromise: t?.initialPromise,
fn: a.fetchFn,
onCancel: (e) => {
- e instanceof Oe && e.revert && this.setState({
+ e instanceof ke && e.revert && this.setState({
...this.#n,
fetchStatus: "idle"
}), n.abort();
@@ -952,7 +952,7 @@ var Pe = class extends Ae {
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 Oe) {
+ if (e instanceof ke) {
if (e.silent) return this.#a.promise;
if (e.revert) {
if (this.state.data === void 0) throw e;
@@ -985,13 +985,13 @@ var Pe = class extends Ae {
};
case "fetch": return {
...t,
- ...Fe(t.data, this.options),
+ ...Ie(t.data, this.options),
fetchMeta: e.meta ?? null
};
case "success":
let n = {
...t,
- ...Ie(e.data, e.dataUpdatedAt),
+ ...Le(e.data, e.dataUpdatedAt),
dataUpdateCount: t.dataUpdateCount + 1,
...!e.manual && {
fetchStatus: "idle",
@@ -1023,7 +1023,7 @@ var Pe = class extends Ae {
};
}
};
- this.state = t(this.state), we.batch(() => {
+ this.state = t(this.state), Te.batch(() => {
this.observers.slice().forEach((e) => {
e.onQueryUpdate();
}), this.#r.notify({
@@ -1034,18 +1034,18 @@ var Pe = class extends Ae {
});
}
};
-function Fe(e, t) {
+function Ie(e, t) {
return {
fetchFailureCount: 0,
fetchFailureReason: null,
- fetchStatus: De(t.networkMode) ? "fetching" : "paused",
+ fetchStatus: Oe(t.networkMode) ? "fetching" : "paused",
...e === void 0 && {
error: null,
status: "pending"
}
};
}
-function Ie(e, t) {
+function Le(e, t) {
return {
data: e,
dataUpdatedAt: t ?? Date.now(),
@@ -1054,7 +1054,7 @@ function Ie(e, t) {
status: "success"
};
}
-function Le(e) {
+function Re(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,
@@ -1073,7 +1073,7 @@ function Le(e) {
}
//#endregion
//#region node_modules/@tanstack/query-core/build/modern/queryObserver.js
-var Re = class extends be {
+var ze = class extends xe {
#e;
#t = void 0;
#n = void 0;
@@ -1095,36 +1095,36 @@ var Re = class extends be {
this.refetch = this.refetch.bind(this);
}
onSubscribe() {
- this.listeners.size === 1 && (this.#t.addObserver(this), Be(this.#t, this.options) ? this.#m() : this.updateResult(), this.#y());
+ this.listeners.size === 1 && (this.#t.addObserver(this), Ve(this.#t, this.options) ? this.#m() : this.updateResult(), this.#y());
}
onUnsubscribe() {
this.hasListeners() || this.destroy();
}
shouldFetchOnReconnect() {
- return Ve(this.#t, this.options, this.options.refetchOnReconnect);
+ return He(this.#t, this.options, this.options.refetchOnReconnect);
}
shouldFetchOnWindowFocus() {
- return Ve(this.#t, this.options, this.options.refetchOnWindowFocus);
+ return He(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 P(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({
+ if (this.options = this.#e.defaultQueryOptions(e), this.options.enabled !== void 0 && typeof this.options.enabled != "boolean" && typeof this.options.enabled != "function" && typeof F(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 && !ce(this.options, t) && this.#e.getQueryCache().notify({
type: "observerOptionsUpdated",
query: this.#t,
observer: this
});
let r = this.hasListeners();
- r && He(this.#t, n, this.options, t) && this.#m(), this.updateResult(), r && (this.#t !== n || P(this.options.enabled, this.#t) !== P(t.enabled, this.#t) || P(this.options.staleTime, this.#t) !== P(t.staleTime, this.#t)) && this.#g();
+ r && Ue(this.#t, n, this.options, t) && this.#m(), this.updateResult(), r && (this.#t !== n || F(this.options.enabled, this.#t) !== F(t.enabled, this.#t) || F(this.options.staleTime, this.#t) !== F(t.staleTime, this.#t)) && this.#g();
let i = this.#_();
- r && (this.#t !== n || P(this.options.enabled, this.#t) !== P(t.enabled, this.#t) || i !== this.#f) && this.#v(i);
+ r && (this.#t !== n || F(this.options.enabled, this.#t) !== F(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 se(this.getCurrentResult(), n) || (this.#r = n, this.#a = this.options, this.#i = this.#t.state), n;
+ return ce(this.getCurrentResult(), n) || (this.#r = n, this.#a = this.options, this.#i = this.#t.state), n;
}
getCurrentResult() {
return this.#r;
@@ -1163,44 +1163,44 @@ var Re = class extends be {
#m(e) {
this.#S();
let t = this.#t.fetch(this.options, e);
- return e?.throwOnError || (t = t.catch(j)), t;
+ return e?.throwOnError || (t = t.catch(M)), t;
}
#h(e) {
- return !ye() && P(this.options.enabled, this.#t) !== !1 && N(e);
+ return !be() && F(this.options.enabled, this.#t) !== !1 && ee(e);
}
#g() {
this.#b();
- let e = P(this.options.staleTime, this.#t);
+ let e = F(this.options.staleTime, this.#t);
if (this.#r.isStale || !this.#h(e)) return;
- let t = ee(this.#r.dataUpdatedAt, e) + 1;
- this.#u = O.setTimeout(() => {
+ let t = P(this.#r.dataUpdatedAt, e) + 1;
+ this.#u = k.setTimeout(() => {
this.#r.isStale || this.updateResult();
}, t);
}
#_() {
- return P(this.options.refetchInterval, this.#t) ?? !1;
+ return F(this.options.refetchInterval, this.#t) ?? !1;
}
#v(e) {
- this.#x(), this.#f = e, !(this.#f === 0 || !this.#h(this.#f)) && (this.#d = O.setInterval(() => {
- (this.options.refetchIntervalInBackground || xe.isFocused()) && this.#m();
+ this.#x(), this.#f = e, !(this.#f === 0 || !this.#h(this.#f)) && (this.#d = k.setInterval(() => {
+ (this.options.refetchIntervalInBackground || Se.isFocused()) && this.#m();
}, this.#f));
}
#y() {
this.#g(), this.#v(this.#_());
}
#b() {
- this.#u !== void 0 && (O.clearTimeout(this.#u), this.#u = void 0);
+ this.#u !== void 0 && (k.clearTimeout(this.#u), this.#u = void 0);
}
#x() {
- this.#d !== void 0 && (O.clearInterval(this.#d), this.#d = void 0);
+ this.#d !== void 0 && (k.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 && Be(e, t), o = i && He(e, n, t, r);
+ let i = this.hasListeners(), a = !i && Ve(e, t), o = i && Ue(e, n, t, r);
(a || o) && (l = {
...l,
- ...Fe(c.data, e.options)
+ ...Ie(c.data, e.options)
}), t._optimisticResults === "isRestoring" && (l.fetchStatus = "idle");
}
let { error: f, errorUpdatedAt: p, status: m } = l;
@@ -1208,12 +1208,12 @@ var Re = class extends be {
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 = fe(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 = I(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 = fe(i?.data, d, t), this.#c = d, this.#o = null;
+ this.#s = t.select, d = t.select(d), d = I(i?.data, d, t), this.#c = d, this.#o = null;
} catch (e) {
this.#o = e;
}
@@ -1243,14 +1243,14 @@ var Re = class extends be {
isPaused: l.fetchStatus === "paused",
isPlaceholderData: u,
isRefetchError: v && b,
- isStale: Ue(e, t),
+ isStale: We(e, t),
refetch: this.refetch,
- isEnabled: P(t.enabled, e) !== !1
+ isEnabled: F(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), se(t, e)) return;
+ if (this.#i = this.#t.state, this.#a = this.options, this.#i.data !== void 0 && (this.#l = this.#t), ce(t, e)) return;
this.#r = t;
let n = (() => {
if (!e) return !0;
@@ -1262,7 +1262,7 @@ var Re = class extends be {
return this.#r[n] !== e[n] && r.has(n);
});
})();
- we.batch(() => {
+ Te.batch(() => {
n && this.listeners.forEach((e) => {
e(this.#r);
}), this.#e.getQueryCache().notify({
@@ -1281,34 +1281,34 @@ var Re = class extends be {
this.updateResult(), this.hasListeners() && this.#y();
}
};
-function ze(e, t) {
- return P(t.enabled, e) !== !1 && e.state.data === void 0 && (e.state.status !== "error" || P(t.retryOnMount, e) !== !1);
-}
function Be(e, t) {
- return ze(e, t) || e.state.data !== void 0 && Ve(e, t, t.refetchOnMount);
+ return F(t.enabled, e) !== !1 && e.state.data === void 0 && (e.state.status !== "error" || F(t.retryOnMount, e) !== !1);
+}
+function Ve(e, t) {
+ return Be(e, t) || e.state.data !== void 0 && He(e, t, t.refetchOnMount);
}
-function Ve(e, t, n) {
- if (P(t.enabled, e) !== !1 && P(t.staleTime, e) !== "static") {
- let r = P(n, e);
- return r === "always" || r !== !1 && Ue(e, t);
+function He(e, t, n) {
+ if (F(t.enabled, e) !== !1 && F(t.staleTime, e) !== "static") {
+ let r = F(n, e);
+ return r === "always" || r !== !1 && We(e, t);
}
return !1;
}
-function He(e, t, n, r) {
- return (e !== t || P(r.enabled, e) === !1) && (!n.suspense || e.state.status !== "error") && Ue(e, n);
+function Ue(e, t, n, r) {
+ return (e !== t || F(r.enabled, e) === !1) && (!n.suspense || e.state.status !== "error") && We(e, n);
}
-function Ue(e, t) {
- return P(t.enabled, e) !== !1 && e.isStaleByTime(P(t.staleTime, e));
+function We(e, t) {
+ return F(t.enabled, e) !== !1 && e.isStaleByTime(F(t.staleTime, e));
}
//#endregion
//#region node_modules/@tanstack/query-core/build/modern/mutation.js
-var We = class extends Ae {
+var Ge = class extends je {
#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 || Ge(), 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 || Ke(), this.setOptions(e.options), this.scheduleGc();
}
setOptions(e) {
this.options = e, this.updateGcTime(this.options.gcTime);
@@ -1343,7 +1343,7 @@ var We = class extends Ae {
client: this.#e,
meta: this.options.meta,
mutationKey: this.options.mutationKey
- }, r = this.#r = ke({
+ }, r = this.#r = Ae({
fn: () => this.options.mutationFn ? this.options.mutationFn(e, n) : Promise.reject(/* @__PURE__ */ Error("No mutationFn found")),
onFail: (e, t) => {
this.#i({
@@ -1459,7 +1459,7 @@ var We = class extends Ae {
};
}
};
- this.state = t(this.state), we.batch(() => {
+ this.state = t(this.state), Te.batch(() => {
this.#t.forEach((t) => {
t.onMutationUpdate(e);
}), this.#n.notify({
@@ -1470,7 +1470,7 @@ var We = class extends Ae {
});
}
};
-function Ge() {
+function Ke() {
return {
context: void 0,
data: void 0,
@@ -1485,7 +1485,7 @@ function Ge() {
}
//#endregion
//#region node_modules/@tanstack/query-core/build/modern/mutationCache.js
-var Ke = class extends be {
+var qe = class extends xe {
#e;
#t;
#n;
@@ -1493,7 +1493,7 @@ var Ke = class extends be {
super(), this.config = e, this.#e = /* @__PURE__ */ new Set(), this.#t = /* @__PURE__ */ new Map(), this.#n = 0;
}
build(e, t, n) {
- let r = new We({
+ let r = new Ge({
client: e,
mutationCache: this,
mutationId: ++this.#n,
@@ -1504,7 +1504,7 @@ var Ke = class extends be {
}
add(e) {
this.#e.add(e);
- let t = qe(e);
+ let t = Je(e);
if (typeof t == "string") {
let n = this.#t.get(t);
n ? n.push(e) : this.#t.set(t, [e]);
@@ -1516,7 +1516,7 @@ var Ke = class extends be {
}
remove(e) {
if (this.#e.delete(e)) {
- let t = qe(e);
+ let t = Je(e);
if (typeof t == "string") {
let n = this.#t.get(t);
if (n) {
@@ -1533,7 +1533,7 @@ var Ke = class extends be {
});
}
canRun(e) {
- let t = qe(e);
+ let t = Je(e);
if (typeof t == "string") {
let n = this.#t.get(t)?.find((e) => e.state.status === "pending");
return !n || n === e;
@@ -1541,11 +1541,11 @@ var Ke = class extends be {
return !0;
}
runNext(e) {
- let t = qe(e);
+ let t = Je(e);
return typeof t == "string" ? (this.#t.get(t)?.find((t) => t !== e && t.state.isPaused))?.continue() ?? Promise.resolve() : Promise.resolve();
}
clear() {
- we.batch(() => {
+ Te.batch(() => {
this.#e.forEach((e) => {
this.notify({
type: "removed",
@@ -1562,13 +1562,13 @@ var Ke = class extends be {
exact: !0,
...e
};
- return this.getAll().find((e) => te(t, e));
+ return this.getAll().find((e) => ne(t, e));
}
findAll(e = {}) {
- return this.getAll().filter((t) => te(e, t));
+ return this.getAll().filter((t) => ne(e, t));
}
notify(e) {
- we.batch(() => {
+ Te.batch(() => {
this.listeners.forEach((t) => {
t(e);
});
@@ -1576,15 +1576,15 @@ var Ke = class extends be {
}
resumePausedMutations() {
let e = this.getAll().filter((e) => e.state.isPaused);
- return we.batch(() => Promise.all(e.map((e) => e.continue().catch(j))));
+ return Te.batch(() => Promise.all(e.map((e) => e.continue().catch(M))));
}
};
-function qe(e) {
+function Je(e) {
return e.options.scope?.id;
}
//#endregion
//#region node_modules/@tanstack/query-core/build/modern/mutationObserver.js
-var Je = class extends be {
+var Ye = class extends xe {
#e;
#t = void 0;
#n;
@@ -1597,11 +1597,11 @@ var Je = class extends be {
}
setOptions(e) {
let t = this.options;
- this.options = this.#e.defaultMutationOptions(e), se(this.options, t) || this.#e.getMutationCache().notify({
+ this.options = this.#e.defaultMutationOptions(e), ce(this.options, t) || this.#e.getMutationCache().notify({
type: "observerOptionsUpdated",
mutation: this.#n,
observer: this
- }), t?.mutationKey && this.options.mutationKey && re(t.mutationKey) !== re(this.options.mutationKey) ? this.reset() : this.#n?.state.status === "pending" && this.#n.setOptions(this.options);
+ }), t?.mutationKey && this.options.mutationKey && ie(t.mutationKey) !== ie(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());
@@ -1622,7 +1622,7 @@ var Je = class extends be {
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 ?? Ge();
+ let e = this.#n?.state ?? Ke();
this.#t = {
...e,
isPending: e.status === "pending",
@@ -1634,7 +1634,7 @@ var Je = class extends be {
};
}
#a(e) {
- we.batch(() => {
+ Te.batch(() => {
if (this.#r && this.hasListeners()) {
let t = this.#t.variables, n = this.#t.context, r = {
client: this.#e,
@@ -1670,14 +1670,14 @@ var Je = class extends be {
});
});
}
-}, Ye = class extends be {
+}, Xe = class extends xe {
#e;
constructor(e = {}) {
super(), this.config = e, this.#e = /* @__PURE__ */ new Map();
}
build(e, t, n) {
- let r = t.queryKey, i = t.queryHash ?? ne(r, t), a = this.get(i);
- return a || (a = new Pe({
+ let r = t.queryKey, i = t.queryHash ?? re(r, t), a = this.get(i);
+ return a || (a = new Fe({
client: e,
queryKey: r,
queryHash: i,
@@ -1700,7 +1700,7 @@ var Je = class extends be {
}));
}
clear() {
- we.batch(() => {
+ Te.batch(() => {
this.getAll().forEach((e) => {
this.remove(e);
});
@@ -1717,34 +1717,34 @@ var Je = class extends be {
exact: !0,
...e
};
- return this.getAll().find((e) => F(t, e));
+ return this.getAll().find((e) => te(t, e));
}
findAll(e = {}) {
let t = this.getAll();
- return Object.keys(e).length > 0 ? t.filter((t) => F(e, t)) : t;
+ return Object.keys(e).length > 0 ? t.filter((t) => te(e, t)) : t;
}
notify(e) {
- we.batch(() => {
+ Te.batch(() => {
this.listeners.forEach((t) => {
t(e);
});
});
}
onFocus() {
- we.batch(() => {
+ Te.batch(() => {
this.getAll().forEach((e) => {
e.onFocus();
});
});
}
onOnline() {
- we.batch(() => {
+ Te.batch(() => {
this.getAll().forEach((e) => {
e.onOnline();
});
});
}
-}, Xe = class {
+}, Ze = class {
#e;
#t;
#n;
@@ -1754,12 +1754,12 @@ var Je = class extends be {
#o;
#s;
constructor(e = {}) {
- this.#e = e.queryCache || new Ye(), this.#t = e.mutationCache || new Ke(), this.#n = e.defaultOptions || {}, this.#r = /* @__PURE__ */ new Map(), this.#i = /* @__PURE__ */ new Map(), this.#a = 0;
+ this.#e = e.queryCache || new Xe(), this.#t = e.mutationCache || new qe(), 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 = xe.subscribe(async (e) => {
+ this.#a++, this.#a === 1 && (this.#o = Se.subscribe(async (e) => {
e && (await this.resumePausedMutations(), this.#e.onFocus());
- }), this.#s = Te.subscribe(async (e) => {
+ }), this.#s = Ee.subscribe(async (e) => {
e && (await this.resumePausedMutations(), this.#e.onOnline());
}));
}
@@ -1784,20 +1784,20 @@ var Je = class extends be {
}
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(P(t.staleTime, n)) && this.prefetchQuery(t), Promise.resolve(r));
+ return r === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && n.isStaleByTime(F(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 = M(t, i);
+ let r = this.defaultQueryOptions({ queryKey: e }), i = this.#e.get(r.queryHash)?.state.data, a = N(t, i);
if (a !== void 0) return this.#e.build(this, r).setData(a, {
...n,
manual: !0
});
}
setQueriesData(e, t, n) {
- return we.batch(() => this.#e.findAll(e).map(({ queryKey: e }) => [e, this.setQueryData(e, t, n)]));
+ return Te.batch(() => this.#e.findAll(e).map(({ queryKey: e }) => [e, this.setQueryData(e, t, n)]));
}
getQueryState(e) {
let t = this.defaultQueryOptions({ queryKey: e });
@@ -1805,7 +1805,7 @@ var Je = class extends be {
}
removeQueries(e) {
let t = this.#e;
- we.batch(() => {
+ Te.batch(() => {
t.findAll(e).forEach((e) => {
t.remove(e);
});
@@ -1813,7 +1813,7 @@ var Je = class extends be {
}
resetQueries(e, t) {
let n = this.#e;
- return we.batch(() => {
+ return Te.batch(() => {
let r = n.findAll(e), i = new Set(r);
return r.forEach((e) => {
e.reset();
@@ -1827,11 +1827,11 @@ var Je = class extends be {
let n = {
revert: !0,
...t
- }, r = we.batch(() => this.#e.findAll(e).map((e) => e.cancel(n)));
- return Promise.all(r).then(j).catch(j);
+ }, r = Te.batch(() => this.#e.findAll(e).map((e) => e.cancel(n)));
+ return Promise.all(r).then(M).catch(M);
}
invalidateQueries(e, t = {}) {
- return we.batch(() => (this.#e.findAll(e).forEach((e) => {
+ return Te.batch(() => (this.#e.findAll(e).forEach((e) => {
e.invalidate();
}), e?.refetchType === "none" ? Promise.resolve() : this.refetchQueries({
...e,
@@ -1842,26 +1842,26 @@ var Je = class extends be {
let n = {
...t,
cancelRefetch: t.cancelRefetch ?? !0
- }, r = we.batch(() => this.#e.findAll(e).filter((e) => !e.isDisabled() && !e.isStatic()).map((e) => {
+ }, r = Te.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(j)), e.state.fetchStatus === "paused" ? Promise.resolve() : t;
+ return n.throwOnError || (t = t.catch(M)), e.state.fetchStatus === "paused" ? Promise.resolve() : t;
}));
- return Promise.all(r).then(j);
+ return Promise.all(r).then(M);
}
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(P(t.staleTime, n)) ? await n.fetch(t) : n.state.data, i = t.select;
+ let n = this.#e.build(this, t), r = n.isStaleByTime(F(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(P(t.staleTime, n)) ? n.fetch(t) : Promise.resolve(n.state.data);
+ return n.isStaleByTime(F(t.staleTime, n)) ? n.fetch(t) : Promise.resolve(n.state.data);
}
prefetchQuery(e) {
- return this.fetchQuery(e).then(j).catch(j);
+ return this.fetchQuery(e).then(M).catch(M);
}
infiniteQuery(e) {
return e._type = "infinite", this.query(e);
@@ -1870,13 +1870,13 @@ var Je = class extends be {
return e._type = "infinite", this.fetchQuery(e);
}
prefetchInfiniteQuery(e) {
- return this.fetchInfiniteQuery(e).then(j).catch(j);
+ return this.fetchInfiniteQuery(e).then(M).catch(M);
}
ensureInfiniteQueryData(e) {
return e._type = "infinite", this.ensureQueryData(e);
}
resumePausedMutations() {
- return Te.isOnline() ? this.#t.resumePausedMutations() : Promise.resolve();
+ return Ee.isOnline() ? this.#t.resumePausedMutations() : Promise.resolve();
}
getQueryCache() {
return this.#e;
@@ -1891,7 +1891,7 @@ var Je = class extends be {
this.#n = e;
}
setQueryDefaults(e, t) {
- this.#r.set(re(e), {
+ this.#r.set(ie(e), {
queryKey: e,
defaultOptions: t
});
@@ -1899,11 +1899,11 @@ var Je = class extends be {
getQueryDefaults(e) {
let t = [...this.#r.values()], n = {};
return t.forEach((t) => {
- ie(e, t.queryKey) && Object.assign(n, t.defaultOptions);
+ ae(e, t.queryKey) && Object.assign(n, t.defaultOptions);
}), n;
}
setMutationDefaults(e, t) {
- this.#i.set(re(e), {
+ this.#i.set(ie(e), {
mutationKey: e,
defaultOptions: t
});
@@ -1911,7 +1911,7 @@ var Je = class extends be {
getMutationDefaults(e) {
let t = [...this.#i.values()], n = {};
return t.forEach((t) => {
- ie(e, t.mutationKey) && Object.assign(n, t.defaultOptions);
+ ae(e, t.mutationKey) && Object.assign(n, t.defaultOptions);
}), n;
}
defaultQueryOptions(e) {
@@ -1922,7 +1922,7 @@ var Je = class extends be {
...e,
_defaulted: !0
};
- return t.queryHash ||= ne(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 === me && (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 === he && (t.enabled = !1), t;
}
defaultMutationOptions(e) {
return e?._defaulted ? e : {
@@ -1935,11 +1935,11 @@ var Je = class extends be {
clear() {
this.#e.clear(), this.#t.clear();
}
-}, Ze = S.createContext(!1), Qe = () => S.useContext(Ze);
-Ze.Provider;
+}, Qe = C.createContext(!1), $e = () => C.useContext(Qe);
+Qe.Provider;
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.js
-function $e() {
+function et() {
let e = !1;
return {
clearReset: () => {
@@ -1951,34 +1951,34 @@ function $e() {
isReset: () => e
};
}
-var et = S.createContext($e()), tt = () => S.useContext(et), nt = (e, t, n) => {
- let r = n?.state.error && typeof e.throwOnError == "function" ? ge(e.throwOnError, [n.state.error, n]) : e.throwOnError;
+var tt = C.createContext(et()), nt = () => C.useContext(tt), rt = (e, t, n) => {
+ let r = n?.state.error && typeof e.throwOnError == "function" ? _e(e.throwOnError, [n.state.error, n]) : e.throwOnError;
(e.suspense || r) && (t.isReset() || (e.retryOnMount = !1));
-}, rt = (e) => {
- S.useEffect(() => {
+}, it = (e) => {
+ C.useEffect(() => {
e.clearReset();
}, [e]);
-}, it = ({ result: e, errorResetBoundary: t, throwOnError: n, query: r, suspense: i }) => e.isError && !t.isReset() && !e.isFetching && r && (i && e.data === void 0 || ge(n, [e.error, r])), at = (e) => {
+}, at = ({ result: e, errorResetBoundary: t, throwOnError: n, query: r, suspense: i }) => e.isError && !t.isReset() && !e.isFetching && r && (i && e.data === void 0 || _e(n, [e.error, r])), ot = (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));
}
-}, ot = (e, t) => e?.suspense && t.isPending, st = (e, t, n) => t.fetchOptimistic(e).catch(() => {
+}, st = (e, t) => e?.suspense && t.isPending, ct = (e, t, n) => t.fetchOptimistic(e).catch(() => {
n.clearReset();
});
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/useBaseQuery.js
-function ct(e, t, n) {
- let r = Qe(), i = tt(), a = T(n), o = a.defaultQueryOptions(e), s = a.getQueryCache().get(o.queryHash), c = e.subscribed !== !1;
- o._optimisticResults = r ? "isRestoring" : c ? "optimistic" : void 0, at(o), nt(o, i, s), rt(i);
- let [l] = S.useState(() => new t(a, o)), u = l.getOptimisticResult(o), d = !r && c;
- if (S.useSyncExternalStore(S.useCallback((e) => {
- let t = d ? l.subscribe(we.batchCalls(e)) : j;
+function lt(e, t, n) {
+ let r = $e(), i = nt(), a = E(n), o = a.defaultQueryOptions(e), s = a.getQueryCache().get(o.queryHash), c = e.subscribed !== !1;
+ o._optimisticResults = r ? "isRestoring" : c ? "optimistic" : void 0, ot(o), rt(o, i, s), it(i);
+ let [l] = C.useState(() => new t(a, o)), u = l.getOptimisticResult(o), d = !r && c;
+ if (C.useSyncExternalStore(C.useCallback((e) => {
+ let t = d ? l.subscribe(Te.batchCalls(e)) : M;
return l.updateResult(), t;
- }, [l, d]), () => l.getCurrentResult(), () => l.getCurrentResult()), S.useEffect(() => {
+ }, [l, d]), () => l.getCurrentResult(), () => l.getCurrentResult()), C.useEffect(() => {
l.setOptions(o);
- }, [o, l]), ot(o, u)) throw st(o, l, i);
- if (it({
+ }, [o, l]), st(o, u)) throw ct(o, l, i);
+ if (at({
result: u,
errorResetBoundary: i,
throwOnError: o.throwOnError,
@@ -1989,20 +1989,20 @@ function ct(e, t, n) {
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/useQuery.js
-function lt(e, t) {
- return ct(e, Re, t);
+function ut(e, t) {
+ return lt(e, ze, t);
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/useMutation.js
-function ut(e, t) {
- let n = T(t), [r] = S.useState(() => new Je(n, e));
- S.useEffect(() => {
+function dt(e, t) {
+ let n = E(t), [r] = C.useState(() => new Ye(n, e));
+ C.useEffect(() => {
r.setOptions(e);
}, [r, e]);
- let i = S.useSyncExternalStore(S.useCallback((e) => r.subscribe(we.batchCalls(e)), [r]), () => r.getCurrentResult(), () => r.getCurrentResult()), a = S.useCallback((...e) => {
- r.mutate(e[0], e[1]).catch(j);
+ let i = C.useSyncExternalStore(C.useCallback((e) => r.subscribe(Te.batchCalls(e)), [r]), () => r.getCurrentResult(), () => r.getCurrentResult()), a = C.useCallback((...e) => {
+ r.mutate(e[0], e[1]).catch(M);
}, [r]);
- if (i.error && ge(r.options.throwOnError, [i.error])) throw i.error;
+ if (i.error && _e(r.options.throwOnError, [i.error])) throw i.error;
return {
...i,
mutate: a,
@@ -2011,7 +2011,7 @@ function ut(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/collections/BaseCollection.mjs
-var dt = class {
+var ft = 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;
}
@@ -2026,22 +2026,22 @@ var dt = class {
let r = this.clone();
return t.addDescendants(r, e), r;
}
-}, ft = class extends dt {
+}, pt = class extends ft {
filter(e, t, n) {
- let [r, i] = gt(e, t, this.firstChildKey, n), a = this.clone();
+ let [r, i] = _t(e, t, this.firstChildKey, n), a = this.clone();
return a.firstChildKey = r, a.lastChildKey = i, a;
}
};
-(class extends dt {
+(class extends ft {
static {
this.type = "header";
}
});
-var pt = class extends dt {
+var mt = class extends ft {
static {
this.type = "loader";
}
-}, mt = class extends ft {
+}, ht = class extends pt {
static {
this.type = "item";
}
@@ -2053,7 +2053,7 @@ var pt = class extends dt {
return null;
}
};
-(class extends ft {
+(class extends pt {
static {
this.type = "section";
}
@@ -2066,7 +2066,7 @@ var pt = class extends dt {
return null;
}
});
-var ht = class {
+var gt = class {
get size() {
return this.itemCount;
}
@@ -2141,14 +2141,14 @@ var ht = class {
this.firstKey = e, this.lastKey = t, this.frozen = !n;
}
filter(e) {
- let t = new this.constructor(), [n, r] = gt(this, t, this.firstKey, e);
+ let t = new this.constructor(), [n, r] = _t(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 gt(e, t, n, r) {
+function _t(e, t, n, r) {
if (n == null) return [null, null];
let i = null, a = null, o = e.getItem(n);
for (; o != null;) {
@@ -2163,7 +2163,7 @@ function gt(e, t, n, r) {
}
//#endregion
//#region node_modules/react-aria/dist/private/collections/Document.mjs
-var _t = class {
+var vt = class {
constructor(e) {
this._firstChild = null, this._lastChild = null, this._previousSibling = null, this._nextSibling = null, this._parentNode = null, this._minInvalidChildIndex = null, this.ownerDocument = e;
}
@@ -2244,7 +2244,7 @@ var _t = class {
for (; e && e.isHidden;) e = e.previousSibling;
return e;
}
-}, vt = class e extends _t {
+}, yt = class e extends vt {
constructor(e, t) {
super(t), this.nodeType = 8, this.isMutated = !0, this._index = 0, this.isHidden = !1, this.node = null;
}
@@ -2295,7 +2295,7 @@ var _t = class {
setAttribute() {}
setAttributeNS() {}
removeAttribute() {}
-}, yt = class extends _t {
+}, bt = class extends vt {
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;
}
@@ -2303,7 +2303,7 @@ var _t = class {
return !0;
}
createElement(e) {
- return new vt(e, this);
+ return new yt(e, this);
}
getMutableCollection() {
return this.nextCollection ||= this.collection.clone(), this.nextCollection;
@@ -2325,8 +2325,8 @@ var _t = class {
return this.inSubscription ? this.collection : (this.queuedRender = !1, this.updateCollection(), this.collection);
}
updateCollection() {
- for (let e of this.dirtyNodes) e instanceof vt && (!e.isConnected || e.isHidden) ? this.removeNode(e) : e.updateChildIndices();
- for (let e of this.dirtyNodes) e instanceof vt ? (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 yt && (!e.isConnected || e.isHidden) ? this.removeNode(e) : e.updateChildIndices();
+ for (let e of this.dirtyNodes) e instanceof yt ? (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() {
@@ -2345,19 +2345,19 @@ var _t = class {
};
//#endregion
//#region node_modules/react-aria/dist/private/collections/useCachedChildren.mjs
-function bt(e) {
- let { children: t, items: n, idScope: r, addIdAndValue: i, dependencies: a = [] } = e, o = (0, S.useMemo)(() => void 0, [t]), s = (0, S.useMemo)(() => /* @__PURE__ */ new WeakMap(), [...a, o]);
- return (0, S.useMemo)(() => {
+function xt(e) {
+ let { children: t, items: n, idScope: r, addIdAndValue: i, dependencies: a = [] } = e, o = (0, C.useMemo)(() => void 0, [t]), s = (0, C.useMemo)(() => /* @__PURE__ */ new WeakMap(), [...a, o]);
+ return (0, C.useMemo)(() => {
if (n && typeof t == "function") {
let e = [];
for (let a of n) {
- let n = xt(a) ? a : null, o = n ? s.get(n) : null;
+ let n = St(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, S.cloneElement)(o, i ? {
+ o = (0, C.cloneElement)(o, i ? {
key: l,
id: c,
value: a
@@ -2376,7 +2376,7 @@ function bt(e) {
i
]);
}
-function xt(e) {
+function St(e) {
switch (typeof e) {
case "object": return e != null;
case "function":
@@ -2386,26 +2386,26 @@ function xt(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/focusWithoutScrolling.mjs
-function St(e) {
- if (wt()) e.focus({ preventScroll: !0 });
+function Ct(e) {
+ if (Tt()) e.focus({ preventScroll: !0 });
else {
- let t = Tt(e);
- e.focus(), Et(t);
+ let t = Et(e);
+ e.focus(), Dt(t);
}
}
-var Ct = null;
-function wt() {
- if (Ct == null) {
- Ct = !1;
+var wt = null;
+function Tt() {
+ if (wt == null) {
+ wt = !1;
try {
document.createElement("div").focus({ get preventScroll() {
- return Ct = !0, !0;
+ return wt = !0, !0;
} });
} catch {}
}
- return Ct;
+ return wt;
}
-function Tt(e) {
+function Et(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,
@@ -2418,25 +2418,25 @@ function Tt(e) {
scrollLeft: r.scrollLeft
}), n;
}
-function Et(e) {
+function Dt(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) => kt(e) ? e.document : At(e) ? e : e?.ownerDocument ?? (typeof document < "u" ? document : void 0), Dt = (e) => R(e)?.defaultView ?? (typeof window < "u" ? window : void 0);
-function Ot(e) {
- return typeof e == "object" && !!e && "nodeType" in e && typeof e.nodeType == "number";
-}
+var R = (e) => At(e) ? e.document : jt(e) ? e : e?.ownerDocument ?? (typeof document < "u" ? document : void 0), Ot = (e) => R(e)?.defaultView ?? (typeof window < "u" ? window : void 0);
function kt(e) {
- return typeof e == "object" && !!e && "window" in e && e.window === e;
+ return typeof e == "object" && !!e && "nodeType" in e && typeof e.nodeType == "number";
}
function At(e) {
- return Ot(e) && e.nodeType === 9;
+ return typeof e == "object" && !!e && "window" in e && e.window === e;
}
function jt(e) {
- return Ot(e) && e.nodeType === 11 && "host" in e;
+ return kt(e) && e.nodeType === 9;
+}
+function Mt(e) {
+ return kt(e) && e.nodeType === 11 && "host" in e;
}
-function Mt(e, t, n, r) {
+function Nt(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);
@@ -2444,7 +2444,7 @@ function Mt(e, t, n, r) {
for (let e of i) e.removeEventListener(t, n, r);
};
}
-function Nt(e, t, n, r) {
+function Pt(e, t, n, r) {
if (e == null) return () => {};
let i = [], a = Array.isArray(e) ? e : [e];
for (let e of a) {
@@ -2459,73 +2459,73 @@ function Nt(e, t, n, r) {
}
//#endregion
//#region node_modules/react-stately/dist/private/flags/flags.mjs
-var Pt = !1;
-function Ft() {
- return Pt;
+var Ft = !1;
+function It() {
+ return Ft;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/shadowdom/DOMFunctions.mjs
function z(e, t) {
- if (!Ft()) return t && e ? e.contains(t) : !1;
+ if (!It()) 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 : jt(n) ? n.host : n.parentNode;
+ n = typeof n.assignedElements != "function" && n.assignedSlot?.parentNode ? n.assignedSlot.parentNode : Mt(n) ? n.host : n.parentNode;
}
return !1;
}
-var It = (e = document) => {
- if (!Ft()) return e.activeElement;
+var Lt = (e = document) => {
+ if (!It()) 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 (Ft() && e.target instanceof Element && e.target.shadowRoot) {
+ if (It() && 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 Lt(e, t) {
+function Rt(e, t) {
if (t === null) return [];
- t ??= Dt(e);
+ t ??= Ot(e);
let n = [t];
- if (!Ft() || !e || e === t) return n;
+ if (!It() || !e || e === t) return n;
let r = "getRootNode" in t ? t.getRootNode() : null, i = e.getRootNode() ?? null;
- for (; jt(i) && i !== r;) n.push(i), i = i.host.getRootNode();
+ for (; Mt(i) && i !== r;) n.push(i), i = i.host.getRootNode();
return n;
}
-function Rt(e) {
+function zt(e) {
if (!e) return !1;
- let t = e.getRootNode(), n = Dt(e);
+ let t = e.getRootNode(), n = Ot(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 zt = typeof Element < "u" && "checkVisibility" in Element.prototype;
-function Bt(e) {
- let t = Dt(e);
+var Bt = typeof Element < "u" && "checkVisibility" in Element.prototype;
+function Vt(e) {
+ let t = Ot(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 } = Dt(e), { display: n, visibility: r } = t(e);
+ let { getComputedStyle: t } = Ot(e), { display: n, visibility: r } = t(e);
i = n !== "none" && r !== "hidden" && r !== "collapse";
}
return i;
}
-function Vt(e, t) {
+function Ht(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 Ht(e, t) {
- return zt ? e.checkVisibility({ visibilityProperty: !0 }) && !e.closest("[data-react-aria-prevent-focus]") : e.nodeName !== "#comment" && Bt(e) && Vt(e, t) && (!e.parentElement || Ht(e.parentElement, e));
+function Ut(e, t) {
+ return Bt ? e.checkVisibility({ visibilityProperty: !0 }) && !e.closest("[data-react-aria-prevent-focus]") : e.nodeName !== "#comment" && Vt(e) && Ht(e, t) && (!e.parentElement || Ut(e.parentElement, e));
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/isFocusable.mjs
-var Ut = [
+var Wt = [
"input:not([disabled]):not([type=hidden])",
"select:not([disabled])",
"textarea:not([disabled])",
@@ -2540,60 +2540,60 @@ var Ut = [
"video[controls]",
"[contenteditable]:not([contenteditable^=\"false\"])",
"permission"
-], Wt = Ut.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";
-Ut.push("[tabindex]:not([tabindex=\"-1\"]):not([disabled])");
-var Gt = Ut.join(":not([hidden]):not([tabindex=\"-1\"]),");
-function Kt(e, t) {
- return e.matches(Wt) && !Jt(e) && (t?.skipVisibilityCheck || Ht(e));
-}
-function qt(e) {
- return e.matches(Gt) && Ht(e) && !Jt(e);
+], Gt = Wt.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";
+Wt.push("[tabindex]:not([tabindex=\"-1\"]):not([disabled])");
+var Kt = Wt.join(":not([hidden]):not([tabindex=\"-1\"]),");
+function qt(e, t) {
+ return e.matches(Gt) && !Yt(e) && (t?.skipVisibilityCheck || Ut(e));
}
function Jt(e) {
+ return e.matches(Kt) && Ut(e) && !Yt(e);
+}
+function Yt(e) {
let t = e;
for (; t != null;) {
- if (t instanceof Dt(t).HTMLElement && t.inert) return !0;
+ if (t instanceof Ot(t).HTMLElement && t.inert) return !0;
t = t.parentElement;
}
return !1;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useLayoutEffect.mjs
-var Yt = typeof document < "u" ? S.useLayoutEffect : () => {};
+var Xt = typeof document < "u" ? C.useLayoutEffect : () => {};
//#endregion
//#region node_modules/react-aria/dist/private/interactions/utils.mjs
-function Xt(e) {
+function Zt(e) {
let t = e;
return t.nativeEvent = e, t.isDefaultPrevented = () => t.defaultPrevented, t.isPropagationStopped = () => t.cancelBubble, t.persist = () => {}, t;
}
-function Zt(e, t) {
+function Qt(e, t) {
Object.defineProperty(e, "target", { value: t }), Object.defineProperty(e, "currentTarget", { value: t });
}
-function Qt(e) {
- let t = (0, S.useRef)({
+function $t(e) {
+ let t = (0, C.useRef)({
isFocused: !1,
observer: null
});
- return Yt(() => {
+ return Xt(() => {
let e = t.current;
return () => {
e.observer &&= (e.observer.disconnect(), null);
};
- }, []), (0, S.useCallback)((n) => {
+ }, []), (0, C.useCallback)((n) => {
let r = B(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 = Xt(r);
+ let t = Zt(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 === It() ? null : It();
+ let e = n === Lt() ? null : Lt();
n.dispatchEvent(new FocusEvent("blur", { relatedTarget: e })), n.dispatchEvent(new FocusEvent("focusout", {
bubbles: !0,
relatedTarget: e
@@ -2606,83 +2606,83 @@ function Qt(e) {
}
}, [e]);
}
-var $t = !1;
-function en(e) {
- for (; e && !Kt(e, { skipVisibilityCheck: !0 });) e = e.parentElement;
- let t = It(Dt(e).document);
+var en = !1;
+function tn(e) {
+ for (; e && !qt(e, { skipVisibilityCheck: !0 });) e = e.parentElement;
+ let t = Lt(Ot(e).document);
if (!t || t === e) return;
- let n = e?.getRootNode(), r = n != null && jt(n) ? n : Dt(e), i = (t) => t === e || t != null && z(e, t), a = (e) => e === t || t != null && e != null && z(t, e);
- $t = !0;
+ let n = e?.getRootNode(), r = n != null && Mt(n) ? n : Ot(e), i = (t) => t === e || t != null && z(e, t), a = (e) => e === t || t != null && e != null && z(t, e);
+ en = !0;
let o = !1, s = (e) => {
(a(B(e)) || o) && e.stopImmediatePropagation();
}, c = (n) => {
- (a(B(n)) || o) && (n.stopImmediatePropagation(), !e && !o && (o = !0, St(t), d()));
+ (a(B(n)) || o) && (n.stopImmediatePropagation(), !e && !o && (o = !0, Ct(t), d()));
}, l = (e) => {
(i(B(e)) || o) && e.stopImmediatePropagation();
}, u = (e) => {
- (i(B(e)) || o) && (e.stopImmediatePropagation(), o || (o = !0, St(t), d()));
+ (i(B(e)) || o) && (e.stopImmediatePropagation(), o || (o = !0, Ct(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), $t = !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), en = !1, o = !1;
}, f = requestAnimationFrame(d);
return d;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/platform.mjs
-function tn(e) {
+function nn(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 nn(e) {
+function rn(e) {
return typeof window < "u" && window.navigator != null && e.test(window.navigator.userAgentData?.platform || window.navigator.platform);
}
-function rn(e) {
+function an(e) {
let t = null;
return () => (t ??= e(), t);
}
-var an = rn(function() {
- return nn(/^Mac/i);
-}), on = rn(function() {
- return nn(/^iPhone/i);
-}), sn = rn(function() {
- return nn(/^iPad/i) || an() && navigator.maxTouchPoints > 1;
-}), cn = rn(function() {
- return on() || sn();
-}), ln = rn(function() {
- return an() || cn();
-}), un = rn(function() {
- return tn(/AppleWebKit/i) && (cn() || !dn());
-}), dn = rn(function() {
- return tn(/Chrome|CriOS|CrMo/i);
-}), fn = rn(function() {
- return tn(/Android/i);
-}), pn = rn(function() {
- return tn(/(Firefox|FxiOS)/i);
+var on = an(function() {
+ return rn(/^Mac/i);
+}), sn = an(function() {
+ return rn(/^iPhone/i);
+}), cn = an(function() {
+ return rn(/^iPad/i) || on() && navigator.maxTouchPoints > 1;
+}), ln = an(function() {
+ return sn() || cn();
+}), un = an(function() {
+ return on() || ln();
+}), dn = an(function() {
+ return nn(/AppleWebKit/i) && (ln() || !fn());
+}), fn = an(function() {
+ return nn(/Chrome|CriOS|CrMo/i);
+}), pn = an(function() {
+ return nn(/Android/i);
+}), mn = an(function() {
+ return nn(/(Firefox|FxiOS)/i);
});
//#endregion
//#region node_modules/react-aria/dist/private/utils/isVirtualEvent.mjs
-function mn(e) {
- return e.pointerType === "" && e.isTrusted ? !0 : fn() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
-}
function hn(e) {
- return !fn() && e.width === 0 && e.height === 0 || fn() && e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "mouse";
+ return e.pointerType === "" && e.isTrusted ? !0 : pn() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
+}
+function gn(e) {
+ return !pn() && e.width === 0 && e.height === 0 || pn() && 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 gn = /*#__PURE__*/ (0, S.createContext)({
+var _n = /*#__PURE__*/ (0, C.createContext)({
isNative: !0,
- open: bn,
+ open: xn,
useHref: (e) => e
});
-function _n() {
- return (0, S.useContext)(gn);
+function vn() {
+ return (0, C.useContext)(_n);
}
-function vn(e, t, n = !0) {
+function yn(e, t, n = !0) {
let { metaKey: r, ctrlKey: i, altKey: a, shiftKey: o } = t;
- !un() && pn() && window.event?.type?.startsWith("key") && e.target === "_blank" && (an() ? r = !0 : i = !0);
- let s = un() && an() && !sn() ? new KeyboardEvent("keydown", {
+ !dn() && mn() && window.event?.type?.startsWith("key") && e.target === "_blank" && (on() ? r = !0 : i = !0);
+ let s = dn() && on() && !cn() ? new KeyboardEvent("keydown", {
keyIdentifier: "Enter",
metaKey: r,
ctrlKey: i,
@@ -2697,21 +2697,21 @@ function vn(e, t, n = !0) {
bubbles: !0,
cancelable: !0
});
- vn.isOpening = n, St(e), e.dispatchEvent(s), vn.isOpening = !1;
+ yn.isOpening = n, Ct(e), e.dispatchEvent(s), yn.isOpening = !1;
}
-vn.isOpening = !1;
-function yn(e, t) {
+yn.isOpening = !1;
+function bn(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 bn(e, t) {
- yn(e, (e) => vn(e, t));
+function xn(e, t) {
+ bn(e, (e) => yn(e, t));
}
-function xn(e) {
- let t = _n().useHref(e.href ?? "");
+function Sn(e) {
+ let t = vn().useHref(e.href ?? "");
return {
"data-href": e.href ? t : void 0,
"data-target": e.target,
@@ -2721,8 +2721,8 @@ function xn(e) {
"data-referrer-policy": e.referrerPolicy
};
}
-function Sn(e) {
- let t = _n().useHref(e?.href ?? ""), n = {};
+function Cn(e) {
+ let t = vn().useHref(e?.href ?? ""), n = {};
if (e) for (let r of [
"href",
"target",
@@ -2735,133 +2735,133 @@ function Sn(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/ssr/SSRProvider.mjs
-var Cn = {
+var wn = {
prefix: String(Math.round(Math.random() * 1e10)),
current: 0
-}, wn = /*#__PURE__*/ S.createContext(Cn), Tn = /*#__PURE__*/ S.createContext(!1);
+}, Tn = /*#__PURE__*/ C.createContext(wn), En = /*#__PURE__*/ C.createContext(!1);
typeof window < "u" && window.document && window.document.createElement;
-var En = /* @__PURE__ */ new WeakMap();
-function Dn(e = !1) {
- let t = (0, S.useContext)(wn), n = (0, S.useRef)(null);
+var Dn = /* @__PURE__ */ new WeakMap();
+function On(e = !1) {
+ let t = (0, C.useContext)(Tn), n = (0, C.useRef)(null);
if (n.current === null && !e) {
- let e = S.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?.ReactCurrentOwner?.current;
+ let e = C.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?.ReactCurrentOwner?.current;
if (e) {
- let n = En.get(e);
- n == null ? En.set(e, {
+ let n = Dn.get(e);
+ n == null ? Dn.set(e, {
id: t.current,
state: e.memoizedState
- }) : e.memoizedState !== n.state && (t.current = n.id, En.delete(e));
+ }) : e.memoizedState !== n.state && (t.current = n.id, Dn.delete(e));
}
n.current = ++t.current;
}
return n.current;
}
-function On(e) {
- let t = (0, S.useContext)(wn), n = Dn(!!e), r = `react-aria${t.prefix}`;
+function kn(e) {
+ let t = (0, C.useContext)(Tn), n = On(!!e), r = `react-aria${t.prefix}`;
return e || `${r}-${n}`;
}
-function kn(e) {
- let t = S.useId(), [n] = (0, S.useState)(Pn()), r = n ? "react-aria" : `react-aria${Cn.prefix}`;
+function An(e) {
+ let t = C.useId(), [n] = (0, C.useState)(Fn()), r = n ? "react-aria" : `react-aria${wn.prefix}`;
return e || `${r}-${t}`;
}
-var An = typeof S.useId == "function" ? kn : On;
-function jn() {
+var jn = typeof C.useId == "function" ? An : kn;
+function Mn() {
return !1;
}
-function Mn() {
+function Nn() {
return !0;
}
-function Nn(e) {
+function Pn(e) {
return () => {};
}
-function Pn() {
- return typeof S.useSyncExternalStore == "function" ? S.useSyncExternalStore(Nn, jn, Mn) : (0, S.useContext)(Tn);
+function Fn() {
+ return typeof C.useSyncExternalStore == "function" ? C.useSyncExternalStore(Pn, Mn, Nn) : (0, C.useContext)(En);
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useFocusVisible.mjs
-var Fn = null, In = /* @__PURE__ */ new Set(), Ln = /* @__PURE__ */ new Map(), Rn = !1, zn = !1, Bn = {
+var In = null, Ln = /* @__PURE__ */ new Set(), Rn = /* @__PURE__ */ new Map(), zn = !1, Bn = !1, Vn = {
Tab: !0,
Escape: !0
};
-function Vn(e, t) {
- for (let n of In) n(e, t);
-}
-function Hn(e) {
- return !(e.metaKey || !an() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
+function Hn(e, t) {
+ for (let n of Ln) n(e, t);
}
function Un(e) {
- Rn = !0, !vn.isOpening && Hn(e) && (Fn = "keyboard", Vn("keyboard", e));
+ return !(e.metaKey || !on() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
}
function Wn(e) {
- Fn = "pointer", "pointerType" in e && e.pointerType, (e.type === "mousedown" || e.type === "pointerdown") && (Rn = !0, Vn("pointer", e));
+ zn = !0, !yn.isOpening && Un(e) && (In = "keyboard", Hn("keyboard", e));
}
function Gn(e) {
- !vn.isOpening && mn(e) && (Rn = !0, Fn = "virtual");
+ In = "pointer", "pointerType" in e && e.pointerType, (e.type === "mousedown" || e.type === "pointerdown") && (zn = !0, Hn("pointer", e));
}
function Kn(e) {
- if ($t) return;
- let t = B(e), n = Dt(t), r = R(t);
+ !yn.isOpening && hn(e) && (zn = !0, In = "virtual");
+}
+function qn(e) {
+ if (en) return;
+ let t = B(e), n = Ot(t), r = R(t);
if (t === n) {
- zn = !0;
+ Bn = !0;
return;
}
- t === r || !e.isTrusted || (!Rn && !zn && (Fn = "virtual", Vn("virtual", e)), Rn = !1, zn = !1);
+ t === r || !e.isTrusted || (!zn && !Bn && (In = "virtual", Hn("virtual", e)), zn = !1, Bn = !1);
}
-function qn() {
- $t || (Rn = !1, zn = !0);
+function Jn() {
+ en || (zn = !1, Bn = !0);
}
-function Jn(e) {
+function Yn(e) {
if (typeof window > "u" || typeof document > "u") return;
- let t = Dt(e), n = R(e);
- if (Ln.get(t)) return;
+ let t = Ot(e), n = R(e);
+ if (Rn.get(t)) return;
let r = t.HTMLElement.prototype.focus;
Reflect.defineProperty(t.HTMLElement.prototype, "focus", {
configurable: !0,
writable: !0,
value: function() {
- Rn = !0, r.apply(this, arguments);
+ zn = !0, r.apply(this, arguments);
}
- }), n.addEventListener("keydown", Un, !0), n.addEventListener("keyup", Un, !0), n.addEventListener("click", Gn, !0), t.addEventListener("focus", Kn, !0), t.addEventListener("blur", qn, !1), typeof PointerEvent < "u" && (n.addEventListener("pointerdown", Wn, !0), n.addEventListener("pointermove", Wn, !0), n.addEventListener("pointerup", Wn, !0)), t.addEventListener("beforeunload", () => {
- Yn(e);
- }, { once: !0 }), Ln.set(t, { focus: r });
+ }), n.addEventListener("keydown", Wn, !0), n.addEventListener("keyup", Wn, !0), n.addEventListener("click", Kn, !0), t.addEventListener("focus", qn, !0), t.addEventListener("blur", Jn, !1), typeof PointerEvent < "u" && (n.addEventListener("pointerdown", Gn, !0), n.addEventListener("pointermove", Gn, !0), n.addEventListener("pointerup", Gn, !0)), t.addEventListener("beforeunload", () => {
+ Xn(e);
+ }, { once: !0 }), Rn.set(t, { focus: r });
}
-var Yn = (e, t) => {
- let n = Dt(e), r = R(e);
- t && r.removeEventListener("DOMContentLoaded", t), Ln.has(n) && (Reflect.defineProperty(n.HTMLElement.prototype, "focus", {
+var Xn = (e, t) => {
+ let n = Ot(e), r = R(e);
+ t && r.removeEventListener("DOMContentLoaded", t), Rn.has(n) && (Reflect.defineProperty(n.HTMLElement.prototype, "focus", {
configurable: !0,
writable: !0,
- value: Ln.get(n).focus
- }), r.removeEventListener("keydown", Un, !0), r.removeEventListener("keyup", Un, !0), r.removeEventListener("click", Gn, !0), n.removeEventListener("focus", Kn, !0), n.removeEventListener("blur", qn, !1), typeof PointerEvent < "u" && (r.removeEventListener("pointerdown", Wn, !0), r.removeEventListener("pointermove", Wn, !0), r.removeEventListener("pointerup", Wn, !0)), Ln.delete(n));
+ value: Rn.get(n).focus
+ }), r.removeEventListener("keydown", Wn, !0), r.removeEventListener("keyup", Wn, !0), r.removeEventListener("click", Kn, !0), n.removeEventListener("focus", qn, !0), n.removeEventListener("blur", Jn, !1), typeof PointerEvent < "u" && (r.removeEventListener("pointerdown", Gn, !0), r.removeEventListener("pointermove", Gn, !0), r.removeEventListener("pointerup", Gn, !0)), Rn.delete(n));
};
-function Xn(e) {
+function Zn(e) {
let t = R(e), n;
return t.readyState === "loading" ? (n = () => {
- Jn(e);
- }, t.addEventListener("DOMContentLoaded", n)) : Jn(e), () => Yn(e, n);
-}
-typeof document < "u" && Xn();
-function Zn() {
- return Fn !== "pointer";
+ Yn(e);
+ }, t.addEventListener("DOMContentLoaded", n)) : Yn(e), () => Xn(e, n);
}
+typeof document < "u" && Zn();
function Qn() {
- return Fn;
+ return In !== "pointer";
+}
+function $n() {
+ return In;
}
-function $n(e) {
- Fn = e, Vn(e, null);
+function er(e) {
+ In = e, Hn(e, null);
}
-function er() {
- Jn();
- let [e, t] = (0, S.useState)(Fn);
- return (0, S.useEffect)(() => {
+function tr() {
+ Yn();
+ let [e, t] = (0, C.useState)(In);
+ return (0, C.useEffect)(() => {
let e = () => {
- t(Fn);
+ t(In);
};
- return In.add(e), () => {
- In.delete(e);
+ return Ln.add(e), () => {
+ Ln.delete(e);
};
- }, []), Pn() ? null : e;
+ }, []), Fn() ? null : e;
}
-var tr = /* @__PURE__ */ new Set([
+var nr = /* @__PURE__ */ new Set([
"checkbox",
"radio",
"range",
@@ -2872,25 +2872,25 @@ var tr = /* @__PURE__ */ new Set([
"submit",
"reset"
]);
-function nr(e, t, n) {
- let r = n ? B(n) : void 0, i = R(r), a = Dt(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 = It(i);
- return e = e || u instanceof o && !tr.has(u.type) || u instanceof s || u instanceof c && u.isContentEditable, !(e && t === "keyboard" && n instanceof l && !Bn[n.key]);
-}
function rr(e, t, n) {
- Jn(), (0, S.useEffect)(() => {
+ let r = n ? B(n) : void 0, i = R(r), a = Ot(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 = Lt(i);
+ return e = e || u instanceof o && !nr.has(u.type) || u instanceof s || u instanceof c && u.isContentEditable, !(e && t === "keyboard" && n instanceof l && !Vn[n.key]);
+}
+function ir(e, t, n) {
+ Yn(), (0, C.useEffect)(() => {
if (n?.enabled === !1) return;
let t = (t, r) => {
- nr(!!n?.isTextInput, t, r) && e(Zn());
+ rr(!!n?.isTextInput, t, r) && e(Qn());
};
- return In.add(t), () => {
- In.delete(t);
+ return Ln.add(t), () => {
+ Ln.delete(t);
};
}, t);
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/runAfterTransition.mjs
-var ir = /* @__PURE__ */ new Map(), ar = /* @__PURE__ */ new Set();
-function or() {
+var ar = /* @__PURE__ */ new Map(), or = /* @__PURE__ */ new Set();
+function sr() {
if (typeof window > "u") return;
function e(e) {
return "propertyName" in e;
@@ -2898,52 +2898,52 @@ function or() {
let t = (t) => {
let r = B(t);
if (!e(t) || !r) return;
- let i = ir.get(r);
- i || (i = /* @__PURE__ */ new Set(), ir.set(r, i), r.addEventListener("transitioncancel", n, { once: !0 })), i.add(t.propertyName);
+ let i = ar.get(r);
+ i || (i = /* @__PURE__ */ new Set(), ar.set(r, i), r.addEventListener("transitioncancel", n, { once: !0 })), i.add(t.propertyName);
}, n = (t) => {
let r = B(t);
if (!e(t) || !r) return;
- let i = ir.get(r);
- if (i && (i.delete(t.propertyName), i.size === 0 && (r.removeEventListener("transitioncancel", n), ir.delete(r)), ir.size === 0)) {
- for (let e of ar) e();
- ar.clear();
+ let i = ar.get(r);
+ if (i && (i.delete(t.propertyName), i.size === 0 && (r.removeEventListener("transitioncancel", n), ar.delete(r)), ar.size === 0)) {
+ for (let e of or) e();
+ or.clear();
}
};
document.body.addEventListener("transitionrun", t), document.body.addEventListener("transitionend", n);
}
-typeof document < "u" && (document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", or) : or());
-function sr() {
- for (let [e] of ir) "isConnected" in e && !e.isConnected && ir.delete(e);
+typeof document < "u" && (document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", sr) : sr());
+function cr() {
+ for (let [e] of ar) "isConnected" in e && !e.isConnected && ar.delete(e);
}
-function cr(e) {
+function lr(e) {
requestAnimationFrame(() => {
- sr(), ir.size === 0 ? e() : ar.add(e);
+ cr(), ar.size === 0 ? e() : or.add(e);
});
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/focusSafely.mjs
-function lr(e) {
+function ur(e) {
if (!e.isConnected) return;
let t = R(e);
- if (Qn() === "virtual") {
- let n = It(t);
- cr(() => {
- let r = It(t);
- (r === n || r === t.body) && e.isConnected && St(e);
+ if ($n() === "virtual") {
+ let n = Lt(t);
+ lr(() => {
+ let r = Lt(t);
+ (r === n || r === t.body) && e.isConnected && Ct(e);
});
- } else St(e);
+ } else Ct(e);
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/chain.mjs
-function ur(...e) {
+function dr(...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 dr(e) {
- let [t, n] = (0, S.useState)(e), r = (0, S.useRef)(t), i = (0, S.useRef)(null), a = (0, S.useRef)(() => {
+function fr(e) {
+ let [t, n] = (0, C.useState)(e), r = (0, C.useRef)(t), i = (0, C.useRef)(null), a = (0, C.useRef)(() => {
if (!i.current) return;
let e = i.current.next();
if (e.done) {
@@ -2952,51 +2952,51 @@ function dr(e) {
}
r.current === e.value ? a.current() : n(e.value);
});
- return Yt(() => {
+ return Xt(() => {
r.current = t, i.current && a.current();
- }), [t, (0, S.useCallback)((e) => {
+ }), [t, (0, C.useCallback)((e) => {
i.current = e(r.current), a.current();
}, [a])];
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useId.mjs
-var fr = !!(typeof window < "u" && window.document && window.document.createElement), pr = /* @__PURE__ */ new Map(), mr;
-typeof FinalizationRegistry < "u" && (mr = new FinalizationRegistry((e) => {
- pr.delete(e);
+var pr = !!(typeof window < "u" && window.document && window.document.createElement), mr = /* @__PURE__ */ new Map(), hr;
+typeof FinalizationRegistry < "u" && (hr = new FinalizationRegistry((e) => {
+ mr.delete(e);
}));
-var hr = /* @__PURE__ */ new WeakMap();
-function gr(e) {
- let [t, n] = (0, S.useState)(e), r = (0, S.useRef)(null), i = An(t), a = (0, S.useRef)(null), o = hr.get(a);
- if (mr && o !== i && (o != null && mr.unregister(a), mr.register(a, i, a), hr.set(a, i)), fr) {
- let e = pr.get(i);
- e && !e.includes(r) ? e.push(r) : pr.set(i, [r]);
- }
- return Yt(() => {
+var gr = /* @__PURE__ */ new WeakMap();
+function _r(e) {
+ let [t, n] = (0, C.useState)(e), r = (0, C.useRef)(null), i = jn(t), a = (0, C.useRef)(null), o = gr.get(a);
+ if (hr && o !== i && (o != null && hr.unregister(a), hr.register(a, i, a), gr.set(a, i)), pr) {
+ let e = mr.get(i);
+ e && !e.includes(r) ? e.push(r) : mr.set(i, [r]);
+ }
+ return Xt(() => {
let e = i;
return () => {
- mr && (mr.unregister(a), hr.delete(a)), pr.delete(e);
+ hr && (hr.unregister(a), gr.delete(a)), mr.delete(e);
};
- }, [i]), (0, S.useEffect)(() => {
+ }, [i]), (0, C.useEffect)(() => {
let e = r.current;
return e && n(e), () => {
e && (r.current = null);
};
}), i;
}
-function _r(e, t) {
+function vr(e, t) {
if (e === t) return e;
- let n = pr.get(e);
+ let n = mr.get(e);
if (n) return n.forEach((e) => e.current = t), t;
- let r = pr.get(t);
+ let r = mr.get(t);
return r ? (r.forEach((t) => t.current = e), e) : t;
}
-function vr(e = []) {
- let t = gr(), [n, r] = dr(t), i = (0, S.useCallback)(() => {
+function yr(e = []) {
+ let t = _r(), [n, r] = fr(t), i = (0, C.useCallback)(() => {
r(function* () {
yield t, yield document.getElementById(t) ? t : void 0;
});
}, [t, r]);
- return Yt(i, [
+ return Xt(i, [
t,
i,
...e
@@ -3004,38 +3004,38 @@ function vr(e = []) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/mergeRefs.mjs
-function yr(...e) {
+function br(...e) {
return e.length === 1 && e[0] ? e[0] : (t) => {
let n = !1, r = e.map((e) => {
- let r = br(e, t);
+ let r = xr(e, t);
return n ||= typeof r == "function", r;
});
if (n) return () => {
r.forEach((t, n) => {
- typeof t == "function" ? t() : br(e[n], null);
+ typeof t == "function" ? t() : xr(e[n], null);
});
};
};
}
-function br(e, t) {
+function xr(e, t) {
if (typeof e == "function") return e(t);
e != null && (e.current = t);
}
//#endregion
//#region node_modules/clsx/dist/clsx.mjs
-function xr(e) {
+function Sr(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 = xr(e[t])) && (r && (r += " "), r += n);
+ for (t = 0; t < i; t++) e[t] && (n = Sr(e[t])) && (r && (r += " "), r += n);
} else for (n in e) e[n] && (r && (r += " "), r += n);
}
return r;
}
-function Sr() {
- for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = xr(e)) && (r && (r += " "), r += t);
+function Cr() {
+ for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = Sr(e)) && (r && (r += " "), r += t);
return r;
}
//#endregion
@@ -3046,18 +3046,18 @@ function V(...e) {
let r = e[n];
for (let e in r) {
let n = t[e], i = r[e];
- typeof n == "function" && typeof i == "function" && e[0] === "o" && e[1] === "n" && e.charCodeAt(2) >= 65 && e.charCodeAt(2) <= 90 ? t[e] = ur(n, i) : (e === "className" || e === "UNSAFE_className") && typeof n == "string" && typeof i == "string" ? t[e] = Sr(n, i) : e === "id" && n && i ? t.id = _r(n, i) : e === "ref" && n && i ? t.ref = yr(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] = dr(n, i) : (e === "className" || e === "UNSAFE_className") && typeof n == "string" && typeof i == "string" ? t[e] = Cr(n, i) : e === "id" && n && i ? t.id = vr(n, i) : e === "ref" && n && i ? t.ref = br(n, i) : t[e] = i === void 0 ? n : i;
}
}
return t;
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useFocus.mjs
-function Cr(e) {
- let { isDisabled: t, onFocus: n, onBlur: r, onFocusChange: i } = e, a = (0, S.useCallback)((e) => {
+function wr(e) {
+ let { isDisabled: t, onFocus: n, onBlur: r, onFocusChange: i } = e, a = (0, C.useCallback)((e) => {
if (B(e) === e.currentTarget) return r && r(e), i && i(!1), !0;
- }, [r, i]), o = Qt(a), s = (0, S.useCallback)((e) => {
- let t = B(e), r = R(t), a = r ? It(r) : It();
+ }, [r, i]), o = $t(a), s = (0, C.useCallback)((e) => {
+ let t = B(e), r = R(t), a = r ? Lt(r) : Lt();
t === e.currentTarget && t === a && (n && n(e), i && i(!0), o(e));
}, [
i,
@@ -3071,7 +3071,7 @@ function Cr(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/createEventHandler.mjs
-function wr(e) {
+function Tr(e) {
if (e) return (t) => {
let n = !0;
e({
@@ -3096,33 +3096,33 @@ function wr(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/createKeyboardShortcutHandler.mjs
-var Tr = /* @__PURE__ */ new Set([
+var Er = /* @__PURE__ */ new Set([
"shift",
"alt",
"control",
"meta",
"mod"
-]), Er = [
+]), Dr = [
"Alt",
"Control",
"Meta",
"Shift"
];
-function Dr(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(an() ? "Meta" : "Control"), t;
-}
function Or(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;
+ 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(on() ? "Meta" : "Control"), t;
}
function kr(e) {
- return Er.filter((t) => e.has(t));
+ 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 Ar(e) {
+ return Dr.filter((t) => e.has(t));
+}
+function jr(e) {
let t = e.split("+").reduce((e, t) => {
let n = t.toLowerCase();
- return Tr.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 Er.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,
@@ -3134,10 +3134,10 @@ function Ar(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 jr(e) {
+function Mr(e) {
return e.toLowerCase();
}
-var Mr = {
+var Nr = {
space: " ",
esc: "escape",
del: "delete",
@@ -3149,26 +3149,26 @@ var Mr = {
pageup: "pageup",
pagedown: "pagedown"
};
-function Nr(e) {
- let t = jr(e);
- return Mr[t] ?? t;
-}
function Pr(e) {
- let t = kr(Dr(e)), n = Nr(e.key);
- return t.length > 0 ? `${t.join("+")}+${n}` : n;
+ let t = Mr(e);
+ return Nr[t] ?? t;
}
function Fr(e) {
- let t = kr(Or(e)), n = jr(e.key);
- return (t.length > 0 ? `${t.join("+")}+` : "") + n;
+ let t = Ar(Or(e)), n = Pr(e.key);
+ return t.length > 0 ? `${t.join("+")}+${n}` : n;
}
function Ir(e) {
+ let t = Ar(kr(e)), n = Mr(e.key);
+ return (t.length > 0 ? `${t.join("+")}+` : "") + n;
+}
+function Lr(e) {
let t = /* @__PURE__ */ new Map();
for (let [n, r] of Object.entries(e)) {
- let e = Ar(n);
- t.set(Pr(e), r);
+ let e = jr(n);
+ t.set(Fr(e), r);
}
return (e) => {
- let n = Fr(e), r = t.get(n), i = r?.(e);
+ let n = Ir(e), r = t.get(n), i = r?.(e);
i === void 0 && r !== void 0 ? i = {
shouldContinuePropagation: !1,
shouldPreventDefault: !0
@@ -3180,10 +3180,10 @@ function Ir(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useKeyboard.mjs
-function Lr(e) {
+function Rr(e) {
let { shortcuts: t, allowRepeats: n = !1, allowComposing: r = !1 } = e, i, a;
if (t) {
- let o = Ir(t), s = wr((e) => {
+ let o = Lr(t), s = Tr((e) => {
if (!z(e.currentTarget, B(e))) {
e.continuePropagation();
return;
@@ -3193,7 +3193,7 @@ function Lr(e) {
return;
}
o(e);
- }), c = wr((e) => {
+ }), c = Tr((e) => {
if (!z(e.currentTarget, B(e))) {
e.continuePropagation();
return;
@@ -3204,8 +3204,8 @@ function Lr(e) {
}
e.continuePropagation();
});
- i = e.onKeyDown ? ur(e.onKeyDown, s) : s, a = e.onKeyUp ? ur(e.onKeyUp, c) : c;
- } else i = wr(e.onKeyDown), a = wr(e.onKeyUp);
+ i = e.onKeyDown ? dr(e.onKeyDown, s) : s, a = e.onKeyUp ? dr(e.onKeyUp, c) : c;
+ } else i = Tr(e.onKeyDown), a = Tr(e.onKeyUp);
return { keyboardProps: e.isDisabled ? {} : {
onKeyDown: i,
onKeyUp: a
@@ -3213,8 +3213,8 @@ function Lr(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useObjectRef.mjs
-function Rr(e) {
- let t = (0, S.useRef)(null), n = (0, S.useRef)(void 0), r = (0, S.useCallback)((t) => {
+function zr(e) {
+ let t = (0, C.useRef)(null), n = (0, C.useRef)(void 0), r = (0, C.useCallback)((t) => {
if (typeof e == "function") {
let n = e, r = n(t);
return () => {
@@ -3225,7 +3225,7 @@ function Rr(e) {
e.current = null;
};
}, [e]);
- return (0, S.useMemo)(() => ({
+ return (0, C.useMemo)(() => ({
get current() {
return t.current;
},
@@ -3236,8 +3236,8 @@ function Rr(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useSyncRef.mjs
-function zr(e, t) {
- Yt(() => {
+function Br(e, t) {
+ Xt(() => {
if (e && e.ref && t) return e.ref.current = t.current, () => {
e.ref && (e.ref.current = null);
};
@@ -3245,17 +3245,17 @@ function zr(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useFocusable.mjs
-var Br = /*#__PURE__*/ S.createContext(null);
-function Vr(e) {
- let t = (0, S.useContext)(Br) || {};
- zr(t, e);
+var Vr = /*#__PURE__*/ C.createContext(null);
+function Hr(e) {
+ let t = (0, C.useContext)(Vr) || {};
+ Br(t, e);
let { ref: n, ...r } = t;
return r;
}
-function Hr(e, t) {
- let { focusProps: n } = Cr(e), { keyboardProps: r } = Lr(e), i = V(n, r), a = Vr(t), o = e.isDisabled ? {} : a, s = (0, S.useRef)(e.autoFocus);
- (0, S.useEffect)(() => {
- s.current && t.current && lr(t.current), s.current = !1;
+function Ur(e, t) {
+ let { focusProps: n } = wr(e), { keyboardProps: r } = Rr(e), i = V(n, r), a = Hr(t), o = e.isDisabled ? {} : a, s = (0, C.useRef)(e.autoFocus);
+ (0, C.useEffect)(() => {
+ s.current && t.current && ur(t.current), s.current = !1;
}, [t]);
let c = e.excludeFromTabOrder ? -1 : 0;
return e.isDisabled && (c = void 0), { focusableProps: V({
@@ -3290,23 +3290,23 @@ typeof HTMLTemplateElement < "u" && (Object.defineProperty(HTMLTemplateElement.p
return this.content.insertBefore(e, t);
}
}));
-var Ur = /*#__PURE__*/ (0, S.createContext)(!1);
-function Wr(e) {
- if ((0, S.useContext)(Ur)) return /*#__PURE__*/ S.createElement(S.Fragment, null, e.children);
- let t = /*#__PURE__*/ S.createElement(Ur.Provider, { value: !0 }, e.children);
- return /*#__PURE__*/ S.createElement("template", null, t);
-}
+var Wr = /*#__PURE__*/ (0, C.createContext)(!1);
function Gr(e) {
- let t = (t, n) => (0, S.useContext)(Ur) ? null : e(t, n);
- return t.displayName = e.displayName || e.name, (0, S.forwardRef)(t);
+ if ((0, C.useContext)(Wr)) return /*#__PURE__*/ C.createElement(C.Fragment, null, e.children);
+ let t = /*#__PURE__*/ C.createElement(Wr.Provider, { value: !0 }, e.children);
+ return /*#__PURE__*/ C.createElement("template", null, t);
+}
+function Kr(e) {
+ let t = (t, n) => (0, C.useContext)(Wr) ? null : e(t, n);
+ return t.displayName = e.displayName || e.name, (0, C.forwardRef)(t);
}
-function Kr() {
- return (0, S.useContext)(Ur);
+function qr() {
+ return (0, C.useContext)(Wr);
}
//#endregion
//#region node_modules/react-dom/cjs/react-dom.production.js
-var qr = /* @__PURE__ */ h(((e) => {
- var t = y();
+var Jr = /* @__PURE__ */ g(((e) => {
+ var t = b();
function n(e) {
var t = "https://react.dev/errors/" + e;
if (1 < arguments.length) {
@@ -3433,7 +3433,7 @@ var qr = /* @__PURE__ */ h(((e) => {
}, e.useFormStatus = function() {
return l.H.useHostTransitionStatus();
}, e.version = "19.3.0";
-})), Jr = /* @__PURE__ */ h(((e, t) => {
+})), Yr = /* @__PURE__ */ g(((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);
@@ -3441,9 +3441,9 @@ var qr = /* @__PURE__ */ h(((e) => {
console.error(e);
}
}
- n(), t.exports = qr();
-})), Yr = /* @__PURE__ */ h(((e) => {
- var t = y();
+ n(), t.exports = Jr();
+})), Xr = /* @__PURE__ */ g(((e) => {
+ var t = b();
function n(e, t) {
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
}
@@ -3480,48 +3480,48 @@ var qr = /* @__PURE__ */ h(((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;
-})), Xr = /* @__PURE__ */ h(((e, t) => {
- t.exports = Yr();
-})), Zr = /* @__PURE__ */ _(Jr(), 1), Qr = Xr(), $r = /*#__PURE__*/ (0, S.createContext)(!1), ei = /*#__PURE__*/ (0, S.createContext)(null);
-function ti(e) {
- if ((0, S.useContext)(ei)) return e.content;
- let { collection: t, document: n } = ai(e.createCollection);
- return /*#__PURE__*/ S.createElement(S.Fragment, null, /*#__PURE__*/ S.createElement(Wr, null, /*#__PURE__*/ S.createElement(ei.Provider, { value: n }, e.content)), /*#__PURE__*/ S.createElement(ni, {
+})), Zr = /* @__PURE__ */ g(((e, t) => {
+ t.exports = Xr();
+})), Qr = /* @__PURE__ */ v(Yr(), 1), $r = Zr(), ei = /*#__PURE__*/ (0, C.createContext)(!1), ti = /*#__PURE__*/ (0, C.createContext)(null);
+function ni(e) {
+ if ((0, C.useContext)(ti)) return e.content;
+ let { collection: t, document: n } = oi(e.createCollection);
+ return /*#__PURE__*/ C.createElement(C.Fragment, null, /*#__PURE__*/ C.createElement(Gr, null, /*#__PURE__*/ C.createElement(ti.Provider, { value: n }, e.content)), /*#__PURE__*/ C.createElement(ri, {
render: e.children,
collection: t
}));
}
-function ni({ collection: e, render: t }) {
+function ri({ collection: e, render: t }) {
return t(e);
}
-function ri(e, t, n) {
- let r = Pn(), i = (0, S.useRef)(r);
+function ii(e, t, n) {
+ let r = Fn(), i = (0, C.useRef)(r);
i.current = r;
- let a = (0, S.useCallback)(() => i.current ? n() : t(), [t, n]);
- return (0, Qr.useSyncExternalStore)(e, a);
+ let a = (0, C.useCallback)(() => i.current ? n() : t(), [t, n]);
+ return (0, $r.useSyncExternalStore)(e, a);
}
-var ii = typeof S.useSyncExternalStore == "function" ? S.useSyncExternalStore : ri;
-function ai(e) {
- let [t] = (0, S.useState)(() => new yt(e?.() || new ht()));
+var ai = typeof C.useSyncExternalStore == "function" ? C.useSyncExternalStore : ii;
+function oi(e) {
+ let [t] = (0, C.useState)(() => new bt(e?.() || new gt()));
return {
- collection: ii((0, S.useCallback)((e) => t.subscribe(e), [t]), (0, S.useCallback)(() => {
+ collection: ai((0, C.useCallback)((e) => t.subscribe(e), [t]), (0, C.useCallback)(() => {
let e = t.getCollection();
return t.isSSR && t.resetAfterSSR(), e;
- }, [t]), (0, S.useCallback)(() => (t.isSSR = !0, t.getCollection()), [t])),
+ }, [t]), (0, C.useCallback)(() => (t.isSSR = !0, t.getCollection()), [t])),
document: t
};
}
-var oi = /*#__PURE__*/ (0, S.createContext)(null);
-function si(e) {
- return class extends dt {
+var si = /*#__PURE__*/ (0, C.createContext)(null);
+function ci(e) {
+ return class extends ft {
static {
this.type = e;
}
};
}
-function ci(e, t, n, r, i, a) {
- typeof e == "string" && (e = si(e));
- let o = (0, S.useCallback)((i) => {
+function li(e, t, n, r, i, a) {
+ typeof e == "string" && (e = ci(e));
+ let o = (0, C.useCallback)((i) => {
i?.setProps(t, n, e, r, a);
}, [
t,
@@ -3529,81 +3529,81 @@ function ci(e, t, n, r, i, a) {
r,
a,
e
- ]), s = (0, S.useContext)(oi);
+ ]), s = (0, C.useContext)(si);
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__*/ S.createElement(oi.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__*/ C.createElement(si.Provider, { value: o }, i) : null;
}
- return /*#__PURE__*/ S.createElement(e.type, { ref: o }, i);
+ return /*#__PURE__*/ C.createElement(e.type, { ref: o }, i);
}
-function li(e, t) {
- let n = ({ node: e }) => t(e.props, e.props.ref, e), r = (0, S.forwardRef)((r, i) => {
- let a = (0, S.useContext)(Br);
- if (!(0, S.useContext)($r)) {
+function ui(e, t) {
+ let n = ({ node: e }) => t(e.props, e.props.ref, e), r = (0, C.forwardRef)((r, i) => {
+ let a = (0, C.useContext)(Vr);
+ if (!(0, C.useContext)(ei)) {
if (t.length >= 3) throw Error(t.name + " cannot be rendered outside a collection.");
return t(r, i);
}
- return ci(e, r, i, "children" in r ? r.children : null, null, (e) => /*#__PURE__*/ S.createElement(Br.Provider, { value: a }, /*#__PURE__*/ S.createElement(n, { node: e })));
+ return li(e, r, i, "children" in r ? r.children : null, null, (e) => /*#__PURE__*/ C.createElement(Vr.Provider, { value: a }, /*#__PURE__*/ C.createElement(n, { node: e })));
});
return r.displayName = t.name, r;
}
-function ui(e, t, n = di) {
- let r = ({ node: e }) => t(e.props, e.props.ref, e), i = (0, S.forwardRef)((t, i) => ci(e, t, i, null, n(t), (e) => /*#__PURE__*/ S.createElement(r, { node: e })) ?? /*#__PURE__*/ S.createElement(S.Fragment, null));
+function di(e, t, n = fi) {
+ let r = ({ node: e }) => t(e.props, e.props.ref, e), i = (0, C.forwardRef)((t, i) => li(e, t, i, null, n(t), (e) => /*#__PURE__*/ C.createElement(r, { node: e })) ?? /*#__PURE__*/ C.createElement(C.Fragment, null));
return i.displayName = t.name, i;
}
-function di(e) {
- return bt({
+function fi(e) {
+ return xt({
...e,
addIdAndValue: !0
});
}
-var fi = /*#__PURE__*/ (0, S.createContext)(null);
-function pi(e) {
- let t = (0, S.useContext)(fi), n = (t?.dependencies || []).concat(e.dependencies), r = e.idScope ?? t?.idScope, i = di({
+var pi = /*#__PURE__*/ (0, C.createContext)(null);
+function mi(e) {
+ let t = (0, C.useContext)(pi), n = (t?.dependencies || []).concat(e.dependencies), r = e.idScope ?? t?.idScope, i = fi({
...e,
idScope: r,
dependencies: n
});
- return (0, S.useContext)(ei) && (i = /*#__PURE__*/ S.createElement(mi, null, i)), t = (0, S.useMemo)(() => ({
+ return (0, C.useContext)(ti) && (i = /*#__PURE__*/ C.createElement(hi, null, i)), t = (0, C.useMemo)(() => ({
dependencies: n,
idScope: r
- }), [r, ...n]), /*#__PURE__*/ S.createElement(fi.Provider, { value: t }, i);
+ }), [r, ...n]), /*#__PURE__*/ C.createElement(pi.Provider, { value: t }, i);
}
-function mi({ children: e }) {
- let t = (0, S.useContext)(ei), n = (0, S.useMemo)(() => /*#__PURE__*/ S.createElement(ei.Provider, { value: null }, /*#__PURE__*/ S.createElement($r.Provider, { value: !0 }, e)), [e]);
- return Pn() ? /*#__PURE__*/ S.createElement(oi.Provider, { value: t }, n) : /*#__PURE__*/ (0, Zr.createPortal)(n, t);
+function hi({ children: e }) {
+ let t = (0, C.useContext)(ti), n = (0, C.useMemo)(() => /*#__PURE__*/ C.createElement(ti.Provider, { value: null }, /*#__PURE__*/ C.createElement(ei.Provider, { value: !0 }, e)), [e]);
+ return Fn() ? /*#__PURE__*/ C.createElement(si.Provider, { value: t }, n) : /*#__PURE__*/ (0, Qr.createPortal)(n, t);
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/constants.mjs
-var hi = "react-aria-clear-focus", gi = "react-aria-focus";
+var gi = "react-aria-clear-focus", _i = "react-aria-focus";
//#endregion
//#region node_modules/react-aria/dist/private/focus/virtualFocus.mjs
-function _i(e) {
- let t = bi(R(e));
- t !== e && (t && vi(t, e), e && yi(e, t));
+function vi(e) {
+ let t = xi(R(e));
+ t !== e && (t && yi(t, e), e && bi(e, t));
}
-function vi(e, t) {
+function yi(e, t) {
e.dispatchEvent(new FocusEvent("blur", { relatedTarget: t })), e.dispatchEvent(new FocusEvent("focusout", {
bubbles: !0,
relatedTarget: t
}));
}
-function yi(e, t) {
+function bi(e, t) {
e.dispatchEvent(new FocusEvent("focus", { relatedTarget: t })), e.dispatchEvent(new FocusEvent("focusin", {
bubbles: !0,
relatedTarget: t
}));
}
-function bi(e) {
- let t = It(e), n = t?.getAttribute("aria-activedescendant");
+function xi(e) {
+ let t = Lt(e), n = t?.getAttribute("aria-activedescendant");
return n && e.getElementById(n) || t;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/keyboard.mjs
-function xi(e) {
- return an() ? e.metaKey : e.ctrlKey;
+function Si(e) {
+ return on() ? e.metaKey : e.ctrlKey;
}
-var Si = /* @__PURE__ */ new Set([
+var Ci = /* @__PURE__ */ new Set([
"checkbox",
"radio",
"range",
@@ -3614,27 +3614,27 @@ var Si = /* @__PURE__ */ new Set([
"submit",
"reset"
]);
-function Ci(e) {
- return e instanceof HTMLInputElement && !Si.has(e.type) || e instanceof HTMLTextAreaElement || e instanceof HTMLElement && e.isContentEditable;
+function wi(e) {
+ return e instanceof HTMLInputElement && !Ci.has(e.type) || e instanceof HTMLTextAreaElement || e instanceof HTMLElement && e.isContentEditable;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useEffectEvent.mjs
-var wi = S.useInsertionEffect ?? Yt;
-function Ti(e) {
- let t = (0, S.useRef)(null);
- return wi(() => {
+var Ti = C.useInsertionEffect ?? Xt;
+function Ei(e) {
+ let t = (0, C.useRef)(null);
+ return Ti(() => {
t.current = e;
- }, [e]), (0, S.useCallback)((...e) => {
+ }, [e]), (0, C.useCallback)((...e) => {
let n = t.current;
return n?.(...e);
}, []);
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useEvent.mjs
-function Ei(e, t, n, r) {
- let i = Ti(n), a = n == null;
- (0, S.useEffect)(() => {
- if (!(a || e.current == null)) return Mt(e.current, t, i, r);
+function Di(e, t, n, r) {
+ let i = Ei(n), a = n == null;
+ (0, C.useEffect)(() => {
+ if (!(a || e.current == null)) return Nt(e.current, t, i, r);
}, [
e,
t,
@@ -3644,9 +3644,9 @@ function Ei(e, t, n, r) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useLabels.mjs
-function Di(e, t) {
+function Oi(e, t) {
let { id: n, "aria-label": r, "aria-labelledby": i } = e;
- return n = gr(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 = _r(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
@@ -3654,7 +3654,7 @@ function Di(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/utils.mjs
-var Oi = /* @__PURE__ */ new Set([
+var ki = /* @__PURE__ */ new Set([
"Arab",
"Syrc",
"Samr",
@@ -3665,7 +3665,7 @@ var Oi = /* @__PURE__ */ new Set([
"Adlm",
"Rohg",
"Hebr"
-]), ki = /* @__PURE__ */ new Set([
+]), Ai = /* @__PURE__ */ new Set([
"ae",
"ar",
"arc",
@@ -3686,20 +3686,20 @@ var Oi = /* @__PURE__ */ new Set([
"ur",
"yi"
]);
-function Ai(e) {
+function ji(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 Oi.has(t.script);
+ if (t.script) return ki.has(t.script);
}
let t = e.split("-")[0];
- return ki.has(t);
+ return Ai.has(t);
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/useDefaultLocale.mjs
-var ji = Symbol.for("react-aria.i18n.locale");
-function Mi() {
- let e = typeof window < "u" && window[ji] || typeof navigator < "u" && (navigator.language || navigator.userLanguage) || "en-US";
+var Mi = Symbol.for("react-aria.i18n.locale");
+function Ni() {
+ let e = typeof window < "u" && window[Mi] || typeof navigator < "u" && (navigator.language || navigator.userLanguage) || "en-US";
try {
Intl.DateTimeFormat.supportedLocalesOf([e]);
} catch {
@@ -3707,33 +3707,33 @@ function Mi() {
}
return {
locale: e,
- direction: Ai(e) ? "rtl" : "ltr"
+ direction: ji(e) ? "rtl" : "ltr"
};
}
-var Ni = Mi(), Pi = /* @__PURE__ */ new Set();
-function Fi() {
- Ni = Mi();
- for (let e of Pi) e(Ni);
-}
+var Pi = Ni(), Fi = /* @__PURE__ */ new Set();
function Ii() {
- let e = Pn(), [t, n] = (0, S.useState)(Ni);
- return (0, S.useEffect)(() => (Pi.size === 0 && window.addEventListener("languagechange", Fi), Pi.add(n), () => {
- Pi.delete(n), Pi.size === 0 && window.removeEventListener("languagechange", Fi);
+ Pi = Ni();
+ for (let e of Fi) e(Pi);
+}
+function Li() {
+ let e = Fn(), [t, n] = (0, C.useState)(Pi);
+ return (0, C.useEffect)(() => (Fi.size === 0 && window.addEventListener("languagechange", Ii), Fi.add(n), () => {
+ Fi.delete(n), Fi.size === 0 && window.removeEventListener("languagechange", Ii);
}), []), e ? {
- locale: typeof window < "u" && window[ji] || "en-US",
+ locale: typeof window < "u" && window[Mi] || "en-US",
direction: "ltr"
} : t;
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/I18nProvider.mjs
-var Li = /*#__PURE__*/ S.createContext(null);
-function Ri() {
- let e = Ii();
- return (0, S.useContext)(Li) || e;
+var Ri = /*#__PURE__*/ C.createContext(null);
+function zi() {
+ let e = Li();
+ return (0, C.useContext)(Ri) || e;
}
//#endregion
//#region node_modules/@internationalized/string/dist/private/LocalizedStringDictionary.mjs
-var zi = Symbol.for("react-aria.i18n.locale"), Bi = Symbol.for("react-aria.i18n.strings"), Vi = void 0, Hi = class e {
+var Bi = Symbol.for("react-aria.i18n.locale"), Vi = Symbol.for("react-aria.i18n.strings"), Hi = void 0, Ui = class e {
constructor(e, t = "en-US") {
this.strings = Object.fromEntries(Object.entries(e).filter(([, e]) => e)), this.defaultLocale = t;
}
@@ -3744,39 +3744,39 @@ var zi = Symbol.for("react-aria.i18n.locale"), Bi = Symbol.for("react-aria.i18n.
}
getStringsForLocale(e) {
let t = this.strings[e];
- return t || (t = Ui(e, this.strings, this.defaultLocale), this.strings[e] = t), t;
+ return t || (t = Wi(e, this.strings, this.defaultLocale), this.strings[e] = t), t;
}
static getGlobalDictionaryForPackage(t) {
if (typeof window > "u") return null;
- let n = window[zi];
- if (Vi === void 0) {
- let t = window[Bi];
+ let n = window[Bi];
+ if (Hi === void 0) {
+ let t = window[Vi];
if (!t) return null;
- Vi = {};
- for (let r in t) Vi[r] = new e({ [n]: t[r] }, n);
+ Hi = {};
+ for (let r in t) Hi[r] = new e({ [n]: t[r] }, n);
}
- let r = Vi?.[t];
+ let r = Hi?.[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 Ui(e, t, n = "en-US") {
+function Wi(e, t, n = "en-US") {
if (t[e]) return t[e];
- let r = Wi(e), i = Gi(e);
+ let r = Gi(e), i = Ki(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 Wi(e) {
+function Gi(e) {
return Intl.Locale ? new Intl.Locale(e).language : e.split("-")[0];
}
-function Gi(e) {
+function Ki(e) {
if (Intl.Locale) return new Intl.Locale(e).script;
}
//#endregion
//#region node_modules/@internationalized/string/dist/private/LocalizedStringFormatter.mjs
-var Ki = /* @__PURE__ */ new Map(), qi = /* @__PURE__ */ new Map(), Ji = class {
+var qi = /* @__PURE__ */ new Map(), Ji = /* @__PURE__ */ new Map(), Yi = class {
constructor(e, t) {
this.locale = e, this.strings = t;
}
@@ -3787,37 +3787,37 @@ var Ki = /* @__PURE__ */ new Map(), qi = /* @__PURE__ */ new Map(), Ji = class {
plural(e, t, n = "cardinal") {
let r = t["=" + e];
if (r) return typeof r == "function" ? r() : r;
- let i = this.locale + ":" + n, a = Ki.get(i);
- return a || (a = new Intl.PluralRules(this.locale, { type: n }), Ki.set(i, a)), r = t[a.select(e)] || t.other, typeof r == "function" ? r() : r;
+ let i = this.locale + ":" + n, a = qi.get(i);
+ return a || (a = new Intl.PluralRules(this.locale, { type: n }), qi.set(i, a)), r = t[a.select(e)] || t.other, typeof r == "function" ? r() : r;
}
number(e) {
- let t = qi.get(this.locale);
- return t || (t = new Intl.NumberFormat(this.locale), qi.set(this.locale, t)), t.format(e);
+ let t = Ji.get(this.locale);
+ return t || (t = new Intl.NumberFormat(this.locale), Ji.set(this.locale, t)), t.format(e);
}
select(e, t) {
let n = e[t] || e.other;
return typeof n == "function" ? n() : n;
}
-}, Yi = /* @__PURE__ */ new WeakMap();
-function Xi(e) {
- let t = Yi.get(e);
- return t || (t = new Hi(e), Yi.set(e, t)), t;
-}
-function Zi(e, t) {
- return t && Hi.getGlobalDictionaryForPackage(t) || Xi(e);
+}, Xi = /* @__PURE__ */ new WeakMap();
+function Zi(e) {
+ let t = Xi.get(e);
+ return t || (t = new Ui(e), Xi.set(e, t)), t;
}
function Qi(e, t) {
- let { locale: n } = Ri(), r = Zi(e, t);
- return (0, S.useMemo)(() => new Ji(n, r), [n, r]);
+ return t && Ui.getGlobalDictionaryForPackage(t) || Zi(e);
+}
+function $i(e, t) {
+ let { locale: n } = zi(), r = Qi(e, t);
+ return (0, C.useMemo)(() => new Yi(n, r), [n, r]);
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/filterDOMProps.mjs
-var $i = /* @__PURE__ */ new Set(["id"]), ea = /* @__PURE__ */ new Set([
+var ea = /* @__PURE__ */ new Set(["id"]), ta = /* @__PURE__ */ new Set([
"aria-label",
"aria-labelledby",
"aria-describedby",
"aria-details"
-]), ta = /* @__PURE__ */ new Set([
+]), na = /* @__PURE__ */ new Set([
"href",
"hrefLang",
"target",
@@ -3825,72 +3825,72 @@ var $i = /* @__PURE__ */ new Set(["id"]), ea = /* @__PURE__ */ new Set([
"download",
"ping",
"referrerPolicy"
-]), H = /* @__PURE__ */ new Set([
+]), ra = /* @__PURE__ */ new Set([
"dir",
"lang",
"hidden",
"inert",
"translate"
-]), na = /* @__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(".")), ra = /^(data-.*)$/;
-function U(e, t = {}) {
+]), ia = /* @__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(".")), aa = /^(data-.*)$/;
+function H(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) && ($i.has(t) || n && ea.has(t) || r && ta.has(t) || i && H.has(t) || a && (na.has(t) || t.endsWith("Capture") && na.has(t.slice(0, -7))) || o?.has(t) || ra.test(t)) && (s[t] = e[t]);
+ for (let t in e) Object.prototype.hasOwnProperty.call(e, t) && (ea.has(t) || n && ta.has(t) || r && na.has(t) || i && ra.has(t) || a && (ia.has(t) || t.endsWith("Capture") && ia.has(t.slice(0, -7))) || o?.has(t) || aa.test(t)) && (s[t] = e[t]);
return s;
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/textSelection.mjs
-var ia = "default", aa = "", oa = /* @__PURE__ */ new WeakMap();
-function sa(e) {
- if (cn() && un()) {
- if (ia === "default") {
+var oa = "default", sa = "", ca = /* @__PURE__ */ new WeakMap();
+function la(e) {
+ if (ln() && dn()) {
+ if (oa === "default") {
let t = R(e);
- aa = t.documentElement.style.webkitUserSelect, t.documentElement.style.webkitUserSelect = "none";
+ sa = t.documentElement.style.webkitUserSelect, t.documentElement.style.webkitUserSelect = "none";
}
- ia = "disabled";
+ oa = "disabled";
} else if (e instanceof HTMLElement || e instanceof SVGElement) {
let t = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
- oa.set(e, e.style[t]), e.style[t] = "none";
+ ca.set(e, e.style[t]), e.style[t] = "none";
}
}
-function ca(e) {
- if (cn() && un()) {
- if (ia !== "disabled") return;
- ia = "restoring", setTimeout(() => {
- cr(() => {
- if (ia === "restoring") {
+function ua(e) {
+ if (ln() && dn()) {
+ if (oa !== "disabled") return;
+ oa = "restoring", setTimeout(() => {
+ lr(() => {
+ if (oa === "restoring") {
let t = R(e);
- t.documentElement.style.webkitUserSelect === "none" && (t.documentElement.style.webkitUserSelect = aa || ""), aa = "", ia = "default";
+ t.documentElement.style.webkitUserSelect === "none" && (t.documentElement.style.webkitUserSelect = sa || ""), sa = "", oa = "default";
}
});
}, 300);
- } else if ((e instanceof HTMLElement || e instanceof SVGElement) && e && oa.has(e)) {
- let t = oa.get(e), n = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
- e.style[n] === "none" && (e.style[n] = t), e.getAttribute("style") === "" && e.removeAttribute("style"), oa.delete(e);
+ } else if ((e instanceof HTMLElement || e instanceof SVGElement) && e && ca.has(e)) {
+ let t = ca.get(e), n = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
+ e.style[n] === "none" && (e.style[n] = t), e.getAttribute("style") === "" && e.removeAttribute("style"), ca.delete(e);
}
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/getMetaValue.mjs
-function la(e, t) {
- let n = Dt(t), r = R(t);
+function da(e, t) {
+ let n = Ot(t), r = R(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 ua = /* @__PURE__ */ new WeakMap();
-function da(e) {
- let t = R(e), n = ua.get(t);
- return n ??= la("csp-nonce", t), n !== void 0 && ua.set(t, n), n;
+var fa = /* @__PURE__ */ new WeakMap();
+function pa(e) {
+ let t = R(e), n = fa.get(t);
+ return n ??= da("csp-nonce", t), n !== void 0 && fa.set(t, n), n;
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/context.mjs
-var fa = S.createContext({ register: () => {} });
-fa.displayName = "PressResponderContext";
+var ma = C.createContext({ register: () => {} });
+ma.displayName = "PressResponderContext";
//#endregion
//#region node_modules/react-aria/dist/private/utils/useGlobalListeners.mjs
-function pa() {
- let e = (0, S.useRef)(/* @__PURE__ */ new Map()), t = (0, S.useCallback)((t, n, r, i) => {
+function ha() {
+ let e = (0, C.useRef)(/* @__PURE__ */ new Map()), t = (0, C.useCallback)((t, n, r, i) => {
let a = i?.once ? (...t) => {
e.current.delete(r), r(...t);
} : r;
@@ -3900,15 +3900,15 @@ function pa() {
fn: a,
options: i
}), t.addEventListener(n, a, i);
- }, []), n = (0, S.useCallback)((t, n, r, i) => {
+ }, []), n = (0, C.useCallback)((t, n, r, i) => {
let a = e.current.get(r)?.fn || r;
t.removeEventListener(n, a, i), e.current.delete(r);
- }, []), r = (0, S.useCallback)(() => {
+ }, []), r = (0, C.useCallback)(() => {
e.current.forEach((e, t) => {
n(e.eventTarget, e.type, t, e.options);
});
}, [n]);
- return (0, S.useEffect)(() => r, [r]), {
+ return (0, C.useEffect)(() => r, [r]), {
addGlobalListener: t,
removeGlobalListener: n,
removeAllGlobalListeners: r
@@ -3916,15 +3916,15 @@ function pa() {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/usePress.mjs
-function ma(e) {
- let t = (0, S.useContext)(fa);
+function ga(e) {
+ let t = (0, C.useContext)(ma);
if (t) {
let { register: n, ref: r, ...i } = t;
e = V(i, e), n();
}
- return zr(t, e.ref), e;
+ return Br(t, e.ref), e;
}
-var ha = class {
+var _a = class {
#e;
constructor(e, t, n, r) {
this.#e = !0;
@@ -3937,9 +3937,9 @@ var ha = class {
get shouldStopPropagation() {
return this.#e;
}
-}, ga = Symbol("linkClicked"), _a = "react-aria-pressable-style", va = "data-react-aria-pressable";
-function ya(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 } = ma(e), [m, h] = (0, S.useState)(!1), g = (0, S.useRef)({
+}, va = Symbol("linkClicked"), ya = "react-aria-pressable-style", ba = "data-react-aria-pressable";
+function xa(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 } = ga(e), [m, h] = (0, C.useState)(!1), g = (0, C.useRef)({
isPressed: !1,
ignoreEmulatedMouseEvents: !1,
didFirePressStart: !1,
@@ -3949,12 +3949,12 @@ function ya(e) {
isOverTarget: !1,
pointerType: null,
disposables: []
- }), { addGlobalListener: _, removeAllGlobalListeners: v } = pa(), y = (0, S.useCallback)((e, t) => {
+ }), { addGlobalListener: _, removeAllGlobalListeners: v } = ha(), y = (0, C.useCallback)((e, t) => {
let i = g.current;
if (s || i.didFirePressStart) return !1;
let a = !0;
if (i.isTriggeringEvent = !0, r) {
- let n = new ha("pressstart", t, e);
+ let n = new _a("pressstart", t, e);
r(n), a = n.shouldStopPropagation;
}
return n && n(!0), i.isTriggeringEvent = !1, i.didFirePressStart = !0, h(!0), a;
@@ -3962,17 +3962,17 @@ function ya(e) {
s,
r,
n
- ]), b = (0, S.useCallback)((e, r, a = !0) => {
+ ]), b = (0, C.useCallback)((e, r, a = !0) => {
let o = g.current;
if (!o.didFirePressStart) return !1;
o.didFirePressStart = !1, o.isTriggeringEvent = !0;
let c = !0;
if (i) {
- let t = new ha("pressend", r, e);
+ let t = new _a("pressend", r, e);
i(t), c = t.shouldStopPropagation;
}
if (n && n(!1), h(!1), t && a && !s) {
- let n = new ha("press", r, e);
+ let n = new _a("press", r, e);
t(n), c &&= n.shouldStopPropagation;
}
return o.isTriggeringEvent = !1, c;
@@ -3981,19 +3981,19 @@ function ya(e) {
i,
n,
t
- ]), x = Ti(b), C = Ti((0, S.useCallback)((e, t) => {
+ ]), x = Ei(b), S = Ei((0, C.useCallback)((e, t) => {
let n = g.current;
if (s) return !1;
if (a) {
n.isTriggeringEvent = !0;
- let r = new ha("pressup", t, e);
+ let r = new _a("pressup", t, e);
return a(r), n.isTriggeringEvent = !1, r.shouldStopPropagation;
}
return !0;
- }, [s, a])), w = (0, S.useCallback)((e) => {
+ }, [s, a])), w = (0, C.useCallback)((e) => {
let t = g.current;
if (t.isPressed && t.target) {
- t.didFirePressStart && t.pointerType != null && b(Sa(t.target, e), t.pointerType, !1), t.isPressed = !1, t.isOverTarget = !1, t.activePointerId = null, t.pointerType = null, v(), d || ca(t.target);
+ t.didFirePressStart && t.pointerType != null && b(wa(t.target, e), t.pointerType, !1), t.isPressed = !1, t.isOverTarget = !1, t.activePointerId = null, t.pointerType = null, v(), d || ua(t.target);
for (let e of t.disposables) e();
t.disposables = [];
}
@@ -4001,8 +4001,8 @@ function ya(e) {
d,
v,
b
- ]), T = Ti(w);
- (0, S.useEffect)(() => {
+ ]), T = Ei(w);
+ (0, C.useEffect)(() => {
s && g.current.isPressed && T({
currentTarget: g.current.target,
shiftKey: !1,
@@ -4011,46 +4011,46 @@ function ya(e) {
altKey: !1
});
}, [s]);
- let E = (0, S.useCallback)((e) => {
+ let E = (0, C.useCallback)((e) => {
u && w(e);
- }, [u, w]), D = (0, S.useCallback)((e) => {
+ }, [u, w]), D = (0, C.useCallback)((e) => {
s || o?.(e);
- }, [s, o]), O = (0, S.useCallback)((e, t) => {
+ }, [s, o]), O = (0, C.useCallback)((e, t) => {
if (!s && o) {
let n = new MouseEvent("click", e);
- Zt(n, t), o(Xt(n));
+ Qt(n, t), o(Zt(n));
}
- }, [s, o]), k = (0, S.useMemo)(() => {
+ }, [s, o]), k = (0, C.useMemo)(() => {
let e = g.current, t = {
onKeyDown(t) {
- if (xa(t.nativeEvent, t.currentTarget) && z(t.currentTarget, B(t))) {
- wa(B(t), t.key) && t.preventDefault();
+ if (Ca(t.nativeEvent, t.currentTarget) && z(t.currentTarget, B(t))) {
+ Ea(B(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", ur((t) => {
- xa(t, i) && !t.repeat && z(i, B(t)) && e.target && C(Sa(e.target, t), "keyboard");
- }, n), !0), r && t.stopPropagation(), t.metaKey && an() && e.metaKeyEvents?.set(t.key, t.nativeEvent);
+ _(R(t.currentTarget), "keyup", dr((t) => {
+ Ca(t, i) && !t.repeat && z(i, B(t)) && e.target && S(wa(e.target, t), "keyboard");
+ }, n), !0), r && t.stopPropagation(), t.metaKey && on() && 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 && !vn.isOpening) {
+ if (!(t && !z(t.currentTarget, B(t))) && t && t.button === 0 && !e.isTriggeringEvent && !yn.isOpening) {
let n = !0;
- if (s && t.preventDefault(), !e.ignoreEmulatedMouseEvents && !e.isPressed && (e.pointerType === "virtual" || mn(t.nativeEvent))) {
- let e = y(t, "virtual"), r = C(t, "virtual"), i = x(t, "virtual");
+ if (s && t.preventDefault(), !e.ignoreEmulatedMouseEvents && !e.isPressed && (e.pointerType === "virtual" || hn(t.nativeEvent))) {
+ let e = y(t, "virtual"), r = S(t, "virtual"), i = x(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(Sa(t.currentTarget, t), r), a = x(Sa(t.currentTarget, t), r, !0);
+ let r = e.pointerType || t.nativeEvent.pointerType || "virtual", i = S(wa(t.currentTarget, t), r), a = x(wa(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 && xa(t, e.target)) {
- wa(B(t), t.key) && t.preventDefault();
+ if (e.isPressed && e.target && Ca(t, e.target)) {
+ Ea(B(t), t.key) && t.preventDefault();
let n = B(t), r = z(e.target, n);
- x(Sa(e.target, t), "keyboard", r), r && O(t, e.target), v(), t.key !== "Enter" && ba(e.target) && z(e.target, n) && !t[ga] && (t[ga] = !0, vn(e.target, t, !1)), e.isPressed = !1, e.metaKeyEvents?.delete(t.key);
+ x(wa(e.target, t), "keyboard", r), r && O(t, e.target), v(), t.key !== "Enter" && Sa(e.target) && z(e.target, n) && !t[va] && (t[va] = !0, yn(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;
@@ -4060,14 +4060,14 @@ function ya(e) {
if (typeof PointerEvent < "u") {
t.onPointerDown = (t) => {
if (t.button !== 0 || !z(t.currentTarget, B(t))) return;
- if (hn(t.nativeEvent)) {
+ if (gn(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 || sa(e.target), i = y(t, e.pointerType);
+ e.isPressed = !0, e.isOverTarget = !0, e.activePointerId = t.pointerId, e.target = t.currentTarget, d || la(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);
}
@@ -4075,23 +4075,23 @@ function ya(e) {
}, t.onMouseDown = (t) => {
if (z(t.currentTarget, B(t)) && t.button === 0) {
if (l) {
- let n = en(t.target);
+ let n = tn(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);
+ !z(t.currentTarget, B(t)) || e.pointerType === "virtual" || t.button === 0 && !e.isPressed && S(t, e.pointerType || t.pointerType);
}, t.onPointerEnter = (t) => {
- t.pointerId === e.activePointerId && e.target && !e.isOverTarget && e.pointerType != null && (e.isOverTarget = !0, y(Sa(e.target, t), e.pointerType));
+ t.pointerId === e.activePointerId && e.target && !e.isOverTarget && e.pointerType != null && (e.isOverTarget = !0, y(wa(e.target, t), e.pointerType));
}, t.onPointerLeave = (t) => {
- t.pointerId === e.activePointerId && e.target && e.isOverTarget && e.pointerType != null && (e.isOverTarget = !1, x(Sa(e.target, t), e.pointerType, !1), E(t));
+ t.pointerId === e.activePointerId && e.target && e.isOverTarget && e.pointerType != null && (e.isOverTarget = !1, x(wa(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) {
let n = !1, r = setTimeout(() => {
- e.isPressed && e.target instanceof HTMLElement && (n ? T(t) : (St(e.target), e.target.click()));
+ e.isPressed && e.target instanceof HTMLElement && (n ? T(t) : (Ct(e.target), e.target.click()));
}, 80);
_(t.currentTarget, "click", () => n = !0, !0), e.disposables.push(() => clearTimeout(r));
} else T(t);
@@ -4116,40 +4116,40 @@ function ya(e) {
D,
O
]);
- return (0, S.useEffect)(() => {
+ return (0, C.useEffect)(() => {
if (!f) return;
let e = R(f.current);
- if (!e || !e.head || e.getElementById(_a)) return;
+ if (!e || !e.head || e.getElementById(ya)) return;
let t = e.createElement("style");
- t.id = _a;
- let n = da(e);
+ t.id = ya;
+ let n = pa(e);
n && (t.nonce = n), t.textContent = `
@layer {
- [${va}] {
+ [${ba}] {
touch-action: pan-x pan-y pinch-zoom;
}
}
`.trim(), e.head.prepend(t);
- }, [f]), (0, S.useEffect)(() => {
+ }, [f]), (0, C.useEffect)(() => {
let e = g.current;
return () => {
- d || ca(e.target ?? void 0);
+ d || ua(e.target ?? void 0);
for (let t of e.disposables) t();
e.disposables = [];
};
}, [d]), {
isPressed: c || m,
- pressProps: V(p, k, { [va]: !0 })
+ pressProps: V(p, k, { [ba]: !0 })
};
}
-function ba(e) {
+function Sa(e) {
return e.tagName === "A" && e.hasAttribute("href");
}
-function xa(e, t) {
+function Ca(e, t) {
let { key: n, code: r } = e, i = t, a = i.getAttribute("role");
- return (n === "Enter" || n === " " || n === "Spacebar" || r === "Space") && !(i instanceof Dt(i).HTMLInputElement && !Ea(i, n) || i instanceof Dt(i).HTMLTextAreaElement || i.isContentEditable) && !((a === "link" || !a && ba(i)) && n !== "Enter");
+ return (n === "Enter" || n === " " || n === "Spacebar" || r === "Space") && !(i instanceof Ot(i).HTMLInputElement && !Oa(i, n) || i instanceof Ot(i).HTMLTextAreaElement || i.isContentEditable) && !((a === "link" || !a && Sa(i)) && n !== "Enter");
}
-function Sa(e, t) {
+function wa(e, t) {
let n = t.clientX, r = t.clientY;
return {
currentTarget: e,
@@ -4162,13 +4162,13 @@ function Sa(e, t) {
key: t.key
};
}
-function Ca(e) {
- return e instanceof HTMLInputElement ? !1 : e instanceof HTMLButtonElement ? e.type !== "submit" && e.type !== "reset" : !ba(e);
+function Ta(e) {
+ return e instanceof HTMLInputElement ? !1 : e instanceof HTMLButtonElement ? e.type !== "submit" && e.type !== "reset" : !Sa(e);
}
-function wa(e, t) {
- return an() && t === "Enter" ? !1 : e instanceof HTMLInputElement ? t === "Enter" && (e.type === "checkbox" || e.type === "radio") ? !1 : !Ea(e, t) : Ca(e);
+function Ea(e, t) {
+ return on() && t === "Enter" ? !1 : e instanceof HTMLInputElement ? t === "Enter" && (e.type === "checkbox" || e.type === "radio") ? !1 : !Oa(e, t) : Ta(e);
}
-var Ta = /* @__PURE__ */ new Set([
+var Da = /* @__PURE__ */ new Set([
"checkbox",
"radio",
"range",
@@ -4179,12 +4179,12 @@ var Ta = /* @__PURE__ */ new Set([
"submit",
"reset"
]);
-function Ea(e, t) {
- return e.type === "checkbox" || e.type === "radio" ? t === " " : Ta.has(e.type);
+function Oa(e, t) {
+ return e.type === "checkbox" || e.type === "radio" ? t === " " : Da.has(e.type);
}
//#endregion
//#region node_modules/react-aria/dist/private/button/useButton.mjs
-function Da(e, t) {
+function ka(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,
@@ -4206,7 +4206,7 @@ function Da(e, t) {
"aria-disabled": !r || n === "input" ? void 0 : r,
rel: n === "a" ? m : void 0
};
- let { pressProps: _, isPressed: v } = ya({
+ let { pressProps: _, isPressed: v } = xa({
onPressStart: a,
onPressEnd: o,
onPressChange: c,
@@ -4216,9 +4216,9 @@ function Da(e, t) {
isDisabled: r,
preventFocusOnPress: l,
ref: t
- }), { focusableProps: y } = Hr(e, t);
+ }), { focusableProps: y } = Ur(e, t);
u && (y.tabIndex = r ? -1 : y.tabIndex);
- let b = V(y, _, U(e, { labelable: !0 }));
+ let b = V(y, _, H(e, { labelable: !0 }));
return {
isPressed: v,
buttonProps: V(g, b, {
@@ -4233,7 +4233,7 @@ function Da(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/shadowdom/ShadowTreeWalker.mjs
-var Oa = class {
+var Aa = class {
constructor(e, t, n, r) {
this._walkerStack = [], this._currentSetFor = /* @__PURE__ */ new Set(), this._acceptNode = (e) => {
if (e.nodeType === Node.ELEMENT_NODE) {
@@ -4336,202 +4336,202 @@ var Oa = class {
return null;
}
};
-function ka(e, t, n, r) {
- return Ft() ? new Oa(e, t, n, r) : e.createTreeWalker(t, n, r);
+function ja(e, t, n, r) {
+ return It() ? new Aa(e, t, n, r) : e.createTreeWalker(t, n, r);
}
//#endregion
//#region node_modules/react-aria/dist/private/focus/FocusScope.mjs
-var Aa = /*#__PURE__*/ S.createContext(null), ja = "react-aria-focus-scope-restore", Ma = null;
-function Na(e) {
- let { children: t, contain: n, restoreFocus: r, autoFocus: i } = e, a = (0, S.useRef)(null), o = (0, S.useRef)(null), s = (0, S.useRef)([]), { parentNode: c } = (0, S.useContext)(Aa) || {}, l = (0, S.useMemo)(() => new to({ scopeRef: s }), [s]);
- Yt(() => {
- let e = c || no.root;
- if (no.getTreeNode(e.scopeRef) && Ma && !Wa(Ma, e.scopeRef)) {
- let t = no.getTreeNode(Ma);
+var Ma = /*#__PURE__*/ C.createContext(null), Na = "react-aria-focus-scope-restore", Pa = null;
+function Fa(e) {
+ let { children: t, contain: n, restoreFocus: r, autoFocus: i } = e, a = (0, C.useRef)(null), o = (0, C.useRef)(null), s = (0, C.useRef)([]), { parentNode: c } = (0, C.useContext)(Ma) || {}, l = (0, C.useMemo)(() => new ro({ scopeRef: s }), [s]);
+ Xt(() => {
+ let e = c || io.root;
+ if (io.getTreeNode(e.scopeRef) && Pa && !Ka(Pa, e.scopeRef)) {
+ let t = io.getTreeNode(Pa);
t && (e = t);
}
- e.addChild(l), no.addNode(l);
- }, [l, c]), Yt(() => {
- let e = no.getTreeNode(s);
+ e.addChild(l), io.addNode(l);
+ }, [l, c]), Xt(() => {
+ let e = io.getTreeNode(s);
e && (e.contain = !!n);
- }, [n]), Yt(() => {
+ }, [n]), Xt(() => {
let e = a.current?.nextSibling, t = [], n = (e) => e.stopPropagation();
- for (; e && e !== o.current;) t.push(e), e.addEventListener(ja, n), e = e.nextSibling;
+ for (; e && e !== o.current;) t.push(e), e.addEventListener(Na, n), e = e.nextSibling;
return s.current = t, () => {
- for (let e of t) e.removeEventListener(ja, n);
+ for (let e of t) e.removeEventListener(Na, n);
};
- }, [t]), Ya(s, r, n), za(s, n), Za(s, r, n), Ja(s, i), (0, S.useEffect)(() => {
- let e = It(R(s.current ? s.current[0] : void 0)), t = null;
- if (Va(e, s.current)) {
- for (let n of no.traverse()) n.scopeRef && Va(e, n.scopeRef.current) && (t = n);
- t === no.getTreeNode(s) && (Ma = t.scopeRef);
- }
- }, [s]), Yt(() => () => {
- let e = no.getTreeNode(s)?.parent?.scopeRef ?? null;
- (s === Ma || Wa(s, Ma)) && (!e || no.getTreeNode(e)) && (Ma = e), no.removeTreeNode(s);
+ }, [t]), Za(s, r, n), Va(s, n), $a(s, r, n), Xa(s, i), (0, C.useEffect)(() => {
+ let e = Lt(R(s.current ? s.current[0] : void 0)), t = null;
+ if (Ua(e, s.current)) {
+ for (let n of io.traverse()) n.scopeRef && Ua(e, n.scopeRef.current) && (t = n);
+ t === io.getTreeNode(s) && (Pa = t.scopeRef);
+ }
+ }, [s]), Xt(() => () => {
+ let e = io.getTreeNode(s)?.parent?.scopeRef ?? null;
+ (s === Pa || Ka(s, Pa)) && (!e || io.getTreeNode(e)) && (Pa = e), io.removeTreeNode(s);
}, [s]);
- let u = (0, S.useMemo)(() => Pa(s), []), d = (0, S.useMemo)(() => ({
+ let u = (0, C.useMemo)(() => Ia(s), []), d = (0, C.useMemo)(() => ({
focusManager: u,
parentNode: l
}), [l, u]);
- return /*#__PURE__*/ S.createElement(Aa.Provider, { value: d }, /*#__PURE__*/ S.createElement("span", {
+ return /*#__PURE__*/ C.createElement(Ma.Provider, { value: d }, /*#__PURE__*/ C.createElement("span", {
"data-focus-scope-start": !0,
hidden: !0,
ref: a
- }), t, /*#__PURE__*/ S.createElement("span", {
+ }), t, /*#__PURE__*/ C.createElement("span", {
"data-focus-scope-end": !0,
hidden: !0,
ref: o
}));
}
-function Pa(e) {
+function Ia(e) {
return {
focusNext(t = {}) {
- let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || It(R(n[0] ?? void 0)), c = n[0].previousElementSibling, l = $a(Fa(n), {
+ let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || Lt(R(n[0] ?? void 0)), c = n[0].previousElementSibling, l = to(La(n), {
tabbable: i,
accept: o
}, n);
- l.currentNode = Va(s, n) ? s : c;
+ l.currentNode = Ua(s, n) ? s : c;
let u = l.nextNode();
- return !u && a && (l.currentNode = c, u = l.nextNode()), u && Ga(u, !0), u;
+ return !u && a && (l.currentNode = c, u = l.nextNode()), u && qa(u, !0), u;
},
focusPrevious(t = {}) {
- let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || It(R(n[0] ?? void 0)), c = n[n.length - 1].nextElementSibling, l = $a(Fa(n), {
+ let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || Lt(R(n[0] ?? void 0)), c = n[n.length - 1].nextElementSibling, l = to(La(n), {
tabbable: i,
accept: o
}, n);
- l.currentNode = Va(s, n) ? s : c;
+ l.currentNode = Ua(s, n) ? s : c;
let u = l.previousNode();
- return !u && a && (l.currentNode = c, u = l.previousNode()), u && Ga(u, !0), u;
+ return !u && a && (l.currentNode = c, u = l.previousNode()), u && qa(u, !0), u;
},
focusFirst(t = {}) {
- let n = e.current, { tabbable: r, accept: i } = t, a = $a(Fa(n), {
+ let n = e.current, { tabbable: r, accept: i } = t, a = to(La(n), {
tabbable: r,
accept: i
}, n);
a.currentNode = n[0].previousElementSibling;
let o = a.nextNode();
- return o && Ga(o, !0), o;
+ return o && qa(o, !0), o;
},
focusLast(t = {}) {
- let n = e.current, { tabbable: r, accept: i } = t, a = $a(Fa(n), {
+ let n = e.current, { tabbable: r, accept: i } = t, a = to(La(n), {
tabbable: r,
accept: i
}, n);
a.currentNode = n[n.length - 1].nextElementSibling;
let o = a.previousNode();
- return o && Ga(o, !0), o;
+ return o && qa(o, !0), o;
}
};
}
-function Fa(e) {
+function La(e) {
return e[0].parentElement;
}
-function Ia(e) {
- let t = no.getTreeNode(Ma);
+function Ra(e) {
+ let t = io.getTreeNode(Pa);
for (; t && t.scopeRef !== e;) {
if (t.contain) return !1;
t = t.parent;
}
return !0;
}
-function La(e) {
+function za(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 = Dt(e);
+ let t = e.form.elements.namedItem(e.name), n = Ot(e);
return t instanceof n.RadioNodeList ? Array.from(t).filter((e) => e instanceof n.HTMLInputElement) : t instanceof n.HTMLInputElement ? [t] : [];
}
-function Ra(e) {
+function Ba(e) {
if (e.checked) return !0;
- let t = La(e);
+ let t = za(e);
return t.length > 0 && !t.some((e) => e.checked);
}
-function za(e, t) {
- let n = (0, S.useRef)(void 0), r = (0, S.useRef)(void 0);
- Yt(() => {
+function Va(e, t) {
+ let n = (0, C.useRef)(void 0), r = (0, C.useRef)(void 0);
+ Xt(() => {
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 || !Ia(e) || t.isComposing) return;
- let n = It(a), r = e.current;
- if (!r || !Va(n, r)) return;
- let i = $a(Fa(r), { tabbable: !0 }, r);
+ if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !Ra(e) || t.isComposing) return;
+ let n = Lt(a), r = e.current;
+ if (!r || !Ua(n, r)) return;
+ let i = to(La(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 && (Ga(o, !0), o instanceof Dt(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 && (qa(o, !0), o instanceof Ot(o).HTMLInputElement && o.select());
}, s = (t) => {
- (!Ma || Wa(Ma, e)) && Va(B(t), e.current) ? (Ma = e, n.current = B(t)) : Ia(e) && !Ha(B(t), e) ? n.current ? Ga(n.current) : Ma && Ma.current && qa(Ma.current) : Ia(e) && (n.current = B(t));
+ (!Pa || Ka(Pa, e)) && Ua(B(t), e.current) ? (Pa = e, n.current = B(t)) : Ra(e) && !Wa(B(t), e) ? n.current ? qa(n.current) : Pa && Pa.current && Ya(Pa.current) : Ra(e) && (n.current = B(t));
}, c = (t) => {
r.current && cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
- let r = Qn(), i = (r === "virtual" || r === null) && fn() && dn(), o = It(a);
- if (!i && o && Ia(e) && !Ha(o, e)) {
- Ma = e;
+ let r = $n(), i = (r === "virtual" || r === null) && pn() && fn(), o = Lt(a);
+ if (!i && o && Ra(e) && !Wa(o, e)) {
+ Pa = e;
let r = B(t);
- r && r.isConnected ? (n.current = r, Ga(n.current)) : Ma.current && qa(Ma.current);
+ r && r.isConnected ? (n.current = r, qa(n.current)) : Pa.current && Ya(Pa.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]), Yt(() => () => {
+ }, [e, t]), Xt(() => () => {
r.current && cancelAnimationFrame(r.current);
}, [r]);
}
-function Ba(e) {
- return Ha(e);
+function Ha(e) {
+ return Wa(e);
}
-function Va(e, t) {
+function Ua(e, t) {
return !e || !t ? !1 : t.some((t) => z(t, e));
}
-function Ha(e, t = null) {
+function Wa(e, t = null) {
if (e instanceof Element && e.closest("[data-react-aria-top-layer]")) return !0;
- for (let { scopeRef: n } of no.traverse(no.getTreeNode(t))) if (n && Va(e, n.current)) return !0;
+ for (let { scopeRef: n } of io.traverse(io.getTreeNode(t))) if (n && Ua(e, n.current)) return !0;
return !1;
}
-function Ua(e) {
- return Ha(e, Ma);
+function Ga(e) {
+ return Wa(e, Pa);
}
-function Wa(e, t) {
- let n = no.getTreeNode(t)?.parent;
+function Ka(e, t) {
+ let n = io.getTreeNode(t)?.parent;
for (; n;) {
if (n.scopeRef === e) return !0;
n = n.parent;
}
return !1;
}
-function Ga(e, t = !1) {
+function qa(e, t = !1) {
if (e != null && !t) try {
- lr(e);
+ ur(e);
} catch {}
else if (e != null) try {
e.focus();
} catch {}
}
-function Ka(e, t = !0) {
- let n = e[0].previousElementSibling, r = Fa(e), i = $a(r, { tabbable: t }, e);
+function Ja(e, t = !0) {
+ let n = e[0].previousElementSibling, r = La(e), i = to(r, { tabbable: t }, e);
i.currentNode = n;
let a = i.nextNode();
- return t && !a && (r = Fa(e), i = $a(r, { tabbable: !1 }, e), i.currentNode = n, a = i.nextNode()), a;
+ return t && !a && (r = La(e), i = to(r, { tabbable: !1 }, e), i.currentNode = n, a = i.nextNode()), a;
}
-function qa(e, t = !0) {
- Ga(Ka(e, t));
+function Ya(e, t = !0) {
+ qa(Ja(e, t));
}
-function Ja(e, t) {
- let n = S.useRef(t);
- (0, S.useEffect)(() => {
- n.current && (Ma = e, !Va(It(R(e.current ? e.current[0] : void 0)), Ma.current) && e.current && qa(e.current)), n.current = !1;
+function Xa(e, t) {
+ let n = C.useRef(t);
+ (0, C.useEffect)(() => {
+ n.current && (Pa = e, !Ua(Lt(R(e.current ? e.current[0] : void 0)), Pa.current) && e.current && Ya(e.current)), n.current = !1;
}, [e]);
}
-function Ya(e, t, n) {
- Yt(() => {
+function Za(e, t, n) {
+ Xt(() => {
if (t || n) return;
let r = e.current, i = R(r ? r[0] : void 0), a = (t) => {
let n = B(t);
- Va(n, e.current) ? Ma = e : Ba(n) || (Ma = null);
+ Ua(n, e.current) ? Pa = e : Ha(n) || (Pa = 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));
@@ -4542,43 +4542,43 @@ function Ya(e, t, n) {
n
]);
}
-function Xa(e) {
- let t = no.getTreeNode(Ma);
+function Qa(e) {
+ let t = io.getTreeNode(Pa);
for (; t && t.scopeRef !== e;) {
if (t.nodeToRestore) return !1;
t = t.parent;
}
return t?.scopeRef === e;
}
-function Za(e, t, n) {
- let r = (0, S.useRef)(typeof document < "u" ? It(R(e.current ? e.current[0] : void 0)) : null);
- Yt(() => {
+function $a(e, t, n) {
+ let r = (0, C.useRef)(typeof document < "u" ? Lt(R(e.current ? e.current[0] : void 0)) : null);
+ Xt(() => {
let r = e.current, i = R(r ? r[0] : void 0);
if (!t || n) return;
let a = () => {
- (!Ma || Wa(Ma, e)) && Va(It(i), e.current) && (Ma = e);
+ (!Pa || Ka(Pa, e)) && Ua(Lt(i), e.current) && (Pa = 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]), Yt(() => {
+ }, [e, n]), Xt(() => {
let r = R(e.current ? e.current[0] : void 0);
if (!t) return;
let i = (t) => {
- if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !Ia(e) || t.isComposing) return;
+ if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !Ra(e) || t.isComposing) return;
let n = r.activeElement;
- if (!Ha(n, e) || !Xa(e)) return;
- let i = no.getTreeNode(e);
+ if (!Wa(n, e) || !Qa(e)) return;
+ let i = io.getTreeNode(e);
if (!i) return;
- let a = i.nodeToRestore, o = $a(r.body, { tabbable: !0 });
+ let a = i.nodeToRestore, o = to(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 || !Ha(s, e)) && a) {
+ if ((!a || !a.isConnected || a === r.body) && (a = void 0, i.nodeToRestore = void 0), (!s || !Wa(s, e)) && a) {
o.currentNode = a;
do
s = t.shiftKey ? o.previousNode() : o.nextNode();
- while (Ha(s, e));
- t.preventDefault(), t.stopPropagation(), s ? Ga(s, !0) : Ba(a) ? Ga(a, !0) : n.blur();
+ while (Wa(s, e));
+ t.preventDefault(), t.stopPropagation(), s ? qa(s, !0) : Ha(a) ? qa(a, !0) : n.blur();
}
};
return n || r.addEventListener("keydown", i, !0), () => {
@@ -4588,31 +4588,31 @@ function Za(e, t, n) {
e,
t,
n
- ]), Yt(() => {
+ ]), Xt(() => {
let n = R(e.current ? e.current[0] : void 0);
if (!t) return;
- let i = no.getTreeNode(e);
+ let i = io.getTreeNode(e);
if (i) return i.nodeToRestore = r.current ?? void 0, () => {
- let r = no.getTreeNode(e);
+ let r = io.getTreeNode(e);
if (!r) return;
- let i = r.nodeToRestore, a = It(n);
- if (t && i && (a && Ha(a, e) || a === n.body && Xa(e))) {
- let t = no.clone();
+ let i = r.nodeToRestore, a = Lt(n);
+ if (t && i && (a && Wa(a, e) || a === n.body && Qa(e))) {
+ let t = io.clone();
requestAnimationFrame(() => {
if (n.activeElement === n.body) {
let n = t.getTreeNode(e);
for (; n;) {
if (n.nodeToRestore && n.nodeToRestore.isConnected) {
- Qa(n.nodeToRestore);
+ eo(n.nodeToRestore);
return;
}
n = n.parent;
}
for (n = t.getTreeNode(e); n;) {
- if (n.scopeRef && n.scopeRef.current && no.getTreeNode(n.scopeRef)) {
- let e = Ka(n.scopeRef.current, !0);
+ if (n.scopeRef && n.scopeRef.current && io.getTreeNode(n.scopeRef)) {
+ let e = Ja(n.scopeRef.current, !0);
if (e) {
- Qa(e);
+ eo(e);
return;
}
}
@@ -4624,21 +4624,21 @@ function Za(e, t, n) {
};
}, [e, t]);
}
-function Qa(e) {
- e.dispatchEvent(new CustomEvent(ja, {
+function eo(e) {
+ e.dispatchEvent(new CustomEvent(Na, {
bubbles: !0,
cancelable: !0
- })) && Ga(e);
+ })) && qa(e);
}
-function $a(e, t, n) {
- let r = t?.tabbable ? qt : Kt, i = R(e?.nodeType === Node.ELEMENT_NODE ? e : null), a = ka(i, e || i, NodeFilter.SHOW_ELEMENT, { acceptNode(e) {
- return z(t?.from, e) || t?.tabbable && e.tagName === "INPUT" && e.getAttribute("type") === "radio" && (!Ra(e) || a.currentNode.tagName === "INPUT" && a.currentNode.type === "radio" && a.currentNode.name === e.name) ? NodeFilter.FILTER_REJECT : r(e) && (!n || Va(e, n)) && (!t?.accept || t.accept(e)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
+function to(e, t, n) {
+ let r = t?.tabbable ? Jt : qt, i = R(e?.nodeType === Node.ELEMENT_NODE ? e : null), a = ja(i, e || i, NodeFilter.SHOW_ELEMENT, { acceptNode(e) {
+ return z(t?.from, e) || t?.tabbable && e.tagName === "INPUT" && e.getAttribute("type") === "radio" && (!Ba(e) || a.currentNode.tagName === "INPUT" && a.currentNode.type === "radio" && a.currentNode.name === e.name) ? NodeFilter.FILTER_REJECT : r(e) && (!n || Ua(e, n)) && (!t?.accept || t.accept(e)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
} });
return t?.from && (a.currentNode = t.from), a;
}
-var eo = class e {
+var no = class e {
constructor() {
- this.fastMap = /* @__PURE__ */ new Map(), this.root = new to({ scopeRef: null }), this.fastMap.set(null, this.root);
+ this.fastMap = /* @__PURE__ */ new Map(), this.root = new ro({ scopeRef: null }), this.fastMap.set(null, this.root);
}
get size() {
return this.fastMap.size;
@@ -4649,7 +4649,7 @@ var eo = class e {
addTreeNode(e, t, n) {
let r = this.fastMap.get(t ?? null);
if (!r) return;
- let i = new to({ scopeRef: e });
+ let i = new ro({ scopeRef: e });
r.addChild(i), i.parent = r, this.fastMap.set(e, i), n && (i.nodeToRestore = n);
}
addNode(e) {
@@ -4660,7 +4660,7 @@ var eo = 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 && Va(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 && Ua(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);
}
@@ -4672,7 +4672,7 @@ var eo = class e {
for (let e of this.traverse()) t.addTreeNode(e.scopeRef, e.parent?.scopeRef ?? null, e.nodeToRestore);
return t;
}
-}, to = class {
+}, ro = class {
constructor(e) {
this.children = /* @__PURE__ */ new Set(), this.contain = !1, this.scopeRef = e.scopeRef;
}
@@ -4682,13 +4682,13 @@ var eo = class e {
removeChild(e) {
this.children.delete(e), e.parent = void 0;
}
-}, no = new eo(), ro = 7e3, io = null;
-function ao(e, t = "assertive", n = ro) {
- io ? io.announce(e, t, n) : (io = new oo(), (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") ? io.announce(e, t, n) : setTimeout(() => {
- io?.isAttached() && io?.announce(e, t, n);
+}, io = new no(), ao = 7e3, oo = null;
+function so(e, t = "assertive", n = ao) {
+ oo ? oo.announce(e, t, n) : (oo = new co(), (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") ? oo.announce(e, t, n) : setTimeout(() => {
+ oo?.isAttached() && oo?.announce(e, t, n);
}, 100));
}
-var oo = class {
+var co = 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,
@@ -4713,7 +4713,7 @@ var oo = class {
destroy() {
this.node &&= (document.body.removeChild(this.node), null);
}
- announce(e, t = "assertive", n = ro) {
+ announce(e, t = "assertive", n = ao) {
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(() => {
@@ -4726,44 +4726,44 @@ var oo = class {
};
//#endregion
//#region node_modules/react-aria/dist/private/utils/useUpdateEffect.mjs
-function so(e, t) {
- let n = (0, S.useRef)(!0), r = (0, S.useRef)(null), i = Ti(e);
- (0, S.useEffect)(() => (n.current = !0, () => {
+function lo(e, t) {
+ let n = (0, C.useRef)(!0), r = (0, C.useRef)(null), i = Ei(e);
+ (0, C.useEffect)(() => (n.current = !0, () => {
n.current = !1;
- }), []), (0, S.useEffect)(() => {
+ }), []), (0, C.useEffect)(() => {
let e = r.current;
n.current ? n.current = !1 : (!e || t.some((t, n) => !Object.is(t, e[n]))) && i(), r.current = t;
}, t);
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/isScrollable.mjs
-function co(e, t) {
+function uo(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 lo(e, t) {
+function fo(e, t) {
let n = e;
- for (co(n, t) && (n = n.parentElement); n && !co(n, t);) n = n.parentElement;
+ for (uo(n, t) && (n = n.parentElement); n && !uo(n, t);) n = n.parentElement;
return n || document.scrollingElement || document.documentElement;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/getScrollParents.mjs
-function uo(e, t) {
+function po(e, t) {
let n = [], r = document.scrollingElement || document.documentElement;
- for (; e && (co(e, t) && n.push(e), e !== r);) e = e.parentElement;
+ for (; e && (uo(e, t) && n.push(e), e !== r);) e = e.parentElement;
return n;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/scrollIntoView.mjs
-function fo(e, t, n = {}) {
- e !== t && po(e, t, t.getBoundingClientRect(), n);
+function mo(e, t, n = {}) {
+ e !== t && ho(e, t, t.getBoundingClientRect(), n);
}
-function po(e, t, n, r = {}) {
+function ho(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, P = e === d ? 0 : e.offsetWidth - e.clientWidth - N, F = e === d ? 0 : e.offsetHeight - e.clientHeight - ee, te = p + (f ? 0 : T) + x, ne = m - (f ? 0 : E) - S - F, re = h + (f ? 0 : D) + C, ie = g - (f ? 0 : O) - w;
- cn() && un() || u.direction === "ltr" ? ie -= P : u.direction === "rtl" && (re += P);
+ ln() && dn() || u.direction === "ltr" ? ie -= P : u.direction === "rtl" && (re += P);
let ae = k < te || A > ne, oe = j < re || M > ie;
if (ae && i === "start") o += k - te;
else if (ae && i === "center") o += (k + A) / 2 - (te + ne) / 2;
@@ -4784,7 +4784,7 @@ function po(e, t, n, r = {}) {
top: o
});
}
-function mo(e, t = {}) {
+function go(e, t = {}) {
let { containingElement: n } = t;
if (e && e.isConnected) {
let t = document.scrollingElement || document.documentElement;
@@ -4797,50 +4797,50 @@ function mo(e, t = {}) {
inline: "center"
}), e.scrollIntoView?.({ block: "nearest" }));
} else {
- let { left: t, top: r } = e.getBoundingClientRect(), i = uo(e, !0);
- for (let t of i) fo(t, e);
+ let { left: t, top: r } = e.getBoundingClientRect(), i = po(e, !0);
+ for (let t of i) mo(t, e);
let { left: a, top: o } = e.getBoundingClientRect();
if (Math.abs(t - a) > 1 || Math.abs(r - o) > 1) {
- i = n ? uo(n, !0) : [];
- for (let e of i) fo(e, n, {
+ i = n ? po(n, !0) : [];
+ for (let e of i) mo(e, n, {
block: "center",
inline: "center"
});
- for (let t of uo(e, !0)) fo(t, e);
+ for (let t of po(e, !0)) mo(t, e);
}
}
}
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useDescription.mjs
-var ho = 0, go = /* @__PURE__ */ new Map();
-function _o(e) {
- let [t, n] = (0, S.useState)();
- return Yt(() => {
+var _o = 0, vo = /* @__PURE__ */ new Map();
+function yo(e) {
+ let [t, n] = (0, C.useState)();
+ return Xt(() => {
if (!e) return;
- let t = go.get(e);
+ let t = vo.get(e);
if (t) n(t.element.id);
else {
- let r = `react-aria-description-${ho++}`;
+ let r = `react-aria-description-${_o++}`;
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
- }, go.set(e, t);
+ }, vo.set(e, t);
}
return t.refCount++, () => {
- t && --t.refCount === 0 && (t.element.remove(), go.delete(e));
+ t && --t.refCount === 0 && (t.element.remove(), vo.delete(e));
};
}, [e]), { "aria-describedby": e ? t : void 0 };
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useFormReset.mjs
-function vo(e, t, n) {
- let r = Ti((e) => {
+function bo(e, t, n) {
+ let r = Ei((e) => {
n && !e.defaultPrevented && n(t);
});
- (0, S.useEffect)(() => {
+ (0, C.useEffect)(() => {
let t = e?.current?.form;
return t?.addEventListener("reset", r), () => {
t?.removeEventListener("reset", r);
@@ -4849,24 +4849,24 @@ function vo(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/form/useFormValidation.mjs
-function yo(e, t, n) {
+function xo(e, t, n) {
let { validationBehavior: r, focus: i } = e;
- Yt(() => {
+ Xt(() => {
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(xo(n.current));
+ n.current.setCustomValidity(e), n.current.hasAttribute("title") || (n.current.title = ""), t.realtimeValidation.isInvalid || t.updateValidation(Co(n.current));
}
});
- let a = (0, S.useRef)(!1), o = Ti(() => {
+ let a = (0, C.useRef)(!1), o = Ei(() => {
a.current || t.resetValidation();
- }), s = Ti((e) => {
+ }), s = Ei((e) => {
t.displayValidation.isInvalid || t.commitValidation();
let r = n?.current?.form;
- !e.defaultPrevented && n && r && So(r) === n.current && (i ? i() : n.current?.focus(), $n("keyboard")), e.preventDefault();
- }), c = Ti(() => {
+ !e.defaultPrevented && n && r && wo(r) === n.current && (i ? i() : n.current?.focus(), er("keyboard")), e.preventDefault();
+ }), c = Ei(() => {
t.commitValidation();
});
- (0, S.useEffect)(() => {
+ (0, C.useEffect)(() => {
let e = n?.current;
if (!e) return;
let t = e.form, r = t?.reset;
@@ -4877,7 +4877,7 @@ function yo(e, t, n) {
};
}, [n, r]);
}
-function bo(e) {
+function So(e) {
let t = e.validity;
return {
badInput: t.badInput,
@@ -4893,14 +4893,14 @@ function bo(e) {
valid: t.valid
};
}
-function xo(e) {
+function Co(e) {
return {
isInvalid: !e.validity.valid,
- validationDetails: bo(e),
+ validationDetails: So(e),
validationErrors: e.validationMessage ? [e.validationMessage] : []
};
}
-function So(e) {
+function wo(e) {
for (let t = 0; t < e.elements.length; t++) {
let n = e.elements[t];
if (n.validity?.valid === !1) return n;
@@ -4909,16 +4909,16 @@ function So(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useSlot.mjs
-function Co(e = !0) {
- let [t, n] = (0, S.useState)(e), r = (0, S.useRef)(!1), i = (0, S.useCallback)((e) => {
+function To(e = !0) {
+ let [t, n] = (0, C.useState)(e), r = (0, C.useRef)(!1), i = (0, C.useCallback)((e) => {
r.current = !0, n(!!e);
}, []);
- return Yt(() => {
+ return Xt(() => {
r.current || n(!1);
}, []), [i, t];
}
-function wo(e = !0) {
- let t = gr(), [n, r] = Co(e);
+function Eo(e = !0) {
+ let t = _r(), [n, r] = To(e);
return {
id: r ? t : void 0,
ref: n
@@ -4926,7 +4926,7 @@ function wo(e = !0) {
}
//#endregion
//#region node_modules/react-stately/dist/private/form/useFormValidationState.mjs
-var To = {
+var Do = {
badInput: !1,
customError: !1,
patternMismatch: !1,
@@ -4938,18 +4938,18 @@ var To = {
typeMismatch: !1,
valueMissing: !1,
valid: !0
-}, Eo = {
- ...To,
+}, Oo = {
+ ...Do,
customError: !0,
valid: !1
-}, Do = {
+}, ko = {
isInvalid: !1,
- validationDetails: To,
+ validationDetails: Do,
validationErrors: []
-}, Oo = (0, S.createContext)({}), ko = "__reactAriaFormValidationState";
-function Ao(e) {
+}, Ao = (0, C.createContext)({}), jo = "__reactAriaFormValidationState";
+function Mo(e) {
if (e.__reactAriaFormValidationState) {
- let { realtimeValidation: t, displayValidation: n, updateValidation: r, resetValidation: i, commitValidation: a } = e[ko];
+ let { realtimeValidation: t, displayValidation: n, updateValidation: r, resetValidation: i, commitValidation: a } = e[jo];
return {
realtimeValidation: t,
displayValidation: n,
@@ -4958,71 +4958,71 @@ function Ao(e) {
commitValidation: a
};
}
- return jo(e);
+ return No(e);
}
-function jo(e) {
+function No(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: Eo
- }, l = (0, S.useMemo)(() => !o || i == null ? null : Po(No(o, i)), [o, i]);
+ validationDetails: Oo
+ }, l = (0, C.useMemo)(() => !o || i == null ? null : Io(Fo(o, i)), [o, i]);
a?.validationDetails.valid && (a = void 0);
- let u = (0, S.useContext)(Oo), d = (0, S.useMemo)(() => r ? Array.isArray(r) ? r.flatMap((e) => Mo(u[e])) : Mo(u[r]) : [], [u, r]), [f, p] = (0, S.useState)(u), [m, h] = (0, S.useState)(!1);
+ let u = (0, C.useContext)(Ao), d = (0, C.useMemo)(() => r ? Array.isArray(r) ? r.flatMap((e) => Po(u[e])) : Po(u[r]) : [], [u, r]), [f, p] = (0, C.useState)(u), [m, h] = (0, C.useState)(!1);
u !== f && (p(u), h(!1));
- let g = (0, S.useMemo)(() => Po(m ? [] : d), [m, d]), _ = (0, S.useRef)(Do), [v, y] = (0, S.useState)(Do), b = (0, S.useRef)(Do), x = () => {
- if (!C) return;
+ let g = (0, C.useMemo)(() => Io(m ? [] : d), [m, d]), _ = (0, C.useRef)(ko), [v, y] = (0, C.useState)(ko), b = (0, C.useRef)(ko), x = () => {
+ if (!S) return;
w(!1);
let e = l || a || _.current;
- Fo(e, b.current) || (b.current = e, y(e));
- }, [C, w] = (0, S.useState)(!1);
- return (0, S.useEffect)(x), {
- realtimeValidation: c || g || l || a || Do,
+ Lo(e, b.current) || (b.current = e, y(e));
+ }, [S, w] = (0, C.useState)(!1);
+ return (0, C.useEffect)(x), {
+ realtimeValidation: c || g || l || a || ko,
displayValidation: s === "native" ? c || g || v : c || g || l || a || v,
updateValidation(e) {
- s === "aria" && !Fo(v, e) ? y(e) : _.current = e;
+ s === "aria" && !Lo(v, e) ? y(e) : _.current = e;
},
resetValidation() {
- let e = Do;
- Fo(e, b.current) || (b.current = e, y(e)), s === "native" && w(!1), h(!0);
+ let e = ko;
+ Lo(e, b.current) || (b.current = e, y(e)), s === "native" && w(!1), h(!0);
},
commitValidation() {
s === "native" && w(!0), h(!0);
}
};
}
-function Mo(e) {
+function Po(e) {
return e ? Array.isArray(e) ? e : [e] : [];
}
-function No(e, t) {
+function Fo(e, t) {
if (typeof e == "function") {
let n = e(t);
- if (n && typeof n != "boolean") return Mo(n);
+ if (n && typeof n != "boolean") return Po(n);
}
return [];
}
-function Po(e) {
+function Io(e) {
return e.length ? {
isInvalid: !0,
validationErrors: e,
- validationDetails: Eo
+ validationDetails: Oo
} : null;
}
-function Fo(e, t) {
+function Lo(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 Io(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 = Ao({
+function Ro(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 = Mo({
...e,
value: t.isSelected
- }), { isInvalid: x, validationErrors: C, validationDetails: w } = b.displayValidation;
- yo(e, b, n);
+ }), { isInvalid: x, validationErrors: S, validationDetails: w } = b.displayValidation;
+ xo(e, b, n);
let T = (e) => {
e.stopPropagation(), t.setSelected(B(e).checked);
- }, { pressProps: E, isPressed: D } = ya({
+ }, { pressProps: E, isPressed: D } = xa({
onPressStart: m,
onPressEnd: h,
onPressChange: g,
@@ -5030,7 +5030,7 @@ function Io(e, t, n) {
onPressUp: v,
onClick: y,
isDisabled: r
- }), [O, k] = (0, S.useState)(!1), { pressProps: A } = ya({
+ }), [O, k] = (0, C.useState)(!1), { pressProps: A } = xa({
onPressStart(e) {
if (e.pointerType === "keyboard" || e.pointerType === "virtual") {
e.continuePropagation();
@@ -5059,13 +5059,13 @@ function Io(e, t, n) {
return;
}
_?.(r), t.toggle(), n.current?.focus();
- let { [ko]: i } = e, { commitValidation: a } = i || b;
+ let { [jo]: i } = e, { commitValidation: a } = i || b;
a();
},
isDisabled: r || i
- }), { focusableProps: j } = Hr(e, n), M = V(E, j), N = U(e, { labelable: !0 });
- vo(n, t.defaultSelected, t.setSelected);
- let ee = wo(), P = wo();
+ }), { focusableProps: j } = Ur(e, n), M = V(E, j), N = H(e, { labelable: !0 });
+ bo(n, t.defaultSelected, t.setSelected);
+ let ee = Eo(), P = Eo();
return {
labelProps: V(A, { onClick: (e) => e.preventDefault() }),
inputProps: V(N, {
@@ -5096,18 +5096,18 @@ function Io(e, t, n) {
isDisabled: r,
isReadOnly: i,
isInvalid: x || e.validationState === "invalid",
- validationErrors: C,
+ validationErrors: S,
validationDetails: w
};
}
//#endregion
//#region node_modules/react-aria/dist/private/checkbox/useCheckbox.mjs
-function Lo(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 } = Io(e, t, n), { isIndeterminate: m } = e;
- return (0, S.useEffect)(() => {
+function zo(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 } = Ro(e, t, n), { isIndeterminate: m } = e;
+ return (0, C.useEffect)(() => {
n.current && (n.current.indeterminate = !!m);
}), {
- labelProps: V(r, (0, S.useMemo)(() => ({ onMouseDown: (e) => e.preventDefault() }), [])),
+ labelProps: V(r, (0, C.useMemo)(() => ({ onMouseDown: (e) => e.preventDefault() }), [])),
inputProps: i,
descriptionProps: a,
errorMessageProps: o,
@@ -5122,18 +5122,18 @@ function Lo(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/checkbox/utils.mjs
-var Ro = /* @__PURE__ */ new WeakMap();
+var U = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/label/useLabel.mjs
-function W(e) {
+function Bo(e) {
let { id: t, label: n, "aria-labelledby": r, "aria-label": i, labelElementType: a = "label" } = e;
- t = gr(t);
- let o = gr(), s = {};
+ t = _r(t);
+ let o = _r(), s = {};
n && (r = r ? `${o} ${r}` : o, s = {
id: o,
htmlFor: a === "label" ? t : void 0
});
- let c = Di({
+ let c = Oi({
id: t,
"aria-label": i,
"aria-labelledby": r
@@ -5145,13 +5145,13 @@ function W(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/label/useField.mjs
-function zo(e) {
- let { description: t, errorMessage: n, isInvalid: r, validationState: i } = e, { labelProps: a, fieldProps: o } = W(e), s = vr([
+function Vo(e) {
+ let { description: t, errorMessage: n, isInvalid: r, validationState: i } = e, { labelProps: a, fieldProps: o } = Bo(e), s = yr([
!!t,
!!n,
r,
i
- ]), c = vr([
+ ]), c = yr([
!!t,
!!n,
r,
@@ -5170,17 +5170,17 @@ function zo(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useFocusWithin.mjs
-function Bo(e) {
- let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: i } = e, a = (0, S.useRef)({ isFocusWithin: !1 }), { addGlobalListener: o, removeAllGlobalListeners: s } = pa(), c = (0, S.useCallback)((e) => {
+function Ho(e) {
+ let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: i } = e, a = (0, C.useRef)({ isFocusWithin: !1 }), { addGlobalListener: o, removeAllGlobalListeners: s } = ha(), c = (0, C.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));
}, [
n,
i,
a,
s
- ]), l = Qt(c), u = (0, S.useCallback)((e) => {
+ ]), l = $t(c), u = (0, C.useCallback)((e) => {
if (!z(e.currentTarget, B(e))) return;
- let t = B(e), n = R(t), s = It(n);
+ let t = B(e), n = R(t), s = Lt(n);
if (!a.current.isFocusWithin && s === t) {
r && r(e), i && i(!0), a.current.isFocusWithin = !0, l(e);
let t = e.currentTarget;
@@ -5188,8 +5188,8 @@ function Bo(e) {
let r = B(e);
if (a.current.isFocusWithin && !z(t, r)) {
let e = new n.defaultView.FocusEvent("blur", { relatedTarget: r });
- Zt(e, t);
- let i = Xt(e);
+ Qt(e, t);
+ let i = Zt(e);
c(i);
}
}, { capture: !0 });
@@ -5211,26 +5211,26 @@ function Bo(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/utils/useControlledState.mjs
-var Vo = typeof document < "u" ? S.useInsertionEffect ?? S.useLayoutEffect : () => {};
-function Ho(e, t, n) {
- let [r, i] = (0, S.useState)(e || t), a = (0, S.useRef)(r), o = (0, S.useRef)(e !== void 0), s = e !== void 0;
- (0, S.useEffect)(() => {
+var Uo = typeof document < "u" ? C.useInsertionEffect ?? C.useLayoutEffect : () => {};
+function Wo(e, t, n) {
+ let [r, i] = (0, C.useState)(e || t), a = (0, C.useRef)(r), o = (0, C.useRef)(e !== void 0), s = e !== void 0;
+ (0, C.useEffect)(() => {
o.current, o.current = s;
}, [s]);
let c = s ? e : r;
- Vo(() => {
+ Uo(() => {
a.current = c;
});
- let [, l] = (0, S.useReducer)(() => ({}), {});
- return [c, (0, S.useCallback)((e, ...t) => {
+ let [, l] = (0, C.useReducer)(() => ({}), {});
+ return [c, (0, C.useCallback)((e, ...t) => {
let r = typeof e == "function" ? e(a.current) : e;
Object.is(a.current, r) || (a.current = r, i(r), l(), n?.(r, ...t));
}, [n])];
}
//#endregion
//#region node_modules/react-stately/dist/private/toggle/useToggleState.mjs
-function Uo(e = {}) {
- let { isReadOnly: t } = e, [n, r] = Ho(e.isSelected, e.defaultSelected || !1, e.onChange), [i] = (0, S.useState)(n);
+function Go(e = {}) {
+ let { isReadOnly: t } = e, [n, r] = Wo(e.isSelected, e.defaultSelected || !1, e.onChange), [i] = (0, C.useState)(n);
function a(e) {
t || r(e);
}
@@ -5246,26 +5246,26 @@ function Uo(e = {}) {
}
//#endregion
//#region node_modules/react-aria/dist/private/checkbox/useCheckboxGroupItem.mjs
-function Wo(e, t, n) {
- let r = Uo({
+function Ko(e, t, n) {
+ let r = Go({
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 } = Ro.get(t);
+ }), { name: i, form: a, descriptionId: o, errorMessageId: s, validationBehavior: c } = U.get(t);
c = e.validationBehavior ?? c;
- let { realtimeValidation: l } = Ao({
+ let { realtimeValidation: l } = Mo({
...e,
value: r.isSelected,
name: void 0,
validationBehavior: "aria"
- }), u = (0, S.useRef)(Do), d = () => {
+ }), u = (0, C.useRef)(ko), d = () => {
t.setInvalid(e.value, l.isInvalid ? l : u.current);
};
- (0, S.useEffect)(d);
- let f = t.realtimeValidation.isInvalid ? t.realtimeValidation : l, p = c === "native" ? t.displayValidation : f, m = Lo({
+ (0, C.useEffect)(d);
+ let f = t.realtimeValidation.isInvalid ? t.realtimeValidation : l, p = c === "native" ? t.displayValidation : f, m = zo({
...e,
isReadOnly: e.isReadOnly || t.isReadOnly,
isDisabled: e.isDisabled || t.isDisabled,
@@ -5273,7 +5273,7 @@ function Wo(e, t, n) {
form: e.form || a,
isRequired: e.isRequired ?? t.isRequired,
validationBehavior: c,
- [ko]: {
+ [jo]: {
realtimeValidation: f,
displayValidation: p,
resetValidation: t.resetValidation,
@@ -5297,12 +5297,12 @@ function Wo(e, t, n) {
}
//#endregion
//#region node_modules/react-stately/dist/private/utils/number.mjs
-function Go(e, t = -Infinity, n = Infinity) {
+function qo(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 Ko = {
+var Jo = {
border: 0,
clip: "rect(0 0 0 0)",
clipPath: "inset(50%)",
@@ -5314,38 +5314,38 @@ var Ko = {
width: "1px",
whiteSpace: "nowrap"
};
-function qo(e = {}) {
- let { style: t, isFocusable: n } = e, [r, i] = (0, S.useState)(!1), { focusWithinProps: a } = Bo({
+function Yo(e = {}) {
+ let { style: t, isFocusable: n } = e, [r, i] = (0, C.useState)(!1), { focusWithinProps: a } = Ho({
isDisabled: !n,
onFocusWithinChange: (e) => i(e)
- }), o = (0, S.useMemo)(() => r ? t : t ? {
- ...Ko,
+ }), o = (0, C.useMemo)(() => r ? t : t ? {
+ ...Jo,
...t
- } : Ko, [r]);
+ } : Jo, [r]);
return { visuallyHiddenProps: {
...a,
style: o
} };
}
-function Jo(e) {
- let { children: t, elementType: n = "div", isFocusable: r, style: i, ...a } = e, { visuallyHiddenProps: o } = qo(e);
- return /*#__PURE__*/ S.createElement(n, V(a, o), t);
+function Xo(e) {
+ let { children: t, elementType: n = "div", isFocusable: r, style: i, ...a } = e, { visuallyHiddenProps: o } = Yo(e);
+ return /*#__PURE__*/ C.createElement(n, V(a, o), t);
}
//#endregion
//#region node_modules/react-aria/dist/private/textfield/useTextField.mjs
-function Yo(e, t) {
- let { inputElementType: n = "input", isDisabled: r = !1, isRequired: i = !1, isReadOnly: a = !1, type: o = "text", validationBehavior: s = "aria" } = e, [c, l] = Ho(e.value, e.defaultValue || "", e.onChange), { focusableProps: u } = Hr(e, t), d = Ao({
+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] = Wo(e.value, e.defaultValue || "", e.onChange), { focusableProps: u } = Ur(e, t), d = Mo({
...e,
value: c
- }), { isInvalid: f, validationErrors: p, validationDetails: m } = d.displayValidation, { labelProps: h, fieldProps: g, descriptionProps: _, errorMessageProps: v } = zo({
+ }), { isInvalid: f, validationErrors: p, validationDetails: m } = d.displayValidation, { labelProps: h, fieldProps: g, descriptionProps: _, errorMessageProps: v } = Vo({
...e,
isInvalid: f,
errorMessage: e.errorMessage || p
- }), y = U(e, { labelable: !0 }), b = {
+ }), y = H(e, { labelable: !0 }), b = {
type: o,
pattern: e.pattern
- }, [x] = (0, S.useState)(c);
- return vo(t, e.defaultValue ?? x, l), yo(e, d, t), {
+ }, [x] = (0, C.useState)(c);
+ return bo(t, e.defaultValue ?? x, l), xo(e, d, t), {
labelProps: h,
inputProps: V(y, n === "input" ? b : void 0, {
disabled: r,
@@ -5392,20 +5392,20 @@ function Yo(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/ariaHideOutside.mjs
-var Xo = typeof HTMLElement < "u" && "inert" in HTMLElement.prototype;
-function Zo(e) {
+var Qo = typeof HTMLElement < "u" && "inert" in HTMLElement.prototype;
+function $o(e) {
return e.dataset.liveAnnouncer === "true" || e.dataset.reactAriaTopLayer !== void 0;
}
-var Qo = /* @__PURE__ */ new WeakMap(), $o = [];
-function es(e, t) {
- let n = Dt(e?.[0]), r = t instanceof n.Element ? { root: t } : t, i = r?.root ?? document.body, a = r?.shouldUseInert && Xo, 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 es = /* @__PURE__ */ new WeakMap(), ts = [];
+function ns(e, t) {
+ let n = Ot(e?.[0]), r = t instanceof n.Element ? { root: t } : t, i = r?.root ?? document.body, a = r?.shouldUseInert && Qo, 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 (Ft()) {
+ if (It()) {
let t = i.getRootNode();
for (let n of e) {
let e = n.getRootNode();
- for (; jt(e) && e !== t;) u.add(e), e = e.host.getRootNode();
+ for (; Mt(e) && e !== t;) u.add(e), e = e.host.getRootNode();
}
}
let d = (e) => {
@@ -5414,20 +5414,20 @@ function es(e, t) {
if (s.has(e) || o.has(e) || e.parentElement && s.has(e.parentElement) && e.parentElement.getAttribute("role") !== "row") return NodeFilter.FILTER_REJECT;
for (let t of o) if (z(e, t)) return NodeFilter.FILTER_SKIP;
return NodeFilter.FILTER_ACCEPT;
- }, n = ka(R(e), e, NodeFilter.SHOW_ELEMENT, { acceptNode: t }), r = t(e);
+ }, n = ja(R(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 = Qo.get(e) ?? 0;
- c(e) && t === 0 || (t === 0 && l(e, !0), s.add(e), Qo.set(e, t + 1));
+ let t = es.get(e) ?? 0;
+ c(e) && t === 0 || (t === 0 && l(e, !0), s.add(e), es.set(e, t + 1));
};
- $o.length && $o[$o.length - 1].disconnect(), d(i);
+ ts.length && ts[ts.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) && Zo(e) ? o.add(e) : e instanceof Element && d(e);
- if (Ft()) {
+ if (t.target.isConnected && ![...o, ...s].some((e) => z(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && $o(e) ? o.add(e) : e instanceof Element && d(e);
+ if (It()) {
for (let e of u) if (!e.isConnected) {
p.disconnect();
break;
@@ -5440,11 +5440,11 @@ function es(e, t) {
subtree: !0
});
let m = /* @__PURE__ */ new Set();
- if (Ft()) for (let e of u) {
+ if (It()) 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) && Zo(e) ? o.add(e) : e instanceof Element && d(e);
- if (Ft()) {
+ if (t.target.isConnected && ![...o, ...s].some((e) => z(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && $o(e) ? o.add(e) : e instanceof Element && d(e);
+ if (It()) {
for (let e of u) if (!e.isConnected) {
p.disconnect();
break;
@@ -5470,59 +5470,59 @@ function es(e, t) {
p.disconnect();
}
};
- return $o.push(h), () => {
- if (p.disconnect(), Ft()) for (let e of m) e.disconnect();
+ return ts.push(h), () => {
+ if (p.disconnect(), It()) for (let e of m) e.disconnect();
for (let e of s) {
- let t = Qo.get(e);
- t != null && (t === 1 ? (l(e, !1), Qo.delete(e)) : Qo.set(e, t - 1));
+ let t = es.get(e);
+ t != null && (t === 1 ? (l(e, !1), es.delete(e)) : es.set(e, t - 1));
}
- h === $o[$o.length - 1] ? ($o.pop(), $o.length && $o[$o.length - 1].observe()) : $o.splice($o.indexOf(h), 1);
+ h === ts[ts.length - 1] ? (ts.pop(), ts.length && ts[ts.length - 1].observe()) : ts.splice(ts.indexOf(h), 1);
};
}
-function ts(e) {
- let t = $o[$o.length - 1];
+function rs(e) {
+ let t = ts[ts.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 ns = /* @__PURE__ */ new WeakMap();
-function rs(e) {
+var is = /* @__PURE__ */ new WeakMap();
+function as(e) {
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
}
-function is(e, t) {
- let n = ns.get(e);
+function os(e, t) {
+ let n = is.get(e);
if (!n) throw Error("Unknown list");
- return `${n.id}-option-${rs(t)}`;
+ return `${n.id}-option-${as(t)}`;
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/utils.mjs
-function as(e) {
- return ln() ? e.altKey : e.ctrlKey;
+function ss(e) {
+ return un() ? e.altKey : e.ctrlKey;
}
-function os(e, t) {
+function cs(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 ss = /* @__PURE__ */ new WeakMap();
-function cs(e) {
- let t = gr();
- return ss.set(e, t), t;
+var ls = /* @__PURE__ */ new WeakMap();
+function us(e) {
+ let t = _r();
+ return ls.set(e, t), t;
}
-function ls(e) {
- return ss.get(e);
+function ds(e) {
+ return ls.get(e);
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/DOMLayoutDelegate.mjs
-var us = class {
+var fs = class {
constructor(e) {
this.ref = e;
}
getItemRect(e) {
let t = this.ref.current;
if (!t) return null;
- let n = e == null ? null : os(this.ref, e);
+ let n = e == null ? null : cs(this.ref, e);
if (!n) return null;
let r = t.getBoundingClientRect(), i = n.getBoundingClientRect();
return {
@@ -5548,12 +5548,12 @@ var us = class {
height: e?.clientHeight ?? 0
};
}
-}, ds = class {
+}, ps = 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 us(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 us(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 fs(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 fs(this.ref);
this.layout === "stack" && this.orientation === "vertical" && (this.getKeyLeftOf = void 0, this.getKeyRightOf = void 0);
}
isDisabled(e) {
@@ -5593,14 +5593,14 @@ var us = class {
return e.x === t.x || e.y !== t.y;
}
isReversed(e) {
- let t = this.getNextKey(e), n = os(this.ref, e);
+ let t = this.getNextKey(e), n = cs(this.ref, e);
if (t != null) {
- let e = os(this.ref, t);
+ let e = cs(this.ref, t);
return !n || !e ? !1 : n.getBoundingClientRect().top > e.getBoundingClientRect().top;
}
let r = this.getPreviousKey(e);
if (r != null) {
- let e = os(this.ref, r);
+ let e = cs(this.ref, r);
return !n || !e ? !1 : e.getBoundingClientRect().top > n.getBoundingClientRect().top;
}
return !1;
@@ -5634,7 +5634,7 @@ var us = class {
let t = this.ref.current, n = this.layoutDelegate.getItemRect(e);
if (!n) return null;
let r = this.isReversed(e);
- if (t && !co(t)) return this.getFirstKey();
+ if (t && !uo(t)) return this.getFirstKey();
let i = e;
if (this.orientation === "horizontal") {
let e = Math.max(0, n.x + n.width - this.layoutDelegate.getVisibleRect().width);
@@ -5649,7 +5649,7 @@ var us = class {
let t = this.ref.current, n = this.layoutDelegate.getItemRect(e);
if (!n) return null;
let r = this.isReversed(e);
- if (t && !co(t)) return this.getLastKey();
+ if (t && !uo(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);
@@ -5672,184 +5672,184 @@ var us = class {
}
return null;
}
-}, fs = {};
-fs = { longPressMessage: "اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة" };
+}, ms = {};
+ms = { longPressMessage: "اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/bg-BG.mjs
-var ps = {};
-ps = { longPressMessage: "Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто" };
+var hs = {};
+hs = { longPressMessage: "Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/cs-CZ.mjs
-var ms = {};
-ms = { longPressMessage: "Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku" };
+var gs = {};
+gs = { 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 hs = {};
-hs = { longPressMessage: "Langt tryk eller tryk på Alt + pil ned for at åbne menuen" };
+var _s = {};
+_s = { 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 gs = {};
-gs = { longPressMessage: "Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen" };
+var vs = {};
+vs = { 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 _s = {};
-_s = { longPressMessage: "Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού" };
+var ys = {};
+ys = { longPressMessage: "Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/en-US.mjs
-var vs = {};
-vs = { longPressMessage: "Long press or press Alt + ArrowDown to open menu" };
+var bs = {};
+bs = { longPressMessage: "Long press or press Alt + ArrowDown to open menu" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/es-ES.mjs
-var ys = {};
-ys = { longPressMessage: "Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú" };
+var xs = {};
+xs = { 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 bs = {};
-bs = { longPressMessage: "Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool" };
+var Ss = {};
+Ss = { 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 xs = {};
-xs = { longPressMessage: "Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli" };
+var Cs = {};
+Cs = { 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 Ss = {};
-Ss = { longPressMessage: "Appuyez de manière prolongée ou appuyez sur Alt\xA0+\xA0Flèche vers le bas pour ouvrir le menu." };
+var ws = {};
+ws = { 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 Cs = {};
-Cs = { longPressMessage: "לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט" };
+var Ts = {};
+Ts = { longPressMessage: "לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/hr-HR.mjs
-var ws = {};
-ws = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika" };
+var Es = {};
+Es = { 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 Ts = {};
-Ts = { longPressMessage: "Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához" };
+var Ds = {};
+Ds = { 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 Es = {};
-Es = { longPressMessage: "Premi a lungo o premi Alt + Freccia giù per aprire il menu" };
+var Os = {};
+Os = { 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 Ds = {};
-Ds = { longPressMessage: "長押しまたは Alt+下矢印キーでメニューを開く" };
+var ks = {};
+ks = { longPressMessage: "長押しまたは Alt+下矢印キーでメニューを開く" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/ko-KR.mjs
-var Os = {};
-Os = { longPressMessage: "길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기" };
+var As = {};
+As = { longPressMessage: "길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/lt-LT.mjs
-var ks = {};
-ks = { longPressMessage: "Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“." };
+var js = {};
+js = { 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 As = {};
-As = { longPressMessage: "Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa" };
+var Ms = {};
+Ms = { 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 js = {};
-js = { longPressMessage: "Langt trykk eller trykk Alt + PilNed for å åpne menyen" };
+var Ns = {};
+Ns = { longPressMessage: "Langt trykk eller trykk Alt + PilNed for å åpne menyen" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/nl-NL.mjs
-var Ms = {};
-Ms = { longPressMessage: "Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen" };
+var Ps = {};
+Ps = { 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 Ns = {};
-Ns = { longPressMessage: "Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu" };
+var Fs = {};
+Fs = { 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 Ps = {};
-Ps = { longPressMessage: "Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu" };
+var Is = {};
+Is = { 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 Fs = {};
-Fs = { longPressMessage: "Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu" };
+var Ls = {};
+Ls = { 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 Is = {};
-Is = { longPressMessage: "Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul" };
+var Rs = {};
+Rs = { 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 Ls = {};
-Ls = { longPressMessage: "Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню" };
+var zs = {};
+zs = { longPressMessage: "Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/sk-SK.mjs
-var Rs = {};
-Rs = { longPressMessage: "Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol" };
+var Bs = {};
+Bs = { 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 zs = {};
-zs = { longPressMessage: "Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol" };
+var Vs = {};
+Vs = { 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 Bs = {};
-Bs = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni" };
+var Hs = {};
+Hs = { 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 Vs = {};
-Vs = { longPressMessage: "Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn" };
+var Us = {};
+Us = { 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 Hs = {};
-Hs = { longPressMessage: "Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın" };
+var Ws = {};
+Ws = { 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 Us = {};
-Us = { longPressMessage: "Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню" };
+var Gs = {};
+Gs = { longPressMessage: "Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/zh-CN.mjs
-var Ws = {};
-Ws = { longPressMessage: "长按或按 Alt + 向下方向键以打开菜单" };
+var Ks = {};
+Ks = { longPressMessage: "长按或按 Alt + 向下方向键以打开菜单" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/zh-TW.mjs
-var Gs = {};
-Gs = { longPressMessage: "長按或按 Alt+向下鍵以開啟功能表" };
+var qs = {};
+qs = { longPressMessage: "長按或按 Alt+向下鍵以開啟功能表" };
//#endregion
//#region node_modules/react-aria/dist/private/menu/intlStrings.mjs
-var Ks = {};
-Ks = {
- "ar-AE": fs,
- "bg-BG": ps,
- "cs-CZ": ms,
- "da-DK": hs,
- "de-DE": gs,
- "el-GR": _s,
- "en-US": vs,
- "es-ES": ys,
- "et-EE": bs,
- "fi-FI": xs,
- "fr-FR": Ss,
- "he-IL": Cs,
- "hr-HR": ws,
- "hu-HU": Ts,
- "it-IT": Es,
- "ja-JP": Ds,
- "ko-KR": Os,
- "lt-LT": ks,
- "lv-LV": As,
- "nb-NO": js,
- "nl-NL": Ms,
- "pl-PL": Ns,
- "pt-BR": Ps,
- "pt-PT": Fs,
- "ro-RO": Is,
- "ru-RU": Ls,
- "sk-SK": Rs,
- "sl-SI": zs,
- "sr-SP": Bs,
- "sv-SE": Vs,
- "tr-TR": Hs,
- "uk-UA": Us,
- "zh-CN": Ws,
- "zh-TW": Gs
+var Js = {};
+Js = {
+ "ar-AE": ms,
+ "bg-BG": hs,
+ "cs-CZ": gs,
+ "da-DK": _s,
+ "de-DE": vs,
+ "el-GR": ys,
+ "en-US": bs,
+ "es-ES": xs,
+ "et-EE": Ss,
+ "fi-FI": Cs,
+ "fr-FR": ws,
+ "he-IL": Ts,
+ "hr-HR": Es,
+ "hu-HU": Ds,
+ "it-IT": Os,
+ "ja-JP": ks,
+ "ko-KR": As,
+ "lt-LT": js,
+ "lv-LV": Ms,
+ "nb-NO": Ns,
+ "nl-NL": Ps,
+ "pl-PL": Fs,
+ "pt-BR": Is,
+ "pt-PT": Ls,
+ "ro-RO": Rs,
+ "ru-RU": zs,
+ "sk-SK": Bs,
+ "sl-SI": Vs,
+ "sr-SP": Hs,
+ "sv-SE": Us,
+ "tr-TR": Ws,
+ "uk-UA": Gs,
+ "zh-CN": Ks,
+ "zh-TW": qs
};
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useLongPress.mjs
-var qs = 500;
-function Js(e) {
- let { isDisabled: t, pointerType: n, onLongPressStart: r, onLongPressEnd: i, onLongPress: a, threshold: o = qs, accessibilityDescription: s } = e, c = (0, S.useRef)(void 0), { addGlobalListener: l, removeAllGlobalListeners: u } = pa(), d = (e) => n ? e.pointerType === n : e.pointerType === "mouse" || e.pointerType === "touch", { pressProps: f } = ya({
+var Ys = 500;
+function Xs(e) {
+ let { isDisabled: t, pointerType: n, onLongPressStart: r, onLongPressEnd: i, onLongPress: a, threshold: o = Ys, accessibilityDescription: s } = e, c = (0, C.useRef)(void 0), { addGlobalListener: l, removeAllGlobalListeners: u } = ha(), d = (e) => n ? e.pointerType === n : e.pointerType === "mouse" || e.pointerType === "touch", { pressProps: f } = xa({
isDisabled: t,
onPressStart(e) {
if (e.continuePropagation(), d(e)) {
@@ -5857,12 +5857,12 @@ function Js(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 && St(e.target), a && a({
+ e.target.dispatchEvent(new PointerEvent("pointercancel", { bubbles: !0 })), l(e.target, "click", (e) => e.preventDefault(), { once: !0 }), R(e.target).activeElement !== e.target && Ct(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 = Dt(e.target);
+ let t = Ot(e.target);
l(t, "pointerup", () => {
setTimeout(() => {
u();
@@ -5877,12 +5877,12 @@ function Js(e) {
});
}
});
- return { longPressProps: V(f, _o(a && !t ? s : void 0)) };
+ return { longPressProps: V(f, yo(a && !t ? s : void 0)) };
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useContextMenu.mjs
-function Ys(e) {
- let { onContextMenu: t } = e, n = (0, S.useRef)(!1), { longPressProps: r } = Js({
+function Zs(e) {
+ let { onContextMenu: t } = e, n = (0, C.useRef)(!1), { longPressProps: r } = Xs({
onLongPressStart() {
n.current = !1;
},
@@ -5894,7 +5894,7 @@ function Ys(e) {
});
}
});
- return t ? { contextMenuProps: V(cn() ? r : {}, {
+ return t ? { contextMenuProps: V(ln() ? r : {}, {
onContextMenu(e) {
e.stopPropagation(), e.preventDefault(), n.current = !0;
let r = e.currentTarget.getBoundingClientRect();
@@ -5905,7 +5905,7 @@ function Ys(e) {
});
},
onKeyDown(e) {
- if (an() && e.ctrlKey && e.key === "Enter") {
+ if (on() && e.ctrlKey && e.key === "Enter") {
n.current = !1;
let r = e.currentTarget;
e.stopPropagation(), setTimeout(() => {
@@ -5925,13 +5925,13 @@ function Ys(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useCloseOnScroll.mjs
-var Xs = /* @__PURE__ */ new WeakMap();
-function Zs(e) {
+var Qs = /* @__PURE__ */ new WeakMap();
+function $s(e) {
let { triggerRef: t, isOpen: n, onClose: r } = e;
- (0, S.useEffect)(() => !n || r === null ? void 0 : Mt(Lt(t.current), "scroll", (e) => {
+ (0, C.useEffect)(() => !n || r === null ? void 0 : Nt(Rt(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 || Xs.get(t.current);
+ let i = r || Qs.get(t.current);
i && i();
}, !0), [
n,
@@ -5941,14 +5941,14 @@ function Zs(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useOverlayTrigger.mjs
-function Qs(e, t, n) {
+function ec(e, t, n) {
let { type: r } = e, { isOpen: i } = t;
- (0, S.useEffect)(() => {
- n && n.current && Xs.set(n.current, t.close);
+ (0, C.useEffect)(() => {
+ n && n.current && Qs.set(n.current, t.close);
});
let a;
r === "menu" ? a = !0 : r === "listbox" && (a = "listbox");
- let o = gr();
+ let o = _r();
return {
triggerProps: {
"aria-haspopup": a,
@@ -5961,14 +5961,14 @@ function Qs(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/menu/useMenuTrigger.mjs
-function $s(e) {
+function tc(e) {
return e && e.__esModule ? e.default : e;
}
-function ec(e, t, n) {
- let { type: r = "menu", isDisabled: i, trigger: a = "press" } = e, o = gr(), { triggerProps: s, overlayProps: c } = Qs({ type: r }, t, n), l = (e, n, r = "first") => {
+function nc(e, t, n) {
+ let { type: r = "menu", isDisabled: i, trigger: a = "press" } = e, o = _r(), { triggerProps: s, overlayProps: c } = ec({ type: r }, t, n), l = (e, n, r = "first") => {
if (!e || n.isDefaultPrevented()) return !1;
t.toggle(r);
- }, { keyboardProps: u } = Lr({
+ }, { keyboardProps: u } = Rr({
isDisabled: i,
shortcuts: {
Enter: (e) => l(a !== "longPress", e, "first"),
@@ -5980,7 +5980,7 @@ function ec(e, t, n) {
"Alt+ArrowDown": (e) => l(!0, e, "first"),
"Alt+ArrowUp": (e) => l(!0, e, "last")
}
- }), d = Qi($s(Ks), "@react-aria/menu"), { longPressProps: f } = Js({
+ }), d = $i(tc(Js), "@react-aria/menu"), { longPressProps: f } = Xs({
isDisabled: i || a !== "longPress",
accessibilityDescription: d.format("longPressMessage"),
onLongPressStart() {
@@ -5992,21 +5992,21 @@ function ec(e, t, n) {
}), p = {
preventFocusOnPress: !0,
onPressStart(e) {
- e.pointerType !== "touch" && e.pointerType !== "keyboard" && !i && (St(e.target), t.open(e.pointerType === "virtual" ? "first" : null));
+ e.pointerType !== "touch" && e.pointerType !== "keyboard" && !i && (Ct(e.target), t.open(e.pointerType === "virtual" ? "first" : null));
},
onPress(e) {
- e.pointerType === "touch" && !i && (St(e.target), t.toggle());
+ e.pointerType === "touch" && !i && (Ct(e.target), t.toggle());
}
};
delete s.onPress;
- let { contextMenuProps: m } = Ys({ onContextMenu(e) {
+ let { contextMenuProps: m } = Zs({ onContextMenu(e) {
let n = e.target.getBoundingClientRect();
t.setPoint({
x: n.x + e.x,
y: n.y + e.y
}), t.open();
} });
- (0, S.useEffect)(() => {
+ (0, C.useEffect)(() => {
if (t.isOpen && a === "contextMenu") {
let e = (e) => {
(e.button === 2 || e.button === 0 && e.ctrlKey === !0) && B(e) === document.body && t.close();
@@ -6044,13 +6044,13 @@ function ec(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/useTypeSelect.mjs
-var tc = 1e3;
-function nc(e) {
- let { keyboardDelegate: t, selectionManager: n, onTypeSelect: r } = e, i = (0, S.useRef)({
+var rc = 1e3;
+function ic(e) {
+ let { keyboardDelegate: t, selectionManager: n, onTypeSelect: r } = e, i = (0, C.useRef)({
search: "",
timeout: void 0
});
- return (0, S.useEffect)(() => {
+ return (0, C.useEffect)(() => {
let e = i.current.timeout;
return () => {
clearTimeout(e);
@@ -6064,11 +6064,11 @@ function nc(e) {
}
clearTimeout(i.current.timeout), i.current.timeout = setTimeout(() => {
i.current.search = "";
- }, tc);
+ }, rc);
}
} : void 0,
onKeyDown: t.getKeyForSearch ? (e) => {
- let a = rc(e.key);
+ let a = ac(e.key);
if (!(!a || e.ctrlKey || e.metaKey || e.altKey || !z(e.currentTarget, B(e)) || i.current.search.length === 0 && a === " ")) {
if (i.current.search += a, t.getKeyForSearch != null) {
let a = t.getKeyForSearch(i.current.search, n.focusedKey);
@@ -6080,34 +6080,34 @@ function nc(e) {
}
clearTimeout(i.current.timeout), i.current.timeout = setTimeout(() => {
i.current.search = "";
- }, tc);
+ }, rc);
}
} : void 0
} };
}
-function rc(e) {
+function ac(e) {
return e.length === 1 || !/^[A-Z]/i.test(e) ? e : "";
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useUpdateLayoutEffect.mjs
-function ic(e, t) {
- let n = (0, S.useRef)(!0), r = (0, S.useRef)(null);
- Yt(() => (n.current = !0, () => {
+function oc(e, t) {
+ let n = (0, C.useRef)(!0), r = (0, C.useRef)(null);
+ Xt(() => (n.current = !0, () => {
n.current = !1;
- }), []), Yt(() => {
+ }), []), Xt(() => {
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 ac(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 } = Ri(), _ = _n(), v = (e, n, i) => {
+function sc(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 } = zi(), _ = vn(), v = (e, n, i) => {
if (n != null) {
- if (t.isLink(n) && m === "selection" && l && !as(e)) {
- (0, Zr.flushSync)(() => {
+ if (t.isLink(n) && m === "selection" && l && !ss(e)) {
+ (0, Qr.flushSync)(() => {
t.setFocusedKey(n, i);
});
- let a = os(r, n), o = t.getItemProps(n);
+ let a = cs(r, n), o = t.getItemProps(n);
if (a) {
_.open(a, e, o.href, o.routerOptions);
return;
@@ -6119,7 +6119,7 @@ function ac(e) {
t.extendSelection(n);
return;
}
- if (l && !as(e)) {
+ if (l && !ss(e)) {
t.replaceSelection(n);
return;
}
@@ -6146,9 +6146,9 @@ function ac(e) {
}, x = (e) => {
if (n.getFirstKey) {
if (t.focusedKey === null && e.shiftKey) return !1;
- let r = n.getFirstKey(t.focusedKey, xi(e));
+ let r = n.getFirstKey(t.focusedKey, Si(e));
if (t.setFocusedKey(r), r != null) {
- if (xi(e) && e.shiftKey && t.selectionMode === "multiple") {
+ if (Si(e) && e.shiftKey && t.selectionMode === "multiple") {
t.extendSelection(r);
return;
}
@@ -6159,7 +6159,7 @@ function ac(e) {
}
}
return !1;
- }, C = (e) => {
+ }, S = (e) => {
if (n.getKeyLeftOf) {
let r = t.focusedKey == null ? n.getFirstKey?.() : n.getKeyLeftOf?.(t.focusedKey);
if (r == null && a && (r = g === "rtl" ? n.getFirstKey?.(t.focusedKey) : n.getLastKey?.(t.focusedKey)), r != null) {
@@ -6180,9 +6180,9 @@ function ac(e) {
}, T = (e) => {
if (n.getLastKey) {
if (t.focusedKey === null && e.shiftKey) return !1;
- let r = n.getLastKey(t.focusedKey, xi(e));
+ let r = n.getLastKey(t.focusedKey, Si(e));
if (t.setFocusedKey(r), r != null) {
- if (xi(e) && e.shiftKey && t.selectionMode === "multiple") {
+ if (Si(e) && e.shiftKey && t.selectionMode === "multiple") {
t.extendSelection(r);
return;
}
@@ -6219,12 +6219,12 @@ function ac(e) {
return !1;
}, A = () => {
if (!f && r.current) {
- let e = $a(r.current, { tabbable: !0 }), t, n;
+ let e = to(r.current, { tabbable: !0 }), t, n;
do
n = e.lastChild(), n && (t = n);
while (n);
- let i = It();
- t && (!Rt(t) || i && !qt(i)) && St(t);
+ let i = Lt();
+ t && (!zt(t) || i && !Jt(i)) && Ct(t);
}
return {
shouldContinuePropagation: !0,
@@ -6234,32 +6234,32 @@ function ac(e) {
shouldContinuePropagation: !0,
shouldPreventDefault: !1
}), M = (e, t) => ({
- [an() ? e + "+Shift+Alt" : e + "+Shift+Control"]: t,
+ [on() ? e + "+Shift+Alt" : e + "+Shift+Control"]: t,
[e + "+Shift"]: t,
- [an() ? e + "+Alt" : e + "+Control"]: t,
+ [on() ? e + "+Alt" : e + "+Control"]: t,
[e]: t
- }), { keyboardProps: N } = Lr({
+ }), { keyboardProps: N } = Rr({
shortcuts: {
...M("ArrowDown", y),
...M("ArrowUp", b),
- ...M("ArrowLeft", C),
+ ...M("ArrowLeft", S),
...M("ArrowRight", w),
...M("PageDown", E),
...M("PageUp", D)
},
allowRepeats: !0
- }), { keyboardProps: ee } = Lr({ shortcuts: {
+ }), { keyboardProps: ee } = Rr({ shortcuts: {
...M("Home", x),
...M("End", T),
"Mod+A": O,
Escape: k,
Tab: A,
"Tab+Shift": j
- } }), P = (0, S.useRef)({
+ } }), P = (0, C.useRef)({
top: 0,
left: 0
});
- Ei(p, "scroll", () => {
+ Di(p, "scroll", () => {
P.current = {
top: p.current?.scrollTop ?? 0,
left: p.current?.scrollLeft ?? 0
@@ -6271,7 +6271,7 @@ function ac(e) {
return;
}
if (!z(e.currentTarget, B(e))) return;
- let i = Qn();
+ let i = $n();
t.setFocused(!0);
let a = (e) => {
e != null && (t.setFocusedKey(e), l && !t.isSelected(e) && t.replaceSelection(e));
@@ -6282,31 +6282,31 @@ function ac(e) {
r && e.currentTarget.compareDocumentPosition(r) & Node.DOCUMENT_POSITION_FOLLOWING ? a(t.lastSelectedKey ?? n.getLastKey?.()) : a(t.firstSelectedKey ?? n.getFirstKey?.());
} else p.current && (p.current.scrollTop = P.current.top, p.current.scrollLeft = P.current.left);
if (t.focusedKey != null && p.current) {
- let e = os(r, t.focusedKey);
- e instanceof HTMLElement && (!Rt(e) && !d && St(e), (i === "keyboard" || h && i === "virtual") && mo(e, { containingElement: r.current }));
+ let e = cs(r, t.focusedKey);
+ e instanceof HTMLElement && (!zt(e) && !d && Ct(e), (i === "keyboard" || h && i === "virtual") && go(e, { containingElement: r.current }));
}
}, te = (e) => {
z(e.currentTarget, e.relatedTarget) || t.setFocused(!1);
- }, ne = (0, S.useRef)(!1);
- Ei(r, gi, d ? (e) => {
+ }, ne = (0, C.useRef)(!1);
+ Di(r, _i, d ? (e) => {
let { detail: n } = e;
e.stopPropagation(), t.setFocused(!0), n?.focusStrategy === "first" && (ne.current = !0);
} : void 0);
let re = n.getFirstKey?.() ?? null;
- ic(() => {
+ oc(() => {
if (ne.current) {
if (re == null) {
- let e = It();
- _i(r.current), yi(e, null), t.collection.size > 0 && (ne.current = !1);
+ let e = Lt();
+ vi(r.current), bi(e, null), t.collection.size > 0 && (ne.current = !1);
} else t.setFocusedKey(re), ne.current = !1;
}
- }, [re, t.collection.size]), ic(() => {
+ }, [re, t.collection.size]), oc(() => {
t.collection.size > 0 && (ne.current = !1);
- }, [t.focusedKey]), Ei(r, hi, d ? (e) => {
+ }, [t.focusedKey]), Di(r, gi, d ? (e) => {
e.stopPropagation(), t.setFocused(!1), e.detail?.clearFocusKey && t.setFocusedKey(null);
} : void 0);
- let ie = (0, S.useRef)(i), ae = (0, S.useRef)(!1);
- (0, S.useEffect)(() => {
+ let ie = (0, C.useRef)(i), ae = (0, C.useRef)(!1);
+ (0, C.useEffect)(() => {
if (ie.current) {
let e = null;
i === "first" && (e = n.getFirstKey?.() ?? null), i === "last" && (e = n.getLastKey?.() ?? null);
@@ -6317,22 +6317,22 @@ function ac(e) {
break;
}
}
- t.setFocused(!0), t.setFocusedKey(e), e != null && l && !a.size && t.canSelectItem(e) && t.replaceSelection(e), e == null && !d && r.current && lr(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 && ur(r.current), t.collection.size > 0 && (ie.current = !1, ae.current = !0);
}
});
- let oe = (0, S.useRef)(t.focusedKey), se = (0, S.useRef)(null);
- (0, S.useEffect)(() => {
+ let oe = (0, C.useRef)(t.focusedKey), se = (0, C.useRef)(null);
+ (0, C.useEffect)(() => {
if (t.isFocused && t.focusedKey != null && (t.focusedKey !== oe.current || ae.current) && p.current && r.current) {
- let e = Qn(), n = os(r, t.focusedKey);
+ let e = $n(), n = cs(r, t.focusedKey);
if (!(n instanceof HTMLElement)) return;
(e === "keyboard" || ae.current) && (se.current && cancelAnimationFrame(se.current), se.current = requestAnimationFrame(() => {
- p.current && (fo(p.current, n), e !== "virtual" && mo(n, { containingElement: r.current }));
+ p.current && (mo(p.current, n), e !== "virtual" && go(n, { containingElement: r.current }));
}));
}
- !d && t.isFocused && t.focusedKey == null && oe.current != null && r.current && lr(r.current), oe.current = t.focusedKey, ae.current = !1;
- }), (0, S.useEffect)(() => () => {
+ !d && t.isFocused && t.focusedKey == null && oe.current != null && r.current && ur(r.current), oe.current = t.focusedKey, ae.current = !1;
+ }), (0, C.useEffect)(() => () => {
se.current && cancelAnimationFrame(se.current);
- }, []), Ei(r, "react-aria-focus-scope-restore", (e) => {
+ }, []), Di(r, "react-aria-focus-scope-restore", (e) => {
e.preventDefault(), t.setFocused(!0);
});
let ce = {
@@ -6342,14 +6342,14 @@ function ac(e) {
onMouseDown(e) {
p.current === B(e) && e.preventDefault();
}
- }, { typeSelectProps: le } = nc({
+ }, { typeSelectProps: le } = ic({
keyboardDelegate: n,
selectionManager: t
});
u || (ce = V(le, ce));
let ue;
d || (ue = t.focusedKey == null ? 0 : -1);
- let de = cs(t.collection);
+ let de = us(t.collection);
return { collectionProps: V(ce, {
tabIndex: ue,
"data-collection": de
@@ -6357,13 +6357,13 @@ function ac(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/collections/getChildNodes.mjs
-function oc(e, t) {
+function cc(e, t) {
return typeof t.getChildren == "function" ? t.getChildren(e.key) : e.childNodes;
}
-function sc(e) {
- return cc(e, 0);
+function lc(e) {
+ return uc(e, 0);
}
-function cc(e, t) {
+function uc(e, t) {
if (t < 0) return;
let n = 0;
for (let r of e) {
@@ -6371,101 +6371,101 @@ function cc(e, t) {
n++;
}
}
-function lc(e) {
+function dc(e) {
let t;
for (let n of e) t = n;
return t;
}
-function uc(e, t, n) {
+function fc(e, t, n) {
if (t.parentKey === n.parentKey) return t.index - n.index;
- let r = [...dc(e, t), t], i = [...dc(e, n), n], a = r.slice(0, i.length).findIndex((e, t) => e !== i[t]);
+ let r = [...pc(e, t), t], i = [...pc(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 dc(e, t) {
+function pc(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 fc = /* @__PURE__ */ new WeakMap();
-function pc(e) {
- let t = fc.get(e);
+var mc = /* @__PURE__ */ new WeakMap();
+function hc(e) {
+ let t = mc.get(e);
if (t != null) return t;
let n = 0, r = (t) => {
- for (let i of t) i.type === "section" ? r(oc(i, e)) : i.type === "item" && n++;
+ for (let i of t) i.type === "section" ? r(cc(i, e)) : i.type === "item" && n++;
};
- return r(e), fc.set(e, n), n;
+ return r(e), mc.set(e, n), n;
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/useCollator.mjs
-var mc = /* @__PURE__ */ new Map();
-function hc(e) {
- let { locale: t } = Ri(), n = t + (e ? Object.entries(e).sort((e, t) => e[0] < t[0] ? -1 : 1).join() : "");
- if (mc.has(n)) return mc.get(n);
+var gc = /* @__PURE__ */ new Map();
+function _c(e) {
+ let { locale: t } = zi(), n = t + (e ? Object.entries(e).sort((e, t) => e[0] < t[0] ? -1 : 1).join() : "");
+ if (gc.has(n)) return gc.get(n);
let r = new Intl.Collator(t, e);
- return mc.set(n, r), r;
+ return gc.set(n, r), r;
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/PressResponder.mjs
-function gc({ children: e }) {
- let t = (0, S.useMemo)(() => ({ register: () => {} }), []);
- return /*#__PURE__*/ S.createElement(fa.Provider, { value: t }, e);
+function vc({ children: e }) {
+ let t = (0, C.useMemo)(() => ({ register: () => {} }), []);
+ return /*#__PURE__*/ C.createElement(ma.Provider, { value: t }, e);
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/PortalProvider.mjs
-var _c = /*#__PURE__*/ (0, S.createContext)({});
-function vc(e) {
- let { getContainer: t } = e, { getContainer: n } = yc();
- return /*#__PURE__*/ S.createElement(_c.Provider, { value: { getContainer: t === null ? void 0 : t ?? n } }, e.children);
+var yc = /*#__PURE__*/ (0, C.createContext)({});
+function bc(e) {
+ let { getContainer: t } = e, { getContainer: n } = xc();
+ return /*#__PURE__*/ C.createElement(yc.Provider, { value: { getContainer: t === null ? void 0 : t ?? n } }, e.children);
}
-function yc() {
- return (0, S.useContext)(_c) ?? {};
+function xc() {
+ return (0, C.useContext)(yc) ?? {};
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/Overlay.mjs
-var bc = /*#__PURE__*/ S.createContext(null);
-function xc(e) {
- let t = Pn(), { portalContainer: n = t ? null : document.body, isExiting: r } = e, [i, a] = (0, S.useState)(!1), o = (0, S.useMemo)(() => ({
+var Sc = /*#__PURE__*/ C.createContext(null);
+function Cc(e) {
+ let t = Fn(), { portalContainer: n = t ? null : document.body, isExiting: r } = e, [i, a] = (0, C.useState)(!1), o = (0, C.useMemo)(() => ({
contain: i,
setContain: a
- }), [i, a]), { getContainer: s } = yc();
+ }), [i, a]), { getContainer: s } = xc();
if (!e.portalContainer && s && (n = s()), !n) return null;
let c = e.children;
- return e.disableFocusManagement || (c = /*#__PURE__*/ S.createElement(Na, {
+ return e.disableFocusManagement || (c = /*#__PURE__*/ C.createElement(Fa, {
restoreFocus: !0,
contain: (e.shouldContainFocus || i) && !r
- }, c)), c = /*#__PURE__*/ S.createElement(bc.Provider, { value: o }, /*#__PURE__*/ S.createElement(gc, null, /*#__PURE__*/ S.createElement(Br.Provider, { value: null }, c))), /*#__PURE__*/ Zr.createPortal(c, n);
+ }, c)), c = /*#__PURE__*/ C.createElement(Sc.Provider, { value: o }, /*#__PURE__*/ C.createElement(vc, null, /*#__PURE__*/ C.createElement(Vr.Provider, { value: null }, c))), /*#__PURE__*/ Qr.createPortal(c, n);
}
-function Sc() {
- let e = (0, S.useContext)(bc)?.setContain;
- Yt(() => {
+function wc() {
+ let e = (0, C.useContext)(Sc)?.setContain;
+ Xt(() => {
e?.(!0);
}, [e]);
}
//#endregion
//#region node_modules/react-aria/dist/private/dialog/useDialog.mjs
-function Cc(e, t) {
- let { role: n = "dialog" } = e, r = vr();
+function Tc(e, t) {
+ let { role: n = "dialog" } = e, r = yr();
r = e["aria-label"] ? void 0 : r;
- let i = vr();
+ let i = yr();
i = n === "alertdialog" && !e["aria-describedby"] ? i : void 0;
- let a = (0, S.useRef)(!1);
- (0, S.useEffect)(() => {
- if (t.current && !Rt(t.current)) {
- lr(t.current);
+ let a = (0, C.useRef)(!1);
+ (0, C.useEffect)(() => {
+ if (t.current && !zt(t.current)) {
+ ur(t.current);
let e = setTimeout(() => {
- (It() === t.current || It() === document.body) && (a.current = !0, t.current && (t.current.blur(), lr(t.current)), a.current = !1);
+ (Lt() === t.current || Lt() === document.body) && (a.current = !0, t.current && (t.current.blur(), ur(t.current)), a.current = !1);
}, 500);
return () => {
clearTimeout(e);
};
}
- }, [t]), Sc(), (0, S.useRef)(!1), (0, S.useEffect)(() => {});
+ }, [t]), wc(), (0, C.useRef)(!1), (0, C.useEffect)(() => {});
let o = e["aria-describedby"] ?? i;
return {
dialogProps: {
- ...U(e, { labelable: !0 }),
+ ...H(e, { labelable: !0 }),
role: n,
tabIndex: -1,
"aria-labelledby": e["aria-labelledby"] ?? r,
@@ -6480,23 +6480,23 @@ function Cc(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/focus/useFocusRing.mjs
-function wc(e = {}) {
- let { autoFocus: t = !1, isTextInput: n, within: r } = e, i = (0, S.useRef)({
+function Ec(e = {}) {
+ let { autoFocus: t = !1, isTextInput: n, within: r } = e, i = (0, C.useRef)({
isFocused: !1,
- isFocusVisible: t || Zn()
- }), [a, o] = (0, S.useState)(!1), [s, c] = (0, S.useState)(() => i.current.isFocused && i.current.isFocusVisible), l = (0, S.useCallback)(() => c(i.current.isFocused && i.current.isFocusVisible), []), u = (0, S.useCallback)((e) => {
- i.current.isFocused = e, i.current.isFocusVisible = Zn(), o(e), l();
+ isFocusVisible: t || Qn()
+ }), [a, o] = (0, C.useState)(!1), [s, c] = (0, C.useState)(() => i.current.isFocused && i.current.isFocusVisible), l = (0, C.useCallback)(() => c(i.current.isFocused && i.current.isFocusVisible), []), u = (0, C.useCallback)((e) => {
+ i.current.isFocused = e, i.current.isFocusVisible = Qn(), o(e), l();
}, [l]);
- rr((e) => {
+ ir((e) => {
i.current.isFocusVisible = e, l();
}, [n, a], {
enabled: a,
isTextInput: n
});
- let { focusProps: d } = Cr({
+ let { focusProps: d } = wr({
isDisabled: r,
onFocusChange: u
- }), { focusWithinProps: f } = Bo({
+ }), { focusWithinProps: f } = Ho({
isDisabled: !r,
onFocusWithinChange: u
});
@@ -6508,36 +6508,36 @@ function wc(e = {}) {
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/useListFormatter.mjs
-function Tc(e = {}) {
- let { locale: t } = Ri();
- return (0, S.useMemo)(() => new Intl.ListFormat(t, e), [t, e]);
+function Dc(e = {}) {
+ let { locale: t } = zi();
+ return (0, C.useMemo)(() => new Intl.ListFormat(t, e), [t, e]);
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useHover.mjs
-var Ec = !1, Dc = 0;
-function Oc() {
- Ec = !0, setTimeout(() => {
- Ec = !1;
+var Oc = !1, kc = 0;
+function Ac() {
+ Oc = !0, setTimeout(() => {
+ Oc = !1;
}, 500);
}
-function kc(e) {
- e.pointerType === "touch" && Oc();
+function jc(e) {
+ e.pointerType === "touch" && Ac();
}
-function Ac() {
+function Mc() {
let e = R(null);
- if (e !== void 0) return Dc === 0 && typeof PointerEvent < "u" && e.addEventListener("pointerup", kc), Dc++, () => {
- Dc--, !(Dc > 0) && typeof PointerEvent < "u" && e.removeEventListener("pointerup", kc);
+ if (e !== void 0) return kc === 0 && typeof PointerEvent < "u" && e.addEventListener("pointerup", jc), kc++, () => {
+ kc--, !(kc > 0) && typeof PointerEvent < "u" && e.removeEventListener("pointerup", jc);
};
}
-function jc(e) {
- let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, isDisabled: i } = e, [a, o] = (0, S.useState)(!1), s = (0, S.useRef)({
+function Nc(e) {
+ let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, isDisabled: i } = e, [a, o] = (0, C.useState)(!1), s = (0, C.useRef)({
isHovered: !1,
ignoreEmulatedMouseEvents: !1,
pointerType: "",
target: null
}).current;
- (0, S.useEffect)(Ac, []);
- let { addGlobalListener: c, removeAllGlobalListeners: l } = pa(), { hoverProps: u, triggerHoverEnd: d } = (0, S.useMemo)(() => {
+ (0, C.useEffect)(Mc, []);
+ let { addGlobalListener: c, removeAllGlobalListeners: l } = ha(), { hoverProps: u, triggerHoverEnd: d } = (0, C.useMemo)(() => {
let e = (e, r) => {
if (s.pointerType = r, i || r === "touch" || s.isHovered || !z(e.currentTarget, B(e))) return;
s.isHovered = !0;
@@ -6558,7 +6558,7 @@ function jc(e) {
}), n && n(!1), o(!1));
}, u = {};
return typeof PointerEvent < "u" && (u.onPointerEnter = (t) => {
- Ec && t.pointerType === "mouse" || e(t, t.pointerType);
+ Oc && t.pointerType === "mouse" || e(t, t.pointerType);
}, u.onPointerLeave = (e) => {
!i && z(e.currentTarget, B(e)) && a(e, e.pointerType);
}), {
@@ -6574,7 +6574,7 @@ function jc(e) {
c,
l
]);
- return (0, S.useEffect)(() => {
+ return (0, C.useEffect)(() => {
i && d({ currentTarget: s.target }, s.pointerType);
}, [i]), {
hoverProps: u,
@@ -6583,22 +6583,22 @@ function jc(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useInteractOutside.mjs
-function Mc(e) {
- let { ref: t, onInteractOutside: n, isDisabled: r, onInteractOutsideStart: i } = e, a = (0, S.useRef)({
+function Pc(e) {
+ let { ref: t, onInteractOutside: n, isDisabled: r, onInteractOutsideStart: i } = e, a = (0, C.useRef)({
isPointerDown: !1,
ignoreEmulatedMouseEvents: !1
- }), o = Ti((e) => {
- n && Nc(e, t) && (i && i(e), a.current.isPointerDown = !0);
- }), s = Ti((e) => {
+ }), o = Ei((e) => {
+ n && Fc(e, t) && (i && i(e), a.current.isPointerDown = !0);
+ }), s = Ei((e) => {
n && n(e);
});
- (0, S.useEffect)(() => {
+ (0, C.useEffect)(() => {
let e = a.current;
if (r) return;
let n = t.current, i = R(n);
if (typeof PointerEvent < "u") {
let n = (n) => {
- e.isPointerDown && Nc(n, t) && s(n), e.isPointerDown = !1;
+ e.isPointerDown && Fc(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);
@@ -6606,7 +6606,7 @@ function Mc(e) {
}
}, [t, r]);
}
-function Nc(e, t) {
+function Fc(e, t) {
if (e.button > 0) return !1;
let n = B(e);
if (n) {
@@ -6617,8 +6617,8 @@ function Nc(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ar-AE.mjs
-var Pc = {};
-Pc = {
+var Ic = {};
+Ic = {
deselectedItem: (e) => `${e.item} \u{63A}\u{64A}\u{631} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}`,
longPressToSelect: "اضغط مطولًا للدخول إلى وضع التحديد.",
select: "تحديد",
@@ -6632,8 +6632,8 @@ Pc = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/bg-BG.mjs
-var Fc = {};
-Fc = {
+var Lc = {};
+Lc = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{435} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D}.`,
longPressToSelect: "Натиснете и задръжте за да влезете в избирателен режим.",
select: "Изберете",
@@ -6647,8 +6647,8 @@ Fc = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/cs-CZ.mjs
-var Ic = {};
-Ic = {
+var Rc = {};
+Rc = {
deselectedItem: (e) => `Polo\u{17E}ka ${e.item} nen\xed vybr\xe1na.`,
longPressToSelect: "Dlouhým stisknutím přejdete do režimu výběru.",
select: "Vybrat",
@@ -6662,8 +6662,8 @@ Ic = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/da-DK.mjs
-var Lc = {};
-Lc = {
+var zc = {};
+zc = {
deselectedItem: (e) => `${e.item} ikke valgt.`,
longPressToSelect: "Lav et langt tryk for at aktivere valgtilstand.",
select: "Vælg",
@@ -6677,8 +6677,8 @@ Lc = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/de-DE.mjs
-var Rc = {};
-Rc = {
+var Bc = {};
+Bc = {
deselectedItem: (e) => `${e.item} nicht ausgew\xe4hlt.`,
longPressToSelect: "Gedrückt halten, um Auswahlmodus zu öffnen.",
select: "Auswählen",
@@ -6692,8 +6692,8 @@ Rc = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/el-GR.mjs
-var zc = {};
-zc = {
+var Vc = {};
+Vc = {
deselectedItem: (e) => `\u{394}\u{3B5}\u{3BD} \u{3B5}\u{3C0}\u{3B9}\u{3BB}\u{3AD}\u{3C7}\u{3B8}\u{3B7}\u{3BA}\u{3B5} \u{3C4}\u{3BF} \u{3C3}\u{3C4}\u{3BF}\u{3B9}\u{3C7}\u{3B5}\u{3AF}\u{3BF} ${e.item}.`,
longPressToSelect: "Πατήστε παρατεταμένα για να μπείτε σε λειτουργία επιλογής.",
select: "Επιλογή",
@@ -6707,8 +6707,8 @@ zc = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/en-US.mjs
-var Bc = {};
-Bc = {
+var Hc = {};
+Hc = {
deselectedItem: (e) => `${e.item} not selected.`,
select: "Select",
selectedCount: (e, t) => `${t.plural(e.count, {
@@ -6722,8 +6722,8 @@ Bc = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/es-ES.mjs
-var Vc = {};
-Vc = {
+var Uc = {};
+Uc = {
deselectedItem: (e) => `${e.item} no seleccionado.`,
longPressToSelect: "Mantenga pulsado para abrir el modo de selección.",
select: "Seleccionar",
@@ -6737,8 +6737,8 @@ Vc = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/et-EE.mjs
-var Hc = {};
-Hc = {
+var Wc = {};
+Wc = {
deselectedItem: (e) => `${e.item} pole valitud.`,
longPressToSelect: "Valikurežiimi sisenemiseks vajutage pikalt.",
select: "Vali",
@@ -6752,8 +6752,8 @@ Hc = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/fi-FI.mjs
-var Uc = {};
-Uc = {
+var Gc = {};
+Gc = {
deselectedItem: (e) => `Kohdetta ${e.item} ei valittu.`,
longPressToSelect: "Siirry valintatilaan painamalla pitkään.",
select: "Valitse",
@@ -6767,8 +6767,8 @@ Uc = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/fr-FR.mjs
-var Wc = {};
-Wc = {
+var Kc = {};
+Kc = {
deselectedItem: (e) => `${e.item} non s\xe9lectionn\xe9.`,
longPressToSelect: "Appuyez de manière prolongée pour passer en mode de sélection.",
select: "Sélectionner",
@@ -6782,8 +6782,8 @@ Wc = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/he-IL.mjs
-var Gc = {};
-Gc = {
+var qc = {};
+qc = {
deselectedItem: (e) => `${e.item} \u{5DC}\u{5D0} \u{5E0}\u{5D1}\u{5D7}\u{5E8}.`,
longPressToSelect: "הקשה ארוכה לכניסה למצב בחירה.",
select: "בחר",
@@ -6797,8 +6797,8 @@ Gc = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/hr-HR.mjs
-var Kc = {};
-Kc = {
+var Jc = {};
+Jc = {
deselectedItem: (e) => `Stavka ${e.item} nije odabrana.`,
longPressToSelect: "Dugo pritisnite za ulazak u način odabira.",
select: "Odaberite",
@@ -6812,8 +6812,8 @@ Kc = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/hu-HU.mjs
-var qc = {};
-qc = {
+var Yc = {};
+Yc = {
deselectedItem: (e) => `${e.item} nincs kijel\xf6lve.`,
longPressToSelect: "Nyomja hosszan a kijelöléshez.",
select: "Kijelölés",
@@ -6827,8 +6827,8 @@ qc = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/it-IT.mjs
-var Jc = {};
-Jc = {
+var Xc = {};
+Xc = {
deselectedItem: (e) => `${e.item} non selezionato.`,
longPressToSelect: "Premi a lungo per passare alla modalità di selezione.",
select: "Seleziona",
@@ -6842,8 +6842,8 @@ Jc = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ja-JP.mjs
-var Yc = {};
-Yc = {
+var Zc = {};
+Zc = {
deselectedItem: (e) => `${e.item} \u{304C}\u{9078}\u{629E}\u{3055}\u{308C}\u{3066}\u{3044}\u{307E}\u{305B}\u{3093}\u{3002}`,
longPressToSelect: "長押しして選択モードを開きます。",
select: "選択",
@@ -6857,8 +6857,8 @@ Yc = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ko-KR.mjs
-var Xc = {};
-Xc = {
+var Qc = {};
+Qc = {
deselectedItem: (e) => `${e.item}\u{C774}(\u{AC00}) \u{C120}\u{D0DD}\u{B418}\u{C9C0} \u{C54A}\u{C558}\u{C2B5}\u{B2C8}\u{B2E4}.`,
longPressToSelect: "선택 모드로 들어가려면 길게 누르십시오.",
select: "선택",
@@ -6872,8 +6872,8 @@ Xc = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/lt-LT.mjs
-var Zc = {};
-Zc = {
+var $c = {};
+$c = {
deselectedItem: (e) => `${e.item} nepasirinkta.`,
longPressToSelect: "Norėdami įjungti pasirinkimo režimą, paspauskite ir palaikykite.",
select: "Pasirinkti",
@@ -6887,8 +6887,8 @@ Zc = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/lv-LV.mjs
-var Qc = {};
-Qc = {
+var el = {};
+el = {
deselectedItem: (e) => `Vienums ${e.item} nav atlas\u{12B}ts.`,
longPressToSelect: "Ilgi turiet nospiestu. lai ieslēgtu atlases režīmu.",
select: "Atlasīt",
@@ -6902,8 +6902,8 @@ Qc = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/nb-NO.mjs
-var $c = {};
-$c = {
+var tl = {};
+tl = {
deselectedItem: (e) => `${e.item} er ikke valgt.`,
longPressToSelect: "Bruk et langt trykk for å gå inn i valgmodus.",
select: "Velg",
@@ -6917,8 +6917,8 @@ $c = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/nl-NL.mjs
-var el = {};
-el = {
+var nl = {};
+nl = {
deselectedItem: (e) => `${e.item} niet geselecteerd.`,
longPressToSelect: "Druk lang om de selectiemodus te openen.",
select: "Selecteren",
@@ -6932,8 +6932,8 @@ el = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/pl-PL.mjs
-var tl = {};
-tl = {
+var rl = {};
+rl = {
deselectedItem: (e) => `Nie zaznaczono ${e.item}.`,
longPressToSelect: "Naciśnij i przytrzymaj, aby wejść do trybu wyboru.",
select: "Zaznacz",
@@ -6947,8 +6947,8 @@ tl = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/pt-BR.mjs
-var nl = {};
-nl = {
+var il = {};
+il = {
deselectedItem: (e) => `${e.item} n\xe3o selecionado.`,
longPressToSelect: "Mantenha pressionado para entrar no modo de seleção.",
select: "Selecionar",
@@ -6962,8 +6962,8 @@ nl = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/pt-PT.mjs
-var rl = {};
-rl = {
+var al = {};
+al = {
deselectedItem: (e) => `${e.item} n\xe3o selecionado.`,
longPressToSelect: "Prima continuamente para entrar no modo de seleção.",
select: "Selecionar",
@@ -6977,8 +6977,8 @@ rl = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ro-RO.mjs
-var il = {};
-il = {
+var ol = {};
+ol = {
deselectedItem: (e) => `${e.item} neselectat.`,
longPressToSelect: "Apăsați lung pentru a intra în modul de selectare.",
select: "Selectare",
@@ -6992,8 +6992,8 @@ il = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ru-RU.mjs
-var al = {};
-al = {
+var sl = {};
+sl = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`,
longPressToSelect: "Нажмите и удерживайте для входа в режим выбора.",
select: "Выбрать",
@@ -7007,8 +7007,8 @@ al = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/sk-SK.mjs
-var ol = {};
-ol = {
+var cl = {};
+cl = {
deselectedItem: (e) => `Nevybrat\xe9 polo\u{17E}ky: ${e.item}.`,
longPressToSelect: "Dlhším stlačením prejdite do režimu výberu.",
select: "Vybrať",
@@ -7022,8 +7022,8 @@ ol = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/sl-SI.mjs
-var sl = {};
-sl = {
+var ll = {};
+ll = {
deselectedItem: (e) => `Element ${e.item} ni izbran.`,
longPressToSelect: "Za izbirni način pritisnite in dlje časa držite.",
select: "Izberite",
@@ -7037,8 +7037,8 @@ sl = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/sr-SP.mjs
-var cl = {};
-cl = {
+var ul = {};
+ul = {
deselectedItem: (e) => `${e.item} nije izabrano.`,
longPressToSelect: "Dugo pritisnite za ulazak u režim biranja.",
select: "Izaberite",
@@ -7052,8 +7052,8 @@ cl = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/sv-SE.mjs
-var ll = {};
-ll = {
+var dl = {};
+dl = {
deselectedItem: (e) => `${e.item} ej markerat.`,
longPressToSelect: "Tryck länge när du vill öppna väljarläge.",
select: "Markera",
@@ -7067,8 +7067,8 @@ ll = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/tr-TR.mjs
-var ul = {};
-ul = {
+var fl = {};
+fl = {
deselectedItem: (e) => `${e.item} se\xe7ilmedi.`,
longPressToSelect: "Seçim moduna girmek için uzun basın.",
select: "Seç",
@@ -7082,8 +7082,8 @@ ul = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/uk-UA.mjs
-var dl = {};
-dl = {
+var pl = {};
+pl = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`,
longPressToSelect: "Виконайте довге натиснення, щоб перейти в режим вибору.",
select: "Вибрати",
@@ -7097,8 +7097,8 @@ dl = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/zh-CN.mjs
-var fl = {};
-fl = {
+var ml = {};
+ml = {
deselectedItem: (e) => `\u{672A}\u{9009}\u{62E9} ${e.item}\u{3002}`,
longPressToSelect: "长按以进入选择模式。",
select: "选择",
@@ -7112,8 +7112,8 @@ fl = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/zh-TW.mjs
-var pl = {};
-pl = {
+var hl = {};
+hl = {
deselectedItem: (e) => `\u{672A}\u{9078}\u{53D6}\u{300C}${e.item}\u{300D}\u{3002}`,
longPressToSelect: "長按以進入選擇模式。",
select: "選取",
@@ -7127,55 +7127,55 @@ pl = {
};
//#endregion
//#region node_modules/react-aria/dist/private/grid/intlStrings.mjs
-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
+var gl = {};
+gl = {
+ "ar-AE": Ic,
+ "bg-BG": Lc,
+ "cs-CZ": Rc,
+ "da-DK": zc,
+ "de-DE": Bc,
+ "el-GR": Vc,
+ "en-US": Hc,
+ "es-ES": Uc,
+ "et-EE": Wc,
+ "fi-FI": Gc,
+ "fr-FR": Kc,
+ "he-IL": qc,
+ "hr-HR": Jc,
+ "hu-HU": Yc,
+ "it-IT": Xc,
+ "ja-JP": Zc,
+ "ko-KR": Qc,
+ "lt-LT": $c,
+ "lv-LV": el,
+ "nb-NO": tl,
+ "nl-NL": nl,
+ "pl-PL": rl,
+ "pt-BR": il,
+ "pt-PT": al,
+ "ro-RO": ol,
+ "ru-RU": sl,
+ "sk-SK": cl,
+ "sl-SI": ll,
+ "sr-SP": ul,
+ "sv-SE": dl,
+ "tr-TR": fl,
+ "uk-UA": pl,
+ "zh-CN": ml,
+ "zh-TW": hl
};
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridSelectionAnnouncement.mjs
-function hl(e) {
+function _l(e) {
return e && e.__esModule ? e.default : e;
}
-function gl(e, t) {
- let { getRowText: n = (e) => t.collection.getTextValue?.(e) ?? t.collection.getItem(e)?.textValue } = e, r = Qi(hl(ml), "@react-aria/grid"), i = t.selectionManager.rawSelection, a = (0, S.useRef)(i), o = (0, S.useCallback)(() => {
+function vl(e, t) {
+ let { getRowText: n = (e) => t.collection.getTextValue?.(e) ?? t.collection.getItem(e)?.textValue } = e, r = $i(_l(gl), "@react-aria/grid"), i = t.selectionManager.rawSelection, a = (0, C.useRef)(i), o = (0, C.useCallback)(() => {
if (!t.selectionManager.isFocused || i === a.current) {
a.current = i;
return;
}
- let e = _l(i, a.current), o = _l(a.current, i), s = t.selectionManager.selectionBehavior === "replace", c = [];
+ let e = yl(i, a.current), o = yl(a.current, i), s = t.selectionManager.selectionBehavior === "replace", c = [];
if (t.selectionManager.selectedKeys.size === 1 && s) {
let e = t.selectionManager.selectedKeys.keys().next().value;
if (e != null && t.collection.getItem(e)) {
@@ -7195,7 +7195,7 @@ function gl(e, t) {
t && c.push(r.format("deselectedItem", { item: t }));
}
}
- t.selectionManager.selectionMode === "multiple" && (c.length === 0 || i === "all" || i.size > 1 || a.current === "all" || a.current?.size > 1) && c.push(i === "all" ? r.format("selectedAll") : r.format("selectedCount", { count: i.size })), c.length > 0 && ao(c.join(" ")), a.current = i;
+ t.selectionManager.selectionMode === "multiple" && (c.length === 0 || i === "all" || i.size > 1 || a.current === "all" || a.current?.size > 1) && c.push(i === "all" ? r.format("selectedAll") : r.format("selectedCount", { count: i.size })), c.length > 0 && so(c.join(" ")), a.current = i;
}, [
i,
t.selectionManager.selectedKeys,
@@ -7206,7 +7206,7 @@ function gl(e, t) {
n,
r
]);
- so(() => {
+ lo(() => {
if (t.selectionManager.isFocused) o();
else {
let e = requestAnimationFrame(o);
@@ -7214,7 +7214,7 @@ function gl(e, t) {
}
}, [i, t.selectionManager.isFocused]);
}
-function _l(e, t) {
+function yl(e, t) {
let n = /* @__PURE__ */ new Set();
if (e === "all" || t === "all") return n;
for (let r of e.keys()) t.has(r) || n.add(r);
@@ -7222,13 +7222,13 @@ function _l(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/focus/useHasTabbableChild.mjs
-function vl(e, t) {
- let n = t?.isDisabled, [r, i] = (0, S.useState)(!1);
- return Yt(() => {
+function bl(e, t) {
+ let n = t?.isDisabled, [r, i] = (0, C.useState)(!1);
+ return Xt(() => {
if (e?.current && !n) {
let t = () => {
if (e.current) {
- let t = $a(e.current, { tabbable: !0 });
+ let t = to(e.current, { tabbable: !0 });
i(!!t.nextNode());
}
};
@@ -7247,12 +7247,12 @@ function vl(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useHighlightSelectionDescription.mjs
-function yl(e) {
+function xl(e) {
return e && e.__esModule ? e.default : e;
}
-function bl(e) {
- let t = Qi(yl(ml), "@react-aria/grid"), n = er(), r = (n === "pointer" || n === "virtual" || n == null) && typeof window < "u" && "ontouchstart" in window;
- return _o((0, S.useMemo)(() => {
+function Sl(e) {
+ let t = $i(xl(gl), "@react-aria/grid"), n = tr(), r = (n === "pointer" || n === "virtual" || n == null) && typeof window < "u" && "ontouchstart" in window;
+ return yo((0, C.useMemo)(() => {
let n = e.selectionManager.selectionMode, i = e.selectionManager.selectionBehavior, a;
return r && (a = t.format("longPressToSelect")), i === "replace" && n !== "none" && e.hasItemActions ? a : void 0;
}, [
@@ -7265,11 +7265,11 @@ function bl(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/useSelectableList.mjs
-function xl(e) {
- let { selectionManager: t, collection: n, disabledKeys: r, ref: i, keyboardDelegate: a, layoutDelegate: o, orientation: s } = e, c = hc({
+function Cl(e) {
+ let { selectionManager: t, collection: n, disabledKeys: r, ref: i, keyboardDelegate: a, layoutDelegate: o, orientation: s } = e, c = _c({
usage: "search",
sensitivity: "base"
- }), l = t.disabledBehavior, u = (0, S.useMemo)(() => a || new ds({
+ }), l = t.disabledBehavior, u = (0, C.useMemo)(() => a || new ps({
collection: n,
disabledKeys: r,
disabledBehavior: l,
@@ -7286,7 +7286,7 @@ function xl(e) {
c,
l,
s
- ]), { collectionProps: d } = ac({
+ ]), { collectionProps: d } = sc({
...e,
ref: i,
selectionManager: t,
@@ -7296,11 +7296,11 @@ function xl(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/useSelectableItem.mjs
-function Sl(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 = _n();
- t = gr(t);
+function wl(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 = vn();
+ t = _r(t);
let p = (e) => {
- if (e.pointerType === "keyboard" && as(e)) n.toggleSelection(r);
+ if (e.pointerType === "keyboard" && ss(e)) n.toggleSelection(r);
else {
if (n.selectionMode === "none") return;
if (n.isLink(r)) {
@@ -7311,11 +7311,11 @@ function Sl(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 && (xi(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 && (Si(e) || e.pointerType === "touch" || e.pointerType === "virtual") ? n.toggleSelection(r) : n.replaceSelection(r);
}
};
- (0, S.useEffect)(() => {
- r === n.focusedKey && n.isFocused && (o ? _i(i.current) : s ? s() : It() !== i.current && i.current && lr(i.current));
+ (0, C.useEffect)(() => {
+ r === n.focusedKey && n.isFocused && (o ? vi(i.current) : s ? s() : Lt() !== i.current && i.current && ur(i.current));
}, [
i,
r,
@@ -7332,33 +7332,33 @@ function Sl(e) {
}
} : c && (m.onMouseDown = (e) => {
e.preventDefault();
- }), (0, S.useEffect)(() => {
+ }), (0, C.useEffect)(() => {
c && n.focusedKey === r && n.setFocusedKey(null);
}, [
n,
c,
r
]);
- let h = n.isLink(r) && d === "override", g = l && e.UNSTABLE_itemBehavior === "action", _ = n.isLink(r) && d !== "selection" && d !== "none", v = !c && n.canSelectItem(r) && !h && !g, y = (l || _) && !c, b = y && (n.selectionBehavior === "replace" ? !v : !v || n.isEmpty), x = y && v && n.selectionBehavior === "replace", C = b || x, w = (0, S.useRef)(null), T = C && v, E = (0, S.useRef)(!1), D = (0, S.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), x = y && v && n.selectionBehavior === "replace", S = b || x, w = (0, C.useRef)(null), T = S && v, E = (0, C.useRef)(!1), D = (0, C.useRef)(!1), O = n.getItemProps(r), k = (e) => {
l && (l(), i.current?.dispatchEvent(new CustomEvent("react-aria-item-action", { bubbles: !0 }))), _ && i.current && f.open(i.current, e, O.href, O.routerOptions);
}, A = { ref: i };
a ? (A.onPressStart = (e) => {
- w.current = e.pointerType, E.current = T, e.pointerType === "keyboard" && (!C || wl(e.key)) && p(e);
+ w.current = e.pointerType, E.current = T, e.pointerType === "keyboard" && (!S || El(e.key)) && p(e);
}, u ? (A.onPressUp = b ? void 0 : (e) => {
e.pointerType === "mouse" && v && p(e);
}, A.onPress = b ? k : (e) => {
e.pointerType !== "keyboard" && e.pointerType !== "mouse" && v && p(e);
}) : A.onPress = (e) => {
if (b || x && e.pointerType !== "mouse") {
- if (e.pointerType === "keyboard" && !Cl(e.key)) return;
+ if (e.pointerType === "keyboard" && !Tl(e.key)) return;
k(e);
} else e.pointerType !== "keyboard" && v && p(e);
}) : (A.onPressStart = (e) => {
- w.current = e.pointerType, E.current = T, D.current = b, v && (e.pointerType === "mouse" && !b || e.pointerType === "keyboard" && (!y || wl(e.key))) && p(e);
+ w.current = e.pointerType, E.current = T, D.current = b, v && (e.pointerType === "mouse" && !b || e.pointerType === "keyboard" && (!y || El(e.key))) && p(e);
}, A.onPress = (e) => {
- (e.pointerType === "touch" || e.pointerType === "pen" || e.pointerType === "virtual" || e.pointerType === "keyboard" && C && Cl(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" && S && Tl(e.key) || e.pointerType === "mouse" && D.current) && (S ? k(e) : v && p(e));
});
- let j = ls(n.collection);
+ let j = ds(n.collection);
if (m["data-collection"] = j, m["data-key"] = r, A.preventFocusOnPress = o, o && (A = V(A, {
onPressStart(e) {
e.pointerType !== "touch" && (n.setFocused(!0), n.setFocusedKey(r));
@@ -7373,10 +7373,10 @@ function Sl(e) {
"onPress",
"onPressUp",
"onClick"
- ]) O[e] && (A[e] = ur(A[e], O[e]));
- let { pressProps: M, isPressed: N } = ya(A), ee = x ? (e) => {
+ ]) O[e] && (A[e] = dr(A[e], O[e]));
+ let { pressProps: M, isPressed: N } = xa(A), ee = x ? (e) => {
w.current === "mouse" && (e.stopPropagation(), e.preventDefault(), k(e));
- } : void 0, { longPressProps: P } = Js({
+ } : void 0, { longPressProps: P } = Xs({
isDisabled: !T,
onLongPress(e) {
e.pointerType === "touch" && (p(e), n.setSelectionBehavior("toggle"));
@@ -7384,7 +7384,7 @@ function Sl(e) {
}), F = (e) => {
w.current === "touch" && E.current && e.preventDefault();
}, te = d !== "none" && n.isLink(r) ? (e) => {
- vn.isOpening || e.preventDefault();
+ yn.isOpening || e.preventDefault();
} : void 0, ne = V(m, v || b || o && !c ? M : {}, T ? P : {}, {
onDoubleClick: ee,
onDragStartCapture: F,
@@ -7397,7 +7397,7 @@ function Sl(e) {
if (e != null) return e !== j;
t = t.parentElement;
}
- return qt(e);
+ return Jt(e);
}, ie = ne.onPointerDown;
ne.onPointerDown = (e) => {
let t = B(e);
@@ -7422,25 +7422,25 @@ function Sl(e) {
isFocused: n.isFocused && n.focusedKey === r,
isDisabled: c,
allowsSelection: v,
- hasAction: C
+ hasAction: S
};
}
-function Cl(e) {
+function Tl(e) {
return e === "Enter";
}
-function wl(e) {
+function El(e) {
return e === " ";
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridSelectionCheckbox.mjs
-function Tl(e) {
+function Dl(e) {
return e && e.__esModule ? e.default : e;
}
-function El(e, t) {
- let { key: n } = e, r = t.selectionManager, i = gr(), a = !t.selectionManager.canSelectItem(n), o = t.selectionManager.isSelected(n);
+function Ol(e, t) {
+ let { key: n } = e, r = t.selectionManager, i = _r(), a = !t.selectionManager.canSelectItem(n), o = t.selectionManager.isSelected(n);
return { checkboxProps: {
id: i,
- "aria-label": Qi(Tl(ml), "@react-aria/grid").format("select"),
+ "aria-label": $i(Dl(gl), "@react-aria/grid").format("select"),
isSelected: o,
isDisabled: a,
onChange: () => r.toggleSelection(n)
@@ -7448,22 +7448,22 @@ function El(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/listbox/useListBox.mjs
-function Dl(e, t, n) {
- let r = U(e, { labelable: !0 }), i = e.selectionBehavior || "toggle", a = e.orientation || "vertical", o = e.linkBehavior || (i === "replace" ? "action" : "override");
+function kl(e, t, n) {
+ let r = H(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 } = xl({
+ let { listProps: s } = Cl({
...e,
ref: n,
selectionManager: t.selectionManager,
collection: t.collection,
disabledKeys: t.disabledKeys,
linkBehavior: o
- }), { focusWithinProps: c } = Bo({
+ }), { focusWithinProps: c } = Ho({
onFocusWithin: e.onFocus,
onBlurWithin: e.onBlur,
onFocusWithinChange: e.onFocusChange
- }), l = gr(e.id);
- ns.set(t, {
+ }), l = _r(e.id);
+ is.set(t, {
id: l,
shouldUseVirtualFocus: e.shouldUseVirtualFocus,
shouldSelectOnPressUp: e.shouldSelectOnPressUp,
@@ -7473,7 +7473,7 @@ function Dl(e, t, n) {
linkBehavior: o,
UNSTABLE_itemBehavior: e.UNSTABLE_itemBehavior
});
- let { labelProps: u, fieldProps: d } = W({
+ let { labelProps: u, fieldProps: d } = Bo({
...e,
id: l,
labelElementType: "span"
@@ -7489,8 +7489,8 @@ function Dl(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/listbox/useListBoxSection.mjs
-function Ol(e) {
- let { heading: t, "aria-label": n } = e, r = gr();
+function Al(e) {
+ let { heading: t, "aria-label": n } = e, r = _r();
return {
itemProps: { role: "presentation" },
headingProps: t ? {
@@ -7509,8 +7509,8 @@ function Ol(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/listbox/useOption.mjs
-function kl(e, t, n) {
- let { key: r } = e, i = ns.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 = vr(), f = vr(), p = {
+function jl(e, t, n) {
+ let { key: r } = e, i = is.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 = yr(), f = yr(), p = {
role: "option",
"aria-disabled": a || void 0,
"aria-selected": t.selectionManager.selectionMode === "none" ? void 0 : o,
@@ -7520,9 +7520,9 @@ function kl(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"] = pc(t.collection);
+ p["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, p["aria-setsize"] = hc(t.collection);
}
- let h = i?.onAction ? () => i?.onAction?.(r) : void 0, g = is(t, r), { itemProps: _, isPressed: v, isFocused: y, hasAction: b, allowsSelection: x } = Sl({
+ let h = i?.onAction ? () => i?.onAction?.(r) : void 0, g = os(t, r), { itemProps: _, isPressed: v, isFocused: y, hasAction: b, allowsSelection: x } = wl({
selectionManager: t.selectionManager,
key: r,
ref: n,
@@ -7531,18 +7531,18 @@ function kl(e, t, n) {
isVirtualized: u,
shouldUseVirtualFocus: l,
isDisabled: a,
- onAction: h || m?.props?.onAction ? ur(m?.props?.onAction, h) : void 0,
+ onAction: h || m?.props?.onAction ? dr(m?.props?.onAction, h) : void 0,
linkBehavior: i?.linkBehavior,
UNSTABLE_itemBehavior: i?.UNSTABLE_itemBehavior,
id: g
- }), { hoverProps: S } = jc({
+ }), { hoverProps: S } = Nc({
isDisabled: a || !c,
onHoverStart() {
- Zn() || (t.selectionManager.setFocused(!0), t.selectionManager.setFocusedKey(r));
+ Qn() || (t.selectionManager.setFocused(!0), t.selectionManager.setFocusedKey(r));
}
- }), C = U(m?.props);
+ }), C = H(m?.props);
delete C.id;
- let w = Sn(m?.props);
+ let w = Cn(m?.props);
return {
optionProps: {
...p,
@@ -7552,7 +7552,7 @@ function kl(e, t, n) {
labelProps: { id: d },
descriptionProps: { id: f },
isFocused: y,
- isFocusVisible: y && t.selectionManager.isFocused && Zn(),
+ isFocusVisible: y && t.selectionManager.isFocused && Qn(),
isSelected: o,
isDisabled: a,
isPressed: v,
@@ -7562,15 +7562,15 @@ function kl(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useResizeObserver.mjs
-function Al() {
+function Ml() {
return window.ResizeObserver !== void 0;
}
-function jl(e) {
- let { ref: t, box: n, onResize: r } = e, i = Ti(r);
- (0, S.useEffect)(() => {
+function Nl(e) {
+ let { ref: t, box: n, onResize: r } = e, i = Ei(r);
+ (0, C.useEffect)(() => {
let e = t?.current;
if (e) {
- if (Al()) {
+ if (Ml()) {
let t = new window.ResizeObserver((e) => {
e.length && i();
});
@@ -7586,189 +7586,189 @@ function jl(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ar-AE.mjs
-var Ml = {};
-Ml = { dismiss: "تجاهل" };
+var Pl = {};
+Pl = { dismiss: "تجاهل" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/bg-BG.mjs
-var Nl = {};
-Nl = { dismiss: "Отхвърляне" };
+var Fl = {};
+Fl = { dismiss: "Отхвърляне" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/cs-CZ.mjs
-var Pl = {};
-Pl = { dismiss: "Odstranit" };
+var Il = {};
+Il = { dismiss: "Odstranit" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/da-DK.mjs
-var Fl = {};
-Fl = { dismiss: "Luk" };
+var Ll = {};
+Ll = { dismiss: "Luk" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/de-DE.mjs
-var Il = {};
-Il = { dismiss: "Schließen" };
+var Rl = {};
+Rl = { dismiss: "Schließen" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/el-GR.mjs
-var Ll = {};
-Ll = { dismiss: "Απόρριψη" };
+var zl = {};
+zl = { dismiss: "Απόρριψη" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/en-US.mjs
-var Rl = {};
-Rl = { dismiss: "Dismiss" };
+var Bl = {};
+Bl = { dismiss: "Dismiss" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/es-ES.mjs
-var zl = {};
-zl = { dismiss: "Descartar" };
+var Vl = {};
+Vl = { dismiss: "Descartar" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/et-EE.mjs
-var Bl = {};
-Bl = { dismiss: "Lõpeta" };
+var Hl = {};
+Hl = { dismiss: "Lõpeta" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/fi-FI.mjs
-var Vl = {};
-Vl = { dismiss: "Hylkää" };
+var Ul = {};
+Ul = { dismiss: "Hylkää" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/fr-FR.mjs
-var Hl = {};
-Hl = { dismiss: "Rejeter" };
+var Wl = {};
+Wl = { dismiss: "Rejeter" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/he-IL.mjs
-var Ul = {};
-Ul = { dismiss: "התעלם" };
+var Gl = {};
+Gl = { dismiss: "התעלם" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/hr-HR.mjs
-var Wl = {};
-Wl = { dismiss: "Odbaci" };
+var Kl = {};
+Kl = { dismiss: "Odbaci" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/hu-HU.mjs
-var Gl = {};
-Gl = { dismiss: "Elutasítás" };
+var ql = {};
+ql = { dismiss: "Elutasítás" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/it-IT.mjs
-var Kl = {};
-Kl = { dismiss: "Ignora" };
+var Jl = {};
+Jl = { dismiss: "Ignora" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ja-JP.mjs
-var ql = {};
-ql = { dismiss: "閉じる" };
+var Yl = {};
+Yl = { dismiss: "閉じる" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ko-KR.mjs
-var Jl = {};
-Jl = { dismiss: "무시" };
+var Xl = {};
+Xl = { dismiss: "무시" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/lt-LT.mjs
-var Yl = {};
-Yl = { dismiss: "Atmesti" };
+var Zl = {};
+Zl = { dismiss: "Atmesti" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/lv-LV.mjs
-var Xl = {};
-Xl = { dismiss: "Nerādīt" };
+var Ql = {};
+Ql = { dismiss: "Nerādīt" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/nb-NO.mjs
-var Zl = {};
-Zl = { dismiss: "Lukk" };
+var $l = {};
+$l = { dismiss: "Lukk" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/nl-NL.mjs
-var Ql = {};
-Ql = { dismiss: "Negeren" };
+var eu = {};
+eu = { dismiss: "Negeren" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/pl-PL.mjs
-var $l = {};
-$l = { dismiss: "Zignoruj" };
+var tu = {};
+tu = { dismiss: "Zignoruj" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/pt-BR.mjs
-var eu = {};
-eu = { dismiss: "Descartar" };
+var nu = {};
+nu = { dismiss: "Descartar" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/pt-PT.mjs
-var tu = {};
-tu = { dismiss: "Dispensar" };
+var ru = {};
+ru = { dismiss: "Dispensar" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ro-RO.mjs
-var nu = {};
-nu = { dismiss: "Revocare" };
+var iu = {};
+iu = { dismiss: "Revocare" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ru-RU.mjs
-var ru = {};
-ru = { dismiss: "Пропустить" };
+var au = {};
+au = { dismiss: "Пропустить" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sk-SK.mjs
-var iu = {};
-iu = { dismiss: "Zrušiť" };
+var ou = {};
+ou = { dismiss: "Zrušiť" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sl-SI.mjs
-var au = {};
-au = { dismiss: "Opusti" };
+var su = {};
+su = { dismiss: "Opusti" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sr-SP.mjs
-var ou = {};
-ou = { dismiss: "Odbaci" };
+var cu = {};
+cu = { dismiss: "Odbaci" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sv-SE.mjs
-var su = {};
-su = { dismiss: "Avvisa" };
+var lu = {};
+lu = { dismiss: "Avvisa" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/tr-TR.mjs
-var cu = {};
-cu = { dismiss: "Kapat" };
+var uu = {};
+uu = { dismiss: "Kapat" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/uk-UA.mjs
-var lu = {};
-lu = { dismiss: "Скасувати" };
+var du = {};
+du = { dismiss: "Скасувати" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/zh-CN.mjs
-var uu = {};
-uu = { dismiss: "取消" };
+var fu = {};
+fu = { dismiss: "取消" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/zh-TW.mjs
-var du = {};
-du = { dismiss: "關閉" };
+var pu = {};
+pu = { dismiss: "關閉" };
//#endregion
//#region node_modules/react-aria/dist/private/overlays/intlStrings.mjs
-var fu = {};
-fu = {
- "ar-AE": Ml,
- "bg-BG": Nl,
- "cs-CZ": Pl,
- "da-DK": Fl,
- "de-DE": Il,
- "el-GR": Ll,
- "en-US": Rl,
- "es-ES": zl,
- "et-EE": Bl,
- "fi-FI": Vl,
- "fr-FR": Hl,
- "he-IL": Ul,
- "hr-HR": Wl,
- "hu-HU": Gl,
- "it-IT": Kl,
- "ja-JP": ql,
- "ko-KR": Jl,
- "lt-LT": Yl,
- "lv-LV": Xl,
- "nb-NO": Zl,
- "nl-NL": Ql,
- "pl-PL": $l,
- "pt-BR": eu,
- "pt-PT": tu,
- "ro-RO": nu,
- "ru-RU": ru,
- "sk-SK": iu,
- "sl-SI": au,
- "sr-SP": ou,
- "sv-SE": su,
- "tr-TR": cu,
- "uk-UA": lu,
- "zh-CN": uu,
- "zh-TW": du
+var mu = {};
+mu = {
+ "ar-AE": Pl,
+ "bg-BG": Fl,
+ "cs-CZ": Il,
+ "da-DK": Ll,
+ "de-DE": Rl,
+ "el-GR": zl,
+ "en-US": Bl,
+ "es-ES": Vl,
+ "et-EE": Hl,
+ "fi-FI": Ul,
+ "fr-FR": Wl,
+ "he-IL": Gl,
+ "hr-HR": Kl,
+ "hu-HU": ql,
+ "it-IT": Jl,
+ "ja-JP": Yl,
+ "ko-KR": Xl,
+ "lt-LT": Zl,
+ "lv-LV": Ql,
+ "nb-NO": $l,
+ "nl-NL": eu,
+ "pl-PL": tu,
+ "pt-BR": nu,
+ "pt-PT": ru,
+ "ro-RO": iu,
+ "ru-RU": au,
+ "sk-SK": ou,
+ "sl-SI": su,
+ "sr-SP": cu,
+ "sv-SE": lu,
+ "tr-TR": uu,
+ "uk-UA": du,
+ "zh-CN": fu,
+ "zh-TW": pu
};
//#endregion
//#region node_modules/react-aria/dist/private/overlays/DismissButton.mjs
-function pu(e) {
+function hu(e) {
return e && e.__esModule ? e.default : e;
}
-function mu(e) {
- let { onDismiss: t, ...n } = e, r = Di(n, Qi(pu(fu), "@react-aria/overlays").format("dismiss")), i = () => {
+function gu(e) {
+ let { onDismiss: t, ...n } = e, r = Oi(n, $i(hu(mu), "@react-aria/overlays").format("dismiss")), i = () => {
t && t();
};
- return /*#__PURE__*/ S.createElement(Jo, null, /*#__PURE__*/ S.createElement("button", {
+ return /*#__PURE__*/ C.createElement(Xo, null, /*#__PURE__*/ C.createElement("button", {
...r,
tabIndex: -1,
onClick: i,
@@ -7780,38 +7780,38 @@ function mu(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useOverlay.mjs
-var hu = [];
-function gu(e, t) {
- let { onClose: n, shouldCloseOnBlur: r, isOpen: i, isDismissable: a = !1, isKeyboardDismissDisabled: o = !1, shouldCloseOnInteractOutside: s } = e, c = (0, S.useRef)(void 0);
- (0, S.useEffect)(() => {
- if (i && !hu.includes(t)) return hu.push(t), () => {
- let e = hu.indexOf(t);
- e >= 0 && hu.splice(e, 1);
+var _u = [];
+function vu(e, t) {
+ let { onClose: n, shouldCloseOnBlur: r, isOpen: i, isDismissable: a = !1, isKeyboardDismissDisabled: o = !1, shouldCloseOnInteractOutside: s } = e, c = (0, C.useRef)(void 0);
+ (0, C.useEffect)(() => {
+ if (i && !_u.includes(t)) return _u.push(t), () => {
+ let e = _u.indexOf(t);
+ e >= 0 && _u.splice(e, 1);
};
}, [i, t]);
let l = () => {
- hu[hu.length - 1] === t && n && n();
+ _u[_u.length - 1] === t && n && n();
}, u = (e) => {
- let n = hu[hu.length - 1];
+ let n = _u[_u.length - 1];
c.current = n, (!s || s(B(e))) && n === t && e.stopPropagation();
}, d = (e) => {
- (!s || s(B(e))) && (hu[hu.length - 1] === t && e.stopPropagation(), c.current === t && l()), c.current = void 0;
- }, { keyboardProps: f } = Lr({ shortcuts: { Escape: () => {
+ (!s || s(B(e))) && (_u[_u.length - 1] === t && e.stopPropagation(), c.current === t && l()), c.current = void 0;
+ }, { keyboardProps: f } = Rr({ shortcuts: { Escape: () => {
if (!o) {
l();
return;
}
return !1;
} } });
- Mc({
+ Pc({
ref: t,
onInteractOutside: a && i ? d : void 0,
onInteractOutsideStart: u
});
- let { focusWithinProps: p } = Bo({
+ let { focusWithinProps: p } = Ho({
isDisabled: !r,
onBlurWithin: (e) => {
- !e.relatedTarget || Ua(e.relatedTarget) || (!s || s(e.relatedTarget)) && n?.();
+ !e.relatedTarget || Ga(e.relatedTarget) || (!s || s(e.relatedTarget)) && n?.();
}
});
return {
@@ -7824,26 +7824,26 @@ function gu(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/usePreventScroll.mjs
-var _u = typeof document < "u" && window.visualViewport, vu = 0, yu;
-function bu(e = {}) {
+var yu = typeof document < "u" && window.visualViewport, bu = 0, xu;
+function Su(e = {}) {
let { isDisabled: t } = e;
- Yt(() => {
- if (!t) return vu++, vu === 1 && (yu = cn() && un() ? Su() : xu()), () => {
- vu--, vu === 0 && yu();
+ Xt(() => {
+ if (!t) return bu++, bu === 1 && (xu = ln() && dn() ? wu() : Cu()), () => {
+ bu--, bu === 0 && xu();
};
}, [t]);
}
-function xu() {
+function Cu() {
let e = window.innerWidth - document.documentElement.clientWidth;
- return ur(e > 0 && ("scrollbarGutter" in document.documentElement.style ? Nt(document.documentElement, "scrollbar-gutter", "stable") : Nt(document.documentElement, "padding-right", `${e}px`)), Nt(document.documentElement, "overflow", "hidden"));
+ return dr(e > 0 && ("scrollbarGutter" in document.documentElement.style ? Pt(document.documentElement, "scrollbar-gutter", "stable") : Pt(document.documentElement, "padding-right", `${e}px`)), Pt(document.documentElement, "overflow", "hidden"));
}
-function Su() {
- let e = Nt(document.documentElement, "overflow", "hidden"), t, n = !1, r = (e) => {
+function wu() {
+ let e = Pt(document.documentElement, "overflow", "hidden"), t, n = !1, r = (e) => {
let r = B(e);
- t = co(r) ? r : lo(r, !0), n = !1;
+ t = uo(r) ? r : fo(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 = da();
+ }, i = document.createElement("style"), a = pa();
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)) {
@@ -7855,26 +7855,26 @@ function Su() {
}
}, s = (e) => {
let t = B(e), n = e.relatedTarget;
- n && Ci(n) ? (n.focus({ preventScroll: !0 }), Cu(n, Ci(t))) : n || (t.parentElement?.closest("[tabindex]"))?.focus({ preventScroll: !0 });
+ n && wi(n) ? (n.focus({ preventScroll: !0 }), Tu(n, wi(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 = It(), n = t != null && Ci(t);
+ let t = Lt(), n = t != null && wi(t);
c.call(this, {
...e,
preventScroll: !0
- }), (!e || !e.preventScroll) && Cu(this, n);
+ }), (!e || !e.preventScroll) && Tu(this, n);
}
});
- let l = ur(Mt(document, "touchstart", r, {
+ let l = dr(Nt(document, "touchstart", r, {
passive: !1,
capture: !0
- }), Mt(document, "touchmove", o, {
+ }), Nt(document, "touchmove", o, {
passive: !1,
capture: !0
- }), Mt(document, "blur", s, !0));
+ }), Nt(document, "blur", s, !0));
return () => {
e(), l(), i.remove(), Reflect.defineProperty(HTMLElement.prototype, "focus", {
configurable: !0,
@@ -7883,18 +7883,18 @@ function Su() {
});
};
}
-function Cu(e, t) {
- t || !_u ? wu(e) : _u.addEventListener("resize", () => wu(e), { once: !0 });
+function Tu(e, t) {
+ t || !yu ? Eu(e) : yu.addEventListener("resize", () => Eu(e), { once: !0 });
}
-function wu(e) {
+function Eu(e) {
let t = document.scrollingElement || document.documentElement, n = e;
for (; n && n !== t;) {
- let e = lo(n);
+ let e = fo(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;
- _u && (n = Math.min(n, _u.offsetTop + _u.height));
+ yu && (n = Math.min(n, yu.offsetTop + yu.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)),
@@ -7907,14 +7907,14 @@ function wu(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useModalOverlay.mjs
-function Tu(e, t, n) {
- let { overlayProps: r, underlayProps: i } = gu({
+function Du(e, t, n) {
+ let { overlayProps: r, underlayProps: i } = vu({
...e,
isOpen: t.isOpen,
onClose: t.close
}, n);
- return bu({ isDisabled: !t.isOpen }), Sc(), (0, S.useEffect)(() => {
- if (t.isOpen && n.current) return es([n.current], { shouldUseInert: !0 });
+ return Su({ isDisabled: !t.isOpen }), wc(), (0, C.useEffect)(() => {
+ if (t.isOpen && n.current) return ns([n.current], { shouldUseInert: !0 });
}, [t.isOpen, n]), {
modalProps: V(r),
underlayProps: i
@@ -7922,33 +7922,33 @@ function Tu(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/calculatePosition.mjs
-var Eu = {
+var Ou = {
top: "top",
bottom: "top",
left: "left",
right: "left"
-}, Du = {
+}, ku = {
top: "bottom",
bottom: "top",
left: "right",
right: "left"
-}, Ou = {
+}, Au = {
top: "left",
left: "top"
-}, ku = {
+}, ju = {
top: "height",
left: "width"
-}, Au = {
+}, Mu = {
width: "totalWidth",
height: "totalHeight"
-}, ju = {}, Mu = () => typeof document < "u" ? window.visualViewport : null;
-function Nu(e, t) {
+}, Nu = {}, Pu = () => typeof document < "u" ? window.visualViewport : null;
+function Fu(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} = Wu(e, !1)), c.top = e.scrollTop, c.left = e.scrollLeft, i = n, a = r;
- return un() && (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} = Ku(e, !1)), c.top = e.scrollTop, c.left = e.scrollLeft, i = n, a = r;
+ return dn() && (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,
@@ -7958,7 +7958,7 @@ function Nu(e, t) {
left: s
};
}
-function Pu(e) {
+function Iu(e) {
return {
top: e.scrollTop,
left: e.scrollLeft,
@@ -7966,11 +7966,11 @@ function Pu(e) {
height: e.scrollHeight
};
}
-function Fu(e, t, n, r, i, a, o) {
- let s = i.scroll[e] ?? 0, c = r[ku[e]], l = o[e] + r.scroll[Eu[e]] + a, u = o[e] + r.scroll[Eu[e]] + c - a, d = t - s + r.scroll[Eu[e]] + o[e] - r[Eu[e]], f = t - s + n + r.scroll[Eu[e]] + o[e] - r[Eu[e]];
+function Lu(e, t, n, r, i, a, o) {
+ let s = i.scroll[e] ?? 0, c = r[ju[e]], l = o[e] + r.scroll[Ou[e]] + a, u = o[e] + r.scroll[Ou[e]] + c - a, d = t - s + r.scroll[Ou[e]] + o[e] - r[Ou[e]], f = t - s + n + r.scroll[Ou[e]] + o[e] - r[Ou[e]];
return d < l ? l - d : f > u ? Math.max(u - f, l - d) : 0;
}
-function Iu(e) {
+function Ru(e) {
let t = window.getComputedStyle(e);
return {
top: parseInt(t.marginTop, 10) || 0,
@@ -7979,55 +7979,55 @@ function Iu(e) {
right: parseInt(t.marginRight, 10) || 0
};
}
-function Lu(e) {
- if (ju[e]) return ju[e];
- let [t, n] = e.split(" "), r = Eu[t] || "right", i = Ou[r];
- Eu[n] || (n = "center");
- let a = ku[r], o = ku[i];
- return ju[e] = {
+function zu(e) {
+ if (Nu[e]) return Nu[e];
+ let [t, n] = e.split(" "), r = Ou[t] || "right", i = Au[r];
+ Ou[n] || (n = "center");
+ let a = ju[r], o = ju[i];
+ return Nu[e] = {
placement: t,
crossPlacement: n,
axis: r,
crossAxis: i,
size: a,
crossSize: o
- }, ju[e];
+ }, Nu[e];
}
-function Ru(e, t, n, r, i, a, o, s, c, l, u) {
+function Bu(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] = Go(_[m], v, y), d === p) {
- let t = s ? u[h] : u[Au[h]];
- _[Du[p]] = Math.floor(t - e[p] + i);
+ if (_[m] = qo(_[m], v, y), d === p) {
+ let t = s ? u[h] : u[Mu[h]];
+ _[ku[p]] = Math.floor(t - e[p] + i);
} else _[p] = Math.floor(e[p] + e[h] + i);
return _;
}
-function zu(e, t, n, r, i, a, o, s, c, l, u) {
- let d = (e.top == null ? c[Au.height] - (e.bottom ?? 0) - o : e.top) - (c.scroll.top ?? 0), f = l ? n.top : 0, p = {
+function Vu(e, t, n, r, i, a, o, s, c, l, u) {
+ let d = (e.top == null ? c[Mu.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 Bu(e, t, n, r, i, a, o, s) {
+function Hu(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[Du[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[Du[l]] - i);
+ return c === l ? Math.max(0, n[l] - (o.scroll[l] ?? 0) - (e[l] + (s ? t[l] : 0)) - (r[l] ?? 0) - r[ku[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[ku[l]] - i);
}
-function Vu(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
- let v = Lu(e), { size: y, crossAxis: b, crossSize: x, placement: S, crossPlacement: C } = v, w = Ru(t, s, n, v, u, d, l, f, m, h, c), T = u, E = Bu(s, l, t, i, a + u, v, c, g);
+function Uu(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
+ let v = zu(e), { size: y, crossAxis: b, crossSize: x, placement: S, crossPlacement: C } = v, w = Bu(t, s, n, v, u, d, l, f, m, h, c), T = u, E = Hu(s, l, t, i, a + u, v, c, g);
if (o && n[y] > E) {
- let e = Lu(`${Du[S]} ${C}`), r = Ru(t, s, n, e, u, d, l, f, m, h, c);
- Bu(s, l, t, i, a + u, e, c, g) > E && (v = e, w = r, T = u);
+ let e = zu(`${ku[S]} ${C}`), r = Bu(t, s, n, e, u, d, l, f, m, h, c);
+ Hu(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 = Fu(b, w[b], n[x], s, c, a, l);
+ let O = Lu(b, w[b], n[x], s, c, a, l);
w[b] += O;
- let k = zu(w, s, l, f, i, a, n.height, D, c, g, _);
- p && p < k && (k = p), n.height = Math.min(n.height, k), w = Ru(t, s, n, v, T, d, l, f, m, h, c), O = Fu(b, w[b], n[x], s, c, a, l), w[b] += O;
- let A = {}, j = t[b] - w[b] - i[Eu[b]], M = j + .5 * t[x], N = m / 2 + h, ee = Eu[b] === "left" ? (i.left ?? 0) + (i.right ?? 0) : (i.top ?? 0) + (i.bottom ?? 0), P = n[x] - ee - m / 2 - h;
- A[b] = Go(Go(M, t[b] + m / 2 - (w[b] + i[Eu[b]]), t[b] + t[x] - m / 2 - (w[b] + i[Eu[b]])), N, P), {placement: S, crossPlacement: C} = v, m ? j = A[b] : C === "right" ? j += t[x] : C === "center" && (j += t[x] / 2);
+ let k = Vu(w, s, l, f, i, a, n.height, D, c, g, _);
+ p && p < k && (k = p), n.height = Math.min(n.height, k), w = Bu(t, s, n, v, T, d, l, f, m, h, c), O = Lu(b, w[b], n[x], s, c, a, l), w[b] += O;
+ let A = {}, j = t[b] - w[b] - i[Ou[b]], M = j + .5 * t[x], N = m / 2 + h, ee = Ou[b] === "left" ? (i.left ?? 0) + (i.right ?? 0) : (i.top ?? 0) + (i.bottom ?? 0), P = n[x] - ee - m / 2 - h;
+ A[b] = qo(qo(M, t[b] + m / 2 - (w[b] + i[Ou[b]]), t[b] + t[x] - m / 2 - (w[b] + i[Ou[b]])), N, P), {placement: S, crossPlacement: C} = v, m ? j = A[b] : C === "right" ? j += t[x] : C === "center" && (j += t[x] / 2);
let F = S === "left" || S === "top" ? n[y] : 0, te = {
x: S === "top" || S === "bottom" ? j : F,
y: S === "left" || S === "right" ? j : F
@@ -8041,17 +8041,17 @@ function Vu(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
triggerAnchorPoint: te
};
}
-function Hu(e) {
- let { placement: t, targetNode: n, overlayNode: r, scrollNode: i, padding: a, shouldFlip: o, boundaryElement: s, offset: c, crossOffset: l, maxHeight: u, arrowSize: d = 0, arrowBoundaryOffset: f = 0, targetRect: p } = e, m = Mu(), h = r instanceof HTMLElement ? Ku(r) : document.documentElement, g = h === document.documentElement, _ = window.getComputedStyle(h).position, v = !!_ && _ !== "static", y = g ? Wu(n, !1, p) : Gu(n, h, !1, p);
+function Wu(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 = Pu(), h = r instanceof HTMLElement ? Ju(r) : document.documentElement, g = h === document.documentElement, _ = window.getComputedStyle(h).position, v = !!_ && _ !== "static", y = g ? Ku(n, !1, p) : qu(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 = Wu(r, !0), x = Iu(r);
+ let b = Ku(r, !0), x = Ru(r);
b.width += (x.left ?? 0) + (x.right ?? 0), b.height += (x.top ?? 0) + (x.bottom ?? 0);
- let S = Pu(i), C = Nu(s, m), w = Nu(h, m), T;
+ let S = Iu(i), C = Fu(s, m), w = Fu(h, m), T;
if ((s.tagName === "BODY" || s.tagName === "HTML") && !g) {
- let e = Uu(h, !1);
+ let e = Gu(h, !1);
T = {
top: -(e.top - C.top),
left: -(e.left - C.left),
@@ -8063,11 +8063,11 @@ function Hu(e) {
left: 0,
width: 0,
height: 0
- } : Gu(s, h, !1);
+ } : qu(s, h, !1);
let E = z(s, h);
- return Vu(t, y, b, S, x, a, o, C, w, T, c, l, v, u, d, f, E, m);
+ return Uu(t, y, b, S, x, a, o, C, w, T, c, l, v, u, d, f, E, m);
}
-function Uu(e, t) {
+function Gu(e, t) {
let { top: n, left: r, width: i, height: a } = e.getBoundingClientRect();
return t && e instanceof e.ownerDocument.defaultView.HTMLElement && (i = e.offsetWidth, a = e.offsetHeight), {
top: n,
@@ -8076,8 +8076,8 @@ function Uu(e, t) {
height: a
};
}
-function Wu(e, t, n) {
- let { top: r, left: i, width: a, height: o } = n || Uu(e, t), { scrollTop: s, scrollLeft: c, clientTop: l, clientLeft: u } = document.documentElement;
+function Ku(e, t, n) {
+ let { top: r, left: i, width: a, height: o } = n || Gu(e, t), { scrollTop: s, scrollLeft: c, clientTop: l, clientLeft: u } = document.documentElement;
return {
top: r + s - l,
left: i + c - u,
@@ -8085,30 +8085,30 @@ function Wu(e, t, n) {
height: o
};
}
-function Gu(e, t, n, r) {
+function qu(e, t, n, r) {
let i = window.getComputedStyle(e), a;
- if (i.position === "fixed") a = r || Uu(e, n);
+ if (i.position === "fixed") a = r || Gu(e, n);
else {
- a = Wu(e, n, r);
- let i = Wu(t, n), o = window.getComputedStyle(t);
+ a = Ku(e, n, r);
+ let i = Ku(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 Ku(e) {
+function Ju(e) {
let t = e.offsetParent;
- if (t && t === document.body && window.getComputedStyle(t).position === "static" && !qu(t) && (t = document.documentElement), t == null) for (t = e.parentElement; t && !qu(t);) t = t.parentElement;
+ if (t && t === document.body && window.getComputedStyle(t).position === "static" && !Yu(t) && (t = document.documentElement), t == null) for (t = e.parentElement; t && !Yu(t);) t = t.parentElement;
return t || document.documentElement;
}
-function qu(e) {
+function Yu(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 Ju = typeof document < "u" ? window.visualViewport : null;
-function Yu(e) {
- let { direction: t } = Ri(), { 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, S.useState)(null), x = [
+var Xu = typeof document < "u" ? window.visualViewport : null;
+function Zu(e) {
+ let { direction: t } = zi(), { arrowSize: n, targetRef: r, overlayRef: i, arrowRef: a, scrollRef: o = i, placement: s = "bottom", containerPadding: c = 12, shouldFlip: l = !0, boundaryElement: u = typeof document < "u" ? document.body : null, offset: d = 0, crossOffset: f = 0, shouldUpdatePosition: p = !0, isOpen: m = !0, onClose: h, maxHeight: g, arrowBoundaryOffset: _ = 0, getTargetRect: v } = e, [y, b] = (0, C.useState)(null), x = [
p,
s,
i.current,
@@ -8125,15 +8125,15 @@ function Yu(e) {
g,
_,
n
- ], C = (0, S.useRef)(Ju?.scale);
- (0, S.useEffect)(() => {
- m && (C.current = Ju?.scale);
+ ], S = (0, C.useRef)(Xu?.scale);
+ (0, C.useEffect)(() => {
+ m && (S.current = Xu?.scale);
}, [m]);
- let w = (0, S.useCallback)(() => {
- if (p === !1 || !m || !i.current || !r.current || !u || Ju?.scale !== C.current) return;
+ let w = (0, C.useCallback)(() => {
+ if (p === !1 || !m || !i.current || !r.current || !u || Xu?.scale !== S.current) return;
let e = null;
- if (o.current && Rt(o.current)) {
- let t = It()?.getBoundingClientRect(), n = o.current.getBoundingClientRect();
+ if (o.current && zt(o.current)) {
+ let t = Lt()?.getBoundingClientRect(), n = o.current.getBoundingClientRect();
e = {
type: "top",
offset: (t?.top ?? 0) - n.top
@@ -8141,8 +8141,8 @@ function Yu(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 = Hu({
- placement: Zu(s, t),
+ let y = Wu({
+ placement: $u(s, t),
overlayNode: i.current,
targetNode: r.current,
scrollNode: o.current || i.current,
@@ -8152,28 +8152,28 @@ function Yu(e) {
offset: d,
crossOffset: f,
maxHeight: g,
- arrowSize: n ?? (a?.current ? Uu(a.current, !0).width : 0),
+ arrowSize: n ?? (a?.current ? Gu(a.current, !0).width : 0),
arrowBoundaryOffset: _,
targetRect: v?.(r.current)
});
if (!y.position) return;
h.style.top = "", h.style.bottom = "", h.style.left = "", h.style.right = "", Object.keys(y.position).forEach((e) => h.style[e] = y.position[e] + "px"), h.style.maxHeight = y.maxHeight == null ? "" : y.maxHeight + "px";
- let x = It();
+ let x = Lt();
if (e && x && o.current) {
let t = x.getBoundingClientRect(), n = o.current.getBoundingClientRect(), r = t[e.type] - n[e.type];
o.current.scrollTop += r - e.offset;
}
b(y);
}, x);
- Yt(w, x), Xu(w), jl({
+ Xt(w, x), Qu(w), Nl({
ref: i,
onResize: w
- }), jl({
+ }), Nl({
ref: r,
onResize: w
});
- let T = (0, S.useRef)(!1);
- Yt(() => {
+ let T = (0, C.useRef)(!1);
+ Xt(() => {
let e, t = () => {
T.current = !0, clearTimeout(e), e = setTimeout(() => {
T.current = !1;
@@ -8181,16 +8181,16 @@ function Yu(e) {
}, n = () => {
T.current && t();
};
- Ju?.addEventListener("resize", t), Ju?.addEventListener("scroll", n);
- let r = Mt(Lt(window), "scroll", n);
+ Xu?.addEventListener("resize", t), Xu?.addEventListener("scroll", n);
+ let r = Nt(Rt(window), "scroll", n);
return () => {
- Ju?.removeEventListener("resize", t), Ju?.removeEventListener("scroll", n), r();
+ Xu?.removeEventListener("resize", t), Xu?.removeEventListener("scroll", n), r();
};
}, [w]);
- let E = (0, S.useCallback)(() => {
+ let E = (0, C.useCallback)(() => {
T.current || h?.();
}, [h, T]);
- return Zs({
+ return $s({
triggerRef: r,
isOpen: m,
onClose: h && E
@@ -8216,25 +8216,25 @@ function Yu(e) {
updatePosition: w
};
}
-function Xu(e) {
- Yt(() => (window.addEventListener("resize", e, !1), () => {
+function Qu(e) {
+ Xt(() => (window.addEventListener("resize", e, !1), () => {
window.removeEventListener("resize", e, !1);
}), [e]);
}
-function Zu(e, t) {
+function $u(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 Qu(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 } = gu({
+function ed(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 } = vu({
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 } = Yu({
+ }, i ?? r), { overlayProps: f, arrowProps: p, placement: m, triggerAnchorPoint: h } = Zu({
...c,
targetRef: n,
overlayRef: r,
@@ -8242,15 +8242,15 @@ function Qu(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)
});
- bu({ isDisabled: a || !t.isOpen }), (0, S.useEffect)(() => {
- if (t.isOpen && r.current) return a ? ts(i?.current ?? r.current) : es([i?.current ?? r.current], { shouldUseInert: !0 });
+ Su({ isDisabled: a || !t.isOpen }), (0, C.useEffect)(() => {
+ if (t.isOpen && r.current) return a ? rs(i?.current ?? r.current) : ns([i?.current ?? r.current], { shouldUseInert: !0 });
}, [
a,
t.isOpen,
r,
i
]);
- let { focusWithinProps: g } = Bo(e);
+ let { focusWithinProps: g } = Ho(e);
return {
popoverProps: V(u, f, g),
arrowProps: p,
@@ -8261,13 +8261,13 @@ function Qu(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/radio/utils.mjs
-var $u = /* @__PURE__ */ new WeakMap();
+var td = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/radio/useRadio.mjs
-function ed(e, t, n) {
+function nd(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: _ } = ya({
+ }, { pressProps: g, isPressed: _ } = xa({
onPressStart: s,
onPressEnd: c,
onPressChange: l,
@@ -8275,7 +8275,7 @@ function ed(e, t, n) {
onPressUp: d,
onClick: f,
isDisabled: p
- }), { pressProps: v, isPressed: y } = ya({
+ }), { pressProps: v, isPressed: y } = xa({
onPressStart: s,
onPressEnd: c,
onPressChange: l,
@@ -8285,17 +8285,17 @@ function ed(e, t, n) {
onPress(e) {
u?.(e), t.setSelectedValue(r), n.current?.focus();
}
- }), { focusableProps: b } = Hr(V(e, { onFocus: () => t.setLastFocusedValue(r) }), n), x = V(g, b), C = U(e, { labelable: !0 }), w = -1;
+ }), { focusableProps: b } = Ur(V(e, { onFocus: () => t.setLastFocusedValue(r) }), n), x = V(g, b), S = H(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 } = $u.get(t);
- vo(n, t.defaultSelectedValue, t.setSelectedValue), yo({ validationBehavior: k }, t, n);
- let A = wo();
+ let { name: T, form: E, descriptionId: D, errorMessageId: O, validationBehavior: k } = td.get(t);
+ bo(n, t.defaultSelectedValue, t.setSelectedValue), xo({ validationBehavior: k }, t, n);
+ let A = Eo();
return {
- labelProps: V(v, (0, S.useMemo)(() => ({
+ labelProps: V(v, (0, C.useMemo)(() => ({
onClick: (e) => e.preventDefault(),
onMouseDown: (e) => e.preventDefault()
}), [])),
- inputProps: V(C, {
+ inputProps: V(S, {
...x,
type: "radio",
name: T,
@@ -8321,13 +8321,13 @@ function ed(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/radio/useRadioGroup.mjs
-function td(e, t) {
- let { name: n, form: r, isReadOnly: i, isRequired: a, isDisabled: o, orientation: s = "vertical", validationBehavior: c = "aria" } = e, { direction: l } = Ri(), { isInvalid: u, validationErrors: d, validationDetails: f } = t.displayValidation, { labelProps: p, fieldProps: m, descriptionProps: h, errorMessageProps: g } = zo({
+function rd(e, t) {
+ let { name: n, form: r, isReadOnly: i, isRequired: a, isDisabled: o, orientation: s = "vertical", validationBehavior: c = "aria" } = e, { direction: l } = zi(), { isInvalid: u, validationErrors: d, validationDetails: f } = t.displayValidation, { labelProps: p, fieldProps: m, descriptionProps: h, errorMessageProps: g } = Vo({
...e,
labelElementType: "span",
isInvalid: t.isInvalid,
errorMessage: e.errorMessage || d
- }), _ = U(e, { labelable: !0 }), { focusWithinProps: v } = Bo({
+ }), _ = H(e, { labelable: !0 }), { focusWithinProps: v } = Ho({
onBlurWithin(n) {
e.onBlur?.(n), t.selectedValue || t.setLastFocusedValue(null);
},
@@ -8335,13 +8335,13 @@ function td(e, t) {
onFocusWithinChange: e.onFocusChange
});
function y(e, n) {
- let r = $a(n.currentTarget, {
+ let r = to(n.currentTarget, {
from: B(n),
- accept: (e) => e instanceof Dt(e).HTMLInputElement && e.type === "radio"
+ accept: (e) => e instanceof Ot(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 } = Lr({
+ let { keyboardProps: b } = Rr({
shortcuts: {
ArrowRight: (e) => y(l === "rtl" && s !== "vertical" ? "prev" : "next", e),
ArrowLeft: (e) => y(l === "rtl" && s !== "vertical" ? "next" : "prev", e),
@@ -8349,8 +8349,8 @@ function td(e, t) {
ArrowUp: (e) => y("prev", e)
},
allowRepeats: !0
- }), x = gr(n);
- return $u.set(t, {
+ }), x = _r(n);
+ return td.set(t, {
name: x,
form: r,
descriptionId: h.id,
@@ -8379,21 +8379,21 @@ function td(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/select/useSelect.mjs
-var G = /* @__PURE__ */ new WeakMap();
-function nd(e, t, n) {
- let { keyboardDelegate: r, isDisabled: i, isRequired: a, name: o, form: s, validationBehavior: c = "aria" } = e, l = hc({
+var id = /* @__PURE__ */ new WeakMap();
+function ad(e, t, n) {
+ let { keyboardDelegate: r, isDisabled: i, isRequired: a, name: o, form: s, validationBehavior: c = "aria" } = e, l = _c({
usage: "search",
sensitivity: "base"
- }), u = (0, S.useMemo)(() => r || new ds(t.collection, t.disabledKeys, n, l), [
+ }), u = (0, C.useMemo)(() => r || new ps(t.collection, t.disabledKeys, n, l), [
r,
t.collection,
t.disabledKeys,
l,
n
- ]), { menuTriggerProps: d, menuProps: f } = ec({
+ ]), { menuTriggerProps: d, menuProps: f } = nc({
isDisabled: i,
type: "listbox"
- }, t, n), { keyboardProps: p } = Lr({
+ }, t, n), { keyboardProps: p } = Rr({
shortcuts: {
ArrowLeft: () => {
if (t.selectionManager.selectionMode === "multiple") return !1;
@@ -8409,21 +8409,21 @@ function nd(e, t, n) {
allowRepeats: !0,
onKeyDown: e.onKeyDown,
onKeyUp: e.onKeyUp
- }), { typeSelectProps: m } = nc({
+ }), { typeSelectProps: m } = ic({
keyboardDelegate: u,
selectionManager: t.selectionManager,
onTypeSelect(e) {
t.setSelectedKey(e);
}
- }), { isInvalid: h, validationErrors: g, validationDetails: _ } = t.displayValidation, { labelProps: v, fieldProps: y, descriptionProps: b, errorMessageProps: x } = zo({
+ }), { isInvalid: h, validationErrors: g, validationDetails: _ } = t.displayValidation, { labelProps: v, fieldProps: y, descriptionProps: b, errorMessageProps: x } = Vo({
...e,
labelElementType: "span",
isInvalid: h,
errorMessage: e.errorMessage || g
});
t.selectionManager.selectionMode === "multiple" && (m = {});
- let C = U(e, { labelable: !0 }), w = V(m, d, y), T = gr();
- return G.set(t, {
+ let S = H(e, { labelable: !0 }), w = V(m, d, y), T = _r();
+ return id.set(t, {
isDisabled: i,
isRequired: a,
name: o,
@@ -8433,13 +8433,13 @@ function nd(e, t, n) {
labelProps: {
...v,
onClick: () => {
- e.isDisabled || (n.current?.focus(), $n("keyboard"));
+ e.isDisabled || (n.current?.focus(), er("keyboard"));
}
},
- triggerProps: V(C, {
+ triggerProps: V(S, {
...w,
isDisabled: i,
- onKeyDown: ur(w.onKeyDown, p.onKeyDown),
+ onKeyDown: dr(w.onKeyDown, p.onKeyDown),
onKeyUp: p.onKeyUp,
"aria-labelledby": [
T,
@@ -8484,17 +8484,17 @@ function nd(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/select/HiddenSelect.mjs
-function rd(e, t, n) {
- let r = G.get(t) || {}, { autoComplete: i, name: a = r.name, form: o = r.form, isDisabled: s = r.isDisabled } = e, { validationBehavior: c, isRequired: l } = r, { visuallyHiddenProps: u } = qo({ style: {
+function od(e, t, n) {
+ let r = id.get(t) || {}, { autoComplete: i, name: a = r.name, form: o = r.form, isDisabled: s = r.isDisabled } = e, { validationBehavior: c, isRequired: l } = r, { visuallyHiddenProps: u } = Yo({ style: {
position: "fixed",
top: 0,
left: 0
} });
- vo(e.selectRef, t.defaultValue, t.setValue), yo({
+ bo(e.selectRef, t.defaultValue, t.setValue), xo({
validationBehavior: c,
focus: () => n.current?.focus()
}, t, e.selectRef);
- let d = t.setValue, f = (0, S.useCallback)((e) => {
+ let d = t.setValue, f = (0, C.useCallback)((e) => {
let t = B(e);
t.multiple ? d(Array.from(t.selectedOptions, (e) => e.value)) : d(e.currentTarget.value);
}, [d]);
@@ -8520,32 +8520,32 @@ function rd(e, t, n) {
}
};
}
-function id(e) {
- let { state: t, triggerRef: n, label: r, name: i, form: a, isDisabled: o } = e, s = (0, S.useRef)(null), c = (0, S.useRef)(null), { containerProps: l, selectProps: u } = rd({
+function sd(e) {
+ let { state: t, triggerRef: n, label: r, name: i, form: a, isDisabled: o } = e, s = (0, C.useRef)(null), c = (0, C.useRef)(null), { containerProps: l, selectProps: u } = od({
...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__*/ S.createElement("div", {
+ if (t.collection.size <= 300) return /*#__PURE__*/ C.createElement("div", {
...l,
"data-testid": "hidden-select-container"
- }, /*#__PURE__*/ S.createElement("label", null, r, /*#__PURE__*/ S.createElement("select", {
+ }, /*#__PURE__*/ C.createElement("label", null, r, /*#__PURE__*/ C.createElement("select", {
...u,
ref: s
- }, /*#__PURE__*/ S.createElement("option", {
+ }, /*#__PURE__*/ C.createElement("option", {
value: "",
label: "\xA0"
}, "\xA0"), [...t.collection.getKeys()].map((e) => {
let n = t.collection.getItem(e);
- if (n && n.type === "item") return /*#__PURE__*/ S.createElement("option", {
+ if (n && n.type === "item") return /*#__PURE__*/ C.createElement("option", {
key: n.key,
value: n.key
}, n.textValue);
- }), t.collection.size === 0 && i && d.map((e, t) => /*#__PURE__*/ S.createElement("option", {
+ }), t.collection.size === 0 && i && d.map((e, t) => /*#__PURE__*/ C.createElement("option", {
key: t,
value: e ?? ""
})))));
if (i) {
- let { validationBehavior: e } = G.get(t) || {};
+ let { validationBehavior: e } = id.get(t) || {};
d.length === 0 && (d = [null]);
let n = d.map((t, n) => {
let r = {
@@ -8556,7 +8556,7 @@ function id(e) {
disabled: o,
value: t ?? ""
};
- return e === "native" ? /*#__PURE__*/ S.createElement("input", {
+ return e === "native" ? /*#__PURE__*/ C.createElement("input", {
key: n,
...r,
ref: n === 0 ? c : null,
@@ -8564,20 +8564,20 @@ function id(e) {
type: "text",
required: n === 0 && u.required,
onChange: () => {}
- }) : /*#__PURE__*/ S.createElement("input", {
+ }) : /*#__PURE__*/ C.createElement("input", {
key: n,
...r,
ref: n === 0 ? c : null
});
});
- return /*#__PURE__*/ S.createElement(S.Fragment, null, n);
+ return /*#__PURE__*/ C.createElement(C.Fragment, null, n);
}
return null;
}
//#endregion
//#region node_modules/react-aria/dist/private/switch/useSwitch.mjs
-function ad(e, t, n) {
- let { labelProps: r, inputProps: i, isSelected: a, ...o } = Io(e, t, n);
+function cd(e, t, n) {
+ let { labelProps: r, inputProps: i, isSelected: a, ...o } = Ro(e, t, n);
return {
labelProps: r,
inputProps: {
@@ -8591,10 +8591,10 @@ function ad(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/GridKeyboardDelegate.mjs
-var od = class {
+var ld = class {
constructor(e) {
if (this.collection = e.collection, this.disabledKeys = e.disabledKeys, this.disabledBehavior = e.disabledBehavior || "all", this.direction = e.direction, this.collator = e.collator, !e.layout && !e.ref) throw Error("Either a layout or a ref must be specified.");
- this.layoutDelegate = e.layoutDelegate || (e.layout ? new sd(e.layout) : new us(e.ref)), this.focusMode = e.focusMode ?? "row";
+ this.layoutDelegate = e.layoutDelegate || (e.layout ? new ud(e.layout) : new fs(e.ref)), this.focusMode = e.focusMode ?? "row";
}
isCell(e) {
return e.type === "cell";
@@ -8630,7 +8630,7 @@ var od = class {
let n = this.collection.getItem(e);
if (!n) return null;
let r = 0;
- for (let e of oc(n, this.collection)) {
+ for (let e of cc(n, this.collection)) {
if (e.colSpan && e.colSpan + r > t || (e.colSpan && (r = r + e.colSpan - 1), r === t)) return e.key ?? null;
r++;
}
@@ -8664,13 +8664,13 @@ var od = class {
let t = this.collection.getItem(e);
if (!t) return null;
if (this.isRow(t)) {
- let e = oc(t, this.collection);
- return (this.direction === "rtl" ? lc(e)?.key : sc(e)?.key) ?? null;
+ let e = cc(t, this.collection);
+ return (this.direction === "rtl" ? dc(e)?.key : lc(e)?.key) ?? null;
}
if (this.isCell(t) && t.parentKey != null) {
let n = this.collection.getItem(t.parentKey);
if (!n) return null;
- let r = oc(n, this.collection), i = (this.direction === "rtl" ? cc(r, t.index - 1) : cc(r, t.index + 1)) ?? null;
+ let r = cc(n, this.collection), i = (this.direction === "rtl" ? uc(r, t.index - 1) : uc(r, t.index + 1)) ?? null;
return i ? i.key ?? null : this.focusMode === "row" ? t.parentKey ?? null : (this.direction === "rtl" ? this.getFirstKey(e) : this.getLastKey(e)) ?? null;
}
return null;
@@ -8679,13 +8679,13 @@ var od = class {
let t = this.collection.getItem(e);
if (!t) return null;
if (this.isRow(t)) {
- let e = oc(t, this.collection);
- return (this.direction === "rtl" ? sc(e)?.key : lc(e)?.key) ?? null;
+ let e = cc(t, this.collection);
+ return (this.direction === "rtl" ? lc(e)?.key : dc(e)?.key) ?? null;
}
if (this.isCell(t) && t.parentKey != null) {
let n = this.collection.getItem(t.parentKey);
if (!n) return null;
- let r = oc(n, this.collection), i = (this.direction === "rtl" ? cc(r, t.index + 1) : cc(r, t.index - 1)) ?? null;
+ let r = cc(n, this.collection), i = (this.direction === "rtl" ? uc(r, t.index + 1) : uc(r, t.index - 1)) ?? null;
return i ? i.key ?? null : this.focusMode === "row" ? t.parentKey ?? null : (this.direction === "rtl" ? this.getLastKey(e) : this.getFirstKey(e)) ?? null;
}
return null;
@@ -8696,13 +8696,13 @@ var od = class {
if (r = this.collection.getItem(n), !r) return null;
if (this.isCell(r) && !t && r.parentKey != null) {
let e = this.collection.getItem(r.parentKey);
- return e ? sc(oc(e, this.collection))?.key ?? null : null;
+ return e ? lc(cc(e, this.collection))?.key ?? null : null;
}
}
if (n = this.findNextKey(void 0, (e) => e.type === "item"), n != null && (r && this.isCell(r) && t || this.focusMode === "cell")) {
let e = this.collection.getItem(n);
if (!e) return null;
- n = sc(oc(e, this.collection))?.key ?? null;
+ n = lc(cc(e, this.collection))?.key ?? null;
}
return n;
}
@@ -8712,13 +8712,13 @@ var od = class {
if (r = this.collection.getItem(n), !r) return null;
if (this.isCell(r) && !t && r.parentKey != null) {
let e = this.collection.getItem(r.parentKey);
- return e ? lc(oc(e, this.collection))?.key ?? null : null;
+ return e ? dc(cc(e, this.collection))?.key ?? null : null;
}
}
if (n = this.findPreviousKey(void 0, (e) => e.type === "item"), n != null && (r && this.isCell(r) && t || this.focusMode === "cell")) {
let e = this.collection.getItem(n);
if (!e) return null;
- n = lc(oc(e, this.collection))?.key ?? null;
+ n = dc(cc(e, this.collection))?.key ?? null;
}
return n;
}
@@ -8754,13 +8754,13 @@ var od = class {
if (!t) return null;
if (t.textValue) {
let n = t.textValue.slice(0, e.length);
- if (this.collator.compare(n, e) === 0) return this.isRow(t) && this.focusMode === "cell" ? sc(oc(t, this.collection))?.key ?? null : t.key;
+ if (this.collator.compare(n, e) === 0) return this.isRow(t) && this.focusMode === "cell" ? lc(cc(t, this.collection))?.key ?? null : t.key;
}
n = this.findNextKey(n, (e) => e.type === "item"), n == null && !a && (n = this.getFirstKey(), a = !0);
}
return null;
}
-}, sd = class {
+}, ud = class {
constructor(e) {
this.layout = e;
}
@@ -8773,16 +8773,16 @@ var od = class {
getVisibleRect() {
return this.layout.virtualizer.visibleRect;
}
-}, cd = /* @__PURE__ */ new WeakMap();
+}, dd = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGrid.mjs
-function ld(e, t, n) {
+function fd(e, t, n) {
let { isVirtualized: r, disallowTypeAhead: i, keyboardDelegate: a, focusMode: o, scrollRef: s, getRowText: c, onRowAction: l, onCellAction: u, escapeKeyBehavior: d = "clearSelection", shouldSelectOnPressUp: f, keyboardNavigationBehavior: p = "arrow" } = e, { selectionManager: m } = t;
!e["aria-label"] && !e["aria-labelledby"] && console.warn("An aria-label or aria-labelledby prop is required for accessibility.");
- let h = hc({
+ let h = _c({
usage: "search",
sensitivity: "base"
- }), { direction: g } = Ri(), _ = t.selectionManager.disabledBehavior, v = (0, S.useMemo)(() => a || new od({
+ }), { direction: g } = zi(), _ = t.selectionManager.disabledBehavior, v = (0, C.useMemo)(() => a || new ld({
collection: t.collection,
disabledKeys: t.disabledKeys,
disabledBehavior: _,
@@ -8799,7 +8799,7 @@ function ld(e, t, n) {
g,
h,
o
- ]), { collectionProps: y } = ac({
+ ]), { collectionProps: y } = sc({
ref: n,
selectionManager: m,
keyboardDelegate: v,
@@ -8807,8 +8807,8 @@ function ld(e, t, n) {
scrollRef: s,
disallowTypeAhead: i,
escapeKeyBehavior: d
- }), b = gr(e.id);
- cd.set(t, {
+ }), b = _r(e.id);
+ dd.set(t, {
keyboardDelegate: v,
actions: {
onRowAction: l,
@@ -8817,48 +8817,48 @@ function ld(e, t, n) {
shouldSelectOnPressUp: f,
keyboardNavigationBehavior: p
});
- let x = bl({
+ let x = Sl({
selectionManager: m,
hasItemActions: !!(l || u)
- }), C = U(e, { labelable: !0 }), w = (0, S.useCallback)((e) => {
+ }), S = H(e, { labelable: !0 }), w = (0, C.useCallback)((e) => {
if (m.isFocused) {
z(e.currentTarget, B(e)) || m.setFocused(!1);
return;
}
z(e.currentTarget, B(e)) && m.setFocused(!0);
- }, [m]), T = (0, S.useMemo)(() => ({
+ }, [m]), T = (0, C.useMemo)(() => ({
onBlur: y.onBlur,
onFocus: w
- }), [w, y.onBlur]), E = vl(n, { isDisabled: t.collection.size !== 0 }), D = V(C, {
+ }), [w, y.onBlur]), E = bl(n, { isDisabled: t.collection.size !== 0 }), D = V(S, {
role: "grid",
id: b,
"aria-multiselectable": m.selectionMode === "multiple" ? "true" : void 0
}, t.isKeyboardNavigationDisabled ? T : y, t.collection.size === 0 && { tabIndex: E ? -1 : 0 } || void 0, x);
- return r && (D["aria-rowcount"] = t.collection.size, D["aria-colcount"] = t.collection.columnCount), gl({ getRowText: c }, t), { gridProps: D };
+ return r && (D["aria-rowcount"] = t.collection.size, D["aria-colcount"] = t.collection.columnCount), vl({ getRowText: c }, t), { gridProps: D };
}
//#endregion
//#region node_modules/react-aria/dist/private/table/utils.mjs
-var ud = /* @__PURE__ */ new WeakMap();
-function dd(e) {
+var pd = /* @__PURE__ */ new WeakMap();
+function md(e) {
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
}
-function fd(e, t) {
- let n = ud.get(e);
+function hd(e, t) {
+ let n = pd.get(e);
if (!n) throw Error("Unknown grid");
- return `${n}-${dd(t)}`;
+ return `${n}-${md(t)}`;
}
-function pd(e, t, n) {
- let r = ud.get(e);
+function gd(e, t, n) {
+ let r = pd.get(e);
if (!r) throw Error("Unknown grid");
- return `${r}-${dd(t)}-${dd(n)}`;
+ return `${r}-${md(t)}-${md(n)}`;
}
-function md(e, t) {
- return [...e.collection.rowHeaderColumnKeys].map((n) => pd(e, t, n)).join(" ");
+function _d(e, t) {
+ return [...e.collection.rowHeaderColumnKeys].map((n) => gd(e, t, n)).join(" ");
}
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ar-AE.mjs
-var hd = {};
-hd = {
+var vd = {};
+vd = {
ascending: "تصاعدي",
ascendingSort: (e) => `\u{62A}\u{631}\u{62A}\u{64A}\u{628} \u{62D}\u{633}\u{628} \u{627}\u{644}\u{639}\u{645}\u{648}\u{62F} ${e.columnName} \u{628}\u{62A}\u{631}\u{62A}\u{64A}\u{628} \u{62A}\u{635}\u{627}\u{639}\u{62F}\u{64A}`,
collapse: "طي",
@@ -8873,8 +8873,8 @@ hd = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/bg-BG.mjs
-var gd = {};
-gd = {
+var yd = {};
+yd = {
ascending: "възходящ",
ascendingSort: (e) => `\u{441}\u{43E}\u{440}\u{442}\u{438}\u{440}\u{430}\u{43D}\u{43E} \u{43F}\u{43E} \u{43A}\u{43E}\u{43B}\u{43E}\u{43D}\u{430} ${e.columnName} \u{432}\u{44A}\u{432} \u{432}\u{44A}\u{437}\u{445}\u{43E}\u{434}\u{44F}\u{449} \u{440}\u{435}\u{434}`,
collapse: "Свиване",
@@ -8889,8 +8889,8 @@ gd = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/cs-CZ.mjs
-var _d = {};
-_d = {
+var bd = {};
+bd = {
ascending: "vzestupně",
ascendingSort: (e) => `\u{159}azeno vzestupn\u{11B} podle sloupce ${e.columnName}`,
collapse: "Sbalit",
@@ -8905,8 +8905,8 @@ _d = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/da-DK.mjs
-var vd = {};
-vd = {
+var xd = {};
+xd = {
ascending: "stigende",
ascendingSort: (e) => `sorteret efter kolonne ${e.columnName} i stigende r\xe6kkef\xf8lge`,
collapse: "Skjul",
@@ -8921,8 +8921,8 @@ vd = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/de-DE.mjs
-var yd = {};
-yd = {
+var Sd = {};
+Sd = {
ascending: "aufsteigend",
ascendingSort: (e) => `sortiert nach Spalte ${e.columnName} in aufsteigender Reihenfolge`,
collapse: "Reduzieren",
@@ -8937,8 +8937,8 @@ yd = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/el-GR.mjs
-var bd = {};
-bd = {
+var Cd = {};
+Cd = {
ascending: "αύξουσα",
ascendingSort: (e) => `\u{3B4}\u{3B9}\u{3B1}\u{3BB}\u{3BF}\u{3B3}\u{3AE} \u{3B1}\u{3BD}\u{3AC} \u{3C3}\u{3C4}\u{3AE}\u{3BB}\u{3B7} ${e.columnName} \u{3C3}\u{3B5} \u{3B1}\u{3CD}\u{3BE}\u{3BF}\u{3C5}\u{3C3}\u{3B1} \u{3C3}\u{3B5}\u{3B9}\u{3C1}\u{3AC}`,
collapse: "Σύμπτυξη",
@@ -8953,8 +8953,8 @@ bd = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/en-US.mjs
-var xd = {};
-xd = {
+var wd = {};
+wd = {
select: "Select",
selectAll: "Select All",
sortable: "sortable column",
@@ -8969,8 +8969,8 @@ xd = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/es-ES.mjs
-var Sd = {};
-Sd = {
+var Td = {};
+Td = {
ascending: "ascendente",
ascendingSort: (e) => `ordenado por columna ${e.columnName} en sentido ascendente`,
collapse: "Contraer",
@@ -8985,8 +8985,8 @@ Sd = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/et-EE.mjs
-var Cd = {};
-Cd = {
+var Ed = {};
+Ed = {
ascending: "tõusev järjestus",
ascendingSort: (e) => `sorditud veeru j\xe4rgi ${e.columnName} t\xf5usvas j\xe4rjestuses`,
collapse: "Ahenda",
@@ -9001,8 +9001,8 @@ Cd = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/fi-FI.mjs
-var wd = {};
-wd = {
+var Dd = {};
+Dd = {
ascending: "nouseva",
ascendingSort: (e) => `lajiteltu sarakkeen ${e.columnName} mukaan nousevassa j\xe4rjestyksess\xe4`,
collapse: "Pienennä",
@@ -9017,8 +9017,8 @@ wd = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/fr-FR.mjs
-var Td = {};
-Td = {
+var Od = {};
+Od = {
ascending: "croissant",
ascendingSort: (e) => `tri\xe9 en fonction de la colonne\xa0${e.columnName} par ordre croissant`,
collapse: "Réduire",
@@ -9033,8 +9033,8 @@ Td = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/he-IL.mjs
-var Ed = {};
-Ed = {
+var kd = {};
+kd = {
ascending: "עולה",
ascendingSort: (e) => `\u{5DE}\u{5D5}\u{5D9}\u{5DF} \u{5DC}\u{5E4}\u{5D9} \u{5E2}\u{5DE}\u{5D5}\u{5D3}\u{5D4} ${e.columnName} \u{5D1}\u{5E1}\u{5D3}\u{5E8} \u{5E2}\u{5D5}\u{5DC}\u{5D4}`,
collapse: "כווץ",
@@ -9049,8 +9049,8 @@ Ed = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/hr-HR.mjs
-var Dd = {};
-Dd = {
+var Ad = {};
+Ad = {
ascending: "rastući",
ascendingSort: (e) => `razvrstano po stupcima ${e.columnName} rastu\u{107}em redoslijedom`,
collapse: "Sažmi",
@@ -9065,8 +9065,8 @@ Dd = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/hu-HU.mjs
-var Od = {};
-Od = {
+var jd = {};
+jd = {
ascending: "növekvő",
ascendingSort: (e) => `rendezve a(z) ${e.columnName} oszlop szerint, n\xf6vekv\u{151} sorrendben`,
collapse: "Összecsukás",
@@ -9081,8 +9081,8 @@ Od = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/it-IT.mjs
-var kd = {};
-kd = {
+var Md = {};
+Md = {
ascending: "crescente",
ascendingSort: (e) => `in ordine crescente in base alla colonna ${e.columnName}`,
collapse: "Comprimi",
@@ -9097,8 +9097,8 @@ kd = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ja-JP.mjs
-var Ad = {};
-Ad = {
+var Nd = {};
+Nd = {
ascending: "昇順",
ascendingSort: (e) => `\u{5217} ${e.columnName} \u{3092}\u{6607}\u{9806}\u{3067}\u{4E26}\u{3079}\u{66FF}\u{3048}`,
collapse: "折りたたむ",
@@ -9113,8 +9113,8 @@ Ad = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ko-KR.mjs
-var jd = {};
-jd = {
+var Pd = {};
+Pd = {
ascending: "오름차순",
ascendingSort: (e) => `${e.columnName} \u{C5F4}\u{C744} \u{AE30}\u{C900}\u{C73C}\u{B85C} \u{C624}\u{B984}\u{CC28}\u{C21C}\u{C73C}\u{B85C} \u{C815}\u{B82C}\u{B428}`,
collapse: "접기",
@@ -9129,8 +9129,8 @@ jd = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/lt-LT.mjs
-var Md = {};
-Md = {
+var Fd = {};
+Fd = {
ascending: "didėjančia tvarka",
ascendingSort: (e) => `surikiuota pagal stulpel\u{12F} ${e.columnName} did\u{117}jan\u{10D}ia tvarka`,
collapse: "Sutraukti",
@@ -9145,8 +9145,8 @@ Md = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/lv-LV.mjs
-var Nd = {};
-Nd = {
+var Id = {};
+Id = {
ascending: "augošā secībā",
ascendingSort: (e) => `k\u{101}rtots p\u{113}c kolonnas ${e.columnName} augo\u{161}\u{101} sec\u{12B}b\u{101}`,
collapse: "Sakļaut",
@@ -9161,8 +9161,8 @@ Nd = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/nb-NO.mjs
-var Pd = {};
-Pd = {
+var Ld = {};
+Ld = {
ascending: "stigende",
ascendingSort: (e) => `sortert etter kolonne ${e.columnName} i stigende rekkef\xf8lge`,
collapse: "Skjul",
@@ -9177,8 +9177,8 @@ Pd = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/nl-NL.mjs
-var Fd = {};
-Fd = {
+var Rd = {};
+Rd = {
ascending: "oplopend",
ascendingSort: (e) => `gesorteerd in oplopende volgorde in kolom ${e.columnName}`,
collapse: "Samenvouwen",
@@ -9193,8 +9193,8 @@ Fd = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/pl-PL.mjs
-var Id = {};
-Id = {
+var zd = {};
+zd = {
ascending: "rosnąco",
ascendingSort: (e) => `posortowano wed\u{142}ug kolumny ${e.columnName} w porz\u{105}dku rosn\u{105}cym`,
collapse: "Zwiń",
@@ -9209,8 +9209,8 @@ Id = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/pt-BR.mjs
-var Ld = {};
-Ld = {
+var Bd = {};
+Bd = {
ascending: "crescente",
ascendingSort: (e) => `classificado pela coluna ${e.columnName} em ordem crescente`,
collapse: "Recolher",
@@ -9225,8 +9225,8 @@ Ld = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/pt-PT.mjs
-var Rd = {};
-Rd = {
+var Vd = {};
+Vd = {
ascending: "ascendente",
ascendingSort: (e) => `Ordenar por coluna ${e.columnName} em ordem ascendente`,
collapse: "Colapsar",
@@ -9241,8 +9241,8 @@ Rd = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ro-RO.mjs
-var zd = {};
-zd = {
+var Hd = {};
+Hd = {
ascending: "crescătoare",
ascendingSort: (e) => `sortate dup\u{103} coloana ${e.columnName} \xeen ordine cresc\u{103}toare`,
collapse: "Restrângeți",
@@ -9257,8 +9257,8 @@ zd = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ru-RU.mjs
-var Bd = {};
-Bd = {
+var Ud = {};
+Ud = {
ascending: "возрастание",
ascendingSort: (e) => `\u{441}\u{43E}\u{440}\u{442}\u{438}\u{440}\u{43E}\u{432}\u{430}\u{442}\u{44C} \u{441}\u{442}\u{43E}\u{43B}\u{431}\u{435}\u{446} ${e.columnName} \u{432} \u{43F}\u{43E}\u{440}\u{44F}\u{434}\u{43A}\u{435} \u{432}\u{43E}\u{437}\u{440}\u{430}\u{441}\u{442}\u{430}\u{43D}\u{438}\u{44F}`,
collapse: "Свернуть",
@@ -9273,8 +9273,8 @@ Bd = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sk-SK.mjs
-var Vd = {};
-Vd = {
+var Wd = {};
+Wd = {
ascending: "vzostupne",
ascendingSort: (e) => `zoraden\xe9 zostupne pod\u{13E}a st\u{13A}pca ${e.columnName}`,
collapse: "Zbaliť",
@@ -9289,8 +9289,8 @@ Vd = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sl-SI.mjs
-var Hd = {};
-Hd = {
+var Gd = {};
+Gd = {
ascending: "naraščajoče",
ascendingSort: (e) => `razvr\u{161}\u{10D}eno po stolpcu ${e.columnName} v nara\u{161}\u{10D}ajo\u{10D}em vrstnem redu`,
collapse: "Strni",
@@ -9305,8 +9305,8 @@ Hd = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sr-SP.mjs
-var Ud = {};
-Ud = {
+var Kd = {};
+Kd = {
ascending: "rastući",
ascendingSort: (e) => `sortirano po kolonama ${e.columnName} rastu\u{107}im redosledom`,
collapse: "Skupi",
@@ -9321,8 +9321,8 @@ Ud = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sv-SE.mjs
-var Wd = {};
-Wd = {
+var qd = {};
+qd = {
ascending: "stigande",
ascendingSort: (e) => `sorterat p\xe5 kolumn ${e.columnName} i stigande ordning`,
collapse: "Dölj",
@@ -9337,8 +9337,8 @@ Wd = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/tr-TR.mjs
-var Gd = {};
-Gd = {
+var Jd = {};
+Jd = {
ascending: "artan sırada",
ascendingSort: (e) => `${e.columnName} s\xfctuna g\xf6re artan d\xfczende s\u{131}rala`,
collapse: "Daralt",
@@ -9353,8 +9353,8 @@ Gd = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/uk-UA.mjs
-var Kd = {};
-Kd = {
+var Yd = {};
+Yd = {
ascending: "висхідний",
ascendingSort: (e) => `\u{432}\u{456}\u{434}\u{441}\u{43E}\u{440}\u{442}\u{43E}\u{432}\u{430}\u{43D}\u{43E} \u{437}\u{430} \u{441}\u{442}\u{43E}\u{432}\u{43F}\u{446}\u{435}\u{43C} ${e.columnName} \u{443} \u{432}\u{438}\u{441}\u{445}\u{456}\u{434}\u{43D}\u{43E}\u{43C}\u{443} \u{43F}\u{43E}\u{440}\u{44F}\u{434}\u{43A}\u{443}`,
collapse: "Згорнути",
@@ -9369,8 +9369,8 @@ Kd = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/zh-CN.mjs
-var qd = {};
-qd = {
+var Xd = {};
+Xd = {
ascending: "升序",
ascendingSort: (e) => `\u{6309}\u{5217} ${e.columnName} \u{5347}\u{5E8F}\u{6392}\u{5E8F}`,
collapse: "折叠",
@@ -9385,8 +9385,8 @@ qd = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/zh-TW.mjs
-var Jd = {};
-Jd = {
+var Zd = {};
+Zd = {
ascending: "遞增",
ascendingSort: (e) => `\u{5DF2}\u{4F9D}\u{64DA}\u{300C}${e.columnName}\u{300D}\u{6B04}\u{905E}\u{589E}\u{6392}\u{5E8F}`,
collapse: "收合",
@@ -9401,46 +9401,46 @@ Jd = {
};
//#endregion
//#region node_modules/react-aria/dist/private/table/intlStrings.mjs
-var Yd = {};
-Yd = {
- "ar-AE": hd,
- "bg-BG": gd,
- "cs-CZ": _d,
- "da-DK": vd,
- "de-DE": yd,
- "el-GR": bd,
- "en-US": xd,
- "es-ES": Sd,
- "et-EE": Cd,
- "fi-FI": wd,
- "fr-FR": Td,
- "he-IL": Ed,
- "hr-HR": Dd,
- "hu-HU": Od,
- "it-IT": kd,
- "ja-JP": Ad,
- "ko-KR": jd,
- "lt-LT": Md,
- "lv-LV": Nd,
- "nb-NO": Pd,
- "nl-NL": Fd,
- "pl-PL": Id,
- "pt-BR": Ld,
- "pt-PT": Rd,
- "ro-RO": zd,
- "ru-RU": Bd,
- "sk-SK": Vd,
- "sl-SI": Hd,
- "sr-SP": Ud,
- "sv-SE": Wd,
- "tr-TR": Gd,
- "uk-UA": Kd,
- "zh-CN": qd,
- "zh-TW": Jd
+var Qd = {};
+Qd = {
+ "ar-AE": vd,
+ "bg-BG": yd,
+ "cs-CZ": bd,
+ "da-DK": xd,
+ "de-DE": Sd,
+ "el-GR": Cd,
+ "en-US": wd,
+ "es-ES": Td,
+ "et-EE": Ed,
+ "fi-FI": Dd,
+ "fr-FR": Od,
+ "he-IL": kd,
+ "hr-HR": Ad,
+ "hu-HU": jd,
+ "it-IT": Md,
+ "ja-JP": Nd,
+ "ko-KR": Pd,
+ "lt-LT": Fd,
+ "lv-LV": Id,
+ "nb-NO": Ld,
+ "nl-NL": Rd,
+ "pl-PL": zd,
+ "pt-BR": Bd,
+ "pt-PT": Vd,
+ "ro-RO": Hd,
+ "ru-RU": Ud,
+ "sk-SK": Wd,
+ "sl-SI": Gd,
+ "sr-SP": Kd,
+ "sv-SE": qd,
+ "tr-TR": Jd,
+ "uk-UA": Yd,
+ "zh-CN": Xd,
+ "zh-TW": Zd
};
//#endregion
//#region node_modules/react-aria/dist/private/table/TableKeyboardDelegate.mjs
-var Xd = class extends od {
+var $d = class extends ld {
isCell(e) {
return e.type === "cell" || e.type === "rowheader" || e.type === "column";
}
@@ -9448,7 +9448,7 @@ var Xd = class extends od {
let n = this.collection.getItem(e);
if (!n) return null;
if (n.type === "column") {
- let e = sc(oc(n, this.collection));
+ let e = lc(cc(n, this.collection));
if (e) return e.key;
let t = this.getFirstKey();
return t == null || !this.collection.getItem(t) ? null : super.getKeyForItemInRowByIndex(t, n.index);
@@ -9469,13 +9469,13 @@ var Xd = class extends od {
let t = this.findNextKey(e.key, (e) => e.type === "column");
if (t != null) return t;
let n = this.collection.headerRows[e.level];
- for (let e of oc(n, this.collection)) if (e.type === "column") return e.key;
+ for (let e of cc(n, this.collection)) if (e.type === "column") return e.key;
return null;
}
findPreviousColumnKey(e) {
let t = this.findPreviousKey(e.key, (e) => e.type === "column");
if (t != null) return t;
- let n = this.collection.headerRows[e.level], r = [...oc(n, this.collection)];
+ let n = this.collection.headerRows[e.level], r = [...cc(n, this.collection)];
for (let e = r.length - 1; e >= 0; e--) {
let t = r[e];
if (t.type === "column") return t.key;
@@ -9504,7 +9504,7 @@ var Xd = class extends od {
let t = o.textValue.slice(0, e.length);
if (this.collator.compare(t, e) === 0) return o.key;
}
- for (let r of oc(o, this.collection)) {
+ for (let r of cc(o, this.collection)) {
let a = n.columns[r.index];
if (n.rowHeaderColumnKeys.has(a.key) && r.textValue) {
let a = r.textValue.slice(0, e.length);
@@ -9518,14 +9518,14 @@ var Xd = class extends od {
};
//#endregion
//#region node_modules/react-aria/dist/private/table/useTable.mjs
-function Zd(e) {
+function ef(e) {
return e && e.__esModule ? e.default : e;
}
-function Qd(e, t, n) {
- let { keyboardDelegate: r, isVirtualized: i, layoutDelegate: a, layout: o } = e, s = hc({
+function tf(e, t, n) {
+ let { keyboardDelegate: r, isVirtualized: i, layoutDelegate: a, layout: o } = e, s = _c({
usage: "search",
sensitivity: "base"
- }), { direction: c } = Ri(), l = t.selectionManager.disabledBehavior, u = (0, S.useMemo)(() => r || new Xd({
+ }), { direction: c } = zi(), l = t.selectionManager.disabledBehavior, u = (0, C.useMemo)(() => r || new $d({
collection: t.collection,
disabledKeys: t.disabledKeys,
disabledBehavior: l,
@@ -9544,43 +9544,43 @@ function Qd(e, t, n) {
s,
a,
o
- ]), d = gr(e.id);
- ud.set(t, d);
- let { gridProps: f } = ld({
+ ]), d = _r(e.id);
+ pd.set(t, d);
+ let { gridProps: f } = fd({
...e,
id: d,
keyboardDelegate: u
}, t, n);
i && (f["aria-rowcount"] = t.collection.size + t.collection.headerRows.length), t.treeColumn != null && (f.role = "treegrid");
- let { column: p, direction: m } = t.sortDescriptor || {}, h = Qi(Zd(Yd), "@react-aria/table"), g = (0, S.useMemo)(() => {
+ let { column: p, direction: m } = t.sortDescriptor || {}, h = $i(ef(Qd), "@react-aria/table"), g = (0, C.useMemo)(() => {
let e = t.collection.columns.find((e) => e.key === p)?.textValue ?? "";
return m && p ? h.format(`${m}Sort`, { columnName: e }) : void 0;
}, [
m,
p,
t.collection.columns
- ]), _ = _o(g);
- return so(() => {
- g && ao(g, "assertive", 500);
+ ]), _ = yo(g);
+ return lo(() => {
+ g && so(g, "assertive", 500);
}, [g]), { gridProps: V(f, _, { "aria-describedby": [_["aria-describedby"], f["aria-describedby"]].filter(Boolean).join(" ") }) };
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridCell.mjs
-function $d(e, t, n) {
- let { node: r, isVirtualized: i, focusMode: a, allowsArrowNavigation: o, shouldSelectOnPressUp: s, onAction: c } = e, { direction: l } = Ri(), { keyboardDelegate: u, actions: { onCellAction: d }, keyboardNavigationBehavior: f } = cd.get(t), p = a ?? (f === "tab" ? "cell" : "child"), m = (0, S.useRef)(null), h = () => {
+function nf(e, t, n) {
+ let { node: r, isVirtualized: i, focusMode: a, allowsArrowNavigation: o, shouldSelectOnPressUp: s, onAction: c } = e, { direction: l } = zi(), { keyboardDelegate: u, actions: { onCellAction: d }, keyboardNavigationBehavior: f } = dd.get(t), p = a ?? (f === "tab" ? "cell" : "child"), m = (0, C.useRef)(null), h = () => {
if (n.current) {
- let e = $a(n.current);
+ let e = to(n.current);
if (p === "child") {
- if (Rt(n.current) && n.current !== It(R(n.current))) return;
- let r = t.selectionManager.childFocusStrategy === "last" ? ef(e) : e.firstChild();
+ if (zt(n.current) && n.current !== Lt(R(n.current))) return;
+ let r = t.selectionManager.childFocusStrategy === "last" ? rf(e) : e.firstChild();
if (r) {
- lr(r);
+ ur(r);
return;
}
}
- (m.current != null && r.key !== m.current || !Rt(n.current)) && lr(n.current);
+ (m.current != null && r.key !== m.current || !zt(n.current)) && ur(n.current);
}
- }, { itemProps: g, isPressed: _ } = Sl({
+ }, { itemProps: g, isPressed: _ } = wl({
selectionManager: t.selectionManager,
key: r.key,
ref: n,
@@ -9592,31 +9592,31 @@ function $d(e, t, n) {
}), v = V(g, {
role: "gridcell",
onKeyDownCapture: f !== "tab" || o ? (e) => {
- let i = It(R(n.current));
+ let i = Lt(R(n.current));
if (!z(e.currentTarget, B(e)) || t.isKeyboardNavigationDisabled || !n.current || !i) return;
- let a = $a(n.current);
+ let a = to(n.current);
switch (a.currentNode = i, e.key) {
case "ArrowLeft": {
let t = l === "rtl" ? a.nextNode() : a.previousNode();
- if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) lr(t), mo(t, { containingElement: lo(n.current) });
+ if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) ur(t), go(t, { containingElement: fo(n.current) });
else {
if (u.getKeyLeftOf?.(r.key) !== r.key) {
n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent));
break;
}
- p === "cell" && l === "rtl" ? (lr(n.current), mo(n.current, { containingElement: lo(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? a.firstChild() : ef(a), t && (lr(t), mo(t, { containingElement: lo(n.current) })));
+ p === "cell" && l === "rtl" ? (ur(n.current), go(n.current, { containingElement: fo(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? a.firstChild() : rf(a), t && (ur(t), go(t, { containingElement: fo(n.current) })));
}
break;
}
case "ArrowRight": {
let t = l === "rtl" ? a.previousNode() : a.nextNode();
- if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) lr(t), mo(t, { containingElement: lo(n.current) });
+ if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) ur(t), go(t, { containingElement: fo(n.current) });
else {
if (u.getKeyRightOf?.(r.key) !== r.key) {
n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent));
break;
}
- p === "cell" && l === "ltr" ? (lr(n.current), mo(n.current, { containingElement: lo(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? ef(a) : a.firstChild(), t && (lr(t), mo(t, { containingElement: lo(n.current) })));
+ p === "cell" && l === "ltr" ? (ur(n.current), go(n.current, { containingElement: fo(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? rf(a) : a.firstChild(), t && (ur(t), go(t, { containingElement: fo(n.current) })));
}
break;
}
@@ -9625,14 +9625,14 @@ function $d(e, t, n) {
}
} : void 0,
onKeyDown: f === "tab" ? (e) => {
- let r = It(R(n.current));
+ let r = Lt(R(n.current));
if (!(!z(e.currentTarget, B(e)) || t.isKeyboardNavigationDisabled || !n.current || !r)) {
if (f === "tab" && B(e) !== n.current && e.key !== "Tab") {
e.stopPropagation();
return;
}
if (e.key === "Tab" && f === "tab") {
- let t = $a(n.current, { tabbable: !0 });
+ let t = to(n.current, { tabbable: !0 });
t.currentNode = r, (e.shiftKey ? t.previousNode() : t.nextNode()) && e.stopPropagation();
}
}
@@ -9642,11 +9642,11 @@ function $d(e, t, n) {
colSpan: i ? void 0 : r.colSpan,
onFocus: (e) => {
if (m.current = r.key, B(e) !== n.current) {
- Zn() || t.selectionManager.setFocusedKey(r.key);
+ Qn() || t.selectionManager.setFocusedKey(r.key);
return;
}
p === "child" && e.relatedTarget && z(n.current, e.relatedTarget) || requestAnimationFrame(() => {
- p === "child" && It(R(n.current)) === n.current && h();
+ p === "child" && Lt(R(n.current)) === n.current && h();
});
},
...p === "child" && f === "tab" ? { tabIndex: -1 } : {}
@@ -9661,7 +9661,7 @@ function $d(e, t, n) {
isPressed: _
};
}
-function ef(e) {
+function rf(e) {
let t = null, n = null;
do
n = e.lastChild(), n && (t = n);
@@ -9670,34 +9670,34 @@ function ef(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableCell.mjs
-function tf(e, t, n) {
- let { gridCellProps: r, isPressed: i } = $d(e, t, n), a = e.node.column?.key;
- return a != null && t.collection.rowHeaderColumnKeys.has(a) && (r.role = "rowheader", r.id = pd(t, e.node.parentKey, a)), {
+function af(e, t, n) {
+ let { gridCellProps: r, isPressed: i } = nf(e, t, n), a = e.node.column?.key;
+ return a != null && t.collection.rowHeaderColumnKeys.has(a) && (r.role = "rowheader", r.id = gd(t, e.node.parentKey, a)), {
gridCellProps: r,
isPressed: i
};
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableColumnHeader.mjs
-function nf(e) {
+function of(e) {
return e && e.__esModule ? e.default : e;
}
-function rf(e, t, n) {
- let { node: r } = e, i = r.props.allowsSorting, { gridCellProps: a } = $d({
+function sf(e, t, n) {
+ let { node: r } = e, i = r.props.allowsSorting, { gridCellProps: a } = nf({
focusMode: "child",
...e
- }, t, n), o = r.props.isSelectionCell && t.selectionManager.selectionMode === "single", { pressProps: s, isPressed: c } = ya({
+ }, t, n), o = r.props.isSelectionCell && t.selectionManager.selectionMode === "single", { pressProps: s, isPressed: c } = xa({
isDisabled: !i || o,
onPress() {
t.sort(r.key);
},
ref: n
- }), { focusableProps: l } = Hr({}, n), u, d = t.sortDescriptor?.column === r.key, f = t.sortDescriptor?.direction;
- r.props.allowsSorting && !fn() && (u = d ? f : "none");
- let p = Qi(nf(Yd), "@react-aria/table"), m;
- i && (m = `${p.format("sortable")}`, d && f && fn() && (m = `${m}, ${p.format(f)}`));
- let h = _o(m), g = t.collection.size === 0;
- return (0, S.useEffect)(() => {
+ }), { focusableProps: l } = Ur({}, n), u, d = t.sortDescriptor?.column === r.key, f = t.sortDescriptor?.direction;
+ r.props.allowsSorting && !pn() && (u = d ? f : "none");
+ let p = $i(of(Qd), "@react-aria/table"), m;
+ i && (m = `${p.format("sortable")}`, d && f && pn() && (m = `${m}, ${p.format(f)}`));
+ let h = yo(m), g = t.collection.size === 0;
+ return (0, C.useEffect)(() => {
g && t.selectionManager.focusedKey === r.key && t.selectionManager.setFocusedKey(null);
}, [
g,
@@ -9707,7 +9707,7 @@ function rf(e, t, n) {
columnHeaderProps: {
...V(l, a, s, h, g ? { tabIndex: -1 } : null),
role: "columnheader",
- id: fd(t, r.key),
+ id: hd(t, r.key),
"aria-colspan": r.colSpan && r.colSpan > 1 ? r.colSpan : void 0,
"aria-sort": u
},
@@ -9716,20 +9716,20 @@ function rf(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableHeaderRow.mjs
-function af(e, t, n) {
+function cf(e, t, n) {
let { node: r, isVirtualized: i } = e, a = { role: "row" };
return i && t.treeColumn == null && (a["aria-rowindex"] = r.index + 1), { rowProps: a };
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridRow.mjs
-function of(e, t, n) {
- let { node: r, isVirtualized: i, shouldSelectOnPressUp: a, onAction: o } = e, { actions: s, shouldSelectOnPressUp: c } = cd.get(t), l = s.onRowAction ? () => s.onRowAction?.(r.key) : o, { itemProps: u, ...d } = Sl({
+function lf(e, t, n) {
+ let { node: r, isVirtualized: i, shouldSelectOnPressUp: a, onAction: o } = e, { actions: s, shouldSelectOnPressUp: c } = dd.get(t), l = s.onRowAction ? () => s.onRowAction?.(r.key) : o, { itemProps: u, ...d } = wl({
selectionManager: t.selectionManager,
key: r.key,
ref: n,
isVirtualized: i,
shouldSelectOnPressUp: c || a,
- onAction: l || r?.props?.onAction ? ur(r?.props?.onAction, l) : void 0,
+ onAction: l || r?.props?.onAction ? dr(r?.props?.onAction, l) : void 0,
isDisabled: t.collection.size === 0
}), f = t.selectionManager.isSelected(r.key), p = {
role: "row",
@@ -9744,10 +9744,10 @@ function of(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableRow.mjs
-function sf(e) {
+function uf(e) {
return e && e.__esModule ? e.default : e;
}
-var cf = {
+var df = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -9757,21 +9757,21 @@ var cf = {
rtl: "ArrowRight"
}
};
-function lf(e, t, n) {
- let { node: r, isVirtualized: i } = e, { rowProps: a, ...o } = of(e, t, n), { direction: s } = Ri();
+function ff(e, t, n) {
+ let { node: r, isVirtualized: i } = e, { rowProps: a, ...o } = lf(e, t, n), { direction: s } = zi();
i && t.treeColumn == null ? a["aria-rowindex"] = r.index + 1 + t.collection.headerRows.length : delete a["aria-rowindex"];
- let c = t.treeColumn != null && (t.expandedKeys === "all" || t.expandedKeys.has(r.key)), l = Qi(sf(Yd), "@react-aria/table"), u = Di({
+ let c = t.treeColumn != null && (t.expandedKeys === "all" || t.expandedKeys.has(r.key)), l = $i(uf(Qd), "@react-aria/table"), u = Oi({
"aria-label": c ? l.format("collapse") : l.format("expand"),
- "aria-labelledby": md(t, r.key)
+ "aria-labelledby": _d(t, r.key)
}), d = {}, f = {};
if (t.treeColumn != null) {
let e = t.collection.getItem(r.key);
if (e != null) {
- let n = uf(t.collection, r), i = e.props?.hasChildRows || e.props?.UNSTABLE_childItems || n?.type !== "cell", a = t.collection.getItem(r.parentKey), c = a.type === "tablebody" || a.type === "body", l = uf(t.collection, a);
+ let n = pf(t.collection, r), i = e.props?.hasChildRows || e.props?.UNSTABLE_childItems || n?.type !== "cell", a = t.collection.getItem(r.parentKey), c = a.type === "tablebody" || a.type === "body", l = pf(t.collection, a);
for (; l && l.type !== "item" && l.prevKey != null;) l = t.collection.getItem(l.prevKey);
d = {
onKeyDown: (n) => {
- n.key === cf.expand[s] && t.selectionManager.focusedKey === e.key && i && t.expandedKeys !== "all" && !t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : n.key === cf.collapse[s] && t.selectionManager.focusedKey === e.key && (t.expandedKeys === "all" ? t.expandedKeys === "all" && (t.toggleKey(e.key), n.stopPropagation()) : i && t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : !t.expandedKeys.has(e.key) && e.parentKey != null && e.level > 0 && (t.selectionManager.setFocusedKey(e.parentKey), n.stopPropagation()));
+ n.key === df.expand[s] && t.selectionManager.focusedKey === e.key && i && t.expandedKeys !== "all" && !t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : n.key === df.collapse[s] && t.selectionManager.focusedKey === e.key && (t.expandedKeys === "all" ? t.expandedKeys === "all" && (t.toggleKey(e.key), n.stopPropagation()) : i && t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : !t.expandedKeys.has(e.key) && e.parentKey != null && e.level > 0 && (t.selectionManager.setFocusedKey(e.parentKey), n.stopPropagation()));
},
"aria-expanded": i ? t.expandedKeys === "all" || t.expandedKeys.has(r.key) : void 0,
"aria-level": e.level + 1,
@@ -9789,45 +9789,45 @@ function lf(e, t, n) {
};
}
}
- let p = xn(r.props), m = o.hasAction ? p : {};
+ let p = Sn(r.props), m = o.hasAction ? p : {};
return {
rowProps: {
...V(a, d, m),
- "aria-labelledby": md(t, r.key)
+ "aria-labelledby": _d(t, r.key)
},
expandButtonProps: f,
...o
};
}
-function uf(e, t) {
+function pf(e, t) {
return "lastChildKey" in t ? t.lastChildKey == null ? null : e.getItem(t.lastChildKey) : Array.from(t.childNodes).findLast((e) => e.parentKey === t.key);
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridRowGroup.mjs
-function df() {
+function mf() {
return { rowGroupProps: { role: "rowgroup" } };
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableRowGroup.mjs
-function ff() {
- return df();
+function hf() {
+ return mf();
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableSelectionCheckbox.mjs
-function pf(e) {
+function gf(e) {
return e && e.__esModule ? e.default : e;
}
-function mf(e, t) {
- let { key: n } = e, { checkboxProps: r } = El(e, t);
+function _f(e, t) {
+ let { key: n } = e, { checkboxProps: r } = Ol(e, t);
return { checkboxProps: {
...r,
- "aria-labelledby": `${r.id} ${md(t, n)}`
+ "aria-labelledby": `${r.id} ${_d(t, n)}`
} };
}
-function hf(e) {
+function vf(e) {
let { isEmpty: t, isSelectAll: n, selectionMode: r } = e.selectionManager;
return { checkboxProps: {
- "aria-label": Qi(pf(Yd), "@react-aria/table").format(r === "single" ? "select" : "selectAll"),
+ "aria-label": $i(gf(Qd), "@react-aria/table").format(r === "single" ? "select" : "selectAll"),
isSelected: n,
isDisabled: r !== "multiple" || e.collection.size === 0 || e.collection.rows.length === 1 && e.collection.rows[0].type === "loader",
isIndeterminate: !t && !n,
@@ -9836,23 +9836,23 @@ function hf(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/utils.mjs
-var gf = /* @__PURE__ */ new WeakMap();
-function _f(e, t, n) {
- return e ? (typeof t == "string" && (t = t.replace(/\s+/g, "")), `${gf.get(e)}-${n}-${t}`) : "";
+var yf = /* @__PURE__ */ new WeakMap();
+function bf(e, t, n) {
+ return e ? (typeof t == "string" && (t = t.replace(/\s+/g, "")), `${yf.get(e)}-${n}-${t}`) : "";
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/useTab.mjs
-function vf(e, t, n) {
- let { key: r, isDisabled: i, shouldSelectOnPressUp: a } = e, { selectionManager: o, selectedKey: s } = t, c = r === s, l = i || t.isDisabled || t.selectionManager.isDisabled(r), u = t.collection.getItem(r), { itemProps: d, isPressed: f } = Sl({
+function xf(e, t, n) {
+ let { key: r, isDisabled: i, shouldSelectOnPressUp: a } = e, { selectionManager: o, selectedKey: s } = t, c = r === s, l = i || t.isDisabled || t.selectionManager.isDisabled(r), u = t.collection.getItem(r), { itemProps: d, isPressed: f } = wl({
selectionManager: o,
key: r,
ref: n,
isDisabled: l,
shouldSelectOnPressUp: a ?? u?.props.href != null,
linkBehavior: "selection"
- }), p = _f(t, r, "tab"), m = _f(t, r, "tabpanel"), { tabIndex: h } = d, g = U(u?.props, { labelable: !0 });
+ }), p = bf(t, r, "tab"), m = bf(t, r, "tabpanel"), { tabIndex: h } = d, g = H(u?.props, { labelable: !0 });
delete g.id;
- let _ = Sn(u?.props), { focusableProps: v } = Hr({
+ let _ = Cn(u?.props), { focusableProps: v } = Ur({
...u?.props,
isDisabled: l
}, n);
@@ -9872,7 +9872,7 @@ function vf(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/TabsKeyboardDelegate.mjs
-var yf = class {
+var Sf = class {
constructor(e, t, n, r = /* @__PURE__ */ new Set()) {
this.collection = e, this.flipDirection = t === "rtl", this.disabledKeys = r, this.tabDirection = n === "horizontal";
}
@@ -9916,11 +9916,11 @@ var yf = class {
};
//#endregion
//#region node_modules/react-aria/dist/private/tabs/useTabList.mjs
-function bf(e, t, n) {
- let { orientation: r = "horizontal", keyboardActivation: i = "automatic" } = e, { collection: a, selectionManager: o, disabledKeys: s } = t, { direction: c } = Ri(), { collectionProps: l } = ac({
+function Cf(e, t, n) {
+ let { orientation: r = "horizontal", keyboardActivation: i = "automatic" } = e, { collection: a, selectionManager: o, disabledKeys: s } = t, { direction: c } = zi(), { collectionProps: l } = sc({
ref: n,
selectionManager: o,
- keyboardDelegate: (0, S.useMemo)(() => new yf(a, c, r, s), [
+ keyboardDelegate: (0, C.useMemo)(() => new Sf(a, c, r, s), [
a,
s,
r,
@@ -9930,9 +9930,9 @@ function bf(e, t, n) {
disallowEmptySelection: !0,
scrollRef: n,
linkBehavior: "selection"
- }), u = gr();
- return gf.set(t, u), { tabListProps: {
- ...V(l, Di({
+ }), u = _r();
+ return yf.set(t, u), { tabListProps: {
+ ...V(l, Oi({
...e,
id: u
})),
@@ -9943,12 +9943,12 @@ function bf(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/useTabPanel.mjs
-function xf(e, t, n) {
- let r = vl(n) ? void 0 : 0, i = _f(t, e.id ?? t?.selectedKey, "tabpanel");
- return { tabPanelProps: V(Di({
+function wf(e, t, n) {
+ let r = bl(n) ? void 0 : 0, i = bf(t, e.id ?? t?.selectedKey, "tabpanel");
+ return { tabPanelProps: V(Oi({
...e,
id: i,
- "aria-labelledby": _f(t, t?.selectedKey, "tab")
+ "aria-labelledby": bf(t, t?.selectedKey, "tab")
}), {
tabIndex: r,
role: "tabpanel",
@@ -9958,7 +9958,7 @@ function xf(e, t, n) {
}
//#endregion
//#region node_modules/scheduler/cjs/scheduler.production.js
-var Sf = /* @__PURE__ */ h(((e) => {
+var Tf = /* @__PURE__ */ g(((e) => {
function t(e, t) {
var n = e.length;
e.push(t);
@@ -10157,10 +10157,10 @@ var Sf = /* @__PURE__ */ h(((e) => {
}
};
};
-})), Cf = /* @__PURE__ */ h(((e, t) => {
- t.exports = Sf();
-})), wf = /* @__PURE__ */ h(((e) => {
- var t = Cf(), n = y(), r = Jr();
+})), Ef = /* @__PURE__ */ g(((e, t) => {
+ t.exports = Tf();
+})), Df = /* @__PURE__ */ g(((e) => {
+ var t = Ef(), n = b(), r = Yr();
function i(e) {
var t = "https://react.dev/errors/" + e;
if (1 < arguments.length) {
@@ -10304,12 +10304,12 @@ var Sf = /* @__PURE__ */ h(((e) => {
default: throw Error(i(559));
}
}
- var v = null, b = null;
+ var v = null, y = null;
function x(e, t, n) {
return e === n || e === t && (v = e, !0);
}
function S(e, t, n) {
- return e === n ? (b = e, !1) : e === t && (b !== null && (v = e), !0);
+ return e === n ? (y = e, !1) : e === t && (y !== null && (v = e), !0);
}
function C(e) {
if (e === null) return null;
@@ -10384,9 +10384,9 @@ var Sf = /* @__PURE__ */ h(((e) => {
switch (ve(xe, t), ve(be, e), ve(ye, null), t.nodeType) {
case 9:
case 11:
- e = (e = t.documentElement) && (e = e.namespaceURI) ? vp(e) : 0;
+ e = (e = t.documentElement) && (e = e.namespaceURI) ? bp(e) : 0;
break;
- default: if (e = t.tagName, t = t.namespaceURI) t = vp(t), e = yp(t, e);
+ default: if (e = t.tagName, t = t.namespaceURI) t = bp(t), e = xp(t, e);
else switch (e) {
case "svg":
e = 1;
@@ -10405,7 +10405,7 @@ var Sf = /* @__PURE__ */ h(((e) => {
function Te(e) {
var t = e.memoizedState;
t !== null && (fh._currentValue = t.memoizedState, ve(Se, e)), t = ye.current;
- var n = yp(t, e.type);
+ var n = xp(t, e.type);
t !== n && (ve(be, e), ve(ye, n));
}
function Ee(e) {
@@ -10728,7 +10728,7 @@ var Sf = /* @__PURE__ */ h(((e) => {
L.p = n;
}
}
- var bt = Math.random().toString(36).slice(2), xt = "__reactFiber$" + bt, St = "__reactProps$" + bt, Ct = "__reactContainer$" + bt, wt = "__reactEvents$" + bt, Tt = "__reactListeners$" + bt, Et = "__reactHandles$" + bt, R = "__reactResources$" + bt, Dt = "__reactMarker$" + bt, Ot = "__reactLoad$" + bt;
+ var bt = Math.random().toString(36).slice(2), xt = "__reactFiber$" + bt, St = "__reactProps$" + bt, Ct = "__reactContainer$" + bt, wt = "__reactEvents$" + bt, Tt = "__reactListeners$" + bt, Et = "__reactHandles$" + bt, Dt = "__reactResources$" + bt, R = "__reactMarker$" + bt, Ot = "__reactLoad$" + bt;
function kt(e) {
delete e[xt], delete e[St], delete e[Tt], delete e[Et];
}
@@ -10737,9 +10737,9 @@ var Sf = /* @__PURE__ */ h(((e) => {
if (t = e[xt]) return t;
for (var n = e.parentNode; n;) {
if (t = n[Ct] || n[xt]) {
- if (n = t.alternate, t.child !== null || n !== null && n.child !== null) for (e = vm(e); e !== null;) {
+ if (n = t.alternate, t.child !== null || n !== null && n.child !== null) for (e = bm(e); e !== null;) {
if (n = e[xt]) return n;
- e = vm(e);
+ e = bm(e);
}
return t;
}
@@ -10760,24 +10760,24 @@ var Sf = /* @__PURE__ */ h(((e) => {
throw Error(i(33));
}
function Nt(e) {
- var t = e[R];
- return t ||= e[R] = {
+ var t = e[Dt];
+ return t ||= e[Dt] = {
hoistableStyles: /* @__PURE__ */ new Map(),
hoistableScripts: /* @__PURE__ */ new Map()
}, t;
}
function Pt(e) {
- e[Dt] = !0;
+ e[R] = !0;
}
function Ft(e) {
e[Ot] = void 0;
}
- var z = /* @__PURE__ */ new Set(), It = {};
- function B(e, t) {
- Lt(e, t), Lt(e + "Capture", t);
- }
+ var It = /* @__PURE__ */ new Set(), z = {};
function Lt(e, t) {
- for (It[e] = t, e = 0; e < t.length; e++) z.add(t[e]);
+ B(e, t), B(e + "Capture", t);
+ }
+ function B(e, t) {
+ for (z[e] = t, e = 0; e < t.length; e++) It.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) {
@@ -11108,7 +11108,7 @@ var Sf = /* @__PURE__ */ h(((e) => {
try {
return e(t);
} finally {
- if (xn = !1, (vn !== null || yn !== null) && (Ud(), vn && (t = vn, e = yn, yn = vn = null, bn(t), e))) for (t = 0; t < e.length; t++) bn(e[t]);
+ if (xn = !1, (vn !== null || yn !== null) && (Gd(), vn && (t = vn, e = yn, yn = vn = null, bn(t), e))) for (t = 0; t < e.length; t++) bn(e[t]);
}
}
function Cn(e, t) {
@@ -11417,14 +11417,14 @@ var Sf = /* @__PURE__ */ h(((e) => {
return t === "input" ? !!yr[e.type] : t === "textarea";
}
function xr(e, t, n, r) {
- vn ? yn ? yn.push(r) : yn = [r] : vn = r, t = tp(t, "onChange"), 0 < t.length && (n = new In("onChange", "change", null, n, r), e.push({
+ vn ? yn ? yn.push(r) : yn = [r] : vn = r, t = rp(t, "onChange"), 0 < t.length && (n = new In("onChange", "change", null, n, r), e.push({
event: n,
listeners: t
}));
}
- var Sr = null, V = null;
- function Cr(e) {
- qf(e, 0);
+ var Sr = null, Cr = null;
+ function V(e) {
+ Yf(e, 0);
}
function wr(e) {
if (Zt(Mt(e))) return e;
@@ -11446,19 +11446,19 @@ var Sf = /* @__PURE__ */ h(((e) => {
Er = Dr && (!document.documentMode || 9 < document.documentMode);
}
function Ar() {
- Sr && (Sr.detachEvent("onpropertychange", jr), V = Sr = null);
+ Sr && (Sr.detachEvent("onpropertychange", jr), Cr = Sr = null);
}
function jr(e) {
- if (e.propertyName === "value" && wr(V)) {
+ if (e.propertyName === "value" && wr(Cr)) {
var t = [];
- xr(t, V, e, _n(e)), Sn(Cr, t);
+ xr(t, Cr, e, _n(e)), Sn(V, t);
}
}
function Mr(e, t, n) {
- e === "focusin" ? (Ar(), Sr = t, V = n, Sr.attachEvent("onpropertychange", jr)) : e === "focusout" && Ar();
+ e === "focusin" ? (Ar(), Sr = t, Cr = n, Sr.attachEvent("onpropertychange", jr)) : e === "focusout" && Ar();
}
function Nr(e) {
- if (e === "selectionchange" || e === "keyup" || e === "keydown") return wr(V);
+ if (e === "selectionchange" || e === "keyup" || e === "keydown") return wr(Cr);
}
function Pr(e, t) {
if (e === "click") return wr(t);
@@ -11538,7 +11538,7 @@ var Sf = /* @__PURE__ */ h(((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 Gr = wn && "documentMode" in document && 11 >= document.documentMode, Kr = null, qr = null, Yr = null, Xr = !1;
+ var Gr = wn && "documentMode" in document && 11 >= document.documentMode, Kr = null, qr = null, Jr = null, Xr = !1;
function Zr(e, t, n) {
var r = n.window === n ? n.document : n.nodeType === 9 ? n : n.ownerDocument;
Xr || Kr == null || Kr !== zr(r) || (r = Kr, "selectionStart" in r && Wr(r) ? r = {
@@ -11549,7 +11549,7 @@ var Sf = /* @__PURE__ */ h(((e) => {
anchorOffset: r.anchorOffset,
focusNode: r.focusNode,
focusOffset: r.focusOffset
- }), Yr && Rr(Yr, r) || (Yr = r, r = tp(qr, "onSelect"), 0 < r.length && (t = new In("onSelect", "select", null, t, n), e.push({
+ }), Jr && Rr(Jr, r) || (Jr = r, r = rp(qr, "onSelect"), 0 < r.length && (t = new In("onSelect", "select", null, t, n), e.push({
event: t,
listeners: r
}), t.target = Kr)));
@@ -11578,19 +11578,19 @@ var Sf = /* @__PURE__ */ h(((e) => {
var ri = ni("animationend"), ii = ni("animationiteration"), ai = ni("animationstart"), oi = ni("transitionrun"), si = ni("transitionstart"), ci = ni("transitioncancel"), li = ni("transitionend"), ui = /* @__PURE__ */ new Map(), di = "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(" ");
di.push("scrollEnd");
function fi(e, t) {
- ui.set(e, t), B(t, [e]);
+ ui.set(e, t), Lt(t, [e]);
}
var pi = 0;
function mi(e, t) {
if (e.name != null && e.name !== "auto") return e.name;
if (t.autoName !== null) return t.autoName;
- e = wd.identifierPrefix;
+ e = Ed.identifierPrefix;
var n = pi++;
return e = "_" + e + "t_" + n.toString(32) + "_", t.autoName = e;
}
function hi(e) {
if (e == null || typeof e == "string") return e;
- var t = null, n = Md;
+ var t = null, n = Pd;
if (n !== null) for (var r = 0; r < n.length; r++) {
var i = e[n[r]];
if (i != null) {
@@ -11651,7 +11651,7 @@ var Sf = /* @__PURE__ */ h(((e) => {
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;
}
function Ei(e) {
- if (50 < Nd) throw Nd = 0, Pd = null, Error(i(185));
+ if (50 < Fd) throw Fd = 0, Id = null, Error(i(185));
for (var t = e.return; t !== null;) e = t, t = e.return;
return e.tag === 3 ? e.stateNode : null;
}
@@ -11683,7 +11683,7 @@ var Sf = /* @__PURE__ */ h(((e) => {
function Ni(e, t, n, r, a, o) {
var s = 0;
if (r = e, typeof r == "function") Ai(r) && (s = 1);
- else if (typeof r == "string") s = Qm(e, n, ye.current) ? 26 : e === "html" || e === "head" || e === "body" ? 27 : 5;
+ else if (typeof r == "string") s = $m(e, n, ye.current) ? 26 : e === "html" || e === "head" || e === "body" ? 27 : 5;
else a: switch (r) {
case re: return e = ki(31, n, t, a), e.elementType = re, e.lanes = o, e;
case k: return Pi(n.children, a, o, t);
@@ -11781,98 +11781,98 @@ var Sf = /* @__PURE__ */ h(((e) => {
function $i(e, t) {
Wi[Gi++] = qi, Wi[Gi++] = Ji, Wi[Gi++] = Ki, qi = t.id, Ji = t.overflow, Ki = e;
}
- var ea = null, ta = null, H = !1, na = null, ra = !1, U = Error(i(519));
- function ia(e) {
- throw ua(zi(Error(i(418, 1 < arguments.length && arguments[1] !== void 0 && arguments[1] ? "text" : "HTML", "")), e)), U;
+ var ea = null, ta = null, na = !1, ra = null, ia = !1, aa = Error(i(519));
+ function H(e) {
+ throw da(zi(Error(i(418, 1 < arguments.length && arguments[1] !== void 0 && arguments[1] ? "text" : "HTML", "")), e)), aa;
}
- function aa(e) {
+ function oa(e) {
var t = e.stateNode, n = e.type, r = e.memoizedProps;
switch (t[xt] = e, t[St] = r, n) {
case "dialog":
- Jf("cancel", t), Jf("close", t);
+ Xf("cancel", t), Xf("close", t);
break;
case "iframe":
case "object":
case "embed":
- Jf("load", t);
+ Xf("load", t);
break;
case "video":
case "audio":
- for (n = 0; n < Gf.length; n++) Jf(Gf[n], t);
+ for (n = 0; n < qf.length; n++) Xf(qf[n], t);
break;
case "source":
- Jf("error", t);
+ Xf("error", t);
break;
case "img":
case "image":
case "link":
- Jf("error", t), Jf("load", t);
+ Xf("error", t), Xf("load", t);
break;
case "details":
- Jf("toggle", t);
+ Xf("toggle", t);
break;
case "input":
- Jf("invalid", t), tn(t, r.value, r.defaultValue, r.checked, r.defaultChecked, r.type, r.name, !0);
+ Xf("invalid", t), tn(t, r.value, r.defaultValue, r.checked, r.defaultChecked, r.type, r.name, !0);
break;
case "select":
- Jf("invalid", t);
+ Xf("invalid", t);
break;
- case "textarea": Jf("invalid", t), on(t, r.value, r.defaultValue, r.children);
+ case "textarea": Xf("invalid", t), on(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 || sp(t.textContent, n) ? (r.popover != null && (Jf("beforetoggle", t), Jf("toggle", t)), r.onScroll != null && Jf("scroll", t), r.onScrollEnd != null && Jf("scrollend", t), r.onClick != null && (t.onclick = hn), t = !0) : t = !1, t || ia(e, !0);
+ n = r.children, typeof n != "string" && typeof n != "number" && typeof n != "bigint" || t.textContent === "" + n || !0 === r.suppressHydrationWarning || lp(t.textContent, n) ? (r.popover != null && (Xf("beforetoggle", t), Xf("toggle", t)), r.onScroll != null && Xf("scroll", t), r.onScrollEnd != null && Xf("scrollend", t), r.onClick != null && (t.onclick = hn), t = !0) : t = !1, t || H(e, !0);
}
- function oa(e) {
+ function sa(e) {
for (ea = e.return; ea;) switch (ea.tag) {
case 5:
case 31:
case 13:
- ra = !1;
+ ia = !1;
return;
case 27:
case 3:
- ra = !0;
+ ia = !0;
return;
default: ea = ea.return;
}
}
- function sa(e) {
+ function ca(e) {
if (e !== ea) return !1;
- if (!H) return oa(e), H = !0, !1;
+ if (!na) return sa(e), na = !0, !1;
var t = e.tag, n;
- if ((n = t !== 3 && t !== 27) && ((n = t === 5) && (n = e.type, n = n === "form" || n === "button" || xp(e.type, e.memoizedProps)), n = !n), n && ta && ia(e), oa(e), t === 13) {
+ if ((n = t !== 3 && t !== 27) && ((n = t === 5) && (n = e.type, n = n === "form" || n === "button" || Cp(e.type, e.memoizedProps)), n = !n), n && ta && H(e), sa(e), t === 13) {
if (e = e.memoizedState, e = e === null ? null : e.dehydrated, !e) throw Error(i(317));
- ta = _m(e);
+ ta = G(e);
} else if (t === 31) {
if (e = e.memoizedState, e = e === null ? null : e.dehydrated, !e) throw Error(i(317));
- ta = _m(e);
- } else t === 27 ? (t = ta, Ap(e.type) ? (e = q, q = null, ta = e) : ta = t) : ta = ea ? gm(e.stateNode.nextSibling) : null;
+ ta = G(e);
+ } else t === 27 ? (t = ta, Mp(e.type) ? (e = ym, ym = null, ta = e) : ta = t) : ta = ea ? vm(e.stateNode.nextSibling) : null;
return !0;
}
- function ca() {
- ta = ea = null, H = !1;
- }
function la() {
- var e = na;
- return e !== null && (gd === null ? gd = e : gd.push.apply(gd, e), na = null), e;
+ ta = ea = null, na = !1;
+ }
+ function ua() {
+ var e = ra;
+ return e !== null && (vd === null ? vd = e : vd.push.apply(vd, e), ra = null), e;
}
- function ua(e) {
- na === null ? na = [e] : na.push(e);
+ function da(e) {
+ ra === null ? ra = [e] : ra.push(e);
}
- var da = ge(null), fa = null, pa = null;
- function ma(e, t, n) {
- ve(da, t._currentValue), t._currentValue = n;
+ var fa = ge(null), pa = null, ma = null;
+ function ha(e, t, n) {
+ ve(fa, t._currentValue), t._currentValue = n;
}
- function ha(e) {
- e._currentValue = da.current, _e(da);
+ function ga(e) {
+ e._currentValue = fa.current, _e(fa);
}
- function ga(e, t, n) {
+ function _a(e, t, n) {
for (; e !== null;) {
var r = e.alternate;
if ((e.childLanes & t) === t ? r !== null && (r.childLanes & t) !== t && (r.childLanes |= t) : (e.childLanes |= t, r !== null && (r.childLanes |= t)), e === n) break;
e = e.return;
}
}
- function _a(e, t, n, r) {
+ function va(e, t, n, r) {
var a = e.child;
for (a !== null && (a.return = e); a !== null;) {
var o = a.dependencies;
@@ -11883,15 +11883,15 @@ var Sf = /* @__PURE__ */ h(((e) => {
var c = o;
o = a;
for (var l = 0; l < t.length; l++) if (c.context === t[l]) {
- o.lanes |= n, c = o.alternate, c !== null && (c.lanes |= n), ga(o.return, n, e), r || (s = null);
+ o.lanes |= n, c = o.alternate, c !== null && (c.lanes |= n), _a(o.return, n, e), r || (s = null);
break a;
}
o = c.next;
}
} else if (a.tag === 18) {
if (s = a.return, s === null) throw Error(i(341));
- s.lanes |= n, o = s.alternate, o !== null && (o.lanes |= n), ga(s, n, e), s = null;
- } else a.tag === 13 && a.memoizedState !== null && a.memoizedState.dehydrated === null ? (a.lanes |= n, s = a.alternate, s !== null && (s.lanes |= n), ga(a.return, n, e), s = a.child, s = s === null ? null : s.sibling) : s = a.child;
+ s.lanes |= n, o = s.alternate, o !== null && (o.lanes |= n), _a(s, n, e), s = null;
+ } else a.tag === 13 && a.memoizedState !== null && a.memoizedState.dehydrated === null ? (a.lanes |= n, s = a.alternate, s !== null && (s.lanes |= n), _a(a.return, n, e), s = a.child, s = s === null ? null : s.sibling) : s = a.child;
if (s !== null) s.return = a;
else for (s = a; s !== null;) {
if (s === e) {
@@ -11907,7 +11907,7 @@ var Sf = /* @__PURE__ */ h(((e) => {
a = s;
}
}
- function va(e, t, n, r) {
+ function ya(e, t, n, r) {
e = null;
for (var a = t, o = !1; a !== null;) {
if (!o) {
@@ -11927,40 +11927,40 @@ var Sf = /* @__PURE__ */ h(((e) => {
}
a = a.return;
}
- return e !== null && _a(t, e, n, r), t.flags |= 262144, e !== null;
+ return e !== null && va(t, e, n, r), t.flags |= 262144, e !== null;
}
- function ya(e) {
+ function ba(e) {
for (e = e.firstContext; e !== null;) {
if (!Lr(e.context._currentValue, e.memoizedValue)) return !0;
e = e.next;
}
return !1;
}
- function ba(e) {
- fa = e, pa = null, e = e.dependencies, e !== null && (e.firstContext = null);
- }
function xa(e) {
- return Ca(fa, e);
+ pa = e, ma = null, e = e.dependencies, e !== null && (e.firstContext = null);
}
- function Sa(e, t) {
- return fa === null && ba(e), Ca(e, t);
+ function Sa(e) {
+ return wa(pa, e);
}
function Ca(e, t) {
+ return pa === null && xa(e), wa(e, t);
+ }
+ function wa(e, t) {
var n = t._currentValue;
if (t = {
context: t,
memoizedValue: n,
next: null
- }, pa === null) {
+ }, ma === null) {
if (e === null) throw Error(i(308));
- pa = t, e.dependencies = {
+ ma = t, e.dependencies = {
lanes: 0,
firstContext: t
}, e.flags |= 524288;
- } else pa = pa.next = t;
+ } else ma = ma.next = t;
return n;
}
- var wa = typeof AbortController < "u" ? AbortController : function() {
+ var Ta = typeof AbortController < "u" ? AbortController : function() {
var e = [], t = this.signal = {
aborted: !1,
addEventListener: function(t, n) {
@@ -11972,7 +11972,7 @@ var Sf = /* @__PURE__ */ h(((e) => {
return e();
});
};
- }, Ta = t.unstable_scheduleCallback, Ea = t.unstable_NormalPriority, Da = {
+ }, Ea = t.unstable_scheduleCallback, Da = t.unstable_NormalPriority, Oa = {
$$typeof: N,
Consumer: null,
Provider: null,
@@ -11980,19 +11980,19 @@ var Sf = /* @__PURE__ */ h(((e) => {
_currentValue2: null,
_threadCount: 0
};
- function Oa() {
+ function ka() {
return {
- controller: new wa(),
+ controller: new Ta(),
data: /* @__PURE__ */ new Map(),
refCount: 0
};
}
- function ka(e) {
- e.refCount--, e.refCount === 0 && Ta(Ea, function() {
+ function Aa(e) {
+ e.refCount--, e.refCount === 0 && Ea(Da, function() {
e.controller.abort();
});
}
- function Aa(e, t) {
+ function ja(e, t) {
if (e.pendingLanes & 4194048) {
var n = e.transitionTypes;
for (n === null && (n = e.transitionTypes = []), e = 0; e < t.length; e++) {
@@ -12001,16 +12001,16 @@ var Sf = /* @__PURE__ */ h(((e) => {
}
}
}
- var ja = null;
- function Ma(e) {
+ var Ma = null;
+ function Na(e) {
var t = e.transitionTypes;
return e.transitionTypes = null, t;
}
- var Na = null, Pa = 0, Fa = 0, Ia = null;
- function La(e, t) {
- if (Na === null) {
- var n = Na = [];
- Pa = 0, Fa = Bf(), Ia = {
+ var Pa = null, Fa = 0, Ia = 0, La = null;
+ function Ra(e, t) {
+ if (Pa === null) {
+ var n = Pa = [];
+ Fa = 0, Ia = Hf(), La = {
status: "pending",
value: void 0,
then: function(e) {
@@ -12018,17 +12018,17 @@ var Sf = /* @__PURE__ */ h(((e) => {
}
};
}
- return Pa++, t.then(Ra, Ra), t;
+ return Fa++, t.then(za, za), t;
}
- function Ra() {
- if (--Pa === 0 && (ja = null, Na !== null)) {
- Ia !== null && (Ia.status = "fulfilled");
- var e = Na;
- Na = null, Fa = 0, Ia = null;
+ function za() {
+ if (--Fa === 0 && (Ma = null, Pa !== null)) {
+ La !== null && (La.status = "fulfilled");
+ var e = Pa;
+ Pa = null, Ia = 0, La = null;
for (var t = 0; t < e.length; t++) (0, e[t])();
}
}
- function za(e, t) {
+ function Ba(e, t) {
var n = [], r = {
status: "pending",
value: null,
@@ -12044,48 +12044,48 @@ var Sf = /* @__PURE__ */ h(((e) => {
for (r.status = "rejected", r.reason = e, e = 0; e < n.length; e++) (0, n[e])(void 0);
}), r;
}
- var Ba = I.S;
+ var Va = I.S;
I.S = function(e, t) {
- if (yd = ze(), typeof t == "object" && t && typeof t.then == "function" && La(e, t), ja !== null) for (var n = Ef; n !== null;) Aa(n, ja), n = n.next;
+ if (xd = ze(), typeof t == "object" && t && typeof t.then == "function" && Ra(e, t), Ma !== null) for (var n = Of; n !== null;) ja(n, Ma), n = n.next;
if (n = e.types, n !== null) {
- for (var r = Ef; r !== null;) Aa(r, n), r = r.next;
- if (Fa !== 0) {
- r = ja, r === null && (r = ja = []);
+ for (var r = Of; r !== null;) ja(r, n), r = r.next;
+ if (Ia !== 0) {
+ r = Ma, r === null && (r = Ma = []);
for (var i = 0; i < n.length; i++) {
var a = n[i];
r.indexOf(a) === -1 && r.push(a);
}
}
}
- Ba !== null && Ba(e, t);
+ Va !== null && Va(e, t);
};
- var Va = ge(null);
- function Ha() {
- var e = Va.current;
- return e === null ? td.pooledCache : e;
+ var Ha = ge(null);
+ function Ua() {
+ var e = Ha.current;
+ return e === null ? nd.pooledCache : e;
}
- function Ua(e, t) {
- t === null ? ve(Va, Va.current) : ve(Va, t.pool);
+ function Wa(e, t) {
+ t === null ? ve(Ha, Ha.current) : ve(Ha, t.pool);
}
- function Wa() {
- var e = Ha();
+ function Ga() {
+ var e = Ua();
return e === null ? null : {
- parent: Da._currentValue,
+ parent: Oa._currentValue,
pool: e
};
}
- var Ga = Error(i(460)), Ka = Error(i(474)), qa = Error(i(542)), Ja = { then: function() {} };
- function Ya(e) {
+ var Ka = Error(i(460)), qa = Error(i(474)), Ja = Error(i(542)), Ya = { then: function() {} };
+ function Xa(e) {
return e = e.status, e === "fulfilled" || e === "rejected";
}
- function Xa(e, t, n) {
+ function Za(e, t, n) {
switch (n = e[n], n === void 0 ? e.push(t) : n !== t && (t.then(hn, hn), t = n), t.status) {
case "fulfilled": return t.value;
- case "rejected": throw e = t.reason, eo(e), e === void 0 && !("reason" in t) ? Error(i(600)) : e;
+ case "rejected": throw e = t.reason, to(e), e === void 0 && !("reason" in t) ? Error(i(600)) : e;
default:
if (typeof t.status == "string") t.then(hn, hn);
else {
- if (e = td, e !== null && 100 < e.shellSuspendCounter) throw Error(i(482));
+ if (e = nd, 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;
@@ -12100,40 +12100,40 @@ var Sf = /* @__PURE__ */ h(((e) => {
}
switch (t.status) {
case "fulfilled": return t.value;
- case "rejected": throw e = t.reason, eo(e), e;
+ case "rejected": throw e = t.reason, to(e), e;
}
- throw Qa = t, Ga;
+ throw $a = t, Ka;
}
}
- function Za(e) {
+ function Qa(e) {
try {
var t = e._init;
return t(e._payload);
} catch (e) {
- throw typeof e == "object" && e && typeof e.then == "function" ? (Qa = e, Ga) : e;
+ throw typeof e == "object" && e && typeof e.then == "function" ? ($a = e, Ka) : e;
}
}
- var Qa = null;
- function $a() {
- if (Qa === null) throw Error(i(459));
- var e = Qa;
- return Qa = null, e;
+ var $a = null;
+ function eo() {
+ if ($a === null) throw Error(i(459));
+ var e = $a;
+ return $a = null, e;
}
- function eo(e) {
- if (e === Ga || e === qa) throw Error(i(483));
+ function to(e) {
+ if (e === Ka || e === Ja) throw Error(i(483));
}
- var to = null, no = 0;
- function ro(e) {
- var t = no;
- return no += 1, to === null && (to = []), Xa(to, e, t);
+ var no = null, ro = 0;
+ function io(e) {
+ var t = ro;
+ return ro += 1, no === null && (no = []), Za(no, e, t);
}
- function io(e, t) {
+ function ao(e, t) {
t = t.props.ref, e.ref = t === void 0 ? null : t;
}
- function ao(e, t) {
+ function oo(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 oo(e) {
+ function so(e) {
function t(t, n) {
if (e) {
var r = t.deletions;
@@ -12163,7 +12163,7 @@ var Sf = /* @__PURE__ */ h(((e) => {
}
function l(e, t, n, r) {
var i = n.type;
- return i === k ? (e = d(e, t, n.props.children, r, n.key), io(e, n), e) : t !== null && (t.elementType === i || typeof i == "object" && i && i.$$typeof === ne && Za(i) === t.type) ? (t = a(t, n.props), io(t, n), t.return = e, t) : (t = Ni(n.type, n.key, n.props, null, e.mode, r), io(t, n), t.return = e, t);
+ return i === k ? (e = d(e, t, n.props.children, r, n.key), ao(e, n), e) : t !== null && (t.elementType === i || typeof i == "object" && i && i.$$typeof === ne && Qa(i) === t.type) ? (t = a(t, n.props), ao(t, n), t.return = e, t) : (t = Ni(n.type, n.key, n.props, null, e.mode, r), ao(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 = Li(n, e.mode, r), t.return = e, t) : (t = a(t, n.children || []), t.return = e, t);
@@ -12175,14 +12175,14 @@ var Sf = /* @__PURE__ */ h(((e) => {
if (typeof t == "string" && t !== "" || typeof t == "number" || typeof t == "bigint") return t = Fi("" + t, e.mode, n), t.return = e, t;
if (typeof t == "object" && t) {
switch (t.$$typeof) {
- case D: return n = Ni(t.type, t.key, t.props, null, e.mode, n), io(n, t), n.return = e, n;
+ case D: return n = Ni(t.type, t.key, t.props, null, e.mode, n), ao(n, t), n.return = e, n;
case O: return t = Li(t, e.mode, n), t.return = e, t;
- case ne: return t = Za(t), f(e, t, n);
+ case ne: return t = Qa(t), f(e, t, n);
}
if (fe(t) || le(t)) return t = Pi(t, e.mode, n, null), t.return = e, t;
- if (typeof t.then == "function") return f(e, ro(t), n);
- if (t.$$typeof === N) return f(e, Sa(e, t), n);
- ao(e, t);
+ if (typeof t.then == "function") return f(e, io(t), n);
+ if (t.$$typeof === N) return f(e, Ca(e, t), n);
+ oo(e, t);
}
return null;
}
@@ -12193,12 +12193,12 @@ var Sf = /* @__PURE__ */ h(((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 ne: return n = Za(n), p(e, t, n, r);
+ case ne: return n = Qa(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, ro(n), r);
- if (n.$$typeof === N) return p(e, t, Sa(e, n), r);
- ao(e, n);
+ if (typeof n.then == "function") return p(e, t, io(n), r);
+ if (n.$$typeof === N) return p(e, t, Ca(e, n), r);
+ oo(e, n);
}
return null;
}
@@ -12208,12 +12208,12 @@ var Sf = /* @__PURE__ */ h(((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 ne: return r = Za(r), m(e, t, n, r, i);
+ case ne: return r = Qa(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, ro(r), i);
- if (r.$$typeof === N) return m(e, t, n, Sa(t, r), i);
- ao(t, r);
+ if (typeof r.then == "function") return m(e, t, n, io(r), i);
+ if (r.$$typeof === N) return m(e, t, n, Ca(t, r), i);
+ oo(t, r);
}
return null;
}
@@ -12227,15 +12227,15 @@ var Sf = /* @__PURE__ */ h(((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), H && Yi(i, h), l;
+ if (h === s.length) return n(i, d), na && Yi(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 H && Yi(i, h), l;
+ return na && Yi(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);
- }), H && Yi(i, h), l;
+ }), na && Yi(i, h), l;
}
function g(a, s, c, l) {
if (c == null) throw Error(i(151));
@@ -12248,15 +12248,15 @@ var Sf = /* @__PURE__ */ h(((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), H && Yi(a, g), u;
+ if (v.done) return n(a, h), na && Yi(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 H && Yi(a, g), u;
+ return na && Yi(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);
- }), H && Yi(a, g), u;
+ }), na && Yi(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) {
@@ -12267,11 +12267,11 @@ var Sf = /* @__PURE__ */ h(((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), io(c, o), c.return = e, e = c;
+ n(e, r.sibling), c = a(r, o.props.children), ao(c, o), c.return = e, e = c;
break a;
}
- } else if (r.elementType === l || typeof l == "object" && l && l.$$typeof === ne && Za(l) === r.type) {
- n(e, r.sibling), c = a(r, o.props), io(c, o), c.return = e, e = c;
+ } else if (r.elementType === l || typeof l == "object" && l && l.$$typeof === ne && Qa(l) === r.type) {
+ n(e, r.sibling), c = a(r, o.props), ao(c, o), c.return = e, e = c;
break a;
}
n(e, r);
@@ -12279,7 +12279,7 @@ var Sf = /* @__PURE__ */ h(((e) => {
}
t(e, r), r = r.sibling;
}
- o.type === k ? (c = Pi(o.props.children, e.mode, c, o.key), io(c, o), c.return = e, e = c) : (c = Ni(o.type, o.key, o.props, null, e.mode, c), io(c, o), c.return = e, e = c);
+ o.type === k ? (c = Pi(o.props.children, e.mode, c, o.key), ao(c, o), c.return = e, e = c) : (c = Ni(o.type, o.key, o.props, null, e.mode, c), ao(c, o), c.return = e, e = c);
}
return s(e);
case O:
@@ -12298,33 +12298,33 @@ var Sf = /* @__PURE__ */ h(((e) => {
c = Li(o, e.mode, c), c.return = e, e = c;
}
return s(e);
- case ne: return o = Za(o), _(e, r, o, c);
+ case ne: return o = Qa(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));
return o = l.call(o), g(e, r, o, c);
}
- if (typeof o.then == "function") return _(e, r, ro(o), c);
- if (o.$$typeof === N) return _(e, r, Sa(e, o), c);
- ao(e, o);
+ if (typeof o.then == "function") return _(e, r, io(o), c);
+ if (o.$$typeof === N) return _(e, r, Ca(e, o), c);
+ oo(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 = Fi(o, e.mode, c), c.return = e, e = c), s(e)) : n(e, r);
}
return function(e, t, n, r) {
try {
- no = 0;
+ ro = 0;
var i = _(e, t, n, r);
- return to = null, i;
+ return no = null, i;
} catch (t) {
- if (t === Ga || t === qa) throw t;
+ if (t === Ka || t === Ja) throw t;
var a = ki(29, t, null, e.mode);
return a.lanes = r, a.return = e, a;
}
};
}
- var so = oo(!0), co = oo(!1), lo = !1;
- function uo(e) {
+ var co = so(!0), lo = so(!1), uo = !1;
+ function fo(e) {
e.updateQueue = {
baseState: e.memoizedState,
firstBaseUpdate: null,
@@ -12337,7 +12337,7 @@ var Sf = /* @__PURE__ */ h(((e) => {
callbacks: null
};
}
- function fo(e, t) {
+ function po(e, t) {
e = e.updateQueue, t.updateQueue === e && (t.updateQueue = {
baseState: e.baseState,
firstBaseUpdate: e.firstBaseUpdate,
@@ -12346,7 +12346,7 @@ var Sf = /* @__PURE__ */ h(((e) => {
callbacks: null
});
}
- function po(e) {
+ function mo(e) {
return {
lane: e,
tag: 0,
@@ -12355,22 +12355,22 @@ var Sf = /* @__PURE__ */ h(((e) => {
next: null
};
}
- function mo(e, t, n) {
+ function ho(e, t, n) {
var r = e.updateQueue;
if (r === null) return null;
- if (r = r.shared, ed & 2) {
+ if (r = r.shared, td & 2) {
var i = r.pending;
return i === null ? t.next = t : (t.next = i.next, i.next = t), r.pending = t, t = Ei(e), Ti(e, null, n), t;
}
return Si(e, r, t, n), Ei(e);
}
- function ho(e, t, n) {
+ function go(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);
}
}
- function go(e, t) {
+ function _o(e, t) {
var n = e.updateQueue, r = e.alternate;
if (r !== null && (r = r.updateQueue, n === r)) {
var i = null, a = null;
@@ -12398,17 +12398,17 @@ var Sf = /* @__PURE__ */ h(((e) => {
}
e = n.lastBaseUpdate, e === null ? n.firstBaseUpdate = t : e.next = t, n.lastBaseUpdate = t;
}
- var _o = !1;
- function vo() {
- if (_o) {
- var e = Ia;
+ var vo = !1;
+ function yo() {
+ if (vo) {
+ var e = La;
if (e !== null) throw e;
}
}
- function yo(e, t, n, r) {
- _o = !1;
+ function bo(e, t, n, r) {
+ vo = !1;
var i = e.updateQueue;
- lo = !1;
+ uo = !1;
var a = i.firstBaseUpdate, o = i.lastBaseUpdate, s = i.shared.pending;
if (s !== null) {
i.shared.pending = null;
@@ -12422,8 +12422,8 @@ var Sf = /* @__PURE__ */ h(((e) => {
o = 0, u = l = c = null, s = a;
do {
var f = s.lane & -536870913, p = f !== s.lane;
- if (p ? (nd & f) === f : (r & f) === f) {
- f !== 0 && f === Fa && (_o = !0), u !== null && (u = u.next = {
+ if (p ? (id & f) === f : (r & f) === f) {
+ f !== 0 && f === Ia && (vo = !0), u !== null && (u = u.next = {
lane: 0,
tag: s.tag,
payload: s.payload,
@@ -12447,7 +12447,7 @@ var Sf = /* @__PURE__ */ h(((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: lo = !0;
+ case 2: uo = !0;
}
}
f = s.callback, f !== null && (e.flags |= 64, p && (e.flags |= 8192), p = i.callbacks, p === null ? i.callbacks = [f] : p.push(f));
@@ -12463,56 +12463,56 @@ var Sf = /* @__PURE__ */ h(((e) => {
p = s, s = p.next, p.next = null, i.lastBaseUpdate = p, i.shared.pending = null;
}
} while (1);
- u === null && (c = d), i.baseState = c, i.firstBaseUpdate = l, i.lastBaseUpdate = u, a === null && (i.shared.lanes = 0), ud |= o, e.lanes = o, e.memoizedState = d;
+ u === null && (c = d), i.baseState = c, i.firstBaseUpdate = l, i.lastBaseUpdate = u, a === null && (i.shared.lanes = 0), fd |= o, e.lanes = o, e.memoizedState = d;
}
}
- function bo(e, t) {
+ function xo(e, t) {
if (typeof e != "function") throw Error(i(191, e));
e.call(t);
}
- function xo(e, t) {
+ function So(e, t) {
var n = e.callbacks;
- if (n !== null) for (e.callbacks = null, e = 0; e < n.length; e++) bo(n[e], t);
- }
- var So = ge(null), Co = ge(0);
- function wo(e, t) {
- e = cd, ve(Co, e), ve(So, t), cd = e | t.baseLanes;
+ if (n !== null) for (e.callbacks = null, e = 0; e < n.length; e++) xo(n[e], t);
}
- function To() {
- ve(Co, cd), ve(So, So.current);
+ var Co = ge(null), wo = ge(0);
+ function To(e, t) {
+ e = ud, ve(wo, e), ve(Co, t), ud = e | t.baseLanes;
}
function Eo() {
- cd = Co.current, _e(So), _e(Co);
+ ve(wo, ud), ve(Co, Co.current);
}
- var Do = ge(null), Oo = null;
- function ko(e) {
- var t = e.alternate;
- ve(Po, Po.current & 1), ve(Do, e), Oo === null && (t === null || So.current !== null || t.memoizedState !== null) && (Oo = e);
+ function Do() {
+ ud = wo.current, _e(Co), _e(wo);
}
+ var Oo = ge(null), ko = null;
function Ao(e) {
- ve(Po, Po.current), ve(Do, e), Oo === null && (Oo = e);
+ var t = e.alternate;
+ ve(Fo, Fo.current & 1), ve(Oo, e), ko === null && (t === null || Co.current !== null || t.memoizedState !== null) && (ko = e);
}
function jo(e) {
- e.tag === 22 ? (ve(Po, Po.current), ve(Do, e), Oo === null && (Oo = e)) : Mo();
+ ve(Fo, Fo.current), ve(Oo, e), ko === null && (ko = e);
}
- function Mo() {
- ve(Po, Po.current), ve(Do, Do.current);
+ function Mo(e) {
+ e.tag === 22 ? (ve(Fo, Fo.current), ve(Oo, e), ko === null && (ko = e)) : No();
}
- function No(e) {
- _e(Do), Oo === e && (Oo = null), _e(Po);
+ function No() {
+ ve(Fo, Fo.current), ve(Oo, Oo.current);
}
- var Po = ge(0);
- function Fo(e, t) {
- ve(Do, Do.current), ve(Po, t);
+ function Po(e) {
+ _e(Oo), ko === e && (ko = null), _e(Fo);
}
- function Io(e) {
- _e(Po), _e(Do), Oo === e && (Oo = null);
+ var Fo = ge(0);
+ function Io(e, t) {
+ ve(Oo, Oo.current), ve(Fo, t);
}
function Lo(e) {
+ _e(Fo), _e(Oo), ko === e && (ko = null);
+ }
+ function Ro(e) {
for (var t = e; t !== null;) {
if (t.tag === 13) {
var n = t.memoizedState;
- if (n !== null && (n = n.dehydrated, n === null || pm(n) || mm(n))) return t;
+ if (n !== null && (n = n.dehydrated, n === null || hm(n) || gm(n))) return t;
} else if (t.tag === 19 && t.memoizedProps.revealOrder !== "independent") {
if (t.flags & 128) return t;
} else if (t.child !== null) {
@@ -12528,59 +12528,59 @@ var Sf = /* @__PURE__ */ h(((e) => {
}
return null;
}
- var Ro = 0, W = null, zo = null, Bo = null, Vo = !1, Ho = !1, Uo = !1, Wo = 0, Go = 0, Ko = null, qo = 0;
- function Jo() {
+ var zo = 0, U = null, Bo = null, Vo = null, Ho = !1, Uo = !1, Wo = !1, Go = 0, Ko = 0, qo = null, Jo = 0;
+ function Yo() {
throw Error(i(321));
}
- function Yo(e, t) {
+ function Xo(e, t) {
if (t === null) return !1;
for (var n = 0; n < t.length && n < e.length; n++) if (!Lr(e[n], t[n])) return !1;
return !0;
}
- function Xo(e, t, n, r, i, a) {
- return Ro = a, W = t, t.memoizedState = null, t.updateQueue = null, t.lanes = 0, I.H = e === null || e.memoizedState === null ? pc : mc, Uo = !1, a = n(r, i), Uo = !1, Ho && (a = Qo(t, n, r, i)), Zo(e), a;
+ function Zo(e, t, n, r, i, a) {
+ return zo = a, U = t, t.memoizedState = null, t.updateQueue = null, t.lanes = 0, I.H = e === null || e.memoizedState === null ? mc : hc, Wo = !1, a = n(r, i), Wo = !1, Uo && (a = $o(t, n, r, i)), Qo(e), a;
}
- function Zo(e) {
- I.H = fc;
- var t = zo !== null && zo.next !== null;
- if (Ro = 0, Bo = zo = W = null, Vo = !1, Go = 0, Ko = null, t) throw Error(i(300));
- e === null || jc || (e = e.dependencies, e !== null && ya(e) && (jc = !0));
+ function Qo(e) {
+ I.H = pc;
+ var t = Bo !== null && Bo.next !== null;
+ if (zo = 0, Vo = Bo = U = null, Ho = !1, Ko = 0, qo = null, t) throw Error(i(300));
+ e === null || Mc || (e = e.dependencies, e !== null && ba(e) && (Mc = !0));
}
- function Qo(e, t, n, r) {
- W = e;
+ function $o(e, t, n, r) {
+ U = e;
var a = 0;
do {
- if (Ho && (Ko = null), Go = 0, Ho = !1, 25 <= a) throw Error(i(301));
- if (a += 1, Bo = zo = null, e.updateQueue != null) {
+ if (Uo && (qo = null), Ko = 0, Uo = !1, 25 <= a) throw Error(i(301));
+ if (a += 1, Vo = Bo = 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 = hc, o = t(n, r);
- } while (Ho);
+ I.H = gc, o = t(n, r);
+ } while (Uo);
return o;
}
- function $o() {
+ function es() {
var e = I.H, t = e.useState()[0];
- return t = typeof t.then == "function" ? os(t) : t, e = e.useState()[0], (zo === null ? null : zo.memoizedState) !== e && (W.flags |= 1024), t;
+ return t = typeof t.then == "function" ? ss(t) : t, e = e.useState()[0], (Bo === null ? null : Bo.memoizedState) !== e && (U.flags |= 1024), t;
}
- function es() {
- var e = Wo !== 0;
- return Wo = 0, e;
+ function ts() {
+ var e = Go !== 0;
+ return Go = 0, e;
}
- function ts(e, t, n) {
+ function ns(e, t, n) {
t.updateQueue = e.updateQueue, t.flags &= -2053, e.lanes &= ~n;
}
- function ns(e) {
- if (Vo) {
+ function rs(e) {
+ if (Ho) {
for (e = e.memoizedState; e !== null;) {
var t = e.queue;
t !== null && (t.pending = null), e = e.next;
}
- Vo = !1;
+ Ho = !1;
}
- Ro = 0, Bo = zo = W = null, Ho = !1, Go = Wo = 0, Ko = null;
+ zo = 0, Vo = Bo = U = null, Uo = !1, Ko = Go = 0, qo = null;
}
- function rs() {
+ function is() {
var e = {
memoizedState: null,
baseState: null,
@@ -12588,28 +12588,28 @@ var Sf = /* @__PURE__ */ h(((e) => {
queue: null,
next: null
};
- return Bo === null ? W.memoizedState = Bo = e : Bo = Bo.next = e, Bo;
+ return Vo === null ? U.memoizedState = Vo = e : Vo = Vo.next = e, Vo;
}
- function is() {
- if (zo === null) {
- var e = W.alternate;
+ function as() {
+ if (Bo === null) {
+ var e = U.alternate;
e = e === null ? null : e.memoizedState;
- } else e = zo.next;
- var t = Bo === null ? W.memoizedState : Bo.next;
- if (t !== null) Bo = t, zo = e;
+ } else e = Bo.next;
+ var t = Vo === null ? U.memoizedState : Vo.next;
+ if (t !== null) Vo = t, Bo = e;
else {
- if (e === null) throw W.alternate === null ? Error(i(467)) : Error(i(310));
- zo = e, e = {
- memoizedState: zo.memoizedState,
- baseState: zo.baseState,
- baseQueue: zo.baseQueue,
- queue: zo.queue,
+ if (e === null) throw U.alternate === null ? Error(i(467)) : Error(i(310));
+ Bo = e, e = {
+ memoizedState: Bo.memoizedState,
+ baseState: Bo.baseState,
+ baseQueue: Bo.baseQueue,
+ queue: Bo.queue,
next: null
- }, Bo === null ? W.memoizedState = Bo = e : Bo = Bo.next = e;
+ }, Vo === null ? U.memoizedState = Vo = e : Vo = Vo.next = e;
}
- return Bo;
+ return Vo;
}
- function as() {
+ function os() {
return {
lastEffect: null,
events: null,
@@ -12617,22 +12617,22 @@ var Sf = /* @__PURE__ */ h(((e) => {
memoCache: null
};
}
- function os(e) {
- var t = Go;
- return Go += 1, Ko === null && (Ko = []), e = Xa(Ko, e, t), t = W, (Bo === null ? t.memoizedState : Bo.next) === null && (t = t.alternate, I.H = t === null || t.memoizedState === null ? pc : mc), e;
- }
function ss(e) {
+ var t = Ko;
+ return Ko += 1, qo === null && (qo = []), e = Za(qo, e, t), t = U, (Vo === null ? t.memoizedState : Vo.next) === null && (t = t.alternate, I.H = t === null || t.memoizedState === null ? mc : hc), e;
+ }
+ function cs(e) {
if (typeof e == "object" && e) {
- if (typeof e.then == "function") return os(e);
+ if (typeof e.then == "function") return ss(e);
if (e.$$typeof === se) return;
- if (e.$$typeof === N) return xa(e);
+ if (e.$$typeof === N) return Sa(e);
}
throw Error(i(438, String(e)));
}
- function cs(e) {
- var t = null, n = W.updateQueue;
+ function ls(e) {
+ var t = null, n = U.updateQueue;
if (n !== null && (t = n.memoCache), t == null) {
- var r = W.alternate;
+ var r = U.alternate;
r !== null && (r = r.updateQueue, r !== null && (r = r.memoCache, r != null && (t = {
data: r.data.map(function(e) {
return e.slice();
@@ -12643,16 +12643,16 @@ var Sf = /* @__PURE__ */ h(((e) => {
if (t ??= {
data: [],
index: 0
- }, n === null && (n = as(), W.updateQueue = n), n.memoCache = t, n = t.data[t.index], n === void 0) for (n = t.data[t.index] = Array(e), r = 0; r < e; r++) n[r] = ae;
+ }, n === null && (n = os(), U.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;
return t.index++, n;
}
- function ls(e, t) {
+ function us(e, t) {
return typeof t == "function" ? t(e) : t;
}
- function us(e) {
- return ds(is(), zo, e);
+ function ds(e) {
+ return fs(as(), Bo, e);
}
- function ds(e, t, n) {
+ function fs(e, t, n) {
var r = e.queue;
if (r === null) throw Error(i(311));
r.lastRenderedReducer = n;
@@ -12670,7 +12670,7 @@ var Sf = /* @__PURE__ */ h(((e) => {
var c = s = null, l = null, u = t, d = !1;
do {
var f = u.lane & -536870913;
- if (f === u.lane ? (Ro & f) === f : (nd & f) === f) {
+ if (f === u.lane ? (zo & f) === f : (id & f) === f) {
var p = u.revertLane;
if (p === 0) l !== null && (l = l.next = {
lane: 0,
@@ -12680,9 +12680,9 @@ var Sf = /* @__PURE__ */ h(((e) => {
hasEagerState: u.hasEagerState,
eagerState: u.eagerState,
next: null
- }), f === Fa && (d = !0);
- else if ((Ro & p) === p) {
- u = u.next, p === Fa && (d = !0);
+ }), f === Ia && (d = !0);
+ else if ((zo & p) === p) {
+ u = u.next, p === Ia && (d = !0);
continue;
} else f = {
lane: 0,
@@ -12692,8 +12692,8 @@ var Sf = /* @__PURE__ */ h(((e) => {
hasEagerState: u.hasEagerState,
eagerState: u.eagerState,
next: null
- }, l === null ? (c = l = f, s = o) : l = l.next = f, W.lanes |= p, ud |= p;
- f = u.action, Uo && n(o, f), o = u.hasEagerState ? u.eagerState : n(o, f);
+ }, l === null ? (c = l = f, s = o) : l = l.next = f, U.lanes |= p, fd |= p;
+ f = u.action, Wo && n(o, f), o = u.hasEagerState ? u.eagerState : n(o, f);
} else p = {
lane: f,
revertLane: u.revertLane,
@@ -12702,16 +12702,16 @@ var Sf = /* @__PURE__ */ h(((e) => {
hasEagerState: u.hasEagerState,
eagerState: u.eagerState,
next: null
- }, l === null ? (c = l = p, s = o) : l = l.next = p, W.lanes |= f, ud |= f;
+ }, l === null ? (c = l = p, s = o) : l = l.next = p, U.lanes |= f, fd |= f;
u = u.next;
} while (u !== null && u !== t);
- if (l === null ? s = o : l.next = c, !Lr(o, e.memoizedState) && (jc = !0, d && (n = Ia, n !== null))) throw n;
+ if (l === null ? s = o : l.next = c, !Lr(o, e.memoizedState) && (Mc = !0, d && (n = La, 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 fs(e) {
- var t = is(), n = t.queue;
+ function ps(e) {
+ var t = as(), n = t.queue;
if (n === null) throw Error(i(311));
n.lastRenderedReducer = e;
var r = n.dispatch, a = n.pending, o = t.memoizedState;
@@ -12721,38 +12721,38 @@ var Sf = /* @__PURE__ */ h(((e) => {
do
o = e(o, s.action), s = s.next;
while (s !== a);
- Lr(o, t.memoizedState) || (jc = !0), t.memoizedState = o, t.baseQueue === null && (t.baseState = o), n.lastRenderedState = o;
+ Lr(o, t.memoizedState) || (Mc = !0), t.memoizedState = o, t.baseQueue === null && (t.baseState = o), n.lastRenderedState = o;
}
return [o, r];
}
- function ps(e, t, n) {
- var r = W, a = is(), o = H;
+ function ms(e, t, n) {
+ var r = U, a = as(), o = na;
if (o) {
if (n === void 0) throw Error(i(407));
n = n();
} else n = t();
- var s = !Lr((zo || a).memoizedState, n);
- if (s && (a.memoizedState = n, jc = !0), a = a.queue, Rs(gs.bind(null, r, a, e), [e]), e = a.getSnapshot !== t || s || Bo !== null && !!(Bo.memoizedState.tag & 1), Ns(e ? 9 : 8, { destroy: void 0 }, hs.bind(null, r, a, n, t), null), e) {
- if (r.flags |= 2048, td === null) throw Error(i(349));
- o || Ro & 127 || ms(r, t, n);
+ var s = !Lr((Bo || a).memoizedState, n);
+ if (s && (a.memoizedState = n, Mc = !0), a = a.queue, zs(_s.bind(null, r, a, e), [e]), e = a.getSnapshot !== t || s || Vo !== null && !!(Vo.memoizedState.tag & 1), Ps(e ? 9 : 8, { destroy: void 0 }, gs.bind(null, r, a, n, t), null), e) {
+ if (r.flags |= 2048, nd === null) throw Error(i(349));
+ o || zo & 127 || hs(r, t, n);
}
return n;
}
- function ms(e, t, n) {
+ function hs(e, t, n) {
e.flags |= 16384, e = {
getSnapshot: t,
value: n
- }, t = W.updateQueue, t === null ? (t = as(), W.updateQueue = t, t.stores = [e]) : (n = t.stores, n === null ? t.stores = [e] : n.push(e));
+ }, t = U.updateQueue, t === null ? (t = os(), U.updateQueue = t, t.stores = [e]) : (n = t.stores, n === null ? t.stores = [e] : n.push(e));
}
- function hs(e, t, n, r) {
- t.value = n, t.getSnapshot = r, _s(t) && vs(e);
+ function gs(e, t, n, r) {
+ t.value = n, t.getSnapshot = r, vs(t) && ys(e);
}
- function gs(e, t, n) {
+ function _s(e, t, n) {
return n(function() {
- _s(t) && vs(e);
+ vs(t) && ys(e);
});
}
- function _s(e) {
+ function vs(e) {
var t = e.getSnapshot;
e = e.value;
try {
@@ -12762,15 +12762,15 @@ var Sf = /* @__PURE__ */ h(((e) => {
return !0;
}
}
- function vs(e) {
+ function ys(e) {
var t = wi(e, 2);
- t !== null && Rd(t, e, 2);
+ t !== null && Bd(t, e, 2);
}
- function ys(e) {
- var t = rs();
+ function bs(e) {
+ var t = is();
if (typeof e == "function") {
var n = e;
- if (e = n(), Uo) {
+ if (e = n(), Wo) {
Xe(!0);
try {
n();
@@ -12783,15 +12783,15 @@ var Sf = /* @__PURE__ */ h(((e) => {
pending: null,
lanes: 0,
dispatch: null,
- lastRenderedReducer: ls,
+ lastRenderedReducer: us,
lastRenderedState: e
}, t;
}
- function bs(e, t, n, r) {
- return e.baseState = n, ds(e, zo, typeof r == "function" ? r : ls);
+ function xs(e, t, n, r) {
+ return e.baseState = n, fs(e, Bo, typeof r == "function" ? r : us);
}
- function xs(e, t, n, r, a) {
- if (lc(e)) throw Error(i(485));
+ function Ss(e, t, n, r, a) {
+ if (uc(e)) throw Error(i(485));
if (e = t.action, e !== null) {
var o = {
payload: a,
@@ -12806,70 +12806,70 @@ var Sf = /* @__PURE__ */ h(((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, Ss(t, o)) : (o.next = n.next, t.pending = n.next = o);
+ I.T === null ? o.isTransition = !1 : n(!0), r(o), n = t.pending, n === null ? (o.next = t.pending = o, Cs(t, o)) : (o.next = n.next, t.pending = n.next = o);
}
}
- function Ss(e, t) {
+ function Cs(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;
try {
var s = n(i, r), c = I.S;
- c !== null && c(o, s), Cs(e, t, s);
+ c !== null && c(o, s), ws(e, t, s);
} catch (n) {
- Ts(e, t, n);
+ Es(e, t, n);
} finally {
a !== null && o.types !== null && (a.types = o.types), I.T = a;
}
} else try {
- a = n(i, r), Cs(e, t, a);
+ a = n(i, r), ws(e, t, a);
} catch (n) {
- Ts(e, t, n);
+ Es(e, t, n);
}
}
- function Cs(e, t, n) {
+ function ws(e, t, n) {
typeof n == "object" && n && typeof n.then == "function" ? n.then(function(n) {
- ws(e, t, n);
+ Ts(e, t, n);
}, function(n) {
- return Ts(e, t, n);
- }) : ws(e, t, n);
- }
- function ws(e, t, n) {
- t.status = "fulfilled", t.value = n, Es(t), e.state = n, t = e.pending, t !== null && (n = t.next, n === t ? e.pending = null : (n = n.next, t.next = n, Ss(e, n)));
+ return Es(e, t, n);
+ }) : Ts(e, t, n);
}
function Ts(e, t, n) {
+ t.status = "fulfilled", t.value = n, Ds(t), e.state = n, t = e.pending, t !== null && (n = t.next, n === t ? e.pending = null : (n = n.next, t.next = n, Cs(e, n)));
+ }
+ function Es(e, t, n) {
var r = e.pending;
if (e.pending = null, r !== null) {
r = r.next;
do
- t.status = "rejected", t.reason = n, Es(t), t = t.next;
+ t.status = "rejected", t.reason = n, Ds(t), t = t.next;
while (t !== r);
}
e.action = null;
}
- function Es(e) {
+ function Ds(e) {
e = e.listeners;
for (var t = 0; t < e.length; t++) (0, e[t])();
}
- function Ds(e, t) {
+ function Os(e, t) {
return t;
}
- function Os(e, t) {
- if (H) {
- var n = td.formState;
+ function ks(e, t) {
+ if (na) {
+ var n = nd.formState;
if (n !== null) {
a: {
- var r = W;
- if (H) {
+ var r = U;
+ if (na) {
if (ta) {
b: {
- for (var i = ta, a = ra; i.nodeType !== 8;) {
+ for (var i = ta, a = ia; i.nodeType !== 8;) {
if (!a) {
i = null;
break b;
}
- if (i = gm(i.nextSibling), i === null) {
+ if (i = vm(i.nextSibling), i === null) {
i = null;
break b;
}
@@ -12877,59 +12877,59 @@ var Sf = /* @__PURE__ */ h(((e) => {
a = i.data, i = a === "F!" || a === "F" ? i : null;
}
if (i) {
- ta = gm(i.nextSibling), r = i.data === "F!";
+ ta = vm(i.nextSibling), r = i.data === "F!";
break a;
}
}
- ia(r);
+ H(r);
}
r = !1;
}
r && (t = n[0]);
}
}
- return n = rs(), n.memoizedState = n.baseState = t, r = {
+ return n = is(), n.memoizedState = n.baseState = t, r = {
pending: null,
lanes: 0,
dispatch: null,
- lastRenderedReducer: Ds,
+ lastRenderedReducer: Os,
lastRenderedState: t
- }, n.queue = r, n = oc.bind(null, W, r), r.dispatch = n, r = ys(!1), a = cc.bind(null, W, !1, r.queue), r = rs(), i = {
+ }, n.queue = r, n = sc.bind(null, U, r), r.dispatch = n, r = bs(!1), a = lc.bind(null, U, !1, r.queue), r = is(), i = {
state: t,
dispatch: null,
action: e,
pending: null
- }, r.queue = i, n = xs.bind(null, W, i, a, n), i.dispatch = n, r.memoizedState = e, [
+ }, r.queue = i, n = Ss.bind(null, U, i, a, n), i.dispatch = n, r.memoizedState = e, [
t,
n,
!1
];
}
- function ks(e) {
- return As(is(), zo, e);
+ function As(e) {
+ return js(as(), Bo, e);
}
- function As(e, t, n) {
- if (t = ds(e, t, Ds)[0], e = us(ls)[0], typeof t == "object" && t && typeof t.then == "function") try {
- var r = os(t);
+ function js(e, t, n) {
+ if (t = fs(e, t, Os)[0], e = ds(us)[0], typeof t == "object" && t && typeof t.then == "function") try {
+ var r = ss(t);
} catch (e) {
- throw e === Ga ? qa : e;
+ throw e === Ka ? Ja : e;
}
else r = t;
- t = is();
+ t = as();
var i = t.queue, a = i.dispatch;
- return n !== t.memoizedState && (W.flags |= 2048, Ns(9, { destroy: void 0 }, js.bind(null, i, n), null)), [
+ return n !== t.memoizedState && (U.flags |= 2048, Ps(9, { destroy: void 0 }, Ms.bind(null, i, n), null)), [
r,
a,
e
];
}
- function js(e, t) {
+ function Ms(e, t) {
e.action = t;
}
- function Ms(e) {
- var t = is(), n = zo;
- if (n !== null) return As(t, n, e);
- is(), t = t.memoizedState, n = is();
+ function Ns(e) {
+ var t = as(), n = Bo;
+ if (n !== null) return js(t, n, e);
+ as(), t = t.memoizedState, n = as();
var r = n.queue.dispatch;
return n.memoizedState = e, [
t,
@@ -12937,60 +12937,60 @@ var Sf = /* @__PURE__ */ h(((e) => {
!1
];
}
- function Ns(e, t, n, r) {
+ function Ps(e, t, n, r) {
return e = {
tag: e,
create: n,
deps: r,
inst: t,
next: null
- }, t = W.updateQueue, t === null && (t = as(), W.updateQueue = t), n = t.lastEffect, n === null ? t.lastEffect = e.next = e : (r = n.next, n.next = e, e.next = r, t.lastEffect = e), e;
- }
- function Ps() {
- return is().memoizedState;
+ }, t = U.updateQueue, t === null && (t = os(), U.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 Fs(e, t, n, r) {
- var i = rs();
- W.flags |= e, i.memoizedState = Ns(1 | t, { destroy: void 0 }, n, r === void 0 ? null : r);
+ function Fs() {
+ return as().memoizedState;
}
function Is(e, t, n, r) {
var i = is();
+ U.flags |= e, i.memoizedState = Ps(1 | t, { destroy: void 0 }, n, r === void 0 ? null : r);
+ }
+ function Ls(e, t, n, r) {
+ var i = as();
r = r === void 0 ? null : r;
var a = i.memoizedState.inst;
- zo !== null && r !== null && Yo(r, zo.memoizedState.deps) ? i.memoizedState = Ns(t, a, n, r) : (W.flags |= e, i.memoizedState = Ns(1 | t, a, n, r));
- }
- function Ls(e, t) {
- Fs(8390656, 8, e, t);
+ Bo !== null && r !== null && Xo(r, Bo.memoizedState.deps) ? i.memoizedState = Ps(t, a, n, r) : (U.flags |= e, i.memoizedState = Ps(1 | t, a, n, r));
}
function Rs(e, t) {
- Is(2048, 8, e, t);
+ Is(8390656, 8, e, t);
}
- function zs(e) {
- W.flags |= 4;
- var t = W.updateQueue;
- if (t === null) t = as(), W.updateQueue = t, t.events = [e];
+ function zs(e, t) {
+ Ls(2048, 8, e, t);
+ }
+ function Bs(e) {
+ U.flags |= 4;
+ var t = U.updateQueue;
+ if (t === null) t = os(), U.updateQueue = t, t.events = [e];
else {
var n = t.events;
n === null ? t.events = [e] : n.push(e);
}
}
- function Bs(e) {
- var t = is().memoizedState;
- return zs({
+ function Vs(e) {
+ var t = as().memoizedState;
+ return Bs({
ref: t,
nextImpl: e
}), function() {
- if (ed & 2) throw Error(i(440));
+ if (td & 2) throw Error(i(440));
return t.impl.apply(void 0, arguments);
};
}
- function Vs(e, t) {
- return Is(4, 2, e, t);
- }
function Hs(e, t) {
- return Is(4, 4, e, t);
+ return Ls(4, 2, e, t);
}
function Us(e, t) {
+ return Ls(4, 4, e, t);
+ }
+ function Ws(e, t) {
if (typeof t == "function") {
e = e();
var n = t(e);
@@ -13002,22 +13002,22 @@ var Sf = /* @__PURE__ */ h(((e) => {
t.current = null;
};
}
- function Ws(e, t, n) {
- n = n == null ? null : n.concat([e]), Is(4, 4, Us.bind(null, t, e), n);
+ function Gs(e, t, n) {
+ n = n == null ? null : n.concat([e]), Ls(4, 4, Ws.bind(null, t, e), n);
}
- function Gs() {}
- function Ks(e, t) {
- var n = is();
+ function Ks() {}
+ function qs(e, t) {
+ var n = as();
t = t === void 0 ? null : t;
var r = n.memoizedState;
- return t !== null && Yo(t, r[1]) ? r[0] : (n.memoizedState = [e, t], e);
+ return t !== null && Xo(t, r[1]) ? r[0] : (n.memoizedState = [e, t], e);
}
- function qs(e, t) {
- var n = is();
+ function Js(e, t) {
+ var n = as();
t = t === void 0 ? null : t;
var r = n.memoizedState;
- if (t !== null && Yo(t, r[1])) return r[0];
- if (r = e(), Uo) {
+ if (t !== null && Xo(t, r[1])) return r[0];
+ if (r = e(), Wo) {
Xe(!0);
try {
e();
@@ -13027,39 +13027,39 @@ var Sf = /* @__PURE__ */ h(((e) => {
}
return n.memoizedState = [r, t], r;
}
- function Js(e, t, n) {
- return n === void 0 || Ro & 1073741824 && !(nd & 261930) ? e.memoizedState = t : (e.memoizedState = n, e = Id(), W.lanes |= e, ud |= e, n);
+ function Ys(e, t, n) {
+ return n === void 0 || zo & 1073741824 && !(id & 261930) ? e.memoizedState = t : (e.memoizedState = n, e = Rd(), U.lanes |= e, fd |= e, n);
}
- function Ys(e, t, n, r) {
- return Lr(n, t) ? n : So.current === null ? !(Ro & 106) || Ro & 1073741824 && !(nd & 261930) ? (jc = !0, e.memoizedState = n) : (e = Id(), W.lanes |= e, ud |= e, t) : (e = Js(e, n, r), Lr(e, t) || (jc = !0), e);
+ function Xs(e, t, n, r) {
+ return Lr(n, t) ? n : Co.current === null ? !(zo & 106) || zo & 1073741824 && !(id & 261930) ? (Mc = !0, e.memoizedState = n) : (e = Rd(), U.lanes |= e, fd |= e, t) : (e = Ys(e, n, r), Lr(e, t) || (Mc = !0), e);
}
- function Xs(e, t, n, r, i) {
+ function Zs(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, cc(e, !1, t, n);
+ s.types = o === null ? null : o.types, I.T = s, lc(e, !1, t, n);
try {
var c = i(), l = I.S;
- l !== null && l(s, c), typeof c == "object" && c && typeof c.then == "function" ? sc(e, t, za(c, r), Fd(e)) : sc(e, t, r, Fd(e));
+ l !== null && l(s, c), typeof c == "object" && c && typeof c.then == "function" ? cc(e, t, Ba(c, r), Ld(e)) : cc(e, t, r, Ld(e));
} catch (n) {
- sc(e, t, {
+ cc(e, t, {
then: function() {},
status: "rejected",
reason: n
- }, Fd());
+ }, Ld());
} finally {
L.p = a, o !== null && s.types !== null && (o.types = s.types), I.T = o;
}
}
- function Zs() {}
- function Qs(e, t, n, r) {
+ function Qs() {}
+ function $s(e, t, n, r) {
if (e.tag !== 5) throw Error(i(476));
- var a = $s(e).queue;
- Xs(e, a, t, pe, n === null ? Zs : function() {
- return ec(e), n(r);
+ var a = ec(e).queue;
+ Zs(e, a, t, pe, n === null ? Qs : function() {
+ return tc(e), n(r);
});
}
- function $s(e) {
+ function ec(e) {
var t = e.memoizedState;
if (t !== null) return t;
t = {
@@ -13070,7 +13070,7 @@ var Sf = /* @__PURE__ */ h(((e) => {
pending: null,
lanes: 0,
dispatch: null,
- lastRenderedReducer: ls,
+ lastRenderedReducer: us,
lastRenderedState: pe
},
next: null
@@ -13084,41 +13084,41 @@ var Sf = /* @__PURE__ */ h(((e) => {
pending: null,
lanes: 0,
dispatch: null,
- lastRenderedReducer: ls,
+ lastRenderedReducer: us,
lastRenderedState: n
},
next: null
}, e.memoizedState = t, e = e.alternate, e !== null && (e.memoizedState = t), t;
}
- function ec(e) {
- var t = $s(e);
- t.next === null && (t = e.alternate.memoizedState), sc(e, t.next.queue, {}, Fd());
- }
- function tc() {
- return xa(fh);
+ function tc(e) {
+ var t = ec(e);
+ t.next === null && (t = e.alternate.memoizedState), cc(e, t.next.queue, {}, Ld());
}
function nc() {
- return is().memoizedState;
+ return Sa(fh);
}
function rc() {
- return is().memoizedState;
+ return as().memoizedState;
}
- function ic(e) {
+ function ic() {
+ return as().memoizedState;
+ }
+ function ac(e) {
for (var t = e.return; t !== null;) {
switch (t.tag) {
case 24:
case 3:
- var n = Fd();
- e = po(n);
- var r = mo(t, e, n);
- r !== null && (Rd(r, t, n), ho(r, t, n)), t = { cache: Oa() }, e.payload = t;
+ var n = Ld();
+ e = mo(n);
+ var r = ho(t, e, n);
+ r !== null && (Bd(r, t, n), go(r, t, n)), t = { cache: ka() }, e.payload = t;
return;
}
t = t.return;
}
}
- function ac(e, t, n) {
- var r = Fd();
+ function oc(e, t, n) {
+ var r = Ld();
n = {
lane: r,
revertLane: 0,
@@ -13127,12 +13127,12 @@ var Sf = /* @__PURE__ */ h(((e) => {
hasEagerState: !1,
eagerState: null,
next: null
- }, lc(e) ? uc(t, n) : (n = Ci(e, t, n, r), n !== null && (Rd(n, e, r), dc(n, t, r)));
+ }, uc(e) ? dc(t, n) : (n = Ci(e, t, n, r), n !== null && (Bd(n, e, r), fc(n, t, r)));
}
- function oc(e, t, n) {
- sc(e, t, n, Fd());
+ function sc(e, t, n) {
+ cc(e, t, n, Ld());
}
- function sc(e, t, n, r) {
+ function cc(e, t, n, r) {
var i = {
lane: r,
revertLane: 0,
@@ -13142,92 +13142,92 @@ var Sf = /* @__PURE__ */ h(((e) => {
eagerState: null,
next: null
};
- if (lc(e)) uc(t, i);
+ if (uc(e)) dc(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, Lr(s, o)) return Si(e, t, i, 0), td === null && xi(), !1;
+ if (i.hasEagerState = !0, i.eagerState = s, Lr(s, o)) return Si(e, t, i, 0), nd === null && xi(), !1;
} catch {}
- if (n = Ci(e, t, i, r), n !== null) return Rd(n, e, r), dc(n, t, r), !0;
+ if (n = Ci(e, t, i, r), n !== null) return Bd(n, e, r), fc(n, t, r), !0;
}
return !1;
}
- function cc(e, t, n, r) {
+ function lc(e, t, n, r) {
if (r = {
lane: 2,
- revertLane: Bf(),
+ revertLane: Hf(),
gesture: null,
action: r,
hasEagerState: !1,
eagerState: null,
next: null
- }, lc(e)) {
+ }, uc(e)) {
if (t) throw Error(i(479));
- } else t = Ci(e, n, r, 2), t !== null && Rd(t, e, 2);
+ } else t = Ci(e, n, r, 2), t !== null && Bd(t, e, 2);
}
- function lc(e) {
+ function uc(e) {
var t = e.alternate;
- return e === W || t !== null && t === W;
+ return e === U || t !== null && t === U;
}
- function uc(e, t) {
- Ho = Vo = !0;
+ function dc(e, t) {
+ Uo = Ho = !0;
var n = e.pending;
n === null ? t.next = t : (t.next = n.next, n.next = t), e.pending = t;
}
- function dc(e, t, n) {
+ function fc(e, t, n) {
if (n & 4194048) {
var r = t.lanes;
r &= e.pendingLanes, n |= r, t.lanes = n, mt(e, n);
}
}
- var fc = {
- readContext: xa,
- use: ss,
- useCallback: Jo,
- useContext: Jo,
- useEffect: Jo,
- useImperativeHandle: Jo,
- useLayoutEffect: Jo,
- useInsertionEffect: Jo,
- useMemo: Jo,
- useReducer: Jo,
- useRef: Jo,
- useState: Jo,
- useDebugValue: Jo,
- useDeferredValue: Jo,
- useTransition: Jo,
- useSyncExternalStore: Jo,
- useId: Jo,
- useHostTransitionStatus: Jo,
- useFormState: Jo,
- useActionState: Jo,
- useOptimistic: Jo,
- useMemoCache: Jo,
- useCacheRefresh: Jo,
- useEffectEvent: Jo
- }, pc = {
- readContext: xa,
- use: ss,
+ var pc = {
+ readContext: Sa,
+ use: cs,
+ useCallback: Yo,
+ useContext: Yo,
+ useEffect: Yo,
+ useImperativeHandle: Yo,
+ useLayoutEffect: Yo,
+ useInsertionEffect: Yo,
+ useMemo: Yo,
+ useReducer: Yo,
+ useRef: Yo,
+ useState: Yo,
+ useDebugValue: Yo,
+ useDeferredValue: Yo,
+ useTransition: Yo,
+ useSyncExternalStore: Yo,
+ useId: Yo,
+ useHostTransitionStatus: Yo,
+ useFormState: Yo,
+ useActionState: Yo,
+ useOptimistic: Yo,
+ useMemoCache: Yo,
+ useCacheRefresh: Yo,
+ useEffectEvent: Yo
+ }, mc = {
+ readContext: Sa,
+ use: cs,
useCallback: function(e, t) {
- return rs().memoizedState = [e, t === void 0 ? null : t], e;
+ return is().memoizedState = [e, t === void 0 ? null : t], e;
},
- useContext: xa,
- useEffect: Ls,
+ useContext: Sa,
+ useEffect: Rs,
useImperativeHandle: function(e, t, n) {
- n = n == null ? null : n.concat([e]), Fs(4194308, 4, Us.bind(null, t, e), n);
+ n = n == null ? null : n.concat([e]), Is(4194308, 4, Ws.bind(null, t, e), n);
},
useLayoutEffect: function(e, t) {
- return Fs(4194308, 4, e, t);
+ return Is(4194308, 4, e, t);
},
useInsertionEffect: function(e, t) {
- Fs(4, 2, e, t);
+ Is(4, 2, e, t);
},
useMemo: function(e, t) {
- var n = rs();
+ var n = is();
t = t === void 0 ? null : t;
var r = e();
- if (Uo) {
+ if (Wo) {
Xe(!0);
try {
e();
@@ -13238,10 +13238,10 @@ var Sf = /* @__PURE__ */ h(((e) => {
return n.memoizedState = [r, t], r;
},
useReducer: function(e, t, n) {
- var r = rs();
+ var r = is();
if (n !== void 0) {
var i = n(t);
- if (Uo) {
+ if (Wo) {
Xe(!0);
try {
n(t);
@@ -13256,54 +13256,54 @@ var Sf = /* @__PURE__ */ h(((e) => {
dispatch: null,
lastRenderedReducer: e,
lastRenderedState: i
- }, r.queue = e, e = e.dispatch = ac.bind(null, W, e), [r.memoizedState, e];
+ }, r.queue = e, e = e.dispatch = oc.bind(null, U, e), [r.memoizedState, e];
},
useRef: function(e) {
- var t = rs();
+ var t = is();
return e = { current: e }, t.memoizedState = e;
},
useState: function(e) {
- e = ys(e);
- var t = e.queue, n = oc.bind(null, W, t);
+ e = bs(e);
+ var t = e.queue, n = sc.bind(null, U, t);
return t.dispatch = n, [e.memoizedState, n];
},
- useDebugValue: Gs,
+ useDebugValue: Ks,
useDeferredValue: function(e, t) {
- return Js(rs(), e, t);
+ return Ys(is(), e, t);
},
useTransition: function() {
- var e = ys(!1);
- return e = Xs.bind(null, W, e.queue, !0, !1), rs().memoizedState = e, [!1, e];
+ var e = bs(!1);
+ return e = Zs.bind(null, U, e.queue, !0, !1), is().memoizedState = e, [!1, e];
},
useSyncExternalStore: function(e, t, n) {
- var r = W, a = rs();
- if (H) {
+ var r = U, a = is();
+ if (na) {
if (n === void 0) throw Error(i(407));
n = n();
} else {
- if (n = t(), td === null) throw Error(i(349));
- nd & 127 || ms(r, t, n);
+ if (n = t(), nd === null) throw Error(i(349));
+ id & 127 || hs(r, t, n);
}
a.memoizedState = n;
var o = {
value: n,
getSnapshot: t
};
- return a.queue = o, Ls(gs.bind(null, r, o, e), [e]), r.flags |= 2048, Ns(9, { destroy: void 0 }, hs.bind(null, r, o, n, t), null), n;
+ return a.queue = o, Rs(_s.bind(null, r, o, e), [e]), r.flags |= 2048, Ps(9, { destroy: void 0 }, gs.bind(null, r, o, n, t), null), n;
},
useId: function() {
- var e = rs(), t = td.identifierPrefix;
- if (H) {
+ var e = is(), t = nd.identifierPrefix;
+ if (na) {
var n = Ji, r = qi;
- n = (r & ~(1 << 32 - Ze(r) - 1)).toString(32) + n, t = "_" + t + "R_" + n, n = Wo++, 0 < n && (t += "H" + n.toString(32)), t += "_";
- } else n = qo++, t = "_" + t + "r_" + n.toString(32) + "_";
+ n = (r & ~(1 << 32 - Ze(r) - 1)).toString(32) + n, t = "_" + t + "R_" + n, n = Go++, 0 < n && (t += "H" + n.toString(32)), t += "_";
+ } else n = Jo++, t = "_" + t + "r_" + n.toString(32) + "_";
return e.memoizedState = t;
},
- useHostTransitionStatus: tc,
- useFormState: Os,
- useActionState: Os,
+ useHostTransitionStatus: nc,
+ useFormState: ks,
+ useActionState: ks,
useOptimistic: function(e) {
- var t = rs();
+ var t = is();
t.memoizedState = t.baseState = e;
var n = {
pending: null,
@@ -13312,132 +13312,132 @@ var Sf = /* @__PURE__ */ h(((e) => {
lastRenderedReducer: null,
lastRenderedState: null
};
- return t.queue = n, t = cc.bind(null, W, !0, n), n.dispatch = t, [e, t];
+ return t.queue = n, t = lc.bind(null, U, !0, n), n.dispatch = t, [e, t];
},
- useMemoCache: cs,
+ useMemoCache: ls,
useCacheRefresh: function() {
- return rs().memoizedState = ic.bind(null, W);
+ return is().memoizedState = ac.bind(null, U);
},
useEffectEvent: function(e) {
- var t = rs(), n = { impl: e };
+ var t = is(), n = { impl: e };
return t.memoizedState = n, function() {
- if (ed & 2) throw Error(i(440));
+ if (td & 2) throw Error(i(440));
return n.impl.apply(void 0, arguments);
};
}
- }, mc = {
- readContext: xa,
- use: ss,
- useCallback: Ks,
- useContext: xa,
- useEffect: Rs,
- useImperativeHandle: Ws,
- useInsertionEffect: Vs,
- useLayoutEffect: Hs,
- useMemo: qs,
- useReducer: us,
- useRef: Ps,
+ }, hc = {
+ readContext: Sa,
+ use: cs,
+ useCallback: qs,
+ useContext: Sa,
+ useEffect: zs,
+ useImperativeHandle: Gs,
+ useInsertionEffect: Hs,
+ useLayoutEffect: Us,
+ useMemo: Js,
+ useReducer: ds,
+ useRef: Fs,
useState: function() {
- return us(ls);
+ return ds(us);
},
- useDebugValue: Gs,
+ useDebugValue: Ks,
useDeferredValue: function(e, t) {
- return Ys(is(), zo.memoizedState, e, t);
+ return Xs(as(), Bo.memoizedState, e, t);
},
useTransition: function() {
- var e = us(ls)[0], t = is().memoizedState;
- return [typeof e == "boolean" ? e : os(e), t];
+ var e = ds(us)[0], t = as().memoizedState;
+ return [typeof e == "boolean" ? e : ss(e), t];
},
- useSyncExternalStore: ps,
- useId: nc,
- useHostTransitionStatus: tc,
- useFormState: ks,
- useActionState: ks,
+ useSyncExternalStore: ms,
+ useId: rc,
+ useHostTransitionStatus: nc,
+ useFormState: As,
+ useActionState: As,
useOptimistic: function(e, t) {
- return bs(is(), zo, e, t);
+ return xs(as(), Bo, e, t);
},
- useMemoCache: cs,
- useCacheRefresh: rc,
- useEffectEvent: Bs
- }, hc = {
- readContext: xa,
- use: ss,
- useCallback: Ks,
- useContext: xa,
- useEffect: Rs,
- useImperativeHandle: Ws,
- useInsertionEffect: Vs,
- useLayoutEffect: Hs,
- useMemo: qs,
- useReducer: fs,
- useRef: Ps,
+ useMemoCache: ls,
+ useCacheRefresh: ic,
+ useEffectEvent: Vs
+ }, gc = {
+ readContext: Sa,
+ use: cs,
+ useCallback: qs,
+ useContext: Sa,
+ useEffect: zs,
+ useImperativeHandle: Gs,
+ useInsertionEffect: Hs,
+ useLayoutEffect: Us,
+ useMemo: Js,
+ useReducer: ps,
+ useRef: Fs,
useState: function() {
- return fs(ls);
+ return ps(us);
},
- useDebugValue: Gs,
+ useDebugValue: Ks,
useDeferredValue: function(e, t) {
- var n = is();
- return zo === null ? Js(n, e, t) : Ys(n, zo.memoizedState, e, t);
+ var n = as();
+ return Bo === null ? Ys(n, e, t) : Xs(n, Bo.memoizedState, e, t);
},
useTransition: function() {
- var e = fs(ls)[0], t = is().memoizedState;
- return [typeof e == "boolean" ? e : os(e), t];
+ var e = ps(us)[0], t = as().memoizedState;
+ return [typeof e == "boolean" ? e : ss(e), t];
},
- useSyncExternalStore: ps,
- useId: nc,
- useHostTransitionStatus: tc,
- useFormState: Ms,
- useActionState: Ms,
+ useSyncExternalStore: ms,
+ useId: rc,
+ useHostTransitionStatus: nc,
+ useFormState: Ns,
+ useActionState: Ns,
useOptimistic: function(e, t) {
- var n = is();
- return zo === null ? (n.baseState = e, [e, n.queue.dispatch]) : bs(n, zo, e, t);
+ var n = as();
+ return Bo === null ? (n.baseState = e, [e, n.queue.dispatch]) : xs(n, Bo, e, t);
},
- useMemoCache: cs,
- useCacheRefresh: rc,
- useEffectEvent: Bs
+ useMemoCache: ls,
+ useCacheRefresh: ic,
+ useEffectEvent: Vs
};
- function gc(e, t, n, r) {
+ function _c(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 _c = {
+ var vc = {
enqueueSetState: function(e, t, n) {
e = e._reactInternals;
- var r = Fd(), i = po(r);
- i.payload = t, n != null && (i.callback = n), t = mo(e, i, r), t !== null && (Rd(t, e, r), ho(t, e, r));
+ var r = Ld(), i = mo(r);
+ i.payload = t, n != null && (i.callback = n), t = ho(e, i, r), t !== null && (Bd(t, e, r), go(t, e, r));
},
enqueueReplaceState: function(e, t, n) {
e = e._reactInternals;
- var r = Fd(), i = po(r);
- i.tag = 1, i.payload = t, n != null && (i.callback = n), t = mo(e, i, r), t !== null && (Rd(t, e, r), ho(t, e, r));
+ var r = Ld(), i = mo(r);
+ i.tag = 1, i.payload = t, n != null && (i.callback = n), t = ho(e, i, r), t !== null && (Bd(t, e, r), go(t, e, r));
},
enqueueForceUpdate: function(e, t) {
e = e._reactInternals;
- var n = Fd(), r = po(n);
- r.tag = 2, t != null && (r.callback = t), t = mo(e, r, n), t !== null && (Rd(t, e, n), ho(t, e, n));
+ var n = Ld(), r = mo(n);
+ r.tag = 2, t != null && (r.callback = t), t = ho(e, r, n), t !== null && (Bd(t, e, n), go(t, e, n));
}
};
- function vc(e, t, n, r, i, a, o) {
+ function yc(e, t, n, r, i, a, o) {
return e = e.stateNode, typeof e.shouldComponentUpdate == "function" ? e.shouldComponentUpdate(r, a, o) : t.prototype && t.prototype.isPureReactComponent ? !Rr(n, r) || !Rr(i, a) : !0;
}
- function yc(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 && _c.enqueueReplaceState(t, t.state, null);
+ function bc(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 && vc.enqueueReplaceState(t, t.state, null);
}
- function bc(e, t) {
+ function xc(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 xc(e) {
+ function Sc(e) {
_i(e);
}
- function Sc(e) {
+ function Cc(e) {
console.error(e);
}
- function Cc(e) {
+ function wc(e) {
_i(e);
}
- function wc(e, t) {
+ function Tc(e, t) {
try {
var n = e.onUncaughtError;
n(t.value, { componentStack: t.stack });
@@ -13447,7 +13447,7 @@ var Sf = /* @__PURE__ */ h(((e) => {
});
}
}
- function Tc(e, t, n) {
+ function Ec(e, t, n) {
try {
var r = e.onCaughtError;
r(n.value, {
@@ -13460,57 +13460,57 @@ var Sf = /* @__PURE__ */ h(((e) => {
});
}
}
- function Ec(e, t, n) {
- return n = po(n), n.tag = 3, n.payload = { element: null }, n.callback = function() {
- wc(e, t);
+ function Dc(e, t, n) {
+ return n = mo(n), n.tag = 3, n.payload = { element: null }, n.callback = function() {
+ Tc(e, t);
}, n;
}
- function Dc(e) {
- return e = po(e), e.tag = 3, e;
+ function Oc(e) {
+ return e = mo(e), e.tag = 3, e;
}
- function Oc(e, t, n, r) {
+ function kc(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() {
- Tc(t, n, r);
+ Ec(t, n, r);
};
}
var o = n.stateNode;
o !== null && typeof o.componentDidCatch == "function" && (e.callback = function() {
- Tc(t, n, r), typeof i != "function" && (Sd === null ? Sd = /* @__PURE__ */ new Set([this]) : Sd.add(this));
+ Ec(t, n, r), typeof i != "function" && (wd === null ? wd = /* @__PURE__ */ new Set([this]) : wd.add(this));
var e = r.stack;
this.componentDidCatch(r.value, { componentStack: e === null ? "" : e });
});
}
- function kc(e, t, n, r, a) {
+ function Ac(e, t, n, r, a) {
if (n.flags |= 32768, typeof r == "object" && r && typeof r.then == "function") {
- if (t = n.alternate, t !== null && va(t, n, a, !0), n = Do.current, n !== null) {
+ if (t = n.alternate, t !== null && ya(t, n, a, !0), n = Oo.current, n !== null) {
switch (n.tag) {
case 31:
case 13:
- case 19: return Oo === null ? Xd() : n.alternate === null && ld === 0 && (ld = 3), n.flags &= -257, n.flags |= 65536, n.lanes = a, r === Ja ? n.flags |= 16384 : (t = n.updateQueue, t === null ? n.updateQueue = /* @__PURE__ */ new Set([r]) : t.add(r), yf(e, r, a)), !1;
- case 22: return n.flags |= 65536, r === Ja ? n.flags |= 16384 : (t = n.updateQueue, t === null ? (t = {
+ case 19: return ko === null ? Qd() : n.alternate === null && dd === 0 && (dd = 3), n.flags &= -257, n.flags |= 65536, n.lanes = a, r === Ya ? n.flags |= 16384 : (t = n.updateQueue, t === null ? n.updateQueue = /* @__PURE__ */ new Set([r]) : t.add(r), xf(e, r, a)), !1;
+ case 22: return n.flags |= 65536, r === Ya ? n.flags |= 16384 : (t = n.updateQueue, t === null ? (t = {
transitions: null,
markerInstances: null,
retryQueue: /* @__PURE__ */ new Set([r])
- }, n.updateQueue = t) : (n = t.retryQueue, n === null ? t.retryQueue = /* @__PURE__ */ new Set([r]) : n.add(r)), yf(e, r, a)), !1;
+ }, n.updateQueue = t) : (n = t.retryQueue, n === null ? t.retryQueue = /* @__PURE__ */ new Set([r]) : n.add(r)), xf(e, r, a)), !1;
}
throw Error(i(435, n.tag));
}
- return yf(e, r, a), Xd(), !1;
+ return xf(e, r, a), Qd(), !1;
}
- if (H) return t = Do.current, t === null ? (r !== U && (t = Error(i(423), { cause: r }), ua(zi(t, n))), e = e.current.alternate, e.flags |= 65536, a &= -a, e.lanes |= a, r = zi(r, n), a = Ec(e.stateNode, r, a), go(e, a), ld !== 4 && (ld = 2)) : (!(t.flags & 65536) && (t.flags |= 256), t.flags |= 65536, t.lanes = a, r !== U && (e = Error(i(422), { cause: r }), ua(zi(e, n)))), !1;
+ if (na) return t = Oo.current, t === null ? (r !== aa && (t = Error(i(423), { cause: r }), da(zi(t, n))), e = e.current.alternate, e.flags |= 65536, a &= -a, e.lanes |= a, r = zi(r, n), a = Dc(e.stateNode, r, a), _o(e, a), dd !== 4 && (dd = 2)) : (!(t.flags & 65536) && (t.flags |= 256), t.flags |= 65536, t.lanes = a, r !== aa && (e = Error(i(422), { cause: r }), da(zi(e, n)))), !1;
var o = Error(i(520), { cause: r });
- if (o = zi(o, n), hd === null ? hd = [o] : hd.push(o), ld !== 4 && (ld = 2), t === null) return !0;
+ if (o = zi(o, n), _d === null ? _d = [o] : _d.push(o), dd !== 4 && (dd = 2), t === null) return !0;
r = zi(r, n), n = t;
do {
switch (n.tag) {
- case 3: return n.flags |= 65536, e = a & -a, n.lanes |= e, e = Ec(n.stateNode, r, e), go(n, e), !1;
+ case 3: return n.flags |= 65536, e = a & -a, n.lanes |= e, e = Dc(n.stateNode, r, e), _o(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" && (Sd === null || !Sd.has(o)))) return n.flags |= 65536, a &= -a, n.lanes |= a, a = Dc(a), Oc(a, e, n, r), go(n, a), !1;
+ if (t = n.type, o = n.stateNode, !(n.flags & 128) && (typeof t.getDerivedStateFromError == "function" || o !== null && typeof o.componentDidCatch == "function" && (wd === null || !wd.has(o)))) return n.flags |= 65536, a &= -a, n.lanes |= a, a = Oc(a), kc(a, e, n, r), _o(n, a), !1;
break;
case 22: if (n.memoizedState !== null) return n.flags |= 65536, !1;
}
@@ -13518,41 +13518,41 @@ var Sf = /* @__PURE__ */ h(((e) => {
} while (n !== null);
return !1;
}
- var Ac = Error(i(461)), jc = !1;
- function Mc(e, t, n, r) {
- t.child = e === null ? co(t, null, n, r) : so(t, e.child, n, r);
+ var jc = Error(i(461)), Mc = !1;
+ function Nc(e, t, n, r) {
+ t.child = e === null ? lo(t, null, n, r) : co(t, e.child, n, r);
}
- function Nc(e, t, n, r, i) {
+ function Pc(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 ba(t), r = Xo(e, t, n, o, a, i), s = es(), e !== null && !jc ? (ts(e, t, i), sl(e, t, i)) : (H && s && Zi(t), t.flags |= 1, Mc(e, t, r, i), t.child);
+ return xa(t), r = Zo(e, t, n, o, a, i), s = ts(), e !== null && !Mc ? (ns(e, t, i), cl(e, t, i)) : (na && s && Zi(t), t.flags |= 1, Nc(e, t, r, i), t.child);
}
- function Pc(e, t, n, r, i) {
+ function Fc(e, t, n, r, i) {
if (e === null) {
var a = n.type;
- return typeof a == "function" && !Ai(a) && a.defaultProps === void 0 && n.compare === null ? (t.tag = 15, t.type = a, Fc(e, t, a, r, i)) : (e = Ni(n.type, null, r, t, t.mode, i), e.ref = t.ref, e.return = t, t.child = e);
+ return typeof a == "function" && !Ai(a) && a.defaultProps === void 0 && n.compare === null ? (t.tag = 15, t.type = a, Ic(e, t, a, r, i)) : (e = Ni(n.type, null, r, t, t.mode, i), e.ref = t.ref, e.return = t, t.child = e);
}
- if (a = e.child, !cl(e, i)) {
+ if (a = e.child, !ll(e, i)) {
var o = a.memoizedProps;
- if (n = n.compare, n = n === null ? Rr : n, n(o, r) && e.ref === t.ref) return sl(e, t, i);
+ if (n = n.compare, n = n === null ? Rr : n, n(o, r) && e.ref === t.ref) return cl(e, t, i);
}
return t.flags |= 1, e = ji(a, r), e.ref = t.ref, e.return = t, t.child = e;
}
- function Fc(e, t, n, r, i) {
+ function Ic(e, t, n, r, i) {
if (e !== null) {
var a = e.memoizedProps;
if (Rr(a, r) && e.ref === t.ref) {
- if (jc = !1, t.pendingProps = r = a, cl(e, i)) e.flags & 131072 && (jc = !0);
- else return t.lanes = e.lanes, sl(e, t, i);
+ if (Mc = !1, t.pendingProps = r = a, ll(e, i)) e.flags & 131072 && (Mc = !0);
+ else return t.lanes = e.lanes, cl(e, t, i);
}
}
- return Uc(e, t, n, r, i);
+ return Wc(e, t, n, r, i);
}
- function Ic(e, t, n, r) {
+ function Lc(e, t, n, r) {
var i = r.children, a = e === null ? null : e.memoizedState;
if (e === null && t.stateNode === null && (t.stateNode = {
_visibility: 1,
@@ -13565,17 +13565,17 @@ var Sf = /* @__PURE__ */ h(((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 Rc(e, t, a, n, r);
+ return zc(e, t, a, n, r);
}
if (n & 536870912) t.memoizedState = {
baseLanes: 0,
cachePool: null
- }, e !== null && Ua(t, a === null ? null : a.cachePool), a === null ? To() : wo(t, a), jo(t);
- else return r = t.lanes = 536870912, Rc(e, t, a === null ? n : a.baseLanes | n, n, r);
- } else a === null ? (e !== null && Ua(t, null), To(), Mo()) : (Ua(t, a.cachePool), wo(t, a), Mo(), t.memoizedState = null);
- return Mc(e, t, i, n), t.child;
+ }, e !== null && Wa(t, a === null ? null : a.cachePool), a === null ? Eo() : To(t, a), Mo(t);
+ else return r = t.lanes = 536870912, zc(e, t, a === null ? n : a.baseLanes | n, n, r);
+ } else a === null ? (e !== null && Wa(t, null), Eo(), No()) : (Wa(t, a.cachePool), To(t, a), No(), t.memoizedState = null);
+ return Nc(e, t, i, n), t.child;
}
- function Lc(e, t) {
+ function Rc(e, t) {
return e !== null && e.tag === 22 || t.stateNode !== null || (t.stateNode = {
_visibility: 1,
_pendingMarkers: null,
@@ -13583,34 +13583,34 @@ var Sf = /* @__PURE__ */ h(((e) => {
_transitions: null
}), t.sibling;
}
- function Rc(e, t, n, r, i) {
- var a = Ha();
+ function zc(e, t, n, r, i) {
+ var a = Ua();
return a = a === null ? null : {
- parent: Da._currentValue,
+ parent: Oa._currentValue,
pool: a
}, t.memoizedState = {
baseLanes: n,
cachePool: a
- }, e !== null && Ua(t, null), To(), jo(t), e !== null && va(e, t, r, !0), t.childLanes = i, null;
+ }, e !== null && Wa(t, null), Eo(), Mo(t), e !== null && ya(e, t, r, !0), t.childLanes = i, null;
}
- function zc(e, t) {
- return t = Qc({
+ function Bc(e, t) {
+ return t = $c({
mode: t.mode,
children: t.children
}, e.mode), t.ref = e.ref, e.child = t, t.return = e, t;
}
- function Bc(e, t, n) {
- return so(t, e.child, null, n), e = zc(t, t.pendingProps), e.flags |= 2, No(t), t.memoizedState = null, e;
- }
function Vc(e, t, n) {
+ return co(t, e.child, null, n), e = Bc(t, t.pendingProps), e.flags |= 2, Po(t), t.memoizedState = null, e;
+ }
+ function Hc(e, t, n) {
var r = t.pendingProps, a = !!(t.flags & 128);
if (t.flags &= -129, e === null) {
- if (H) {
- if (r.mode === "hidden") return e = zc(t, r), t.lanes = 536870912, e.memoizedState = {
+ if (na) {
+ if (r.mode === "hidden") return e = Bc(t, r), t.lanes = 536870912, e.memoizedState = {
baseLanes: 0,
cachePool: null
- }, Lc(null, e);
- if (Ao(t), (e = ta) ? (e = fm(e, ra), e = e !== null && e.data === "&" ? e : null, e !== null && (t.memoizedState = {
+ }, Rc(null, e);
+ if (jo(t), (e = ta) ? (e = mm(e, ia), e = e !== null && e.data === "&" ? e : null, e !== null && (t.memoizedState = {
dehydrated: e,
treeContext: Ki === null ? null : {
id: qi,
@@ -13618,25 +13618,25 @@ var Sf = /* @__PURE__ */ h(((e) => {
},
retryLane: 536870912,
hydrationErrors: null
- }, n = Ii(e), n.return = t, t.child = n, ea = t, ta = null)) : e = null, e === null) throw ia(t);
+ }, n = Ii(e), n.return = t, t.child = n, ea = t, ta = null)) : e = null, e === null) throw H(t);
return t.lanes = 536870912, null;
}
- return zc(t, r);
+ return Bc(t, r);
}
var o = e.memoizedState;
if (o !== null) {
var s = o.dehydrated;
- if (Ao(t), a) {
- if (t.flags & 256) t.flags &= -257, t = Bc(e, t, n);
+ if (jo(t), a) {
+ if (t.flags & 256) t.flags &= -257, t = Vc(e, t, n);
else if (t.memoizedState !== null) t.child = e.child, t.flags |= 128, t = null;
else throw Error(i(558));
- } else if (jc || va(e, t, n, !1), a = (n & e.childLanes) !== 0, jc || a) {
- if (So.current === null) {
- if (r = td, r !== null && (s = ht(r, n), s !== 0 && s !== o.retryLane)) throw o.retryLane = s, wi(e, s), Rd(r, e, s), Ac;
- Xd();
+ } else if (Mc || ya(e, t, n, !1), a = (n & e.childLanes) !== 0, Mc || a) {
+ if (Co.current === null) {
+ if (r = nd, r !== null && (s = ht(r, n), s !== 0 && s !== o.retryLane)) throw o.retryLane = s, wi(e, s), Bd(r, e, s), jc;
+ Qd();
}
- t = Bc(e, t, n);
- } else e = o.treeContext, ta = gm(s.nextSibling), ea = t, H = !0, na = null, ra = !1, e !== null && $i(t, e), t = zc(t, r), t.flags |= 134221824;
+ t = Vc(e, t, n);
+ } else e = o.treeContext, ta = vm(s.nextSibling), ea = t, na = !0, ra = null, ia = !1, e !== null && $i(t, e), t = Bc(t, r), t.flags |= 134221824;
return t;
}
return e = ji(e.child, {
@@ -13644,7 +13644,7 @@ var Sf = /* @__PURE__ */ h(((e) => {
children: r.children
}), e.ref = t.ref, t.child = e, e.return = t, e;
}
- function Hc(e, t) {
+ function Uc(e, t) {
var n = t.ref;
if (n === null) e !== null && e.ref !== null && (t.flags |= 4194816);
else {
@@ -13652,56 +13652,56 @@ var Sf = /* @__PURE__ */ h(((e) => {
(e === null || e.ref !== n) && (t.flags |= 4194816);
}
}
- function Uc(e, t, n, r, i) {
- return ba(t), n = Xo(e, t, n, r, void 0, i), r = es(), e !== null && !jc ? (ts(e, t, i), sl(e, t, i)) : (H && r && Zi(t), t.flags |= 1, Mc(e, t, n, i), t.child);
+ function Wc(e, t, n, r, i) {
+ return xa(t), n = Zo(e, t, n, r, void 0, i), r = ts(), e !== null && !Mc ? (ns(e, t, i), cl(e, t, i)) : (na && r && Zi(t), t.flags |= 1, Nc(e, t, n, i), t.child);
}
- function Wc(e, t, n, r, i, a) {
- return ba(t), t.updateQueue = null, n = Qo(t, r, n, i), Zo(e), r = es(), e !== null && !jc ? (ts(e, t, a), sl(e, t, a)) : (H && r && Zi(t), t.flags |= 1, Mc(e, t, n, a), t.child);
+ function Gc(e, t, n, r, i, a) {
+ return xa(t), t.updateQueue = null, n = $o(t, r, n, i), Qo(e), r = ts(), e !== null && !Mc ? (ns(e, t, a), cl(e, t, a)) : (na && r && Zi(t), t.flags |= 1, Nc(e, t, n, a), t.child);
}
- function Gc(e, t, n, r, i) {
- if (ba(t), t.stateNode === null) {
+ function Kc(e, t, n, r, i) {
+ if (xa(t), t.stateNode === null) {
var a = Di, o = n.contextType;
- typeof o == "object" && o && (a = xa(o)), a = new n(r, a), t.memoizedState = a.state !== null && a.state !== void 0 ? a.state : null, a.updater = _c, t.stateNode = a, a._reactInternals = t, a = t.stateNode, a.props = r, a.state = t.memoizedState, a.refs = {}, uo(t), o = n.contextType, a.context = typeof o == "object" && o ? xa(o) : Di, a.state = t.memoizedState, o = n.getDerivedStateFromProps, typeof o == "function" && (gc(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 && _c.enqueueReplaceState(a, a.state, null), yo(t, r, a, i), vo(), a.state = t.memoizedState), typeof a.componentDidMount == "function" && (t.flags |= 4194308), r = !0;
+ typeof o == "object" && o && (a = Sa(o)), a = new n(r, a), t.memoizedState = a.state !== null && a.state !== void 0 ? a.state : null, a.updater = vc, t.stateNode = a, a._reactInternals = t, a = t.stateNode, a.props = r, a.state = t.memoizedState, a.refs = {}, fo(t), o = n.contextType, a.context = typeof o == "object" && o ? Sa(o) : Di, a.state = t.memoizedState, o = n.getDerivedStateFromProps, typeof o == "function" && (_c(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 && vc.enqueueReplaceState(a, a.state, null), bo(t, r, a, i), yo(), 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 = bc(n, s);
+ var s = t.memoizedProps, c = xc(n, s);
a.props = c;
var l = a.context, u = n.contextType;
- o = Di, typeof u == "object" && u && (o = xa(u));
+ o = Di, typeof u == "object" && u && (o = Sa(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) && yc(t, a, r, o), lo = !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) && bc(t, a, r, o), uo = !1;
var f = t.memoizedState;
- a.state = f, yo(t, r, a, i), vo(), l = t.memoizedState, s || f !== l || lo ? (typeof d == "function" && (gc(t, n, d, r), l = t.memoizedState), (c = lo || vc(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, bo(t, r, a, i), yo(), l = t.memoizedState, s || f !== l || uo ? (typeof d == "function" && (_c(t, n, d, r), l = t.memoizedState), (c = uo || yc(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, fo(e, t), o = t.memoizedProps, u = bc(n, o), a.props = u, d = t.pendingProps, f = a.context, l = n.contextType, c = Di, typeof l == "object" && l && (c = xa(l)), s = n.getDerivedStateFromProps, (l = typeof s == "function" || typeof a.getSnapshotBeforeUpdate == "function") || typeof a.UNSAFE_componentWillReceiveProps != "function" && typeof a.componentWillReceiveProps != "function" || (o !== d || f !== c) && yc(t, a, r, c), lo = !1, f = t.memoizedState, a.state = f, yo(t, r, a, i), vo();
+ a = t.stateNode, po(e, t), o = t.memoizedProps, u = xc(n, o), a.props = u, d = t.pendingProps, f = a.context, l = n.contextType, c = Di, typeof l == "object" && l && (c = Sa(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) && bc(t, a, r, c), uo = !1, f = t.memoizedState, a.state = f, bo(t, r, a, i), yo();
var p = t.memoizedState;
- o !== d || f !== p || lo || e !== null && e.dependencies !== null && ya(e.dependencies) ? (typeof s == "function" && (gc(t, n, s, r), p = t.memoizedState), (u = lo || vc(t, n, u, r, f, p, c) || e !== null && e.dependencies !== null && ya(e.dependencies)) ? (l || typeof a.UNSAFE_componentWillUpdate != "function" && typeof a.componentWillUpdate != "function" || (typeof a.componentWillUpdate == "function" && a.componentWillUpdate(r, p, c), typeof a.UNSAFE_componentWillUpdate == "function" && a.UNSAFE_componentWillUpdate(r, p, c)), typeof a.componentDidUpdate == "function" && (t.flags |= 4), typeof a.getSnapshotBeforeUpdate == "function" && (t.flags |= 1024)) : (typeof a.componentDidUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 4), typeof a.getSnapshotBeforeUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 1024), t.memoizedProps = r, t.memoizedState = p), a.props = r, a.state = p, a.context = c, r = u) : (typeof a.componentDidUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 4), typeof a.getSnapshotBeforeUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 1024), r = !1);
+ o !== d || f !== p || uo || e !== null && e.dependencies !== null && ba(e.dependencies) ? (typeof s == "function" && (_c(t, n, s, r), p = t.memoizedState), (u = uo || yc(t, n, u, r, f, p, c) || e !== null && e.dependencies !== null && ba(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, Hc(e, t), r = !!(t.flags & 128), a || r ? (a = t.stateNode, n = r && typeof n.getDerivedStateFromError != "function" ? null : a.render(), t.flags |= 1, e !== null && r ? (t.child = so(t, e.child, null, i), t.child = so(t, null, n, i)) : Mc(e, t, n, i), t.memoizedState = a.state, e = t.child) : e = sl(e, t, i), e;
+ return a = r, Uc(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 = co(t, e.child, null, i), t.child = co(t, null, n, i)) : Nc(e, t, n, i), t.memoizedState = a.state, e = t.child) : e = cl(e, t, i), e;
}
- function Kc(e, t, n, r) {
- return ca(), t.flags |= 256, Mc(e, t, n, r), t.child;
+ function qc(e, t, n, r) {
+ return la(), t.flags |= 256, Nc(e, t, n, r), t.child;
}
- var qc = {
+ var Jc = {
dehydrated: null,
treeContext: null,
retryLane: 0,
hydrationErrors: null
};
- function Jc(e) {
+ function Yc(e) {
return {
baseLanes: e,
- cachePool: Wa()
+ cachePool: Ga()
};
}
- function Yc(e, t, n) {
- return e = e === null ? 0 : e.childLanes & ~n, t && (e |= pd), e;
- }
function Xc(e, t, n) {
+ return e = e === null ? 0 : e.childLanes & ~n, t && (e |= hd), e;
+ }
+ function Zc(e, t, n) {
var r = t.pendingProps, i = !1, a = !!(t.flags & 128), o;
- if ((o = a) || (o = e !== null && e.memoizedState === null ? !1 : !!(Po.current & 2)), o && (i = !0, t.flags &= -129), o = !!(t.flags & 32), t.flags &= -33, e === null) {
- if (H) {
- if (i ? ko(t) : Mo(), (e = ta) ? (e = fm(e, ra), e = e !== null && e.data !== "&" ? e : null, e !== null && (t.memoizedState = {
+ if ((o = a) || (o = e !== null && e.memoizedState === null ? !1 : !!(Fo.current & 2)), o && (i = !0, t.flags &= -129), o = !!(t.flags & 32), t.flags &= -33, e === null) {
+ if (na) {
+ if (i ? Ao(t) : No(), (e = ta) ? (e = mm(e, ia), e = e !== null && e.data !== "&" ? e : null, e !== null && (t.memoizedState = {
dehydrated: e,
treeContext: Ki === null ? null : {
id: qi,
@@ -13709,78 +13709,78 @@ var Sf = /* @__PURE__ */ h(((e) => {
},
retryLane: 536870912,
hydrationErrors: null
- }, n = Ii(e), n.return = t, t.child = n, ea = t, ta = null)) : e = null, e === null) throw ia(t);
- return t.lanes = mm(e) ? 32 : 536870912, null;
+ }, n = Ii(e), n.return = t, t.child = n, ea = t, ta = null)) : e = null, e === null) throw H(t);
+ return t.lanes = gm(e) ? 32 : 536870912, null;
}
- return a = r.children, r = r.fallback, i ? (Mo(), i = t.mode, a = Qc({
+ return a = r.children, r = r.fallback, i ? (No(), i = t.mode, a = $c({
mode: "hidden",
children: a
- }, i), r = Pi(r, i, n, null), a.return = t, r.return = t, a.sibling = r, t.child = a, r = t.child, r.memoizedState = Jc(n), r.childLanes = Yc(e, o, n), t.memoizedState = qc, Lc(null, r)) : (ko(t), Zc(t, a));
+ }, i), r = Pi(r, i, n, null), a.return = t, r.return = t, a.sibling = r, t.child = a, r = t.child, r.memoizedState = Yc(n), r.childLanes = Xc(e, o, n), t.memoizedState = Jc, Rc(null, r)) : (Ao(t), Qc(t, a));
}
var s = e.memoizedState;
if (s !== null) {
var c = s.dehydrated;
- if (c !== null) return el(e, t, a, o, r, c, s, n);
+ if (c !== null) return tl(e, t, a, o, r, c, s, n);
}
- return i ? (Mo(), i = r.fallback, a = t.mode, s = e.child, c = s.sibling, r = ji(s, {
+ return i ? (No(), i = r.fallback, a = t.mode, s = e.child, c = s.sibling, r = ji(s, {
mode: "hidden",
children: r.children
- }), r.subtreeFlags = s.subtreeFlags & 1206910976, c === null ? (i = Pi(i, a, n, null), i.flags |= 2) : i = ji(c, i), i.return = t, r.return = t, r.sibling = i, t.child = r, Lc(null, r), r = t.child, i = e.child.memoizedState, i === null ? i = Jc(n) : (a = i.cachePool, a === null ? a = Wa() : (s = Da._currentValue, a = a.parent === s ? a : {
+ }), r.subtreeFlags = s.subtreeFlags & 1206910976, c === null ? (i = Pi(i, a, n, null), i.flags |= 2) : i = ji(c, i), i.return = t, r.return = t, r.sibling = i, t.child = r, Rc(null, r), r = t.child, i = e.child.memoizedState, i === null ? i = Yc(n) : (a = i.cachePool, a === null ? a = Ga() : (s = Oa._currentValue, a = a.parent === s ? a : {
parent: s,
pool: s
}), i = {
baseLanes: i.baseLanes | n,
cachePool: a
- }), r.memoizedState = i, r.childLanes = Yc(e, o, n), t.memoizedState = qc, Lc(e.child, r)) : (ko(t), n = e.child, e = n.sibling, n = ji(n, {
+ }), r.memoizedState = i, r.childLanes = Xc(e, o, n), t.memoizedState = Jc, Rc(e.child, r)) : (Ao(t), n = e.child, e = n.sibling, n = ji(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 Zc(e, t) {
- return t = Qc({
+ function Qc(e, t) {
+ return t = $c({
mode: "visible",
children: t
}, e.mode), t.return = e, e.child = t;
}
- function Qc(e, t) {
+ function $c(e, t) {
return e = ki(22, e, null, t), e.lanes = 0, e;
}
- function $c(e, t, n) {
- return so(t, e.child, null, n), e = Zc(t, t.pendingProps.children), e.flags |= 2, t.memoizedState = null, e;
+ function el(e, t, n) {
+ return co(t, e.child, null, n), e = Qc(t, t.pendingProps.children), e.flags |= 2, t.memoizedState = null, e;
}
- function el(e, t, n, r, a, o, s, c) {
- if (n) return t.flags & 256 ? (ko(t), t.flags &= -257, $c(e, t, c)) : t.memoizedState === null ? (Mo(), o = a.fallback, s = t.mode, a = Qc({
+ function tl(e, t, n, r, a, o, s, c) {
+ if (n) return t.flags & 256 ? (Ao(t), t.flags &= -257, el(e, t, c)) : t.memoizedState === null ? (No(), o = a.fallback, s = t.mode, a = $c({
mode: "visible",
children: a.children
- }, s), o = Pi(o, s, c, null), o.flags |= 2, a.return = t, o.return = t, a.sibling = o, t.child = a, so(t, e.child, null, c), a = t.child, a.memoizedState = Jc(c), a.childLanes = Yc(e, r, c), t.memoizedState = qc, Lc(null, a)) : (Mo(), t.child = e.child, t.flags |= 128, null);
- if (ko(t), mm(o)) {
+ }, s), o = Pi(o, s, c, null), o.flags |= 2, a.return = t, o.return = t, a.sibling = o, t.child = a, co(t, e.child, null, c), a = t.child, a.memoizedState = Yc(c), a.childLanes = Xc(e, r, c), t.memoizedState = Jc, Rc(null, a)) : (No(), t.child = e.child, t.flags |= 128, null);
+ if (Ao(t), gm(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, ua({
+ return r = l, r !== "" && (a = Error(i(419)), a.stack = "", a.digest = r, da({
value: a,
source: null,
stack: null
- })), $c(e, t, c);
+ })), el(e, t, c);
}
- if (jc || va(e, t, c, !1), r = (c & e.childLanes) !== 0, jc || r) {
- if (So.current !== null) return $c(e, t, c);
- if (r = td, r !== null && (a = ht(r, c), a !== 0 && a !== s.retryLane)) throw s.retryLane = a, wi(e, a), Rd(r, e, a), Ac;
- return pm(o) || Xd(), $c(e, t, c);
+ if (Mc || ya(e, t, c, !1), r = (c & e.childLanes) !== 0, Mc || r) {
+ if (Co.current !== null) return el(e, t, c);
+ if (r = nd, r !== null && (a = ht(r, c), a !== 0 && a !== s.retryLane)) throw s.retryLane = a, wi(e, a), Bd(r, e, a), jc;
+ return hm(o) || Qd(), el(e, t, c);
}
- return pm(o) ? (t.flags |= 192, t.child = e.child, null) : (e = s.treeContext, ta = gm(o.nextSibling), ea = t, H = !0, na = null, ra = !1, e !== null && $i(t, e), t = Zc(t, a.children), t.flags |= 134221824, t);
+ return hm(o) ? (t.flags |= 192, t.child = e.child, null) : (e = s.treeContext, ta = vm(o.nextSibling), ea = t, na = !0, ra = null, ia = !1, e !== null && $i(t, e), t = Qc(t, a.children), t.flags |= 134221824, t);
}
- function tl(e, t, n) {
+ function nl(e, t, n) {
e.lanes |= t;
var r = e.alternate;
- r !== null && (r.lanes |= t), ga(e.return, t, n);
+ r !== null && (r.lanes |= t), _a(e.return, t, n);
}
- function nl(e) {
+ function rl(e) {
for (var t = null; e !== null;) {
var n = e.alternate;
- n !== null && Lo(n) === null && (t = e), e = e.sibling;
+ n !== null && Ro(n) === null && (t = e), e = e.sibling;
}
return t;
}
- function rl(e, t, n, r, i, a) {
+ function il(e, t, n, r, i, a) {
var o = e.memoizedState;
o === null ? e.memoizedState = {
isBackwards: t,
@@ -13792,22 +13792,22 @@ var Sf = /* @__PURE__ */ h(((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 il(e) {
+ function al(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 al(e, t, n) {
+ function ol(e, t, n) {
var r = t.pendingProps, i = r.revealOrder, a = r.tail;
r = r.children;
- var o = Po.current;
- if (t.flags & 128) return Fo(t, o), null;
+ var o = Fo.current;
+ if (t.flags & 128) return Io(t, o), null;
var s = !!(o & 2);
- if (s ? (o = o & 1 | 2, t.flags |= 128) : o &= 1, Fo(t, o), i === "backwards" && e !== null ? (il(e), Mc(e, t, r, n), il(e)) : Mc(e, t, r, n), r = H ? Ui : 0, !s && e !== null && e.flags & 128) a: for (e = t.child; e !== null;) {
- if (e.tag === 13) e.memoizedState !== null && tl(e, n, t);
- else if (e.tag === 19) tl(e, n, t);
+ if (s ? (o = o & 1 | 2, t.flags |= 128) : o &= 1, Io(t, o), i === "backwards" && e !== null ? (al(e), Nc(e, t, r, n), al(e)) : Nc(e, t, r, n), r = na ? Ui : 0, !s && e !== null && e.flags & 128) a: for (e = t.child; e !== null;) {
+ if (e.tag === 13) e.memoizedState !== null && nl(e, n, t);
+ else if (e.tag === 19) nl(e, n, t);
else if (e.child !== null) {
e.child.return = e, e = e.child;
continue;
@@ -13821,36 +13821,36 @@ var Sf = /* @__PURE__ */ h(((e) => {
}
switch (i) {
case "backwards":
- n = nl(t.child), n === null ? (i = t.child, t.child = null) : (i = n.sibling, n.sibling = null, il(t)), rl(t, !0, i, null, a, r);
+ n = rl(t.child), n === null ? (i = t.child, t.child = null) : (i = n.sibling, n.sibling = null, al(t)), il(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 && Lo(e) === null) {
+ if (e = i.alternate, e !== null && Ro(e) === null) {
t.child = i;
break;
}
e = i.sibling, i.sibling = n, n = i, i = e;
}
- rl(t, !0, n, null, a, r);
+ il(t, !0, n, null, a, r);
break;
case "together":
- rl(t, !1, null, null, void 0, r);
+ il(t, !1, null, null, void 0, r);
break;
case "independent":
t.memoizedState = null;
break;
- default: n = nl(t.child), n === null ? (i = t.child, t.child = null) : (i = n.sibling, n.sibling = null), rl(t, !1, i, n, a, r);
+ default: n = rl(t.child), n === null ? (i = t.child, t.child = null) : (i = n.sibling, n.sibling = null), il(t, !1, i, n, a, r);
}
return t.child;
}
- function ol(e, t, n) {
+ function sl(e, t, n) {
var r = t.pendingProps;
- return ma(t, t.type, r.value), Mc(e, t, r.children, n), t.child;
+ return ha(t, t.type, r.value), Nc(e, t, r.children, n), t.child;
}
- function sl(e, t, n) {
- if (e !== null && (t.dependencies = e.dependencies), ud |= t.lanes, (n & t.childLanes) === 0) {
+ function cl(e, t, n) {
+ if (e !== null && (t.dependencies = e.dependencies), fd |= t.lanes, (n & t.childLanes) === 0) {
if (e !== null) {
- if (va(e, t, n, !1), (n & t.childLanes) === 0) return null;
+ if (ya(e, t, n, !1), (n & t.childLanes) === 0) return null;
} else return null;
}
if (e !== null && t.child !== e.child) throw Error(i(153));
@@ -13860,13 +13860,13 @@ var Sf = /* @__PURE__ */ h(((e) => {
}
return t.child;
}
- function cl(e, t) {
- return (e.lanes & t) !== 0 || (e = e.dependencies, !!(e !== null && ya(e)));
+ function ll(e, t) {
+ return (e.lanes & t) !== 0 || (e = e.dependencies, !!(e !== null && ba(e)));
}
- function ll(e, t, n) {
+ function ul(e, t, n) {
switch (t.tag) {
case 3:
- Ce(t, t.stateNode.containerInfo), ma(t, Da, e.memoizedState.cache), ca();
+ Ce(t, t.stateNode.containerInfo), ha(t, Oa, e.memoizedState.cache), la();
break;
case 27:
case 5:
@@ -13876,60 +13876,60 @@ var Sf = /* @__PURE__ */ h(((e) => {
Ce(t, t.stateNode.containerInfo);
break;
case 10:
- ma(t, t.type, t.memoizedProps.value);
+ ha(t, t.type, t.memoizedProps.value);
break;
case 31:
- if (t.memoizedState !== null) return t.flags |= 128, Ao(t), null;
+ if (t.memoizedState !== null) return t.flags |= 128, jo(t), null;
break;
case 13:
var r = t.memoizedState;
if (r !== null) {
- if (r.dehydrated !== null) return ko(t), t.flags |= 128, null;
- r = va(e, t, n, !1);
+ if (r.dehydrated !== null) return Ao(t), t.flags |= 128, null;
+ r = ya(e, t, n, !1);
var i = t.child.childLanes;
- return r || (n & i) !== 0 ? Xc(e, t, n) : (ko(t), e = sl(e, t, n), e === null ? null : e.sibling);
+ return r || (n & i) !== 0 ? Zc(e, t, n) : (Ao(t), e = cl(e, t, n), e === null ? null : e.sibling);
}
- ko(t);
+ Ao(t);
break;
case 19:
- if (t.flags & 128) return al(e, t, n);
- if (i = !!(e.flags & 128), r = (n & t.childLanes) !== 0, r ||= (va(e, t, n, !1), (n & t.childLanes) !== 0), i) {
- if (r) return al(e, t, n);
+ if (t.flags & 128) return ol(e, t, n);
+ if (i = !!(e.flags & 128), r = (n & t.childLanes) !== 0, r ||= (ya(e, t, n, !1), (n & t.childLanes) !== 0), i) {
+ if (r) return ol(e, t, n);
t.flags |= 128;
}
- if (i = t.memoizedState, i !== null && (i.rendering = null, i.tail = null, i.lastEffect = null), Fo(t, Po.current), r) break;
+ if (i = t.memoizedState, i !== null && (i.rendering = null, i.tail = null, i.lastEffect = null), Io(t, Fo.current), r) break;
return null;
- case 22: return t.lanes = 0, Ic(e, t, n, t.pendingProps);
- case 24: ma(t, Da, e.memoizedState.cache);
+ case 22: return t.lanes = 0, Lc(e, t, n, t.pendingProps);
+ case 24: ha(t, Oa, e.memoizedState.cache);
}
- return sl(e, t, n);
+ return cl(e, t, n);
}
- function ul(e, t, n) {
+ function dl(e, t, n) {
if (e !== null) {
- if (e.memoizedProps !== t.pendingProps) jc = !0;
+ if (e.memoizedProps !== t.pendingProps) Mc = !0;
else {
- if (!cl(e, n) && !(t.flags & 128)) return jc = !1, ll(e, t, n);
- jc = !!(e.flags & 131072);
+ if (!ll(e, n) && !(t.flags & 128)) return Mc = !1, ul(e, t, n);
+ Mc = !!(e.flags & 131072);
}
- } else jc = !1, H && t.flags & 1048576 && Xi(t, Ui, t.index);
+ } else Mc = !1, na && t.flags & 1048576 && Xi(t, Ui, t.index);
switch (t.lanes = 0, t.tag) {
case 16:
a: {
var r = t.pendingProps;
- if (e = Za(t.elementType), t.type = e, typeof e == "function") Ai(e) ? (r = bc(e, r), t.tag = 1, t = Gc(null, t, e, r, n)) : (t.tag = 0, t = Uc(null, t, e, r, n));
+ if (e = Qa(t.elementType), t.type = e, typeof e == "function") Ai(e) ? (r = xc(e, r), t.tag = 1, t = Kc(null, t, e, r, n)) : (t.tag = 0, t = Wc(null, t, e, r, n));
else {
if (e != null) {
var a = e.$$typeof;
if (a === ee) {
- t.tag = 11, t = Nc(null, t, e, r, n);
+ t.tag = 11, t = Pc(null, t, e, r, n);
break a;
}
if (a === te) {
- t.tag = 14, t = Pc(null, t, e, r, n);
+ t.tag = 14, t = Fc(null, t, e, r, n);
break a;
}
if (a === N) {
- t.tag = 10, t.type = e, t = ol(null, t, n);
+ t.tag = 10, t.type = e, t = sl(null, t, n);
break a;
}
}
@@ -13937,26 +13937,26 @@ var Sf = /* @__PURE__ */ h(((e) => {
}
}
return t;
- case 0: return Uc(e, t, t.type, t.pendingProps, n);
- case 1: return r = t.type, a = bc(r, t.pendingProps), Gc(e, t, r, a, n);
+ case 0: return Wc(e, t, t.type, t.pendingProps, n);
+ case 1: return r = t.type, a = xc(r, t.pendingProps), Kc(e, t, r, a, n);
case 3:
a: {
if (Ce(t, t.stateNode.containerInfo), e === null) throw Error(i(387));
r = t.pendingProps;
var o = t.memoizedState;
- a = o.element, fo(e, t), yo(t, r, null, n);
+ a = o.element, po(e, t), bo(t, r, null, n);
var s = t.memoizedState;
- if (r = s.cache, ma(t, Da, r), r !== o.cache && _a(t, [Da], n, !0), vo(), r = s.element, o.isDehydrated) {
+ if (r = s.cache, ha(t, Oa, r), r !== o.cache && va(t, [Oa], n, !0), yo(), 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 = Kc(e, t, r, n);
+ t = qc(e, t, r, n);
break a;
}
if (r !== a) {
- a = zi(Error(i(424)), t), ua(a), t = Kc(e, t, r, n);
+ a = zi(Error(i(424)), t), da(a), t = qc(e, t, r, n);
break a;
}
switch (e = t.stateNode.containerInfo, e.nodeType) {
@@ -13965,76 +13965,76 @@ var Sf = /* @__PURE__ */ h(((e) => {
break;
default: e = e.nodeName === "HTML" ? e.ownerDocument.body : e;
}
- for (ta = gm(e.firstChild), ea = t, H = !0, na = null, ra = !0, n = co(t, null, r, n), t.child = n; n;) n.flags = n.flags & -3 | 134221824, n = n.sibling;
+ for (ta = vm(e.firstChild), ea = t, na = !0, ra = null, ia = !0, n = lo(t, null, r, n), t.child = n; n;) n.flags = n.flags & -3 | 134221824, n = n.sibling;
} else {
- if (ca(), r === a) {
- t = sl(e, t, n);
+ if (la(), r === a) {
+ t = cl(e, t, n);
break a;
}
- Mc(e, t, r, n);
+ Nc(e, t, r, n);
}
t = t.child;
}
return t;
- case 26: return Hc(e, t), e === null ? (n = zm(t.type, null, t.pendingProps, null)) ? t.memoizedState = n : H || (t.stateNode = bp(t.type, t.pendingProps, xe.current, t)) : t.memoizedState = zm(t.type, e.memoizedProps, t.pendingProps, e.memoizedState), null;
- case 27: return Te(t), e === null && H && (r = t.stateNode = xm(t.type, t.pendingProps, xe.current), ea = t, ra = !0, a = ta, Ap(t.type) ? (q = a, ta = gm(r.firstChild)) : ta = a), Mc(e, t, t.pendingProps.children, n), Hc(e, t), e === null && (t.flags |= 4194304), t.child;
- case 5: return e === null && H && ((a = r = ta) && (r = um(r, t.type, t.pendingProps, ra), r === null ? a = !1 : (t.stateNode = r, ea = t, ta = gm(r.firstChild), ra = !1, a = !0)), a || ia(t)), Te(t), a = t.type, o = t.pendingProps, s = e === null ? null : e.memoizedProps, r = o.children, xp(a, o) ? r = null : s !== null && xp(a, s) && (t.flags |= 32), t.memoizedState !== null && (a = Xo(e, t, $o, null, null, n), fh._currentValue = a), Hc(e, t), Mc(e, t, r, n), t.child;
- case 6: return e === null && H && ((e = n = ta) && (n = dm(n, t.pendingProps, ra), n === null ? e = !1 : (t.stateNode = n, ea = t, ta = null, e = !0)), e || ia(t)), null;
- case 13: return Xc(e, t, n);
- case 4: return Ce(t, t.stateNode.containerInfo), r = t.pendingProps, e === null ? t.child = so(t, null, r, n) : Mc(e, t, r, n), t.child;
- case 11: return Nc(e, t, t.type, t.pendingProps, n);
- case 7: return r = t.pendingProps, Hc(e, t), Mc(e, t, r, n), t.child;
- case 8: return Mc(e, t, t.pendingProps.children, n), t.child;
- case 12: return Mc(e, t, t.pendingProps.children, n), t.child;
- case 10: return ol(e, t, n);
- case 9: return a = t.type._context, r = t.pendingProps.children, ba(t), a = xa(a), r = r(a), t.flags |= 1, Mc(e, t, r, n), t.child;
- case 14: return Pc(e, t, t.type, t.pendingProps, n);
- case 15: return Fc(e, t, t.type, t.pendingProps, n);
- case 19: return al(e, t, n);
- case 31: return Vc(e, t, n);
- case 22: return Ic(e, t, n, t.pendingProps);
- case 24: return ba(t), r = xa(Da), e === null ? (a = Ha(), a === null && (a = td, o = Oa(), a.pooledCache = o, o.refCount++, o !== null && (a.pooledCacheLanes |= n), a = o), t.memoizedState = {
+ case 26: return Uc(e, t), e === null ? (n = Vm(t.type, null, t.pendingProps, null)) ? t.memoizedState = n : na || (t.stateNode = Sp(t.type, t.pendingProps, xe.current, t)) : t.memoizedState = Vm(t.type, e.memoizedProps, t.pendingProps, e.memoizedState), null;
+ case 27: return Te(t), e === null && na && (r = t.stateNode = Cm(t.type, t.pendingProps, xe.current), ea = t, ia = !0, a = ta, Mp(t.type) ? (ym = a, ta = vm(r.firstChild)) : ta = a), Nc(e, t, t.pendingProps.children, n), Uc(e, t), e === null && (t.flags |= 4194304), t.child;
+ case 5: return e === null && na && ((a = r = ta) && (r = W(r, t.type, t.pendingProps, ia), r === null ? a = !1 : (t.stateNode = r, ea = t, ta = vm(r.firstChild), ia = !1, a = !0)), a || H(t)), Te(t), a = t.type, o = t.pendingProps, s = e === null ? null : e.memoizedProps, r = o.children, Cp(a, o) ? r = null : s !== null && Cp(a, s) && (t.flags |= 32), t.memoizedState !== null && (a = Zo(e, t, es, null, null, n), fh._currentValue = a), Uc(e, t), Nc(e, t, r, n), t.child;
+ case 6: return e === null && na && ((e = n = ta) && (n = pm(n, t.pendingProps, ia), n === null ? e = !1 : (t.stateNode = n, ea = t, ta = null, e = !0)), e || H(t)), null;
+ case 13: return Zc(e, t, n);
+ case 4: return Ce(t, t.stateNode.containerInfo), r = t.pendingProps, e === null ? t.child = co(t, null, r, n) : Nc(e, t, r, n), t.child;
+ case 11: return Pc(e, t, t.type, t.pendingProps, n);
+ case 7: return r = t.pendingProps, Uc(e, t), Nc(e, t, r, n), t.child;
+ case 8: return Nc(e, t, t.pendingProps.children, n), t.child;
+ case 12: return Nc(e, t, t.pendingProps.children, n), t.child;
+ case 10: return sl(e, t, n);
+ case 9: return a = t.type._context, r = t.pendingProps.children, xa(t), a = Sa(a), r = r(a), t.flags |= 1, Nc(e, t, r, n), t.child;
+ case 14: return Fc(e, t, t.type, t.pendingProps, n);
+ case 15: return Ic(e, t, t.type, t.pendingProps, n);
+ case 19: return ol(e, t, n);
+ case 31: return Hc(e, t, n);
+ case 22: return Lc(e, t, n, t.pendingProps);
+ case 24: return xa(t), r = Sa(Oa), e === null ? (a = Ua(), a === null && (a = nd, o = ka(), a.pooledCache = o, o.refCount++, o !== null && (a.pooledCacheLanes |= n), a = o), t.memoizedState = {
parent: r,
cache: a
- }, uo(t), ma(t, Da, a)) : ((e.lanes & n) !== 0 && (fo(e, t), yo(t, null, null, n), vo()), a = e.memoizedState, o = t.memoizedState, a.parent === r ? (r = o.cache, ma(t, Da, r), r !== a.cache && _a(t, [Da], n, !0)) : (a = {
+ }, fo(t), ha(t, Oa, a)) : ((e.lanes & n) !== 0 && (po(e, t), bo(t, null, null, n), yo()), a = e.memoizedState, o = t.memoizedState, a.parent === r ? (r = o.cache, ha(t, Oa, r), r !== a.cache && va(t, [Oa], n, !0)) : (a = {
parent: r,
cache: r
- }, t.memoizedState = a, t.lanes === 0 && (t.memoizedState = t.updateQueue.baseState = a), ma(t, Da, r))), Mc(e, t, t.pendingProps.children, n), t.child;
+ }, t.memoizedState = a, t.lanes === 0 && (t.memoizedState = t.updateQueue.baseState = a), ha(t, Oa, r))), Nc(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 : H && Zi(t), e !== null && e.memoizedProps.name !== r.name ? t.flags |= 4194816 : Hc(e, t), Mc(e, t, r.children, n), t.child;
+ }), r = t.pendingProps, r.name != null && r.name !== "auto" ? t.flags |= e === null ? 18882560 : 18874368 : na && Zi(t), e !== null && e.memoizedProps.name !== r.name ? t.flags |= 4194816 : Uc(e, t), Nc(e, t, r.children, n), t.child;
case 29: throw t.pendingProps;
}
throw Error(i(156, t.tag));
}
- function dl(e) {
+ function fl(e) {
e.flags |= 4;
}
- function fl(e, t, n, r, i) {
+ function pl(e, t, n, r, i) {
var a;
- if ((a = !!(e.mode & 32)) && (a = n === null ? $m(t, r) : $m(t, r) && (r.src !== n.src || r.srcSet !== n.srcSet)), a) {
+ if ((a = !!(e.mode & 32)) && (a = n === null ? eh(t, r) : eh(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 (qd()) e.flags |= 8192;
- else throw Qa = Ja, Ka;
+ else if (Yd()) e.flags |= 8192;
+ else throw $a = Ya, qa;
}
} else e.flags &= -16777217;
}
- function pl(e, t) {
+ function ml(e, t) {
if (t.type !== "stylesheet" || t.state.loading & 4) e.flags &= -16777217;
- else if (e.flags |= 16777216, !eh(t)) {
- if (qd()) e.flags |= 8192;
- else throw Qa = Ja, Ka;
+ else if (e.flags |= 16777216, !th(t)) {
+ if (Yd()) e.flags |= 8192;
+ else throw $a = Ya, qa;
}
}
- function ml(e, t) {
- t !== null && (e.flags |= 4), e.flags & 16384 && (t = e.tag === 22 ? 536870912 : lt(), e.lanes |= t, md |= t);
- }
function hl(e, t) {
- if (!H) switch (e.tailMode) {
+ t !== null && (e.flags |= 4), e.flags & 16384 && (t = e.tag === 22 ? 536870912 : lt(), e.lanes |= t, gd |= t);
+ }
+ function gl(e, t) {
+ if (!na) switch (e.tailMode) {
case "visible": break;
case "collapsed":
for (var n = e.tail, r = null; n !== null;) n.alternate !== null && (r = n), n = n.sibling;
@@ -14045,13 +14045,13 @@ var Sf = /* @__PURE__ */ h(((e) => {
n === null ? e.tail = null : n.sibling = null;
}
}
- function gl(e) {
+ function _l(e) {
var t = e.alternate !== null && e.alternate.child === e.child, n = 0, r = 0;
if (t) for (var i = e.child; i !== null;) n |= i.lanes | i.childLanes, r |= i.subtreeFlags & 1206910976, r |= i.flags & 1206910976, i.return = e, i = i.sibling;
else for (i = e.child; i !== null;) n |= i.lanes | i.childLanes, r |= i.subtreeFlags, r |= i.flags, i.return = e, i = i.sibling;
return e.subtreeFlags |= r, e.childLanes = n, t;
}
- function _l(e, t, n) {
+ function vl(e, t, n) {
var r = t.pendingProps;
switch (Qi(t), t.tag) {
case 16:
@@ -14062,32 +14062,32 @@ var Sf = /* @__PURE__ */ h(((e) => {
case 8:
case 12:
case 9:
- case 14: return gl(t), null;
- case 1: return gl(t), null;
- case 3: return n = t.stateNode, r = null, e !== null && (r = e.memoizedState.cache), t.memoizedState.cache !== r && (t.flags |= 2048), ha(Da), we(), n.pendingContext && (n.context = n.pendingContext, n.pendingContext = null), (e === null || e.child === null) && (sa(t) ? dl(t) : e === null || e.memoizedState.isDehydrated && !(t.flags & 256) || (t.flags |= 1024, la())), gl(t), null;
+ case 14: return _l(t), null;
+ case 1: return _l(t), null;
+ case 3: return n = t.stateNode, r = null, e !== null && (r = e.memoizedState.cache), t.memoizedState.cache !== r && (t.flags |= 2048), ga(Oa), we(), n.pendingContext && (n.context = n.pendingContext, n.pendingContext = null), (e === null || e.child === null) && (ca(t) ? fl(t) : e === null || e.memoizedState.isDehydrated && !(t.flags & 256) || (t.flags |= 1024, ua())), _l(t), null;
case 26:
var a = t.type, o = t.memoizedState;
- return e === null ? (dl(t), o === null ? (gl(t), fl(t, a, null, r, n)) : (gl(t), pl(t, o))) : o ? o === e.memoizedState ? (gl(t), t.flags &= -16777217) : (dl(t), gl(t), pl(t, o)) : (e = e.memoizedProps, e !== r && dl(t), gl(t), fl(t, a, e, r, n)), null;
+ return e === null ? (fl(t), o === null ? (_l(t), pl(t, a, null, r, n)) : (_l(t), ml(t, o))) : o ? o === e.memoizedState ? (_l(t), t.flags &= -16777217) : (fl(t), _l(t), ml(t, o)) : (e = e.memoizedProps, e !== r && fl(t), _l(t), pl(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 && dl(t);
+ if (Ee(t), n = xe.current, a = t.type, e !== null && t.stateNode != null) e.memoizedProps !== r && fl(t);
else {
if (!r) {
if (t.stateNode === null) throw Error(i(166));
- return gl(t), t.subtreeFlags &= -33554433, null;
+ return _l(t), t.subtreeFlags &= -33554433, null;
}
- e = ye.current, sa(t) ? aa(t, e) : (e = xm(a, r, n), t.stateNode = e, dl(t));
+ e = ye.current, ca(t) ? oa(t, e) : (e = Cm(a, r, n), t.stateNode = e, fl(t));
}
- return gl(t), t.subtreeFlags &= -33554433, null;
+ return _l(t), t.subtreeFlags &= -33554433, null;
case 5:
- if (Ee(t), a = t.type, e !== null && t.stateNode != null) e.memoizedProps !== r && dl(t);
+ if (Ee(t), a = t.type, e !== null && t.stateNode != null) e.memoizedProps !== r && fl(t);
else {
if (!r) {
if (t.stateNode === null) throw Error(i(166));
- return gl(t), t.subtreeFlags &= -33554433, null;
+ return _l(t), t.subtreeFlags &= -33554433, null;
}
- if (o = ye.current, sa(t)) aa(t, o);
+ if (o = ye.current, ca(t)) oa(t, o);
else {
- var s = _p(xe.current);
+ var s = yp(xe.current);
switch (o) {
case 1:
o = s.createElementNS("http://www.w3.org/2000/svg", a);
@@ -14126,7 +14126,7 @@ var Sf = /* @__PURE__ */ h(((e) => {
s.sibling.return = s.return, s = s.sibling;
}
t.stateNode = o;
- a: switch (up(o, a, r), a) {
+ a: switch (fp(o, a, r), a) {
case "button":
case "input":
case "select":
@@ -14138,71 +14138,71 @@ var Sf = /* @__PURE__ */ h(((e) => {
break a;
default: r = !1;
}
- r && dl(t);
+ r && fl(t);
}
}
- return gl(t), t.subtreeFlags &= -33554433, fl(t, t.type, e === null ? null : e.memoizedProps, t.pendingProps, n), null;
+ return _l(t), t.subtreeFlags &= -33554433, pl(t, t.type, e === null ? null : e.memoizedProps, t.pendingProps, n), null;
case 6:
- if (e && t.stateNode != null) e.memoizedProps !== r && dl(t);
+ if (e && t.stateNode != null) e.memoizedProps !== r && fl(t);
else {
if (typeof r != "string" && t.stateNode === null) throw Error(i(166));
- if (e = xe.current, sa(t)) {
+ if (e = xe.current, ca(t)) {
if (e = t.stateNode, n = t.memoizedProps, r = null, a = ea, a !== null) switch (a.tag) {
case 27:
case 5: r = a.memoizedProps;
}
- e[xt] = t, e = !!(e.nodeValue === n || r !== null && !0 === r.suppressHydrationWarning || sp(e.nodeValue, n)), e || ia(t, !0);
- } else e = _p(e).createTextNode(r), e[xt] = t, t.stateNode = e;
+ e[xt] = t, e = !!(e.nodeValue === n || r !== null && !0 === r.suppressHydrationWarning || lp(e.nodeValue, n)), e || H(t, !0);
+ } else e = yp(e).createTextNode(r), e[xt] = t, t.stateNode = e;
}
- return gl(t), null;
+ return _l(t), null;
case 31:
if (n = t.memoizedState, e === null || e.memoizedState !== null) {
- if (r = sa(t), n !== null) {
+ if (r = ca(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;
- } else ca(), !(t.flags & 128) && (t.memoizedState = null), t.flags |= 4;
- gl(t), e = !1;
- } else n = la(), e !== null && e.memoizedState !== null && (e.memoizedState.hydrationErrors = n), e = !0;
- if (!e) return t.flags & 256 ? (No(t), t) : (No(t), null);
+ } else la(), !(t.flags & 128) && (t.memoizedState = null), t.flags |= 4;
+ _l(t), e = !1;
+ } else n = ua(), e !== null && e.memoizedState !== null && (e.memoizedState.hydrationErrors = n), e = !0;
+ if (!e) return t.flags & 256 ? (Po(t), t) : (Po(t), null);
if (t.flags & 128) throw Error(i(558));
}
- return gl(t), null;
+ return _l(t), null;
case 13:
if (r = t.memoizedState, e === null || e.memoizedState !== null && e.memoizedState.dehydrated !== null) {
- if (a = sa(t), r !== null && r.dehydrated !== null) {
+ if (a = ca(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;
- } else ca(), !(t.flags & 128) && (t.memoizedState = null), t.flags |= 4;
- gl(t), a = !1;
- } else a = la(), e !== null && e.memoizedState !== null && (e.memoizedState.hydrationErrors = a), a = !0;
- if (!a) return t.flags & 256 ? (No(t), t) : (No(t), null);
+ } else la(), !(t.flags & 128) && (t.memoizedState = null), t.flags |= 4;
+ _l(t), a = !1;
+ } else a = ua(), e !== null && e.memoizedState !== null && (e.memoizedState.hydrationErrors = a), a = !0;
+ if (!a) return t.flags & 256 ? (Po(t), t) : (Po(t), null);
}
- return No(t), t.flags & 128 ? (t.lanes = n, t) : (n = r !== null, e = e !== null && e.memoizedState !== null, n && (r = t.child, a = null, r.alternate !== null && r.alternate.memoizedState !== null && r.alternate.memoizedState.cachePool !== null && (a = r.alternate.memoizedState.cachePool.pool), o = null, r.memoizedState !== null && r.memoizedState.cachePool !== null && (o = r.memoizedState.cachePool.pool), o !== a && (r.flags |= 2048)), n !== e && n && (t.child.flags |= 8192), ml(t, t.updateQueue), gl(t), null);
- case 4: return we(), e === null && Zf(t.stateNode.containerInfo), t.flags |= 67108864, gl(t), null;
- case 10: return ha(t.type), gl(t), null;
+ return Po(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), hl(t, t.updateQueue), _l(t), null);
+ case 4: return we(), e === null && $f(t.stateNode.containerInfo), t.flags |= 67108864, _l(t), null;
+ case 10: return ga(t.type), _l(t), null;
case 19:
- if (Io(t), r = t.memoizedState, r === null) return gl(t), null;
+ if (Lo(t), r = t.memoizedState, r === null) return _l(t), null;
if (a = !!(t.flags & 128), o = r.rendering, o === null) {
- if (a) hl(r, !1);
+ if (a) gl(r, !1);
else {
- if (ld !== 0 || e !== null && e.flags & 128) for (e = t.child; e !== null;) {
- if (o = Lo(e), o !== null) {
- for (t.flags |= 128, hl(r, !1), e = o.updateQueue, t.updateQueue = e, ml(t, e), t.subtreeFlags = 0, e = n, n = t.child; n !== null;) Mi(n, e), n = n.sibling;
- return Fo(t, Po.current & 1 | 2), H && Yi(t, r.treeForkCount), t.child;
+ if (dd !== 0 || e !== null && e.flags & 128) for (e = t.child; e !== null;) {
+ if (o = Ro(e), o !== null) {
+ for (t.flags |= 128, gl(r, !1), e = o.updateQueue, t.updateQueue = e, hl(t, e), t.subtreeFlags = 0, e = n, n = t.child; n !== null;) Mi(n, e), n = n.sibling;
+ return Io(t, Fo.current & 1 | 2), na && Yi(t, r.treeForkCount), t.child;
}
e = e.sibling;
}
- r.tail !== null && ze() > bd && (t.flags |= 128, a = !0, hl(r, !1), t.lanes = 4194304);
+ r.tail !== null && ze() > Sd && (t.flags |= 128, a = !0, gl(r, !1), t.lanes = 4194304);
}
} else {
if (!a) {
- if (e = Lo(o), e !== null) {
- if (t.flags |= 128, a = !0, e = e.updateQueue, t.updateQueue = e, ml(t, e), hl(r, !0), r.tail === null && r.tailMode !== "collapsed" && r.tailMode !== "visible" && !o.alternate && !H) return gl(t), null;
- } else 2 * ze() - r.renderingStartTime > bd && n !== 536870912 && (t.flags |= 128, a = !0, hl(r, !1), t.lanes = 4194304);
+ if (e = Ro(o), e !== null) {
+ if (t.flags |= 128, a = !0, e = e.updateQueue, t.updateQueue = e, hl(t, e), gl(r, !0), r.tail === null && r.tailMode !== "collapsed" && r.tailMode !== "visible" && !o.alternate && !na) return _l(t), null;
+ } else 2 * ze() - r.renderingStartTime > Sd && n !== 536870912 && (t.flags |= 128, a = !0, gl(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);
}
@@ -14218,50 +14218,50 @@ var Sf = /* @__PURE__ */ h(((e) => {
}
n = !0;
}
- return r.rendering = e, r.tail = e.sibling, r.renderingStartTime = ze(), e.sibling = null, o = Po.current, o = a ? o & 1 | 2 : o & 1, r.tailMode === "visible" || r.tailMode === "collapsed" || !n || H ? Fo(t, o) : (n = o, ve(Do, t), ve(Po, n), Oo === null && (Oo = t)), H && Yi(t, r.treeForkCount), e;
+ return r.rendering = e, r.tail = e.sibling, r.renderingStartTime = ze(), e.sibling = null, o = Fo.current, o = a ? o & 1 | 2 : o & 1, r.tailMode === "visible" || r.tailMode === "collapsed" || !n || na ? Io(t, o) : (n = o, ve(Oo, t), ve(Fo, n), ko === null && (ko = t)), na && Yi(t, r.treeForkCount), e;
}
- return gl(t), null;
+ return _l(t), null;
case 22:
- case 23: return No(t), Eo(), r = t.memoizedState !== null, e === null ? r && (t.flags |= 8192) : e.memoizedState !== null !== r && (t.flags |= 8192), r ? n & 536870912 && !(t.flags & 128) && (gl(t), t.subtreeFlags & 6 && (t.flags |= 8192)) : gl(t), n = t.updateQueue, n !== null && ml(t, n.retryQueue), n = null, e !== null && e.memoizedState !== null && e.memoizedState.cachePool !== null && (n = e.memoizedState.cachePool.pool), r = null, t.memoizedState !== null && t.memoizedState.cachePool !== null && (r = t.memoizedState.cachePool.pool), r !== n && (t.flags |= 2048), e !== null && _e(Va), null;
- case 24: return n = null, e !== null && (n = e.memoizedState.cache), t.memoizedState.cache !== n && (t.flags |= 2048), ha(Da), gl(t), null;
+ case 23: return Po(t), Do(), r = t.memoizedState !== null, e === null ? r && (t.flags |= 8192) : e.memoizedState !== null !== r && (t.flags |= 8192), r ? n & 536870912 && !(t.flags & 128) && (_l(t), t.subtreeFlags & 6 && (t.flags |= 8192)) : _l(t), n = t.updateQueue, n !== null && hl(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(Ha), null;
+ case 24: return n = null, e !== null && (n = e.memoizedState.cache), t.memoizedState.cache !== n && (t.flags |= 2048), ga(Oa), _l(t), null;
case 25: return null;
- case 30: return t.flags |= 33554432, gl(t), null;
+ case 30: return t.flags |= 33554432, _l(t), null;
}
throw Error(i(156, t.tag));
}
- function vl(e, t) {
+ function yl(e, t) {
switch (Qi(t), t.tag) {
case 1: return e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;
- case 3: return ha(Da), we(), e = t.flags, e & 65536 && !(e & 128) ? (t.flags = e & -65537 | 128, t) : null;
+ case 3: return ga(Oa), we(), 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 31:
if (t.memoizedState !== null) {
- if (No(t), t.alternate === null) throw Error(i(340));
- ca();
+ if (Po(t), t.alternate === null) throw Error(i(340));
+ la();
}
return e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;
case 13:
- if (No(t), e = t.memoizedState, e !== null && e.dehydrated !== null) {
+ if (Po(t), e = t.memoizedState, e !== null && e.dehydrated !== null) {
if (t.alternate === null) throw Error(i(340));
- ca();
+ la();
}
return e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;
- case 19: return Io(t), e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, e = t.memoizedState, e !== null && (e.rendering = null, e.tail = null), t.flags |= 4, t) : null;
+ case 19: return Lo(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 10: return ha(t.type), null;
+ case 10: return ga(t.type), null;
case 22:
- case 23: return No(t), Eo(), e !== null && _e(Va), e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;
- case 24: return ha(Da), null;
+ case 23: return Po(t), Do(), e !== null && _e(Ha), e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;
+ case 24: return ga(Oa), null;
case 25: return null;
default: return null;
}
}
- function yl(e, t) {
+ function bl(e, t) {
switch (Qi(t), t.tag) {
case 3:
- ha(Da), we();
+ ga(Oa), we();
break;
case 26:
case 27:
@@ -14272,25 +14272,25 @@ var Sf = /* @__PURE__ */ h(((e) => {
we();
break;
case 31:
- t.memoizedState !== null && No(t);
+ t.memoizedState !== null && Po(t);
break;
case 13:
- No(t);
+ Po(t);
break;
case 19:
- Io(t);
+ Lo(t);
break;
case 10:
- ha(t.type);
+ ga(t.type);
break;
case 22:
case 23:
- No(t), Eo(), e !== null && _e(Va);
+ Po(t), Do(), e !== null && _e(Ha);
break;
- case 24: ha(Da);
+ case 24: ga(Oa);
}
}
- function bl(e, t) {
+ function xl(e, t) {
try {
var n = t.updateQueue, r = n === null ? null : n.lastEffect;
if (r !== null) {
@@ -14306,10 +14306,10 @@ var Sf = /* @__PURE__ */ h(((e) => {
} while (n !== i);
}
} catch (e) {
- vf(t, t.return, e);
+ bf(t, t.return, e);
}
}
- function xl(e, t, n) {
+ function Sl(e, t, n) {
try {
var r = t.updateQueue, i = r === null ? null : r.lastEffect;
if (i !== null) {
@@ -14324,7 +14324,7 @@ var Sf = /* @__PURE__ */ h(((e) => {
try {
l();
} catch (e) {
- vf(i, c, e);
+ bf(i, c, e);
}
}
}
@@ -14332,29 +14332,29 @@ var Sf = /* @__PURE__ */ h(((e) => {
} while (r !== a);
}
} catch (e) {
- vf(t, t.return, e);
+ bf(t, t.return, e);
}
}
- function Sl(e) {
+ function Cl(e) {
var t = e.updateQueue;
if (t !== null) {
var n = e.stateNode;
try {
- xo(t, n);
+ So(t, n);
} catch (t) {
- vf(e, e.return, t);
+ bf(e, e.return, t);
}
}
}
- function Cl(e, t, n) {
- n.props = bc(e.type, e.memoizedProps), n.state = e.memoizedState;
+ function wl(e, t, n) {
+ n.props = xc(e.type, e.memoizedProps), n.state = e.memoizedState;
try {
n.componentWillUnmount();
} catch (n) {
- vf(e, t, n);
+ bf(e, t, n);
}
}
- function wl(e, t) {
+ function Tl(e, t) {
try {
var n = e.ref;
if (n !== null) {
@@ -14366,12 +14366,12 @@ var Sf = /* @__PURE__ */ h(((e) => {
break;
case 30:
var i = e.stateNode, a = mi(e.memoizedProps, i);
- (i.ref === null || i.ref.name !== a) && (i.ref = Hp(a)), r = i.ref;
+ (i.ref === null || i.ref.name !== a) && (i.ref = Wp(a)), r = i.ref;
break;
case 7:
if (e.stateNode === null) {
- var o = new Up(e);
- f(e.child, !1, om, o, void 0, void 0), e.stateNode = o;
+ var o = new Gp(e);
+ f(e.child, !1, cm, o, void 0, void 0), e.stateNode = o;
}
r = e.stateNode;
break;
@@ -14380,43 +14380,43 @@ var Sf = /* @__PURE__ */ h(((e) => {
typeof n == "function" ? e.refCleanup = n(r) : n.current = r;
}
} catch (n) {
- vf(e, t, n);
+ bf(e, t, n);
}
}
- function Tl(e, t) {
+ function El(e, t) {
var n = e.ref, r = e.refCleanup;
if (n !== null) {
if (typeof r == "function") try {
r();
} catch (n) {
- vf(e, t, n);
+ bf(e, t, n);
} finally {
e.refCleanup = null, e = e.alternate, e != null && (e.refCleanup = null);
}
else if (typeof n == "function") try {
n(null);
} catch (n) {
- vf(e, t, n);
+ bf(e, t, n);
}
else n.current = null;
}
}
- function El(e, t) {
- if ((e.tag === 5 || e.tag === 27 || e.tag === 6) && e.alternate === null && t !== null) for (var n = 0; n < t.length; n++) cm(e.stateNode, t[n]);
- }
- function Dl(e) {
- for (var t = e.return; t !== null && (Al(t) && cm(e.stateNode, t.stateNode), !kl(t));) t = t.return;
+ function Dl(e, t) {
+ if ((e.tag === 5 || e.tag === 27 || e.tag === 6) && e.alternate === null && t !== null) for (var n = 0; n < t.length; n++) um(e.stateNode, t[n]);
}
function Ol(e) {
- for (var t = e.return; t !== null && (Al(t) && lm(e.stateNode, t.stateNode), !kl(t));) t = t.return;
+ for (var t = e.return; t !== null && (jl(t) && um(e.stateNode, t.stateNode), !Al(t));) t = t.return;
}
function kl(e) {
- return e.tag === 5 || e.tag === 3 || e.tag === 27;
+ for (var t = e.return; t !== null && (jl(t) && dm(e.stateNode, t.stateNode), !Al(t));) t = t.return;
}
function Al(e) {
- return e && e.tag === 7 && e.stateNode !== null;
+ return e.tag === 5 || e.tag === 3 || e.tag === 27;
}
function jl(e) {
+ return e && e.tag === 7 && e.stateNode !== null;
+ }
+ function Ml(e) {
var t = e.type, n = e.memoizedProps, r = e.stateNode;
try {
a: switch (t) {
@@ -14429,103 +14429,103 @@ var Sf = /* @__PURE__ */ h(((e) => {
case "img": n.src ? r.src = n.src : n.srcSet && (r.srcset = n.srcSet);
}
} catch (t) {
- vf(e, e.return, t);
+ bf(e, e.return, t);
}
}
- function Ml(e, t, n) {
+ function Nl(e, t, n) {
try {
var r = e.stateNode;
- fp(r, e.type, n, t), r[St] = t;
+ mp(r, e.type, n, t), r[St] = t;
} catch (t) {
- vf(e, e.return, t);
+ bf(e, e.return, t);
}
}
- function Nl(e) {
- return e.tag === 5 || e.tag === 3 || e.tag === 26 || e.tag === 27 && Ap(e.type) || e.tag === 4;
- }
function Pl(e) {
+ return e.tag === 5 || e.tag === 3 || e.tag === 26 || e.tag === 27 && Mp(e.type) || e.tag === 4;
+ }
+ function Fl(e) {
a: for (;;) {
for (; e.sibling === null;) {
- if (e.return === null || Nl(e.return)) return null;
+ if (e.return === null || Pl(e.return)) return null;
e = e.return;
}
for (e.sibling.return = e.return, e = e.sibling; e.tag !== 5 && e.tag !== 6 && e.tag !== 18;) {
- if (e.tag === 27 && Ap(e.type) || e.flags & 2 || e.child === null || e.tag === 4) continue a;
+ if (e.tag === 27 && Mp(e.type) || e.flags & 2 || e.child === null || e.tag === 4) continue a;
e.child.return = e, e = e.child;
}
if (!(e.flags & 2)) return e.stateNode;
}
}
- function Fl(e, t, n, r) {
+ function Il(e, t, n, r) {
var i = e.tag;
- if (i === 5 || i === 6) i = e.stateNode, t ? (n.nodeType === 9 ? n.body : n.nodeName === "HTML" ? n.ownerDocument.body : n).insertBefore(i, t) : (t = n.nodeType === 9 ? n.body : n.nodeName === "HTML" ? n.ownerDocument.body : n, t.appendChild(i), n = n._reactRootContainer, n != null || t.onclick !== null || (t.onclick = hn)), El(e, r), Ht = !0;
- else if (i !== 4 && (i === 27 && (El(e, r), r = null, Ap(e.type) && (n = e.stateNode, t = null)), e = e.child, e !== null)) for (Fl(e, t, n, r), e = e.sibling; e !== null;) Fl(e, t, n, r), e = e.sibling;
+ if (i === 5 || i === 6) i = e.stateNode, t ? (n.nodeType === 9 ? n.body : n.nodeName === "HTML" ? n.ownerDocument.body : n).insertBefore(i, t) : (t = n.nodeType === 9 ? n.body : n.nodeName === "HTML" ? n.ownerDocument.body : n, t.appendChild(i), n = n._reactRootContainer, n != null || t.onclick !== null || (t.onclick = hn)), Dl(e, r), Ht = !0;
+ else if (i !== 4 && (i === 27 && (Dl(e, r), r = null, Mp(e.type) && (n = e.stateNode, t = null)), e = e.child, e !== null)) for (Il(e, t, n, r), e = e.sibling; e !== null;) Il(e, t, n, r), e = e.sibling;
}
- function Il(e, t, n, r) {
+ function Ll(e, t, n, r) {
var i = e.tag;
- if (i === 5 || i === 6) i = e.stateNode, t ? n.insertBefore(i, t) : n.appendChild(i), El(e, r), Ht = !0;
- else if (i !== 4 && (i === 27 && (El(e, r), r = null, Ap(e.type) && (n = e.stateNode)), e = e.child, e !== null)) for (Il(e, t, n, r), e = e.sibling; e !== null;) Il(e, t, n, r), e = e.sibling;
+ if (i === 5 || i === 6) i = e.stateNode, t ? n.insertBefore(i, t) : n.appendChild(i), Dl(e, r), Ht = !0;
+ else if (i !== 4 && (i === 27 && (Dl(e, r), r = null, Mp(e.type) && (n = e.stateNode)), e = e.child, e !== null)) for (Ll(e, t, n, r), e = e.sibling; e !== null;) Ll(e, t, n, r), e = e.sibling;
}
- function Ll(e) {
+ function Rl(e) {
var t = e.stateNode, n = e.memoizedProps;
try {
for (var r = e.type, i = t.attributes; i.length;) t.removeAttributeNode(i[0]);
- up(t, r, n), t[xt] = e, t[St] = n;
+ fp(t, r, n), t[xt] = e, t[St] = n;
} catch (t) {
- vf(e, e.return, t);
+ bf(e, e.return, t);
}
}
- var Rl = !1, zl = null;
- function Bl(e) {
- (e.tag === 30 || e.subtreeFlags & 33554432) && (Rl = !0);
- }
- var Vl = null;
- function Hl() {
- var e = Vl;
- return Vl = null, e;
+ var zl = !1, Bl = null;
+ function Vl(e) {
+ (e.tag === 30 || e.subtreeFlags & 33554432) && (zl = !0);
}
- var Ul = 0;
- function Wl(e, t, n, r, i) {
- return Ul = 0, Gl(e.child, t, n, r, i);
+ var Hl = null;
+ function Ul() {
+ var e = Hl;
+ return Hl = null, e;
}
+ var Wl = 0;
function Gl(e, t, n, r, i) {
+ return Wl = 0, Kl(e.child, t, n, r, i);
+ }
+ function Kl(e, t, n, r, i) {
for (var a = !1; e !== null;) {
if (e.tag === 5) {
var o = e.stateNode;
if (r !== null) {
- var s = Ip(o);
+ var s = Rp(o);
r.push(s), s.view && (a = !0);
- } else a || Ip(o).view && (a = !0);
- Rl = !0, Np(o, Ul === 0 ? t : t + "_" + Ul, n), Ul++;
- } else (e.tag !== 22 || e.memoizedState === null) && (e.tag === 30 && i || Gl(e.child, t, n, r, i) && (a = !0));
+ } else a || Rp(o).view && (a = !0);
+ zl = !0, Fp(o, Wl === 0 ? t : t + "_" + Wl, n), Wl++;
+ } else (e.tag !== 22 || e.memoizedState === null) && (e.tag === 30 && i || Kl(e.child, t, n, r, i) && (a = !0));
e = e.sibling;
}
return a;
}
- function Kl(e, t) {
- for (; e !== null;) e.tag === 5 ? Pp(e.stateNode, e.memoizedProps) : (e.tag !== 22 || e.memoizedState === null) && (e.tag === 30 && t || Kl(e.child, t)), e = e.sibling;
+ function ql(e, t) {
+ for (; e !== null;) e.tag === 5 ? Ip(e.stateNode, e.memoizedProps) : (e.tag !== 22 || e.memoizedState === null) && (e.tag === 30 && t || ql(e.child, t)), e = e.sibling;
}
- function ql(e) {
+ function Jl(e) {
if (e.subtreeFlags & 18874368) for (e = e.child; e !== null;) {
- if ((e.tag !== 22 || e.memoizedState === null) && (ql(e), e.tag === 30 && e.flags & 18874368 && e.stateNode.paired)) {
+ if ((e.tag !== 22 || e.memoizedState === null) && (Jl(e), e.tag === 30 && e.flags & 18874368 && e.stateNode.paired)) {
var t = e.memoizedProps;
if (t.name == null || t.name === "auto") throw Error(i(544));
var n = t.name;
- t = gi(t.default, t.share), t !== "none" && (Wl(e, n, t, null, !1) || Kl(e.child, !1));
+ t = gi(t.default, t.share), t !== "none" && (Gl(e, n, t, null, !1) || ql(e.child, !1));
}
e = e.sibling;
}
}
- function Jl(e, t) {
+ function Yl(e, t) {
if (e.tag === 30) {
var n = e.stateNode, r = e.memoizedProps, i = mi(r, n), a = gi(r.default, n.paired ? r.share : r.enter);
- a === "none" ? ql(e) : Wl(e, i, a, null, !1) ? (ql(e), n.paired || t || Ld(e, r.onEnter)) : Kl(e.child, !1);
- } else if (e.subtreeFlags & 33554432) for (e = e.child; e !== null;) Jl(e, t), e = e.sibling;
- else ql(e);
+ a === "none" ? Jl(e) : Gl(e, i, a, null, !1) ? (Jl(e), n.paired || t || zd(e, r.onEnter)) : ql(e.child, !1);
+ } else if (e.subtreeFlags & 33554432) for (e = e.child; e !== null;) Yl(e, t), e = e.sibling;
+ else Jl(e);
}
- function Yl(e) {
- if (zl !== null && zl.size !== 0) {
- var t = zl;
+ function Xl(e) {
+ if (Bl !== null && Bl.size !== 0) {
+ var t = Bl;
if (e.subtreeFlags & 18874368) for (e = e.child; e !== null;) {
if (e.tag !== 22 || e.memoizedState === null) {
if (e.tag === 30 && e.flags & 18874368) {
@@ -14534,58 +14534,58 @@ var Sf = /* @__PURE__ */ h(((e) => {
var i = t.get(r);
if (i !== void 0) {
var a = gi(n.default, n.share);
- if (a !== "none" && (Wl(e, r, a, null, !1) ? (a = e.stateNode, i.paired = a, a.paired = i, Ld(e, n.onShare)) : Kl(e.child, !1)), t.delete(r), t.size === 0) break;
+ if (a !== "none" && (Gl(e, r, a, null, !1) ? (a = e.stateNode, i.paired = a, a.paired = i, zd(e, n.onShare)) : ql(e.child, !1)), t.delete(r), t.size === 0) break;
}
}
}
- Yl(e);
+ Xl(e);
}
e = e.sibling;
}
}
}
- function Xl(e) {
+ function Zl(e) {
if (e.tag === 30) {
- var t = e.memoizedProps, n = mi(t, e.stateNode), r = zl === null ? void 0 : zl.get(n), i = gi(t.default, r === void 0 ? t.exit : t.share);
- i !== "none" && (Wl(e, n, i, null, !1) ? r === void 0 ? Ld(e, t.onExit) : (i = e.stateNode, r.paired = i, i.paired = r, zl.delete(n), Ld(e, t.onShare)) : Kl(e.child, !1)), zl !== null && Yl(e);
- } else if (e.subtreeFlags & 33554432) for (e = e.child; e !== null;) Xl(e), e = e.sibling;
- else zl !== null && Yl(e);
+ var t = e.memoizedProps, n = mi(t, e.stateNode), r = Bl === null ? void 0 : Bl.get(n), i = gi(t.default, r === void 0 ? t.exit : t.share);
+ i !== "none" && (Gl(e, n, i, null, !1) ? r === void 0 ? zd(e, t.onExit) : (i = e.stateNode, r.paired = i, i.paired = r, Bl.delete(n), zd(e, t.onShare)) : ql(e.child, !1)), Bl !== null && Xl(e);
+ } else if (e.subtreeFlags & 33554432) for (e = e.child; e !== null;) Zl(e), e = e.sibling;
+ else Bl !== null && Xl(e);
}
- function Zl(e) {
+ function Ql(e) {
for (e = e.child; e !== null;) {
if (e.tag === 30) {
var t = e.memoizedProps, n = mi(t, e.stateNode);
- t = gi(t.default, t.update), e.flags &= -5, t !== "none" && Wl(e, n, t, e.memoizedState = [], !1);
- } else e.subtreeFlags & 33554432 && Zl(e);
+ t = gi(t.default, t.update), e.flags &= -5, t !== "none" && Gl(e, n, t, e.memoizedState = [], !1);
+ } else e.subtreeFlags & 33554432 && Ql(e);
e = e.sibling;
}
}
- function Ql(e) {
+ function $l(e) {
if (e.subtreeFlags & 18874368) for (e = e.child; e !== null;) {
if (e.tag !== 22 || e.memoizedState === null) {
if (e.tag === 30 && e.flags & 18874368) {
var t = e.stateNode;
- t.paired !== null && (t.paired = null, Kl(e.child, !1));
+ t.paired !== null && (t.paired = null, ql(e.child, !1));
}
- Ql(e);
+ $l(e);
}
e = e.sibling;
}
}
- function $l(e) {
- if (e.tag === 30) e.stateNode.paired = null, Kl(e.child, !1), Ql(e);
- else if (e.subtreeFlags & 33554432) for (e = e.child; e !== null;) $l(e), e = e.sibling;
- else Ql(e);
- }
function eu(e) {
- for (e = e.child; e !== null;) e.tag === 30 ? Kl(e.child, !1) : e.subtreeFlags & 33554432 && eu(e), e = e.sibling;
+ if (e.tag === 30) e.stateNode.paired = null, ql(e.child, !1), $l(e);
+ else if (e.subtreeFlags & 33554432) for (e = e.child; e !== null;) eu(e), e = e.sibling;
+ else $l(e);
}
- function tu(e, t, n, r, i, a, o) {
+ function tu(e) {
+ for (e = e.child; e !== null;) e.tag === 30 ? ql(e.child, !1) : e.subtreeFlags & 33554432 && tu(e), e = e.sibling;
+ }
+ function nu(e, t, n, r, i, a, o) {
for (var s = !1; t !== null;) {
if (t.tag === 5) {
var c = t.stateNode;
- if (a !== null && Ul < a.length) {
- var l = a[Ul], u = Ip(c);
+ if (a !== null && Wl < a.length) {
+ var l = a[Wl], u = Rp(c);
(l.view || u.view) && (s = !0);
var d;
if (d = !(e.flags & 4)) {
@@ -14598,30 +14598,30 @@ var Sf = /* @__PURE__ */ h(((e) => {
}
d && (e.flags |= 4), u.abs ? u = !l.abs : (l = l.rect, u = u.rect, u = l.height !== u.height || l.width !== u.width), u && (e.flags |= 32);
} else e.flags |= 32;
- e.flags & 4 && Np(c, Ul === 0 ? n : n + "_" + Ul, i), s && e.flags & 4 || (Vl === null && (Vl = []), Vl.push(c, Ul === 0 ? r : r + "_" + Ul, t.memoizedProps)), Ul++;
- } else (t.tag !== 22 || t.memoizedState === null) && (t.tag === 30 && o ? e.flags |= t.flags & 32 : tu(e, t.child, n, r, i, a, o) && (s = !0));
+ e.flags & 4 && Fp(c, Wl === 0 ? n : n + "_" + Wl, i), s && e.flags & 4 || (Hl === null && (Hl = []), Hl.push(c, Wl === 0 ? r : r + "_" + Wl, t.memoizedProps)), Wl++;
+ } else (t.tag !== 22 || t.memoizedState === null) && (t.tag === 30 && o ? e.flags |= t.flags & 32 : nu(e, t.child, n, r, i, a, o) && (s = !0));
t = t.sibling;
}
return s;
}
- function nu(e, t) {
+ function ru(e, t) {
for (e = e.child; e !== null;) {
if (e.tag === 30) {
var n = e.memoizedProps, r = e.stateNode, i = mi(n, r), a = gi(n.default, n.update);
if (t) {
r = r.clones;
- var o = r === null ? null : r.map(Lp);
+ var o = r === null ? null : r.map(zp);
} else o = e.memoizedState, e.memoizedState = null;
r = e;
var s = e.child;
- Ul = 0, i = tu(r, s, i, i, a, o, !1), e.flags & 4 && i && (t || Ld(e, n.onUpdate));
- } else e.subtreeFlags & 33554432 && nu(e, t);
+ Wl = 0, i = nu(r, s, i, i, a, o, !1), e.flags & 4 && i && (t || zd(e, n.onUpdate));
+ } else e.subtreeFlags & 33554432 && ru(e, t);
e = e.sibling;
}
}
- var ru = !1, iu = !1, au = !1, ou = !1, su = typeof WeakSet == "function" ? WeakSet : Set, cu = null, lu = !1, uu = !1, du = !1, fu = !1;
- function pu(e, t, n) {
- if (e = e.containerInfo, hp = xh, e = Ur(e), Wr(e)) {
+ var iu = !1, au = !1, ou = !1, su = !1, cu = typeof WeakSet == "function" ? WeakSet : Set, lu = null, uu = !1, du = !1, fu = !1, pu = !1;
+ function mu(e, t, n) {
+ if (e = e.containerInfo, _p = xh, e = Ur(e), Wr(e)) {
if ("selectionStart" in e) var r = {
start: e.selectionStart,
end: e.selectionEnd
@@ -14660,31 +14660,31 @@ var Sf = /* @__PURE__ */ h(((e) => {
end: 0
};
} else r = null;
- for (gp = {
+ for (vp = {
focusedElem: e,
selectionRange: r
- }, xh = !1, n = (n & 335544064) === n, cu = t, t = n ? 9270 : 1024; cu !== null;) {
- if (e = cu, n && (r = e.deletions, r !== null)) for (a = 0; a < r.length; a++) n && Xl(r[a]);
- if (e.alternate === null && e.flags & 2) n && Bl(e), mu(n);
+ }, xh = !1, n = (n & 335544064) === n, lu = t, t = n ? 9270 : 1024; lu !== null;) {
+ if (e = lu, n && (r = e.deletions, r !== null)) for (a = 0; a < r.length; a++) n && Zl(r[a]);
+ if (e.alternate === null && e.flags & 2) n && Vl(e), hu(n);
else {
if (e.tag === 22) {
if (r = e.alternate, e.memoizedState !== null) {
- r !== null && r.memoizedState === null && n && Xl(r), mu(n);
+ r !== null && r.memoizedState === null && n && Zl(r), hu(n);
continue;
}
if (r !== null && r.memoizedState !== null) {
- n && Bl(e), mu(n);
+ n && Vl(e), hu(n);
continue;
}
}
- r = e.child, (e.subtreeFlags & t) !== 0 && r !== null ? (r.return = e, cu = r) : (n && Zl(e), mu(n));
+ r = e.child, (e.subtreeFlags & t) !== 0 && r !== null ? (r.return = e, lu = r) : (n && Ql(e), hu(n));
}
}
- zl = null;
+ Bl = null;
}
- function mu(e) {
- for (; cu !== null;) {
- var t = cu, n = e, r = t.alternate, a = t.flags;
+ function hu(e) {
+ for (; lu !== null;) {
+ var t = lu, n = e, r = t.alternate, a = t.flags;
switch (t.tag) {
case 0:
case 11:
@@ -14694,21 +14694,21 @@ var Sf = /* @__PURE__ */ h(((e) => {
n = void 0, a = r.memoizedProps, r = r.memoizedState;
var o = t.stateNode;
try {
- var s = bc(t.type, a);
+ var s = xc(t.type, a);
n = o.getSnapshotBeforeUpdate(s, r), o.__reactInternalSnapshotBeforeUpdate = n;
} catch (e) {
- vf(t, t.return, e);
+ bf(t, t.return, e);
}
}
break;
case 3:
if (a & 1024) {
- if (r = t.stateNode.containerInfo, n = r.nodeType, n === 9) K(r);
+ if (r = t.stateNode.containerInfo, n = r.nodeType, n === 9) fm(r);
else if (n === 1) switch (r.nodeName) {
case "HEAD":
case "HTML":
case "BODY":
- K(r);
+ fm(r);
break;
default: r.textContent = "";
}
@@ -14721,46 +14721,46 @@ var Sf = /* @__PURE__ */ h(((e) => {
case 4:
case 17: break;
case 30:
- n && r !== null && (n = mi(r.memoizedProps, r.stateNode), a = t.memoizedProps, a = gi(a.default, a.update), a !== "none" && Wl(r, n, a, r.memoizedState = [], !0));
+ n && r !== null && (n = mi(r.memoizedProps, r.stateNode), a = t.memoizedProps, a = gi(a.default, a.update), a !== "none" && Gl(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, cu = r;
+ r.return = t.return, lu = r;
break;
}
- cu = t.return;
+ lu = t.return;
}
}
- function hu(e, t, n) {
+ function gu(e, t, n) {
var r = n.flags;
switch (n.tag) {
case 0:
case 11:
case 15:
- Fu(e, n), r & 4 && bl(5, n);
+ Iu(e, n), r & 4 && xl(5, n);
break;
case 1:
- if (Fu(e, n), r & 4) {
+ if (Iu(e, n), r & 4) {
if (e = n.stateNode, t === null) try {
e.componentDidMount();
} catch (e) {
- vf(n, n.return, e);
+ bf(n, n.return, e);
}
else {
- var i = bc(n.type, t.memoizedProps);
+ var i = xc(n.type, t.memoizedProps);
t = t.memoizedState;
try {
e.componentDidUpdate(i, t, e.__reactInternalSnapshotBeforeUpdate);
} catch (e) {
- vf(n, n.return, e);
+ bf(n, n.return, e);
}
}
}
- r & 64 && Sl(n), r & 512 && wl(n, n.return);
+ r & 64 && Cl(n), r & 512 && Tl(n, n.return);
break;
case 3:
- if (Fu(e, n), r & 64 && (e = n.updateQueue, e !== null)) {
+ if (Iu(e, n), r & 64 && (e = n.updateQueue, e !== null)) {
if (t = null, n.child !== null) switch (n.child.tag) {
case 27:
case 5:
@@ -14769,43 +14769,43 @@ var Sf = /* @__PURE__ */ h(((e) => {
case 1: t = n.child.stateNode;
}
try {
- xo(e, t);
+ So(e, t);
} catch (e) {
- vf(n, n.return, e);
+ bf(n, n.return, e);
}
}
break;
- case 27: t === null && r & 4 && Ll(n);
+ case 27: t === null && r & 4 && Rl(n);
case 26:
case 5:
- Fu(e, n), t === null && r & 4 && jl(n), r & 512 && wl(n, n.return);
+ Iu(e, n), t === null && r & 4 && Ml(n), r & 512 && Tl(n, n.return);
break;
case 12:
- Fu(e, n);
+ Iu(e, n);
break;
case 31:
- Fu(e, n), r & 4 && wu(e, n);
+ Iu(e, n), r & 4 && Tu(e, n);
break;
case 13:
- Fu(e, n), r & 4 && Tu(e, n), r & 64 && (e = n.memoizedState, e !== null && (e = e.dehydrated, e !== null && (n = Sf.bind(null, n), hm(e, n))));
+ Iu(e, n), r & 4 && Eu(e, n), r & 64 && (e = n.memoizedState, e !== null && (e = e.dehydrated, e !== null && (n = wf.bind(null, n), _m(e, n))));
break;
case 22:
- if (r = n.memoizedState !== null || ru, !r) {
- var a = t !== null && t.memoizedState !== null || iu;
- t = ru, i = iu, ru = r, (iu = a) && !i ? (r = 2, n.subtreeFlags & 8772 && (r |= 1), Lu(e, n, r)) : Fu(e, n), ru = t, iu = i;
+ if (r = n.memoizedState !== null || iu, !r) {
+ var a = t !== null && t.memoizedState !== null || au;
+ t = iu, i = au, iu = r, (au = a) && !i ? (r = 2, n.subtreeFlags & 8772 && (r |= 1), Ru(e, n, r)) : Iu(e, n), iu = t, au = i;
}
break;
case 30:
- Fu(e, n), r & 512 && wl(n, n.return);
+ Iu(e, n), r & 512 && Tl(n, n.return);
break;
- case 7: r & 512 && wl(n, n.return);
- default: Fu(e, n);
+ case 7: r & 512 && Tl(n, n.return);
+ default: Iu(e, n);
}
}
- function gu(e, t) {
- for (e = e.child; e !== null;) _u(e, t), e = e.sibling;
- }
function _u(e, t) {
+ for (e = e.child; e !== null;) vu(e, t), e = e.sibling;
+ }
+ function vu(e, t) {
switch (e.tag) {
case 5:
case 26:
@@ -14819,182 +14819,182 @@ var Sf = /* @__PURE__ */ h(((e) => {
i.style.display = o == null || typeof o == "boolean" ? "" : ("" + o).trim();
}
} catch (t) {
- vf(e, e.return, t);
+ bf(e, e.return, t);
}
- vu(e, t);
+ yu(e, t);
break;
case 6:
try {
e.stateNode.nodeValue = t ? "" : e.memoizedProps, Ht = !0;
} catch (t) {
- vf(e, e.return, t);
+ bf(e, e.return, t);
}
break;
case 18:
try {
var s = e.stateNode;
- t ? Mp(s, !0) : Mp(e.stateNode, !1);
+ t ? Pp(s, !0) : Pp(e.stateNode, !1);
} catch (t) {
- vf(e, e.return, t);
+ bf(e, e.return, t);
}
break;
case 22:
case 23:
- e.memoizedState === null && gu(e, t);
+ e.memoizedState === null && _u(e, t);
break;
- default: gu(e, t);
+ default: _u(e, t);
}
}
- function vu(e, t) {
+ function yu(e, t) {
if (e.subtreeFlags & 67108864) for (e = e.child; e !== null;) {
a: {
var n = e, r = t;
switch (n.tag) {
case 4:
- _u(n, r);
+ vu(n, r);
break a;
case 22:
- n.memoizedState === null && vu(n, r);
+ n.memoizedState === null && yu(n, r);
break a;
- default: vu(n, r);
+ default: yu(n, r);
}
}
e = e.sibling;
}
}
- function yu(e) {
+ function bu(e) {
var t = e.alternate;
- t !== null && (e.alternate = null, yu(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;
- }
- var bu = null, xu = !1;
- function Su(e, t, n) {
- for (n = n.child; n !== null;) Cu(e, t, n), n = n.sibling;
+ t !== null && (e.alternate = null, bu(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;
}
+ var xu = null, Su = !1;
function Cu(e, t, n) {
+ for (n = n.child; n !== null;) wu(e, t, n), n = n.sibling;
+ }
+ function wu(e, t, n) {
if (Ye && typeof Ye.onCommitFiberUnmount == "function") try {
Ye.onCommitFiberUnmount(Je, n);
} catch {}
switch (n.tag) {
case 26:
- iu || Tl(n, t), Su(e, t, n), n.memoizedState ? n.memoizedState.count-- : n.stateNode && !iu && (n = n.stateNode, n.parentNode.removeChild(n));
+ au || El(n, t), Cu(e, t, n), n.memoizedState ? n.memoizedState.count-- : n.stateNode && !au && (n = n.stateNode, n.parentNode.removeChild(n));
break;
case 27:
- iu || Tl(n, t), Ol(n);
- var r = bu, i = xu;
- Ap(n.type) && (bu = n.stateNode, xu = !1), Su(e, t, n), Sm(n.stateNode, n.type, n.memoizedProps), bu = r, xu = i;
+ au || El(n, t), kl(n);
+ var r = xu, i = Su;
+ Mp(n.type) && (xu = n.stateNode, Su = !1), Cu(e, t, n), wm(n.stateNode, n.type, n.memoizedProps), xu = r, Su = i;
break;
- case 5: iu || Tl(n, t), Ol(n);
+ case 5: au || El(n, t), kl(n);
case 6:
- if (n.tag === 6 && Ol(n), r = bu, i = xu, bu = null, Su(e, t, n), bu = r, xu = i, bu !== null) {
- if (xu) try {
- (bu.nodeType === 9 ? bu.body : bu.nodeName === "HTML" ? bu.ownerDocument.body : bu).removeChild(n.stateNode), Ht = !0;
+ if (n.tag === 6 && kl(n), r = xu, i = Su, xu = null, Cu(e, t, n), xu = r, Su = i, xu !== null) {
+ if (Su) try {
+ (xu.nodeType === 9 ? xu.body : xu.nodeName === "HTML" ? xu.ownerDocument.body : xu).removeChild(n.stateNode), Ht = !0;
} catch (e) {
- vf(n, t, e);
+ bf(n, t, e);
}
else try {
- bu.removeChild(n.stateNode), Ht = !0;
+ xu.removeChild(n.stateNode), Ht = !0;
} catch (e) {
- vf(n, t, e);
+ bf(n, t, e);
}
}
break;
case 18:
- bu !== null && (xu ? (e = bu, jp(e.nodeType === 9 ? e.body : e.nodeName === "HTML" ? e.ownerDocument.body : e, n.stateNode), Kh(e)) : jp(bu, n.stateNode));
+ xu !== null && (Su ? (e = xu, Np(e.nodeType === 9 ? e.body : e.nodeName === "HTML" ? e.ownerDocument.body : e, n.stateNode), Kh(e)) : Np(xu, n.stateNode));
break;
case 4:
- r = bu, i = xu, bu = n.stateNode.containerInfo, xu = !0, Su(e, t, n), bu = r, xu = i;
+ r = xu, i = Su, xu = n.stateNode.containerInfo, Su = !0, Cu(e, t, n), xu = r, Su = i;
break;
case 0:
case 11:
case 14:
case 15:
- xl(2, n, t), iu || xl(4, n, t), Su(e, t, n);
+ Sl(2, n, t), au || Sl(4, n, t), Cu(e, t, n);
break;
case 1:
- iu || (Tl(n, t), r = n.stateNode, typeof r.componentWillUnmount == "function" && Cl(n, t, r)), Su(e, t, n);
+ au || (El(n, t), r = n.stateNode, typeof r.componentWillUnmount == "function" && wl(n, t, r)), Cu(e, t, n);
break;
case 21:
- Su(e, t, n);
+ Cu(e, t, n);
break;
case 22:
- iu = (r = iu) || n.memoizedState !== null, Su(e, t, n), iu = r;
+ au = (r = au) || n.memoizedState !== null, Cu(e, t, n), au = r;
break;
case 30:
- Tl(n, t), Su(e, t, n);
+ El(n, t), Cu(e, t, n);
break;
case 7:
- iu || Tl(n, t), Su(e, t, n);
+ au || El(n, t), Cu(e, t, n);
break;
- default: Su(e, t, n);
+ default: Cu(e, t, n);
}
}
- function wu(e, t) {
+ function Tu(e, t) {
if (t.memoizedState === null && (e = t.alternate, e !== null && (e = e.memoizedState, e !== null))) {
e = e.dehydrated;
try {
Kh(e);
} catch (e) {
- vf(t, t.return, e);
+ bf(t, t.return, e);
}
}
}
- function Tu(e, t) {
+ function Eu(e, t) {
if (t.memoizedState === null && (e = t.alternate, e !== null && (e = e.memoizedState, e !== null && (e = e.dehydrated, e !== null)))) try {
Kh(e);
} catch (e) {
- vf(t, t.return, e);
+ bf(t, t.return, e);
}
}
- function Eu(e) {
+ function Du(e) {
switch (e.tag) {
case 31:
case 13:
case 19:
var t = e.stateNode;
- return t === null && (t = e.stateNode = new su()), t;
- case 22: return e = e.stateNode, t = e._retryCache, t === null && (t = e._retryCache = new su()), t;
+ return t === null && (t = e.stateNode = new cu()), t;
+ case 22: return e = e.stateNode, t = e._retryCache, t === null && (t = e._retryCache = new cu()), t;
default: throw Error(i(435, e.tag));
}
}
- function Du(e, t) {
- var n = Eu(e);
+ function Ou(e, t) {
+ var n = Du(e);
t.forEach(function(t) {
if (!n.has(t)) {
n.add(t);
- var r = wf.bind(null, e, t);
+ var r = Tf.bind(null, e, t);
t.then(r, r);
}
});
}
- function Ou(e, t, n) {
+ function ku(e, t, n) {
var r = t.deletions;
if (r !== null) for (var a = 0; a < r.length; a++) {
var o = r[a], s = e, c = t, l = c;
a: for (; l !== null;) {
switch (l.tag) {
case 27:
- if (Ap(l.type)) {
- bu = l.stateNode, xu = !1;
+ if (Mp(l.type)) {
+ xu = l.stateNode, Su = !1;
break a;
}
break;
case 5:
- bu = l.stateNode, xu = !1;
+ xu = l.stateNode, Su = !1;
break a;
case 3:
case 4:
- bu = l.stateNode.containerInfo, xu = !0;
+ xu = l.stateNode.containerInfo, Su = !0;
break a;
}
l = l.return;
}
- if (bu === null) throw Error(i(160));
- Cu(s, c, o), bu = null, xu = !1, s = o.alternate, s !== null && (s.return = null), o.return = null;
+ if (xu === null) throw Error(i(160));
+ wu(s, c, o), xu = null, Su = !1, s = o.alternate, s !== null && (s.return = null), o.return = null;
}
- if (t.subtreeFlags & 13886) for (t = t.child; t !== null;) Au(t, e, n), t = t.sibling;
+ if (t.subtreeFlags & 13886) for (t = t.child; t !== null;) ju(t, e, n), t = t.sibling;
}
- var ku = null;
- function Au(e, t, n) {
+ var Au = null;
+ function ju(e, t, n) {
var r = e.alternate, a = e.flags;
switch (e.tag) {
case 0:
@@ -15005,41 +15005,41 @@ var Sf = /* @__PURE__ */ h(((e) => {
var s = r[o];
s.ref.impl = s.nextImpl;
}
- Ou(t, e, n), ju(e), a & 4 && (xl(3, e, e.return), bl(3, e), xl(5, e, e.return));
+ ku(t, e, n), Mu(e), a & 4 && (Sl(3, e, e.return), xl(3, e), Sl(5, e, e.return));
break;
case 1:
- Ou(t, e, n), ju(e), a & 512 && (iu || r === null || Tl(r, r.return)), a & 64 && ru && (e = e.updateQueue, e !== null && (t = e.callbacks, t !== null && (n = e.shared.hiddenCallbacks, e.shared.hiddenCallbacks = n === null ? t : n.concat(t))));
+ ku(t, e, n), Mu(e), a & 512 && (au || r === null || El(r, r.return)), a & 64 && iu && (e = e.updateQueue, e !== null && (t = e.callbacks, t !== null && (n = e.shared.hiddenCallbacks, e.shared.hiddenCallbacks = n === null ? t : n.concat(t))));
break;
case 26:
- if (o = ku, Ou(t, e, n), ju(e), a & 512 && (iu || r === null || Tl(r, r.return)), a & 4) {
+ if (o = Au, ku(t, e, n), Mu(e), a & 512 && (au || r === null || El(r, r.return)), a & 4) {
if (a = r === null ? null : r.memoizedState, n = e.memoizedState, r === null) {
if (n === null) {
if (e.stateNode === null) {
- if (ru) e.stateNode = bp(e.type, e.memoizedProps, t.containerInfo, e);
+ if (iu) e.stateNode = Sp(e.type, e.memoizedProps, t.containerInfo, e);
else {
a: {
t = e.type, n = e.memoizedProps, a = o.ownerDocument || o;
b: switch (t) {
case "title":
- r = a.getElementsByTagName("title")[0], (!r || r[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"))), up(r, t, n), r[xt] = e, Pt(r), t = r;
+ r = a.getElementsByTagName("title")[0], (!r || r[R] || 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"))), fp(r, t, n), r[xt] = e, Pt(r), t = r;
break a;
case "link":
- if (o = Xm("link", "href", a).get(t + (n.href || ""))) {
+ if (o = Zm("link", "href", a).get(t + (n.href || ""))) {
for (s = 0; s < o.length; s++) if (r = o[s], r.getAttribute("href") === (n.href == null || n.href === "" ? null : n.href) && r.getAttribute("rel") === (n.rel == null ? null : n.rel) && r.getAttribute("title") === (n.title == null ? null : n.title) && r.getAttribute("crossorigin") === (n.crossOrigin == null ? null : n.crossOrigin)) {
o.splice(s, 1);
break b;
}
}
- r = a.createElement(t), up(r, t, n), a.head.appendChild(r);
+ r = a.createElement(t), fp(r, t, n), a.head.appendChild(r);
break;
case "meta":
- if (o = Xm("meta", "content", a).get(t + (n.content || ""))) {
+ if (o = Zm("meta", "content", a).get(t + (n.content || ""))) {
for (s = 0; s < o.length; s++) if (r = o[s], r.getAttribute("content") === (n.content == null ? null : "" + n.content) && r.getAttribute("name") === (n.name == null ? null : n.name) && r.getAttribute("property") === (n.property == null ? null : n.property) && r.getAttribute("http-equiv") === (n.httpEquiv == null ? null : n.httpEquiv) && r.getAttribute("charset") === (n.charSet == null ? null : n.charSet)) {
o.splice(s, 1);
break b;
}
}
- r = a.createElement(t), up(r, t, n), a.head.appendChild(r);
+ r = a.createElement(t), fp(r, t, n), a.head.appendChild(r);
break;
default: throw Error(i(468, t));
}
@@ -15047,78 +15047,78 @@ var Sf = /* @__PURE__ */ h(((e) => {
}
e.stateNode = t;
}
- } else ru || Zm(o, e.type, e.stateNode);
- } else e.stateNode = Km(o, n, e.memoizedProps);
- } else a === n ? n === null && e.stateNode !== null && Ml(e, e.memoizedProps, r.memoizedProps) : (a === null ? (t = r.stateNode, t === null || iu || t.parentNode.removeChild(t)) : a.count--, n === null ? ru || Zm(o, e.type, e.stateNode) : Km(o, n, e.memoizedProps));
+ } else iu || Qm(o, e.type, e.stateNode);
+ } else e.stateNode = qm(o, n, e.memoizedProps);
+ } else a === n ? n === null && e.stateNode !== null && Nl(e, e.memoizedProps, r.memoizedProps) : (a === null ? (t = r.stateNode, t === null || au || t.parentNode.removeChild(t)) : a.count--, n === null ? iu || Qm(o, e.type, e.stateNode) : qm(o, n, e.memoizedProps));
}
break;
case 27:
- Ou(t, e, n), ju(e), a & 512 && (iu || r === null || Tl(r, r.return)), r !== null && a & 4 && Ml(e, e.memoizedProps, r.memoizedProps);
+ ku(t, e, n), Mu(e), a & 512 && (au || r === null || El(r, r.return)), r !== null && a & 4 && Nl(e, e.memoizedProps, r.memoizedProps);
break;
case 5:
- if (o = au, au = !1, Ou(t, e, n), au = o, ju(e), a & 512 && (iu || r === null || Tl(r, r.return)), e.flags & 32) {
+ if (o = ou, ou = !1, ku(t, e, n), ou = o, Mu(e), a & 512 && (au || r === null || El(r, r.return)), e.flags & 32) {
t = e.stateNode;
try {
sn(t, ""), Ht = !0;
} catch (t) {
- vf(e, e.return, t);
+ bf(e, e.return, t);
}
}
- a & 4 && e.stateNode != null && (t = e.memoizedProps, Ml(e, t, r === null ? t : r.memoizedProps)), a & 1024 && (ou = !0);
+ a & 4 && e.stateNode != null && (t = e.memoizedProps, Nl(e, t, r === null ? t : r.memoizedProps)), a & 1024 && (su = !0);
break;
case 6:
- if (Ou(t, e, n), ju(e), a & 4) {
+ if (ku(t, e, n), Mu(e), a & 4) {
if (e.stateNode === null) throw Error(i(162));
t = e.memoizedProps, n = e.stateNode;
try {
n.nodeValue = t, Ht = !0;
} catch (t) {
- vf(e, e.return, t);
+ bf(e, e.return, t);
}
}
break;
case 3:
- if (Ht = !1, Ym = null, o = ku, ku = Em(t.containerInfo), Ou(t, e, n), ku = o, ju(e), a & 4 && r !== null && r.memoizedState.isDehydrated) try {
+ if (Ht = !1, q = null, o = Au, Au = Om(t.containerInfo), ku(t, e, n), Au = o, Mu(e), a & 4 && r !== null && r.memoizedState.isDehydrated) try {
Kh(t.containerInfo);
} catch (t) {
- vf(e, e.return, t);
+ bf(e, e.return, t);
}
- ou && (ou = !1, Mu(e)), Ht = !1;
+ su && (su = !1, Nu(e)), Ht = !1;
break;
case 4:
- a = au, au = ru, r = Ut(), o = ku, ku = Em(e.stateNode.containerInfo), Ou(t, e, n), ju(e), ku = o, Ht && uu && (du = !0), Ht = r, au = a;
+ a = ou, ou = iu, r = Ut(), o = Au, Au = Om(e.stateNode.containerInfo), ku(t, e, n), Mu(e), Au = o, Ht && du && (fu = !0), Ht = r, ou = a;
break;
case 12:
- Ou(t, e, n), ju(e);
+ ku(t, e, n), Mu(e);
break;
case 31:
- Ou(t, e, n), ju(e), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, Du(e, t)));
+ ku(t, e, n), Mu(e), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, Ou(e, t)));
break;
case 13:
- Ou(t, e, n), ju(e), e.child.flags & 8192 && e.memoizedState !== null != (r !== null && r.memoizedState !== null) && (vd = ze()), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, Du(e, t)));
+ ku(t, e, n), Mu(e), e.child.flags & 8192 && e.memoizedState !== null != (r !== null && r.memoizedState !== null) && (bd = ze()), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, Ou(e, t)));
break;
case 22:
o = e.memoizedState !== null, s = r !== null && r.memoizedState !== null;
- var c = ru, l = iu, u = au;
- ru = c || o, au = u || o, iu = l || s, Ou(t, e, n), iu = l, au = u, ru = c, ju(e), a & 8192 && (t = e.stateNode, t._visibility = o ? t._visibility & -2 : t._visibility | 1, !o || r === null || s || ru || iu || (t = s || iu, n = ru, r = iu, ru = o || ru, iu = t, Iu(e, 2), ru = n, iu = r), !o && au || gu(e, o)), a & 4 && (t = e.updateQueue, t !== null && (n = t.retryQueue, n !== null && (t.retryQueue = null, Du(e, n))));
+ var c = iu, l = au, u = ou;
+ iu = c || o, ou = u || o, au = l || s, ku(t, e, n), au = l, ou = u, iu = c, Mu(e), a & 8192 && (t = e.stateNode, t._visibility = o ? t._visibility & -2 : t._visibility | 1, !o || r === null || s || iu || au || (t = s || au, n = iu, r = au, iu = o || iu, au = t, Lu(e, 2), iu = n, au = r), !o && ou || _u(e, o)), a & 4 && (t = e.updateQueue, t !== null && (n = t.retryQueue, n !== null && (t.retryQueue = null, Ou(e, n))));
break;
case 19:
- Ou(t, e, n), ju(e), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, Du(e, t)));
+ ku(t, e, n), Mu(e), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, Ou(e, t)));
break;
case 30:
- a & 512 && (iu || r === null || Tl(r, r.return)), a = Ut(), o = uu, s = (n & 335544064) === n, c = e.memoizedProps, uu = s && gi(c.default, c.update) !== "none", Ou(t, e, n), ju(e), s && r !== null && Ht && (e.flags |= 4), uu = o, Ht = a;
+ a & 512 && (au || r === null || El(r, r.return)), a = Ut(), o = du, s = (n & 335544064) === n, c = e.memoizedProps, du = s && gi(c.default, c.update) !== "none", ku(t, e, n), Mu(e), s && r !== null && Ht && (e.flags |= 4), du = o, Ht = a;
break;
case 21: break;
- case 7: a & 512 && (iu || r === null || Tl(r, r.return)), r && r.stateNode !== null && (r.stateNode._fragmentFiber = e);
- default: Ou(t, e, n), ju(e);
+ case 7: a & 512 && (au || r === null || El(r, r.return)), r && r.stateNode !== null && (r.stateNode._fragmentFiber = e);
+ default: ku(t, e, n), Mu(e);
}
}
- function ju(e) {
+ function Mu(e) {
var t = e.flags;
if (t & 2) {
try {
for (var n, r = e.return; r !== null;) {
- if (Nl(r)) {
+ if (Pl(r)) {
n = r;
break;
}
@@ -15126,11 +15126,11 @@ var Sf = /* @__PURE__ */ h(((e) => {
}
r = null;
for (var a = e.return; a !== null;) {
- if (Al(a)) {
+ if (jl(a)) {
var o = a.stateNode;
r === null ? r = [o] : r.push(o);
}
- if (kl(a)) break;
+ if (Al(a)) break;
a = a.return;
}
var s = r;
@@ -15138,46 +15138,46 @@ var Sf = /* @__PURE__ */ h(((e) => {
switch (n.tag) {
case 27:
var c = n.stateNode;
- Il(e, Pl(e), c, s);
+ Ll(e, Fl(e), c, s);
break;
case 5:
var l = n.stateNode;
- n.flags & 32 && (sn(l, ""), n.flags &= -33), Il(e, Pl(e), l, s);
+ n.flags & 32 && (sn(l, ""), n.flags &= -33), Ll(e, Fl(e), l, s);
break;
case 3:
case 4:
var u = n.stateNode.containerInfo;
- Fl(e, Pl(e), u, s);
+ Il(e, Fl(e), u, s);
break;
default: throw Error(i(161));
}
} catch (t) {
- vf(e, e.return, t);
+ bf(e, e.return, t);
}
e.flags &= -3;
}
t & 4096 && (e.flags &= -4097);
}
- function Mu(e) {
+ function Nu(e) {
if (e.subtreeFlags & 1024) for (e = e.child; e !== null;) {
var t = e;
- Mu(t), t.tag === 5 && t.flags & 1024 && (t = t.stateNode, xh = !0, t.reset(), xh = !1), e = e.sibling;
+ Nu(t), t.tag === 5 && t.flags & 1024 && (t = t.stateNode, xh = !0, t.reset(), xh = !1), e = e.sibling;
}
}
- function Nu(e, t) {
- if (t.subtreeFlags & 9270) for (t = t.child; t !== null;) Pu(t, e), t = t.sibling;
- else nu(t, !1);
- }
function Pu(e, t) {
+ if (t.subtreeFlags & 9270) for (t = t.child; t !== null;) Fu(t, e), t = t.sibling;
+ else ru(t, !1);
+ }
+ function Fu(e, t) {
var n = e.alternate;
- if (n === null) Jl(e, !1);
+ if (n === null) Yl(e, !1);
else switch (e.tag) {
case 3:
- if (fu = lu = !1, Hl(), Nu(t, e), !lu && !du) {
- if (e = Vl, e !== null) for (var r = 0; r < e.length; r += 3) {
+ if (pu = uu = !1, Ul(), Pu(t, e), !uu && !fu) {
+ if (e = Hl, e !== null) for (var r = 0; r < e.length; r += 3) {
n = e[r];
var i = e[r + 1];
- Pp(n, e[r + 2]), n = n.ownerDocument.documentElement, n !== null && n.animate({
+ Ip(n, e[r + 2]), n = n.ownerDocument.documentElement, n !== null && n.animate({
opacity: [0, 0],
pointerEvents: ["none", "none"]
}, {
@@ -15200,33 +15200,33 @@ var Sf = /* @__PURE__ */ h(((e) => {
duration: 0,
fill: "forwards",
pseudoElement: "::view-transition"
- })), fu = !0;
+ })), pu = !0;
}
- Vl = null;
+ Hl = null;
break;
case 5:
- Nu(t, e);
+ Pu(t, e);
break;
case 4:
- r = lu, lu = !1, Nu(t, e), lu && (du = !0), lu = r;
+ r = uu, uu = !1, Pu(t, e), uu && (fu = !0), uu = r;
break;
case 22:
- e.memoizedState === null && (n.memoizedState === null ? Nu(t, e) : Jl(e, !1));
+ e.memoizedState === null && (n.memoizedState === null ? Pu(t, e) : Yl(e, !1));
break;
case 30:
- r = lu, i = Hl(), lu = !1, Nu(t, e), lu && (e.flags |= 4);
+ r = uu, i = Ul(), uu = !1, Pu(t, e), uu && (e.flags |= 4);
var a = e.memoizedProps, o = e.stateNode;
t = mi(a, o), o = mi(n.memoizedProps, o);
var s = gi(a.default, a.update);
- s === "none" ? t = !1 : (a = n.memoizedState, n.memoizedState = null, n = e.child, Ul = 0, t = tu(e, n, t, o, s, a, !0), Ul !== (a === null ? 0 : a.length) && (e.flags |= 32)), e.flags & 4 && t ? (Ld(e, e.memoizedProps.onUpdate), Vl = i) : i !== null && (i.push.apply(i, Vl), Vl = i), lu = e.flags & 32 ? !0 : r;
+ s === "none" ? t = !1 : (a = n.memoizedState, n.memoizedState = null, n = e.child, Wl = 0, t = nu(e, n, t, o, s, a, !0), Wl !== (a === null ? 0 : a.length) && (e.flags |= 32)), e.flags & 4 && t ? (zd(e, e.memoizedProps.onUpdate), Hl = i) : i !== null && (i.push.apply(i, Hl), Hl = i), uu = e.flags & 32 ? !0 : r;
break;
- default: Nu(t, e);
+ default: Pu(t, e);
}
}
- function Fu(e, t) {
- if (t.subtreeFlags & 8772) for (t = t.child; t !== null;) hu(e, t.alternate, t), t = t.sibling;
- }
function Iu(e, t) {
+ if (t.subtreeFlags & 8772) for (t = t.child; t !== null;) gu(e, t.alternate, t), t = t.sibling;
+ }
+ function Lu(e, t) {
for (e = e.child; e !== null;) {
var n = e, r = t;
switch (n.tag) {
@@ -15234,218 +15234,218 @@ var Sf = /* @__PURE__ */ h(((e) => {
case 11:
case 14:
case 15:
- xl(4, n, n.return), Iu(n, r);
+ Sl(4, n, n.return), Lu(n, r);
break;
case 1:
- Tl(n, n.return);
+ El(n, n.return);
var i = n.stateNode;
- typeof i.componentWillUnmount == "function" && Cl(n, n.return, i), Iu(n, r);
+ typeof i.componentWillUnmount == "function" && wl(n, n.return, i), Lu(n, r);
break;
- case 27: r & 2 && Sm(n.stateNode, n.type, n.memoizedProps);
+ case 27: r & 2 && wm(n.stateNode, n.type, n.memoizedProps);
case 5:
- Tl(n, n.return), n.tag !== 5 && n.tag !== 27 || Ol(n), Iu(n, r);
+ El(n, n.return), n.tag !== 5 && n.tag !== 27 || kl(n), Lu(n, r);
break;
case 6:
- Ol(n);
+ kl(n);
break;
case 26:
- Tl(n, n.return), i = n.stateNode, n.memoizedState !== null || i === null || iu || i.parentNode.removeChild(i), Iu(n, r);
+ El(n, n.return), i = n.stateNode, n.memoizedState !== null || i === null || au || i.parentNode.removeChild(i), Lu(n, r);
break;
case 22:
- n.memoizedState === null && Iu(n, r);
+ n.memoizedState === null && Lu(n, r);
break;
case 30:
- Tl(n, n.return), Iu(n, r);
+ El(n, n.return), Lu(n, r);
break;
- case 7: Tl(n, n.return);
- default: Iu(n, r);
+ case 7: El(n, n.return);
+ default: Lu(n, r);
}
e = e.sibling;
}
}
- function Lu(e, t, n) {
+ function Ru(e, t, n) {
for (n = t.subtreeFlags & 8772 ? n : n & -2, t = t.child; t !== null;) {
var r = t.alternate, i = e, a = t, o = a.flags, s = !!(n & 1);
switch (a.tag) {
case 0:
case 11:
case 15:
- Lu(i, a, n), bl(4, a);
+ Ru(i, a, n), xl(4, a);
break;
case 1:
- if (Lu(i, a, n), r = a, i = r.stateNode, typeof i.componentDidMount == "function") try {
+ if (Ru(i, a, n), r = a, i = r.stateNode, typeof i.componentDidMount == "function") try {
i.componentDidMount();
} catch (e) {
- vf(r, r.return, e);
+ bf(r, r.return, e);
}
if (r = a, i = r.updateQueue, i !== null) {
var c = r.stateNode;
try {
var l = i.shared.hiddenCallbacks;
- if (l !== null) for (i.shared.hiddenCallbacks = null, i = 0; i < l.length; i++) bo(l[i], c);
+ if (l !== null) for (i.shared.hiddenCallbacks = null, i = 0; i < l.length; i++) xo(l[i], c);
} catch (e) {
- vf(r, r.return, e);
+ bf(r, r.return, e);
}
}
- s && o & 64 && Sl(a), wl(a, a.return);
+ s && o & 64 && Cl(a), Tl(a, a.return);
break;
- case 27: n & 2 && Ll(a);
+ case 27: n & 2 && Rl(a);
case 5:
- a.tag !== 5 && a.tag !== 27 || Dl(a), Lu(i, a, n), s && r === null && o & 4 && jl(a), wl(a, a.return);
+ a.tag !== 5 && a.tag !== 27 || Ol(a), Ru(i, a, n), s && r === null && o & 4 && Ml(a), Tl(a, a.return);
break;
case 6:
- Dl(a);
+ Ol(a);
break;
case 26:
- c = a.stateNode, a.memoizedState !== null || c === null || ru || Zm(Em(c.ownerDocument), a.type, c), Lu(i, a, n), s && r === null && o & 4 && jl(a), wl(a, a.return);
+ c = a.stateNode, a.memoizedState !== null || c === null || iu || Qm(Om(c.ownerDocument), a.type, c), Ru(i, a, n), s && r === null && o & 4 && Ml(a), Tl(a, a.return);
break;
case 12:
- Lu(i, a, n);
+ Ru(i, a, n);
break;
case 31:
- Lu(i, a, n), s && o & 4 && wu(i, a);
+ Ru(i, a, n), s && o & 4 && Tu(i, a);
break;
case 13:
- Lu(i, a, n), s && o & 4 && Tu(i, a);
+ Ru(i, a, n), s && o & 4 && Eu(i, a);
break;
case 22:
- a.memoizedState === null && Lu(i, a, n), wl(a, a.return);
+ a.memoizedState === null && Ru(i, a, n), Tl(a, a.return);
break;
case 30:
- Lu(i, a, n), wl(a, a.return);
+ Ru(i, a, n), Tl(a, a.return);
break;
- case 7: wl(a, a.return);
- default: Lu(i, a, n);
+ case 7: Tl(a, a.return);
+ default: Ru(i, a, n);
}
t = t.sibling;
}
}
- function Ru(e, t) {
+ function zu(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 && ka(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 && Aa(n));
}
- function zu(e, t) {
- e = null, t.alternate !== null && (e = t.alternate.memoizedState.cache), t = t.memoizedState.cache, t !== e && (t.refCount++, e != null && ka(e));
+ function Bu(e, t) {
+ e = null, t.alternate !== null && (e = t.alternate.memoizedState.cache), t = t.memoizedState.cache, t !== e && (t.refCount++, e != null && Aa(e));
}
- function Bu(e, t, n, r) {
+ function Vu(e, t, n, r) {
var i = (n & 335544064) === n;
- if (t.subtreeFlags & (i ? 10262 : 10256)) for (t = t.child; t !== null;) Vu(e, t, n, r), t = t.sibling;
- else i && eu(t);
+ if (t.subtreeFlags & (i ? 10262 : 10256)) for (t = t.child; t !== null;) Hu(e, t, n, r), t = t.sibling;
+ else i && tu(t);
}
- function Vu(e, t, n, r) {
+ function Hu(e, t, n, r) {
var i = (n & 335544064) === n;
- i && t.alternate === null && t.return !== null && t.return.alternate !== null && $l(t);
+ i && t.alternate === null && t.return !== null && t.return.alternate !== null && eu(t);
var a = t.flags;
switch (t.tag) {
case 0:
case 11:
case 15:
- Bu(e, t, n, r), a & 2048 && bl(9, t);
+ Vu(e, t, n, r), a & 2048 && xl(9, t);
break;
case 1:
- Bu(e, t, n, r);
+ Vu(e, t, n, r);
break;
case 3:
- Bu(e, t, n, r), i && fu && (e = e.containerInfo, e = e.nodeType === 9 ? e.body : e.nodeName === "HTML" ? e.ownerDocument.body : e, e.style.viewTransitionName === "root" && (e.style.viewTransitionName = ""), e = e.ownerDocument.documentElement, e !== null && e.style.viewTransitionName === "none" && (e.style.viewTransitionName = "")), a & 2048 && (a = null, t.alternate !== null && (a = t.alternate.memoizedState.cache), t = t.memoizedState.cache, t !== a && (t.refCount++, a != null && ka(a)));
+ Vu(e, t, n, r), i && pu && (e = e.containerInfo, e = e.nodeType === 9 ? e.body : e.nodeName === "HTML" ? e.ownerDocument.body : e, e.style.viewTransitionName === "root" && (e.style.viewTransitionName = ""), e = e.ownerDocument.documentElement, e !== null && e.style.viewTransitionName === "none" && (e.style.viewTransitionName = "")), a & 2048 && (a = null, t.alternate !== null && (a = t.alternate.memoizedState.cache), t = t.memoizedState.cache, t !== a && (t.refCount++, a != null && Aa(a)));
break;
case 12:
if (a & 2048) {
- Bu(e, t, n, r), a = t.stateNode;
+ Vu(e, t, n, r), a = t.stateNode;
try {
var o = t.memoizedProps, s = o.id, c = o.onPostCommit;
typeof c == "function" && c(s, t.alternate === null ? "mount" : "update", a.passiveEffectDuration, -0);
} catch (e) {
- vf(t, t.return, e);
+ bf(t, t.return, e);
}
- } else Bu(e, t, n, r);
+ } else Vu(e, t, n, r);
break;
case 31:
- Bu(e, t, n, r);
+ Vu(e, t, n, r);
break;
case 13:
- Bu(e, t, n, r);
+ Vu(e, t, n, r);
break;
case 23: break;
case 22:
- o = t.stateNode, s = t.alternate, t.memoizedState === null ? (i && s !== null && s.memoizedState !== null && $l(t), o._visibility & 2 ? Bu(e, t, n, r) : (o._visibility |= 2, Hu(e, t, n, r, !!(t.subtreeFlags & 10256) || !1))) : (i && s !== null && s.memoizedState === null && $l(s), o._visibility & 2 ? Bu(e, t, n, r) : Uu(e, t)), a & 2048 && Ru(s, t);
+ o = t.stateNode, s = t.alternate, t.memoizedState === null ? (i && s !== null && s.memoizedState !== null && eu(t), o._visibility & 2 ? Vu(e, t, n, r) : (o._visibility |= 2, Uu(e, t, n, r, !!(t.subtreeFlags & 10256) || !1))) : (i && s !== null && s.memoizedState === null && eu(s), o._visibility & 2 ? Vu(e, t, n, r) : Wu(e, t)), a & 2048 && zu(s, t);
break;
case 24:
- Bu(e, t, n, r), a & 2048 && zu(t.alternate, t);
+ Vu(e, t, n, r), a & 2048 && Bu(t.alternate, t);
break;
case 30:
- i && (a = t.alternate, a !== null && (Kl(a.child, !0), Kl(t.child, !0))), Bu(e, t, n, r);
+ i && (a = t.alternate, a !== null && (ql(a.child, !0), ql(t.child, !0))), Vu(e, t, n, r);
break;
- default: Bu(e, t, n, r);
+ default: Vu(e, t, n, r);
}
}
- function Hu(e, t, n, r, i) {
+ function Uu(e, t, n, r, i) {
for (i &&= !!(t.subtreeFlags & 10256) || !1, t = t.child; t !== null;) {
var a = e, o = t, s = n, c = r, l = o.flags;
switch (o.tag) {
case 0:
case 11:
case 15:
- Hu(a, o, s, c, i), bl(8, o);
+ Uu(a, o, s, c, i), xl(8, o);
break;
case 23: break;
case 22:
var u = o.stateNode;
- o.memoizedState === null ? (u._visibility |= 2, Hu(a, o, s, c, i)) : u._visibility & 2 ? Hu(a, o, s, c, i) : Uu(a, o), i && l & 2048 && Ru(o.alternate, o);
+ o.memoizedState === null ? (u._visibility |= 2, Uu(a, o, s, c, i)) : u._visibility & 2 ? Uu(a, o, s, c, i) : Wu(a, o), i && l & 2048 && zu(o.alternate, o);
break;
case 24:
- Hu(a, o, s, c, i), i && l & 2048 && zu(o.alternate, o);
+ Uu(a, o, s, c, i), i && l & 2048 && Bu(o.alternate, o);
break;
- default: Hu(a, o, s, c, i);
+ default: Uu(a, o, s, c, i);
}
t = t.sibling;
}
}
- function Uu(e, t) {
+ function Wu(e, t) {
if (t.subtreeFlags & 10256) for (t = t.child; t !== null;) {
var n = e, r = t, i = r.flags;
switch (r.tag) {
case 22:
- Uu(n, r), i & 2048 && Ru(r.alternate, r);
+ Wu(n, r), i & 2048 && zu(r.alternate, r);
break;
case 24:
- Uu(n, r), i & 2048 && zu(r.alternate, r);
+ Wu(n, r), i & 2048 && Bu(r.alternate, r);
break;
- default: Uu(n, r);
+ default: Wu(n, r);
}
t = t.sibling;
}
}
- var Wu = 8192;
- function Gu(e, t, n) {
- if (e.subtreeFlags & Wu) for (e = e.child; e !== null;) Ku(e, t, n), e = e.sibling;
- }
+ var Gu = 8192;
function Ku(e, t, n) {
+ if (e.subtreeFlags & Gu) for (e = e.child; e !== null;) qu(e, t, n), e = e.sibling;
+ }
+ function qu(e, t, n) {
switch (e.tag) {
case 26:
- Gu(e, t, n), e.flags & Wu && (e.memoizedState === null ? (e = e.stateNode, (t & 335544128) === t && nh(n, e)) : rh(n, ku, e.memoizedState, e.memoizedProps));
+ Ku(e, t, n), e.flags & Gu && (e.memoizedState === null ? (e = e.stateNode, (t & 335544128) === t && rh(n, e)) : ih(n, Au, e.memoizedState, e.memoizedProps));
break;
case 5:
- Gu(e, t, n), e.flags & Wu && (e = e.stateNode, (t & 335544128) === t && nh(n, e));
+ Ku(e, t, n), e.flags & Gu && (e = e.stateNode, (t & 335544128) === t && rh(n, e));
break;
case 3:
case 4:
- var r = ku;
- ku = Em(e.stateNode.containerInfo), Gu(e, t, n), ku = r;
+ var r = Au;
+ Au = Om(e.stateNode.containerInfo), Ku(e, t, n), Au = r;
break;
case 22:
- e.memoizedState === null && (r = e.alternate, r !== null && r.memoizedState !== null ? (r = Wu, Wu = 16777216, Gu(e, t, n), Wu = r) : Gu(e, t, n));
+ e.memoizedState === null && (r = e.alternate, r !== null && r.memoizedState !== null ? (r = Gu, Gu = 16777216, Ku(e, t, n), Gu = r) : Ku(e, t, n));
break;
case 30:
- if ((e.flags & Wu) !== 0 && (r = e.memoizedProps.name, r != null && r !== "auto")) {
+ if ((e.flags & Gu) !== 0 && (r = e.memoizedProps.name, r != null && r !== "auto")) {
var i = e.stateNode;
- i.paired = null, zl === null && (zl = /* @__PURE__ */ new Map()), zl.set(r, i);
+ i.paired = null, Bl === null && (Bl = /* @__PURE__ */ new Map()), Bl.set(r, i);
}
- Gu(e, t, n);
+ Ku(e, t, n);
break;
- default: Gu(e, t, n);
+ default: Ku(e, t, n);
}
}
- function qu(e) {
+ function Ju(e) {
var t = e.alternate;
if (t !== null && (e = t.child, e !== null)) {
t.child = null;
@@ -15454,69 +15454,69 @@ var Sf = /* @__PURE__ */ h(((e) => {
while (e !== null);
}
}
- function Ju(e) {
+ function Yu(e) {
var t = e.deletions;
if (e.flags & 16) {
if (t !== null) for (var n = 0; n < t.length; n++) {
var r = t[n];
- cu = r, Zu(r, e);
+ lu = r, Qu(r, e);
}
- qu(e);
+ Ju(e);
}
- if (e.subtreeFlags & 10256) for (e = e.child; e !== null;) Yu(e), e = e.sibling;
+ if (e.subtreeFlags & 10256) for (e = e.child; e !== null;) Xu(e), e = e.sibling;
}
- function Yu(e) {
+ function Xu(e) {
switch (e.tag) {
case 0:
case 11:
case 15:
- Ju(e), e.flags & 2048 && xl(9, e, e.return);
+ Yu(e), e.flags & 2048 && Sl(9, e, e.return);
break;
case 3:
- Ju(e);
+ Yu(e);
break;
case 12:
- Ju(e);
+ Yu(e);
break;
case 22:
var t = e.stateNode;
- e.memoizedState !== null && t._visibility & 2 && (e.return === null || e.return.tag !== 13) ? (t._visibility &= -3, Xu(e)) : Ju(e);
+ e.memoizedState !== null && t._visibility & 2 && (e.return === null || e.return.tag !== 13) ? (t._visibility &= -3, Zu(e)) : Yu(e);
break;
- default: Ju(e);
+ default: Yu(e);
}
}
- function Xu(e) {
+ function Zu(e) {
var t = e.deletions;
if (e.flags & 16) {
if (t !== null) for (var n = 0; n < t.length; n++) {
var r = t[n];
- cu = r, Zu(r, e);
+ lu = r, Qu(r, e);
}
- qu(e);
+ Ju(e);
}
for (e = e.child; e !== null;) {
switch (t = e, t.tag) {
case 0:
case 11:
case 15:
- xl(8, t, t.return), Xu(t);
+ Sl(8, t, t.return), Zu(t);
break;
case 22:
- n = t.stateNode, n._visibility & 2 && (n._visibility &= -3, Xu(t));
+ n = t.stateNode, n._visibility & 2 && (n._visibility &= -3, Zu(t));
break;
- default: Xu(t);
+ default: Zu(t);
}
e = e.sibling;
}
}
- function Zu(e, t) {
- for (; cu !== null;) {
- var n = cu;
+ function Qu(e, t) {
+ for (; lu !== null;) {
+ var n = lu;
switch (n.tag) {
case 0:
case 11:
case 15:
- xl(8, n, t);
+ Sl(8, n, t);
break;
case 23:
case 22:
@@ -15525,64 +15525,64 @@ var Sf = /* @__PURE__ */ h(((e) => {
r != null && r.refCount++;
}
break;
- case 24: ka(n.memoizedState.cache);
+ case 24: Aa(n.memoizedState.cache);
}
- if (r = n.child, r !== null) r.return = n, cu = r;
- else a: for (n = e; cu !== null;) {
- r = cu;
+ if (r = n.child, r !== null) r.return = n, lu = r;
+ else a: for (n = e; lu !== null;) {
+ r = lu;
var i = r.sibling, a = r.return;
- if (yu(r), r === n) {
- cu = null;
+ if (bu(r), r === n) {
+ lu = null;
break a;
}
if (i !== null) {
- i.return = a, cu = i;
+ i.return = a, lu = i;
break a;
}
- cu = a;
+ lu = a;
}
}
}
- var Qu = {
+ var $u = {
getCacheForType: function(e) {
- var t = xa(Da), n = t.data.get(e);
+ var t = Sa(Oa), n = t.data.get(e);
return n === void 0 && (n = e(), t.data.set(e, n)), n;
},
cacheSignal: function() {
- return xa(Da).controller.signal;
+ return Sa(Oa).controller.signal;
}
- }, $u = typeof WeakMap == "function" ? WeakMap : Map, ed = 0, td = null, G = null, nd = 0, rd = 0, id = null, ad = !1, od = !1, sd = !1, cd = 0, ld = 0, ud = 0, dd = 0, fd = 0, pd = 0, md = 0, hd = null, gd = null, _d = !1, vd = 0, yd = 0, bd = Infinity, xd = null, Sd = null, Cd = 0, wd = null, Td = null, Ed = 0, Dd = 0, Od = null, kd = null, Ad = null, jd = null, Md = null, Nd = 0, Pd = null;
- function Fd() {
- return ed & 2 && nd !== 0 ? nd & -nd : I.T === null ? vt() : Bf();
+ }, ed = typeof WeakMap == "function" ? WeakMap : Map, td = 0, nd = null, rd = null, id = 0, ad = 0, od = null, sd = !1, cd = !1, ld = !1, ud = 0, dd = 0, fd = 0, pd = 0, md = 0, hd = 0, gd = 0, _d = null, vd = null, yd = !1, bd = 0, xd = 0, Sd = Infinity, Cd = null, wd = null, Td = 0, Ed = null, Dd = null, Od = 0, kd = 0, Ad = null, jd = null, Md = null, Nd = null, Pd = null, Fd = 0, Id = null;
+ function Ld() {
+ return td & 2 && id !== 0 ? id & -id : I.T === null ? vt() : Hf();
}
- function Id() {
- if (pd === 0) {
- if (!(nd & 536870912) || H) {
+ function Rd() {
+ if (hd === 0) {
+ if (!(id & 536870912) || na) {
var e = nt;
- nt <<= 1, !(nt & 3932160) && (nt = 262144), pd = e;
- } else pd = 536870912;
+ nt <<= 1, !(nt & 3932160) && (nt = 262144), hd = e;
+ } else hd = 536870912;
}
- return e = Do.current, e !== null && (e.flags |= 32), pd;
+ return e = Oo.current, e !== null && (e.flags |= 32), hd;
}
- function Ld(e, t) {
+ function zd(e, t) {
if (t != null) {
var n = e.stateNode, r = n.ref;
- r === null && (r = n.ref = Hp(mi(e.memoizedProps, n))), jd === null && (jd = []), jd.push(t.bind(null, r));
+ r === null && (r = n.ref = Wp(mi(e.memoizedProps, n))), Nd === null && (Nd = []), Nd.push(t.bind(null, r));
}
}
- function Rd(e, t, n) {
- (e === td && (rd === 2 || rd === 9) || e.cancelPendingCommit !== null) && (Gd(e, 0), Hd(e, nd, pd, !1)), dt(e, n), (!(ed & 2) || e !== td) && (e === td && (!(ed & 2) && (dd |= n), ld === 4 && Hd(e, nd, pd, !1)), Mf(e));
+ function Bd(e, t, n) {
+ (e === nd && (ad === 2 || ad === 9) || e.cancelPendingCommit !== null) && (qd(e, 0), Wd(e, id, hd, !1)), dt(e, n), (!(td & 2) || e !== nd) && (e === nd && (!(td & 2) && (pd |= n), dd === 4 && Wd(e, id, hd, !1)), Pf(e));
}
- function zd(e, t, n) {
- if (ed & 6) throw Error(i(327));
- var r = !n && !(t & 127) && (t & e.expiredLanes) === 0 || ot(e, t), a = r ? $d(e, t) : Zd(e, t, !0), o = r;
+ function Vd(e, t, n) {
+ if (td & 6) throw Error(i(327));
+ var r = !n && !(t & 127) && (t & e.expiredLanes) === 0 || ot(e, t), a = r ? tf(e, t) : $d(e, t, !0), o = r;
do {
if (a === 0) {
- od && !r && Hd(e, t, 0, !1);
+ cd && !r && Wd(e, t, 0, !1);
break;
}
- if (n = e.current.alternate, o && !Vd(n)) {
- a = Zd(e, t, !1), o = !1;
+ if (n = e.current.alternate, o && !Ud(n)) {
+ a = $d(e, t, !1), o = !1;
continue;
}
if (a === 2) {
@@ -15592,14 +15592,14 @@ var Sf = /* @__PURE__ */ h(((e) => {
t = s;
a: {
var c = e;
- a = hd;
+ a = _d;
var l = c.current.memoizedState.isDehydrated;
- if (l && (Gd(c, s).flags |= 256), s = Zd(c, s, !1), s !== 2 && s !== 6) {
- if (sd && !l) {
- c.errorRecoveryDisabledLanes |= o, dd |= o, a = 4;
+ if (l && (qd(c, s).flags |= 256), s = $d(c, s, !1), s !== 2 && s !== 6) {
+ if (ld && !l) {
+ c.errorRecoveryDisabledLanes |= o, pd |= o, a = 4;
break a;
}
- o = gd, gd = a, o !== null && (gd === null ? gd = o : gd.push.apply(gd, o));
+ o = vd, vd = a, o !== null && (vd === null ? vd = o : vd.push.apply(vd, o));
}
a = s;
}
@@ -15607,7 +15607,7 @@ var Sf = /* @__PURE__ */ h(((e) => {
}
}
if (a === 1) {
- Gd(e, 0), Hd(e, t, 0, !0);
+ qd(e, 0), Wd(e, t, 0, !0);
break;
}
a: {
@@ -15616,27 +15616,27 @@ var Sf = /* @__PURE__ */ h(((e) => {
case 1: throw Error(i(345));
case 4: if ((t & 4194048) !== t && (t & 62914560) !== t) break;
case 6:
- Hd(r, t, pd, !ad);
+ Wd(r, t, hd, !sd);
break a;
case 2:
- gd = null;
+ vd = null;
break;
case 3:
case 5: break;
default: throw Error(i(329));
}
- if ((t & 62914560) === t && (a = vd + 300 - ze(), 10 < a)) {
- if (Hd(r, t, pd, !ad), at(r, 0, !0) !== 0) break a;
- Ed = t, r.timeoutHandle = wp(Bd.bind(null, r, n, gd, xd, _d, t, pd, dd, md, ad, o, "Throttled", -0, 0), a);
+ if ((t & 62914560) === t && (a = bd + 300 - ze(), 10 < a)) {
+ if (Wd(r, t, hd, !sd), at(r, 0, !0) !== 0) break a;
+ Od = t, r.timeoutHandle = Ep(Hd.bind(null, r, n, vd, Cd, yd, t, hd, pd, gd, sd, o, "Throttled", -0, 0), a);
break a;
}
- Bd(r, n, gd, xd, _d, t, pd, dd, md, ad, o, null, -0, 0);
+ Hd(r, n, vd, Cd, yd, t, hd, pd, gd, sd, o, null, -0, 0);
}
break;
} while (1);
- Mf(e);
+ Pf(e);
}
- function Bd(e, t, n, r, i, a, o, s, c, l, u, d, f, p) {
+ function Hd(e, t, n, r, i, a, o, s, c, l, u, d, f, p) {
e.timeoutHandle = -1;
var m = t.subtreeFlags, h = (a & 335544064) === a;
if (d = null, (h || m & 8192 || (m & 16785408) == 16785408) && (d = {
@@ -15648,13 +15648,13 @@ var Sf = /* @__PURE__ */ h(((e) => {
waitingForImages: !0,
waitingForViewTransition: !1,
unsuspend: hn
- }, zl = null, Ku(t, a, d), h && (m = d, h = e.containerInfo, h = (h.nodeType === 9 ? h : h.ownerDocument).__reactViewTransition, h != null && (m.count++, m.waitingForViewTransition = !0, m = sh.bind(m), h.finished.then(m, m))), m = (a & 62914560) === a ? vd - ze() : (a & 4194048) === a ? yd - ze() : 0, m = ah(d, m), m !== null)) {
- Ed = a, e.cancelPendingCommit = m(sf.bind(null, e, t, a, n, r, i, o, s, c, l, u, d, null, f, p)), Hd(e, a, o, !l);
+ }, Bl = null, qu(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 = ch.bind(m), h.finished.then(m, m))), m = (a & 62914560) === a ? bd - ze() : (a & 4194048) === a ? xd - ze() : 0, m = oh(d, m), m !== null)) {
+ Od = a, e.cancelPendingCommit = m(lf.bind(null, e, t, a, n, r, i, o, s, c, l, u, d, null, f, p)), Wd(e, a, o, !l);
return;
}
- sf(e, t, a, n, r, i, o, s, c, l, u, d);
+ lf(e, t, a, n, r, i, o, s, c, l, u, d);
}
- function Vd(e) {
+ function Ud(e) {
for (var t = e;;) {
var n = t.tag;
if ((n === 0 || n === 11 || n === 15) && t.flags & 16384 && (n = t.updateQueue, n !== null && (n = n.stores, n !== null))) for (var r = 0; r < n.length; r++) {
@@ -15678,278 +15678,278 @@ var Sf = /* @__PURE__ */ h(((e) => {
}
return !0;
}
- function Hd(e, t, n, r) {
- t = st(e, t), t &= ~fd, t &= ~dd, e.suspendedLanes |= t, e.pingedLanes &= ~t, r && (e.warmLanes |= t), r = e.expirationTimes;
+ function Wd(e, t, n, r) {
+ t = st(e, t), t &= ~md, t &= ~pd, 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;
r[a] = -1, i &= ~o;
}
n !== 0 && pt(e, n, t);
}
- function Ud() {
- return ed & 6 ? !0 : (Nf(0, !1), !1);
+ function Gd() {
+ return td & 6 ? !0 : (Ff(0, !1), !1);
}
- function Wd() {
- if (G !== null) {
- if (rd === 0) var e = G.return;
- else e = G, pa = fa = null, ns(e), to = null, no = 0, e = G;
- for (; e !== null;) yl(e.alternate, e), e = e.return;
- G = null;
+ function Kd() {
+ if (rd !== null) {
+ if (ad === 0) var e = rd.return;
+ else e = rd, ma = pa = null, rs(e), no = null, ro = 0, e = rd;
+ for (; e !== null;) bl(e.alternate, e), e = e.return;
+ rd = null;
}
}
- function Gd(e, t) {
+ function qd(e, t) {
var n = e.timeoutHandle;
- return n !== -1 && (e.timeoutHandle = -1, Tp(n)), n = e.cancelPendingCommit, n !== null && (e.cancelPendingCommit = null, n()), Ed = 0, Wd(), td = e, G = n = ji(e.current, null), nd = t, rd = 0, id = null, ad = !1, od = ot(e, t), sd = !1, md = pd = fd = dd = ud = ld = 0, gd = hd = null, _d = !1, cd = st(e, t), xi(), n;
+ return n !== -1 && (e.timeoutHandle = -1, Dp(n)), n = e.cancelPendingCommit, n !== null && (e.cancelPendingCommit = null, n()), Od = 0, Kd(), nd = e, rd = n = ji(e.current, null), id = t, ad = 0, od = null, sd = !1, cd = ot(e, t), ld = !1, gd = hd = md = pd = fd = dd = 0, vd = _d = null, yd = !1, ud = st(e, t), xi(), n;
}
- function Kd(e, t) {
- W = null, I.H = fc, t === Ga || t === qa ? (t = $a(), rd = 3) : t === Ka ? (t = $a(), rd = 4) : rd = t === Ac ? 8 : typeof t == "object" && t && typeof t.then == "function" ? 6 : 1, id = t, G === null && (ld = 1, wc(e, zi(t, e.current)));
+ function Jd(e, t) {
+ U = null, I.H = pc, t === Ka || t === Ja ? (t = eo(), ad = 3) : t === qa ? (t = eo(), ad = 4) : ad = t === jc ? 8 : typeof t == "object" && t && typeof t.then == "function" ? 6 : 1, od = t, rd === null && (dd = 1, Tc(e, zi(t, e.current)));
}
- function qd() {
- var e = Do.current;
- return e === null ? !0 : (nd & 4194048) === nd ? Oo === null : (nd & 62914560) === nd || nd & 536870912 ? e === Oo : !1;
+ function Yd() {
+ var e = Oo.current;
+ return e === null ? !0 : (id & 4194048) === id ? ko === null : (id & 62914560) === id || id & 536870912 ? e === ko : !1;
}
- function Jd() {
+ function Xd() {
var e = I.H;
- return I.H = fc, e === null ? fc : e;
+ return I.H = pc, e === null ? pc : e;
}
- function Yd() {
+ function Zd() {
var e = I.A;
- return I.A = Qu, e;
+ return I.A = $u, e;
}
- function Xd() {
- ld = 4, ad || (nd & 4194048) !== nd && Do.current !== null || (od = !0), !(ud & 134217727) && !(dd & 134217727) || td === null || Hd(td, nd, pd, !1);
- }
- function Zd(e, t, n) {
- var r = ed;
- ed |= 2;
- var i = Jd(), a = Yd();
- (td !== e || nd !== t) && (xd = null, Gd(e, t)), t = !1;
- var o = ld;
+ function Qd() {
+ dd = 4, sd || (id & 4194048) !== id && Oo.current !== null || (cd = !0), !(fd & 134217727) && !(pd & 134217727) || nd === null || Wd(nd, id, hd, !1);
+ }
+ function $d(e, t, n) {
+ var r = td;
+ td |= 2;
+ var i = Xd(), a = Zd();
+ (nd !== e || id !== t) && (Cd = null, qd(e, t)), t = !1;
+ var o = dd;
a: do
try {
- if (rd !== 0 && G !== null) {
- var s = G, c = id;
- switch (rd) {
+ if (ad !== 0 && rd !== null) {
+ var s = rd, c = od;
+ switch (ad) {
case 8:
- Wd(), o = 6;
+ Kd(), o = 6;
break a;
case 3:
case 2:
case 9:
case 6:
- Do.current === null && (t = !0);
- var l = rd;
- if (rd = 0, id = null, rf(e, s, c, l), n && od) {
+ Oo.current === null && (t = !0);
+ var l = ad;
+ if (ad = 0, od = null, of(e, s, c, l), n && cd) {
o = 0;
break a;
}
break;
- default: l = rd, rd = 0, id = null, rf(e, s, c, l);
+ default: l = ad, ad = 0, od = null, of(e, s, c, l);
}
}
- Qd(), o = ld;
+ ef(), o = dd;
break;
} catch (t) {
- Kd(e, t);
+ Jd(e, t);
}
while (1);
- return t && e.shellSuspendCounter++, pa = fa = null, ed = r, I.H = i, I.A = a, G === null && (td = null, nd = 0, xi()), o;
+ return t && e.shellSuspendCounter++, ma = pa = null, td = r, I.H = i, I.A = a, rd === null && (nd = null, id = 0, xi()), o;
}
- function Qd() {
- for (; G !== null;) tf(G);
+ function ef() {
+ for (; rd !== null;) rf(rd);
}
- function $d(e, t) {
- var n = ed;
- ed |= 2;
- var r = Jd(), a = Yd();
- td !== e || nd !== t ? (xd = null, bd = ze() + 500, Gd(e, t)) : od = ot(e, t);
+ function tf(e, t) {
+ var n = td;
+ td |= 2;
+ var r = Xd(), a = Zd();
+ nd !== e || id !== t ? (Cd = null, Sd = ze() + 500, qd(e, t)) : cd = ot(e, t);
a: do
try {
- if (rd !== 0 && G !== null) {
- t = G;
- var o = id;
- b: switch (rd) {
+ if (ad !== 0 && rd !== null) {
+ t = rd;
+ var o = od;
+ b: switch (ad) {
case 1:
- rd = 0, id = null, rf(e, t, o, 1);
+ ad = 0, od = null, of(e, t, o, 1);
break;
case 2:
case 9:
- if (Ya(o)) {
- rd = 0, id = null, nf(t);
+ if (Xa(o)) {
+ ad = 0, od = null, af(t);
break;
}
t = function() {
- rd !== 2 && rd !== 9 || td !== e || (rd = 7), Mf(e);
+ ad !== 2 && ad !== 9 || nd !== e || (ad = 7), Pf(e);
}, o.then(t, t);
break a;
case 3:
- rd = 7;
+ ad = 7;
break a;
case 4:
- rd = 5;
+ ad = 5;
break a;
case 7:
- Ya(o) ? (rd = 0, id = null, nf(t)) : (rd = 0, id = null, rf(e, t, o, 7));
+ Xa(o) ? (ad = 0, od = null, af(t)) : (ad = 0, od = null, of(e, t, o, 7));
break;
case 5:
var s = null;
- switch (G.tag) {
- case 26: s = G.memoizedState;
+ switch (rd.tag) {
+ case 26: s = rd.memoizedState;
case 5:
case 27:
- var c = G;
- if (s ? eh(s) : c.stateNode.complete) {
- rd = 0, id = null;
+ var c = rd;
+ if (s ? th(s) : c.stateNode.complete) {
+ ad = 0, od = null;
var l = c.sibling;
- if (l !== null) G = l;
+ if (l !== null) rd = l;
else {
var u = c.return;
- u === null ? G = null : (G = u, af(u));
+ u === null ? rd = null : (rd = u, sf(u));
}
break b;
}
}
- rd = 0, id = null, rf(e, t, o, 5);
+ ad = 0, od = null, of(e, t, o, 5);
break;
case 6:
- rd = 0, id = null, rf(e, t, o, 6);
+ ad = 0, od = null, of(e, t, o, 6);
break;
case 8:
- Wd(), ld = 6;
+ Kd(), dd = 6;
break a;
default: throw Error(i(462));
}
}
- ef();
+ nf();
break;
} catch (t) {
- Kd(e, t);
+ Jd(e, t);
}
while (1);
- return pa = fa = null, I.H = r, I.A = a, ed = n, G === null ? (td = null, nd = 0, xi(), ld) : 0;
+ return ma = pa = null, I.H = r, I.A = a, td = n, rd === null ? (nd = null, id = 0, xi(), dd) : 0;
}
- function ef() {
- for (; G !== null && !Le();) tf(G);
+ function nf() {
+ for (; rd !== null && !Le();) rf(rd);
}
- function tf(e) {
- var t = ul(e.alternate, e, cd);
- e.memoizedProps = e.pendingProps, t === null ? af(e) : G = t;
+ function rf(e) {
+ var t = dl(e.alternate, e, ud);
+ e.memoizedProps = e.pendingProps, t === null ? sf(e) : rd = t;
}
- function nf(e) {
+ function af(e) {
var t = e, n = t.alternate;
switch (t.tag) {
case 15:
case 0:
- t = Wc(n, t, t.pendingProps, t.type, void 0, nd);
+ t = Gc(n, t, t.pendingProps, t.type, void 0, id);
break;
case 11:
- t = Wc(n, t, t.pendingProps, t.type.render, t.ref, nd);
+ t = Gc(n, t, t.pendingProps, t.type.render, t.ref, id);
break;
case 5:
- ns(t);
+ rs(t);
var r = t;
- r === ea && (H ? (oa(r), r.tag === 5 && r.stateNode != null && (ta = r.stateNode)) : (oa(r), H = !0));
- default: yl(n, t), t = G = Mi(t, cd), t = ul(n, t, cd);
+ r === ea && (na ? (sa(r), r.tag === 5 && r.stateNode != null && (ta = r.stateNode)) : (sa(r), na = !0));
+ default: bl(n, t), t = rd = Mi(t, ud), t = dl(n, t, ud);
}
- e.memoizedProps = e.pendingProps, t === null ? af(e) : G = t;
+ e.memoizedProps = e.pendingProps, t === null ? sf(e) : rd = t;
}
- function rf(e, t, n, r) {
- pa = fa = null, ns(t), to = null, no = 0;
+ function of(e, t, n, r) {
+ ma = pa = null, rs(t), no = null, ro = 0;
var i = t.return;
try {
- if (kc(e, i, t, n, nd)) {
- ld = 1, wc(e, zi(n, e.current)), G = null;
+ if (Ac(e, i, t, n, id)) {
+ dd = 1, Tc(e, zi(n, e.current)), rd = null;
return;
}
} catch (t) {
- if (i !== null) throw G = i, t;
- ld = 1, wc(e, zi(n, e.current)), G = null;
+ if (i !== null) throw rd = i, t;
+ dd = 1, Tc(e, zi(n, e.current)), rd = null;
return;
}
- t.flags & 32768 ? (H || r === 1 ? e = !0 : od || nd & 536870912 ? e = !1 : (ad = e = !0, (r === 2 || r === 9 || r === 3 || r === 6) && (r = Do.current, r !== null && r.tag === 13 && (r.flags |= 16384))), of(t, e)) : af(t);
+ t.flags & 32768 ? (na || r === 1 ? e = !0 : cd || id & 536870912 ? e = !1 : (sd = e = !0, (r === 2 || r === 9 || r === 3 || r === 6) && (r = Oo.current, r !== null && r.tag === 13 && (r.flags |= 16384))), cf(t, e)) : sf(t);
}
- function af(e) {
+ function sf(e) {
var t = e;
do {
if (t.flags & 32768) {
- of(t, ad);
+ cf(t, sd);
return;
}
e = t.return;
- var n = _l(t.alternate, t, cd);
+ var n = vl(t.alternate, t, ud);
if (n !== null) {
- G = n;
+ rd = n;
return;
}
if (t = t.sibling, t !== null) {
- G = t;
+ rd = t;
return;
}
- G = t = e;
+ rd = t = e;
} while (t !== null);
- ld === 0 && (ld = 5);
+ dd === 0 && (dd = 5);
}
- function of(e, t) {
+ function cf(e, t) {
do {
- var n = vl(e.alternate, e);
+ var n = yl(e.alternate, e);
if (n !== null) {
- n.flags &= 32767, G = n;
+ n.flags &= 32767, rd = n;
return;
}
if (n = e.return, n !== null && (n.flags |= 32768, n.subtreeFlags = 0, n.deletions = null), !t && (e = e.sibling, e !== null)) {
- G = e;
+ rd = e;
return;
}
- G = e = n;
+ rd = e = n;
} while (e !== null);
- ld = 6, G = null;
+ dd = 6, rd = null;
}
- function sf(e, t, n, r, a, o, s, c, l, u, d, f) {
+ function lf(e, t, n, r, a, o, s, c, l, u, d, f) {
e.cancelPendingCommit = null;
do
- hf();
- while (Cd !== 0);
- if (ed & 6) throw Error(i(327));
+ _f();
+ while (Td !== 0);
+ if (td & 6) throw Error(i(327));
if (t !== null) {
if (t === e.current) throw Error(i(177));
- e === td && (G = td = null, nd = 0), Td = t, wd = e, Ed = n, Od = a, kd = r, cf(e, t, n, s, c, l, f);
+ e === nd && (rd = nd = null, id = 0), Dd = t, Ed = e, Od = n, Ad = a, jd = r, uf(e, t, n, s, c, l, f);
}
}
- function cf(e, t, n, r, i, a, o) {
+ function uf(e, t, n, r, i, a, o) {
var s = t.lanes | t.childLanes;
- if (Dd = s, s |= bi, ft(e, n, s, r, i, a), jd = null, (n & 335544064) === n ? (Md = Ma(e), r = 10262) : (Md = null, r = 10256), (t.subtreeFlags & r) !== 0 || (t.flags & r) !== 0 ? (e.callbackNode = null, e.callbackPriority = 0, Tf(Ue, function() {
- return gf(), null;
- })) : (e.callbackNode = null, e.callbackPriority = 0), Rl = !1, r = !!(t.flags & 13878), t.subtreeFlags & 13878 || r) {
- r = I.T, I.T = null, i = L.p, L.p = 2, a = ed, ed |= 4;
+ if (kd = s, s |= bi, ft(e, n, s, r, i, a), Nd = null, (n & 335544064) === n ? (Pd = Na(e), r = 10262) : (Pd = null, r = 10256), (t.subtreeFlags & r) !== 0 || (t.flags & r) !== 0 ? (e.callbackNode = null, e.callbackPriority = 0, Df(Ue, function() {
+ return vf(), null;
+ })) : (e.callbackNode = null, e.callbackPriority = 0), zl = !1, r = !!(t.flags & 13878), t.subtreeFlags & 13878 || r) {
+ r = I.T, I.T = null, i = L.p, L.p = 2, a = td, td |= 4;
try {
- pu(e, t, n);
+ mu(e, t, n);
} finally {
- ed = a, L.p = i, I.T = r;
+ td = a, L.p = i, I.T = r;
}
}
- Cd = 1, Rl ? Ad = Bp(o, e.containerInfo, Md, df, ff, uf, pf, gf, lf, null, null) : (df(), ff(), pf());
+ Td = 1, zl ? Md = Hp(o, e.containerInfo, Pd, pf, mf, ff, hf, vf, df, null, null) : (pf(), mf(), hf());
}
- function lf(e) {
- if (Cd !== 0) {
- var t = wd.onRecoverableError;
+ function df(e) {
+ if (Td !== 0) {
+ var t = Ed.onRecoverableError;
t(e, { componentStack: null });
}
}
- function uf() {
- Cd === 3 && (Cd = 0, Pu(Td, wd), Cd = 4);
+ function ff() {
+ Td === 3 && (Td = 0, Fu(Dd, Ed), Td = 4);
}
- function df() {
- if (Cd === 1) {
- Cd = 0;
- var e = wd, t = Td, n = Ed, r = !!(t.flags & 13878);
+ function pf() {
+ if (Td === 1) {
+ Td = 0;
+ var e = Ed, t = Dd, n = Od, r = !!(t.flags & 13878);
if (t.subtreeFlags & 13878 || r) {
r = I.T, I.T = null;
var i = L.p;
L.p = 2;
- var a = ed;
- ed |= 4;
+ var a = td;
+ td |= 4;
try {
- uu = du = !1, Au(t, e, n), n = gp;
+ du = fu = !1, ju(t, e, n), n = vp;
var o = Ur(e.containerInfo), s = n.focusedElem, c = n.selectionRange;
if (o !== s && s && s.ownerDocument && Hr(s.ownerDocument.documentElement, s)) {
if (c !== null && Wr(s)) {
@@ -15978,40 +15978,40 @@ var Sf = /* @__PURE__ */ h(((e) => {
b.element.scrollLeft = b.left, b.element.scrollTop = b.top;
}
}
- xh = !!hp, gp = hp = null;
+ xh = !!_p, vp = _p = null;
} finally {
- ed = a, L.p = i, I.T = r;
+ td = a, L.p = i, I.T = r;
}
}
- e.current = t, Cd = 2;
+ e.current = t, Td = 2;
}
}
- function ff() {
- if (Cd === 2) {
- Cd = 0;
- var e = wd, t = Td, n = !!(t.flags & 8772);
+ function mf() {
+ if (Td === 2) {
+ Td = 0;
+ var e = Ed, t = Dd, n = !!(t.flags & 8772);
if (t.subtreeFlags & 8772 || n) {
n = I.T, I.T = null;
var r = L.p;
L.p = 2;
- var i = ed;
- ed |= 4;
+ var i = td;
+ td |= 4;
try {
- hu(e, t.alternate, t);
+ gu(e, t.alternate, t);
} finally {
- ed = i, L.p = r, I.T = n;
+ td = i, L.p = r, I.T = n;
}
}
- Cd = 3;
+ Td = 3;
}
}
- function pf() {
- if (Cd === 4 || Cd === 3) {
- Cd = 0;
- var e = Ad;
- Ad = null, Re();
- var t = wd, n = Td, r = Ed, i = kd, a = (r & 335544064) === r ? 10262 : 10256;
- if ((n.subtreeFlags & a) !== 0 || (n.flags & a) !== 0 ? Cd = 5 : (Cd = 0, Td = wd = null, mf(t, t.pendingLanes)), a = t.pendingLanes, a === 0 && (Sd = null), _t(r), n = n.stateNode, Ye && typeof Ye.onCommitFiberRoot == "function") try {
+ function hf() {
+ if (Td === 4 || Td === 3) {
+ Td = 0;
+ var e = Md;
+ Md = null, Re();
+ var t = Ed, n = Dd, r = Od, i = jd, a = (r & 335544064) === r ? 10262 : 10256;
+ if ((n.subtreeFlags & a) !== 0 || (n.flags & a) !== 0 ? Td = 5 : (Td = 0, Dd = Ed = null, gf(t, t.pendingLanes)), a = t.pendingLanes, a === 0 && (wd = null), _t(r), n = n.stateNode, Ye && typeof Ye.onCommitFiberRoot == "function") try {
Ye.onCommitFiberRoot(Je, n, void 0, (n.current.flags & 128) == 128);
} catch {}
if (i !== null) {
@@ -16025,75 +16025,75 @@ var Sf = /* @__PURE__ */ h(((e) => {
I.T = n, L.p = a;
}
}
- if (i = jd, o = Md, Md = null, i !== null && (jd = 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);
- Ed & 3 && hf(), Mf(t), a = t.pendingLanes, r & 261930 && a & 42 ? t === Pd ? Nd++ : (Nd = 0, Pd = t) : (Nd = 0, Pd = null), Nf(0, !1);
+ if (i = Nd, o = Pd, Pd = null, i !== null && (Nd = 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);
+ Od & 3 && _f(), Pf(t), a = t.pendingLanes, r & 261930 && a & 42 ? t === Id ? Fd++ : (Fd = 0, Id = t) : (Fd = 0, Id = null), Ff(0, !1);
}
}
- function mf(e, t) {
- (e.pooledCacheLanes &= t) === 0 && (t = e.pooledCache, t != null && (e.pooledCache = null, ka(t)));
+ function gf(e, t) {
+ (e.pooledCacheLanes &= t) === 0 && (t = e.pooledCache, t != null && (e.pooledCache = null, Aa(t)));
}
- function hf() {
- return Ad !== null && (Ad.skipTransition(), Ad = null), df(), ff(), pf(), gf();
+ function _f() {
+ return Md !== null && (Md.skipTransition(), Md = null), pf(), mf(), hf(), vf();
}
- function gf() {
- if (Cd !== 5) return !1;
- var e = wd, t = Dd;
- Dd = 0;
- var n = _t(Ed), r = I.T, a = L.p;
+ function vf() {
+ if (Td !== 5) return !1;
+ var e = Ed, t = kd;
+ kd = 0;
+ var n = _t(Od), r = I.T, a = L.p;
try {
- L.p = 32 > n ? 32 : n, I.T = null, n = Od, Od = null;
- var o = wd, s = Ed;
- if (Cd = 0, Td = wd = null, Ed = 0, ed & 6) throw Error(i(331));
- var c = ed;
- if (ed |= 4, Yu(o.current), Vu(o, o.current, s, n), ed = c, Nf(0, !1), Ye && typeof Ye.onPostCommitFiberRoot == "function") try {
+ L.p = 32 > n ? 32 : n, I.T = null, n = Ad, Ad = null;
+ var o = Ed, s = Od;
+ if (Td = 0, Dd = Ed = null, Od = 0, td & 6) throw Error(i(331));
+ var c = td;
+ if (td |= 4, Xu(o.current), Hu(o, o.current, s, n), td = c, Ff(0, !1), Ye && typeof Ye.onPostCommitFiberRoot == "function") try {
Ye.onPostCommitFiberRoot(Je, o);
} catch {}
return !0;
} finally {
- L.p = a, I.T = r, mf(e, t);
+ L.p = a, I.T = r, gf(e, t);
}
}
- function _f(e, t, n) {
- t = zi(n, t), t = Ec(e.stateNode, t, 2), e = mo(e, t, 2), e !== null && (dt(e, 2), Mf(e));
+ function yf(e, t, n) {
+ t = zi(n, t), t = Dc(e.stateNode, t, 2), e = ho(e, t, 2), e !== null && (dt(e, 2), Pf(e));
}
- function vf(e, t, n) {
- if (e.tag === 3) _f(e, e, n);
+ function bf(e, t, n) {
+ if (e.tag === 3) yf(e, e, n);
else for (; t !== null;) {
if (t.tag === 3) {
- _f(t, e, n);
+ yf(t, e, n);
break;
}
if (t.tag === 1) {
var r = t.stateNode;
- if (typeof t.type.getDerivedStateFromError == "function" || typeof r.componentDidCatch == "function" && (Sd === null || !Sd.has(r))) {
- e = zi(n, e), n = Dc(2), r = mo(t, n, 2), r !== null && (Oc(n, r, t, e), dt(r, 2), Mf(r));
+ if (typeof t.type.getDerivedStateFromError == "function" || typeof r.componentDidCatch == "function" && (wd === null || !wd.has(r))) {
+ e = zi(n, e), n = Oc(2), r = ho(t, n, 2), r !== null && (kc(n, r, t, e), dt(r, 2), Pf(r));
break;
}
}
t = t.return;
}
}
- function yf(e, t, n) {
+ function xf(e, t, n) {
var r = e.pingCache;
if (r === null) {
- r = e.pingCache = new $u();
+ r = e.pingCache = new ed();
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) || (sd = !0, i.add(n), e = bf.bind(null, e, t, n), t.then(e, e));
+ i.has(n) || (ld = !0, i.add(n), e = Sf.bind(null, e, t, n), t.then(e, e));
}
- function bf(e, t, n) {
+ function Sf(e, t, n) {
var r = e.pingCache;
- r !== null && r.delete(t), e.pingedLanes |= e.suspendedLanes & n, e.warmLanes &= ~n, td === e && (nd & n) === n && (ld === 4 || ld === 3 && (nd & 62914560) === nd && 300 > ze() - vd ? ed & 2 ? fd |= n : Gd(e, 0) : fd |= n, md === nd && (md = 0)), Mf(e);
+ r !== null && r.delete(t), e.pingedLanes |= e.suspendedLanes & n, e.warmLanes &= ~n, nd === e && (id & n) === n && (dd === 4 || dd === 3 && (id & 62914560) === id && 300 > ze() - bd ? td & 2 ? md |= n : qd(e, 0) : md |= n, gd === id && (gd = 0)), Pf(e);
}
- function xf(e, t) {
- t === 0 && (t = lt()), e = wi(e, t), e !== null && (dt(e, t), Mf(e));
+ function Cf(e, t) {
+ t === 0 && (t = lt()), e = wi(e, t), e !== null && (dt(e, t), Pf(e));
}
- function Sf(e) {
+ function wf(e) {
var t = e.memoizedState, n = 0;
- t !== null && (n = t.retryLane), xf(e, n);
+ t !== null && (n = t.retryLane), Cf(e, n);
}
- function wf(e, t) {
+ function Tf(e, t) {
var n = 0;
switch (e.tag) {
case 31:
@@ -16109,20 +16109,20 @@ var Sf = /* @__PURE__ */ h(((e) => {
break;
default: throw Error(i(314));
}
- r !== null && r.delete(t), xf(e, n);
+ r !== null && r.delete(t), Cf(e, n);
}
- function Tf(e, t) {
+ function Df(e, t) {
return Fe(e, t);
}
- var Ef = null, Df = null, Of = !1, kf = !1, Af = !1, jf = 0;
- function Mf(e) {
- e !== Df && e.next === null && (Df === null ? Ef = Df = e : Df = Df.next = e), kf = !0, Of || (Of = !0, zf());
+ var Of = null, kf = null, Af = !1, jf = !1, Mf = !1, Nf = 0;
+ function Pf(e) {
+ e !== kf && e.next === null && (kf === null ? Of = kf = e : kf = kf.next = e), jf = !0, Af || (Af = !0, Vf());
}
- function Nf(e, t) {
- if (!Af && kf) {
- Af = !0;
+ function Ff(e, t) {
+ if (!Mf && jf) {
+ Mf = !0;
do
- for (var n = !1, r = Ef; r !== null;) {
+ for (var n = !1, r = Of; r !== null;) {
if (!t) {
if (e !== 0) {
var i = r.pendingLanes;
@@ -16131,34 +16131,34 @@ var Sf = /* @__PURE__ */ h(((e) => {
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 !== 0 && (n = !0, Rf(r, a));
- } else a = nd, a = at(r, r === td ? a : 0, r.cancelPendingCommit !== null || r.timeoutHandle !== -1), !(a & 3) || ot(r, a) || (n = !0, Rf(r, a));
+ a !== 0 && (n = !0, Bf(r, a));
+ } else a = id, a = at(r, r === nd ? a : 0, r.cancelPendingCommit !== null || r.timeoutHandle !== -1), !(a & 3) || ot(r, a) || (n = !0, Bf(r, a));
}
r = r.next;
}
while (n);
- Af = !1;
+ Mf = !1;
}
}
- function Pf() {
- Ff();
+ function If() {
+ Lf();
}
- function Ff() {
- kf = Of = !1;
+ function Lf() {
+ jf = Af = !1;
var e = 0;
- jf !== 0 && Cp() && (e = jf);
- for (var t = ze(), n = null, r = Ef; r !== null;) {
- var i = r.next, a = If(r, t);
- a === 0 ? (r.next = null, n === null ? Ef = i : n.next = i, i === null && (Df = n)) : (n = r, (e !== 0 || a & 3) && (kf = !0)), r = i;
+ Nf !== 0 && Tp() && (e = Nf);
+ for (var t = ze(), n = null, r = Of; r !== null;) {
+ var i = r.next, a = Rf(r, t);
+ a === 0 ? (r.next = null, n === null ? Of = i : n.next = i, i === null && (kf = n)) : (n = r, (e !== 0 || a & 3) && (jf = !0)), r = i;
}
- Cd !== 0 && Cd !== 5 || Nf(e, !1), jf !== 0 && (jf = 0);
+ Td !== 0 && Td !== 5 || Ff(e, !1), Nf !== 0 && (Nf = 0);
}
- function If(e, t) {
+ function Rf(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;
}
- if (t = td, n = nd, n = at(e, e === t ? n : 0, e.cancelPendingCommit !== null || e.timeoutHandle !== -1), r = e.callbackNode, n === 0 || e === t && (rd === 2 || rd === 9) || e.cancelPendingCommit !== null) return r !== null && r !== null && Ie(r), e.callbackNode = null, e.callbackPriority = 0;
+ if (t = nd, n = id, n = at(e, e === t ? n : 0, e.cancelPendingCommit !== null || e.timeoutHandle !== -1), r = e.callbackNode, n === 0 || e === t && (ad === 2 || ad === 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 = n & -n, t === e.callbackPriority) return t;
switch (r !== null && Ie(r), _t(n)) {
@@ -16174,40 +16174,40 @@ var Sf = /* @__PURE__ */ h(((e) => {
break;
default: n = Ue;
}
- return r = Lf.bind(null, e), n = Fe(n, r), e.callbackPriority = t, e.callbackNode = n, t;
+ return r = zf.bind(null, e), n = Fe(n, r), e.callbackPriority = t, e.callbackNode = n, t;
}
return r !== null && r !== null && Ie(r), e.callbackPriority = 2, e.callbackNode = null, 2;
}
- function Lf(e, t) {
- if (Cd !== 0 && Cd !== 5) return e.callbackNode = null, e.callbackPriority = 0, null;
+ function zf(e, t) {
+ if (Td !== 0 && Td !== 5) return e.callbackNode = null, e.callbackPriority = 0, null;
var n = e.callbackNode;
- if (hf() && e.callbackNode !== n) return null;
- var r = nd;
- return r = at(e, e === td ? r : 0, e.cancelPendingCommit !== null || e.timeoutHandle !== -1), r === 0 ? null : (zd(e, r, t), If(e, ze()), e.callbackNode != null && e.callbackNode === n ? Lf.bind(null, e) : null);
+ if (_f() && e.callbackNode !== n) return null;
+ var r = id;
+ return r = at(e, e === nd ? r : 0, e.cancelPendingCommit !== null || e.timeoutHandle !== -1), r === 0 ? null : (Vd(e, r, t), Rf(e, ze()), e.callbackNode != null && e.callbackNode === n ? zf.bind(null, e) : null);
}
- function Rf(e, t) {
- if (hf()) return null;
- zd(e, t, !0);
+ function Bf(e, t) {
+ if (_f()) return null;
+ Vd(e, t, !0);
}
- function zf() {
- Op(function() {
- ed & 6 ? Fe(Ve, Pf) : Ff();
+ function Vf() {
+ Ap(function() {
+ td & 6 ? Fe(Ve, If) : Lf();
});
}
- function Bf() {
- if (jf === 0) {
- var e = Fa;
- e === 0 && (e = tt, tt <<= 1, !(tt & 261888) && (tt = 256)), jf = e;
+ function Hf() {
+ if (Nf === 0) {
+ var e = Ia;
+ e === 0 && (e = tt, tt <<= 1, !(tt & 261888) && (tt = 256)), Nf = e;
}
- return jf;
+ return Nf;
}
- function Vf(e) {
+ function Uf(e) {
return e == null || typeof e == "symbol" || typeof e == "boolean" ? null : typeof e == "function" ? e : mn(e);
}
- function Hf(e, t, n, r, i) {
+ function Wf(e, t, n, r, i) {
if (t === "submit" && n && n.stateNode === i) {
- var a = Vf((i[St] || null).action), o = r.submitter;
- o && (t = (t = o[St] || null) ? Vf(t.formAction) : o.getAttribute("formAction"), t !== null && (a = t, o = null));
+ var a = Uf((i[St] || null).action), o = r.submitter;
+ o && (t = (t = o[St] || null) ? Uf(t.formAction) : o.getAttribute("formAction"), t !== null && (a = t, o = null));
var s = new In("action", "action", null, r, i);
e.push({
event: s,
@@ -16215,16 +16215,16 @@ var Sf = /* @__PURE__ */ h(((e) => {
instance: null,
listener: function() {
if (r.defaultPrevented) {
- if (jf !== 0) {
+ if (Nf !== 0) {
var e = new FormData(i, o);
- Qs(n, {
+ $s(n, {
pending: !0,
data: e,
method: i.method,
action: a
}, null, e);
}
- } else typeof a == "function" && (s.preventDefault(), e = new FormData(i, o), Qs(n, {
+ } else typeof a == "function" && (s.preventDefault(), e = new FormData(i, o), $s(n, {
pending: !0,
data: e,
method: i.method,
@@ -16236,18 +16236,18 @@ var Sf = /* @__PURE__ */ h(((e) => {
});
}
}
- for (var Uf = 0; Uf < di.length; Uf++) {
- var Wf = di[Uf];
- fi(Wf.toLowerCase(), "on" + (Wf[0].toUpperCase() + Wf.slice(1)));
+ for (var Gf = 0; Gf < di.length; Gf++) {
+ var Kf = di[Gf];
+ fi(Kf.toLowerCase(), "on" + (Kf[0].toUpperCase() + Kf.slice(1)));
}
- fi(ri, "onAnimationEnd"), fi(ii, "onAnimationIteration"), fi(ai, "onAnimationStart"), fi("dblclick", "onDoubleClick"), fi("focusin", "onFocus"), fi("focusout", "onBlur"), fi(oi, "onTransitionRun"), fi(si, "onTransitionStart"), fi(ci, "onTransitionCancel"), fi(li, "onTransitionEnd"), Lt("onMouseEnter", ["mouseout", "mouseover"]), Lt("onMouseLeave", ["mouseout", "mouseover"]), Lt("onPointerEnter", ["pointerout", "pointerover"]), Lt("onPointerLeave", ["pointerout", "pointerover"]), B("onChange", "change click focusin focusout input keydown keyup selectionchange".split(" ")), B("onSelect", "focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")), B("onBeforeInput", [
+ fi(ri, "onAnimationEnd"), fi(ii, "onAnimationIteration"), fi(ai, "onAnimationStart"), fi("dblclick", "onDoubleClick"), fi("focusin", "onFocus"), fi("focusout", "onBlur"), fi(oi, "onTransitionRun"), fi(si, "onTransitionStart"), fi(ci, "onTransitionCancel"), fi(li, "onTransitionEnd"), B("onMouseEnter", ["mouseout", "mouseover"]), B("onMouseLeave", ["mouseout", "mouseover"]), B("onPointerEnter", ["pointerout", "pointerover"]), B("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"
- ]), B("onCompositionEnd", "compositionend focusout keydown keypress keyup mousedown".split(" ")), B("onCompositionStart", "compositionstart focusout keydown keypress keyup mousedown".split(" ")), B("onCompositionUpdate", "compositionupdate focusout keydown keypress keyup mousedown".split(" "));
- var Gf = "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(" "), Kf = new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Gf));
- function qf(e, t) {
+ ]), 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 qf = "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(" "), Jf = new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(qf));
+ function Yf(e, t) {
t = !!(t & 4);
for (var n = 0; n < e.length; n++) {
var r = e[n], i = r.event;
@@ -16278,27 +16278,27 @@ var Sf = /* @__PURE__ */ h(((e) => {
}
}
}
- function Jf(e, t) {
+ function Xf(e, t) {
var n = t[wt];
n === void 0 && (n = t[wt] = /* @__PURE__ */ new Set());
var r = e + "__bubble";
- n.has(r) || (Qf(t, e, 2, !1), n.add(r));
+ n.has(r) || (ep(t, e, 2, !1), n.add(r));
}
- function Yf(e, t, n) {
+ function Zf(e, t, n) {
var r = 0;
- t && (r |= 4), Qf(n, e, r, t);
+ t && (r |= 4), ep(n, e, r, t);
}
- var Xf = "_reactListening" + Math.random().toString(36).slice(2);
- function Zf(e) {
- if (!e[Xf]) {
- e[Xf] = !0, z.forEach(function(t) {
- t !== "selectionchange" && (Kf.has(t) || Yf(t, !1, e), Yf(t, !0, e));
+ var Qf = "_reactListening" + Math.random().toString(36).slice(2);
+ function $f(e) {
+ if (!e[Qf]) {
+ e[Qf] = !0, It.forEach(function(t) {
+ t !== "selectionchange" && (Jf.has(t) || Zf(t, !1, e), Zf(t, !0, e));
});
var t = e.nodeType === 9 ? e : e.ownerDocument;
- t === null || t[Xf] || (t[Xf] = !0, Yf("selectionchange", !1, t));
+ t === null || t[Qf] || (t[Qf] = !0, Zf("selectionchange", !1, t));
}
}
- function Qf(e, t, n, r) {
+ function ep(e, t, n, r) {
switch (Oh(t)) {
case 2:
var i = Sh;
@@ -16313,7 +16313,7 @@ var Sf = /* @__PURE__ */ h(((e) => {
passive: i
}) : i === void 0 ? e.addEventListener(t, n, !1) : e.addEventListener(t, n, { passive: i });
}
- function $f(e, t, n, r, i) {
+ function tp(e, t, n, r, i) {
var a = r;
if (!(t & 1) && !(t & 2) && r !== null) a: for (;;) {
if (r === null) return;
@@ -16426,7 +16426,7 @@ var Sf = /* @__PURE__ */ h(((e) => {
d = [];
for (var m = r, h; m !== null;) {
var g = m;
- if (h = g.stateNode, g = g.tag, g !== 5 && g !== 26 && g !== 27 || h === null || p === null || (g = Cn(m, p), g != null && d.push(ep(m, g, h))), f) break;
+ if (h = g.stateNode, g = g.tag, g !== 5 && g !== 26 && g !== 27 || h === null || p === null || (g = Cn(m, p), g != null && d.push(np(m, g, h))), f) break;
m = m.return;
}
0 < d.length && (c = new l(c, u, null, n, i), s.push({
@@ -16438,7 +16438,7 @@ var Sf = /* @__PURE__ */ h(((e) => {
if (!(t & 7)) {
a: {
if (l = e === "mouseover" || e === "pointerover", c = e === "mouseout" || e === "pointerout", l && n !== gn && (u = n.relatedTarget || n.fromElement) && (At(u) || u[Ct])) 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 = Un, g = "onMouseLeave", p = "onMouseEnter", m = "mouse", (e === "pointerout" || e === "pointerover") && (d = tr, g = "onPointerLeave", p = "onPointerEnter", m = "pointer"), f = c == null ? u : Mt(c), h = l == null ? u : Mt(l), u = new d(g, m + "leave", c, n, i), u.target = f, u.relatedTarget = h, g = null, At(i) === r && (d = new d(p, m + "enter", l, n, i), d.target = h, d.relatedTarget = f, g = d), f = g, d = c && l ? w(c, l, np) : null, c !== null && rp(s, u, c, d, !1), l !== null && f !== null && rp(s, f, l, d, !0)));
+ (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 = Un, g = "onMouseLeave", p = "onMouseEnter", m = "mouse", (e === "pointerout" || e === "pointerover") && (d = tr, g = "onPointerLeave", p = "onPointerEnter", m = "pointer"), f = c == null ? u : Mt(c), h = l == null ? u : Mt(l), u = new d(g, m + "leave", c, n, i), u.target = f, u.relatedTarget = h, g = null, At(i) === r && (d = new d(p, m + "enter", l, n, i), d.target = h, d.relatedTarget = f, g = d), f = g, d = c && l ? w(c, l, ip) : null, c !== null && ap(s, u, c, d, !1), l !== null && f !== null && ap(s, f, l, d, !0)));
}
a: {
if (c = r ? Mt(r) : window, l = c.nodeName && c.nodeName.toLowerCase(), l === "select" || l === "input" && c.type === "file") var _ = Tr;
@@ -16457,10 +16457,10 @@ var Sf = /* @__PURE__ */ h(((e) => {
}
switch (v = r ? Mt(r) : window, e) {
case "focusin":
- (br(v) || v.contentEditable === "true") && (Kr = v, qr = r, Yr = null);
+ (br(v) || v.contentEditable === "true") && (Kr = v, qr = r, Jr = null);
break;
case "focusout":
- Yr = qr = Kr = null;
+ Jr = qr = Kr = null;
break;
case "mousedown":
Xr = !0;
@@ -16490,58 +16490,58 @@ var Sf = /* @__PURE__ */ h(((e) => {
b = void 0;
}
else gr ? mr(e, n) && (b = "onCompositionEnd") : e === "keydown" && n.keyCode === 229 && (b = "onCompositionStart");
- b && (dr && n.locale !== "ko" && (gr || b !== "onCompositionStart" ? b === "onCompositionEnd" && gr && (y = An()) : (Dn = i, On = "value" in Dn ? Dn.value : Dn.textContent, gr = !0)), v = tp(r, b), 0 < v.length && (b = new Jn(b, e, null, n, i), s.push({
+ b && (dr && n.locale !== "ko" && (gr || b !== "onCompositionStart" ? b === "onCompositionEnd" && gr && (y = An()) : (Dn = i, On = "value" in Dn ? Dn.value : Dn.textContent, gr = !0)), v = rp(r, b), 0 < v.length && (b = new Jn(b, e, null, n, i), s.push({
event: b,
listeners: v
- }), y ? b.data = y : (y = hr(n), y !== null && (b.data = y)))), (y = ur ? _r(e, n) : vr(e, n)) && (b = tp(r, "onBeforeInput"), 0 < b.length && (v = new Jn("onBeforeInput", "beforeinput", null, n, i), s.push({
+ }), y ? b.data = y : (y = hr(n), y !== null && (b.data = y)))), (y = ur ? _r(e, n) : vr(e, n)) && (b = rp(r, "onBeforeInput"), 0 < b.length && (v = new Jn("onBeforeInput", "beforeinput", null, n, i), s.push({
event: v,
listeners: b
- }), v.data = y)), Hf(s, e, r, n, i);
+ }), v.data = y)), Wf(s, e, r, n, i);
}
- qf(s, t);
+ Yf(s, t);
});
}
- function ep(e, t, n) {
+ function np(e, t, n) {
return {
instance: e,
listener: t,
currentTarget: n
};
}
- function tp(e, t) {
+ function rp(e, t) {
for (var n = t + "Capture", r = []; e !== null;) {
var i = e, a = i.stateNode;
- if (i = i.tag, i !== 5 && i !== 26 && i !== 27 || a === null || (i = Cn(e, n), i != null && r.unshift(ep(e, i, a)), i = Cn(e, t), i != null && r.push(ep(e, i, a))), e.tag === 3) return r;
+ if (i = i.tag, i !== 5 && i !== 26 && i !== 27 || a === null || (i = Cn(e, n), i != null && r.unshift(np(e, i, a)), i = Cn(e, t), i != null && r.push(np(e, i, a))), e.tag === 3) return r;
e = e.return;
}
return [];
}
- function np(e) {
+ function ip(e) {
if (e === null) return null;
do
e = e.return;
while (e && e.tag !== 5 && e.tag !== 27);
return e || null;
}
- function rp(e, t, n, r, i) {
+ function ap(e, t, n, r, i) {
for (var a = t._reactName, o = []; n !== null && n !== r;) {
var s = n, c = s.alternate, l = s.stateNode;
if (s = s.tag, c !== null && c === r) break;
- s !== 5 && s !== 26 && s !== 27 || l === null || (c = l, i ? (l = Cn(n, a), l != null && o.unshift(ep(n, l, c))) : i || (l = Cn(n, a), l != null && o.push(ep(n, l, c)))), n = n.return;
+ s !== 5 && s !== 26 && s !== 27 || l === null || (c = l, i ? (l = Cn(n, a), l != null && o.unshift(np(n, l, c))) : i || (l = Cn(n, a), l != null && o.push(np(n, l, c)))), n = n.return;
}
o.length !== 0 && e.push({
event: t,
listeners: o
});
}
- var ip = /\r\n?/g, ap = /\u0000|\uFFFD/g;
- function op(e) {
- return (typeof e == "string" ? e : "" + e).replace(ip, "\n").replace(ap, "");
+ var op = /\r\n?/g, sp = /\u0000|\uFFFD/g;
+ function cp(e) {
+ return (typeof e == "string" ? e : "" + e).replace(op, "\n").replace(sp, "");
}
- function sp(e, t) {
- return t = op(t), op(e) === t;
+ function lp(e, t) {
+ return t = cp(t), cp(e) === t;
}
- function cp(e, t, n, r, a, o) {
+ function up(e, t, n, r, a, o) {
switch (n) {
case "children":
if (typeof r == "string") t === "body" || t === "textarea" && r === "" || sn(e, r);
@@ -16586,7 +16586,7 @@ var Sf = /* @__PURE__ */ h(((e) => {
e.setAttribute(n, "javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");
break;
}
- if (typeof o == "function" && (n === "formAction" ? (t !== "input" && cp(e, t, "name", a.name, a, null), cp(e, t, "formEncType", a.formEncType, a, null), cp(e, t, "formMethod", a.formMethod, a, null), cp(e, t, "formTarget", a.formTarget, a, null)) : (cp(e, t, "encType", a.encType, a, null), cp(e, t, "method", a.method, a, null), cp(e, t, "target", a.target, a, null))), r == null || typeof r == "symbol" || typeof r == "boolean") {
+ if (typeof o == "function" && (n === "formAction" ? (t !== "input" && up(e, t, "name", a.name, a, null), up(e, t, "formEncType", a.formEncType, a, null), up(e, t, "formMethod", a.formMethod, a, null), up(e, t, "formTarget", a.formTarget, a, null)) : (up(e, t, "encType", a.encType, a, null), up(e, t, "method", a.method, a, null), up(e, t, "target", a.target, a, null))), r == null || typeof r == "symbol" || typeof r == "boolean") {
e.removeAttribute(n);
break;
}
@@ -16596,10 +16596,10 @@ var Sf = /* @__PURE__ */ h(((e) => {
r != null && (e.onclick = hn);
return;
case "onScroll":
- r != null && Jf("scroll", e);
+ r != null && Xf("scroll", e);
return;
case "onScrollEnd":
- r != null && Jf("scrollend", e);
+ r != null && Xf("scrollend", e);
return;
case "dangerouslySetInnerHTML":
if (r != null) {
@@ -16681,7 +16681,7 @@ var Sf = /* @__PURE__ */ h(((e) => {
r == null || typeof r == "function" || typeof r == "symbol" || isNaN(r) ? e.removeAttribute(n) : e.setAttribute(n, r);
break;
case "popover":
- Jf("beforetoggle", e), Jf("toggle", e), Wt(e, "popover", r);
+ Xf("beforetoggle", e), Xf("toggle", e), Wt(e, "popover", r);
break;
case "xlinkActuate":
Kt(e, "http://www.w3.org/1999/xlink", "xlink:actuate", r);
@@ -16720,7 +16720,7 @@ var Sf = /* @__PURE__ */ h(((e) => {
}
Ht = !0;
}
- function lp(e, t, n, r, a, o) {
+ function dp(e, t, n, r, a, o) {
switch (n) {
case "style":
un(e, r, o);
@@ -16740,10 +16740,10 @@ var Sf = /* @__PURE__ */ h(((e) => {
else return;
break;
case "onScroll":
- r != null && Jf("scroll", e);
+ r != null && Xf("scroll", e);
return;
case "onScrollEnd":
- r != null && Jf("scrollend", e);
+ r != null && Xf("scrollend", e);
return;
case "onClick":
r != null && (e.onclick = hn);
@@ -16755,7 +16755,7 @@ var Sf = /* @__PURE__ */ h(((e) => {
case "innerText":
case "textContent": return;
default:
- if (!It.hasOwnProperty(n)) a: {
+ if (!z.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[St] || 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;
@@ -16766,7 +16766,7 @@ var Sf = /* @__PURE__ */ h(((e) => {
}
Ht = !0;
}
- function up(e, t, n) {
+ function fp(e, t, n) {
switch (t) {
case "div":
case "span":
@@ -16777,7 +16777,7 @@ var Sf = /* @__PURE__ */ h(((e) => {
case "p":
case "li": break;
case "img":
- Jf("error", e), Jf("load", e);
+ Xf("error", e), Xf("load", e);
var r = !1, a = !1, o;
for (o in n) if (n.hasOwnProperty(o)) {
var s = n[o];
@@ -16790,13 +16790,13 @@ var Sf = /* @__PURE__ */ h(((e) => {
break;
case "children":
case "dangerouslySetInnerHTML": throw Error(i(137, t));
- default: cp(e, t, o, s, n, null);
+ default: up(e, t, o, s, n, null);
}
}
- a && cp(e, t, "srcSet", n.srcSet, n, null), r && cp(e, t, "src", n.src, n, null);
+ a && up(e, t, "srcSet", n.srcSet, n, null), r && up(e, t, "src", n.src, n, null);
return;
case "input":
- Jf("invalid", e);
+ Xf("invalid", e);
var c = o = s = a = null, l = null, u = null;
for (r in n) if (n.hasOwnProperty(r)) {
var d = n[r];
@@ -16823,13 +16823,13 @@ var Sf = /* @__PURE__ */ h(((e) => {
case "dangerouslySetInnerHTML":
if (d != null) throw Error(i(137, t));
break;
- default: cp(e, t, r, d, n, null);
+ default: up(e, t, r, d, n, null);
}
}
tn(e, o, c, l, u, s, a, !1);
return;
case "select":
- for (a in Jf("invalid", e), r = s = o = null, n) if (n.hasOwnProperty(a) && (c = n[a], c != null)) switch (a) {
+ for (a in Xf("invalid", e), r = s = o = null, n) if (n.hasOwnProperty(a) && (c = n[a], c != null)) switch (a) {
case "value":
o = c;
break;
@@ -16837,12 +16837,12 @@ var Sf = /* @__PURE__ */ h(((e) => {
s = c;
break;
case "multiple": r = c;
- default: cp(e, t, a, c, n, null);
+ default: up(e, t, a, c, n, null);
}
t = o, n = s, e.multiple = !!r, t == null ? n != null && rn(e, !!r, n, !0) : rn(e, !!r, t, !1);
return;
case "textarea":
- for (s in Jf("invalid", e), o = a = r = null, n) if (n.hasOwnProperty(s) && (c = n[s], c != null)) switch (s) {
+ for (s in Xf("invalid", e), o = a = r = null, n) if (n.hasOwnProperty(s) && (c = n[s], c != null)) switch (s) {
case "value":
r = c;
break;
@@ -16855,7 +16855,7 @@ var Sf = /* @__PURE__ */ h(((e) => {
case "dangerouslySetInnerHTML":
if (c != null) throw Error(i(91));
break;
- default: cp(e, t, s, c, n, null);
+ default: up(e, t, s, c, n, null);
}
on(e, r, a, o);
return;
@@ -16864,29 +16864,29 @@ var Sf = /* @__PURE__ */ h(((e) => {
case "selected":
e.selected = r && typeof r != "function" && typeof r != "symbol";
break;
- default: cp(e, t, l, r, n, null);
+ default: up(e, t, l, r, n, null);
}
return;
case "dialog":
- Jf("beforetoggle", e), Jf("toggle", e), Jf("cancel", e), Jf("close", e);
+ Xf("beforetoggle", e), Xf("toggle", e), Xf("cancel", e), Xf("close", e);
break;
case "iframe":
case "object":
- Jf("load", e);
+ Xf("load", e);
break;
case "video":
case "audio":
- for (r = 0; r < Gf.length; r++) Jf(Gf[r], e);
+ for (r = 0; r < qf.length; r++) Xf(qf[r], e);
break;
case "image":
- Jf("error", e), Jf("load", e);
+ Xf("error", e), Xf("load", e);
break;
case "details":
- Jf("toggle", e);
+ Xf("toggle", e);
break;
case "embed":
case "source":
- case "link": Jf("error", e), Jf("load", e);
+ case "link": Xf("error", e), Xf("load", e);
case "area":
case "base":
case "br":
@@ -16901,18 +16901,18 @@ var Sf = /* @__PURE__ */ h(((e) => {
for (u in n) if (n.hasOwnProperty(u) && (r = n[u], r != null)) switch (u) {
case "children":
case "dangerouslySetInnerHTML": throw Error(i(137, t));
- default: cp(e, t, u, r, n, null);
+ default: up(e, t, u, r, n, null);
}
return;
default: if (dn(t)) {
- for (d in n) n.hasOwnProperty(d) && (r = n[d], r !== void 0 && lp(e, t, d, r, n, void 0));
+ for (d in n) n.hasOwnProperty(d) && (r = n[d], r !== void 0 && dp(e, t, d, r, n, void 0));
return;
}
}
- for (c in n) n.hasOwnProperty(c) && (r = n[c], r != null && cp(e, t, c, r, n, null));
+ for (c in n) n.hasOwnProperty(c) && (r = n[c], r != null && up(e, t, c, r, n, null));
}
- var dp = {};
- function fp(e, t, n, r) {
+ var pp = {};
+ function mp(e, t, n, r) {
switch (t) {
case "div":
case "span":
@@ -16930,7 +16930,7 @@ var Sf = /* @__PURE__ */ h(((e) => {
case "checked": break;
case "value": break;
case "defaultValue": l = f;
- default: r.hasOwnProperty(m) || cp(e, t, m, null, r, f);
+ default: r.hasOwnProperty(m) || up(e, t, m, null, r, f);
}
}
for (var p in r) {
@@ -16958,7 +16958,7 @@ var Sf = /* @__PURE__ */ h(((e) => {
case "dangerouslySetInnerHTML":
if (m != null) throw Error(i(137, t));
break;
- default: m !== f && cp(e, t, p, m, r, f);
+ default: m !== f && up(e, t, p, m, r, f);
}
}
en(e, s, c, l, u, d, o, a);
@@ -16967,7 +16967,7 @@ var Sf = /* @__PURE__ */ h(((e) => {
for (o in m = s = c = p = null, n) if (l = n[o], n.hasOwnProperty(o) && l != null) switch (o) {
case "value": break;
case "multiple": m = l;
- default: r.hasOwnProperty(o) || cp(e, t, o, null, r, l);
+ default: r.hasOwnProperty(o) || up(e, t, o, null, r, l);
}
for (a in r) if (o = r[a], l = n[a], r.hasOwnProperty(a) && (o != null || l != null)) switch (a) {
case "value":
@@ -16977,7 +16977,7 @@ var Sf = /* @__PURE__ */ h(((e) => {
o !== l && (Ht = !0), c = o;
break;
case "multiple": o !== l && (Ht = !0), s = o;
- default: o !== l && cp(e, t, a, o, r, l);
+ default: o !== l && up(e, t, a, o, r, l);
}
t = c, n = s, r = m, p == null ? !!r != !!n && (t == null ? rn(e, !!n, n ? [] : "", !1) : rn(e, !!n, t, !0)) : rn(e, !!n, p, !1);
return;
@@ -16985,7 +16985,7 @@ var Sf = /* @__PURE__ */ h(((e) => {
for (c in m = p = null, n) if (a = n[c], n.hasOwnProperty(c) && a != null && !r.hasOwnProperty(c)) switch (c) {
case "value": break;
case "children": break;
- default: cp(e, t, c, null, r, a);
+ default: up(e, t, c, null, r, a);
}
for (s in r) if (a = r[s], o = n[s], r.hasOwnProperty(s) && (a != null || o != null)) switch (s) {
case "value":
@@ -16998,7 +16998,7 @@ var Sf = /* @__PURE__ */ h(((e) => {
case "dangerouslySetInnerHTML":
if (a != null) throw Error(i(91));
break;
- default: a !== o && cp(e, t, s, a, r, o);
+ default: a !== o && up(e, t, s, a, r, o);
}
an(e, p, m);
return;
@@ -17007,13 +17007,13 @@ var Sf = /* @__PURE__ */ h(((e) => {
case "selected":
e.selected = !1;
break;
- default: cp(e, t, h, null, r, p);
+ default: up(e, t, h, null, r, p);
}
for (l in r) if (p = r[l], m = n[l], r.hasOwnProperty(l) && p !== m && (p != null || m != null)) switch (l) {
case "selected":
p !== m && (Ht = !0), e.selected = p && typeof p != "function" && typeof p != "symbol";
break;
- default: cp(e, t, l, p, r, m);
+ default: up(e, t, l, p, r, m);
}
return;
case "img":
@@ -17031,25 +17031,25 @@ var Sf = /* @__PURE__ */ h(((e) => {
case "track":
case "wbr":
case "menuitem":
- for (var g in n) p = n[g], n.hasOwnProperty(g) && p != null && !r.hasOwnProperty(g) && cp(e, t, g, null, r, p);
+ for (var g in n) p = n[g], n.hasOwnProperty(g) && p != null && !r.hasOwnProperty(g) && up(e, t, g, null, r, p);
for (u in r) if (p = r[u], m = n[u], r.hasOwnProperty(u) && p !== m && (p != null || m != null)) switch (u) {
case "children":
case "dangerouslySetInnerHTML":
if (p != null) throw Error(i(137, t));
break;
- default: cp(e, t, u, p, r, m);
+ default: up(e, t, u, p, r, m);
}
return;
default: if (dn(t)) {
- for (var _ in n) p = n[_], n.hasOwnProperty(_) && p !== void 0 && !r.hasOwnProperty(_) && lp(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 || lp(e, t, d, p, r, m);
+ for (var _ in n) p = n[_], n.hasOwnProperty(_) && p !== void 0 && !r.hasOwnProperty(_) && dp(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 || dp(e, t, d, p, r, m);
return;
}
}
- for (var v in n) p = n[v], n.hasOwnProperty(v) && p != null && !r.hasOwnProperty(v) && cp(e, t, v, null, r, p);
- for (f in r) p = r[f], m = n[f], !r.hasOwnProperty(f) || p === m || p == null && m == null || cp(e, t, f, p, r, m);
+ for (var v in n) p = n[v], n.hasOwnProperty(v) && p != null && !r.hasOwnProperty(v) && up(e, t, v, null, r, p);
+ for (f in r) p = r[f], m = n[f], !r.hasOwnProperty(f) || p === m || p == null && m == null || up(e, t, f, p, r, m);
}
- function pp(e) {
+ function hp(e) {
switch (e) {
case "css":
case "script":
@@ -17061,16 +17061,16 @@ var Sf = /* @__PURE__ */ h(((e) => {
default: return !1;
}
}
- function mp() {
+ function gp() {
if (typeof performance.getEntriesByType == "function") {
for (var e = 0, t = 0, n = performance.getEntriesByType("resource"), r = 0; r < n.length; r++) {
var i = n[r], a = i.transferSize, o = i.initiatorType, s = i.duration;
- if (a && s && pp(o)) {
+ if (a && s && hp(o)) {
for (o = 0, s = i.responseEnd, r += 1; r < n.length; r++) {
var c = n[r], l = c.startTime;
if (l > s) break;
var u = c.transferSize, d = c.initiatorType;
- u && pp(d) && (c = c.responseEnd, o += u * (c < s ? 1 : (s - l) / (c - l)));
+ u && hp(d) && (c = c.responseEnd, o += u * (c < s ? 1 : (s - l) / (c - l)));
}
if (--r, t += 8 * (a + o) / (i.duration / 1e3), e++, 10 < e) break;
}
@@ -17079,18 +17079,18 @@ var Sf = /* @__PURE__ */ h(((e) => {
}
return navigator.connection && (e = navigator.connection.downlink, typeof e == "number") ? e : 5;
}
- var hp = null, gp = null;
- function _p(e) {
+ var _p = null, vp = null;
+ function yp(e) {
return e.nodeType === 9 ? e : e.ownerDocument;
}
- function vp(e) {
+ function bp(e) {
switch (e) {
case "http://www.w3.org/2000/svg": return 1;
case "http://www.w3.org/1998/Math/MathML": return 2;
default: return 0;
}
}
- function yp(e, t) {
+ function xp(e, t) {
if (e === 0) switch (t) {
case "svg": return 1;
case "math": return 2;
@@ -17098,29 +17098,29 @@ var Sf = /* @__PURE__ */ h(((e) => {
}
return e === 1 && t === "foreignObject" ? 0 : e;
}
- function bp(e, t, n, r) {
- return n = _p(n).createElement(e), n[xt] = r, n[St] = t, up(n, e, t), Pt(n), n;
+ function Sp(e, t, n, r) {
+ return n = yp(n).createElement(e), n[xt] = r, n[St] = t, fp(n, e, t), Pt(n), n;
}
- function xp(e, t) {
+ function Cp(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;
}
- var Sp = null;
- function Cp() {
+ var wp = null;
+ function Tp() {
var e = window.event;
- return e && e.type === "popstate" ? e !== Sp && (Sp = e, !0) : (Sp = null, !1);
+ return e && e.type === "popstate" ? e !== wp && (wp = e, !0) : (wp = null, !1);
}
- var wp = typeof setTimeout == "function" ? setTimeout : void 0, Tp = typeof clearTimeout == "function" ? clearTimeout : void 0, Ep = typeof Promise == "function" ? Promise : void 0, Dp = typeof requestAnimationFrame == "function" ? requestAnimationFrame : wp, Op = typeof queueMicrotask == "function" ? queueMicrotask : Ep === void 0 ? wp : function(e) {
- return Ep.resolve(null).then(e).catch(kp);
+ var Ep = typeof setTimeout == "function" ? setTimeout : void 0, Dp = typeof clearTimeout == "function" ? clearTimeout : void 0, Op = typeof Promise == "function" ? Promise : void 0, kp = typeof requestAnimationFrame == "function" ? requestAnimationFrame : Ep, Ap = typeof queueMicrotask == "function" ? queueMicrotask : Op === void 0 ? Ep : function(e) {
+ return Op.resolve(null).then(e).catch(jp);
};
- function kp(e) {
+ function jp(e) {
setTimeout(function() {
throw e;
});
}
- function Ap(e) {
+ function Mp(e) {
return e === "head";
}
- function jp(e, t) {
+ function Np(e, t) {
var n = t, r = 0;
do {
var i = n.nextSibling;
@@ -17132,20 +17132,20 @@ var Sf = /* @__PURE__ */ h(((e) => {
}
r--;
} else if (n === "$" || n === "$?" || n === "$~" || n === "$!" || n === "&") r++;
- else if (n === "html") Cm(e.ownerDocument.documentElement);
+ else if (n === "html") Tm(e.ownerDocument.documentElement);
else if (n === "head") {
- n = e.ownerDocument.head, Cm(n);
+ n = e.ownerDocument.head, Tm(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[R] || s === "SCRIPT" || s === "STYLE" || s === "LINK" && a.rel.toLowerCase() === "stylesheet" || n.removeChild(a), a = o;
}
- } else n === "body" && Cm(e.ownerDocument.body);
+ } else n === "body" && Tm(e.ownerDocument.body);
}
n = i;
} while (n);
Kh(t);
}
- function Mp(e, t) {
+ function Pp(e, t) {
var n = e;
e = 0;
do {
@@ -17159,7 +17159,7 @@ var Sf = /* @__PURE__ */ h(((e) => {
n = r;
} while (n);
}
- function Np(e, t, n) {
+ function Fp(e, t, n) {
if (t = CSS.escape(t) === t ? t : "r-" + btoa(t).replace(/=/g, ""), e.style.viewTransitionName = t, n != null && (e.style.viewTransitionClass = n), n = getComputedStyle(e), n.display === "inline") {
if (t = e.getClientRects(), t.length === 1) var r = 1;
else for (var i = r = 0; i < t.length; i++) {
@@ -17169,12 +17169,12 @@ var Sf = /* @__PURE__ */ h(((e) => {
r === 1 && (e = e.style, e.display = t.length === 1 ? "inline-block" : "block", e.marginTop = "-" + n.paddingTop, e.marginBottom = "-" + n.paddingBottom);
}
}
- function Pp(e, t) {
+ function Ip(e, t) {
e = e.style, t = t.style;
var n = t == null ? null : t.hasOwnProperty("viewTransitionName") ? t.viewTransitionName : t.hasOwnProperty("view-transition-name") ? t["view-transition-name"] : null;
e.viewTransitionName = n == null || typeof n == "boolean" ? "" : ("" + n).trim(), n = t == null ? null : t.hasOwnProperty("viewTransitionClass") ? t.viewTransitionClass : t.hasOwnProperty("view-transition-class") ? t["view-transition-class"] : null, e.viewTransitionClass = n == null || typeof n == "boolean" ? "" : ("" + n).trim(), e.display === "inline-block" && (t == null ? e.display = e.margin = "" : (n = t.display, e.display = n == null || typeof n == "boolean" ? "" : n, n = t.margin, n == null ? (n = t.hasOwnProperty("marginTop") ? t.marginTop : t["margin-top"], e.marginTop = n == null || typeof n == "boolean" ? "" : n, t = t.hasOwnProperty("marginBottom") ? t.marginBottom : t["margin-bottom"], e.marginBottom = t == null || typeof t == "boolean" ? "" : t) : e.margin = n));
}
- function Fp(e, t, n) {
+ function Lp(e, t, n) {
return n = n.ownerDocument.defaultView, {
rect: e,
abs: t.position === "absolute" || t.position === "fixed",
@@ -17182,22 +17182,22 @@ var Sf = /* @__PURE__ */ h(((e) => {
view: 0 <= e.bottom && 0 <= e.right && e.top <= n.innerHeight && e.left <= n.innerWidth
};
}
- function Ip(e) {
- return Fp(e.getBoundingClientRect(), getComputedStyle(e), e);
+ function Rp(e) {
+ return Lp(e.getBoundingClientRect(), getComputedStyle(e), e);
}
- function Lp(e) {
+ function zp(e) {
var t = e.getBoundingClientRect();
t = new DOMRect(t.x + 2e4, t.y + 2e4, t.width, t.height);
var n = getComputedStyle(e);
- return Fp(t, n, e);
+ return Lp(t, n, e);
}
- function Rp(e) {
+ function Bp(e) {
return e.documentElement.clientHeight;
}
- function zp(e) {
+ function Vp(e) {
this.addEventListener("load", e), this.addEventListener("error", e);
}
- function Bp(e, t, n, r, i, a, o, s, c) {
+ function Hp(e, t, n, r, i, a, o, s, c) {
var l = t.nodeType === 9 ? t : t.ownerDocument;
try {
var u = l.startViewTransition({
@@ -17205,16 +17205,16 @@ var Sf = /* @__PURE__ */ h(((e) => {
var t = l.defaultView, n = t.navigation && t.navigation.transition, o = l.fonts.status;
r();
var s = [];
- if (o === "loaded" && (Rp(l), l.fonts.status === "loading" && s.push(l.fonts.ready)), o = s.length, e !== null) for (var c = e.suspenseyImages, u = 0, d = 0; d < c.length; d++) {
+ if (o === "loaded" && (Bp(l), l.fonts.status === "loading" && s.push(l.fonts.ready)), o = s.length, e !== null) for (var c = e.suspenseyImages, u = 0, d = 0; d < c.length; d++) {
var f = c[d];
if (!f.complete) {
var p = f.getBoundingClientRect();
if (0 < p.bottom && 0 < p.right && p.top < t.innerHeight && p.left < t.innerWidth) {
- if (u += th(f), u > ih) {
+ if (u += nh(f), u > ah) {
s.length = o;
break;
}
- f = new Promise(zp.bind(f)), s.push(f);
+ f = new Promise(Vp.bind(f)), s.push(f);
}
}
}
@@ -17269,86 +17269,86 @@ var Sf = /* @__PURE__ */ h(((e) => {
return r(), i(), o(), null;
}
}
- function Vp(e, t) {
+ function Up(e, t) {
this._scope = document.documentElement, this._selector = "::view-transition-" + e + "(" + t + ")";
}
- Vp.prototype.animate = function(e, t) {
+ Up.prototype.animate = function(e, t) {
return t = typeof t == "number" ? { duration: t } : T({}, t), t.pseudoElement = this._selector, this._scope.animate(e, t);
- }, Vp.prototype.getAnimations = function() {
+ }, Up.prototype.getAnimations = function() {
for (var e = this._scope, t = this._selector, n = e.getAnimations({ subtree: !0 }), r = [], i = 0; i < n.length; i++) {
var a = n[i].effect;
a !== null && a.target === e && a.pseudoElement === t && r.push(n[i]);
}
return r;
- }, Vp.prototype.getComputedStyle = function() {
+ }, Up.prototype.getComputedStyle = function() {
return getComputedStyle(this._scope, this._selector);
};
- function Hp(e) {
+ function Wp(e) {
return {
name: e,
- group: new Vp("group", e),
- imagePair: new Vp("image-pair", e),
- old: new Vp("old", e),
- new: new Vp("new", e)
+ group: new Up("group", e),
+ imagePair: new Up("image-pair", e),
+ old: new Up("old", e),
+ new: new Up("new", e)
};
}
- function Up(e) {
+ function Gp(e) {
this._fragmentFiber = e, this._observers = this._eventListeners = null;
}
- Up.prototype.addEventListener = function(e, t, n) {
+ Gp.prototype.addEventListener = function(e, t, n) {
var r = null, i = null;
if (!(n != null && typeof n != "boolean" && (r = n.signal || null, r !== null && r.aborted))) {
this._eventListeners === null && (this._eventListeners = []);
var a = this._eventListeners;
- if (Jp(a, e, t, n) === -1) {
+ if (Xp(a, e, t, n) === -1) {
var o = this, s = t;
n != null && typeof n != "boolean" && !0 === n.once && (s = function(r) {
o.removeEventListener(e, t, n), typeof t == "function" ? t.call(this, r) : t.handleEvent(r);
- }), r !== null && (i = o.removeEventListener.bind(o, e, t, n), r.addEventListener("abort", i, { once: !0 }), i = r.removeEventListener.bind(r, "abort", i)), r = Kp(n), a.push({
+ }), r !== null && (i = o.removeEventListener.bind(o, e, t, n), r.addEventListener("abort", i, { once: !0 }), i = r.removeEventListener.bind(r, "abort", i)), r = Jp(n), a.push({
type: e,
listener: t,
optionsOrUseCapture: n,
attachedListener: s,
cleanup: i
- }), f(this._fragmentFiber.child, !1, Wp, e, s, r);
+ }), f(this._fragmentFiber.child, !1, Kp, e, s, r);
}
this._eventListeners = a;
}
};
- function Wp(e, t, n, r) {
+ function Kp(e, t, n, r) {
return _(e).addEventListener(t, n, r), !1;
}
- Up.prototype.removeEventListener = function(e, t, n) {
+ Gp.prototype.removeEventListener = function(e, t, n) {
var r = this._eventListeners;
- if (r !== null && (t = Jp(r, e, t, n), t !== -1)) {
+ if (r !== null && (t = Xp(r, e, t, n), t !== -1)) {
var i = r[t];
n = i.attachedListener;
var a = i.cleanup;
- i = Kp(i.optionsOrUseCapture), f(this._fragmentFiber.child, !1, Gp, e, n, i), r.splice(t, 1), a !== null && a();
+ i = Jp(i.optionsOrUseCapture), f(this._fragmentFiber.child, !1, qp, e, n, i), r.splice(t, 1), a !== null && a();
}
};
- function Gp(e, t, n, r) {
+ function qp(e, t, n, r) {
return _(e).removeEventListener(t, n, r), !1;
}
- function Kp(e) {
+ function Jp(e) {
return e != null && typeof e != "boolean" && (!0 === e.once || e.signal instanceof AbortSignal) ? {
capture: e.capture,
passive: e.passive
} : e;
}
- function qp(e) {
+ function Yp(e) {
return e == null ? "c=0" : typeof e == "boolean" ? "c=" + (e ? "1" : "0") : "c=" + (e.capture ? "1" : "0");
}
- function Jp(e, t, n, r) {
+ function Xp(e, t, n, r) {
if (e.length === 0) return -1;
- r = qp(r);
+ r = Yp(r);
for (var i = 0; i < e.length; i++) {
var a = e[i];
- if (a.type === t && a.listener === n && qp(a.optionsOrUseCapture) === r) return i;
+ if (a.type === t && a.listener === n && Yp(a.optionsOrUseCapture) === r) return i;
}
return -1;
}
- Up.prototype.dispatchEvent = function(e) {
+ Gp.prototype.dispatchEvent = function(e) {
var t = p(this._fragmentFiber);
if (t === null) return !0;
t = _(t);
@@ -17357,74 +17357,74 @@ var Sf = /* @__PURE__ */ h(((e) => {
var r = t.nodeType === 9 ? t.createComment("") : document.createTextNode("");
if (n) for (var i = 0; i < n.length; i++) {
var a = n[i];
- r.addEventListener(a.type, a.attachedListener, Kp(a.optionsOrUseCapture));
+ r.addEventListener(a.type, a.attachedListener, Jp(a.optionsOrUseCapture));
}
- if (t.appendChild(r), e = r.dispatchEvent(e), n) for (i = 0; i < n.length; i++) a = n[i], r.removeEventListener(a.type, a.attachedListener, Kp(a.optionsOrUseCapture));
+ if (t.appendChild(r), e = r.dispatchEvent(e), n) for (i = 0; i < n.length; i++) a = n[i], r.removeEventListener(a.type, a.attachedListener, Jp(a.optionsOrUseCapture));
return t.removeChild(r), e;
}
return t.dispatchEvent(e);
- }, Up.prototype.focus = function(e) {
- f(this._fragmentFiber.child, !0, Yp, e, void 0, void 0);
+ }, Gp.prototype.focus = function(e) {
+ f(this._fragmentFiber.child, !0, Zp, e, void 0, void 0);
};
- function Yp(e, t) {
- return e.tag !== 6 && (e = _(e), ym(e, t));
+ function Zp(e, t) {
+ return e.tag !== 6 && (e = _(e), xm(e, t));
}
- Up.prototype.focusLast = function(e) {
+ Gp.prototype.focusLast = function(e) {
var t = [];
- f(this._fragmentFiber.child, !0, Xp, t, void 0, void 0);
- for (var n = t.length - 1; 0 <= n && !Yp(t[n], e); n--);
+ f(this._fragmentFiber.child, !0, Qp, t, void 0, void 0);
+ for (var n = t.length - 1; 0 <= n && !Zp(t[n], e); n--);
};
- function Xp(e, t) {
+ function Qp(e, t) {
return t.push(e), !1;
}
- Up.prototype.blur = function() {
+ Gp.prototype.blur = function() {
var e = p(this._fragmentFiber);
- e !== null && (e = _(e), e = _p(e).activeElement, e !== null && f(this._fragmentFiber.child, !1, Zp, e, void 0, void 0));
+ e !== null && (e = _(e), e = yp(e).activeElement, e !== null && f(this._fragmentFiber.child, !1, $p, e, void 0, void 0));
};
- function Zp(e, t) {
+ function $p(e, t) {
return e.tag !== 6 && (e = _(e), e === t || e.contains(t) ? (t.blur(), !0) : !1);
}
- Up.prototype.observeUsing = function(e) {
- this._observers === null && (this._observers = /* @__PURE__ */ new Set()), this._observers.add(e), f(this._fragmentFiber.child, !1, Qp, e, void 0, void 0);
+ Gp.prototype.observeUsing = function(e) {
+ this._observers === null && (this._observers = /* @__PURE__ */ new Set()), this._observers.add(e), f(this._fragmentFiber.child, !1, em, e, void 0, void 0);
};
- function Qp(e, t) {
+ function em(e, t) {
return e.tag !== 6 && (e = _(e), t.observe(e), !1);
}
- Up.prototype.unobserveUsing = function(e) {
+ Gp.prototype.unobserveUsing = function(e) {
var t = this._observers;
if (t !== null && t.has(e)) {
- t.delete(e), f(this._fragmentFiber.child, !1, $p, e, void 0, void 0);
- for (var n = t = 0; n < em.length; n++) {
- var r = em[n];
- r.fragmentInstance === this && r.observer === e ? e.unobserve(r.instance) : em[t++] = r;
+ t.delete(e), f(this._fragmentFiber.child, !1, tm, e, void 0, void 0);
+ for (var n = t = 0; n < nm.length; n++) {
+ var r = nm[n];
+ r.fragmentInstance === this && r.observer === e ? e.unobserve(r.instance) : nm[t++] = r;
}
- em.length = t;
+ nm.length = t;
}
};
- function $p(e, t) {
+ function tm(e, t) {
return e.tag !== 6 && (e = _(e), t.unobserve(e), !1);
}
- var em = [], tm = !1;
- function nm(e, t, n) {
- em.push({
+ var nm = [], rm = !1;
+ function im(e, t, n) {
+ nm.push({
fragmentInstance: e,
observer: t,
instance: n
- }), tm || (tm = !0, bm(function() {
- tm = !1;
- var e = em;
- em = [];
+ }), rm || (rm = !0, Sm(function() {
+ rm = !1;
+ var e = nm;
+ nm = [];
for (var t = 0; t < e.length; t++) {
var n = e[t];
n.observer.unobserve(n.instance);
}
}));
}
- Up.prototype.getClientRects = function() {
+ Gp.prototype.getClientRects = function() {
var e = [];
- return f(this._fragmentFiber.child, !1, rm, e, void 0, void 0), e;
+ return f(this._fragmentFiber.child, !1, am, e, void 0, void 0), e;
};
- function rm(e, t) {
+ function am(e, t) {
if (e.tag === 6) {
e = e.stateNode;
var n = e.ownerDocument.createRange();
@@ -17432,14 +17432,14 @@ var Sf = /* @__PURE__ */ h(((e) => {
} else e = _(e), t.push.apply(t, e.getClientRects());
return !1;
}
- Up.prototype.getRootNode = function(e) {
+ Gp.prototype.getRootNode = function(e) {
var t = p(this._fragmentFiber);
return t === null ? this : _(t).getRootNode(e);
- }, Up.prototype.compareDocumentPosition = function(e) {
+ }, Gp.prototype.compareDocumentPosition = function(e) {
var t = p(this._fragmentFiber);
if (t === null) return Node.DOCUMENT_POSITION_DISCONNECTED;
var n = [];
- f(this._fragmentFiber.child, !1, Xp, n, void 0, void 0);
+ f(this._fragmentFiber.child, !1, Qp, n, void 0, void 0);
var r = _(t);
if (n.length === 0) {
if (n = r, m(this._fragmentFiber)) {
@@ -17465,9 +17465,9 @@ var Sf = /* @__PURE__ */ h(((e) => {
if (a == null) return Node.DOCUMENT_POSITION_DISCONNECTED;
r = a.compareDocumentPosition(t) & Node.DOCUMENT_POSITION_CONTAINED_BY, a = a.compareDocumentPosition(i) & Node.DOCUMENT_POSITION_CONTAINED_BY;
var o = t.compareDocumentPosition(e), s = i.compareDocumentPosition(e), c = o & Node.DOCUMENT_POSITION_CONTAINED_BY || s & Node.DOCUMENT_POSITION_CONTAINED_BY;
- return s = r && a && o & Node.DOCUMENT_POSITION_FOLLOWING && s & Node.DOCUMENT_POSITION_PRECEDING, t = r && t === e || a && i === e || c || s ? Node.DOCUMENT_POSITION_CONTAINED_BY : !r && t === e || !a && i === e ? Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC : o, t & Node.DOCUMENT_POSITION_DISCONNECTED || t & Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC || im(t, this._fragmentFiber, n[0], n[n.length - 1], e) ? t : Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC;
+ 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 || om(t, this._fragmentFiber, n[0], n[n.length - 1], e) ? t : Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC;
};
- function im(e, t, n, r, i) {
+ function om(e, t, n, r, i) {
var a = At(i);
if (e & Node.DOCUMENT_POSITION_CONTAINED_BY) {
if (n = !!a) a: {
@@ -17496,22 +17496,22 @@ var Sf = /* @__PURE__ */ h(((e) => {
}
return a;
}
- return e & Node.DOCUMENT_POSITION_PRECEDING ? ((t = !!a) && !(t = a === n) && (t = w(n, a, C), t === null ? t = !1 : (f(t, !0, x, a, n), a = v, v = null, t = a !== null)), t) : e & Node.DOCUMENT_POSITION_FOLLOWING ? ((t = !!a) && !(t = a === r) && (t = w(r, a, C), t === null ? t = !1 : (f(t, !0, S, a, r), a = v, b = v = null, t = a !== null)), t) : !1;
+ return e & Node.DOCUMENT_POSITION_PRECEDING ? ((t = !!a) && !(t = a === n) && (t = w(n, a, C), t === null ? t = !1 : (f(t, !0, x, a, n), a = v, v = null, t = a !== null)), t) : e & Node.DOCUMENT_POSITION_FOLLOWING ? ((t = !!a) && !(t = a === r) && (t = w(r, a, C), t === null ? t = !1 : (f(t, !0, S, a, r), a = v, y = v = null, t = a !== null)), t) : !1;
}
- function am(e, t) {
+ function sm(e, t) {
var n = e.ownerDocument.createRange();
n.selectNodeContents(e), e = n.getBoundingClientRect(), window.scrollTo(window.scrollX + e.left, t ? window.scrollY + e.top : window.scrollY + e.bottom - window.innerHeight);
}
- Up.prototype.scrollIntoView = function(e) {
+ Gp.prototype.scrollIntoView = function(e) {
if (typeof e == "object") throw Error(i(566));
var t = [];
- f(this._fragmentFiber.child, !1, Xp, t, void 0, void 0);
+ f(this._fragmentFiber.child, !1, Qp, t, void 0, void 0);
var n = !1 !== e;
if (t.length === 0) {
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 = _(r), am(e, n);
+ e = _(r), sm(e, n);
return;
}
if (r = _(r), r.nodeType !== 9) {
@@ -17524,40 +17524,40 @@ var Sf = /* @__PURE__ */ h(((e) => {
}
for (r = n ? t.length - 1 : 0; r !== (n ? -1 : t.length);) {
var a = t[r];
- a.tag === 6 ? (a = _(a), am(a, n)) : _(a).scrollIntoView(e), r += n ? -1 : 1;
+ a.tag === 6 ? (a = _(a), sm(a, n)) : _(a).scrollIntoView(e), r += n ? -1 : 1;
}
};
- function om(e, t) {
- return e = _(e), sm(e, t), !1;
+ function cm(e, t) {
+ return e = _(e), lm(e, t), !1;
}
- function sm(e, t) {
+ function lm(e, t) {
e.reactFragments ??= /* @__PURE__ */ new Set(), e.reactFragments.add(t);
}
- function cm(e, t) {
+ function um(e, t) {
var n = t._eventListeners;
if (n !== null) for (var r = 0; r < n.length; r++) {
var i = n[r];
- e.addEventListener(i.type, i.attachedListener, Kp(i.optionsOrUseCapture));
+ e.addEventListener(i.type, i.attachedListener, Jp(i.optionsOrUseCapture));
}
e.nodeType !== 3 && (n = t._observers, n !== null && n.forEach(function(n) {
- for (var r = 0, i = 0; i < em.length; i++) {
- var a = em[i];
- (a.fragmentInstance !== t || a.observer !== n || a.instance !== e) && (em[r++] = a);
+ for (var r = 0, i = 0; i < nm.length; i++) {
+ var a = nm[i];
+ (a.fragmentInstance !== t || a.observer !== n || a.instance !== e) && (nm[r++] = a);
}
- em.length = r, n.observe(e);
- }), sm(e, t));
+ nm.length = r, n.observe(e);
+ }), lm(e, t));
}
- function lm(e, t) {
+ function dm(e, t) {
var n = t._eventListeners;
if (n !== null) for (var r = 0; r < n.length; r++) {
var i = n[r];
- e.removeEventListener(i.type, i.attachedListener, Kp(i.optionsOrUseCapture));
+ e.removeEventListener(i.type, i.attachedListener, Jp(i.optionsOrUseCapture));
}
e.nodeType !== 3 && (n = t._observers, n !== null && n.forEach(function(n) {
- typeof n.rootMargin == "string" ? nm(t, n, e) : n.unobserve(e);
+ typeof n.rootMargin == "string" ? im(t, n, e) : n.unobserve(e);
}), e.reactFragments != null && e.reactFragments.delete(t));
}
- function K(e) {
+ function fm(e) {
var t = e.firstChild;
for (t && t.nodeType === 10 && (t = t.nextSibling); t;) {
var n = t;
@@ -17565,7 +17565,7 @@ var Sf = /* @__PURE__ */ h(((e) => {
case "HTML":
case "HEAD":
case "BODY":
- K(n), kt(n);
+ fm(n), kt(n);
continue;
case "SCRIPT":
case "STYLE": continue;
@@ -17574,7 +17574,7 @@ var Sf = /* @__PURE__ */ h(((e) => {
e.removeChild(n);
}
}
- function um(e, t, n, r) {
+ function W(e, t, n, r) {
for (; e.nodeType === 1;) {
var i = n;
if (e.nodeName.toLowerCase() !== t.toLowerCase()) {
@@ -17584,7 +17584,7 @@ var Sf = /* @__PURE__ */ h(((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[R]) switch (t) {
case "meta":
if (!e.hasAttribute("itemprop")) break;
return e;
@@ -17599,26 +17599,26 @@ var Sf = /* @__PURE__ */ h(((e) => {
return e;
default: return e;
}
- if (e = gm(e.nextSibling), e === null) break;
+ if (e = vm(e.nextSibling), e === null) break;
}
return null;
}
- function dm(e, t, n) {
+ function pm(e, t, n) {
if (t === "") return null;
- for (; e.nodeType !== 3;) if ((e.nodeType !== 1 || e.nodeName !== "INPUT" || e.type !== "hidden") && !n || (e = gm(e.nextSibling), e === null)) return null;
+ for (; e.nodeType !== 3;) if ((e.nodeType !== 1 || e.nodeName !== "INPUT" || e.type !== "hidden") && !n || (e = vm(e.nextSibling), e === null)) return null;
return e;
}
- function fm(e, t) {
- for (; e.nodeType !== 8;) if ((e.nodeType !== 1 || e.nodeName !== "INPUT" || e.type !== "hidden") && !t || (e = gm(e.nextSibling), e === null)) return null;
+ function mm(e, t) {
+ for (; e.nodeType !== 8;) if ((e.nodeType !== 1 || e.nodeName !== "INPUT" || e.type !== "hidden") && !t || (e = vm(e.nextSibling), e === null)) return null;
return e;
}
- function pm(e) {
+ function hm(e) {
return e.data === "$?" || e.data === "$~";
}
- function mm(e) {
+ function gm(e) {
return e.data === "$!" || e.data === "$?" && e.ownerDocument.readyState !== "loading";
}
- function hm(e, t) {
+ function _m(e, t) {
var n = e.ownerDocument;
if (e.data === "$~") e._reactRetry = t;
else if (e.data !== "$?" || n.readyState !== "loading") t();
@@ -17629,7 +17629,7 @@ var Sf = /* @__PURE__ */ h(((e) => {
n.addEventListener("DOMContentLoaded", r), e._reactRetry = r;
}
}
- function gm(e) {
+ function vm(e) {
for (; e != null; e = e.nextSibling) {
var t = e.nodeType;
if (t === 1 || t === 3) break;
@@ -17640,14 +17640,14 @@ var Sf = /* @__PURE__ */ h(((e) => {
}
return e;
}
- var q = null;
- function _m(e) {
+ var ym = null;
+ function G(e) {
e = e.nextSibling;
for (var t = 0; e;) {
if (e.nodeType === 8) {
var n = e.data;
if (n === "/$" || n === "/&") {
- if (t === 0) return gm(e.nextSibling);
+ if (t === 0) return vm(e.nextSibling);
t--;
} else n !== "$" && n !== "$!" && n !== "$?" && n !== "$~" && n !== "&" || t++;
}
@@ -17655,7 +17655,7 @@ var Sf = /* @__PURE__ */ h(((e) => {
}
return null;
}
- function vm(e) {
+ function bm(e) {
e = e.previousSibling;
for (var t = 0; e;) {
if (e.nodeType === 8) {
@@ -17669,7 +17669,7 @@ var Sf = /* @__PURE__ */ h(((e) => {
}
return null;
}
- function ym(e, t) {
+ function xm(e, t) {
function n() {
r = !0;
}
@@ -17682,15 +17682,15 @@ var Sf = /* @__PURE__ */ h(((e) => {
}
return r;
}
- function bm(e) {
- Dp(function() {
- Dp(function(t) {
+ function Sm(e) {
+ kp(function() {
+ kp(function(t) {
return e(t);
});
});
}
- function xm(e, t, n) {
- switch (t = _p(n), e) {
+ function Cm(e, t, n) {
+ switch (t = yp(n), e) {
case "html":
if (e = t.documentElement, !e) throw Error(i(452));
return e;
@@ -17703,91 +17703,91 @@ var Sf = /* @__PURE__ */ h(((e) => {
default: throw Error(i(451));
}
}
- function Sm(e, t, n) {
+ function wm(e, t, n) {
for (var r in n) {
var i = n[r];
- n.hasOwnProperty(r) && i != null && cp(e, t, r, null, dp, i);
+ n.hasOwnProperty(r) && i != null && up(e, t, r, null, pp, i);
}
n.dangerouslySetInnerHTML != null && (e.textContent = ""), e.onclick === hn && (e.onclick = null), kt(e);
}
- function Cm(e) {
+ function Tm(e) {
for (var t = e.attributes; t.length;) e.removeAttributeNode(t[0]);
kt(e);
}
- var wm = /* @__PURE__ */ new Map(), Tm = /* @__PURE__ */ new Set();
- function Em(e) {
+ var Em = /* @__PURE__ */ new Map(), Dm = /* @__PURE__ */ new Set();
+ function Om(e) {
if (typeof e.getRootNode == "function") {
var t = e.getRootNode();
if (t.nodeType === 9 || t.nodeType === 11) return t;
}
return e.nodeType === 9 ? e : e.ownerDocument;
}
- var Dm = L.d;
+ var km = L.d;
L.d = {
- f: Om,
- r: km,
- D: Mm,
- C: Nm,
- L: Pm,
- m: Fm,
- X: Lm,
- S: Im,
- M: Rm
+ f: Am,
+ r: jm,
+ D: Pm,
+ C: Fm,
+ L: Im,
+ m: Lm,
+ X: zm,
+ S: Rm,
+ M: Bm
};
- function Om() {
- var e = Dm.f(), t = Ud();
+ function Am() {
+ var e = km.f(), t = Gd();
return e || t;
}
- function km(e) {
+ function jm(e) {
var t = jt(e);
- t !== null && t.tag === 5 && t.type === "form" ? ec(t) : Dm.r(e);
+ t !== null && t.tag === 5 && t.type === "form" ? tc(t) : km.r(e);
}
- var Am = typeof document > "u" ? null : document;
- function jm(e, t, n) {
- var r = Am;
+ var Mm = typeof document > "u" ? null : document;
+ function Nm(e, t, n) {
+ var r = Mm;
if (r && typeof t == "string" && t) {
var i = $t(t);
- i = "link[rel=\"" + e + "\"][href=\"" + i + "\"]", typeof n == "string" && (i += "[crossorigin=\"" + n + "\"]"), Tm.has(i) || (Tm.add(i), e = {
+ i = "link[rel=\"" + e + "\"][href=\"" + i + "\"]", typeof n == "string" && (i += "[crossorigin=\"" + n + "\"]"), Dm.has(i) || (Dm.add(i), e = {
rel: e,
crossOrigin: n,
href: t
- }, r.querySelector(i) === null && (t = r.createElement("link"), up(t, "link", e), Pt(t), r.head.appendChild(t)));
+ }, r.querySelector(i) === null && (t = r.createElement("link"), fp(t, "link", e), Pt(t), r.head.appendChild(t)));
}
}
- function Mm(e) {
- Dm.D(e), jm("dns-prefetch", e, null);
+ function Pm(e) {
+ km.D(e), Nm("dns-prefetch", e, null);
}
- function Nm(e, t) {
- Dm.C(e, t), jm("preconnect", e, t);
+ function Fm(e, t) {
+ km.C(e, t), Nm("preconnect", e, t);
}
- function Pm(e, t, n) {
- Dm.L(e, t, n);
- var r = Am;
+ function Im(e, t, n) {
+ km.L(e, t, n);
+ var r = Mm;
if (r && e && t) {
var i = "link[rel=\"preload\"][as=\"" + $t(t) + "\"]";
t === "image" && n && n.imageSrcSet ? (i += "[imagesrcset=\"" + $t(n.imageSrcSet) + "\"]", typeof n.imageSizes == "string" && (i += "[imagesizes=\"" + $t(n.imageSizes) + "\"]")) : i += "[href=\"" + $t(e) + "\"]";
var a = i;
switch (t) {
case "style":
- a = Bm(e);
+ a = Hm(e);
break;
- case "script": a = Wm(e);
+ case "script": a = K(e);
}
- if (!(wm.has(a) || (e = T({
+ if (!(Em.has(a) || (e = T({
rel: "preload",
href: t === "image" && n && n.imageSrcSet ? void 0 : e,
as: t
- }, n), wm.set(a, e), r.querySelector(i) !== null || t === "style" && r.querySelector(Vm(a)) || t === "script" && r.querySelector(Gm(a))))) {
+ }, n), Em.set(a, e), r.querySelector(i) !== null || t === "style" && r.querySelector(Um(a)) || t === "script" && r.querySelector(Km(a))))) {
var o = r.createElement("link");
- up(o, "link", e), t === "style" && (o[Ot] = !0, o.onload = o.onerror = function() {
+ fp(o, "link", e), t === "style" && (o[Ot] = !0, o.onload = o.onerror = function() {
Ft(o);
}), Pt(o), r.head.appendChild(o);
}
}
}
- function Fm(e, t) {
- Dm.m(e, t);
- var n = Am;
+ function Lm(e, t) {
+ km.m(e, t);
+ var n = Mm;
if (n && e) {
var r = t && typeof t.as == "string" ? t.as : "script", i = "link[rel=\"modulepreload\"][as=\"" + $t(r) + "\"][href=\"" + $t(e) + "\"]", a = i;
switch (r) {
@@ -17796,29 +17796,29 @@ var Sf = /* @__PURE__ */ h(((e) => {
case "serviceworker":
case "sharedworker":
case "worker":
- case "script": a = Wm(e);
+ case "script": a = K(e);
}
- if (!wm.has(a) && (e = T({
+ if (!Em.has(a) && (e = T({
rel: "modulepreload",
href: e
- }, t), wm.set(a, e), n.querySelector(i) === null)) {
+ }, t), Em.set(a, e), n.querySelector(i) === null)) {
switch (r) {
case "audioworklet":
case "paintworklet":
case "serviceworker":
case "sharedworker":
case "worker":
- case "script": if (n.querySelector(Gm(a))) return;
+ case "script": if (n.querySelector(Km(a))) return;
}
- r = n.createElement("link"), up(r, "link", e), Pt(r), n.head.appendChild(r);
+ r = n.createElement("link"), fp(r, "link", e), Pt(r), n.head.appendChild(r);
}
}
}
- function Im(e, t, n) {
- Dm.S(e, t, n);
- var r = Am;
+ function Rm(e, t, n) {
+ km.S(e, t, n);
+ var r = Mm;
if (r && e) {
- var i = Nt(r).hoistableStyles, a = Bm(e);
+ var i = Nt(r).hoistableStyles, a = Hm(e);
t ||= "default";
var o = i.get(a);
if (!o) {
@@ -17826,21 +17826,21 @@ var Sf = /* @__PURE__ */ h(((e) => {
loading: 0,
preload: null
};
- if (o = r.querySelector(Vm(a))) s.loading = 5;
+ if (o = r.querySelector(Um(a))) s.loading = 5;
else {
e = T({
rel: "stylesheet",
href: e,
"data-precedence": t
- }, n), (n = wm.get(a)) && Jm(e, n);
+ }, n), (n = Em.get(a)) && Ym(e, n);
var c = o = r.createElement("link");
- Pt(c), up(c, "link", e), c._p = new Promise(function(e, t) {
+ Pt(c), fp(c, "link", e), c._p = new Promise(function(e, t) {
c.onload = e, c.onerror = t;
}), c.addEventListener("load", function() {
s.loading |= 1;
}), c.addEventListener("error", function() {
s.loading |= 2;
- }), s.loading |= 4, qm(o, t, r);
+ }), s.loading |= 4, Jm(o, t, r);
}
o = {
type: "stylesheet",
@@ -17851,15 +17851,15 @@ var Sf = /* @__PURE__ */ h(((e) => {
}
}
}
- function Lm(e, t) {
- Dm.X(e, t);
- var n = Am;
+ function zm(e, t) {
+ km.X(e, t);
+ var n = Mm;
if (n && e) {
- var r = Nt(n).hoistableScripts, i = Wm(e), a = r.get(i);
- a || (a = n.querySelector(Gm(i)), a || (e = T({
+ var r = Nt(n).hoistableScripts, i = K(e), a = r.get(i);
+ a || (a = n.querySelector(Km(i)), a || (e = T({
src: e,
async: !0
- }, t), (t = wm.get(i)) && J(e, t), a = n.createElement("script"), Pt(a), up(a, "link", e), n.head.appendChild(a)), a = {
+ }, t), (t = Em.get(i)) && Xm(e, t), a = n.createElement("script"), Pt(a), fp(a, "link", e), n.head.appendChild(a)), a = {
type: "script",
instance: a,
count: 1,
@@ -17867,16 +17867,16 @@ var Sf = /* @__PURE__ */ h(((e) => {
}, r.set(i, a));
}
}
- function Rm(e, t) {
- Dm.M(e, t);
- var n = Am;
+ function Bm(e, t) {
+ km.M(e, t);
+ var n = Mm;
if (n && e) {
- var r = Nt(n).hoistableScripts, i = Wm(e), a = r.get(i);
- a || (a = n.querySelector(Gm(i)), a || (e = T({
+ var r = Nt(n).hoistableScripts, i = K(e), a = r.get(i);
+ a || (a = n.querySelector(Km(i)), a || (e = T({
src: e,
async: !0,
type: "module"
- }, t), (t = wm.get(i)) && J(e, t), a = n.createElement("script"), Pt(a), up(a, "link", e), n.head.appendChild(a)), a = {
+ }, t), (t = Em.get(i)) && Xm(e, t), a = n.createElement("script"), Pt(a), fp(a, "link", e), n.head.appendChild(a)), a = {
type: "script",
instance: a,
count: 1,
@@ -17884,13 +17884,13 @@ var Sf = /* @__PURE__ */ h(((e) => {
}, r.set(i, a));
}
}
- function zm(e, t, n, r) {
- var a = (a = xe.current) ? Em(a) : null;
+ function Vm(e, t, n, r) {
+ var a = (a = xe.current) ? Om(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 = Bm(n.href), t = Nt(a).hoistableStyles, r = t.get(n), r || (r = {
+ case "style": return typeof n.precedence == "string" && typeof n.href == "string" ? (n = Hm(n.href), t = Nt(a).hoistableStyles, r = t.get(n), r || (r = {
type: "style",
instance: null,
count: 0,
@@ -17903,7 +17903,7 @@ var Sf = /* @__PURE__ */ h(((e) => {
};
case "link":
if (n.rel === "stylesheet" && typeof n.href == "string" && typeof n.precedence == "string") {
- e = Bm(n.href);
+ e = Hm(n.href);
var o = Nt(a).hoistableStyles, s = o.get(e);
if (s || (a = a.ownerDocument || a, s = {
type: "stylesheet",
@@ -17913,7 +17913,7 @@ var Sf = /* @__PURE__ */ h(((e) => {
loading: 0,
preload: null
}
- }, o.set(e, s), (o = a.querySelector(Vm(e))) ? o._p || (s.instance = o, s.state.loading = 5) : (o = wm.get(e), o || (o = {
+ }, o.set(e, s), (o = a.querySelector(Um(e))) ? o._p || (s.instance = o, s.state.loading = 5) : (o = Em.get(e), o || (o = {
rel: "preload",
as: "style",
href: n.href,
@@ -17922,12 +17922,12 @@ var Sf = /* @__PURE__ */ h(((e) => {
media: n.media,
hrefLang: n.hrefLang,
referrerPolicy: n.referrerPolicy
- }, wm.set(e, o)), Um(a, e, o, s.state))), t && r === null) throw Error(i(528, ""));
+ }, Em.set(e, o)), Gm(a, e, o, s.state))), t && r === null) throw Error(i(528, ""));
return s;
}
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 = Wm(n), t = Nt(a).hoistableScripts, r = t.get(n), r || (r = {
+ case "script": return t = n.async, n = n.src, typeof n == "string" && t && typeof t != "function" && typeof t != "symbol" ? (n = K(n), t = Nt(a).hoistableScripts, r = t.get(n), r || (r = {
type: "script",
instance: null,
count: 0,
@@ -17941,38 +17941,38 @@ var Sf = /* @__PURE__ */ h(((e) => {
default: throw Error(i(444, e));
}
}
- function Bm(e) {
+ function Hm(e) {
return "href=\"" + $t(e) + "\"";
}
- function Vm(e) {
+ function Um(e) {
return "link[rel=\"stylesheet\"][" + e + "]";
}
- function Hm(e) {
+ function Wm(e) {
return T({}, e, {
"data-precedence": e.precedence,
precedence: null
});
}
- function Um(e, t, n, r) {
+ function Gm(e, t, n, r) {
if (t = e.querySelector("link[rel=\"preload\"][as=\"style\"][" + t + "]")) {
if (!0 !== t[Ot]) {
r.loading = 1;
return;
}
- } else t = e.createElement("link"), t[Ot] = !0, t.onload = t.onerror = Ft.bind(null, t), up(t, "link", n), Pt(t), e.head.appendChild(t);
+ } else t = e.createElement("link"), t[Ot] = !0, t.onload = t.onerror = Ft.bind(null, t), fp(t, "link", n), Pt(t), e.head.appendChild(t);
r.preload = t, t.addEventListener("load", function() {
return r.loading |= 1;
}), t.addEventListener("error", function() {
return r.loading |= 2;
});
}
- function Wm(e) {
+ function K(e) {
return "[src=\"" + $t(e) + "\"]";
}
- function Gm(e) {
+ function Km(e) {
return "script[async]" + e;
}
- function Km(e, t, n) {
+ function qm(e, t, n) {
if (t.count++, t.instance === null) switch (t.type) {
case "style":
var r = e.querySelector("style[data-href~=\"" + $t(n.href) + "\"]");
@@ -17983,24 +17983,24 @@ var Sf = /* @__PURE__ */ h(((e) => {
href: null,
precedence: null
});
- return r = (e.ownerDocument || e).createElement("style"), Pt(r), up(r, "style", a), qm(r, n.precedence, e), t.instance = r;
+ return r = (e.ownerDocument || e).createElement("style"), Pt(r), fp(r, "style", a), Jm(r, n.precedence, e), t.instance = r;
case "stylesheet":
- a = Bm(n.href);
- var o = e.querySelector(Vm(a));
+ a = Hm(n.href);
+ var o = e.querySelector(Um(a));
if (o) return t.state.loading |= 4, t.instance = o, Pt(o), o;
- r = Hm(n), (a = wm.get(a)) && Jm(r, a), o = (e.ownerDocument || e).createElement("link"), Pt(o);
+ r = Wm(n), (a = Em.get(a)) && Ym(r, a), o = (e.ownerDocument || e).createElement("link"), Pt(o);
var s = o;
return s._p = new Promise(function(e, t) {
s.onload = e, s.onerror = t;
- }), up(o, "link", r), t.state.loading |= 4, qm(o, n.precedence, e), t.instance = o;
- case "script": return o = Wm(n.src), (a = e.querySelector(Gm(o))) ? (t.instance = a, Pt(a), a) : (r = n, (a = wm.get(o)) && (r = T({}, n), J(r, a)), e = e.ownerDocument || e, a = e.createElement("script"), Pt(a), up(a, "link", r), e.head.appendChild(a), t.instance = a);
+ }), fp(o, "link", r), t.state.loading |= 4, Jm(o, n.precedence, e), t.instance = o;
+ case "script": return o = K(n.src), (a = e.querySelector(Km(o))) ? (t.instance = a, Pt(a), a) : (r = n, (a = Em.get(o)) && (r = T({}, n), Xm(r, a)), e = e.ownerDocument || e, a = e.createElement("script"), Pt(a), fp(a, "link", r), e.head.appendChild(a), t.instance = a);
case "void": return null;
default: throw Error(i(443, t.type));
}
- else t.type === "stylesheet" && !(t.state.loading & 4) && (r = t.instance, t.state.loading |= 4, qm(r, n.precedence, e));
+ else t.type === "stylesheet" && !(t.state.loading & 4) && (r = t.instance, t.state.loading |= 4, Jm(r, n.precedence, e));
return t.instance;
}
- function qm(e, t, n) {
+ function Jm(e, t, n) {
for (var r = n.querySelectorAll("link[rel=\"stylesheet\"][data-precedence],style[data-precedence]"), i = r.length ? r[r.length - 1] : null, a = i, o = 0; o < r.length; o++) {
var s = r[o];
if (s.dataset.precedence === t) a = s;
@@ -18008,22 +18008,22 @@ var Sf = /* @__PURE__ */ h(((e) => {
}
a ? a.parentNode.insertBefore(e, a.nextSibling) : (t = n.nodeType === 9 ? n.head : n, t.insertBefore(e, t.firstChild));
}
- function Jm(e, t) {
+ function Ym(e, t) {
e.crossOrigin ??= t.crossOrigin, e.referrerPolicy ??= t.referrerPolicy, e.title ??= t.title;
}
- function J(e, t) {
+ function Xm(e, t) {
e.crossOrigin ??= t.crossOrigin, e.referrerPolicy ??= t.referrerPolicy, e.integrity ??= t.integrity;
}
- var Ym = null;
- function Xm(e, t, n) {
- if (Ym === null) {
- var r = /* @__PURE__ */ new Map(), i = Ym = /* @__PURE__ */ new Map();
+ var q = null;
+ function Zm(e, t, n) {
+ if (q === null) {
+ var r = /* @__PURE__ */ new Map(), i = q = /* @__PURE__ */ new Map();
i.set(n, r);
- } else i = Ym, r = i.get(n), r || (r = /* @__PURE__ */ new Map(), i.set(n, r));
+ } else i = q, r = i.get(n), r || (r = /* @__PURE__ */ new Map(), i.set(n, r));
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[R] || a[xt] || 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);
@@ -18032,10 +18032,10 @@ var Sf = /* @__PURE__ */ h(((e) => {
}
return r;
}
- function Zm(e, t, n) {
+ function Qm(e, t, n) {
e = e.ownerDocument || e, e.head.insertBefore(n, t === "title" ? e.querySelector("head > title") : null);
}
- function Qm(e, t, n) {
+ function $m(e, t, n) {
if (n === 1 || t.itemProp != null) return !1;
switch (e) {
case "meta":
@@ -18053,37 +18053,37 @@ var Sf = /* @__PURE__ */ h(((e) => {
}
return !1;
}
- function $m(e, t) {
+ function eh(e, t) {
return e === "img" && t.src != null && t.src !== "" && t.onLoad == null && t.loading !== "lazy";
}
- function eh(e) {
+ function th(e) {
return !(e.type === "stylesheet" && !(e.state.loading & 3));
}
- function th(e) {
+ function nh(e) {
return (e.width || 100) * (e.height || 100) * (typeof devicePixelRatio == "number" ? devicePixelRatio : 1) * .25;
}
- function nh(e, t) {
- typeof t.decode == "function" && (e.imgCount++, t.complete || (e.imgBytes += th(t), e.suspenseyImages.push(t)), e = ch.bind(e), t.decode().then(e, e));
+ function rh(e, t) {
+ typeof t.decode == "function" && (e.imgCount++, t.complete || (e.imgBytes += nh(t), e.suspenseyImages.push(t)), e = lh.bind(e), t.decode().then(e, e));
}
- function rh(e, t, n, r) {
+ function ih(e, t, n, r) {
if (n.type === "stylesheet" && (typeof r.media != "string" || !1 !== matchMedia(r.media).matches) && !(n.state.loading & 4)) {
if (n.instance === null) {
- var i = Bm(r.href), a = t.querySelector(Vm(i));
+ var i = Hm(r.href), a = t.querySelector(Um(i));
if (a) {
- t = a._p, typeof t == "object" && t && typeof t.then == "function" && (e.count++, e = sh.bind(e), t.then(e, e)), n.state.loading |= 4, n.instance = a, Pt(a);
+ t = a._p, typeof t == "object" && t && typeof t.then == "function" && (e.count++, e = ch.bind(e), t.then(e, e)), n.state.loading |= 4, n.instance = a, Pt(a);
return;
}
- a = t.ownerDocument || t, r = Hm(r), (i = wm.get(i)) && Jm(r, i), a = a.createElement("link"), Pt(a);
+ a = t.ownerDocument || t, r = Wm(r), (i = Em.get(i)) && Ym(r, i), a = a.createElement("link"), Pt(a);
var o = a;
o._p = new Promise(function(e, t) {
o.onload = e, o.onerror = t;
- }), up(a, "link", r), n.instance = a;
+ }), fp(a, "link", r), n.instance = a;
}
- e.stylesheets === null && (e.stylesheets = /* @__PURE__ */ new Map()), e.stylesheets.set(n, t), (t = n.state.preload) && !(n.state.loading & 3) && (e.count++, n = sh.bind(e), t.addEventListener("load", n), t.addEventListener("error", n));
+ e.stylesheets === null && (e.stylesheets = /* @__PURE__ */ new Map()), e.stylesheets.set(n, t), (t = n.state.preload) && !(n.state.loading & 3) && (e.count++, n = ch.bind(e), t.addEventListener("load", n), t.addEventListener("error", n));
}
}
- var ih = 0;
- function ah(e, t) {
+ var ah = 0;
+ function oh(e, t) {
return e.stylesheets && e.count === 0 && uh(e, e.stylesheets), 0 < e.count || 0 < e.imgCount ? function(n) {
var r = setTimeout(function() {
if (e.stylesheets && uh(e, e.stylesheets), e.unsuspend) {
@@ -18091,19 +18091,19 @@ var Sf = /* @__PURE__ */ h(((e) => {
e.unsuspend = null, t();
}
}, 6e4 + t);
- 0 < e.imgBytes && ih === 0 && (ih = 62500 * mp());
+ 0 < e.imgBytes && ah === 0 && (ah = 62500 * gp());
var i = setTimeout(function() {
if (e.waitingForImages = !1, e.count === 0 && (e.stylesheets && uh(e, e.stylesheets), e.unsuspend)) {
var t = e.unsuspend;
e.unsuspend = null, t();
}
- }, (e.imgBytes > ih ? 50 : 800) + t);
+ }, (e.imgBytes > ah ? 50 : 800) + t);
return e.unsuspend = n, function() {
e.unsuspend = null, clearTimeout(r), clearTimeout(i);
};
} : null;
}
- function oh(e) {
+ function sh(e) {
if (e.count === 0 && (e.imgCount === 0 || !e.waitingForImages)) {
if (e.stylesheets) uh(e, e.stylesheets);
else if (e.unsuspend) {
@@ -18112,29 +18112,29 @@ var Sf = /* @__PURE__ */ h(((e) => {
}
}
}
- function sh() {
- this.count--, oh(this);
- }
function ch() {
- this.imgCount--, oh(this);
+ this.count--, sh(this);
+ }
+ function lh() {
+ this.imgCount--, sh(this);
}
- var lh = null;
+ var J = null;
function uh(e, t) {
- e.stylesheets = null, e.unsuspend !== null && (e.count++, lh = /* @__PURE__ */ new Map(), t.forEach(dh, e), lh = null, sh.call(e));
+ e.stylesheets = null, e.unsuspend !== null && (e.count++, J = /* @__PURE__ */ new Map(), t.forEach(dh, e), J = null, ch.call(e));
}
function dh(e, t) {
if (!(t.state.loading & 4)) {
- var n = lh.get(e);
+ var n = J.get(e);
if (n) var r = n.get(null);
else {
- n = /* @__PURE__ */ new Map(), lh.set(e, n);
+ n = /* @__PURE__ */ new Map(), J.set(e, n);
for (var i = e.querySelectorAll("link[data-precedence],style[data-precedence]"), a = 0; a < i.length; a++) {
var o = i[a];
(o.nodeName === "LINK" || o.getAttribute("media") !== "not all") && (n.set(o.dataset.precedence, o), r = o);
}
r && n.set(null, r);
}
- i = t.instance, o = i.getAttribute("data-precedence"), a = n.get(o) || r, a === r && n.set(null, i), n.set(o, i), this.count++, r = sh.bind(this), i.addEventListener("load", r), i.addEventListener("error", r), a ? a.parentNode.insertBefore(i, a.nextSibling) : (e = e.nodeType === 9 ? e.head : e, e.insertBefore(i, e.firstChild)), t.state.loading |= 4;
+ i = t.instance, o = i.getAttribute("data-precedence"), a = n.get(o) || r, a === r && n.set(null, i), n.set(o, i), this.count++, r = ch.bind(this), i.addEventListener("load", r), i.addEventListener("error", r), a ? a.parentNode.insertBefore(i, a.nextSibling) : (e = e.nodeType === 9 ? e.head : e, e.insertBefore(i, e.firstChild)), t.state.loading |= 4;
}
}
var fh = {
@@ -18149,17 +18149,17 @@ var Sf = /* @__PURE__ */ h(((e) => {
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();
}
function mh(e, t, n, r, i, a, o, s, c, l, u, d) {
- return e = new ph(e, t, n, o, c, l, u, d, s), t = 1, !0 === a && (t |= 24), a = ki(3, null, null, t), e.current = a, a.stateNode = e, t = Oa(), t.refCount++, e.pooledCache = t, t.refCount++, a.memoizedState = {
+ return e = new ph(e, t, n, o, c, l, u, d, s), t = 1, !0 === a && (t |= 24), a = ki(3, null, null, t), e.current = a, a.stateNode = e, t = ka(), t.refCount++, e.pooledCache = t, t.refCount++, a.memoizedState = {
element: r,
isDehydrated: n,
cache: t
- }, uo(a), e;
+ }, fo(a), e;
}
function hh(e) {
return e ? (e = Di, e) : Di;
}
function gh(e, t, n, r, i, a) {
- i = hh(i), r.context === null ? r.context = i : r.pendingContext = i, r = po(t), r.payload = { element: n }, a = a === void 0 ? null : a, a !== null && (r.callback = a), n = mo(e, r, t), n !== null && (Rd(n, e, t), ho(n, e, t));
+ i = hh(i), r.context === null ? r.context = i : r.pendingContext = i, r = mo(t), r.payload = { element: n }, a = a === void 0 ? null : a, a !== null && (r.callback = a), n = ho(e, r, t), n !== null && (Bd(n, e, t), go(n, e, t));
}
function _h(e, t) {
if (e = e.memoizedState, e !== null && e.dehydrated !== null) {
@@ -18173,15 +18173,15 @@ var Sf = /* @__PURE__ */ h(((e) => {
function yh(e) {
if (e.tag === 13 || e.tag === 31) {
var t = wi(e, 67108864);
- t !== null && Rd(t, e, 67108864), vh(e, 67108864);
+ t !== null && Bd(t, e, 67108864), vh(e, 67108864);
}
}
function bh(e) {
if (e.tag === 13 || e.tag === 31) {
- var t = Fd();
+ var t = Ld();
t = gt(t);
var n = wi(e, t);
- n !== null && Rd(n, e, t), vh(e, t);
+ n !== null && Bd(n, e, t), vh(e, t);
}
}
var xh = !0;
@@ -18208,7 +18208,7 @@ var Sf = /* @__PURE__ */ h(((e) => {
function wh(e, t, n, r) {
if (xh) {
var i = Th(r);
- if (i === null) $f(e, t, r, Eh, n), Lh(e, r);
+ if (i === null) tp(e, t, r, Eh, n), Lh(e, r);
else if (zh(i, e, t, n, r)) r.stopPropagation();
else if (Lh(e, r), t & 4 && -1 < Ih.indexOf(e)) {
for (; i !== null;) {
@@ -18223,18 +18223,18 @@ var Sf = /* @__PURE__ */ h(((e) => {
var c = 1 << 31 - Ze(o);
s.entanglements[1] |= c, o &= ~c;
}
- Mf(a), !(ed & 6) && (bd = ze() + 500, Nf(0, !1));
+ Pf(a), !(td & 6) && (Sd = ze() + 500, Ff(0, !1));
}
}
break;
case 31:
- case 13: s = wi(a, 2), s !== null && Rd(s, a, 2), Ud(), vh(a, 2);
+ case 13: s = wi(a, 2), s !== null && Bd(s, a, 2), Gd(), vh(a, 2);
}
- if (a = Th(r), a === null && $f(e, t, r, Eh, n), a === i) break;
+ if (a = Th(r), a === null && tp(e, t, r, Eh, n), a === i) break;
i = a;
}
i !== null && r.stopPropagation();
- } else $f(e, t, r, null, n);
+ } else tp(e, t, r, null, n);
}
}
function Th(e) {
@@ -18433,11 +18433,11 @@ var Sf = /* @__PURE__ */ h(((e) => {
function Hh(e, t, n) {
Vh(e) && n.delete(t);
}
- function Y() {
+ function Uh() {
kh = !1, Ah !== null && Vh(Ah) && (Ah = null), jh !== null && Vh(jh) && (jh = null), Mh !== null && Vh(Mh) && (Mh = null), Nh.forEach(Hh), Ph.forEach(Hh);
}
- function Uh(e, n) {
- e.blockedOn === n && (e.blockedOn = null, kh || (kh = !0, t.unstable_scheduleCallback(t.unstable_NormalPriority, Y)));
+ function Y(e, n) {
+ e.blockedOn === n && (e.blockedOn = null, kh || (kh = !0, t.unstable_scheduleCallback(t.unstable_NormalPriority, Uh)));
}
var Wh = null;
function Gh(e) {
@@ -18450,7 +18450,7 @@ var Sf = /* @__PURE__ */ h(((e) => {
break;
}
var a = jt(n);
- a !== null && (e.splice(t, 3), t -= 3, Qs(a, {
+ a !== null && (e.splice(t, 3), t -= 3, $s(a, {
pending: !0,
data: i,
method: n.method,
@@ -18461,9 +18461,9 @@ var Sf = /* @__PURE__ */ h(((e) => {
}
function Kh(e) {
function t(t) {
- return Uh(t, e);
+ return Y(t, e);
}
- Ah !== null && Uh(Ah, e), jh !== null && Uh(jh, e), Mh !== null && Uh(Mh, e), Nh.forEach(t), Ph.forEach(t);
+ Ah !== null && Y(Ah, e), jh !== null && Y(jh, e), Mh !== null && Y(Mh, e), Nh.forEach(t), Ph.forEach(t);
for (var n = 0; n < Fh.length; n++) {
var r = Fh[n];
r.blockedOn === e && (r.blockedOn = null);
@@ -18521,13 +18521,13 @@ var Sf = /* @__PURE__ */ h(((e) => {
var t = this._internalRoot;
if (t === null) throw Error(i(409));
var n = t.current;
- gh(n, Fd(), e, t, null, null);
+ gh(n, Ld(), e, t, null, null);
}, Yh.prototype.unmount = Jh.prototype.unmount = function() {
var e = this._internalRoot;
if (e !== null) {
this._internalRoot = null;
var t = e.containerInfo;
- gh(e.current, 2, null, e, null, null), Ud(), t[Ct] = null;
+ gh(e.current, 2, null, e, null, null), Gd(), t[Ct] = null;
}
};
function Yh(e) {
@@ -18567,10 +18567,10 @@ var Sf = /* @__PURE__ */ h(((e) => {
}
e.createRoot = function(e, t) {
if (!a(e)) throw Error(i(299));
- var n = !1, r = "", o = xc, s = Sc, c = Cc;
- 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 = mh(e, 1, !1, null, null, n, r, null, o, s, c, qh), e[Ct] = t.current, Zf(e), new Jh(t);
+ var n = !1, r = "", o = Sc, s = Cc, c = wc;
+ 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 = mh(e, 1, !1, null, null, n, r, null, o, s, c, qh), e[Ct] = t.current, $f(e), new Jh(t);
};
-})), Tf = (/* @__PURE__ */ h(((e, t) => {
+})), Of = (/* @__PURE__ */ g(((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);
@@ -18578,8 +18578,8 @@ var Sf = /* @__PURE__ */ h(((e) => {
console.error(e);
}
}
- n(), t.exports = wf();
-})))(), Ef = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
+ n(), t.exports = Df();
+})))(), kf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => C.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18587,7 +18587,7 @@ var Sf = /* @__PURE__ */ h(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, S.createElement("path", { d: "M11 11V5H13V11H19V13H13V19H11V13H5V11H11Z" })), Df = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
+}, C.createElement("path", { d: "M11 11V5H13V11H19V13H13V19H11V13H5V11H11Z" })), Af = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => C.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18595,7 +18595,7 @@ var Sf = /* @__PURE__ */ h(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, S.createElement("path", { d: "M13.0001 16.1716L18.3641 10.8076L19.7783 12.2218L12.0001 20L4.22192 12.2218L5.63614 10.8076L11.0001 16.1716V4H13.0001V16.1716Z" })), Of = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
+}, C.createElement("path", { d: "M13.0001 16.1716L18.3641 10.8076L19.7783 12.2218L12.0001 20L4.22192 12.2218L5.63614 10.8076L11.0001 16.1716V4H13.0001V16.1716Z" })), jf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => C.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18603,7 +18603,7 @@ var Sf = /* @__PURE__ */ h(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, S.createElement("path", { d: "M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z" })), kf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
+}, C.createElement("path", { d: "M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z" })), Mf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => C.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18611,7 +18611,7 @@ var Sf = /* @__PURE__ */ h(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, S.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" })), Af = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
+}, C.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" })), Nf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => C.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18619,7 +18619,7 @@ var Sf = /* @__PURE__ */ h(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, S.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" })), jf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
+}, C.createElement("path", { d: "M13.1717 12.0007L8.22192 7.05093L9.63614 5.63672L16.0001 12.0007L9.63614 18.3646L8.22192 16.9504L13.1717 12.0007Z" })), Pf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => C.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18627,7 +18627,7 @@ var Sf = /* @__PURE__ */ h(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, S.createElement("path", { d: "M13.0001 7.82843V20H11.0001V7.82843L5.63614 13.1924L4.22192 11.7782L12.0001 4L19.7783 11.7782L18.3641 13.1924L13.0001 7.82843Z" })), Mf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
+}, C.createElement("path", { d: "M13.0001 7.82843V20H11.0001V7.82843L5.63614 13.1924L4.22192 11.7782L12.0001 4L19.7783 11.7782L18.3641 13.1924L13.0001 7.82843Z" })), Ff = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => C.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18635,7 +18635,7 @@ var Sf = /* @__PURE__ */ h(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, S.createElement("path", { d: "M11.9999 10.8284L7.0502 15.7782L5.63599 14.364L11.9999 8L18.3639 14.364L16.9497 15.7782L11.9999 10.8284Z" })), Nf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
+}, C.createElement("path", { d: "M11.9999 10.8284L7.0502 15.7782L5.63599 14.364L11.9999 8L18.3639 14.364L16.9497 15.7782L11.9999 10.8284Z" })), If = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => C.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18643,7 +18643,7 @@ var Sf = /* @__PURE__ */ h(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, S.createElement("path", { d: "M11.602 13.7599L13.014 15.1719L21.4795 6.7063L22.8938 8.12051L13.014 18.0003L6.65 11.6363L8.06421 10.2221L10.189 12.3469L11.6025 13.7594L11.602 13.7599ZM11.6037 10.9322L16.5563 5.97949L17.9666 7.38977L13.014 12.3424L11.6037 10.9322ZM8.77698 16.5873L7.36396 18.0003L1 11.6363L2.41421 10.2221L3.82723 11.6352L3.82604 11.6363L8.77698 16.5873Z" })), Pf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
+}, C.createElement("path", { d: "M11.602 13.7599L13.014 15.1719L21.4795 6.7063L22.8938 8.12051L13.014 18.0003L6.65 11.6363L8.06421 10.2221L10.189 12.3469L11.6025 13.7594L11.602 13.7599ZM11.6037 10.9322L16.5563 5.97949L17.9666 7.38977L13.014 12.3424L11.6037 10.9322ZM8.77698 16.5873L7.36396 18.0003L1 11.6363L2.41421 10.2221L3.82723 11.6352L3.82604 11.6363L8.77698 16.5873Z" })), Lf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => C.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18651,7 +18651,7 @@ var Sf = /* @__PURE__ */ h(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, S.createElement("path", { d: "M4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12ZM12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2ZM17.4571 9.45711L16.0429 8.04289L11 13.0858L8.20711 10.2929L6.79289 11.7071L11 15.9142L17.4571 9.45711Z" })), Ff = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
+}, C.createElement("path", { d: "M4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12ZM12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2ZM17.4571 9.45711L16.0429 8.04289L11 13.0858L8.20711 10.2929L6.79289 11.7071L11 15.9142L17.4571 9.45711Z" })), Rf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => C.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18659,7 +18659,7 @@ var Sf = /* @__PURE__ */ h(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, S.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" })), If = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
+}, C.createElement("path", { d: "M11.9997 10.5865L16.9495 5.63672L18.3637 7.05093L13.4139 12.0007L18.3637 16.9504L16.9495 18.3646L11.9997 13.4149L7.04996 18.3646L5.63574 16.9504L10.5855 12.0007L5.63574 7.05093L7.04996 5.63672L11.9997 10.5865Z" })), zf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => C.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18667,7 +18667,7 @@ var Sf = /* @__PURE__ */ h(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, S.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM15.5 8.5L13.5 13.5L8.5 15.5L10.5 10.5L15.5 8.5Z" })), Lf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
+}, C.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM15.5 8.5L13.5 13.5L8.5 15.5L10.5 10.5L15.5 8.5Z" })), Bf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => C.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18675,7 +18675,7 @@ var Sf = /* @__PURE__ */ h(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, S.createElement("path", { d: "M5 12.5C5 12.8134 5.46101 13.3584 6.53047 13.8931C7.91405 14.5849 9.87677 15 12 15C14.1232 15 16.0859 14.5849 17.4695 13.8931C18.539 13.3584 19 12.8134 19 12.5V10.3287C17.35 11.3482 14.8273 12 12 12C9.17273 12 6.64996 11.3482 5 10.3287V12.5ZM19 15.3287C17.35 16.3482 14.8273 17 12 17C9.17273 17 6.64996 16.3482 5 15.3287V17.5C5 17.8134 5.46101 18.3584 6.53047 18.8931C7.91405 19.5849 9.87677 20 12 20C14.1232 20 16.0859 19.5849 17.4695 18.8931C18.539 18.3584 19 17.8134 19 17.5V15.3287ZM3 17.5V7.5C3 5.01472 7.02944 3 12 3C16.9706 3 21 5.01472 21 7.5V17.5C21 19.9853 16.9706 22 12 22C7.02944 22 3 19.9853 3 17.5ZM12 10C14.1232 10 16.0859 9.58492 17.4695 8.89313C18.539 8.3584 19 7.81342 19 7.5C19 7.18658 18.539 6.6416 17.4695 6.10687C16.0859 5.41508 14.1232 5 12 5C9.87677 5 7.91405 5.41508 6.53047 6.10687C5.46101 6.6416 5 7.18658 5 7.5C5 7.81342 5.46101 8.3584 6.53047 8.89313C7.91405 9.58492 9.87677 10 12 10Z" })), Rf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
+}, C.createElement("path", { d: "M5 12.5C5 12.8134 5.46101 13.3584 6.53047 13.8931C7.91405 14.5849 9.87677 15 12 15C14.1232 15 16.0859 14.5849 17.4695 13.8931C18.539 13.3584 19 12.8134 19 12.5V10.3287C17.35 11.3482 14.8273 12 12 12C9.17273 12 6.64996 11.3482 5 10.3287V12.5ZM19 15.3287C17.35 16.3482 14.8273 17 12 17C9.17273 17 6.64996 16.3482 5 15.3287V17.5C5 17.8134 5.46101 18.3584 6.53047 18.8931C7.91405 19.5849 9.87677 20 12 20C14.1232 20 16.0859 19.5849 17.4695 18.8931C18.539 18.3584 19 17.8134 19 17.5V15.3287ZM3 17.5V7.5C3 5.01472 7.02944 3 12 3C16.9706 3 21 5.01472 21 7.5V17.5C21 19.9853 16.9706 22 12 22C7.02944 22 3 19.9853 3 17.5ZM12 10C14.1232 10 16.0859 9.58492 17.4695 8.89313C18.539 8.3584 19 7.81342 19 7.5C19 7.18658 18.539 6.6416 17.4695 6.10687C16.0859 5.41508 14.1232 5 12 5C9.87677 5 7.91405 5.41508 6.53047 6.10687C5.46101 6.6416 5 7.18658 5 7.5C5 7.81342 5.46101 8.3584 6.53047 8.89313C7.91405 9.58492 9.87677 10 12 10Z" })), Vf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => C.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18683,7 +18683,7 @@ var Sf = /* @__PURE__ */ h(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, S.createElement("path", { d: "M17 6H22V8H20V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V8H2V6H7V3C7 2.44772 7.44772 2 8 2H16C16.5523 2 17 2.44772 17 3V6ZM18 8H6V20H18V8ZM9 11H11V17H9V11ZM13 11H15V17H13V11ZM9 4V6H15V4H9Z" })), zf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
+}, C.createElement("path", { d: "M17 6H22V8H20V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V8H2V6H7V3C7 2.44772 7.44772 2 8 2H16C16.5523 2 17 2.44772 17 3V6ZM18 8H6V20H18V8ZM9 11H11V17H9V11ZM13 11H15V17H13V11ZM9 4V6H15V4H9Z" })), Hf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => C.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18691,7 +18691,7 @@ var Sf = /* @__PURE__ */ h(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, S.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 15H13V17H11V15ZM11 7H13V13H11V7Z" })), Bf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
+}, C.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 15H13V17H11V15ZM11 7H13V13H11V7Z" })), Uf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => C.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18699,7 +18699,7 @@ var Sf = /* @__PURE__ */ h(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, S.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" })), Vf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
+}, C.createElement("path", { d: "M10 6V8H5V19H16V14H18V20C18 20.5523 17.5523 21 17 21H4C3.44772 21 3 20.5523 3 20V7C3 6.44772 3.44772 6 4 6H10ZM21 3V11H19L18.9999 6.413L11.2071 14.2071L9.79289 12.7929L17.5849 5H13V3H21Z" })), Wf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => C.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18707,7 +18707,7 @@ var Sf = /* @__PURE__ */ h(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, S.createElement("path", { d: "M12.0003 3C17.3924 3 21.8784 6.87976 22.8189 12C21.8784 17.1202 17.3924 21 12.0003 21C6.60812 21 2.12215 17.1202 1.18164 12C2.12215 6.87976 6.60812 3 12.0003 3ZM12.0003 19C16.2359 19 19.8603 16.052 20.7777 12C19.8603 7.94803 16.2359 5 12.0003 5C7.7646 5 4.14022 7.94803 3.22278 12C4.14022 16.052 7.7646 19 12.0003 19ZM12.0003 16.5C9.51498 16.5 7.50026 14.4853 7.50026 12C7.50026 9.51472 9.51498 7.5 12.0003 7.5C14.4855 7.5 16.5003 9.51472 16.5003 12C16.5003 14.4853 14.4855 16.5 12.0003 16.5ZM12.0003 14.5C13.381 14.5 14.5003 13.3807 14.5003 12C14.5003 10.6193 13.381 9.5 12.0003 9.5C10.6196 9.5 9.50026 10.6193 9.50026 12C9.50026 13.3807 10.6196 14.5 12.0003 14.5Z" })), Hf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
+}, C.createElement("path", { d: "M12.0003 3C17.3924 3 21.8784 6.87976 22.8189 12C21.8784 17.1202 17.3924 21 12.0003 21C6.60812 21 2.12215 17.1202 1.18164 12C2.12215 6.87976 6.60812 3 12.0003 3ZM12.0003 19C16.2359 19 19.8603 16.052 20.7777 12C19.8603 7.94803 16.2359 5 12.0003 5C7.7646 5 4.14022 7.94803 3.22278 12C4.14022 16.052 7.7646 19 12.0003 19ZM12.0003 16.5C9.51498 16.5 7.50026 14.4853 7.50026 12C7.50026 9.51472 9.51498 7.5 12.0003 7.5C14.4855 7.5 16.5003 9.51472 16.5003 12C16.5003 14.4853 14.4855 16.5 12.0003 16.5ZM12.0003 14.5C13.381 14.5 14.5003 13.3807 14.5003 12C14.5003 10.6193 13.381 9.5 12.0003 9.5C10.6196 9.5 9.50026 10.6193 9.50026 12C9.50026 13.3807 10.6196 14.5 12.0003 14.5Z" })), Gf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => C.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18715,7 +18715,7 @@ var Sf = /* @__PURE__ */ h(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, S.createElement("path", { d: "M10 18H14V16H10V18ZM3 6V8H21V6H3ZM6 13H18V11H6V13Z" })), Uf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
+}, C.createElement("path", { d: "M10 18H14V16H10V18ZM3 6V8H21V6H3ZM6 13H18V11H6V13Z" })), Kf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => C.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18723,7 +18723,7 @@ var Sf = /* @__PURE__ */ h(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, S.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM9.71002 19.6674C8.74743 17.6259 8.15732 15.3742 8.02731 13H4.06189C4.458 16.1765 6.71639 18.7747 9.71002 19.6674ZM10.0307 13C10.1811 15.4388 10.8778 17.7297 12 19.752C13.1222 17.7297 13.8189 15.4388 13.9693 13H10.0307ZM19.9381 13H15.9727C15.8427 15.3742 15.2526 17.6259 14.29 19.6674C17.2836 18.7747 19.542 16.1765 19.9381 13ZM4.06189 11H8.02731C8.15732 8.62577 8.74743 6.37407 9.71002 4.33256C6.71639 5.22533 4.458 7.8235 4.06189 11ZM10.0307 11H13.9693C13.8189 8.56122 13.1222 6.27025 12 4.24799C10.8778 6.27025 10.1811 8.56122 10.0307 11ZM14.29 4.33256C15.2526 6.37407 15.8427 8.62577 15.9727 11H19.9381C19.542 7.8235 17.2836 5.22533 14.29 4.33256Z" })), Wf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
+}, C.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM9.71002 19.6674C8.74743 17.6259 8.15732 15.3742 8.02731 13H4.06189C4.458 16.1765 6.71639 18.7747 9.71002 19.6674ZM10.0307 13C10.1811 15.4388 10.8778 17.7297 12 19.752C13.1222 17.7297 13.8189 15.4388 13.9693 13H10.0307ZM19.9381 13H15.9727C15.8427 15.3742 15.2526 17.6259 14.29 19.6674C17.2836 18.7747 19.542 16.1765 19.9381 13ZM4.06189 11H8.02731C8.15732 8.62577 8.74743 6.37407 9.71002 4.33256C6.71639 5.22533 4.458 7.8235 4.06189 11ZM10.0307 11H13.9693C13.8189 8.56122 13.1222 6.27025 12 4.24799C10.8778 6.27025 10.1811 8.56122 10.0307 11ZM14.29 4.33256C15.2526 6.37407 15.8427 8.62577 15.9727 11H19.9381C19.542 7.8235 17.2836 5.22533 14.29 4.33256Z" })), qf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => C.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18731,7 +18731,7 @@ var Sf = /* @__PURE__ */ h(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, S.createElement("path", { d: "M5 14H19V4H5V14ZM5 16V20H19V16H5ZM4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2ZM15 17H17V19H15V17Z" })), Gf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
+}, C.createElement("path", { d: "M5 14H19V4H5V14ZM5 16V20H19V16H5ZM4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2ZM15 17H17V19H15V17Z" })), Jf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => C.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18739,7 +18739,7 @@ var Sf = /* @__PURE__ */ h(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, S.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" })), Kf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
+}, C.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" })), Yf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => C.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18747,7 +18747,7 @@ var Sf = /* @__PURE__ */ h(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, S.createElement("path", { d: "M2.9918 21C2.44405 21 2 20.5551 2 20.0066V3.9934C2 3.44476 2.45531 3 2.9918 3H21.0082C21.556 3 22 3.44495 22 3.9934V20.0066C22 20.5552 21.5447 21 21.0082 21H2.9918ZM20 15V5H4V19L14 9L20 15ZM20 17.8284L14 11.8284L6.82843 19H20V17.8284ZM8 11C6.89543 11 6 10.1046 6 9C6 7.89543 6.89543 7 8 7C9.10457 7 10 7.89543 10 9C10 10.1046 9.10457 11 8 11Z" })), qf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
+}, C.createElement("path", { d: "M2.9918 21C2.44405 21 2 20.5551 2 20.0066V3.9934C2 3.44476 2.45531 3 2.9918 3H21.0082C21.556 3 22 3.44495 22 3.9934V20.0066C22 20.5552 21.5447 21 21.0082 21H2.9918ZM20 15V5H4V19L14 9L20 15ZM20 17.8284L14 11.8284L6.82843 19H20V17.8284ZM8 11C6.89543 11 6 10.1046 6 9C6 7.89543 6.89543 7 8 7C9.10457 7 10 7.89543 10 9C10 10.1046 9.10457 11 8 11Z" })), Xf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => C.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18755,7 +18755,7 @@ var Sf = /* @__PURE__ */ h(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, S.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" })), Jf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
+}, C.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM11 11V17H13V11H11ZM11 7V9H13V7H11Z" })), Zf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => C.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18763,7 +18763,7 @@ var Sf = /* @__PURE__ */ h(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, S.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z" })), Yf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
+}, C.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z" })), Qf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => C.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18771,7 +18771,7 @@ var Sf = /* @__PURE__ */ h(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, S.createElement("path", { d: "M10.7577 11.8281L18.6066 3.97919L20.0208 5.3934L18.6066 6.80761L21.0815 9.28249L19.6673 10.6967L17.1924 8.22183L15.7782 9.63604L17.8995 11.7574L16.4853 13.1716L14.364 11.0503L12.1719 13.2423C13.4581 15.1837 13.246 17.8251 11.5355 19.5355C9.58291 21.4882 6.41709 21.4882 4.46447 19.5355C2.51184 17.5829 2.51184 14.4171 4.46447 12.4645C6.17493 10.754 8.81633 10.5419 10.7577 11.8281ZM10.1213 18.1213C11.2929 16.9497 11.2929 15.0503 10.1213 13.8787C8.94975 12.7071 7.05025 12.7071 5.87868 13.8787C4.70711 15.0503 4.70711 16.9497 5.87868 18.1213C7.05025 19.2929 8.94975 19.2929 10.1213 18.1213Z" })), Xf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
+}, C.createElement("path", { d: "M10.7577 11.8281L18.6066 3.97919L20.0208 5.3934L18.6066 6.80761L21.0815 9.28249L19.6673 10.6967L17.1924 8.22183L15.7782 9.63604L17.8995 11.7574L16.4853 13.1716L14.364 11.0503L12.1719 13.2423C13.4581 15.1837 13.246 17.8251 11.5355 19.5355C9.58291 21.4882 6.41709 21.4882 4.46447 19.5355C2.51184 17.5829 2.51184 14.4171 4.46447 12.4645C6.17493 10.754 8.81633 10.5419 10.7577 11.8281ZM10.1213 18.1213C11.2929 16.9497 11.2929 15.0503 10.1213 13.8787C8.94975 12.7071 7.05025 12.7071 5.87868 13.8787C4.70711 15.0503 4.70711 16.9497 5.87868 18.1213C7.05025 19.2929 8.94975 19.2929 10.1213 18.1213Z" })), $f = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => C.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18779,7 +18779,7 @@ var Sf = /* @__PURE__ */ h(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, S.createElement("path", { d: "M21 3C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H21ZM11 13H4V19H11V13ZM20 13H13V19H20V13ZM11 5H4V11H11V5ZM20 5H13V11H20V5Z" })), Zf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
+}, C.createElement("path", { d: "M21 3C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H21ZM11 13H4V19H11V13ZM20 13H13V19H20V13ZM11 5H4V11H11V5ZM20 5H13V11H20V5Z" })), ep = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => C.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18787,7 +18787,7 @@ var Sf = /* @__PURE__ */ h(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, S.createElement("path", { d: "M16.3944 12.0001L10 7.7371V16.263L16.3944 12.0001ZM19.376 12.4161L8.77735 19.4818C8.54759 19.635 8.23715 19.5729 8.08397 19.3432C8.02922 19.261 8 19.1645 8 19.0658V4.93433C8 4.65818 8.22386 4.43433 8.5 4.43433C8.59871 4.43433 8.69522 4.46355 8.77735 4.5183L19.376 11.584C19.6057 11.7372 19.6678 12.0477 19.5146 12.2774C19.478 12.3323 19.4309 12.3795 19.376 12.4161Z" })), Qf = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
+}, C.createElement("path", { d: "M16.3944 12.0001L10 7.7371V16.263L16.3944 12.0001ZM19.376 12.4161L8.77735 19.4818C8.54759 19.635 8.23715 19.5729 8.08397 19.3432C8.02922 19.261 8 19.1645 8 19.0658V4.93433C8 4.65818 8.22386 4.43433 8.5 4.43433C8.59871 4.43433 8.69522 4.46355 8.77735 4.5183L19.376 11.584C19.6057 11.7372 19.6678 12.0477 19.5146 12.2774C19.478 12.3323 19.4309 12.3795 19.376 12.4161Z" })), tp = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => C.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18795,7 +18795,7 @@ var Sf = /* @__PURE__ */ h(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, S.createElement("path", { d: "M10.9042 2.10025L20.8037 3.51446L22.2179 13.414L13.0255 22.6063C12.635 22.9969 12.0019 22.9969 11.6113 22.6063L1.71184 12.7069C1.32131 12.3163 1.32131 11.6832 1.71184 11.2926L10.9042 2.10025ZM11.6113 4.22157L3.83316 11.9997L12.3184 20.485L20.0966 12.7069L19.036 5.28223L11.6113 4.22157ZM13.7327 10.5855C12.9516 9.80448 12.9516 8.53815 13.7327 7.7571C14.5137 6.97606 15.78 6.97606 16.5611 7.7571C17.3421 8.53815 17.3421 9.80448 16.5611 10.5855C15.78 11.3666 14.5137 11.3666 13.7327 10.5855Z" })), $f = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
+}, C.createElement("path", { d: "M10.9042 2.10025L20.8037 3.51446L22.2179 13.414L13.0255 22.6063C12.635 22.9969 12.0019 22.9969 11.6113 22.6063L1.71184 12.7069C1.32131 12.3163 1.32131 11.6832 1.71184 11.2926L10.9042 2.10025ZM11.6113 4.22157L3.83316 11.9997L12.3184 20.485L20.0966 12.7069L19.036 5.28223L11.6113 4.22157ZM13.7327 10.5855C12.9516 9.80448 12.9516 8.53815 13.7327 7.7571C14.5137 6.97606 15.78 6.97606 16.5611 7.7571C17.3421 8.53815 17.3421 9.80448 16.5611 10.5855C15.78 11.3666 14.5137 11.3666 13.7327 10.5855Z" })), np = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => C.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18803,7 +18803,7 @@ var Sf = /* @__PURE__ */ h(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, S.createElement("path", { d: "M5.46257 4.43262C7.21556 2.91688 9.5007 2 12 2C17.5228 2 22 6.47715 22 12C22 14.1361 21.3302 16.1158 20.1892 17.7406L17 12H20C20 7.58172 16.4183 4 12 4C9.84982 4 7.89777 4.84827 6.46023 6.22842L5.46257 4.43262ZM18.5374 19.5674C16.7844 21.0831 14.4993 22 12 22C6.47715 22 2 17.5228 2 12C2 9.86386 2.66979 7.88416 3.8108 6.25944L7 12H4C4 16.4183 7.58172 20 12 20C14.1502 20 16.1022 19.1517 17.5398 17.7716L18.5374 19.5674Z" })), ep = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
+}, C.createElement("path", { d: "M5.46257 4.43262C7.21556 2.91688 9.5007 2 12 2C17.5228 2 22 6.47715 22 12C22 14.1361 21.3302 16.1158 20.1892 17.7406L17 12H20C20 7.58172 16.4183 4 12 4C9.84982 4 7.89777 4.84827 6.46023 6.22842L5.46257 4.43262ZM18.5374 19.5674C16.7844 21.0831 14.4993 22 12 22C6.47715 22 2 17.5228 2 12C2 9.86386 2.66979 7.88416 3.8108 6.25944L7 12H4C4 16.4183 7.58172 20 12 20C14.1502 20 16.1022 19.1517 17.5398 17.7716L18.5374 19.5674Z" })), rp = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => C.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18811,7 +18811,7 @@ var Sf = /* @__PURE__ */ h(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, S.createElement("path", { d: "M3 17C5.20914 17 7 18.7909 7 21H3V17ZM3 10C9.07513 10 14 14.9249 14 21H12C12 16.0294 7.97056 12 3 12V10ZM3 3C12.9411 3 21 11.0589 21 21H19C19 12.1634 11.8366 5 3 5V3Z" })), tp = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
+}, C.createElement("path", { d: "M3 17C5.20914 17 7 18.7909 7 21H3V17ZM3 10C9.07513 10 14 14.9249 14 21H12C12 16.0294 7.97056 12 3 12V10ZM3 3C12.9411 3 21 11.0589 21 21H19C19 12.1634 11.8366 5 3 5V3Z" })), ip = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => C.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18819,7 +18819,7 @@ var Sf = /* @__PURE__ */ h(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, S.createElement("path", { d: "M18.031 16.6168L22.3137 20.8995L20.8995 22.3137L16.6168 18.031C15.0769 19.263 13.124 20 11 20C6.032 20 2 15.968 2 11C2 6.032 6.032 2 11 2C15.968 2 20 6.032 20 11C20 13.124 19.263 15.0769 18.031 16.6168ZM16.0247 15.8748C17.2475 14.6146 18 12.8956 18 11C18 7.1325 14.8675 4 11 4C7.1325 4 4 7.1325 4 11C4 14.8675 7.1325 18 11 18C12.8956 18 14.6146 17.2475 15.8748 16.0247L16.0247 15.8748Z" })), np = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
+}, C.createElement("path", { d: "M18.031 16.6168L22.3137 20.8995L20.8995 22.3137L16.6168 18.031C15.0769 19.263 13.124 20 11 20C6.032 20 2 15.968 2 11C2 6.032 6.032 2 11 2C15.968 2 20 6.032 20 11C20 13.124 19.263 15.0769 18.031 16.6168ZM16.0247 15.8748C17.2475 14.6146 18 12.8956 18 11C18 7.1325 14.8675 4 11 4C7.1325 4 4 7.1325 4 11C4 14.8675 7.1325 18 11 18C12.8956 18 14.6146 17.2475 15.8748 16.0247L16.0247 15.8748Z" })), ap = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => C.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18827,7 +18827,7 @@ var Sf = /* @__PURE__ */ h(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, S.createElement("path", { d: "M4 8H20V5H4V8ZM14 19V10H10V19H14ZM16 19H20V10H16V19ZM8 19V10H4V19H8ZM3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3Z" })), rp = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
+}, C.createElement("path", { d: "M4 8H20V5H4V8ZM14 19V10H10V19H14ZM16 19H20V10H16V19ZM8 19V10H4V19H8ZM3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3Z" })), op = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => C.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18835,7 +18835,7 @@ var Sf = /* @__PURE__ */ h(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, S.createElement("path", { d: "M9.40017 16H3C1.89543 16 1 15.1046 1 14V11.8957C1 11.6344 1.05118 11.3757 1.15064 11.1342L4.24501 3.61925C4.3993 3.24455 4.76447 3 5.16969 3H22C22.5523 3 23 3.44772 23 4V14C23 14.5523 22.5523 15 22 15H18.5182C18.1932 15 17.8886 15.1579 17.7012 15.4233L12.2478 23.149C12.1053 23.3508 11.8367 23.4184 11.6157 23.3078L9.80163 22.4008C8.74998 21.875 8.20687 20.6874 8.49694 19.548L9.40017 16ZM17 13.4125V5H5.83939L3 11.8957V14H9.40017C10.7049 14 11.6602 15.229 11.3384 16.4934L10.4351 20.0414C10.3771 20.2693 10.4857 20.5068 10.6961 20.612L11.3572 20.9425L16.0673 14.27C16.3172 13.9159 16.6366 13.6257 17 13.4125ZM19 13H21V5H19V13Z" })), ip = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
+}, C.createElement("path", { d: "M9.40017 16H3C1.89543 16 1 15.1046 1 14V11.8957C1 11.6344 1.05118 11.3757 1.15064 11.1342L4.24501 3.61925C4.3993 3.24455 4.76447 3 5.16969 3H22C22.5523 3 23 3.44772 23 4V14C23 14.5523 22.5523 15 22 15H18.5182C18.1932 15 17.8886 15.1579 17.7012 15.4233L12.2478 23.149C12.1053 23.3508 11.8367 23.4184 11.6157 23.3078L9.80163 22.4008C8.74998 21.875 8.20687 20.6874 8.49694 19.548L9.40017 16ZM17 13.4125V5H5.83939L3 11.8957V14H9.40017C10.7049 14 11.6602 15.229 11.3384 16.4934L10.4351 20.0414C10.3771 20.2693 10.4857 20.5068 10.6961 20.612L11.3572 20.9425L16.0673 14.27C16.3172 13.9159 16.6366 13.6257 17 13.4125ZM19 13H21V5H19V13Z" })), sp = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => C.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18843,7 +18843,7 @@ var Sf = /* @__PURE__ */ h(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, S.createElement("path", { d: "M14.5998 8.00033H21C22.1046 8.00033 23 8.89576 23 10.0003V12.1047C23 12.3659 22.9488 12.6246 22.8494 12.8662L19.755 20.3811C19.6007 20.7558 19.2355 21.0003 18.8303 21.0003H2C1.44772 21.0003 1 20.5526 1 20.0003V10.0003C1 9.44804 1.44772 9.00033 2 9.00033H5.48184C5.80677 9.00033 6.11143 8.84246 6.29881 8.57701L11.7522 0.851355C11.8947 0.649486 12.1633 0.581978 12.3843 0.692483L14.1984 1.59951C15.25 2.12534 15.7931 3.31292 15.5031 4.45235L14.5998 8.00033ZM7 10.5878V19.0003H18.1606L21 12.1047V10.0003H14.5998C13.2951 10.0003 12.3398 8.77128 12.6616 7.50691L13.5649 3.95894C13.6229 3.73105 13.5143 3.49353 13.3039 3.38837L12.6428 3.0578L7.93275 9.73038C7.68285 10.0844 7.36341 10.3746 7 10.5878ZM5 11.0003H3V19.0003H5V11.0003Z" })), ap = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
+}, C.createElement("path", { d: "M14.5998 8.00033H21C22.1046 8.00033 23 8.89576 23 10.0003V12.1047C23 12.3659 22.9488 12.6246 22.8494 12.8662L19.755 20.3811C19.6007 20.7558 19.2355 21.0003 18.8303 21.0003H2C1.44772 21.0003 1 20.5526 1 20.0003V10.0003C1 9.44804 1.44772 9.00033 2 9.00033H5.48184C5.80677 9.00033 6.11143 8.84246 6.29881 8.57701L11.7522 0.851355C11.8947 0.649486 12.1633 0.581978 12.3843 0.692483L14.1984 1.59951C15.25 2.12534 15.7931 3.31292 15.5031 4.45235L14.5998 8.00033ZM7 10.5878V19.0003H18.1606L21 12.1047V10.0003H14.5998C13.2951 10.0003 12.3398 8.77128 12.6616 7.50691L13.5649 3.95894C13.6229 3.73105 13.5143 3.49353 13.3039 3.38837L12.6428 3.0578L7.93275 9.73038C7.68285 10.0844 7.36341 10.3746 7 10.5878ZM5 11.0003H3V19.0003H5V11.0003Z" })), cp = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => C.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18851,7 +18851,7 @@ var Sf = /* @__PURE__ */ h(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, S.createElement("path", { d: "M3 19H21V21H3V19ZM13 5.82843V17H11V5.82843L4.92893 11.8995L3.51472 10.4853L12 2L20.4853 10.4853L19.0711 11.8995L13 5.82843Z" })), op = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
+}, C.createElement("path", { d: "M3 19H21V21H3V19ZM13 5.82843V17H11V5.82843L4.92893 11.8995L3.51472 10.4853L12 2L20.4853 10.4853L19.0711 11.8995L13 5.82843Z" })), lp = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => C.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18859,7 +18859,7 @@ var Sf = /* @__PURE__ */ h(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, S.createElement("path", { d: "M4 22C4 17.5817 7.58172 14 12 14C16.4183 14 20 17.5817 20 22H18C18 18.6863 15.3137 16 12 16C8.68629 16 6 18.6863 6 22H4ZM12 13C8.685 13 6 10.315 6 7C6 3.685 8.685 1 12 1C15.315 1 18 3.685 18 7C18 10.315 15.315 13 12 13ZM12 11C14.21 11 16 9.21 16 7C16 4.79 14.21 3 12 3C9.79 3 8 4.79 8 7C8 9.21 9.79 11 12 11Z" })), sp = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
+}, C.createElement("path", { d: "M4 22C4 17.5817 7.58172 14 12 14C16.4183 14 20 17.5817 20 22H18C18 18.6863 15.3137 16 12 16C8.68629 16 6 18.6863 6 22H4ZM12 13C8.685 13 6 10.315 6 7C6 3.685 8.685 1 12 1C15.315 1 18 3.685 18 7C18 10.315 15.315 13 12 13ZM12 11C14.21 11 16 9.21 16 7C16 4.79 14.21 3 12 3C9.79 3 8 4.79 8 7C8 9.21 9.79 11 12 11Z" })), up = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => C.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18867,7 +18867,7 @@ var Sf = /* @__PURE__ */ h(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, S.createElement("path", { d: "M3 3.9934C3 3.44476 3.44495 3 3.9934 3H20.0066C20.5552 3 21 3.44495 21 3.9934V20.0066C21 20.5552 20.5551 21 20.0066 21H3.9934C3.44476 21 3 20.5551 3 20.0066V3.9934ZM5 5V19H19V5H5ZM10.6219 8.41459L15.5008 11.6672C15.6846 11.7897 15.7343 12.0381 15.6117 12.2219C15.5824 12.2658 15.5447 12.3035 15.5008 12.3328L10.6219 15.5854C10.4381 15.708 10.1897 15.6583 10.0672 15.4745C10.0234 15.4088 10 15.3316 10 15.2526V8.74741C10 8.52649 10.1791 8.34741 10.4 8.34741C10.479 8.34741 10.5562 8.37078 10.6219 8.41459Z" })), cp = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
+}, C.createElement("path", { d: "M3 3.9934C3 3.44476 3.44495 3 3.9934 3H20.0066C20.5552 3 21 3.44495 21 3.9934V20.0066C21 20.5552 20.5551 21 20.0066 21H3.9934C3.44476 21 3 20.5551 3 20.0066V3.9934ZM5 5V19H19V5H5ZM10.6219 8.41459L15.5008 11.6672C15.6846 11.7897 15.7343 12.0381 15.6117 12.2219C15.5824 12.2658 15.5447 12.3035 15.5008 12.3328L10.6219 15.5854C10.4381 15.708 10.1897 15.6583 10.0672 15.4745C10.0234 15.4088 10 15.3316 10 15.2526V8.74741C10 8.52649 10.1791 8.34741 10.4 8.34741C10.479 8.34741 10.5562 8.37078 10.6219 8.41459Z" })), dp = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => C.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -18875,100 +18875,100 @@ var Sf = /* @__PURE__ */ h(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, S.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" })), lp = (e, t) => {
+}, C.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" })), fp = (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;
-}, up = (e, t) => ({
+}, pp = (e, t) => ({
classGroupId: e,
validator: t
-}), dp = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
+}), mp = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
nextPart: e,
validators: t,
classGroupId: n
-}), fp = "-", pp = [], mp = "arbitrary..", hp = (e) => {
- let t = vp(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
+}), hp = "-", gp = [], _p = "arbitrary..", vp = (e) => {
+ let t = xp(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
return {
getClassGroupId: (e) => {
- if (e.startsWith("[") && e.endsWith("]")) return _p(e);
- let n = e.split(fp);
- return gp(n, +(n[0] === "" && n.length > 1), t);
+ if (e.startsWith("[") && e.endsWith("]")) return bp(e);
+ let n = e.split(hp);
+ return yp(n, +(n[0] === "" && n.length > 1), t);
},
getConflictingClassGroupIds: (e, t) => {
if (t) {
let t = r[e], i = n[e];
- return t ? i ? lp(i, t) : t : i || pp;
+ return t ? i ? fp(i, t) : t : i || gp;
}
- return n[e] || pp;
+ return n[e] || gp;
}
};
-}, gp = (e, t, n) => {
+}, yp = (e, t, n) => {
if (e.length - t === 0) return n.classGroupId;
let r = e[t], i = n.nextPart.get(r);
if (i) {
- let n = gp(e, t + 1, i);
+ let n = yp(e, t + 1, i);
if (n) return n;
}
let a = n.validators;
if (a === null) return;
- let o = t === 0 ? e.join(fp) : e.slice(t).join(fp), s = a.length;
+ let o = t === 0 ? e.join(hp) : e.slice(t).join(hp), s = a.length;
for (let e = 0; e < s; e++) {
let t = a[e];
if (t.validator(o)) return t.classGroupId;
}
-}, _p = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
+}, bp = (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 ? mp + r : void 0;
-})(), vp = (e) => {
+ return r ? _p + r : void 0;
+})(), xp = (e) => {
let { theme: t, classGroups: n } = e;
- return yp(n, t);
-}, yp = (e, t) => {
- let n = dp();
+ return Sp(n, t);
+}, Sp = (e, t) => {
+ let n = mp();
for (let r in e) {
let i = e[r];
- bp(i, n, r, t);
+ Cp(i, n, r, t);
}
return n;
-}, bp = (e, t, n, r) => {
+}, Cp = (e, t, n, r) => {
let i = e.length;
for (let a = 0; a < i; a++) {
let i = e[a];
- xp(i, t, n, r);
+ wp(i, t, n, r);
}
-}, xp = (e, t, n, r) => {
+}, wp = (e, t, n, r) => {
if (typeof e == "string") {
- Sp(e, t, n);
+ Tp(e, t, n);
return;
}
if (typeof e == "function") {
- Cp(e, t, n, r);
+ Ep(e, t, n, r);
return;
}
- wp(e, t, n, r);
-}, Sp = (e, t, n) => {
- let r = e === "" ? t : Tp(t, e);
+ Dp(e, t, n, r);
+}, Tp = (e, t, n) => {
+ let r = e === "" ? t : Op(t, e);
r.classGroupId = n;
-}, Cp = (e, t, n, r) => {
- if (Ep(e)) {
- bp(e(r), t, n, r);
+}, Ep = (e, t, n, r) => {
+ if (kp(e)) {
+ Cp(e(r), t, n, r);
return;
}
- t.validators === null && (t.validators = []), t.validators.push(up(n, e));
-}, wp = (e, t, n, r) => {
+ t.validators === null && (t.validators = []), t.validators.push(pp(n, e));
+}, Dp = (e, t, n, r) => {
let i = Object.entries(e), a = i.length;
for (let e = 0; e < a; e++) {
let [a, o] = i[e];
- bp(o, Tp(t, a), n, r);
+ Cp(o, Op(t, a), n, r);
}
-}, Tp = (e, t) => {
- let n = e, r = t.split(fp), i = r.length;
+}, Op = (e, t) => {
+ let n = e, r = t.split(hp), i = r.length;
for (let e = 0; e < i; e++) {
let t = r[e], i = n.nextPart.get(t);
- i || (i = dp(), n.nextPart.set(t, i)), n = i;
+ i || (i = mp(), n.nextPart.set(t, i)), n = i;
}
return n;
-}, Ep = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, Dp = (e) => {
+}, kp = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, Ap = (e) => {
if (e < 1) return {
get: () => void 0,
set: () => {}
@@ -18986,19 +18986,19 @@ var Sf = /* @__PURE__ */ h(((e) => {
e in n ? n[e] = t : i(e, t);
}
};
-}, Op = "!", kp = ":", Ap = [], jp = (e, t, n, r, i) => ({
+}, jp = "!", Mp = ":", Np = [], Pp = (e, t, n, r, i) => ({
modifiers: e,
hasImportantModifier: t,
baseClassName: n,
maybePostfixModifierPosition: r,
isExternal: i
-}), Mp = (e) => {
+}), Fp = (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 === kp) {
+ if (o === Mp) {
t.push(e.slice(i, s)), i = s + 1;
continue;
}
@@ -19010,13 +19010,13 @@ var Sf = /* @__PURE__ */ h(((e) => {
o === "[" ? n++ : o === "]" ? n-- : o === "(" ? r++ : o === ")" && r--;
}
let s = t.length === 0 ? e : e.slice(i), c = s, l = !1;
- s.endsWith(Op) ? (c = s.slice(0, -1), l = !0) : s.startsWith(Op) && (c = s.slice(1), l = !0);
+ s.endsWith(jp) ? (c = s.slice(0, -1), l = !0) : s.startsWith(jp) && (c = s.slice(1), l = !0);
let u = a && a > i ? a - i : void 0;
- return jp(t, l, c, u);
+ return Pp(t, l, c, u);
};
if (t) {
- let e = t + kp, n = r;
- r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : jp(Ap, !1, t, void 0, !0);
+ let e = t + Mp, n = r;
+ r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : Pp(Np, !1, t, void 0, !0);
}
if (n) {
let e = r;
@@ -19026,7 +19026,7 @@ var Sf = /* @__PURE__ */ h(((e) => {
});
}
return r;
-}, Np = (e) => {
+}, Ip = (e) => {
let t = /* @__PURE__ */ new Map();
return e.orderSensitiveModifiers.forEach((e, n) => {
t.set(e, 1e6 + n);
@@ -19038,18 +19038,18 @@ var Sf = /* @__PURE__ */ h(((e) => {
}
return r.length > 0 && (r.sort(), n.push(...r)), n;
};
-}, Pp = (e) => ({
- cache: Dp(e.cacheSize),
- parseClassName: Mp(e),
- sortModifiers: Np(e),
- postfixLookupClassGroupIds: Fp(e),
- ...hp(e)
-}), Fp = (e) => {
+}, Lp = (e) => ({
+ cache: Ap(e.cacheSize),
+ parseClassName: Fp(e),
+ sortModifiers: Ip(e),
+ postfixLookupClassGroupIds: Rp(e),
+ ...vp(e)
+}), Rp = (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;
-}, Ip = /\s+/, Lp = (e, t) => {
- let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(Ip), l = "";
+}, zp = /\s+/, Bp = (e, t) => {
+ let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(zp), 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) {
@@ -19073,7 +19073,7 @@ var Sf = /* @__PURE__ */ h(((e) => {
}
h = !1;
}
- let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + Op : _, y = v + g;
+ let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + jp : _, y = v + g;
if (s.indexOf(y) > -1) continue;
s.push(y);
let b = i(g, h);
@@ -19084,34 +19084,34 @@ var Sf = /* @__PURE__ */ h(((e) => {
l = t + (l.length > 0 ? " " + l : l);
}
return l;
-}, Rp = (...e) => {
+}, Vp = (...e) => {
let t = 0, n, r, i = "";
- for (; t < e.length;) (n = e[t++]) && (r = zp(n)) && (i && (i += " "), i += r);
+ for (; t < e.length;) (n = e[t++]) && (r = Hp(n)) && (i && (i += " "), i += r);
return i;
-}, zp = (e) => {
+}, Hp = (e) => {
if (typeof e == "string") return e;
let t, n = "";
- for (let r = 0; r < e.length; r++) e[r] && (t = zp(e[r])) && (n && (n += " "), n += t);
+ for (let r = 0; r < e.length; r++) e[r] && (t = Hp(e[r])) && (n && (n += " "), n += t);
return n;
-}, Bp = (e, ...t) => {
- let n, r, i, a, o = (o) => (n = Pp(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
+}, Up = (e, ...t) => {
+ let n, r, i, a, o = (o) => (n = Lp(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 = Lp(e, n);
+ let a = Bp(e, n);
return i(e, a), a;
};
- return a = o, (...e) => a(Rp(...e));
-}, Vp = [], Hp = (e) => {
- let t = (t) => t[e] || Vp;
+ return a = o, (...e) => a(Vp(...e));
+}, Wp = [], Gp = (e) => {
+ let t = (t) => t[e] || Wp;
return t.isThemeGetter = !0, t.themeKey = e, t;
-}, Up = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Wp = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Gp = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, Kp = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, qp = /\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$/, Jp = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, Yp = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Xp = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Zp = (e) => Gp.test(e), Qp = (e) => !!e && !Number.isNaN(Number(e)), $p = (e) => !!e && Number.isInteger(Number(e)), em = (e) => e.endsWith("%") && Qp(e.slice(0, -1)), tm = (e) => Kp.test(e), nm = () => !0, rm = (e) => qp.test(e) && !Jp.test(e), im = () => !1, am = (e) => Yp.test(e), om = (e) => Xp.test(e), sm = (e) => !K(e) && !q(e), cm = (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)), lm = (e) => wm(e, Om, im), K = (e) => Up.test(e), um = (e) => wm(e, km, rm), dm = (e) => wm(e, Am, Qp), fm = (e) => wm(e, Mm, nm), pm = (e) => wm(e, jm, im), mm = (e) => wm(e, Em, im), hm = (e) => wm(e, Dm, om), gm = (e) => wm(e, Nm, am), q = (e) => Wp.test(e), _m = (e) => Tm(e, km), vm = (e) => Tm(e, jm), ym = (e) => Tm(e, Em), bm = (e) => Tm(e, Om), xm = (e) => Tm(e, Dm), Sm = (e) => Tm(e, Nm, !0), Cm = (e) => Tm(e, Mm, !0), wm = (e, t, n) => {
- let r = Up.exec(e);
+}, Kp = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, qp = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Jp = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, Yp = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Xp = /\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$/, Zp = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, Qp = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, $p = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, em = (e) => Jp.test(e), tm = (e) => !!e && !Number.isNaN(Number(e)), nm = (e) => !!e && Number.isInteger(Number(e)), rm = (e) => e.endsWith("%") && tm(e.slice(0, -1)), im = (e) => Yp.test(e), am = () => !0, om = (e) => Xp.test(e) && !Zp.test(e), sm = () => !1, cm = (e) => Qp.test(e), lm = (e) => $p.test(e), um = (e) => !W(e) && !G(e), dm = (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)), fm = (e) => Dm(e, jm, sm), W = (e) => Kp.test(e), pm = (e) => Dm(e, Mm, om), mm = (e) => Dm(e, Nm, tm), hm = (e) => Dm(e, Fm, am), gm = (e) => Dm(e, Pm, sm), _m = (e) => Dm(e, km, sm), vm = (e) => Dm(e, Am, lm), ym = (e) => Dm(e, Im, cm), G = (e) => qp.test(e), bm = (e) => Om(e, Mm), xm = (e) => Om(e, Pm), Sm = (e) => Om(e, km), Cm = (e) => Om(e, jm), wm = (e) => Om(e, Am), Tm = (e) => Om(e, Im, !0), Em = (e) => Om(e, Fm, !0), Dm = (e, t, n) => {
+ let r = Kp.exec(e);
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
-}, Tm = (e, t, n = !1) => {
- let r = Wp.exec(e);
+}, Om = (e, t, n = !1) => {
+ let r = qp.exec(e);
return r ? r[1] ? t(r[1]) : n : !1;
-}, Em = (e) => e === "position" || e === "percentage", Dm = (e) => e === "image" || e === "url", Om = (e) => e === "length" || e === "size" || e === "bg-size", km = (e) => e === "length", Am = (e) => e === "number", jm = (e) => e === "family-name", Mm = (e) => e === "number" || e === "weight", Nm = (e) => e === "shadow", Pm = () => {
- let e = Hp("color"), t = Hp("font"), n = Hp("text"), r = Hp("font-weight"), i = Hp("tracking"), a = Hp("leading"), o = Hp("breakpoint"), s = Hp("container"), c = Hp("spacing"), l = Hp("radius"), u = Hp("shadow"), d = Hp("inset-shadow"), f = Hp("text-shadow"), p = Hp("drop-shadow"), m = Hp("blur"), h = Hp("perspective"), g = Hp("aspect"), _ = Hp("ease"), v = Hp("animate"), y = () => [
+}, km = (e) => e === "position" || e === "percentage", Am = (e) => e === "image" || e === "url", jm = (e) => e === "length" || e === "size" || e === "bg-size", Mm = (e) => e === "length", Nm = (e) => e === "number", Pm = (e) => e === "family-name", Fm = (e) => e === "number" || e === "weight", Im = (e) => e === "shadow", Lm = () => {
+ let e = Gp("color"), t = Gp("font"), n = Gp("text"), r = Gp("font-weight"), i = Gp("tracking"), a = Gp("leading"), o = Gp("breakpoint"), s = Gp("container"), c = Gp("spacing"), l = Gp("radius"), u = Gp("shadow"), d = Gp("inset-shadow"), f = Gp("text-shadow"), p = Gp("drop-shadow"), m = Gp("blur"), h = Gp("perspective"), g = Gp("aspect"), _ = Gp("ease"), v = Gp("animate"), y = () => [
"auto",
"avoid",
"all",
@@ -19136,8 +19136,8 @@ var Sf = /* @__PURE__ */ h(((e) => {
"left-bottom"
], x = () => [
...b(),
- q,
- K
+ G,
+ W
], S = () => [
"auto",
"hidden",
@@ -19149,43 +19149,43 @@ var Sf = /* @__PURE__ */ h(((e) => {
"contain",
"none"
], w = () => [
- q,
- K,
+ G,
+ W,
c
], T = () => [
- Zp,
+ em,
"full",
"auto",
...w()
], E = () => [
- $p,
+ nm,
"none",
"subgrid",
- q,
- K
+ G,
+ W
], D = () => [
"auto",
{ span: [
"full",
- $p,
- q,
- K
+ nm,
+ G,
+ W
] },
- $p,
- q,
- K
+ nm,
+ G,
+ W
], O = () => [
- $p,
+ nm,
"auto",
- q,
- K
+ G,
+ W
], k = () => [
"auto",
"min",
"max",
"fr",
- q,
- K
+ G,
+ W
], A = () => [
"start",
"end",
@@ -19205,7 +19205,7 @@ var Sf = /* @__PURE__ */ h(((e) => {
"center-safe",
"end-safe"
], M = () => ["auto", ...w()], N = () => [
- Zp,
+ em,
"auto",
"full",
"dvw",
@@ -19220,7 +19220,7 @@ var Sf = /* @__PURE__ */ h(((e) => {
...w()
], ee = () => [
s,
- Zp,
+ em,
"screen",
"full",
"dvw",
@@ -19231,7 +19231,7 @@ var Sf = /* @__PURE__ */ h(((e) => {
"fit",
...w()
], P = () => [
- Zp,
+ em,
"screen",
"full",
"lh",
@@ -19244,13 +19244,13 @@ var Sf = /* @__PURE__ */ h(((e) => {
...w()
], F = () => [
e,
- q,
- K
+ G,
+ W
], te = () => [
...b(),
- ym,
- mm,
- { position: [q, K] }
+ Sm,
+ _m,
+ { position: [G, W] }
], ne = () => ["no-repeat", { repeat: [
"",
"x",
@@ -19261,25 +19261,25 @@ var Sf = /* @__PURE__ */ h(((e) => {
"auto",
"cover",
"contain",
- bm,
- lm,
- { size: [q, K] }
+ Cm,
+ fm,
+ { size: [G, W] }
], ie = () => [
- em,
- _m,
- um
+ rm,
+ bm,
+ pm
], ae = () => [
"",
"none",
"full",
l,
- q,
- K
+ G,
+ W
], oe = () => [
"",
- Qp,
- _m,
- um
+ tm,
+ bm,
+ pm
], se = () => [
"solid",
"dashed",
@@ -19303,32 +19303,32 @@ var Sf = /* @__PURE__ */ h(((e) => {
"color",
"luminosity"
], le = () => [
- Qp,
- em,
- ym,
- mm
+ tm,
+ rm,
+ Sm,
+ _m
], ue = () => [
"",
"none",
m,
- q,
- K
+ G,
+ W
], de = () => [
"none",
- Qp,
- q,
- K
+ tm,
+ G,
+ W
], fe = () => [
"none",
- Qp,
- q,
- K
+ tm,
+ G,
+ W
], I = () => [
- Qp,
- q,
- K
+ tm,
+ G,
+ W
], L = () => [
- Zp,
+ em,
"full",
...w()
];
@@ -19342,17 +19342,17 @@ var Sf = /* @__PURE__ */ h(((e) => {
"bounce"
],
aspect: ["video"],
- blur: [tm],
- breakpoint: [tm],
- color: [nm],
- container: [tm],
- "drop-shadow": [tm],
+ blur: [im],
+ breakpoint: [im],
+ color: [am],
+ container: [im],
+ "drop-shadow": [im],
ease: [
"in",
"out",
"in-out"
],
- font: [sm],
+ font: [um],
"font-weight": [
"thin",
"extralight",
@@ -19364,7 +19364,7 @@ var Sf = /* @__PURE__ */ h(((e) => {
"extrabold",
"black"
],
- "inset-shadow": [tm],
+ "inset-shadow": [im],
leading: [
"none",
"tight",
@@ -19381,11 +19381,11 @@ var Sf = /* @__PURE__ */ h(((e) => {
"distant",
"none"
],
- radius: [tm],
- shadow: [tm],
- spacing: ["px", Qp],
- text: [tm],
- "text-shadow": [tm],
+ radius: [im],
+ shadow: [im],
+ spacing: ["px", tm],
+ text: [im],
+ "text-shadow": [im],
tracking: [
"tighter",
"tight",
@@ -19399,9 +19399,9 @@ var Sf = /* @__PURE__ */ h(((e) => {
aspect: [{ aspect: [
"auto",
"square",
- Zp,
- K,
- q,
+ em,
+ W,
+ G,
g
] }],
container: ["container"],
@@ -19409,15 +19409,15 @@ var Sf = /* @__PURE__ */ h(((e) => {
"",
"normal",
"size",
- q,
- K
+ G,
+ W
] }],
- "container-named": [cm],
+ "container-named": [dm],
columns: [{ columns: [
- Qp,
+ tm,
"auto",
- K,
- q,
+ W,
+ G,
s
] }],
"break-after": [{ "break-after": y() }],
@@ -19514,13 +19514,13 @@ var Sf = /* @__PURE__ */ h(((e) => {
"collapse"
],
z: [{ z: [
- $p,
+ nm,
"auto",
- q,
- K
+ G,
+ W
] }],
basis: [{ basis: [
- Zp,
+ em,
"full",
"auto",
s,
@@ -19538,32 +19538,32 @@ var Sf = /* @__PURE__ */ h(((e) => {
"wrap-reverse"
] }],
flex: [{ flex: [
- Qp,
- Zp,
+ tm,
+ em,
"auto",
"initial",
"none",
- K
+ W
] }],
grow: [{ grow: [
"",
- Qp,
- q,
- K
+ tm,
+ G,
+ W
] }],
shrink: [{ shrink: [
"",
- Qp,
- q,
- K
+ tm,
+ G,
+ W
] }],
order: [{ order: [
- $p,
+ nm,
"first",
"last",
"none",
- q,
- K
+ G,
+ W
] }],
"grid-cols": [{ "grid-cols": E() }],
"col-start-end": [{ col: D() }],
@@ -19670,15 +19670,15 @@ var Sf = /* @__PURE__ */ h(((e) => {
"font-size": [{ text: [
"base",
n,
- _m,
- um
+ bm,
+ pm
] }],
"font-smoothing": ["antialiased", "subpixel-antialiased"],
"font-style": ["italic", "not-italic"],
"font-weight": [{ font: [
r,
- Cm,
- fm
+ Em,
+ hm
] }],
"font-stretch": [{ "font-stretch": [
"ultra-condensed",
@@ -19690,15 +19690,15 @@ var Sf = /* @__PURE__ */ h(((e) => {
"expanded",
"extra-expanded",
"ultra-expanded",
- em,
- K
+ rm,
+ W
] }],
"font-family": [{ font: [
- vm,
- pm,
+ xm,
+ gm,
t
] }],
- "font-features": [{ "font-features": [K] }],
+ "font-features": [{ "font-features": [W] }],
"fvn-normal": ["normal-nums"],
"fvn-ordinal": ["ordinal"],
"fvn-slashed-zero": ["slashed-zero"],
@@ -19707,14 +19707,14 @@ var Sf = /* @__PURE__ */ h(((e) => {
"fvn-fraction": ["diagonal-fractions", "stacked-fractions"],
tracking: [{ tracking: [
i,
- q,
- K
+ G,
+ W
] }],
"line-clamp": [{ "line-clamp": [
- Qp,
+ tm,
"none",
- q,
- dm
+ G,
+ mm
] }],
leading: [{ leading: [
"none",
@@ -19723,16 +19723,16 @@ var Sf = /* @__PURE__ */ h(((e) => {
] }],
"list-image": [{ "list-image": [
"none",
- q,
- K
+ G,
+ W
] }],
"list-style-position": [{ list: ["inside", "outside"] }],
"list-style-type": [{ list: [
"disc",
"decimal",
"none",
- q,
- K
+ G,
+ W
] }],
"text-alignment": [{ text: [
"left",
@@ -19752,18 +19752,18 @@ var Sf = /* @__PURE__ */ h(((e) => {
],
"text-decoration-style": [{ decoration: [...se(), "wavy"] }],
"text-decoration-thickness": [{ decoration: [
- Qp,
+ tm,
"from-font",
"auto",
- q,
- um
+ G,
+ pm
] }],
"text-decoration-color": [{ decoration: F() }],
"underline-offset": [{ "underline-offset": [
- Qp,
+ tm,
"auto",
- q,
- K
+ G,
+ W
] }],
"text-transform": [
"uppercase",
@@ -19784,9 +19784,9 @@ var Sf = /* @__PURE__ */ h(((e) => {
] }],
indent: [{ indent: w() }],
"tab-size": [{ tab: [
- $p,
- q,
- K
+ nm,
+ G,
+ W
] }],
"vertical-align": [{ align: [
"baseline",
@@ -19797,8 +19797,8 @@ var Sf = /* @__PURE__ */ h(((e) => {
"text-bottom",
"sub",
"super",
- q,
- K
+ G,
+ W
] }],
whitespace: [{ whitespace: [
"normal",
@@ -19826,8 +19826,8 @@ var Sf = /* @__PURE__ */ h(((e) => {
] }],
content: [{ content: [
"none",
- q,
- K
+ G,
+ W
] }],
"bg-attachment": [{ bg: [
"fixed",
@@ -19862,24 +19862,24 @@ var Sf = /* @__PURE__ */ h(((e) => {
"l",
"tl"
] },
- $p,
- q,
- K
+ nm,
+ G,
+ W
],
radial: [
"",
- q,
- K
+ G,
+ W
],
conic: [
"",
- $p,
- q,
- K
+ nm,
+ G,
+ W
]
},
- xm,
- hm
+ wm,
+ vm
] }],
"bg-color": [{ bg: F() }],
"gradient-from-pos": [{ from: ie() }],
@@ -19946,15 +19946,15 @@ var Sf = /* @__PURE__ */ h(((e) => {
"hidden"
] }],
"outline-offset": [{ "outline-offset": [
- Qp,
- q,
- K
+ tm,
+ G,
+ W
] }],
"outline-w": [{ outline: [
"",
- Qp,
- _m,
- um
+ tm,
+ bm,
+ pm
] }],
"outline-color": [{ outline: F() }],
shadow: [{ shadow: [
@@ -19962,35 +19962,35 @@ var Sf = /* @__PURE__ */ h(((e) => {
"inner",
"none",
u,
- Sm,
- gm
+ Tm,
+ ym
] }],
"shadow-color": [{ shadow: F() }],
"inset-shadow": [{ "inset-shadow": [
"none",
d,
- Sm,
- gm
+ Tm,
+ ym
] }],
"inset-shadow-color": [{ "inset-shadow": F() }],
"ring-w": [{ ring: oe() }],
"ring-w-inset": ["ring-inset"],
"ring-color": [{ ring: F() }],
- "ring-offset-w": [{ "ring-offset": [Qp, um] }],
+ "ring-offset-w": [{ "ring-offset": [tm, pm] }],
"ring-offset-color": [{ "ring-offset": F() }],
"inset-ring-w": [{ "inset-ring": oe() }],
"inset-ring-color": [{ "inset-ring": F() }],
"text-shadow": [{ "text-shadow": [
"none",
f,
- Sm,
- gm
+ Tm,
+ ym
] }],
"text-shadow-color": [{ "text-shadow": F() }],
opacity: [{ opacity: [
- Qp,
- q,
- K
+ tm,
+ G,
+ W
] }],
"mix-blend": [{ "mix-blend": [
...ce(),
@@ -20012,7 +20012,7 @@ var Sf = /* @__PURE__ */ h(((e) => {
"intersect",
"exclude"
] }],
- "mask-image-linear-pos": [{ "mask-linear": [Qp] }],
+ "mask-image-linear-pos": [{ "mask-linear": [tm] }],
"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": F() }],
@@ -20041,7 +20041,7 @@ var Sf = /* @__PURE__ */ h(((e) => {
"mask-image-y-to-pos": [{ "mask-y-to": le() }],
"mask-image-y-from-color": [{ "mask-y-from": F() }],
"mask-image-y-to-color": [{ "mask-y-to": F() }],
- "mask-image-radial": [{ "mask-radial": [q, K] }],
+ "mask-image-radial": [{ "mask-radial": [G, W] }],
"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": F() }],
@@ -20052,7 +20052,7 @@ var Sf = /* @__PURE__ */ h(((e) => {
farthest: ["side", "corner"]
}] }],
"mask-image-radial-pos": [{ "mask-radial-at": b() }],
- "mask-image-conic-pos": [{ "mask-conic": [Qp] }],
+ "mask-image-conic-pos": [{ "mask-conic": [tm] }],
"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": F() }],
@@ -20076,111 +20076,111 @@ var Sf = /* @__PURE__ */ h(((e) => {
"mask-type": [{ "mask-type": ["alpha", "luminance"] }],
"mask-image": [{ mask: [
"none",
- q,
- K
+ G,
+ W
] }],
filter: [{ filter: [
"",
"none",
- q,
- K
+ G,
+ W
] }],
blur: [{ blur: ue() }],
brightness: [{ brightness: [
- Qp,
- q,
- K
+ tm,
+ G,
+ W
] }],
contrast: [{ contrast: [
- Qp,
- q,
- K
+ tm,
+ G,
+ W
] }],
"drop-shadow": [{ "drop-shadow": [
"",
"none",
p,
- Sm,
- gm
+ Tm,
+ ym
] }],
"drop-shadow-color": [{ "drop-shadow": F() }],
grayscale: [{ grayscale: [
"",
- Qp,
- q,
- K
+ tm,
+ G,
+ W
] }],
"hue-rotate": [{ "hue-rotate": [
- Qp,
- q,
- K
+ tm,
+ G,
+ W
] }],
invert: [{ invert: [
"",
- Qp,
- q,
- K
+ tm,
+ G,
+ W
] }],
saturate: [{ saturate: [
- Qp,
- q,
- K
+ tm,
+ G,
+ W
] }],
sepia: [{ sepia: [
"",
- Qp,
- q,
- K
+ tm,
+ G,
+ W
] }],
"backdrop-filter": [{ "backdrop-filter": [
"",
"none",
- q,
- K
+ G,
+ W
] }],
"backdrop-blur": [{ "backdrop-blur": ue() }],
"backdrop-brightness": [{ "backdrop-brightness": [
- Qp,
- q,
- K
+ tm,
+ G,
+ W
] }],
"backdrop-contrast": [{ "backdrop-contrast": [
- Qp,
- q,
- K
+ tm,
+ G,
+ W
] }],
"backdrop-grayscale": [{ "backdrop-grayscale": [
"",
- Qp,
- q,
- K
+ tm,
+ G,
+ W
] }],
"backdrop-hue-rotate": [{ "backdrop-hue-rotate": [
- Qp,
- q,
- K
+ tm,
+ G,
+ W
] }],
"backdrop-invert": [{ "backdrop-invert": [
"",
- Qp,
- q,
- K
+ tm,
+ G,
+ W
] }],
"backdrop-opacity": [{ "backdrop-opacity": [
- Qp,
- q,
- K
+ tm,
+ G,
+ W
] }],
"backdrop-saturate": [{ "backdrop-saturate": [
- Qp,
- q,
- K
+ tm,
+ G,
+ W
] }],
"backdrop-sepia": [{ "backdrop-sepia": [
"",
- Qp,
- q,
- K
+ tm,
+ G,
+ W
] }],
"border-collapse": [{ border: ["collapse", "separate"] }],
"border-spacing": [{ "border-spacing": w() }],
@@ -20196,39 +20196,39 @@ var Sf = /* @__PURE__ */ h(((e) => {
"shadow",
"transform",
"none",
- q,
- K
+ G,
+ W
] }],
"transition-behavior": [{ transition: ["normal", "discrete"] }],
duration: [{ duration: [
- Qp,
+ tm,
"initial",
- q,
- K
+ G,
+ W
] }],
ease: [{ ease: [
"linear",
"initial",
_,
- q,
- K
+ G,
+ W
] }],
delay: [{ delay: [
- Qp,
- q,
- K
+ tm,
+ G,
+ W
] }],
animate: [{ animate: [
"none",
v,
- q,
- K
+ G,
+ W
] }],
backface: [{ backface: ["hidden", "visible"] }],
perspective: [{ perspective: [
h,
- q,
- K
+ G,
+ W
] }],
"perspective-origin": [{ "perspective-origin": x() }],
rotate: [{ rotate: de() }],
@@ -20244,8 +20244,8 @@ var Sf = /* @__PURE__ */ h(((e) => {
"skew-x": [{ "skew-x": I() }],
"skew-y": [{ "skew-y": I() }],
transform: [{ transform: [
- q,
- K,
+ G,
+ W,
"",
"none",
"gpu",
@@ -20259,9 +20259,9 @@ var Sf = /* @__PURE__ */ h(((e) => {
"translate-z": [{ "translate-z": L() }],
"translate-none": ["translate-none"],
zoom: [{ zoom: [
- $p,
- q,
- K
+ nm,
+ G,
+ W
] }],
accent: [{ accent: F() }],
appearance: [{ appearance: ["none", "auto"] }],
@@ -20311,8 +20311,8 @@ var Sf = /* @__PURE__ */ h(((e) => {
"nwse-resize",
"zoom-in",
"zoom-out",
- q,
- K
+ G,
+ W
] }],
"field-sizing": [{ "field-sizing": ["fixed", "content"] }],
"pointer-events": [{ "pointer-events": ["auto", "none"] }],
@@ -20398,15 +20398,15 @@ var Sf = /* @__PURE__ */ h(((e) => {
"scroll",
"contents",
"transform",
- q,
- K
+ G,
+ W
] }],
fill: [{ fill: ["none", ...F()] }],
"stroke-w": [{ stroke: [
- Qp,
- _m,
- um,
- dm
+ tm,
+ bm,
+ pm,
+ mm
] }],
stroke: [{ stroke: ["none", ...F()] }],
"forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]
@@ -20664,16 +20664,16 @@ var Sf = /* @__PURE__ */ h(((e) => {
"selection"
]
};
-}, Fm = (e, { cacheSize: t, prefix: n, experimentalParseClassName: r, extend: i = {}, override: a = {} }) => (Im(e, "cacheSize", t), Im(e, "prefix", n), Im(e, "experimentalParseClassName", r), Lm(e.theme, a.theme), Lm(e.classGroups, a.classGroups), Lm(e.conflictingClassGroups, a.conflictingClassGroups), Lm(e.conflictingClassGroupModifiers, a.conflictingClassGroupModifiers), Im(e, "postfixLookupClassGroups", a.postfixLookupClassGroups), Im(e, "orderSensitiveModifiers", a.orderSensitiveModifiers), Rm(e.theme, i.theme), Rm(e.classGroups, i.classGroups), Rm(e.conflictingClassGroups, i.conflictingClassGroups), Rm(e.conflictingClassGroupModifiers, i.conflictingClassGroupModifiers), zm(e, i, "postfixLookupClassGroups"), zm(e, i, "orderSensitiveModifiers"), e), Im = (e, t, n) => {
+}, Rm = (e, { cacheSize: t, prefix: n, experimentalParseClassName: r, extend: i = {}, override: a = {} }) => (zm(e, "cacheSize", t), zm(e, "prefix", n), zm(e, "experimentalParseClassName", r), Bm(e.theme, a.theme), Bm(e.classGroups, a.classGroups), Bm(e.conflictingClassGroups, a.conflictingClassGroups), Bm(e.conflictingClassGroupModifiers, a.conflictingClassGroupModifiers), zm(e, "postfixLookupClassGroups", a.postfixLookupClassGroups), zm(e, "orderSensitiveModifiers", a.orderSensitiveModifiers), Vm(e.theme, i.theme), Vm(e.classGroups, i.classGroups), Vm(e.conflictingClassGroups, i.conflictingClassGroups), Vm(e.conflictingClassGroupModifiers, i.conflictingClassGroupModifiers), Hm(e, i, "postfixLookupClassGroups"), Hm(e, i, "orderSensitiveModifiers"), e), zm = (e, t, n) => {
n !== void 0 && (e[t] = n);
-}, Lm = (e, t) => {
- if (t) for (let n in t) Im(e, n, t[n]);
-}, Rm = (e, t) => {
- if (t) for (let n in t) zm(e, t, n);
-}, zm = (e, t, n) => {
+}, Bm = (e, t) => {
+ if (t) for (let n in t) zm(e, n, t[n]);
+}, Vm = (e, t) => {
+ if (t) for (let n in t) Hm(e, t, n);
+}, Hm = (e, t, n) => {
let r = t[n];
r !== void 0 && (e[n] = e[n] ? e[n].concat(r) : r);
-}, Bm = (e, ...t) => typeof e == "function" ? Bp(Pm, e, ...t) : Bp(() => Fm(Pm(), e), ...t), Vm = [
+}, Um = (e, ...t) => typeof e == "function" ? Up(Lm, e, ...t) : Up(() => Rm(Lm(), e), ...t), Wm = [
"large-title",
"display-1",
"display-2",
@@ -20687,18 +20687,18 @@ var Sf = /* @__PURE__ */ h(((e) => {
"body-2",
"caption-1",
"caption-2"
-], Hm = [
+], Gm = [
"regular",
"medium",
"semibold",
"bold"
-], Um = Bm({ extend: { classGroups: { "font-size": [{ text: Vm.flatMap((e) => Hm.map((t) => `${e}-${t}`)) }] } } });
-function Wm(e) {
+], K = Um({ extend: { classGroups: { "font-size": [{ text: Wm.flatMap((e) => Gm.map((t) => `${e}-${t}`)) }] } } });
+function Km(e) {
return e;
}
//#endregion
//#region src/react/boardui/components/base/badges/chip.tsx
-var Gm = Wm({
+var qm = Km({
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",
@@ -20717,22 +20717,22 @@ var Gm = Wm({
soft: "bg-background-secondary-default text-text-secondary"
}
});
-function Km({ variant: e = "bold", color: t = "neutral", className: n, ref: r, ...i }) {
- return /* @__PURE__ */ (0, C.jsx)("span", {
+function Jm({ variant: e = "bold", color: t = "neutral", className: n, ref: r, ...i }) {
+ return /* @__PURE__ */ (0, w.jsx)("span", {
ref: r,
- className: Um(Gm.base, Gm.variant[e], Gm.color[t], n),
+ className: K(qm.base, qm.variant[e], qm.color[t], n),
...i
});
}
//#endregion
//#region src/api.ts
-var qm = class extends Error {
+var Ym = class extends Error {
status;
body;
constructor(e, t, n = null) {
super(i(e, t)), this.name = "ApiError", this.status = t, this.body = n;
}
-}, Jm = (e) => {
+}, Xm = (e) => {
if (!e || typeof e != "object") return "";
let t = e;
for (let e of [
@@ -20744,8 +20744,8 @@ var qm = class extends Error {
if (typeof n == "string" && n) return n;
}
return "";
-}, J = (e) => i(e);
-async function Ym(e, t) {
+}, q = (e) => i(e);
+async function Zm(e, t) {
let n = await fetch(e, {
headers: { Accept: "application/json" },
credentials: "same-origin",
@@ -20754,10 +20754,10 @@ async function Ym(e, t) {
try {
r = await n.json();
} catch {}
- if (!n.ok) throw new qm(Jm(r) || `请求失败(${n.status})`, n.status);
+ if (!n.ok) throw new Ym(Xm(r) || `请求失败(${n.status})`, n.status);
return r;
}
-async function Xm(e, t, n = "POST", r) {
+async function Qm(e, t, n = "POST", r) {
let i = await fetch(e, {
method: n,
...r ? { signal: r } : {},
@@ -20771,63 +20771,63 @@ async function Xm(e, t, n = "POST", r) {
try {
a = await i.json();
} catch {}
- if (!i.ok) throw new qm(Jm(a) || `请求失败(${i.status})`, i.status, a);
+ if (!i.ok) throw new Ym(Xm(a) || `请求失败(${i.status})`, i.status, a);
return a;
}
//#endregion
//#region src/react/components/card.tsx
-var Zm = "min-w-0", Qm = {
+var $m = "min-w-0", eh = {
filled: "bg-background-secondary-default",
outlined: "border border-separator-border bg-background-primary-default",
raised: "bg-background-primary-default"
-}, $m = {
+}, th = {
default: "rounded-2xl shadow-card",
chart: "rounded-2-5xl",
surface: "rounded-surface"
-}, eh = {
+}, nh = {
line: "border border-border-button-default",
soft: "border border-separator-border"
-}, th = {
+}, rh = {
none: "",
default: "p-5"
-}, nh = "cursor-pointer outline-none not-data-selected:hover:bg-card-hover focus-visible:ring-2 focus-visible:ring-border-focus-ring focus-visible:ring-offset-3", rh = "data-selected:bg-background-primary-default data-selected:ring-2 data-selected:ring-inset data-selected:ring-border-focus-ring";
-function ih(e = {}) {
+}, ih = "cursor-pointer outline-none not-data-selected:hover:bg-card-hover focus-visible:ring-2 focus-visible:ring-border-focus-ring focus-visible:ring-offset-3", ah = "data-selected:bg-background-primary-default data-selected:ring-2 data-selected:ring-inset data-selected:ring-border-focus-ring";
+function oh(e = {}) {
let { variant: t = "filled", padding: n = "default", interactive: r, selectable: i, bordered: a, className: o } = e, s = e.radius ?? (t === "outlined" ? "surface" : "default");
return [
- Zm,
- Qm[t],
- $m[s],
- th[n],
- a ? eh[a] : "",
- r ? nh : "",
- i ? rh : "",
+ $m,
+ eh[t],
+ th[s],
+ rh[n],
+ a ? nh[a] : "",
+ r ? ih : "",
+ i ? ah : "",
o ?? ""
].filter(Boolean).join(" ");
}
//#endregion
//#region src/react/components/empty-state.tsx
-var ah = {
+var sh = {
page: "rounded-2xl border border-separator-border px-6 py-12",
plain: "px-6 py-12",
inset: "min-h-40 justify-center rounded-xl bg-background-secondary-default px-4 py-4"
};
-function oh({ icon: e, title: t, actions: n, children: r, shell: i = "page" }) {
- return /* @__PURE__ */ (0, C.jsxs)("div", {
- className: `flex flex-col items-center gap-2 text-center ${ah[i]}`,
+function ch({ icon: e, title: t, actions: n, children: r, shell: i = "page" }) {
+ return /* @__PURE__ */ (0, w.jsxs)("div", {
+ className: `flex flex-col items-center gap-2 text-center ${sh[i]}`,
children: [
- /* @__PURE__ */ (0, C.jsx)(e, {
+ /* @__PURE__ */ (0, w.jsx)(e, {
"aria-hidden": !0,
className: "size-6 text-text-tertiary"
}),
- /* @__PURE__ */ (0, C.jsx)("h3", {
+ /* @__PURE__ */ (0, w.jsx)("h3", {
className: "text-headline-medium text-text-primary",
children: t
}),
- /* @__PURE__ */ (0, C.jsx)("p", {
+ /* @__PURE__ */ (0, w.jsx)("p", {
className: "max-w-prose text-body-2-regular text-text-secondary",
children: r
}),
- n ? /* @__PURE__ */ (0, C.jsx)("div", {
+ n ? /* @__PURE__ */ (0, w.jsx)("div", {
className: "mt-2 flex flex-wrap justify-center gap-2",
children: n
}) : null
@@ -20836,76 +20836,78 @@ function oh({ icon: e, title: t, actions: n, children: r, shell: i = "page" }) {
}
//#endregion
//#region src/react/components/loading-dots.tsx
-function sh({ label: e }) {
- return /* @__PURE__ */ (0, C.jsxs)("p", {
+function lh({ label: e }) {
+ return /* @__PURE__ */ (0, w.jsxs)("p", {
role: "status",
className: "flex items-center gap-2 text-caption-1-regular text-text-secondary",
- children: [/* @__PURE__ */ (0, C.jsxs)("span", {
+ children: [/* @__PURE__ */ (0, w.jsxs)("span", {
"aria-hidden": !0,
className: "inline-flex items-center gap-1",
children: [
- /* @__PURE__ */ (0, C.jsx)("i", { className: "dot-wave-0 size-1 rounded-full bg-current" }),
- /* @__PURE__ */ (0, C.jsx)("i", { className: "dot-wave-1 size-1 rounded-full bg-current" }),
- /* @__PURE__ */ (0, C.jsx)("i", { className: "dot-wave-2 size-1 rounded-full bg-current" })
+ /* @__PURE__ */ (0, w.jsx)("i", { className: "dot-wave-0 size-1 rounded-full bg-current" }),
+ /* @__PURE__ */ (0, w.jsx)("i", { className: "dot-wave-1 size-1 rounded-full bg-current" }),
+ /* @__PURE__ */ (0, w.jsx)("i", { className: "dot-wave-2 size-1 rounded-full bg-current" })
]
}), e]
});
}
//#endregion
//#region src/react/components/note.tsx
-function ch({ tone: e, title: t, extra: n, children: r }) {
- let i = /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [
- t ? /* @__PURE__ */ (0, C.jsx)("p", {
- className: "text-body-medium",
- children: t
- }) : null,
- /* @__PURE__ */ (0, C.jsx)("p", {
- className: "text-body-2-regular",
- children: r
- }),
- n
- ] });
+function J({ tone: e, title: t, action: n, extra: r, children: i }) {
+ let a = /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [/* @__PURE__ */ (0, w.jsxs)("div", {
+ className: "flex flex-wrap items-center justify-between gap-3",
+ children: [/* @__PURE__ */ (0, w.jsxs)("div", {
+ className: "flex min-w-0 flex-1 flex-col gap-0.5",
+ children: [t ? /* @__PURE__ */ (0, w.jsx)("p", {
+ className: "text-body-medium",
+ children: t
+ }) : null, /* @__PURE__ */ (0, w.jsx)("p", {
+ className: "text-body-2-regular",
+ children: i
+ })]
+ }), n]
+ }), r] });
switch (e) {
- case "info": return /* @__PURE__ */ (0, C.jsx)("div", {
+ case "info": return /* @__PURE__ */ (0, w.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: i
+ children: a
});
- case "success": return /* @__PURE__ */ (0, C.jsx)("div", {
+ case "success": return /* @__PURE__ */ (0, w.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: i
+ children: a
});
- case "warning": return /* @__PURE__ */ (0, C.jsx)("div", {
+ case "warning": return /* @__PURE__ */ (0, w.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: i
+ children: a
});
- case "error": return /* @__PURE__ */ (0, C.jsx)("div", {
+ case "error": return /* @__PURE__ */ (0, w.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: i
+ children: a
});
- default: return /* @__PURE__ */ (0, C.jsx)("div", {
+ default: return /* @__PURE__ */ (0, w.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: i
+ children: a
});
}
}
//#endregion
//#region src/react/components/page.tsx
-function lh({ children: e }) {
- return /* @__PURE__ */ (0, C.jsx)("div", {
+function uh({ children: e }) {
+ return /* @__PURE__ */ (0, w.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 uh({ label: e, value: t, max: n = 100, stops: r = [] }) {
+function dh({ label: e, value: t, max: n = 100, stops: r = [] }) {
let i = Math.min(Math.max(t, 0), n);
- return /* @__PURE__ */ (0, C.jsxs)("svg", {
+ return /* @__PURE__ */ (0, w.jsxs)("svg", {
role: "progressbar",
"aria-label": e,
"aria-valuemin": 0,
@@ -20915,17 +20917,17 @@ function uh({ label: e, value: t, max: n = 100, stops: r = [] }) {
preserveAspectRatio: "none",
className: "h-1.5 w-full overflow-hidden rounded-full",
children: [
- /* @__PURE__ */ (0, C.jsx)("rect", {
+ /* @__PURE__ */ (0, w.jsx)("rect", {
width: n,
height: 1,
className: "fill-background-tertiary-default"
}),
- /* @__PURE__ */ (0, C.jsx)("rect", {
+ /* @__PURE__ */ (0, w.jsx)("rect", {
width: i,
height: 1,
className: "fill-border-focus-ring"
}),
- r.map((e) => /* @__PURE__ */ (0, C.jsx)("rect", {
+ r.map((e) => /* @__PURE__ */ (0, w.jsx)("rect", {
x: e,
width: .4,
height: 1,
@@ -20936,32 +20938,32 @@ function uh({ label: e, value: t, max: n = 100, stops: r = [] }) {
}
//#endregion
//#region src/react/query.ts
-var dh = new Xe({ defaultOptions: { queries: {
+var fh = new Ze({ defaultOptions: { queries: {
networkMode: "always",
retry: 0,
refetchOnWindowFocus: !1,
refetchOnMount: !1,
retryOnMount: !1
-} } }), fh = "/api/tasks", ph = ["tasks"], mh = 2e3, hh = 1e4, gh = (e) => e?.running.length ? mh : hh, _h = (e) => Ym(fh, e);
-async function vh(e) {
- await dh.fetchQuery({
- queryKey: ph,
- queryFn: () => _h(e)
+} } }), ph = "/api/tasks", mh = ["tasks"], hh = 2e3, gh = 1e4, _h = (e) => e?.running.length ? hh : gh, vh = (e) => Zm(ph, e);
+async function yh(e) {
+ await fh.fetchQuery({
+ queryKey: mh,
+ queryFn: () => vh(e)
});
}
-var yh = {
+var bh = {
manual: "手动",
scheduled: "定时",
startup: "启动",
cli: "命令行"
-}, bh = {
+}, xh = {
pending: "排队中",
running: "进行中",
succeeded: "已完成",
failed: "失败",
cancelled: "已取消",
interrupted: "被打断"
-}, xh = (e) => bh[e] || e, Sh = {
+}, Sh = (e) => xh[e] || e, Ch = {
checked: "已检查",
total: "总数",
scanned: "已扫描",
@@ -20981,14 +20983,14 @@ var yh = {
exit_code: "退出码",
issue_count: "问题"
};
-function Ch(e) {
+function wh(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 wh(e) {
+function Th(e) {
if (!e) return "";
let t = new Date(e);
return Number.isNaN(t.getTime()) ? "" : t.toLocaleString(void 0, {
@@ -20998,69 +21000,69 @@ function wh(e) {
minute: "2-digit"
});
}
-function Th(e) {
- return Object.entries(e || {}).filter(([e, t]) => e !== "blocked_by" && (typeof t == "number" || typeof t == "string") && String(t) !== "").map(([e, t]) => `${Sh[e] || e} ${t}`).join(" · ");
+function Eh(e) {
+ return Object.entries(e || {}).filter(([e, t]) => e !== "blocked_by" && (typeof t == "number" || typeof t == "string") && String(t) !== "").map(([e, t]) => `${Ch[e] || e} ${t}`).join(" · ");
}
//#endregion
//#region src/react/activity/activity-page.tsx
-var Eh = {
+var Dh = {
succeeded: "lime",
failed: "rose",
cancelled: "yellow",
interrupted: "yellow"
};
-function Dh({ status: e }) {
- return /* @__PURE__ */ (0, C.jsx)(Km, {
- color: Eh[e] ?? "neutral",
- children: xh(e)
+function Oh({ status: e }) {
+ return /* @__PURE__ */ (0, w.jsx)(Jm, {
+ color: Dh[e] ?? "neutral",
+ children: Sh(e)
});
}
-function Oh({ run: e, meta: t, children: n, footer: r }) {
- return /* @__PURE__ */ (0, C.jsxs)("li", {
+function kh({ run: e, meta: t, children: n, footer: r }) {
+ return /* @__PURE__ */ (0, w.jsxs)("li", {
"data-status": e.status,
"data-task-key": e.task_key,
- className: ih({
+ className: oh({
padding: "none",
bordered: "line",
className: e.status === "failed" ? "flex flex-col border-border-error-default" : "flex flex-col"
}),
- children: [/* @__PURE__ */ (0, C.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, w.jsxs)("div", {
className: "flex min-h-30 flex-col gap-1.5 px-5 pt-5 pb-4",
children: [
- /* @__PURE__ */ (0, C.jsxs)("div", {
+ /* @__PURE__ */ (0, w.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, C.jsx)("strong", {
+ children: [/* @__PURE__ */ (0, w.jsx)("strong", {
className: "min-w-0 break-words text-title-1-medium text-text-primary",
children: e.task_label
- }), /* @__PURE__ */ (0, C.jsx)(Dh, { status: e.status })]
+ }), /* @__PURE__ */ (0, w.jsx)(Oh, { status: e.status })]
}),
- /* @__PURE__ */ (0, C.jsx)("p", {
+ /* @__PURE__ */ (0, w.jsx)("p", {
className: "text-caption-1-regular text-text-secondary",
children: t
}),
n
]
- }), r ? /* @__PURE__ */ (0, C.jsx)("div", {
+ }), r ? /* @__PURE__ */ (0, w.jsx)("div", {
className: "flex min-h-14 flex-col justify-center rounded-b-2xl border-t border-separator-border bg-card-footer px-5 py-3",
- children: /* @__PURE__ */ (0, C.jsx)("p", {
+ children: /* @__PURE__ */ (0, w.jsx)("p", {
className: "text-caption-1-regular text-text-secondary",
children: r
})
}) : null]
});
}
-function kh({ run: e }) {
- let t = e.progress_total || 0, n = e.progress_current || 0, r = e.progress_label || "正在进行", i = Ch(e.elapsed_seconds), a = [yh[e.trigger] || e.trigger, i && `已跑 ${i}`].filter(Boolean).join(" · ");
- return /* @__PURE__ */ (0, C.jsx)(Oh, {
+function Ah({ run: e }) {
+ let t = e.progress_total || 0, n = e.progress_current || 0, r = e.progress_label || "正在进行", i = wh(e.elapsed_seconds), a = [bh[e.trigger] || e.trigger, i && `已跑 ${i}`].filter(Boolean).join(" · ");
+ return /* @__PURE__ */ (0, w.jsx)(kh, {
run: e,
meta: a,
- children: t > 0 ? /* @__PURE__ */ (0, C.jsxs)("div", {
+ children: t > 0 ? /* @__PURE__ */ (0, w.jsxs)("div", {
className: "flex flex-col gap-1.5",
- children: [/* @__PURE__ */ (0, C.jsx)(uh, {
+ children: [/* @__PURE__ */ (0, w.jsx)(dh, {
label: r,
value: n,
max: t
- }), /* @__PURE__ */ (0, C.jsxs)("p", {
+ }), /* @__PURE__ */ (0, w.jsxs)("p", {
className: "text-caption-1-regular text-text-secondary",
children: [
r,
@@ -21071,101 +21073,101 @@ function kh({ run: e }) {
" 项"
]
})]
- }) : /* @__PURE__ */ (0, C.jsx)(sh, { label: r })
+ }) : /* @__PURE__ */ (0, w.jsx)(lh, { label: r })
});
}
-function Ah({ run: e }) {
- let t = Th(e.result_summary), n = Ch(e.elapsed_seconds), r = [
- yh[e.trigger] || e.trigger,
- wh(e.finished_at),
+function jh({ run: e }) {
+ let t = Eh(e.result_summary), n = wh(e.elapsed_seconds), r = [
+ bh[e.trigger] || e.trigger,
+ Th(e.finished_at),
n && `用时 ${n}`
].filter(Boolean).join(" · ");
- return /* @__PURE__ */ (0, C.jsx)(Oh, {
+ return /* @__PURE__ */ (0, w.jsx)(kh, {
run: e,
meta: r,
footer: e.error,
- children: t ? /* @__PURE__ */ (0, C.jsx)("p", {
+ children: t ? /* @__PURE__ */ (0, w.jsx)("p", {
className: "text-caption-1-regular text-text-secondary",
children: t
}) : null
});
}
-function jh({ title: e, children: t }) {
- let n = (0, S.useId)();
- return /* @__PURE__ */ (0, C.jsxs)("section", {
+function Mh({ title: e, children: t }) {
+ let n = (0, C.useId)();
+ return /* @__PURE__ */ (0, w.jsxs)("section", {
"aria-labelledby": n,
className: "flex min-w-0 flex-col gap-3",
- children: [/* @__PURE__ */ (0, C.jsx)("h3", {
+ children: [/* @__PURE__ */ (0, w.jsx)("h3", {
id: n,
className: "text-title-2-semibold text-text-primary",
children: e
}), t]
});
}
-function Mh({ live: e = !1, children: t }) {
- return /* @__PURE__ */ (0, C.jsx)("ul", {
+function Nh({ live: e = !1, children: t }) {
+ return /* @__PURE__ */ (0, w.jsx)("ul", {
"aria-live": e ? "polite" : void 0,
className: "flex min-w-0 flex-col gap-3",
children: t
});
}
-function Nh(e) {
- let t = lt({
- queryKey: ph,
- queryFn: ({ signal: e }) => _h(e),
- refetchInterval: (e) => gh(e.state.data)
- }), n = t.data, r = t.error ? J(t.error) : "";
- if (!n) return /* @__PURE__ */ (0, C.jsx)(lh, { children: /* @__PURE__ */ (0, C.jsx)(ch, {
+function Ph(e) {
+ let t = ut({
+ queryKey: mh,
+ queryFn: ({ signal: e }) => vh(e),
+ refetchInterval: (e) => _h(e.state.data)
+ }), n = t.data, r = t.error ? q(t.error) : "";
+ if (!n) return /* @__PURE__ */ (0, w.jsx)(uh, { children: /* @__PURE__ */ (0, w.jsx)(J, {
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, C.jsxs)(lh, { children: [
- r ? /* @__PURE__ */ (0, C.jsx)(ch, {
+ return /* @__PURE__ */ (0, w.jsxs)(uh, { children: [
+ r ? /* @__PURE__ */ (0, w.jsx)(J, {
tone: "error",
children: r
}) : null,
- n.available === !1 ? /* @__PURE__ */ (0, C.jsx)(ch, {
+ n.available === !1 ? /* @__PURE__ */ (0, w.jsx)(J, {
tone: "warning",
children: n.message || "账本上还没有任务中心的表"
}) : null,
- s ? /* @__PURE__ */ (0, C.jsx)(oh, {
+ s ? /* @__PURE__ */ (0, w.jsx)(ch, {
shell: "plain",
- icon: Gf,
+ icon: Jf,
title: "还没有任务记录",
children: "扫描、追更检查、批量操作和命令行批处理跑起来之后,这里会显示它们的进度与结果。"
- }) : /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [
- /* @__PURE__ */ (0, C.jsx)(jh, {
+ }) : /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [
+ /* @__PURE__ */ (0, w.jsx)(Mh, {
title: "正在进行",
- children: i.length ? /* @__PURE__ */ (0, C.jsx)(Mh, {
+ children: i.length ? /* @__PURE__ */ (0, w.jsx)(Nh, {
live: !0,
- children: i.map((e) => /* @__PURE__ */ (0, C.jsx)(kh, { run: e }, e.id))
- }) : /* @__PURE__ */ (0, C.jsx)(ch, {
+ children: i.map((e) => /* @__PURE__ */ (0, w.jsx)(Ah, { run: e }, e.id))
+ }) : /* @__PURE__ */ (0, w.jsx)(J, {
tone: "neutral",
children: "没有任务在跑。"
})
}),
- a.length ? /* @__PURE__ */ (0, C.jsx)(jh, {
+ a.length ? /* @__PURE__ */ (0, w.jsx)(Mh, {
title: "被挡下的",
- children: /* @__PURE__ */ (0, C.jsx)(Mh, { children: a.map((e) => /* @__PURE__ */ (0, C.jsx)(Ah, { run: e }, e.id)) })
+ children: /* @__PURE__ */ (0, w.jsx)(Nh, { children: a.map((e) => /* @__PURE__ */ (0, w.jsx)(jh, { run: e }, e.id)) })
}) : null,
- o.length ? /* @__PURE__ */ (0, C.jsx)(jh, {
+ o.length ? /* @__PURE__ */ (0, w.jsx)(Mh, {
title: "最近完成",
- children: /* @__PURE__ */ (0, C.jsx)(Mh, { children: o.map((e) => /* @__PURE__ */ (0, C.jsx)(Ah, { run: e }, e.id)) })
+ children: /* @__PURE__ */ (0, w.jsx)(Nh, { children: o.map((e) => /* @__PURE__ */ (0, w.jsx)(jh, { run: e }, e.id)) })
}) : null
] })
] });
}
//#endregion
//#region node_modules/react-aria-components/dist/private/utils.mjs
-var Ph = Symbol("default");
-function Fh({ values: e, children: t }) {
- for (let [n, r] of e) t = /*#__PURE__*/ S.createElement(n.Provider, { value: r }, t);
+var Fh = Symbol("default");
+function Ih({ values: e, children: t }) {
+ for (let [n, r] of e) t = /*#__PURE__*/ C.createElement(n.Provider, { value: r }, t);
return t;
}
-function Ih(e) {
+function Lh(e) {
let { className: t, style: n, children: r, defaultClassName: i, defaultChildren: a, defaultStyle: o, values: s, render: c } = e;
- return (0, S.useMemo)(() => {
+ return (0, C.useMemo)(() => {
let e, l, u;
return e = typeof t == "function" ? t({
...s,
@@ -21197,11 +21199,11 @@ function Ih(e) {
c
]);
}
-function Lh(e, t) {
- let n = (0, S.useContext)(e);
+function Rh(e, t) {
+ let n = (0, C.useContext)(e);
if (t === null) return null;
if (n && typeof n == "object" && "slots" in n && n.slots) {
- let e = t || Ph;
+ let e = t || Fh;
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}.`);
@@ -21210,8 +21212,8 @@ function Lh(e, t) {
}
return n;
}
-function Rh(e, t, n) {
- let { ref: r, ...i } = Lh(n, e.slot) || {}, a = Rr((0, S.useMemo)(() => yr(t, r), [t, r])), o = V(i, e);
+function zh(e, t, n) {
+ let { ref: r, ...i } = Rh(n, e.slot) || {}, a = zr((0, C.useMemo)(() => br(t, r), [t, r])), o = V(i, e);
return "style" in i && i.style && "style" in e && e.style && (o.style = typeof i.style == "function" || typeof e.style == "function" ? (t) => {
let n = typeof i.style == "function" ? i.style(t) : i.style, r = {
...t.defaultStyle,
@@ -21229,56 +21231,56 @@ function Rh(e, t, n) {
...e.style
}), [o, a];
}
-function zh(e = !0) {
- let [t, n] = (0, S.useState)(e), r = (0, S.useRef)(!1), i = (0, S.useCallback)((e) => {
+function Bh(e = !0) {
+ let [t, n] = (0, C.useState)(e), r = (0, C.useRef)(!1), i = (0, C.useCallback)((e) => {
r.current = !0, n(!!e);
}, []);
- return Yt(() => {
+ return Xt(() => {
r.current || n(!1);
}, []), [i, t];
}
-function Bh(e) {
+function Vh(e) {
let t = /^(data-.*)$/, n = {};
for (let r in e) t.test(r) || (n[r] = e[r]);
return n;
}
-function Vh(e, t, n) {
- let { render: r, ...i } = t, a = (0, S.useRef)(null), o = (0, S.useMemo)(() => yr(n, a), [n, a]);
- Yt(() => {}, [e, r]);
+function Hh(e, t, n) {
+ let { render: r, ...i } = t, a = (0, C.useRef)(null), o = (0, C.useMemo)(() => br(n, a), [n, a]);
+ Xt(() => {}, [e, r]);
let s = {
...i,
ref: o
};
- return r ? r(s, void 0) : /*#__PURE__*/ S.createElement(e, s);
+ return r ? r(s, void 0) : /*#__PURE__*/ C.createElement(e, s);
}
-var Hh = {}, Y = new Proxy({}, { get(e, t) {
+var Uh = {}, Y = new Proxy({}, { get(e, t) {
if (typeof t != "string") return;
- let n = Hh[t];
- return n || (n = /*#__PURE__*/ (0, S.forwardRef)(Vh.bind(null, t)), Hh[t] = n), n;
-} }), Uh = /*#__PURE__*/ (0, S.createContext)(null), Wh = /*#__PURE__*/ (0, S.createContext)(null), Gh = /*#__PURE__*/ (0, S.createContext)(null), Kh = {
+ let n = Uh[t];
+ return n || (n = /*#__PURE__*/ (0, C.forwardRef)(Hh.bind(null, t)), Uh[t] = n), n;
+} }), Wh = /*#__PURE__*/ (0, C.createContext)(null), Gh = /*#__PURE__*/ (0, C.createContext)(null), Kh = /*#__PURE__*/ (0, C.createContext)(null), qh = {
CollectionRoot({ collection: e, renderDropIndicator: t }) {
- return qh(e, null, t);
+ return Jh(e, null, t);
},
CollectionBranch({ collection: e, parent: t, renderDropIndicator: n }) {
- return qh(e, t, n);
+ return Jh(e, t, n);
}
};
-function qh(e, t, n) {
- return bt({
+function Jh(e, t, n) {
+ return xt({
items: t ? e.getChildren(t.key) : e,
dependencies: [n],
children(t) {
- if (t.type === "content") return /*#__PURE__*/ S.createElement(S.Fragment, null);
+ if (t.type === "content") return /*#__PURE__*/ C.createElement(C.Fragment, null);
let r = t.render(t);
- return !n || t.type !== "item" ? r : /*#__PURE__*/ S.createElement(S.Fragment, null, n({
+ return !n || t.type !== "item" ? r : /*#__PURE__*/ C.createElement(C.Fragment, null, n({
type: "item",
key: t.key,
dropPosition: "before"
- }), r, Jh(e, t, n));
+ }), r, Yh(e, t, n));
}
});
}
-function Jh(e, t, n) {
+function Yh(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);
@@ -21292,30 +21294,30 @@ function Jh(e, t, n) {
key: r.key,
dropPosition: "after"
});
- /*#__PURE__*/ (0, S.isValidElement)(t) && s.push(/*#__PURE__*/ (0, S.cloneElement)(t, { key: `${r.key}-after` })), r = r.parentKey == null ? null : e.getItem(r.parentKey);
+ /*#__PURE__*/ (0, C.isValidElement)(t) && s.push(/*#__PURE__*/ (0, C.cloneElement)(t, { key: `${r.key}-after` })), r = r.parentKey == null ? null : e.getItem(r.parentKey);
}
}
return s;
}
-var Yh = /*#__PURE__*/ (0, S.createContext)(Kh);
-function Xh(e) {
- return (0, S.useMemo)(() => e == null ? null : /* @__PURE__ */ new Set([e]), [e]);
+var Xh = /*#__PURE__*/ (0, C.createContext)(qh);
+function Zh(e) {
+ return (0, C.useMemo)(() => e == null ? null : /* @__PURE__ */ new Set([e]), [e]);
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Label.mjs
-var Zh = /*#__PURE__*/ (0, S.createContext)({}), Qh = /*#__PURE__*/ Gr(function(e, t) {
- [e, t] = Rh(e, t, Zh);
+var Qh = /*#__PURE__*/ (0, C.createContext)({}), $h = /*#__PURE__*/ Kr(function(e, t) {
+ [e, t] = zh(e, t, Qh);
let { elementType: n = "label", ...r } = e, i = Y[n];
- return /*#__PURE__*/ S.createElement(i, {
+ return /*#__PURE__*/ C.createElement(i, {
className: "react-aria-Label",
...r,
ref: t
});
-}), $h = /*#__PURE__*/ (0, S.createContext)(null), eg = /*#__PURE__*/ (0, S.createContext)({}), tg = /*#__PURE__*/ Gr(function(e, t) {
- [e, t] = Rh(e, t, eg);
- let n = e, { isPending: r } = n, { buttonProps: i, isPressed: a } = Da(e, t);
- i = rg(i, r);
- let { focusProps: o, isFocused: s, isFocusVisible: c } = wc(e), { hoverProps: l, isHovered: u } = jc({
+}), eg = /*#__PURE__*/ (0, C.createContext)(null), tg = /*#__PURE__*/ (0, C.createContext)({}), ng = /*#__PURE__*/ Kr(function(e, t) {
+ [e, t] = zh(e, t, tg);
+ let n = e, { isPending: r } = n, { buttonProps: i, isPressed: a } = ka(e, t);
+ i = ig(i, r);
+ let { focusProps: o, isFocused: s, isFocusVisible: c } = Ec(e), { hoverProps: l, isHovered: u } = Nc({
...e,
isDisabled: e.isDisabled || r
}), d = {
@@ -21325,24 +21327,24 @@ var Zh = /*#__PURE__*/ (0, S.createContext)({}), Qh = /*#__PURE__*/ Gr(function(
isFocusVisible: c,
isDisabled: e.isDisabled || !1,
isPending: r ?? !1
- }, f = Ih({
+ }, f = Lh({
...e,
values: d,
defaultClassName: "react-aria-Button"
- }), p = gr(i.id), m = gr(), h = i["aria-labelledby"];
+ }), p = _r(i.id), m = _r(), h = i["aria-labelledby"];
r && (h ? h = `${h} ${m}` : i["aria-label"] && (h = `${p} ${m}`));
- let g = (0, S.useRef)(r);
- (0, S.useEffect)(() => {
+ let g = (0, C.useRef)(r);
+ (0, C.useEffect)(() => {
let e = { "aria-labelledby": h || p };
- (!g.current && s && r || g.current && s && !r) && ao(e, "assertive"), g.current = r;
+ (!g.current && s && r || g.current && s && !r) && so(e, "assertive"), g.current = r;
}, [
r,
s,
h,
p
]);
- let _ = U(e, { global: !0 });
- return delete _.onClick, /*#__PURE__*/ S.createElement(Y.button, {
+ let _ = H(e, { global: !0 });
+ return delete _.onClick, /*#__PURE__*/ C.createElement(Y.button, {
...V(_, f, i, o, l),
type: i.type === "submit" && r ? "button" : i.type,
id: p,
@@ -21356,62 +21358,62 @@ var Zh = /*#__PURE__*/ (0, S.createContext)({}), Qh = /*#__PURE__*/ Gr(function(
"data-focused": s || void 0,
"data-pending": r || void 0,
"data-focus-visible": c || void 0
- }, /*#__PURE__*/ S.createElement($h.Provider, { value: { id: m } }, f.children));
-}), ng = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;
-function rg(e, t) {
+ }, /*#__PURE__*/ C.createElement(eg.Provider, { value: { id: m } }, f.children));
+}), rg = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;
+function ig(e, t) {
if (t) {
- for (let t in e) t.startsWith("on") && !ng.test(t) && (e[t] = void 0);
+ for (let t in e) t.startsWith("on") && !rg.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 ig = /*#__PURE__*/ (0, S.createContext)({}), ag = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
- [e, t] = Rh(e, t, ig);
+var ag = /*#__PURE__*/ (0, C.createContext)({}), og = /*#__PURE__*/ (0, C.forwardRef)(function(e, t) {
+ [e, t] = zh(e, t, ag);
let { children: n, level: r = 3, className: i, ...a } = e, o = Y[`h${r}`];
- return /*#__PURE__*/ S.createElement(o, {
+ return /*#__PURE__*/ C.createElement(o, {
...a,
ref: t,
className: i ?? "react-aria-Heading"
}, n);
-}), og = /*#__PURE__*/ (0, S.createContext)({}), sg = /*#__PURE__*/ Gr(function(e, t) {
- [e, t] = Rh(e, t, og);
+}), sg = /*#__PURE__*/ (0, C.createContext)({}), cg = /*#__PURE__*/ Kr(function(e, t) {
+ [e, t] = zh(e, t, sg);
let { elementType: n = "span", ...r } = e, i = Y[n];
- return /*#__PURE__*/ S.createElement(i, {
+ return /*#__PURE__*/ C.createElement(i, {
className: "react-aria-Text",
...r,
ref: t
});
-}), cg = /*#__PURE__*/ (0, S.createContext)(null), lg = /*#__PURE__*/ (0, S.createContext)(null), ug = /*#__PURE__*/ (0, S.createContext)(null), dg = /*#__PURE__*/ (0, S.createContext)(null), fg = /*#__PURE__*/ (0, S.createContext)(null), pg = /*#__PURE__*/ (0, S.createContext)(null);
-function mg(e, t) {
- let { validationBehavior: n } = Lh(lg) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, S.useContext)(fg), a = Rr((0, S.useMemo)(() => yr(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
- ...Bh(e),
+}), lg = /*#__PURE__*/ (0, C.createContext)(null), ug = /*#__PURE__*/ (0, C.createContext)(null), dg = /*#__PURE__*/ (0, C.createContext)(null), fg = /*#__PURE__*/ (0, C.createContext)(null), pg = /*#__PURE__*/ (0, C.createContext)(null), mg = /*#__PURE__*/ (0, C.createContext)(null);
+function hg(e, t) {
+ let { validationBehavior: n } = Rh(ug) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, C.useContext)(pg), a = zr((0, C.useMemo)(() => br(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
+ ...Vh(e),
children: typeof e.children == "function" || e.children,
value: e.value,
validationBehavior: r
};
- return [i ? Wo(o, i, a) : Lo(o, Uo(e), a), a];
+ return [i ? Ko(o, i, a) : zo(o, Go(e), a), a];
}
-var hg = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
+var gg = /*#__PURE__*/ (0, C.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = Rh(r, t, ug);
- let [i, a] = mg(e, n);
- return /*#__PURE__*/ S.createElement(pg.Provider, { value: {
+ [e, t] = zh(r, t, dg);
+ let [i, a] = hg(e, n);
+ return /*#__PURE__*/ C.createElement(mg.Provider, { value: {
...i,
inputRef: a,
defaultClassName: "react-aria-Checkbox",
isIndeterminate: e.isIndeterminate,
isRequired: e.isRequired
- } }, /*#__PURE__*/ S.createElement(gg, {
+ } }, /*#__PURE__*/ C.createElement(_g, {
...e,
ref: t
}));
-}), gg = /*#__PURE__*/ (0, S.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, S.useContext)(pg), { isFocused: p, isFocusVisible: m, focusProps: h } = wc(), g = a || o, { hoverProps: _, isHovered: v } = jc({
+}), _g = /*#__PURE__*/ (0, C.forwardRef)(function(e, t) {
+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isIndeterminate: d, isRequired: f } = (0, C.useContext)(mg), { isFocused: p, isFocusVisible: m, focusProps: h } = Ec(), g = a || o, { hoverProps: _, isHovered: v } = Nc({
...e,
isDisabled: g
- }), y = Ih({
+ }), y = Lh({
...e,
defaultClassName: u,
values: {
@@ -21426,8 +21428,8 @@ var hg = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
isInvalid: c,
isRequired: f || !1
}
- }), b = U(e, { global: !0 });
- return delete b.id, delete b.onClick, /*#__PURE__*/ S.createElement(Y.label, {
+ }), b = H(e, { global: !0 });
+ return delete b.id, delete b.onClick, /*#__PURE__*/ C.createElement(Y.label, {
...V(b, n, _, y),
ref: t,
slot: e.slot || void 0,
@@ -21441,20 +21443,20 @@ var hg = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
"data-readonly": o || void 0,
"data-invalid": c || void 0,
"data-required": f || void 0
- }, /*#__PURE__*/ S.createElement(Jo, { elementType: "span" }, /*#__PURE__*/ S.createElement("input", {
+ }, /*#__PURE__*/ C.createElement(Xo, { elementType: "span" }, /*#__PURE__*/ C.createElement("input", {
...V(r, h),
ref: l
})), y.children);
-}), _g = /*#__PURE__*/ (0, S.createContext)({}), vg = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
- [e, t] = Rh(e, t, _g);
+}), vg = /*#__PURE__*/ (0, C.createContext)({}), yg = /*#__PURE__*/ (0, C.forwardRef)(function(e, t) {
+ [e, t] = zh(e, t, vg);
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 } = jc({
+ let { hoverProps: l, isHovered: u } = Nc({
onHoverStart: a,
onHoverChange: o,
onHoverEnd: s,
isDisabled: n
- }), { isFocused: d, isFocusVisible: f, focusProps: p } = wc({ within: !0 }), m = Ih({
+ }), { isFocused: d, isFocusVisible: f, focusProps: p } = Ec({ within: !0 }), m = Lh({
...e,
values: {
isHovered: u,
@@ -21465,7 +21467,7 @@ var hg = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
},
defaultClassName: "react-aria-Group"
});
- return /*#__PURE__*/ S.createElement(Y.div, {
+ return /*#__PURE__*/ C.createElement(Y.div, {
...V(c, p, l),
...m,
ref: t,
@@ -21478,18 +21480,18 @@ var hg = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
"data-invalid": r || void 0,
"data-readonly": i || void 0
}, m.children);
-}), yg = /*#__PURE__*/ (0, S.createContext)({}), bg = (e) => {
+}), bg = /*#__PURE__*/ (0, C.createContext)({}), xg = (e) => {
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, ...i } = e;
return i;
-}, xg = /*#__PURE__*/ Gr(function(e, t) {
- [e, t] = Rh(e, t, yg);
- let { hoverProps: n, isHovered: r } = jc({
+}, Sg = /*#__PURE__*/ Kr(function(e, t) {
+ [e, t] = zh(e, t, bg);
+ let { hoverProps: n, isHovered: r } = Nc({
...e,
isDisabled: e.disabled
- }), { isFocused: i, isFocusVisible: a, focusProps: o } = wc({
+ }), { isFocused: i, isFocusVisible: a, focusProps: o } = Ec({
isTextInput: !0,
autoFocus: e.autoFocus
- }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = Ih({
+ }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = Lh({
...e,
values: {
isHovered: r,
@@ -21500,8 +21502,8 @@ var hg = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
},
defaultClassName: "react-aria-Input"
});
- return /*#__PURE__*/ S.createElement(Y.input, {
- ...V(bg(e), o, n),
+ return /*#__PURE__*/ C.createElement(Y.input, {
+ ...V(xg(e), o, n),
...c,
ref: t,
"data-focused": i || void 0,
@@ -21510,8 +21512,8 @@ var hg = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
"data-focus-visible": a || void 0,
"data-invalid": s || void 0
});
-}), Sg = {};
-Sg = {
+}), Cg = {};
+Cg = {
colorSwatchPicker: "تغييرات الألوان",
dropzoneLabel: "DropZone",
selectPlaceholder: "حدد عنصرًا",
@@ -21519,8 +21521,8 @@ Sg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/bg-BG.mjs
-var Cg = {};
-Cg = {
+var wg = {};
+wg = {
colorSwatchPicker: "Цветови мостри",
dropzoneLabel: "DropZone",
selectPlaceholder: "Изберете предмет",
@@ -21528,8 +21530,8 @@ Cg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/cs-CZ.mjs
-var wg = {};
-wg = {
+var Tg = {};
+Tg = {
colorSwatchPicker: "Vzorky barev",
dropzoneLabel: "Místo pro přetažení",
selectPlaceholder: "Vyberte položku",
@@ -21537,8 +21539,8 @@ wg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/da-DK.mjs
-var Tg = {};
-Tg = {
+var Eg = {};
+Eg = {
colorSwatchPicker: "Farveprøver",
dropzoneLabel: "DropZone",
selectPlaceholder: "Vælg et element",
@@ -21546,8 +21548,8 @@ Tg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/de-DE.mjs
-var Eg = {};
-Eg = {
+var Dg = {};
+Dg = {
colorSwatchPicker: "Farbfelder",
dropzoneLabel: "Ablegebereich",
selectPlaceholder: "Element wählen",
@@ -21555,8 +21557,8 @@ Eg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/el-GR.mjs
-var Dg = {};
-Dg = {
+var Og = {};
+Og = {
colorSwatchPicker: "Χρωματικά δείγματα",
dropzoneLabel: "DropZone",
selectPlaceholder: "Επιλέξτε ένα αντικείμενο",
@@ -21564,8 +21566,8 @@ Dg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/en-US.mjs
-var Og = {};
-Og = {
+var kg = {};
+kg = {
selectPlaceholder: "Select an item",
tableResizer: "Resizer",
dropzoneLabel: "DropZone",
@@ -21573,8 +21575,8 @@ Og = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/es-ES.mjs
-var kg = {};
-kg = {
+var Ag = {};
+Ag = {
colorSwatchPicker: "Muestras de colores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Seleccionar un artículo",
@@ -21582,8 +21584,8 @@ kg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/et-EE.mjs
-var Ag = {};
-Ag = {
+var jg = {};
+jg = {
colorSwatchPicker: "Värvinäidised",
dropzoneLabel: "DropZone",
selectPlaceholder: "Valige üksus",
@@ -21591,8 +21593,8 @@ Ag = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/fi-FI.mjs
-var jg = {};
-jg = {
+var Mg = {};
+Mg = {
colorSwatchPicker: "Värimallit",
dropzoneLabel: "DropZone",
selectPlaceholder: "Valitse kohde",
@@ -21600,8 +21602,8 @@ jg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/fr-FR.mjs
-var Mg = {};
-Mg = {
+var Ng = {};
+Ng = {
colorSwatchPicker: "Échantillons de couleurs",
dropzoneLabel: "DropZone",
selectPlaceholder: "Sélectionner un élément",
@@ -21609,8 +21611,8 @@ Mg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/he-IL.mjs
-var Ng = {};
-Ng = {
+var Pg = {};
+Pg = {
colorSwatchPicker: "דוגמיות צבע",
dropzoneLabel: "DropZone",
selectPlaceholder: "בחר פריט",
@@ -21618,8 +21620,8 @@ Ng = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/hr-HR.mjs
-var Pg = {};
-Pg = {
+var Fg = {};
+Fg = {
colorSwatchPicker: "Uzorci boja",
dropzoneLabel: "Zona spuštanja",
selectPlaceholder: "Odaberite stavku",
@@ -21627,8 +21629,8 @@ Pg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/hu-HU.mjs
-var Fg = {};
-Fg = {
+var Ig = {};
+Ig = {
colorSwatchPicker: "Színtárak",
dropzoneLabel: "DropZone",
selectPlaceholder: "Válasszon ki egy elemet",
@@ -21636,8 +21638,8 @@ Fg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/it-IT.mjs
-var Ig = {};
-Ig = {
+var Lg = {};
+Lg = {
colorSwatchPicker: "Campioni di colore",
dropzoneLabel: "Zona di rilascio",
selectPlaceholder: "Seleziona un elemento",
@@ -21645,8 +21647,8 @@ Ig = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ja-JP.mjs
-var Lg = {};
-Lg = {
+var Rg = {};
+Rg = {
colorSwatchPicker: "カラースウォッチ",
dropzoneLabel: "ドロップゾーン",
selectPlaceholder: "項目を選択",
@@ -21654,17 +21656,17 @@ Lg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ko-KR.mjs
-var Rg = {};
-Rg = {
+var zg = {};
+zg = {
colorSwatchPicker: "색상 견본",
dropzoneLabel: "드롭 영역",
selectPlaceholder: "항목 선택",
tableResizer: "크기 조정기"
};
//#endregion
-//#region node_modules/react-aria-components/dist/private/intl/lt-LT.mjs
-var zg = {};
-zg = {
+//#region node_modules/react-aria-components/dist/private/intl/lt-LT.mjs
+var Bg = {};
+Bg = {
colorSwatchPicker: "Spalvų pavyzdžiai",
dropzoneLabel: "„DropZone“",
selectPlaceholder: "Pasirinkite elementą",
@@ -21672,8 +21674,8 @@ zg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/lv-LV.mjs
-var Bg = {};
-Bg = {
+var Vg = {};
+Vg = {
colorSwatchPicker: "Krāsu paraugi",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izvēlēties vienumu",
@@ -21681,8 +21683,8 @@ Bg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/nb-NO.mjs
-var Vg = {};
-Vg = {
+var Hg = {};
+Hg = {
colorSwatchPicker: "Fargekart",
dropzoneLabel: "Droppsone",
selectPlaceholder: "Velg et element",
@@ -21690,8 +21692,8 @@ Vg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/nl-NL.mjs
-var Hg = {};
-Hg = {
+var Ug = {};
+Ug = {
colorSwatchPicker: "kleurstalen",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecteer een item",
@@ -21699,8 +21701,8 @@ Hg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/pl-PL.mjs
-var Ug = {};
-Ug = {
+var Wg = {};
+Wg = {
colorSwatchPicker: "Próbki kolorów",
dropzoneLabel: "Strefa upuszczania",
selectPlaceholder: "Wybierz element",
@@ -21708,8 +21710,8 @@ Ug = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/pt-BR.mjs
-var Wg = {};
-Wg = {
+var Gg = {};
+Gg = {
colorSwatchPicker: "Amostras de cores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecione um item",
@@ -21717,8 +21719,8 @@ Wg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/pt-PT.mjs
-var Gg = {};
-Gg = {
+var Kg = {};
+Kg = {
colorSwatchPicker: "Amostras de cores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecione um item",
@@ -21726,8 +21728,8 @@ Gg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ro-RO.mjs
-var Kg = {};
-Kg = {
+var qg = {};
+qg = {
colorSwatchPicker: "Specimene de culoare",
dropzoneLabel: "Zonă de plasare",
selectPlaceholder: "Selectați un element",
@@ -21735,8 +21737,8 @@ Kg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ru-RU.mjs
-var qg = {};
-qg = {
+var Jg = {};
+Jg = {
colorSwatchPicker: "Цветовые образцы",
dropzoneLabel: "DropZone",
selectPlaceholder: "Выберите элемент",
@@ -21744,8 +21746,8 @@ qg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sk-SK.mjs
-var Jg = {};
-Jg = {
+var Yg = {};
+Yg = {
colorSwatchPicker: "Vzorkovníky farieb",
dropzoneLabel: "DropZone",
selectPlaceholder: "Vyberte položku",
@@ -21753,8 +21755,8 @@ Jg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sl-SI.mjs
-var Yg = {};
-Yg = {
+var Xg = {};
+Xg = {
colorSwatchPicker: "Barvne palete",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izberite element",
@@ -21762,8 +21764,8 @@ Yg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sr-SP.mjs
-var Xg = {};
-Xg = {
+var Zg = {};
+Zg = {
colorSwatchPicker: "Uzorci boje",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izaberite stavku",
@@ -21771,8 +21773,8 @@ Xg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sv-SE.mjs
-var Zg = {};
-Zg = {
+var Qg = {};
+Qg = {
colorSwatchPicker: "Färgrutor",
dropzoneLabel: "DropZone",
selectPlaceholder: "Välj en artikel",
@@ -21780,8 +21782,8 @@ Zg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/tr-TR.mjs
-var Qg = {};
-Qg = {
+var $g = {};
+$g = {
colorSwatchPicker: "Renk örnekleri",
dropzoneLabel: "Bırakma Bölgesi",
selectPlaceholder: "Bir öğe seçin",
@@ -21789,8 +21791,8 @@ Qg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/uk-UA.mjs
-var $g = {};
-$g = {
+var e_ = {};
+e_ = {
colorSwatchPicker: "Зразки кольорів",
dropzoneLabel: "DropZone",
selectPlaceholder: "Виберіть елемент",
@@ -21798,8 +21800,8 @@ $g = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/zh-CN.mjs
-var e_ = {};
-e_ = {
+var t_ = {};
+t_ = {
colorSwatchPicker: "颜色色板",
dropzoneLabel: "放置区域",
selectPlaceholder: "选择一个项目",
@@ -21807,8 +21809,8 @@ e_ = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/zh-TW.mjs
-var t_ = {};
-t_ = {
+var n_ = {};
+n_ = {
colorSwatchPicker: "色票",
dropzoneLabel: "放置區",
selectPlaceholder: "選取項目",
@@ -21816,52 +21818,52 @@ t_ = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intlStrings.mjs
-var n_ = {};
-n_ = {
- "ar-AE": Sg,
- "bg-BG": Cg,
- "cs-CZ": wg,
- "da-DK": Tg,
- "de-DE": Eg,
- "el-GR": Dg,
- "en-US": Og,
- "es-ES": kg,
- "et-EE": Ag,
- "fi-FI": jg,
- "fr-FR": Mg,
- "he-IL": Ng,
- "hr-HR": Pg,
- "hu-HU": Fg,
- "it-IT": Ig,
- "ja-JP": Lg,
- "ko-KR": Rg,
- "lt-LT": zg,
- "lv-LV": Bg,
- "nb-NO": Vg,
- "nl-NL": Hg,
- "pl-PL": Ug,
- "pt-BR": Wg,
- "pt-PT": Gg,
- "ro-RO": Kg,
- "ru-RU": qg,
- "sk-SK": Jg,
- "sl-SI": Yg,
- "sr-SP": Xg,
- "sv-SE": Zg,
- "tr-TR": Qg,
- "uk-UA": $g,
- "zh-CN": e_,
- "zh-TW": t_
+var r_ = {};
+r_ = {
+ "ar-AE": Cg,
+ "bg-BG": wg,
+ "cs-CZ": Tg,
+ "da-DK": Eg,
+ "de-DE": Dg,
+ "el-GR": Og,
+ "en-US": kg,
+ "es-ES": Ag,
+ "et-EE": jg,
+ "fi-FI": Mg,
+ "fr-FR": Ng,
+ "he-IL": Pg,
+ "hr-HR": Fg,
+ "hu-HU": Ig,
+ "it-IT": Lg,
+ "ja-JP": Rg,
+ "ko-KR": zg,
+ "lt-LT": Bg,
+ "lv-LV": Vg,
+ "nb-NO": Hg,
+ "nl-NL": Ug,
+ "pl-PL": Wg,
+ "pt-BR": Gg,
+ "pt-PT": Kg,
+ "ro-RO": qg,
+ "ru-RU": Jg,
+ "sk-SK": Yg,
+ "sl-SI": Xg,
+ "sr-SP": Zg,
+ "sv-SE": Qg,
+ "tr-TR": $g,
+ "uk-UA": e_,
+ "zh-CN": t_,
+ "zh-TW": n_
};
//#endregion
//#region node_modules/react-aria-components/dist/private/DragAndDrop.mjs
-var r_ = /*#__PURE__*/ (0, S.createContext)({}), i_ = /*#__PURE__*/ (0, S.createContext)(null), a_ = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
- let { render: n } = (0, S.useContext)(i_);
- return /*#__PURE__*/ S.createElement(S.Fragment, null, n(e, t));
+var i_ = /*#__PURE__*/ (0, C.createContext)({}), a_ = /*#__PURE__*/ (0, C.createContext)(null), o_ = /*#__PURE__*/ (0, C.forwardRef)(function(e, t) {
+ let { render: n } = (0, C.useContext)(a_);
+ return /*#__PURE__*/ C.createElement(C.Fragment, null, n(e, t));
});
-function o_(e, t) {
- let n = e?.renderDropIndicator, r = e?.isVirtualDragging?.(), i = (0, S.useCallback)((e) => {
- if (r || t?.isDropTarget(e)) return n ? n(e) : /*#__PURE__*/ S.createElement(a_, { target: e });
+function s_(e, t) {
+ let n = e?.renderDropIndicator, r = e?.isVirtualDragging?.(), i = (0, C.useCallback)((e) => {
+ if (r || t?.isDropTarget(e)) return n ? n(e) : /*#__PURE__*/ C.createElement(o_, { target: e });
}, [
t?.target,
r,
@@ -21869,7 +21871,7 @@ function o_(e, t) {
]);
return e?.useDropIndicator ? i : void 0;
}
-function s_(e, t, n) {
+function c_(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;
@@ -21888,19 +21890,19 @@ function s_(e, t, n) {
}
i = e ?? t ?? i;
}
- return (0, S.useMemo)(() => new Set([r, i].filter((e) => e != null)), [r, i]);
+ return (0, C.useMemo)(() => new Set([r, i].filter((e) => e != null)), [r, i]);
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Header.mjs
-var c_ = /*#__PURE__*/ (0, S.createContext)({}), l_ = /*#__PURE__*/ (0, S.createContext)(null);
-function u_(e) {
- let t = (0, S.useRef)({});
- return /*#__PURE__*/ S.createElement(l_.Provider, { value: t }, e.children);
+var l_ = /*#__PURE__*/ (0, C.createContext)({}), u_ = /*#__PURE__*/ (0, C.createContext)(null);
+function d_(e) {
+ let t = (0, C.useRef)({});
+ return /*#__PURE__*/ C.createElement(u_.Provider, { value: t }, e.children);
}
//#endregion
//#region node_modules/react-aria-components/dist/private/SelectionIndicator.mjs
-var d_ = /*#__PURE__*/ (0, S.createContext)({ isSelected: !1 }), f_ = /*#__PURE__*/ (0, S.createContext)({});
-(class extends dt {
+var f_ = /*#__PURE__*/ (0, C.createContext)({ isSelected: !1 }), p_ = /*#__PURE__*/ (0, C.createContext)({});
+(class extends ft {
static {
this.type = "separator";
}
@@ -21915,13 +21917,13 @@ var d_ = /*#__PURE__*/ (0, S.createContext)({ isSelected: !1 }), f_ = /*#__PURE_
});
//#endregion
//#region node_modules/react-aria/dist/private/utils/inertValue.mjs
-function p_(e) {
- let t = S.version.split(".");
+function m_(e) {
+ let t = C.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 m_ = class {
+var h_ = class {
constructor(e) {
this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.iterable = e;
let t = (e) => {
@@ -21965,23 +21967,23 @@ var m_ = class {
getChildren(e) {
return this.keyMap.get(e)?.childNodes || [];
}
-}, h_ = class e extends Set {
+}, g_ = 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 g_(e, t) {
+function __(e, t) {
if (e.size !== t.size) return !1;
for (let n of e) if (!t.has(n)) return !1;
return !0;
}
-function __(e) {
- let { selectionMode: t = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: a = "all" } = e, o = (0, S.useRef)(!1), [, s] = (0, S.useState)(!1), c = (0, S.useRef)(null), l = (0, S.useRef)(null), [, u] = (0, S.useState)(null), [d, f] = Ho((0, S.useMemo)(() => v_(e.selectedKeys), [e.selectedKeys]), (0, S.useMemo)(() => v_(e.defaultSelectedKeys, new h_()), [e.defaultSelectedKeys]), e.onSelectionChange), p = (0, S.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), [m, h] = (0, S.useState)(i);
+function v_(e) {
+ let { selectionMode: t = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: a = "all" } = e, o = (0, C.useRef)(!1), [, s] = (0, C.useState)(!1), c = (0, C.useRef)(null), l = (0, C.useRef)(null), [, u] = (0, C.useState)(null), [d, f] = Wo((0, C.useMemo)(() => y_(e.selectedKeys), [e.selectedKeys]), (0, C.useMemo)(() => y_(e.defaultSelectedKeys, new g_()), [e.defaultSelectedKeys]), e.onSelectionChange), p = (0, C.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), [m, h] = (0, C.useState)(i);
i === "replace" && m === "toggle" && typeof d == "object" && d.size === 0 && h("replace");
- let g = (0, S.useRef)(i);
- return (0, S.useEffect)(() => {
+ let g = (0, C.useRef)(i);
+ return (0, C.useEffect)(() => {
i !== g.current && (h(i), g.current = i);
}, [i]), {
selectionMode: t,
@@ -22005,18 +22007,18 @@ function __(e) {
},
selectedKeys: d,
setSelectedKeys(e) {
- (r || !g_(e, d)) && f(e);
+ (r || !__(e, d)) && f(e);
},
disabledKeys: p,
disabledBehavior: a
};
}
-function v_(e, t) {
- return e ? e === "all" ? "all" : new h_(e) : t;
+function y_(e, t) {
+ return e ? e === "all" ? "all" : new g_(e) : t;
}
//#endregion
//#region node_modules/react-stately/dist/private/selection/SelectionManager.mjs
-var y_ = class e {
+var b_ = 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;
}
@@ -22072,7 +22074,7 @@ var y_ = class e {
let e = null;
for (let t of this.state.selectedKeys) {
let n = this.collection.getItem(t);
- (!e || n && uc(this.collection, n, e) < 0) && (e = n);
+ (!e || n && fc(this.collection, n, e) < 0) && (e = n);
}
return e?.key ?? null;
}
@@ -22080,7 +22082,7 @@ var y_ = class e {
let e = null;
for (let t of this.state.selectedKeys) {
let n = this.collection.getItem(t);
- (!e || n && uc(this.collection, n, e) > 0) && (e = n);
+ (!e || n && fc(this.collection, n, e) > 0) && (e = n);
}
return e?.key ?? null;
}
@@ -22099,10 +22101,10 @@ var y_ = class e {
let t = this.getKey(e);
if (t == null) return;
let n;
- if (this.state.selectedKeys === "all") n = new h_([t], t, t);
+ if (this.state.selectedKeys === "all") n = new g_([t], t, t);
else {
let e = this.state.selectedKeys, r = e.anchorKey ?? t;
- n = new h_(e, r, t);
+ n = new g_(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);
}
@@ -22110,7 +22112,7 @@ var y_ = class e {
}
getKeyRange(e, t) {
let n = this.collection.getItem(e), r = this.collection.getItem(t);
- return n && r ? uc(this.collection, n, r) <= 0 ? this.getKeyRangeInternal(e, t) : this.getKeyRangeInternal(t, e) : [];
+ return n && r ? fc(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);
@@ -22136,19 +22138,19 @@ var y_ = class e {
}
let t = this.getKey(e);
if (t == null) return;
- let n = new h_(this.state.selectedKeys === "all" ? this.getSelectAllKeys() : this.state.selectedKeys);
+ let n = new g_(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 h_([t], t, t) : new h_();
+ let n = this.canSelectItem(t) ? new g_([t], t, t) : new g_();
this.state.setSelectedKeys(n);
}
setSelectedKeys(e) {
if (this.selectionMode === "none") return;
- let t = new h_();
+ let t = new g_();
for (let n of e) {
let e = this.getKey(n);
if (e != null && (t.add(e), this.selectionMode === "single")) break;
@@ -22160,7 +22162,7 @@ var y_ = 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(sc(oc(i, e))?.key ?? null);
+ i?.type === "item" && t.push(r), i?.hasChildNodes && (this.allowsCellSelection || i.type !== "item") && n(lc(cc(i, e))?.key ?? null);
}
r = e.getKeyAfter(r);
}
@@ -22171,7 +22173,7 @@ var y_ = 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 h_());
+ !this.disallowEmptySelection && (this.state.selectedKeys === "all" || this.state.selectedKeys.size > 0) && this.state.setSelectedKeys(new g_());
}
toggleSelectAll() {
this.isSelectAll ? this.clearSelection() : this.selectAll();
@@ -22212,13 +22214,13 @@ var y_ = class e {
fullCollection: this.fullCollection ?? this.collection
});
}
-}, b_ = class {
+}, x_ = class {
build(e, t) {
- return this.context = t, x_(() => this.iterateCollection(e));
+ return this.context = t, S_(() => this.iterateCollection(e));
}
*iterateCollection(e) {
let { children: t, items: n } = e;
- if (S.isValidElement(t) && t.type === S.Fragment) yield* this.iterateCollection({
+ if (C.isValidElement(t) && t.type === C.Fragment) yield* this.iterateCollection({
children: t.props.children,
items: n
});
@@ -22231,7 +22233,7 @@ var y_ = class e {
}, { renderer: t }), e++;
} else {
let e = [];
- S.Children.forEach(t, (t) => {
+ C.Children.forEach(t, (t) => {
t && e.push(t);
});
let n = 0;
@@ -22259,9 +22261,9 @@ var y_ = class e {
return { renderer: t.renderer || e.renderer };
}
*getFullNode(e, t, n, r) {
- if (S.isValidElement(e.element) && e.element.type === S.Fragment) {
+ if (C.isValidElement(e.element) && e.element.type === C.Fragment) {
let i = [];
- S.Children.forEach(e.element.props.children, (e) => {
+ C.Children.forEach(e.element.props.children, (e) => {
i.push(e);
});
let a = e.index ?? 0;
@@ -22280,7 +22282,7 @@ var y_ = class e {
}
i = t.renderer(e.value);
}
- if (S.isValidElement(i)) {
+ if (C.isValidElement(i)) {
let a = i.type;
if (typeof a != "function" && typeof a.getCollectionNode != "function") {
let e = i.type;
@@ -22296,10 +22298,10 @@ var y_ = class e {
...a,
key: l,
index: s,
- wrapper: S_(e.wrapper, a.wrapper)
+ wrapper: C_(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 <${C_(t.type)}> in <${C_(r?.type ?? "unknown parent type")}>. Only <${C_(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 <${w_(t.type)}> in <${w_(r?.type ?? "unknown parent type")}>. Only <${w_(e.type)}> is supported.`);
s++, yield t;
}
c = o.next(u);
@@ -22321,7 +22323,7 @@ var y_ = class e {
wrapper: e.wrapper,
shouldInvalidate: e.shouldInvalidate,
hasChildNodes: e.hasChildNodes || !1,
- childNodes: x_(function* () {
+ childNodes: S_(function* () {
if (!e.hasChildNodes || !e.childNodes) return;
let n = 0;
for (let r of e.childNodes()) {
@@ -22340,7 +22342,7 @@ var y_ = class e {
this.cache = /* @__PURE__ */ new WeakMap();
}
};
-function x_(e) {
+function S_(e) {
let t = [], n = null;
return { *[Symbol.iterator]() {
for (let e of t) yield e;
@@ -22348,19 +22350,19 @@ function x_(e) {
for (let e of n) t.push(e), yield e;
} };
}
-function S_(e, t) {
+function C_(e, t) {
if (e && t) return (n) => e(t(n));
if (e) return e;
if (t) return t;
}
-function C_(e) {
+function w_(e) {
return e[0].toUpperCase() + e.slice(1);
}
//#endregion
//#region node_modules/react-stately/dist/private/collections/useCollection.mjs
-function w_(e, t, n) {
- let r = (0, S.useMemo)(() => new b_(), []), { children: i, items: a, collection: o } = e;
- return (0, S.useMemo)(() => o || t(r.build({
+function T_(e, t, n) {
+ let r = (0, C.useMemo)(() => new x_(), []), { children: i, items: a, collection: o } = e;
+ return (0, C.useMemo)(() => o || t(r.build({
children: i,
items: a
}, n)), [
@@ -22374,29 +22376,29 @@ function w_(e, t, n) {
}
//#endregion
//#region node_modules/react-stately/dist/private/list/useListState.mjs
-function T_(e) {
- let { filter: t, layoutDelegate: n } = e, r = __(e), i = (0, S.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = w_(e, (0, S.useCallback)((e) => t ? new m_(t(e)) : new m_(e), [t]), (0, S.useMemo)(() => ({ suppressTextValueWarning: e.suppressTextValueWarning }), [e.suppressTextValueWarning])), o = (0, S.useMemo)(() => new y_(a, r, { layoutDelegate: n }), [
+function E_(e) {
+ let { filter: t, layoutDelegate: n } = e, r = v_(e), i = (0, C.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = T_(e, (0, C.useCallback)((e) => t ? new h_(t(e)) : new h_(e), [t]), (0, C.useMemo)(() => ({ suppressTextValueWarning: e.suppressTextValueWarning }), [e.suppressTextValueWarning])), o = (0, C.useMemo)(() => new b_(a, r, { layoutDelegate: n }), [
a,
r,
n
]);
- return D_(a, o), {
+ return O_(a, o), {
collection: a,
disabledKeys: i,
selectionManager: o
};
}
-function E_(e, t) {
- let n = (0, S.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);
- return D_(n, r), {
+function D_(e, t) {
+ let n = (0, C.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);
+ return O_(n, r), {
collection: n,
selectionManager: r,
disabledKeys: e.disabledKeys
};
}
-function D_(e, t) {
- let n = (0, S.useRef)(null);
- (0, S.useEffect)(() => {
+function O_(e, t) {
+ let n = (0, C.useRef)(null);
+ (0, C.useEffect)(() => {
if (t.focusedKey != null && !e.getItem(t.focusedKey) && n.current) {
let r = n.current.getKeyAfter(t.focusedKey), i = null;
for (; r != null;) {
@@ -22422,15 +22424,15 @@ function D_(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useLoadMoreSentinel.mjs
-function O_(e, t) {
- let { collection: n, onLoadMore: r, scrollOffset: i = 1, direction: a = "end" } = e, o = (0, S.useRef)(null), s = Ti((e) => {
+function k_(e, t) {
+ let { collection: n, onLoadMore: r, scrollOffset: i = 1, direction: a = "end" } = e, o = (0, C.useRef)(null), s = Ei((e) => {
for (let t of e) t.isIntersecting && r && r();
});
- Yt(() => {
+ Xt(() => {
if (t.current) {
let e = 100 * i, n = a === "start" ? `${e}% 0px 0px 0px` : `0px ${e}% ${e}% ${e}%`;
o.current = new IntersectionObserver(s, {
- root: lo(t?.current),
+ root: fo(t?.current),
rootMargin: n
}), o.current.observe(t.current);
}
@@ -22446,42 +22448,42 @@ function O_(e, t) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/ListBox.mjs
-var k_ = /*#__PURE__*/ (0, S.createContext)(null), A_ = /*#__PURE__*/ (0, S.createContext)(null), j_ = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
- [e, t] = Rh(e, t, k_);
- let n = (0, S.useContext)(A_);
- return n ? /*#__PURE__*/ S.createElement(N_, {
+var A_ = /*#__PURE__*/ (0, C.createContext)(null), j_ = /*#__PURE__*/ (0, C.createContext)(null), M_ = /*#__PURE__*/ (0, C.forwardRef)(function(e, t) {
+ [e, t] = zh(e, t, A_);
+ let n = (0, C.useContext)(j_);
+ return n ? /*#__PURE__*/ C.createElement(P_, {
state: n,
props: e,
listBoxRef: t
- }) : /*#__PURE__*/ S.createElement(ti, { content: /*#__PURE__*/ S.createElement(pi, e) }, (n) => /*#__PURE__*/ S.createElement(M_, {
+ }) : /*#__PURE__*/ C.createElement(ni, { content: /*#__PURE__*/ C.createElement(mi, e) }, (n) => /*#__PURE__*/ C.createElement(N_, {
props: e,
listBoxRef: t,
collection: n
}));
});
-function M_({ props: e, listBoxRef: t, collection: n }) {
+function N_({ props: e, listBoxRef: t, collection: n }) {
e = {
...e,
collection: n,
children: null,
items: null
};
- let { layoutDelegate: r } = (0, S.useContext)(Yh), i = T_({
+ let { layoutDelegate: r } = (0, C.useContext)(Xh), i = E_({
...e,
layoutDelegate: r
});
- return /*#__PURE__*/ S.createElement(N_, {
+ return /*#__PURE__*/ C.createElement(P_, {
state: i,
props: e,
listBoxRef: t
});
}
-function N_({ state: e, props: t, listBoxRef: n }) {
- [t, n] = Rh(t, n, Uh);
- let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = E_(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = Ri(), { disabledBehavior: p, disabledKeys: m } = l, h = hc({
+function P_({ state: e, props: t, listBoxRef: n }) {
+ [t, n] = zh(t, n, Wh);
+ let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = D_(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = zi(), { disabledBehavior: p, disabledKeys: m } = l, h = _c({
usage: "search",
sensitivity: "base"
- }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, S.useContext)(Yh), b = (0, S.useMemo)(() => t.keyboardDelegate || new ds({
+ }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, C.useContext)(Xh), b = (0, C.useMemo)(() => t.keyboardDelegate || new ps({
collection: c,
collator: h,
ref: n,
@@ -22502,22 +22504,22 @@ function N_({ state: e, props: t, listBoxRef: n }) {
t.keyboardDelegate,
i,
_
- ]), { listBoxProps: x } = Dl({
+ ]), { listBoxProps: x } = kl({
...t,
shouldSelectOnPressUp: u || t.shouldSelectOnPressUp,
keyboardDelegate: b,
isVirtualized: g
}, s, n);
- (0, S.useRef)(u), (0, S.useRef)(d), (0, S.useEffect)(() => {}, [u, d]);
- let C, w, T, E = !1, D = null, O = (0, S.useRef)(null);
+ (0, C.useRef)(u), (0, C.useRef)(d), (0, C.useEffect)(() => {}, [u, d]);
+ let S, w, T, E = !1, D = null, O = (0, C.useRef)(null);
if (u && r) {
- C = r.useDraggableCollectionState({
+ S = r.useDraggableCollectionState({
collection: c,
selectionManager: l,
preview: r.renderDragPreview ? O : void 0
- }), r.useDraggableCollection({}, C, n);
+ }), r.useDraggableCollection({}, S, n);
let e = r.DragPreview;
- D = r.renderDragPreview ? /*#__PURE__*/ S.createElement(e, { ref: O }, r.renderDragPreview) : null;
+ D = r.renderDragPreview ? /*#__PURE__*/ C.createElement(e, { ref: O }, r.renderDragPreview) : null;
}
if (d && r) {
w = r.useDroppableCollectionState({
@@ -22534,7 +22536,7 @@ function N_({ state: e, props: t, listBoxRef: n }) {
dropTargetDelegate: e
}, w, n), E = w.isDropTarget({ type: "root" });
}
- let { focusProps: k, isFocused: A, isFocusVisible: j } = wc(), M = s.collection.size === 0, N = {
+ let { focusProps: k, isFocused: A, isFocusVisible: j } = Ec(), M = s.collection.size === 0, N = {
isDropTarget: E,
isEmpty: M,
isFocused: A,
@@ -22542,18 +22544,18 @@ function N_({ state: e, props: t, listBoxRef: n }) {
layout: t.layout || "stack",
orientation: a,
state: s
- }, ee = Ih({
+ }, ee = Lh({
...t,
children: void 0,
defaultClassName: "react-aria-ListBox",
values: N
}), P = null;
- M && t.renderEmptyState && (P = /*#__PURE__*/ S.createElement("div", {
+ M && t.renderEmptyState && (P = /*#__PURE__*/ C.createElement("div", {
role: "option",
style: { display: "contents" }
}, t.renderEmptyState(N)));
- let F = U(t, { global: !0 });
- return /*#__PURE__*/ S.createElement(Na, null, /*#__PURE__*/ S.createElement(Y.div, {
+ let F = H(t, { global: !0 });
+ return /*#__PURE__*/ C.createElement(Fa, null, /*#__PURE__*/ C.createElement(Y.div, {
...V(F, ee, x, k, T?.collectionProps),
ref: n,
slot: t.slot || void 0,
@@ -22564,60 +22566,60 @@ function N_({ state: e, props: t, listBoxRef: n }) {
"data-focus-visible": j || void 0,
"data-layout": t.layout || "stack",
"data-orientation": a
- }, /*#__PURE__*/ S.createElement(Fh, { values: [
- [k_, t],
- [A_, s],
- [r_, {
+ }, /*#__PURE__*/ C.createElement(Ih, { values: [
+ [A_, t],
+ [j_, s],
+ [i_, {
dragAndDropHooks: r,
- dragState: C,
+ dragState: S,
dropState: w
}],
- [f_, { elementType: "div" }],
- [i_, { render: I_ }],
- [Gh, {
+ [p_, { elementType: "div" }],
+ [a_, { render: L_ }],
+ [Kh, {
name: "ListBoxSection",
- render: P_
+ render: F_
}]
- ] }, /*#__PURE__*/ S.createElement(u_, null, /*#__PURE__*/ S.createElement(y, {
+ ] }, /*#__PURE__*/ C.createElement(d_, null, /*#__PURE__*/ C.createElement(y, {
collection: c,
scrollRef: n,
- persistedKeys: s_(l, r, w),
- renderDropIndicator: o_(r, w)
+ persistedKeys: c_(l, r, w),
+ renderDropIndicator: s_(r, w)
}))), P, D));
}
-function P_(e, t, n, r = "react-aria-ListBoxSection") {
- let i = (0, S.useContext)(A_), { dragAndDropHooks: a, dropState: o } = (0, S.useContext)(r_), { CollectionBranch: s } = (0, S.useContext)(Yh), [c, l] = zh(), { headingProps: u, groupProps: d } = Ol({
+function F_(e, t, n, r = "react-aria-ListBoxSection") {
+ let i = (0, C.useContext)(j_), { dragAndDropHooks: a, dropState: o } = (0, C.useContext)(i_), { CollectionBranch: s } = (0, C.useContext)(Xh), [c, l] = Bh(), { headingProps: u, groupProps: d } = Al({
heading: l,
"aria-label": e["aria-label"] ?? void 0
- }), f = Ih({
+ }), f = Lh({
...e,
id: void 0,
children: void 0,
defaultClassName: r,
values: void 0
- }), p = U(e, { global: !0 });
- return delete p.id, /*#__PURE__*/ S.createElement(Y.section, {
+ }), p = H(e, { global: !0 });
+ return delete p.id, /*#__PURE__*/ C.createElement(Y.section, {
...V(p, f, d),
ref: t
- }, /*#__PURE__*/ S.createElement(c_.Provider, { value: {
+ }, /*#__PURE__*/ C.createElement(l_.Provider, { value: {
...u,
ref: c
- } }, /*#__PURE__*/ S.createElement(s, {
+ } }, /*#__PURE__*/ C.createElement(s, {
collection: i.collection,
parent: n,
- renderDropIndicator: o_(a, o)
+ renderDropIndicator: s_(a, o)
})));
}
-var F_ = /*#__PURE__*/ li(mt, function(e, t, n) {
- let r = Rr(t), i = (0, S.useContext)(A_), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, S.useContext)(r_), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = kl({
+var I_ = /*#__PURE__*/ ui(ht, function(e, t, n) {
+ let r = zr(t), i = (0, C.useContext)(j_), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, C.useContext)(i_), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = jl({
key: n.key,
"aria-label": e?.["aria-label"]
- }, i, r), { hoverProps: p, isHovered: m } = jc({
+ }, i, r), { hoverProps: p, isHovered: m } = Nc({
isDisabled: !f.allowsSelection && !f.hasAction && !c,
onHoverStart: n.props.onHoverStart,
onHoverChange: n.props.onHoverChange,
onHoverEnd: n.props.onHoverEnd
- }), { keyboardProps: h } = Lr(e), { focusProps: g } = Cr(e), _ = null;
+ }), { keyboardProps: h } = Rr(e), { focusProps: g } = wr(e), _ = null;
o && a && (_ = a.useDraggableItem({
key: n.key,
hasAction: f.hasAction
@@ -22628,7 +22630,7 @@ var F_ = /*#__PURE__*/ li(mt, function(e, t, n) {
key: n.key,
dropPosition: "on"
} }, s, r));
- let y = o && o.isDragging(n.key), b = Ih({
+ let y = o && o.isDragging(n.key), b = Lh({
...e,
id: void 0,
children: e.children,
@@ -22643,12 +22645,12 @@ var F_ = /*#__PURE__*/ li(mt, function(e, t, n) {
isDropTarget: v?.isDropTarget
}
});
- (0, S.useEffect)(() => {
+ (0, C.useEffect)(() => {
n.textValue;
}, [n.textValue]);
- let x = e.href ? Y.a : Y.div, C = U(e, { global: !0 });
- return delete C.id, delete C.onClick, e.href && l.tabIndex == null && (l.tabIndex = -1), /*#__PURE__*/ S.createElement(x, {
- ...V(C, b, l, p, h, g, _?.dragProps, v?.dropProps),
+ let x = e.href ? Y.a : Y.div, S = H(e, { global: !0 });
+ return delete S.id, delete S.onClick, e.href && l.tabIndex == null && (l.tabIndex = -1), /*#__PURE__*/ C.createElement(x, {
+ ...V(S, b, l, p, h, g, _?.dragProps, v?.dropProps),
ref: r,
"data-allows-dragging": !!o || void 0,
"data-selected": f.isSelected || void 0,
@@ -22660,29 +22662,29 @@ var F_ = /*#__PURE__*/ li(mt, 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__*/ S.createElement(Fh, { values: [[og, { slots: {
- [Ph]: u,
+ }, /*#__PURE__*/ C.createElement(Ih, { values: [[sg, { slots: {
+ [Fh]: u,
label: u,
description: d
- } }], [d_, { isSelected: f.isSelected }]] }, b.children));
+ } }], [f_, { isSelected: f.isSelected }]] }, b.children));
});
-function I_(e, t) {
- t = Rr(t);
- let { dragAndDropHooks: n, dropState: r } = (0, S.useContext)(r_), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);
- return a ? null : /*#__PURE__*/ S.createElement(R_, {
+function L_(e, t) {
+ t = zr(t);
+ let { dragAndDropHooks: n, dropState: r } = (0, C.useContext)(i_), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);
+ return a ? null : /*#__PURE__*/ C.createElement(z_, {
...e,
dropIndicatorProps: i,
isDropTarget: o,
ref: t
});
}
-function L_(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, ...i } = e, a = Ih({
+function R_(e, t) {
+ let { dropIndicatorProps: n, isDropTarget: r, ...i } = e, a = Lh({
...i,
defaultClassName: "react-aria-DropIndicator",
values: { isDropTarget: r }
});
- return /*#__PURE__*/ S.createElement(S.Fragment, null, /*#__PURE__*/ S.createElement(Y.div, {
+ return /*#__PURE__*/ C.createElement(C.Fragment, null, /*#__PURE__*/ C.createElement(Y.div, {
...n,
...a,
role: "option",
@@ -22690,10 +22692,10 @@ function L_(e, t) {
"data-drop-target": r || void 0
}));
}
-var R_ = /*#__PURE__*/ (0, S.forwardRef)(L_);
-li(pt, function(e, t, n) {
- let r = (0, S.useContext)(A_), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, S.useRef)(null);
- O_((0, S.useMemo)(() => ({
+var z_ = /*#__PURE__*/ (0, C.forwardRef)(R_);
+ui(mt, function(e, t, n) {
+ let r = (0, C.useContext)(j_), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, C.useRef)(null);
+ k_((0, C.useMemo)(() => ({
onLoadMore: a,
collection: r?.collection,
sentinelRef: c,
@@ -22703,21 +22705,21 @@ li(pt, function(e, t, n) {
o,
r?.collection
]), c);
- let l = Ih({
+ let l = Lh({
...s,
id: void 0,
children: n.rendered,
defaultClassName: "react-aria-ListBoxLoadingIndicator",
values: void 0
});
- return /*#__PURE__*/ S.createElement(S.Fragment, null, /*#__PURE__*/ S.createElement("div", {
+ return /*#__PURE__*/ C.createElement(C.Fragment, null, /*#__PURE__*/ C.createElement("div", {
style: {
position: "relative",
width: 0,
height: 0
},
- inert: p_(!0)
- }, /*#__PURE__*/ S.createElement("div", {
+ inert: m_(!0)
+ }, /*#__PURE__*/ C.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: c,
style: {
@@ -22725,8 +22727,8 @@ li(pt, function(e, t, n) {
height: 1,
width: 1
}
- })), i && l.children && /*#__PURE__*/ S.createElement(S.Fragment, null, /*#__PURE__*/ S.createElement(Y.div, {
- ...V(U(e, { global: !0 }), { tabIndex: -1 }),
+ })), i && l.children && /*#__PURE__*/ C.createElement(C.Fragment, null, /*#__PURE__*/ C.createElement(Y.div, {
+ ...V(H(e, { global: !0 }), { tabIndex: -1 }),
...l,
role: "option",
ref: t
@@ -22734,21 +22736,21 @@ li(pt, function(e, t, n) {
});
//#endregion
//#region node_modules/react-aria-components/dist/private/OverlayArrow.mjs
-var z_ = /*#__PURE__*/ (0, S.createContext)({ placement: "bottom" });
+var B_ = /*#__PURE__*/ (0, C.createContext)({ placement: "bottom" });
//#endregion
//#region node_modules/react-stately/dist/private/overlays/useOverlayTriggerState.mjs
-function B_(e) {
- let [t, n] = Ho(e.isOpen, e.defaultOpen || !1, e.onOpenChange), [r, i] = (0, S.useState)(null);
+function V_(e) {
+ let [t, n] = Wo(e.isOpen, e.defaultOpen || !1, e.onOpenChange), [r, i] = (0, C.useState)(null);
return {
isOpen: t,
setOpen: n,
- open: (0, S.useCallback)(() => {
+ open: (0, C.useCallback)(() => {
n(!0);
}, [n]),
- close: (0, S.useCallback)(() => {
+ close: (0, C.useCallback)(() => {
n(!1);
}, [n]),
- toggle: (0, S.useCallback)(() => {
+ toggle: (0, C.useCallback)(() => {
n(!t);
}, [n, t]),
point: r,
@@ -22757,14 +22759,14 @@ function B_(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/animation.mjs
-function V_(e, t = !0) {
- let [n, r] = (0, S.useState)(!0), i = n && t;
- return Yt(() => {
+function H_(e, t = !0) {
+ let [n, r] = (0, C.useState)(!0), i = n && t;
+ return Xt(() => {
if (i && e.current && "getAnimations" in e.current) for (let t of e.current.getAnimations()) t instanceof CSSTransition && t.cancel();
- }, [e, i]), U_(e, i, (0, S.useCallback)(() => r(!1), [])), i;
+ }, [e, i]), W_(e, i, (0, C.useCallback)(() => r(!1), [])), i;
}
-function H_(e, t) {
- let [n, r] = (0, S.useState)(t ? "open" : "closed");
+function U_(e, t) {
+ let [n, r] = (0, C.useState)(t ? "open" : "closed");
switch (n) {
case "open":
t || r("exiting");
@@ -22773,12 +22775,12 @@ function H_(e, t) {
case "exiting": t && r("open");
}
let i = n === "exiting";
- return U_(e, i, (0, S.useCallback)(() => {
+ return W_(e, i, (0, C.useCallback)(() => {
r((e) => e === "exiting" ? "closed" : e);
}, [])), i;
}
-function U_(e, t, n) {
- Yt(() => {
+function W_(e, t, n) {
+ Xt(() => {
if (t && e.current) {
if (!("getAnimations" in e.current)) {
n();
@@ -22791,7 +22793,7 @@ function U_(e, t, n) {
}
let r = !1;
return Promise.allSettled(t.map((e) => e.finished)).then(() => {
- r || (0, Zr.flushSync)(() => {
+ r || (0, Qr.flushSync)(() => {
n();
});
}), () => {
@@ -22806,9 +22808,9 @@ function U_(e, t, n) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Popover.mjs
-var W_ = /*#__PURE__*/ (0, S.createContext)(null), G_ = /*#__PURE__*/ (0, S.createContext)(null), K_ = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
- [e, t] = Rh(e, t, W_);
- let n = (0, S.useContext)(Y_), r = B_(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = H_(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = Kr(), { direction: c } = Ri();
+var G_ = /*#__PURE__*/ (0, C.createContext)(null), K_ = /*#__PURE__*/ (0, C.createContext)(null), q_ = /*#__PURE__*/ (0, C.forwardRef)(function(e, t) {
+ [e, t] = zh(e, t, G_);
+ let n = (0, C.useContext)(X_), r = V_(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = U_(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = qr(), { direction: c } = zi();
if (s) {
let t = e.children;
return typeof t == "function" && (t = t({
@@ -22817,9 +22819,9 @@ var W_ = /*#__PURE__*/ (0, S.createContext)(null), G_ = /*#__PURE__*/ (0, S.crea
isEntering: !1,
isExiting: !1,
defaultChildren: null
- })), /*#__PURE__*/ S.createElement(S.Fragment, null, t);
+ })), /*#__PURE__*/ C.createElement(C.Fragment, null, t);
}
- return i && !i.isOpen && !o ? null : /*#__PURE__*/ S.createElement(q_, {
+ return i && !i.isOpen && !o ? null : /*#__PURE__*/ C.createElement(J_, {
...e,
triggerRef: e.triggerRef,
state: i,
@@ -22828,13 +22830,13 @@ var W_ = /*#__PURE__*/ (0, S.createContext)(null), G_ = /*#__PURE__*/ (0, S.crea
dir: c
});
});
-function q_({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts: r, ...i }) {
- let a = (0, S.useRef)(null), o = (0, S.useRef)(null), s = (0, S.useContext)(G_), c = s && i.trigger === "SubmenuTrigger", { popoverProps: l, underlayProps: u, arrowProps: d, placement: f, triggerAnchorPoint: p } = Qu({
+function J_({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts: r, ...i }) {
+ let a = (0, C.useRef)(null), o = (0, C.useRef)(null), s = (0, C.useContext)(K_), c = s && i.trigger === "SubmenuTrigger", { popoverProps: l, underlayProps: u, arrowProps: d, placement: f, triggerAnchorPoint: p } = ed({
...i,
offset: i.offset ?? 8,
arrowRef: a,
groupRef: c ? s : o
- }, e), m = i.popoverRef, h = V_(m, !!f), g = i.isEntering || !i.shouldSkipAnimation && h || !1, _ = Ih({
+ }, e), m = i.popoverRef, h = H_(m, !!f), g = i.isEntering || !i.shouldSkipAnimation && h || !1, _ = Lh({
...i,
defaultClassName: "react-aria-Popover",
values: {
@@ -22843,24 +22845,24 @@ function q_({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts
isEntering: g,
isExiting: t
}
- }), v = !i.isNonModal || i.trigger === "SubmenuTrigger" || i.trigger === "PreviewTrigger", [y, b] = (0, S.useState)(i.trigger === "PreviewTrigger");
- Yt(() => {
+ }), v = !i.isNonModal || i.trigger === "SubmenuTrigger" || i.trigger === "PreviewTrigger", [y, b] = (0, C.useState)(i.trigger === "PreviewTrigger");
+ Xt(() => {
m.current && b(v && !m.current.querySelector("[role=dialog]"));
- }, [m, v]), (0, S.useEffect)(() => {
- y && i.trigger !== "PreviewTrigger" && (i.trigger !== "SubmenuTrigger" || Qn() !== "pointer") && m.current && !Rt(m.current) && lr(m.current);
+ }, [m, v]), (0, C.useEffect)(() => {
+ y && i.trigger !== "PreviewTrigger" && (i.trigger !== "SubmenuTrigger" || $n() !== "pointer") && m.current && !zt(m.current) && ur(m.current);
}, [
y,
m,
i.trigger
]);
- let x = (0, S.useMemo)(() => {
+ let x = (0, C.useMemo)(() => {
let e = _.children;
- if (r) for (let t of r) e = /*#__PURE__*/ S.createElement(t.Provider, { value: null }, e);
+ if (r) for (let t of r) e = /*#__PURE__*/ C.createElement(t.Provider, { value: null }, e);
return e;
- }, [_.children, r]), [C, w] = (0, S.useState)(null), T = (0, S.useCallback)(() => {
+ }, [_.children, r]), [S, w] = (0, C.useState)(null), T = (0, C.useCallback)(() => {
i.triggerRef.current && w(i.triggerRef.current.getBoundingClientRect().width + "px");
}, [i.triggerRef]);
- Yt(T, [T]), jl({
+ Xt(T, [T]), Nl({
ref: _.style?.["--trigger-width"] ? void 0 : i.triggerRef,
onResize: T
});
@@ -22868,9 +22870,9 @@ function q_({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts
...l.style,
"--trigger-anchor-point": p ? `${p.x}px ${p.y}px` : void 0,
..._.style,
- "--trigger-width": _.style?.["--trigger-width"] || C
- }, D = /*#__PURE__*/ S.createElement(Y.div, {
- ...V(U(i, { global: !0 }), l),
+ "--trigger-width": _.style?.["--trigger-width"] || S
+ }, D = /*#__PURE__*/ C.createElement(Y.div, {
+ ...V(H(i, { global: !0 }), l),
..._,
id: y ? i.id : void 0,
role: y ? "dialog" : void 0,
@@ -22885,112 +22887,112 @@ function q_({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts
"data-placement": f,
"data-entering": g || void 0,
"data-exiting": t || void 0
- }, !i.isNonModal && /*#__PURE__*/ S.createElement(mu, { onDismiss: e.close }), /*#__PURE__*/ S.createElement(z_.Provider, { value: {
+ }, !i.isNonModal && /*#__PURE__*/ C.createElement(gu, { onDismiss: e.close }), /*#__PURE__*/ C.createElement(B_.Provider, { value: {
...d,
placement: f,
ref: a
- } }, x), /*#__PURE__*/ S.createElement(mu, { onDismiss: e.close }));
- return c ? /*#__PURE__*/ S.createElement(xc, {
+ } }, x), /*#__PURE__*/ C.createElement(gu, { onDismiss: e.close }));
+ return c ? /*#__PURE__*/ C.createElement(Cc, {
...i,
shouldContainFocus: y && i.trigger !== "PreviewTrigger",
isExiting: t,
portalContainer: n ?? s?.current ?? void 0
- }, D) : /*#__PURE__*/ S.createElement(xc, {
+ }, D) : /*#__PURE__*/ C.createElement(Cc, {
...i,
shouldContainFocus: y && i.trigger !== "PreviewTrigger",
isExiting: t,
portalContainer: n
- }, !i.isNonModal && e.isOpen && /*#__PURE__*/ S.createElement("div", {
+ }, !i.isNonModal && e.isOpen && /*#__PURE__*/ C.createElement("div", {
"data-testid": "underlay",
...u,
style: {
position: "fixed",
inset: 0
}
- }), /*#__PURE__*/ S.createElement("div", {
+ }), /*#__PURE__*/ C.createElement("div", {
ref: o,
style: { display: "contents" }
- }, /*#__PURE__*/ S.createElement(G_.Provider, { value: o }, D)));
+ }, /*#__PURE__*/ C.createElement(K_.Provider, { value: o }, D)));
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Dialog.mjs
-var J_ = /*#__PURE__*/ (0, S.createContext)(null), Y_ = /*#__PURE__*/ (0, S.createContext)(null), X_ = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
+var Y_ = /*#__PURE__*/ (0, C.createContext)(null), X_ = /*#__PURE__*/ (0, C.createContext)(null), Z_ = /*#__PURE__*/ (0, C.forwardRef)(function(e, t) {
let n = e["aria-labelledby"];
- [e, t] = Rh(e, t, J_);
- let { dialogProps: r, titleProps: i, contentProps: a } = Cc({
+ [e, t] = zh(e, t, Y_);
+ let { dialogProps: r, titleProps: i, contentProps: a } = Tc({
...e,
"aria-labelledby": n
- }, t), o = (0, S.useContext)(Y_);
+ }, t), o = (0, C.useContext)(X_);
!r["aria-label"] && !r["aria-labelledby"] && e["aria-labelledby"] && (r["aria-labelledby"] = e["aria-labelledby"]);
- let s = Ih({
+ let s = Lh({
defaultClassName: "react-aria-Dialog",
className: e.className,
style: e.style,
children: e.children,
values: { close: o?.close || (() => {}) }
- }), c = U(e, { global: !0 });
- return /*#__PURE__*/ S.createElement(Y.section, {
+ }), c = H(e, { global: !0 });
+ return /*#__PURE__*/ C.createElement(Y.section, {
...V(c, s, r),
render: e.render,
ref: t,
slot: e.slot || void 0
- }, /*#__PURE__*/ S.createElement(Fh, { values: [
- [ig, { slots: {
- [Ph]: {},
+ }, /*#__PURE__*/ C.createElement(Ih, { values: [
+ [ag, { slots: {
+ [Fh]: {},
title: {
...i,
level: 2
}
} }],
- [og, { slots: {
- [Ph]: {},
+ [sg, { slots: {
+ [Fh]: {},
description: a
} }],
- [eg, { slots: {
- [Ph]: {},
+ [tg, { slots: {
+ [Fh]: {},
close: { onPress: () => o?.close() }
} }]
] }, s.children));
-}), Z_ = typeof document < "u" && window.visualViewport;
-function Q_() {
- let e = Pn(), [t, n] = (0, S.useState)(() => e ? {
+}), Q_ = typeof document < "u" && window.visualViewport;
+function $_() {
+ let e = Fn(), [t, n] = (0, C.useState)(() => e ? {
width: 0,
height: 0
- } : $_());
- return (0, S.useEffect)(() => {
+ } : ev());
+ return (0, C.useEffect)(() => {
let e = (e) => {
n((t) => e.width === t.width && e.height === t.height ? t : e);
}, t = () => {
- Z_ && Z_.scale > 1 || e($_());
+ Q_ && Q_.scale > 1 || e(ev());
}, r, i = (t) => {
- Z_ && Z_.scale > 1 || Ci(B(t)) && (r = requestAnimationFrame(() => {
- let t = It();
- (!t || !Ci(t)) && e({
+ Q_ && Q_.scale > 1 || wi(B(t)) && (r = requestAnimationFrame(() => {
+ let t = Lt();
+ (!t || !wi(t)) && e({
width: document.documentElement.clientWidth,
height: document.documentElement.clientHeight
});
}));
};
- return e($_()), cn() && un() && window.addEventListener("blur", i, !0), Z_ ? Z_.addEventListener("resize", t) : window.addEventListener("resize", t), () => {
- cancelAnimationFrame(r), cn() && un() && window.removeEventListener("blur", i, !0), Z_ ? Z_.removeEventListener("resize", t) : window.removeEventListener("resize", t);
+ return e(ev()), ln() && dn() && window.addEventListener("blur", i, !0), Q_ ? Q_.addEventListener("resize", t) : window.addEventListener("resize", t), () => {
+ cancelAnimationFrame(r), ln() && dn() && window.removeEventListener("blur", i, !0), Q_ ? Q_.removeEventListener("resize", t) : window.removeEventListener("resize", t);
};
}, []), t;
}
-function $_() {
+function ev() {
return {
- width: Z_ ? Math.min(Z_.width * Z_.scale, document.documentElement.clientWidth) : document.documentElement.clientWidth,
- height: Z_ ? Z_.height * Z_.scale : document.documentElement.clientHeight
+ width: Q_ ? Math.min(Q_.width * Q_.scale, document.documentElement.clientWidth) : document.documentElement.clientWidth,
+ height: Q_ ? Q_.height * Q_.scale : document.documentElement.clientHeight
};
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Modal.mjs
-var ev = /*#__PURE__*/ (0, S.createContext)(null), tv = /*#__PURE__*/ (0, S.createContext)(null), nv = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
- if ((0, S.useContext)(tv)) return /*#__PURE__*/ S.createElement(ov, {
+var tv = /*#__PURE__*/ (0, C.createContext)(null), nv = /*#__PURE__*/ (0, C.createContext)(null), rv = /*#__PURE__*/ (0, C.forwardRef)(function(e, t) {
+ if ((0, C.useContext)(nv)) return /*#__PURE__*/ C.createElement(sv, {
...e,
modalRef: t
}, e.children);
let { isDismissable: n, isKeyboardDismissDisabled: r, isOpen: i, defaultOpen: a, onOpenChange: o, children: s, isEntering: c, isExiting: l, UNSTABLE_portalContainer: u, shouldCloseOnInteractOutside: d, ...f } = e;
- return /*#__PURE__*/ S.createElement(iv, {
+ return /*#__PURE__*/ C.createElement(av, {
isDismissable: n,
isKeyboardDismissDisabled: r,
isOpen: i,
@@ -23000,15 +23002,15 @@ var ev = /*#__PURE__*/ (0, S.createContext)(null), tv = /*#__PURE__*/ (0, S.crea
isExiting: l,
UNSTABLE_portalContainer: u,
shouldCloseOnInteractOutside: d
- }, /*#__PURE__*/ S.createElement(ov, {
+ }, /*#__PURE__*/ C.createElement(sv, {
...f,
modalRef: t
}, s));
});
-function rv(e, t) {
- [e, t] = Rh(e, t, ev);
- let n = (0, S.useContext)(Y_), r = B_(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = Rr(t), o = (0, S.useRef)(null), s = H_(a, i.isOpen), c = H_(o, i.isOpen), l = s || c || e.isExiting || !1, u = Pn();
- return !i.isOpen && !l || u ? null : /*#__PURE__*/ S.createElement(av, {
+function iv(e, t) {
+ [e, t] = zh(e, t, tv);
+ let n = (0, C.useContext)(X_), r = V_(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = zr(t), o = (0, C.useRef)(null), s = U_(a, i.isOpen), c = U_(o, i.isOpen), l = s || c || e.isExiting || !1, u = Fn();
+ return !i.isOpen && !l || u ? null : /*#__PURE__*/ C.createElement(ov, {
...e,
state: i,
isExiting: l,
@@ -23016,9 +23018,9 @@ function rv(e, t) {
modalRef: o
});
}
-var iv = /*#__PURE__*/ (0, S.forwardRef)(rv);
-function av({ UNSTABLE_portalContainer: e, ...t }) {
- let n = t.modalRef, { state: r } = t, { modalProps: i, underlayProps: a } = Tu(t, r, n), o = V_(t.overlayRef) || t.isEntering || !1, s = Ih({
+var av = /*#__PURE__*/ (0, C.forwardRef)(iv);
+function ov({ UNSTABLE_portalContainer: e, ...t }) {
+ let n = t.modalRef, { state: r } = t, { modalProps: i, underlayProps: a } = Du(t, r, n), o = H_(t.overlayRef) || t.isEntering || !1, s = Lh({
...t,
defaultClassName: "react-aria-ModalOverlay",
values: {
@@ -23026,9 +23028,9 @@ function av({ UNSTABLE_portalContainer: e, ...t }) {
isExiting: t.isExiting,
state: r
}
- }), c = Q_(), l, u;
+ }), c = $_(), l, u;
if (typeof document < "u") {
- let e = co(document.body) ? document.body : document.scrollingElement || document.documentElement, t = e.getBoundingClientRect().width % 1, n = e.getBoundingClientRect().height % 1;
+ let e = uo(document.body) ? document.body : document.scrollingElement || document.documentElement, t = e.getBoundingClientRect().width % 1, n = e.getBoundingClientRect().height % 1;
l = e.scrollWidth - t, u = e.scrollHeight - n;
}
let d = {
@@ -23038,25 +23040,25 @@ function av({ UNSTABLE_portalContainer: e, ...t }) {
"--page-width": l === void 0 ? void 0 : l + "px",
"--page-height": u === void 0 ? void 0 : u + "px"
};
- return /*#__PURE__*/ S.createElement(xc, {
+ return /*#__PURE__*/ C.createElement(Cc, {
isExiting: t.isExiting,
portalContainer: e
- }, /*#__PURE__*/ S.createElement(Y.div, {
- ...V(U(t, { global: !0 }), a),
+ }, /*#__PURE__*/ C.createElement(Y.div, {
+ ...V(H(t, { global: !0 }), a),
...s,
style: d,
ref: t.overlayRef,
"data-entering": o || void 0,
"data-exiting": t.isExiting || void 0
- }, /*#__PURE__*/ S.createElement(Fh, { values: [[tv, {
+ }, /*#__PURE__*/ C.createElement(Ih, { values: [[nv, {
modalProps: i,
modalRef: n,
isExiting: t.isExiting,
isDismissable: t.isDismissable
- }], [Y_, r]] }, s.children)));
+ }], [X_, r]] }, s.children)));
}
-function ov(e) {
- let { modalProps: t, modalRef: n, isExiting: r, isDismissable: i } = (0, S.useContext)(tv), a = (0, S.useContext)(Y_), o = Rr((0, S.useMemo)(() => yr(e.modalRef, n), [e.modalRef, n])), s = V_(o), c = Ih({
+function sv(e) {
+ let { modalProps: t, modalRef: n, isExiting: r, isDismissable: i } = (0, C.useContext)(nv), a = (0, C.useContext)(X_), o = zr((0, C.useMemo)(() => br(e.modalRef, n), [e.modalRef, n])), s = H_(o), c = Lh({
...e,
defaultClassName: "react-aria-Modal",
values: {
@@ -23065,19 +23067,19 @@ function ov(e) {
state: a
}
});
- return /*#__PURE__*/ S.createElement(Y.div, {
- ...V(U(e, { global: !0 }), t),
+ return /*#__PURE__*/ C.createElement(Y.div, {
+ ...V(H(e, { global: !0 }), t),
...c,
ref: o,
"data-entering": s || void 0,
"data-exiting": r || void 0
- }, i && /*#__PURE__*/ S.createElement(mu, { onDismiss: a.close }), c.children);
+ }, i && /*#__PURE__*/ C.createElement(gu, { onDismiss: a.close }), c.children);
}
//#endregion
//#region node_modules/react-stately/dist/private/radio/useRadioGroupState.mjs
-var sv = Math.round(Math.random() * 1e10), cv = 0;
-function lv(e) {
- let t = (0, S.useMemo)(() => e.name || `radio-group-${sv}-${++cv}`, [e.name]), [n, r] = Ho(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, S.useState)(n), [a, o] = (0, S.useState)(null), s = Ao({
+var cv = Math.round(Math.random() * 1e10), lv = 0;
+function uv(e) {
+ let t = (0, C.useMemo)(() => e.name || `radio-group-${cv}-${++lv}`, [e.name]), [n, r] = Wo(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, C.useState)(n), [a, o] = (0, C.useState)(null), s = Mo({
...e,
value: n
}), c = (t) => {
@@ -23100,16 +23102,16 @@ function lv(e) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/RadioGroup.mjs
-var uv = /*#__PURE__*/ (0, S.createContext)(null), dv = /*#__PURE__*/ (0, S.createContext)(null), fv = /*#__PURE__*/ (0, S.createContext)(null), pv = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
- [e, t] = Rh(e, t, uv);
- let { validationBehavior: n } = Lh(lg) || {}, r = e.validationBehavior ?? n ?? "native", i = lv({
+var dv = /*#__PURE__*/ (0, C.createContext)(null), fv = /*#__PURE__*/ (0, C.createContext)(null), pv = /*#__PURE__*/ (0, C.createContext)(null), mv = /*#__PURE__*/ (0, C.forwardRef)(function(e, t) {
+ [e, t] = zh(e, t, dv);
+ let { validationBehavior: n } = Rh(ug) || {}, r = e.validationBehavior ?? n ?? "native", i = uv({
...e,
validationBehavior: r
- }), [a, o] = zh(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = td({
+ }), [a, o] = Bh(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = rd({
...e,
label: o,
validationBehavior: r
- }, i), f = Ih({
+ }, i), f = Lh({
...e,
values: {
orientation: e.orientation || "vertical",
@@ -23120,8 +23122,8 @@ var uv = /*#__PURE__*/ (0, S.createContext)(null), dv = /*#__PURE__*/ (0, S.crea
state: i
},
defaultClassName: "react-aria-RadioGroup"
- }), p = U(e, { global: !0 });
- return /*#__PURE__*/ S.createElement(Y.div, {
+ }), p = H(e, { global: !0 });
+ return /*#__PURE__*/ C.createElement(Y.div, {
...V(p, f, s),
ref: t,
slot: e.slot || void 0,
@@ -23130,39 +23132,39 @@ var uv = /*#__PURE__*/ (0, S.createContext)(null), dv = /*#__PURE__*/ (0, S.crea
"data-disabled": i.isDisabled || void 0,
"data-readonly": i.isReadOnly || void 0,
"data-required": i.isRequired || void 0
- }, /*#__PURE__*/ S.createElement(Fh, { values: [
- [fv, i],
- [Zh, {
+ }, /*#__PURE__*/ C.createElement(Ih, { values: [
+ [pv, i],
+ [Qh, {
...c,
ref: a,
elementType: "span"
}],
- [og, { slots: {
+ [sg, { slots: {
description: l,
errorMessage: u
} }],
- [cg, d]
- ] }, /*#__PURE__*/ S.createElement(u_, null, f.children)));
-}), mv = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
+ [lg, d]
+ ] }, /*#__PURE__*/ C.createElement(d_, null, f.children)));
+}), hv = /*#__PURE__*/ (0, C.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = Rh(r, t, dv);
- let i = S.useContext(fv), a = Rr((0, S.useMemo)(() => yr(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = ed({
- ...Bh(e),
+ [e, t] = zh(r, t, fv);
+ let i = C.useContext(pv), a = zr((0, C.useMemo)(() => br(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = nd({
+ ...Vh(e),
children: typeof e.children == "function" || e.children
}, i, a);
- return /*#__PURE__*/ S.createElement(hv.Provider, { value: {
+ return /*#__PURE__*/ C.createElement(gv.Provider, { value: {
...o,
inputRef: a,
defaultClassName: "react-aria-Radio"
- } }, /*#__PURE__*/ S.createElement(gv, {
+ } }, /*#__PURE__*/ C.createElement(_v, {
...e,
ref: t
}));
-}), hv = /*#__PURE__*/ (0, S.createContext)(null), gv = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
- let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, S.useContext)(hv), l = S.useContext(fv), { isFocused: u, isFocusVisible: d, focusProps: f } = wc(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = jc({
+}), gv = /*#__PURE__*/ (0, C.createContext)(null), _v = /*#__PURE__*/ (0, C.forwardRef)(function(e, t) {
+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, C.useContext)(gv), l = C.useContext(pv), { isFocused: u, isFocusVisible: d, focusProps: f } = Ec(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = Nc({
...e,
isDisabled: p
- }), g = Ih({
+ }), g = Lh({
...e,
defaultClassName: s,
values: {
@@ -23176,8 +23178,8 @@ var uv = /*#__PURE__*/ (0, S.createContext)(null), dv = /*#__PURE__*/ (0, S.crea
isInvalid: l.isInvalid,
isRequired: l.isRequired
}
- }), _ = U(e, { global: !0 });
- return delete _.id, delete _.onClick, /*#__PURE__*/ S.createElement(Y.label, {
+ }), _ = H(e, { global: !0 });
+ return delete _.id, delete _.onClick, /*#__PURE__*/ C.createElement(Y.label, {
...V(_, n, m, g),
ref: t,
"data-selected": i || void 0,
@@ -23189,19 +23191,19 @@ var uv = /*#__PURE__*/ (0, S.createContext)(null), dv = /*#__PURE__*/ (0, S.crea
"data-readonly": l.isReadOnly || void 0,
"data-invalid": l.isInvalid || void 0,
"data-required": l.isRequired || void 0
- }, /*#__PURE__*/ S.createElement(Jo, { elementType: "span" }, /*#__PURE__*/ S.createElement("input", {
+ }, /*#__PURE__*/ C.createElement(Xo, { elementType: "span" }, /*#__PURE__*/ C.createElement("input", {
...V(r, f),
ref: c
})), g.children);
});
//#endregion
//#region node_modules/react-stately/dist/private/select/useSelectState.mjs
-function _v(e) {
- let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = B_(e), [i, a] = (0, S.useState)(null), o = (0, S.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [
+function vv(e) {
+ let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = V_(e), [i, a] = (0, C.useState)(null), o = (0, C.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [
e.defaultValue,
e.defaultSelectedKey,
t
- ]), [s, c] = Ho((0, S.useMemo)(() => e.value === void 0 ? t === "single" ? e.selectedKey : void 0 : e.value, [
+ ]), [s, c] = Wo((0, C.useMemo)(() => e.value === void 0 ? t === "single" ? e.selectedKey : void 0 : e.value, [
e.value,
e.selectedKey,
t
@@ -23213,12 +23215,12 @@ function _v(e) {
let e = [];
Array.isArray(n) ? e = n : n != null && (e = [n]), c(e);
}
- }, d = T_({
+ }, d = E_({
...e,
selectionMode: t,
disallowEmptySelection: t === "single",
allowDuplicateSelectionEvents: !0,
- selectedKeys: (0, S.useMemo)(() => vv(l), [l]),
+ selectedKeys: (0, C.useMemo)(() => yv(l), [l]),
onSelectionChange: (e) => {
if (e !== "all") {
if (t === "single") {
@@ -23228,10 +23230,10 @@ function _v(e) {
n && r.close(), m.commitValidation();
}
}
- }), f = d.selectionManager.firstSelectedKey, p = (0, S.useMemo)(() => [...d.selectionManager.selectedKeys].map((e) => d.collection.getItem(e)).filter((e) => e != null), [d.selectionManager.selectedKeys, d.collection]), m = Ao({
+ }), f = d.selectionManager.firstSelectedKey, p = (0, C.useMemo)(() => [...d.selectionManager.selectedKeys].map((e) => d.collection.getItem(e)).filter((e) => e != null), [d.selectionManager.selectedKeys, d.collection]), m = Mo({
...e,
value: Array.isArray(l) && l.length === 0 ? null : l
- }), [h, g] = (0, S.useState)(!1), [_] = (0, S.useState)(l);
+ }), [h, g] = (0, C.useState)(!1), [_] = (0, C.useState)(l);
return {
...m,
...d,
@@ -23255,17 +23257,17 @@ function _v(e) {
setFocused: g
};
}
-function vv(e) {
+function yv(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 yv(e) {
+function bv(e) {
return e && e.__esModule ? e.default : e;
}
-var bv = /*#__PURE__*/ (0, S.createContext)(null), xv = /*#__PURE__*/ (0, S.createContext)(null), Sv = /*#__PURE__*/ Gr(function(e, t) {
- [e, t] = Rh(e, t, bv);
- let { children: n, isDisabled: r = !1, isInvalid: i = !1, isRequired: a = !1 } = e, o = (0, S.useMemo)(() => typeof n == "function" ? n({
+var xv = /*#__PURE__*/ (0, C.createContext)(null), Sv = /*#__PURE__*/ (0, C.createContext)(null), Cv = /*#__PURE__*/ Kr(function(e, t) {
+ [e, t] = zh(e, t, xv);
+ let { children: n, isDisabled: r = !1, isInvalid: i = !1, isRequired: a = !1 } = e, o = (0, C.useMemo)(() => typeof n == "function" ? n({
isOpen: !1,
isDisabled: r,
isInvalid: i,
@@ -23279,27 +23281,27 @@ var bv = /*#__PURE__*/ (0, S.createContext)(null), xv = /*#__PURE__*/ (0, S.crea
i,
a
]);
- return /*#__PURE__*/ S.createElement(ti, { content: o }, (n) => /*#__PURE__*/ S.createElement(wv, {
+ return /*#__PURE__*/ C.createElement(ni, { content: o }, (n) => /*#__PURE__*/ C.createElement(Tv, {
props: e,
collection: n,
selectRef: t
}));
-}), Cv = [
- Zh,
- eg,
- og
+}), wv = [
+ Qh,
+ tg,
+ sg
];
-function wv({ props: e, selectRef: t, collection: n }) {
- let { validationBehavior: r } = Lh(lg) || {}, i = e.validationBehavior ?? r ?? "native", a = _v({
+function Tv({ props: e, selectRef: t, collection: n }) {
+ let { validationBehavior: r } = Rh(ug) || {}, i = e.validationBehavior ?? r ?? "native", a = vv({
...e,
collection: n,
children: void 0,
validationBehavior: i
- }), { isFocusVisible: o, focusProps: s } = wc({ within: !0 }), c = (0, S.useRef)(null), [l, u] = zh(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = nd({
- ...Bh(e),
+ }), { isFocusVisible: o, focusProps: s } = Ec({ within: !0 }), c = (0, C.useRef)(null), [l, u] = Bh(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = ad({
+ ...Vh(e),
label: u,
validationBehavior: i
- }, a, c), y = (0, S.useMemo)(() => ({
+ }, a, c), y = (0, C.useMemo)(() => ({
isOpen: a.isOpen,
isFocused: a.isFocused,
isFocusVisible: o,
@@ -23313,48 +23315,48 @@ function wv({ props: e, selectRef: t, collection: n }) {
e.isDisabled,
v.isInvalid,
e.isRequired
- ]), b = Ih({
+ ]), b = Lh({
...e,
values: y,
defaultClassName: "react-aria-Select"
- }), x = U(e, { global: !0 });
+ }), x = H(e, { global: !0 });
delete x.id;
- let C = (0, S.useRef)(null);
- return /*#__PURE__*/ S.createElement(Fh, { values: [
- [bv, e],
- [xv, a],
- [Tv, p],
- [Zh, {
+ let S = (0, C.useRef)(null);
+ return /*#__PURE__*/ C.createElement(Ih, { values: [
+ [xv, e],
+ [Sv, a],
+ [Ev, p],
+ [Qh, {
...d,
ref: l,
elementType: "span"
}],
- [eg, {
+ [tg, {
...f,
ref: c,
isPressed: a.isOpen,
autoFocus: e.autoFocus
}],
- [Y_, a],
- [W_, {
+ [X_, a],
+ [G_, {
trigger: "Select",
triggerRef: c,
- scrollRef: C,
+ scrollRef: S,
placement: "bottom start",
"aria-labelledby": m["aria-labelledby"],
- clearContexts: Cv
+ clearContexts: wv
}],
- [k_, {
+ [A_, {
...m,
- ref: C
+ ref: S
}],
- [A_, a],
- [og, { slots: {
+ [j_, a],
+ [sg, { slots: {
description: h,
errorMessage: g
} }],
- [cg, v]
- ] }, /*#__PURE__*/ S.createElement(Y.div, {
+ [lg, v]
+ ] }, /*#__PURE__*/ C.createElement(Y.div, {
...V(x, b, s),
ref: t,
slot: e.slot || void 0,
@@ -23364,14 +23366,14 @@ function wv({ props: e, selectRef: t, collection: n }) {
"data-disabled": e.isDisabled || void 0,
"data-invalid": v.isInvalid || void 0,
"data-required": e.isRequired || void 0
- }, b.children, /*#__PURE__*/ S.createElement(id, {
+ }, b.children, /*#__PURE__*/ C.createElement(sd, {
..._,
autoComplete: e.autoComplete
})));
}
-for (var Tv = /*#__PURE__*/ (0, S.createContext)(null), Ev = /*#__PURE__*/ Gr(function(e, t) {
- [e, t] = Rh(e, t, Tv);
- let n = (0, S.useContext)(xv), { placeholder: r } = Lh(bv), i = n.selectedItems.map((e) => {
+for (var Ev = /*#__PURE__*/ (0, C.createContext)(null), Dv = /*#__PURE__*/ Kr(function(e, t) {
+ [e, t] = zh(e, t, Ev);
+ let n = (0, C.useContext)(Sv), { placeholder: r } = Rh(xv), i = n.selectedItems.map((e) => {
let t = e.props?.children;
return typeof t == "function" && (t = t({
isHovered: !1,
@@ -23383,59 +23385,59 @@ for (var Tv = /*#__PURE__*/ (0, S.createContext)(null), Ev = /*#__PURE__*/ Gr(fu
selectionMode: "single",
selectionBehavior: "toggle"
})), t;
- }), a = Tc(), o = (0, S.useMemo)(() => n.selectedItems.map((e) => e?.textValue), [n.selectedItems]), s = n.selectionManager.selectionMode, c = (0, S.useMemo)(() => s === "single" ? o[0] ?? "" : a.format(o), [
+ }), a = Dc(), o = (0, C.useMemo)(() => n.selectedItems.map((e) => e?.textValue), [n.selectedItems]), s = n.selectionManager.selectionMode, c = (0, C.useMemo)(() => s === "single" ? o[0] ?? "" : a.format(o), [
s,
a,
o
- ]), l = (0, S.useMemo)(() => {
+ ]), l = (0, C.useMemo)(() => {
if (s === "single") return i[0];
let e = a.formatToParts(o);
if (e.length === 0) return null;
let t = 0;
- return e.map((e) => e.type === "element" ? /*#__PURE__*/ S.createElement(S.Fragment, { key: t }, i[t++]) : e.value);
+ return e.map((e) => e.type === "element" ? /*#__PURE__*/ C.createElement(C.Fragment, { key: t }, i[t++]) : e.value);
}, [
s,
a,
o,
i
- ]), u = Qi(yv(n_), "react-aria-components"), d = Ih({
+ ]), u = $i(bv(r_), "react-aria-components"), d = Lh({
...e,
defaultChildren: l ?? r ?? u.format("selectPlaceholder"),
defaultClassName: "react-aria-SelectValue",
values: {
selectedItem: n.selectedItems[0]?.value ?? null,
- selectedItems: (0, S.useMemo)(() => n.selectedItems.map((e) => e.value ?? null), [n.selectedItems]),
+ selectedItems: (0, C.useMemo)(() => n.selectedItems.map((e) => e.value ?? null), [n.selectedItems]),
selectedText: c,
isPlaceholder: n.selectedItems.length === 0,
state: n
}
- }), f = U(e, { global: !0 });
- return /*#__PURE__*/ S.createElement(Y.span, {
+ }), f = H(e, { global: !0 });
+ return /*#__PURE__*/ C.createElement(Y.span, {
ref: t,
...f,
...d,
"data-placeholder": n.selectedItems.length === 0 || void 0
- }, /*#__PURE__*/ S.createElement(og.Provider, { value: void 0 }, d.children));
-}), Dv = /*#__PURE__*/ (0, S.createContext)(null), Ov = /*#__PURE__*/ (0, S.createContext)(null), kv = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
+ }, /*#__PURE__*/ C.createElement(sg.Provider, { value: void 0 }, d.children));
+}), Ov = /*#__PURE__*/ (0, C.createContext)(null), kv = /*#__PURE__*/ (0, C.createContext)(null), Av = /*#__PURE__*/ (0, C.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = Rh(r, t, Dv);
- let i = Rr((0, S.useMemo)(() => yr(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = Uo(e), o = ad({
- ...Bh(e),
+ [e, t] = zh(r, t, Ov);
+ let i = zr((0, C.useMemo)(() => br(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = Go(e), o = cd({
+ ...Vh(e),
children: typeof e.children == "function" || e.children
}, a, i);
- return /*#__PURE__*/ S.createElement(Fh, { values: [[Ov, a], [Av, {
+ return /*#__PURE__*/ C.createElement(Ih, { values: [[kv, a], [jv, {
...o,
inputRef: i,
defaultClassName: "react-aria-Switch"
- }]] }, /*#__PURE__*/ S.createElement(jv, {
+ }]] }, /*#__PURE__*/ C.createElement(Mv, {
...e,
ref: t
}));
-}), Av = /*#__PURE__*/ (0, S.createContext)(null), jv = /*#__PURE__*/ (0, S.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, S.useContext)(Av), { isFocused: f, isFocusVisible: p, focusProps: m } = wc(), h = a || o, g = (0, S.useContext)(Ov), { hoverProps: _, isHovered: v } = jc({
+}), jv = /*#__PURE__*/ (0, C.createContext)(null), Mv = /*#__PURE__*/ (0, C.forwardRef)(function(e, t) {
+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isRequired: d } = (0, C.useContext)(jv), { isFocused: f, isFocusVisible: p, focusProps: m } = Ec(), h = a || o, g = (0, C.useContext)(kv), { hoverProps: _, isHovered: v } = Nc({
...e,
isDisabled: h
- }), y = Ih({
+ }), y = Lh({
...e,
defaultClassName: u,
values: {
@@ -23450,8 +23452,8 @@ for (var Tv = /*#__PURE__*/ (0, S.createContext)(null), Ev = /*#__PURE__*/ Gr(fu
isRequired: d || !1,
state: g
}
- }), b = U(e, { global: !0 });
- return delete b.id, delete b.onClick, /*#__PURE__*/ S.createElement(Y.label, {
+ }), b = H(e, { global: !0 });
+ return delete b.id, delete b.onClick, /*#__PURE__*/ C.createElement(Y.label, {
...V(b, n, _, y),
ref: t,
slot: e.slot || void 0,
@@ -23464,11 +23466,11 @@ for (var Tv = /*#__PURE__*/ (0, S.createContext)(null), Ev = /*#__PURE__*/ Gr(fu
"data-readonly": o || void 0,
"data-invalid": c || void 0,
"data-required": d || void 0
- }, /*#__PURE__*/ S.createElement(Jo, { elementType: "span" }, /*#__PURE__*/ S.createElement("input", {
+ }, /*#__PURE__*/ C.createElement(Xo, { elementType: "span" }, /*#__PURE__*/ C.createElement("input", {
...V(r, m),
ref: l
})), y.children);
-}), Mv = 10, Nv = 5, Pv = class {
+}), Nv = 10, Pv = 5, Fv = class {
setup(e, t, n) {
this.delegate = e, this.state = t, this.direction = n;
}
@@ -23478,7 +23480,7 @@ for (var Tv = /*#__PURE__*/ (0, S.createContext)(null), Ev = /*#__PURE__*/ Gr(fu
}
resolveDropTarget(e, t, n, r) {
let i = this.pointerTracking, a = n - i.lastY, o = t - i.lastX, s = i.yDirection, c = i.xDirection;
- if (Math.abs(a) > Nv && (s = a > 0 ? "down" : "up", i.yDirection = s, i.lastY = n), Math.abs(o) > Mv && (c = o > 0 ? "right" : "left", i.xDirection = c, i.lastX = t), e.dropPosition === "before") {
+ if (Math.abs(a) > Pv && (s = a > 0 ? "down" : "up", i.yDirection = s, i.lastY = n), Math.abs(o) > Nv && (c = o > 0 ? "right" : "left", i.xDirection = c, i.lastX = t), e.dropPosition === "before") {
let t = this.state.collection.getKeyBefore(e.key);
for (; t != null;) {
let e = this.state.collection.getItem(t);
@@ -23557,11 +23559,11 @@ for (var Tv = /*#__PURE__*/ (0, S.createContext)(null), Ev = /*#__PURE__*/ Gr(fu
lastSwitchX: n
});
let c = o.boundaryContext, l = Math.abs(n - c.lastSwitchX);
- if (Math.abs(r - c.lastSwitchY) > Nv && i) {
+ if (Math.abs(r - c.lastSwitchY) > Pv && i) {
let t = c.preferredTargetIndex || 0;
i === "down" && t === 0 ? c.preferredTargetIndex = e.length - 1 : i === "up" && t === e.length - 1 && (c.preferredTargetIndex = 0), o.xDirection = null;
}
- if (l > Mv && a) {
+ if (l > Nv && a) {
let t = c.preferredTargetIndex || 0;
a === "left" ? this.direction === "ltr" ? t < e.length - 1 && (c.preferredTargetIndex = t + 1, c.lastSwitchX = n) : t > 0 && (c.preferredTargetIndex = t - 1, c.lastSwitchX = n) : a === "right" && (this.direction === "ltr" ? t > 0 && (c.preferredTargetIndex = t - 1, c.lastSwitchX = n) : t < e.length - 1 && (c.preferredTargetIndex = t + 1, c.lastSwitchX = n)), o.yDirection = null;
}
@@ -23576,7 +23578,7 @@ for (var Tv = /*#__PURE__*/ (0, S.createContext)(null), Ev = /*#__PURE__*/ Gr(fu
boundaryContext: null
};
}
-}, Fv = class {
+}, Iv = class {
constructor(e) {
this.keyMap = /* @__PURE__ */ new Map(), this.keyMap = /* @__PURE__ */ new Map(), this.columnCount = e?.columnCount, this.rows = [];
let t = (r) => {
@@ -23646,8 +23648,8 @@ for (var Tv = /*#__PURE__*/ (0, S.createContext)(null), Ev = /*#__PURE__*/ Gr(fu
getChildren(e) {
return this.keyMap.get(e)?.childNodes || [];
}
-}, Iv = "row-header-column-" + Math.random().toString(36).slice(2), Lv = "row-header-column-" + Math.random().toString(36).slice(2); Iv === Lv;) Lv = "row-header-column-" + Math.random().toString(36).slice(2);
-function Rv(e, t) {
+}, Lv = "row-header-column-" + Math.random().toString(36).slice(2), Rv = "row-header-column-" + Math.random().toString(36).slice(2); Lv === Rv;) Rv = "row-header-column-" + Math.random().toString(36).slice(2);
+function zv(e, t) {
if (t.length === 0) return [];
let n = [], r = /* @__PURE__ */ new Map();
for (let i of t) {
@@ -23731,13 +23733,13 @@ function Rv(e, t) {
textValue: ""
}));
}
-var zv = class extends Fv {
+var Bv = class extends Iv {
constructor(e, t, n) {
let r = /* @__PURE__ */ new Set(), i = null, a = [];
if (n?.showSelectionCheckboxes) {
let e = {
type: "column",
- key: Iv,
+ key: Lv,
value: null,
textValue: "",
level: 0,
@@ -23752,7 +23754,7 @@ var zv = class extends Fv {
if (n?.showDragButtons) {
let e = {
type: "column",
- key: Lv,
+ key: Rv,
value: null,
textValue: "",
level: 0,
@@ -23779,7 +23781,7 @@ var zv = class extends Fv {
for (let t of e.childNodes) c(t);
};
for (let t of e) c(t);
- let l = Rv(s, a);
+ let l = zv(s, a);
if (l.forEach((e, t) => o.splice(t, 0, e)), super({
columnCount: a.length,
items: o,
@@ -23805,10 +23807,10 @@ var zv = class extends Fv {
return this.keyMap.get(e)?.nextKey ?? null;
}
getFirstKey() {
- return sc(this.body.childNodes)?.key ?? null;
+ return lc(this.body.childNodes)?.key ?? null;
}
getLastKey() {
- return lc(this.body.childNodes)?.key ?? null;
+ return dc(this.body.childNodes)?.key ?? null;
}
getItem(e) {
return e === this.body.key ? this.body : this.keyMap.get(e) ?? null;
@@ -23840,20 +23842,20 @@ var zv = class extends Fv {
};
//#endregion
//#region node_modules/react-stately/dist/private/grid/useGridState.mjs
-function Bv(e) {
- let { collection: t, focusMode: n } = e, r = e.UNSAFE_selectionState || __(e), i = (0, S.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = r.setFocusedKey;
+function Vv(e) {
+ let { collection: t, focusMode: n } = e, r = e.UNSAFE_selectionState || v_(e), i = (0, C.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = r.setFocusedKey;
r.setFocusedKey = (e, r) => {
if (n === "cell" && e != null) {
let n = t.getItem(e);
if (n?.type === "item") {
- let i = oc(n, t);
- e = r === "last" ? lc(i)?.key ?? null : sc(i)?.key ?? null;
+ let i = cc(n, t);
+ e = r === "last" ? dc(i)?.key ?? null : lc(i)?.key ?? null;
}
}
a(e, r);
};
- let o = (0, S.useMemo)(() => new y_(t, r), [t, r]), s = (0, S.useRef)(null);
- return (0, S.useEffect)(() => {
+ let o = (0, C.useMemo)(() => new b_(t, r), [t, r]), s = (0, C.useRef)(null);
+ return (0, C.useEffect)(() => {
if (r.focusedKey != null && s.current && !t.getItem(r.focusedKey)) {
let e = s.current.getItem(r.focusedKey), n = e?.parentKey != null && (e.type === "cell" || e.type === "rowheader" || e.type === "column") ? s.current.getItem(e.parentKey) : e;
if (!n) {
@@ -23872,7 +23874,7 @@ function Bv(e) {
}
}
if (u) {
- let i = u.hasChildNodes ? [...oc(u, t)] : [], a = u.hasChildNodes && n !== e && e && e.index < i.length ? i[e.index].key : u.key;
+ let i = u.hasChildNodes ? [...cc(u, t)] : [], a = u.hasChildNodes && n !== e && e && e.index < i.length ? i[e.index].key : u.key;
r.setFocusedKey(a);
} else r.setFocusedKey(null);
}
@@ -23891,12 +23893,12 @@ function Bv(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/table/useTableState.mjs
-var Vv = {
+var Hv = {
ascending: "descending",
descending: "ascending"
};
-function Hv(e) {
- let [t, n] = (0, S.useState)(!1), { selectionMode: r = "none", showSelectionCheckboxes: i, showDragButtons: a, treeColumn: o = null } = e, s = (0, S.useMemo)(() => ({
+function Uv(e) {
+ let [t, n] = (0, C.useState)(!1), { selectionMode: r = "none", showSelectionCheckboxes: i, showDragButtons: a, treeColumn: o = null } = e, s = (0, C.useMemo)(() => ({
showSelectionCheckboxes: i && r !== "none",
showDragButtons: a,
selectionMode: r,
@@ -23906,11 +23908,11 @@ function Hv(e) {
i,
r,
a
- ]), c = w_(e, (0, S.useCallback)((e) => new zv(e, null, s), [s]), s), { disabledKeys: l, selectionManager: u } = Bv({
+ ]), c = T_(e, (0, C.useCallback)((e) => new Bv(e, null, s), [s]), s), { disabledKeys: l, selectionManager: u } = Vv({
...e,
collection: c,
disabledBehavior: e.disabledBehavior || "selection"
- }), [d, f] = Ho(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
+ }), [d, f] = Wo(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
return {
collection: c,
disabledKeys: l,
@@ -23922,7 +23924,7 @@ function Hv(e) {
sort(t, n) {
e.onSortChange?.({
column: t,
- direction: n ?? (e.sortDescriptor?.column === t ? Vv[e.sortDescriptor.direction] : "ascending")
+ direction: n ?? (e.sortDescriptor?.column === t ? Hv[e.sortDescriptor.direction] : "ascending")
});
},
expandedKeys: d,
@@ -23935,8 +23937,8 @@ function Hv(e) {
treeColumn: o
};
}
-function Uv(e, t) {
- let n = (0, S.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);
+function Wv(e, t) {
+ let n = (0, C.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);
return {
...e,
collection: n,
@@ -23945,7 +23947,7 @@ function Uv(e, t) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Table.mjs
-var Wv = class extends ht {
+var Gv = class extends gt {
withExpandedKeys(e) {
let t = this.clone();
return t.expandedKeys = e, t.frozen = this.frozen, t.rows = Array.from(t.getRows()), t;
@@ -23960,7 +23962,7 @@ var Wv = class extends ht {
}
get body() {
for (let e of this) if (e.type === "tablebody") return e;
- return new ly(-2);
+ return new uy(-2);
}
commit(e, t, n = !1) {
this.updateColumns(n), this.firstKey = e, this.lastKey = t, this.rows = [];
@@ -23986,7 +23988,7 @@ var Wv = class extends ht {
for (let t of this.getChildren(e.key)) n(t);
};
for (let e of this.getChildren(this.head.key)) n(e);
- if (this.headerRows = Rv(t, this.columns), this.columnsDirty = !1, this.rowHeaderColumnKeys.size === 0 && this.columns.length > 0 && !e) throw Error("A table must have at least one Column with the isRowHeader prop set to true");
+ if (this.headerRows = zv(t, this.columns), this.columnsDirty = !1, this.rowHeaderColumnKeys.size === 0 && this.columns.length > 0 && !e) throw Error("A table must have at least one Column with the isRowHeader prop set to true");
}
get columnCount() {
return this.columns.length;
@@ -24067,11 +24069,11 @@ var Wv = class extends ht {
return r.join(" ");
}
constructor(...e) {
- super(...e), this.headerRows = [], this.columns = [], this.rows = [], this.rowHeaderColumnKeys = /* @__PURE__ */ new Set(), this.head = new ey(-1), this.columnsDirty = !0, this.expandedKeys = /* @__PURE__ */ new Set();
+ super(...e), this.headerRows = [], this.columns = [], this.rows = [], this.rowHeaderColumnKeys = /* @__PURE__ */ new Set(), this.head = new ty(-1), this.columnsDirty = !0, this.expandedKeys = /* @__PURE__ */ new Set();
}
-}, Gv = /*#__PURE__*/ (0, S.createContext)(null), Kv = /*#__PURE__*/ (0, S.createContext)(null), qv = /*#__PURE__*/ (0, S.createContext)(null), Jv = /*#__PURE__*/ (0, S.createContext)(null), Yv = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
- [e, t] = Rh(e, t, Kv);
- let n = __(e), { selectionBehavior: r, selectionMode: i, disallowEmptySelection: a } = n, o = !!e.dragAndDropHooks?.useDraggableCollectionState, s = (0, S.useMemo)(() => ({
+}, Kv = /*#__PURE__*/ (0, C.createContext)(null), qv = /*#__PURE__*/ (0, C.createContext)(null), Jv = /*#__PURE__*/ (0, C.createContext)(null), Yv = /*#__PURE__*/ (0, C.createContext)(null), Xv = /*#__PURE__*/ (0, C.forwardRef)(function(e, t) {
+ [e, t] = zh(e, t, qv);
+ let n = v_(e), { selectionBehavior: r, selectionMode: i, disallowEmptySelection: a } = n, o = !!e.dragAndDropHooks?.useDraggableCollectionState, s = (0, C.useMemo)(() => ({
selectionBehavior: i === "none" ? null : r,
selectionMode: i,
disallowEmptySelection: a,
@@ -24081,26 +24083,26 @@ var Wv = class extends ht {
i,
a,
o
- ]), c = /*#__PURE__*/ S.createElement($v.Provider, { value: s }, /*#__PURE__*/ S.createElement(pi, e));
- return /*#__PURE__*/ S.createElement(ti, {
+ ]), c = /*#__PURE__*/ C.createElement(ey.Provider, { value: s }, /*#__PURE__*/ C.createElement(mi, e));
+ return /*#__PURE__*/ C.createElement(ni, {
content: c,
- createCollection: () => new Wv()
- }, (r) => /*#__PURE__*/ S.createElement(Qv, {
+ createCollection: () => new Gv()
+ }, (r) => /*#__PURE__*/ C.createElement($v, {
props: e,
forwardedRef: t,
selectionState: n,
collection: r
}));
-}), Xv = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, S.useContext)(Yh);
- return n ? /*#__PURE__*/ S.createElement(Y.div, {
+}), Zv = /*#__PURE__*/ (0, C.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, C.useContext)(Xh);
+ return n ? /*#__PURE__*/ C.createElement(Y.div, {
...e,
ref: t
- }) : /*#__PURE__*/ S.createElement(Y.table, {
+ }) : /*#__PURE__*/ C.createElement(Y.table, {
...e,
ref: t
});
-}), Zv = {
+}), Qv = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -24110,41 +24112,41 @@ var Wv = class extends ht {
rtl: "ArrowRight"
}
};
-function Qv({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
- [e, t] = Rh(e, t, Uh);
- let { shouldUseVirtualFocus: i, disallowTypeAhead: a, filter: o, ...s } = e, c = (0, S.useContext)(Gv);
- t = Rr((0, S.useMemo)(() => yr(t, c?.tableRef), [t, c?.tableRef]));
- let [l, u] = Ho(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
- r = (0, S.useMemo)(() => r.withExpandedKeys(l), [r, l]);
- let d = Hv({
+function $v({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
+ [e, t] = zh(e, t, Wh);
+ let { shouldUseVirtualFocus: i, disallowTypeAhead: a, filter: o, ...s } = e, c = (0, C.useContext)(Kv);
+ t = zr((0, C.useMemo)(() => br(t, c?.tableRef), [t, c?.tableRef]));
+ let [l, u] = Wo(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
+ r = (0, C.useMemo)(() => r.withExpandedKeys(l), [r, l]);
+ let d = Uv({
...s,
collection: r,
children: void 0,
UNSAFE_selectionState: n,
expandedKeys: l,
onExpandedChange: u
- }), f = Uv(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, S.useContext)(Yh), { dragAndDropHooks: _ } = e, { gridProps: v } = Qd({
+ }), f = Wv(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, C.useContext)(Xh), { dragAndDropHooks: _ } = e, { gridProps: v } = tf({
...s,
layoutDelegate: m,
isVirtualized: p
}, f, t), y = f.selectionManager, b = !!_?.useDraggableCollectionState, x = !!_?.useDroppableCollectionState;
- (0, S.useRef)(b), (0, S.useRef)(x), (0, S.useEffect)(() => {}, [b, x]);
- let C, w, T, E = !1, D = null, O = (0, S.useRef)(null), { direction: k } = Ri(), [A] = (0, S.useState)(() => new Pv());
+ (0, C.useRef)(b), (0, C.useRef)(x), (0, C.useEffect)(() => {}, [b, x]);
+ let S, w, T, E = !1, D = null, O = (0, C.useRef)(null), { direction: k } = zi(), [A] = (0, C.useState)(() => new Fv());
if (b && _) {
- C = _.useDraggableCollectionState({
+ S = _.useDraggableCollectionState({
collection: f.collection,
selectionManager: y,
preview: _.renderDragPreview ? O : void 0
- }), _.useDraggableCollection({}, C, t);
+ }), _.useDraggableCollection({}, S, t);
let e = _.DragPreview;
- D = _.renderDragPreview ? /*#__PURE__*/ S.createElement(e, { ref: O }, _.renderDragPreview) : null;
+ D = _.renderDragPreview ? /*#__PURE__*/ C.createElement(e, { ref: O }, _.renderDragPreview) : null;
}
if (x && _) {
w = _.useDroppableCollectionState({
collection: f.collection,
selectionManager: y
});
- let e = new ds({
+ let e = new ps({
collection: f.collection,
disabledKeys: y.disabledKeys,
disabledBehavior: y.disabledBehavior,
@@ -24164,12 +24166,12 @@ function Qv({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
let t = w?.target;
if (t && t.type === "item" && t.dropPosition === "on") {
let n = d.collection.getItem(t.key);
- (e.key === Zv.expand[k] && n?.hasChildNodes && !d.expandedKeys.has(t.key) || e.key === Zv.collapse[k] && n?.hasChildNodes && d.expandedKeys.has(t.key)) && d.toggleKey(t.key);
+ (e.key === Qv.expand[k] && n?.hasChildNodes && !d.expandedKeys.has(t.key) || e.key === Qv.collapse[k] && n?.hasChildNodes && d.expandedKeys.has(t.key)) && d.toggleKey(t.key);
}
}
}, w, t), E = w.isDropTarget({ type: "root" });
}
- let { focusProps: j, isFocused: M, isFocusVisible: N } = wc(), ee = Ih({
+ let { focusProps: j, isFocused: M, isFocusVisible: N } = Ec(), ee = Lh({
...e,
children: void 0,
defaultClassName: "react-aria-Table",
@@ -24179,25 +24181,25 @@ function Qv({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
isFocusVisible: N,
state: f
}
- }), P = !!(b && !C?.isDisabled), F = ee.style, te = null;
+ }), P = !!(b && !S?.isDisabled), F = ee.style, te = null;
c && (te = c.useTableColumnResizeState({ tableWidth: c.tableWidth }, f), p || (F = {
...F,
tableLayout: "fixed",
width: "min-content"
}));
- let ne = U(e, { global: !0 });
- return /*#__PURE__*/ S.createElement(Fh, { values: [
- [qv, f],
- [Jv, te],
- [r_, {
+ let ne = H(e, { global: !0 });
+ return /*#__PURE__*/ C.createElement(Ih, { values: [
+ [Jv, f],
+ [Yv, te],
+ [i_, {
dragAndDropHooks: _,
- dragState: C,
+ dragState: S,
dropState: w
}],
- [i_, { render: yy }],
- [Uh, null],
- [Wh, null]
- ] }, /*#__PURE__*/ S.createElement(Na, null, /*#__PURE__*/ S.createElement(Xv, {
+ [a_, { render: by }],
+ [Wh, null],
+ [Gh, null]
+ ] }, /*#__PURE__*/ C.createElement(Fa, null, /*#__PURE__*/ C.createElement(Zv, {
...V(ne, ee, v, j, T?.collectionProps),
style: F,
ref: t,
@@ -24207,98 +24209,98 @@ function Qv({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
"data-drop-target": E || void 0,
"data-focused": M || void 0,
"data-focus-visible": N || void 0
- }, /*#__PURE__*/ S.createElement(u_, null, /*#__PURE__*/ S.createElement(g, {
+ }, /*#__PURE__*/ C.createElement(d_, null, /*#__PURE__*/ C.createElement(g, {
collection: f.collection,
scrollRef: c?.scrollRef ?? t,
- persistedKeys: s_(y, _, w)
+ persistedKeys: c_(y, _, w)
})))), D);
}
-var $v = /*#__PURE__*/ (0, S.createContext)(null), ey = class extends dt {
+var ey = /*#__PURE__*/ (0, C.createContext)(null), ty = class extends ft {
static {
this.type = "tableheader";
}
-}, ty = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, S.useContext)(Yh);
- return n ? /*#__PURE__*/ S.createElement(Y.div, {
+}, ny = /*#__PURE__*/ (0, C.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, C.useContext)(Xh);
+ return n ? /*#__PURE__*/ C.createElement(Y.div, {
...e,
ref: t
- }) : /*#__PURE__*/ S.createElement(Y.thead, {
+ }) : /*#__PURE__*/ C.createElement(Y.thead, {
...e,
ref: t
});
-}), ny = /*#__PURE__*/ ui(ey, (e, t) => {
- let n = (0, S.useContext)(qv).collection, r = bt({
+}), ry = /*#__PURE__*/ di(ty, (e, t) => {
+ let n = (0, C.useContext)(Jv).collection, r = xt({
items: n.headerRows,
- children: (0, S.useCallback)((e) => {
+ children: (0, C.useCallback)((e) => {
switch (e.type) {
- case "headerrow": return /*#__PURE__*/ S.createElement(iy, { item: e });
+ case "headerrow": return /*#__PURE__*/ C.createElement(ay, { item: e });
default: throw Error("Unsupported node type in TableHeader: " + e.type);
}
}, [])
- }), { rowGroupProps: i } = ff(), { hoverProps: a, isHovered: o } = jc({
+ }), { rowGroupProps: i } = hf(), { hoverProps: a, isHovered: o } = Nc({
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
- }), s = Ih({
+ }), s = Lh({
...e,
children: void 0,
defaultClassName: "react-aria-TableHeader",
values: { isHovered: o }
});
- return /*#__PURE__*/ S.createElement(ty, {
- ...V(U(e, { global: !0 }), i, a),
+ return /*#__PURE__*/ C.createElement(ny, {
+ ...V(H(e, { global: !0 }), i, a),
...s,
ref: t,
"data-hovered": o || void 0
}, r);
-}, (e) => /*#__PURE__*/ S.createElement(pi, {
+}, (e) => /*#__PURE__*/ C.createElement(mi, {
dependencies: e.dependencies,
items: e.columns
-}, e.children)), ry = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, S.useContext)(Yh);
- return n ? /*#__PURE__*/ S.createElement("div", {
+}, e.children)), iy = /*#__PURE__*/ (0, C.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, C.useContext)(Xh);
+ return n ? /*#__PURE__*/ C.createElement("div", {
...e,
ref: t
- }) : /*#__PURE__*/ S.createElement("tr", {
+ }) : /*#__PURE__*/ C.createElement("tr", {
...e,
ref: t
});
});
-function iy({ item: e }) {
- let t = (0, S.useRef)(null), n = (0, S.useContext)(qv), { isVirtualized: r, CollectionBranch: i } = (0, S.useContext)(Yh), { rowProps: a } = af({
+function ay({ item: e }) {
+ let t = (0, C.useRef)(null), n = (0, C.useContext)(Jv), { isVirtualized: r, CollectionBranch: i } = (0, C.useContext)(Xh), { rowProps: a } = cf({
node: e,
isVirtualized: r
- }, n, t), { checkboxProps: o } = hf(n);
- return /*#__PURE__*/ S.createElement(ry, {
+ }, n, t), { checkboxProps: o } = vf(n);
+ return /*#__PURE__*/ C.createElement(iy, {
...a,
ref: t
- }, /*#__PURE__*/ S.createElement(Fh, { values: [[ug, { slots: { selection: o } }], [dg, { slots: { selection: o } }]] }, /*#__PURE__*/ S.createElement(i, {
+ }, /*#__PURE__*/ C.createElement(Ih, { values: [[dg, { slots: { selection: o } }], [fg, { slots: { selection: o } }]] }, /*#__PURE__*/ C.createElement(i, {
collection: n.collection,
parent: e
})));
}
-var ay = class extends dt {
+var oy = class extends ft {
static {
this.type = "column";
}
-}, oy = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, S.useContext)(Yh);
- return n ? /*#__PURE__*/ S.createElement(Y.div, {
+}, sy = /*#__PURE__*/ (0, C.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, C.useContext)(Xh);
+ return n ? /*#__PURE__*/ C.createElement(Y.div, {
...e,
ref: t
- }) : /*#__PURE__*/ S.createElement(Y.th, {
+ }) : /*#__PURE__*/ C.createElement(Y.th, {
...e,
ref: t
});
-}), sy = /*#__PURE__*/ li(ay, (e, t, n) => {
- let r = Rr(t), i = (0, S.useContext)(qv), { isVirtualized: a } = (0, S.useContext)(Yh), { columnHeaderProps: o, isPressed: s } = rf({
+}), cy = /*#__PURE__*/ ui(oy, (e, t, n) => {
+ let r = zr(t), i = (0, C.useContext)(Jv), { isVirtualized: a } = (0, C.useContext)(Xh), { columnHeaderProps: o, isPressed: s } = sf({
node: n,
isVirtualized: a,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, i, r), { isFocused: c, isFocusVisible: l, focusProps: u } = wc(), d = (0, S.useContext)(Jv), f = !1;
+ }, i, r), { isFocused: c, isFocusVisible: l, focusProps: u } = Ec(), d = (0, C.useContext)(Yv), f = !1;
d && (f = d.resizingColumn === n.key);
- let { hoverProps: p, isHovered: m } = jc({ isDisabled: !e.allowsSorting }), h = Ih({
+ let { hoverProps: p, isHovered: m } = Nc({ isDisabled: !e.allowsSorting }), h = Lh({
...e,
id: void 0,
children: n.rendered,
@@ -24324,8 +24326,8 @@ var ay = class extends dt {
...g,
width: d.getColumnWidth(n.key)
});
- let _ = U(e, { global: !0 });
- return delete _.id, /*#__PURE__*/ S.createElement(oy, {
+ let _ = H(e, { global: !0 });
+ return delete _.id, /*#__PURE__*/ C.createElement(sy, {
...V(_, o, u, p),
...h,
style: g,
@@ -24337,28 +24339,28 @@ var ay = class extends dt {
"data-resizing": f || void 0,
"data-allows-sorting": n.props.allowsSorting || void 0,
"data-sort-direction": i.sortDescriptor?.column === n.key ? i.sortDescriptor.direction : void 0
- }, /*#__PURE__*/ S.createElement(Fh, { values: [[cy, {
+ }, /*#__PURE__*/ C.createElement(Ih, { values: [[ly, {
column: n,
triggerRef: r
- }], [Yh, Kh]] }, h.children));
-}), cy = /*#__PURE__*/ (0, S.createContext)(null), ly = class extends ft {
+ }], [Xh, qh]] }, h.children));
+}), ly = /*#__PURE__*/ (0, C.createContext)(null), uy = class extends pt {
static {
this.type = "tablebody";
}
-}, uy = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, S.useContext)(Yh);
- return n ? /*#__PURE__*/ S.createElement(Y.div, {
+}, dy = /*#__PURE__*/ (0, C.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, C.useContext)(Xh);
+ return n ? /*#__PURE__*/ C.createElement(Y.div, {
...e,
ref: t
- }) : /*#__PURE__*/ S.createElement(Y.tbody, {
+ }) : /*#__PURE__*/ C.createElement(Y.tbody, {
...e,
ref: t
});
-}), dy = /*#__PURE__*/ ui(ly, (e, t, n) => {
- let r = (0, S.useContext)(qv), { isVirtualized: i } = (0, S.useContext)(Yh), a = r.collection, { CollectionBranch: o } = (0, S.useContext)(Yh), { dragAndDropHooks: s, dropState: c } = (0, S.useContext)(r_), l = !!s?.useDroppableCollectionState && !c?.isDisabled, u = l && !!c && (c.isDropTarget({ type: "root" }) ?? !1), d = a.size === 0, f = {
+}), fy = /*#__PURE__*/ di(uy, (e, t, n) => {
+ let r = (0, C.useContext)(Jv), { isVirtualized: i } = (0, C.useContext)(Xh), a = r.collection, { CollectionBranch: o } = (0, C.useContext)(Xh), { dragAndDropHooks: s, dropState: c } = (0, C.useContext)(i_), l = !!s?.useDroppableCollectionState && !c?.isDisabled, u = l && !!c && (c.isDropTarget({ type: "root" }) ?? !1), d = a.size === 0, f = {
isDropTarget: u,
isEmpty: d
- }, p = Ih({
+ }, p = Lh({
...e,
id: void 0,
children: void 0,
@@ -24367,33 +24369,33 @@ var ay = class extends dt {
}), m, h = a.columnCount;
if (d && e.renderEmptyState && r) {
let t = {}, n = {}, r = {};
- i ? (n["aria-colspan"] = h, r = { display: "contents" }) : n.colSpan = h, m = /*#__PURE__*/ S.createElement(my, {
+ i ? (n["aria-colspan"] = h, r = { display: "contents" }) : n.colSpan = h, m = /*#__PURE__*/ C.createElement(hy, {
role: "row",
...t,
style: r
- }, /*#__PURE__*/ S.createElement(_y, {
+ }, /*#__PURE__*/ C.createElement(vy, {
role: "rowheader",
...n,
style: r
}, e.renderEmptyState(f)));
}
- let { rowGroupProps: g } = ff(), _ = U(e, { global: !0 });
- return /*#__PURE__*/ S.createElement(uy, {
+ let { rowGroupProps: g } = hf(), _ = H(e, { global: !0 });
+ return /*#__PURE__*/ C.createElement(dy, {
...V(_, p, g),
ref: t,
"data-empty": d || void 0
- }, l && /*#__PURE__*/ S.createElement(wy, null), /*#__PURE__*/ S.createElement(o, {
+ }, l && /*#__PURE__*/ C.createElement(Ty, null), /*#__PURE__*/ C.createElement(o, {
collection: a,
parent: n,
- renderDropIndicator: o_(s, c)
+ renderDropIndicator: s_(s, c)
}), m);
});
-(class extends ft {
+(class extends pt {
static {
this.type = "tablefooter";
}
});
-var fy = /*#__PURE__*/ (0, S.createContext)({ isFocusVisibleWithinRow: !1 }), py = class extends dt {
+var py = /*#__PURE__*/ (0, C.createContext)({ isFocusVisibleWithinRow: !1 }), my = class extends ft {
static {
this.type = "item";
}
@@ -24405,41 +24407,41 @@ var fy = /*#__PURE__*/ (0, S.createContext)({ isFocusVisibleWithinRow: !1 }), py
}
return null;
}
-}, my = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, S.useContext)(Yh);
- return n ? /*#__PURE__*/ S.createElement(Y.div, {
+}, hy = /*#__PURE__*/ (0, C.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, C.useContext)(Xh);
+ return n ? /*#__PURE__*/ C.createElement(Y.div, {
...e,
ref: t
- }) : /*#__PURE__*/ S.createElement(Y.tr, {
+ }) : /*#__PURE__*/ C.createElement(Y.tr, {
...e,
ref: t
});
-}), hy = /*#__PURE__*/ ui(py, (e, t, n) => {
- let r = Rr(t), i = (0, S.useContext)(qv), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, S.useContext)(r_), { isVirtualized: c, CollectionBranch: l } = (0, S.useContext)(Yh), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = lf({
+}), gy = /*#__PURE__*/ di(my, (e, t, n) => {
+ let r = zr(t), i = (0, C.useContext)(Jv), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, C.useContext)(i_), { isVirtualized: c, CollectionBranch: l } = (0, C.useContext)(Xh), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = ff({
node: n,
shouldSelectOnPressUp: !!o,
isVirtualized: c
- }, i, r), { isFocused: m, isFocusVisible: h, focusProps: g } = wc(), { isFocusVisible: _, focusProps: v } = wc({ within: !0 }), { hoverProps: y, isHovered: b } = jc({
+ }, i, r), { isFocused: m, isFocusVisible: h, focusProps: g } = Ec(), { isFocusVisible: _, focusProps: v } = Ec({ within: !0 }), { hoverProps: y, isHovered: b } = Nc({
isDisabled: !p.allowsSelection && !p.hasAction && !u,
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
- }), { checkboxProps: x } = mf({ key: n.key }, i), C;
- o && a && (C = a.useDraggableItem({
+ }), { checkboxProps: x } = _f({ key: n.key }, i), S;
+ o && a && (S = a.useDraggableItem({
key: n.key,
hasDragButton: !0
}, o));
- let w, T = (0, S.useRef)(null), { visuallyHiddenProps: E } = qo();
+ let w, T = (0, C.useRef)(null), { visuallyHiddenProps: E } = Yo();
s && a && (w = a.useDropIndicator({ target: {
type: "item",
key: n.key,
dropPosition: "on"
} }, s, T));
- let D = (0, S.useRef)(null);
- (0, S.useEffect)(() => {
+ let D = (0, C.useRef)(null);
+ (0, C.useEffect)(() => {
o && D.current;
}, []);
- let O = o && o.isDragging(n.key), { children: k, ...A } = e, j = e.hasChildItems || i.collection.getItem(n.lastChildKey)?.type !== "cell", M = j && i.expandedKeys.has(n.key), N = Ih({
+ let O = o && o.isDragging(n.key), { children: k, ...A } = e, j = e.hasChildItems || i.collection.getItem(n.lastChildKey)?.type !== "cell", M = j && i.expandedKeys.has(n.key), N = Lh({
...A,
id: void 0,
defaultClassName: "react-aria-Row",
@@ -24460,21 +24462,21 @@ var fy = /*#__PURE__*/ (0, S.createContext)({ isFocusVisibleWithinRow: !1 }), py
isExpanded: M,
level: n.level + 1
}
- }), ee = U(e, { global: !0 });
- return delete ee.id, delete ee.onClick, /*#__PURE__*/ S.createElement(S.Fragment, null, w && !w.isHidden && /*#__PURE__*/ S.createElement(my, {
+ }), ee = H(e, { global: !0 });
+ return delete ee.id, delete ee.onClick, /*#__PURE__*/ C.createElement(C.Fragment, null, w && !w.isHidden && /*#__PURE__*/ C.createElement(hy, {
role: "row",
style: { height: 0 }
- }, /*#__PURE__*/ S.createElement(_y, {
+ }, /*#__PURE__*/ C.createElement(vy, {
role: "gridcell",
colSpan: i.collection.columnCount,
style: { padding: 0 }
- }, /*#__PURE__*/ S.createElement("div", {
+ }, /*#__PURE__*/ C.createElement("div", {
role: "button",
...E,
...w.dropIndicatorProps,
ref: T
- }))), /*#__PURE__*/ S.createElement(my, {
- ...V(ee, N, d, g, y, C?.dragProps, v),
+ }))), /*#__PURE__*/ C.createElement(hy, {
+ ...V(ee, N, d, g, y, S?.dragProps, v),
ref: r,
"data-disabled": p.isDisabled || void 0,
"data-selected": p.isSelected || void 0,
@@ -24489,61 +24491,61 @@ var fy = /*#__PURE__*/ (0, S.createContext)({ isFocusVisibleWithinRow: !1 }), py
"data-expanded": M || void 0,
"data-has-child-items": j || void 0,
"data-level": n.level + 1
- }, /*#__PURE__*/ S.createElement(Fh, { values: [
- [ug, { slots: {
- [Ph]: {},
+ }, /*#__PURE__*/ C.createElement(Ih, { values: [
+ [dg, { slots: {
+ [Fh]: {},
selection: x
} }],
- [dg, { slots: {
- [Ph]: {},
+ [fg, { slots: {
+ [Fh]: {},
selection: x
} }],
- [eg, { slots: {
- [Ph]: {},
+ [tg, { slots: {
+ [Fh]: {},
chevron: f,
drag: {
- ...C?.dragButtonProps,
+ ...S?.dragButtonProps,
ref: D,
style: { pointerEvents: "none" }
}
} }],
- [d_, { isSelected: p.isSelected }],
- [fy, { isFocusVisibleWithinRow: _ }]
- ] }, /*#__PURE__*/ S.createElement(l, {
+ [f_, { isSelected: p.isSelected }],
+ [py, { isFocusVisibleWithinRow: _ }]
+ ] }, /*#__PURE__*/ C.createElement(l, {
collection: i.collection,
parent: n
}))));
}, (e) => {
if (e.id == null && typeof e.children == "function") throw Error("No id detected for the Row element. The Row element requires a id to be provided to it when the cells are rendered dynamically.");
let t = [e.value].concat(e.dependencies);
- return /*#__PURE__*/ S.createElement(pi, {
+ return /*#__PURE__*/ C.createElement(mi, {
dependencies: t,
items: e.columns,
idScope: e.id
}, e.children);
-}), gy = class extends dt {
+}), _y = class extends ft {
static {
this.type = "cell";
}
-}, _y = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, S.useContext)(Yh);
- return n ? /*#__PURE__*/ S.createElement(Y.div, {
+}, vy = /*#__PURE__*/ (0, C.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, C.useContext)(Xh);
+ return n ? /*#__PURE__*/ C.createElement(Y.div, {
...e,
ref: t
- }) : /*#__PURE__*/ S.createElement(Y.td, {
+ }) : /*#__PURE__*/ C.createElement(Y.td, {
...e,
ref: t
});
-}), vy = /*#__PURE__*/ li(gy, (e, t, n) => {
- let r = Rr(t), i = (0, S.useContext)(qv), { dragState: a } = (0, S.useContext)(r_), { isVirtualized: o } = (0, S.useContext)(Yh);
+}), yy = /*#__PURE__*/ ui(_y, (e, t, n) => {
+ let r = zr(t), i = (0, C.useContext)(Jv), { dragState: a } = (0, C.useContext)(i_), { isVirtualized: o } = (0, C.useContext)(Xh);
n.column = i.collection.columns[n.index];
- let { gridCellProps: s, isPressed: c } = tf({
+ let { gridCellProps: s, isPressed: c } = af({
node: n,
shouldSelectOnPressUp: !!a,
isVirtualized: o,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, i, r), { isFocused: l, isFocusVisible: u, focusProps: d } = wc(), { hoverProps: f, isHovered: p } = jc({}), { isFocusVisibleWithinRow: m } = (0, S.useContext)(fy), h = n.parentKey != null && i.selectionManager.isSelected(n.parentKey), g = n.colIndex || n.index, _ = i.collection.getItem(n.parentKey), v = _.props.hasChildItems || i.collection.getItem(_.lastChildKey)?.type !== "cell", y = v && i.expandedKeys.has(n.parentKey), b = i.selectionManager.isDisabled(n.parentKey), x = Ih({
+ }, i, r), { isFocused: l, isFocusVisible: u, focusProps: d } = Ec(), { hoverProps: f, isHovered: p } = Nc({}), { isFocusVisibleWithinRow: m } = (0, C.useContext)(py), h = n.parentKey != null && i.selectionManager.isSelected(n.parentKey), g = n.colIndex || n.index, _ = i.collection.getItem(n.parentKey), v = _.props.hasChildItems || i.collection.getItem(_.lastChildKey)?.type !== "cell", y = v && i.expandedKeys.has(n.parentKey), b = i.selectionManager.isDisabled(n.parentKey), x = Lh({
...e,
id: void 0,
defaultClassName: "react-aria-Cell",
@@ -24562,9 +24564,9 @@ var fy = /*#__PURE__*/ (0, S.createContext)({ isFocusVisibleWithinRow: !1 }), py
level: _.level + 1,
isTreeColumn: n.column.key === i.treeColumn
}
- }), C = U(e, { global: !0 });
- return delete C.id, /*#__PURE__*/ S.createElement(_y, {
- ...V(C, x, s, d, f),
+ }), S = H(e, { global: !0 });
+ return delete S.id, /*#__PURE__*/ C.createElement(vy, {
+ ...V(S, x, s, d, f),
ref: r,
"data-focused": l || void 0,
"data-focus-visible": u || void 0,
@@ -24577,14 +24579,14 @@ var fy = /*#__PURE__*/ (0, S.createContext)({ isFocusVisibleWithinRow: !1 }), py
"data-level": _.level + 1,
"data-tree-column": n.column.key === i.treeColumn || void 0,
"data-disabled": b || void 0
- }, /*#__PURE__*/ S.createElement(Yh.Provider, { value: Kh }, x.children));
+ }, /*#__PURE__*/ C.createElement(Xh.Provider, { value: qh }, x.children));
});
-function yy(e, t) {
- t = Rr(t);
- let { dragAndDropHooks: n, dropState: r } = (0, S.useContext)(r_), i = (0, S.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);
+function by(e, t) {
+ t = zr(t);
+ let { dragAndDropHooks: n, dropState: r } = (0, C.useContext)(i_), i = (0, C.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);
if (o) return null;
let c = r && e.target.type === "item" ? (r.collection.getItem(e.target.key)?.level || 0) + 1 : 1;
- return /*#__PURE__*/ S.createElement(Cy, {
+ return /*#__PURE__*/ C.createElement(wy, {
...e,
dropIndicatorProps: a,
isDropTarget: s,
@@ -24593,71 +24595,71 @@ function yy(e, t) {
ref: t
});
}
-var by = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, S.useContext)(Yh);
- return n ? /*#__PURE__*/ S.createElement(Y.div, {
+var xy = /*#__PURE__*/ (0, C.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, C.useContext)(Xh);
+ return n ? /*#__PURE__*/ C.createElement(Y.div, {
...e,
ref: t
- }) : /*#__PURE__*/ S.createElement(Y.tr, {
+ }) : /*#__PURE__*/ C.createElement(Y.tr, {
...e,
ref: t
});
-}), xy = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, S.useContext)(Yh);
- return n ? /*#__PURE__*/ S.createElement(Y.div, {
+}), Sy = /*#__PURE__*/ (0, C.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, C.useContext)(Xh);
+ return n ? /*#__PURE__*/ C.createElement(Y.div, {
...e,
ref: t
- }) : /*#__PURE__*/ S.createElement(Y.td, {
+ }) : /*#__PURE__*/ C.createElement(Y.td, {
...e,
ref: t
});
});
-function Sy(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, s = (0, S.useContext)(qv), { visuallyHiddenProps: c } = qo(), l = Ih({
+function Cy(e, t) {
+ let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, s = (0, C.useContext)(Jv), { visuallyHiddenProps: c } = Yo(), l = Lh({
...o,
defaultClassName: "react-aria-DropIndicator",
defaultStyle: { "--table-row-level": a + 1 },
values: { isDropTarget: r }
});
- return /*#__PURE__*/ S.createElement(by, {
- ...U(e, { global: !0 }),
+ return /*#__PURE__*/ C.createElement(xy, {
+ ...H(e, { global: !0 }),
...l,
role: "row",
ref: t,
"data-drop-target": r || void 0,
"aria-level": a
- }, /*#__PURE__*/ S.createElement(xy, {
+ }, /*#__PURE__*/ C.createElement(Sy, {
role: "gridcell",
colSpan: s.collection.columnCount,
style: { padding: 0 }
- }, /*#__PURE__*/ S.createElement("div", {
+ }, /*#__PURE__*/ C.createElement("div", {
...c,
role: "button",
...n,
ref: i
}), l.children));
}
-var Cy = /*#__PURE__*/ (0, S.forwardRef)(Sy);
-function wy() {
- let e = (0, S.useContext)(qv), { dragAndDropHooks: t, dropState: n } = (0, S.useContext)(r_), r = (0, S.useRef)(null), { dropIndicatorProps: i } = t.useDropIndicator({ target: { type: "root" } }, n, r), a = n.isDropTarget({ type: "root" }), { visuallyHiddenProps: o } = qo();
- return !a && i["aria-hidden"] ? null : /*#__PURE__*/ S.createElement(my, {
+var wy = /*#__PURE__*/ (0, C.forwardRef)(Cy);
+function Ty() {
+ let e = (0, C.useContext)(Jv), { dragAndDropHooks: t, dropState: n } = (0, C.useContext)(i_), r = (0, C.useRef)(null), { dropIndicatorProps: i } = t.useDropIndicator({ target: { type: "root" } }, n, r), a = n.isDropTarget({ type: "root" }), { visuallyHiddenProps: o } = Yo();
+ return !a && i["aria-hidden"] ? null : /*#__PURE__*/ C.createElement(hy, {
role: "row",
"aria-hidden": i["aria-hidden"],
style: { height: 0 }
- }, /*#__PURE__*/ S.createElement(_y, {
+ }, /*#__PURE__*/ C.createElement(vy, {
role: "gridcell",
colSpan: e.collection.columnCount,
style: { padding: 0 }
- }, /*#__PURE__*/ S.createElement("div", {
+ }, /*#__PURE__*/ C.createElement("div", {
role: "button",
...o,
...i,
ref: r
})));
}
-li(pt, function(e, t, n) {
- let r = (0, S.useContext)(qv), { isVirtualized: i } = (0, S.useContext)(Yh), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = r.collection.columns.length, u = (0, S.useRef)(null);
- O_((0, S.useMemo)(() => ({
+ui(mt, function(e, t, n) {
+ let r = (0, C.useContext)(Jv), { isVirtualized: i } = (0, C.useContext)(Xh), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = r.collection.columns.length, u = (0, C.useRef)(null);
+ k_((0, C.useMemo)(() => ({
onLoadMore: o,
collection: r?.collection,
sentinelRef: u,
@@ -24667,7 +24669,7 @@ li(pt, function(e, t, n) {
s,
r?.collection
]), u);
- let d = Ih({
+ let d = Lh({
...c,
id: void 0,
children: n.rendered,
@@ -24675,13 +24677,13 @@ li(pt, function(e, t, n) {
defaultStyle: { "--table-row-level": n.level + 1 },
values: void 0
}), f = {}, p = {}, m = {};
- return i ? (p["aria-colspan"] = l, m = { display: "contents" }) : p.colSpan = l, /*#__PURE__*/ S.createElement(S.Fragment, null, /*#__PURE__*/ S.createElement(my, {
+ return i ? (p["aria-colspan"] = l, m = { display: "contents" }) : p.colSpan = l, /*#__PURE__*/ C.createElement(C.Fragment, null, /*#__PURE__*/ C.createElement(hy, {
style: { height: 0 },
- inert: p_(!0)
- }, /*#__PURE__*/ S.createElement(_y, { style: {
+ inert: m_(!0)
+ }, /*#__PURE__*/ C.createElement(vy, { style: {
padding: 0,
border: 0
- } }, /*#__PURE__*/ S.createElement("div", {
+ } }, /*#__PURE__*/ C.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: u,
style: {
@@ -24689,14 +24691,14 @@ li(pt, function(e, t, n) {
height: 1,
width: 1
}
- }))), a && d.children && /*#__PURE__*/ S.createElement(my, {
- ...V(U(e, { global: !0 }), f),
+ }))), a && d.children && /*#__PURE__*/ C.createElement(hy, {
+ ...V(H(e, { global: !0 }), f),
...d,
role: "row",
ref: t,
"aria-level": n.level + 1,
"data-level": n.level + 1
- }, /*#__PURE__*/ S.createElement(_y, {
+ }, /*#__PURE__*/ C.createElement(vy, {
role: "rowheader",
...p,
style: m
@@ -24704,8 +24706,8 @@ li(pt, function(e, t, n) {
});
//#endregion
//#region node_modules/react-stately/dist/private/list/useSingleSelectListState.mjs
-function Ty(e) {
- let [t, n] = Ho(e.selectedKey, e.defaultSelectedKey ?? null, e.onSelectionChange), r = (0, S.useMemo)(() => t == null ? [] : [t], [t]), { collection: i, disabledKeys: a, selectionManager: o } = T_({
+function Ey(e) {
+ let [t, n] = Wo(e.selectedKey, e.defaultSelectedKey ?? null, e.onSelectionChange), r = (0, C.useMemo)(() => t == null ? [] : [t], [t]), { collection: i, disabledKeys: a, selectionManager: o } = E_({
...e,
selectionMode: "single",
disallowEmptySelection: !0,
@@ -24728,24 +24730,24 @@ function Ty(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/tabs/useTabListState.mjs
-function Ey(e) {
- let t = Ty({
+function Dy(e) {
+ let t = Ey({
...e,
onSelectionChange: e.onSelectionChange ? (t) => {
t != null && e.onSelectionChange?.(t);
} : void 0,
suppressTextValueWarning: !0,
- defaultSelectedKey: e.defaultSelectedKey ?? Dy(e.collection, e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set()) ?? void 0
- }), { selectionManager: n, collection: r, selectedKey: i } = t, a = (0, S.useRef)(i);
- return (0, S.useEffect)(() => {
+ defaultSelectedKey: e.defaultSelectedKey ?? Oy(e.collection, e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set()) ?? void 0
+ }), { selectionManager: n, collection: r, selectedKey: i } = t, a = (0, C.useRef)(i);
+ return (0, C.useEffect)(() => {
let o = i;
- e.selectedKey == null && (n.isEmpty || o == null || !r.getItem(o)) && (o = Dy(r, t.disabledKeys), o != null && n.setSelectedKeys([o])), (o != null && n.focusedKey == null || !n.isFocused && o !== a.current) && n.setFocusedKey(o), a.current = o;
+ e.selectedKey == null && (n.isEmpty || o == null || !r.getItem(o)) && (o = Oy(r, t.disabledKeys), o != null && n.setSelectedKeys([o])), (o != null && n.focusedKey == null || !n.isFocused && o !== a.current) && n.setFocusedKey(o), a.current = o;
}), {
...t,
isDisabled: e.isDisabled || !1
};
}
-function Dy(e, t) {
+function Oy(e, t) {
let n = null;
if (e) {
for (n = e.getFirstKey(); n != null && (t.has(n) || e.getItem(n)?.props?.isDisabled) && n !== e.getLastKey();) n = e.getKeyAfter(n);
@@ -24755,24 +24757,24 @@ function Dy(e, t) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Tabs.mjs
-var Oy = /*#__PURE__*/ (0, S.createContext)(null), ky = /*#__PURE__*/ (0, S.createContext)(null), Ay = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
- [e, t] = Rh(e, t, Oy);
+var ky = /*#__PURE__*/ (0, C.createContext)(null), Ay = /*#__PURE__*/ (0, C.createContext)(null), jy = /*#__PURE__*/ (0, C.forwardRef)(function(e, t) {
+ [e, t] = zh(e, t, ky);
let { children: n, orientation: r = "horizontal" } = e;
- return n = (0, S.useMemo)(() => typeof n == "function" ? n({
+ return n = (0, C.useMemo)(() => typeof n == "function" ? n({
orientation: r,
defaultChildren: null
- }) : n, [n, r]), /*#__PURE__*/ S.createElement(ti, { content: n }, (n) => /*#__PURE__*/ S.createElement(jy, {
+ }) : n, [n, r]), /*#__PURE__*/ C.createElement(ni, { content: n }, (n) => /*#__PURE__*/ C.createElement(My, {
props: e,
collection: n,
tabsRef: t
}));
});
-function jy({ props: e, tabsRef: t, collection: n }) {
- let { orientation: r = "horizontal" } = e, i = Ey({
+function My({ props: e, tabsRef: t, collection: n }) {
+ let { orientation: r = "horizontal" } = e, i = Dy({
...e,
collection: n,
children: void 0
- }), { focusProps: a, isFocused: o, isFocusVisible: s } = wc({ within: !0 }), c = (0, S.useMemo)(() => ({
+ }), { focusProps: a, isFocused: o, isFocusVisible: s } = Ec({ within: !0 }), c = (0, C.useMemo)(() => ({
orientation: r,
isFocusWithin: o,
isFocusVisible: s
@@ -24780,12 +24782,12 @@ function jy({ props: e, tabsRef: t, collection: n }) {
r,
o,
s
- ]), l = Ih({
+ ]), l = Lh({
...e,
defaultClassName: "react-aria-Tabs",
values: c
- }), u = U(e, { global: !0 });
- return /*#__PURE__*/ S.createElement(Y.div, {
+ }), u = H(e, { global: !0 });
+ return /*#__PURE__*/ C.createElement(Y.div, {
...V(u, l, a),
ref: t,
slot: e.slot || void 0,
@@ -24793,20 +24795,20 @@ function jy({ props: e, tabsRef: t, collection: n }) {
"data-orientation": r,
"data-focus-visible": s || void 0,
"data-disabled": i.isDisabled || void 0
- }, /*#__PURE__*/ S.createElement(Fh, { values: [[Oy, e], [ky, i]] }, l.children));
+ }, /*#__PURE__*/ C.createElement(Ih, { values: [[ky, e], [Ay, i]] }, l.children));
}
-var My = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
- return (0, S.useContext)(ky) ? /*#__PURE__*/ S.createElement(Ny, {
+var Ny = /*#__PURE__*/ (0, C.forwardRef)(function(e, t) {
+ return (0, C.useContext)(Ay) ? /*#__PURE__*/ C.createElement(Py, {
props: e,
forwardedRef: t
- }) : /*#__PURE__*/ S.createElement(pi, e);
+ }) : /*#__PURE__*/ C.createElement(mi, e);
});
-function Ny({ props: e, forwardedRef: t }) {
- let n = (0, S.useContext)(ky), { CollectionRoot: r } = (0, S.useContext)(Yh), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = Lh(Oy), o = Rr(t), { tabListProps: s } = bf({
+function Py({ props: e, forwardedRef: t }) {
+ let n = (0, C.useContext)(Ay), { CollectionRoot: r } = (0, C.useContext)(Xh), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = Rh(ky), o = zr(t), { tabListProps: s } = Cf({
...e,
orientation: i,
keyboardActivation: a
- }, n, o), c = Ih({
+ }, n, o), c = Lh({
...e,
children: null,
defaultClassName: "react-aria-TabList",
@@ -24814,30 +24816,30 @@ function Ny({ props: e, forwardedRef: t }) {
orientation: i,
state: n
}
- }), l = U(e, { global: !0 });
- return delete l.id, /*#__PURE__*/ S.createElement(Y.div, {
+ }), l = H(e, { global: !0 });
+ return delete l.id, /*#__PURE__*/ C.createElement(Y.div, {
...V(l, c, s),
ref: o,
"data-orientation": i || void 0
- }, /*#__PURE__*/ S.createElement(u_, null, /*#__PURE__*/ S.createElement(r, {
+ }, /*#__PURE__*/ C.createElement(d_, null, /*#__PURE__*/ C.createElement(r, {
collection: n.collection,
- persistedKeys: Xh(n.selectionManager.focusedKey)
+ persistedKeys: Zh(n.selectionManager.focusedKey)
})));
}
-var Py = /*#__PURE__*/ li(class extends dt {
+var Fy = /*#__PURE__*/ ui(class extends ft {
static {
this.type = "item";
}
}, (e, t, n) => {
- let r = (0, S.useContext)(ky), i = Rr(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = vf({
+ let r = (0, C.useContext)(Ay), i = zr(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = xf({
key: n.key,
...e
- }, r, i), { focusProps: l, isFocused: u, isFocusVisible: d } = wc(), { hoverProps: f, isHovered: p } = jc({
+ }, r, i), { focusProps: l, isFocused: u, isFocusVisible: d } = Ec(), { hoverProps: f, isHovered: p } = Nc({
isDisabled: s,
onHoverStart: e.onHoverStart,
onHoverEnd: e.onHoverEnd,
onHoverChange: e.onHoverChange
- }), m = Ih({
+ }), m = Lh({
...e,
id: void 0,
children: n.rendered,
@@ -24850,8 +24852,8 @@ var Py = /*#__PURE__*/ li(class extends dt {
isPressed: c,
isHovered: p
}
- }), h = n.props.href ? Y.a : Y.div, g = U(e, { global: !0 });
- return delete g.id, delete g.onClick, /*#__PURE__*/ S.createElement(h, {
+ }), h = n.props.href ? Y.a : Y.div, g = H(e, { global: !0 });
+ return delete g.id, delete g.onClick, /*#__PURE__*/ C.createElement(h, {
...V(g, m, a, l, f),
ref: i,
"data-selected": o || void 0,
@@ -24860,58 +24862,58 @@ var Py = /*#__PURE__*/ li(class extends dt {
"data-focus-visible": d || void 0,
"data-pressed": c || void 0,
"data-hovered": p || void 0
- }, /*#__PURE__*/ S.createElement(d_.Provider, { value: { isSelected: o } }, m.children));
-}), Fy = /*#__PURE__*/ Gr(function(e, t) {
- let n = (0, S.useContext)(ky), r = Rr(t), i = n.selectedKey === e.id, [a, o] = (0, S.useState)(n.selectedKey == null ? null : i);
+ }, /*#__PURE__*/ C.createElement(f_.Provider, { value: { isSelected: o } }, m.children));
+}), Iy = /*#__PURE__*/ Kr(function(e, t) {
+ let n = (0, C.useContext)(Ay), r = zr(t), i = n.selectedKey === e.id, [a, o] = (0, C.useState)(n.selectedKey == null ? null : i);
a == null && n.selectedKey != null ? o(i) : !i && a && o(!1);
- let s = H_(r, i);
- return !i && !e.shouldForceMount && !s ? null : /*#__PURE__*/ S.createElement(Iy, {
+ let s = U_(r, i);
+ return !i && !e.shouldForceMount && !s ? null : /*#__PURE__*/ C.createElement(Ly, {
...e,
tabPanelRef: r,
isInitiallySelected: a || !1,
isExiting: s
});
});
-function Iy(e) {
- let t = (0, S.useContext)(ky), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = xf(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = wc(), d = t.selectedKey === e.id, f = V_(r) && !i, p = Ih({
+function Ly(e) {
+ let t = (0, C.useContext)(Ay), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = wf(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = Ec(), d = t.selectedKey === e.id, f = H_(r) && !i, p = Lh({
...e,
defaultClassName: "react-aria-TabPanel",
values: {
isFocused: l,
isFocusVisible: u,
- isInert: p_(!d),
+ isInert: m_(!d),
isEntering: f,
isExiting: a,
state: t
}
- }), m = U(o, { global: !0 });
+ }), m = H(o, { global: !0 });
delete m.id;
let h = d ? V(m, s, c, p) : V(m, p);
- return /*#__PURE__*/ S.createElement(Y.div, {
+ return /*#__PURE__*/ C.createElement(Y.div, {
...h,
ref: r,
"data-focused": l || void 0,
"data-focus-visible": u || void 0,
- inert: p_(!d || e.inert),
+ inert: m_(!d || e.inert),
"data-inert": d ? void 0 : "true",
"data-entering": f || void 0,
"data-exiting": a || void 0
- }, /*#__PURE__*/ S.createElement(Fh, { values: [[Oy, null], [ky, null]] }, /*#__PURE__*/ S.createElement(Yh.Provider, { value: Kh }, p.children)));
+ }, /*#__PURE__*/ C.createElement(Ih, { values: [[ky, null], [Ay, null]] }, /*#__PURE__*/ C.createElement(Xh.Provider, { value: qh }, p.children)));
}
//#endregion
//#region node_modules/react-aria-components/dist/private/TextArea.mjs
-var Ly = /*#__PURE__*/ (0, S.createContext)({}), Ry = /*#__PURE__*/ (0, S.createContext)(null), zy = /*#__PURE__*/ Gr(function(e, t) {
- [e, t] = Rh(e, t, Ry);
- let { validationBehavior: n } = Lh(lg) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, S.useRef)(null);
- [e, i] = Rh(e, i, Wh);
- let [a, o] = zh(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, S.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = Yo({
- ...Bh(e),
+var Ry = /*#__PURE__*/ (0, C.createContext)({}), zy = /*#__PURE__*/ (0, C.createContext)(null), By = /*#__PURE__*/ Kr(function(e, t) {
+ [e, t] = zh(e, t, zy);
+ let { validationBehavior: n } = Rh(ug) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, C.useRef)(null);
+ [e, i] = zh(e, i, Gh);
+ let [a, o] = Bh(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, C.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = Zo({
+ ...Vh(e),
inputElementType: s,
label: o,
validationBehavior: r
- }, i), m = (0, S.useCallback)((e) => {
+ }, i), m = (0, C.useCallback)((e) => {
i.current = e, e && c(e instanceof HTMLTextAreaElement ? "textarea" : "input");
- }, [i]), h = Ih({
+ }, [i]), h = Lh({
...e,
values: {
isDisabled: e.isDisabled || !1,
@@ -24920,8 +24922,8 @@ var Ly = /*#__PURE__*/ (0, S.createContext)({}), Ry = /*#__PURE__*/ (0, S.create
isRequired: e.isRequired || !1
},
defaultClassName: "react-aria-TextField"
- }), g = U(e, { global: !0 });
- return delete g.id, /*#__PURE__*/ S.createElement(Y.div, {
+ }), g = H(e, { global: !0 });
+ return delete g.id, /*#__PURE__*/ C.createElement(Y.div, {
...g,
...h,
ref: t,
@@ -24930,31 +24932,31 @@ var Ly = /*#__PURE__*/ (0, S.createContext)({}), Ry = /*#__PURE__*/ (0, S.create
"data-invalid": p.isInvalid || void 0,
"data-readonly": e.isReadOnly || void 0,
"data-required": e.isRequired || void 0
- }, /*#__PURE__*/ S.createElement(Fh, { values: [
- [Zh, {
+ }, /*#__PURE__*/ C.createElement(Ih, { values: [
+ [Qh, {
...l,
ref: a
}],
- [yg, {
+ [bg, {
...u,
ref: m
}],
- [Ly, {
+ [Ry, {
...u,
ref: m
}],
- [_g, {
+ [vg, {
role: "presentation",
isInvalid: p.isInvalid,
isDisabled: e.isDisabled || !1
}],
- [og, { slots: {
+ [sg, { slots: {
description: d,
errorMessage: f
} }],
- [cg, p]
+ [lg, p]
] }, h.children));
-}), By = Wm({
+}), Vy = Km({
base: [
"inline-flex items-center justify-center gap-0.5 whitespace-nowrap overflow-hidden",
"font-sans select-none cursor-pointer",
@@ -25010,43 +25012,43 @@ var Ly = /*#__PURE__*/ (0, S.createContext)({}), Ry = /*#__PURE__*/ (0, S.create
}
});
function X({ 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, C.jsxs)("button", {
+ return /* @__PURE__ */ (0, w.jsxs)("button", {
ref: c,
type: s,
- className: Um(By.base, By.size[t], By.variant[e], n && By.iconOnlySize[t], o),
+ className: K(Vy.base, Vy.size[t], Vy.variant[e], n && Vy.iconOnlySize[t], o),
...l,
children: [
- r ? /* @__PURE__ */ (0, C.jsx)(r, {
- className: By.icon[t],
+ r ? /* @__PURE__ */ (0, w.jsx)(r, {
+ className: Vy.icon[t],
"aria-hidden": !0
}) : null,
- !n && a != null && /* @__PURE__ */ (0, C.jsx)("span", {
- className: By.label[t],
+ !n && a != null && /* @__PURE__ */ (0, w.jsx)("span", {
+ className: Vy.label[t],
children: a
}),
- !n && i ? /* @__PURE__ */ (0, C.jsx)(i, {
- className: By.icon[t],
+ !n && i ? /* @__PURE__ */ (0, w.jsx)(i, {
+ className: Vy.icon[t],
"aria-hidden": !0
}) : null
]
});
}
-function Vy({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadingIcon: r, trailingIcon: i, children: a, className: o, ref: s, ...c }) {
- return /* @__PURE__ */ (0, C.jsxs)("a", {
+function Hy({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadingIcon: r, trailingIcon: i, children: a, className: o, ref: s, ...c }) {
+ return /* @__PURE__ */ (0, w.jsxs)("a", {
ref: s,
- className: Um(By.base, By.size[t], By.variant[e], n && By.iconOnlySize[t], o),
+ className: K(Vy.base, Vy.size[t], Vy.variant[e], n && Vy.iconOnlySize[t], o),
...c,
children: [
- r ? /* @__PURE__ */ (0, C.jsx)(r, {
- className: By.icon[t],
+ r ? /* @__PURE__ */ (0, w.jsx)(r, {
+ className: Vy.icon[t],
"aria-hidden": !0
}) : null,
- !n && a != null && /* @__PURE__ */ (0, C.jsx)("span", {
- className: By.label[t],
+ !n && a != null && /* @__PURE__ */ (0, w.jsx)("span", {
+ className: Vy.label[t],
children: a
}),
- !n && i ? /* @__PURE__ */ (0, C.jsx)(i, {
- className: By.icon[t],
+ !n && i ? /* @__PURE__ */ (0, w.jsx)(i, {
+ className: Vy.icon[t],
"aria-hidden": !0
}) : null
]
@@ -25054,7 +25056,7 @@ function Vy({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, lead
}
//#endregion
//#region src/react/boardui/components/base/buttons/icon-button.tsx
-var Hy = Wm({
+var Uy = Km({
base: [
"relative inline-flex shrink-0 items-center justify-center overflow-visible rounded-2lg",
"bg-background-primary-default text-foreground-icon-primary",
@@ -25075,33 +25077,33 @@ var Hy = Wm({
small: "size-4 shrink-0"
}
});
-function Uy({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {
- return /* @__PURE__ */ (0, C.jsx)("button", {
+function Wy({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {
+ return /* @__PURE__ */ (0, w.jsx)("button", {
ref: i,
type: r,
- className: Um(Hy.base, Hy.size[t], n),
+ className: K(Uy.base, Uy.size[t], n),
...a,
- children: /* @__PURE__ */ (0, C.jsx)(e, {
- className: Hy.icon[t],
+ children: /* @__PURE__ */ (0, w.jsx)(e, {
+ className: Uy.icon[t],
"aria-hidden": !0
})
});
}
//#endregion
//#region src/react/boardui/components/base/input/label.tsx
-function Wy({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {
- return /* @__PURE__ */ (0, C.jsxs)(Qh, {
+function Gy({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {
+ return /* @__PURE__ */ (0, w.jsxs)($h, {
"data-label": "true",
...a,
- className: Um("flex cursor-default items-center gap-0.5", "text-body-medium text-text-primary", r),
+ className: K("flex cursor-default items-center gap-0.5", "text-body-medium text-text-primary", r),
children: [
i,
- e && /* @__PURE__ */ (0, C.jsx)("span", {
+ e && /* @__PURE__ */ (0, w.jsx)("span", {
"aria-hidden": "true",
className: "text-body-medium text-text-error-primary",
children: "*"
}),
- n && /* @__PURE__ */ (0, C.jsx)(qf, {
+ n && /* @__PURE__ */ (0, w.jsx)(Xf, {
className: "size-4 shrink-0 text-foreground-icon-quaternary",
"aria-hidden": !0
})
@@ -25110,33 +25112,33 @@ function Wy({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, childr
}
//#endregion
//#region src/react/boardui/components/base/input/hint-text.tsx
-function Gy({ isInvalid: e = !1, className: t, ...n }) {
- return /* @__PURE__ */ (0, C.jsx)(sg, {
+function Ky({ isInvalid: e = !1, className: t, ...n }) {
+ return /* @__PURE__ */ (0, w.jsx)(cg, {
slot: e ? "errorMessage" : "description",
...n,
- className: Um("pt-px text-caption-1-medium text-text-secondary", e && "text-text-error-primary", t)
+ className: K("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 Ky = (0, S.createContext)({});
-function qy({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {
- return /* @__PURE__ */ (0, C.jsx)(Ky.Provider, {
+var qy = (0, C.createContext)({});
+function Jy({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {
+ return /* @__PURE__ */ (0, w.jsx)(qy.Provider, {
value: {
size: e,
fieldClassName: t,
inputClassName: n
},
- children: /* @__PURE__ */ (0, C.jsx)(zy, {
+ children: /* @__PURE__ */ (0, w.jsx)(By, {
...a,
"data-input-size": e,
- className: Um("group flex h-max w-full flex-col items-start gap-1", r),
+ className: K("group flex h-max w-full flex-col items-start gap-1", r),
children: i
})
});
}
-qy.displayName = "TextField";
-var Jy = Wm({
+Jy.displayName = "TextField";
+var Yy = Km({
field: [
"relative flex w-full items-center",
"rounded-2lg",
@@ -25165,44 +25167,44 @@ var Jy = Wm({
].join(" "),
icon: "size-5 shrink-0"
});
-function Yy({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {
- let l = (0, S.useContext)(Ky), u = e ?? l.size ?? "medium", d = r != null;
- return /* @__PURE__ */ (0, C.jsx)(vg, {
+function Xy({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {
+ let l = (0, C.useContext)(qy), u = e ?? l.size ?? "medium", d = r != null;
+ return /* @__PURE__ */ (0, w.jsx)(yg, {
ref: s,
- className: ({ isFocusWithin: e, isHovered: t, isDisabled: n, isInvalid: r }) => Um(Jy.field, d ? Jy.fieldWithAddonSize[u] : Jy.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, C.jsxs)("div", {
- className: Jy.content,
- children: [/* @__PURE__ */ (0, C.jsxs)("div", {
- className: Jy.leftSection,
- children: [d ? r : t ? /* @__PURE__ */ (0, C.jsx)(t, {
- className: Jy.icon,
+ className: ({ isFocusWithin: e, isHovered: t, isDisabled: n, isInvalid: r }) => K(Yy.field, d ? Yy.fieldWithAddonSize[u] : Yy.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, w.jsxs)("div", {
+ className: Yy.content,
+ children: [/* @__PURE__ */ (0, w.jsxs)("div", {
+ className: Yy.leftSection,
+ children: [d ? r : t ? /* @__PURE__ */ (0, w.jsx)(t, {
+ className: Yy.icon,
"aria-hidden": !0
- }) : null, /* @__PURE__ */ (0, C.jsx)(xg, {
+ }) : null, /* @__PURE__ */ (0, w.jsx)(Sg, {
ref: o,
...c,
- className: Um(Jy.input, l.inputClassName, a)
+ className: K(Yy.input, l.inputClassName, a)
})]
- }), n ? /* @__PURE__ */ (0, C.jsx)(n, {
- className: Jy.icon,
+ }), n ? /* @__PURE__ */ (0, w.jsx)(n, {
+ className: Yy.icon,
"aria-hidden": !0
}) : null]
})
});
}
-Yy.displayName = "InputBase";
-function Xy({ 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, C.jsx)(qy, {
+Xy.displayName = "InputBase";
+function Zy({ 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, w.jsx)(Jy, {
...d,
className: u,
"aria-label": d["aria-label"] ?? (!e && typeof r == "string" ? r : void 0),
- children: ({ isRequired: u, isInvalid: d }) => /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [
- e && /* @__PURE__ */ (0, C.jsx)(Wy, {
+ children: ({ isRequired: u, isInvalid: d }) => /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [
+ e && /* @__PURE__ */ (0, w.jsx)(Gy, {
isRequired: u,
isInvalid: d,
tooltip: n,
children: e
}),
- /* @__PURE__ */ (0, C.jsx)(Yy, {
+ /* @__PURE__ */ (0, w.jsx)(Xy, {
ref: c,
groupRef: l,
placeholder: r,
@@ -25211,19 +25213,19 @@ function Xy({ label: e, hint: t, tooltip: n, placeholder: r, leadingIcon: i, tra
leadingAddon: o,
fieldClassName: s
}),
- t && /* @__PURE__ */ (0, C.jsx)(Gy, {
+ t && /* @__PURE__ */ (0, w.jsx)(Ky, {
isInvalid: d,
children: t
})
] })
});
}
-Xy.displayName = "Input";
+Zy.displayName = "Input";
//#endregion
//#region src/react/settings/use-action.ts
-function Zy(e = "") {
- let t = (0, S.useRef)(null), [n, r] = (0, S.useState)(""), [i, a] = (0, S.useState)(e);
- (0, S.useEffect)(() => () => t.current?.abort(), []);
+function Qy(e = "") {
+ let t = (0, C.useRef)(null), [n, r] = (0, C.useState)(""), [i, a] = (0, C.useState)(e);
+ (0, C.useEffect)(() => () => t.current?.abort(), []);
async function o(e, n, i, o) {
if (t.current) return;
let s = new AbortController();
@@ -25233,7 +25235,7 @@ function Zy(e = "") {
s.signal.aborted || i(e);
} catch (e) {
if (s.signal.aborted) return;
- o ? o(e) : a(J(e));
+ o ? o(e) : a(q(e));
} finally {
t.current === s && (t.current = null), s.signal.aborted || r("");
}
@@ -25253,66 +25255,66 @@ function Z(e) {
}
//#endregion
//#region src/react/avatar-picker/avatar-picker.ts
-var Qy = "/api/avatar-choices", $y = "/api/avatar-pick", eb = "/avatar-choice", tb = (e, t) => [
+var $y = "/api/avatar-choices", eb = "/api/avatar-pick", tb = "/avatar-choice", nb = (e, t) => [
"avatar-choices",
e,
t
-], nb = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, rb = (e, t, n) => `${eb}${nb(e, t)}&ref=${encodeURIComponent(n)}`, ib = (e, t, n) => Ym(Qy + nb(e, t), n);
-async function ab(e, t, n) {
+], rb = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, ib = (e, t, n) => `${tb}${rb(e, t)}&ref=${encodeURIComponent(n)}`, ab = (e, t, n) => Zm($y + rb(e, t), n);
+async function ob(e, t, n) {
if (!("file" in n)) {
- await Xm($y, {
+ await Qm(eb, {
kind: e,
id: t,
...n
});
return;
}
- let r = n.file, i = await fetch(`${$y}${nb(e, t)}&name=${encodeURIComponent(r.name)}`, {
+ let r = n.file, i = await fetch(`${eb}${rb(e, t)}&name=${encodeURIComponent(r.name)}`, {
method: "POST",
credentials: "same-origin",
body: r
});
if (i.ok) return;
let a = await i.json().catch(() => null);
- throw new qm(a?.error || `请求失败(${i.status})`, i.status, a);
+ throw new Ym(a?.error || `请求失败(${i.status})`, i.status, a);
}
-function ob(e, t) {
+function sb(e, t) {
if (!t) return "正在找可用的图…";
let n = t.matched_names.filter((t) => t !== e);
return n.length ? `${e}:图库里按「${n.join("」「")}」找到的。` : t.choices.length ? `${e}:换上的那张留在本机,随时能换回来。` : `${e}:图库里没有这个名字,用下面两种方式换。`;
}
-var sb = (e) => !!e && e.index_stale && !e.choices.some((e) => e.source === "gfriends"), cb = {
+var cb = (e) => !!e && e.index_stale && !e.choices.some((e) => e.source === "gfriends"), lb = {
gfriends: "图库",
history: "用过的"
-}, lb = (e) => `${cb[e.source] || e.source} · ${e.label}` + (e.width ? ` · ${e.width}×${e.height}` : "") + (e.found_by ? ` · 按「${e.found_by}」找到` : "");
+}, ub = (e) => `${lb[e.source] || e.source} · ${e.label}` + (e.width ? ` · ${e.width}×${e.height}` : "") + (e.found_by ? ` · 按「${e.found_by}」找到` : "");
//#endregion
//#region src/react/avatar-picker/avatar-picker-page.tsx
-function ub({ kind: e, entityId: t, name: n, onPicked: r }) {
- let [i, a] = (0, S.useState)(!1);
- return /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)("span", {
+function db({ kind: e, entityId: t, name: n, onPicked: r }) {
+ let [i, a] = (0, C.useState)(!1);
+ return /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [/* @__PURE__ */ (0, w.jsx)("span", {
className: "absolute right-1 bottom-1 z-10",
- children: /* @__PURE__ */ (0, C.jsx)("button", {
+ children: /* @__PURE__ */ (0, w.jsx)("button", {
type: "button",
"aria-haspopup": "dialog",
"aria-label": `更换${n}的头像`,
onClick: () => a(!0),
className: "flex size-7 cursor-pointer items-center justify-center rounded-full border border-border-button-default bg-background-primary-default text-foreground-icon-primary shadow-xs outline-none ring-2 ring-background-full transition-colors hover:border-border-button-hover hover:bg-background-primary-hover/60 dark:hover:bg-background-primary-hover focus-visible:ring-border-focus-ring active:bg-background-primary-active",
- children: /* @__PURE__ */ (0, C.jsx)(Ef, {
+ children: /* @__PURE__ */ (0, w.jsx)(kf, {
"aria-hidden": !0,
className: "size-4"
})
})
- }), /* @__PURE__ */ (0, C.jsx)(iv, {
+ }), /* @__PURE__ */ (0, w.jsx)(av, {
isOpen: i,
onOpenChange: a,
isDismissable: !0,
className: "fixed inset-0 z-dialog flex items-center justify-center bg-scrim p-4",
- children: /* @__PURE__ */ (0, C.jsx)(nv, {
+ children: /* @__PURE__ */ (0, w.jsx)(rv, {
className: "flex max-h-full w-full max-w-avatar-picker flex-col overflow-hidden rounded-2-5xl border border-separator-border bg-background-full shadow-dropdown",
- children: /* @__PURE__ */ (0, C.jsx)(X_, {
+ children: /* @__PURE__ */ (0, w.jsx)(Z_, {
"aria-label": "更换头像",
className: "flex min-h-0 flex-col outline-none",
- children: /* @__PURE__ */ (0, C.jsx)(db, {
+ children: /* @__PURE__ */ (0, w.jsx)(fb, {
kind: e,
entityId: t,
name: n,
@@ -25323,17 +25325,17 @@ function ub({ kind: e, entityId: t, name: n, onPicked: r }) {
})
})] });
}
-function db({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
- let a = (0, S.useRef)(null), [o, s] = (0, S.useState)(""), [c, l] = (0, S.useState)(""), u = tb(e, t), d = (0, S.useRef)(!1), f = lt({
+function fb({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
+ let a = (0, C.useRef)(null), [o, s] = (0, C.useState)(""), [c, l] = (0, C.useState)(""), u = nb(e, t), d = (0, C.useRef)(!1), f = ut({
queryKey: u,
- queryFn: ({ signal: n }) => ib(e, t, n),
+ queryFn: ({ signal: n }) => ab(e, t, n),
retryOnMount: !0
});
- (0, S.useEffect)(() => () => {
- d.current && dh.removeQueries({ queryKey: tb(e, t) });
+ (0, C.useEffect)(() => () => {
+ d.current && fh.removeQueries({ queryKey: nb(e, t) });
}, [e, t]);
- let p = ut({
- mutationFn: (n) => ab(e, t, n),
+ let p = dt({
+ mutationFn: (n) => ob(e, t, n),
onSuccess: () => {
d.current = !0, i(), r();
}
@@ -25342,83 +25344,83 @@ function db({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
let t = e.currentTarget, n = t.files?.[0];
t.value = "", l(""), n && p.mutate({ file: n });
}
- let h = f.data, g = h?.choices ?? [], _ = c || (p.error ? J(p.error) : "") || (f.error ? J(f.error) : "");
- return /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [
- /* @__PURE__ */ (0, C.jsxs)("div", {
+ let h = f.data, g = h?.choices ?? [], _ = c || (p.error ? q(p.error) : "") || (f.error ? q(f.error) : "");
+ return /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [
+ /* @__PURE__ */ (0, w.jsxs)("div", {
className: "flex shrink-0 items-start gap-4 p-5",
children: [
- /* @__PURE__ */ (0, C.jsx)("span", {
+ /* @__PURE__ */ (0, w.jsx)("span", {
"aria-hidden": !0,
className: "flex size-14 shrink-0 items-center justify-center rounded-2xl border border-separator-border bg-background-secondary-default text-foreground-icon-secondary",
- children: /* @__PURE__ */ (0, C.jsx)(op, { className: "size-6" })
+ children: /* @__PURE__ */ (0, w.jsx)(lp, { className: "size-6" })
}),
- /* @__PURE__ */ (0, C.jsxs)("div", {
+ /* @__PURE__ */ (0, w.jsxs)("div", {
className: "flex min-w-0 flex-1 flex-col gap-2",
children: [
- /* @__PURE__ */ (0, C.jsxs)("div", {
+ /* @__PURE__ */ (0, w.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, C.jsx)(ag, {
+ children: [/* @__PURE__ */ (0, w.jsx)(og, {
slot: "title",
className: "text-title-3-semibold text-text-primary",
children: "更换头像"
- }), g.length ? /* @__PURE__ */ (0, C.jsxs)(Km, {
+ }), g.length ? /* @__PURE__ */ (0, w.jsxs)(Jm, {
color: "soft",
children: [g.length, " 张可选"]
}) : null]
}),
- /* @__PURE__ */ (0, C.jsx)("p", {
+ /* @__PURE__ */ (0, w.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: ob(n, h)
+ children: sb(n, h)
}),
- sb(h) ? /* @__PURE__ */ (0, C.jsx)(ch, {
+ cb(h) ? /* @__PURE__ */ (0, w.jsx)(J, {
tone: "neutral",
children: "图库索引还没取过,只能从用过的图里选。"
}) : null,
- _ ? /* @__PURE__ */ (0, C.jsx)(ch, {
+ _ ? /* @__PURE__ */ (0, w.jsx)(J, {
tone: "error",
children: _
}) : null
]
}),
- /* @__PURE__ */ (0, C.jsx)(Uy, {
- icon: Ff,
+ /* @__PURE__ */ (0, w.jsx)(Wy, {
+ icon: Rf,
size: "small",
"aria-label": "关闭",
onClick: i
})
]
}),
- /* @__PURE__ */ (0, C.jsx)("div", {
+ /* @__PURE__ */ (0, w.jsx)("div", {
className: "flex min-h-0 flex-1 flex-col overflow-y-auto border-t border-separator-border px-5 py-4",
- children: /* @__PURE__ */ (0, C.jsx)("div", {
+ children: /* @__PURE__ */ (0, w.jsx)("div", {
role: "listbox",
"aria-label": "候选头像",
className: "inline-grid grid-cols-3 content-start gap-2 sm:grid-cols-4",
- children: g.map((n) => /* @__PURE__ */ (0, C.jsxs)("button", {
+ children: g.map((n) => /* @__PURE__ */ (0, w.jsxs)("button", {
type: "button",
role: "option",
"data-avatar-choice": !0,
"aria-selected": n.current,
- title: lb(n),
+ title: ub(n),
...Z(p.isPending),
onClick: () => {
p.isPending || p.mutate({ ref: n.ref });
},
className: "relative flex cursor-pointer flex-col gap-1 overflow-hidden rounded-2lg border border-separator-border bg-background-secondary-default pb-1 text-center text-caption-1-regular text-text-secondary outline-none hover:border-border-button-hover hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-selected:border-border-focus-ring aria-selected:bg-background-tertiary-default aria-selected:text-text-primary aria-disabled:cursor-progress aria-disabled:opacity-60",
children: [
- /* @__PURE__ */ (0, C.jsx)("img", {
+ /* @__PURE__ */ (0, w.jsx)("img", {
loading: "lazy",
alt: "",
- src: rb(e, t, n.ref),
+ src: ib(e, t, n.ref),
className: "block w-full aspect-avatar-choice object-cover"
}),
- /* @__PURE__ */ (0, C.jsx)("span", {
+ /* @__PURE__ */ (0, w.jsx)("span", {
className: "truncate px-1",
children: n.label
}),
- n.current ? /* @__PURE__ */ (0, C.jsx)("span", {
+ n.current ? /* @__PURE__ */ (0, w.jsx)("span", {
className: "absolute top-1 left-1",
- children: /* @__PURE__ */ (0, C.jsx)(Km, {
+ children: /* @__PURE__ */ (0, w.jsx)(Jm, {
variant: "caption",
color: "gray",
children: "在用"
@@ -25428,16 +25430,16 @@ function db({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
}, n.ref))
})
}),
- /* @__PURE__ */ (0, C.jsxs)("div", {
+ /* @__PURE__ */ (0, w.jsxs)("div", {
className: "flex shrink-0 flex-wrap items-center gap-3 border-t border-separator-border p-5",
children: [
- /* @__PURE__ */ (0, C.jsx)(X, {
+ /* @__PURE__ */ (0, w.jsx)(X, {
variant: "secondary",
onClick: () => a.current?.click(),
...Z(p.isPending),
children: "从本机选图片"
}),
- /* @__PURE__ */ (0, C.jsx)("input", {
+ /* @__PURE__ */ (0, w.jsx)("input", {
ref: a,
type: "file",
accept: "image/png,image/jpeg",
@@ -25446,18 +25448,18 @@ function db({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
className: "hidden",
onChange: m
}),
- /* @__PURE__ */ (0, C.jsxs)("div", {
+ /* @__PURE__ */ (0, w.jsxs)("div", {
className: "flex min-w-0 flex-1 items-center gap-2",
- children: [/* @__PURE__ */ (0, C.jsx)("div", {
+ children: [/* @__PURE__ */ (0, w.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, C.jsx)(Xy, {
+ children: /* @__PURE__ */ (0, w.jsx)(Zy, {
type: "url",
"aria-label": "图片地址",
placeholder: "https://…",
value: o,
onChange: s
})
- }), /* @__PURE__ */ (0, C.jsx)(X, {
+ }), /* @__PURE__ */ (0, w.jsx)(X, {
disabled: !o.trim(),
...Z(p.isPending),
onClick: () => {
@@ -25470,7 +25472,7 @@ function db({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
})
] });
}
-function fb(e, t, n = 1) {
+function pb(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;
@@ -25490,15 +25492,15 @@ function fb(e, t, n = 1) {
t
];
}
-function pb(e, t) {
+function mb(e, t) {
return Math.max(1, Math.ceil(e / t));
}
-function mb(e, t) {
+function hb(e, t) {
return Math.min(Math.max(1, Math.floor(e) || 1), t);
}
//#endregion
//#region src/react/time.ts
-function hb(e) {
+function gb(e) {
if (!e) return "";
let t = /[Zz]|[+-]\d\d:?\d\d$/.test(e) ? e : `${e}Z`, n = new Date(t);
if (Number.isNaN(n.getTime())) return String(e).replace("T", " ").slice(0, 16);
@@ -25507,16 +25509,16 @@ function hb(e) {
}
//#endregion
//#region src/react/follow-manage/follow-manage.ts
-var gb = "/api/follow", _b = "/api/follow/credentials", vb = "/api/follow/check", yb = "/api/follow/source", bb = "/api/follow/resolve", xb = "/api/follow/suggest", Sb = "/api/follow/author-alias", Cb = "/api/follow/credential", wb = "/api/follow/status", Tb = ["follow-manage"], Eb = ["follow-manage", "credentials"], Db = ["follow-manage", "check"], Ob = ["follow-manage", "resolve"], kb = (e) => [
+var _b = "/api/follow", vb = "/api/follow/credentials", yb = "/api/follow/check", bb = "/api/follow/source", xb = "/api/follow/resolve", Sb = "/api/follow/suggest", Cb = "/api/follow/author-alias", wb = "/api/follow/credential", Tb = "/api/follow/status", Eb = ["follow-manage"], Db = ["follow-manage", "credentials"], Ob = ["follow-manage", "check"], kb = ["follow-manage", "resolve"], Ab = (e) => [
"follow-manage",
"suggest",
e
-], Ab = [["default", "默认视图"], ["table", "表格视图"]], jb = [
+], jb = [["default", "默认视图"], ["table", "表格视图"]], Mb = [
10,
20,
50,
100
-], Mb = [
+], Nb = [
["checked", "检查时间"],
["added", "添加时间"],
["name", "创作者名称"],
@@ -25524,7 +25526,7 @@ var gb = "/api/follow", _b = "/api/follow/credentials", vb = "/api/follow/check"
["source", "来源名称"],
["provider", "站点"],
["status", "状态"]
-], Nb = "checked", Pb = {
+], Pb = "checked", Fb = {
checked: "desc",
added: "desc",
name: "asc",
@@ -25532,13 +25534,13 @@ var gb = "/api/follow", _b = "/api/follow/credentials", vb = "/api/follow/check"
source: "asc",
provider: "asc",
status: "asc"
-}, Fb = Object.fromEntries(Mb), Ib = {
+}, Ib = Object.fromEntries(Nb), Lb = {
author: "name",
source: "source",
provider: "provider",
status: "status",
checked: "checked"
-}, Lb = (e) => Mb.some(([t]) => t === e), Rb = (e) => Ab.some(([t]) => t === e), zb = (e) => jb.includes(Number(e)) ? Number(e) : 20, Bb = {
+}, Rb = (e) => Nb.some(([t]) => t === e), zb = (e) => jb.some(([t]) => t === e), Bb = (e) => Mb.includes(Number(e)) ? Number(e) : 20, Vb = {
checked: ["从近到远", "从远到近"],
added: ["从近到远", "从远到近"],
name: ["倒序", "正序"],
@@ -25546,25 +25548,25 @@ var gb = "/api/follow", _b = "/api/follow/credentials", vb = "/api/follow/check"
source: ["倒序", "正序"],
provider: ["倒序", "正序"],
status: ["倒序", "正序"]
-}, Vb = (e, t) => `按${Fb[e]}${Bb[e][t === "asc" ? 0 : 1]}排序`;
-function Hb(e) {
+}, Hb = (e, t) => `按${Ib[e]}${Vb[e][t === "asc" ? 0 : 1]}排序`;
+function Ub(e) {
let t = e.last_status;
return t === "error" || t === "unauthorized" ? 0 : e.enabled ? t === "ok" ? 3 : 2 : 1;
}
-function Ub(e) {
+function Wb(e) {
return e.history_exhausted ? "没有更多" : e.enabled ? e.last_status === "ok" ? "正常" : e.last_status === "error" || e.last_status === "unauthorized" ? "检查失败" : "未检查" : "已暂停";
}
-var Wb = (e) => e.last_status === "error" || e.last_status === "unauthorized", Gb = (e, t) => String(e.label || "").localeCompare(String(t.label || ""), "zh-CN", { numeric: !0 }), Kb = {
- source: Gb,
- provider: (e, t) => String(e.provider_label || "").localeCompare(String(t.provider_label || ""), "zh-CN") || Gb(e, t),
- status: (e, t) => Hb(e) - Hb(t) || Gb(e, t)
-}, qb = (e) => Date.parse(e || "") || 0, Jb = (e) => String(e || "").replace(/\s*[·|]\s*[A-Za-z0-9_-]+\s*$/, "").replace(/\s+collections?\s*$/i, "").trim();
-function Yb(e, t = []) {
+var Gb = (e) => e.last_status === "error" || e.last_status === "unauthorized", Kb = (e, t) => String(e.label || "").localeCompare(String(t.label || ""), "zh-CN", { numeric: !0 }), qb = {
+ source: Kb,
+ provider: (e, t) => String(e.provider_label || "").localeCompare(String(t.provider_label || ""), "zh-CN") || Kb(e, t),
+ status: (e, t) => Ub(e) - Ub(t) || Kb(e, t)
+}, Jb = (e) => Date.parse(e || "") || 0, Yb = (e) => String(e || "").replace(/\s*[·|]\s*[A-Za-z0-9_-]+\s*$/, "").replace(/\s+collections?\s*$/i, "").trim();
+function Xb(e, t = []) {
if (!e.length) return "";
- let n = (e) => String(e.author_name || "").trim() || Jb(e.label), r = e.find((e) => e.entity_name);
+ let n = (e) => String(e.author_name || "").trim() || Yb(e.label), r = e.find((e) => e.entity_name);
if (r) return r.entity_name;
let i = t.find((t) => `name:${t.canonical_key}` === e[0]?.author_key);
- if (i) return Jb(i.canonical_name);
+ if (i) return Yb(i.canonical_name);
let a = e.find((e) => e.official_avatar_url);
if (a && n(a)) return n(a);
let o = e.map(n).filter(Boolean);
@@ -25572,18 +25574,18 @@ function Yb(e, t = []) {
let s = (e) => (e.match(/[A-Z]/g) || []).length;
return o.reduce((e, t) => s(t) > s(e) ? t : e, o[0]);
}
-function Xb(e) {
+function Zb(e) {
let t = e.trim().match(/[A-Za-z0-9]/);
return (t ? t[0] : Array.from(e.trim())[0] || "?").toUpperCase();
}
-function Zb(e) {
+function Qb(e) {
let t = e.find((e) => e.official_avatar_url), n = e.find((e) => e.avatar_url), r = t?.official_avatar_url || n?.avatar_url || "";
return {
src: r,
fallback: t && n && n.avatar_url !== r && n.avatar_url || ""
};
}
-function Qb(e) {
+function $b(e) {
let t = [], n = /* @__PURE__ */ new Map();
for (let r of e) {
let e = r.author_key || `source:${r.id}`;
@@ -25591,32 +25593,32 @@ function Qb(e) {
}
return t.map((e) => n.get(e));
}
-function $b(e, t, n, r = []) {
- let i = Qb(e), a = n === Pb[t] ? 1 : -1, o = (e) => Yb(e, r), s = (e, t) => o(e).localeCompare(o(t), "zh-CN", { numeric: !0 }), c = Kb[t];
+function ex(e, t, n, r = []) {
+ let i = $b(e), a = n === Fb[t] ? 1 : -1, o = (e) => Xb(e, r), s = (e, t) => o(e).localeCompare(o(t), "zh-CN", { numeric: !0 }), c = qb[t];
if (c) {
for (let e of i) e.sort((e, t) => a * c(e, t));
return i.sort((e, t) => a * c(e[0], t[0]) || s(e, t));
}
- let l = (e) => Math.max(...e.map((e) => qb(e.last_checked_at))), u = (e) => Math.max(...e.map((e) => qb(e.created_at)));
+ let l = (e) => Math.max(...e.map((e) => Jb(e.last_checked_at))), u = (e) => Math.max(...e.map((e) => Jb(e.created_at)));
return i.sort((e, n) => t === "name" ? a * s(e, n) : t === "sources" ? a * (n.length - e.length) || s(e, n) : t === "added" ? a * (u(n) - u(e)) || s(e, n) : a * (l(n) - l(e)) || s(e, n));
}
-function ex(e, t, n, r = []) {
+function tx(e, t, n, r = []) {
let i = e.flatMap((e) => {
- let t = Yb(e, r);
+ let t = Xb(e, r);
return e.map((n) => ({
source: n,
group: e,
author: t
}));
- }), a = Kb[t];
+ }), a = qb[t];
if (a) {
- let e = n === Pb[t] ? 1 : -1;
+ let e = n === Fb[t] ? 1 : -1;
i.sort((t, n) => e * a(t.source, n.source));
}
return i;
}
-function tx(e, t, n) {
- let r = pb(e, t), i = mb(n, r), a = (i - 1) * t;
+function nx(e, t, n) {
+ let r = mb(e, t), i = hb(n, r), a = (i - 1) * t;
return {
page: i,
pages: r,
@@ -25625,67 +25627,67 @@ function tx(e, t, n) {
end: Math.min(a + t, e)
};
}
-function nx(e, t) {
+function rx(e, t) {
let n = new Set(t.map((e) => e.id));
return new Set([...e].filter((e) => n.has(e)));
}
-function rx(e, t) {
+function ix(e, t) {
let n = t.filter((t) => e.has(t)).length;
return {
all: t.length > 0 && n === t.length,
some: n > 0 && n < t.length
};
}
-function ix(e, t, n) {
+function ax(e, t, n) {
let r = new Set(e);
for (let e of t) n ? r.add(e) : r.delete(e);
return r;
}
-var ax = (e) => Ym(`${gb}?limit=1`, e), ox = (e) => Ym(_b, e), sx = (e) => Ym(vb, e), cx = (e) => Ym(bb, e), lx = (e, t) => Ym(`${xb}?q=${encodeURIComponent(e)}`, t), ux = (e) => Xm(vb, {
+var ox = (e) => Zm(`${_b}?limit=1`, e), sx = (e) => Zm(vb, e), cx = (e) => Zm(yb, e), lx = (e) => Zm(xb, e), ux = (e, t) => Zm(`${Sb}?q=${encodeURIComponent(e)}`, t), dx = (e) => Qm(yb, {
...e?.length ? { sources: e } : {},
background: !0
-}), dx = (e) => Xm(bb, {
+}), fx = (e) => Qm(xb, {
lines: e,
background: !0
-}), fx = (e, t) => Xm(yb, {
+}), px = (e, t) => Qm(bb, {
action: "enabled",
id: e,
enabled: t
-}), px = (e) => Xm(yb, {
+}), mx = (e) => Qm(bb, {
action: "remove",
id: e
-}), mx = (e) => Xm(yb, {
+}), hx = (e) => Qm(bb, {
action: "add",
url: e.url,
label: e.label,
author: e.author || "",
aliases: e.aliases || [],
defer_check: !0
-}), hx = (e, t) => Xm(Sb, {
+}), gx = (e, t) => Qm(Cb, {
action: "add",
canonical: e,
alias: t
-}), gx = (e) => Xm(Sb, {
+}), _x = (e) => Qm(Cb, {
action: "remove",
alias: e
-}), _x = (e, t) => Xm(Cb, {
+}), vx = (e, t) => Qm(wb, {
provider: e,
values: t
-}), vx = (e, t) => Xm(wb, {
+}), yx = (e, t) => Qm(Tb, {
item: e,
to: t
-}), yx = () => Ym(`${gb}?status=new&limit=1000`);
-async function bx(e) {
- await Promise.all([dh.fetchQuery({
- queryKey: Tb,
- queryFn: () => ax(e)
- }), dh.fetchQuery({
+}), bx = () => Zm(`${_b}?status=new&limit=1000`);
+async function xx(e) {
+ await Promise.all([fh.fetchQuery({
queryKey: Eb,
queryFn: () => ox(e)
+ }), fh.fetchQuery({
+ queryKey: Db,
+ queryFn: () => sx(e)
})]);
}
-function xx(e, t) {
- dh.setQueryData(Tb, (n) => n && {
+function Sx(e, t) {
+ fh.setQueryData(Eb, (n) => n && {
...n,
sources: n.sources.map((n) => n.id === e ? {
...n,
@@ -25693,24 +25695,24 @@ function xx(e, t) {
} : n)
});
}
-function Sx(e) {
+function Cx(e) {
let t = new Set(e);
- dh.setQueryData(Tb, (e) => e && {
+ fh.setQueryData(Eb, (e) => e && {
...e,
sources: e.sources.filter((e) => !t.has(e.id))
});
}
-var Cx = () => dh.invalidateQueries({
- queryKey: Tb,
+var wx = () => fh.invalidateQueries({
+ queryKey: Eb,
exact: !0
-}), wx = 2e3, Tx = (e) => e?.status === "running" && wx;
-function Ex(e) {
+}), Tx = 2e3, Ex = (e) => e?.status === "running" && Tx;
+function Dx(e) {
let t = e.results || [], n = (e) => t.reduce((t, n) => t + (e(n) || 0), 0), r = n((e) => e.added), i = n((e) => e.updated), a = n((e) => e.skipped_compilations), o = n((e) => e.skipped) - a, s = n((e) => e.history_skipped), c = n((e) => e.probed), l = t.filter((e) => e.ok && !e.added && !e.updated).length, u = t.filter((e) => !e.ok).length, d = [];
r && d.push(`新增 ${r} 条`), i && d.push(`更新 ${i} 条`), o && d.push(`跳过 ${o} 条无资源`), a && d.push(`排除 ${a} 个超大合集`), s && d.push(`跳过 ${s} 条超出首次采集范围的历史内容`), c && d.push(`回查 ${c} 条`), l && d.push(`${l} 个来源没有更新`), d.length || d.push("没有任何更新");
let f = t.filter((e) => e.exhausted).length;
return f && d.push(`${f} 个没有更多内容`), u && d.push(`${u} 个失败`), `检查了 ${t.length} 个来源:${d.join(" · ")}`;
}
-var Dx = (e) => (e?.results || []).filter((e) => !e.ok), Ox = (e) => (e?.results || []).find((e) => e.evidence_error)?.evidence_error || "", kx = (e) => e.last_checked_at ? hb(e.last_checked_at) : "未检查", Ax = /* @__PURE__ */ new Set([
+var Ox = (e) => (e?.results || []).filter((e) => !e.ok), kx = (e) => (e?.results || []).find((e) => e.evidence_error)?.evidence_error || "", Ax = (e) => e.last_checked_at ? gb(e.last_checked_at) : "未检查", jx = /* @__PURE__ */ new Set([
"fanbox",
"patreon",
"subscribestar",
@@ -25723,50 +25725,50 @@ var Dx = (e) => (e?.results || []).filter((e) => !e.ok), Ox = (e) => (e?.results
"gofile",
"f95zone",
"simpcity"
-]), jx = (e) => Ax.has(e) ? `/source-icon?provider=${encodeURIComponent(e)}` : "", Mx = {
+]), Mx = (e) => jx.has(e) ? `/source-icon?provider=${encodeURIComponent(e)}` : "", Nx = {
required: "需要",
optional: "可选",
none: "不需要",
blocked: "接不进来"
-}, Nx = (e) => !!e.present && !e.missing.length, Px = "inline-flex w-max max-w-full items-center gap-0.5 overflow-x-auto overscroll-x-contain rounded-2lg bg-background-tertiary-default p-1", Fx = "flex min-h-7 flex-none cursor-pointer items-center gap-1.5 rounded-md px-2.5 py-1 text-body-medium whitespace-nowrap text-text-secondary outline-none transition-colors hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", Ix = [
+}, Px = (e) => !!e.present && !e.missing.length, Fx = "inline-flex w-max max-w-full items-center gap-0.5 overflow-x-auto overscroll-x-contain rounded-2lg bg-background-tertiary-default p-1", Ix = "flex min-h-7 flex-none cursor-pointer items-center gap-1.5 rounded-md px-2.5 py-1 text-body-medium whitespace-nowrap text-text-secondary outline-none transition-colors hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", Lx = [
"text-chart-6",
"text-chart-5",
"text-chart-7",
"text-chart-8"
-], Lx = [
+], Rx = [
"bg-chart-6/10",
"bg-chart-5/10",
"bg-chart-7/10",
"bg-chart-8/10"
];
-function Rx(e = {}) {
- return `${ih({
+function zx(e = {}) {
+ return `${oh({
...e,
padding: "none"
})} flex flex-col overflow-hidden pt-4 text-left`;
}
-var zx = "inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4";
-function Bx({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {
- return /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [
- /* @__PURE__ */ (0, C.jsxs)("span", {
+var Bx = "inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4";
+function Vx({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {
+ return /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [
+ /* @__PURE__ */ (0, w.jsxs)("span", {
className: "flex min-w-0 items-center gap-2 px-4 text-body-regular text-text-secondary max-sm:gap-1.5 max-sm:px-3",
- children: [t ? /* @__PURE__ */ (0, C.jsx)("i", {
+ children: [t ? /* @__PURE__ */ (0, w.jsx)("i", {
"aria-hidden": !0,
- className: `flex size-7 shrink-0 items-center justify-center rounded-lg max-sm:size-6 ${Ix[n % 4]} ${Lx[n % 4]}`,
- children: /* @__PURE__ */ (0, C.jsx)(t, {
+ className: `flex size-7 shrink-0 items-center justify-center rounded-lg max-sm:size-6 ${Lx[n % 4]} ${Rx[n % 4]}`,
+ children: /* @__PURE__ */ (0, w.jsx)(t, {
"aria-hidden": !0,
className: "size-4"
})
- }) : null, /* @__PURE__ */ (0, C.jsx)("span", {
+ }) : null, /* @__PURE__ */ (0, w.jsx)("span", {
className: "min-w-0 truncate",
children: e
})]
}),
- /* @__PURE__ */ (0, C.jsx)("b", {
+ /* @__PURE__ */ (0, w.jsx)("b", {
className: "px-4 pt-3 pb-4 text-title-1-medium tabular-nums text-text-primary max-sm:px-3 max-sm:pb-3",
children: r
}),
- /* @__PURE__ */ (0, C.jsx)("small", {
+ /* @__PURE__ */ (0, w.jsx)("small", {
className: "mt-auto block min-h-9.5 bg-card-footer px-4 py-2.5 text-caption-1-regular text-text-secondary max-sm:px-3 max-sm:py-2",
children: i
})
@@ -25774,7 +25776,7 @@ function Bx({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {
}
//#endregion
//#region src/react/boardui/components/base/checkbox/checkbox-glyph.tsx
-var Vx = {
+var Hx = {
md: {
box: "size-4",
glyph: "size-4",
@@ -25788,21 +25790,21 @@ var Vx = {
gap: "gap-1.5"
}
};
-function Hx({ state: e, size: t = "md" }) {
- let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = Vx[t], c = n || r, l = o && !a;
- return /* @__PURE__ */ (0, C.jsx)("span", {
+function Ux({ state: e, size: t = "md" }) {
+ let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = Hx[t], c = n || r, l = o && !a;
+ return /* @__PURE__ */ (0, w.jsx)("span", {
"aria-hidden": !0,
- className: Um("flex shrink-0 items-center justify-center rounded-sm", "transition-[background-color,border-color,box-shadow] duration-150 ease", s.box, c ? Um("bg-linear-to-b shadow-checkbox-selected", l ? "from-accent-400 to-accent-500" : "from-accent-500 to-accent-600") : Um("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, C.jsx)("svg", {
+ className: K("flex shrink-0 items-center justify-center rounded-sm", "transition-[background-color,border-color,box-shadow] duration-150 ease", s.box, c ? K("bg-linear-to-b shadow-checkbox-selected", l ? "from-accent-400 to-accent-500" : "from-accent-500 to-accent-600") : K("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, w.jsx)("svg", {
viewBox: "0 0 16 16",
fill: "none",
className: s.glyph,
- children: r ? /* @__PURE__ */ (0, C.jsx)("path", {
+ children: r ? /* @__PURE__ */ (0, w.jsx)("path", {
d: "M4.5 8H8H11.5",
stroke: "white",
strokeWidth: "2",
strokeLinecap: "round"
- }) : n ? /* @__PURE__ */ (0, C.jsx)("path", {
+ }) : n ? /* @__PURE__ */ (0, w.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",
@@ -25816,24 +25818,24 @@ function Hx({ state: e, size: t = "md" }) {
}
//#endregion
//#region src/react/boardui/components/base/checkbox/checkbox.tsx
-function Ux({ className: e, children: t, size: n = "md", ref: r, ...i }) {
- let a = Vx[n];
- return /* @__PURE__ */ (0, C.jsx)(hg, {
+function Wx({ className: e, children: t, size: n = "md", ref: r, ...i }) {
+ let a = Hx[n];
+ return /* @__PURE__ */ (0, w.jsx)(gg, {
ref: r,
...i,
- className: (t) => Um("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, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(Hx, {
+ className: (t) => K("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, w.jsxs)(w.Fragment, { children: [/* @__PURE__ */ (0, w.jsx)(Ux, {
state: e,
size: n
- }), t != null && /* @__PURE__ */ (0, C.jsx)("span", {
- className: Um(a.label, "text-text-primary"),
+ }), t != null && /* @__PURE__ */ (0, w.jsx)("span", {
+ className: K(a.label, "text-text-primary"),
children: t
})] })
});
}
//#endregion
//#region src/react/boardui/components/base/dropdown/menu-styles.ts
-var Wx = [
+var Gx = [
"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",
@@ -25841,30 +25843,30 @@ var Wx = [
"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(" "), Gx = "w-[266px]", Kx = "flex w-full flex-col gap-1 outline-none", qx = ["flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left", "text-text-primary outline-none transition-colors"].join(" "), Jx = "hover:bg-dropdown-item-hover-background focus-visible:bg-dropdown-item-hover-background";
+].join(" "), Kx = "w-[266px]", qx = "flex w-full flex-col gap-1 outline-none", Jx = ["flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left", "text-text-primary outline-none transition-colors"].join(" "), Yx = "hover:bg-dropdown-item-hover-background focus-visible:bg-dropdown-item-hover-background";
//#endregion
//#region src/react/boardui/components/application/settings/settings-rows.tsx
-function Yx({ className: e, children: t }) {
- return /* @__PURE__ */ (0, C.jsx)("div", {
- className: Um("flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3", e),
+function Xx({ className: e, children: t }) {
+ return /* @__PURE__ */ (0, w.jsx)("div", {
+ className: K("flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3", e),
children: t
});
}
-function Xx({ className: e, children: t }) {
- return /* @__PURE__ */ (0, C.jsx)("p", {
- className: Um("w-full px-3 text-body-2-medium text-text-secondary", e),
+function Zx({ className: e, children: t }) {
+ return /* @__PURE__ */ (0, w.jsx)("p", {
+ className: K("w-full px-3 text-body-2-medium text-text-secondary", e),
children: t
});
}
-function Zx({ label: e, description: t, children: n }) {
- return /* @__PURE__ */ (0, C.jsxs)("div", {
- className: Um("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, C.jsxs)("div", {
+function Qx({ label: e, description: t, children: n }) {
+ return /* @__PURE__ */ (0, w.jsxs)("div", {
+ className: K("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, w.jsxs)("div", {
className: "flex min-w-0 flex-col",
- children: [/* @__PURE__ */ (0, C.jsx)("p", {
+ children: [/* @__PURE__ */ (0, w.jsx)("p", {
className: "text-body-regular text-text-primary",
children: e
- }), t && /* @__PURE__ */ (0, C.jsx)("p", {
+ }), t && /* @__PURE__ */ (0, w.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: t
})]
@@ -25873,7 +25875,7 @@ function Zx({ label: e, description: t, children: n }) {
}
//#endregion
//#region src/react/boardui/components/base/buttons/link-button.tsx
-var Qx = Wm({
+var $x = Km({
base: [
"inline-flex items-center justify-center gap-1 whitespace-nowrap",
"font-sans select-none cursor-pointer rounded-sm",
@@ -25897,21 +25899,21 @@ var Qx = Wm({
secondary: ["text-text-secondary active:text-text-primary", "disabled:text-text-tertiary aria-disabled:text-text-tertiary"].join(" ")
}
});
-function $x({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {
- let c = Um(Qx.base, Qx.size[t], Qx.variant[e], a), l = /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [
- n ? /* @__PURE__ */ (0, C.jsx)(n, {
- className: Qx.icon[t],
+function eS({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {
+ let c = K($x.base, $x.size[t], $x.variant[e], a), l = /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [
+ n ? /* @__PURE__ */ (0, w.jsx)(n, {
+ className: $x.icon[t],
"aria-hidden": !0
}) : null,
- i != null && /* @__PURE__ */ (0, C.jsx)("span", { children: i }),
- r ? /* @__PURE__ */ (0, C.jsx)(r, {
- className: Qx.icon[t],
+ i != null && /* @__PURE__ */ (0, w.jsx)("span", { children: i }),
+ r ? /* @__PURE__ */ (0, w.jsx)(r, {
+ className: $x.icon[t],
"aria-hidden": !0
}) : null
] });
if (s.href !== void 0) {
let { ref: e, href: t, ...n } = s;
- return /* @__PURE__ */ (0, C.jsx)("a", {
+ return /* @__PURE__ */ (0, w.jsx)("a", {
ref: e,
href: o ? void 0 : t,
"aria-disabled": o || void 0,
@@ -25921,7 +25923,7 @@ function $x({ variant: e = "primary", size: t = "medium", leadingIcon: n, traili
});
}
let { ref: u, type: d = "button", ...f } = s;
- return /* @__PURE__ */ (0, C.jsx)("button", {
+ return /* @__PURE__ */ (0, w.jsx)("button", {
ref: u,
type: d,
disabled: o,
@@ -25932,151 +25934,151 @@ function $x({ variant: e = "primary", size: t = "medium", leadingIcon: n, traili
}
//#endregion
//#region src/react/settings/section.tsx
-function eS({ title: e, id: t, aside: n, onSubmit: r, children: i }) {
- let a = /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [n ? /* @__PURE__ */ (0, C.jsxs)("div", {
+function tS({ title: e, id: t, aside: n, onSubmit: r, children: i }) {
+ let a = /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [n ? /* @__PURE__ */ (0, w.jsxs)("div", {
className: "flex w-full flex-wrap items-center justify-between gap-2",
- children: [/* @__PURE__ */ (0, C.jsx)("div", {
+ children: [/* @__PURE__ */ (0, w.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, C.jsx)(Xx, { children: e })
+ children: /* @__PURE__ */ (0, w.jsx)(Zx, { children: e })
}), n]
- }) : /* @__PURE__ */ (0, C.jsx)(Xx, { children: e }), /* @__PURE__ */ (0, C.jsx)(Yx, { children: i })] });
- return r ? /* @__PURE__ */ (0, C.jsx)("form", {
+ }) : /* @__PURE__ */ (0, w.jsx)(Zx, { children: e }), /* @__PURE__ */ (0, w.jsx)(Xx, { children: i })] });
+ return r ? /* @__PURE__ */ (0, w.jsx)("form", {
id: t,
"aria-label": e,
noValidate: !0,
onSubmit: r,
className: "flex w-full flex-col gap-2",
children: a
- }) : /* @__PURE__ */ (0, C.jsx)("section", {
+ }) : /* @__PURE__ */ (0, w.jsx)("section", {
id: t,
"aria-label": e,
className: "flex w-full flex-col gap-2",
children: a
});
}
-function tS({ children: e }) {
- return /* @__PURE__ */ (0, C.jsx)("div", {
+function nS({ children: e }) {
+ return /* @__PURE__ */ (0, w.jsx)("div", {
className: "flex flex-col",
children: e
});
}
-function nS({ divided: e = !1, children: t }) {
- return e ? /* @__PURE__ */ (0, C.jsx)("div", {
+function rS({ divided: e = !1, children: t }) {
+ return e ? /* @__PURE__ */ (0, w.jsx)("div", {
className: "flex flex-col gap-4 border-t border-separator-border py-4 pr-3",
children: t
- }) : /* @__PURE__ */ (0, C.jsx)("div", {
+ }) : /* @__PURE__ */ (0, w.jsx)("div", {
className: "flex flex-col gap-4 py-4 pr-3",
children: t
});
}
-function rS({ status: e, children: t }) {
- return /* @__PURE__ */ (0, C.jsxs)("div", {
+function iS({ status: e, children: t }) {
+ return /* @__PURE__ */ (0, w.jsxs)("div", {
className: "-ml-3 flex flex-wrap items-center justify-end gap-3 rounded-b-2xl border-t border-separator-border bg-card-footer px-3 py-3",
- children: [e ? /* @__PURE__ */ (0, C.jsx)("div", {
+ children: [e ? /* @__PURE__ */ (0, w.jsx)("div", {
className: "mr-auto min-w-0 text-body-2-regular text-text-secondary",
children: e
}) : null, t]
});
}
-function iS({ role: e, children: t }) {
- return /* @__PURE__ */ (0, C.jsx)("p", {
+function aS({ role: e, children: t }) {
+ return /* @__PURE__ */ (0, w.jsx)("p", {
role: e,
className: "text-body-2-regular text-text-secondary",
children: t
});
}
-function aS({ children: e }) {
- return /* @__PURE__ */ (0, C.jsx)("p", {
+function oS({ children: e }) {
+ return /* @__PURE__ */ (0, w.jsx)("p", {
role: "alert",
className: "text-body-2-regular text-text-error-primary",
children: e
});
}
-function oS({ children: e }) {
- return /* @__PURE__ */ (0, C.jsx)("p", {
+function sS({ children: e }) {
+ return /* @__PURE__ */ (0, w.jsx)("p", {
className: "text-body-medium text-text-primary",
children: e
});
}
-function sS({ href: e, children: t }) {
- return /* @__PURE__ */ (0, C.jsx)($x, {
+function cS({ href: e, children: t }) {
+ return /* @__PURE__ */ (0, w.jsx)(eS, {
href: e,
target: "_blank",
rel: "noopener noreferrer",
size: "small",
- trailingIcon: Bf,
+ trailingIcon: Uf,
children: t
});
}
-function cS({ children: e }) {
- return /* @__PURE__ */ (0, C.jsx)("dl", {
+function lS({ children: e }) {
+ return /* @__PURE__ */ (0, w.jsx)("dl", {
className: "flex flex-col",
children: e
});
}
-function lS({ term: e, children: t }) {
- return /* @__PURE__ */ (0, C.jsxs)("div", {
+function uS({ term: e, children: t }) {
+ return /* @__PURE__ */ (0, w.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, C.jsx)("dt", {
+ children: [/* @__PURE__ */ (0, w.jsx)("dt", {
className: "flex shrink-0 items-center gap-2 text-body-regular text-text-secondary",
children: e
- }), /* @__PURE__ */ (0, C.jsx)("dd", {
+ }), /* @__PURE__ */ (0, w.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 uS({ summary: e, defaultOpen: t = !1, children: n }) {
- let r = (0, S.useId)(), i = (0, S.useRef)(null), a = (0, S.useRef)(null), o = (0, S.useRef)(!1), [s, l] = (0, S.useState)(t);
- return /* @__PURE__ */ (0, C.jsxs)("details", {
+function dS({ summary: e, defaultOpen: t = !1, children: n }) {
+ let r = (0, C.useId)(), i = (0, C.useRef)(null), a = (0, C.useRef)(null), o = (0, C.useRef)(!1), [s, c] = (0, C.useState)(t);
+ return /* @__PURE__ */ (0, w.jsxs)("details", {
ref: (e) => {
i.current = e, e && t && !o.current && (o.current = !0, e.open = !0);
},
- children: [/* @__PURE__ */ (0, C.jsxs)("summary", {
+ children: [/* @__PURE__ */ (0, w.jsxs)("summary", {
"aria-expanded": s,
"aria-controls": r,
onClick: (e) => {
- e.preventDefault(), !(!i.current || !a.current) && (c(i.current, a.current, !s), l(!s));
+ e.preventDefault(), !(!i.current || !a.current) && (l(i.current, a.current, !s), c(!s));
},
className: "flex w-fit cursor-pointer list-none items-center gap-1 rounded-sm text-body-2-medium text-text-secondary outline-none select-none hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring",
- children: [/* @__PURE__ */ (0, C.jsx)(Af, {
+ children: [/* @__PURE__ */ (0, w.jsx)(Nf, {
"aria-hidden": !0,
className: s ? "size-4 shrink-0 rotate-90 transition-transform" : "size-4 shrink-0 transition-transform"
}), e]
- }), /* @__PURE__ */ (0, C.jsx)("div", {
+ }), /* @__PURE__ */ (0, w.jsx)("div", {
ref: a,
id: r,
inert: !s,
- children: /* @__PURE__ */ (0, C.jsx)("div", {
+ children: /* @__PURE__ */ (0, w.jsx)("div", {
className: "flex flex-col gap-2 pt-3",
children: n
})
})]
});
}
-function dS({ name: e }) {
- return /* @__PURE__ */ (0, C.jsx)("svg", {
+function fS({ name: e }) {
+ return /* @__PURE__ */ (0, w.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
fill: "none",
className: "size-4 shrink-0 stroke-current stroke-2",
- children: /* @__PURE__ */ (0, C.jsx)("use", { href: `#i-${e}` })
+ children: /* @__PURE__ */ (0, w.jsx)("use", { href: `#i-${e}` })
});
}
-function fS({ mark: e }) {
- return e.startsWith("data:image/png;base64,") ? /* @__PURE__ */ (0, C.jsx)("img", {
+function pS({ mark: e }) {
+ return e.startsWith("data:image/png;base64,") ? /* @__PURE__ */ (0, w.jsx)("img", {
src: e,
alt: "",
width: 16,
height: 16,
className: "size-4 shrink-0"
- }) : /* @__PURE__ */ (0, C.jsx)(dS, { name: e });
+ }) : /* @__PURE__ */ (0, w.jsx)(fS, { name: e });
}
//#endregion
//#region src/react/follow-manage/source-view.tsx
-function pS({ provider: e, label: t }) {
- let n = jx(e), [r, i] = (0, S.useState)(!1);
- return !n || r ? t ? /* @__PURE__ */ (0, C.jsx)(C.Fragment, { children: t }) : null : /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)("img", {
+function mS({ provider: e, label: t }) {
+ let n = Mx(e), [r, i] = (0, C.useState)(!1);
+ return !n || r ? t ? /* @__PURE__ */ (0, w.jsx)(w.Fragment, { children: t }) : null : /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [/* @__PURE__ */ (0, w.jsx)("img", {
src: n,
alt: "",
width: 14,
@@ -26084,11 +26086,11 @@ function pS({ provider: e, label: t }) {
loading: "lazy",
onError: () => i(!0),
className: "size-3.5 shrink-0 rounded-sm object-contain"
- }), t ? /* @__PURE__ */ (0, C.jsx)(Jo, { children: t }) : null] });
+ }), t ? /* @__PURE__ */ (0, w.jsx)(Xo, { children: t }) : null] });
}
-function mS({ group: e, name: t }) {
- let { src: n, fallback: r } = Zb(e), [i, a] = (0, S.useState)(0), o = [n, r].filter(Boolean)[i];
- return o ? /* @__PURE__ */ (0, C.jsx)("img", {
+function hS({ group: e, name: t }) {
+ let { src: n, fallback: r } = Qb(e), [i, a] = (0, C.useState)(0), o = [n, r].filter(Boolean)[i];
+ return o ? /* @__PURE__ */ (0, w.jsx)("img", {
src: o,
alt: "",
width: 32,
@@ -26097,22 +26099,22 @@ function mS({ group: e, name: t }) {
referrerPolicy: "no-referrer",
onError: () => a(i + 1),
className: "size-8 shrink-0 rounded-full bg-background-tertiary-default object-cover"
- }) : /* @__PURE__ */ (0, C.jsx)("span", {
+ }) : /* @__PURE__ */ (0, w.jsx)("span", {
title: "没有可用头像",
className: "inline-grid size-8 shrink-0 place-items-center rounded-full bg-background-tertiary-default text-caption-1-semibold text-text-secondary",
- children: Xb(t)
+ children: Zb(t)
});
}
-function hS({ source: e }) {
- let t = Wb(e) ? "rose" : e.enabled && e.last_status === "ok" ? "lime" : e.enabled ? "yellow" : "neutral";
- return /* @__PURE__ */ (0, C.jsx)(Km, {
+function gS({ source: e }) {
+ let t = Gb(e) ? "rose" : e.enabled && e.last_status === "ok" ? "lime" : e.enabled ? "yellow" : "neutral";
+ return /* @__PURE__ */ (0, w.jsx)(Jm, {
variant: "caption",
color: t,
- children: Ub(e)
+ children: Wb(e)
});
}
-function gS({ source: e }) {
- return /* @__PURE__ */ (0, C.jsx)("a", {
+function _S({ source: e }) {
+ return /* @__PURE__ */ (0, w.jsx)("a", {
href: e.url,
target: "_blank",
rel: "noreferrer noopener",
@@ -26123,79 +26125,79 @@ function gS({ source: e }) {
}
//#endregion
//#region src/react/follow-manage/add-source.tsx
-var _S = Um(qx, Jx, "text-body-2-medium"), vS = "粘贴来源链接,或输入创作者名、id…", yS = "查找中…(首次按名字查要下载创作者索引,可能几十秒)", bS = "识别中…", xS = "站内没有查到来源", SS = (e, t) => `${e}:${t.url}`;
-function CS({ options: e, active: t, busy: n, onPick: r }) {
- return /* @__PURE__ */ (0, C.jsxs)("div", {
+var vS = K(Jx, Yx, "text-body-2-medium"), yS = "粘贴来源链接,或输入创作者名、id…", bS = "查找中…(首次按名字查要下载创作者索引,可能几十秒)", xS = "识别中…", SS = "站内没有查到来源", CS = (e, t) => `${e}:${t.url}`;
+function wS({ options: e, active: t, busy: n, onPick: r }) {
+ return /* @__PURE__ */ (0, w.jsxs)("div", {
"aria-label": "来源建议",
- className: Um(Wx, "absolute top-full z-10 mt-1 flex w-full flex-col gap-1"),
- children: [n && !e.length ? /* @__PURE__ */ (0, C.jsx)("div", {
+ className: K(Gx, "absolute top-full z-10 mt-1 flex w-full flex-col gap-1"),
+ children: [n && !e.length ? /* @__PURE__ */ (0, w.jsx)("div", {
className: "px-2 py-1.5",
- children: /* @__PURE__ */ (0, C.jsx)(sh, { label: "正在查找建议" })
- }) : null, e.map((e, n) => /* @__PURE__ */ (0, C.jsxs)("button", {
+ children: /* @__PURE__ */ (0, w.jsx)(lh, { label: "正在查找建议" })
+ }) : null, e.map((e, n) => /* @__PURE__ */ (0, w.jsxs)("button", {
type: "button",
"aria-current": n === t ? "true" : void 0,
- className: n === t ? Um(_S, "bg-background-secondary-default") : _S,
+ className: n === t ? K(vS, "bg-background-secondary-default") : vS,
onMouseDown: (e) => e.preventDefault(),
onClick: () => r(e.value),
- children: [/* @__PURE__ */ (0, C.jsx)("span", {
+ children: [/* @__PURE__ */ (0, w.jsx)("span", {
className: "min-w-0 grow truncate text-left",
children: e.label
- }), /* @__PURE__ */ (0, C.jsx)("span", {
+ }), /* @__PURE__ */ (0, w.jsx)("span", {
className: "shrink-0 text-caption-1-regular text-text-tertiary",
children: e.group
})]
}, `${e.group}-${e.value}`))]
});
}
-function wS({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
- let i = (0, S.useRef)(null), [a, o] = (0, S.useState)(!1), s = (e.providers || []).filter((e) => e.followable), c = s.filter((e) => !t.has(e.provider_label)).length, l = c === s.length ? "全部来源" : `${c}/${s.length} 个来源`, u = (e, r) => {
+function TS({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
+ let i = (0, C.useRef)(null), [a, o] = (0, C.useState)(!1), s = (e.providers || []).filter((e) => e.followable), c = s.filter((e) => !t.has(e.provider_label)).length, l = c === s.length ? "全部来源" : `${c}/${s.length} 个来源`, u = (e, r) => {
let i = new Set(t);
r ? i.delete(e) : i.add(e), n(i);
};
- return /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(X, {
+ return /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [/* @__PURE__ */ (0, w.jsx)(X, {
ref: i,
variant: "secondary",
- leadingIcon: Hf,
+ leadingIcon: Gf,
"aria-haspopup": "dialog",
"aria-expanded": a,
"aria-label": l,
onClick: () => o(!0),
children: l
- }), /* @__PURE__ */ (0, C.jsx)(K_, {
+ }), /* @__PURE__ */ (0, w.jsx)(q_, {
triggerRef: i,
isOpen: a,
onOpenChange: o,
placement: "bottom end",
offset: 4,
- className: Wx,
- children: /* @__PURE__ */ (0, C.jsxs)(X_, {
+ className: Gx,
+ children: /* @__PURE__ */ (0, w.jsxs)(Z_, {
"aria-label": "来源筛选",
className: "flex w-64 flex-col gap-1 outline-none",
- children: [s.length ? /* @__PURE__ */ (0, C.jsxs)("div", {
+ children: [s.length ? /* @__PURE__ */ (0, w.jsxs)("div", {
className: "flex items-center gap-2 pb-1",
- children: [/* @__PURE__ */ (0, C.jsx)(X, {
+ children: [/* @__PURE__ */ (0, w.jsx)(X, {
variant: "ghost",
size: "small",
onClick: () => n(/* @__PURE__ */ new Set()),
children: "全选"
- }), /* @__PURE__ */ (0, C.jsx)(X, {
+ }), /* @__PURE__ */ (0, w.jsx)(X, {
variant: "ghost",
size: "small",
onClick: () => n(new Set(s.map((e) => e.provider_label))),
children: "全不选"
})]
- }) : /* @__PURE__ */ (0, C.jsx)(iS, { children: "暂无可用来源" }), s.map((e) => {
+ }) : /* @__PURE__ */ (0, w.jsx)(aS, { children: "暂无可用来源" }), s.map((e) => {
let n = e.requirement === "required" && (!e.present || (e.missing || []).length > 0);
- return /* @__PURE__ */ (0, C.jsxs)("div", {
+ return /* @__PURE__ */ (0, w.jsxs)("div", {
className: "flex items-center gap-2",
- children: [/* @__PURE__ */ (0, C.jsx)(Ux, {
+ children: [/* @__PURE__ */ (0, w.jsx)(Wx, {
isSelected: !t.has(e.provider_label),
onChange: (t) => u(e.provider_label, t),
- children: /* @__PURE__ */ (0, C.jsxs)("span", {
+ children: /* @__PURE__ */ (0, w.jsxs)("span", {
className: "flex min-w-0 items-center gap-1.5",
- children: [/* @__PURE__ */ (0, C.jsx)(pS, { provider: e.provider }), e.provider_label]
+ children: [/* @__PURE__ */ (0, w.jsx)(mS, { provider: e.provider }), e.provider_label]
})
- }), n ? /* @__PURE__ */ (0, C.jsx)(X, {
+ }), n ? /* @__PURE__ */ (0, w.jsx)(X, {
variant: "ghost",
size: "xs",
className: "ml-auto",
@@ -26209,66 +26211,66 @@ function wS({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
})
})] });
}
-function TS({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
- if (e.kind === "error") return /* @__PURE__ */ (0, C.jsx)(ch, {
+function ES({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
+ if (e.kind === "error") return /* @__PURE__ */ (0, w.jsx)(J, {
tone: "error",
title: e.line,
children: e.error || "查找失败"
});
let a = (e.candidates || []).filter((e) => !n.has(e.provider_label || "")), o = Object.entries(e.failures || {});
- return /* @__PURE__ */ (0, C.jsxs)("div", {
- className: ih({
+ return /* @__PURE__ */ (0, w.jsxs)("div", {
+ className: oh({
padding: "none",
className: "flex flex-col gap-2 p-4"
}),
children: [
- /* @__PURE__ */ (0, C.jsx)("b", {
+ /* @__PURE__ */ (0, w.jsx)("b", {
className: "text-body-medium text-text-primary",
children: e.line
}),
a.length ? a.map((e) => {
- let n = SS(t, e);
- return /* @__PURE__ */ (0, C.jsx)(Ux, {
+ let n = CS(t, e);
+ return /* @__PURE__ */ (0, w.jsx)(Wx, {
isSelected: !e.known && !r.has(n),
isDisabled: e.known,
onChange: (e) => i(n, e),
- children: /* @__PURE__ */ (0, C.jsxs)("span", {
+ children: /* @__PURE__ */ (0, w.jsxs)("span", {
className: "flex min-w-0 flex-wrap items-center gap-1.5",
children: [
- /* @__PURE__ */ (0, C.jsx)(pS, { provider: e.provider }),
- /* @__PURE__ */ (0, C.jsx)("b", {
+ /* @__PURE__ */ (0, w.jsx)(mS, { provider: e.provider }),
+ /* @__PURE__ */ (0, w.jsx)("b", {
className: "text-body-medium",
children: e.provider_label
}),
- /* @__PURE__ */ (0, C.jsx)("span", {
+ /* @__PURE__ */ (0, w.jsx)("span", {
className: "min-w-0 break-words",
children: e.label
}),
- /* @__PURE__ */ (0, C.jsx)("small", {
+ /* @__PURE__ */ (0, w.jsx)("small", {
className: "text-caption-1-regular text-text-secondary",
children: e.known ? "已经关注" : e.evidence
})
]
})
}, n);
- }) : /* @__PURE__ */ (0, C.jsx)(iS, { children: xS }),
- (e.external_searches || []).map((e) => /* @__PURE__ */ (0, C.jsxs)("div", {
+ }) : /* @__PURE__ */ (0, w.jsx)(aS, { children: SS }),
+ (e.external_searches || []).map((e) => /* @__PURE__ */ (0, w.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, C.jsx)("small", {
+ children: [/* @__PURE__ */ (0, w.jsx)("small", {
className: "text-caption-1-regular text-text-secondary",
children: e.evidence
- }), /* @__PURE__ */ (0, C.jsx)(sS, {
+ }), /* @__PURE__ */ (0, w.jsx)(cS, {
href: e.url,
children: `${e.label}:${e.query}`
})]
}, e.url)),
- o.length ? /* @__PURE__ */ (0, C.jsx)(iS, { children: o.map(([e, t]) => `${e}:${t}`).join(";") }) : null
+ o.length ? /* @__PURE__ */ (0, w.jsx)(aS, { children: o.map(([e, t]) => `${e}:${t}`).join(";") }) : null
]
});
}
-function ES({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i }) {
- let [a, o] = (0, S.useState)(""), [s, c] = (0, S.useState)(""), [l, u] = (0, S.useState)(!1), [d, f] = (0, S.useState)(-1), [p, m] = (0, S.useState)(/* @__PURE__ */ new Set()), [h, g] = (0, S.useState)(/* @__PURE__ */ new Set()), [_, v] = (0, S.useState)(""), [y, b] = (0, S.useState)(!1), [x, w] = (0, S.useState)(null), [T, E] = (0, S.useState)(0);
- (0, S.useEffect)(() => {
+function DS({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i }) {
+ let [a, o] = (0, C.useState)(""), [s, c] = (0, C.useState)(""), [l, u] = (0, C.useState)(!1), [d, f] = (0, C.useState)(-1), [p, m] = (0, C.useState)(/* @__PURE__ */ new Set()), [h, g] = (0, C.useState)(/* @__PURE__ */ new Set()), [_, v] = (0, C.useState)(""), [y, b] = (0, C.useState)(!1), [x, S] = (0, C.useState)(null), [T, E] = (0, C.useState)(0);
+ (0, C.useEffect)(() => {
let e = a.trim();
if (!e || e.includes("/")) {
c("");
@@ -26277,36 +26279,36 @@ function ES({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i
let t = setTimeout(() => c(e), 250);
return () => clearTimeout(t);
}, [a]);
- let D = lt({
- queryKey: kb(s),
- queryFn: ({ signal: e }) => lx(s, e),
+ let D = ut({
+ queryKey: Ab(s),
+ queryFn: ({ signal: e }) => ux(s, e),
enabled: s.length > 0 && l
- }), O = (0, S.useMemo)(() => (D.data?.groups || []).flatMap((e) => e.items.map((t) => ({
+ }), O = (0, C.useMemo)(() => (D.data?.groups || []).flatMap((e) => e.items.map((t) => ({
value: t.value,
label: t.matched || t.value,
group: e.label
- }))), [D.data]), k = lt({
- queryKey: Ob,
- queryFn: ({ signal: e }) => cx(e),
- refetchInterval: (e) => Tx(e.state.data)
- }), A = k.data?.status === "running", j = ut({
- mutationFn: (e) => dx([e]),
+ }))), [D.data]), k = ut({
+ queryKey: kb,
+ queryFn: ({ signal: e }) => lx(e),
+ refetchInterval: (e) => Ex(e.state.data)
+ }), A = k.data?.status === "running", j = dt({
+ mutationFn: (e) => fx([e]),
onSuccess: () => {
- b(!0), w(null), g(/* @__PURE__ */ new Set()), dh.invalidateQueries({
- queryKey: Ob,
+ b(!0), S(null), g(/* @__PURE__ */ new Set()), fh.invalidateQueries({
+ queryKey: kb,
exact: !0
});
},
- onError: (e) => v(J(e))
+ onError: (e) => v(q(e))
});
- (0, S.useEffect)(() => {
+ (0, C.useEffect)(() => {
let e = k.data;
if (e) {
if (e.status === "running") {
y || b(!0);
return;
}
- y && (b(!1), w(e), e.status === "failed" && v(e.error || "查找失败"));
+ y && (b(!1), S(e), e.status === "failed" && v(e.error || "查找失败"));
}
}, [k.data, y]);
let M = (e) => {
@@ -26332,24 +26334,24 @@ function ES({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i
}
}, ee = x?.results || [], P = ee.flatMap((e, t) => (e.candidates || []).filter((e) => !e.known && !p.has(e.provider_label || "")).map((e) => ({
candidate: e,
- key: SS(t, e)
- })).filter((e) => !h.has(e.key))), F = ut({
+ key: CS(t, e)
+ })).filter((e) => !h.has(e.key))), F = dt({
mutationFn: async (e) => {
let t = [], n = [];
E(0);
for (let r of e) {
try {
- let e = await mx(r.candidate);
+ let e = await hx(r.candidate);
n.push(e.source);
} catch (e) {
- t.push(`${r.candidate.label}:${J(e)}`);
+ t.push(`${r.candidate.label}:${q(e)}`);
}
E((e) => e + 1);
}
if (n.length) try {
- await ux(n);
+ await dx(n);
} catch (e) {
- t.push(J(e));
+ t.push(q(e));
}
return {
failures: t,
@@ -26357,55 +26359,55 @@ function ES({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i
};
},
onSuccess: (e) => {
- if (Cx(), e.failures.length) {
+ if (wx(), e.failures.length) {
v(e.failures.join(";"));
return;
}
- v(""), w(null), r(`已添加 ${e.sources.length} 个关注来源`);
+ v(""), S(null), r(`已添加 ${e.sources.length} 个关注来源`);
},
- onError: (e) => v(J(e))
+ onError: (e) => v(q(e))
}), te = e.suggestions || [], ne = !a.includes("/"), re = D.isFetching, ie = l && (O.length > 0 || re);
- return /* @__PURE__ */ (0, C.jsxs)("div", {
- className: ih({
+ return /* @__PURE__ */ (0, w.jsxs)("div", {
+ className: oh({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
children: [
- /* @__PURE__ */ (0, C.jsx)("h3", {
+ /* @__PURE__ */ (0, w.jsx)("h3", {
className: "text-title-2-medium text-text-primary",
children: "添加关注"
}),
- /* @__PURE__ */ (0, C.jsxs)("div", {
+ /* @__PURE__ */ (0, w.jsxs)("div", {
className: "flex flex-wrap items-end gap-2",
children: [
- /* @__PURE__ */ (0, C.jsxs)("div", {
+ /* @__PURE__ */ (0, w.jsxs)("div", {
className: "relative min-w-64 grow",
onFocus: () => u(!0),
onBlur: (e) => {
e.currentTarget.contains(e.relatedTarget) || u(!1);
},
- children: [/* @__PURE__ */ (0, C.jsx)(Xy, {
+ children: [/* @__PURE__ */ (0, w.jsx)(Zy, {
"aria-label": "来源链接、名字或 id",
- placeholder: vS,
+ placeholder: yS,
value: a,
- leadingIcon: tp,
+ leadingIcon: ip,
isDisabled: n,
onChange: o,
onKeyDown: N
- }), ie ? /* @__PURE__ */ (0, C.jsx)(CS, {
+ }), ie ? /* @__PURE__ */ (0, w.jsx)(wS, {
options: O,
active: d,
busy: re,
onPick: M
}) : null]
}),
- /* @__PURE__ */ (0, C.jsx)(wS, {
+ /* @__PURE__ */ (0, w.jsx)(TS, {
credentials: t,
hidden: p,
onHidden: m,
openCredentials: i
}),
- /* @__PURE__ */ (0, C.jsx)(X, {
+ /* @__PURE__ */ (0, w.jsx)(X, {
variant: "primary",
disabled: n || !a.trim(),
...Z(A || j.isPending),
@@ -26414,24 +26416,24 @@ function ES({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i
})
]
}),
- /* @__PURE__ */ (0, C.jsxs)("div", {
+ /* @__PURE__ */ (0, w.jsxs)("div", {
"aria-live": "polite",
className: "flex flex-col gap-3 empty:hidden",
- children: [A || j.isPending ? k.data?.total ? /* @__PURE__ */ (0, C.jsx)(uh, {
+ children: [A || j.isPending ? k.data?.total ? /* @__PURE__ */ (0, w.jsx)(dh, {
label: k.data.message || `查找中:${k.data.checked || 0}/${k.data.total}`,
value: k.data.checked || 0,
max: k.data.total
- }) : /* @__PURE__ */ (0, C.jsx)(sh, { label: ne ? yS : bS }) : null, _ ? /* @__PURE__ */ (0, C.jsx)(ch, {
+ }) : /* @__PURE__ */ (0, w.jsx)(lh, { label: ne ? bS : xS }) : null, _ ? /* @__PURE__ */ (0, w.jsx)(J, {
tone: "error",
title: "这一次没有完成",
children: _
}) : null]
}),
- ee.length ? /* @__PURE__ */ (0, C.jsxs)("div", {
+ ee.length ? /* @__PURE__ */ (0, w.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, C.jsx)(oS, { children: "查找结果" }),
- ee.map((e, t) => /* @__PURE__ */ (0, C.jsx)(TS, {
+ /* @__PURE__ */ (0, w.jsx)(sS, { children: "查找结果" }),
+ ee.map((e, t) => /* @__PURE__ */ (0, w.jsx)(ES, {
row: e,
at: t,
hidden: p,
@@ -26441,10 +26443,10 @@ function ES({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i
t ? n.delete(e) : n.add(e), g(n);
}
}, `${e.line}-${t}`)),
- /* @__PURE__ */ (0, C.jsxs)("div", {
+ /* @__PURE__ */ (0, w.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
children: [
- /* @__PURE__ */ (0, C.jsx)(X, {
+ /* @__PURE__ */ (0, w.jsx)(X, {
variant: "primary",
size: "small",
disabled: n || !P.length,
@@ -26452,13 +26454,13 @@ function ES({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i
onClick: () => F.mutate(P),
children: `添加选中(${P.length})`
}),
- /* @__PURE__ */ (0, C.jsx)(X, {
+ /* @__PURE__ */ (0, w.jsx)(X, {
variant: "secondary",
size: "small",
- onClick: () => w(null),
+ onClick: () => S(null),
children: "关闭"
}),
- F.isPending ? /* @__PURE__ */ (0, C.jsx)("span", {
+ F.isPending ? /* @__PURE__ */ (0, w.jsx)("span", {
role: "status",
className: "text-body-2-regular text-text-secondary",
children: `添加中… ${T}/${P.length}`
@@ -26467,12 +26469,12 @@ function ES({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i
})
]
}) : null,
- te.length ? /* @__PURE__ */ (0, C.jsxs)("div", {
+ te.length ? /* @__PURE__ */ (0, w.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, C.jsx)("span", {
+ children: [/* @__PURE__ */ (0, w.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
children: "猜你喜欢"
- }), te.map((e) => /* @__PURE__ */ (0, C.jsx)(X, {
+ }), te.map((e) => /* @__PURE__ */ (0, w.jsx)(X, {
variant: "secondary",
size: "small",
disabled: n,
@@ -26486,20 +26488,20 @@ function ES({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i
}
//#endregion
//#region src/react/boardui/components/base/table/table.tsx
-function DS({ size: e = "md", className: t, containerClassName: n, ref: r, ...i }) {
- return /* @__PURE__ */ (0, C.jsx)("div", {
- className: Um("w-full overflow-x-auto", n),
- children: /* @__PURE__ */ (0, C.jsx)(Yv, {
+function OS({ size: e = "md", className: t, containerClassName: n, ref: r, ...i }) {
+ return /* @__PURE__ */ (0, w.jsx)("div", {
+ className: K("w-full overflow-x-auto", n),
+ children: /* @__PURE__ */ (0, w.jsx)(Xv, {
ref: r,
...i,
- className: Um("bui-table", e === "sm" && "bui-table-sm", t)
+ className: K("bui-table", e === "sm" && "bui-table-sm", t)
})
});
}
//#endregion
//#region src/react/components/data-table-frame.tsx
-function OS({ children: e, follow: t = !1 }) {
- return /* @__PURE__ */ (0, C.jsx)("div", {
+function kS({ children: e, follow: t = !1 }) {
+ return /* @__PURE__ */ (0, w.jsx)("div", {
"data-board-data-table": !0,
"data-follow-table": t || void 0,
children: e
@@ -26507,32 +26509,32 @@ function OS({ children: e, follow: t = !1 }) {
}
//#endregion
//#region src/react/follow-manage/alias-manager.tsx
-var kS = (e) => `将移除别名「${e}」,对应来源恢复为独立创作者组。`, AS = (e) => e.alias;
-function jS(e, t, n) {
+var AS = (e) => `将移除别名「${e}」,对应来源恢复为独立创作者组。`, jS = (e) => e.alias;
+function MS(e, t, n) {
let r = n ? `name:${n}` : "", i = r ? e.find((e) => e.author_key === r) : e.find((e) => e.author_name === t || e.entity_name === t);
return i ? e.filter((e) => e.author_key === i.author_key) : [];
}
-function MS({ sources: e, name: t, canonicalKey: n }) {
- return /* @__PURE__ */ (0, C.jsxs)("span", {
+function NS({ sources: e, name: t, canonicalKey: n }) {
+ return /* @__PURE__ */ (0, w.jsxs)("span", {
className: "flex items-center gap-2",
- children: [/* @__PURE__ */ (0, C.jsx)(mS, {
- group: jS(e, t, n),
+ children: [/* @__PURE__ */ (0, w.jsx)(hS, {
+ group: MS(e, t, n),
name: t
- }), /* @__PURE__ */ (0, C.jsx)("b", {
+ }), /* @__PURE__ */ (0, w.jsx)("b", {
className: "text-body-medium",
children: t
})]
});
}
-function NS({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i }) {
- let [a, o] = (0, S.useState)(/* @__PURE__ */ new Set()), [c, l] = (0, S.useState)(""), [u, d] = (0, S.useState)(""), [f, p] = (0, S.useState)(""), m = ut({
+function PS({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i }) {
+ let [a, o] = (0, C.useState)(/* @__PURE__ */ new Set()), [s, l] = (0, C.useState)(""), [u, d] = (0, C.useState)(""), [f, p] = (0, C.useState)(""), m = dt({
mutationFn: async (e) => {
let t = 0;
for (let n of e) {
try {
- await hx(n.canonical, n.alias);
+ await gx(n.canonical, n.alias);
} catch (n) {
- throw t && Cx(), Error(`${J(n)}(还有 ${e.length - t} 组没有合并)`);
+ throw t && wx(), Error(`${q(n)}(还有 ${e.length - t} 组没有合并)`);
}
t += 1;
}
@@ -26542,45 +26544,45 @@ function NS({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
};
},
onSuccess: (e) => {
- l(""), o(/* @__PURE__ */ new Set()), Cx(), i(`已合并 ${e.done} 组创作者别名`);
+ l(""), o(/* @__PURE__ */ new Set()), wx(), i(`已合并 ${e.done} 组创作者别名`);
},
- onError: (e) => l(J(e))
- }), h = ut({
- mutationFn: (e) => hx(e.canonical, e.alias),
+ onError: (e) => l(q(e))
+ }), h = dt({
+ mutationFn: (e) => gx(e.canonical, e.alias),
onSuccess: () => {
- l(""), d(""), p(""), Cx(), i("已保存创作者别名");
+ l(""), d(""), p(""), wx(), i("已保存创作者别名");
},
- onError: (e) => l(J(e))
- }), g = ut({
- mutationFn: (e) => gx(e),
+ onError: (e) => l(q(e))
+ }), g = dt({
+ mutationFn: (e) => _x(e),
onSuccess: () => {
- l(""), Cx(), i("已移除创作者别名");
+ l(""), wx(), i("已移除创作者别名");
},
- onError: (e) => l(J(e))
+ onError: (e) => l(q(e))
}), _ = (e, t) => {
- e.length && s({
+ e.length && c({
title: t ? "合并全部创作者别名" : "合并所选创作者别名",
body: `将合并以下 ${e.length} 组创作者:${e.map((e) => `「${e.alias}」归入「${e.canonical}」`).join(";")}。`,
confirmLabel: t ? "合并全部别名" : "合并所选别名",
onConfirm: () => m.mutateAsync(e)
});
- }, v = t.filter((e) => a.has(AS(e))), y = t.length > 0 && v.length === t.length, b = Z(m.isPending);
- return /* @__PURE__ */ (0, C.jsxs)("div", {
- className: ih({
+ }, v = t.filter((e) => a.has(jS(e))), y = t.length > 0 && v.length === t.length, b = Z(m.isPending);
+ return /* @__PURE__ */ (0, w.jsxs)("div", {
+ className: oh({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
children: [
- /* @__PURE__ */ (0, C.jsx)("h3", {
+ /* @__PURE__ */ (0, w.jsx)("h3", {
className: "text-title-2-medium text-text-primary",
children: "创作者别名"
}),
- /* @__PURE__ */ (0, C.jsxs)("div", {
+ /* @__PURE__ */ (0, w.jsxs)("div", {
className: "flex flex-col gap-2",
- children: [/* @__PURE__ */ (0, C.jsx)(oS, { children: "手动添加别名" }), /* @__PURE__ */ (0, C.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, w.jsx)(sS, { children: "手动添加别名" }), /* @__PURE__ */ (0, w.jsxs)("div", {
className: "flex flex-wrap items-end gap-2",
children: [
- /* @__PURE__ */ (0, C.jsx)(Xy, {
+ /* @__PURE__ */ (0, w.jsx)(Zy, {
"aria-label": "规范创作者名",
placeholder: "规范创作者名",
value: u,
@@ -26588,7 +26590,7 @@ function NS({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
isDisabled: r,
className: "w-56"
}),
- /* @__PURE__ */ (0, C.jsx)(Xy, {
+ /* @__PURE__ */ (0, w.jsx)(Zy, {
"aria-label": "平台别名",
placeholder: "平台别名",
value: f,
@@ -26596,7 +26598,7 @@ function NS({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
isDisabled: r,
className: "w-56"
}),
- /* @__PURE__ */ (0, C.jsx)(X, {
+ /* @__PURE__ */ (0, w.jsx)(X, {
variant: "primary",
disabled: r || !u.trim() || !f.trim(),
...Z(h.isPending),
@@ -26609,18 +26611,18 @@ function NS({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
]
})]
}),
- c ? /* @__PURE__ */ (0, C.jsx)(aS, { children: c }) : null,
- t.length ? /* @__PURE__ */ (0, C.jsxs)("div", {
+ s ? /* @__PURE__ */ (0, w.jsx)(oS, { children: s }) : null,
+ t.length ? /* @__PURE__ */ (0, w.jsxs)("div", {
className: "flex flex-col gap-2",
- children: [/* @__PURE__ */ (0, C.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, w.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
children: [
- /* @__PURE__ */ (0, C.jsx)(oS, { children: "待合并" }),
- /* @__PURE__ */ (0, C.jsx)("span", {
+ /* @__PURE__ */ (0, w.jsx)(sS, { children: "待合并" }),
+ /* @__PURE__ */ (0, w.jsx)("span", {
className: "mr-auto text-body-2-regular text-text-secondary",
children: `${t.length} 组`
}),
- /* @__PURE__ */ (0, C.jsx)(X, {
+ /* @__PURE__ */ (0, w.jsx)(X, {
variant: "secondary",
size: "small",
disabled: r || !v.length,
@@ -26628,7 +26630,7 @@ function NS({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
onClick: () => _(v, !1),
children: `合并所选(${v.length})`
}),
- /* @__PURE__ */ (0, C.jsx)(X, {
+ /* @__PURE__ */ (0, w.jsx)(X, {
variant: "primary",
size: "small",
disabled: r,
@@ -26637,44 +26639,44 @@ function NS({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
children: `全部合并(${t.length})`
})
]
- }), /* @__PURE__ */ (0, C.jsx)(OS, { children: /* @__PURE__ */ (0, C.jsxs)(DS, {
+ }), /* @__PURE__ */ (0, w.jsx)(kS, { children: /* @__PURE__ */ (0, w.jsxs)(OS, {
"aria-label": "待合并创作者别名",
size: "sm",
- children: [/* @__PURE__ */ (0, C.jsxs)(ny, { children: [
- /* @__PURE__ */ (0, C.jsx)(sy, {
+ children: [/* @__PURE__ */ (0, w.jsxs)(ry, { children: [
+ /* @__PURE__ */ (0, w.jsx)(cy, {
id: "select",
- children: /* @__PURE__ */ (0, C.jsx)(Ux, {
+ children: /* @__PURE__ */ (0, w.jsx)(Wx, {
slot: null,
isSelected: y,
isIndeterminate: v.length > 0 && !y,
"aria-label": "全选待合并别名",
- onChange: (e) => o(e ? new Set(t.map(AS)) : /* @__PURE__ */ new Set())
+ onChange: (e) => o(e ? new Set(t.map(jS)) : /* @__PURE__ */ new Set())
})
}),
- /* @__PURE__ */ (0, C.jsx)(sy, {
+ /* @__PURE__ */ (0, w.jsx)(cy, {
id: "canonical",
children: "规范创作者"
}),
- /* @__PURE__ */ (0, C.jsx)(sy, {
+ /* @__PURE__ */ (0, w.jsx)(cy, {
id: "alias",
isRowHeader: !0,
children: "平台别名"
}),
- /* @__PURE__ */ (0, C.jsx)(sy, {
+ /* @__PURE__ */ (0, w.jsx)(cy, {
id: "evidence",
children: "依据"
}),
- /* @__PURE__ */ (0, C.jsx)(sy, {
+ /* @__PURE__ */ (0, w.jsx)(cy, {
id: "actions",
children: "操作"
})
- ] }), /* @__PURE__ */ (0, C.jsx)(dy, { children: t.map((e) => {
- let t = AS(e);
- return /* @__PURE__ */ (0, C.jsxs)(hy, {
+ ] }), /* @__PURE__ */ (0, w.jsx)(fy, { children: t.map((e) => {
+ let t = jS(e);
+ return /* @__PURE__ */ (0, w.jsxs)(gy, {
id: t,
"data-board-selected": a.has(t) || void 0,
children: [
- /* @__PURE__ */ (0, C.jsx)(vy, { children: /* @__PURE__ */ (0, C.jsx)(Ux, {
+ /* @__PURE__ */ (0, w.jsx)(yy, { children: /* @__PURE__ */ (0, w.jsx)(Wx, {
slot: null,
isSelected: a.has(t),
"aria-label": `选择别名 ${e.alias},归入 ${e.canonical}`,
@@ -26683,16 +26685,16 @@ function NS({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
e ? n.add(t) : n.delete(t), o(n);
}
}) }),
- /* @__PURE__ */ (0, C.jsx)(vy, { children: /* @__PURE__ */ (0, C.jsx)(MS, {
+ /* @__PURE__ */ (0, w.jsx)(yy, { children: /* @__PURE__ */ (0, w.jsx)(NS, {
sources: n,
name: e.canonical
}) }),
- /* @__PURE__ */ (0, C.jsx)(vy, { children: e.alias }),
- /* @__PURE__ */ (0, C.jsx)(vy, { children: /* @__PURE__ */ (0, C.jsx)("span", {
+ /* @__PURE__ */ (0, w.jsx)(yy, { children: e.alias }),
+ /* @__PURE__ */ (0, w.jsx)(yy, { children: /* @__PURE__ */ (0, w.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
children: e.evidence
}) }),
- /* @__PURE__ */ (0, C.jsx)(vy, { children: /* @__PURE__ */ (0, C.jsx)(X, {
+ /* @__PURE__ */ (0, w.jsx)(yy, { children: /* @__PURE__ */ (0, w.jsx)(X, {
variant: "secondary",
size: "small",
disabled: r,
@@ -26705,45 +26707,45 @@ function NS({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
}) })]
}) })]
}) : null,
- /* @__PURE__ */ (0, C.jsxs)("div", {
+ /* @__PURE__ */ (0, w.jsxs)("div", {
className: "flex flex-col gap-2",
- children: [/* @__PURE__ */ (0, C.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, w.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, C.jsx)(oS, { children: "已保存别名" }), /* @__PURE__ */ (0, C.jsx)("span", {
+ children: [/* @__PURE__ */ (0, w.jsx)(sS, { children: "已保存别名" }), /* @__PURE__ */ (0, w.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
children: `${e.length} 组`
})]
- }), e.length ? /* @__PURE__ */ (0, C.jsx)(OS, { children: /* @__PURE__ */ (0, C.jsxs)(DS, {
+ }), e.length ? /* @__PURE__ */ (0, w.jsx)(kS, { children: /* @__PURE__ */ (0, w.jsxs)(OS, {
"aria-label": "已保存创作者别名",
size: "sm",
- children: [/* @__PURE__ */ (0, C.jsxs)(ny, { children: [/* @__PURE__ */ (0, C.jsx)(sy, {
+ children: [/* @__PURE__ */ (0, w.jsxs)(ry, { children: [/* @__PURE__ */ (0, w.jsx)(cy, {
id: "canonical",
isRowHeader: !0,
children: "规范创作者"
- }), /* @__PURE__ */ (0, C.jsx)(sy, {
+ }), /* @__PURE__ */ (0, w.jsx)(cy, {
id: "aliases",
children: "平台别名"
- })] }), /* @__PURE__ */ (0, C.jsx)(dy, { children: e.map((e) => /* @__PURE__ */ (0, C.jsxs)(hy, {
+ })] }), /* @__PURE__ */ (0, w.jsx)(fy, { children: e.map((e) => /* @__PURE__ */ (0, w.jsxs)(gy, {
id: e.canonical_key,
- children: [/* @__PURE__ */ (0, C.jsx)(vy, { children: /* @__PURE__ */ (0, C.jsx)(MS, {
+ children: [/* @__PURE__ */ (0, w.jsx)(yy, { children: /* @__PURE__ */ (0, w.jsx)(NS, {
sources: n,
name: e.canonical_name,
canonicalKey: e.canonical_key
- }) }), /* @__PURE__ */ (0, C.jsx)(vy, { children: /* @__PURE__ */ (0, C.jsx)("span", {
+ }) }), /* @__PURE__ */ (0, w.jsx)(yy, { children: /* @__PURE__ */ (0, w.jsx)("span", {
className: "flex flex-wrap items-center gap-1.5",
- children: e.aliases.map((e) => /* @__PURE__ */ (0, C.jsxs)("span", {
+ children: e.aliases.map((e) => /* @__PURE__ */ (0, w.jsxs)("span", {
className: "inline-flex items-center gap-1 rounded-md bg-background-secondary-default px-1.5 py-1 text-caption-1-medium text-text-secondary",
- children: [e.name, /* @__PURE__ */ (0, C.jsx)(X, {
+ children: [e.name, /* @__PURE__ */ (0, w.jsx)(X, {
variant: "ghost",
size: "xs",
iconOnly: !0,
- leadingIcon: Ff,
+ leadingIcon: Rf,
"aria-label": `移除别名 ${e.name}`,
disabled: r,
...Z(g.isPending),
- onClick: () => void s({
+ onClick: () => void c({
title: "移除创作者别名",
- body: kS(e.name),
+ body: AS(e.name),
confirmLabel: "移除创作者别名",
onConfirm: () => g.mutateAsync(e.name)
})
@@ -26751,9 +26753,9 @@ function NS({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
}, e.key))
}) })]
}, e.canonical_key)) })]
- }) }) : /* @__PURE__ */ (0, C.jsx)(oh, {
+ }) }) : /* @__PURE__ */ (0, w.jsx)(ch, {
shell: "plain",
- icon: op,
+ icon: lp,
title: "还没有保存创作者别名",
children: "填写规范创作者名和平台别名以添加。"
})]
@@ -26763,37 +26765,37 @@ function NS({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
}
//#endregion
//#region src/react/follow-manage/credentials.tsx
-var PS = "这些账号信息存在哪里", FS = "存成运行 Peach 那台电脑上的一个文件。在 Windows 上它不额外加锁,能登录那台电脑的人都能打开。", IS = "将清除这个来源在本机和共享副本中的登录凭据。", LS = "文件权限过宽,请在运行 Peach 的 POSIX 主机上收紧为 0600。";
-function RS(e, t) {
+var FS = "这些账号信息存在哪里", IS = "存成运行 Peach 那台电脑上的一个文件。在 Windows 上它不额外加锁,能登录那台电脑的人都能打开。", LS = "将清除这个来源在本机和共享副本中的登录凭据。", RS = "文件权限过宽,请在运行 Peach 的 POSIX 主机上收紧为 0600。";
+function zS(e, t) {
return (e.shared_fields || []).includes(t) ? "来自共享,留空表示不改" : e.fields.includes(t) ? "已保存,留空表示不改" : "未填写";
}
-function zS({ row: e }) {
- if (Nx(e)) return /* @__PURE__ */ (0, C.jsx)(Km, {
+function BS({ row: e }) {
+ if (Px(e)) return /* @__PURE__ */ (0, w.jsx)(Jm, {
variant: "caption",
color: "lime",
children: "已配置"
});
let t = e.requirement === "required" ? "yellow" : e.requirement === "blocked" ? "rose" : "neutral";
- return /* @__PURE__ */ (0, C.jsx)(Km, {
+ return /* @__PURE__ */ (0, w.jsx)(Jm, {
variant: "caption",
color: t,
- children: Mx[e.requirement] || ""
+ children: Nx[e.requirement] || ""
});
}
-function BS({ row: e, readOnly: t, toast: n }) {
- let [r, i] = (0, S.useState)({}), [a, o] = (0, S.useState)(""), c = Nx(e), l = ut({
- mutationFn: (t) => _x(e.provider, t),
+function VS({ row: e, readOnly: t, toast: n }) {
+ let [r, i] = (0, C.useState)({}), [a, o] = (0, C.useState)(""), s = Px(e), l = dt({
+ mutationFn: (t) => vx(e.provider, t),
onSuccess: (e, t) => {
if (e.note) {
o(e.note);
return;
}
- o(""), i({}), dh.invalidateQueries({
- queryKey: Eb,
+ o(""), i({}), fh.invalidateQueries({
+ queryKey: Db,
exact: !0
}), n(Object.keys(t).length ? "已保存来源凭据" : "已清除来源凭据");
},
- onError: (e) => o(J(e))
+ onError: (e) => o(q(e))
}), u = () => {
let e = Object.fromEntries(Object.entries(r).map(([e, t]) => [e, t.trim()]).filter(([, e]) => e));
if (!Object.keys(e).length) {
@@ -26802,20 +26804,20 @@ function BS({ row: e, readOnly: t, toast: n }) {
}
l.mutate(e);
};
- return /* @__PURE__ */ (0, C.jsxs)("div", {
+ return /* @__PURE__ */ (0, w.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, C.jsxs)(iS, { children: [e.why, e.where ? /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [" ", /* @__PURE__ */ (0, C.jsx)(sS, {
+ /* @__PURE__ */ (0, w.jsxs)(aS, { children: [e.why, e.where ? /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [" ", /* @__PURE__ */ (0, w.jsx)(cS, {
href: e.where,
children: "去取"
})] }) : null] }),
- e.howto ? /* @__PURE__ */ (0, C.jsx)(iS, { children: e.howto }) : null,
- /* @__PURE__ */ (0, C.jsx)("div", {
+ e.howto ? /* @__PURE__ */ (0, w.jsx)(aS, { children: e.howto }) : null,
+ /* @__PURE__ */ (0, w.jsx)("div", {
className: "flex flex-wrap items-end gap-3",
- children: (e.needs || []).map((n) => /* @__PURE__ */ (0, C.jsx)(Xy, {
+ children: (e.needs || []).map((n) => /* @__PURE__ */ (0, w.jsx)(Zy, {
type: "password",
label: n,
- placeholder: RS(e, n),
+ placeholder: zS(e, n),
autoComplete: "off",
spellCheck: "false",
isDisabled: t,
@@ -26827,23 +26829,23 @@ function BS({ row: e, readOnly: t, toast: n }) {
className: "w-48"
}, n))
}),
- /* @__PURE__ */ (0, C.jsxs)("div", {
+ /* @__PURE__ */ (0, w.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, C.jsx)(X, {
+ children: [/* @__PURE__ */ (0, w.jsx)(X, {
variant: "primary",
size: "small",
disabled: t,
...Z(l.isPending),
onClick: u,
children: "保存配置"
- }), c ? /* @__PURE__ */ (0, C.jsx)(X, {
+ }), s ? /* @__PURE__ */ (0, w.jsx)(X, {
variant: "danger",
size: "small",
disabled: t,
...Z(l.isPending),
- onClick: () => void s({
+ onClick: () => void c({
title: "清除来源凭据",
- body: IS,
+ body: LS,
confirmLabel: "清除来源凭据",
danger: !0,
onConfirm: () => l.mutateAsync({})
@@ -26851,49 +26853,49 @@ function BS({ row: e, readOnly: t, toast: n }) {
children: "清除"
}) : null]
}),
- a ? /* @__PURE__ */ (0, C.jsx)(aS, { children: a }) : null,
- (e.shared_fields || []).length ? /* @__PURE__ */ (0, C.jsx)(iS, { children: `${e.shared_fields.join("、")} 是从共享副本回填的,本机没有单独存。清除会把两边一起删。` }) : null,
- /* @__PURE__ */ (0, C.jsx)("p", {
+ a ? /* @__PURE__ */ (0, w.jsx)(oS, { children: a }) : null,
+ (e.shared_fields || []).length ? /* @__PURE__ */ (0, w.jsx)(aS, { children: `${e.shared_fields.join("、")} 是从共享副本回填的,本机没有单独存。清除会把两边一起删。` }) : null,
+ /* @__PURE__ */ (0, w.jsx)("p", {
className: "font-mono text-caption-1-regular break-all text-text-tertiary",
children: e.path
}),
- e.world_readable ? /* @__PURE__ */ (0, C.jsx)(ch, {
+ e.world_readable ? /* @__PURE__ */ (0, w.jsx)(J, {
tone: "error",
title: "凭据文件权限过宽",
- children: LS
+ children: RS
}) : null
]
});
}
-function VS({ row: e, readOnly: t, toast: n }) {
- let r = /* @__PURE__ */ (0, C.jsxs)("span", {
+function HS({ row: e, readOnly: t, toast: n }) {
+ let r = /* @__PURE__ */ (0, w.jsxs)("span", {
className: "flex min-w-0 items-center gap-2",
children: [
- /* @__PURE__ */ (0, C.jsx)("span", {
+ /* @__PURE__ */ (0, w.jsx)("span", {
className: "inline-flex size-3.5 shrink-0 items-center justify-center",
- children: /* @__PURE__ */ (0, C.jsx)(pS, { provider: e.provider })
+ children: /* @__PURE__ */ (0, w.jsx)(mS, { provider: e.provider })
}),
- /* @__PURE__ */ (0, C.jsx)("b", {
+ /* @__PURE__ */ (0, w.jsx)("b", {
className: "text-body-medium text-text-primary",
children: e.provider_label
}),
- /* @__PURE__ */ (0, C.jsx)(zS, { row: e }),
- e.missing.length ? /* @__PURE__ */ (0, C.jsx)(Km, {
+ /* @__PURE__ */ (0, w.jsx)(BS, { row: e }),
+ e.missing.length ? /* @__PURE__ */ (0, w.jsx)(Jm, {
variant: "caption",
color: "rose",
children: `缺 ${e.missing.join("、")}`
}) : null
]
});
- return e.requirement === "none" || e.requirement === "blocked" ? /* @__PURE__ */ (0, C.jsxs)("div", {
+ return e.requirement === "none" || e.requirement === "blocked" ? /* @__PURE__ */ (0, w.jsxs)("div", {
className: "flex flex-wrap items-center gap-3 border-b border-separator-border px-6 py-5 last:border-b-0 max-sm:px-4",
- children: [r, e.requirement === "blocked" ? /* @__PURE__ */ (0, C.jsx)(iS, { children: e.why }) : null]
- }) : /* @__PURE__ */ (0, C.jsxs)("div", {
+ children: [r, e.requirement === "blocked" ? /* @__PURE__ */ (0, w.jsx)(aS, { children: e.why }) : null]
+ }) : /* @__PURE__ */ (0, w.jsxs)("div", {
className: "flex flex-col gap-2 border-b border-separator-border px-6 py-5 last:border-b-0 max-sm:px-4",
- children: [r, /* @__PURE__ */ (0, C.jsx)(uS, {
- summary: Nx(e) ? "修改凭据" : "填写凭据",
- defaultOpen: e.requirement === "required" && !Nx(e),
- children: /* @__PURE__ */ (0, C.jsx)(BS, {
+ children: [r, /* @__PURE__ */ (0, w.jsx)(dS, {
+ summary: Px(e) ? "修改凭据" : "填写凭据",
+ defaultOpen: e.requirement === "required" && !Px(e),
+ children: /* @__PURE__ */ (0, w.jsx)(VS, {
row: e,
readOnly: t,
toast: n
@@ -26901,63 +26903,63 @@ function VS({ row: e, readOnly: t, toast: n }) {
})]
});
}
-function HS({ data: e, readOnly: t, toast: n }) {
- let r = e.providers || [], i = r.filter((e) => e.requirement === "required" && !Nx(e));
- return r.length ? /* @__PURE__ */ (0, C.jsxs)("div", {
- className: ih({
+function US({ data: e, readOnly: t, toast: n }) {
+ let r = e.providers || [], i = r.filter((e) => e.requirement === "required" && !Px(e));
+ return r.length ? /* @__PURE__ */ (0, w.jsxs)("div", {
+ className: oh({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
children: [
- /* @__PURE__ */ (0, C.jsxs)("div", {
+ /* @__PURE__ */ (0, w.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, C.jsx)("h3", {
+ children: [/* @__PURE__ */ (0, w.jsx)("h3", {
className: "mr-auto text-title-2-medium text-text-primary",
children: "来源和凭证"
- }), i.length ? /* @__PURE__ */ (0, C.jsx)("span", {
+ }), i.length ? /* @__PURE__ */ (0, w.jsx)("span", {
className: "text-body-2-regular text-text-error-primary",
children: `${i.length} 个待配置`
}) : null]
}),
- /* @__PURE__ */ (0, C.jsx)("div", {
- className: ih({
+ /* @__PURE__ */ (0, w.jsx)("div", {
+ className: oh({
padding: "none",
className: "flex flex-col overflow-hidden"
}),
- children: r.map((e) => /* @__PURE__ */ (0, C.jsx)(VS, {
+ children: r.map((e) => /* @__PURE__ */ (0, w.jsx)(HS, {
row: e,
readOnly: t,
toast: n
}, e.provider))
}),
- /* @__PURE__ */ (0, C.jsxs)("div", {
+ /* @__PURE__ */ (0, w.jsxs)("div", {
className: "flex flex-col gap-1",
children: [
- /* @__PURE__ */ (0, C.jsx)("b", {
+ /* @__PURE__ */ (0, w.jsx)("b", {
className: "text-body-medium text-text-primary",
- children: PS
+ children: FS
}),
- /* @__PURE__ */ (0, C.jsx)("span", {
+ /* @__PURE__ */ (0, w.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
- children: FS
+ children: IS
}),
- /* @__PURE__ */ (0, C.jsx)("span", {
+ /* @__PURE__ */ (0, w.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
children: `凭据文件在 ${e.root}`
})
]
})
]
- }) : /* @__PURE__ */ (0, C.jsx)(oh, {
+ }) : /* @__PURE__ */ (0, w.jsx)(ch, {
shell: "plain",
- icon: Yf,
+ icon: Qf,
title: "没有可配置的来源",
children: "已接入的站点及其凭据状态会显示在这里。"
});
}
//#endregion
//#region node_modules/@tanstack/table-core/build/lib/index.mjs
-function US() {
+function WS() {
return {
accessor: (e, t) => typeof e == "function" ? {
...t,
@@ -26970,24 +26972,24 @@ function US() {
group: (e) => e
};
}
-function WS(e, t) {
+function GS(e, t) {
return typeof e == "function" ? e(t) : e;
}
-function GS(e, t) {
+function KS(e, t) {
return (n) => {
t.setState((t) => ({
...t,
- [e]: WS(n, t[e])
+ [e]: GS(n, t[e])
}));
};
}
-function KS(e) {
+function qS(e) {
return e instanceof Function;
}
-function qS(e) {
+function JS(e) {
return Array.isArray(e) && e.every((e) => typeof e == "number");
}
-function JS(e, t) {
+function YS(e, t) {
let n = [], r = (e) => {
e.forEach((e) => {
n.push(e);
@@ -27026,7 +27028,7 @@ function $(e, t, n, r) {
onChange: r
};
}
-function YS(e, t, n, r) {
+function XS(e, t, n, r) {
let i = {
id: `${t.id}_${n.id}`,
row: t,
@@ -27051,7 +27053,7 @@ function YS(e, t, n, r) {
r.createCell == null || r.createCell(i, n, t, e);
}, {}), i;
}
-function XS(e, t, n, r) {
+function ZS(e, t, n, r) {
let i = {
...e._getDefaultColumnDef(),
...t
@@ -27077,8 +27079,8 @@ function XS(e, t, n, r) {
for (let t of e._features) t.createColumn == null || t.createColumn(c, e);
return c;
}
-var ZS = "debugHeaders";
-function QS(e, t, n) {
+var QS = "debugHeaders";
+function $S(e, t, n) {
let r = {
id: n.id ?? t.id,
column: t,
@@ -27106,7 +27108,7 @@ function QS(e, t, n) {
t.createHeader == null || t.createHeader(r, e);
}), r;
}
-var $S = { createTable: (e) => {
+var eC = { createTable: (e) => {
e.getHeaderGroups = Q(() => [
e.getAllColumns(),
e.getVisibleLeafColumns(),
@@ -27114,34 +27116,34 @@ var $S = { createTable: (e) => {
e.getState().columnPinning.right
], (t, n, r, i) => {
let a = r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], o = i?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], s = n.filter((e) => !(r != null && r.includes(e.id)) && !(i != null && i.includes(e.id)));
- return eC(t, [
+ return tC(t, [
...a,
...s,
...o
], e);
- }, $(e.options, ZS, "getHeaderGroups")), e.getCenterHeaderGroups = Q(() => [
+ }, $(e.options, QS, "getHeaderGroups")), e.getCenterHeaderGroups = Q(() => [
e.getAllColumns(),
e.getVisibleLeafColumns(),
e.getState().columnPinning.left,
e.getState().columnPinning.right
- ], (t, n, r, i) => (n = n.filter((e) => !(r != null && r.includes(e.id)) && !(i != null && i.includes(e.id))), eC(t, n, e, "center")), $(e.options, ZS, "getCenterHeaderGroups")), e.getLeftHeaderGroups = Q(() => [
+ ], (t, n, r, i) => (n = n.filter((e) => !(r != null && r.includes(e.id)) && !(i != null && i.includes(e.id))), tC(t, n, e, "center")), $(e.options, QS, "getCenterHeaderGroups")), e.getLeftHeaderGroups = Q(() => [
e.getAllColumns(),
e.getVisibleLeafColumns(),
e.getState().columnPinning.left
- ], (t, n, r) => eC(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "left"), $(e.options, ZS, "getLeftHeaderGroups")), e.getRightHeaderGroups = Q(() => [
+ ], (t, n, r) => tC(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "left"), $(e.options, QS, "getLeftHeaderGroups")), e.getRightHeaderGroups = Q(() => [
e.getAllColumns(),
e.getVisibleLeafColumns(),
e.getState().columnPinning.right
- ], (t, n, r) => eC(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "right"), $(e.options, ZS, "getRightHeaderGroups")), e.getFooterGroups = Q(() => [e.getHeaderGroups()], (e) => [...e].reverse(), $(e.options, ZS, "getFooterGroups")), e.getLeftFooterGroups = Q(() => [e.getLeftHeaderGroups()], (e) => [...e].reverse(), $(e.options, ZS, "getLeftFooterGroups")), e.getCenterFooterGroups = Q(() => [e.getCenterHeaderGroups()], (e) => [...e].reverse(), $(e.options, ZS, "getCenterFooterGroups")), e.getRightFooterGroups = Q(() => [e.getRightHeaderGroups()], (e) => [...e].reverse(), $(e.options, ZS, "getRightFooterGroups")), e.getFlatHeaders = Q(() => [e.getHeaderGroups()], (e) => e.map((e) => e.headers).flat(), $(e.options, ZS, "getFlatHeaders")), e.getLeftFlatHeaders = Q(() => [e.getLeftHeaderGroups()], (e) => e.map((e) => e.headers).flat(), $(e.options, ZS, "getLeftFlatHeaders")), e.getCenterFlatHeaders = Q(() => [e.getCenterHeaderGroups()], (e) => e.map((e) => e.headers).flat(), $(e.options, ZS, "getCenterFlatHeaders")), e.getRightFlatHeaders = Q(() => [e.getRightHeaderGroups()], (e) => e.map((e) => e.headers).flat(), $(e.options, ZS, "getRightFlatHeaders")), e.getCenterLeafHeaders = Q(() => [e.getCenterFlatHeaders()], (e) => e.filter((e) => {
+ ], (t, n, r) => tC(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "right"), $(e.options, QS, "getRightHeaderGroups")), e.getFooterGroups = Q(() => [e.getHeaderGroups()], (e) => [...e].reverse(), $(e.options, QS, "getFooterGroups")), e.getLeftFooterGroups = Q(() => [e.getLeftHeaderGroups()], (e) => [...e].reverse(), $(e.options, QS, "getLeftFooterGroups")), e.getCenterFooterGroups = Q(() => [e.getCenterHeaderGroups()], (e) => [...e].reverse(), $(e.options, QS, "getCenterFooterGroups")), e.getRightFooterGroups = Q(() => [e.getRightHeaderGroups()], (e) => [...e].reverse(), $(e.options, QS, "getRightFooterGroups")), e.getFlatHeaders = Q(() => [e.getHeaderGroups()], (e) => e.map((e) => e.headers).flat(), $(e.options, QS, "getFlatHeaders")), e.getLeftFlatHeaders = Q(() => [e.getLeftHeaderGroups()], (e) => e.map((e) => e.headers).flat(), $(e.options, QS, "getLeftFlatHeaders")), e.getCenterFlatHeaders = Q(() => [e.getCenterHeaderGroups()], (e) => e.map((e) => e.headers).flat(), $(e.options, QS, "getCenterFlatHeaders")), e.getRightFlatHeaders = Q(() => [e.getRightHeaderGroups()], (e) => e.map((e) => e.headers).flat(), $(e.options, QS, "getRightFlatHeaders")), e.getCenterLeafHeaders = Q(() => [e.getCenterFlatHeaders()], (e) => e.filter((e) => {
var t;
return !((t = e.subHeaders) != null && t.length);
- }), $(e.options, ZS, "getCenterLeafHeaders")), e.getLeftLeafHeaders = Q(() => [e.getLeftFlatHeaders()], (e) => e.filter((e) => {
+ }), $(e.options, QS, "getCenterLeafHeaders")), e.getLeftLeafHeaders = Q(() => [e.getLeftFlatHeaders()], (e) => e.filter((e) => {
var t;
return !((t = e.subHeaders) != null && t.length);
- }), $(e.options, ZS, "getLeftLeafHeaders")), e.getRightLeafHeaders = Q(() => [e.getRightFlatHeaders()], (e) => e.filter((e) => {
+ }), $(e.options, QS, "getLeftLeafHeaders")), e.getRightLeafHeaders = Q(() => [e.getRightFlatHeaders()], (e) => e.filter((e) => {
var t;
return !((t = e.subHeaders) != null && t.length);
- }), $(e.options, ZS, "getRightLeafHeaders")), e.getLeafHeaders = Q(() => [
+ }), $(e.options, QS, "getRightLeafHeaders")), e.getLeafHeaders = Q(() => [
e.getLeftHeaderGroups(),
e.getCenterHeaderGroups(),
e.getRightHeaderGroups()
@@ -27149,9 +27151,9 @@ var $S = { createTable: (e) => {
...e[0]?.headers ?? [],
...t[0]?.headers ?? [],
...n[0]?.headers ?? []
- ].map((e) => e.getLeafHeaders()).flat(), $(e.options, ZS, "getLeafHeaders"));
+ ].map((e) => e.getLeafHeaders()).flat(), $(e.options, QS, "getLeafHeaders"));
} };
-function eC(e, t, n, r) {
+function tC(e, t, n, r) {
let i = 0, a = function(e, t) {
t === void 0 && (t = 1), i = Math.max(i, t), e.filter((e) => e.getIsVisible()).forEach((e) => {
var n;
@@ -27169,7 +27171,7 @@ function eC(e, t, n, r) {
let o = [...a].reverse()[0], s = e.column.depth === i.depth, c, l = !1;
if (s && e.column.parent ? c = e.column.parent : (c = e.column, l = !0), o && o?.column === c) o.subHeaders.push(e);
else {
- let i = QS(n, c, {
+ let i = $S(n, c, {
id: [
r,
t,
@@ -27186,7 +27188,7 @@ function eC(e, t, n, r) {
i.headers.push(e), e.headerGroup = i;
}), o.push(i), t > 0 && s(a, t - 1);
};
- s(t.map((e, t) => QS(n, e, {
+ s(t.map((e, t) => $S(n, e, {
depth: i,
index: t
})), i - 1), o.reverse();
@@ -27204,7 +27206,7 @@ function eC(e, t, n, r) {
});
return c(o[0]?.headers ?? []), o;
}
-var tC = (e, t, n, r, i, a, o) => {
+var nC = (e, t, n, r, i, a, o) => {
let s = {
id: t,
index: r,
@@ -27225,7 +27227,7 @@ var tC = (e, t, n, r, i, a, o) => {
},
renderValue: (t) => s.getValue(t) ?? e.options.renderFallbackValue,
subRows: a ?? [],
- getLeafRows: () => JS(s.subRows, (e) => e.subRows),
+ getLeafRows: () => YS(s.subRows, (e) => e.subRows),
getParentRow: () => s.parentId ? e.getRow(s.parentId, !0) : void 0,
getParentRows: () => {
let e = [], t = s;
@@ -27236,7 +27238,7 @@ var tC = (e, t, n, r, i, a, o) => {
}
return e.reverse();
},
- getAllCells: Q(() => [e.getAllLeafColumns()], (t) => t.map((t) => YS(e, s, t, t.id)), $(e.options, "debugRows", "getAllCells")),
+ getAllCells: Q(() => [e.getAllLeafColumns()], (t) => t.map((t) => XS(e, s, t, t.id)), $(e.options, "debugRows", "getAllCells")),
_getAllCellsByColumnId: Q(() => [s.getAllCells()], (e) => e.reduce((e, t) => (e[t.column.id] = t, e), {}), $(e.options, "debugRows", "getAllCellsByColumnId"))
};
for (let t = 0; t < e._features.length; t++) {
@@ -27244,87 +27246,87 @@ var tC = (e, t, n, r, i, a, o) => {
n == null || n.createRow == null || n.createRow(s, e);
}
return s;
-}, nC = { createColumn: (e, t) => {
+}, rC = { createColumn: (e, t) => {
e._getFacetedRowModel = t.options.getFacetedRowModel && t.options.getFacetedRowModel(t, e.id), e.getFacetedRowModel = () => e._getFacetedRowModel ? e._getFacetedRowModel() : t.getPreFilteredRowModel(), e._getFacetedUniqueValues = t.options.getFacetedUniqueValues && t.options.getFacetedUniqueValues(t, e.id), e.getFacetedUniqueValues = () => e._getFacetedUniqueValues ? e._getFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getFacetedMinMaxValues = t.options.getFacetedMinMaxValues && t.options.getFacetedMinMaxValues(t, e.id), e.getFacetedMinMaxValues = () => {
if (e._getFacetedMinMaxValues) return e._getFacetedMinMaxValues();
};
-} }, rC = (e, t, n) => {
+} }, iC = (e, t, n) => {
var r, i;
let a = n == null || (r = n.toString()) == null ? void 0 : r.toLowerCase();
return !!((i = e.getValue(t)) != null && (i = i.toString()) != null && (i = i.toLowerCase()) != null && i.includes(a));
};
-rC.autoRemove = (e) => pC(e);
-var iC = (e, t, n) => {
+iC.autoRemove = (e) => mC(e);
+var aC = (e, t, n) => {
var r;
return !!((r = e.getValue(t)) != null && (r = r.toString()) != null && r.includes(n));
};
-iC.autoRemove = (e) => pC(e);
-var aC = (e, t, n) => {
+aC.autoRemove = (e) => mC(e);
+var oC = (e, t, n) => {
var r;
return ((r = e.getValue(t)) == null || (r = r.toString()) == null ? void 0 : r.toLowerCase()) === n?.toLowerCase();
};
-aC.autoRemove = (e) => pC(e);
-var oC = (e, t, n) => e.getValue(t)?.includes(n);
-oC.autoRemove = (e) => pC(e);
-var sC = (e, t, n) => !n.some((n) => {
+oC.autoRemove = (e) => mC(e);
+var sC = (e, t, n) => e.getValue(t)?.includes(n);
+sC.autoRemove = (e) => mC(e);
+var cC = (e, t, n) => !n.some((n) => {
var r;
return !((r = e.getValue(t)) != null && r.includes(n));
});
-sC.autoRemove = (e) => pC(e) || !(e != null && e.length);
-var cC = (e, t, n) => n.some((n) => e.getValue(t)?.includes(n));
-cC.autoRemove = (e) => pC(e) || !(e != null && e.length);
-var lC = (e, t, n) => e.getValue(t) === n;
-lC.autoRemove = (e) => pC(e);
-var uC = (e, t, n) => e.getValue(t) == n;
-uC.autoRemove = (e) => pC(e);
-var dC = (e, t, n) => {
+cC.autoRemove = (e) => mC(e) || !(e != null && e.length);
+var lC = (e, t, n) => n.some((n) => e.getValue(t)?.includes(n));
+lC.autoRemove = (e) => mC(e) || !(e != null && e.length);
+var uC = (e, t, n) => e.getValue(t) === n;
+uC.autoRemove = (e) => mC(e);
+var dC = (e, t, n) => e.getValue(t) == n;
+dC.autoRemove = (e) => mC(e);
+var fC = (e, t, n) => {
let [r, i] = n, a = e.getValue(t);
return a >= r && a <= i;
};
-dC.resolveFilterValue = (e) => {
+fC.resolveFilterValue = (e) => {
let [t, n] = e, r = typeof t == "number" ? t : parseFloat(t), i = typeof n == "number" ? n : parseFloat(n), a = t === null || Number.isNaN(r) ? -Infinity : r, o = n === null || Number.isNaN(i) ? Infinity : i;
if (a > o) {
let e = a;
a = o, o = e;
}
return [a, o];
-}, dC.autoRemove = (e) => pC(e) || pC(e[0]) && pC(e[1]);
-var fC = {
- includesString: rC,
- includesStringSensitive: iC,
- equalsString: aC,
- arrIncludes: oC,
- arrIncludesAll: sC,
- arrIncludesSome: cC,
- equals: lC,
- weakEquals: uC,
- inNumberRange: dC
+}, fC.autoRemove = (e) => mC(e) || mC(e[0]) && mC(e[1]);
+var pC = {
+ includesString: iC,
+ includesStringSensitive: aC,
+ equalsString: oC,
+ arrIncludes: sC,
+ arrIncludesAll: cC,
+ arrIncludesSome: lC,
+ equals: uC,
+ weakEquals: dC,
+ inNumberRange: fC
};
-function pC(e) {
+function mC(e) {
return e == null || e === "";
}
-var mC = {
+var hC = {
getDefaultColumnDef: () => ({ filterFn: "auto" }),
getInitialState: (e) => ({
columnFilters: [],
...e
}),
getDefaultOptions: (e) => ({
- onColumnFiltersChange: GS("columnFilters", e),
+ onColumnFiltersChange: KS("columnFilters", e),
filterFromLeafRows: !1,
maxLeafRowFilterDepth: 100
}),
createColumn: (e, t) => {
e.getAutoFilterFn = () => {
let n = t.getCoreRowModel().flatRows[0]?.getValue(e.id);
- return typeof n == "string" ? fC.includesString : typeof n == "number" ? fC.inNumberRange : typeof n == "boolean" || typeof n == "object" && n ? fC.equals : Array.isArray(n) ? fC.arrIncludes : fC.weakEquals;
- }, e.getFilterFn = () => KS(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : t.options.filterFns?.[e.columnDef.filterFn] ?? fC[e.columnDef.filterFn], e.getCanFilter = () => (e.columnDef.enableColumnFilter ?? !0) && (t.options.enableColumnFilters ?? !0) && (t.options.enableFilters ?? !0) && !!e.accessorFn, e.getIsFiltered = () => e.getFilterIndex() > -1, e.getFilterValue = () => {
+ return typeof n == "string" ? pC.includesString : typeof n == "number" ? pC.inNumberRange : typeof n == "boolean" || typeof n == "object" && n ? pC.equals : Array.isArray(n) ? pC.arrIncludes : pC.weakEquals;
+ }, e.getFilterFn = () => qS(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : t.options.filterFns?.[e.columnDef.filterFn] ?? pC[e.columnDef.filterFn], e.getCanFilter = () => (e.columnDef.enableColumnFilter ?? !0) && (t.options.enableColumnFilters ?? !0) && (t.options.enableFilters ?? !0) && !!e.accessorFn, e.getIsFiltered = () => e.getFilterIndex() > -1, e.getFilterValue = () => {
var n;
return (n = t.getState().columnFilters) == null || (n = n.find((t) => t.id === e.id)) == null ? void 0 : n.value;
}, e.getFilterIndex = () => t.getState().columnFilters?.findIndex((t) => t.id === e.id) ?? -1, e.setFilterValue = (n) => {
t.setColumnFilters((t) => {
- let r = e.getFilterFn(), i = t?.find((t) => t.id === e.id), a = WS(n, i ? i.value : void 0);
- if (hC(r, a, e)) return t?.filter((t) => t.id !== e.id) ?? [];
+ let r = e.getFilterFn(), i = t?.find((t) => t.id === e.id), a = GS(n, i ? i.value : void 0);
+ if (gC(r, a, e)) return t?.filter((t) => t.id !== e.id) ?? [];
let o = {
id: e.id,
value: a
@@ -27339,19 +27341,19 @@ var mC = {
createTable: (e) => {
e.setColumnFilters = (t) => {
let n = e.getAllLeafColumns();
- e.options.onColumnFiltersChange == null || e.options.onColumnFiltersChange((e) => WS(t, e)?.filter((e) => {
+ e.options.onColumnFiltersChange == null || e.options.onColumnFiltersChange((e) => GS(t, e)?.filter((e) => {
let t = n.find((t) => t.id === e.id);
- return !(t && hC(t.getFilterFn(), e.value, t));
+ return !(t && gC(t.getFilterFn(), e.value, t));
}));
}, e.resetColumnFilters = (t) => {
e.setColumnFilters(t ? [] : e.initialState?.columnFilters ?? []);
}, e.getPreFilteredRowModel = () => e.getCoreRowModel(), e.getFilteredRowModel = () => (!e._getFilteredRowModel && e.options.getFilteredRowModel && (e._getFilteredRowModel = e.options.getFilteredRowModel(e)), e.options.manualFiltering || !e._getFilteredRowModel ? e.getPreFilteredRowModel() : e._getFilteredRowModel());
}
};
-function hC(e, t, n) {
+function gC(e, t, n) {
return (e && e.autoRemove ? e.autoRemove(t, n) : !1) || t === void 0 || typeof t == "string" && !t;
}
-var gC = {
+var _C = {
sum: (e, t, n) => n.reduce((t, n) => {
let r = n.getValue(e);
return t + (typeof r == "number" ? r : 0);
@@ -27387,7 +27389,7 @@ var gC = {
median: (e, t) => {
if (!t.length) return;
let n = t.map((t) => t.getValue(e));
- if (!qS(n)) return;
+ if (!JS(n)) return;
if (n.length === 1) return n[0];
let r = Math.floor(n.length / 2), i = n.sort((e, t) => e - t);
return n.length % 2 == 0 ? (i[r - 1] + i[r]) / 2 : i[r];
@@ -27395,7 +27397,7 @@ var gC = {
unique: (e, t) => Array.from(new Set(t.map((t) => t.getValue(e))).values()),
uniqueCount: (e, t) => new Set(t.map((t) => t.getValue(e))).size,
count: (e, t) => t.length
-}, _C = {
+}, vC = {
getDefaultColumnDef: () => ({
aggregatedCell: (e) => {
var t;
@@ -27408,7 +27410,7 @@ var gC = {
...e
}),
getDefaultOptions: (e) => ({
- onGroupingChange: GS("grouping", e),
+ onGroupingChange: KS("grouping", e),
groupedColumnMode: "reorder"
}),
createColumn: (e, t) => {
@@ -27421,11 +27423,11 @@ var gC = {
};
}, e.getAutoAggregationFn = () => {
let n = t.getCoreRowModel().flatRows[0]?.getValue(e.id);
- if (typeof n == "number") return gC.sum;
- if (Object.prototype.toString.call(n) === "[object Date]") return gC.extent;
+ if (typeof n == "number") return _C.sum;
+ if (Object.prototype.toString.call(n) === "[object Date]") return _C.extent;
}, e.getAggregationFn = () => {
if (!e) throw Error();
- return KS(e.columnDef.aggregationFn) ? e.columnDef.aggregationFn : e.columnDef.aggregationFn === "auto" ? e.getAutoAggregationFn() : t.options.aggregationFns?.[e.columnDef.aggregationFn] ?? gC[e.columnDef.aggregationFn];
+ return qS(e.columnDef.aggregationFn) ? e.columnDef.aggregationFn : e.columnDef.aggregationFn === "auto" ? e.getAutoAggregationFn() : t.options.aggregationFns?.[e.columnDef.aggregationFn] ?? _C[e.columnDef.aggregationFn];
};
},
createTable: (e) => {
@@ -27447,20 +27449,20 @@ var gC = {
};
}
};
-function vC(e, t, n) {
+function yC(e, t, n) {
if (!(t != null && t.length) || !n) return e;
let r = e.filter((e) => !t.includes(e.id));
return n === "remove" ? r : [...t.map((t) => e.find((e) => e.id === t)).filter(Boolean), ...r];
}
-var yC = {
+var bC = {
getInitialState: (e) => ({
columnOrder: [],
...e
}),
- getDefaultOptions: (e) => ({ onColumnOrderChange: GS("columnOrder", e) }),
+ getDefaultOptions: (e) => ({ onColumnOrderChange: KS("columnOrder", e) }),
createColumn: (e, t) => {
- e.getIndex = Q((e) => [AC(t, e)], (t) => t.findIndex((t) => t.id === e.id), $(t.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (n) => AC(t, n)[0]?.id === e.id, e.getIsLastColumn = (n) => {
- let r = AC(t, n);
+ e.getIndex = Q((e) => [jC(t, e)], (t) => t.findIndex((t) => t.id === e.id), $(t.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (n) => jC(t, n)[0]?.id === e.id, e.getIsLastColumn = (n) => {
+ let r = jC(t, n);
return r[r.length - 1]?.id === e.id;
};
},
@@ -27482,18 +27484,18 @@ var yC = {
}
i = [...i, ...n];
}
- return vC(i, t, n);
+ return yC(i, t, n);
}, $(e.options, "debugTable", "_getOrderColumnsFn"));
}
-}, bC = () => ({
+}, xC = () => ({
left: [],
right: []
-}), xC = {
+}), SC = {
getInitialState: (e) => ({
- columnPinning: bC(),
+ columnPinning: xC(),
...e
}),
- getDefaultOptions: (e) => ({ onColumnPinningChange: GS("columnPinning", e) }),
+ getDefaultOptions: (e) => ({ onColumnPinningChange: KS("columnPinning", e) }),
createColumn: (e, t) => {
e.pin = (n) => {
let r = e.getLeafColumns().map((e) => e.id).filter(Boolean);
@@ -27533,7 +27535,7 @@ var yC = {
})), $(t.options, "debugRows", "getRightVisibleCells"));
},
createTable: (e) => {
- e.setColumnPinning = (t) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(t), e.resetColumnPinning = (t) => e.setColumnPinning(t ? bC() : e.initialState?.columnPinning ?? bC()), e.getIsSomeColumnsPinned = (t) => {
+ e.setColumnPinning = (t) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(t), e.resetColumnPinning = (t) => e.setColumnPinning(t ? xC() : e.initialState?.columnPinning ?? xC()), e.getIsSomeColumnsPinned = (t) => {
let n = e.getState().columnPinning;
return t ? !!n[t]?.length : !!(n.left?.length || n.right?.length);
}, e.getLeftLeafColumns = Q(() => [e.getAllLeafColumns(), e.getState().columnPinning.left], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), $(e.options, "debugColumns", "getLeftLeafColumns")), e.getRightLeafColumns = Q(() => [e.getAllLeafColumns(), e.getState().columnPinning.right], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), $(e.options, "debugColumns", "getRightLeafColumns")), e.getCenterLeafColumns = Q(() => [
@@ -27546,44 +27548,44 @@ var yC = {
}, $(e.options, "debugColumns", "getCenterLeafColumns"));
}
};
-function SC(e) {
+function CC(e) {
return e || (typeof document < "u" ? document : null);
}
-var CC = {
+var wC = {
size: 150,
minSize: 20,
maxSize: 2 ** 53 - 1
-}, wC = () => ({
+}, TC = () => ({
startOffset: null,
startSize: null,
deltaOffset: null,
deltaPercentage: null,
isResizingColumn: !1,
columnSizingStart: []
-}), TC = {
- getDefaultColumnDef: () => CC,
+}), EC = {
+ getDefaultColumnDef: () => wC,
getInitialState: (e) => ({
columnSizing: {},
- columnSizingInfo: wC(),
+ columnSizingInfo: TC(),
...e
}),
getDefaultOptions: (e) => ({
columnResizeMode: "onEnd",
columnResizeDirection: "ltr",
- onColumnSizingChange: GS("columnSizing", e),
- onColumnSizingInfoChange: GS("columnSizingInfo", e)
+ onColumnSizingChange: KS("columnSizing", e),
+ onColumnSizingInfoChange: KS("columnSizingInfo", e)
}),
createColumn: (e, t) => {
e.getSize = () => {
let n = t.getState().columnSizing[e.id];
- return Math.min(Math.max(e.columnDef.minSize ?? CC.minSize, n ?? e.columnDef.size ?? CC.size), e.columnDef.maxSize ?? CC.maxSize);
+ return Math.min(Math.max(e.columnDef.minSize ?? wC.minSize, n ?? e.columnDef.size ?? wC.size), e.columnDef.maxSize ?? wC.maxSize);
}, e.getStart = Q((e) => [
e,
- AC(t, e),
+ jC(t, e),
t.getState().columnSizing
], (t, n) => n.slice(0, e.getIndex(t)).reduce((e, t) => e + t.getSize(), 0), $(t.options, "debugColumns", "getStart")), e.getAfter = Q((e) => [
e,
- AC(t, e),
+ jC(t, e),
t.getState().columnSizing
], (t, n) => n.slice(e.getIndex(t) + 1).reduce((e, t) => e + t.getSize(), 0), $(t.options, "debugColumns", "getAfter")), e.resetSize = () => {
t.setColumnSizing((t) => {
@@ -27607,8 +27609,8 @@ var CC = {
}, e.getResizeHandler = (n) => {
let r = t.getColumn(e.column.id), i = r?.getCanResize();
return (a) => {
- if (!r || !i || (a.persist == null || a.persist(), OC(a) && a.touches && a.touches.length > 1)) return;
- let o = e.getSize(), s = e ? e.getLeafHeaders().map((e) => [e.column.id, e.column.getSize()]) : [[r.id, r.getSize()]], c = OC(a) ? Math.round(a.touches[0].clientX) : a.clientX, l = {}, u = (e, n) => {
+ if (!r || !i || (a.persist == null || a.persist(), kC(a) && a.touches && a.touches.length > 1)) return;
+ let o = e.getSize(), s = e ? e.getLeafHeaders().map((e) => [e.column.id, e.column.getSize()]) : [[r.id, r.getSize()]], c = kC(a) ? Math.round(a.touches[0].clientX) : a.clientX, l = {}, u = (e, n) => {
typeof n == "number" && (t.setColumnSizingInfo((e) => {
let r = t.options.columnResizeDirection === "rtl" ? -1 : 1, i = (n - (e?.startOffset ?? 0)) * r, a = Math.max(i / (e?.startSize ?? 0), -.999999);
return e.columnSizingStart.forEach((e) => {
@@ -27633,7 +27635,7 @@ var CC = {
deltaPercentage: null,
columnSizingStart: []
}));
- }, p = SC(n), m = {
+ }, p = CC(n), m = {
moveHandler: (e) => d(e.clientX),
upHandler: (e) => {
p?.removeEventListener("mousemove", m.moveHandler), p?.removeEventListener("mouseup", m.upHandler), f(e.clientX);
@@ -27643,8 +27645,8 @@ var CC = {
upHandler: (e) => {
p?.removeEventListener("touchmove", h.moveHandler), p?.removeEventListener("touchend", h.upHandler), e.cancelable && (e.preventDefault(), e.stopPropagation()), f(e.touches[0]?.clientX);
}
- }, g = DC() ? { passive: !1 } : !1;
- OC(a) ? (p?.addEventListener("touchmove", h.moveHandler, g), p?.addEventListener("touchend", h.upHandler, g)) : (p?.addEventListener("mousemove", m.moveHandler, g), p?.addEventListener("mouseup", m.upHandler, g)), t.setColumnSizingInfo((e) => ({
+ }, g = OC() ? { passive: !1 } : !1;
+ kC(a) ? (p?.addEventListener("touchmove", h.moveHandler, g), p?.addEventListener("touchend", h.upHandler, g)) : (p?.addEventListener("mousemove", m.moveHandler, g), p?.addEventListener("mouseup", m.upHandler, g)), t.setColumnSizingInfo((e) => ({
...e,
startOffset: c,
startSize: o,
@@ -27660,12 +27662,12 @@ var CC = {
e.setColumnSizing = (t) => e.options.onColumnSizingChange == null ? void 0 : e.options.onColumnSizingChange(t), e.setColumnSizingInfo = (t) => e.options.onColumnSizingInfoChange == null ? void 0 : e.options.onColumnSizingInfoChange(t), e.resetColumnSizing = (t) => {
e.setColumnSizing(t ? {} : e.initialState.columnSizing ?? {});
}, e.resetHeaderSizeInfo = (t) => {
- e.setColumnSizingInfo(t ? wC() : e.initialState.columnSizingInfo ?? wC());
+ e.setColumnSizingInfo(t ? TC() : e.initialState.columnSizingInfo ?? TC());
}, e.getTotalSize = () => e.getHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0, e.getLeftTotalSize = () => e.getLeftHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0, e.getCenterTotalSize = () => e.getCenterHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0, e.getRightTotalSize = () => e.getRightHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0;
}
-}, EC = null;
-function DC() {
- if (typeof EC == "boolean") return EC;
+}, DC = null;
+function OC() {
+ if (typeof DC == "boolean") return DC;
let e = !1;
try {
let t = { get passive() {
@@ -27675,17 +27677,17 @@ function DC() {
} catch {
e = !1;
}
- return EC = e, EC;
+ return DC = e, DC;
}
-function OC(e) {
+function kC(e) {
return e.type === "touchstart";
}
-var kC = {
+var AC = {
getInitialState: (e) => ({
columnVisibility: {},
...e
}),
- getDefaultOptions: (e) => ({ onColumnVisibilityChange: GS("columnVisibility", e) }),
+ getDefaultOptions: (e) => ({ onColumnVisibilityChange: KS("columnVisibility", e) }),
createColumn: (e, t) => {
e.toggleVisibility = (n) => {
e.getCanHide() && t.setColumnVisibility((t) => ({
@@ -27724,20 +27726,20 @@ var kC = {
};
}
};
-function AC(e, t) {
+function jC(e, t) {
return t ? t === "center" ? e.getCenterVisibleLeafColumns() : t === "left" ? e.getLeftVisibleLeafColumns() : e.getRightVisibleLeafColumns() : e.getVisibleLeafColumns();
}
-var jC = { createTable: (e) => {
+var MC = { createTable: (e) => {
e._getGlobalFacetedRowModel = e.options.getFacetedRowModel && e.options.getFacetedRowModel(e, "__global__"), e.getGlobalFacetedRowModel = () => e.options.manualFiltering || !e._getGlobalFacetedRowModel ? e.getPreFilteredRowModel() : e._getGlobalFacetedRowModel(), e._getGlobalFacetedUniqueValues = e.options.getFacetedUniqueValues && e.options.getFacetedUniqueValues(e, "__global__"), e.getGlobalFacetedUniqueValues = () => e._getGlobalFacetedUniqueValues ? e._getGlobalFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getGlobalFacetedMinMaxValues = e.options.getFacetedMinMaxValues && e.options.getFacetedMinMaxValues(e, "__global__"), e.getGlobalFacetedMinMaxValues = () => {
if (e._getGlobalFacetedMinMaxValues) return e._getGlobalFacetedMinMaxValues();
};
-} }, MC = {
+} }, NC = {
getInitialState: (e) => ({
globalFilter: void 0,
...e
}),
getDefaultOptions: (e) => ({
- onGlobalFilterChange: GS("globalFilter", e),
+ onGlobalFilterChange: KS("globalFilter", e),
globalFilterFn: "auto",
getColumnCanGlobalFilter: (t) => {
var n;
@@ -27749,22 +27751,22 @@ var jC = { createTable: (e) => {
e.getCanGlobalFilter = () => (e.columnDef.enableGlobalFilter ?? !0) && (t.options.enableGlobalFilter ?? !0) && (t.options.enableFilters ?? !0) && ((t.options.getColumnCanGlobalFilter == null ? void 0 : t.options.getColumnCanGlobalFilter(e)) ?? !0) && !!e.accessorFn;
},
createTable: (e) => {
- e.getGlobalAutoFilterFn = () => fC.includesString, e.getGlobalFilterFn = () => {
+ e.getGlobalAutoFilterFn = () => pC.includesString, e.getGlobalFilterFn = () => {
let { globalFilterFn: t } = e.options;
- return KS(t) ? t : t === "auto" ? e.getGlobalAutoFilterFn() : e.options.filterFns?.[t] ?? fC[t];
+ return qS(t) ? t : t === "auto" ? e.getGlobalAutoFilterFn() : e.options.filterFns?.[t] ?? pC[t];
}, e.setGlobalFilter = (t) => {
e.options.onGlobalFilterChange == null || e.options.onGlobalFilterChange(t);
}, e.resetGlobalFilter = (t) => {
e.setGlobalFilter(t ? void 0 : e.initialState.globalFilter);
};
}
-}, NC = {
+}, PC = {
getInitialState: (e) => ({
expanded: {},
...e
}),
getDefaultOptions: (e) => ({
- onExpandedChange: GS("expanded", e),
+ onExpandedChange: KS("expanded", e),
paginateExpandedRows: !0
}),
createTable: (e) => {
@@ -27835,18 +27837,18 @@ var jC = { createTable: (e) => {
};
};
}
-}, PC = 0, FC = 10, IC = () => ({
- pageIndex: PC,
- pageSize: FC
-}), LC = {
+}, FC = 0, IC = 10, LC = () => ({
+ pageIndex: FC,
+ pageSize: IC
+}), RC = {
getInitialState: (e) => ({
...e,
pagination: {
- ...IC(),
+ ...LC(),
...e?.pagination
}
}),
- getDefaultOptions: (e) => ({ onPaginationChange: GS("pagination", e) }),
+ getDefaultOptions: (e) => ({ onPaginationChange: KS("pagination", e) }),
createTable: (e) => {
let t = !1, n = !1;
e._autoResetPageIndex = () => {
@@ -27862,11 +27864,11 @@ var jC = { createTable: (e) => {
e.resetPageIndex(), n = !1;
});
}
- }, e.setPagination = (t) => e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange((e) => WS(t, e)), e.resetPagination = (t) => {
- e.setPagination(t ? IC() : e.initialState.pagination ?? IC());
+ }, e.setPagination = (t) => e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange((e) => GS(t, e)), e.resetPagination = (t) => {
+ e.setPagination(t ? LC() : e.initialState.pagination ?? LC());
}, e.setPageIndex = (t) => {
e.setPagination((n) => {
- let r = WS(t, n.pageIndex), i = e.options.pageCount === void 0 || e.options.pageCount === -1 ? 2 ** 53 - 1 : e.options.pageCount - 1;
+ let r = GS(t, n.pageIndex), i = e.options.pageCount === void 0 || e.options.pageCount === -1 ? 2 ** 53 - 1 : e.options.pageCount - 1;
return r = Math.max(0, Math.min(r, i)), {
...n,
pageIndex: r
@@ -27874,13 +27876,13 @@ var jC = { createTable: (e) => {
});
}, e.resetPageIndex = (t) => {
var n;
- e.setPageIndex(t ? PC : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageIndex) ?? PC);
+ e.setPageIndex(t ? FC : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageIndex) ?? FC);
}, e.resetPageSize = (t) => {
var n;
- e.setPageSize(t ? FC : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageSize) ?? FC);
+ e.setPageSize(t ? IC : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageSize) ?? IC);
}, e.setPageSize = (t) => {
e.setPagination((e) => {
- let n = Math.max(1, WS(t, e.pageSize)), r = e.pageSize * e.pageIndex, i = Math.floor(r / n);
+ let n = Math.max(1, GS(t, e.pageSize)), r = e.pageSize * e.pageIndex, i = Math.floor(r / n);
return {
...e,
pageIndex: i,
@@ -27888,7 +27890,7 @@ var jC = { createTable: (e) => {
};
});
}, e.setPageCount = (t) => e.setPagination((n) => {
- let r = WS(t, e.options.pageCount ?? -1);
+ let r = GS(t, e.options.pageCount ?? -1);
return typeof r == "number" && (r = Math.max(-1, r)), {
...n,
pageCount: r
@@ -27901,15 +27903,15 @@ var jC = { createTable: (e) => {
return n === -1 || n !== 0 && t < n - 1;
}, e.previousPage = () => e.setPageIndex((e) => e - 1), e.nextPage = () => e.setPageIndex((e) => e + 1), e.firstPage = () => e.setPageIndex(0), e.lastPage = () => e.setPageIndex(e.getPageCount() - 1), e.getPrePaginationRowModel = () => e.getExpandedRowModel(), e.getPaginationRowModel = () => (!e._getPaginationRowModel && e.options.getPaginationRowModel && (e._getPaginationRowModel = e.options.getPaginationRowModel(e)), e.options.manualPagination || !e._getPaginationRowModel ? e.getPrePaginationRowModel() : e._getPaginationRowModel()), e.getPageCount = () => e.options.pageCount ?? Math.ceil(e.getRowCount() / e.getState().pagination.pageSize), e.getRowCount = () => e.options.rowCount ?? e.getPrePaginationRowModel().rows.length;
}
-}, RC = () => ({
+}, zC = () => ({
top: [],
bottom: []
-}), zC = {
+}), BC = {
getInitialState: (e) => ({
- rowPinning: RC(),
+ rowPinning: zC(),
...e
}),
- getDefaultOptions: (e) => ({ onRowPinningChange: GS("rowPinning", e) }),
+ getDefaultOptions: (e) => ({ onRowPinningChange: KS("rowPinning", e) }),
createRow: (e, t) => {
e.pin = (n, r, i) => {
let a = r ? e.getLeafRows().map((e) => {
@@ -27948,7 +27950,7 @@ var jC = { createTable: (e) => {
};
},
createTable: (e) => {
- e.setRowPinning = (t) => e.options.onRowPinningChange == null ? void 0 : e.options.onRowPinningChange(t), e.resetRowPinning = (t) => e.setRowPinning(t ? RC() : e.initialState?.rowPinning ?? RC()), e.getIsSomeRowsPinned = (t) => {
+ e.setRowPinning = (t) => e.options.onRowPinningChange == null ? void 0 : e.options.onRowPinningChange(t), e.resetRowPinning = (t) => e.setRowPinning(t ? zC() : e.initialState?.rowPinning ?? zC()), e.getIsSomeRowsPinned = (t) => {
let n = e.getState().rowPinning;
return t ? !!n[t]?.length : !!(n.top?.length || n.bottom?.length);
}, e._getPinnedRows = (t, n, r) => (e.options.keepPinnedRows ?? !0 ? (n ?? []).map((t) => {
@@ -27966,13 +27968,13 @@ var jC = { createTable: (e) => {
return e.filter((e) => !r.has(e.id));
}, $(e.options, "debugRows", "getCenterRows"));
}
-}, BC = {
+}, VC = {
getInitialState: (e) => ({
rowSelection: {},
...e
}),
getDefaultOptions: (e) => ({
- onRowSelectionChange: GS("rowSelection", e),
+ onRowSelectionChange: KS("rowSelection", e),
enableRowSelection: !0,
enableMultiRowSelection: !0,
enableSubRowSelection: !0
@@ -27991,17 +27993,17 @@ var jC = { createTable: (e) => {
}, e.toggleAllPageRowsSelected = (t) => e.setRowSelection((n) => {
let r = t === void 0 ? !e.getIsAllPageRowsSelected() : t, i = { ...n };
return e.getRowModel().rows.forEach((t) => {
- VC(i, t.id, r, !0, e);
+ HC(i, t.id, r, !0, e);
}), i;
- }), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = Q(() => [e.getState().rowSelection, e.getCoreRowModel()], (t, n) => Object.keys(t).length ? HC(e, n) : {
+ }), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = Q(() => [e.getState().rowSelection, e.getCoreRowModel()], (t, n) => Object.keys(t).length ? UC(e, n) : {
rows: [],
flatRows: [],
rowsById: {}
- }, $(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = Q(() => [e.getState().rowSelection, e.getFilteredRowModel()], (t, n) => Object.keys(t).length ? HC(e, n) : {
+ }, $(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = Q(() => [e.getState().rowSelection, e.getFilteredRowModel()], (t, n) => Object.keys(t).length ? UC(e, n) : {
rows: [],
flatRows: [],
rowsById: {}
- }, $(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = Q(() => [e.getState().rowSelection, e.getSortedRowModel()], (t, n) => Object.keys(t).length ? HC(e, n) : {
+ }, $(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = Q(() => [e.getState().rowSelection, e.getSortedRowModel()], (t, n) => Object.keys(t).length ? UC(e, n) : {
rows: [],
flatRows: [],
rowsById: {}
@@ -28029,17 +28031,17 @@ var jC = { createTable: (e) => {
t.setRowSelection((a) => {
if (n = n === void 0 ? !i : n, e.getCanSelect() && i === n) return a;
let o = { ...a };
- return VC(o, e.id, n, r?.selectChildren ?? !0, t), o;
+ return HC(o, e.id, n, r?.selectChildren ?? !0, t), o;
});
}, e.getIsSelected = () => {
let { rowSelection: n } = t.getState();
- return UC(e, n);
+ return WC(e, n);
}, e.getIsSomeSelected = () => {
let { rowSelection: n } = t.getState();
- return WC(e, n) === "some";
+ return GC(e, n) === "some";
}, e.getIsAllSubRowsSelected = () => {
let { rowSelection: n } = t.getState();
- return WC(e, n) === "all";
+ return GC(e, n) === "all";
}, e.getCanSelect = () => typeof t.options.enableRowSelection == "function" ? t.options.enableRowSelection(e) : t.options.enableRowSelection ?? !0, e.getCanSelectSubRows = () => typeof t.options.enableSubRowSelection == "function" ? t.options.enableSubRowSelection(e) : t.options.enableSubRowSelection ?? !0, e.getCanMultiSelect = () => typeof t.options.enableMultiRowSelection == "function" ? t.options.enableMultiRowSelection(e) : t.options.enableMultiRowSelection ?? !0, e.getToggleSelectedHandler = () => {
let t = e.getCanSelect();
return (n) => {
@@ -28047,16 +28049,16 @@ var jC = { createTable: (e) => {
};
};
}
-}, VC = (e, t, n, r, i) => {
+}, HC = (e, t, n, r, i) => {
var a;
let o = i.getRow(t, !0);
- n ? (o.getCanMultiSelect() || Object.keys(e).forEach((t) => delete e[t]), o.getCanSelect() && (e[t] = !0)) : delete e[t], r && (a = o.subRows) != null && a.length && o.getCanSelectSubRows() && o.subRows.forEach((t) => VC(e, t.id, n, r, i));
+ n ? (o.getCanMultiSelect() || Object.keys(e).forEach((t) => delete e[t]), o.getCanSelect() && (e[t] = !0)) : delete e[t], r && (a = o.subRows) != null && a.length && o.getCanSelectSubRows() && o.subRows.forEach((t) => HC(e, t.id, n, r, i));
};
-function HC(e, t) {
+function UC(e, t) {
let n = e.getState().rowSelection, r = [], i = {}, a = function(e, t) {
return e.map((e) => {
var t;
- let o = UC(e, n);
+ let o = WC(e, n);
if (o && (r.push(e), i[e.id] = e), (t = e.subRows) != null && t.length && (e = {
...e,
subRows: a(e.subRows)
@@ -28069,32 +28071,32 @@ function HC(e, t) {
rowsById: i
};
}
-function UC(e, t) {
+function WC(e, t) {
return t[e.id] ?? !1;
}
-function WC(e, t, n) {
+function GC(e, t, n) {
var r;
if (!((r = e.subRows) != null && r.length)) return !1;
let i = !0, a = !1;
return e.subRows.forEach((e) => {
- if (!(a && !i) && (e.getCanSelect() && (UC(e, t) ? a = !0 : i = !1), e.subRows && e.subRows.length)) {
- let n = WC(e, t);
+ if (!(a && !i) && (e.getCanSelect() && (WC(e, t) ? a = !0 : i = !1), e.subRows && e.subRows.length)) {
+ let n = GC(e, t);
n === "all" ? a = !0 : (n === "some" && (a = !0), i = !1);
}
}), i ? "all" : a ? "some" : !1;
}
-var GC = /([0-9]+)/gm, KC = (e, t, n) => ew($C(e.getValue(n)).toLowerCase(), $C(t.getValue(n)).toLowerCase()), qC = (e, t, n) => ew($C(e.getValue(n)), $C(t.getValue(n))), JC = (e, t, n) => QC($C(e.getValue(n)).toLowerCase(), $C(t.getValue(n)).toLowerCase()), YC = (e, t, n) => QC($C(e.getValue(n)), $C(t.getValue(n))), XC = (e, t, n) => {
+var KC = /([0-9]+)/gm, qC = (e, t, n) => tw(ew(e.getValue(n)).toLowerCase(), ew(t.getValue(n)).toLowerCase()), JC = (e, t, n) => tw(ew(e.getValue(n)), ew(t.getValue(n))), YC = (e, t, n) => $C(ew(e.getValue(n)).toLowerCase(), ew(t.getValue(n)).toLowerCase()), XC = (e, t, n) => $C(ew(e.getValue(n)), ew(t.getValue(n))), ZC = (e, t, n) => {
let r = e.getValue(n), i = t.getValue(n);
return r > i ? 1 : r < i ? -1 : 0;
-}, ZC = (e, t, n) => QC(e.getValue(n), t.getValue(n));
-function QC(e, t) {
+}, QC = (e, t, n) => $C(e.getValue(n), t.getValue(n));
+function $C(e, t) {
return e === t ? 0 : e > t ? 1 : -1;
}
-function $C(e) {
+function ew(e) {
return typeof e == "number" ? isNaN(e) || e === Infinity || e === -Infinity ? "" : String(e) : typeof e == "string" ? e : "";
}
-function ew(e, t) {
- let n = e.split(GC).filter(Boolean), r = t.split(GC).filter(Boolean);
+function tw(e, t) {
+ let n = e.split(KC).filter(Boolean), r = t.split(KC).filter(Boolean);
for (; n.length && r.length;) {
let e = n.shift(), t = r.shift(), i = parseInt(e, 10), a = parseInt(t, 10), o = [i, a].sort();
if (isNaN(o[0])) {
@@ -28108,22 +28110,22 @@ function ew(e, t) {
}
return n.length - r.length;
}
-var tw = {
- alphanumeric: KC,
- alphanumericCaseSensitive: qC,
- text: JC,
- textCaseSensitive: YC,
- datetime: XC,
- basic: ZC
-}, nw = [
- $S,
- kC,
- yC,
- xC,
- nC,
- mC,
- jC,
+var nw = {
+ alphanumeric: qC,
+ alphanumericCaseSensitive: JC,
+ text: YC,
+ textCaseSensitive: XC,
+ datetime: ZC,
+ basic: QC
+}, rw = [
+ eC,
+ AC,
+ bC,
+ SC,
+ rC,
+ hC,
MC,
+ NC,
{
getInitialState: (e) => ({
sorting: [],
@@ -28134,7 +28136,7 @@ var tw = {
sortUndefined: 1
}),
getDefaultOptions: (e) => ({
- onSortingChange: GS("sorting", e),
+ onSortingChange: KS("sorting", e),
isMultiSortEvent: (e) => e.shiftKey
}),
createColumn: (e, t) => {
@@ -28142,13 +28144,13 @@ var tw = {
let n = t.getFilteredRowModel().flatRows.slice(10), r = !1;
for (let t of n) {
let n = t?.getValue(e.id);
- if (Object.prototype.toString.call(n) === "[object Date]") return tw.datetime;
- if (typeof n == "string" && (r = !0, n.split(GC).length > 1)) return tw.alphanumeric;
+ if (Object.prototype.toString.call(n) === "[object Date]") return nw.datetime;
+ if (typeof n == "string" && (r = !0, n.split(KC).length > 1)) return nw.alphanumeric;
}
- return r ? tw.text : tw.basic;
+ return r ? nw.text : nw.basic;
}, e.getAutoSortDir = () => typeof t.getFilteredRowModel().flatRows[0]?.getValue(e.id) == "string" ? "asc" : "desc", e.getSortingFn = () => {
if (!e) throw Error();
- return KS(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : t.options.sortingFns?.[e.columnDef.sortingFn] ?? tw[e.columnDef.sortingFn];
+ return qS(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : t.options.sortingFns?.[e.columnDef.sortingFn] ?? nw[e.columnDef.sortingFn];
}, e.toggleSorting = (n, r) => {
let i = e.getNextSortingOrder(), a = n != null;
t.setSorting((o) => {
@@ -28185,15 +28187,15 @@ var tw = {
}, e.getPreSortedRowModel = () => e.getGroupedRowModel(), e.getSortedRowModel = () => (!e._getSortedRowModel && e.options.getSortedRowModel && (e._getSortedRowModel = e.options.getSortedRowModel(e)), e.options.manualSorting || !e._getSortedRowModel ? e.getPreSortedRowModel() : e._getSortedRowModel());
}
},
- _C,
- NC,
- LC,
- zC,
+ vC,
+ PC,
+ RC,
BC,
- TC
+ VC,
+ EC
];
-function rw(e) {
- let t = [...nw, ...e._features ?? []], n = { _features: t }, r = n._features.reduce((e, t) => Object.assign(e, t.getDefaultOptions == null ? void 0 : t.getDefaultOptions(n)), {}), i = (e) => n.options.mergeOptions ? n.options.mergeOptions(r, e) : {
+function iw(e) {
+ let t = [...rw, ...e._features ?? []], n = { _features: t }, r = n._features.reduce((e, t) => Object.assign(e, t.getDefaultOptions == null ? void 0 : t.getDefaultOptions(n)), {}), i = (e) => n.options.mergeOptions ? n.options.mergeOptions(r, e) : {
...r,
...e
}, a = { ...e.initialState ?? {} };
@@ -28219,7 +28221,7 @@ function rw(e) {
n.setState(n.initialState);
},
setOptions: (e) => {
- let t = WS(e, n.options);
+ let t = GS(e, n.options);
n.options = i(t);
},
getState: () => n.options.state,
@@ -28250,7 +28252,7 @@ function rw(e) {
getAllColumns: Q(() => [n._getColumnDefs()], (e) => {
let t = function(e, r, i) {
return i === void 0 && (i = 0), e.map((e) => {
- let a = XS(n, e, i, r), o = e;
+ let a = ZS(n, e, i, r), o = e;
return a.columns = o.columns ? t(o.columns, a, i + 1) : [], a;
});
};
@@ -28268,7 +28270,7 @@ function rw(e) {
}
return n;
}
-function iw() {
+function aw() {
return (e) => Q(() => [e.options.data], (t) => {
let n = {
rows: [],
@@ -28278,7 +28280,7 @@ function iw() {
i === void 0 && (i = 0);
let o = [];
for (let c = 0; c < t.length; c++) {
- let l = tC(e, e._getRowId(t[c], c, a), t[c], c, i, void 0, a?.id);
+ let l = nC(e, e._getRowId(t[c], c, a), t[c], c, i, void 0, a?.id);
if (n.flatRows.push(l), n.rowsById[l.id] = l, o.push(l), e.options.getSubRows) {
var s;
l.originalSubRows = e.options.getSubRows(t[c], c), (s = l.originalSubRows) != null && s.length && (l.subRows = r(l.originalSubRows, i + 1, l));
@@ -28289,7 +28291,7 @@ function iw() {
return n.rows = r(t), n;
}, $(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));
}
-function aw(e) {
+function ow(e) {
let t = [], n = (e) => {
var r;
t.push(e), (r = e.subRows) != null && r.length && e.getIsExpanded() && e.subRows.forEach(n);
@@ -28300,7 +28302,7 @@ function aw(e) {
rowsById: e.rowsById
};
}
-function ow(e) {
+function sw(e) {
return (e) => Q(() => [
e.getState().pagination,
e.getPrePaginationRowModel(),
@@ -28314,7 +28316,7 @@ function ow(e) {
rows: a,
flatRows: o,
rowsById: s
- } : aw({
+ } : ow({
rows: a,
flatRows: o,
rowsById: s
@@ -28327,28 +28329,28 @@ function ow(e) {
}
//#endregion
//#region node_modules/@tanstack/react-table/build/lib/index.mjs
-function sw(e, t) {
- return e ? cw(e) ? /*#__PURE__*/ S.createElement(e, t) : e : null;
-}
-function cw(e) {
- return lw(e) || typeof e == "function" || uw(e);
+function cw(e, t) {
+ return e ? lw(e) ? /*#__PURE__*/ C.createElement(e, t) : e : null;
}
function lw(e) {
+ return uw(e) || typeof e == "function" || dw(e);
+}
+function uw(e) {
return typeof e == "function" && (() => {
let t = Object.getPrototypeOf(e);
return t.prototype && t.prototype.isReactComponent;
})();
}
-function uw(e) {
+function dw(e) {
return typeof e == "object" && typeof e.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(e.$$typeof.description);
}
-function dw(e) {
+function fw(e) {
let t = {
state: {},
onStateChange: () => {},
renderFallbackValue: null,
...e
- }, [n] = S.useState(() => ({ current: rw(t) })), [r, i] = S.useState(() => n.current.initialState);
+ }, [n] = C.useState(() => ({ current: iw(t) })), [r, i] = C.useState(() => n.current.initialState);
return n.current.setOptions((t) => ({
...t,
...e,
@@ -28363,13 +28365,13 @@ function dw(e) {
}
//#endregion
//#region src/react/boardui/components/foundations/icons/chevrons.tsx
-function fw(e) {
- return /* @__PURE__ */ (0, C.jsx)("svg", {
+function pw(e) {
+ return /* @__PURE__ */ (0, w.jsx)("svg", {
viewBox: "0 0 16 16",
fill: "none",
"aria-hidden": !0,
...e,
- children: /* @__PURE__ */ (0, C.jsx)("path", {
+ children: /* @__PURE__ */ (0, w.jsx)("path", {
d: "M4 7L7.29289 10.2929C7.68342 10.6834 8.31658 10.6834 8.70711 10.2929L12 7",
stroke: "currentColor",
strokeWidth: "2",
@@ -28377,13 +28379,13 @@ function fw(e) {
})
});
}
-function pw(e) {
- return /* @__PURE__ */ (0, C.jsx)("svg", {
+function mw(e) {
+ return /* @__PURE__ */ (0, w.jsx)("svg", {
viewBox: "0 0 24 24",
fill: "none",
"aria-hidden": !0,
...e,
- children: /* @__PURE__ */ (0, C.jsx)("path", {
+ children: /* @__PURE__ */ (0, w.jsx)("path", {
d: "M12.7071 15.2929C12.3166 15.6834 11.6834 15.6834 11.2929 15.2929L7.70711 11.7071C7.07714 11.0771 7.52331 10 8.41421 10H15.5858C16.4767 10 16.9229 11.0771 16.2929 11.7071L12.7071 15.2929Z",
fill: "currentColor"
})
@@ -28391,8 +28393,8 @@ function pw(e) {
}
//#endregion
//#region src/react/boardui/utils/use-dismiss-on-outside-press.ts
-function mw(e, t, n) {
- (0, S.useEffect)(() => {
+function hw(e, t, n) {
+ (0, C.useEffect)(() => {
if (!e) return;
let r = (e) => {
let r = e.target;
@@ -28405,9 +28407,9 @@ function mw(e, t, n) {
n
]);
}
-function hw(e, t) {
- let n = (0, S.useRef)(!1);
- return (0, S.useEffect)(() => {
+function gw(e, t) {
+ let n = (0, C.useRef)(!1);
+ return (0, C.useEffect)(() => {
if (!e) return;
let r = (e) => {
t.current?.contains(e.target) && (n.current = !0, setTimeout(() => {
@@ -28419,33 +28421,33 @@ function hw(e, t) {
}
//#endregion
//#region src/react/boardui/components/base/select/select.tsx
-var gw = (0, S.createContext)("md");
-function _w({ className: e, triggerClassName: t, popoverClassName: n, size: r = "md", children: i, items: a, renderValue: o, ref: s, ...c }) {
- let l = (0, S.useRef)(null), u = (0, S.useRef)(null), [d, f] = (0, S.useState)(!1);
- mw(d, () => f(!1), [l, u]);
- let p = hw(d, l);
- return /* @__PURE__ */ (0, C.jsx)(Sv, {
+var _w = (0, C.createContext)("md");
+function vw({ className: e, triggerClassName: t, popoverClassName: n, size: r = "md", children: i, items: a, renderValue: o, ref: s, ...c }) {
+ let l = (0, C.useRef)(null), u = (0, C.useRef)(null), [d, f] = (0, C.useState)(!1);
+ hw(d, () => f(!1), [l, u]);
+ let p = gw(d, l);
+ return /* @__PURE__ */ (0, w.jsx)(Cv, {
ref: s,
...c,
isOpen: d,
onOpenChange: (e) => p(e) && f(e),
- className: Um("group flex flex-col", e),
- children: ({ isOpen: e }) => /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsxs)(tg, {
+ className: K("group flex flex-col", e),
+ children: ({ isOpen: e }) => /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [/* @__PURE__ */ (0, w.jsxs)(ng, {
ref: l,
- className: Um("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, C.jsx)(Ev, {
- className: Um("flex min-w-0 items-center truncate", r === "sm" ? "gap-1" : "gap-[5px]"),
+ className: K("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, w.jsx)(Dv, {
+ className: K("flex min-w-0 items-center truncate", r === "sm" ? "gap-1" : "gap-[5px]"),
children: o
- }), /* @__PURE__ */ (0, C.jsx)(fw, { className: Um("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
- }), /* @__PURE__ */ (0, C.jsx)(K_, {
+ }), /* @__PURE__ */ (0, w.jsx)(pw, { className: K("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
+ }), /* @__PURE__ */ (0, w.jsx)(q_, {
ref: u,
isNonModal: !0,
offset: 4,
- className: Um(Gx, Wx, "p-2", n),
- children: /* @__PURE__ */ (0, C.jsx)(j_, {
+ className: K(Kx, Gx, "p-2", n),
+ children: /* @__PURE__ */ (0, w.jsx)(M_, {
items: a,
- className: Um(Kx, "max-h-[240px] overflow-auto"),
- children: /* @__PURE__ */ (0, C.jsx)(gw.Provider, {
+ className: K(qx, "max-h-[240px] overflow-auto"),
+ children: /* @__PURE__ */ (0, w.jsx)(_w.Provider, {
value: r,
children: i
})
@@ -28453,23 +28455,23 @@ function _w({ className: e, triggerClassName: t, popoverClassName: n, size: r =
})] })
});
}
-function vw({ className: e, children: t, ...n }) {
- let r = (0, S.useContext)(gw);
- return /* @__PURE__ */ (0, C.jsx)(F_, {
+function yw({ className: e, children: t, ...n }) {
+ let r = (0, C.useContext)(_w);
+ return /* @__PURE__ */ (0, w.jsx)(I_, {
...n,
- className: (t) => Um(qx, r === "sm" ? "px-2 py-1.5 text-body-2-medium" : "text-body-medium", (t.isFocused || t.isSelected) && "bg-dropdown-item-hover-background", t.isDisabled && "cursor-not-allowed text-text-disabled", typeof e == "function" ? e(t) : e),
+ className: (t) => K(Jx, 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/components/selection-dock.tsx
-function yw({ children: e, count: t, label: n }) {
- return /* @__PURE__ */ (0, C.jsxs)("div", {
+function bw({ children: e, count: t, label: n }) {
+ return /* @__PURE__ */ (0, w.jsxs)("div", {
role: "group",
"aria-label": n,
"data-selection-dock": !0,
"data-glass-pane": "",
- children: [/* @__PURE__ */ (0, C.jsx)("span", {
+ children: [/* @__PURE__ */ (0, w.jsx)("span", {
role: "status",
className: "px-2 text-body-2-regular whitespace-nowrap text-text-primary",
children: t
@@ -28478,19 +28480,19 @@ function yw({ children: e, count: t, label: n }) {
}
//#endregion
//#region src/react/follow-manage/source-list.tsx
-var bw = Object.fromEntries(Object.entries(Ib).map(([e, t]) => [t, e])), xw = 740;
-function Sw() {
- let [e, t] = (0, S.useState)(!1), n = (0, S.useRef)(null), r = (0, S.useCallback)((e) => {
+var xw = Object.fromEntries(Object.entries(Lb).map(([e, t]) => [t, e])), Sw = 740;
+function Cw() {
+ let [e, t] = (0, C.useState)(!1), n = (0, C.useRef)(null), r = (0, C.useCallback)((e) => {
if (n.current?.disconnect(), !e) {
n.current = null;
return;
}
- let r = new ResizeObserver(() => t(e.clientWidth < xw));
- r.observe(e), n.current = r, t(e.clientWidth < xw);
+ let r = new ResizeObserver(() => t(e.clientWidth < Sw));
+ r.observe(e), n.current = r, t(e.clientWidth < Sw);
}, []);
- return (0, S.useEffect)(() => () => n.current?.disconnect(), []), [r, e];
+ return (0, C.useEffect)(() => () => n.current?.disconnect(), []), [r, e];
}
-var Cw = {
+var ww = {
select: "选择",
author: "创作者",
source: "来源",
@@ -28499,25 +28501,25 @@ var Cw = {
checked: "上次检查",
actions: "操作"
};
-function ww({ page: e, pages: t, onPage: n }) {
- return t <= 1 ? null : /* @__PURE__ */ (0, C.jsxs)("nav", {
+function Tw({ page: e, pages: t, onPage: n }) {
+ return t <= 1 ? null : /* @__PURE__ */ (0, w.jsxs)("nav", {
"aria-label": "关注列表分页",
className: "flex flex-wrap items-center justify-center gap-2",
children: [
- /* @__PURE__ */ (0, C.jsx)(X, {
+ /* @__PURE__ */ (0, w.jsx)(X, {
variant: "secondary",
size: "small",
disabled: e <= 1,
onClick: () => n(e - 1),
children: "上一页"
}),
- /* @__PURE__ */ (0, C.jsx)("ul", {
+ /* @__PURE__ */ (0, w.jsx)("ul", {
className: "flex flex-wrap items-center gap-1",
- children: fb(e, t).map((t, r) => /* @__PURE__ */ (0, C.jsx)("li", { children: t === "…" ? /* @__PURE__ */ (0, C.jsx)("span", {
+ children: pb(e, t).map((t, r) => /* @__PURE__ */ (0, w.jsx)("li", { children: t === "…" ? /* @__PURE__ */ (0, w.jsx)("span", {
"aria-hidden": !0,
className: "px-1 text-body-2-regular text-text-tertiary",
children: "…"
- }) : /* @__PURE__ */ (0, C.jsx)(X, {
+ }) : /* @__PURE__ */ (0, w.jsx)(X, {
variant: t === e ? "secondary" : "ghost",
size: "small",
"aria-label": `第 ${t} 页`,
@@ -28526,7 +28528,7 @@ function ww({ page: e, pages: t, onPage: n }) {
children: t
}) }, t === "…" ? `dots-${r}` : t))
}),
- /* @__PURE__ */ (0, C.jsx)(X, {
+ /* @__PURE__ */ (0, w.jsx)(X, {
variant: "secondary",
size: "small",
disabled: e >= t,
@@ -28536,52 +28538,52 @@ function ww({ page: e, pages: t, onPage: n }) {
]
});
}
-function Tw({ source: e, selected: t, onToggle: n, handlers: r }) {
- return /* @__PURE__ */ (0, C.jsxs)("div", {
+function Ew({ source: e, selected: t, onToggle: n, handlers: r }) {
+ return /* @__PURE__ */ (0, w.jsxs)("div", {
"data-selected": t || void 0,
className: "flex min-h-16 flex-wrap items-center gap-3 px-2 py-3",
children: [
- /* @__PURE__ */ (0, C.jsx)(Ux, {
+ /* @__PURE__ */ (0, w.jsx)(Wx, {
isSelected: t,
onChange: n,
"aria-label": `选择 ${e.label}`
}),
- /* @__PURE__ */ (0, C.jsxs)("span", {
+ /* @__PURE__ */ (0, w.jsxs)("span", {
className: "flex min-w-0 grow flex-col gap-0.5",
- children: [/* @__PURE__ */ (0, C.jsx)(gS, { source: e }), e.last_error ? /* @__PURE__ */ (0, C.jsx)("small", {
+ children: [/* @__PURE__ */ (0, w.jsx)(_S, { source: e }), e.last_error ? /* @__PURE__ */ (0, w.jsx)("small", {
className: "text-caption-1-regular text-text-error-primary",
children: e.last_error
}) : null]
}),
- /* @__PURE__ */ (0, C.jsx)("span", {
+ /* @__PURE__ */ (0, w.jsx)("span", {
className: "flex shrink-0 items-center gap-1.5 text-body-2-regular text-text-secondary",
title: e.provider_label,
- children: /* @__PURE__ */ (0, C.jsx)(pS, {
+ children: /* @__PURE__ */ (0, w.jsx)(mS, {
provider: e.provider,
label: e.provider_label
})
}),
- /* @__PURE__ */ (0, C.jsx)(hS, { source: e }),
- /* @__PURE__ */ (0, C.jsx)("span", {
+ /* @__PURE__ */ (0, w.jsx)(gS, { source: e }),
+ /* @__PURE__ */ (0, w.jsx)("span", {
className: "shrink-0 text-body-2-regular whitespace-nowrap text-text-secondary",
- children: kx(e)
+ children: Ax(e)
}),
- /* @__PURE__ */ (0, C.jsxs)("span", {
+ /* @__PURE__ */ (0, w.jsxs)("span", {
className: "flex shrink-0 items-center gap-1",
- children: [/* @__PURE__ */ (0, C.jsx)(X, {
+ children: [/* @__PURE__ */ (0, w.jsx)(X, {
variant: "secondary",
size: "small",
iconOnly: !0,
- leadingIcon: $f,
+ leadingIcon: np,
"aria-label": `检查 ${e.label} 的更新`,
disabled: !e.enabled || r.readOnly,
...Z(r.busy),
onClick: () => r.check([e.id])
- }), /* @__PURE__ */ (0, C.jsx)(X, {
+ }), /* @__PURE__ */ (0, w.jsx)(X, {
variant: "secondary",
size: "small",
iconOnly: !0,
- leadingIcon: Rf,
+ leadingIcon: Vf,
"aria-label": `移除 ${e.label}`,
disabled: r.readOnly,
onClick: () => r.remove(e)
@@ -28590,72 +28592,72 @@ function Tw({ source: e, selected: t, onToggle: n, handlers: r }) {
]
});
}
-function Ew({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a, onToggleGroup: o, onToggle: s }) {
- let c = e.map((e) => e.id), l = e.filter((e) => e.enabled).map((e) => e.id), u = e.filter(Wb).length, d = [...new Set(e.map((e) => e.provider_label || e.provider))].join("、"), f = `follow-author-${e[0].id}`, p = rx(r, c);
- return /* @__PURE__ */ (0, C.jsxs)("section", {
+function Dw({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a, onToggleGroup: o, onToggle: s }) {
+ let c = e.map((e) => e.id), l = e.filter((e) => e.enabled).map((e) => e.id), u = e.filter(Gb).length, d = [...new Set(e.map((e) => e.provider_label || e.provider))].join("、"), f = `follow-author-${e[0].id}`, p = ix(r, c);
+ return /* @__PURE__ */ (0, w.jsxs)("section", {
"aria-label": `${t} 的关注来源`,
- className: ih({
+ className: oh({
variant: "raised",
padding: "none",
className: "flex flex-col overflow-hidden p-2"
}),
- children: [/* @__PURE__ */ (0, C.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, w.jsxs)("div", {
"data-follow-author-header": !0,
"data-open": n || void 0,
className: "flex flex-wrap items-center gap-3 px-2 py-2.5",
children: [
- /* @__PURE__ */ (0, C.jsx)(mS, {
+ /* @__PURE__ */ (0, w.jsx)(hS, {
group: e,
name: t
}),
- /* @__PURE__ */ (0, C.jsx)("b", {
+ /* @__PURE__ */ (0, w.jsx)("b", {
className: "min-w-0 grow text-body-medium break-words text-text-primary",
children: t
}),
- /* @__PURE__ */ (0, C.jsx)(X, {
+ /* @__PURE__ */ (0, w.jsx)(X, {
variant: "secondary",
size: "small",
iconOnly: !0,
- leadingIcon: $f,
+ leadingIcon: np,
"aria-label": `检查 ${t} 的全部来源`,
disabled: !l.length || i.readOnly,
...Z(i.busy),
onClick: () => i.check(l)
}),
- /* @__PURE__ */ (0, C.jsxs)("span", {
+ /* @__PURE__ */ (0, w.jsxs)("span", {
className: "flex shrink-0 items-center gap-1",
title: d,
- children: [e.map((e) => /* @__PURE__ */ (0, C.jsx)(pS, { provider: e.provider }, e.id)), /* @__PURE__ */ (0, C.jsx)(Jo, { children: `来源:${d}` })]
+ children: [e.map((e) => /* @__PURE__ */ (0, w.jsx)(mS, { provider: e.provider }, e.id)), /* @__PURE__ */ (0, w.jsx)(Xo, { children: `来源:${d}` })]
}),
- u ? /* @__PURE__ */ (0, C.jsx)("span", {
+ u ? /* @__PURE__ */ (0, w.jsx)("span", {
className: "shrink-0 text-body-2-regular text-text-error-primary",
children: `${u} 个失败`
}) : null,
- /* @__PURE__ */ (0, C.jsx)(X, {
+ /* @__PURE__ */ (0, w.jsx)(X, {
variant: "secondary",
size: "small",
- leadingIcon: Nf,
+ leadingIcon: If,
"aria-pressed": p.all ? "true" : p.some ? "mixed" : "false",
"aria-label": `${p.all ? "取消全选" : "全选"} ${t} 的来源`,
onClick: () => o(!p.all),
children: p.all ? "取消全选" : "全选"
}),
- /* @__PURE__ */ (0, C.jsx)(X, {
+ /* @__PURE__ */ (0, w.jsx)(X, {
variant: "secondary",
size: "small",
"aria-expanded": n,
"aria-controls": f,
- leadingIcon: n ? Mf : Of,
+ leadingIcon: n ? Ff : jf,
"aria-label": `${n ? "收起" : "展开"} ${t} 的来源`,
onClick: () => a(!n),
children: n ? "收起" : "展开"
})
]
- }), /* @__PURE__ */ (0, C.jsx)("div", {
+ }), /* @__PURE__ */ (0, w.jsx)("div", {
id: f,
hidden: !n,
"data-source-divider": !0,
- children: e.map((e) => /* @__PURE__ */ (0, C.jsx)(Tw, {
+ children: e.map((e) => /* @__PURE__ */ (0, w.jsx)(Ew, {
source: e,
handlers: i,
selected: r.has(e.id),
@@ -28664,39 +28666,39 @@ function Ew({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a, o
})]
});
}
-function Dw(e) {
- let { data: t, sort: n, dir: i, page: a, layout: o, pageSize: c, selected: l, readOnly: u, onSort: d, onPage: f, onLayout: p, onPageSize: m, onSelected: h, toast: g, openFollow: _ } = e, v = t.sources, y = (0, S.useMemo)(() => t.author_aliases || [], [t.author_aliases]), b = t.counts || {}, [x, w] = (0, S.useState)(/* @__PURE__ */ new Set()), [T, E] = Sw(), [D, O] = (0, S.useState)(!1), [k, A] = (0, S.useState)(null), [j, M] = (0, S.useState)(""), N = (0, S.useMemo)(() => $b(v, n, i, y), [
+function Ow(e) {
+ let { data: t, sort: n, dir: i, page: a, layout: o, pageSize: s, selected: l, readOnly: u, onSort: d, onPage: f, onLayout: p, onPageSize: m, onSelected: h, toast: g, openFollow: _ } = e, v = t.sources, y = (0, C.useMemo)(() => t.author_aliases || [], [t.author_aliases]), b = t.counts || {}, [x, S] = (0, C.useState)(/* @__PURE__ */ new Set()), [T, E] = Cw(), [D, O] = (0, C.useState)(!1), [k, A] = (0, C.useState)(null), [j, M] = (0, C.useState)(""), N = (0, C.useMemo)(() => ex(v, n, i, y), [
v,
n,
i,
y
- ]), ee = (0, S.useMemo)(() => ex(N, n, i, y), [
+ ]), ee = (0, C.useMemo)(() => tx(N, n, i, y), [
N,
n,
i,
y
- ]), P = lt({
- queryKey: Db,
- queryFn: ({ signal: e }) => sx(e),
- refetchInterval: (e) => Tx(e.state.data)
- }), F = P.data?.status === "running", te = ut({
- mutationFn: (e) => ux(e),
+ ]), P = ut({
+ queryKey: Ob,
+ queryFn: ({ signal: e }) => cx(e),
+ refetchInterval: (e) => Ex(e.state.data)
+ }), F = P.data?.status === "running", te = dt({
+ mutationFn: (e) => dx(e),
onSuccess: () => {
- O(!0), A(null), dh.invalidateQueries({
- queryKey: Db,
+ O(!0), A(null), fh.invalidateQueries({
+ queryKey: Ob,
exact: !0
});
},
- onError: (e) => M(J(e))
+ onError: (e) => M(q(e))
});
- (0, S.useEffect)(() => {
+ (0, C.useEffect)(() => {
let e = P.data;
if (e) {
if (e.status === "running") {
D || O(!0);
return;
}
- D && (O(!1), A(e), Cx(), g(e.status === "failed" ? e.error || "检查失败" : Ex(e)));
+ D && (O(!1), A(e), wx(), g(e.status === "failed" ? e.error || "检查失败" : Dx(e)));
}
}, [
P.data,
@@ -28705,22 +28707,22 @@ function Dw(e) {
]);
let ne = (e) => {
F || te.isPending || (M(""), te.mutate(e));
- }, re = (e, t) => h(ix(l, [e], t)), ie = (e, t) => h(ix(l, e, t)), ae = ut({
- mutationFn: (e) => px(e),
+ }, re = (e, t) => h(ax(l, [e], t)), ie = (e, t) => h(ax(l, e, t)), ae = dt({
+ mutationFn: (e) => mx(e),
onSuccess: (e, t) => {
- Sx([t]), h(ix(l, [t], !1)), g("已取消关注来源");
+ Cx([t]), h(ax(l, [t], !1)), g("已取消关注来源");
},
- onError: (e) => M(J(e))
- }), oe = (e) => void s({
+ onError: (e) => M(q(e))
+ }), oe = (e) => void c({
title: "取消关注来源",
body: "将移除这个来源及已抓取的条目,媒体文件保留。",
confirmLabel: "取消关注来源",
danger: !0,
onConfirm: () => ae.mutateAsync(e.id)
- }), se = ut({
+ }), se = dt({
mutationFn: async (e) => {
let t = await r(e.ids, 4, async (t) => {
- e.action === "remove" ? await px(t) : await fx(t, e.action === "enabled");
+ e.action === "remove" ? await mx(t) : await px(t, e.action === "enabled");
});
return {
...e,
@@ -28729,40 +28731,40 @@ function Dw(e) {
};
},
onSuccess: (e) => {
- if (e.action === "remove") Sx(e.done);
- else for (let t of e.done) xx(t, { enabled: e.action === "enabled" });
- h(ix(l, e.done, !1));
+ if (e.action === "remove") Cx(e.done);
+ else for (let t of e.done) Sx(t, { enabled: e.action === "enabled" });
+ h(ax(l, e.done, !1));
let t = e.results.filter((e) => !e.ok);
if (t.length) {
- M(`${t.length}/${e.ids.length} 个来源未更新:${J(t[0]?.error)}`);
+ M(`${t.length}/${e.ids.length} 个来源未更新:${q(t[0]?.error)}`);
return;
}
M("");
let n = e.action === "remove" ? "删除" : e.action === "enabled" ? "启用" : "暂停";
g(`已${n} ${e.done.length} 个关注来源`);
},
- onError: (e) => M(J(e))
- }), ce = ut({
+ onError: (e) => M(q(e))
+ }), ce = dt({
mutationFn: async (e) => {
- let t = ((await yx()).groups || []).flatMap((e) => [
+ let t = ((await bx()).groups || []).flatMap((e) => [
e.primary,
...e.variants,
...e.duplicates
]).filter((e) => e.status === "new").map((e) => e.id);
return {
ids: t,
- failed: (await r(t, 6, (t) => vx(t, e))).filter((e) => !e.ok)
+ failed: (await r(t, 6, (t) => yx(t, e))).filter((e) => !e.ok)
};
},
onSuccess: (e) => {
- if (Cx(), e.failed.length) {
+ if (wx(), e.failed.length) {
M(`批量更新 ${e.failed.length}/${e.ids.length} 项未完成`);
return;
}
M(""), g(`已批量标记 ${e.ids.length} 项`);
},
- onError: (e) => M(J(e))
- }), le = (0, S.useRef)({
+ onError: (e) => M(q(e))
+ }), le = (0, C.useRef)({
check: ne,
remove: oe,
busy: !1,
@@ -28774,13 +28776,13 @@ function Dw(e) {
busy: F || te.isPending,
readOnly: u
};
- let ue = le.current, de = (0, S.useMemo)(() => {
- let e = US(), t = (e) => () => Cw[e] || e;
+ let ue = le.current, de = (0, C.useMemo)(() => {
+ let e = WS(), t = (e) => () => ww[e] || e;
return [
e.display({
id: "select",
header: t("select"),
- cell: (e) => /* @__PURE__ */ (0, C.jsx)(Ux, {
+ cell: (e) => /* @__PURE__ */ (0, w.jsx)(Wx, {
slot: null,
isSelected: e.row.getIsSelected(),
onChange: (t) => e.row.toggleSelected(t),
@@ -28790,12 +28792,12 @@ function Dw(e) {
e.accessor((e) => e.author, {
id: "author",
header: t("author"),
- cell: (e) => /* @__PURE__ */ (0, C.jsxs)("span", {
+ cell: (e) => /* @__PURE__ */ (0, w.jsxs)("span", {
className: "flex min-w-0 items-center gap-2",
- children: [/* @__PURE__ */ (0, C.jsx)(mS, {
+ children: [/* @__PURE__ */ (0, w.jsx)(hS, {
group: e.row.original.group,
name: e.row.original.author
- }), /* @__PURE__ */ (0, C.jsx)("span", {
+ }), /* @__PURE__ */ (0, w.jsx)("span", {
className: "min-w-0 break-words",
children: e.row.original.author
})]
@@ -28804,9 +28806,9 @@ function Dw(e) {
e.accessor((e) => e.source.label, {
id: "source",
header: t("source"),
- cell: (e) => /* @__PURE__ */ (0, C.jsxs)("span", {
+ cell: (e) => /* @__PURE__ */ (0, w.jsxs)("span", {
className: "flex min-w-0 flex-col gap-0.5",
- children: [/* @__PURE__ */ (0, C.jsx)(gS, { source: e.row.original.source }), e.row.original.source.last_error ? /* @__PURE__ */ (0, C.jsx)("small", {
+ children: [/* @__PURE__ */ (0, w.jsx)(_S, { source: e.row.original.source }), e.row.original.source.last_error ? /* @__PURE__ */ (0, w.jsx)("small", {
className: "text-caption-1-regular text-text-error-primary",
children: e.row.original.source.last_error
}) : null]
@@ -28815,40 +28817,40 @@ function Dw(e) {
e.accessor((e) => e.source.provider_label, {
id: "provider",
header: t("provider"),
- cell: (e) => /* @__PURE__ */ (0, C.jsxs)("span", {
+ cell: (e) => /* @__PURE__ */ (0, w.jsxs)("span", {
className: "flex items-center gap-1.5",
- children: [/* @__PURE__ */ (0, C.jsx)(pS, { provider: e.row.original.source.provider }), e.row.original.source.provider_label]
+ children: [/* @__PURE__ */ (0, w.jsx)(mS, { provider: e.row.original.source.provider }), e.row.original.source.provider_label]
})
}),
e.display({
id: "status",
header: t("status"),
- cell: (e) => /* @__PURE__ */ (0, C.jsx)(hS, { source: e.row.original.source })
+ cell: (e) => /* @__PURE__ */ (0, w.jsx)(gS, { source: e.row.original.source })
}),
e.accessor((e) => e.source.last_checked_at || "", {
id: "checked",
header: t("checked"),
- cell: (e) => kx(e.row.original.source)
+ cell: (e) => Ax(e.row.original.source)
}),
e.display({
id: "actions",
header: t("actions"),
- cell: (e) => /* @__PURE__ */ (0, C.jsxs)("span", {
+ cell: (e) => /* @__PURE__ */ (0, w.jsxs)("span", {
className: "flex items-center gap-1",
- children: [/* @__PURE__ */ (0, C.jsx)(X, {
+ children: [/* @__PURE__ */ (0, w.jsx)(X, {
variant: "secondary",
size: "small",
iconOnly: !0,
- leadingIcon: $f,
+ leadingIcon: np,
"aria-label": `检查 ${e.row.original.source.label} 的更新`,
disabled: !e.row.original.source.enabled || ue.readOnly,
...Z(ue.busy),
onClick: () => le.current.check([e.row.original.source.id])
- }), /* @__PURE__ */ (0, C.jsx)(X, {
+ }), /* @__PURE__ */ (0, w.jsx)(X, {
variant: "secondary",
size: "small",
iconOnly: !0,
- leadingIcon: Rf,
+ leadingIcon: Vf,
"aria-label": `移除 ${e.row.original.source.label}`,
disabled: ue.readOnly,
onClick: () => le.current.remove(e.row.original.source)
@@ -28856,13 +28858,13 @@ function Dw(e) {
})
})
];
- }, [ue]), fe = (0, S.useMemo)(() => {
- let e = bw[n];
+ }, [ue]), fe = (0, C.useMemo)(() => {
+ let e = xw[n];
return e ? [{
id: e,
desc: i === "desc"
}] : [];
- }, [n, i]), I = (0, S.useMemo)(() => Object.fromEntries([...l].map((e) => [String(e), !0])), [l]), L = o === "table", pe = tx(L ? ee.length : N.length, c, a), me = dw({
+ }, [n, i]), I = (0, C.useMemo)(() => Object.fromEntries([...l].map((e) => [String(e), !0])), [l]), L = o === "table", pe = nx(L ? ee.length : N.length, s, a), me = fw({
data: ee,
columns: de,
getRowId: (e) => String(e.source.id),
@@ -28871,7 +28873,7 @@ function Dw(e) {
rowSelection: I,
pagination: {
pageIndex: pe.page - 1,
- pageSize: c
+ pageSize: s
}
},
manualSorting: !0,
@@ -28879,7 +28881,7 @@ function Dw(e) {
onSortingChange: (e) => {
let t = (typeof e == "function" ? e(fe) : e)[0];
if (!t) return;
- let n = Ib[t.id];
+ let n = Lb[t.id];
n && d(n, t.desc ? "desc" : "asc");
},
onRowSelectionChange: (e) => {
@@ -28889,34 +28891,34 @@ function Dw(e) {
onPaginationChange: (e) => {
let t = {
pageIndex: pe.page - 1,
- pageSize: c
+ pageSize: s
}, n = typeof e == "function" ? e(t) : e;
- n.pageSize === c ? n.pageIndex !== t.pageIndex && f(n.pageIndex + 1) : m(n.pageSize);
+ n.pageSize === s ? n.pageIndex !== t.pageIndex && f(n.pageIndex + 1) : m(n.pageSize);
},
- getCoreRowModel: iw(),
- getPaginationRowModel: ow()
- }), he = me.getRowModel().rows, ge = L ? he.map((e) => e.original.source.id) : N.slice(pe.start, pe.end).flatMap((e) => e.map((e) => e.id)), _e = rx(l, ge), ve = [...l], ye = Dx(k), be = Ox(k), xe = N.length > 0 && x.size >= N.length;
- return v.length ? /* @__PURE__ */ (0, C.jsxs)("div", {
- className: ih({
+ getCoreRowModel: aw(),
+ getPaginationRowModel: sw()
+ }), he = me.getRowModel().rows, ge = L ? he.map((e) => e.original.source.id) : N.slice(pe.start, pe.end).flatMap((e) => e.map((e) => e.id)), _e = ix(l, ge), ve = [...l], ye = Ox(k), be = kx(k), xe = N.length > 0 && x.size >= N.length;
+ return v.length ? /* @__PURE__ */ (0, w.jsxs)("div", {
+ className: oh({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
children: [
- /* @__PURE__ */ (0, C.jsxs)("div", {
+ /* @__PURE__ */ (0, w.jsxs)("div", {
ref: T,
className: "flex flex-wrap items-center gap-2",
children: [
- /* @__PURE__ */ (0, C.jsx)("h3", {
+ /* @__PURE__ */ (0, w.jsx)("h3", {
className: "mr-auto text-title-2-medium text-text-primary",
children: "关注列表"
}),
- /* @__PURE__ */ (0, C.jsx)("span", {
+ /* @__PURE__ */ (0, w.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
children: `${v.length} 个来源${b.new ? ` · ${b.new} 条未看` : ""}`
}),
- /* @__PURE__ */ (0, C.jsx)(X, {
+ /* @__PURE__ */ (0, w.jsx)(X, {
variant: "primary",
- leadingIcon: $f,
+ leadingIcon: np,
disabled: u,
"aria-label": "检查全部",
iconOnly: E,
@@ -28924,93 +28926,93 @@ function Dw(e) {
onClick: () => ne([]),
children: "检查全部"
}),
- /* @__PURE__ */ (0, C.jsxs)("span", {
+ /* @__PURE__ */ (0, w.jsxs)("span", {
"data-button-group": !0,
role: "group",
"aria-label": "关注列表版式",
- children: [/* @__PURE__ */ (0, C.jsx)(X, {
+ children: [/* @__PURE__ */ (0, w.jsx)(X, {
variant: "ghost",
iconOnly: !0,
- leadingIcon: Xf,
- "aria-label": Ab[0][1],
+ leadingIcon: $f,
+ "aria-label": jb[0][1],
"aria-pressed": !L,
onClick: () => p("default")
- }), /* @__PURE__ */ (0, C.jsx)(X, {
+ }), /* @__PURE__ */ (0, w.jsx)(X, {
variant: "ghost",
iconOnly: !0,
- leadingIcon: np,
- "aria-label": Ab[1][1],
+ leadingIcon: ap,
+ "aria-label": jb[1][1],
"aria-pressed": L,
onClick: () => p("table")
})]
}),
- /* @__PURE__ */ (0, C.jsx)("span", {
+ /* @__PURE__ */ (0, w.jsx)("span", {
"data-follow-sort-control": !0,
- children: /* @__PURE__ */ (0, C.jsx)(_w, {
+ children: /* @__PURE__ */ (0, w.jsx)(vw, {
"aria-label": "关注列表排序",
selectedKey: n,
onSelectionChange: (e) => {
if (e === null) return;
let t = String(e);
- d(t, Pb[t]);
+ d(t, Fb[t]);
},
- children: Mb.map(([e, t]) => /* @__PURE__ */ (0, C.jsx)(vw, {
+ children: Nb.map(([e, t]) => /* @__PURE__ */ (0, w.jsx)(yw, {
id: e,
children: t
}, e))
})
}),
- /* @__PURE__ */ (0, C.jsx)(X, {
+ /* @__PURE__ */ (0, w.jsx)(X, {
variant: "secondary",
iconOnly: !0,
- leadingIcon: i === "asc" ? jf : Df,
- "aria-label": Vb(n, i),
+ leadingIcon: i === "asc" ? Pf : Af,
+ "aria-label": Hb(n, i),
onClick: () => d(n, i === "asc" ? "desc" : "asc")
}),
- L ? null : /* @__PURE__ */ (0, C.jsx)(X, {
+ L ? null : /* @__PURE__ */ (0, w.jsx)(X, {
variant: "secondary",
iconOnly: E,
- leadingIcon: xe ? Of : Mf,
+ leadingIcon: xe ? jf : Ff,
"aria-label": xe ? "全部展开" : "全部收起",
- onClick: () => w(xe ? /* @__PURE__ */ new Set() : new Set(N.map((e) => String(e[0].author_key || e[0].id)))),
+ onClick: () => S(xe ? /* @__PURE__ */ new Set() : new Set(N.map((e) => String(e[0].author_key || e[0].id)))),
children: xe ? "全部展开" : "全部收起"
})
]
}),
- /* @__PURE__ */ (0, C.jsxs)("div", {
+ /* @__PURE__ */ (0, w.jsxs)("div", {
"aria-live": "polite",
className: "flex flex-col gap-3 empty:hidden",
children: [
- F ? P.data?.total ? /* @__PURE__ */ (0, C.jsx)(uh, {
+ F ? P.data?.total ? /* @__PURE__ */ (0, w.jsx)(dh, {
label: P.data.message || `${P.data.older ? "抓取历史" : "检查更新"}:已完成 ${P.data.checked || 0}/${P.data.total} 个来源`,
value: P.data.checked || 0,
max: P.data.total
- }) : /* @__PURE__ */ (0, C.jsx)(sh, { label: P.data?.message || "正在准备检查任务" }) : null,
- j ? /* @__PURE__ */ (0, C.jsx)(ch, {
+ }) : /* @__PURE__ */ (0, w.jsx)(lh, { label: P.data?.message || "正在准备检查任务" }) : null,
+ j ? /* @__PURE__ */ (0, w.jsx)(J, {
tone: "error",
title: "操作未完成",
children: j
}) : null,
- ye.length ? /* @__PURE__ */ (0, C.jsx)(ch, {
+ ye.length ? /* @__PURE__ */ (0, w.jsx)(J, {
tone: "error",
title: `${ye.length} 个来源检查失败`,
- extra: /* @__PURE__ */ (0, C.jsx)("ul", {
+ extra: /* @__PURE__ */ (0, w.jsx)("ul", {
className: "flex flex-col gap-0.5 text-body-2-regular",
- children: ye.map((e, t) => /* @__PURE__ */ (0, C.jsx)("li", { children: `${e.provider_label || e.provider || ""} ${e.author || e.label || e.ref || ""}:${e.error || "未说明原因"}` }, `${e.provider || ""}-${e.ref || t}`))
+ children: ye.map((e, t) => /* @__PURE__ */ (0, w.jsx)("li", { children: `${e.provider_label || e.provider || ""} ${e.author || e.label || e.ref || ""}:${e.error || "未说明原因"}` }, `${e.provider || ""}-${e.ref || t}`))
}),
children: "这些来源这一轮没有取到更新。"
}) : null,
- be ? /* @__PURE__ */ (0, C.jsx)(ch, {
+ be ? /* @__PURE__ */ (0, w.jsx)(J, {
tone: "warning",
children: `候选已入库,但这一次的原始响应没有留档:${be}`
}) : null
]
}),
- ve.length ? /* @__PURE__ */ (0, C.jsxs)(yw, {
+ ve.length ? /* @__PURE__ */ (0, w.jsxs)(bw, {
label: "关注来源批量操作",
count: `已选 ${ve.length} 个来源`,
children: [
- /* @__PURE__ */ (0, C.jsx)(X, {
+ /* @__PURE__ */ (0, w.jsx)(X, {
variant: "secondary",
size: "small",
disabled: u,
@@ -29018,7 +29020,7 @@ function Dw(e) {
onClick: () => ne(ve),
children: "检查所选"
}),
- /* @__PURE__ */ (0, C.jsx)(X, {
+ /* @__PURE__ */ (0, w.jsx)(X, {
variant: "secondary",
size: "small",
disabled: u,
@@ -29029,7 +29031,7 @@ function Dw(e) {
}),
children: "启用"
}),
- /* @__PURE__ */ (0, C.jsx)(X, {
+ /* @__PURE__ */ (0, w.jsx)(X, {
variant: "secondary",
size: "small",
disabled: u,
@@ -29040,12 +29042,12 @@ function Dw(e) {
}),
children: "暂停"
}),
- /* @__PURE__ */ (0, C.jsx)(X, {
+ /* @__PURE__ */ (0, w.jsx)(X, {
variant: "danger",
size: "small",
disabled: u,
...Z(se.isPending),
- onClick: () => void s({
+ onClick: () => void c({
title: `删除 ${ve.length} 个关注来源`,
body: "将移除所选关注来源及其已抓取条目,媒体文件保留。",
confirmLabel: "删除所选来源",
@@ -29057,7 +29059,7 @@ function Dw(e) {
}),
children: "删除"
}),
- /* @__PURE__ */ (0, C.jsx)(X, {
+ /* @__PURE__ */ (0, w.jsx)(X, {
variant: "ghost",
size: "small",
onClick: () => h(/* @__PURE__ */ new Set()),
@@ -29065,9 +29067,9 @@ function Dw(e) {
})
]
}) : null,
- L ? /* @__PURE__ */ (0, C.jsx)(OS, {
+ L ? /* @__PURE__ */ (0, w.jsx)(kS, {
follow: !0,
- children: /* @__PURE__ */ (0, C.jsxs)(DS, {
+ children: /* @__PURE__ */ (0, w.jsxs)(OS, {
"aria-label": "关注来源",
size: "sm",
sortDescriptor: fe[0] ? {
@@ -29078,100 +29080,100 @@ function Dw(e) {
id: String(e.column),
desc: e.direction === "descending"
}]),
- children: [/* @__PURE__ */ (0, C.jsx)(ny, { children: me.getHeaderGroups()[0].headers.map((e) => {
- let t = e.column.id in Ib, n = sw(e.column.columnDef.header, e.getContext());
- return /* @__PURE__ */ (0, C.jsx)(sy, {
+ children: [/* @__PURE__ */ (0, w.jsx)(ry, { children: me.getHeaderGroups()[0].headers.map((e) => {
+ let t = e.column.id in Lb, n = cw(e.column.columnDef.header, e.getContext());
+ return /* @__PURE__ */ (0, w.jsx)(cy, {
id: e.id,
allowsSorting: t,
isRowHeader: e.column.id === "source",
- children: ({ sortDirection: e }) => t ? /* @__PURE__ */ (0, C.jsxs)("span", {
+ children: ({ sortDirection: e }) => t ? /* @__PURE__ */ (0, w.jsxs)("span", {
className: "flex items-center gap-0.5",
- children: [n, /* @__PURE__ */ (0, C.jsx)("span", {
+ children: [n, /* @__PURE__ */ (0, w.jsx)("span", {
"data-sort-indicator": !0,
"data-direction": e || void 0,
- children: /* @__PURE__ */ (0, C.jsx)(pw, {})
+ children: /* @__PURE__ */ (0, w.jsx)(mw, {})
})]
- }) : /* @__PURE__ */ (0, C.jsx)(Jo, { children: n })
+ }) : /* @__PURE__ */ (0, w.jsx)(Xo, { children: n })
}, e.id);
- }) }), /* @__PURE__ */ (0, C.jsx)(dy, {
+ }) }), /* @__PURE__ */ (0, w.jsx)(fy, {
renderEmptyState: () => "这一页没有来源",
- children: he.map((e) => /* @__PURE__ */ (0, C.jsx)(hy, {
+ children: he.map((e) => /* @__PURE__ */ (0, w.jsx)(gy, {
id: e.id,
"data-follow-selected": e.getIsSelected() || void 0,
- children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, C.jsx)(vy, { children: sw(e.column.columnDef.cell, e.getContext()) }, e.id))
+ children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, w.jsx)(yy, { children: cw(e.column.columnDef.cell, e.getContext()) }, e.id))
}, e.id))
})]
})
- }) : /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(Ux, {
+ }) : /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [/* @__PURE__ */ (0, w.jsx)(Wx, {
isSelected: _e.all,
isIndeterminate: _e.some,
onChange: (e) => ie(ge, e),
"aria-label": "全选本页来源",
children: "全选本页"
- }), /* @__PURE__ */ (0, C.jsx)("div", {
+ }), /* @__PURE__ */ (0, w.jsx)("div", {
className: "flex flex-col gap-3",
children: N.slice(pe.start, pe.end).map((e) => {
let t = String(e[0].author_key || e[0].id);
- return /* @__PURE__ */ (0, C.jsx)(Ew, {
+ return /* @__PURE__ */ (0, w.jsx)(Dw, {
group: e,
- name: Yb(e, y),
+ name: Xb(e, y),
handlers: ue,
selected: l,
open: !x.has(t),
onOpen: (e) => {
let n = new Set(x);
- e ? n.delete(t) : n.add(t), w(n);
+ e ? n.delete(t) : n.add(t), S(n);
},
onToggleGroup: (t) => ie(e.map((e) => e.id), t),
onToggle: re
}, t);
})
})] }),
- /* @__PURE__ */ (0, C.jsxs)("div", {
+ /* @__PURE__ */ (0, w.jsxs)("div", {
className: "flex flex-wrap items-center justify-between gap-3",
children: [
- /* @__PURE__ */ (0, C.jsx)("span", {
+ /* @__PURE__ */ (0, w.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
children: `${pe.start + 1}–${pe.end} / ${pe.total} ${L ? "个来源" : "位创作者"}`
}),
- /* @__PURE__ */ (0, C.jsx)(_w, {
+ /* @__PURE__ */ (0, w.jsx)(vw, {
"aria-label": "每页显示数量",
size: "sm",
- selectedKey: String(c),
+ selectedKey: String(s),
onSelectionChange: (e) => {
e !== null && me.setPageSize(Number(e));
},
- children: jb.map((e) => /* @__PURE__ */ (0, C.jsx)(vw, {
+ children: Mb.map((e) => /* @__PURE__ */ (0, w.jsx)(yw, {
id: String(e),
children: `每页 ${e} ${L ? "条" : "位"}`
}, e))
}),
- /* @__PURE__ */ (0, C.jsx)(ww, {
+ /* @__PURE__ */ (0, w.jsx)(Tw, {
page: pe.page,
pages: pe.pages,
onPage: (e) => me.setPageIndex(e - 1)
})
]
}),
- b.new ? /* @__PURE__ */ (0, C.jsxs)("div", {
+ b.new ? /* @__PURE__ */ (0, w.jsxs)("div", {
className: "-mx-6 -mb-5 flex flex-wrap items-center gap-2 border-t border-separator-border rounded-b-2xl bg-card-footer px-6 py-4 max-sm:-mx-4 max-sm:px-4",
children: [
- /* @__PURE__ */ (0, C.jsx)("span", {
+ /* @__PURE__ */ (0, w.jsx)("span", {
className: "mr-auto text-body-2-regular text-text-secondary",
children: `未看 ${b.new} · 已看 ${b.seen || 0} · 已保存 ${b.saved || 0} · 已忽略 ${b.ignored || 0}`
}),
- /* @__PURE__ */ (0, C.jsx)(X, {
+ /* @__PURE__ */ (0, w.jsx)(X, {
variant: "secondary",
size: "small",
onClick: _,
children: "去看更新"
}),
- /* @__PURE__ */ (0, C.jsx)(X, {
+ /* @__PURE__ */ (0, w.jsx)(X, {
variant: "secondary",
size: "small",
disabled: u,
...Z(ce.isPending),
- onClick: () => void s({
+ onClick: () => void c({
title: "标记已看",
body: "将把当前未看作品标记为已看。",
confirmLabel: "标记已看",
@@ -29179,12 +29181,12 @@ function Dw(e) {
}),
children: "全部标记已看"
}),
- /* @__PURE__ */ (0, C.jsx)(X, {
+ /* @__PURE__ */ (0, w.jsx)(X, {
variant: "secondary",
size: "small",
disabled: u,
...Z(ce.isPending),
- onClick: () => void s({
+ onClick: () => void c({
title: "标记已忽略",
body: "将把当前未看作品标记为已忽略。",
confirmLabel: "标记已忽略",
@@ -29195,52 +29197,52 @@ function Dw(e) {
]
}) : null
]
- }) : /* @__PURE__ */ (0, C.jsx)(oh, {
+ }) : /* @__PURE__ */ (0, w.jsx)(ch, {
shell: "plain",
- icon: ep,
+ icon: rp,
title: "还没有关注来源",
children: "关注来源及其检查状态会显示在这里。"
});
}
//#endregion
//#region src/react/follow-manage/follow-manage-page.tsx
-var Ow = [
+var kw = [
["list", "关注列表"],
["add", "添加关注"],
["source", "来源和凭证"]
-], kw = (e) => Ow.some(([t]) => t === e);
-function Aw({ term: e, figure: t, unit: n }) {
- return /* @__PURE__ */ (0, C.jsxs)("div", {
- className: ih({
+], Aw = (e) => kw.some(([t]) => t === e);
+function jw({ term: e, figure: t, unit: n }) {
+ return /* @__PURE__ */ (0, w.jsxs)("div", {
+ className: oh({
padding: "none",
className: "flex flex-col gap-3 px-6 py-5 max-sm:gap-2 max-sm:p-4"
}),
- children: [/* @__PURE__ */ (0, C.jsx)("span", {
+ children: [/* @__PURE__ */ (0, w.jsx)("span", {
className: "text-body-medium text-text-secondary",
children: e
- }), /* @__PURE__ */ (0, C.jsxs)("b", {
+ }), /* @__PURE__ */ (0, w.jsxs)("b", {
className: "text-title-1-medium tabular-nums text-text-primary",
- children: [t, /* @__PURE__ */ (0, C.jsx)("small", {
+ children: [t, /* @__PURE__ */ (0, w.jsx)("small", {
className: "text-body-2-regular text-text-secondary",
children: ` ${n}`
})]
})]
});
}
-function jw(e) {
- let { route: t, savePreference: n, toast: r, openFollow: i, readOnly: a, readOnlyMessage: o, writerUrl: s } = e, [c, l] = (0, S.useState)(kw(e.tab) ? e.tab : "list"), [u, d] = (0, S.useState)(Math.max(1, Math.floor(e.page) || 1)), [f, p] = (0, S.useState)(Lb(e.sort) ? e.sort : Nb), [m, h] = (0, S.useState)(e.dir === "asc" || e.dir === "desc" ? e.dir : Pb[Lb(e.sort) ? e.sort : Nb]), [g, _] = (0, S.useState)(Rb(e.layout) ? e.layout : "default"), [v, y] = (0, S.useState)(zb(e.pageSize)), [b, x] = (0, S.useState)(/* @__PURE__ */ new Set()), w = lt({
- queryKey: Tb,
- queryFn: ({ signal: e }) => ax(e)
- }), T = lt({
+function Mw(e) {
+ let { route: t, savePreference: n, toast: r, openFollow: i, readOnly: a, readOnlyMessage: o, writerUrl: s } = e, [c, l] = (0, C.useState)(Aw(e.tab) ? e.tab : "list"), [u, d] = (0, C.useState)(Math.max(1, Math.floor(e.page) || 1)), [f, p] = (0, C.useState)(Rb(e.sort) ? e.sort : Pb), [m, h] = (0, C.useState)(e.dir === "asc" || e.dir === "desc" ? e.dir : Fb[Rb(e.sort) ? e.sort : Pb]), [g, _] = (0, C.useState)(zb(e.layout) ? e.layout : "default"), [v, y] = (0, C.useState)(Bb(e.pageSize)), [b, x] = (0, C.useState)(/* @__PURE__ */ new Set()), S = ut({
queryKey: Eb,
queryFn: ({ signal: e }) => ox(e)
- }), E = w.data || { sources: [] }, D = T.data || {
+ }), T = ut({
+ queryKey: Db,
+ queryFn: ({ signal: e }) => sx(e)
+ }), E = S.data || { sources: [] }, D = T.data || {
root: "",
providers: []
}, O = E.sources;
- (0, S.useEffect)(() => {
+ (0, C.useEffect)(() => {
x((e) => {
- let t = nx(e, O);
+ let t = rx(e, O);
return t.size === e.size ? e : t;
});
}, [O]);
@@ -29250,16 +29252,16 @@ function jw(e) {
tab: e.tab ?? c,
page: e.page ?? u,
sort: n === "checked" ? "" : n,
- dir: r === Pb[n] ? "" : r
+ dir: r === Fb[n] ? "" : r
});
- }, A = Qb(O), j = O.filter(Wb).length, M = O.filter((e) => e.enabled).length, N = (D.providers || []).filter((e) => e.requirement === "required" && !Nx(e)).length;
- return /* @__PURE__ */ (0, C.jsxs)(lh, { children: [
- a ? /* @__PURE__ */ (0, C.jsx)(ch, {
+ }, A = $b(O), j = O.filter(Gb).length, M = O.filter((e) => e.enabled).length, N = (D.providers || []).filter((e) => e.requirement === "required" && !Px(e)).length;
+ return /* @__PURE__ */ (0, w.jsxs)(uh, { children: [
+ a ? /* @__PURE__ */ (0, w.jsx)(J, {
tone: "warning",
title: "本机只能浏览",
- extra: s ? /* @__PURE__ */ (0, C.jsx)("p", {
+ extra: s ? /* @__PURE__ */ (0, w.jsx)("p", {
className: "text-body-2-regular",
- children: /* @__PURE__ */ (0, C.jsx)("a", {
+ children: /* @__PURE__ */ (0, w.jsx)("a", {
href: s,
className: "text-text-primary underline underline-offset-2",
children: "前往写入端管理关注"
@@ -29267,53 +29269,53 @@ function jw(e) {
}) : void 0,
children: o
}) : null,
- /* @__PURE__ */ (0, C.jsxs)("div", {
- className: zx,
+ /* @__PURE__ */ (0, w.jsxs)("div", {
+ className: Bx,
"aria-label": "关注概览",
children: [
- /* @__PURE__ */ (0, C.jsx)(Aw, {
+ /* @__PURE__ */ (0, w.jsx)(jw, {
term: "关注创作者",
figure: A.length,
unit: "位"
}),
- /* @__PURE__ */ (0, C.jsx)(Aw, {
+ /* @__PURE__ */ (0, w.jsx)(jw, {
term: "启用来源",
figure: M,
unit: `/ ${O.length}`
}),
- /* @__PURE__ */ (0, C.jsx)(Aw, {
+ /* @__PURE__ */ (0, w.jsx)(jw, {
term: "检查失败",
figure: j,
unit: "个来源"
}),
- /* @__PURE__ */ (0, C.jsx)(Aw, {
+ /* @__PURE__ */ (0, w.jsx)(jw, {
term: "未看更新",
figure: E.counts?.new || 0,
unit: "条"
})
]
}),
- /* @__PURE__ */ (0, C.jsxs)(Ay, {
+ /* @__PURE__ */ (0, w.jsxs)(jy, {
selectedKey: c,
onSelectionChange: (e) => {
let t = String(e);
- kw(t) && (l(t), k({ tab: t }));
+ Aw(t) && (l(t), k({ tab: t }));
},
className: "flex flex-col gap-6",
children: [
- /* @__PURE__ */ (0, C.jsx)(My, {
+ /* @__PURE__ */ (0, w.jsx)(Ny, {
"aria-label": "关注管理区域",
- className: Px,
- children: Ow.map(([e, t]) => /* @__PURE__ */ (0, C.jsx)(Py, {
+ className: Fx,
+ children: kw.map(([e, t]) => /* @__PURE__ */ (0, w.jsx)(Fy, {
id: e,
- className: Fx,
+ className: Ix,
children: e === "source" && N ? `${t}(${N})` : t
}, e))
}),
- /* @__PURE__ */ (0, C.jsx)(Fy, {
+ /* @__PURE__ */ (0, w.jsx)(Iy, {
id: "list",
className: "flex flex-col gap-4",
- children: /* @__PURE__ */ (0, C.jsx)(Dw, {
+ children: /* @__PURE__ */ (0, w.jsx)(Ow, {
data: E,
sort: f,
dir: m,
@@ -29343,10 +29345,10 @@ function jw(e) {
}
})
}),
- /* @__PURE__ */ (0, C.jsxs)(Fy, {
+ /* @__PURE__ */ (0, w.jsxs)(Iy, {
id: "add",
className: "flex flex-col gap-8",
- children: [/* @__PURE__ */ (0, C.jsx)(ES, {
+ children: [/* @__PURE__ */ (0, w.jsx)(DS, {
data: E,
credentials: D,
readOnly: a,
@@ -29354,7 +29356,7 @@ function jw(e) {
openCredentials: () => {
l("source"), k({ tab: "source" });
}
- }), /* @__PURE__ */ (0, C.jsx)(NS, {
+ }), /* @__PURE__ */ (0, w.jsx)(PS, {
groups: E.author_aliases || [],
readOnly: a,
toast: r,
@@ -29362,10 +29364,10 @@ function jw(e) {
sources: E.sources
})]
}),
- /* @__PURE__ */ (0, C.jsx)(Fy, {
+ /* @__PURE__ */ (0, w.jsx)(Iy, {
id: "source",
className: "flex flex-col gap-4",
- children: /* @__PURE__ */ (0, C.jsx)(HS, {
+ children: /* @__PURE__ */ (0, w.jsx)(US, {
data: D,
readOnly: a,
toast: r
@@ -29377,35 +29379,35 @@ function jw(e) {
}
//#endregion
//#region src/react/library-processing/library-processing.ts
-var Mw = "/api/library-processing", Nw = ["library-processing"], Pw = (e) => Ym(Mw, e);
-async function Fw(e) {
- await dh.fetchQuery({
- queryKey: Nw,
- queryFn: () => Pw(e)
+var Nw = "/api/library-processing", Pw = ["library-processing"], Fw = (e) => Zm(Nw, e);
+async function Iw(e) {
+ await fh.fetchQuery({
+ queryKey: Pw,
+ queryFn: () => Fw(e)
});
}
-var Iw = 2e3, Lw = 1e4, Rw = "连接中断,正在重新读取处理进度";
-function zw(e, t) {
- return e?.status === "running" ? Iw : t ? Lw : !1;
+var Lw = 2e3, Rw = 1e4, zw = "连接中断,正在重新读取处理进度";
+function Bw(e, t) {
+ return e?.status === "running" ? Lw : t ? Rw : !1;
}
-var Bw = {
+var Vw = {
reading_local: "读取本地资料",
querying_metadata: "查询外部资料",
fetching_cover: "采集缺失封面",
writing_candidates: "保存资料候选"
-}, Vw = {
+}, Hw = {
querying_metadata: "没有资料",
fetching_cover: "没有封面"
};
-function Hw(e) {
- let t = Object.entries(e).filter(([e, t]) => Vw[e] && t > 0).map(([e, t]) => `${Vw[e]} ${t} 部`);
+function Uw(e) {
+ let t = Object.entries(e).filter(([e, t]) => Hw[e] && t > 0).map(([e, t]) => `${Hw[e]} ${t} 部`);
return t.length ? `外部来源${t.join("、")},7 天内不再问。` : "";
}
-function Uw(e) {
- let t = Bw[e.current_action || ""] || e.stage || "正在处理", n = e.waited_seconds ? ` · 已等待 ${e.waited_seconds} 秒` : "";
+function Ww(e) {
+ let t = Vw[e.current_action || ""] || e.stage || "正在处理", n = e.waited_seconds ? ` · 已等待 ${e.waited_seconds} 秒` : "";
return e.current_asset_name ? `当前:${e.current_asset_name} · ${t}${n}` : t + n;
}
-function Ww(e) {
+function Gw(e) {
let t = e.issue_preview || [];
return t.length ? {
label: e.issues_truncated ? `问题清单:共 ${e.issue_count || 0} 项,展开查看前 ${t.length} 项` : `问题清单:共 ${e.issue_count || 0} 项`,
@@ -29419,32 +29421,32 @@ function Ww(e) {
footnote: e.issues_log ? `完整记录:${e.issues_log}` : ""
} : null;
}
-var Gw = "peach.library-processing.announced", Kw = 120;
-function qw(e, t, n) {
+var Kw = "peach.library-processing.announced", qw = 120;
+function Jw(e, t, n) {
if (e.status !== "complete") return;
- let r = !!e.job_id && !!e.completed_at && Date.now() / 1e3 - e.completed_at < Kw;
+ let r = !!e.job_id && !!e.completed_at && Date.now() / 1e3 - e.completed_at < qw;
if (!(!n && !r)) {
try {
- if (e.job_id && localStorage.getItem(Gw) === e.job_id) return;
- e.job_id && localStorage.setItem(Gw, e.job_id);
+ if (e.job_id && localStorage.getItem(Kw) === e.job_id) return;
+ e.job_id && localStorage.setItem(Kw, e.job_id);
} catch {}
t(`扫描与资料采集已完成:识别 ${e.identified || 0} 个番号,整理 ${e.candidates || 0} 组资料候选,自动落库 ${e.auto_applied || 0} 条`);
}
}
//#endregion
//#region src/react/library-processing/use-library-processing.ts
-function Jw({ toast: e, mode: t, monitor: n }) {
- let r = t === "notice" || !!n, i = lt({
- queryKey: Nw,
- queryFn: ({ signal: e }) => Pw(e),
- refetchInterval: (e) => zw(e.state.data, r)
- }), [a, o] = (0, S.useState)(null), s = (0, S.useRef)(void 0), c = i.data;
- return (0, S.useEffect)(() => {
+function Yw({ toast: e, mode: t, monitor: n }) {
+ let r = t === "notice" || !!n, i = ut({
+ queryKey: Pw,
+ queryFn: ({ signal: e }) => Fw(e),
+ refetchInterval: (e) => Bw(e.state.data, r)
+ }), [a, o] = (0, C.useState)(null), s = (0, C.useRef)(void 0), c = i.data;
+ return (0, C.useEffect)(() => {
if (!c) return;
let n = s.current;
s.current = c.status;
let r = n === "running" && c.status !== "running";
- r && o(c), (r || t === "notice") && qw(c, e, r);
+ r && o(c), (r || t === "notice") && Jw(c, e, r);
}, [
c,
t,
@@ -29457,45 +29459,45 @@ function Jw({ toast: e, mode: t, monitor: n }) {
}
//#endregion
//#region src/react/library-processing/library-processing-card.tsx
-var Yw = [
+var Xw = [
{
label: "扫描并补全资料",
- icon: Lf,
+ icon: Bf,
command: {}
},
{
label: "只扫描",
- icon: Wf,
+ icon: qf,
command: { stage: "scan" }
},
{
label: "只采集",
- icon: Uf,
+ icon: Kf,
command: { stage: "collect" }
}
-], Xw = Um(qx, Jx, "text-body-2-medium"), Zw = "扫描媒体文件夹,导入已有资料,采集缺失信息。两段也可以分开跑:新盘刚接上时先只扫描,几万个文件登记完就能用;采集被网络拖住时只重跑采集,不必再扫一遍磁盘。", Qw = "这个项目处理时间较长,暂时没有新进展。可以继续等待,或在任务结束后重试未完成项。", $w = (e) => {
+], Zw = K(Jx, Yx, "text-body-2-medium"), Qw = "扫描媒体文件夹,导入已有资料,采集缺失信息。两段也可以分开跑:新盘刚接上时先只扫描,几万个文件登记完就能用;采集被网络拖住时只重跑采集,不必再扫一遍磁盘。", $w = "这个项目处理时间较长,暂时没有新进展。可以继续等待,或在任务结束后重试未完成项。", eT = (e) => {
let t = e.performer_aliases || 0, n = e.performer_avatars || 0, r = e.performer_profile_conflicts || 0, i = e.performer_profile_failed || 0;
if (!t && !n && !r && !i) return "";
let a = [`补齐女优资料:别名 ${t} 个,头像 ${n} 张`];
return r && a.push(`${r} 个同名冲突交回人工`), i && a.push(`${i} 张头像未取得`), `${a.join(",")}。`;
-}, eT = (e) => `已扫描 ${e.scanned || 0} 个文件,识别 ${e.identified || 0} 个番号,整理 ${e.candidates || 0} 组资料候选,自动落库 ${e.auto_applied || 0} 条。` + $w(e);
-function tT({ busy: e, onRun: t }) {
- let n = (0, S.useRef)(null), [r, i] = (0, S.useState)(!1), a = (n) => {
+}, tT = (e) => `已扫描 ${e.scanned || 0} 个文件,识别 ${e.identified || 0} 个番号,整理 ${e.candidates || 0} 组资料候选,自动落库 ${e.auto_applied || 0} 条。` + eT(e);
+function nT({ busy: e, onRun: t }) {
+ let n = (0, C.useRef)(null), [r, i] = (0, C.useState)(!1), a = (n) => {
e || (i(!1), t(n));
};
- return /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsxs)("span", {
+ return /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [/* @__PURE__ */ (0, w.jsxs)("span", {
"data-button-group": !0,
"data-split-button": !0,
"data-variant": "primary",
- children: [/* @__PURE__ */ (0, C.jsx)(X, {
- leadingIcon: Lf,
+ children: [/* @__PURE__ */ (0, w.jsx)(X, {
+ leadingIcon: Bf,
onClick: () => a({}),
...Z(e),
children: "扫描并补全资料"
- }), /* @__PURE__ */ (0, C.jsx)(X, {
+ }), /* @__PURE__ */ (0, w.jsx)(X, {
ref: n,
iconOnly: !0,
- leadingIcon: Of,
+ leadingIcon: jf,
"aria-label": "更多扫描与采集方式",
"aria-haspopup": "dialog",
"aria-expanded": r,
@@ -29504,21 +29506,21 @@ function tT({ busy: e, onRun: t }) {
e || i(!0);
}
})]
- }), /* @__PURE__ */ (0, C.jsx)(K_, {
+ }), /* @__PURE__ */ (0, w.jsx)(q_, {
triggerRef: n,
isOpen: r,
onOpenChange: i,
placement: "bottom end",
offset: 4,
- className: Wx,
- children: /* @__PURE__ */ (0, C.jsx)(X_, {
+ className: Gx,
+ children: /* @__PURE__ */ (0, w.jsx)(Z_, {
"aria-label": "更多扫描与采集方式",
className: "flex w-52 flex-col gap-1 outline-none",
- children: Yw.map(({ label: e, icon: t, command: n }) => /* @__PURE__ */ (0, C.jsxs)("button", {
+ children: Xw.map(({ label: e, icon: t, command: n }) => /* @__PURE__ */ (0, w.jsxs)("button", {
type: "button",
- className: Xw,
+ className: Zw,
onClick: () => a(n),
- children: [/* @__PURE__ */ (0, C.jsx)(t, {
+ children: [/* @__PURE__ */ (0, w.jsx)(t, {
"aria-hidden": !0,
className: "size-4 shrink-0"
}), e]
@@ -29526,109 +29528,116 @@ function tT({ busy: e, onRun: t }) {
})
})] });
}
-function nT({ state: e, problem: t, settled: n, onRetry: r }) {
- let i = Ww(e), a = e.status === "failed" && !!e.retryable_asset_ids?.length, o = Hw(e.notes || {});
- return /* @__PURE__ */ (0, C.jsxs)("div", {
+function rT({ state: e, problem: t, settled: n, onRetry: r }) {
+ let i = Gw(e), a = e.status === "failed" && !!e.retryable_asset_ids?.length, o = Uw(e.notes || {}), c = (0, C.useRef)(null);
+ return (0, C.useEffect)(() => {
+ s(c.current);
+ }), /* @__PURE__ */ (0, w.jsxs)("div", {
"aria-live": "polite",
className: "flex flex-col gap-4 empty:hidden",
children: [
- e.status === "running" && e.stalled ? /* @__PURE__ */ (0, C.jsx)(ch, {
+ e.status === "running" && e.stalled ? /* @__PURE__ */ (0, w.jsx)(J, {
tone: "warning",
title: "处理较慢",
- children: Qw
+ children: $w
}) : null,
- t || e.status === "failed" ? /* @__PURE__ */ (0, C.jsx)(ch, {
+ t || e.status === "failed" ? /* @__PURE__ */ (0, w.jsx)(J, {
tone: "error",
- extra: /* @__PURE__ */ (0, C.jsxs)("div", {
- className: "flex flex-col items-start gap-3 pt-1",
- children: [a ? /* @__PURE__ */ (0, C.jsx)(X, {
- variant: "secondary",
- size: "small",
- onClick: r,
- children: "重试未完成项"
- }) : null, i ? /* @__PURE__ */ (0, C.jsxs)(uS, {
+ action: a ? /* @__PURE__ */ (0, w.jsx)(X, {
+ variant: "primary",
+ size: "small",
+ onClick: r,
+ children: "重试未完成项"
+ }) : null,
+ extra: i ? /* @__PURE__ */ (0, w.jsx)("div", {
+ className: "pt-1",
+ children: /* @__PURE__ */ (0, w.jsxs)(dS, {
summary: i.label,
- children: [/* @__PURE__ */ (0, C.jsx)("ul", {
- className: "flex max-h-96 flex-col gap-2 overflow-y-auto",
- children: i.items.map((e) => /* @__PURE__ */ (0, C.jsxs)("li", {
- className: "flex flex-col gap-0.5",
- children: [
- e.href ? /* @__PURE__ */ (0, C.jsx)("a", {
- href: e.href,
- className: "text-body-2-medium underline-offset-4 hover:underline",
- children: e.label
- }) : /* @__PURE__ */ (0, C.jsx)("span", {
- className: "text-body-2-medium",
- children: e.label
- }),
- /* @__PURE__ */ (0, C.jsx)("span", {
- className: "text-caption-1-regular",
- children: e.note
- }),
- e.hint ? /* @__PURE__ */ (0, C.jsx)("code", {
- className: "text-caption-1-regular break-all",
- children: e.hint
- }) : null
- ]
- }, e.key))
- }), i.footnote ? /* @__PURE__ */ (0, C.jsx)("p", {
+ children: [/* @__PURE__ */ (0, w.jsx)("div", {
+ className: "relative",
+ children: /* @__PURE__ */ (0, w.jsx)("ul", {
+ ref: c,
+ className: "flex max-h-96 flex-col gap-2 overflow-y-auto pr-3",
+ children: i.items.map((e) => /* @__PURE__ */ (0, w.jsxs)("li", {
+ className: "flex flex-col gap-0.5",
+ children: [
+ e.href ? /* @__PURE__ */ (0, w.jsx)("a", {
+ href: e.href,
+ className: "text-body-2-medium underline-offset-4 hover:underline",
+ children: e.label
+ }) : /* @__PURE__ */ (0, w.jsx)("span", {
+ className: "text-body-2-medium",
+ children: e.label
+ }),
+ /* @__PURE__ */ (0, w.jsx)("span", {
+ className: "text-caption-1-regular",
+ children: e.note
+ }),
+ e.hint ? /* @__PURE__ */ (0, w.jsx)("code", {
+ className: "text-caption-1-regular break-all",
+ children: e.hint
+ }) : null
+ ]
+ }, e.key))
+ })
+ }), i.footnote ? /* @__PURE__ */ (0, w.jsx)("p", {
className: "text-caption-1-regular break-all",
children: i.footnote
}) : null]
- }) : null]
- }),
+ })
+ }) : null,
children: t || e.error || "处理未完成,请重试"
}) : null,
- n?.status === "complete" ? /* @__PURE__ */ (0, C.jsx)(ch, {
+ n?.status === "complete" ? /* @__PURE__ */ (0, w.jsx)(J, {
tone: "success",
title: "处理完成",
- children: eT(n)
+ children: tT(n)
}) : null,
- e.status !== "running" && o ? /* @__PURE__ */ (0, C.jsxs)(ch, {
+ e.status !== "running" && o ? /* @__PURE__ */ (0, w.jsxs)(J, {
tone: "neutral",
children: [o, e.issues_log ? ` 完整记录:${e.issues_log}` : ""]
}) : null
]
});
}
-function rT(e) {
- let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = Jw(e), o = ut({
- mutationFn: (e) => Xm(Mw, e),
+function iT(e) {
+ let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = Yw(e), o = dt({
+ mutationFn: (e) => Qm(Nw, e),
onSuccess: (e) => {
- a(), dh.setQueryData(Nw, e), dh.invalidateQueries({ queryKey: Nw });
+ a(), fh.setQueryData(Pw, e), fh.invalidateQueries({ queryKey: Pw });
}
});
- (0, S.useEffect)(() => {
+ (0, C.useEffect)(() => {
i && n?.();
}, [i, n]);
- let s = r.data ?? { status: "idle" }, c = o.error ? J(o.error) : r.isError ? r.data ? Rw : J(r.error) : "", l = o.isPending || s.status === "running", u = s.status === "failed" && !!s.retryable_asset_ids?.length, d = Uw(s), f = (e) => {
+ let s = r.data ?? { status: "idle" }, c = o.error ? q(o.error) : r.isError ? r.data ? zw : q(r.error) : "", l = o.isPending || s.status === "running", u = s.status === "failed" && !!s.retryable_asset_ids?.length, d = Ww(s), f = (e) => {
l || (o.reset(), o.mutate(e));
};
- return /* @__PURE__ */ (0, C.jsxs)("div", {
+ return /* @__PURE__ */ (0, w.jsxs)("div", {
className: "flex flex-col gap-4",
- children: [/* @__PURE__ */ (0, C.jsxs)("section", {
+ children: [/* @__PURE__ */ (0, w.jsxs)("section", {
"aria-label": "扫描与采集",
"data-geist-fieldset": !0,
"data-cleanup-task": !0,
"data-cleanup-processing": !0,
- children: [/* @__PURE__ */ (0, C.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, w.jsxs)("div", {
"data-geist-fieldset-content": !0,
children: [
- /* @__PURE__ */ (0, C.jsx)("h3", {
+ /* @__PURE__ */ (0, w.jsx)("h3", {
className: "text-title-2-medium text-text-primary",
children: "扫描与采集"
}),
- /* @__PURE__ */ (0, C.jsx)("p", {
+ /* @__PURE__ */ (0, w.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: Zw
+ children: Qw
}),
- s.status === "running" ? /* @__PURE__ */ (0, C.jsx)("div", {
+ s.status === "running" ? /* @__PURE__ */ (0, w.jsx)("div", {
className: "flex flex-col gap-1.5",
- children: s.total ? /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(uh, {
+ children: s.total ? /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [/* @__PURE__ */ (0, w.jsx)(dh, {
label: d,
value: s.checked || 0,
max: s.total
- }), /* @__PURE__ */ (0, C.jsxs)("p", {
+ }), /* @__PURE__ */ (0, w.jsxs)("p", {
className: "text-caption-1-regular text-text-secondary",
children: [
d,
@@ -29638,31 +29647,31 @@ function rT(e) {
s.total,
" 个视频"
]
- })] }) : /* @__PURE__ */ (0, C.jsx)(sh, { label: d })
+ })] }) : /* @__PURE__ */ (0, w.jsx)(lh, { label: d })
}) : null
]
- }), /* @__PURE__ */ (0, C.jsxs)("footer", {
+ }), /* @__PURE__ */ (0, w.jsxs)("footer", {
"data-geist-fieldset-footer": !0,
children: [
- /* @__PURE__ */ (0, C.jsx)($x, {
+ /* @__PURE__ */ (0, w.jsx)(eS, {
href: "/scraping",
size: "small",
- trailingIcon: kf,
+ trailingIcon: Mf,
children: "来源和凭证"
}),
- s.candidates ? /* @__PURE__ */ (0, C.jsx)($x, {
+ s.candidates ? /* @__PURE__ */ (0, w.jsx)(eS, {
href: "/review",
size: "small",
- trailingIcon: kf,
+ trailingIcon: Mf,
children: "复核资料"
}) : null,
- u ? null : /* @__PURE__ */ (0, C.jsx)(tT, {
+ u ? null : /* @__PURE__ */ (0, w.jsx)(nT, {
busy: l,
onRun: f
})
]
})]
- }), /* @__PURE__ */ (0, C.jsx)(nT, {
+ }), /* @__PURE__ */ (0, w.jsx)(rT, {
state: s,
problem: c,
settled: i,
@@ -29677,14 +29686,14 @@ function rT(e) {
}
//#endregion
//#region src/react/library-processing/library-processing-notice.tsx
-var iT = "flex min-h-10 flex-wrap items-center justify-center gap-x-4 gap-y-2 border-y border-separator-border px-6 py-2 max-sm:justify-start", aT = {
- gray: `${iT} bg-background-secondary-default text-text-secondary`,
- warning: `${iT} bg-status-yellow-background text-status-yellow-text`,
- error: `${iT} bg-background-tertiary-error text-text-error-primary`
+var aT = "flex min-h-10 flex-wrap items-center justify-center gap-x-4 gap-y-2 border-y border-separator-border px-6 py-2 max-sm:justify-start", oT = {
+ gray: `${aT} bg-background-secondary-default text-text-secondary`,
+ warning: `${aT} bg-status-yellow-background text-status-yellow-text`,
+ error: `${aT} bg-background-tertiary-error text-text-error-primary`
};
-function oT({ value: e, max: t }) {
+function sT({ value: e, max: t }) {
let n = Math.max(0, Math.min(100, e / t * 100));
- return /* @__PURE__ */ (0, C.jsxs)("svg", {
+ return /* @__PURE__ */ (0, w.jsxs)("svg", {
role: "progressbar",
"aria-label": "任务完成率",
"aria-valuemin": 0,
@@ -29693,13 +29702,13 @@ function oT({ value: e, max: t }) {
viewBox: "0 0 32 32",
fill: "none",
className: "size-8 shrink-0 -rotate-90 stroke-current",
- children: [/* @__PURE__ */ (0, C.jsx)("circle", {
+ children: [/* @__PURE__ */ (0, w.jsx)("circle", {
cx: "16",
cy: "16",
r: "13",
strokeWidth: "4",
className: "opacity-25"
- }), /* @__PURE__ */ (0, C.jsx)("circle", {
+ }), /* @__PURE__ */ (0, w.jsx)("circle", {
cx: "16",
cy: "16",
r: "13",
@@ -29710,77 +29719,77 @@ function oT({ value: e, max: t }) {
})]
});
}
-function sT(e) {
- let { job: t } = Jw(e), n = t.data, r = t.isError ? n ? Rw : J(t.error) : "", i = n?.status ?? "idle", a = i === "failed", o = i === "running";
+function cT(e) {
+ let { job: t } = Yw(e), n = t.data, r = t.isError ? n ? zw : q(t.error) : "", i = n?.status ?? "idle", a = i === "failed", o = i === "running";
if (!r && !o && !a) return null;
- let s = a ? "error" : r || n?.stalled ? "warning" : "gray", c = n?.checked || 0, l = n?.total || 0, u = r || (a ? "扫描与资料采集未完成" : Uw(n) + (l ? ` · ${c} / ${l}` : "")), d = s === "gray" ? Jf : zf;
- return /* @__PURE__ */ (0, C.jsxs)("aside", {
+ let s = a ? "error" : r || n?.stalled ? "warning" : "gray", c = n?.checked || 0, l = n?.total || 0, u = r || (a ? "扫描与资料采集未完成" : Ww(n) + (l ? ` · ${c} / ${l}` : "")), d = s === "gray" ? Zf : Hf;
+ return /* @__PURE__ */ (0, w.jsxs)("aside", {
role: a ? "alert" : "status",
- className: aT[s],
- children: [/* @__PURE__ */ (0, C.jsxs)("div", {
+ className: oT[s],
+ children: [/* @__PURE__ */ (0, w.jsxs)("div", {
className: "flex min-w-0 items-center gap-3",
- children: [o && l ? /* @__PURE__ */ (0, C.jsx)(oT, {
+ children: [o && l ? /* @__PURE__ */ (0, w.jsx)(sT, {
value: c,
max: l
- }) : /* @__PURE__ */ (0, C.jsx)(d, {
+ }) : /* @__PURE__ */ (0, w.jsx)(d, {
"aria-hidden": !0,
className: "size-4 shrink-0"
- }), /* @__PURE__ */ (0, C.jsx)("p", {
+ }), /* @__PURE__ */ (0, w.jsx)("p", {
className: "min-w-0 text-body-2-regular",
children: u
})]
- }), /* @__PURE__ */ (0, C.jsx)($x, {
+ }), /* @__PURE__ */ (0, w.jsx)(eS, {
href: "/data-cleanup#libraryProcessing",
size: "small",
- trailingIcon: kf,
+ trailingIcon: Mf,
children: r || a ? "查看并处理" : "查看进度"
})]
});
}
//#endregion
//#region src/react/quality-goals/quality-goals.ts
-var cT = "/api/quality-goals?limit=200", lT = ["quality-goals"], uT = (e) => Ym(cT, e);
-async function dT(e) {
- await dh.fetchQuery({
- queryKey: lT,
- queryFn: () => uT(e)
+var lT = "/api/quality-goals?limit=200", uT = ["quality-goals"], dT = (e) => Zm(lT, e);
+async function fT(e) {
+ await fh.fetchQuery({
+ queryKey: uT,
+ queryFn: () => dT(e)
});
}
-var fT = (e) => e.has_cover ? `/cover?code=${encodeURIComponent(e.code ?? "")}` : `/poster?id=${e.id}&c=4`;
+var pT = (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 pT({ item: r, openItem: i, javTitleHtml: a, javDisplayName: o, srcBadge: s }) {
+function mT({ item: r, openItem: i, javTitleHtml: a, javDisplayName: o, srcBadge: s }) {
let c = () => i(r.id);
- return /* @__PURE__ */ (0, C.jsxs)("li", {
+ return /* @__PURE__ */ (0, w.jsxs)("li", {
"data-goal-id": r.id,
- className: ih({
+ className: oh({
padding: "none",
bordered: "soft",
className: "flex flex-col gap-3 p-3"
}),
- children: [/* @__PURE__ */ (0, C.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, w.jsxs)("div", {
className: "flex min-w-0 gap-4",
- children: [/* @__PURE__ */ (0, C.jsxs)("button", {
+ children: [/* @__PURE__ */ (0, w.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-2lg bg-background-tertiary-default",
- children: [/* @__PURE__ */ (0, C.jsx)("span", {
+ children: [/* @__PURE__ */ (0, w.jsx)("span", {
className: "text-caption-1-regular text-text-secondary",
children: "暂无预览"
- }), /* @__PURE__ */ (0, C.jsx)("img", {
- src: fT(r),
+ }), /* @__PURE__ */ (0, w.jsx)("img", {
+ src: pT(r),
alt: "",
loading: "lazy",
onError: (e) => e.currentTarget.remove(),
className: "absolute inset-0 size-full object-contain"
})]
- }), /* @__PURE__ */ (0, C.jsxs)("div", {
+ }), /* @__PURE__ */ (0, w.jsxs)("div", {
className: "flex min-w-0 flex-col gap-1.5",
children: [
- /* @__PURE__ */ (0, C.jsx)("h3", {
+ /* @__PURE__ */ (0, w.jsx)("h3", {
className: "text-headline-medium text-text-primary",
- children: /* @__PURE__ */ (0, C.jsx)("button", {
+ children: /* @__PURE__ */ (0, w.jsx)("button", {
type: "button",
"data-middle-truncate": !0,
onClick: c,
@@ -29788,27 +29797,27 @@ function pT({ item: r, openItem: i, javTitleHtml: a, javDisplayName: o, srcBadge
dangerouslySetInnerHTML: { __html: a(r) }
})
}),
- /* @__PURE__ */ (0, C.jsxs)("p", {
+ /* @__PURE__ */ (0, w.jsxs)("p", {
className: "flex flex-wrap items-center gap-2 text-body-2-regular text-text-secondary",
children: [
- /* @__PURE__ */ (0, C.jsx)("span", {
+ /* @__PURE__ */ (0, w.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: s(r.location, r.cost) }
}),
- /* @__PURE__ */ (0, C.jsx)("span", { children: e[r.location] ?? r.location }),
- /* @__PURE__ */ (0, C.jsx)("span", { children: t(r.duration) }),
- /* @__PURE__ */ (0, C.jsx)("span", { children: n(r.size ?? 0) })
+ /* @__PURE__ */ (0, w.jsx)("span", { children: e[r.location] ?? r.location }),
+ /* @__PURE__ */ (0, w.jsx)("span", { children: t(r.duration) }),
+ /* @__PURE__ */ (0, w.jsx)("span", { children: n(r.size ?? 0) })
]
}),
- r.reason ? /* @__PURE__ */ (0, C.jsx)("p", {
+ r.reason ? /* @__PURE__ */ (0, w.jsx)("p", {
className: "border-t border-separator-border pt-3 text-body-2-regular text-text-secondary",
children: r.reason
}) : null
]
})]
- }), /* @__PURE__ */ (0, C.jsx)("footer", {
+ }), /* @__PURE__ */ (0, w.jsx)("footer", {
className: "flex justify-end",
- children: /* @__PURE__ */ (0, C.jsx)(X, {
+ children: /* @__PURE__ */ (0, w.jsx)(X, {
variant: "secondary",
size: "small",
onClick: c,
@@ -29817,51 +29826,51 @@ function pT({ item: r, openItem: i, javTitleHtml: a, javDisplayName: o, srcBadge
})]
});
}
-function mT(e) {
- let t = lt({
- queryKey: lT,
- queryFn: ({ signal: e }) => uT(e)
+function hT(e) {
+ let t = ut({
+ queryKey: uT,
+ queryFn: ({ signal: e }) => dT(e)
}), n = t.data;
- if (!n) return /* @__PURE__ */ (0, C.jsx)(lh, { children: /* @__PURE__ */ (0, C.jsx)(ch, {
+ if (!n) return /* @__PURE__ */ (0, w.jsx)(uh, { children: /* @__PURE__ */ (0, w.jsx)(J, {
tone: "error",
title: "读取失败",
- children: t.error ? J(t.error) : "读取高清版目标失败"
+ children: t.error ? q(t.error) : "读取高清版目标失败"
}) });
let r = n.items || [];
- return r.length ? /* @__PURE__ */ (0, C.jsxs)(lh, { children: [/* @__PURE__ */ (0, C.jsxs)("div", {
- className: ih({
+ return r.length ? /* @__PURE__ */ (0, w.jsxs)(uh, { children: [/* @__PURE__ */ (0, w.jsxs)("div", {
+ className: oh({
variant: "raised",
className: "flex flex-col gap-1 px-6 py-5 max-sm:px-4"
}),
- children: [/* @__PURE__ */ (0, C.jsx)("span", {
+ children: [/* @__PURE__ */ (0, w.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
children: "待升级"
- }), /* @__PURE__ */ (0, C.jsx)("b", {
+ }), /* @__PURE__ */ (0, w.jsx)("b", {
className: "text-display-4-medium tabular-nums text-text-primary",
children: `${n.total} 部作品`
})]
- }), /* @__PURE__ */ (0, C.jsx)("ul", {
+ }), /* @__PURE__ */ (0, w.jsx)("ul", {
className: "card-grid-cover gap-5",
- children: r.map((t) => /* @__PURE__ */ (0, C.jsx)(pT, {
+ children: r.map((t) => /* @__PURE__ */ (0, w.jsx)(mT, {
item: t,
...e
}, t.id))
- })] }) : /* @__PURE__ */ (0, C.jsx)(lh, { children: /* @__PURE__ */ (0, C.jsx)(oh, {
+ })] }) : /* @__PURE__ */ (0, w.jsx)(uh, { children: /* @__PURE__ */ (0, w.jsx)(ch, {
shell: "plain",
- icon: cp,
+ icon: dp,
title: "没有标记中的高清版目标",
children: "现有版本都已满足条件,或还没有加入追踪。"
}) });
}
//#endregion
//#region src/selection.ts
-function hT(e, t, n, r, i, a = i || !e.has(r)) {
+function gT(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;
}
//#endregion
//#region src/react/review/review.ts
-var gT = "/api/review", _T = "/api/review/decision", vT = "/api/review/genre", yT = ["review"], bT = {
+var _T = "/api/review", vT = "/api/review/decision", yT = "/api/review/genre", bT = ["review"], xT = {
metadata_fields: "元数据字段",
creator_tags: "创作者标签",
studio_logos: "厂牌 Logo",
@@ -29872,15 +29881,15 @@ var gT = "/api/review", _T = "/api/review/decision", vT = "/api/review/genre", y
fc2_similarity: "FC2 跨号相似",
video_endcards: "片尾/出处证据",
media_failure: "无法识别"
-}, xT = Object.keys(bT), ST = "metadata_fields", CT = (e) => typeof e == "string" && Object.hasOwn(bT, e), wT = {
+}, ST = Object.keys(xT), CT = "metadata_fields", wT = (e) => typeof e == "string" && Object.hasOwn(xT, e), TT = {
creator_tags: "creator",
western_identity: "creator"
};
-function TT(e, t) {
+function ET(e, t) {
let n = [["candidates", t ? "按候选数量" : "全部待复核"]];
return e.some((e) => e.source || e.candidates?.some((e) => e.source)) && n.push(["source", "按来源"]), e.some((e) => e.field) && n.push(["field", "按字段"]), n;
}
-function ET(e, t) {
+function DT(e, t) {
let n = /* @__PURE__ */ new Map();
for (let r of e) {
let e, i;
@@ -29897,43 +29906,43 @@ function ET(e, t) {
}
return [...n.values()];
}
-function DT(e, t, n) {
- return n && ET(e, t).find((e) => e.key === n)?.rows || e;
+function OT(e, t, n) {
+ return n && DT(e, t).find((e) => e.key === n)?.rows || e;
}
-function OT(e, t) {
- let n = pb(e.length, 20), r = mb(t, n);
+function kT(e, t) {
+ let n = mb(e.length, 20), r = hb(t, n);
return {
page: r,
pages: n,
rows: e.slice((r - 1) * 20, r * 20)
};
}
-function kT(e) {
+function AT(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 AT(e, t, n, r, i, a) {
- return hT(e, t, n, r, i, a);
+function jT(e, t, n, r, i, a) {
+ return gT(e, t, n, r, i, a);
}
-function jT(e, t) {
+function MT(e, t) {
return e === "metadata_fields" ? (t.candidates?.length || 0) > 0 : e !== "creator_tags" || String(t.status || "").trim() === "candidate";
}
-function MT(e, t) {
+function NT(e, t) {
return String(e === "metadata_fields" ? t.query || t.code || "" : t.creator || t.studio || t.current_name || t.name || t.item_key);
}
-var NT = (e, t) => e === "metadata_fields" ? String(t.field_label || t.field || "").trim() : "";
-function PT(e, t) {
- let n = MT(e, t), r = NT(e, t);
+var PT = (e, t) => e === "metadata_fields" ? String(t.field_label || t.field || "").trim() : "";
+function FT(e, t) {
+ let n = NT(e, t), r = PT(e, t);
return r ? `${n} · ${r}` : n;
}
-var FT = (e) => e.reason || e.evidence || e.note || e.decision_note || "", IT = (e) => String(e.tags || "").split("|").filter(Boolean), LT = (e) => [...new Set((e.candidates || []).flatMap((e) => e.unmapped_genres || []))];
-function RT(e) {
+var IT = (e) => e.reason || e.evidence || e.note || e.decision_note || "", LT = (e) => String(e.tags || "").split("|").filter(Boolean), RT = (e) => [...new Set((e.candidates || []).flatMap((e) => e.unmapped_genres || []))];
+function zT(e) {
let t = e.candidates || [];
return {
candidateKey: t.length === 1 ? t[0].candidate_key : "",
assets: (e.preview_assets || []).map((e) => e.id)
};
}
-function zT(e, t, n, r) {
+function BT(e, t, n, r) {
let i = !!t.asset_path && t.asset_mutation_revision != null;
return {
category: e,
@@ -29949,19 +29958,19 @@ function zT(e, t, n, r) {
...i ? { expected_revision: t.asset_mutation_revision } : {}
};
}
-var BT = (e) => e === "approved" ? "已通过候选" : e === "rejected" ? "已拒绝候选" : "已跳过候选", VT = (e) => Ym(gT, e), HT = (e) => Xm(_T, e), UT = (e, t) => Xm(vT, {
+var VT = (e) => e === "approved" ? "已通过候选" : e === "rejected" ? "已拒绝候选" : "已跳过候选", HT = (e) => Zm(_T, e), UT = (e) => Qm(vT, e), WT = (e, t) => Qm(yT, {
genre: e,
tag: t
});
-async function WT(e) {
- await dh.fetchQuery({
- queryKey: yT,
- queryFn: () => VT(e)
+async function GT(e) {
+ await fh.fetchQuery({
+ queryKey: bT,
+ queryFn: () => HT(e)
});
}
-function GT(e, t) {
+function KT(e, t) {
let n = new Set(t);
- n.size && dh.setQueryData(yT, (t) => {
+ n.size && fh.setQueryData(bT, (t) => {
if (!t) return t;
let r = t.sections[e] || [], i = r.filter((e) => !n.has(String(e.item_key)));
return i.length === r.length ? t : {
@@ -29977,55 +29986,55 @@ function GT(e, t) {
};
});
}
-var KT = () => dh.invalidateQueries({
- queryKey: yT,
+var qT = () => fh.invalidateQueries({
+ queryKey: bT,
exact: !0
});
-function qT(e, t) {
- return e?.state === "live" ? "正在显示写入端的实时复核队列" : e?.state === "cached" ? `写入端暂时不可达,显示 ${hb(e.fetched_at)} 的缓存` : e?.error || t;
+function JT(e, t) {
+ return e?.state === "live" ? "正在显示写入端的实时复核队列" : e?.state === "cached" ? `写入端暂时不可达,显示 ${gb(e.fetched_at)} 的缓存` : e?.error || t;
}
//#endregion
//#region src/react/review/bulk-toolbar.tsx
-function JT(e) {
- let { groupOptions: t, groupBy: n, onGroupBy: r, groups: i, filter: a, onFilter: o, pageKeys: s, selected: c, onSelected: l, selectedRows: u, metadata: d, approvable: f, busy: p, feedback: m, onUnifySource: h, onRun: g } = e, _ = s.filter((e) => c.has(e)), v = _.length > 0 && _.length === s.length, y = kT(u), b = d && u.some((e) => (e.candidates?.length || 0) > 1), x = y.length ? "统一选择来源" : "所选项目无共同来源";
- return /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsxs)("div", {
+function YT(e) {
+ let { groupOptions: t, groupBy: n, onGroupBy: r, groups: i, filter: a, onFilter: o, pageKeys: s, selected: c, onSelected: l, selectedRows: u, metadata: d, approvable: f, busy: p, feedback: m, onUnifySource: h, onRun: g } = e, _ = s.filter((e) => c.has(e)), v = _.length > 0 && _.length === s.length, y = AT(u), b = d && u.some((e) => (e.candidates?.length || 0) > 1), x = y.length ? "统一选择来源" : "所选项目无共同来源";
+ return /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [/* @__PURE__ */ (0, w.jsxs)("div", {
role: "group",
"aria-label": "复核筛选",
"data-review-filter": !0,
"data-glass-pane": "",
className: "sticky top-topbar z-10 flex flex-wrap items-center gap-2 p-3",
children: [
- /* @__PURE__ */ (0, C.jsx)(_w, {
+ /* @__PURE__ */ (0, w.jsx)(vw, {
"aria-label": "筛选分组方式",
size: "sm",
selectedKey: n,
onSelectionChange: (e) => {
e !== null && r(String(e));
},
- children: t.map(([e, t]) => /* @__PURE__ */ (0, C.jsx)(vw, {
+ children: t.map(([e, t]) => /* @__PURE__ */ (0, w.jsx)(yw, {
id: e,
children: t
}, e))
}),
- i.length > 1 ? /* @__PURE__ */ (0, C.jsxs)(_w, {
+ i.length > 1 ? /* @__PURE__ */ (0, w.jsxs)(vw, {
"aria-label": n === "field" ? "筛选字段分类" : "筛选当前分类",
size: "sm",
selectedKey: a || "*",
onSelectionChange: (e) => {
e !== null && o(String(e) === "*" ? "" : String(e));
},
- children: [/* @__PURE__ */ (0, C.jsx)(vw, {
+ children: [/* @__PURE__ */ (0, w.jsx)(yw, {
id: "*",
children: "全部分类"
- }), i.map((e) => /* @__PURE__ */ (0, C.jsx)(vw, {
+ }), i.map((e) => /* @__PURE__ */ (0, w.jsx)(yw, {
id: e.key,
children: `${e.title} · ${e.rows.length}`
}, e.key))]
}) : null,
- /* @__PURE__ */ (0, C.jsx)(X, {
+ /* @__PURE__ */ (0, w.jsx)(X, {
variant: "secondary",
size: "small",
- leadingIcon: Nf,
+ leadingIcon: If,
"aria-pressed": v,
disabled: p || !s.length,
onClick: () => {
@@ -30036,11 +30045,11 @@ function JT(e) {
children: v ? "清空当前选择" : a ? "全选当前分类" : "全选本页"
})
]
- }), c.size ? /* @__PURE__ */ (0, C.jsxs)(yw, {
+ }), c.size ? /* @__PURE__ */ (0, w.jsxs)(bw, {
label: "复核所选项目",
count: `已选 ${c.size} 项`,
children: [
- b ? /* @__PURE__ */ (0, C.jsxs)(_w, {
+ b ? /* @__PURE__ */ (0, w.jsxs)(vw, {
"aria-label": "统一选择来源",
size: "sm",
selectedKey: "",
@@ -30048,36 +30057,36 @@ function JT(e) {
onSelectionChange: (e) => {
e !== null && e !== "" && h(String(e));
},
- children: [/* @__PURE__ */ (0, C.jsx)(vw, {
+ children: [/* @__PURE__ */ (0, w.jsx)(yw, {
id: "",
children: x
- }), y.map((e) => /* @__PURE__ */ (0, C.jsx)(vw, {
+ }), y.map((e) => /* @__PURE__ */ (0, w.jsx)(yw, {
id: e,
children: e
}, e))]
}) : null,
- /* @__PURE__ */ (0, C.jsx)(X, {
+ /* @__PURE__ */ (0, w.jsx)(X, {
variant: "primary",
size: "small",
disabled: p || !c.size || !f,
onClick: () => g("approved"),
children: "通过所选"
}),
- /* @__PURE__ */ (0, C.jsx)(X, {
+ /* @__PURE__ */ (0, w.jsx)(X, {
variant: "danger",
size: "small",
disabled: p || !c.size,
onClick: () => g("rejected"),
children: "拒绝所选"
}),
- /* @__PURE__ */ (0, C.jsx)(X, {
+ /* @__PURE__ */ (0, w.jsx)(X, {
variant: "ghost",
size: "small",
disabled: p,
onClick: () => l(/* @__PURE__ */ new Set()),
children: "取消选择"
}),
- m ? /* @__PURE__ */ (0, C.jsx)("p", {
+ m ? /* @__PURE__ */ (0, w.jsx)("p", {
role: "status",
className: "w-full text-body-2-regular text-text-secondary",
children: m
@@ -30087,7 +30096,7 @@ function JT(e) {
}
//#endregion
//#region src/react/review/candidate-form.tsx
-var YT = {
+var XT = {
title: "标题",
original_title: "原标题",
runtime: "来源时长",
@@ -30097,21 +30106,21 @@ var YT = {
cover_url: "封面",
screenshot_urls: "截图",
trailer_url: "预告片"
-}, XT = "reviewgenretags";
-function ZT({ tags: e }) {
- return e.length ? /* @__PURE__ */ (0, C.jsx)("datalist", {
- id: XT,
- children: e.map((e) => /* @__PURE__ */ (0, C.jsx)("option", { value: e }, e))
+}, ZT = "reviewgenretags";
+function QT({ tags: e }) {
+ return e.length ? /* @__PURE__ */ (0, w.jsx)("datalist", {
+ id: ZT,
+ children: e.map((e) => /* @__PURE__ */ (0, w.jsx)("option", { value: e }, e))
}) : null;
}
-function QT({ candidate: e, selectable: t = !1 }) {
+function $T({ candidate: e, selectable: t = !1 }) {
let n = Object.entries(e.catalog_evidence || {}).filter(([, e]) => e && e.display_value), r = e.content_id || e.provider_id;
- return /* @__PURE__ */ (0, C.jsxs)("span", {
+ return /* @__PURE__ */ (0, w.jsxs)("span", {
className: "flex min-w-0 flex-1 flex-col",
- children: [/* @__PURE__ */ (0, C.jsxs)("span", {
+ children: [/* @__PURE__ */ (0, w.jsxs)("span", {
className: "relative flex min-w-0 flex-col gap-0.5 px-4 py-3 group-hover:bg-background-primary-hover group-data-selected:bg-background-primary-hover",
children: [
- /* @__PURE__ */ (0, C.jsxs)("b", {
+ /* @__PURE__ */ (0, w.jsxs)("b", {
className: "text-body-2-medium text-text-secondary",
children: [
e.source,
@@ -30119,35 +30128,35 @@ function QT({ candidate: e, selectable: t = !1 }) {
r ? ` · ID ${r}` : ""
]
}),
- /* @__PURE__ */ (0, C.jsx)("span", {
+ /* @__PURE__ */ (0, w.jsx)("span", {
className: "text-body-medium break-words text-text-primary",
children: e.display_value || ""
}),
- (e.warnings || []).map((e) => /* @__PURE__ */ (0, C.jsx)("i", {
+ (e.warnings || []).map((e) => /* @__PURE__ */ (0, w.jsx)("i", {
className: "text-body-2-regular text-status-yellow-text",
children: e
}, e)),
- t ? /* @__PURE__ */ (0, C.jsx)("span", {
+ t ? /* @__PURE__ */ (0, w.jsx)("span", {
"aria-hidden": "true",
"data-candidate-choice": !0,
className: "absolute top-4 right-4 inline-grid size-4 place-items-center rounded-full border border-border-checkbox-default bg-background-primary-default group-hover:border-border-checkbox-hover group-data-selected:border-border-focus-ring group-data-selected:bg-accent-600",
- children: /* @__PURE__ */ (0, C.jsx)("span", { className: "size-1.5 rounded-full bg-text-white opacity-0 group-data-selected:opacity-100" })
+ children: /* @__PURE__ */ (0, w.jsx)("span", { className: "size-1.5 rounded-full bg-text-white opacity-0 group-data-selected:opacity-100" })
}) : null
]
- }), n.length ? /* @__PURE__ */ (0, C.jsx)("dl", {
+ }), n.length ? /* @__PURE__ */ (0, w.jsx)("dl", {
className: "flex flex-col gap-1 border-t border-separator-border bg-background-primary-default px-4 py-2.5",
- children: n.map(([e, t]) => /* @__PURE__ */ (0, C.jsxs)("div", {
+ children: n.map(([e, t]) => /* @__PURE__ */ (0, w.jsxs)("div", {
className: "flex min-w-0 flex-wrap gap-x-2",
children: [
- /* @__PURE__ */ (0, C.jsx)("dt", {
+ /* @__PURE__ */ (0, w.jsx)("dt", {
className: "text-body-2-regular text-text-secondary",
- children: YT[e] || e
+ children: XT[e] || e
}),
- /* @__PURE__ */ (0, C.jsx)("dd", {
+ /* @__PURE__ */ (0, w.jsx)("dd", {
className: "min-w-0 text-body-2-regular break-words text-text-primary",
children: t.display_value
}),
- (t.warnings || []).map((e) => /* @__PURE__ */ (0, C.jsx)("small", {
+ (t.warnings || []).map((e) => /* @__PURE__ */ (0, w.jsx)("small", {
className: "w-full text-caption-1-regular text-status-yellow-text",
children: e
}, e))
@@ -30156,38 +30165,38 @@ function QT({ candidate: e, selectable: t = !1 }) {
}) : null]
});
}
-function $T({ row: e, fieldName: t, value: n, onChange: r, locked: i }) {
+function eE({ row: e, fieldName: t, value: n, onChange: r, locked: i }) {
let a = e.candidates || [];
- return a.length ? a.length === 1 ? /* @__PURE__ */ (0, C.jsx)("div", {
+ return a.length ? a.length === 1 ? /* @__PURE__ */ (0, w.jsx)("div", {
className: "flex overflow-hidden rounded-surface border border-separator-border bg-background-secondary-default",
- children: /* @__PURE__ */ (0, C.jsx)(QT, { candidate: a[0] })
- }) : /* @__PURE__ */ (0, C.jsx)(pv, {
+ children: /* @__PURE__ */ (0, w.jsx)($T, { candidate: a[0] })
+ }) : /* @__PURE__ */ (0, w.jsx)(mv, {
"aria-label": `${t || "候选"}的来源`,
value: n,
isDisabled: i,
onChange: r,
className: "flex flex-col gap-2",
- children: a.map((e) => /* @__PURE__ */ (0, C.jsx)(mv, {
+ children: a.map((e) => /* @__PURE__ */ (0, w.jsx)(hv, {
value: e.candidate_key,
className: "group flex cursor-pointer items-center gap-2 overflow-hidden rounded-surface border border-separator-border bg-background-secondary-default outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:border-border-button-active data-disabled:cursor-not-allowed",
- children: /* @__PURE__ */ (0, C.jsx)(QT, {
+ children: /* @__PURE__ */ (0, w.jsx)($T, {
candidate: e,
selectable: !0
})
}, e.candidate_key))
}) : null;
}
-function eE({ genre: e, tags: t, locked: n, toast: r }) {
- let [i, a] = (0, S.useState)(""), [o, s] = (0, S.useState)(""), c = ut({
- mutationFn: (t) => UT(e, t),
+function tE({ genre: e, tags: t, locked: n, toast: r }) {
+ let [i, a] = (0, C.useState)(""), [o, s] = (0, C.useState)(""), c = dt({
+ mutationFn: (t) => WT(e, t),
onSuccess: async (t, n) => {
if (!t.ok) {
s(t.error || "服务端拒绝了这次收录");
return;
}
- r(n ? `已把「${e}」收录为标签「${n}」` : `已把「${e}」判为非内容标签`), await KT();
+ r(n ? `已把「${e}」收录为标签「${n}」` : `已把「${e}」判为非内容标签`), await qT();
},
- onError: (e) => s(J(e))
+ onError: (e) => s(q(e))
}), l = () => {
let e = i.trim();
if (!e) {
@@ -30196,24 +30205,24 @@ function eE({ genre: e, tags: t, locked: n, toast: r }) {
}
s(""), c.mutate(e);
};
- return /* @__PURE__ */ (0, C.jsxs)("div", {
+ return /* @__PURE__ */ (0, w.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
children: [
- /* @__PURE__ */ (0, C.jsx)("b", {
+ /* @__PURE__ */ (0, w.jsx)("b", {
lang: "ja",
className: "text-body-medium text-text-primary",
children: e
}),
- /* @__PURE__ */ (0, C.jsx)(qy, {
+ /* @__PURE__ */ (0, w.jsx)(Jy, {
"aria-label": `「${e}」收录成的中文标签`,
value: i,
onChange: a,
maxLength: 40,
isDisabled: n || c.isPending,
className: "min-w-40 flex-1",
- children: /* @__PURE__ */ (0, C.jsx)(Yy, {
+ children: /* @__PURE__ */ (0, w.jsx)(Xy, {
size: "small",
- list: t.length ? XT : void 0,
+ list: t.length ? ZT : void 0,
autoComplete: "off",
placeholder: "中文标签",
onKeyDown: (e) => {
@@ -30221,14 +30230,14 @@ function eE({ genre: e, tags: t, locked: n, toast: r }) {
}
})
}),
- /* @__PURE__ */ (0, C.jsx)(X, {
+ /* @__PURE__ */ (0, w.jsx)(X, {
variant: "secondary",
size: "small",
disabled: n || c.isPending,
onClick: l,
children: "收录"
}),
- /* @__PURE__ */ (0, C.jsx)(X, {
+ /* @__PURE__ */ (0, w.jsx)(X, {
variant: "secondary",
size: "small",
disabled: n || c.isPending,
@@ -30237,7 +30246,7 @@ function eE({ genre: e, tags: t, locked: n, toast: r }) {
},
children: "不是内容"
}),
- o ? /* @__PURE__ */ (0, C.jsx)("p", {
+ o ? /* @__PURE__ */ (0, w.jsx)("p", {
role: "status",
className: "w-full text-body-2-regular text-text-error-primary",
children: o
@@ -30245,16 +30254,16 @@ function eE({ genre: e, tags: t, locked: n, toast: r }) {
]
});
}
-function tE({ row: e, tags: t, locked: n, toast: r }) {
- let i = LT(e);
- return i.length ? /* @__PURE__ */ (0, C.jsxs)("div", {
+function nE({ row: e, tags: t, locked: n, toast: r }) {
+ let i = RT(e);
+ return i.length ? /* @__PURE__ */ (0, w.jsxs)("div", {
role: "group",
"aria-label": "未收录 genre",
className: "flex flex-col gap-2 rounded-surface border border-separator-border bg-background-primary-default px-4 py-3",
- children: [/* @__PURE__ */ (0, C.jsx)("h5", {
+ children: [/* @__PURE__ */ (0, w.jsx)("h5", {
className: "text-body-2-medium text-text-secondary",
children: `未收录 genre · ${i.length}`
- }), i.map((e) => /* @__PURE__ */ (0, C.jsx)(eE, {
+ }), i.map((e) => /* @__PURE__ */ (0, w.jsx)(tE, {
genre: e,
tags: t,
locked: n,
@@ -30264,128 +30273,128 @@ function tE({ row: e, tags: t, locked: n, toast: r }) {
}
//#endregion
//#region src/react/review/review-evidence.tsx
-var nE = (e = "") => /^https?:\/\//i.test(e) ? e : "", rE = (e = "") => nE(e) || (e.startsWith("/") && !e.startsWith("//") ? e : "");
-function iE({ url: e }) {
- let t = rE(e || ""), [n, r] = (0, S.useState)(!1);
- return /* @__PURE__ */ (0, C.jsx)("div", {
+var rE = (e = "") => /^https?:\/\//i.test(e) ? e : "", iE = (e = "") => rE(e) || (e.startsWith("/") && !e.startsWith("//") ? e : "");
+function aE({ url: e }) {
+ let t = iE(e || ""), [n, r] = (0, C.useState)(!1);
+ return /* @__PURE__ */ (0, w.jsx)("div", {
className: "flex h-review-image items-center justify-center overflow-hidden rounded-surface bg-background-secondary-default",
- children: t && !n ? /* @__PURE__ */ (0, C.jsx)("img", {
+ children: t && !n ? /* @__PURE__ */ (0, w.jsx)("img", {
src: t,
alt: "来源候选图片",
loading: "lazy",
className: "size-full object-contain",
onError: () => r(!0)
- }) : /* @__PURE__ */ (0, C.jsx)("span", {
+ }) : /* @__PURE__ */ (0, w.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
children: "未取得来源图片"
})
});
}
-function aE({ asset: e, openItem: t }) {
+function oE({ asset: e, openItem: t }) {
let n = e.name || "";
- return /* @__PURE__ */ (0, C.jsxs)("div", {
+ return /* @__PURE__ */ (0, w.jsxs)("div", {
className: "flex min-w-0 items-center gap-2.5 rounded-surface bg-background-secondary-default p-2",
- children: [/* @__PURE__ */ (0, C.jsxs)("button", {
+ children: [/* @__PURE__ */ (0, w.jsxs)("button", {
type: "button",
onClick: () => t(e.id),
className: "flex aspect-card-cover w-review-cover-narrow shrink-0 review-tight:w-review-cover cursor-pointer items-center justify-center overflow-hidden rounded-2lg bg-background-tertiary-default outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring",
- children: [e.preview_url ? /* @__PURE__ */ (0, C.jsx)("img", {
+ children: [e.preview_url ? /* @__PURE__ */ (0, w.jsx)("img", {
src: e.preview_url,
alt: "",
loading: "lazy",
className: "size-full object-cover"
- }) : /* @__PURE__ */ (0, C.jsx)("span", {
+ }) : /* @__PURE__ */ (0, w.jsx)("span", {
className: "text-caption-1-regular text-text-secondary",
children: "无封面"
- }), /* @__PURE__ */ (0, C.jsx)(Jo, { children: `打开原视频 ${n}` })]
- }), /* @__PURE__ */ (0, C.jsxs)("div", {
+ }), /* @__PURE__ */ (0, w.jsx)(Xo, { children: `打开原视频 ${n}` })]
+ }), /* @__PURE__ */ (0, w.jsxs)("div", {
className: "flex min-w-0 flex-col items-start gap-1",
- children: [/* @__PURE__ */ (0, C.jsx)("b", {
+ children: [/* @__PURE__ */ (0, w.jsx)("b", {
title: n,
className: "w-full truncate text-body-medium text-text-primary",
children: e.code || n || "原视频"
- }), /* @__PURE__ */ (0, C.jsx)(X, {
+ }), /* @__PURE__ */ (0, w.jsx)(X, {
variant: "secondary",
size: "small",
- leadingIcon: Zf,
+ leadingIcon: ep,
onClick: () => t(e.id),
children: "打开原视频"
})]
})]
});
}
-function oE({ kind: e, name: t, works: n, avatar: r, openEntity: i }) {
- return /* @__PURE__ */ (0, C.jsxs)("div", {
+function sE({ kind: e, name: t, works: n, avatar: r, openEntity: i }) {
+ return /* @__PURE__ */ (0, w.jsxs)("div", {
className: "flex min-w-0 items-center gap-3",
- children: [/* @__PURE__ */ (0, C.jsx)("button", {
+ children: [/* @__PURE__ */ (0, w.jsx)("button", {
type: "button",
"aria-label": `打开创作者页:${t}`,
onClick: () => i(e, t),
className: "relative inline-grid size-11 shrink-0 cursor-pointer place-items-center overflow-hidden rounded-full bg-background-secondary-default text-caption-1-medium text-text-secondary outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring [&_img]:absolute [&_img]:inset-0 [&_img]:size-full [&_img]:object-cover",
dangerouslySetInnerHTML: { __html: r }
- }), /* @__PURE__ */ (0, C.jsxs)("div", {
+ }), /* @__PURE__ */ (0, w.jsxs)("div", {
className: "flex min-w-0 flex-col items-start",
- children: [/* @__PURE__ */ (0, C.jsx)("button", {
+ children: [/* @__PURE__ */ (0, w.jsx)("button", {
type: "button",
onClick: () => i(e, t),
className: "max-w-full cursor-pointer truncate text-body-medium text-text-primary underline-offset-2 outline-none hover:underline focus-visible:ring-2 focus-visible:ring-border-focus-ring",
children: t
- }), n ? /* @__PURE__ */ (0, C.jsx)("small", {
+ }), n ? /* @__PURE__ */ (0, w.jsx)("small", {
className: "tabular-nums text-body-2-regular text-text-secondary",
children: `${n.toLocaleString()} 部作品`
}) : null]
})]
});
}
-function sE({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, note: a }) {
- let o = nE(e.profile_url || ""), s = (e.preview_assets || []).slice(0, 6), c = Math.max(0, Number(e.video_count || e.videos || 0));
- return /* @__PURE__ */ (0, C.jsxs)("section", {
+function cE({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, note: a }) {
+ let o = rE(e.profile_url || ""), s = (e.preview_assets || []).slice(0, 6), c = Math.max(0, Number(e.video_count || e.videos || 0));
+ return /* @__PURE__ */ (0, w.jsxs)("section", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, C.jsx)("h5", {
+ /* @__PURE__ */ (0, w.jsx)("h5", {
className: "text-body-medium text-text-primary",
children: `候选身份:${e.babepedia_name || "未标注"}`
}),
- /* @__PURE__ */ (0, C.jsxs)("div", {
+ /* @__PURE__ */ (0, w.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [o ? /* @__PURE__ */ (0, C.jsx)(Vy, {
+ children: [o ? /* @__PURE__ */ (0, w.jsx)(Hy, {
variant: "secondary",
size: "small",
- trailingIcon: Bf,
+ trailingIcon: Uf,
href: o,
target: "_blank",
rel: "noopener noreferrer",
children: "来源资料"
- }) : null, /* @__PURE__ */ (0, C.jsx)(X, {
+ }) : null, /* @__PURE__ */ (0, w.jsx)(X, {
variant: "secondary",
size: "small",
onClick: () => n("creator", e.creator || ""),
children: `查看全部 ${c.toLocaleString()} 部作品`
})]
}),
- /* @__PURE__ */ (0, C.jsx)(iE, { url: e.preview_url }),
- /* @__PURE__ */ (0, C.jsx)("p", {
+ /* @__PURE__ */ (0, w.jsx)(aE, { url: e.preview_url }),
+ /* @__PURE__ */ (0, w.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: "通过后记录身份判断。"
}),
- s.length ? /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)("h5", {
+ s.length ? /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [/* @__PURE__ */ (0, w.jsx)("h5", {
className: "text-body-medium text-text-primary",
children: "本地作品样本"
- }), /* @__PURE__ */ (0, C.jsx)("ul", {
+ }), /* @__PURE__ */ (0, w.jsx)("ul", {
className: "flex flex-col gap-1",
- children: s.map((e) => /* @__PURE__ */ (0, C.jsxs)("li", {
+ children: s.map((e) => /* @__PURE__ */ (0, w.jsxs)("li", {
className: "flex min-w-0 items-center gap-2",
- children: [/* @__PURE__ */ (0, C.jsx)(X, {
+ children: [/* @__PURE__ */ (0, w.jsx)(X, {
variant: "ghost",
size: "small",
className: "min-w-0",
onClick: () => t(e.id),
- children: /* @__PURE__ */ (0, C.jsx)("span", {
+ children: /* @__PURE__ */ (0, w.jsx)("span", {
title: e.name,
className: "block max-w-full truncate",
children: e.name
})
- }), /* @__PURE__ */ (0, C.jsx)(X, {
+ }), /* @__PURE__ */ (0, w.jsx)(X, {
variant: "ghost",
size: "small",
"aria-label": `打开 ${e.name} 的文件位置`,
@@ -30394,11 +30403,11 @@ function sE({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, not
children: "文件位置"
})]
}, e.id))
- })] }) : /* @__PURE__ */ (0, C.jsx)("p", {
+ })] }) : /* @__PURE__ */ (0, w.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: "暂无本地作品样本,打开全部作品核对。"
}),
- a ? /* @__PURE__ */ (0, C.jsx)("p", {
+ a ? /* @__PURE__ */ (0, w.jsx)("p", {
role: "status",
className: "text-body-2-regular text-text-error-primary",
children: a
@@ -30406,8 +30415,8 @@ function sE({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, not
]
});
}
-function cE({ assets: e, picked: t, onPicked: n, locked: r }) {
- let [i, a] = (0, S.useState)(null), o = new Set(t), s = (t, s) => {
+function lE({ assets: e, picked: t, onPicked: n, locked: r }) {
+ let [i, a] = (0, C.useState)(null), o = new Set(t), s = (t, s) => {
if (r) return;
let c = new Set(o);
if (s && i !== null) {
@@ -30419,23 +30428,23 @@ function cE({ assets: e, picked: t, onPicked: n, locked: r }) {
}
a(t), n(e.filter((e) => c.has(e.id)).map((e) => e.id));
};
- return /* @__PURE__ */ (0, C.jsxs)("div", {
+ return /* @__PURE__ */ (0, w.jsxs)("div", {
className: "flex flex-col gap-2",
- children: [/* @__PURE__ */ (0, C.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, w.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
children: [
- /* @__PURE__ */ (0, C.jsx)("span", {
+ /* @__PURE__ */ (0, w.jsx)("span", {
className: "tabular-nums text-body-2-regular text-text-secondary",
children: `已选 ${o.size} / ${e.length}`
}),
- /* @__PURE__ */ (0, C.jsx)(X, {
+ /* @__PURE__ */ (0, w.jsx)(X, {
variant: "ghost",
size: "small",
disabled: r,
onClick: () => n(e.map((e) => e.id)),
children: "全选"
}),
- /* @__PURE__ */ (0, C.jsx)(X, {
+ /* @__PURE__ */ (0, w.jsx)(X, {
variant: "ghost",
size: "small",
disabled: r,
@@ -30443,26 +30452,26 @@ function cE({ assets: e, picked: t, onPicked: n, locked: r }) {
children: "清空"
})
]
- }), /* @__PURE__ */ (0, C.jsx)("div", {
+ }), /* @__PURE__ */ (0, w.jsx)("div", {
className: "review-asset-grid gap-1.5",
children: e.map((e, t) => {
let n = o.has(e.id);
- return /* @__PURE__ */ (0, C.jsxs)("button", {
+ return /* @__PURE__ */ (0, w.jsxs)("button", {
type: "button",
"aria-pressed": n,
title: e.name,
onClick: (e) => s(t, e.shiftKey),
className: `relative aspect-card-cover cursor-pointer overflow-hidden rounded-surface bg-background-tertiary-default outline-none transition-opacity focus-visible:ring-2 focus-visible:ring-border-focus-ring ${n ? "opacity-100 ring-2 ring-border-button-active ring-inset" : "opacity-50"}`,
children: [
- /* @__PURE__ */ (0, C.jsx)("img", {
+ /* @__PURE__ */ (0, w.jsx)("img", {
src: `/poster?id=${e.id}&c=4`,
alt: "",
loading: "lazy",
className: "size-full object-cover"
}),
- /* @__PURE__ */ (0, C.jsx)("span", {
+ /* @__PURE__ */ (0, w.jsx)("span", {
className: "absolute top-1 right-1",
- children: /* @__PURE__ */ (0, C.jsx)(Hx, {
+ children: /* @__PURE__ */ (0, w.jsx)(Ux, {
size: "sm",
state: {
isSelected: n,
@@ -30473,7 +30482,7 @@ function cE({ assets: e, picked: t, onPicked: n, locked: r }) {
}
})
}),
- /* @__PURE__ */ (0, C.jsx)(Jo, { children: `${n ? "已选" : "未选"} ${e.name || e.id}` })
+ /* @__PURE__ */ (0, w.jsx)(Xo, { children: `${n ? "已选" : "未选"} ${e.name || e.id}` })
]
}, e.id);
})
@@ -30482,19 +30491,19 @@ function cE({ assets: e, picked: t, onPicked: n, locked: r }) {
}
//#endregion
//#region src/react/review/review-card.tsx
-var lE = ih({
+var uE = oh({
variant: "outlined",
padding: "none",
className: "flex flex-col gap-4 px-5 pt-4"
-}), uE = (e) => e === "western_identity" ? "h-review-card-tall" : "h-review-card";
-function dE(e) {
- let { category: t, row: n, choice: r, onChoice: i, selected: a, onSelect: o, locked: s, busy: c, problem: l, genreTags: u, onDecide: d, handlers: f } = e, p = (0, S.useRef)(!1), m = t === "metadata_fields", h = wT[t] || "", g = String(n.creator || "").trim(), _ = !!h && !!g, v = PT(t, n), y = NT(t, n), b = MT(t, n), x = FT(n), w = IT(n), T = jT(t, n), E = n.comparison_assets || [], D = n.preview_assets || [], O = String(n.decision || "pending") !== "pending", k = E.length > 1 ? /* @__PURE__ */ (0, C.jsx)("div", {
+}), dE = (e) => e === "western_identity" ? "h-review-card-tall" : "h-review-card";
+function fE(e) {
+ let { category: t, row: n, choice: r, onChoice: i, selected: a, onSelect: o, locked: s, busy: c, problem: l, genreTags: u, onDecide: d, handlers: f } = e, p = (0, C.useRef)(!1), m = t === "metadata_fields", h = TT[t] || "", g = String(n.creator || "").trim(), _ = !!h && !!g, v = FT(t, n), y = PT(t, n), b = NT(t, n), x = IT(n), S = LT(n), T = MT(t, n), E = n.comparison_assets || [], D = n.preview_assets || [], O = String(n.decision || "pending") !== "pending", k = E.length > 1 ? /* @__PURE__ */ (0, w.jsx)("div", {
className: "flex flex-col gap-3",
- children: E.map((e) => /* @__PURE__ */ (0, C.jsx)(aE, {
+ children: E.map((e) => /* @__PURE__ */ (0, w.jsx)(oE, {
asset: e,
openItem: f.openItem
}, e.id))
- }) : _ ? /* @__PURE__ */ (0, C.jsx)(oE, {
+ }) : _ ? /* @__PURE__ */ (0, w.jsx)(sE, {
kind: h,
name: g,
works: Number(n.video_count || n.videos || 0),
@@ -30504,14 +30513,14 @@ function dE(e) {
has_image: !!n.has_image,
avatar_focus: n.avatar_focus
} : null, null, h)
- }) : n.asset_id ? /* @__PURE__ */ (0, C.jsx)(aE, {
+ }) : n.asset_id ? /* @__PURE__ */ (0, w.jsx)(oE, {
openItem: f.openItem,
asset: {
id: n.asset_id,
name: n.asset_name,
preview_url: n.asset_preview_url
}
- }) : null, A = m ? /* @__PURE__ */ (0, C.jsx)($T, {
+ }) : null, A = m ? /* @__PURE__ */ (0, w.jsx)(eE, {
row: n,
fieldName: y,
value: r.candidateKey,
@@ -30520,7 +30529,7 @@ function dE(e) {
candidateKey: e
}),
locked: s
- }) : t === "creator_tags" ? D.length ? /* @__PURE__ */ (0, C.jsx)(cE, {
+ }) : t === "creator_tags" ? D.length ? /* @__PURE__ */ (0, w.jsx)(lE, {
assets: D,
picked: r.assets,
locked: s,
@@ -30528,112 +30537,112 @@ function dE(e) {
...r,
assets: e
})
- }) : /* @__PURE__ */ (0, C.jsx)(oh, {
+ }) : /* @__PURE__ */ (0, w.jsx)(ch, {
shell: "inset",
- icon: Kf,
+ icon: Yf,
title: "这批作品尚未抽帧",
children: `${n.video_count || ""} 条作品还没有可用预览;批准后仍会按候选写入标签。`
- }) : t === "fc2_similarity" ? null : t === "western_identity" ? /* @__PURE__ */ (0, C.jsx)(sE, {
+ }) : t === "fc2_similarity" ? null : t === "western_identity" ? /* @__PURE__ */ (0, w.jsx)(cE, {
row: n,
openItem: f.openItem,
openEntity: f.openEntity,
onReveal: f.onReveal,
revealing: f.revealing,
note: f.revealNote
- }) : /* @__PURE__ */ (0, C.jsx)(iE, { url: n.preview_url }), j = _ ? k : y ? /* @__PURE__ */ (0, C.jsxs)("h4", {
+ }) : /* @__PURE__ */ (0, w.jsx)(aE, { url: n.preview_url }), j = _ ? k : y ? /* @__PURE__ */ (0, w.jsxs)("h4", {
className: "flex min-w-0 flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, C.jsx)(Km, {
+ children: [/* @__PURE__ */ (0, w.jsx)(Jm, {
variant: "caption",
color: "blue",
children: y
- }), /* @__PURE__ */ (0, C.jsx)("span", {
+ }), /* @__PURE__ */ (0, w.jsx)("span", {
title: b,
className: "min-w-0 truncate text-body-medium text-text-primary",
children: b
})]
- }) : /* @__PURE__ */ (0, C.jsx)("h4", {
+ }) : /* @__PURE__ */ (0, w.jsx)("h4", {
className: "min-w-0 truncate text-body-medium text-text-primary",
title: v,
children: v
});
- return /* @__PURE__ */ (0, C.jsxs)("section", {
+ return /* @__PURE__ */ (0, w.jsxs)("section", {
"aria-label": v,
"data-review-key": n.item_key,
- className: `${lE} ${uE(t)} overflow-hidden`,
+ className: `${uE} ${dE(t)} overflow-hidden`,
children: [
- /* @__PURE__ */ (0, C.jsxs)("header", {
+ /* @__PURE__ */ (0, w.jsxs)("header", {
className: "flex min-w-0 shrink-0 items-start gap-2",
children: [
- s ? null : /* @__PURE__ */ (0, C.jsx)("span", {
+ s ? null : /* @__PURE__ */ (0, w.jsx)("span", {
onPointerDownCapture: (e) => {
p.current = e.shiftKey;
},
onKeyDownCapture: (e) => {
p.current = e.shiftKey;
},
- children: /* @__PURE__ */ (0, C.jsx)(Ux, {
+ children: /* @__PURE__ */ (0, w.jsx)(Wx, {
isSelected: a,
"aria-label": `选择 ${v}`,
onChange: (e) => o(p.current, e)
})
}),
- /* @__PURE__ */ (0, C.jsx)("div", {
+ /* @__PURE__ */ (0, w.jsx)("div", {
className: "min-w-0 flex-1",
children: j
}),
- O ? /* @__PURE__ */ (0, C.jsx)(Km, {
+ O ? /* @__PURE__ */ (0, w.jsx)(Jm, {
variant: "caption",
color: "neutral",
children: n.decision
}) : null
]
}),
- /* @__PURE__ */ (0, C.jsxs)("div", {
+ /* @__PURE__ */ (0, w.jsxs)("div", {
className: "flex min-w-0 min-h-0 flex-1 flex-col gap-3 overflow-y-auto",
children: [
- n.source_name ? /* @__PURE__ */ (0, C.jsx)("p", {
+ n.source_name ? /* @__PURE__ */ (0, w.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: `来源写法:${n.source_name}`
}) : null,
- !_ && (n.board || n.assets) ? /* @__PURE__ */ (0, C.jsx)("p", {
+ !_ && (n.board || n.assets) ? /* @__PURE__ */ (0, w.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: `样本/资产:${n.video_count || n.assets || ""}`
}) : null,
!_ && k ? k : null,
- w.length || t === "creator_tags" ? /* @__PURE__ */ (0, C.jsx)("div", {
+ S.length || t === "creator_tags" ? /* @__PURE__ */ (0, w.jsx)("div", {
className: "flex flex-wrap gap-1",
- children: w.length ? w.map((e) => /* @__PURE__ */ (0, C.jsx)(Km, {
+ children: S.length ? S.map((e) => /* @__PURE__ */ (0, w.jsx)(Jm, {
variant: "caption",
color: "soft",
children: e
- }, e)) : /* @__PURE__ */ (0, C.jsx)("small", {
+ }, e)) : /* @__PURE__ */ (0, w.jsx)("small", {
className: "text-body-2-regular text-text-secondary",
children: "暂无候选标签"
})
}) : null,
A,
- /* @__PURE__ */ (0, C.jsx)(tE, {
+ /* @__PURE__ */ (0, w.jsx)(nE, {
row: n,
tags: u,
locked: s,
toast: f.toast
}),
- !m && x ? /* @__PURE__ */ (0, C.jsx)("p", {
+ !m && x ? /* @__PURE__ */ (0, w.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: x
}) : null
]
}),
- m && x ? /* @__PURE__ */ (0, C.jsx)("p", {
+ m && x ? /* @__PURE__ */ (0, w.jsx)("p", {
role: "region",
"aria-label": "当前信息",
className: "-mx-5 max-h-22 shrink-0 overflow-y-auto border-t border-separator-border px-5 py-2.5 text-body-2-regular text-text-secondary",
children: x
}) : null,
- /* @__PURE__ */ (0, C.jsxs)("footer", {
+ /* @__PURE__ */ (0, w.jsxs)("footer", {
className: "-mx-5 flex min-h-14 shrink-0 flex-wrap items-center justify-end gap-2 rounded-b-surface border-t border-separator-border bg-background-secondary-default py-3 pr-3 pl-5",
children: [
- /* @__PURE__ */ (0, C.jsx)(X, {
+ /* @__PURE__ */ (0, w.jsx)(X, {
variant: "danger",
size: "small",
disabled: s,
@@ -30641,7 +30650,7 @@ function dE(e) {
onClick: () => d("rejected"),
children: "拒绝"
}),
- /* @__PURE__ */ (0, C.jsx)(X, {
+ /* @__PURE__ */ (0, w.jsx)(X, {
variant: "secondary",
size: "small",
disabled: s,
@@ -30649,7 +30658,7 @@ function dE(e) {
onClick: () => d("skipped"),
children: "跳过"
}),
- /* @__PURE__ */ (0, C.jsx)(X, {
+ /* @__PURE__ */ (0, w.jsx)(X, {
variant: "primary",
size: "small",
disabled: s || !T,
@@ -30657,7 +30666,7 @@ function dE(e) {
onClick: () => d("approved"),
children: T ? "通过" : "已跳过"
}),
- l ? /* @__PURE__ */ (0, C.jsx)("p", {
+ l ? /* @__PURE__ */ (0, w.jsx)("p", {
role: "status",
className: "w-full text-body-2-regular text-text-error-primary",
children: l
@@ -30669,26 +30678,26 @@ function dE(e) {
}
//#endregion
//#region src/react/review/review-page.tsx
-var fE = "flex min-h-9 cursor-pointer items-center justify-between gap-2 rounded-2lg p-2 text-left text-body-regular 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 review-tight:min-h-10 review-tight:px-3 review-tight:py-2.5";
-function pE({ page: e, pages: t, onPage: n }) {
- return t <= 1 ? null : /* @__PURE__ */ (0, C.jsxs)("nav", {
+var pE = "flex min-h-9 cursor-pointer items-center justify-between gap-2 rounded-2lg p-2 text-left text-body-regular 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 review-tight:min-h-10 review-tight:px-3 review-tight:py-2.5";
+function mE({ page: e, pages: t, onPage: n }) {
+ return t <= 1 ? null : /* @__PURE__ */ (0, w.jsxs)("nav", {
"aria-label": "复核分页",
className: "flex w-full flex-wrap items-center justify-between gap-2",
children: [
- /* @__PURE__ */ (0, C.jsx)(X, {
+ /* @__PURE__ */ (0, w.jsx)(X, {
variant: "secondary",
size: "small",
disabled: e <= 1,
onClick: () => n(e - 1),
children: "上一页"
}),
- /* @__PURE__ */ (0, C.jsx)("ul", {
+ /* @__PURE__ */ (0, w.jsx)("ul", {
className: "flex flex-wrap items-center gap-1",
- children: fb(e, t).map((t, r) => /* @__PURE__ */ (0, C.jsx)("li", { children: t === "…" ? /* @__PURE__ */ (0, C.jsx)("span", {
+ children: pb(e, t).map((t, r) => /* @__PURE__ */ (0, w.jsx)("li", { children: t === "…" ? /* @__PURE__ */ (0, w.jsx)("span", {
"aria-hidden": !0,
className: "px-1 text-body-2-regular text-text-tertiary",
children: "…"
- }) : /* @__PURE__ */ (0, C.jsx)(X, {
+ }) : /* @__PURE__ */ (0, w.jsx)(X, {
variant: t === e ? "secondary" : "ghost",
size: "small",
"aria-label": `第 ${t} 页`,
@@ -30697,7 +30706,7 @@ function pE({ page: e, pages: t, onPage: n }) {
children: t
}) }, t === "…" ? `dots-${r}` : t))
}),
- /* @__PURE__ */ (0, C.jsx)(X, {
+ /* @__PURE__ */ (0, w.jsx)(X, {
variant: "secondary",
size: "small",
disabled: e >= t,
@@ -30707,47 +30716,47 @@ function pE({ page: e, pages: t, onPage: n }) {
]
});
}
-function mE(e) {
- let { route: t, openItem: n, openEntity: r, revealSource: i, avatarInner: a, toast: o, readOnly: s, readOnlyMessage: c, writerUrl: l } = e, [u, d] = (0, S.useState)(CT(e.category) ? e.category : ST), [f, p] = (0, S.useState)("candidates"), [m, h] = (0, S.useState)(""), [g, _] = (0, S.useState)(1), [v, y] = (0, S.useState)(/* @__PURE__ */ new Set()), [b, x] = (0, S.useState)(/* @__PURE__ */ new Map()), [w, T] = (0, S.useState)(/* @__PURE__ */ new Map()), [E, D] = (0, S.useState)(""), O = (0, S.useRef)(null), [k, A] = (0, S.useState)(0), [j, M] = (0, S.useState)(""), N = (0, S.useRef)(!0);
- (0, S.useEffect)(() => () => {
+function hE(e) {
+ let { route: t, openItem: n, openEntity: r, revealSource: i, avatarInner: a, toast: o, readOnly: s, readOnlyMessage: c, writerUrl: l } = e, [u, d] = (0, C.useState)(wT(e.category) ? e.category : CT), [f, p] = (0, C.useState)("candidates"), [m, h] = (0, C.useState)(""), [g, _] = (0, C.useState)(1), [v, y] = (0, C.useState)(/* @__PURE__ */ new Set()), [b, x] = (0, C.useState)(/* @__PURE__ */ new Map()), [S, T] = (0, C.useState)(/* @__PURE__ */ new Map()), [E, D] = (0, C.useState)(""), O = (0, C.useRef)(null), [k, A] = (0, C.useState)(0), [j, M] = (0, C.useState)(""), N = (0, C.useRef)(!0);
+ (0, C.useEffect)(() => () => {
N.current = !1;
}, []);
- let ee = lt({
- queryKey: yT,
- queryFn: ({ signal: e }) => VT(e)
+ let ee = ut({
+ queryKey: bT,
+ queryFn: ({ signal: e }) => HT(e)
}).data || {
sections: {},
counts: {}
- }, P = ee.sections[u] || [], F = u === "metadata_fields", te = s, ne = TT(P, F), re = ne.some(([e]) => e === f) ? f : "candidates", ie = ET(P, re), ae = ie.some((e) => e.key === m) ? m : "", oe = OT(DT(P, re, ae), g), se = oe.rows.map((e) => e.item_key), ce = new Set(se), le = ie.map((e) => ({
+ }, P = ee.sections[u] || [], F = u === "metadata_fields", te = s, ne = ET(P, F), re = ne.some(([e]) => e === f) ? f : "candidates", ie = DT(P, re), ae = ie.some((e) => e.key === m) ? m : "", oe = kT(OT(P, re, ae), g), se = oe.rows.map((e) => e.item_key), ce = new Set(se), le = ie.map((e) => ({
...e,
rows: e.rows.filter((e) => ce.has(e.item_key))
- })).filter((e) => e.rows.length), ue = (e) => b.get(e.item_key) || RT(e), de = P.filter((e) => v.has(e.item_key)), fe = (e) => {
+ })).filter((e) => e.rows.length), ue = (e) => b.get(e.item_key) || zT(e), de = P.filter((e) => v.has(e.item_key)), fe = (e) => {
let t = new Set(e);
y((e) => new Set([...e].filter((e) => !t.has(e)))), x((e) => new Map([...e].filter(([e]) => !t.has(e)))), T((e) => new Map([...e].filter(([e]) => !t.has(e))));
}, I = (e, t) => T((n) => new Map(n).set(e, t)), L = (e) => {
d(e), p("candidates"), h(""), _(1), y(/* @__PURE__ */ new Set()), x(/* @__PURE__ */ new Map()), T(/* @__PURE__ */ new Map()), D(""), O.current = null, t({ category: e === "metadata_fields" ? "" : e });
- }, pe = ut({
- mutationFn: ({ row: e, status: t }) => HT(zT(u, e, t, ue(e))),
+ }, pe = dt({
+ mutationFn: ({ row: e, status: t }) => UT(BT(u, e, t, ue(e))),
onSuccess: (e, { row: t, status: n }) => {
if (!e.ok) {
I(t.item_key, e.error || "服务端拒绝了这次判定");
return;
}
- GT(u, [t.item_key]), fe([t.item_key]), o(BT(n));
+ KT(u, [t.item_key]), fe([t.item_key]), o(VT(n));
},
- onError: (e, { row: t }) => I(t.item_key, J(e))
- }), me = ut({
+ onError: (e, { row: t }) => I(t.item_key, q(e))
+ }), me = dt({
mutationFn: async (e) => {
let t = de, n = [], r = [];
for (let [i, a] of t.entries()) {
if (!N.current) break;
D(`正在处理 ${i} / ${t.length}`);
try {
- let t = await HT(zT(u, a, e, ue(a)));
+ let t = await UT(BT(u, a, e, ue(a)));
if (!t.ok) throw Error(t.error || "服务端未采用该项");
n.push(a.item_key);
} catch (e) {
- r.push([a.item_key, J(e)]);
+ r.push([a.item_key, q(e)]);
}
}
return {
@@ -30757,10 +30766,10 @@ function mE(e) {
};
},
onSuccess: ({ status: e, done: t, failures: n }) => {
- GT(u, t), fe(t), n.forEach(([e, t]) => I(e, t)), D(""), o(`已${e === "approved" ? "通过" : "拒绝"} ${t.length} 项` + (n.length ? `,${n.length} 项未完成` : ""));
+ KT(u, t), fe(t), n.forEach(([e, t]) => I(e, t)), D(""), o(`已${e === "approved" ? "通过" : "拒绝"} ${t.length} 项` + (n.length ? `,${n.length} 项未完成` : ""));
},
onError: (e) => {
- D(J(e));
+ D(q(e));
}
}), he = (e) => {
if (!(me.isPending || !de.length)) {
@@ -30787,7 +30796,7 @@ function mE(e) {
A(e), M("");
let t = await i(e);
N.current && (A(0), M(t));
- }, ve = qT(ee.mirror, c), ye = ee.genre_tags || [], be = {
+ }, ve = JT(ee.mirror, c), ye = ee.genre_tags || [], be = {
openItem: n,
openEntity: r,
onReveal: _e,
@@ -30796,15 +30805,15 @@ function mE(e) {
avatarInner: a,
toast: o
};
- return /* @__PURE__ */ (0, C.jsx)(lh, { children: /* @__PURE__ */ (0, C.jsxs)("div", {
+ return /* @__PURE__ */ (0, w.jsx)(uh, { children: /* @__PURE__ */ (0, w.jsxs)("div", {
className: "flex flex-col gap-5 pb-10",
children: [
- te ? /* @__PURE__ */ (0, C.jsx)(ch, {
+ te ? /* @__PURE__ */ (0, w.jsx)(J, {
tone: "warning",
title: "本机只能浏览",
- extra: l ? /* @__PURE__ */ (0, C.jsx)("p", {
+ extra: l ? /* @__PURE__ */ (0, w.jsx)("p", {
className: "text-body-2-regular",
- children: /* @__PURE__ */ (0, C.jsx)("a", {
+ children: /* @__PURE__ */ (0, w.jsx)("a", {
href: l,
className: "text-text-primary underline underline-offset-2",
children: "前往写入端复核"
@@ -30812,40 +30821,40 @@ function mE(e) {
}) : void 0,
children: ve
}) : null,
- /* @__PURE__ */ (0, C.jsx)(ZT, { tags: ye }),
- /* @__PURE__ */ (0, C.jsxs)(Ay, {
+ /* @__PURE__ */ (0, w.jsx)(QT, { tags: ye }),
+ /* @__PURE__ */ (0, w.jsxs)(jy, {
selectedKey: u,
onSelectionChange: (e) => {
let t = String(e);
- CT(t) && L(t);
+ wT(t) && L(t);
},
className: "flex flex-col gap-5 review-split:flex-row-reverse review-split:items-start review-split:gap-6",
- children: [/* @__PURE__ */ (0, C.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, w.jsxs)("div", {
className: "w-full rounded-surface bg-background-primary-default px-2 py-4 review-split:sticky review-split:top-topbar review-split:w-review-tabs review-split:shrink-0",
- children: [/* @__PURE__ */ (0, C.jsx)("h2", {
+ children: [/* @__PURE__ */ (0, w.jsx)("h2", {
id: "reviewcategories",
className: "px-3 pb-3 text-caption-1-regular text-text-secondary",
children: "复核分类"
- }), /* @__PURE__ */ (0, C.jsx)(My, {
+ }), /* @__PURE__ */ (0, w.jsx)(Ny, {
"aria-labelledby": "reviewcategories",
className: "flex flex-wrap gap-1 review-split:flex-col review-split:flex-nowrap review-split:items-stretch",
- children: xT.map((e) => {
+ children: ST.map((e) => {
let t = Number(ee.counts[e] || 0);
- return /* @__PURE__ */ (0, C.jsxs)(Py, {
+ return /* @__PURE__ */ (0, w.jsxs)(Fy, {
id: e,
- className: fE,
- children: [bT[e], t ? /* @__PURE__ */ (0, C.jsx)("span", {
+ className: pE,
+ children: [xT[e], t ? /* @__PURE__ */ (0, w.jsx)("span", {
className: "tabular-nums text-caption-1-medium text-text-secondary",
children: t.toLocaleString()
}) : null]
}, e);
})
})]
- }), /* @__PURE__ */ (0, C.jsxs)(Fy, {
+ }), /* @__PURE__ */ (0, w.jsxs)(Iy, {
id: u,
className: "flex min-w-0 flex-1 flex-col gap-5",
children: [
- P.length && !te ? /* @__PURE__ */ (0, C.jsx)(JT, {
+ P.length && !te ? /* @__PURE__ */ (0, w.jsx)(YT, {
groupOptions: ne,
groupBy: re,
onGroupBy: (e) => {
@@ -30861,20 +30870,20 @@ function mE(e) {
onSelected: y,
selectedRows: de,
metadata: F,
- approvable: de.every((e) => jT(u, e)),
+ approvable: de.every((e) => MT(u, e)),
busy: me.isPending,
feedback: E,
onUnifySource: ge,
onRun: he
}) : null,
- oe.rows.length ? le.map((e) => /* @__PURE__ */ (0, C.jsxs)("section", {
+ oe.rows.length ? le.map((e) => /* @__PURE__ */ (0, w.jsxs)("section", {
className: "flex flex-col gap-3",
- children: [le.length > 1 || re !== "candidates" ? /* @__PURE__ */ (0, C.jsxs)("div", {
+ children: [le.length > 1 || re !== "candidates" ? /* @__PURE__ */ (0, w.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, C.jsx)("h3", {
+ children: [/* @__PURE__ */ (0, w.jsx)("h3", {
className: "text-body-medium text-text-primary",
children: `${e.title} · ${e.rows.length}`
- }), te ? null : /* @__PURE__ */ (0, C.jsx)(X, {
+ }), te ? null : /* @__PURE__ */ (0, w.jsx)(X, {
variant: "ghost",
size: "small",
onClick: () => {
@@ -30884,9 +30893,9 @@ function mE(e) {
},
children: e.rows.every((e) => v.has(e.item_key)) ? "清空本组" : "全选本组"
})]
- }) : null, /* @__PURE__ */ (0, C.jsx)("div", {
+ }) : null, /* @__PURE__ */ (0, w.jsx)("div", {
className: "review-grid gap-5",
- children: e.rows.map((e) => /* @__PURE__ */ (0, C.jsx)(dE, {
+ children: e.rows.map((e) => /* @__PURE__ */ (0, w.jsx)(fE, {
category: u,
row: e,
choice: ue(e),
@@ -30894,11 +30903,11 @@ function mE(e) {
selected: v.has(e.item_key),
onSelect: (t, n) => y((r) => {
let i = new Set(r);
- return O.current = AT(i, se, O.current, e.item_key, t, n), i;
+ return O.current = jT(i, se, O.current, e.item_key, t, n), i;
}),
locked: te,
busy: pe.isPending && pe.variables?.row.item_key === e.item_key,
- problem: w.get(e.item_key) || "",
+ problem: S.get(e.item_key) || "",
genreTags: ye,
onDecide: (t) => {
pe.isPending || me.isPending || (T((t) => new Map([...t].filter(([t]) => t !== e.item_key))), pe.mutate({
@@ -30909,12 +30918,12 @@ function mE(e) {
handlers: be
}, e.item_key))
})]
- }, e.key)) : /* @__PURE__ */ (0, C.jsx)(oh, {
- icon: Pf,
+ }, e.key)) : /* @__PURE__ */ (0, w.jsx)(ch, {
+ icon: Lf,
title: "暂无候选",
children: "该分类当前没有待人工复核的项目。"
}),
- /* @__PURE__ */ (0, C.jsx)(pE, {
+ /* @__PURE__ */ (0, w.jsx)(mE, {
page: oe.page,
pages: oe.pages,
onPage: _
@@ -30927,24 +30936,24 @@ function mE(e) {
}
//#endregion
//#region src/react/scraping/scraping.ts
-var hE = "/api/scraping", gE = "/api/scraping/settings", _E = "/api/scraping/check", vE = "/api/scraping/cover", yE = ["scraping"], bE = ["scraping", "cover"], xE = 2e3, SE = (e) => Ym(hE, e), CE = (e) => Ym(vE, e);
-async function wE(e) {
- await Promise.all([dh.fetchQuery({
- queryKey: yE,
- queryFn: () => SE(e)
- }), dh.fetchQuery({
+var gE = "/api/scraping", _E = "/api/scraping/settings", vE = "/api/scraping/check", yE = "/api/scraping/cover", bE = ["scraping"], xE = ["scraping", "cover"], SE = 2e3, CE = (e) => Zm(gE, e), wE = (e) => Zm(yE, e);
+async function TE(e) {
+ await Promise.all([fh.fetchQuery({
queryKey: bE,
queryFn: () => CE(e)
+ }), fh.fetchQuery({
+ queryKey: xE,
+ queryFn: () => wE(e)
})]);
}
-function TE(e, t) {
+function EE(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 EE = [["peach", "Peach 代理"], ["direct", "直接连接"]], DE = [["paste", "粘贴 Cookie"], ["file", "导入文件"]];
-function OE({ source: e }) {
- return /* @__PURE__ */ (0, C.jsx)("img", {
+var DE = [["peach", "Peach 代理"], ["direct", "直接连接"]], OE = [["paste", "粘贴 Cookie"], ["file", "导入文件"]];
+function kE({ source: e }) {
+ return /* @__PURE__ */ (0, w.jsx)("img", {
src: a({ source: e }),
alt: "",
width: 16,
@@ -30954,13 +30963,13 @@ function OE({ source: e }) {
className: "size-4 shrink-0 rounded-sm object-contain"
});
}
-function kE({ source: e, toast: t }) {
- let [n, r] = (0, S.useState)(e.network), [i, a] = (0, S.useState)(""), [o, s] = (0, S.useState)(""), [c, l] = (0, S.useState)(DE[0][0]), [u, d] = (0, S.useState)(""), [f, p] = (0, S.useState)(""), m = (0, S.useRef)(null);
+function AE({ source: e, toast: t }) {
+ let [n, r] = (0, C.useState)(e.network), [i, a] = (0, C.useState)(""), [o, s] = (0, C.useState)(""), [c, l] = (0, C.useState)(OE[0][0]), [u, d] = (0, C.useState)(""), [f, p] = (0, C.useState)(""), m = (0, C.useRef)(null);
function h() {
a(""), s(""), d(""), p(""), m.current && (m.current.value = "");
}
- let g = ut({
- mutationFn: (t) => Xm(gE, {
+ let g = dt({
+ mutationFn: (t) => Qm(_E, {
source: e.source,
network: n,
cookie: i,
@@ -30968,19 +30977,19 @@ function kE({ source: e, toast: t }) {
revoke: t
}),
onSuccess: (e, n) => {
- dh.setQueryData(yE, (t) => t && {
+ fh.setQueryData(bE, (t) => t && {
...t,
sources: t.sources.map((t) => t.source === e.saved.source ? e.saved : t)
}), h(), t(n ? "Cookie 已撤销" : "来源设置已保存");
}
- }), _ = ut({ mutationFn: () => Xm(_E, { source: e.source }) }), v = g.isPending || _.isPending, y = (e) => {
+ }), _ = dt({ mutationFn: () => Qm(vE, { source: e.source }) }), v = g.isPending || _.isPending, y = (e) => {
e.preventDefault(), !v && (_.reset(), g.mutate(!1));
}, b = () => {
v || (_.reset(), g.mutate(!0));
}, x = () => {
v || (g.reset(), _.mutate());
};
- async function w(e) {
+ async function S(e) {
let t = e.currentTarget, n = t.files?.[0];
if (s(""), p(""), !n) {
d("");
@@ -30997,84 +31006,84 @@ function kE({ source: e, toast: t }) {
p("Cookie 文件未读取,请重新选择");
}
}
- let T = f || (g.error ? J(g.error) : "") || (_.error ? J(_.error) : ""), E = _.data?.results ?? [], D = n === "peach" || e.accepts_cookie || !!T || E.length > 0;
- return /* @__PURE__ */ (0, C.jsxs)(eS, {
+ let T = f || (g.error ? q(g.error) : "") || (_.error ? q(_.error) : ""), E = _.data?.results ?? [], D = n === "peach" || e.accepts_cookie || !!T || E.length > 0;
+ return /* @__PURE__ */ (0, w.jsxs)(tS, {
title: e.label,
onSubmit: y,
- aside: /* @__PURE__ */ (0, C.jsxs)("span", {
+ aside: /* @__PURE__ */ (0, w.jsxs)("span", {
className: "flex min-w-0 items-center gap-1",
- children: [/* @__PURE__ */ (0, C.jsx)(OE, { source: e.source }), /* @__PURE__ */ (0, C.jsx)(sS, {
+ children: [/* @__PURE__ */ (0, w.jsx)(kE, { source: e.source }), /* @__PURE__ */ (0, w.jsx)(cS, {
href: e.login,
children: e.login
})]
}),
children: [
- /* @__PURE__ */ (0, C.jsx)(tS, { children: /* @__PURE__ */ (0, C.jsx)(Zx, {
+ /* @__PURE__ */ (0, w.jsx)(nS, { children: /* @__PURE__ */ (0, w.jsx)(Qx, {
label: "连接方式",
- children: /* @__PURE__ */ (0, C.jsx)(_w, {
+ children: /* @__PURE__ */ (0, w.jsx)(vw, {
"aria-label": "连接方式",
selectedKey: n,
onSelectionChange: (e) => {
e !== null && r(String(e));
},
- children: EE.map(([e, t]) => /* @__PURE__ */ (0, C.jsx)(vw, {
+ children: DE.map(([e, t]) => /* @__PURE__ */ (0, w.jsx)(yw, {
id: e,
children: t
}, e))
})
}) }),
- D ? /* @__PURE__ */ (0, C.jsxs)(nS, {
+ D ? /* @__PURE__ */ (0, w.jsxs)(rS, {
divided: !0,
children: [
- n === "peach" ? /* @__PURE__ */ (0, C.jsx)("span", {
+ n === "peach" ? /* @__PURE__ */ (0, w.jsx)("span", {
className: "self-start",
- children: /* @__PURE__ */ (0, C.jsx)($x, {
+ children: /* @__PURE__ */ (0, w.jsx)(eS, {
href: "/configuration#peachProxy",
size: "small",
- trailingIcon: kf,
+ trailingIcon: Mf,
children: "配置 Peach 代理"
})
}) : null,
- e.accepts_cookie ? /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [
- /* @__PURE__ */ (0, C.jsx)("p", {
+ e.accepts_cookie ? /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [
+ /* @__PURE__ */ (0, w.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: e.cookie_saved ? "Cookie 已保存,登录是否有效请在抓取时确认。" : "需要登录时,任选一种方式提供 Cookie。"
}),
- /* @__PURE__ */ (0, C.jsx)(pv, {
+ /* @__PURE__ */ (0, w.jsx)(mv, {
"aria-label": "提供 Cookie 的方式(二选一)",
value: c,
onChange: (e) => {
l(e), h();
},
- className: Px,
- children: DE.map(([e, t]) => /* @__PURE__ */ (0, C.jsx)(mv, {
+ className: Fx,
+ children: OE.map(([e, t]) => /* @__PURE__ */ (0, w.jsx)(hv, {
value: e,
- className: Fx,
+ className: Ix,
children: t
}, e))
}),
- c === "paste" ? /* @__PURE__ */ (0, C.jsx)(Xy, {
+ c === "paste" ? /* @__PURE__ */ (0, w.jsx)(Zy, {
type: "password",
label: "Cookie",
autoComplete: "off",
value: i,
onChange: a
- }) : /* @__PURE__ */ (0, C.jsxs)("div", {
+ }) : /* @__PURE__ */ (0, w.jsxs)("div", {
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, C.jsx)(oS, { children: "Netscape Cookie 文件(.txt)" }),
- /* @__PURE__ */ (0, C.jsxs)("div", {
+ /* @__PURE__ */ (0, w.jsx)(sS, { children: "Netscape Cookie 文件(.txt)" }),
+ /* @__PURE__ */ (0, w.jsxs)("div", {
className: "flex flex-wrap items-center gap-3",
- children: [/* @__PURE__ */ (0, C.jsx)(X, {
+ children: [/* @__PURE__ */ (0, w.jsx)(X, {
variant: "secondary",
onClick: () => m.current?.click(),
children: "选择文件"
- }), /* @__PURE__ */ (0, C.jsx)("span", {
+ }), /* @__PURE__ */ (0, w.jsx)("span", {
className: "min-w-0 text-body-2-regular break-all text-text-secondary",
children: u || "未选择文件"
})]
}),
- /* @__PURE__ */ (0, C.jsx)("input", {
+ /* @__PURE__ */ (0, w.jsx)("input", {
ref: m,
type: "file",
accept: ".txt",
@@ -31082,33 +31091,33 @@ function kE({ source: e, toast: t }) {
"aria-hidden": !0,
className: "hidden",
onChange: (e) => {
- w(e);
+ S(e);
}
})
]
})
] }) : null,
- T ? /* @__PURE__ */ (0, C.jsx)(aS, { children: T }) : null,
- E.map((t) => /* @__PURE__ */ (0, C.jsx)(ch, {
+ T ? /* @__PURE__ */ (0, w.jsx)(oS, { children: T }) : null,
+ E.map((t) => /* @__PURE__ */ (0, w.jsx)(J, {
tone: t.ok ? "success" : "error",
- children: TE(t, e.label)
+ children: EE(t, e.label)
}, t.label))
]
}) : null,
- /* @__PURE__ */ (0, C.jsxs)(rS, { children: [
- e.accepts_cookie && e.cookie_saved ? /* @__PURE__ */ (0, C.jsx)(X, {
+ /* @__PURE__ */ (0, w.jsxs)(iS, { children: [
+ e.accepts_cookie && e.cookie_saved ? /* @__PURE__ */ (0, w.jsx)(X, {
variant: "secondary",
onClick: b,
...Z(v),
children: "撤销 Cookie"
}) : null,
- /* @__PURE__ */ (0, C.jsx)(X, {
+ /* @__PURE__ */ (0, w.jsx)(X, {
variant: "secondary",
onClick: x,
...Z(v),
children: "检查连接"
}),
- /* @__PURE__ */ (0, C.jsx)(X, {
+ /* @__PURE__ */ (0, w.jsx)(X, {
type: "submit",
...Z(v),
children: "保存"
@@ -31117,18 +31126,18 @@ function kE({ source: e, toast: t }) {
]
});
}
-function AE({ toast: e }) {
- let [t, n] = (0, S.useState)(""), [r, i] = (0, S.useState)(!1), [a, o] = (0, S.useState)(null), s = lt({
- queryKey: bE,
- queryFn: ({ signal: e }) => CE(e),
- refetchInterval: (e) => e.state.data?.status === "running" && xE
- }), c = ut({
- mutationFn: () => Xm(vE, { code: t }),
+function jE({ toast: e }) {
+ let [t, n] = (0, C.useState)(""), [r, i] = (0, C.useState)(!1), [a, o] = (0, C.useState)(null), s = ut({
+ queryKey: xE,
+ queryFn: ({ signal: e }) => wE(e),
+ refetchInterval: (e) => e.state.data?.status === "running" && SE
+ }), c = dt({
+ mutationFn: () => Qm(yE, { code: t }),
onSuccess: () => {
- i(!0), o(null), dh.invalidateQueries({ queryKey: bE });
+ i(!0), o(null), fh.invalidateQueries({ queryKey: xE });
}
}), l = (s.data?.status ?? "idle") === "running";
- (0, S.useEffect)(() => {
+ (0, C.useEffect)(() => {
let t = s.data;
if (t) {
if (t.status === "running") {
@@ -31144,16 +31153,16 @@ function AE({ toast: e }) {
]);
let u = (e) => {
e.preventDefault(), !(l || c.isPending || !t.trim()) && c.mutate();
- }, d = c.error ? J(c.error) : a?.status === "failed" ? a.error || "采集未取得" : "";
- return /* @__PURE__ */ (0, C.jsx)(eS, {
+ }, d = c.error ? q(c.error) : a?.status === "failed" ? a.error || "采集未取得" : "";
+ return /* @__PURE__ */ (0, w.jsx)(tS, {
title: "高清封面",
onSubmit: u,
- children: /* @__PURE__ */ (0, C.jsxs)(nS, { children: [
- /* @__PURE__ */ (0, C.jsxs)("div", {
+ children: /* @__PURE__ */ (0, w.jsxs)(rS, { children: [
+ /* @__PURE__ */ (0, w.jsxs)("div", {
className: "flex flex-wrap items-end gap-2",
- children: [/* @__PURE__ */ (0, C.jsx)("div", {
+ children: [/* @__PURE__ */ (0, w.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, C.jsx)(Xy, {
+ children: /* @__PURE__ */ (0, w.jsx)(Zy, {
"aria-label": "馆藏番号",
isRequired: !0,
isDisabled: l,
@@ -31161,58 +31170,58 @@ function AE({ toast: e }) {
onChange: n,
placeholder: "输入馆藏番号,如 ABW-232"
})
- }), /* @__PURE__ */ (0, C.jsx)(X, {
+ }), /* @__PURE__ */ (0, w.jsx)(X, {
type: "submit",
disabled: !t.trim(),
...Z(l || c.isPending),
children: "抓取封面"
})]
}),
- l ? /* @__PURE__ */ (0, C.jsx)(sh, { label: "正在抓取封面" }) : null,
- d ? /* @__PURE__ */ (0, C.jsx)(ch, {
+ l ? /* @__PURE__ */ (0, w.jsx)(lh, { label: "正在抓取封面" }) : null,
+ d ? /* @__PURE__ */ (0, w.jsx)(J, {
tone: "error",
children: d
}) : null,
- a?.status === "complete" ? /* @__PURE__ */ (0, C.jsx)(ch, {
+ a?.status === "complete" ? /* @__PURE__ */ (0, w.jsx)(J, {
tone: "success",
children: a.result || "封面采集完成"
}) : null
] })
});
}
-function jE({ toast: e }) {
- let t = lt({
- queryKey: yE,
- queryFn: ({ signal: e }) => SE(e)
+function ME({ toast: e }) {
+ let t = ut({
+ queryKey: bE,
+ queryFn: ({ signal: e }) => CE(e)
}), n = t.data;
- return n ? /* @__PURE__ */ (0, C.jsxs)(lh, { children: [
- /* @__PURE__ */ (0, C.jsx)("p", {
+ return n ? /* @__PURE__ */ (0, w.jsxs)(uh, { children: [
+ /* @__PURE__ */ (0, w.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: "高清图片可能需要代理才能下载,请先检查连接。"
}),
- /* @__PURE__ */ (0, C.jsx)(AE, { toast: e }),
- (n.sources || []).map((t) => /* @__PURE__ */ (0, C.jsx)(kE, {
+ /* @__PURE__ */ (0, w.jsx)(jE, { toast: e }),
+ (n.sources || []).map((t) => /* @__PURE__ */ (0, w.jsx)(AE, {
source: t,
toast: e
}, t.source))
- ] }) : /* @__PURE__ */ (0, C.jsx)(lh, { children: /* @__PURE__ */ (0, C.jsx)(ch, {
+ ] }) : /* @__PURE__ */ (0, w.jsx)(uh, { children: /* @__PURE__ */ (0, w.jsx)(J, {
tone: "error",
title: "读取失败",
- children: t.error ? J(t.error) : "读取采集来源失败"
+ children: t.error ? q(t.error) : "读取采集来源失败"
}) });
}
//#endregion
//#region src/configuration-endpoints.ts
-var ME = "/api/configuration", NE = "/api/pick-folder", PE = ["configuration"], FE = (e) => Ym(ME, e);
-async function IE(e) {
- await dh.fetchQuery({
- queryKey: PE,
- queryFn: () => FE(e)
+var NE = "/api/configuration", PE = "/api/pick-folder", FE = ["configuration"], IE = (e) => Zm(NE, e);
+async function LE(e) {
+ await fh.fetchQuery({
+ queryKey: FE,
+ queryFn: () => IE(e)
});
}
//#endregion
//#region src/react/boardui/components/base/switch/switch.tsx
-var LE = Wm({
+var RE = Km({
sm: {
track: "h-4 w-7",
trackRadius: {
@@ -31274,27 +31283,27 @@ var LE = Wm({
}
}
});
-function RE({ state: e, size: t = "md", shape: n = "pill" }) {
- let r = LE[t];
- return /* @__PURE__ */ (0, C.jsx)("span", {
+function zE({ state: e, size: t = "md", shape: n = "pill" }) {
+ let r = RE[t];
+ return /* @__PURE__ */ (0, w.jsx)("span", {
"aria-hidden": !0,
- className: Um("relative shrink-0 transition-colors duration-200 ease", r.track, r.trackRadius[n], e.isSelected ? Um("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, C.jsx)("span", {
- className: Um("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, C.jsx)("span", { className: Um("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") })
+ className: K("relative shrink-0 transition-colors duration-200 ease", r.track, r.trackRadius[n], e.isSelected ? K("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, w.jsx)("span", {
+ className: K("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, w.jsx)("span", { className: K("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 zE({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {
- return /* @__PURE__ */ (0, C.jsx)(kv, {
+function BE({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {
+ return /* @__PURE__ */ (0, w.jsx)(Av, {
ref: i,
...a,
- className: (t) => Um("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, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(RE, {
+ className: (t) => K("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, w.jsxs)(w.Fragment, { children: [/* @__PURE__ */ (0, w.jsx)(zE, {
state: e,
size: n,
shape: r
- }), t != null && t !== !1 && /* @__PURE__ */ (0, C.jsx)("span", {
+ }), t != null && t !== !1 && /* @__PURE__ */ (0, w.jsx)("span", {
className: "text-body-medium text-text-primary",
children: t
})] })
@@ -31302,48 +31311,48 @@ function zE({ className: e, children: t, size: n = "md", shape: r = "pill", ref:
}
//#endregion
//#region src/react/settings/general-settings.tsx
-function BE({ data: e, receipt: t }) {
- return e.startup ? /* @__PURE__ */ (0, C.jsx)(VE, {
+function VE({ data: e, receipt: t }) {
+ return e.startup ? /* @__PURE__ */ (0, w.jsx)(HE, {
startup: e.startup,
receipt: t
}) : null;
}
-function VE({ startup: e, receipt: t }) {
- let [n, r] = (0, S.useState)(e.enabled), [i, a] = (0, S.useState)(e.silent), [o, s] = (0, S.useState)(e.desktop), c = Zy(), l = e.available && !e.desktop_message;
- return /* @__PURE__ */ (0, C.jsxs)(eS, {
+function HE({ startup: e, receipt: t }) {
+ let [n, r] = (0, C.useState)(e.enabled), [i, a] = (0, C.useState)(e.silent), [o, s] = (0, C.useState)(e.desktop), c = Qy(), l = e.available && !e.desktop_message;
+ return /* @__PURE__ */ (0, w.jsxs)(tS, {
title: "开机自启",
onSubmit: (r) => {
- r.preventDefault(), e.available && c.run("save", (e) => Xm("/api/configuration/startup", {
+ r.preventDefault(), e.available && c.run("save", (e) => Qm("/api/configuration/startup", {
enabled: n,
silent: i,
desktop: o
}, "POST", e), () => t("已保存配置"));
},
children: [
- /* @__PURE__ */ (0, C.jsxs)(tS, { children: [
- /* @__PURE__ */ (0, C.jsx)(Zx, {
+ /* @__PURE__ */ (0, w.jsxs)(nS, { children: [
+ /* @__PURE__ */ (0, w.jsx)(Qx, {
label: "开机后启动 Peach",
- children: /* @__PURE__ */ (0, C.jsx)(zE, {
+ children: /* @__PURE__ */ (0, w.jsx)(BE, {
"aria-label": "开机后启动 Peach",
isSelected: n,
isDisabled: !e.available,
onChange: r
})
}),
- /* @__PURE__ */ (0, C.jsx)(Zx, {
+ /* @__PURE__ */ (0, w.jsx)(Qx, {
label: "静默启动",
description: "静默启动仅显示托盘,开机后启动 Peach 打开时生效。",
- children: /* @__PURE__ */ (0, C.jsx)(zE, {
+ children: /* @__PURE__ */ (0, w.jsx)(BE, {
"aria-label": "静默启动",
isSelected: i,
isDisabled: !e.available || !n,
onChange: a
})
}),
- /* @__PURE__ */ (0, C.jsx)(Zx, {
+ /* @__PURE__ */ (0, w.jsx)(Qx, {
label: "在桌面创建快捷方式",
description: e.desktop_message || "双击图标打开 Peach 网页;卸载时一并移除。",
- children: /* @__PURE__ */ (0, C.jsx)(zE, {
+ children: /* @__PURE__ */ (0, w.jsx)(BE, {
"aria-label": "在桌面创建快捷方式",
isSelected: o,
isDisabled: !l,
@@ -31351,11 +31360,11 @@ function VE({ startup: e, receipt: t }) {
})
})
] }),
- e.message || c.error ? /* @__PURE__ */ (0, C.jsxs)(nS, {
+ e.message || c.error ? /* @__PURE__ */ (0, w.jsxs)(rS, {
divided: !0,
- children: [e.message ? /* @__PURE__ */ (0, C.jsx)(iS, { children: e.message }) : null, c.error ? /* @__PURE__ */ (0, C.jsx)(aS, { children: c.error }) : null]
+ children: [e.message ? /* @__PURE__ */ (0, w.jsx)(aS, { children: e.message }) : null, c.error ? /* @__PURE__ */ (0, w.jsx)(oS, { children: c.error }) : null]
}) : null,
- /* @__PURE__ */ (0, C.jsx)(rS, { children: /* @__PURE__ */ (0, C.jsx)(X, {
+ /* @__PURE__ */ (0, w.jsx)(iS, { children: /* @__PURE__ */ (0, w.jsx)(X, {
type: "submit",
disabled: !e.available,
...Z(c.busy === "save"),
@@ -31366,7 +31375,7 @@ function VE({ startup: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/media-repair.tsx
-var HE = {
+var UE = {
status: "idle",
stage: "",
checked: 0,
@@ -31376,20 +31385,20 @@ var HE = {
failed: 0,
skipped: 0,
message: ""
-}, UE = (e) => Number(e).toLocaleString();
-function WE(e) {
+}, WE = (e) => Number(e).toLocaleString();
+function GE(e) {
if (e.status === "running") {
- let t = e.total ? `${UE(e.checked)} / ${UE(e.total)}` : "准备中";
+ let t = e.total ? `${WE(e.checked)} / ${WE(e.total)}` : "准备中";
return e.stage === "修复" && e.message ? `修复 ${t} · ${e.message}` : `${e.stage || "扫描"} ${t}`;
}
- return e.status === "complete" && (e.repaired || e.failed) ? e.failed ? `修好 ${UE(e.repaired)} 部,${UE(e.failed)} 部修不了` : `修好 ${UE(e.repaired)} 部` : "";
+ return e.status === "complete" && (e.repaired || e.failed) ? e.failed ? `修好 ${WE(e.repaired)} 部,${WE(e.failed)} 部修不了` : `修好 ${WE(e.repaired)} 部` : "";
}
-function GE({ initial: e }) {
- let [t, n] = (0, S.useState)(e || HE), [r, i] = (0, S.useState)(!1), a = Zy(), o = t.status === "running";
- (0, S.useEffect)(() => {
+function KE({ initial: e }) {
+ let [t, n] = (0, C.useState)(e || UE), [r, i] = (0, C.useState)(!1), a = Qy(), o = t.status === "running";
+ (0, C.useEffect)(() => {
let e = new AbortController(), t, r = async () => {
try {
- let i = await Ym("/api/media-repair", e.signal);
+ let i = await Zm("/api/media-repair", e.signal);
if (e.signal.aborted) return;
n(i), i.status === "running" && (t = setTimeout(r, 2e3));
} catch {}
@@ -31398,40 +31407,40 @@ function GE({ initial: e }) {
e.abort(), clearTimeout(t);
};
}, [o]);
- let s = () => void a.run("start", (e) => Xm("/api/media-repair", {
+ let s = () => void a.run("start", (e) => Qm("/api/media-repair", {
allow_metered: r,
restart: !0
- }, "POST", e), n), c = () => void a.run("stop", (e) => Xm("/api/media-repair", { stop: !0 }, "POST", e), n), l = t.total ? Math.round(t.checked / t.total * 100) : 0;
- return /* @__PURE__ */ (0, C.jsxs)(eS, {
+ }, "POST", e), n), c = () => void a.run("stop", (e) => Qm("/api/media-repair", { stop: !0 }, "POST", e), n), l = t.total ? Math.round(t.checked / t.total * 100) : 0;
+ return /* @__PURE__ */ (0, w.jsxs)(tS, {
title: "播放兼容修复",
- children: [/* @__PURE__ */ (0, C.jsxs)(nS, { children: [
- /* @__PURE__ */ (0, C.jsx)(iS, { children: "有些 MP4 少了一张时间戳表,浏览器按容器给的时刻排帧,会把其中一部分丢掉,看着就是卡顿。 修好之后这类片子起播直接用原片,不再实时转码。原始文件不改动,修好的头另存在缓存里。" }),
- /* @__PURE__ */ (0, C.jsx)(Ux, {
+ children: [/* @__PURE__ */ (0, w.jsxs)(rS, { children: [
+ /* @__PURE__ */ (0, w.jsx)(aS, { children: "有些 MP4 少了一张时间戳表,浏览器按容器给的时刻排帧,会把其中一部分丢掉,看着就是卡顿。 修好之后这类片子起播直接用原片,不再实时转码。原始文件不改动,修好的头另存在缓存里。" }),
+ /* @__PURE__ */ (0, w.jsx)(Wx, {
isSelected: r,
isDisabled: o,
onChange: i,
children: "连 PikPak 上的一起修(要把片子完整拉一遍,走流量)"
}),
- o ? /* @__PURE__ */ (0, C.jsx)(uh, {
+ o ? /* @__PURE__ */ (0, w.jsx)(dh, {
label: "修复进度",
value: l
}) : null,
- t.status === "complete" && !t.repaired && !t.failed ? /* @__PURE__ */ (0, C.jsx)(ch, {
+ t.status === "complete" && !t.repaired && !t.failed ? /* @__PURE__ */ (0, w.jsx)(J, {
tone: "info",
title: "没有要修的",
children: "库里的片子都能直接播,没找到缺时间戳表的。"
}) : null,
- a.error || t.error ? /* @__PURE__ */ (0, C.jsx)(aS, { children: a.error || t.error }) : null
- ] }), /* @__PURE__ */ (0, C.jsx)(rS, {
- status: WE(t) ? /* @__PURE__ */ (0, C.jsx)("p", {
+ a.error || t.error ? /* @__PURE__ */ (0, w.jsx)(oS, { children: a.error || t.error }) : null
+ ] }), /* @__PURE__ */ (0, w.jsx)(iS, {
+ status: GE(t) ? /* @__PURE__ */ (0, w.jsx)("p", {
role: "status",
- children: WE(t)
+ children: GE(t)
}) : null,
- children: o ? /* @__PURE__ */ (0, C.jsx)(X, {
+ children: o ? /* @__PURE__ */ (0, w.jsx)(X, {
onClick: c,
...Z(a.busy === "stop"),
children: "停止"
- }) : /* @__PURE__ */ (0, C.jsx)(X, {
+ }) : /* @__PURE__ */ (0, w.jsx)(X, {
onClick: s,
...Z(a.busy === "start"),
children: "开始修复"
@@ -31441,42 +31450,42 @@ function GE({ initial: e }) {
}
//#endregion
//#region src/react/settings/release-updates.tsx
-var KE = /* @__PURE__ */ new Set([
+var qE = /* @__PURE__ */ new Set([
"downloading",
"verifying",
"extracting",
"preparing",
"restarting",
"installing"
-]), qE = [
+]), JE = [
65,
67,
90
-], JE = 120;
-function YE({ initial: e, initialJob: t }) {
- let [n, r] = (0, S.useState)(e), [i, a] = (0, S.useState)(t || {
+], YE = 120;
+function XE({ initial: e, initialJob: t }) {
+ let [n, r] = (0, C.useState)(e), [i, a] = (0, C.useState)(t || {
state: "idle",
progress: 0
- }), [o, c] = (0, S.useState)(""), l = Zy(), u = (0, S.useRef)(!1), d = (0, S.useRef)(!0), f = KE.has(i.state);
- (0, S.useEffect)(() => (d.current = !0, () => {
+ }), [o, s] = (0, C.useState)(""), l = Qy(), u = (0, C.useRef)(!1), d = (0, C.useRef)(!0), f = qE.has(i.state);
+ (0, C.useEffect)(() => (d.current = !0, () => {
d.current = !1;
}), []);
let p = async () => {
- let e = await Xm("/api/configuration/update-restart", {});
+ let e = await Qm("/api/configuration/update-restart", {});
d.current && a(e);
- }, m = () => void s({
+ }, m = () => void c({
title: "更新已准备好",
body: `Peach ${i.version || ""} 将在重启后安装。`,
confirmLabel: "立即重启",
cancelLabel: "稍后",
onConfirm: p
});
- (0, S.useEffect)(() => {
+ (0, C.useEffect)(() => {
i.state !== "ready" || u.current || (u.current = !0, m());
- }, [i.state]), (0, S.useEffect)(() => {
- let e = new AbortController(), t = KE.has(i.state) ? 1e3 : 3e4, n, o = 0, s = async () => {
+ }, [i.state]), (0, C.useEffect)(() => {
+ let e = new AbortController(), t = qE.has(i.state) ? 1e3 : 3e4, n, o = 0, c = async () => {
try {
- let t = await Ym("/api/configuration/update-status", e.signal);
+ let t = await Zm("/api/configuration/update-status", e.signal);
if (e.signal.aborted) return;
a(t), o = 0, t.state === "complete" && r((e) => ({
...e,
@@ -31484,90 +31493,90 @@ function YE({ initial: e, initialJob: t }) {
state: "current",
message: "已是最新测试版。"
}));
- let n = await Ym("/api/configuration/automatic-updates", e.signal);
+ let n = await Zm("/api/configuration/automatic-updates", e.signal);
!e.signal.aborted && n.result && r(n.result);
} catch {
- o += 1, o >= JE && !e.signal.aborted && c("尚未连接到 Peach,请检查托盘后刷新页面。");
+ o += 1, o >= YE && !e.signal.aborted && s("尚未连接到 Peach,请检查托盘后刷新页面。");
}
- !e.signal.aborted && o < JE && (n = setTimeout(s, t));
+ !e.signal.aborted && o < YE && (n = setTimeout(c, t));
};
- return n = setTimeout(s, t), () => {
+ return n = setTimeout(c, t), () => {
e.abort(), clearTimeout(n);
};
}, [i.state]);
let h = () => {
- f || (u.current = !1, c(""), l.run("download", (e) => Xm("/api/configuration/update", {}, "POST", e), a));
- }, g = () => void l.run("check", (e) => Ym("/api/configuration/updates", e), r, (t) => {
+ f || (u.current = !1, s(""), l.run("download", (e) => Qm("/api/configuration/update", {}, "POST", e), a));
+ }, g = () => void l.run("check", (e) => Zm("/api/configuration/updates", e), r, (t) => {
r({
...e,
state: "error"
- }), l.setError(J(t));
+ }), l.setError(q(t));
}), _ = l.error || o, v = i.state === "downloading" && i.total ? `${((i.downloaded || 0) / 1048576).toFixed(1)} / ${(i.total / 1048576).toFixed(1)} MB` : `${i.progress}%`;
- return /* @__PURE__ */ (0, C.jsxs)(eS, {
+ return /* @__PURE__ */ (0, w.jsxs)(tS, {
title: "检查更新",
children: [
- /* @__PURE__ */ (0, C.jsxs)(cS, { children: [
- /* @__PURE__ */ (0, C.jsx)(lS, {
+ /* @__PURE__ */ (0, w.jsxs)(lS, { children: [
+ /* @__PURE__ */ (0, w.jsx)(uS, {
term: "当前版本",
children: n.current_version
}),
- /* @__PURE__ */ (0, C.jsx)(lS, {
+ /* @__PURE__ */ (0, w.jsx)(uS, {
term: "安装方式",
children: n.installation
}),
- /* @__PURE__ */ (0, C.jsx)(lS, {
+ /* @__PURE__ */ (0, w.jsx)(uS, {
term: "更新通道",
children: n.channel
}),
- /* @__PURE__ */ (0, C.jsx)(lS, {
+ /* @__PURE__ */ (0, w.jsx)(uS, {
term: "最新版本",
children: n.latest_version || (n.state === "unchecked" ? "尚未检查" : "未取得")
})
] }),
- /* @__PURE__ */ (0, C.jsxs)(nS, {
+ /* @__PURE__ */ (0, w.jsxs)(rS, {
divided: !0,
children: [
- n.checked_at ? /* @__PURE__ */ (0, C.jsxs)(iS, { children: ["检查于 ", (/* @__PURE__ */ new Date(n.checked_at * 1e3)).toLocaleString()] }) : null,
- n.state === "available" && !_ ? /* @__PURE__ */ (0, C.jsx)(ch, {
+ n.checked_at ? /* @__PURE__ */ (0, w.jsxs)(aS, { children: ["检查于 ", (/* @__PURE__ */ new Date(n.checked_at * 1e3)).toLocaleString()] }) : null,
+ n.state === "available" && !_ ? /* @__PURE__ */ (0, w.jsx)(J, {
tone: "info",
title: "有可用更新",
children: n.message
- }) : _ || n.state === "error" ? /* @__PURE__ */ (0, C.jsx)(aS, { children: _ || n.message }) : /* @__PURE__ */ (0, C.jsx)(iS, {
+ }) : _ || n.state === "error" ? /* @__PURE__ */ (0, w.jsx)(oS, { children: _ || n.message }) : /* @__PURE__ */ (0, w.jsx)(aS, {
role: "status",
children: n.message
}),
- i.state === "error" ? /* @__PURE__ */ (0, C.jsx)(aS, { children: i.message }) : null,
- i.state !== "idle" && i.state !== "error" ? /* @__PURE__ */ (0, C.jsxs)("div", {
+ i.state === "error" ? /* @__PURE__ */ (0, w.jsx)(oS, { children: i.message }) : null,
+ i.state !== "idle" && i.state !== "error" ? /* @__PURE__ */ (0, w.jsxs)("div", {
"aria-live": "polite",
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, C.jsx)(uh, {
+ /* @__PURE__ */ (0, w.jsx)(dh, {
label: "更新准备进度:下载、校验、解压、准备安装",
value: i.progress,
- stops: qE
+ stops: JE
}),
- /* @__PURE__ */ (0, C.jsxs)(iS, { children: ["下载 → 校验 → 解压 → 准备安装 · ", i.message] }),
- /* @__PURE__ */ (0, C.jsx)(iS, { children: v })
+ /* @__PURE__ */ (0, w.jsxs)(aS, { children: ["下载 → 校验 → 解压 → 准备安装 · ", i.message] }),
+ /* @__PURE__ */ (0, w.jsx)(aS, { children: v })
]
}) : null
]
}),
- /* @__PURE__ */ (0, C.jsxs)(rS, {
- status: /* @__PURE__ */ (0, C.jsx)(sS, {
+ /* @__PURE__ */ (0, w.jsxs)(iS, {
+ status: /* @__PURE__ */ (0, w.jsx)(cS, {
href: n.release_url,
children: "查看发布页"
}),
children: [
- i.state === "ready" ? /* @__PURE__ */ (0, C.jsx)(X, {
+ i.state === "ready" ? /* @__PURE__ */ (0, w.jsx)(X, {
onClick: m,
children: "重启安装"
}) : null,
- n.state === "available" && n.installation === "独立测试包" && i.state !== "ready" ? /* @__PURE__ */ (0, C.jsx)(X, {
+ n.state === "available" && n.installation === "独立测试包" && i.state !== "ready" ? /* @__PURE__ */ (0, w.jsx)(X, {
onClick: h,
...Z(f || l.busy === "download"),
children: "下载并安装"
}) : null,
- /* @__PURE__ */ (0, C.jsx)(X, {
+ /* @__PURE__ */ (0, w.jsx)(X, {
disabled: f,
onClick: g,
...Z(l.busy === "check"),
@@ -31580,81 +31589,81 @@ function YE({ initial: e, initialJob: t }) {
}
//#endregion
//#region src/react/settings/maintenance-settings.tsx
-var XE = [
+var ZE = [
["6", "每 6 小时"],
["24", "每天"],
["168", "每周"]
];
-function ZE({ data: e, receipt: t }) {
- return /* @__PURE__ */ (0, C.jsxs)("div", {
+function QE({ data: e, receipt: t }) {
+ return /* @__PURE__ */ (0, w.jsxs)("div", {
className: "flex flex-col gap-6",
children: [
- e.automatic_updates ? /* @__PURE__ */ (0, C.jsx)(QE, {
+ e.automatic_updates ? /* @__PURE__ */ (0, w.jsx)($E, {
initial: e.automatic_updates,
receipt: t
}) : null,
- e.updates ? /* @__PURE__ */ (0, C.jsx)(YE, {
+ e.updates ? /* @__PURE__ */ (0, w.jsx)(XE, {
initial: e.updates,
initialJob: e.update_job
}) : null,
- /* @__PURE__ */ (0, C.jsx)(GE, {}),
- /* @__PURE__ */ (0, C.jsx)($E, { facts: e.facts }),
- e.uninstall ? /* @__PURE__ */ (0, C.jsx)(eD, { uninstall: e.uninstall }) : null
+ /* @__PURE__ */ (0, w.jsx)(KE, {}),
+ /* @__PURE__ */ (0, w.jsx)(eD, { facts: e.facts }),
+ e.uninstall ? /* @__PURE__ */ (0, w.jsx)(tD, { uninstall: e.uninstall }) : null
]
});
}
-function QE({ initial: e, receipt: t }) {
- let [n, r] = (0, S.useState)(e.mode), [i, a] = (0, S.useState)(e.interval_hours), o = Zy(e.error), s = (r) => {
- r.preventDefault(), e.available && o.run("save", (e) => Xm("/api/configuration/automatic-updates", {
+function $E({ initial: e, receipt: t }) {
+ let [n, r] = (0, C.useState)(e.mode), [i, a] = (0, C.useState)(e.interval_hours), o = Qy(e.error), s = (r) => {
+ r.preventDefault(), e.available && o.run("save", (e) => Qm("/api/configuration/automatic-updates", {
mode: n,
interval_hours: i
}, "POST", e), () => t("已保存配置"));
}, c = e.available ? e.download_available ? "开启后一分钟内开始检查。下载完成后,在此确认重启安装。" : "开启后一分钟内开始检查。源码运行请前往发布页获取新版本。" : "自动更新需要由托盘管理的服务。";
- return /* @__PURE__ */ (0, C.jsxs)(eS, {
+ return /* @__PURE__ */ (0, w.jsxs)(tS, {
title: "自动更新",
onSubmit: s,
children: [
- /* @__PURE__ */ (0, C.jsxs)(tS, { children: [
- /* @__PURE__ */ (0, C.jsx)(Zx, {
+ /* @__PURE__ */ (0, w.jsxs)(nS, { children: [
+ /* @__PURE__ */ (0, w.jsx)(Qx, {
label: "自动检查新版本",
- children: /* @__PURE__ */ (0, C.jsx)(zE, {
+ children: /* @__PURE__ */ (0, w.jsx)(BE, {
"aria-label": "自动检查新版本",
isSelected: n !== "off",
isDisabled: !e.available,
onChange: (e) => r(e ? "check" : "off")
})
}),
- /* @__PURE__ */ (0, C.jsx)(Zx, {
+ /* @__PURE__ */ (0, w.jsx)(Qx, {
label: "自动下载更新",
- children: /* @__PURE__ */ (0, C.jsx)(zE, {
+ children: /* @__PURE__ */ (0, w.jsx)(BE, {
"aria-label": "自动下载更新",
isSelected: n === "download",
isDisabled: !e.available || !e.download_available || n === "off",
onChange: (e) => r(e ? "download" : "check")
})
}),
- /* @__PURE__ */ (0, C.jsx)(Zx, {
+ /* @__PURE__ */ (0, w.jsx)(Qx, {
label: "检查频率",
description: c,
- children: /* @__PURE__ */ (0, C.jsx)(_w, {
+ children: /* @__PURE__ */ (0, w.jsx)(vw, {
"aria-label": "检查频率",
selectedKey: String(i),
isDisabled: !e.available,
onSelectionChange: (e) => {
e !== null && a(Number(e));
},
- children: XE.map(([e, t]) => /* @__PURE__ */ (0, C.jsx)(vw, {
+ children: ZE.map(([e, t]) => /* @__PURE__ */ (0, w.jsx)(yw, {
id: e,
children: t
}, e))
})
})
] }),
- o.error ? /* @__PURE__ */ (0, C.jsx)(nS, {
+ o.error ? /* @__PURE__ */ (0, w.jsx)(rS, {
divided: !0,
- children: /* @__PURE__ */ (0, C.jsx)(aS, { children: o.error })
+ children: /* @__PURE__ */ (0, w.jsx)(oS, { children: o.error })
}) : null,
- /* @__PURE__ */ (0, C.jsx)(rS, { children: /* @__PURE__ */ (0, C.jsx)(X, {
+ /* @__PURE__ */ (0, w.jsx)(iS, { children: /* @__PURE__ */ (0, w.jsx)(X, {
type: "submit",
disabled: !e.available,
...Z(o.busy === "save"),
@@ -31663,56 +31672,56 @@ function QE({ initial: e, receipt: t }) {
]
});
}
-function $E({ facts: e }) {
- return /* @__PURE__ */ (0, C.jsx)(eS, {
+function eD({ facts: e }) {
+ return /* @__PURE__ */ (0, w.jsx)(tS, {
title: "运行信息",
- children: /* @__PURE__ */ (0, C.jsx)(cS, { children: e.map((e) => /* @__PURE__ */ (0, C.jsxs)(lS, {
+ children: /* @__PURE__ */ (0, w.jsx)(lS, { children: e.map((e) => /* @__PURE__ */ (0, w.jsxs)(uS, {
term: e.term,
- children: [e.value, e.download_url ? /* @__PURE__ */ (0, C.jsx)(sS, {
+ children: [e.value, e.download_url ? /* @__PURE__ */ (0, w.jsx)(cS, {
href: e.download_url,
children: e.download_label
}) : null]
}, e.term)) })
});
}
-function eD({ uninstall: e }) {
- let [t, n] = (0, S.useState)(!1), [r, i] = (0, S.useState)(""), a = () => void s({
+function tD({ uninstall: e }) {
+ let [t, n] = (0, C.useState)(!1), [r, i] = (0, C.useState)(""), a = () => void c({
title: "卸载 Peach",
danger: !0,
body: t ? "将退出 Peach,移除程序、开机自启、桌面图标、设置、本地数据库、观看记录、凭据和缓存。原始媒体文件保留。" : "将退出 Peach 并移除程序、开机自启和桌面图标。设置、本地数据库、观看记录与缓存保留。",
confirmLabel: "卸载 Peach",
onConfirm: async () => {
- let e = await Xm("/api/configuration/uninstall", {
+ let e = await Qm("/api/configuration/uninstall", {
delete_data: t,
confirmation: "卸载 Peach"
});
i(e.message);
}
- }), o = r || e.message, c = [.../* @__PURE__ */ new Set([e.data_root, ...e.directories])];
- return /* @__PURE__ */ (0, C.jsxs)(eS, {
+ }), o = r || e.message, s = [.../* @__PURE__ */ new Set([e.data_root, ...e.directories])];
+ return /* @__PURE__ */ (0, w.jsxs)(tS, {
id: "uninstallPeach",
title: "卸载 Peach",
- children: [/* @__PURE__ */ (0, C.jsxs)(nS, { children: [
- e.available ? /* @__PURE__ */ (0, C.jsx)(iS, { children: "卸载会退出 Peach、移除程序、开机自启和桌面图标。原始媒体文件保留。" }) : null,
- /* @__PURE__ */ (0, C.jsx)(Ux, {
+ children: [/* @__PURE__ */ (0, w.jsxs)(rS, { children: [
+ e.available ? /* @__PURE__ */ (0, w.jsx)(aS, { children: "卸载会退出 Peach、移除程序、开机自启和桌面图标。原始媒体文件保留。" }) : null,
+ /* @__PURE__ */ (0, w.jsx)(Wx, {
isSelected: t,
isDisabled: !e.full_available || !!r,
onChange: n,
children: "完全卸载:同时删除设置、本地数据库、观看记录、凭据和缓存"
}),
- /* @__PURE__ */ (0, C.jsx)(uS, {
+ /* @__PURE__ */ (0, w.jsx)(dS, {
summary: "数据目录",
- children: c.map((e) => /* @__PURE__ */ (0, C.jsx)("p", {
+ children: s.map((e) => /* @__PURE__ */ (0, w.jsx)("p", {
className: "text-body-2-regular break-all text-text-secondary",
children: e
}, e))
})
- ] }), /* @__PURE__ */ (0, C.jsx)(rS, {
- status: o ? /* @__PURE__ */ (0, C.jsx)("p", {
+ ] }), /* @__PURE__ */ (0, w.jsx)(iS, {
+ status: o ? /* @__PURE__ */ (0, w.jsx)("p", {
role: r ? "status" : void 0,
children: o
}) : null,
- children: /* @__PURE__ */ (0, C.jsx)(X, {
+ children: /* @__PURE__ */ (0, w.jsx)(X, {
variant: "danger",
disabled: !e.available || !!r,
onClick: a,
@@ -31723,7 +31732,7 @@ function eD({ uninstall: e }) {
}
//#endregion
//#region src/react/settings/clouddrive-guide.tsx
-var tD = [
+var nD = [
{
name: "机械硬盘,或内存 8 GB 以内",
cache: "10–20 GiB",
@@ -31742,37 +31751,37 @@ var tD = [
read: "256 / 128 KB",
task: "2 个起步"
}
-], nD = [
+], rD = [
["cache", "缓存上限"],
["read", "读取长度(默认 / 最小)"],
["task", "同时处理视频"]
];
-function rD() {
- return /* @__PURE__ */ (0, C.jsxs)("div", {
+function iD() {
+ return /* @__PURE__ */ (0, w.jsxs)("div", {
className: "@container flex flex-col gap-3",
- children: [/* @__PURE__ */ (0, C.jsxs)(iS, { children: ["先在 CloudDrive 登录网盘并挂载,开启「启动时自动挂载」。", /* @__PURE__ */ (0, C.jsx)(sS, {
+ children: [/* @__PURE__ */ (0, w.jsxs)(aS, { children: ["先在 CloudDrive 登录网盘并挂载,开启「启动时自动挂载」。", /* @__PURE__ */ (0, w.jsx)(cS, {
href: "https://www.clouddrive2.com/help.html",
children: "挂载帮助"
- })] }), /* @__PURE__ */ (0, C.jsxs)(uS, {
+ })] }), /* @__PURE__ */ (0, w.jsxs)(dS, {
summary: "CloudDrive 缓存建议",
children: [
- /* @__PURE__ */ (0, C.jsx)(iS, { children: "看缓存放在哪块硬盘上,照那一档填。这是起步值,填得越大不一定越快。" }),
- /* @__PURE__ */ (0, C.jsx)("ul", {
+ /* @__PURE__ */ (0, w.jsx)(aS, { children: "看缓存放在哪块硬盘上,照那一档填。这是起步值,填得越大不一定越快。" }),
+ /* @__PURE__ */ (0, w.jsx)("ul", {
"aria-label": "按缓存所在硬盘分档",
className: "flex flex-col gap-2",
- children: tD.map((e) => /* @__PURE__ */ (0, C.jsxs)("li", {
+ children: nD.map((e) => /* @__PURE__ */ (0, w.jsxs)("li", {
className: "flex flex-col gap-2 rounded-2lg border border-separator-border bg-background-primary-default p-3",
- children: [/* @__PURE__ */ (0, C.jsx)("p", {
+ children: [/* @__PURE__ */ (0, w.jsx)("p", {
className: "text-body-medium text-text-primary",
children: e.name
- }), /* @__PURE__ */ (0, C.jsx)("dl", {
+ }), /* @__PURE__ */ (0, w.jsx)("dl", {
className: "inline-grid grid-cols-1 gap-2 @md:grid-cols-3",
- children: nD.map(([t, n]) => /* @__PURE__ */ (0, C.jsxs)("div", {
+ children: rD.map(([t, n]) => /* @__PURE__ */ (0, w.jsxs)("div", {
className: "flex flex-col",
- children: [/* @__PURE__ */ (0, C.jsx)("dt", {
+ children: [/* @__PURE__ */ (0, w.jsx)("dt", {
className: "text-caption-1-regular text-text-secondary",
children: n
- }), /* @__PURE__ */ (0, C.jsx)("dd", {
+ }), /* @__PURE__ */ (0, w.jsx)("dd", {
className: "text-body-regular text-text-primary",
children: e[t]
})]
@@ -31780,17 +31789,17 @@ function rD() {
})]
}, e.name))
}),
- /* @__PURE__ */ (0, C.jsxs)("ul", {
+ /* @__PURE__ */ (0, w.jsxs)("ul", {
className: "flex list-disc flex-col gap-1 pl-5 text-body-2-regular text-text-secondary",
children: [
- /* @__PURE__ */ (0, C.jsx)("li", { children: "缓存上限和清理方式填在 CloudDrive「设置」里,清理方式选 LRU。上限不要填 0,系统盘至少留 40 GiB;填完重开设置页确认存住了。" }),
- /* @__PURE__ */ (0, C.jsx)("li", { children: "读取长度和下载线程填在每个网盘各自的下载设置里,线程都从 2 开始。" }),
- /* @__PURE__ */ (0, C.jsx)("li", { children: "Buffer Cache 占内存,磁盘缓存和文件夹缓存占硬盘,改一个管不住另外两个。" })
+ /* @__PURE__ */ (0, w.jsx)("li", { children: "缓存上限和清理方式填在 CloudDrive「设置」里,清理方式选 LRU。上限不要填 0,系统盘至少留 40 GiB;填完重开设置页确认存住了。" }),
+ /* @__PURE__ */ (0, w.jsx)("li", { children: "读取长度和下载线程填在每个网盘各自的下载设置里,线程都从 2 开始。" }),
+ /* @__PURE__ */ (0, w.jsx)("li", { children: "Buffer Cache 占内存,磁盘缓存和文件夹缓存占硬盘,改一个管不住另外两个。" })
]
}),
- /* @__PURE__ */ (0, C.jsxs)(iS, { children: [
+ /* @__PURE__ */ (0, w.jsxs)(aS, { children: [
"三处缓存分别管什么、这几个值怎么往上调、码率和速度怎么换算、线程上限与直链代理怎么取舍,以及这些起步值的来源,都在",
- /* @__PURE__ */ (0, C.jsx)(sS, {
+ /* @__PURE__ */ (0, w.jsx)(cS, {
href: "https://github.com/longmeidao/peach/blob/master/docs/CLOUDDRIVE.md",
children: "CloudDrive 配置与调优"
}),
@@ -31802,7 +31811,7 @@ function rD() {
}
//#endregion
//#region src/react/settings/library-icon-picker.tsx
-var iD = [
+var aD = [
["", "自动识别"],
["hard-drive", "磁盘"],
["database", "资料库"],
@@ -31846,14 +31855,14 @@ var iD = [
["star", "收藏"],
["tags", "主题"]
];
-function aD(e) {
+function oD(e) {
let t = e === "local" ? "" : o[e];
return t ? [t, "自动识别"] : ["hard-drive", "默认"];
}
-var oD = "auto";
-function sD({ value: e, label: t, kind: n = "local", onChange: r }) {
- let i = (0, S.useRef)(null), [a, o] = (0, S.useState)(!1), [s, c] = (0, S.useState)(e), [l, u] = aD(n);
- return /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(X, {
+var sD = "auto";
+function cD({ value: e, label: t, kind: n = "local", onChange: r }) {
+ let i = (0, C.useRef)(null), [a, o] = (0, C.useState)(!1), [s, c] = (0, C.useState)(e), [l, u] = oD(n);
+ return /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [/* @__PURE__ */ (0, w.jsx)(X, {
ref: i,
variant: "secondary",
className: "self-start",
@@ -31863,46 +31872,46 @@ function sD({ value: e, label: t, kind: n = "local", onChange: r }) {
onClick: () => {
c(e), o(!0);
},
- children: /* @__PURE__ */ (0, C.jsxs)("span", {
+ children: /* @__PURE__ */ (0, w.jsxs)("span", {
"data-icon-choice": !0,
className: "flex items-center gap-2",
- children: [/* @__PURE__ */ (0, C.jsx)(fS, { mark: e || l }), ((e) => e && iD.find(([t]) => t === e)?.[1] || u)(e)]
+ children: [/* @__PURE__ */ (0, w.jsx)(pS, { mark: e || l }), ((e) => e && aD.find(([t]) => t === e)?.[1] || u)(e)]
})
- }), /* @__PURE__ */ (0, C.jsx)(K_, {
+ }), /* @__PURE__ */ (0, w.jsx)(q_, {
triggerRef: i,
isOpen: a,
onOpenChange: o,
placement: "bottom start",
offset: 4,
- className: Wx,
- children: /* @__PURE__ */ (0, C.jsxs)(X_, {
+ className: Gx,
+ children: /* @__PURE__ */ (0, w.jsxs)(Z_, {
"aria-label": `${t}候选`,
className: "flex w-72 flex-col gap-3 outline-none",
children: [
- /* @__PURE__ */ (0, C.jsx)(ag, {
+ /* @__PURE__ */ (0, w.jsx)(og, {
slot: "title",
className: "px-1 text-body-medium text-text-primary",
children: "选择媒体库图标"
}),
- /* @__PURE__ */ (0, C.jsx)(pv, {
+ /* @__PURE__ */ (0, w.jsx)(mv, {
"aria-label": "候选图标",
- value: s || oD,
- onChange: (e) => c(e === oD ? "" : e),
+ value: s || sD,
+ onChange: (e) => c(e === sD ? "" : e),
className: "inline-grid grid-cols-7 gap-1",
- children: iD.map(([e, t]) => /* @__PURE__ */ (0, C.jsx)(mv, {
- value: e || oD,
+ children: aD.map(([e, t]) => /* @__PURE__ */ (0, w.jsx)(hv, {
+ value: e || sD,
"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, C.jsx)(fS, { mark: e || l })
- }, e || oD))
+ children: /* @__PURE__ */ (0, w.jsx)(pS, { mark: e || l })
+ }, e || sD))
}),
- /* @__PURE__ */ (0, C.jsxs)("div", {
+ /* @__PURE__ */ (0, w.jsxs)("div", {
className: "flex justify-end gap-2 border-t border-separator-border pt-2.5",
- children: [/* @__PURE__ */ (0, C.jsx)(X, {
+ children: [/* @__PURE__ */ (0, w.jsx)(X, {
variant: "secondary",
onClick: () => o(!1),
children: "取消"
- }), /* @__PURE__ */ (0, C.jsx)(X, {
+ }), /* @__PURE__ */ (0, w.jsx)(X, {
disabled: s === e,
onClick: () => {
r(s), o(!1);
@@ -31916,9 +31925,9 @@ function sD({ value: e, label: t, kind: n = "local", onChange: r }) {
}
//#endregion
//#region src/react/settings/media-settings.tsx
-var cD = 8e3;
-function lD({ className: e }) {
- return /* @__PURE__ */ (0, C.jsx)("svg", {
+var lD = 8e3;
+function uD({ className: e }) {
+ return /* @__PURE__ */ (0, w.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
fill: "none",
@@ -31927,51 +31936,51 @@ function lD({ className: e }) {
strokeLinecap: "round",
strokeLinejoin: "round",
className: e,
- children: /* @__PURE__ */ (0, C.jsx)("use", { href: "#i-folder-search" })
+ children: /* @__PURE__ */ (0, w.jsx)("use", { href: "#i-folder-search" })
});
}
-var uD = [
+var dD = [
["local", "本地磁盘"],
["115", "CloudDrive · 115"],
["pikpak", "CloudDrive · PikPak"]
-], dD = (e) => uD.find(([t]) => t === e)?.[1] ?? e, fD = (e) => o[e] || "database", pD = (e = "") => ({
+], fD = (e) => dD.find(([t]) => t === e)?.[1] ?? e, pD = (e) => o[e] || "database", mD = (e = "") => ({
path: e,
location: "local",
root: "",
library: "",
library_icon: ""
});
-function mD(e) {
- let t = e.media_sources?.filter((e) => uD.some(([t]) => t === e.location));
+function hD(e) {
+ let t = e.media_sources?.filter((e) => dD.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) => pD(e));
+ })) : (e.media_dirs.length ? e.media_dirs : [""]).map((e) => mD(e));
}
-var hD = (e) => !(e instanceof qm) || e.status !== 400 ? null : e.body?.errors ?? null;
-function gD({ data: e, receipt: t }) {
- return /* @__PURE__ */ (0, C.jsxs)("div", {
+var gD = (e) => !(e instanceof Ym) || e.status !== 400 ? null : e.body?.errors ?? null;
+function _D({ data: e, receipt: t }) {
+ return /* @__PURE__ */ (0, w.jsxs)("div", {
className: "flex flex-col gap-6",
- children: [e.editable ? /* @__PURE__ */ (0, C.jsx)(_D, {
+ children: [e.editable ? /* @__PURE__ */ (0, w.jsx)(vD, {
data: e,
receipt: t
- }) : /* @__PURE__ */ (0, C.jsx)(ch, {
+ }) : /* @__PURE__ */ (0, w.jsx)(J, {
tone: "neutral",
title: "只读",
children: e.notice
- }), /* @__PURE__ */ (0, C.jsx)(yD, { data: e })]
+ }), /* @__PURE__ */ (0, w.jsx)(bD, { data: e })]
});
}
-function _D({ data: e, receipt: t }) {
- let [n, r] = (0, S.useState)(() => mD(e)), [i, a] = (0, S.useState)(String(e.port)), [o, s] = (0, S.useState)(!1), [c, l] = (0, S.useState)([]), [u, d] = (0, S.useState)(""), [f, p] = (0, S.useState)(""), [m, h] = (0, S.useState)(null), [g, _] = (0, S.useState)(null), [v, y] = (0, S.useState)(null), b = (0, S.useRef)(!1), x = (0, S.useRef)(e.revision), w = (0, S.useRef)([]), T = Zy();
- (0, S.useLayoutEffect)(() => {
- g !== null && (w.current[g]?.focus(), _(null));
- }, [g]), (0, S.useEffect)(() => {
+function vD({ data: e, receipt: t }) {
+ let [n, r] = (0, C.useState)(() => hD(e)), [i, a] = (0, C.useState)(String(e.port)), [o, s] = (0, C.useState)(!1), [c, l] = (0, C.useState)([]), [u, d] = (0, C.useState)(""), [f, p] = (0, C.useState)(""), [m, h] = (0, C.useState)(null), [g, _] = (0, C.useState)(null), [v, y] = (0, C.useState)(null), b = (0, C.useRef)(!1), x = (0, C.useRef)(e.revision), S = (0, C.useRef)([]), T = Qy();
+ (0, C.useLayoutEffect)(() => {
+ g !== null && (S.current[g]?.focus(), _(null));
+ }, [g]), (0, C.useEffect)(() => {
if (!m) return;
- let e = setTimeout(() => location.assign(m.url), cD);
+ let e = setTimeout(() => location.assign(m.url), lD);
return () => clearTimeout(e);
}, [m]);
let E = (e, t) => r((n) => n.map((n, r) => r === e ? {
@@ -31982,23 +31991,23 @@ function _D({ data: e, receipt: t }) {
for (; r.length <= e;) r.push("");
return r[e] = t, r;
}), O = () => {
- _(n.length), r((e) => [...e, pD()]);
+ _(n.length), r((e) => [...e, mD()]);
}, k = (e) => {
r((t) => t.filter((t, n) => n !== e)), l((t) => t.filter((t, n) => n !== e));
}, A = async (e) => {
if (!b.current) {
b.current = !0, y(e);
try {
- let { path: t } = await Xm(NE, { initial: n[e]?.path ?? "" });
+ let { path: t } = await Qm(PE, { initial: n[e]?.path ?? "" });
t && (E(e, { path: t }), D(e, ""));
} catch (t) {
- D(e, J(t));
+ D(e, q(t));
} finally {
b.current = !1, y(null);
}
}
}, j = (r) => {
- r.preventDefault(), p(""), T.run("save", (t) => Xm(ME, {
+ r.preventDefault(), p(""), T.run("save", (t) => Qm(NE, {
revision: x.current,
media_dirs: n.map((e) => e.path),
...e.media_sources ? { media_sources: n } : {},
@@ -32007,18 +32016,18 @@ function _D({ data: e, receipt: t }) {
}, "POST", t), (e) => {
x.current = e.revision, l([]), d(""), t("已保存配置"), h(e);
}, (e) => {
- let t = hD(e);
- l(t?.media_dirs ?? []), d(t?.port ?? ""), t || p(J(e));
+ let t = gD(e);
+ l(t?.media_dirs ?? []), d(t?.port ?? ""), t || p(q(e));
});
};
- if (m) return /* @__PURE__ */ (0, C.jsx)(eS, {
+ if (m) return /* @__PURE__ */ (0, w.jsx)(tS, {
title: "这台电脑",
- children: /* @__PURE__ */ (0, C.jsx)(nS, { children: /* @__PURE__ */ (0, C.jsxs)(ch, {
+ children: /* @__PURE__ */ (0, w.jsx)(rS, { children: /* @__PURE__ */ (0, w.jsxs)(J, {
tone: "success",
title: "配置已保存",
children: [
"Peach 正在重新启动。稍后自动跳转,或点击",
- /* @__PURE__ */ (0, C.jsx)($x, {
+ /* @__PURE__ */ (0, w.jsx)(eS, {
href: m.url,
size: "small",
children: "进入馆藏"
@@ -32028,84 +32037,84 @@ function _D({ 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, C.jsxs)(eS, {
+ return /* @__PURE__ */ (0, w.jsxs)(tS, {
title: "这台电脑",
onSubmit: j,
- children: [/* @__PURE__ */ (0, C.jsxs)(nS, { children: [
- /* @__PURE__ */ (0, C.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, w.jsxs)(rS, { children: [
+ /* @__PURE__ */ (0, w.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, C.jsx)(oS, { children: "媒体文件夹" }),
- /* @__PURE__ */ (0, C.jsx)("div", {
+ /* @__PURE__ */ (0, w.jsx)(sS, { children: "媒体文件夹" }),
+ /* @__PURE__ */ (0, w.jsx)("div", {
role: "group",
"aria-label": "媒体文件夹",
className: "flex flex-col gap-3",
- children: n.map((t, r) => /* @__PURE__ */ (0, C.jsxs)("div", {
+ children: n.map((t, r) => /* @__PURE__ */ (0, w.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, C.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, w.jsxs)("div", {
className: "flex items-start gap-2",
children: [
- /* @__PURE__ */ (0, C.jsx)(Xy, {
+ /* @__PURE__ */ (0, w.jsx)(Zy, {
className: "min-w-0 flex-1",
"aria-label": `媒体文件夹 ${r + 1}`,
placeholder: "本机文件夹路径",
value: t.path,
onChange: (e) => E(r, { path: e }),
ref: (e) => {
- w.current[r] = e;
+ S.current[r] = e;
},
validationBehavior: "aria",
isInvalid: !!c[r],
hint: c[r] || void 0
}),
- /* @__PURE__ */ (0, C.jsx)(Uy, {
- icon: lD,
+ /* @__PURE__ */ (0, w.jsx)(Wy, {
+ icon: uD,
"aria-label": "选择文件夹",
onClick: () => void A(r),
...Z(v === r)
}),
- n.length > 1 ? /* @__PURE__ */ (0, C.jsx)(Uy, {
- icon: Ff,
+ n.length > 1 ? /* @__PURE__ */ (0, w.jsx)(Wy, {
+ icon: Rf,
"aria-label": "移除这个文件夹",
onClick: () => k(r)
}) : null
]
- }), /* @__PURE__ */ (0, C.jsxs)("div", {
+ }), /* @__PURE__ */ (0, w.jsxs)("div", {
className: "inline-grid grid-cols-1 gap-3 @lg:grid-cols-2",
children: [
- /* @__PURE__ */ (0, C.jsx)(Xy, {
+ /* @__PURE__ */ (0, w.jsx)(Zy, {
label: "媒体库名称",
maxLength: 80,
placeholder: "同名文件夹归入同一个媒体库",
value: t.library,
onChange: (e) => E(r, { library: e })
}),
- /* @__PURE__ */ (0, C.jsxs)("div", {
+ /* @__PURE__ */ (0, w.jsxs)("div", {
className: "flex flex-col gap-1.5",
- children: [/* @__PURE__ */ (0, C.jsx)(oS, { children: "媒体库图标" }), /* @__PURE__ */ (0, C.jsx)(sD, {
+ children: [/* @__PURE__ */ (0, w.jsx)(sS, { children: "媒体库图标" }), /* @__PURE__ */ (0, w.jsx)(cD, {
label: `媒体库图标 ${r + 1}`,
value: t.library_icon,
kind: t.location,
onChange: (e) => E(r, { library_icon: e })
})]
}),
- /* @__PURE__ */ (0, C.jsxs)("div", {
+ /* @__PURE__ */ (0, w.jsxs)("div", {
className: "flex flex-col gap-1.5",
- children: [/* @__PURE__ */ (0, C.jsx)(oS, { children: "媒体来源" }), /* @__PURE__ */ (0, C.jsx)(_w, {
+ children: [/* @__PURE__ */ (0, w.jsx)(sS, { children: "媒体来源" }), /* @__PURE__ */ (0, w.jsx)(vw, {
"aria-label": `媒体来源 ${r + 1}`,
selectedKey: t.location,
onSelectionChange: (e) => {
e !== null && E(r, { location: String(e) });
},
- children: uD.map(([e, t]) => /* @__PURE__ */ (0, C.jsxs)(vw, {
+ children: dD.map(([e, t]) => /* @__PURE__ */ (0, w.jsxs)(yw, {
id: e,
textValue: t,
- children: [/* @__PURE__ */ (0, C.jsx)(fS, { mark: fD(e) }), t]
+ children: [/* @__PURE__ */ (0, w.jsx)(pS, { mark: pD(e) }), t]
}, e))
})]
}),
- e.windows === !1 ? /* @__PURE__ */ (0, C.jsx)(Xy, {
+ e.windows === !1 ? /* @__PURE__ */ (0, w.jsx)(Zy, {
label: "Windows 中的对应路径",
placeholder: "例如 B:\\",
value: t.root,
@@ -32115,25 +32124,25 @@ function _D({ data: e, receipt: t }) {
})]
}, r))
}),
- /* @__PURE__ */ (0, C.jsx)(X, {
+ /* @__PURE__ */ (0, w.jsx)(X, {
className: "self-start",
onClick: O,
children: "添加文件夹"
})
]
}),
- M ? /* @__PURE__ */ (0, C.jsx)(rD, {}) : null,
- N.map((e) => /* @__PURE__ */ (0, C.jsxs)(iS, { children: [
+ M ? /* @__PURE__ */ (0, w.jsx)(iD, {}) : null,
+ N.map((e) => /* @__PURE__ */ (0, w.jsxs)(aS, { children: [
"未检测到 ",
e.name,
"。",
- /* @__PURE__ */ (0, C.jsxs)(sS, {
+ /* @__PURE__ */ (0, w.jsxs)(cS, {
href: e.download_url,
children: ["下载 ", e.name]
})
] }, e.name)),
- e.windows === !1 ? /* @__PURE__ */ (0, C.jsx)(iS, { children: "本机文件夹是这台电脑读取媒体的位置。Windows 中的对应路径用于匹配馆藏中已有的路径,例如 B:\\ 对应本机挂载文件夹。" }) : null,
- e.port_editable === !1 ? null : /* @__PURE__ */ (0, C.jsx)(Xy, {
+ e.windows === !1 ? /* @__PURE__ */ (0, w.jsx)(aS, { children: "本机文件夹是这台电脑读取媒体的位置。Windows 中的对应路径用于匹配馆藏中已有的路径,例如 B:\\ 对应本机挂载文件夹。" }) : null,
+ e.port_editable === !1 ? null : /* @__PURE__ */ (0, w.jsx)(Zy, {
id: "configPort",
label: "本机访问端口",
inputMode: "numeric",
@@ -32143,19 +32152,19 @@ function _D({ data: e, receipt: t }) {
isInvalid: !!u,
hint: u || "浏览器地址里冒号后面的数字,一般不用改。"
}),
- /* @__PURE__ */ (0, C.jsx)(Ux, {
+ /* @__PURE__ */ (0, w.jsx)(Wx, {
isSelected: o,
onChange: s,
children: "保存后扫描并补全资料"
}),
- f ? /* @__PURE__ */ (0, C.jsx)(ch, {
+ f ? /* @__PURE__ */ (0, w.jsx)(J, {
tone: "error",
title: "没有保存",
children: f
}) : null
- ] }), /* @__PURE__ */ (0, C.jsx)(rS, {
+ ] }), /* @__PURE__ */ (0, w.jsx)(iS, {
status: e.port_editable === !1 ? "保存后 Peach 会重新载入配置。" : "保存后 Peach 会重新启动,端口改了就用新地址打开。",
- children: /* @__PURE__ */ (0, C.jsx)(X, {
+ children: /* @__PURE__ */ (0, w.jsx)(X, {
type: "submit",
...Z(T.busy === "save"),
children: "保存配置"
@@ -32163,45 +32172,45 @@ function _D({ data: e, receipt: t }) {
})]
});
}
-function vD({ online: e }) {
- return e === !0 ? /* @__PURE__ */ (0, C.jsxs)("span", {
+function yD({ online: e }) {
+ return e === !0 ? /* @__PURE__ */ (0, w.jsxs)("span", {
"data-mount": "online",
className: "inline-flex items-center gap-1.5 text-body-2-medium text-notification-success-foreground",
- children: [/* @__PURE__ */ (0, C.jsx)("span", {
+ children: [/* @__PURE__ */ (0, w.jsx)("span", {
"aria-hidden": !0,
className: "size-1.5 rounded-full bg-current"
}), "在线"]
- }) : e === !1 ? /* @__PURE__ */ (0, C.jsxs)("span", {
+ }) : e === !1 ? /* @__PURE__ */ (0, w.jsxs)("span", {
"data-mount": "offline",
className: "inline-flex items-center gap-1.5 text-body-2-medium text-text-error-primary",
- children: [/* @__PURE__ */ (0, C.jsx)("span", {
+ children: [/* @__PURE__ */ (0, w.jsx)("span", {
"aria-hidden": !0,
className: "size-1.5 rounded-full bg-current"
}), "离线"]
- }) : /* @__PURE__ */ (0, C.jsxs)("span", {
+ }) : /* @__PURE__ */ (0, w.jsxs)("span", {
"data-mount": "unknown",
className: "inline-flex items-center gap-1.5 text-body-2-medium text-text-secondary",
- children: [/* @__PURE__ */ (0, C.jsx)("span", {
+ children: [/* @__PURE__ */ (0, w.jsx)("span", {
"aria-hidden": !0,
className: "size-1.5 rounded-full bg-current"
}), "未检测"]
});
}
-function yD({ data: e }) {
- let t = e.media_sources, n = Zy();
- return t ? /* @__PURE__ */ (0, C.jsxs)(eS, {
+function bD({ data: e }) {
+ let t = e.media_sources, n = Qy();
+ return t ? /* @__PURE__ */ (0, w.jsxs)(tS, {
title: "挂载状态",
children: [
- /* @__PURE__ */ (0, C.jsx)(cS, { children: t.map((e, t) => /* @__PURE__ */ (0, C.jsxs)(lS, {
- term: /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(fS, { mark: fD(e.location) }), dD(e.location)] }),
- children: [e.path || "未配置挂载点", /* @__PURE__ */ (0, C.jsx)(vD, { online: e.online })]
+ /* @__PURE__ */ (0, w.jsx)(lS, { children: t.map((e, t) => /* @__PURE__ */ (0, w.jsxs)(uS, {
+ term: /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [/* @__PURE__ */ (0, w.jsx)(pS, { mark: pD(e.location) }), fD(e.location)] }),
+ children: [e.path || "未配置挂载点", /* @__PURE__ */ (0, w.jsx)(yD, { online: e.online })]
}, t)) }),
- n.error ? /* @__PURE__ */ (0, C.jsx)(nS, {
+ n.error ? /* @__PURE__ */ (0, w.jsx)(rS, {
divided: !0,
- children: /* @__PURE__ */ (0, C.jsx)(aS, { children: n.error })
+ children: /* @__PURE__ */ (0, w.jsx)(oS, { children: n.error })
}) : null,
- /* @__PURE__ */ (0, C.jsx)(rS, { children: /* @__PURE__ */ (0, C.jsx)(X, {
- onClick: () => void n.run("refresh", (e) => FE(e), (e) => dh.setQueryData(PE, e)),
+ /* @__PURE__ */ (0, w.jsx)(iS, { children: /* @__PURE__ */ (0, w.jsx)(X, {
+ onClick: () => void n.run("refresh", (e) => IE(e), (e) => fh.setQueryData(FE, e)),
...Z(n.busy === "refresh"),
children: "刷新挂载状态"
}) })
@@ -32210,20 +32219,20 @@ function yD({ data: e }) {
}
//#endregion
//#region src/react/settings/access-settings.tsx
-var bD = {
+var xD = {
legacy: "当前使用系统生成的访问口令。你可以设置自己的密码,或关闭登录要求。",
locked: "访问设置无法读取,请在本机检查配置文件。",
password: "已设置密码。新设备需要登录,保持登录时间在登录页选择。"
};
-function xD({ initial: e, receipt: t }) {
- let [n, r] = (0, S.useState)(e), [i, a] = (0, S.useState)(""), [o, s] = (0, S.useState)(""), [c, l] = (0, S.useState)(""), [u, d] = (0, S.useState)(!1), [f, p] = (0, S.useState)({}), m = (0, S.useRef)(null), h = Zy(), g = (e) => {
+function SD({ initial: e, receipt: t }) {
+ let [n, r] = (0, C.useState)(e), [i, a] = (0, C.useState)(""), [o, s] = (0, C.useState)(""), [c, l] = (0, C.useState)(""), [u, d] = (0, C.useState)(!1), [f, p] = (0, C.useState)({}), m = (0, C.useRef)(null), h = Qy(), 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) => Xm("/api/configuration/access", {
+ h.run("save", (e) => Qm("/api/configuration/access", {
revision: n.revision,
action: u ? "disable" : "set",
confirm_disable: u,
@@ -32233,28 +32242,28 @@ function xD({ initial: e, receipt: t }) {
}, "POST", e), (e) => {
r(e), a(""), s(""), l(""), d(!1), p({}), t(e.mode === "open" ? "已关闭访问密码" : "已保存配置");
}, (e) => {
- let t = e instanceof qm ? e.body : null, n = t?.errors || t?.detail?.errors;
- n ? p(n) : h.setError(J(e));
+ let t = e instanceof Ym ? e.body : null, n = t?.errors || t?.detail?.errors;
+ n ? p(n) : h.setError(q(e));
});
- }, _ = bD[n.mode], v = n.mode !== "locked";
- return /* @__PURE__ */ (0, C.jsxs)(eS, {
+ }, _ = xD[n.mode], v = n.mode !== "locked";
+ return /* @__PURE__ */ (0, w.jsxs)(tS, {
title: "访问密码",
onSubmit: g,
- children: [/* @__PURE__ */ (0, C.jsx)("div", {
+ children: [/* @__PURE__ */ (0, w.jsx)("div", {
ref: m,
- children: /* @__PURE__ */ (0, C.jsxs)(nS, { children: [
- _ ? /* @__PURE__ */ (0, C.jsx)(iS, { children: _ }) : null,
- n.mode === "open" ? /* @__PURE__ */ (0, C.jsx)(ch, {
+ children: /* @__PURE__ */ (0, w.jsxs)(rS, { children: [
+ _ ? /* @__PURE__ */ (0, w.jsx)(aS, { children: _ }) : null,
+ n.mode === "open" ? /* @__PURE__ */ (0, w.jsx)(J, {
tone: "warning",
title: "未设置访问密码",
children: "能连接到 Peach 的设备打开地址就能看馆藏,不需要登录。"
}) : null,
- n.mode === "password" || n.mode === "legacy" ? /* @__PURE__ */ (0, C.jsx)(Ux, {
+ n.mode === "password" || n.mode === "legacy" ? /* @__PURE__ */ (0, w.jsx)(Wx, {
isSelected: u,
onChange: d,
children: "关闭访问密码,允许能连接到 Peach 的设备直接访问"
}) : null,
- n.mode === "password" ? /* @__PURE__ */ (0, C.jsx)(Xy, {
+ n.mode === "password" ? /* @__PURE__ */ (0, w.jsx)(Zy, {
id: "access-current",
type: "password",
label: "当前访问密码",
@@ -32267,7 +32276,7 @@ function xD({ initial: e, receipt: t }) {
isInvalid: !!f.current_password,
hint: f.current_password
}) : null,
- v ? /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(Xy, {
+ v ? /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [/* @__PURE__ */ (0, w.jsx)(Zy, {
id: "access-password",
type: "password",
label: n.mode === "password" ? "新访问密码" : "设置访问密码",
@@ -32280,7 +32289,7 @@ function xD({ initial: e, receipt: t }) {
validationBehavior: "aria",
isInvalid: !u && !!f.password,
hint: u ? "关闭访问密码时无需填写。" : f.password || "至少 8 个字符。保存后其他设备需要重新登录。"
- }), /* @__PURE__ */ (0, C.jsx)(Xy, {
+ }), /* @__PURE__ */ (0, w.jsx)(Zy, {
id: "access-confirm",
type: "password",
label: "确认访问密码",
@@ -32294,16 +32303,16 @@ function xD({ initial: e, receipt: t }) {
isInvalid: !u && !!f.confirmation,
hint: u ? void 0 : f.confirmation
})] }) : null,
- u ? /* @__PURE__ */ (0, C.jsx)(ch, {
+ u ? /* @__PURE__ */ (0, w.jsx)(J, {
tone: "warning",
title: "访问范围",
children: "保存后,能连接到 Peach 的设备将直接访问馆藏。"
}) : null,
- h.error ? /* @__PURE__ */ (0, C.jsx)(aS, { children: h.error }) : null
+ h.error ? /* @__PURE__ */ (0, w.jsx)(oS, { children: h.error }) : null
] })
- }), v ? /* @__PURE__ */ (0, C.jsx)(rS, {
+ }), v ? /* @__PURE__ */ (0, w.jsx)(iS, {
status: "保存后立即生效。",
- children: /* @__PURE__ */ (0, C.jsx)(X, {
+ children: /* @__PURE__ */ (0, w.jsx)(X, {
type: "submit",
...Z(h.busy === "save"),
children: "保存配置"
@@ -32313,25 +32322,25 @@ function xD({ initial: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/tunnel-settings.tsx
-var SD = 2e3, CD = [["quick", "临时链接"], ["named", "命名隧道"]], wD = {
+var CD = 2e3, wD = [["quick", "临时链接"], ["named", "命名隧道"]], TD = {
quick: "只用于临时预览;地址随机、重启后会变化。启动前必须设置访问密码。",
named: "地址是你在 Cloudflare 后台绑定的公开主机名,重启后不变。启动前必须设置访问密码,身份策略在 Cloudflare Access 里配置。"
};
-function TD({ revision: e, initial: t, receipt: n }) {
- let [r, i] = (0, S.useState)(t), [a, o] = (0, S.useState)(e), [s, c] = (0, S.useState)(t.mode), [l, u] = (0, S.useState)(t.hostname), [d, f] = (0, S.useState)(""), [p, m] = (0, S.useState)({}), h = Zy(), g = r.state === "starting" || r.state === "running", _ = r.named_available && s === "named";
- (0, S.useEffect)(() => {
+function ED({ revision: e, initial: t, receipt: n }) {
+ let [r, i] = (0, C.useState)(t), [a, o] = (0, C.useState)(e), [s, c] = (0, C.useState)(t.mode), [l, u] = (0, C.useState)(t.hostname), [d, f] = (0, C.useState)(""), [p, m] = (0, C.useState)({}), h = Qy(), g = r.state === "starting" || r.state === "running", _ = r.named_available && s === "named";
+ (0, C.useEffect)(() => {
if (r.state !== "starting") return;
let e = new AbortController(), t = window.setInterval(() => {
- FE(e.signal).then((t) => {
- e.signal.aborted || !t.tunnel || (dh.setQueryData(PE, t), i(t.tunnel), o(t.revision));
+ IE(e.signal).then((t) => {
+ e.signal.aborted || !t.tunnel || (fh.setQueryData(FE, t), i(t.tunnel), o(t.revision));
}).catch(() => void 0);
- }, SD);
+ }, CD);
return () => {
e.abort(), window.clearInterval(t);
};
}, [r.state]);
let v = (e, t, n) => {
- m({}), h.run(e, (e) => Xm("/api/configuration/tunnel", {
+ m({}), h.run(e, (e) => Qm("/api/configuration/tunnel", {
revision: a,
enabled: t,
mode: s,
@@ -32340,30 +32349,30 @@ function TD({ revision: e, initial: t, receipt: n }) {
}, "POST", e), (e) => {
i(e), o(e.revision), c(e.mode), u(e.hostname), f(""), n(e);
}, (e) => {
- let t = e instanceof qm ? e.body : null, n = t?.errors || t?.detail?.errors;
- n ? m(n) : h.setError(J(e));
+ let t = e instanceof Ym ? e.body : null, n = t?.errors || t?.detail?.errors;
+ n ? m(n) : h.setError(q(e));
});
};
- return /* @__PURE__ */ (0, C.jsxs)(eS, {
+ return /* @__PURE__ */ (0, w.jsxs)(tS, {
title: "Cloudflare 公网入口",
onSubmit: (e) => {
e.preventDefault(), v("save", g, () => n("已保存配置"));
},
- children: [/* @__PURE__ */ (0, C.jsxs)(nS, { children: [
- r.named_available ? /* @__PURE__ */ (0, C.jsx)(pv, {
+ children: [/* @__PURE__ */ (0, w.jsxs)(rS, { children: [
+ r.named_available ? /* @__PURE__ */ (0, w.jsx)(mv, {
"aria-label": "公网入口的形态(二选一)",
value: s,
isDisabled: g,
onChange: (e) => c(e),
- className: Px,
- children: CD.map(([e, t]) => /* @__PURE__ */ (0, C.jsx)(mv, {
+ className: Fx,
+ children: wD.map(([e, t]) => /* @__PURE__ */ (0, w.jsx)(hv, {
value: e,
- className: Fx,
+ className: Ix,
children: t
}, e))
}) : null,
- /* @__PURE__ */ (0, C.jsx)(iS, { children: wD[_ ? "named" : "quick"] }),
- _ ? /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(Xy, {
+ /* @__PURE__ */ (0, w.jsx)(aS, { children: TD[_ ? "named" : "quick"] }),
+ _ ? /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [/* @__PURE__ */ (0, w.jsx)(Zy, {
id: "tunnel-hostname",
label: "公开主机名",
autoComplete: "off",
@@ -32374,7 +32383,7 @@ function TD({ revision: e, initial: t, receipt: n }) {
validationBehavior: "aria",
isInvalid: !!p.hostname,
hint: p.hostname || "在 Cloudflare Zero Trust 里指向本机 origin 的那个主机名。"
- }), /* @__PURE__ */ (0, C.jsx)(Xy, {
+ }), /* @__PURE__ */ (0, w.jsx)(Zy, {
id: "tunnel-token",
type: "password",
label: "隧道令牌",
@@ -32386,33 +32395,33 @@ function TD({ revision: e, initial: t, receipt: n }) {
validationBehavior: "aria",
hint: r.token_set ? "已保存。留空表示沿用已保存的令牌。" : "在 Cloudflare Zero Trust 的隧道详情页复制。"
})] }) : null,
- r.available ? null : /* @__PURE__ */ (0, C.jsx)(ch, {
+ r.available ? null : /* @__PURE__ */ (0, w.jsx)(J, {
tone: "warning",
title: "找不到 cloudflared",
children: "请安装官方 cloudflared,或在设置文件的 tunnel.binary 指定路径,也可用 PEACH_CLOUDFLARED 指定。"
}),
- r.state === "running" && r.url ? /* @__PURE__ */ (0, C.jsx)(ch, {
+ r.state === "running" && r.url ? /* @__PURE__ */ (0, w.jsx)(J, {
tone: "info",
title: "公网地址",
- children: /* @__PURE__ */ (0, C.jsx)(sS, {
+ children: /* @__PURE__ */ (0, w.jsx)(cS, {
href: r.url,
children: r.url
})
}) : null,
- r.state === "starting" ? /* @__PURE__ */ (0, C.jsx)(ch, {
+ r.state === "starting" ? /* @__PURE__ */ (0, w.jsx)(J, {
tone: "info",
title: "正在连接",
children: "正在等待 cloudflared 连上 Cloudflare 边缘。"
}) : null,
- r.error ? /* @__PURE__ */ (0, C.jsx)(aS, { children: r.error }) : null,
- h.error ? /* @__PURE__ */ (0, C.jsx)(aS, { children: h.error }) : null
- ] }), /* @__PURE__ */ (0, C.jsxs)(rS, {
+ r.error ? /* @__PURE__ */ (0, w.jsx)(oS, { children: r.error }) : null,
+ h.error ? /* @__PURE__ */ (0, w.jsx)(oS, { children: h.error }) : null
+ ] }), /* @__PURE__ */ (0, w.jsxs)(iS, {
status: r.enabled ? "服务重启时会按设置尝试恢复。" : "默认关闭,不会自动暴露本机服务。",
- children: [/* @__PURE__ */ (0, C.jsx)(X, {
+ children: [/* @__PURE__ */ (0, w.jsx)(X, {
onClick: () => v("toggle", !g, (e) => n(e.enabled ? "公网入口已启动" : "公网入口已停止")),
...Z(h.busy === "toggle"),
children: g ? "停止公网入口" : "启动公网入口"
- }), r.named_available ? /* @__PURE__ */ (0, C.jsx)(X, {
+ }), r.named_available ? /* @__PURE__ */ (0, w.jsx)(X, {
type: "submit",
...Z(h.busy === "save"),
children: "保存配置"
@@ -32422,24 +32431,24 @@ function TD({ revision: e, initial: t, receipt: n }) {
}
//#endregion
//#region src/react/settings/network-settings.tsx
-var ED = [
+var DD = [
["environment", "系统代理"],
["direct", "直连"],
["proxy", "自定义"]
];
-function DD({ data: e, receipt: t }) {
- return /* @__PURE__ */ (0, C.jsxs)("div", {
+function OD({ data: e, receipt: t }) {
+ return /* @__PURE__ */ (0, w.jsxs)("div", {
className: "flex flex-col gap-6",
children: [
- e.peach_proxy ? /* @__PURE__ */ (0, C.jsx)(OD, {
+ e.peach_proxy ? /* @__PURE__ */ (0, w.jsx)(kD, {
initial: e.peach_proxy,
receipt: t
}) : null,
- e.access ? /* @__PURE__ */ (0, C.jsx)(xD, {
+ e.access ? /* @__PURE__ */ (0, w.jsx)(SD, {
initial: e.access,
receipt: t
}) : null,
- e.tunnel ? /* @__PURE__ */ (0, C.jsx)(TD, {
+ e.tunnel ? /* @__PURE__ */ (0, w.jsx)(ED, {
revision: e.revision,
initial: e.tunnel,
receipt: t
@@ -32447,13 +32456,13 @@ function DD({ data: e, receipt: t }) {
]
});
}
-function OD({ initial: e, receipt: t }) {
- let [n, r] = (0, S.useState)(e), [i, a] = (0, S.useState)(e.mode), [o, s] = (0, S.useState)(""), c = Zy();
- return /* @__PURE__ */ (0, C.jsxs)(eS, {
+function kD({ initial: e, receipt: t }) {
+ let [n, r] = (0, C.useState)(e), [i, a] = (0, C.useState)(e.mode), [o, s] = (0, C.useState)(""), c = Qy();
+ return /* @__PURE__ */ (0, w.jsxs)(tS, {
id: "peachProxy",
title: "Peach 代理",
onSubmit: (e) => {
- e.preventDefault(), c.run("save", (e) => Xm("/api/configuration/peach-proxy", {
+ e.preventDefault(), c.run("save", (e) => Qm("/api/configuration/peach-proxy", {
mode: i,
proxy: o
}, "POST", e), (e) => {
@@ -32461,25 +32470,25 @@ function OD({ initial: e, receipt: t }) {
});
},
children: [
- /* @__PURE__ */ (0, C.jsx)(tS, { children: /* @__PURE__ */ (0, C.jsx)(Zx, {
+ /* @__PURE__ */ (0, w.jsx)(nS, { children: /* @__PURE__ */ (0, w.jsx)(Qx, {
label: "连接方式",
description: "采集来源选择“Peach 代理”时共用此设置。",
- children: /* @__PURE__ */ (0, C.jsx)(_w, {
+ children: /* @__PURE__ */ (0, w.jsx)(vw, {
"aria-label": "连接方式",
selectedKey: i,
onSelectionChange: (e) => {
e !== null && a(String(e));
},
- children: ED.map(([e, t]) => /* @__PURE__ */ (0, C.jsx)(vw, {
+ children: DD.map(([e, t]) => /* @__PURE__ */ (0, w.jsx)(yw, {
id: e,
children: t
}, e))
})
}) }),
- i === "proxy" || n.needs_selection || c.error ? /* @__PURE__ */ (0, C.jsxs)(nS, {
+ i === "proxy" || n.needs_selection || c.error ? /* @__PURE__ */ (0, w.jsxs)(rS, {
divided: !0,
children: [
- i === "proxy" ? /* @__PURE__ */ (0, C.jsx)(Xy, {
+ i === "proxy" ? /* @__PURE__ */ (0, w.jsx)(Zy, {
id: "peachProxyAddress",
type: "password",
label: "代理地址",
@@ -32488,15 +32497,15 @@ function OD({ initial: e, receipt: t }) {
onChange: s,
placeholder: n.proxy_saved ? "已保存,留空保留" : "http://127.0.0.1:7890"
}) : null,
- n.needs_selection ? /* @__PURE__ */ (0, C.jsx)(ch, {
+ n.needs_selection ? /* @__PURE__ */ (0, w.jsx)(J, {
tone: "warning",
title: "需要选择连接方式",
children: "已有来源的代理地址不同,请选择公共连接方式。"
}) : null,
- c.error ? /* @__PURE__ */ (0, C.jsx)(aS, { children: c.error }) : null
+ c.error ? /* @__PURE__ */ (0, w.jsx)(oS, { children: c.error }) : null
]
}) : null,
- /* @__PURE__ */ (0, C.jsx)(rS, { children: /* @__PURE__ */ (0, C.jsx)(X, {
+ /* @__PURE__ */ (0, w.jsx)(iS, { children: /* @__PURE__ */ (0, w.jsx)(X, {
type: "submit",
...Z(c.busy === "save"),
children: "保存配置"
@@ -32506,60 +32515,60 @@ function OD({ initial: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/configuration-page.tsx
-function kD({ receipt: e }) {
- let t = lt({
- queryKey: PE,
- queryFn: ({ signal: e }) => FE(e)
+function AD({ receipt: e }) {
+ let t = ut({
+ queryKey: FE,
+ queryFn: ({ signal: e }) => IE(e)
}), n = t.data;
- if (!n) return /* @__PURE__ */ (0, C.jsx)("div", {
+ if (!n) return /* @__PURE__ */ (0, w.jsx)("div", {
className: "configpage",
- children: /* @__PURE__ */ (0, C.jsx)(ch, {
+ children: /* @__PURE__ */ (0, w.jsx)(J, {
tone: "error",
title: "打不开配置",
- children: t.error ? J(t.error) : "没有读到配置"
+ children: t.error ? q(t.error) : "没有读到配置"
})
});
let r = {
data: n,
receipt: e
}, i = !!(n.peach_proxy || n.access || n.tunnel);
- return /* @__PURE__ */ (0, C.jsxs)("div", {
+ return /* @__PURE__ */ (0, w.jsxs)("div", {
className: "configpage",
children: [
- n.startup ? /* @__PURE__ */ (0, C.jsx)("h2", {
+ n.startup ? /* @__PURE__ */ (0, w.jsx)("h2", {
className: "configgroup",
children: "通用"
}) : null,
- n.startup ? /* @__PURE__ */ (0, C.jsx)(BE, { ...r }) : null,
- /* @__PURE__ */ (0, C.jsx)("h2", {
+ n.startup ? /* @__PURE__ */ (0, w.jsx)(VE, { ...r }) : null,
+ /* @__PURE__ */ (0, w.jsx)("h2", {
className: "configgroup",
children: "媒体"
}),
- /* @__PURE__ */ (0, C.jsx)(gD, { ...r }),
- i ? /* @__PURE__ */ (0, C.jsx)("h2", {
+ /* @__PURE__ */ (0, w.jsx)(_D, { ...r }),
+ i ? /* @__PURE__ */ (0, w.jsx)("h2", {
className: "configgroup",
children: "网络与访问"
}) : null,
- i ? /* @__PURE__ */ (0, C.jsx)(DD, { ...r }) : null,
- /* @__PURE__ */ (0, C.jsx)("h2", {
+ i ? /* @__PURE__ */ (0, w.jsx)(OD, { ...r }) : null,
+ /* @__PURE__ */ (0, w.jsx)("h2", {
className: "configgroup",
children: "更新与维护"
}),
- /* @__PURE__ */ (0, C.jsx)(ZE, { ...r })
+ /* @__PURE__ */ (0, w.jsx)(QE, { ...r })
]
});
}
//#endregion
//#region src/react/stats/stats.ts
-var AD = "/api/stats", jD = ["stats"], MD = (e) => Ym(AD, e);
-async function ND(e) {
- await dh.fetchQuery({
- queryKey: jD,
- queryFn: () => MD(e)
+var jD = "/api/stats", MD = ["stats"], ND = (e) => Zm(jD, e);
+async function PD(e) {
+ await fh.fetchQuery({
+ queryKey: MD,
+ queryFn: () => ND(e)
});
}
-var PD = (e, t) => t ? Math.round(e / t * 100) : 0, FD = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, ID = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, LD = (e) => (e.max_reached || 0) * 100, RD = (e) => e.kind === "online" ? "在线直接观看" : ID(e) < LD(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", zD = (e) => `${e.kind === "online" ? "/follow/item/" : "/item/"}${e.id}`;
-function BD(e) {
+var FD = (e, t) => t ? Math.round(e / t * 100) : 0, ID = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, LD = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, RD = (e) => (e.max_reached || 0) * 100, zD = (e) => e.kind === "online" ? "在线直接观看" : LD(e) < RD(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", BD = (e) => `${e.kind === "online" ? "/follow/item/" : "/item/"}${e.id}`;
+function VD(e) {
let t = Math.max(1, ...e) * 1.1, n = Math.min(22, 110 / Math.max(1, e.length)), r = Math.min(15, n * .68);
return e.map((e, i) => ({
radius: 32 + i * n,
@@ -32569,9 +32578,9 @@ function BD(e) {
}
//#endregion
//#region src/react/components/expandable-ranking.tsx
-function VD({ children: e, className: t = "", previewCount: n = 10 }) {
- let r = (0, S.useId)(), i = (0, S.useRef)(null), [a, o] = (0, S.useState)(!1), [s, c] = (0, S.useState)(!1), l = S.Children.toArray(e), u = l.length > n;
- (0, S.useLayoutEffect)(() => {
+function HD({ children: e, className: t = "", previewCount: n = 10 }) {
+ let r = (0, C.useId)(), i = (0, C.useRef)(null), [a, o] = (0, C.useState)(!1), [s, c] = (0, C.useState)(!1), l = C.Children.toArray(e), u = l.length > n;
+ (0, C.useLayoutEffect)(() => {
let e = i.current;
if (!e || !u) return;
let t = () => {
@@ -32586,13 +32595,13 @@ function VD({ children: e, className: t = "", previewCount: n = 10 }) {
n,
l.length
]);
- let d = l.map((e, t) => !(0, S.isValidElement)(e) || t < n ? e : (0, S.cloneElement)(e, { inert: !a || void 0 }));
- return /* @__PURE__ */ (0, C.jsxs)("div", {
+ let d = l.map((e, t) => !(0, C.isValidElement)(e) || t < n ? e : (0, C.cloneElement)(e, { inert: !a || void 0 }));
+ return /* @__PURE__ */ (0, w.jsxs)("div", {
"data-expandable-ranking": !0,
"data-expandable": u || void 0,
"data-expanded": a || void 0,
"data-animating": s || void 0,
- children: [/* @__PURE__ */ (0, C.jsx)("ol", {
+ children: [/* @__PURE__ */ (0, w.jsx)("ol", {
id: r,
ref: i,
"data-expandable-ranking-list": !0,
@@ -32601,7 +32610,7 @@ function VD({ children: e, className: t = "", previewCount: n = 10 }) {
e.target === i.current && e.propertyName === "max-height" && c(!1);
},
children: d
- }), u ? /* @__PURE__ */ (0, C.jsx)("button", {
+ }), u ? /* @__PURE__ */ (0, w.jsx)("button", {
type: "button",
"data-ranking-toggle": !0,
"aria-controls": r,
@@ -32610,27 +32619,27 @@ function VD({ children: e, className: t = "", previewCount: n = 10 }) {
onClick: () => {
c(!0), o((e) => !e);
},
- children: /* @__PURE__ */ (0, C.jsx)(Of, { "aria-hidden": !0 })
+ children: /* @__PURE__ */ (0, w.jsx)(jf, { "aria-hidden": !0 })
}) : null]
});
}
//#endregion
//#region src/react/stats/radial-card.tsx
-var HD = [
+var UD = [
"stroke-chart-1",
"stroke-chart-2",
"stroke-chart-3",
"stroke-chart-4",
"stroke-chart-5",
"stroke-chart-6"
-], UD = [
+], WD = [
"bg-chart-1",
"bg-chart-2",
"bg-chart-3",
"bg-chart-4",
"bg-chart-5",
"bg-chart-6"
-], WD = [
+], GD = [
"aria-pressed:bg-chart-1/10 aria-pressed:ring-chart-1",
"aria-pressed:bg-chart-2/10 aria-pressed:ring-chart-2",
"aria-pressed:bg-chart-3/10 aria-pressed:ring-chart-3",
@@ -32638,42 +32647,42 @@ var HD = [
"aria-pressed:bg-chart-5/10 aria-pressed:ring-chart-5",
"aria-pressed:bg-chart-6/10 aria-pressed:ring-chart-6"
];
-function GD({ title: e, rows: t, unit: n = "个视频" }) {
- let [r, i] = (0, S.useState)(-1), [a, o] = (0, S.useState)(-1), s = t.filter((e) => Number.isFinite(e.value) && e.value >= 0);
+function KD({ title: e, rows: t, unit: n = "个视频" }) {
+ let [r, i] = (0, C.useState)(-1), [a, o] = (0, C.useState)(-1), s = t.filter((e) => Number.isFinite(e.value) && e.value >= 0);
if (!s.length) return null;
- let c = a >= 0 ? a : r, l = s.reduce((e, t) => e + t.value, 0), u = BD(s.map((e) => e.value)), d = s[c], f = (e) => i((t) => t === e ? -1 : e);
- return /* @__PURE__ */ (0, C.jsxs)("section", {
- className: `${ih({ radius: "chart" })} flex flex-col gap-4 max-sm:p-4`,
+ let c = a >= 0 ? a : r, l = s.reduce((e, t) => e + t.value, 0), u = VD(s.map((e) => e.value)), d = s[c], f = (e) => i((t) => t === e ? -1 : e);
+ return /* @__PURE__ */ (0, w.jsxs)("section", {
+ className: `${oh({ radius: "chart" })} flex flex-col gap-4 max-sm:p-4`,
children: [
- /* @__PURE__ */ (0, C.jsxs)("header", {
+ /* @__PURE__ */ (0, w.jsxs)("header", {
className: "flex flex-wrap items-end justify-between gap-x-4 gap-y-1",
- children: [/* @__PURE__ */ (0, C.jsxs)("span", {
+ children: [/* @__PURE__ */ (0, w.jsxs)("span", {
className: "flex min-w-0 flex-col gap-1",
- children: [/* @__PURE__ */ (0, C.jsx)("h3", {
+ children: [/* @__PURE__ */ (0, w.jsx)("h3", {
className: "text-title-2-medium text-text-primary",
children: d ? d.name : e
- }), /* @__PURE__ */ (0, C.jsx)("b", {
+ }), /* @__PURE__ */ (0, w.jsx)("b", {
className: "text-display-4-medium tabular-nums text-text-primary",
children: (d ? d.value : l).toLocaleString()
})]
- }), /* @__PURE__ */ (0, C.jsx)("small", {
+ }), /* @__PURE__ */ (0, w.jsx)("small", {
className: "text-caption-1-regular text-text-secondary",
children: n
})]
}),
- /* @__PURE__ */ (0, C.jsx)("svg", {
+ /* @__PURE__ */ (0, w.jsx)("svg", {
viewBox: "0 0 320 320",
fill: "none",
role: "img",
"aria-label": e,
className: "block h-75 w-full max-sm:h-65",
onPointerLeave: () => o(-1),
- children: s.map((e, t) => /* @__PURE__ */ (0, C.jsxs)("g", {
+ children: s.map((e, t) => /* @__PURE__ */ (0, w.jsxs)("g", {
onPointerEnter: () => o(t),
onClick: () => f(t),
children: [
- /* @__PURE__ */ (0, C.jsx)("title", { children: `${e.name}:${e.value.toLocaleString()} ${n}` }),
- /* @__PURE__ */ (0, C.jsx)("circle", {
+ /* @__PURE__ */ (0, w.jsx)("title", { children: `${e.name}:${e.value.toLocaleString()} ${n}` }),
+ /* @__PURE__ */ (0, w.jsx)("circle", {
cx: "160",
cy: "160",
r: u[t].radius,
@@ -32681,7 +32690,7 @@ function GD({ title: e, rows: t, unit: n = "个视频" }) {
strokeLinecap: "round",
className: "stroke-chart-track"
}),
- /* @__PURE__ */ (0, C.jsx)("circle", {
+ /* @__PURE__ */ (0, w.jsx)("circle", {
cx: "160",
cy: "160",
r: u[t].radius,
@@ -32690,14 +32699,14 @@ function GD({ title: e, rows: t, unit: n = "个视频" }) {
pathLength: 100,
transform: "rotate(-90 160 160)",
strokeDasharray: `${u[t].length} ${100 - u[t].length}`,
- className: c >= 0 && c !== t ? `cursor-pointer opacity-30 transition-opacity ${HD[t % 6]}` : `cursor-pointer transition-opacity ${HD[t % 6]}`
+ className: c >= 0 && c !== t ? `cursor-pointer opacity-30 transition-opacity ${UD[t % 6]}` : `cursor-pointer transition-opacity ${UD[t % 6]}`
})
]
}, e.name))
}),
- /* @__PURE__ */ (0, C.jsx)("div", {
+ /* @__PURE__ */ (0, w.jsx)("div", {
className: "inline-grid w-full grid-cols-3 gap-2 max-sm:grid-cols-2",
- children: s.map((e, t) => /* @__PURE__ */ (0, C.jsxs)("button", {
+ children: s.map((e, t) => /* @__PURE__ */ (0, w.jsxs)("button", {
type: "button",
"aria-pressed": r === t,
onClick: () => f(t),
@@ -32705,20 +32714,20 @@ function GD({ title: e, rows: t, unit: n = "个视频" }) {
onPointerLeave: () => o(-1),
onFocus: () => o(t),
onBlur: () => o(-1),
- className: `flex min-w-0 cursor-pointer flex-col items-start gap-1 rounded-xl bg-background-tertiary-default p-2.5 text-left outline-none aria-pressed:ring-1 aria-pressed:ring-inset focus-visible:ring-2 focus-visible:ring-border-focus-ring ${WD[t % 6]}`,
+ className: `flex min-w-0 cursor-pointer flex-col items-start gap-1 rounded-xl bg-background-tertiary-default p-2.5 text-left outline-none aria-pressed:ring-1 aria-pressed:ring-inset focus-visible:ring-2 focus-visible:ring-border-focus-ring ${GD[t % 6]}`,
children: [
- /* @__PURE__ */ (0, C.jsxs)("span", {
+ /* @__PURE__ */ (0, w.jsxs)("span", {
className: "flex min-w-0 items-center gap-1.5 text-caption-1-regular text-text-secondary",
- children: [/* @__PURE__ */ (0, C.jsx)("i", {
+ children: [/* @__PURE__ */ (0, w.jsx)("i", {
"aria-hidden": !0,
- className: `size-3 shrink-0 rounded-sm ${UD[t % 6]}`
+ className: `size-3 shrink-0 rounded-sm ${WD[t % 6]}`
}), e.name]
}),
- /* @__PURE__ */ (0, C.jsx)("b", {
+ /* @__PURE__ */ (0, w.jsx)("b", {
className: "text-title-2-medium tabular-nums text-text-primary",
children: e.value.toLocaleString()
}),
- e.detail ? /* @__PURE__ */ (0, C.jsx)("small", {
+ e.detail ? /* @__PURE__ */ (0, w.jsx)("small", {
className: "text-caption-1-regular text-text-secondary",
children: e.detail
}) : null
@@ -32730,77 +32739,77 @@ function GD({ title: e, rows: t, unit: n = "个视频" }) {
}
//#endregion
//#region src/react/stats/stats-page.tsx
-var KD = 10, qD = `${ih()} flex flex-col gap-4`, JD = "添加媒体文件夹或关注来源,开始建立你的馆藏。", YD = "补全资料或添加标签后,这里会显示馆藏中的内容标签。", XD = "开始播放后,这里会显示最近的真实观看证据。", ZD = "刮削或手动打标之后,这里会显示每个来源覆盖了多少视频。", QD = "添加媒体文件夹后,这里会显示存储空间。";
-function $D({ term: e, value: t }) {
- return /* @__PURE__ */ (0, C.jsxs)("div", {
+var qD = 10, JD = `${oh()} flex flex-col gap-4`, YD = "添加媒体文件夹或关注来源,开始建立你的馆藏。", XD = "补全资料或添加标签后,这里会显示馆藏中的内容标签。", ZD = "开始播放后,这里会显示最近的真实观看证据。", QD = "刮削或手动打标之后,这里会显示每个来源覆盖了多少视频。", $D = "添加媒体文件夹后,这里会显示存储空间。";
+function eO({ term: e, value: t }) {
+ return /* @__PURE__ */ (0, w.jsxs)("div", {
className: "flex min-h-16 min-w-0 flex-col gap-1.5 rounded-2lg bg-background-primary-default p-3",
- children: [/* @__PURE__ */ (0, C.jsx)("span", {
+ children: [/* @__PURE__ */ (0, w.jsx)("span", {
className: "text-caption-1-regular text-text-secondary",
children: e
- }), /* @__PURE__ */ (0, C.jsx)("b", {
+ }), /* @__PURE__ */ (0, w.jsx)("b", {
className: "text-title-3-medium tabular-nums text-text-primary",
children: t.toLocaleString()
})]
});
}
-function eO({ term: e, value: t, total: n }) {
- return /* @__PURE__ */ (0, C.jsxs)("div", {
+function tO({ term: e, value: t, total: n }) {
+ return /* @__PURE__ */ (0, w.jsxs)("div", {
className: "flex flex-col gap-1.5 border-b border-separator-border py-3 last:border-b-0",
- children: [/* @__PURE__ */ (0, C.jsxs)("p", {
+ children: [/* @__PURE__ */ (0, w.jsxs)("p", {
className: "flex items-baseline justify-between gap-3 text-body-2-regular text-text-primary",
- children: [/* @__PURE__ */ (0, C.jsx)("span", { children: e }), /* @__PURE__ */ (0, C.jsxs)("b", {
+ children: [/* @__PURE__ */ (0, w.jsx)("span", { children: e }), /* @__PURE__ */ (0, w.jsxs)("b", {
className: "tabular-nums",
- children: [t.toLocaleString(), /* @__PURE__ */ (0, C.jsxs)("span", {
+ children: [t.toLocaleString(), /* @__PURE__ */ (0, w.jsxs)("span", {
className: "ml-1.5 text-caption-1-regular text-text-secondary",
- children: [PD(t, n), "%"]
+ children: [FD(t, n), "%"]
})]
})]
- }), /* @__PURE__ */ (0, C.jsx)(uh, {
+ }), /* @__PURE__ */ (0, w.jsx)(dh, {
label: `${e}:${t.toLocaleString()} / ${n.toLocaleString()}`,
value: t,
max: Math.max(n, 1)
})]
});
}
-function tO({ term: e, figure: t, unit: n }) {
- return /* @__PURE__ */ (0, C.jsxs)("div", {
+function nO({ term: e, figure: t, unit: n }) {
+ return /* @__PURE__ */ (0, w.jsxs)("div", {
className: "flex shrink-0 flex-col gap-0.5 pb-5 md:w-64 md:pr-6 md:pb-0",
children: [
- /* @__PURE__ */ (0, C.jsx)("span", {
+ /* @__PURE__ */ (0, w.jsx)("span", {
className: "text-caption-1-regular text-text-secondary",
children: e
}),
- /* @__PURE__ */ (0, C.jsx)("b", {
+ /* @__PURE__ */ (0, w.jsx)("b", {
className: "text-display-4-medium tabular-nums text-text-primary",
children: t
}),
- /* @__PURE__ */ (0, C.jsx)("span", {
+ /* @__PURE__ */ (0, w.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
children: n
})
]
});
}
-function nO({ headline: e, children: t }) {
- return /* @__PURE__ */ (0, C.jsxs)("div", {
- className: `${qD} md:flex-row md:gap-6`,
- children: [e, /* @__PURE__ */ (0, C.jsx)("div", {
+function rO({ headline: e, children: t }) {
+ return /* @__PURE__ */ (0, w.jsxs)("div", {
+ className: `${JD} md:flex-row md:gap-6`,
+ children: [e, /* @__PURE__ */ (0, w.jsx)("div", {
className: "min-w-0 grow",
children: t
})]
});
}
-function rO({ data: t, configurable: r, openMediaSettings: i }) {
- return t.by_loc.reduce((e, t) => e + t.videos, 0) ? /* @__PURE__ */ (0, C.jsxs)("div", {
+function iO({ data: t, configurable: r, openMediaSettings: i }) {
+ return t.by_loc.reduce((e, t) => e + t.videos, 0) ? /* @__PURE__ */ (0, w.jsxs)("div", {
className: "inline-grid w-full gap-5 md:grid-cols-2",
- children: [/* @__PURE__ */ (0, C.jsx)(GD, {
+ children: [/* @__PURE__ */ (0, w.jsx)(KD, {
title: "网盘与本地",
rows: t.by_loc.map((t) => ({
name: e[t.k] ?? t.k,
value: t.videos,
detail: n(t.bytes)
}))
- }), /* @__PURE__ */ (0, C.jsx)(GD, {
+ }), /* @__PURE__ */ (0, w.jsx)(KD, {
title: "媒体库",
rows: t.by_library.map((e) => ({
name: e.name,
@@ -32808,48 +32817,48 @@ function rO({ data: t, configurable: r, openMediaSettings: i }) {
detail: n(e.bytes)
}))
})]
- }) : /* @__PURE__ */ (0, C.jsx)(oh, {
+ }) : /* @__PURE__ */ (0, w.jsx)(ch, {
shell: "plain",
- icon: sp,
+ icon: up,
title: "还没有视频",
- actions: /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [r ? /* @__PURE__ */ (0, C.jsx)(X, {
+ actions: /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [r ? /* @__PURE__ */ (0, w.jsx)(X, {
size: "small",
onClick: i,
children: "添加媒体文件夹"
- }) : null, /* @__PURE__ */ (0, C.jsx)($x, {
+ }) : null, /* @__PURE__ */ (0, w.jsx)(eS, {
href: "/follow-manage?tab=add",
size: "small",
children: "添加关注"
})] }),
- children: JD
+ children: YD
});
}
-function iO({ attribution: e }) {
+function aO({ attribution: e }) {
let t = e.videos;
- return /* @__PURE__ */ (0, C.jsxs)("div", {
+ return /* @__PURE__ */ (0, w.jsxs)("div", {
className: "flex flex-col",
children: [
- /* @__PURE__ */ (0, C.jsx)(eO, {
+ /* @__PURE__ */ (0, w.jsx)(tO, {
term: "有创作者",
value: e.creator,
total: t
}),
- /* @__PURE__ */ (0, C.jsx)(eO, {
+ /* @__PURE__ */ (0, w.jsx)(tO, {
term: "有番号",
value: e.code,
total: t
}),
- /* @__PURE__ */ (0, C.jsx)(eO, {
+ /* @__PURE__ */ (0, w.jsx)(tO, {
term: "有厂牌",
value: e.studio,
total: t
}),
- /* @__PURE__ */ (0, C.jsx)(eO, {
+ /* @__PURE__ */ (0, w.jsx)(tO, {
term: "已抽帧",
value: e.thumb,
total: t
}),
- /* @__PURE__ */ (0, C.jsx)(eO, {
+ /* @__PURE__ */ (0, w.jsx)(tO, {
term: "已探测时长",
value: e.duration,
total: t
@@ -32857,35 +32866,35 @@ function iO({ attribution: e }) {
]
});
}
-function aO({ volume: e }) {
+function oO({ volume: e }) {
let t = e.total, r = e.used ?? 0;
- return /* @__PURE__ */ (0, C.jsxs)("article", {
+ return /* @__PURE__ */ (0, w.jsxs)("article", {
className: "flex min-w-0 flex-col gap-1.5",
children: [
- /* @__PURE__ */ (0, C.jsxs)("header", {
+ /* @__PURE__ */ (0, w.jsxs)("header", {
className: "flex items-baseline justify-between gap-3",
- children: [/* @__PURE__ */ (0, C.jsx)("h3", {
+ children: [/* @__PURE__ */ (0, w.jsx)("h3", {
className: "min-w-0 text-body-2-medium break-words text-text-primary",
children: e.label
- }), /* @__PURE__ */ (0, C.jsx)("b", {
+ }), /* @__PURE__ */ (0, w.jsx)("b", {
className: "text-body-2-medium whitespace-nowrap text-text-primary",
- children: t == null ? e.online ? "容量未取得" : "离线" : `${PD(r, t)}%`
+ children: t == null ? e.online ? "容量未取得" : "离线" : `${FD(r, t)}%`
})]
}),
- /* @__PURE__ */ (0, C.jsx)("small", {
+ /* @__PURE__ */ (0, w.jsx)("small", {
className: "text-caption-1-regular break-words text-text-secondary",
children: e.root ?? "未映射"
}),
- t == null ? null : /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(uh, {
+ t == null ? null : /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [/* @__PURE__ */ (0, w.jsx)(dh, {
label: `${e.label}空间使用率`,
value: r,
max: Math.max(t, 1)
- }), /* @__PURE__ */ (0, C.jsxs)("p", {
+ }), /* @__PURE__ */ (0, w.jsxs)("p", {
className: "flex justify-between gap-3 text-caption-1-regular text-text-secondary",
- children: [/* @__PURE__ */ (0, C.jsxs)("span", { children: ["已用 ", /* @__PURE__ */ (0, C.jsx)("b", {
+ children: [/* @__PURE__ */ (0, w.jsxs)("span", { children: ["已用 ", /* @__PURE__ */ (0, w.jsx)("b", {
className: "font-normal text-text-primary",
children: n(r)
- })] }), /* @__PURE__ */ (0, C.jsxs)("span", { children: ["可用 ", /* @__PURE__ */ (0, C.jsx)("b", {
+ })] }), /* @__PURE__ */ (0, w.jsxs)("span", { children: ["可用 ", /* @__PURE__ */ (0, w.jsx)("b", {
className: "font-normal text-text-primary",
children: n(e.free ?? 0)
})] })]
@@ -32893,155 +32902,155 @@ function aO({ volume: e }) {
]
});
}
-function oO({ volumes: e, configurable: t, openMediaSettings: n }) {
- return e.length ? /* @__PURE__ */ (0, C.jsx)("div", {
+function sO({ volumes: e, configurable: t, openMediaSettings: n }) {
+ return e.length ? /* @__PURE__ */ (0, w.jsx)("div", {
className: "flex flex-col gap-5",
- children: e.map((e) => /* @__PURE__ */ (0, C.jsx)(aO, { volume: e }, `${e.kind}:${e.label}`))
- }) : /* @__PURE__ */ (0, C.jsx)(oh, {
+ children: e.map((e) => /* @__PURE__ */ (0, w.jsx)(oO, { volume: e }, `${e.kind}:${e.label}`))
+ }) : /* @__PURE__ */ (0, w.jsx)(ch, {
shell: "plain",
- icon: Wf,
+ icon: qf,
title: "还没有存储来源",
- actions: t ? /* @__PURE__ */ (0, C.jsx)(X, {
+ actions: t ? /* @__PURE__ */ (0, w.jsx)(X, {
size: "small",
onClick: n,
children: "添加媒体文件夹"
}) : void 0,
- children: QD
+ children: $D
});
}
-function sO({ tags: e, tagLabel: t, onTag: n }) {
- return e.length ? /* @__PURE__ */ (0, C.jsx)(VD, {
- previewCount: KD,
+function cO({ tags: e, tagLabel: t, onTag: n }) {
+ return e.length ? /* @__PURE__ */ (0, w.jsx)(HD, {
+ previewCount: qD,
className: "inline-grid w-full gap-x-6 gap-y-1 sm:grid-cols-2",
- children: e.map((e, r) => /* @__PURE__ */ (0, C.jsx)("li", {
+ children: e.map((e, r) => /* @__PURE__ */ (0, w.jsx)("li", {
className: "min-w-0",
- children: /* @__PURE__ */ (0, C.jsxs)("button", {
+ children: /* @__PURE__ */ (0, w.jsxs)("button", {
type: "button",
onClick: () => n(e.k),
className: "flex min-h-11 w-full min-w-0 cursor-pointer items-center gap-2.5 rounded-lg px-3 py-2 text-left outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring",
children: [
- /* @__PURE__ */ (0, C.jsx)("span", {
+ /* @__PURE__ */ (0, w.jsx)("span", {
className: "w-6 shrink-0 text-caption-1-regular tabular-nums text-text-secondary",
children: r + 1
}),
- /* @__PURE__ */ (0, C.jsx)("span", {
+ /* @__PURE__ */ (0, w.jsx)("span", {
className: "min-w-0 grow text-body-2-regular break-words text-text-primary",
children: t(e.k)
}),
- /* @__PURE__ */ (0, C.jsx)("b", {
+ /* @__PURE__ */ (0, w.jsx)("b", {
className: "text-body-2-medium tabular-nums text-text-secondary",
children: e.n.toLocaleString()
})
]
})
}, e.k))
- }) : /* @__PURE__ */ (0, C.jsx)(oh, {
+ }) : /* @__PURE__ */ (0, w.jsx)(ch, {
shell: "plain",
- icon: Qf,
+ icon: tp,
title: "还没有内容标签",
- actions: /* @__PURE__ */ (0, C.jsx)($x, {
+ actions: /* @__PURE__ */ (0, w.jsx)(eS, {
href: "/data-cleanup",
size: "small",
children: "补全资料"
}),
- children: YD
+ children: XD
});
}
-function cO({ rows: e }) {
- return e.length ? /* @__PURE__ */ (0, C.jsx)("div", {
+function lO({ rows: e }) {
+ return e.length ? /* @__PURE__ */ (0, w.jsx)("div", {
className: "flex flex-col gap-5",
children: e.map((e) => {
- let t = ID(e);
- return /* @__PURE__ */ (0, C.jsxs)("article", {
+ let t = LD(e);
+ return /* @__PURE__ */ (0, w.jsxs)("article", {
className: "flex flex-wrap items-center gap-x-6 gap-y-2",
- children: [/* @__PURE__ */ (0, C.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, w.jsxs)("div", {
className: "min-w-0 grow basis-64",
- children: [/* @__PURE__ */ (0, C.jsx)("h3", {
+ children: [/* @__PURE__ */ (0, w.jsx)("h3", {
className: "min-w-0 text-body-2-medium text-text-primary",
- children: /* @__PURE__ */ (0, C.jsx)("a", {
- href: zD(e),
+ children: /* @__PURE__ */ (0, w.jsx)("a", {
+ href: BD(e),
"data-middle-truncate": !0,
className: "block max-w-full overflow-hidden whitespace-nowrap hover:underline",
children: e.name
})
- }), /* @__PURE__ */ (0, C.jsxs)("p", {
+ }), /* @__PURE__ */ (0, w.jsxs)("p", {
className: "flex flex-wrap gap-3 text-caption-1-regular text-text-secondary",
- children: [/* @__PURE__ */ (0, C.jsx)("span", { children: e.creator ?? "" }), /* @__PURE__ */ (0, C.jsx)("span", { children: RD(e) })]
+ children: [/* @__PURE__ */ (0, w.jsx)("span", { children: e.creator ?? "" }), /* @__PURE__ */ (0, w.jsx)("span", { children: zD(e) })]
})]
- }), /* @__PURE__ */ (0, C.jsxs)("div", {
+ }), /* @__PURE__ */ (0, w.jsxs)("div", {
className: "min-w-0 basis-40",
- children: [/* @__PURE__ */ (0, C.jsx)(uh, {
+ children: [/* @__PURE__ */ (0, w.jsx)(dh, {
label: `真实观看 ${t.toFixed(0)}%`,
value: t
- }), /* @__PURE__ */ (0, C.jsx)("small", {
+ }), /* @__PURE__ */ (0, w.jsx)("small", {
className: "mt-1.5 block text-caption-1-regular text-text-secondary",
- children: `真实 ${t.toFixed(0)}% · 到达 ${LD(e).toFixed(0)}%`
+ children: `真实 ${t.toFixed(0)}% · 到达 ${RD(e).toFixed(0)}%`
})]
})]
}, `${e.kind}:${e.id}`);
})
- }) : /* @__PURE__ */ (0, C.jsx)(oh, {
+ }) : /* @__PURE__ */ (0, w.jsx)(ch, {
shell: "plain",
- icon: Gf,
+ icon: Jf,
title: "还没有观看记录",
- actions: /* @__PURE__ */ (0, C.jsx)($x, {
+ actions: /* @__PURE__ */ (0, w.jsx)(eS, {
href: "/",
size: "small",
children: "浏览馆藏"
}),
- children: XD
+ children: ZD
});
}
-function lO({ sources: e, videos: t }) {
- return e.length ? /* @__PURE__ */ (0, C.jsx)("div", {
+function uO({ sources: e, videos: t }) {
+ return e.length ? /* @__PURE__ */ (0, w.jsx)("div", {
className: "inline-grid w-full gap-x-8 gap-y-6 sm:grid-cols-2",
- children: e.map((e) => /* @__PURE__ */ (0, C.jsxs)("article", {
+ children: e.map((e) => /* @__PURE__ */ (0, w.jsxs)("article", {
className: "flex min-w-0 flex-col gap-1.5",
children: [
- /* @__PURE__ */ (0, C.jsxs)("header", {
+ /* @__PURE__ */ (0, w.jsxs)("header", {
className: "flex items-baseline justify-between gap-3",
- children: [/* @__PURE__ */ (0, C.jsx)("h3", {
+ children: [/* @__PURE__ */ (0, w.jsx)("h3", {
className: "min-w-0 text-body-2-medium break-words text-text-primary",
children: e.k
- }), /* @__PURE__ */ (0, C.jsxs)("b", {
+ }), /* @__PURE__ */ (0, w.jsxs)("b", {
className: "text-body-2-medium whitespace-nowrap text-text-primary",
- children: [e.assets.toLocaleString(), /* @__PURE__ */ (0, C.jsx)("small", {
+ children: [e.assets.toLocaleString(), /* @__PURE__ */ (0, w.jsx)("small", {
className: "ml-1 text-caption-1-regular font-normal text-text-secondary",
children: "个视频"
})]
})]
}),
- /* @__PURE__ */ (0, C.jsx)(uh, {
+ /* @__PURE__ */ (0, w.jsx)(dh, {
label: `${e.k} 覆盖视频`,
value: e.assets,
max: Math.max(t, 1)
}),
- /* @__PURE__ */ (0, C.jsxs)("small", {
+ /* @__PURE__ */ (0, w.jsxs)("small", {
className: "text-caption-1-regular text-text-secondary",
children: [e.n.toLocaleString(), " 条标签"]
})
]
}, e.k))
- }) : /* @__PURE__ */ (0, C.jsx)(oh, {
+ }) : /* @__PURE__ */ (0, w.jsx)(ch, {
shell: "plain",
- icon: Qf,
+ icon: tp,
title: "还没有标签来源",
- actions: /* @__PURE__ */ (0, C.jsx)($x, {
+ actions: /* @__PURE__ */ (0, w.jsx)(eS, {
href: "/data-cleanup",
size: "small",
children: "补全资料"
}),
- children: ZD
+ children: QD
});
}
-function uO({ id: e, label: t, figure: n, detail: r, icon: i, accent: a }) {
- return /* @__PURE__ */ (0, C.jsx)(Py, {
+function dO({ id: e, label: t, figure: n, detail: r, icon: i, accent: a }) {
+ return /* @__PURE__ */ (0, w.jsx)(Fy, {
id: e,
- className: Rx({
+ className: zx({
interactive: !0,
selectable: !0
}),
- children: /* @__PURE__ */ (0, C.jsx)(Bx, {
+ children: /* @__PURE__ */ (0, w.jsx)(Vx, {
label: t,
icon: i,
accent: a,
@@ -33050,106 +33059,106 @@ function uO({ id: e, label: t, figure: n, detail: r, icon: i, accent: a }) {
})
});
}
-function dO(e) {
- let t = lt({
- queryKey: jD,
- queryFn: ({ signal: e }) => MD(e)
+function fO(e) {
+ let t = ut({
+ queryKey: MD,
+ queryFn: ({ signal: e }) => ND(e)
}), r = t.data;
- if (!r) return /* @__PURE__ */ (0, C.jsx)(lh, { children: /* @__PURE__ */ (0, C.jsx)(ch, {
+ if (!r) return /* @__PURE__ */ (0, w.jsx)(uh, { children: /* @__PURE__ */ (0, w.jsx)(J, {
tone: "error",
title: "读取失败",
- children: t.error ? J(t.error) : "读取统计失败"
+ children: t.error ? q(t.error) : "读取统计失败"
}) });
- let i = r.consumption, a = r.storage_summary, o = r.by_loc.reduce((e, t) => e + t.videos, 0), s = r.by_loc.reduce((e, t) => e + t.bytes, 0), c = PD(r.tag_cov, r.attribution.videos);
- return /* @__PURE__ */ (0, C.jsxs)(lh, { children: [
- /* @__PURE__ */ (0, C.jsx)("p", {
+ let i = r.consumption, a = r.storage_summary, o = r.by_loc.reduce((e, t) => e + t.videos, 0), s = r.by_loc.reduce((e, t) => e + t.bytes, 0), c = FD(r.tag_cov, r.attribution.videos);
+ return /* @__PURE__ */ (0, w.jsxs)(uh, { children: [
+ /* @__PURE__ */ (0, w.jsx)("p", {
className: "text-caption-1-regular text-text-secondary",
children: `账本当前快照 · ${o.toLocaleString()} 个视频 · ${n(s)}`
}),
- /* @__PURE__ */ (0, C.jsxs)(Ay, {
+ /* @__PURE__ */ (0, w.jsxs)(jy, {
className: "flex flex-col gap-4",
children: [
- /* @__PURE__ */ (0, C.jsxs)(My, {
+ /* @__PURE__ */ (0, w.jsxs)(Ny, {
"aria-label": "统计视图",
- className: zx,
+ className: Bx,
children: [
- /* @__PURE__ */ (0, C.jsx)(uO, {
+ /* @__PURE__ */ (0, w.jsx)(dO, {
id: "inventory",
label: "馆藏视频",
- icon: Lf,
+ icon: Bf,
accent: 0,
figure: o.toLocaleString(),
detail: n(s)
}),
- /* @__PURE__ */ (0, C.jsx)(uO, {
+ /* @__PURE__ */ (0, w.jsx)(dO, {
id: "viewing",
label: "看过",
- icon: Vf,
+ icon: Wf,
accent: 1,
figure: i.played.toLocaleString(),
- detail: FD(i.play_seconds)
+ detail: ID(i.play_seconds)
}),
- /* @__PURE__ */ (0, C.jsx)(uO, {
+ /* @__PURE__ */ (0, w.jsx)(dO, {
id: "coverage",
label: "内容标签",
- icon: Qf,
+ icon: tp,
accent: 2,
figure: `${c}%`,
detail: `${r.tag_cov.toLocaleString()} / ${r.attribution.videos.toLocaleString()}`
}),
- /* @__PURE__ */ (0, C.jsx)(uO, {
+ /* @__PURE__ */ (0, w.jsx)(dO, {
id: "storage",
label: "使用空间",
- icon: Wf,
+ icon: qf,
accent: 3,
figure: `${a.online} 个卷`,
detail: a.measured ? `已用 ${n(a.used)}` : "容量未取得"
})
]
}),
- /* @__PURE__ */ (0, C.jsx)(Fy, {
+ /* @__PURE__ */ (0, w.jsx)(Iy, {
id: "inventory",
- children: /* @__PURE__ */ (0, C.jsx)(rO, {
+ children: /* @__PURE__ */ (0, w.jsx)(iO, {
data: r,
...e
})
}),
- /* @__PURE__ */ (0, C.jsx)(Fy, {
+ /* @__PURE__ */ (0, w.jsx)(Iy, {
id: "viewing",
- children: /* @__PURE__ */ (0, C.jsx)(nO, {
- headline: /* @__PURE__ */ (0, C.jsx)(tO, {
+ children: /* @__PURE__ */ (0, w.jsx)(rO, {
+ headline: /* @__PURE__ */ (0, w.jsx)(nO, {
term: "观看",
figure: i.played.toLocaleString(),
unit: "个作品有播放记录"
}),
- children: /* @__PURE__ */ (0, C.jsxs)("div", {
+ children: /* @__PURE__ */ (0, w.jsxs)("div", {
className: "inline-grid w-full gap-3 sm:grid-cols-2",
children: [
- /* @__PURE__ */ (0, C.jsx)($D, {
+ /* @__PURE__ */ (0, w.jsx)(eO, {
term: "馆藏观看",
value: i.library_played
}),
- /* @__PURE__ */ (0, C.jsx)($D, {
+ /* @__PURE__ */ (0, w.jsx)(eO, {
term: "在线直接观看",
value: i.online_played
}),
- /* @__PURE__ */ (0, C.jsx)($D, {
+ /* @__PURE__ */ (0, w.jsx)(eO, {
term: "高潮计数",
value: i.o_total
}),
- /* @__PURE__ */ (0, C.jsx)($D, {
+ /* @__PURE__ */ (0, w.jsx)(eO, {
term: "快进扫过",
value: i.skimmed
}),
- /* @__PURE__ */ (0, C.jsx)($D, {
+ /* @__PURE__ */ (0, w.jsx)(eO, {
term: "明确不喜欢",
value: i.dislike
}),
- /* @__PURE__ */ (0, C.jsx)($D, {
+ /* @__PURE__ */ (0, w.jsx)(eO, {
term: "看过了",
value: i.seen
}),
- /* @__PURE__ */ (0, C.jsx)($D, {
+ /* @__PURE__ */ (0, w.jsx)(eO, {
term: "回收站",
value: i.trash
})
@@ -33157,26 +33166,26 @@ function dO(e) {
})
})
}),
- /* @__PURE__ */ (0, C.jsx)(Fy, {
+ /* @__PURE__ */ (0, w.jsx)(Iy, {
id: "coverage",
- children: /* @__PURE__ */ (0, C.jsx)(nO, {
- headline: /* @__PURE__ */ (0, C.jsx)(tO, {
+ children: /* @__PURE__ */ (0, w.jsx)(rO, {
+ headline: /* @__PURE__ */ (0, w.jsx)(nO, {
term: "内容标签覆盖",
figure: `${c}%`,
unit: `${r.tag_cov.toLocaleString()} / ${r.attribution.videos.toLocaleString()}`
}),
- children: /* @__PURE__ */ (0, C.jsx)(iO, { attribution: r.attribution })
+ children: /* @__PURE__ */ (0, w.jsx)(aO, { attribution: r.attribution })
})
}),
- /* @__PURE__ */ (0, C.jsx)(Fy, {
+ /* @__PURE__ */ (0, w.jsx)(Iy, {
id: "storage",
- children: /* @__PURE__ */ (0, C.jsx)(nO, {
- headline: /* @__PURE__ */ (0, C.jsx)(tO, {
+ children: /* @__PURE__ */ (0, w.jsx)(rO, {
+ headline: /* @__PURE__ */ (0, w.jsx)(nO, {
term: "使用空间",
figure: String(a.measured),
unit: "个卷已取得容量"
}),
- children: /* @__PURE__ */ (0, C.jsx)(oO, {
+ children: /* @__PURE__ */ (0, w.jsx)(sO, {
volumes: r.storage_volumes,
...e
})
@@ -33184,50 +33193,50 @@ function dO(e) {
})
]
}),
- /* @__PURE__ */ (0, C.jsxs)(Ay, {
- className: `${ih({ padding: "none" })} flex flex-col`,
+ /* @__PURE__ */ (0, w.jsxs)(jy, {
+ className: `${oh({ padding: "none" })} flex flex-col`,
children: [
- /* @__PURE__ */ (0, C.jsx)("div", {
+ /* @__PURE__ */ (0, w.jsx)("div", {
className: "px-4 pt-3",
- children: /* @__PURE__ */ (0, C.jsxs)(My, {
+ children: /* @__PURE__ */ (0, w.jsxs)(Ny, {
"aria-label": "统计维度",
- className: Px,
+ className: Fx,
children: [
- /* @__PURE__ */ (0, C.jsx)(Py, {
+ /* @__PURE__ */ (0, w.jsx)(Fy, {
id: "tags",
- className: Fx,
+ className: Ix,
children: "内容标签"
}),
- /* @__PURE__ */ (0, C.jsx)(Py, {
+ /* @__PURE__ */ (0, w.jsx)(Fy, {
id: "recent",
- className: Fx,
+ className: Ix,
children: "最近看过"
}),
- /* @__PURE__ */ (0, C.jsx)(Py, {
+ /* @__PURE__ */ (0, w.jsx)(Fy, {
id: "sources",
- className: Fx,
+ className: Ix,
children: "标签来源"
})
]
})
}),
- /* @__PURE__ */ (0, C.jsx)(Fy, {
+ /* @__PURE__ */ (0, w.jsx)(Iy, {
id: "tags",
className: "px-4 pt-3.5 pb-4",
- children: /* @__PURE__ */ (0, C.jsx)(sO, {
+ children: /* @__PURE__ */ (0, w.jsx)(cO, {
tags: r.top_tags,
...e
})
}),
- /* @__PURE__ */ (0, C.jsx)(Fy, {
+ /* @__PURE__ */ (0, w.jsx)(Iy, {
id: "recent",
className: "px-4 pt-3.5 pb-4",
- children: /* @__PURE__ */ (0, C.jsx)(cO, { rows: r.recent })
+ children: /* @__PURE__ */ (0, w.jsx)(lO, { rows: r.recent })
}),
- /* @__PURE__ */ (0, C.jsx)(Fy, {
+ /* @__PURE__ */ (0, w.jsx)(Iy, {
id: "sources",
className: "px-4 pt-3.5 pb-4",
- children: /* @__PURE__ */ (0, C.jsx)(lO, {
+ children: /* @__PURE__ */ (0, w.jsx)(uO, {
sources: r.tag_source,
videos: r.attribution.videos
})
@@ -33238,7 +33247,7 @@ function dO(e) {
}
//#endregion
//#region node_modules/d3-array/src/max.js
-function fO(e, t) {
+function pO(e, t) {
let n;
if (t === void 0) for (let t of e) t != null && (n < t || n === void 0 && t >= t) && (n = t);
else {
@@ -33249,7 +33258,7 @@ function fO(e, t) {
}
//#endregion
//#region node_modules/d3-array/src/min.js
-function pO(e, t) {
+function mO(e, t) {
let n;
if (t === void 0) for (let t of e) t != null && (n > t || n === void 0 && t >= t) && (n = t);
else {
@@ -33260,7 +33269,7 @@ function pO(e, t) {
}
//#endregion
//#region node_modules/d3-array/src/sum.js
-function mO(e, t) {
+function hO(e, t) {
let n = 0;
if (t === void 0) for (let t of e) (t = +t) && (n += t);
else {
@@ -33271,66 +33280,66 @@ function mO(e, t) {
}
//#endregion
//#region node_modules/d3-sankey/src/align.js
-function hO(e, t) {
+function gO(e, t) {
return e.sourceLinks.length ? e.depth : t - 1;
}
//#endregion
//#region node_modules/d3-sankey/src/constant.js
-function gO(e) {
+function _O(e) {
return function() {
return e;
};
}
//#endregion
//#region node_modules/d3-sankey/src/sankey.js
-function _O(e, t) {
- return yO(e.source, t.source) || e.index - t.index;
-}
function vO(e, t) {
- return yO(e.target, t.target) || e.index - t.index;
+ return bO(e.source, t.source) || e.index - t.index;
}
function yO(e, t) {
+ return bO(e.target, t.target) || e.index - t.index;
+}
+function bO(e, t) {
return e.y0 - t.y0;
}
-function bO(e) {
+function xO(e) {
return e.value;
}
-function xO(e) {
+function SO(e) {
return e.index;
}
-function SO(e) {
+function CO(e) {
return e.nodes;
}
-function CO(e) {
+function wO(e) {
return e.links;
}
-function wO(e, t) {
+function TO(e, t) {
let n = e.get(t);
if (!n) throw Error("missing: " + t);
return n;
}
-function TO({ nodes: e }) {
+function EO({ nodes: e }) {
for (let t of e) {
let e = t.y0, n = e;
for (let n of t.sourceLinks) n.y0 = e + n.width / 2, e += n.width;
for (let e of t.targetLinks) e.y1 = n + e.width / 2, n += e.width;
}
}
-function EO() {
- let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = xO, c = hO, l, u, d = SO, f = CO, p = 6;
+function DO() {
+ let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = SO, c = gO, l, u, d = CO, f = wO, p = 6;
function m() {
let e = {
nodes: d.apply(null, arguments),
links: f.apply(null, arguments)
};
- return h(e), g(e), _(e), v(e), x(e), TO(e), e;
+ return h(e), g(e), _(e), v(e), x(e), EO(e), e;
}
m.update = function(e) {
- return TO(e), e;
+ return EO(e), e;
}, m.nodeId = function(e) {
- return arguments.length ? (s = typeof e == "function" ? e : gO(e), m) : s;
+ return arguments.length ? (s = typeof e == "function" ? e : _O(e), m) : s;
}, m.nodeAlign = function(e) {
- return arguments.length ? (c = typeof e == "function" ? e : gO(e), m) : c;
+ return arguments.length ? (c = typeof e == "function" ? e : _O(e), m) : c;
}, m.nodeSort = function(e) {
return arguments.length ? (l = e, m) : l;
}, m.nodeWidth = function(e) {
@@ -33338,9 +33347,9 @@ function EO() {
}, m.nodePadding = function(e) {
return arguments.length ? (a = o = +e, m) : a;
}, m.nodes = function(e) {
- return arguments.length ? (d = typeof e == "function" ? e : gO(e), m) : d;
+ return arguments.length ? (d = typeof e == "function" ? e : _O(e), m) : d;
}, m.links = function(e) {
- return arguments.length ? (f = typeof e == "function" ? e : gO(e), m) : f;
+ return arguments.length ? (f = typeof e == "function" ? e : _O(e), m) : f;
}, m.linkSort = function(e) {
return arguments.length ? (u = e, m) : u;
}, m.size = function(i) {
@@ -33356,12 +33365,12 @@ function EO() {
for (let [e, r] of t.entries()) {
r.index = e;
let { source: t, target: i } = r;
- typeof t != "object" && (t = r.source = wO(n, t)), typeof i != "object" && (i = r.target = wO(n, i)), t.sourceLinks.push(r), i.targetLinks.push(r);
+ typeof t != "object" && (t = r.source = TO(n, t)), typeof i != "object" && (i = r.target = TO(n, i)), t.sourceLinks.push(r), i.targetLinks.push(r);
}
if (u != null) for (let { sourceLinks: t, targetLinks: n } of e) t.sort(u), n.sort(u);
}
function g({ nodes: e }) {
- for (let t of e) t.value = t.fixedValue === void 0 ? Math.max(mO(t.sourceLinks, bO), mO(t.targetLinks, bO)) : t.fixedValue;
+ for (let t of e) t.value = t.fixedValue === void 0 ? Math.max(hO(t.sourceLinks, xO), hO(t.targetLinks, xO)) : t.fixedValue;
}
function _({ nodes: e }) {
let t = e.length, n = new Set(e), r = /* @__PURE__ */ new Set(), i = 0;
@@ -33386,7 +33395,7 @@ function EO() {
}
}
function y({ nodes: t }) {
- let r = fO(t, (e) => e.depth) + 1, a = (n - e - i) / (r - 1), o = Array(r);
+ let r = pO(t, (e) => e.depth) + 1, a = (n - e - i) / (r - 1), o = Array(r);
for (let n of t) {
let t = Math.max(0, Math.min(r - 1, Math.floor(c.call(null, n, r))));
n.layer = t, n.x0 = e + t * a, n.x1 = n.x0 + i, o[t] ? o[t].push(n) : o[t] = [n];
@@ -33395,7 +33404,7 @@ function EO() {
return o;
}
function b(e) {
- let n = pO(e, (e) => (r - t - (e.length - 1) * o) / mO(e, bO));
+ let n = mO(e, (e) => (r - t - (e.length - 1) * o) / hO(e, xO));
for (let i of e) {
let e = t;
for (let t of i) {
@@ -33412,7 +33421,7 @@ function EO() {
}
function x(e) {
let n = y(e);
- o = Math.min(a, (r - t) / (fO(n, (e) => e.length) - 1)), b(n);
+ o = Math.min(a, (r - t) / (pO(n, (e) => e.length) - 1)), b(n);
for (let e = 0; e < p; ++e) {
let t = .99 ** e, r = Math.max(1 - t, (e + 1) / p);
C(n, t, r), S(n, t, r);
@@ -33431,7 +33440,7 @@ function EO() {
let i = (n / r - e.y0) * t;
e.y0 += i, e.y1 += i, D(e);
}
- l === void 0 && i.sort(yO), w(i, n);
+ l === void 0 && i.sort(bO), w(i, n);
}
}
function C(e, t, n) {
@@ -33447,7 +33456,7 @@ function EO() {
let i = (n / r - e.y0) * t;
e.y0 += i, e.y1 += i, D(e);
}
- l === void 0 && i.sort(yO), w(i, n);
+ l === void 0 && i.sort(bO), w(i, n);
}
}
function w(e, n) {
@@ -33468,12 +33477,12 @@ function EO() {
}
function D({ sourceLinks: e, targetLinks: t }) {
if (u === void 0) {
- for (let { source: { sourceLinks: e } } of t) e.sort(vO);
- for (let { target: { targetLinks: t } } of e) t.sort(_O);
+ for (let { source: { sourceLinks: e } } of t) e.sort(yO);
+ for (let { target: { targetLinks: t } } of e) t.sort(vO);
}
}
function O(e) {
- if (u === void 0) for (let { sourceLinks: t, targetLinks: n } of e) t.sort(vO), n.sort(_O);
+ if (u === void 0) for (let { sourceLinks: t, targetLinks: n } of e) t.sort(yO), n.sort(vO);
}
function k(e, t) {
let n = e.y0 - (e.sourceLinks.length - 1) * o / 2;
@@ -33503,15 +33512,15 @@ function EO() {
}
//#endregion
//#region node_modules/d3-path/src/path.js
-var DO = Math.PI, OO = 2 * DO, kO = 1e-6, AO = OO - kO;
-function jO() {
+var OO = Math.PI, kO = 2 * OO, AO = 1e-6, jO = kO - AO;
+function MO() {
this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "";
}
-function MO() {
- return new jO();
+function NO() {
+ return new MO();
}
-jO.prototype = MO.prototype = {
- constructor: jO,
+MO.prototype = NO.prototype = {
+ constructor: MO,
moveTo: function(e, t) {
this._ += "M" + (this._x0 = this._x1 = +e) + "," + (this._y0 = this._y1 = +t);
},
@@ -33532,11 +33541,11 @@ jO.prototype = MO.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 > kO) {
- if (!(Math.abs(u * s - c * l) > kO) || !i) this._ += "L" + (this._x1 = e) + "," + (this._y1 = t);
+ else if (d > AO) {
+ if (!(Math.abs(u * s - c * l) > AO) || !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((DO - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
- Math.abs(y - 1) > kO && (this._ += "L" + (e + y * l) + "," + (t + y * u)), this._ += "A" + i + "," + i + ",0,0," + +(u * f > l * p) + "," + (this._x1 = e + b * s) + "," + (this._y1 = t + b * c);
+ var f = n - a, p = r - o, m = s * s + c * c, h = f * f + p * p, g = Math.sqrt(m), _ = Math.sqrt(d), v = i * Math.tan((OO - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
+ Math.abs(y - 1) > AO && (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);
}
}
},
@@ -33544,7 +33553,7 @@ jO.prototype = MO.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) > kO || Math.abs(this._y1 - l) > kO) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % OO + OO), d > AO ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > kO && (this._ += "A" + n + "," + n + ",0," + +(d >= DO) + "," + 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) > AO || Math.abs(this._y1 - l) > AO) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % kO + kO), d > jO ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > AO && (this._ += "A" + n + "," + n + ",0," + +(d >= OO) + "," + 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";
@@ -33555,90 +33564,90 @@ jO.prototype = MO.prototype = {
};
//#endregion
//#region node_modules/d3-shape/src/constant.js
-function NO(e) {
+function PO(e) {
return function() {
return e;
};
}
//#endregion
//#region node_modules/d3-shape/src/point.js
-function PO(e) {
+function FO(e) {
return e[0];
}
-function FO(e) {
+function IO(e) {
return e[1];
}
//#endregion
//#region node_modules/d3-shape/src/array.js
-var IO = Array.prototype.slice;
+var LO = Array.prototype.slice;
//#endregion
//#region node_modules/d3-shape/src/link/index.js
-function LO(e) {
+function RO(e) {
return e.source;
}
-function RO(e) {
+function zO(e) {
return e.target;
}
-function zO(e) {
- var t = LO, n = RO, r = PO, i = FO, a = null;
+function BO(e) {
+ var t = RO, n = zO, r = FO, i = IO, a = null;
function o() {
- var o, s = IO.call(arguments), c = t.apply(this, s), l = n.apply(this, s);
- if (a ||= o = MO(), e(a, +r.apply(this, (s[0] = c, s)), +i.apply(this, s), +r.apply(this, (s[0] = l, s)), +i.apply(this, s)), o) return a = null, o + "" || null;
+ var o, s = LO.call(arguments), c = t.apply(this, s), l = n.apply(this, s);
+ if (a ||= o = NO(), e(a, +r.apply(this, (s[0] = c, s)), +i.apply(this, s), +r.apply(this, (s[0] = l, s)), +i.apply(this, s)), o) return a = null, o + "" || null;
}
return o.source = function(e) {
return arguments.length ? (t = e, o) : t;
}, o.target = function(e) {
return arguments.length ? (n = e, o) : n;
}, o.x = function(e) {
- return arguments.length ? (r = typeof e == "function" ? e : NO(+e), o) : r;
+ return arguments.length ? (r = typeof e == "function" ? e : PO(+e), o) : r;
}, o.y = function(e) {
- return arguments.length ? (i = typeof e == "function" ? e : NO(+e), o) : i;
+ return arguments.length ? (i = typeof e == "function" ? e : PO(+e), o) : i;
}, o.context = function(e) {
return arguments.length ? (a = e ?? null, o) : a;
}, o;
}
-function BO(e, t, n, r, i) {
+function VO(e, t, n, r, i) {
e.moveTo(t, n), e.bezierCurveTo(t = (t + r) / 2, n, t, i, r, i);
}
-function VO() {
- return zO(BO);
+function HO() {
+ return BO(VO);
}
//#endregion
//#region node_modules/d3-sankey/src/sankeyLinkHorizontal.js
-function HO(e) {
+function UO(e) {
return [e.source.x1, e.y0];
}
-function UO(e) {
+function WO(e) {
return [e.target.x0, e.y1];
}
-function WO() {
- return VO().source(HO).target(UO);
+function GO() {
+ return HO().source(UO).target(WO);
}
//#endregion
//#region src/react/taste/taste.ts
-var GO = "/api/taste", KO = "/api/taste/refresh", qO = "/api/taste/import", JO = "/api/taste/source", YO = (e) => ["taste", e], XO = ["taste", "refresh"], ZO = [
+var KO = "/api/taste", qO = "/api/taste/refresh", JO = "/api/taste/import", YO = "/api/taste/source", XO = (e) => ["taste", e], ZO = ["taste", "refresh"], QO = [
["7d", "最近 7 天"],
["30d", "最近 30 天"],
["90d", "最近 90 天"],
["365d", "最近一年"],
["all", "全部时间"]
-], QO = (e, t) => Ym(`${GO}?window=${e}`, t), $O = (e) => Ym(KO, e);
-async function ek(e, t) {
- await dh.fetchQuery({
- queryKey: YO(e),
- queryFn: () => QO(e, t)
+], $O = (e, t) => Zm(`${KO}?window=${e}`, t), ek = (e) => Zm(qO, e);
+async function tk(e, t) {
+ await fh.fetchQuery({
+ queryKey: XO(e),
+ queryFn: () => $O(e, t)
});
}
-var tk = (e) => Xm(KO, {
+var nk = (e) => Qm(qO, {
window: e,
background: !0
-}), nk = (e, t) => Xm(JO, {
+}), rk = (e, t) => Qm(YO, {
operation: "remove",
source_key: e,
window: t
});
-async function rk(e) {
- let t = await fetch(qO, {
+async function ik(e) {
+ let t = await fetch(JO, {
method: "POST",
credentials: "same-origin",
headers: {
@@ -33652,38 +33661,38 @@ async function rk(e) {
} catch {}
if (!t.ok) {
let e = n?.error;
- throw new qm(e || `导入失败(${t.status})`, t.status, n);
+ throw new Ym(e || `导入失败(${t.status})`, t.status, n);
}
return n;
}
-var ik = 2e3, ak = 1e4, ok = (e) => e?.status === "running" ? ik : ak, sk = (e) => e ? new Date(e).toLocaleDateString("zh-CN") : "—", ck = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, lk = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);
-function uk(e) {
+var ak = 2e3, ok = 1e4, sk = (e) => e?.status === "running" ? ak : ok, ck = (e) => e ? new Date(e).toLocaleDateString("zh-CN") : "—", lk = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, uk = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);
+function dk(e) {
if (e.web_visits == null) return Number(e.score || e.visits || 0).toLocaleString();
let t = [];
return e.web_visits && t.push(`浏览 ${e.web_visits}`), e.peach_items && t.push(`Peach ${e.peach_items}`), t.join(" · ");
}
-function dk(e) {
- let t = e.map(lk), n = Math.max(1, ...t);
+function fk(e) {
+ let t = e.map(uk), n = Math.max(1, ...t);
return t.map((e) => Math.max(0, Math.min(100, e / n * 100)));
}
-var fk = {
+var pk = {
x: 160,
y: 140
-}, pk = [
+}, mk = [
25,
50,
75,
100
-], mk = (e, t, n) => {
+], hk = (e, t, n) => {
let r = e / t * Math.PI * 2 - Math.PI / 2;
- return [fk.x + Math.cos(r) * n, fk.y + Math.sin(r) * n];
+ return [pk.x + Math.cos(r) * n, pk.y + Math.sin(r) * n];
};
-function hk(e) {
+function gk(e) {
let t = e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).slice().sort((e, t) => Number(t.score) - Number(e.score)).slice(0, 6);
if (t.length < 3) return [];
let n = Math.max(...t.map((e) => Number(e.score)));
return t.map((e, r) => {
- let [i, a] = mk(r, t.length, Number(e.score) / n * 100), [o, s] = mk(r, t.length, 116);
+ let [i, a] = hk(r, t.length, Number(e.score) / n * 100), [o, s] = hk(r, t.length, 116);
return {
name: e.name,
x: i,
@@ -33693,7 +33702,7 @@ function hk(e) {
};
});
}
-var gk = (e, t) => Array.from({ length: t }, (n, r) => mk(r, t, e).map((e) => e.toFixed(2)).join(",")).join(" "), _k = (e) => e.map((e) => `${e.x.toFixed(2)},${e.y.toFixed(2)}`).join(" "), vk = [
+var _k = (e, t) => Array.from({ length: t }, (n, r) => hk(r, t, e).map((e) => e.toFixed(2)).join(",")).join(" "), vk = (e) => e.map((e) => `${e.x.toFixed(2)},${e.y.toFixed(2)}`).join(" "), yk = [
"周一",
"周二",
"周三",
@@ -33701,8 +33710,8 @@ var gk = (e, t) => Array.from({ length: t }, (n, r) => mk(r, t, e).map((e) => e.
"周五",
"周六",
"周日"
-], yk = (e, t) => e ? Math.max(.12, e / t) : 0;
-function bk(e) {
+], bk = (e, t) => e ? Math.max(.12, e / t) : 0;
+function xk(e) {
let t = Array.from({ length: 7 }, () => Array(24).fill(0));
for (let n of e?.hours || []) {
let { weekday: e, hour: r, count: i } = n;
@@ -33712,14 +33721,14 @@ function bk(e) {
return {
cells: t.flatMap((e, t) => e.map((e, n) => ({
key: `${t}-${n}`,
- label: `${vk[t]} ${n}:00`,
+ label: `${yk[t]} ${n}:00`,
count: e,
- share: yk(e, r)
+ share: bk(e, r)
}))),
total: n.reduce((e, t) => e + t, 0)
};
}
-function xk(e) {
+function Sk(e) {
let t = (e?.days || []).filter((e) => /^\d{4}-\d{2}-\d{2}$/.test(e.date) && Number.isFinite(e.count) && e.count >= 0).slice().sort((e, t) => e.date.localeCompare(t.date)), n = {
cells: [],
total: 0,
@@ -33737,7 +33746,7 @@ function xk(e) {
key: r,
label: r,
count: s,
- share: yk(s, o)
+ share: bk(s, o)
};
});
return {
@@ -33747,17 +33756,17 @@ function xk(e) {
end: t.at(-1).date
};
}
-var Sk = {
+var Ck = {
width: 720,
height: 435
-}, Ck = {
+}, wk = {
source: 145,
target: 545
};
-function wk(e = []) {
+function Tk(e = []) {
let t = e.filter((e) => e.source && e.target && Number.isFinite(e.value) && e.value > 0);
if (!t.length) return null;
- let n = [...new Set(t.map((e) => e.source))], r = [...new Set(t.map((e) => e.target))], i = EO().nodeId((e) => e.id).nodeWidth(10).nodePadding(22).extent([[155, 16], [535, 404]])({
+ let n = [...new Set(t.map((e) => e.source))], r = [...new Set(t.map((e) => e.target))], i = DO().nodeId((e) => e.id).nodeWidth(10).nodePadding(22).extent([[155, 16], [535, 404]])({
nodes: [...n.map((e) => ({
id: `source:${e}`,
name: e,
@@ -33772,7 +33781,7 @@ function wk(e = []) {
target: `target:${e.target}`,
value: e.value
}))
- }), a = t.reduce((e, t) => e + t.value, 0), o = WO();
+ }), a = t.reduce((e, t) => e + t.value, 0), o = GO();
return {
nodes: i.nodes.map((e) => ({
id: e.id,
@@ -33802,64 +33811,64 @@ function wk(e = []) {
total: a
};
}
-var Tk = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, Ek = [
+var Ek = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, Dk = [
"stroke-chart-1",
"stroke-chart-2",
"stroke-chart-3",
"stroke-chart-4",
"stroke-chart-5",
"stroke-chart-6"
-], Dk = [
+], Ok = [
"fill-chart-1",
"fill-chart-2",
"fill-chart-3",
"fill-chart-4",
"fill-chart-5",
"fill-chart-6"
-], Ok = `${ih({ radius: "chart" })} flex flex-col gap-4 max-sm:p-4`;
-function kk({ title: e, figure: t, note: n }) {
- return /* @__PURE__ */ (0, C.jsxs)("header", {
+], kk = `${oh({ radius: "chart" })} flex flex-col gap-4 max-sm:p-4`;
+function Ak({ title: e, figure: t, note: n }) {
+ return /* @__PURE__ */ (0, w.jsxs)("header", {
className: "flex flex-wrap items-end justify-between gap-x-4 gap-y-1",
- children: [/* @__PURE__ */ (0, C.jsxs)("span", {
+ children: [/* @__PURE__ */ (0, w.jsxs)("span", {
className: "flex min-w-0 flex-col gap-1",
- children: [/* @__PURE__ */ (0, C.jsx)("h3", {
+ children: [/* @__PURE__ */ (0, w.jsx)("h3", {
className: "text-title-2-medium text-text-primary",
children: e
- }), /* @__PURE__ */ (0, C.jsx)("b", {
+ }), /* @__PURE__ */ (0, w.jsx)("b", {
className: "text-display-4-medium tabular-nums text-text-primary",
children: t
})]
- }), /* @__PURE__ */ (0, C.jsx)("small", {
+ }), /* @__PURE__ */ (0, w.jsx)("small", {
className: "min-w-0 text-caption-1-regular break-words text-text-secondary",
children: n
})]
});
}
-function Ak({ rows: e, label: t }) {
- let n = hk(e);
+function jk({ rows: e, label: t }) {
+ let n = gk(e);
if (!n.length) return null;
let r = n.length;
- return /* @__PURE__ */ (0, C.jsxs)("svg", {
+ return /* @__PURE__ */ (0, w.jsxs)("svg", {
viewBox: "0 0 320 280",
role: "img",
"aria-label": t,
className: "block w-full overflow-visible",
children: [
- /* @__PURE__ */ (0, C.jsx)("title", { children: n.map((e) => e.name).join(",") }),
- pk.map((e) => /* @__PURE__ */ (0, C.jsx)("polygon", {
- points: gk(e, r),
+ /* @__PURE__ */ (0, w.jsx)("title", { children: n.map((e) => e.name).join(",") }),
+ mk.map((e) => /* @__PURE__ */ (0, w.jsx)("polygon", {
+ points: _k(e, r),
fill: "none",
className: "stroke-separator-border",
strokeWidth: 1
}, e)),
- /* @__PURE__ */ (0, C.jsx)("polygon", {
- points: _k(n),
+ /* @__PURE__ */ (0, w.jsx)("polygon", {
+ points: vk(n),
strokeWidth: 2,
strokeLinejoin: "round",
fillOpacity: .18,
className: "fill-chart-4 stroke-chart-4"
}),
- n.map((e) => /* @__PURE__ */ (0, C.jsx)("text", {
+ n.map((e) => /* @__PURE__ */ (0, w.jsx)("text", {
x: e.labelX,
y: e.labelY,
dominantBaseline: "middle",
@@ -33870,34 +33879,34 @@ function Ak({ rows: e, label: t }) {
]
});
}
-function jk({ rows: e, label: t }) {
+function Mk({ rows: e, label: t }) {
let n = e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).slice().sort((e, t) => Number(t.score) - Number(e.score)).slice(0, 8);
if (!n.length) return null;
- let r = dk(n);
- return /* @__PURE__ */ (0, C.jsx)("ol", {
+ let r = fk(n);
+ return /* @__PURE__ */ (0, w.jsx)("ol", {
"aria-label": t,
className: "flex flex-col gap-2",
- children: n.map((e, t) => /* @__PURE__ */ (0, C.jsxs)("li", {
+ children: n.map((e, t) => /* @__PURE__ */ (0, w.jsxs)("li", {
className: "flex min-w-0 flex-col gap-1.5",
- children: [/* @__PURE__ */ (0, C.jsxs)("p", {
+ children: [/* @__PURE__ */ (0, w.jsxs)("p", {
className: "flex items-baseline justify-between gap-3 text-body-2-regular text-text-primary",
- children: [/* @__PURE__ */ (0, C.jsx)("span", {
+ children: [/* @__PURE__ */ (0, w.jsx)("span", {
className: "min-w-0 break-words",
children: e.name
- }), /* @__PURE__ */ (0, C.jsx)("b", {
+ }), /* @__PURE__ */ (0, w.jsx)("b", {
className: "tabular-nums",
children: Number(e.score).toLocaleString()
})]
- }), /* @__PURE__ */ (0, C.jsxs)("svg", {
+ }), /* @__PURE__ */ (0, w.jsxs)("svg", {
viewBox: "0 0 100 1",
preserveAspectRatio: "none",
"aria-hidden": !0,
className: "h-1.5 w-full overflow-hidden rounded-full",
- children: [/* @__PURE__ */ (0, C.jsx)("rect", {
+ children: [/* @__PURE__ */ (0, w.jsx)("rect", {
width: 100,
height: 1,
className: "fill-chart-track"
- }), /* @__PURE__ */ (0, C.jsx)("rect", {
+ }), /* @__PURE__ */ (0, w.jsx)("rect", {
width: r[t],
height: 1,
className: "fill-chart-4"
@@ -33906,19 +33915,19 @@ function jk({ rows: e, label: t }) {
}, e.name))
});
}
-function Mk({ title: e, unit: t, cells: n, total: r, columns: i, rows: a, axis: o, footer: s }) {
- let [c, l] = (0, S.useState)(null), u = o ? 30 : 0, d = o ? 18 : 0;
- return /* @__PURE__ */ (0, C.jsxs)("section", {
- className: Ok,
+function Nk({ title: e, unit: t, cells: n, total: r, columns: i, rows: a, axis: o, footer: s }) {
+ let [c, l] = (0, C.useState)(null), u = o ? 30 : 0, d = o ? 18 : 0;
+ return /* @__PURE__ */ (0, w.jsxs)("section", {
+ className: kk,
children: [
- /* @__PURE__ */ (0, C.jsx)(kk, {
+ /* @__PURE__ */ (0, w.jsx)(Ak, {
title: e,
figure: (c ? c.count : r).toLocaleString(),
note: c ? c.label : t
}),
- /* @__PURE__ */ (0, C.jsx)("div", {
+ /* @__PURE__ */ (0, w.jsx)("div", {
className: "min-w-0 overflow-x-auto",
- children: /* @__PURE__ */ (0, C.jsxs)("svg", {
+ children: /* @__PURE__ */ (0, w.jsxs)("svg", {
role: "img",
"aria-label": e,
onPointerLeave: () => l(null),
@@ -33926,7 +33935,7 @@ function Mk({ title: e, unit: t, cells: n, total: r, columns: i, rows: a, axis:
className: "block h-auto min-w-80 w-full",
children: [o, n.map((e, t) => {
let n = t % i, r = Math.floor(t / i);
- return /* @__PURE__ */ (0, C.jsx)("rect", {
+ return /* @__PURE__ */ (0, w.jsx)("rect", {
tabIndex: 0,
role: "img",
"aria-label": `${e.label},${e.count} 次访问`,
@@ -33944,83 +33953,83 @@ function Mk({ title: e, unit: t, cells: n, total: r, columns: i, rows: a, axis:
})]
})
}),
- /* @__PURE__ */ (0, C.jsx)("footer", {
+ /* @__PURE__ */ (0, w.jsx)("footer", {
className: "flex flex-wrap justify-between gap-3 text-caption-1-regular text-text-secondary",
children: s
})
]
});
}
-var Nk = "口味网站访问";
-function Pk({ activity: e }) {
- let t = bk(e), n = xk(e);
- if (!n.cells.length) return /* @__PURE__ */ (0, C.jsxs)("section", {
- className: Ok,
- children: [/* @__PURE__ */ (0, C.jsx)("h3", {
+var Pk = "口味网站访问";
+function Fk({ activity: e }) {
+ let t = xk(e), n = Sk(e);
+ if (!n.cells.length) return /* @__PURE__ */ (0, w.jsxs)("section", {
+ className: kk,
+ children: [/* @__PURE__ */ (0, w.jsx)("h3", {
className: "text-title-2-medium text-text-primary",
children: "浏览活跃时间"
- }), /* @__PURE__ */ (0, C.jsx)("p", {
+ }), /* @__PURE__ */ (0, w.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: "还没有可用于分析的口味网站访问记录。"
})]
});
- let r = /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [vk.map((e, t) => /* @__PURE__ */ (0, C.jsx)("text", {
+ let r = /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [yk.map((e, t) => /* @__PURE__ */ (0, w.jsx)("text", {
x: 0,
y: 18 + t * 17 + 7,
dominantBaseline: "middle",
className: "fill-text-secondary text-caption-1-regular",
children: e
- }, e)), Array.from({ length: 24 }, (e, t) => t % 2 ? null : /* @__PURE__ */ (0, C.jsx)("text", {
+ }, e)), Array.from({ length: 24 }, (e, t) => t % 2 ? null : /* @__PURE__ */ (0, w.jsx)("text", {
x: 30 + t * 17,
y: 8,
dominantBaseline: "middle",
className: "fill-text-secondary text-caption-1-regular",
children: t
}, t))] });
- return /* @__PURE__ */ (0, C.jsxs)("div", {
+ return /* @__PURE__ */ (0, w.jsxs)("div", {
className: "inline-grid w-full gap-5 lg:grid-cols-2",
- children: [/* @__PURE__ */ (0, C.jsx)(Mk, {
+ children: [/* @__PURE__ */ (0, w.jsx)(Nk, {
title: "浏览活跃时间",
- unit: Nk,
+ unit: Pk,
cells: t.cells,
total: t.total,
columns: 24,
rows: 7,
axis: r,
- footer: /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)("span", { children: "星期 × 小时" }), /* @__PURE__ */ (0, C.jsx)("span", { children: e?.timezone || "UTC+08:00" })] })
- }), /* @__PURE__ */ (0, C.jsx)(Mk, {
+ footer: /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [/* @__PURE__ */ (0, w.jsx)("span", { children: "星期 × 小时" }), /* @__PURE__ */ (0, w.jsx)("span", { children: e?.timezone || "UTC+08:00" })] })
+ }), /* @__PURE__ */ (0, w.jsx)(Nk, {
title: "每日活跃",
- unit: Nk,
+ unit: Pk,
cells: n.cells,
total: n.total,
columns: 13,
rows: 7,
- footer: /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)("span", { children: n.start }), /* @__PURE__ */ (0, C.jsx)("span", { children: n.end })] })
+ footer: /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [/* @__PURE__ */ (0, w.jsx)("span", { children: n.start }), /* @__PURE__ */ (0, w.jsx)("span", { children: n.end })] })
})]
});
}
-function Fk({ flows: e }) {
- let [t, n] = (0, S.useState)(null), r = wk(e);
+function Ik({ flows: e }) {
+ let [t, n] = (0, C.useState)(null), r = Tk(e);
if (!r) return null;
let i = t?.node ?? null, a = (e, n) => t ? i === null ? t.label === n : e.source === i || e.target === i : !0;
- return /* @__PURE__ */ (0, C.jsxs)("section", {
- className: Ok,
+ return /* @__PURE__ */ (0, w.jsxs)("section", {
+ className: kk,
children: [
- /* @__PURE__ */ (0, C.jsx)(kk, {
+ /* @__PURE__ */ (0, w.jsx)(Ak, {
title: "创作者线索来源",
figure: (t ? t.value : r.total).toLocaleString(),
note: t ? t.label : "条线索"
}),
- /* @__PURE__ */ (0, C.jsx)("div", {
+ /* @__PURE__ */ (0, w.jsx)("div", {
className: "min-w-0 overflow-x-auto",
- children: /* @__PURE__ */ (0, C.jsxs)("svg", {
- viewBox: `0 0 ${Sk.width} ${Sk.height}`,
+ children: /* @__PURE__ */ (0, w.jsxs)("svg", {
+ viewBox: `0 0 ${Ck.width} ${Ck.height}`,
fill: "none",
role: "img",
"aria-label": "来源网站与创作者线索",
className: "block h-auto max-h-130 min-w-160 w-full",
onPointerLeave: () => n(null),
- children: [/* @__PURE__ */ (0, C.jsx)("g", { children: r.links.map((e) => /* @__PURE__ */ (0, C.jsx)("path", {
+ children: [/* @__PURE__ */ (0, w.jsx)("g", { children: r.links.map((e) => /* @__PURE__ */ (0, w.jsx)("path", {
d: e.d,
strokeWidth: e.width,
tabIndex: 0,
@@ -34028,7 +34037,7 @@ function Fk({ flows: e }) {
"aria-label": `${e.label}:${e.value} 条线索`,
fillOpacity: 0,
strokeOpacity: a(e, e.label) ? .55 : .08,
- className: `outline-none transition-opacity ${Ek[e.color]}`,
+ className: `outline-none transition-opacity ${Dk[e.color]}`,
onPointerEnter: () => n({
value: e.value,
label: e.label,
@@ -34040,7 +34049,7 @@ function Fk({ flows: e }) {
node: null
}),
onBlur: () => n(null)
- }, e.key)) }), /* @__PURE__ */ (0, C.jsx)("g", { children: r.nodes.map((e) => /* @__PURE__ */ (0, C.jsxs)("g", {
+ }, e.key)) }), /* @__PURE__ */ (0, w.jsx)("g", { children: r.nodes.map((e) => /* @__PURE__ */ (0, w.jsxs)("g", {
tabIndex: 0,
role: "img",
"aria-label": `${e.name}:${e.value} 条线索`,
@@ -34056,21 +34065,21 @@ function Fk({ flows: e }) {
node: e.index
}),
onBlur: () => n(null),
- children: [/* @__PURE__ */ (0, C.jsx)("rect", {
+ children: [/* @__PURE__ */ (0, w.jsx)("rect", {
x: e.x,
y: e.y,
width: 10,
height: e.height,
rx: 5,
- className: e.side === "source" ? Dk[e.color] : "fill-text-secondary"
- }), /* @__PURE__ */ (0, C.jsxs)("text", {
- x: Ck[e.side],
+ className: e.side === "source" ? Ok[e.color] : "fill-text-secondary"
+ }), /* @__PURE__ */ (0, w.jsxs)("text", {
+ x: wk[e.side],
y: e.y + e.height / 2,
textAnchor: e.side === "source" ? "end" : "start",
dominantBaseline: "middle",
className: "fill-text-secondary text-caption-1-regular",
- children: [Tk(e.name), /* @__PURE__ */ (0, C.jsx)("tspan", {
- x: Ck[e.side],
+ children: [Ek(e.name), /* @__PURE__ */ (0, w.jsx)("tspan", {
+ x: wk[e.side],
dy: 15,
children: e.side === "source" ? e.value.toLocaleString() : `${e.share.toFixed(1)}%`
})]
@@ -34078,20 +34087,20 @@ function Fk({ flows: e }) {
}, e.id)) })]
})
}),
- /* @__PURE__ */ (0, C.jsxs)("footer", {
+ /* @__PURE__ */ (0, w.jsxs)("footer", {
className: "flex justify-between gap-3 text-caption-1-regular text-text-secondary",
- children: [/* @__PURE__ */ (0, C.jsx)("span", { children: "来源网站" }), /* @__PURE__ */ (0, C.jsx)("span", { children: "创作者 · 线索占比" })]
+ children: [/* @__PURE__ */ (0, w.jsx)("span", { children: "来源网站" }), /* @__PURE__ */ (0, w.jsx)("span", { children: "创作者 · 线索占比" })]
})
]
});
}
//#endregion
//#region src/react/taste/taste-page.tsx
-var Ik = 10, Lk = Um(qx, Jx, "text-body-2-medium"), Rk = `${ih()} flex flex-col gap-4`, zk = "rounded-xl bg-background-primary-default p-3", Bk = "读取运行 Peach 的这台电脑上的浏览记录", Vk = "导入或读取浏览记录后,这里会列出已采集设备。", Hk = "馆藏里暂时没有对得上浏览信号的标签。", Uk = "采集浏览记录后,这里会显示聚合后的口味证据。", Wk = "这些词在浏览记录中出现,但 Peach 观看记录还没有对应证据", Gk = "在运行 Peach 的电脑上使用浏览器:点上面的「读取浏览器历史」。", Kk = "记录在其他设备上:导出文件后,点上面的「导入历史文件」。多台设备的文件分别导入。", qk = "需要刷新时再次读取或导入;数据源可在页面底部移除。", Jk = "这个数据源将不再用于口味分析。原始导出文件保留。", Yk = "peach-taste-guide-dismissed";
-function Xk({ icon: e, term: t, figure: n, detail: r, accent: i }) {
- return /* @__PURE__ */ (0, C.jsx)("div", {
- className: Rx(),
- children: /* @__PURE__ */ (0, C.jsx)(Bx, {
+var Lk = 10, Rk = K(Jx, Yx, "text-body-2-medium"), zk = `${oh()} flex flex-col gap-4`, Bk = "rounded-xl bg-background-primary-default p-3", Vk = "读取运行 Peach 的这台电脑上的浏览记录", Hk = "导入或读取浏览记录后,这里会列出已采集设备。", Uk = "馆藏里暂时没有对得上浏览信号的标签。", Wk = "采集浏览记录后,这里会显示聚合后的口味证据。", Gk = "这些词在浏览记录中出现,但 Peach 观看记录还没有对应证据", Kk = "在运行 Peach 的电脑上使用浏览器:点上面的「读取浏览器历史」。", qk = "记录在其他设备上:导出文件后,点上面的「导入历史文件」。多台设备的文件分别导入。", Jk = "需要刷新时再次读取或导入;数据源可在页面底部移除。", Yk = "这个数据源将不再用于口味分析。原始导出文件保留。", Xk = "peach-taste-guide-dismissed";
+function Zk({ icon: e, term: t, figure: n, detail: r, accent: i }) {
+ return /* @__PURE__ */ (0, w.jsx)("div", {
+ className: zx(),
+ children: /* @__PURE__ */ (0, w.jsx)(Vx, {
label: t,
icon: e,
accent: i,
@@ -34100,10 +34109,10 @@ function Xk({ icon: e, term: t, figure: n, detail: r, accent: i }) {
})
});
}
-function Zk({ name: e, domain: t }) {
- return /* @__PURE__ */ (0, C.jsxs)("span", {
+function Qk({ name: e, domain: t }) {
+ return /* @__PURE__ */ (0, w.jsxs)("span", {
className: "relative inline-grid size-8 shrink-0 place-items-center overflow-hidden rounded-lg bg-background-tertiary-default text-caption-1-medium text-text-secondary",
- children: [e.slice(0, 1).toUpperCase(), /* @__PURE__ */ (0, C.jsx)("img", {
+ children: [e.slice(0, 1).toUpperCase(), /* @__PURE__ */ (0, w.jsx)("img", {
src: a({ domain: t }),
alt: "",
loading: "lazy",
@@ -34114,76 +34123,76 @@ function Zk({ name: e, domain: t }) {
})]
});
}
-function Qk({ html: e }) {
- return /* @__PURE__ */ (0, C.jsx)("span", {
+function $k({ html: e }) {
+ return /* @__PURE__ */ (0, w.jsx)("span", {
className: "relative inline-grid size-8 shrink-0 place-items-center overflow-hidden rounded-full bg-background-tertiary-default text-caption-1-medium text-text-secondary [&_img]:absolute [&_img]:inset-0 [&_img]:size-full [&_img]:object-cover",
dangerouslySetInnerHTML: { __html: e }
});
}
-function $k({ rows: e, kind: t, visual: n, empty: r, onSignal: i, avatarInner: a }) {
- if (!e.length) return /* @__PURE__ */ (0, C.jsx)(oh, {
+function eA({ rows: e, kind: t, visual: n, empty: r, onSignal: i, avatarInner: a }) {
+ if (!e.length) return /* @__PURE__ */ (0, w.jsx)(ch, {
shell: "plain",
- icon: tp,
+ icon: ip,
title: "暂无足够证据",
children: r
});
- let o = dk(e);
- return /* @__PURE__ */ (0, C.jsx)(VD, {
- previewCount: Ik,
+ let o = fk(e);
+ return /* @__PURE__ */ (0, w.jsx)(HD, {
+ previewCount: Lk,
className: "inline-grid w-full gap-x-7 gap-y-2 sm:grid-cols-2",
children: e.map((e, r) => {
- let s = !!t && !!e.peach_items, c = String(e.source_domain || ""), l = /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [
- /* @__PURE__ */ (0, C.jsx)("svg", {
+ let s = !!t && !!e.peach_items, c = String(e.source_domain || ""), l = /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [
+ /* @__PURE__ */ (0, w.jsx)("svg", {
viewBox: "0 0 100 1",
preserveAspectRatio: "none",
"aria-hidden": !0,
className: "absolute inset-0 -z-10 size-full overflow-hidden rounded-lg opacity-15",
- children: /* @__PURE__ */ (0, C.jsx)("rect", {
+ children: /* @__PURE__ */ (0, w.jsx)("rect", {
width: o[r],
height: 1,
className: "fill-chart-4"
})
}),
- /* @__PURE__ */ (0, C.jsx)("span", {
+ /* @__PURE__ */ (0, w.jsx)("span", {
className: "w-6 shrink-0 text-caption-1-regular tabular-nums text-text-secondary",
children: r + 1
}),
- n === "domain" ? /* @__PURE__ */ (0, C.jsx)(Zk, {
+ n === "domain" ? /* @__PURE__ */ (0, w.jsx)(Qk, {
name: e.name,
domain: e.name
}) : null,
- n === "creator" && !e.entity_id && !e.has_avatar && c ? /* @__PURE__ */ (0, C.jsx)(Zk, {
+ n === "creator" && !e.entity_id && !e.has_avatar && c ? /* @__PURE__ */ (0, w.jsx)(Qk, {
name: e.name,
domain: c
}) : null,
- n !== "none" && n !== "domain" && (e.entity_id || e.has_avatar || !c) ? /* @__PURE__ */ (0, C.jsx)(Qk, { html: a(e.name, e.entity_id ? {
+ n !== "none" && n !== "domain" && (e.entity_id || e.has_avatar || !c) ? /* @__PURE__ */ (0, w.jsx)($k, { html: a(e.name, e.entity_id ? {
id: e.entity_id,
has_image: !!e.has_image,
avatar_focus: e.avatar_focus
} : null, e.has_avatar ? e.representative_asset_id ?? null : null, n === "creator" ? "creator" : t || "performer") }) : null,
- /* @__PURE__ */ (0, C.jsxs)("span", {
+ /* @__PURE__ */ (0, w.jsxs)("span", {
className: "flex min-w-0 grow flex-col gap-0.5",
- children: [/* @__PURE__ */ (0, C.jsx)("b", {
+ children: [/* @__PURE__ */ (0, w.jsx)("b", {
className: "min-w-0 text-body-medium break-words text-text-primary",
children: e.name
- }), /* @__PURE__ */ (0, C.jsx)("small", {
+ }), /* @__PURE__ */ (0, w.jsx)("small", {
className: "text-caption-1-regular text-text-secondary",
- children: uk(e)
+ children: dk(e)
})]
}),
- s ? /* @__PURE__ */ (0, C.jsx)(Af, {
+ s ? /* @__PURE__ */ (0, w.jsx)(Nf, {
"aria-hidden": !0,
className: "size-4 shrink-0 text-text-tertiary"
}) : null
] }), u = "relative isolate flex min-h-11 w-full min-w-0 items-center gap-2.5 rounded-lg px-3 py-2 text-left";
- return /* @__PURE__ */ (0, C.jsx)("li", {
+ return /* @__PURE__ */ (0, w.jsx)("li", {
className: "min-w-0",
- children: s ? /* @__PURE__ */ (0, C.jsx)("button", {
+ children: s ? /* @__PURE__ */ (0, w.jsx)("button", {
type: "button",
onClick: () => i(t, e.name),
className: `${u} cursor-pointer outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring`,
children: l
- }) : /* @__PURE__ */ (0, C.jsx)("div", {
+ }) : /* @__PURE__ */ (0, w.jsx)("div", {
className: u,
children: l
})
@@ -34191,24 +34200,24 @@ function $k({ rows: e, kind: t, visual: n, empty: r, onSignal: i, avatarInner: a
})
});
}
-function eA({ label: e, panels: t, onSignal: n, avatarInner: r }) {
- return /* @__PURE__ */ (0, C.jsxs)(Ay, {
- className: `${ih({ padding: "none" })} flex flex-col`,
- children: [/* @__PURE__ */ (0, C.jsx)("div", {
+function tA({ label: e, panels: t, onSignal: n, avatarInner: r }) {
+ return /* @__PURE__ */ (0, w.jsxs)(jy, {
+ className: `${oh({ padding: "none" })} flex flex-col`,
+ children: [/* @__PURE__ */ (0, w.jsx)("div", {
className: "px-4 pt-3",
- children: /* @__PURE__ */ (0, C.jsx)(My, {
+ children: /* @__PURE__ */ (0, w.jsx)(Ny, {
"aria-label": e,
- className: Px,
- children: t.map((e) => /* @__PURE__ */ (0, C.jsx)(Py, {
+ className: Fx,
+ children: t.map((e) => /* @__PURE__ */ (0, w.jsx)(Fy, {
id: e.id,
- className: Fx,
+ className: Ix,
children: e.name
}, e.id))
})
- }), t.map((e) => /* @__PURE__ */ (0, C.jsx)(Fy, {
+ }), t.map((e) => /* @__PURE__ */ (0, w.jsx)(Iy, {
id: e.id,
className: "px-4 pt-3.5 pb-4",
- children: /* @__PURE__ */ (0, C.jsx)($k, {
+ children: /* @__PURE__ */ (0, w.jsx)(eA, {
...e.props,
onSignal: n,
avatarInner: r
@@ -34216,7 +34225,7 @@ function eA({ label: e, panels: t, onSignal: n, avatarInner: r }) {
}, e.id))]
});
}
-function tA({ data: e, onSignal: t, navigate: n }) {
+function nA({ data: e, onSignal: t, navigate: n }) {
let r = e.analysis;
if (!r?.headline) return null;
let i = r.confidence || {}, a = [...(r.explore || []).map((e) => ({
@@ -34230,102 +34239,102 @@ function tA({ data: e, onSignal: t, navigate: n }) {
detail: e.detail,
act: () => n(e.route)
}))];
- return /* @__PURE__ */ (0, C.jsxs)("section", {
- className: Rk,
+ return /* @__PURE__ */ (0, w.jsxs)("section", {
+ className: zk,
"aria-label": "口味总结",
children: [
- /* @__PURE__ */ (0, C.jsxs)("header", {
+ /* @__PURE__ */ (0, w.jsxs)("header", {
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, C.jsx)("h3", {
+ /* @__PURE__ */ (0, w.jsx)("h3", {
className: "text-title-2-medium text-text-primary",
children: "口味总结"
}),
- /* @__PURE__ */ (0, C.jsx)("p", {
+ /* @__PURE__ */ (0, w.jsx)("p", {
className: "max-w-prose text-title-2-regular text-text-primary",
children: r.headline
}),
- /* @__PURE__ */ (0, C.jsxs)("p", {
+ /* @__PURE__ */ (0, w.jsxs)("p", {
className: "flex flex-wrap items-center gap-2 text-body-2-regular text-text-secondary",
- children: [/* @__PURE__ */ (0, C.jsx)("i", {
+ children: [/* @__PURE__ */ (0, w.jsx)("i", {
"aria-hidden": !0,
className: `size-2 shrink-0 rounded-full ${i.level === "high" ? "bg-status-lime-text" : i.level === "medium" ? "bg-status-yellow-text" : "bg-text-tertiary"}`
}), i.label || "仍在学习"]
})
]
}),
- r.points?.length ? /* @__PURE__ */ (0, C.jsx)("div", {
+ r.points?.length ? /* @__PURE__ */ (0, w.jsx)("div", {
className: "inline-grid w-full gap-3 sm:grid-cols-2",
- children: r.points.map((e) => /* @__PURE__ */ (0, C.jsxs)("div", {
- className: `flex min-w-0 flex-col gap-1 ${zk}`,
- children: [/* @__PURE__ */ (0, C.jsx)("span", {
+ children: r.points.map((e) => /* @__PURE__ */ (0, w.jsxs)("div", {
+ className: `flex min-w-0 flex-col gap-1 ${Bk}`,
+ children: [/* @__PURE__ */ (0, w.jsx)("span", {
className: "text-caption-1-regular text-text-secondary",
children: e.label
- }), /* @__PURE__ */ (0, C.jsx)("b", {
+ }), /* @__PURE__ */ (0, w.jsx)("b", {
className: "text-body-2-medium break-words text-text-primary",
children: e.text
})]
}, e.label))
}) : null,
- a.length ? /* @__PURE__ */ (0, C.jsx)("div", {
+ a.length ? /* @__PURE__ */ (0, w.jsx)("div", {
className: "flex flex-col gap-2",
- children: a.map((e) => /* @__PURE__ */ (0, C.jsxs)("button", {
+ children: a.map((e) => /* @__PURE__ */ (0, w.jsxs)("button", {
type: "button",
onClick: e.act,
- className: `flex w-full min-w-0 cursor-pointer items-center gap-3 ${zk} text-left outline-none hover:bg-background-primary-hover focus-visible:ring-2 focus-visible:ring-border-focus-ring`,
- children: [/* @__PURE__ */ (0, C.jsxs)("span", {
+ className: `flex w-full min-w-0 cursor-pointer items-center gap-3 ${Bk} text-left outline-none hover:bg-background-primary-hover focus-visible:ring-2 focus-visible:ring-border-focus-ring`,
+ children: [/* @__PURE__ */ (0, w.jsxs)("span", {
className: "flex min-w-0 grow flex-col gap-1",
- children: [/* @__PURE__ */ (0, C.jsx)("b", {
+ children: [/* @__PURE__ */ (0, w.jsx)("b", {
className: "text-body-2-medium text-text-primary",
children: e.title
- }), /* @__PURE__ */ (0, C.jsx)("small", {
+ }), /* @__PURE__ */ (0, w.jsx)("small", {
className: "text-caption-1-regular text-text-secondary",
children: e.detail
})]
- }), /* @__PURE__ */ (0, C.jsx)(Af, {
+ }), /* @__PURE__ */ (0, w.jsx)(Nf, {
"aria-hidden": !0,
className: "size-4 shrink-0 text-text-tertiary"
})]
}, e.key))
- }) : /* @__PURE__ */ (0, C.jsx)(oh, {
+ }) : /* @__PURE__ */ (0, w.jsx)(ch, {
shell: "plain",
- icon: tp,
+ icon: ip,
title: "还没有可探索的入口",
- children: Hk
+ children: Uk
})
]
});
}
-function nA({ onboarding: e, done: t }) {
- let [n, r] = (0, S.useState)(() => {
+function rA({ onboarding: e, done: t }) {
+ let [n, r] = (0, C.useState)(() => {
try {
- return localStorage.getItem(Yk) === "1";
+ return localStorage.getItem(Xk) === "1";
} catch {
return !1;
}
});
- return t || n ? null : /* @__PURE__ */ (0, C.jsx)("div", {
- className: ih({
+ return t || n ? null : /* @__PURE__ */ (0, w.jsx)("div", {
+ className: oh({
padding: "none",
className: "p-4"
}),
- children: /* @__PURE__ */ (0, C.jsxs)(uS, {
+ children: /* @__PURE__ */ (0, w.jsxs)(dS, {
summary: "浏览器历史记录导入指南",
defaultOpen: e,
children: [
- /* @__PURE__ */ (0, C.jsx)("p", {
+ /* @__PURE__ */ (0, w.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: Gk
+ children: Kk
}),
- /* @__PURE__ */ (0, C.jsx)("p", {
+ /* @__PURE__ */ (0, w.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: Kk
+ children: qk
}),
- /* @__PURE__ */ (0, C.jsxs)("ul", {
+ /* @__PURE__ */ (0, w.jsxs)("ul", {
className: "flex list-disc flex-col gap-1 pl-5 text-body-2-regular text-text-secondary",
- children: [/* @__PURE__ */ (0, C.jsxs)("li", { children: [
+ children: [/* @__PURE__ */ (0, w.jsxs)("li", { children: [
"Chrome:在 ",
- /* @__PURE__ */ (0, C.jsx)("a", {
+ /* @__PURE__ */ (0, w.jsx)("a", {
href: "https://takeout.google.com/",
target: "_blank",
rel: "noopener noreferrer",
@@ -34334,9 +34343,9 @@ function nA({ onboarding: e, done: t }) {
}),
" ",
"选择 Chrome 历史记录,下载 ZIP 后直接导入。"
- ] }), /* @__PURE__ */ (0, C.jsxs)("li", { children: [
+ ] }), /* @__PURE__ */ (0, w.jsxs)("li", { children: [
"其他浏览器:用 ",
- /* @__PURE__ */ (0, C.jsx)("a", {
+ /* @__PURE__ */ (0, w.jsx)("a", {
href: "https://github.com/purarue/browserexport",
target: "_blank",
rel: "noopener noreferrer",
@@ -34347,18 +34356,18 @@ function nA({ onboarding: e, done: t }) {
"导出历史记录,再导入导出文件。"
] })]
}),
- /* @__PURE__ */ (0, C.jsx)("p", {
+ /* @__PURE__ */ (0, w.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: qk
+ children: Jk
}),
- /* @__PURE__ */ (0, C.jsx)("span", {
+ /* @__PURE__ */ (0, w.jsx)("span", {
className: "self-start",
- children: /* @__PURE__ */ (0, C.jsx)(X, {
+ children: /* @__PURE__ */ (0, w.jsx)(X, {
variant: "secondary",
size: "small",
onClick: () => {
try {
- localStorage.setItem(Yk, "1");
+ localStorage.setItem(Xk, "1");
} catch {}
r(!0);
},
@@ -34369,52 +34378,52 @@ function nA({ onboarding: e, done: t }) {
})
});
}
-function rA({ busy: e, onRefresh: t, onImport: n }) {
- let r = (0, S.useRef)(null), [i, a] = (0, S.useState)(!1), o = (e) => {
+function iA({ busy: e, onRefresh: t, onImport: n }) {
+ let r = (0, C.useRef)(null), [i, a] = (0, C.useState)(!1), o = (e) => {
a(!1), e();
};
- return /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsxs)("span", {
+ return /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [/* @__PURE__ */ (0, w.jsxs)("span", {
"data-button-group": !0,
"data-split-button": !0,
"data-variant": "primary",
- children: [/* @__PURE__ */ (0, C.jsx)(X, {
- leadingIcon: If,
- title: Bk,
+ children: [/* @__PURE__ */ (0, w.jsx)(X, {
+ leadingIcon: zf,
+ title: Vk,
onClick: t,
...Z(e),
children: "读取浏览器历史"
- }), /* @__PURE__ */ (0, C.jsx)(X, {
+ }), /* @__PURE__ */ (0, w.jsx)(X, {
ref: r,
iconOnly: !0,
- leadingIcon: Of,
+ leadingIcon: jf,
"aria-label": "更多取得浏览记录的方式",
"aria-haspopup": "dialog",
"aria-expanded": i,
onClick: () => a(!0)
})]
- }), /* @__PURE__ */ (0, C.jsx)(K_, {
+ }), /* @__PURE__ */ (0, w.jsx)(q_, {
triggerRef: r,
isOpen: i,
onOpenChange: a,
placement: "bottom end",
offset: 4,
- className: Wx,
- children: /* @__PURE__ */ (0, C.jsxs)(X_, {
+ className: Gx,
+ children: /* @__PURE__ */ (0, w.jsxs)(Z_, {
"aria-label": "更多取得浏览记录的方式",
className: "flex w-52 flex-col gap-1 outline-none",
- children: [/* @__PURE__ */ (0, C.jsxs)("button", {
+ children: [/* @__PURE__ */ (0, w.jsxs)("button", {
type: "button",
- className: Lk,
+ className: Rk,
onClick: () => o(t),
- children: [/* @__PURE__ */ (0, C.jsx)(If, {
+ children: [/* @__PURE__ */ (0, w.jsx)(zf, {
"aria-hidden": !0,
className: "size-4 shrink-0"
}), "读取浏览器历史"]
- }), /* @__PURE__ */ (0, C.jsxs)("button", {
+ }), /* @__PURE__ */ (0, w.jsxs)("button", {
type: "button",
- className: Lk,
+ className: Rk,
onClick: () => o(n),
- children: [/* @__PURE__ */ (0, C.jsx)(ap, {
+ children: [/* @__PURE__ */ (0, w.jsx)(cp, {
"aria-hidden": !0,
className: "size-4 shrink-0"
}), "导入历史文件"]
@@ -34422,61 +34431,61 @@ function rA({ busy: e, onRefresh: t, onImport: n }) {
})
})] });
}
-function iA({ sources: e, window: t, toast: n }) {
- let r = ut({
- mutationFn: (e) => nk(e, t),
+function aA({ sources: e, window: t, toast: n }) {
+ let r = dt({
+ mutationFn: (e) => rk(e, t),
onSuccess: (e) => {
- dh.setQueryData(YO(t), e.dashboard), n("已移除口味数据源");
+ fh.setQueryData(XO(t), e.dashboard), n("已移除口味数据源");
}
});
- return /* @__PURE__ */ (0, C.jsxs)("section", {
- className: Rk,
+ return /* @__PURE__ */ (0, w.jsxs)("section", {
+ className: zk,
"aria-label": "数据源",
children: [
- /* @__PURE__ */ (0, C.jsx)("h3", {
+ /* @__PURE__ */ (0, w.jsx)("h3", {
className: "text-title-2-medium text-text-primary",
children: "数据源"
}),
- r.error ? /* @__PURE__ */ (0, C.jsx)(ch, {
+ r.error ? /* @__PURE__ */ (0, w.jsx)(J, {
tone: "error",
- children: J(r.error)
+ children: q(r.error)
}) : null,
- e.length ? /* @__PURE__ */ (0, C.jsx)("div", {
+ e.length ? /* @__PURE__ */ (0, w.jsx)("div", {
className: "inline-grid w-full gap-2 sm:grid-cols-2",
- children: e.map((e) => /* @__PURE__ */ (0, C.jsxs)("div", {
- className: `flex min-w-0 items-center gap-3 ${zk}`,
+ children: e.map((e) => /* @__PURE__ */ (0, w.jsxs)("div", {
+ className: `flex min-w-0 items-center gap-3 ${Bk}`,
children: [
- /* @__PURE__ */ (0, C.jsx)("span", {
+ /* @__PURE__ */ (0, w.jsx)("span", {
className: "inline-grid size-8 shrink-0 place-items-center rounded-lg text-text-secondary",
- children: e.browser === "browserexport" ? /* @__PURE__ */ (0, C.jsx)(ap, {
+ children: e.browser === "browserexport" ? /* @__PURE__ */ (0, w.jsx)(cp, {
"aria-hidden": !0,
className: "size-4"
- }) : /* @__PURE__ */ (0, C.jsx)(Lf, {
+ }) : /* @__PURE__ */ (0, w.jsx)(Bf, {
"aria-hidden": !0,
className: "size-4"
})
}),
- /* @__PURE__ */ (0, C.jsxs)("span", {
+ /* @__PURE__ */ (0, w.jsxs)("span", {
className: "flex min-w-0 grow flex-col gap-0.5",
- children: [/* @__PURE__ */ (0, C.jsx)("b", {
+ children: [/* @__PURE__ */ (0, w.jsx)("b", {
className: "min-w-0 text-body-2-medium break-words text-text-primary",
children: e.profile
- }), /* @__PURE__ */ (0, C.jsx)("small", {
+ }), /* @__PURE__ */ (0, w.jsx)("small", {
className: "min-w-0 text-caption-1-regular break-words text-text-secondary",
children: `${e.browser} · ${e.host} · ${Number(e.visits || 0).toLocaleString()} 条`
})]
}),
- /* @__PURE__ */ (0, C.jsx)(X, {
+ /* @__PURE__ */ (0, w.jsx)(X, {
variant: "secondary",
size: "small",
"aria-label": `移除 ${e.profile}`,
iconOnly: !0,
- leadingIcon: Rf,
+ leadingIcon: Vf,
...Z(r.isPending),
onClick: () => {
- r.isPending || s({
+ r.isPending || c({
title: "移除口味数据源",
- body: Jk,
+ body: Yk,
confirmLabel: "移除口味数据源",
onConfirm: () => r.mutateAsync(e.source_key)
});
@@ -34484,43 +34493,43 @@ function iA({ sources: e, window: t, toast: n }) {
})
]
}, e.source_key))
- }) : /* @__PURE__ */ (0, C.jsx)(oh, {
+ }) : /* @__PURE__ */ (0, w.jsx)(ch, {
shell: "plain",
- icon: Lf,
+ icon: Bf,
title: "还没有数据源",
- children: Vk
+ children: Hk
})
]
});
}
-function aA(e) {
- let { onSignal: t, navigate: r, toast: i, avatarInner: a, onboarding: o } = e, [s, c] = (0, S.useState)("all"), [l, u] = (0, S.useState)("browser"), [d, f] = (0, S.useState)(!1), [p, m] = (0, S.useState)(null), h = (0, S.useRef)(null), g = lt({
- queryKey: YO(s),
- queryFn: ({ signal: e }) => QO(s, e),
- placeholderData: I
- }), _ = lt({
- queryKey: XO,
- queryFn: ({ signal: e }) => $O(e),
- refetchInterval: (e) => ok(e.state.data)
- }), v = ut({
- mutationFn: () => tk(s),
+function oA(e) {
+ let { onSignal: t, navigate: r, toast: i, avatarInner: a, onboarding: o } = e, [s, c] = (0, C.useState)("all"), [l, u] = (0, C.useState)("browser"), [d, f] = (0, C.useState)(!1), [p, m] = (0, C.useState)(null), h = (0, C.useRef)(null), g = ut({
+ queryKey: XO(s),
+ queryFn: ({ signal: e }) => $O(s, e),
+ placeholderData: L
+ }), _ = ut({
+ queryKey: ZO,
+ queryFn: ({ signal: e }) => ek(e),
+ refetchInterval: (e) => sk(e.state.data)
+ }), v = dt({
+ mutationFn: () => nk(s),
onSuccess: () => {
- f(!0), m(null), dh.invalidateQueries({ queryKey: XO });
+ f(!0), m(null), fh.invalidateQueries({ queryKey: ZO });
}
- }), y = ut({
- mutationFn: (e) => rk(e),
+ }), y = dt({
+ mutationFn: (e) => ik(e),
onSuccess: (e) => {
- dh.setQueryData(YO("all"), e.dashboard), c("all"), i("已导入口味数据");
+ fh.setQueryData(XO("all"), e.dashboard), c("all"), i("已导入口味数据");
}
}), b = _.data?.status === "running";
- (0, S.useEffect)(() => {
+ (0, C.useEffect)(() => {
let e = _.data;
if (e) {
if (e.status === "running") {
d || f(!0);
return;
}
- d && (f(!1), m(e), e.status !== "failed" && (dh.invalidateQueries({ queryKey: ["taste"] }), i("已更新口味分析")));
+ d && (f(!1), m(e), e.status !== "failed" && (fh.invalidateQueries({ queryKey: ["taste"] }), i("已更新口味分析")));
}
}, [
_.data,
@@ -34530,55 +34539,55 @@ function aA(e) {
let x = (e) => {
let t = e.currentTarget.files?.[0];
e.currentTarget.value = "", !(!t || y.isPending) && (y.reset(), y.mutate(t));
- }, w = () => {
+ }, S = () => {
b || v.isPending || (v.reset(), v.mutate());
}, T = g.data;
- if (!T) return /* @__PURE__ */ (0, C.jsx)(lh, { children: /* @__PURE__ */ (0, C.jsx)(ch, {
+ if (!T) return /* @__PURE__ */ (0, w.jsx)(uh, { children: /* @__PURE__ */ (0, w.jsx)(J, {
tone: "error",
title: "读取失败",
- children: g.error ? J(g.error) : "读取口味分析失败"
+ children: g.error ? q(g.error) : "读取口味分析失败"
}) });
- let E = T.summary || {}, D = T.coverage || {}, O = T.rankings || {}, k = T.storage || {}, A = O.browser_categories || [], j = T.gaps || [], M = D.tagged || 0, N = D.identified || 0, ee = v.error ? J(v.error) : y.error ? J(y.error) : p?.status === "failed" ? p.error || "读取未取得" : "";
- return /* @__PURE__ */ (0, C.jsxs)(lh, { children: [
- /* @__PURE__ */ (0, C.jsxs)(Ay, {
+ let E = T.summary || {}, D = T.coverage || {}, O = T.rankings || {}, k = T.storage || {}, A = O.browser_categories || [], j = T.gaps || [], M = D.tagged || 0, N = D.identified || 0, ee = v.error ? q(v.error) : y.error ? q(y.error) : p?.status === "failed" ? p.error || "读取未取得" : "";
+ return /* @__PURE__ */ (0, w.jsxs)(uh, { children: [
+ /* @__PURE__ */ (0, w.jsxs)(jy, {
selectedKey: l,
onSelectionChange: (e) => u(String(e)),
className: "flex flex-col gap-5",
children: [
- /* @__PURE__ */ (0, C.jsxs)("div", {
+ /* @__PURE__ */ (0, w.jsxs)("div", {
className: "flex flex-wrap items-center justify-between gap-3",
- children: [/* @__PURE__ */ (0, C.jsxs)(My, {
+ children: [/* @__PURE__ */ (0, w.jsxs)(Ny, {
"aria-label": "口味证据来源",
- className: Px,
- children: [/* @__PURE__ */ (0, C.jsx)(Py, {
+ className: Fx,
+ children: [/* @__PURE__ */ (0, w.jsx)(Fy, {
id: "browser",
- className: Fx,
+ className: Ix,
children: "浏览器记录"
- }), /* @__PURE__ */ (0, C.jsx)(Py, {
+ }), /* @__PURE__ */ (0, w.jsx)(Fy, {
id: "peach",
- className: Fx,
+ className: Ix,
children: "Peach 内部"
})]
- }), /* @__PURE__ */ (0, C.jsxs)("div", {
+ }), /* @__PURE__ */ (0, w.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
children: [
- /* @__PURE__ */ (0, C.jsx)(_w, {
+ /* @__PURE__ */ (0, w.jsx)(vw, {
"aria-label": "分析范围",
selectedKey: s,
onSelectionChange: (e) => {
e !== null && c(String(e));
},
- children: ZO.map(([e, t]) => /* @__PURE__ */ (0, C.jsx)(vw, {
+ children: QO.map(([e, t]) => /* @__PURE__ */ (0, w.jsx)(yw, {
id: e,
children: t
}, e))
}),
- /* @__PURE__ */ (0, C.jsx)(rA, {
+ /* @__PURE__ */ (0, w.jsx)(iA, {
busy: b || v.isPending || y.isPending,
- onRefresh: w,
+ onRefresh: S,
onImport: () => h.current?.click()
}),
- /* @__PURE__ */ (0, C.jsx)("input", {
+ /* @__PURE__ */ (0, w.jsx)("input", {
ref: h,
type: "file",
tabIndex: -1,
@@ -34589,103 +34598,103 @@ function aA(e) {
]
})]
}),
- /* @__PURE__ */ (0, C.jsx)(nA, {
+ /* @__PURE__ */ (0, w.jsx)(rA, {
onboarding: o,
done: !!(E.history_sources || T.updated_at)
}),
- /* @__PURE__ */ (0, C.jsxs)("div", {
+ /* @__PURE__ */ (0, w.jsxs)("div", {
"aria-live": "polite",
className: "flex flex-col gap-3 empty:hidden",
children: [
- b ? _.data?.total ? /* @__PURE__ */ (0, C.jsxs)("div", {
+ b ? _.data?.total ? /* @__PURE__ */ (0, w.jsxs)("div", {
className: "flex flex-col gap-1.5",
- children: [/* @__PURE__ */ (0, C.jsx)(uh, {
+ children: [/* @__PURE__ */ (0, w.jsx)(dh, {
label: _.data.message || "正在读取浏览记录",
value: _.data.checked || 0,
max: _.data.total
- }), /* @__PURE__ */ (0, C.jsx)("p", {
+ }), /* @__PURE__ */ (0, w.jsx)("p", {
className: "text-caption-1-regular text-text-secondary",
children: `${_.data.message || "正在读取浏览记录"} · ${_.data.checked || 0} / ${_.data.total}`
})]
- }) : /* @__PURE__ */ (0, C.jsx)(sh, { label: _.data?.message || "正在读取浏览记录并更新口味分析" }) : null,
- y.isPending ? /* @__PURE__ */ (0, C.jsx)(sh, { label: "正在导入历史文件" }) : null,
- ee ? /* @__PURE__ */ (0, C.jsx)(ch, {
+ }) : /* @__PURE__ */ (0, w.jsx)(lh, { label: _.data?.message || "正在读取浏览记录并更新口味分析" }) : null,
+ y.isPending ? /* @__PURE__ */ (0, w.jsx)(lh, { label: "正在导入历史文件" }) : null,
+ ee ? /* @__PURE__ */ (0, w.jsx)(J, {
tone: "error",
children: ee
}) : null
]
}),
- /* @__PURE__ */ (0, C.jsxs)(Fy, {
+ /* @__PURE__ */ (0, w.jsxs)(Iy, {
id: "browser",
className: "flex flex-col gap-5",
children: [
- /* @__PURE__ */ (0, C.jsxs)("div", {
- className: zx,
+ /* @__PURE__ */ (0, w.jsxs)("div", {
+ className: Bx,
children: [
- /* @__PURE__ */ (0, C.jsx)(Xk, {
+ /* @__PURE__ */ (0, w.jsx)(Zk, {
accent: 0,
- icon: Gf,
+ icon: Jf,
term: "浏览记录",
figure: Number(E.history_visits || 0).toLocaleString(),
- detail: `${E.history_sources || 0} 个数据源 · ${sk(E.range_start)}—${sk(E.range_end)}`
+ detail: `${E.history_sources || 0} 个数据源 · ${ck(E.range_start)}—${ck(E.range_end)}`
}),
- /* @__PURE__ */ (0, C.jsx)(Xk, {
+ /* @__PURE__ */ (0, w.jsx)(Zk, {
accent: 1,
- icon: Qf,
+ icon: tp,
term: "口味维度",
figure: A.length.toLocaleString(),
detail: A[0]?.name || "尚无主维度"
}),
- /* @__PURE__ */ (0, C.jsx)(Xk, {
+ /* @__PURE__ */ (0, w.jsx)(Zk, {
accent: 2,
- icon: tp,
+ icon: ip,
term: "浏览候选",
figure: j.length.toLocaleString()
}),
- /* @__PURE__ */ (0, C.jsx)(Xk, {
+ /* @__PURE__ */ (0, w.jsx)(Zk, {
accent: 3,
- icon: Lf,
+ icon: Bf,
term: "私有导出",
figure: Number(k.exports || 0).toLocaleString(),
detail: n(k.bytes || 0)
})
]
}),
- /* @__PURE__ */ (0, C.jsxs)("section", {
- className: `${Rk} md:flex-row md:gap-6`,
+ /* @__PURE__ */ (0, w.jsxs)("section", {
+ className: `${zk} md:flex-row md:gap-6`,
"aria-label": "浏览器画像",
- children: [/* @__PURE__ */ (0, C.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, w.jsxs)("div", {
className: "flex shrink-0 flex-col gap-2 pb-5 md:w-72 md:pr-6 md:pb-0",
children: [
- /* @__PURE__ */ (0, C.jsx)("span", {
+ /* @__PURE__ */ (0, w.jsx)("span", {
className: "text-caption-1-regular text-text-secondary",
children: "浏览器画像"
}),
- /* @__PURE__ */ (0, C.jsx)(Ak, {
+ /* @__PURE__ */ (0, w.jsx)(jk, {
rows: A,
label: "主要口味维度"
}),
- /* @__PURE__ */ (0, C.jsx)("small", {
+ /* @__PURE__ */ (0, w.jsx)("small", {
className: "text-caption-1-regular text-text-secondary",
- children: T.updated_at ? `更新于 ${sk(T.updated_at)}` : "尚未采集浏览记录"
+ children: T.updated_at ? `更新于 ${ck(T.updated_at)}` : "尚未采集浏览记录"
})
]
- }), /* @__PURE__ */ (0, C.jsx)("div", {
+ }), /* @__PURE__ */ (0, w.jsx)("div", {
className: "min-w-0 grow",
- children: A.length ? /* @__PURE__ */ (0, C.jsx)(jk, {
+ children: A.length ? /* @__PURE__ */ (0, w.jsx)(Mk, {
rows: A,
label: "口味维度排名"
- }) : /* @__PURE__ */ (0, C.jsx)(oh, {
+ }) : /* @__PURE__ */ (0, w.jsx)(ch, {
shell: "plain",
- icon: tp,
+ icon: ip,
title: "暂无口味维度",
- children: Uk
+ children: Wk
})
})]
}),
- /* @__PURE__ */ (0, C.jsx)(Pk, { activity: T.activity }),
- /* @__PURE__ */ (0, C.jsx)(Fk, { flows: T.creator_flows }),
- /* @__PURE__ */ (0, C.jsx)(eA, {
+ /* @__PURE__ */ (0, w.jsx)(Fk, { activity: T.activity }),
+ /* @__PURE__ */ (0, w.jsx)(Ik, { flows: T.creator_flows }),
+ /* @__PURE__ */ (0, w.jsx)(tA, {
label: "浏览器口味维度",
onSignal: t,
avatarInner: a,
@@ -34727,80 +34736,80 @@ function aA(e) {
rows: j,
kind: "",
visual: "none",
- empty: Wk
+ empty: Gk
}
}
]
})
]
}),
- /* @__PURE__ */ (0, C.jsxs)(Fy, {
+ /* @__PURE__ */ (0, w.jsxs)(Iy, {
id: "peach",
className: "flex flex-col gap-5",
children: [
- /* @__PURE__ */ (0, C.jsxs)("div", {
- className: zx,
+ /* @__PURE__ */ (0, w.jsxs)("div", {
+ className: Bx,
children: [
- /* @__PURE__ */ (0, C.jsx)(Xk, {
+ /* @__PURE__ */ (0, w.jsx)(Zk, {
accent: 0,
- icon: Vf,
+ icon: Wf,
term: "Peach 看过",
figure: Number(E.peach_items || 0).toLocaleString(),
- detail: ck(E.peach_seconds || 0)
+ detail: lk(E.peach_seconds || 0)
}),
- /* @__PURE__ */ (0, C.jsx)(Xk, {
+ /* @__PURE__ */ (0, w.jsx)(Zk, {
accent: 1,
- icon: ip,
+ icon: sp,
term: "喜欢",
figure: Number(E.liked || 0).toLocaleString()
}),
- /* @__PURE__ */ (0, C.jsx)(Xk, {
+ /* @__PURE__ */ (0, w.jsx)(Zk, {
accent: 2,
- icon: rp,
+ icon: op,
term: "不合口味",
figure: Number(E.disliked || 0).toLocaleString()
}),
- /* @__PURE__ */ (0, C.jsx)(Xk, {
+ /* @__PURE__ */ (0, w.jsx)(Zk, {
accent: 3,
- icon: Qf,
+ icon: tp,
term: "有标签",
figure: M.toLocaleString()
})
]
}),
- /* @__PURE__ */ (0, C.jsxs)("section", {
- className: `${Rk} md:flex-row md:gap-6`,
+ /* @__PURE__ */ (0, w.jsxs)("section", {
+ className: `${zk} md:flex-row md:gap-6`,
"aria-label": "Peach 观看",
- children: [/* @__PURE__ */ (0, C.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, w.jsxs)("div", {
className: "flex shrink-0 flex-col gap-0.5 pb-5 md:w-72 md:pr-6 md:pb-0",
children: [
- /* @__PURE__ */ (0, C.jsx)("span", {
+ /* @__PURE__ */ (0, w.jsx)("span", {
className: "text-caption-1-regular text-text-secondary",
children: "Peach 观看"
}),
- /* @__PURE__ */ (0, C.jsx)("b", {
+ /* @__PURE__ */ (0, w.jsx)("b", {
className: "text-display-4-medium tabular-nums text-text-primary",
children: Number(E.peach_items || 0).toLocaleString()
}),
- /* @__PURE__ */ (0, C.jsx)("span", {
+ /* @__PURE__ */ (0, w.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
children: "个作品有内部行为证据"
})
]
- }), /* @__PURE__ */ (0, C.jsxs)("div", {
+ }), /* @__PURE__ */ (0, w.jsxs)("div", {
className: "flex min-w-0 grow flex-col",
- children: [/* @__PURE__ */ (0, C.jsx)(oA, {
+ children: [/* @__PURE__ */ (0, w.jsx)(sA, {
term: "有标签",
value: M,
rest: D.untagged || 0
- }), /* @__PURE__ */ (0, C.jsx)(oA, {
+ }), /* @__PURE__ */ (0, w.jsx)(sA, {
term: "有身份",
value: N,
rest: D.unidentified || 0
})]
})]
}),
- /* @__PURE__ */ (0, C.jsx)(eA, {
+ /* @__PURE__ */ (0, w.jsx)(tA, {
label: "Peach 口味维度",
onSignal: t,
avatarInner: a,
@@ -34841,32 +34850,32 @@ function aA(e) {
})
]
}),
- /* @__PURE__ */ (0, C.jsx)(tA, {
+ /* @__PURE__ */ (0, w.jsx)(nA, {
data: T,
onSignal: t,
navigate: r
}),
- /* @__PURE__ */ (0, C.jsx)(iA, {
+ /* @__PURE__ */ (0, w.jsx)(aA, {
sources: T.sources || [],
window: s,
toast: i
})
] });
}
-function oA({ term: e, value: t, rest: n }) {
+function sA({ term: e, value: t, rest: n }) {
let r = Math.max(t + n, 1);
- return /* @__PURE__ */ (0, C.jsxs)("div", {
+ return /* @__PURE__ */ (0, w.jsxs)("div", {
className: "flex flex-col gap-1.5 border-b border-separator-border py-3 last:border-b-0",
- children: [/* @__PURE__ */ (0, C.jsxs)("p", {
+ children: [/* @__PURE__ */ (0, w.jsxs)("p", {
className: "flex items-baseline justify-between gap-3 text-body-2-regular text-text-primary",
- children: [/* @__PURE__ */ (0, C.jsx)("span", { children: e }), /* @__PURE__ */ (0, C.jsxs)("b", {
+ children: [/* @__PURE__ */ (0, w.jsx)("span", { children: e }), /* @__PURE__ */ (0, w.jsxs)("b", {
className: "tabular-nums",
- children: [t.toLocaleString(), /* @__PURE__ */ (0, C.jsx)("span", {
+ children: [t.toLocaleString(), /* @__PURE__ */ (0, w.jsx)("span", {
className: "ml-1.5 text-caption-1-regular text-text-secondary",
children: `${n} 项待补`
})]
})]
- }), /* @__PURE__ */ (0, C.jsx)(uh, {
+ }), /* @__PURE__ */ (0, w.jsx)(dh, {
label: `${e}:${t.toLocaleString()} / ${r.toLocaleString()}`,
value: t,
max: r
@@ -34875,66 +34884,66 @@ function oA({ term: e, value: t, rest: n }) {
}
//#endregion
//#region src/react/entry.tsx
-var sA = null;
-function cA() {
- return sA?.isConnected || (sA = document.createElement("div"), sA.className = "peach-react", sA.dataset.reactOverlays = "", document.body.append(sA)), sA;
+var cA = null;
+function lA() {
+ return cA?.isConnected || (cA = document.createElement("div"), cA.className = "peach-react", cA.dataset.reactOverlays = "", document.body.append(cA)), cA;
}
-function lA(e) {
+function uA(e) {
return (t, n) => {
- let r = (0, Tf.createRoot)(t), i = (t) => r.render(/* @__PURE__ */ (0, C.jsx)(E, {
- client: dh,
- children: /* @__PURE__ */ (0, C.jsx)(vc, {
- getContainer: cA,
- children: /* @__PURE__ */ (0, C.jsx)(e, { ...t })
+ let r = (0, Of.createRoot)(t), i = (t) => r.render(/* @__PURE__ */ (0, w.jsx)(D, {
+ client: fh,
+ children: /* @__PURE__ */ (0, w.jsx)(bc, {
+ getContainer: lA,
+ children: /* @__PURE__ */ (0, w.jsx)(e, { ...t })
})
}));
- return (0, Zr.flushSync)(() => i(n)), {
+ return (0, Qr.flushSync)(() => i(n)), {
update: i,
unmount: () => r.unmount()
};
};
}
-var uA = {
+var dA = {
activity: {
- prefetch: (e, t) => vh(t),
- mount: lA(Nh)
+ prefetch: (e, t) => yh(t),
+ mount: uA(Ph)
},
"avatar-picker": {
prefetch: async () => {},
- mount: lA(ub)
+ mount: uA(db)
},
configuration: {
- prefetch: (e, t) => IE(t),
- mount: lA(kD)
+ prefetch: (e, t) => LE(t),
+ mount: uA(AD)
},
"follow-manage": {
- prefetch: (e, t) => bx(t),
- mount: lA(jw)
+ prefetch: (e, t) => xx(t),
+ mount: uA(Mw)
},
"library-processing": {
- prefetch: (e, t) => Fw(t),
- mount: lA((e) => e.mode === "notice" ? /* @__PURE__ */ (0, C.jsx)(sT, { ...e }) : /* @__PURE__ */ (0, C.jsx)(rT, { ...e }))
+ prefetch: (e, t) => Iw(t),
+ mount: uA((e) => e.mode === "notice" ? /* @__PURE__ */ (0, w.jsx)(cT, { ...e }) : /* @__PURE__ */ (0, w.jsx)(iT, { ...e }))
},
"quality-goals": {
- prefetch: (e, t) => dT(t),
- mount: lA(mT)
+ prefetch: (e, t) => fT(t),
+ mount: uA(hT)
},
review: {
- prefetch: (e, t) => WT(t),
- mount: lA(mE)
+ prefetch: (e, t) => GT(t),
+ mount: uA(hE)
},
scraping: {
- prefetch: (e, t) => wE(t),
- mount: lA(jE)
+ prefetch: (e, t) => TE(t),
+ mount: uA(ME)
},
stats: {
- prefetch: (e, t) => ND(t),
- mount: lA(dO)
+ prefetch: (e, t) => PD(t),
+ mount: uA(fO)
},
taste: {
- prefetch: (e, t) => ek("all", t),
- mount: lA(aA)
+ prefetch: (e, t) => tk("all", t),
+ mount: uA(oA)
}
};
//#endregion
-export { uA as pages };
+export { dA as pages };