Skip to content

armgit / peach

Public Imported from GitHub
0

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

fix(follow): 同步版本标签缓存并完善可编辑预览

longmeidao2705285a6dd4
diff --git a/docs/UI_PREVIEW.md b/docs/UI_PREVIEW.md
index 42ec3cd89..75b384281 100644
--- a/docs/UI_PREVIEW.md
+++ b/docs/UI_PREVIEW.md
@@ -33,3 +33,5 @@
提供预览前,在目标页面确认「文案编辑」浮条、悬停范围、原位输入和取消操作可用。首次接入或保存链路变化时,用隔离的临时源码副本核对保存、构建或重载、刷新后生效及 `edit` 参数保留;同一工作树和入口的有效证据可复用。核对后恢复临时文案,保留用户修改。未取得某项能力时说明具体页面和错误,不宣称可编辑预览已就绪。
布局验收和控件操作使用「暂停编辑」或普通查看状态;交付给用户的入口保留编辑模式。编辑器产生的源码修改纳入当前任务的 diff、回归和集成,不写真实账本或修改生产配置。
+
+文案编辑工具栏、悬停范围和来源选择跟随当前模态弹层;弹层关闭后回到页面。工具栏为页面的底部选择操作条让出空间。
diff --git a/frontend/e2e/copy-editor.test.ts b/frontend/e2e/copy-editor.test.ts
index 36a34982a..f7d5cb029 100644
--- a/frontend/e2e/copy-editor.test.ts
+++ b/frontend/e2e/copy-editor.test.ts
@@ -14,6 +14,38 @@ describe('原位改字', () => {
before(async () => { browser = await launch(); });
after(async () => { await browser?.close(); });
for (const viewport of VIEWPORTS) {
+ it(`模态弹层中的工具栏可暂停编辑并随关闭返回页面(${viewport.name})`, async () => {
+ const context = await browser.newContext({ viewport });
+ try {
+ const page = await context.newPage();
+ await page.route('https://copy.example/**', route => route.fulfill({ contentType: 'text/html; charset=utf-8',
+ body: '<meta charset="utf-8"><body><dialog id="first"><p id="copy">弹层说明</p></dialog><dialog id="second"><p>确认说明</p></dialog></body>' }));
+ await page.goto('https://copy.example/?edit');
+ await page.addScriptTag({ content: await editorScripts() });
+ await page.evaluate(() => {
+ const dialog = document.querySelector<HTMLDialogElement>('#first')!;
+ document.body.dataset.dialogClicks = '0';
+ dialog.addEventListener('click', () => { document.body.dataset.dialogClicks = String(Number(document.body.dataset.dialogClicks) + 1) });
+ dialog.showModal();
+ });
+ await page.locator('#first [data-copy-bar]').waitFor();
+ await page.getByRole('button', { name: '暂停编辑', exact: true }).click();
+ await page.getByRole('button', { name: '继续编辑', exact: true }).click();
+ assert.equal(await page.locator('body').getAttribute('data-dialog-clicks'), '0');
+ await page.locator('#copy').click();
+ const input = page.locator('#copy [contenteditable]');
+ await input.fill('临时修改'); await input.press('Escape');
+ assert.equal(await page.locator('#copy').innerText(), '弹层说明');
+ await page.evaluate(() => document.querySelector<HTMLDialogElement>('#second')!.showModal());
+ await page.locator('#second [data-copy-bar]').waitFor();
+ await page.getByRole('button', { name: '暂停编辑', exact: true }).click();
+ await page.evaluate(() => document.querySelector<HTMLDialogElement>('#second')!.close());
+ await page.locator('#first [data-copy-bar]').waitFor();
+ await page.evaluate(() => document.querySelector<HTMLDialogElement>('#first')!.close());
+ assert.equal(await page.locator('[data-copy-bar]').evaluate(node => node.closest('dialog') === null), true);
+ } finally { await context.close(); }
+ });
+
it(`链接和按钮输入框独占文字位置并恢复原文(${viewport.name})`, async () => {
const context = await browser.newContext({ viewport });
try {
diff --git a/frontend/src/react/follow-detail/follow-tags.tsx b/frontend/src/react/follow-detail/follow-tags.tsx
index 144f25bf2..c25f643cf 100644
--- a/frontend/src/react/follow-detail/follow-tags.tsx
+++ b/frontend/src/react/follow-detail/follow-tags.tsx
@@ -3,7 +3,7 @@ import { useState } from 'react';
import { Button } from '@/components/base/buttons/button';
import { Input } from '@/components/base/input/input';
import { apiGet, apiSend } from '../../api';
-import { replaceFollowItem } from '../follow-feed/follow-feed';
+import { collectionItems, replaceFollowItem } from '../follow-feed/follow-feed';
import type { FollowGroup } from '../follow-feed/follow-feed';
import { confirmTagOperation, managedTagId, previewTagOperation, type ManagedTag } from '../index/tag-operations';
import { Note } from '../components/note';
@@ -21,15 +21,21 @@ export function FollowTags({ item, label, actions }: { item: FollowDetailItem; l
const custom = item.custom_tags || [];
const choices = [...new Set([...tags, ...custom, ...(item.blocked_tags || [])])];
const selectedTag = choices.includes(pickedTag) ? pickedTag : choices[0] || '';
+ const refresh = () => queryClient.invalidateQueries({
+ predicate: query => ['follow-feed', 'follow', 'tag-management'].includes(String(query.queryKey[0])),
+ });
const apply = (result: { item: FollowDetailItem; group: FollowGroup }) => {
replaceFollowItem(result.item);
- queryClient.setQueriesData<FollowDetailData>({ queryKey: ['follow-item'] }, current => current
- ? { ...current, ...(current.item.id === item.id ? { item: result.item, group: result.group } : {}) } : current);
+ queryClient.setQueriesData<FollowDetailData>({ queryKey: ['follow-item'] }, current => {
+ if (!current) return current;
+ const member = collectionItems(result.group).find(value => value.id === current.item.id);
+ return member ? { ...current, item: member as FollowDetailItem, group: result.group } : current;
+ });
};
const write = (operation: 'add' | 'remove', tag: string) => { void action.run(`${operation}:${tag}`, async signal => {
const result = await apiSend<{ item: FollowDetailItem; group: FollowGroup }>('/api/follow/tag', { id: item.id, operation, tag }, 'POST', signal);
apply(result);
- await queryClient.invalidateQueries({ predicate: query => query.queryKey[0] !== 'follow-item' });
+ await refresh();
return result.item;
}, () => {
setName('');
@@ -37,7 +43,7 @@ export function FollowTags({ item, label, actions }: { item: FollowDetailItem; l
undo: async () => {
const result = await apiSend<{ item: FollowDetailItem; group: FollowGroup }>('/api/follow/tag', { id: item.id, operation: operation === 'add' ? 'remove' : 'add', tag });
apply(result);
- await queryClient.invalidateQueries();
+ await refresh();
},
});
}) };
diff --git a/frontend/test/react/follow-detail.test.tsx b/frontend/test/react/follow-detail.test.tsx
index ab3871208..ebdd80e9f 100644
--- a/frontend/test/react/follow-detail.test.tsx
+++ b/frontend/test/react/follow-detail.test.tsx
@@ -87,14 +87,16 @@ describe('取数', () => {
it('手动标签提交保持输入和忙态,成功后更新详情并可移除', async () => {
const original = item(8, { tags: ['source'], detail_tags: ['source'], custom_tags: [] });
const updated = item(8, { tags: ['source', '精选'], detail_tags: ['source', '精选'], custom_tags: ['精选'] });
+ const sibling = item(9);
const waiting = pending<{ ok: boolean; json(): Promise<unknown> }>();
const fallback = serve();
const fetcher = vi.fn((url: string, init?: RequestInit) => url === '/api/follow/tag'
? JSON.parse(String(init?.body)).operation === 'add' ? waiting.answer
- : Promise.resolve({ ok: true, json: async () => ({ item: original, group: group(original) }) })
+ : Promise.resolve({ ok: true, json: async () => ({ item: original, group: group(original, { variants: [sibling] }) }) })
: fallback(url, init));
vi.stubGlobal('fetch', fetcher);
const { host, actions: receipts } = await show(data(original));
+ queryClient.setQueryData(followItemKey(sibling.id), data(sibling, group(original, { variants: [sibling] })));
await click(buttonNamed('管理标签', host));
const input = host.querySelector<HTMLInputElement>('input[aria-label="新标签名称"]')!;
await type(input, '精选');
@@ -104,10 +106,11 @@ describe('取数', () => {
expect(input.value).toBe('精选');
expect(buttonNamed('添加标签', host)?.getAttribute('aria-busy')).toBe('true');
expect(receipts.toast).not.toHaveBeenCalled();
- await waiting.release({ ok: true, json: async () => ({ item: updated, group: group(updated) }) });
+ await waiting.release({ ok: true, json: async () => ({ item: updated, group: group(updated, { variants: [sibling] }) }) });
await settle();
expect(host.querySelector('[data-follow-tag="精选"]')).not.toBeNull();
expect(input.value).toBe('');
+ expect(queryClient.getQueryData<FollowDetailData>(followItemKey(sibling.id))?.group?.primary.tags).toContain('精选');
expect(receipts.toast).toHaveBeenCalledWith('已添加标签「精选」', expect.objectContaining({ undo: expect.any(Function) }));
await click(host.querySelector('[aria-label="移除手动标签 精选"]')); await settle();
expect(host.querySelector('[data-follow-tag="精选"]')).toBeNull();
diff --git a/scripts/dev/copy-editor.js b/scripts/dev/copy-editor.js
index 8847f8b9e..3347e2150 100644
--- a/scripts/dev/copy-editor.js
+++ b/scripts/dev/copy-editor.js
@@ -11,12 +11,14 @@
[data-copy-inline]{outline:2px solid var(--tungsten);outline-offset:3px;border-radius:var(--badge-radius);background:var(--hover);user-select:text;cursor:text}
[data-copy-input]{position:fixed;z-index:2147483647;padding:2px 6px;border:0;border-radius:var(--badge-radius);outline:2px solid var(--tungsten);background:var(--ground);color:var(--ink)}
[data-copy-bar]>[role=status]{max-width:min(360px,calc(100vw - 64px));white-space:normal;overflow-wrap:anywhere}
+ [data-copy-bar][data-selection-dock]{bottom:max(16px,var(--selection-dock-space,0px))}
@media(max-width:600px){[data-copy-bar]>[role=status]{flex-basis:100%;text-align:center}}
[data-copy-choice]{position:fixed;z-index:2147483647;background:var(--ground);color:var(--ink);border:1px solid var(--border-15);border-radius:var(--control-radius);padding:8px;max-width:calc(100vw - 32px)}
`;
document.head.append(css);
const highlight = document.createElement('div'); highlight.dataset.copyEditor = ''; highlight.dataset.copyHighlight = '';
const host = document.createElement('div'); host.className = 'peach-react'; host.dataset.copyEditor = ''; host.dataset.batchScope = '';
+ for (const type of ['pointerdown', 'click']) host.addEventListener(type, event => event.stopPropagation());
const bar = document.createElement('div'); bar.dataset.copyEditor = ''; bar.dataset.copyBar = '';
bar.dataset.selectionDock = ''; bar.dataset.glassPane = ''; bar.setAttribute('role', 'group'); bar.setAttribute('aria-label', '文案编辑');
const hint = document.createElement('span'); hint.id = 'peach-copy-hint'; hint.hidden = true; hint.textContent = '点击文字修改,回车或点别处保存,Esc 取消;暂停编辑后可操作页面。';
@@ -77,6 +79,13 @@
});
button('退出编辑', () => { if (saving) return; editor.commit(true); const url = new URL(location.href); url.searchParams.delete('edit'); location.href = url; });
host.append(hint, bar); document.body.append(highlight, host);
+ const modalHost = () => [...document.querySelectorAll('dialog:modal')].at(-1) || document.body;
+ function placeTools() {
+ const parent = modalHost();
+ for (const node of [highlight, host]) if (node.parentElement !== parent) parent.append(node);
+ }
+ new MutationObserver(placeTools).observe(document.body, { childList: true, subtree: true, attributes: true, attributeFilter: ['open'] });
+ placeTools();
if (source) {
const position = sessionStorage.getItem('peach.copy-scroll');
if (position !== null) { sessionStorage.removeItem('peach.copy-scroll'); requestAnimationFrame(() => scrollTo(0, Number(position))); }
@@ -133,7 +142,7 @@
const select = document.createElement('select'); select.dataset.copyEditor = ''; select.dataset.copyChoice = ''; select.setAttribute('aria-label', '文案来源');
select.add(new Option('请选择文案来源', '')); candidates.forEach((x, i) => select.add(new Option(`${x.file}:${x.line}`, String(i))));
Object.assign(select.style, { left: Math.max(16, Math.min(rect.left, innerWidth - 300)) + 'px', top: Math.max(16, Math.min(rect.bottom + 8, innerHeight - 60)) + 'px' });
- document.body.append(select); select.focus(); say('这段文案有多个来源,请选择要修改的位置');
+ modalHost().append(select); select.focus(); say('这段文案有多个来源,请选择要修改的位置');
return new Promise(resolve => {
const finish = value => { select.remove(); document.removeEventListener('keydown', cancel, true); resolve(value); };
const cancel = event => { if (event.key === 'Escape') { event.preventDefault(); event.stopImmediatePropagation(); finish(null); } };
diff --git a/web/dist/peach-app.js b/web/dist/peach-app.js
index 569a1b82a..b00e85347 100644
--- a/web/dist/peach-app.js
+++ b/web/dist/peach-app.js
@@ -2,7 +2,7 @@
(function() {
try {
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {}, t = new e.Error().stack;
- t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "a6ce9c81-2e06-429f-9d24-89ad890ebc74", e._sentryDebugIdIdentifier = "sentry-dbid-a6ce9c81-2e06-429f-9d24-89ad890ebc74");
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "996b4e20-fb58-48de-b2f7-54a3417ab481", e._sentryDebugIdIdentifier = "sentry-dbid-996b4e20-fb58-48de-b2f7-54a3417ab481");
} catch {}
})();
var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), s = (e, n) => {
@@ -934,9 +934,9 @@ var _ = /* @__PURE__ */ o(((e) => {
switch (xe(we, t), xe(Ce, e), xe(Se, null), t.nodeType) {
case 9:
case 11:
- e = (e = t.documentElement) && (e = e.namespaceURI) ? yp(e) : 0;
+ e = (e = t.documentElement) && (e = e.namespaceURI) ? vp(e) : 0;
break;
- default: if (e = t.tagName, t = t.namespaceURI) t = yp(t), e = bp(t, e);
+ default: if (e = t.tagName, t = t.namespaceURI) t = vp(t), e = yp(t, e);
else switch (e) {
case "svg":
e = 1;
@@ -954,12 +954,12 @@ var _ = /* @__PURE__ */ o(((e) => {
}
function Oe(e) {
var t = e.memoizedState;
- t !== null && (gh._currentValue = t.memoizedState, xe(Te, e)), t = Se.current;
- var n = bp(t, e.type);
+ t !== null && (hh._currentValue = t.memoizedState, xe(Te, e)), t = Se.current;
+ var n = yp(t, e.type);
t !== n && (xe(Ce, e), xe(Se, n));
}
function ke(e) {
- Ce.current === e && (be(Se), be(Ce)), Te.current === e && (be(Te), gh._currentValue = ge);
+ Ce.current === e && (be(Se), be(Ce)), Te.current === e && (be(Te), hh._currentValue = ge);
}
var Ae, je;
function Me(e) {
@@ -1268,7 +1268,7 @@ var _ = /* @__PURE__ */ o(((e) => {
}
function xt() {
var e = he.p;
- return e === 0 ? (e = window.event, e === void 0 ? 32 : Mh(e.type)) : e;
+ return e === 0 ? (e = window.event, e === void 0 ? 32 : jh(e.type)) : e;
}
function St(e, t) {
var n = he.p;
@@ -1287,9 +1287,9 @@ var _ = /* @__PURE__ */ o(((e) => {
if (t = e[wt]) return t;
for (var n = e.parentNode; n;) {
if (t = n[Et] || n[wt]) {
- if (n = t.alternate, t.child !== null || n !== null && n.child !== null) for (e = xm(e); e !== null;) {
+ if (n = t.alternate, t.child !== null || n !== null && n.child !== null) for (e = bm(e); e !== null;) {
if (n = e[wt]) return n;
- e = xm(e);
+ e = bm(e);
}
return t;
}
@@ -1654,7 +1654,7 @@ var _ = /* @__PURE__ */ o(((e) => {
try {
return e(t);
} finally {
- if (Cn = !1, (bn !== null || xn !== null) && (Gd(), bn && (t = bn, e = xn, xn = bn = null, Sn(t), e))) for (t = 0; t < e.length; t++) Sn(e[t]);
+ if (Cn = !1, (bn !== null || xn !== null) && (Wd(), bn && (t = bn, e = xn, xn = bn = null, Sn(t), e))) for (t = 0; t < e.length; t++) Sn(e[t]);
}
}
function Tn(e, t) {
@@ -1963,14 +1963,14 @@ var _ = /* @__PURE__ */ o(((e) => {
return t === "input" ? !!vr[e.type] : t === "textarea";
}
function br(e, t, n, r) {
- bn ? xn ? xn.push(r) : xn = [r] : bn = r, t = np(t, "onChange"), 0 < t.length && (n = new In("onChange", "change", null, n, r), e.push({
+ bn ? xn ? xn.push(r) : xn = [r] : bn = r, t = tp(t, "onChange"), 0 < t.length && (n = new In("onChange", "change", null, n, r), e.push({
event: n,
listeners: t
}));
}
var xr = null, Sr = null;
function Cr(e) {
- Jf(e, 0);
+ qf(e, 0);
}
function wr(e) {
if (en(It(e))) return e;
@@ -2095,7 +2095,7 @@ var _ = /* @__PURE__ */ o(((e) => {
anchorOffset: r.anchorOffset,
focusNode: r.focusNode,
focusOffset: r.focusOffset
- }), Jr && Rr(Jr, r) || (Jr = r, r = np(qr, "onSelect"), 0 < r.length && (t = new In("onSelect", "select", null, t, n), e.push({
+ }), Jr && Rr(Jr, r) || (Jr = r, r = tp(qr, "onSelect"), 0 < r.length && (t = new In("onSelect", "select", null, t, n), e.push({
event: t,
listeners: r
}), t.target = Kr)));
@@ -2130,13 +2130,13 @@ var _ = /* @__PURE__ */ o(((e) => {
function pi(e, t) {
if (e.name != null && e.name !== "auto") return e.name;
if (t.autoName !== null) return t.autoName;
- e = Ed.identifierPrefix;
+ e = Td.identifierPrefix;
var n = fi++;
return e = "_" + e + "t_" + n.toString(32) + "_", t.autoName = e;
}
function mi(e) {
if (e == null || typeof e == "string") return e;
- var t = null, n = Pd;
+ var t = null, n = Nd;
if (n !== null) for (var r = 0; r < n.length; r++) {
var i = e[n[r]];
if (i != null) {
@@ -2197,7 +2197,7 @@ var _ = /* @__PURE__ */ o(((e) => {
return e.tag === 3 ? (a = e.stateNode, i && t !== null && (i = 31 - et(n), e = a.hiddenUpdates, r = e[i], r === null ? e[i] = [t] : r.push(t), t.lane = n | 536870912), a) : null;
}
function Ti(e) {
- if (50 < Fd) throw Fd = 0, Id = null, Error(i(185));
+ if (50 < Pd) throw Pd = 0, Fd = null, Error(i(185));
for (var t = e.return; t !== null;) e = t, t = e.return;
return e.tag === 3 ? e.stateNode : null;
}
@@ -2229,7 +2229,7 @@ var _ = /* @__PURE__ */ o(((e) => {
function Mi(e, t, n, r, a, o) {
var s = 0;
if (r = e, typeof r == "function") ki(r) && (s = 1);
- else if (typeof r == "string") s = nh(e, n, Se.current) ? 26 : e === "html" || e === "head" || e === "body" ? 27 : 5;
+ else if (typeof r == "string") s = th(e, n, Se.current) ? 26 : e === "html" || e === "head" || e === "body" ? 27 : 5;
else a: switch (r) {
case ie: return e = Oi(31, n, t, a), e.elementType = ie, e.lanes = o, e;
case j: return Ni(n.children, a, o, t);
@@ -2335,37 +2335,37 @@ var _ = /* @__PURE__ */ o(((e) => {
var t = e.stateNode, n = e.type, r = e.memoizedProps;
switch (t[wt] = e, t[Tt] = r, n) {
case "dialog":
- Yf("cancel", t), Yf("close", t);
+ Jf("cancel", t), Jf("close", t);
break;
case "iframe":
case "object":
case "embed":
- Yf("load", t);
+ Jf("load", t);
break;
case "video":
case "audio":
- for (n = 0; n < Kf.length; n++) Yf(Kf[n], t);
+ for (n = 0; n < Gf.length; n++) Jf(Gf[n], t);
break;
case "source":
- Yf("error", t);
+ Jf("error", t);
break;
case "img":
case "image":
case "link":
- Yf("error", t), Yf("load", t);
+ Jf("error", t), Jf("load", t);
break;
case "details":
- Yf("toggle", t);
+ Jf("toggle", t);
break;
case "input":
- Yf("invalid", t), rn(t, r.value, r.defaultValue, r.checked, r.defaultChecked, r.type, r.name, !0);
+ Jf("invalid", t), rn(t, r.value, r.defaultValue, r.checked, r.defaultChecked, r.type, r.name, !0);
break;
case "select":
- Yf("invalid", t);
+ Jf("invalid", t);
break;
- case "textarea": Yf("invalid", t), cn(t, r.value, r.defaultValue, r.children);
+ case "textarea": Jf("invalid", t), cn(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 || cp(t.textContent, n) ? (r.popover != null && (Yf("beforetoggle", t), Yf("toggle", t)), r.onScroll != null && Yf("scroll", t), r.onScrollEnd != null && Yf("scrollend", t), r.onClick != null && (t.onclick = _n), t = !0) : t = !1, t || aa(e, !0);
+ 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 = _n), t = !0) : t = !1, t || aa(e, !0);
}
function sa(e) {
for ($i = e.return; $i;) switch ($i.tag) {
@@ -2385,13 +2385,13 @@ var _ = /* @__PURE__ */ o(((e) => {
if (e !== $i) return !1;
if (!ta) return sa(e), ta = !0, !1;
var t = e.tag, n;
- if ((n = t !== 3 && t !== 27) && ((n = t === 5) && (n = e.type, n = n === "form" || n === "button" || Sp(e.type, e.memoizedProps)), n = !n), n && ea && aa(e), sa(e), t === 13) {
+ 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 && ea && aa(e), sa(e), t === 13) {
if (e = e.memoizedState, e = e === null ? null : e.dehydrated, !e) throw Error(i(317));
- ea = bm(e);
+ ea = ym(e);
} else if (t === 31) {
if (e = e.memoizedState, e = e === null ? null : e.dehydrated, !e) throw Error(i(317));
- ea = bm(e);
- } else t === 27 ? (t = ea, jp(e.type) ? (e = ym, ym = null, ea = e) : ea = t) : ea = $i ? vm(e.stateNode.nextSibling) : null;
+ ea = ym(e);
+ } else t === 27 ? (t = ea, Ap(e.type) ? (e = vm, vm = null, ea = e) : ea = t) : ea = $i ? _m(e.stateNode.nextSibling) : null;
return !0;
}
function la() {
@@ -2399,7 +2399,7 @@ var _ = /* @__PURE__ */ o(((e) => {
}
function ua() {
var e = na;
- return e !== null && (vd === null ? vd = e : vd.push.apply(vd, e), na = null), e;
+ return e !== null && (_d === null ? _d = e : _d.push.apply(_d, e), na = null), e;
}
function da(e) {
na === null ? na = [e] : na.push(e);
@@ -2469,7 +2469,7 @@ var _ = /* @__PURE__ */ o(((e) => {
}
} else if (a === Te.current) {
if (s = a.alternate, s === null) throw Error(i(387));
- s.memoizedState.memoizedState !== a.memoizedState.memoizedState && (e === null ? e = [gh] : e.push(gh));
+ s.memoizedState.memoizedState !== a.memoizedState.memoizedState && (e === null ? e = [hh] : e.push(hh));
}
a = a.return;
}
@@ -2556,7 +2556,7 @@ var _ = /* @__PURE__ */ o(((e) => {
function Ra(e, t) {
if (Pa === null) {
var n = Pa = [];
- Fa = 0, Ia = Vf(), La = {
+ Fa = 0, Ia = Bf(), La = {
status: "pending",
value: void 0,
then: function(e) {
@@ -2592,9 +2592,9 @@ var _ = /* @__PURE__ */ o(((e) => {
}
var Va = me.S;
me.S = function(e, t) {
- if (xd = He(), typeof t == "object" && t && typeof t.then == "function" && Ra(e, t), Ma !== null) for (var n = Df; n !== null;) ja(n, Ma), n = n.next;
+ if (bd = He(), typeof t == "object" && t && typeof t.then == "function" && Ra(e, t), Ma !== null) for (var n = Ef; n !== null;) ja(n, Ma), n = n.next;
if (n = e.types, n !== null) {
- for (var r = Df; r !== null;) ja(r, n), r = r.next;
+ for (var r = Ef; 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++) {
@@ -3056,7 +3056,7 @@ var _ = /* @__PURE__ */ o(((e) => {
for (var t = e; t !== null;) {
if (t.tag === 13) {
var n = t.memoizedState;
- if (n !== null && (n = n.dehydrated, n === null || hm(n) || gm(n))) return t;
+ if (n !== null && (n = n.dehydrated, n === null || mm(n) || hm(n))) return t;
} else if (t.tag === 19 && t.memoizedProps.revealOrder !== "independent") {
if (t.flags & 128) return t;
} else if (t.child !== null) {
@@ -3308,7 +3308,7 @@ var _ = /* @__PURE__ */ o(((e) => {
}
function bs(e) {
var t = Ci(e, 2);
- t !== null && Bd(t, e, 2);
+ t !== null && zd(t, e, 2);
}
function xs(e) {
var t = as();
@@ -3408,14 +3408,14 @@ var _ = /* @__PURE__ */ o(((e) => {
if (ta) {
if (ea) {
b: {
- for (var i = ea, a = ra; i.nodeType !== 8;) if (!a || (i = vm(i.nextSibling), i === null)) {
+ for (var i = ea, a = ra; i.nodeType !== 8;) if (!a || (i = _m(i.nextSibling), i === null)) {
i = null;
break b;
}
a = i.data, i = a === "F!" || a === "F" ? i : null;
}
if (i) {
- ea = vm(i.nextSibling), r = i.data === "F!";
+ ea = _m(i.nextSibling), r = i.data === "F!";
break a;
}
}
@@ -3566,10 +3566,10 @@ var _ = /* @__PURE__ */ o(((e) => {
return n.memoizedState = [r, t], r;
}
function Xs(e, t, n) {
- return n === void 0 || zo & 1073741824 && !(id & 261930) ? e.memoizedState = t : (e.memoizedState = n, e = Rd(), Bo.lanes |= e, fd |= e, n);
+ return n === void 0 || zo & 1073741824 && !(id & 261930) ? e.memoizedState = t : (e.memoizedState = n, e = Ld(), Bo.lanes |= e, fd |= e, n);
}
function Zs(e, t, n, r) {
- return Lr(n, t) ? n : Co.current === null ? !(zo & 106) || zo & 1073741824 && !(id & 261930) ? (Nc = !0, e.memoizedState = n) : (e = Rd(), Bo.lanes |= e, fd |= e, t) : (e = Xs(e, n, r), Lr(e, t) || (Nc = !0), e);
+ return Lr(n, t) ? n : Co.current === null ? !(zo & 106) || zo & 1073741824 && !(id & 261930) ? (Nc = !0, e.memoizedState = n) : (e = Ld(), Bo.lanes |= e, fd |= e, t) : (e = Xs(e, n, r), Lr(e, t) || (Nc = !0), e);
}
function Qs(e, t, n, r, i) {
var a = he.p;
@@ -3578,13 +3578,13 @@ var _ = /* @__PURE__ */ o(((e) => {
s.types = o === null ? null : o.types, me.T = s, uc(e, !1, t, n);
try {
var c = i(), l = me.S;
- l !== null && l(s, c), typeof c == "object" && c && typeof c.then == "function" ? lc(e, t, Ba(c, r), Ld(e)) : lc(e, t, r, Ld(e));
+ l !== null && l(s, c), typeof c == "object" && c && typeof c.then == "function" ? lc(e, t, Ba(c, r), Id(e)) : lc(e, t, r, Id(e));
} catch (n) {
lc(e, t, {
then: function() {},
status: "rejected",
reason: n
- }, Ld());
+ }, Id());
} finally {
he.p = a, o !== null && s.types !== null && (o.types = s.types), me.T = o;
}
@@ -3630,10 +3630,10 @@ var _ = /* @__PURE__ */ o(((e) => {
}
function nc(e) {
var t = tc(e);
- t.next === null && (t = e.alternate.memoizedState), lc(e, t.next.queue, {}, Ld());
+ t.next === null && (t = e.alternate.memoizedState), lc(e, t.next.queue, {}, Id());
}
function rc() {
- return Sa(gh);
+ return Sa(hh);
}
function ic() {
return os().memoizedState;
@@ -3646,17 +3646,17 @@ var _ = /* @__PURE__ */ o(((e) => {
switch (t.tag) {
case 24:
case 3:
- var n = Ld();
+ var n = Id();
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;
+ r !== null && (zd(r, t, n), go(r, t, n)), t = { cache: ka() }, e.payload = t;
return;
}
t = t.return;
}
}
function sc(e, t, n) {
- var r = Ld();
+ var r = Id();
n = {
lane: r,
revertLane: 0,
@@ -3665,10 +3665,10 @@ var _ = /* @__PURE__ */ o(((e) => {
hasEagerState: !1,
eagerState: null,
next: null
- }, dc(e) ? fc(t, n) : (n = Si(e, t, n, r), n !== null && (Bd(n, e, r), pc(n, t, r)));
+ }, dc(e) ? fc(t, n) : (n = Si(e, t, n, r), n !== null && (zd(n, e, r), pc(n, t, r)));
}
function cc(e, t, n) {
- lc(e, t, n, Ld());
+ lc(e, t, n, Id());
}
function lc(e, t, n, r) {
var i = {
@@ -3687,14 +3687,14 @@ var _ = /* @__PURE__ */ o(((e) => {
var o = t.lastRenderedState, s = a(o, n);
if (i.hasEagerState = !0, i.eagerState = s, Lr(s, o)) return xi(e, t, i, 0), nd === null && bi(), !1;
} catch {}
- if (n = Si(e, t, i, r), n !== null) return Bd(n, e, r), pc(n, t, r), !0;
+ if (n = Si(e, t, i, r), n !== null) return zd(n, e, r), pc(n, t, r), !0;
}
return !1;
}
function uc(e, t, n, r) {
if (r = {
lane: 2,
- revertLane: Vf(),
+ revertLane: Bf(),
gesture: null,
action: r,
hasEagerState: !1,
@@ -3702,7 +3702,7 @@ var _ = /* @__PURE__ */ o(((e) => {
next: null
}, dc(e)) {
if (t) throw Error(i(479));
- } else t = Si(e, n, r, 2), t !== null && Bd(t, e, 2);
+ } else t = Si(e, n, r, 2), t !== null && zd(t, e, 2);
}
function dc(e) {
var t = e.alternate;
@@ -3940,18 +3940,18 @@ var _ = /* @__PURE__ */ o(((e) => {
var yc = {
enqueueSetState: function(e, t, n) {
e = e._reactInternals;
- 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));
+ var r = Id(), i = mo(r);
+ i.payload = t, n != null && (i.callback = n), t = ho(e, i, r), t !== null && (zd(t, e, r), go(t, e, r));
},
enqueueReplaceState: function(e, t, n) {
e = e._reactInternals;
- 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));
+ var r = Id(), i = mo(r);
+ i.tag = 1, i.payload = t, n != null && (i.callback = n), t = ho(e, i, r), t !== null && (zd(t, e, r), go(t, e, r));
},
enqueueForceUpdate: function(e, t) {
e = e._reactInternals;
- 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));
+ var n = Id(), r = mo(n);
+ r.tag = 2, t != null && (r.callback = t), t = ho(e, r, n), t !== null && (zd(t, e, n), go(t, e, n));
}
};
function bc(e, t, n, r, i, a, o) {
@@ -4018,7 +4018,7 @@ var _ = /* @__PURE__ */ o(((e) => {
}
var o = n.stateNode;
o !== null && typeof o.componentDidCatch == "function" && (e.callback = function() {
- Dc(t, n, r), typeof i != "function" && (wd === null ? wd = /* @__PURE__ */ new Set([this]) : wd.add(this));
+ Dc(t, n, r), typeof i != "function" && (Cd === null ? Cd = /* @__PURE__ */ new Set([this]) : Cd.add(this));
var e = r.stack;
this.componentDidCatch(r.value, { componentStack: e === null ? "" : e });
});
@@ -4029,26 +4029,26 @@ var _ = /* @__PURE__ */ o(((e) => {
switch (n.tag) {
case 31:
case 13:
- 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 19: return ko === null ? Zd() : 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), bf(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)), xf(e, r, a)), !1;
+ }, n.updateQueue = t) : (n = t.retryQueue, n === null ? t.retryQueue = /* @__PURE__ */ new Set([r]) : n.add(r)), bf(e, r, a)), !1;
}
throw Error(i(435, n.tag));
}
- return xf(e, r, a), Qd(), !1;
+ return bf(e, r, a), Zd(), !1;
}
if (ta) return t = Oo.current, t === null ? (r !== ia && (t = Error(i(423), { cause: r }), da(Ri(t, n))), e = e.current.alternate, e.flags |= 65536, a &= -a, e.lanes |= a, r = Ri(r, n), a = Oc(e.stateNode, r, a), _o(e, a), dd !== 4 && (dd = 2)) : (!(t.flags & 65536) && (t.flags |= 256), t.flags |= 65536, t.lanes = a, r !== ia && (e = Error(i(422), { cause: r }), da(Ri(e, n)))), !1;
var o = Error(i(520), { cause: r });
- if (o = Ri(o, n), _d === null ? _d = [o] : _d.push(o), dd !== 4 && (dd = 2), t === null) return !0;
+ if (o = Ri(o, n), gd === null ? gd = [o] : gd.push(o), dd !== 4 && (dd = 2), t === null) return !0;
r = Ri(r, n), n = t;
do {
switch (n.tag) {
case 3: return n.flags |= 65536, e = a & -a, n.lanes |= e, e = Oc(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" && (wd === null || !wd.has(o)))) return n.flags |= 65536, a &= -a, n.lanes |= a, a = kc(a), Ac(a, e, n, r), _o(n, a), !1;
+ if (t = n.type, o = n.stateNode, !(n.flags & 128) && (typeof t.getDerivedStateFromError == "function" || o !== null && typeof o.componentDidCatch == "function" && (Cd === null || !Cd.has(o)))) return n.flags |= 65536, a &= -a, n.lanes |= a, a = kc(a), Ac(a, e, n, r), _o(n, a), !1;
break;
case 22: if (n.memoizedState !== null) return n.flags |= 65536, !1;
}
@@ -4148,7 +4148,7 @@ var _ = /* @__PURE__ */ o(((e) => {
baseLanes: 0,
cachePool: null
}, zc(null, e);
- if (jo(t), (e = ea) ? (e = mm(e, ra), e = e !== null && e.data === "&" ? e : null, e !== null && (t.memoizedState = {
+ if (jo(t), (e = ea) ? (e = pm(e, ra), e = e !== null && e.data === "&" ? e : null, e !== null && (t.memoizedState = {
dehydrated: e,
treeContext: Gi === null ? null : {
id: Ki,
@@ -4170,11 +4170,11 @@ var _ = /* @__PURE__ */ o(((e) => {
else throw Error(i(558));
} else if (Nc || ya(e, t, n, !1), a = (n & e.childLanes) !== 0, Nc || a) {
if (Co.current === null) {
- if (r = nd, r !== null && (s = vt(r, n), s !== 0 && s !== o.retryLane)) throw o.retryLane = s, Ci(e, s), Bd(r, e, s), Mc;
- Qd();
+ if (r = nd, r !== null && (s = vt(r, n), s !== 0 && s !== o.retryLane)) throw o.retryLane = s, Ci(e, s), zd(r, e, s), Mc;
+ Zd();
}
t = Hc(e, t, n);
- } else e = o.treeContext, ea = vm(s.nextSibling), $i = t, ta = !0, na = null, ra = !1, e !== null && Qi(t, e), t = Vc(t, r), t.flags |= 134221824;
+ } else e = o.treeContext, ea = _m(s.nextSibling), $i = t, ta = !0, na = null, ra = !1, e !== null && Qi(t, e), t = Vc(t, r), t.flags |= 134221824;
return t;
}
return e = Ai(e.child, {
@@ -4233,13 +4233,13 @@ var _ = /* @__PURE__ */ o(((e) => {
};
}
function Zc(e, t, n) {
- return e = e === null ? 0 : e.childLanes & ~n, t && (e |= hd), e;
+ return e = e === null ? 0 : e.childLanes & ~n, t && (e |= md), e;
}
function Qc(e, t, n) {
var r = t.pendingProps, i = !1, a = !!(t.flags & 128), o;
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 (ta) {
- if (i ? Ao(t) : No(), (e = ea) ? (e = mm(e, ra), e = e !== null && e.data !== "&" ? e : null, e !== null && (t.memoizedState = {
+ if (i ? Ao(t) : No(), (e = ea) ? (e = pm(e, ra), e = e !== null && e.data !== "&" ? e : null, e !== null && (t.memoizedState = {
dehydrated: e,
treeContext: Gi === null ? null : {
id: Ki,
@@ -4248,7 +4248,7 @@ var _ = /* @__PURE__ */ o(((e) => {
retryLane: 536870912,
hydrationErrors: null
}, n = Fi(e), n.return = t, t.child = n, $i = t, ea = null)) : e = null, e === null) throw aa(t);
- return t.lanes = gm(e) ? 32 : 536870912, null;
+ return t.lanes = hm(e) ? 32 : 536870912, null;
}
return a = r.children, r = r.fallback, i ? (No(), i = t.mode, a = el({
mode: "hidden",
@@ -4291,7 +4291,7 @@ var _ = /* @__PURE__ */ o(((e) => {
mode: "visible",
children: a.children
}, s), o = Ni(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 = Xc(c), a.childLanes = Zc(e, r, c), t.memoizedState = Yc, zc(null, a)) : (No(), t.child = e.child, t.flags |= 128, null);
- if (Ao(t), gm(o)) {
+ if (Ao(t), hm(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, da({
value: a,
@@ -4301,10 +4301,10 @@ var _ = /* @__PURE__ */ o(((e) => {
}
if (Nc || ya(e, t, c, !1), r = (c & e.childLanes) !== 0, Nc || r) {
if (Co.current !== null) return tl(e, t, c);
- if (r = nd, r !== null && (a = vt(r, c), a !== 0 && a !== s.retryLane)) throw s.retryLane = a, Ci(e, a), Bd(r, e, a), Mc;
- return hm(o) || Qd(), tl(e, t, c);
+ if (r = nd, r !== null && (a = vt(r, c), a !== 0 && a !== s.retryLane)) throw s.retryLane = a, Ci(e, a), zd(r, e, a), Mc;
+ return mm(o) || Zd(), tl(e, t, c);
}
- return hm(o) ? (t.flags |= 192, t.child = e.child, null) : (e = s.treeContext, ea = vm(o.nextSibling), $i = t, ta = !0, na = null, ra = !1, e !== null && Qi(t, e), t = $c(t, a.children), t.flags |= 134221824, t);
+ return mm(o) ? (t.flags |= 192, t.child = e.child, null) : (e = s.treeContext, ea = _m(o.nextSibling), $i = t, ta = !0, na = null, ra = !1, e !== null && Qi(t, e), t = $c(t, a.children), t.flags |= 134221824, t);
}
function rl(e, t, n) {
e.lanes |= t;
@@ -4503,7 +4503,7 @@ var _ = /* @__PURE__ */ o(((e) => {
break;
default: e = e.nodeName === "HTML" ? e.ownerDocument.body : e;
}
- for (ea = vm(e.firstChild), $i = t, ta = !0, na = null, ra = !0, n = lo(t, null, r, n), t.child = n; n;) n.flags = n.flags & -3 | 134221824, n = n.sibling;
+ for (ea = _m(e.firstChild), $i = t, ta = !0, na = null, ra = !0, n = lo(t, null, r, n), t.child = n; n;) n.flags = n.flags & -3 | 134221824, n = n.sibling;
} else {
if (la(), r === a) {
t = ll(e, t, n);
@@ -4514,10 +4514,10 @@ var _ = /* @__PURE__ */ o(((e) => {
t = t.child;
}
return t;
- case 26: return Wc(e, t), e === null ? (n = Hm(t.type, null, t.pendingProps, null)) ? t.memoizedState = n : ta || (t.stateNode = xp(t.type, t.pendingProps, we.current, t)) : t.memoizedState = Hm(t.type, e.memoizedProps, t.pendingProps, e.memoizedState), null;
- case 27: return Oe(t), e === null && ta && (r = t.stateNode = wm(t.type, t.pendingProps, we.current), $i = t, ra = !0, a = ea, jp(t.type) ? (ym = a, ea = vm(r.firstChild)) : ea = a), Pc(e, t, t.pendingProps.children, n), Wc(e, t), e === null && (t.flags |= 4194304), t.child;
- case 5: return e === null && ta && ((a = r = ea) && (r = fm(r, t.type, t.pendingProps, ra), r === null ? a = !1 : (t.stateNode = r, $i = t, ea = vm(r.firstChild), ra = !1, a = !0)), a || aa(t)), Oe(t), a = t.type, o = t.pendingProps, s = e === null ? null : e.memoizedProps, r = o.children, Sp(a, o) ? r = null : s !== null && Sp(a, s) && (t.flags |= 32), t.memoizedState !== null && (a = Qo(e, t, ts, null, null, n), gh._currentValue = a), Wc(e, t), Pc(e, t, r, n), t.child;
- case 6: return e === null && ta && ((e = n = ea) && (n = pm(n, t.pendingProps, ra), n === null ? e = !1 : (t.stateNode = n, $i = t, ea = null, e = !0)), e || aa(t)), null;
+ case 26: return Wc(e, t), e === null ? (n = Vm(t.type, null, t.pendingProps, null)) ? t.memoizedState = n : ta || (t.stateNode = bp(t.type, t.pendingProps, we.current, t)) : t.memoizedState = Vm(t.type, e.memoizedProps, t.pendingProps, e.memoizedState), null;
+ case 27: return Oe(t), e === null && ta && (r = t.stateNode = Cm(t.type, t.pendingProps, we.current), $i = t, ra = !0, a = ea, Ap(t.type) ? (vm = a, ea = _m(r.firstChild)) : ea = a), Pc(e, t, t.pendingProps.children, n), Wc(e, t), e === null && (t.flags |= 4194304), t.child;
+ case 5: return e === null && ta && ((a = r = ea) && (r = dm(r, t.type, t.pendingProps, ra), r === null ? a = !1 : (t.stateNode = r, $i = t, ea = _m(r.firstChild), ra = !1, a = !0)), a || aa(t)), Oe(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 = Qo(e, t, ts, null, null, n), hh._currentValue = a), Wc(e, t), Pc(e, t, r, n), t.child;
+ case 6: return e === null && ta && ((e = n = ea) && (n = fm(n, t.pendingProps, ra), n === null ? e = !1 : (t.stateNode = n, $i = t, ea = null, e = !0)), e || aa(t)), null;
case 13: return Qc(e, t, n);
case 4: return Ee(t, t.stateNode.containerInfo), r = t.pendingProps, e === null ? t.child = co(t, null, r, n) : Pc(e, t, r, n), t.child;
case 11: return Fc(e, t, t.type, t.pendingProps, n);
@@ -4553,23 +4553,23 @@ var _ = /* @__PURE__ */ o(((e) => {
}
function ml(e, t, n, r, i) {
var a;
- if ((a = !!(e.mode & 32)) && (a = n === null ? rh(t, r) : rh(t, r) && (r.src !== n.src || r.srcSet !== n.srcSet)), a) {
+ if ((a = !!(e.mode & 32)) && (a = n === null ? nh(t, r) : nh(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 (Yd()) e.flags |= 8192;
+ else if (Jd()) e.flags |= 8192;
else throw $a = Ya, qa;
}
} else e.flags &= -16777217;
}
function hl(e, t) {
if (t.type !== "stylesheet" || t.state.loading & 4) e.flags &= -16777217;
- else if (e.flags |= 16777216, !ih(t)) {
- if (Yd()) e.flags |= 8192;
+ else if (e.flags |= 16777216, !rh(t)) {
+ if (Jd()) e.flags |= 8192;
else throw $a = Ya, qa;
}
}
function gl(e, t) {
- t !== null && (e.flags |= 4), e.flags & 16384 && (t = e.tag === 22 ? 536870912 : ft(), e.lanes |= t, gd |= t);
+ t !== null && (e.flags |= 4), e.flags & 16384 && (t = e.tag === 22 ? 536870912 : ft(), e.lanes |= t, hd |= t);
}
function _l(e, t) {
if (!ta) switch (e.tailMode) {
@@ -4613,7 +4613,7 @@ var _ = /* @__PURE__ */ o(((e) => {
if (t.stateNode === null) throw Error(i(166));
return vl(t), t.subtreeFlags &= -33554433, null;
}
- e = Se.current, ca(t) ? oa(t, e) : (e = wm(a, r, n), t.stateNode = e, pl(t));
+ e = Se.current, ca(t) ? oa(t, e) : (e = Cm(a, r, n), t.stateNode = e, pl(t));
}
return vl(t), t.subtreeFlags &= -33554433, null;
case 5:
@@ -4625,7 +4625,7 @@ var _ = /* @__PURE__ */ o(((e) => {
}
if (o = Se.current, ca(t)) oa(t, o);
else {
- var s = vp(we.current);
+ var s = _p(we.current);
switch (o) {
case 1:
o = s.createElementNS("http://www.w3.org/2000/svg", a);
@@ -4664,7 +4664,7 @@ var _ = /* @__PURE__ */ o(((e) => {
s.sibling.return = s.return, s = s.sibling;
}
t.stateNode = o;
- a: switch (dp(o, a, r), a) {
+ a: switch (up(o, a, r), a) {
case "button":
case "input":
case "select":
@@ -4689,8 +4689,8 @@ var _ = /* @__PURE__ */ o(((e) => {
case 27:
case 5: r = a.memoizedProps;
}
- e[wt] = t, e = !!(e.nodeValue === n || r !== null && !0 === r.suppressHydrationWarning || cp(e.nodeValue, n)), e || aa(t, !0);
- } else e = vp(e).createTextNode(r), e[wt] = t, t.stateNode = e;
+ e[wt] = t, e = !!(e.nodeValue === n || r !== null && !0 === r.suppressHydrationWarning || sp(e.nodeValue, n)), e || aa(t, !0);
+ } else e = _p(e).createTextNode(r), e[wt] = t, t.stateNode = e;
}
return vl(t), null;
case 31:
@@ -4720,7 +4720,7 @@ var _ = /* @__PURE__ */ o(((e) => {
if (!a) return t.flags & 256 ? (Po(t), t) : (Po(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), gl(t, t.updateQueue), vl(t), null);
- case 4: return De(), e === null && Qf(t.stateNode.containerInfo), t.flags |= 67108864, vl(t), null;
+ case 4: return De(), e === null && Zf(t.stateNode.containerInfo), t.flags |= 67108864, vl(t), null;
case 10: return ga(t.type), vl(t), null;
case 19:
if (Lo(t), r = t.memoizedState, r === null) return vl(t), null;
@@ -4734,13 +4734,13 @@ var _ = /* @__PURE__ */ o(((e) => {
}
e = e.sibling;
}
- r.tail !== null && He() > Sd && (t.flags |= 128, a = !0, _l(r, !1), t.lanes = 4194304);
+ r.tail !== null && He() > xd && (t.flags |= 128, a = !0, _l(r, !1), t.lanes = 4194304);
}
} else {
if (!a) {
if (e = Ro(o), e !== null) {
if (t.flags |= 128, a = !0, e = e.updateQueue, t.updateQueue = e, gl(t, e), _l(r, !0), r.tail === null && r.tailMode !== "collapsed" && r.tailMode !== "visible" && !o.alternate && !ta) return vl(t), null;
- } else 2 * He() - r.renderingStartTime > Sd && n !== 536870912 && (t.flags |= 128, a = !0, _l(r, !1), t.lanes = 4194304);
+ } else 2 * He() - r.renderingStartTime > xd && n !== 536870912 && (t.flags |= 128, a = !0, _l(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);
}
@@ -4844,7 +4844,7 @@ var _ = /* @__PURE__ */ o(((e) => {
} while (n !== i);
}
} catch (e) {
- bf(t, t.return, e);
+ yf(t, t.return, e);
}
}
function W(e, t, n) {
@@ -4862,7 +4862,7 @@ var _ = /* @__PURE__ */ o(((e) => {
try {
l();
} catch (e) {
- bf(i, c, e);
+ yf(i, c, e);
}
}
}
@@ -4870,7 +4870,7 @@ var _ = /* @__PURE__ */ o(((e) => {
} while (r !== a);
}
} catch (e) {
- bf(t, t.return, e);
+ yf(t, t.return, e);
}
}
function Cl(e) {
@@ -4880,7 +4880,7 @@ var _ = /* @__PURE__ */ o(((e) => {
try {
So(t, n);
} catch (t) {
- bf(e, e.return, t);
+ yf(e, e.return, t);
}
}
}
@@ -4889,7 +4889,7 @@ var _ = /* @__PURE__ */ o(((e) => {
try {
n.componentWillUnmount();
} catch (n) {
- bf(e, t, n);
+ yf(e, t, n);
}
}
function Tl(e, t) {
@@ -4904,12 +4904,12 @@ var _ = /* @__PURE__ */ o(((e) => {
break;
case 30:
var i = e.stateNode, a = pi(e.memoizedProps, i);
- (i.ref === null || i.ref.name !== a) && (i.ref = Up(a)), r = i.ref;
+ (i.ref === null || i.ref.name !== a) && (i.ref = Hp(a)), r = i.ref;
break;
case 7:
if (e.stateNode === null) {
- var o = new Wp(e);
- f(e.child, !1, sm, o, void 0, void 0), e.stateNode = o;
+ var o = new Up(e);
+ f(e.child, !1, om, o, void 0, void 0), e.stateNode = o;
}
r = e.stateNode;
break;
@@ -4918,7 +4918,7 @@ var _ = /* @__PURE__ */ o(((e) => {
typeof n == "function" ? e.refCleanup = n(r) : n.current = r;
}
} catch (n) {
- bf(e, t, n);
+ yf(e, t, n);
}
}
function El(e, t) {
@@ -4927,26 +4927,26 @@ var _ = /* @__PURE__ */ o(((e) => {
if (typeof r == "function") try {
r();
} catch (n) {
- bf(e, t, n);
+ yf(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) {
- bf(e, t, n);
+ yf(e, t, n);
}
else n.current = null;
}
}
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++) lm(e.stateNode, t[n]);
+ 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 Ol(e) {
- for (var t = e.return; t !== null && (jl(t) && lm(e.stateNode, t.stateNode), !Al(t));) t = t.return;
+ for (var t = e.return; t !== null && (jl(t) && cm(e.stateNode, t.stateNode), !Al(t));) t = t.return;
}
function kl(e) {
- for (var t = e.return; t !== null && (jl(t) && um(e.stateNode, t.stateNode), !Al(t));) t = t.return;
+ for (var t = e.return; t !== null && (jl(t) && lm(e.stateNode, t.stateNode), !Al(t));) t = t.return;
}
function Al(e) {
return e.tag === 5 || e.tag === 3 || e.tag === 27;
@@ -4967,19 +4967,19 @@ var _ = /* @__PURE__ */ o(((e) => {
case "img": n.src ? r.src = n.src : n.srcSet && (r.srcset = n.srcSet);
}
} catch (t) {
- bf(e, e.return, t);
+ yf(e, e.return, t);
}
}
function Nl(e, t, n) {
try {
var r = e.stateNode;
- pp(r, e.type, n, t), r[Tt] = t;
+ fp(r, e.type, n, t), r[Tt] = t;
} catch (t) {
- bf(e, e.return, t);
+ yf(e, e.return, t);
}
}
function Pl(e) {
- return e.tag === 5 || e.tag === 3 || e.tag === 26 || e.tag === 27 && jp(e.type) || e.tag === 4;
+ return e.tag === 5 || e.tag === 3 || e.tag === 26 || e.tag === 27 && Ap(e.type) || e.tag === 4;
}
function Fl(e) {
a: for (;;) {
@@ -4988,7 +4988,7 @@ var _ = /* @__PURE__ */ o(((e) => {
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 && jp(e.type) || e.flags & 2 || e.child === null || e.tag === 4) continue a;
+ if (e.tag === 27 && Ap(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;
@@ -4997,20 +4997,20 @@ var _ = /* @__PURE__ */ o(((e) => {
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 = _n)), Dl(e, r), z = !0;
- else if (i !== 4 && (i === 27 && (Dl(e, r), r = null, jp(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;
+ else if (i !== 4 && (i === 27 && (Dl(e, r), r = null, Ap(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 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), Dl(e, r), z = !0;
- else if (i !== 4 && (i === 27 && (Dl(e, r), r = null, jp(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;
+ else if (i !== 4 && (i === 27 && (Dl(e, r), r = null, Ap(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 Rl(e) {
var t = e.stateNode, n = e.memoizedProps;
try {
for (var r = e.type, i = t.attributes; i.length;) t.removeAttributeNode(i[0]);
- dp(t, r, n), t[wt] = e, t[Tt] = n;
+ up(t, r, n), t[wt] = e, t[Tt] = n;
} catch (t) {
- bf(e, e.return, t);
+ yf(e, e.return, t);
}
}
var zl = !1, Bl = null;
@@ -5031,17 +5031,17 @@ var _ = /* @__PURE__ */ o(((e) => {
if (e.tag === 5) {
var o = e.stateNode;
if (r !== null) {
- var s = Lp(o);
+ var s = Ip(o);
r.push(s), s.view && (a = !0);
- } else a || Lp(o).view && (a = !0);
- zl = !0, Pp(o, Wl === 0 ? t : t + "_" + Wl, n), Wl++;
+ } else a || Ip(o).view && (a = !0);
+ zl = !0, Np(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 ql(e, t) {
- for (; e !== null;) e.tag === 5 ? Fp(e.stateNode, e.memoizedProps) : (e.tag !== 22 || e.memoizedState === null) && (e.tag === 30 && t || ql(e.child, t)), e = e.sibling;
+ for (; e !== null;) e.tag === 5 ? Pp(e.stateNode, e.memoizedProps) : (e.tag !== 22 || e.memoizedState === null) && (e.tag === 30 && t || ql(e.child, t)), e = e.sibling;
}
function Jl(e) {
if (e.subtreeFlags & 18874368) for (e = e.child; e !== null;) {
@@ -5057,7 +5057,7 @@ var _ = /* @__PURE__ */ o(((e) => {
function Yl(e, t) {
if (e.tag === 30) {
var n = e.stateNode, r = e.memoizedProps, i = pi(r, n), a = hi(r.default, n.paired ? r.share : r.enter);
- a === "none" ? Jl(e) : Gl(e, i, a, null, !1) ? (Jl(e), n.paired || t || zd(e, r.onEnter)) : ql(e.child, !1);
+ a === "none" ? Jl(e) : Gl(e, i, a, null, !1) ? (Jl(e), n.paired || t || Rd(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);
}
@@ -5072,7 +5072,7 @@ var _ = /* @__PURE__ */ o(((e) => {
var i = t.get(r);
if (i !== void 0) {
var a = hi(n.default, n.share);
- 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;
+ if (a !== "none" && (Gl(e, r, a, null, !1) ? (a = e.stateNode, i.paired = a, a.paired = i, Rd(e, n.onShare)) : ql(e.child, !1)), t.delete(r), t.size === 0) break;
}
}
}
@@ -5085,7 +5085,7 @@ var _ = /* @__PURE__ */ o(((e) => {
function Zl(e) {
if (e.tag === 30) {
var t = e.memoizedProps, n = pi(t, e.stateNode), r = Bl === null ? void 0 : Bl.get(n), i = hi(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);
+ i !== "none" && (Gl(e, n, i, null, !1) ? r === void 0 ? Rd(e, t.onExit) : (i = e.stateNode, r.paired = i, i.paired = r, Bl.delete(n), Rd(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);
}
@@ -5123,7 +5123,7 @@ var _ = /* @__PURE__ */ o(((e) => {
if (t.tag === 5) {
var c = t.stateNode;
if (a !== null && Wl < a.length) {
- var l = a[Wl], u = Lp(c);
+ var l = a[Wl], u = Ip(c);
(l.view || u.view) && (s = !0);
var d;
if (d = !(e.flags & 4)) {
@@ -5136,7 +5136,7 @@ var _ = /* @__PURE__ */ o(((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 && Pp(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++;
+ e.flags & 4 && Np(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;
}
@@ -5148,18 +5148,18 @@ var _ = /* @__PURE__ */ o(((e) => {
var n = e.memoizedProps, r = e.stateNode, i = pi(n, r), a = hi(n.default, n.update);
if (t) {
r = r.clones;
- var o = r === null ? null : r.map(Rp);
+ var o = r === null ? null : r.map(Lp);
} else o = e.memoizedState, e.memoizedState = null;
r = e;
var s = e.child;
- Wl = 0, i = nu(r, s, i, i, a, o, !1), e.flags & 4 && i && (t || zd(e, n.onUpdate));
+ Wl = 0, i = nu(r, s, i, i, a, o, !1), e.flags & 4 && i && (t || Rd(e, n.onUpdate));
} else e.subtreeFlags & 33554432 && ru(e, t);
e = e.sibling;
}
}
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, gp = Th, e = Ur(e), Wr(e)) {
+ if (e = e.containerInfo, hp = wh, e = Ur(e), Wr(e)) {
if ("selectionStart" in e) var r = {
start: e.selectionStart,
end: e.selectionEnd
@@ -5198,10 +5198,10 @@ var _ = /* @__PURE__ */ o(((e) => {
end: 0
};
} else r = null;
- for (_p = {
+ for (gp = {
focusedElem: e,
selectionRange: r
- }, Th = !1, n = (n & 335544064) === n, lu = t, t = n ? 9270 : 1024; lu !== null;) {
+ }, wh = !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 {
@@ -5235,18 +5235,18 @@ var _ = /* @__PURE__ */ o(((e) => {
var s = Sc(t.type, a);
n = o.getSnapshotBeforeUpdate(s, r), o.__reactInternalSnapshotBeforeUpdate = n;
} catch (e) {
- bf(t, t.return, e);
+ yf(t, t.return, e);
}
}
break;
case 3:
if (a & 1024) {
- if (r = t.stateNode.containerInfo, n = r.nodeType, n === 9) dm(r);
+ if (r = t.stateNode.containerInfo, n = r.nodeType, n === 9) um(r);
else if (n === 1) switch (r.nodeName) {
case "HEAD":
case "HTML":
case "BODY":
- dm(r);
+ um(r);
break;
default: r.textContent = "";
}
@@ -5283,7 +5283,7 @@ var _ = /* @__PURE__ */ o(((e) => {
if (e = n.stateNode, t === null) try {
e.componentDidMount();
} catch (e) {
- bf(n, n.return, e);
+ yf(n, n.return, e);
}
else {
var i = Sc(n.type, t.memoizedProps);
@@ -5291,7 +5291,7 @@ var _ = /* @__PURE__ */ o(((e) => {
try {
e.componentDidUpdate(i, t, e.__reactInternalSnapshotBeforeUpdate);
} catch (e) {
- bf(n, n.return, e);
+ yf(n, n.return, e);
}
}
}
@@ -5309,7 +5309,7 @@ var _ = /* @__PURE__ */ o(((e) => {
try {
So(e, t);
} catch (e) {
- bf(n, n.return, e);
+ yf(n, n.return, e);
}
}
break;
@@ -5325,7 +5325,7 @@ var _ = /* @__PURE__ */ o(((e) => {
Iu(e, n), r & 4 && Tu(e, n);
break;
case 13:
- 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))));
+ Iu(e, n), r & 4 && Eu(e, n), r & 64 && (e = n.memoizedState, e !== null && (e = e.dehydrated, e !== null && (n = Cf.bind(null, n), gm(e, n))));
break;
case 22:
if (r = n.memoizedState !== null || iu, !r) {
@@ -5357,7 +5357,7 @@ var _ = /* @__PURE__ */ o(((e) => {
i.style.display = o == null || typeof o == "boolean" ? "" : ("" + o).trim();
}
} catch (t) {
- bf(e, e.return, t);
+ yf(e, e.return, t);
}
yu(e, t);
break;
@@ -5365,15 +5365,15 @@ var _ = /* @__PURE__ */ o(((e) => {
try {
e.stateNode.nodeValue = t ? "" : e.memoizedProps, z = !0;
} catch (t) {
- bf(e, e.return, t);
+ yf(e, e.return, t);
}
break;
case 18:
try {
var s = e.stateNode;
- t ? Np(s, !0) : Np(e.stateNode, !1);
+ t ? Mp(s, !0) : Mp(e.stateNode, !1);
} catch (t) {
- bf(e, e.return, t);
+ yf(e, e.return, t);
}
break;
case 22:
@@ -5419,7 +5419,7 @@ var _ = /* @__PURE__ */ o(((e) => {
case 27:
au || El(n, t), kl(n);
var r = xu, i = Su;
- jp(n.type) && (xu = n.stateNode, Su = !1), Cu(e, t, n), Tm(n.stateNode, n.type, n.memoizedProps), xu = r, Su = i;
+ Ap(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: au || El(n, t), kl(n);
case 6:
@@ -5427,17 +5427,17 @@ var _ = /* @__PURE__ */ o(((e) => {
if (Su) try {
(xu.nodeType === 9 ? xu.body : xu.nodeName === "HTML" ? xu.ownerDocument.body : xu).removeChild(n.stateNode), z = !0;
} catch (e) {
- bf(n, t, e);
+ yf(n, t, e);
}
else try {
xu.removeChild(n.stateNode), z = !0;
} catch (e) {
- bf(n, t, e);
+ yf(n, t, e);
}
}
break;
case 18:
- xu !== null && (Su ? (e = xu, Mp(e.nodeType === 9 ? e.body : e.nodeName === "HTML" ? e.ownerDocument.body : e, n.stateNode), Zh(e)) : Mp(xu, n.stateNode));
+ xu !== null && (Su ? (e = xu, jp(e.nodeType === 9 ? e.body : e.nodeName === "HTML" ? e.ownerDocument.body : e, n.stateNode), Xh(e)) : jp(xu, n.stateNode));
break;
case 4:
r = xu, i = Su, xu = n.stateNode.containerInfo, Su = !0, Cu(e, t, n), xu = r, Su = i;
@@ -5470,17 +5470,17 @@ var _ = /* @__PURE__ */ o(((e) => {
if (t.memoizedState === null && (e = t.alternate, e !== null && (e = e.memoizedState, e !== null))) {
e = e.dehydrated;
try {
- Zh(e);
+ Xh(e);
} catch (e) {
- bf(t, t.return, e);
+ yf(t, t.return, e);
}
}
}
function Eu(e, t) {
if (t.memoizedState === null && (e = t.alternate, e !== null && (e = e.memoizedState, e !== null && (e = e.dehydrated, e !== null)))) try {
- Zh(e);
+ Xh(e);
} catch (e) {
- bf(t, t.return, e);
+ yf(t, t.return, e);
}
}
function Du(e) {
@@ -5499,7 +5499,7 @@ var _ = /* @__PURE__ */ o(((e) => {
t.forEach(function(t) {
if (!n.has(t)) {
n.add(t);
- var r = Tf.bind(null, e, t);
+ var r = wf.bind(null, e, t);
t.then(r, r);
}
});
@@ -5511,7 +5511,7 @@ var _ = /* @__PURE__ */ o(((e) => {
a: for (; l !== null;) {
switch (l.tag) {
case 27:
- if (jp(l.type)) {
+ if (Ap(l.type)) {
xu = l.stateNode, Su = !1;
break a;
}
@@ -5553,31 +5553,31 @@ var _ = /* @__PURE__ */ o(((e) => {
if (a = r === null ? null : r.memoizedState, n = e.memoizedState, r === null) {
if (n === null) {
if (e.stateNode === null) {
- if (iu) e.stateNode = xp(e.type, e.memoizedProps, t.containerInfo, e);
+ if (iu) e.stateNode = bp(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[jt] || r[wt] || r.namespaceURI === "http://www.w3.org/2000/svg" || r.hasAttribute("itemprop")) && (r = a.createElement(t), a.head.insertBefore(r, a.querySelector("head > title"))), dp(r, t, n), r[wt] = e, Rt(r), t = r;
+ r = a.getElementsByTagName("title")[0], (!r || r[jt] || r[wt] || 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[wt] = e, Rt(r), t = r;
break a;
case "link":
- if (o = eh("link", "href", a).get(t + (n.href || ""))) {
+ if (o = $m("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), dp(r, t, n), a.head.appendChild(r);
+ r = a.createElement(t), up(r, t, n), a.head.appendChild(r);
break;
case "meta":
- if (o = eh("meta", "content", a).get(t + (n.content || ""))) {
+ if (o = $m("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), dp(r, t, n), a.head.appendChild(r);
+ r = a.createElement(t), up(r, t, n), a.head.appendChild(r);
break;
default: throw Error(i(468, t));
}
@@ -5585,9 +5585,9 @@ var _ = /* @__PURE__ */ o(((e) => {
}
e.stateNode = t;
}
- } else iu || th(o, e.type, e.stateNode);
- } else e.stateNode = Ym(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 || th(o, e.type, e.stateNode) : Ym(o, n, e.memoizedProps));
+ } else iu || eh(o, e.type, e.stateNode);
+ } else e.stateNode = Jm(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 || eh(o, e.type, e.stateNode) : Jm(o, n, e.memoizedProps));
}
break;
case 27:
@@ -5599,7 +5599,7 @@ var _ = /* @__PURE__ */ o(((e) => {
try {
ln(t, ""), z = !0;
} catch (t) {
- bf(e, e.return, t);
+ yf(e, e.return, t);
}
}
a & 4 && e.stateNode != null && (t = e.memoizedProps, Nl(e, t, r === null ? t : r.memoizedProps)), a & 1024 && (su = !0);
@@ -5611,20 +5611,20 @@ var _ = /* @__PURE__ */ o(((e) => {
try {
n.nodeValue = t, z = !0;
} catch (t) {
- bf(e, e.return, t);
+ yf(e, e.return, t);
}
}
break;
case 3:
- if (z = !1, $m = null, o = Au, Au = km(t.containerInfo), ku(t, e, n), Au = o, Mu(e), a & 4 && r !== null && r.memoizedState.isDehydrated) try {
- Zh(t.containerInfo);
+ if (z = !1, Qm = null, o = Au, Au = Om(t.containerInfo), ku(t, e, n), Au = o, Mu(e), a & 4 && r !== null && r.memoizedState.isDehydrated) try {
+ Xh(t.containerInfo);
} catch (t) {
- bf(e, e.return, t);
+ yf(e, e.return, t);
}
su && (su = !1, Nu(e)), z = !1;
break;
case 4:
- a = ou, ou = iu, r = Kt(), o = Au, Au = km(e.stateNode.containerInfo), ku(t, e, n), Mu(e), Au = o, z && du && (fu = !0), z = r, ou = a;
+ a = ou, ou = iu, r = Kt(), o = Au, Au = Om(e.stateNode.containerInfo), ku(t, e, n), Mu(e), Au = o, z && du && (fu = !0), z = r, ou = a;
break;
case 12:
ku(t, e, n), Mu(e);
@@ -5633,7 +5633,7 @@ var _ = /* @__PURE__ */ o(((e) => {
ku(t, e, n), Mu(e), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, Ou(e, t)));
break;
case 13:
- ku(t, e, n), Mu(e), e.child.flags & 8192 && e.memoizedState !== null != (r !== null && r.memoizedState !== null) && (bd = He()), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, Ou(e, t)));
+ ku(t, e, n), Mu(e), e.child.flags & 8192 && e.memoizedState !== null != (r !== null && r.memoizedState !== null) && (yd = He()), 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;
@@ -5690,7 +5690,7 @@ var _ = /* @__PURE__ */ o(((e) => {
default: throw Error(i(161));
}
} catch (t) {
- bf(e, e.return, t);
+ yf(e, e.return, t);
}
e.flags &= -3;
}
@@ -5699,7 +5699,7 @@ var _ = /* @__PURE__ */ o(((e) => {
function Nu(e) {
if (e.subtreeFlags & 1024) for (e = e.child; e !== null;) {
var t = e;
- Nu(t), t.tag === 5 && t.flags & 1024 && (t = t.stateNode, Th = !0, t.reset(), Th = !1), e = e.sibling;
+ Nu(t), t.tag === 5 && t.flags & 1024 && (t = t.stateNode, wh = !0, t.reset(), wh = !1), e = e.sibling;
}
}
function Pu(e, t) {
@@ -5715,7 +5715,7 @@ var _ = /* @__PURE__ */ o(((e) => {
if (e = Hl, e !== null) for (var r = 0; r < e.length; r += 3) {
n = e[r];
var i = e[r + 1];
- Fp(n, e[r + 2]), n = n.ownerDocument.documentElement, n !== null && n.animate({
+ Pp(n, e[r + 2]), n = n.ownerDocument.documentElement, n !== null && n.animate({
opacity: [0, 0],
pointerEvents: ["none", "none"]
}, {
@@ -5756,7 +5756,7 @@ var _ = /* @__PURE__ */ o(((e) => {
var a = e.memoizedProps, o = e.stateNode;
t = pi(a, o), o = pi(n.memoizedProps, o);
var s = hi(a.default, a.update);
- s === "none" ? t = !1 : (a = n.memoizedState, n.memoizedState = null, n = e.child, 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;
+ 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 ? (Rd(e, e.memoizedProps.onUpdate), Hl = i) : i !== null && (i.push.apply(i, Hl), Hl = i), uu = e.flags & 32 ? !0 : r;
break;
default: Pu(t, e);
}
@@ -5779,7 +5779,7 @@ var _ = /* @__PURE__ */ o(((e) => {
var i = n.stateNode;
typeof i.componentWillUnmount == "function" && wl(n, n.return, i), Lu(n, r);
break;
- case 27: r & 2 && Tm(n.stateNode, n.type, n.memoizedProps);
+ case 27: r & 2 && wm(n.stateNode, n.type, n.memoizedProps);
case 5:
El(n, n.return), n.tag !== 5 && n.tag !== 27 || kl(n), Lu(n, r);
break;
@@ -5814,7 +5814,7 @@ var _ = /* @__PURE__ */ o(((e) => {
if (Ru(i, a, n), r = a, i = r.stateNode, typeof i.componentDidMount == "function") try {
i.componentDidMount();
} catch (e) {
- bf(r, r.return, e);
+ yf(r, r.return, e);
}
if (r = a, i = r.updateQueue, i !== null) {
var c = r.stateNode;
@@ -5822,7 +5822,7 @@ var _ = /* @__PURE__ */ o(((e) => {
var l = i.shared.hiddenCallbacks;
if (l !== null) for (i.shared.hiddenCallbacks = null, i = 0; i < l.length; i++) xo(l[i], c);
} catch (e) {
- bf(r, r.return, e);
+ yf(r, r.return, e);
}
}
s && o & 64 && Cl(a), Tl(a, a.return);
@@ -5835,7 +5835,7 @@ var _ = /* @__PURE__ */ o(((e) => {
Ol(a);
break;
case 26:
- c = a.stateNode, a.memoizedState !== null || c === null || iu || th(km(c.ownerDocument), a.type, c), Ru(i, a, n), s && r === null && o & 4 && Ml(a), Tl(a, a.return);
+ c = a.stateNode, a.memoizedState !== null || c === null || iu || eh(Om(c.ownerDocument), a.type, c), Ru(i, a, n), s && r === null && o & 4 && Ml(a), Tl(a, a.return);
break;
case 12:
Ru(i, a, n);
@@ -5893,7 +5893,7 @@ var _ = /* @__PURE__ */ o(((e) => {
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) {
- bf(t, t.return, e);
+ yf(t, t.return, e);
}
} else Vu(e, t, n, r);
break;
@@ -5960,15 +5960,15 @@ var _ = /* @__PURE__ */ o(((e) => {
function qu(e, t, n) {
switch (e.tag) {
case 26:
- Ku(e, t, n), e.flags & Gu && (e.memoizedState === null ? (e = e.stateNode, (t & 335544128) === t && oh(n, e)) : sh(n, Au, e.memoizedState, e.memoizedProps));
+ Ku(e, t, n), e.flags & Gu && (e.memoizedState === null ? (e = e.stateNode, (t & 335544128) === t && ah(n, e)) : oh(n, Au, e.memoizedState, e.memoizedProps));
break;
case 5:
- Ku(e, t, n), e.flags & Gu && (e = e.stateNode, (t & 335544128) === t && oh(n, e));
+ Ku(e, t, n), e.flags & Gu && (e = e.stateNode, (t & 335544128) === t && ah(n, e));
break;
case 3:
case 4:
var r = Au;
- Au = km(e.stateNode.containerInfo), Ku(e, t, n), Au = r;
+ 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 = Gu, Gu = 16777216, Ku(e, t, n), Gu = r) : Ku(e, t, n));
@@ -6089,37 +6089,37 @@ var _ = /* @__PURE__ */ o(((e) => {
cacheSignal: function() {
return Sa(Oa).controller.signal;
}
- }, 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 : me.T === null ? xt() : Vf();
+ }, 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, G = 0, pd = 0, md = 0, hd = 0, gd = null, _d = null, vd = !1, yd = 0, bd = 0, xd = Infinity, Sd = null, Cd = null, wd = 0, Td = null, Ed = null, Dd = 0, Od = 0, kd = null, Ad = null, jd = null, Md = null, Nd = null, Pd = 0, Fd = null;
+ function Id() {
+ return td & 2 && id !== 0 ? id & -id : me.T === null ? xt() : Bf();
}
- function Rd() {
- if (hd === 0) {
+ function Ld() {
+ if (md === 0) {
if (!(id & 536870912) || ta) {
var e = at;
- at <<= 1, !(at & 3932160) && (at = 262144), hd = e;
- } else hd = 536870912;
+ at <<= 1, !(at & 3932160) && (at = 262144), md = e;
+ } else md = 536870912;
}
- return e = Oo.current, e !== null && (e.flags |= 32), hd;
+ return e = Oo.current, e !== null && (e.flags |= 32), md;
}
- function zd(e, t) {
+ function Rd(e, t) {
if (t != null) {
var n = e.stateNode, r = n.ref;
- r === null && (r = n.ref = Up(pi(e.memoizedProps, n))), Nd === null && (Nd = []), Nd.push(t.bind(null, r));
+ r === null && (r = n.ref = Hp(pi(e.memoizedProps, n))), Md === null && (Md = []), Md.push(t.bind(null, r));
}
}
- function Bd(e, t, n) {
- (e === nd && (ad === 2 || ad === 9) || e.cancelPendingCommit !== null) && (qd(e, 0), Wd(e, id, hd, !1)), mt(e, n), (!(td & 2) || e !== nd) && (e === nd && (!(td & 2) && (pd |= n), dd === 4 && Wd(e, id, hd, !1)), Nf(e));
+ function zd(e, t, n) {
+ (e === nd && (ad === 2 || ad === 9) || e.cancelPendingCommit !== null) && (Kd(e, 0), Ud(e, id, md, !1)), mt(e, n), (!(td & 2) || e !== nd) && (e === nd && (!(td & 2) && (G |= n), dd === 4 && Ud(e, id, md, !1)), Mf(e));
}
- function Vd(e, t, n) {
+ function Bd(e, t, n) {
if (td & 6) throw Error(i(327));
- var r = !n && !(t & 127) && (t & e.expiredLanes) === 0 || lt(e, t), a = r ? tf(e, t) : $d(e, t, !0), o = r;
+ var r = !n && !(t & 127) && (t & e.expiredLanes) === 0 || lt(e, t), a = r ? ef(e, t) : Qd(e, t, !0), o = r;
do {
if (a === 0) {
- cd && !r && Wd(e, t, 0, !1);
+ cd && !r && Ud(e, t, 0, !1);
break;
}
- if (n = e.current.alternate, o && !Ud(n)) a = $d(e, t, !1), o = !1;
+ if (n = e.current.alternate, o && !Hd(n)) a = Qd(e, t, !1), o = !1;
else {
if (a === 2) {
if (o = t, e.errorRecoveryDisabledLanes & o) var s = 0;
@@ -6128,14 +6128,14 @@ var _ = /* @__PURE__ */ o(((e) => {
t = s;
a: {
var c = e;
- a = _d;
+ a = gd;
var l = c.current.memoizedState.isDehydrated;
- if (l && (qd(c, s).flags |= 256), s = $d(c, s, !1), s !== 2 && s !== 6) {
+ if (l && (Kd(c, s).flags |= 256), s = Qd(c, s, !1), s !== 2 && s !== 6) {
if (ld && !l) {
- c.errorRecoveryDisabledLanes |= o, pd |= o, a = 4;
+ c.errorRecoveryDisabledLanes |= o, G |= o, a = 4;
break a;
}
- o = vd, vd = a, o !== null && (vd === null ? vd = o : vd.push.apply(vd, o));
+ o = _d, _d = a, o !== null && (_d === null ? _d = o : _d.push.apply(_d, o));
}
a = s;
}
@@ -6143,7 +6143,7 @@ var _ = /* @__PURE__ */ o(((e) => {
}
}
if (a === 1) {
- qd(e, 0), Wd(e, t, 0, !0);
+ Kd(e, 0), Ud(e, t, 0, !0);
break;
}
a: {
@@ -6152,28 +6152,28 @@ var _ = /* @__PURE__ */ o(((e) => {
case 1: throw Error(i(345));
case 4: if ((t & 4194048) !== t && (t & 62914560) !== t) break;
case 6:
- Wd(r, t, hd, !sd);
+ Ud(r, t, md, !sd);
break a;
case 2:
- vd = null;
+ _d = null;
break;
case 3:
case 5: break;
default: throw Error(i(329));
}
- if ((t & 62914560) === t && (a = bd + 300 - He(), 10 < a)) {
- if (Wd(r, t, hd, !sd), ct(r, 0, !0) !== 0) break a;
- Od = t, r.timeoutHandle = Tp(Hd.bind(null, r, n, vd, Cd, yd, t, hd, pd, gd, sd, o, "Throttled", -0, 0), a);
+ if ((t & 62914560) === t && (a = yd + 300 - He(), 10 < a)) {
+ if (Ud(r, t, md, !sd), ct(r, 0, !0) !== 0) break a;
+ Dd = t, r.timeoutHandle = wp(Vd.bind(null, r, n, _d, Sd, vd, t, md, G, hd, sd, o, "Throttled", -0, 0), a);
break a;
}
- Hd(r, n, vd, Cd, yd, t, hd, pd, gd, sd, o, null, -0, 0);
+ Vd(r, n, _d, Sd, vd, t, md, G, hd, sd, o, null, -0, 0);
}
break;
}
} while (1);
- Nf(e);
+ Mf(e);
}
- function Hd(e, t, n, r, i, a, o, s, c, l, u, d, f, p) {
+ function Vd(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;
d = null, (h || m & 8192 || (m & 16785408) == 16785408) && (d = {
@@ -6185,9 +6185,9 @@ var _ = /* @__PURE__ */ o(((e) => {
waitingForImages: !0,
waitingForViewTransition: !1,
unsuspend: _n
- }, 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 = dh.bind(m), h.finished.then(m, m))), m = (a & 62914560) === a ? bd - He() : (a & 4194048) === a ? xd - He() : 0, m = lh(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)) : lf(e, t, a, n, r, i, o, s, c, l, u, d);
+ }, 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 = uh.bind(m), h.finished.then(m, m))), m = (a & 62914560) === a ? yd - He() : (a & 4194048) === a ? bd - He() : 0, m = ch(d, m), m !== null) ? (Dd = a, e.cancelPendingCommit = m(cf.bind(null, e, t, a, n, r, i, o, s, c, l, u, d, null, f, p)), Ud(e, a, o, !l)) : cf(e, t, a, n, r, i, o, s, c, l, u, d);
}
- function Ud(e) {
+ function Hd(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++) {
@@ -6211,18 +6211,18 @@ var _ = /* @__PURE__ */ o(((e) => {
}
return !0;
}
- function Wd(e, t, n, r) {
- t = ut(e, t), t &= ~md, t &= ~pd, e.suspendedLanes |= t, e.pingedLanes &= ~t, r && (e.warmLanes |= t), r = e.expirationTimes;
+ function Ud(e, t, n, r) {
+ t = ut(e, t), t &= ~pd, t &= ~G, e.suspendedLanes |= t, e.pingedLanes &= ~t, r && (e.warmLanes |= t), r = e.expirationTimes;
for (var i = t; 0 < i;) {
var a = 31 - et(i), o = 1 << a;
r[a] = -1, i &= ~o;
}
n !== 0 && gt(e, n, t);
}
- function Gd() {
- return td & 6 ? !0 : (Pf(0, !1), !1);
+ function Wd() {
+ return td & 6 ? !0 : (Nf(0, !1), !1);
}
- function Kd() {
+ function Gd() {
if (rd !== null) {
if (ad === 0) var e = rd.return;
else e = rd, ma = pa = null, is(e), no = null, ro = 0, e = rd;
@@ -6230,33 +6230,33 @@ var _ = /* @__PURE__ */ o(((e) => {
rd = null;
}
}
- function qd(e, t) {
+ function Kd(e, t) {
var n = e.timeoutHandle;
- return n !== -1 && (e.timeoutHandle = -1, Ep(n)), n = e.cancelPendingCommit, n !== null && (e.cancelPendingCommit = null, n()), Od = 0, Kd(), nd = e, rd = n = Ai(e.current, null), id = t, ad = 0, od = null, sd = !1, cd = lt(e, t), ld = !1, gd = hd = md = pd = fd = dd = 0, vd = _d = null, yd = !1, ud = ut(e, t), bi(), n;
+ return n !== -1 && (e.timeoutHandle = -1, Tp(n)), n = e.cancelPendingCommit, n !== null && (e.cancelPendingCommit = null, n()), Dd = 0, Gd(), nd = e, rd = n = Ai(e.current, null), id = t, ad = 0, od = null, sd = !1, cd = lt(e, t), ld = !1, hd = md = pd = G = fd = dd = 0, _d = gd = null, vd = !1, ud = ut(e, t), bi(), n;
}
- function Jd(e, t) {
+ function qd(e, t) {
Bo = null, me.H = mc, t === Ka || t === Ja ? (t = eo(), ad = 3) : t === qa ? (t = eo(), ad = 4) : ad = t === Mc ? 8 : typeof t == "object" && t && typeof t.then == "function" ? 6 : 1, od = t, rd === null && (dd = 1, Ec(e, Ri(t, e.current)));
}
- function Yd() {
+ function Jd() {
var e = Oo.current;
return e === null ? !0 : (id & 4194048) === id ? ko === null : (id & 62914560) === id || id & 536870912 ? e === ko : !1;
}
- function Xd() {
+ function Yd() {
var e = me.H;
return me.H = mc, e === null ? mc : e;
}
- function Zd() {
+ function Xd() {
var e = me.A;
return me.A = $u, e;
}
- 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 Zd() {
+ dd = 4, sd || (id & 4194048) !== id && Oo.current !== null || (cd = !0), !(fd & 134217727) && !(G & 134217727) || nd === null || Ud(nd, id, md, !1);
}
- function $d(e, t, n) {
+ function Qd(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 i = Yd(), a = Xd();
+ (nd !== e || id !== t) && (Sd = null, Kd(e, t)), t = !1;
var o = dd;
a: do
try {
@@ -6264,7 +6264,7 @@ var _ = /* @__PURE__ */ o(((e) => {
var s = rd, c = od;
switch (ad) {
case 8:
- Kd(), o = 6;
+ Gd(), o = 6;
break a;
case 3:
case 2:
@@ -6272,30 +6272,30 @@ var _ = /* @__PURE__ */ o(((e) => {
case 6:
Oo.current === null && (t = !0);
var l = ad;
- if (ad = 0, od = null, of(e, s, c, l), n && cd) {
+ if (ad = 0, od = null, af(e, s, c, l), n && cd) {
o = 0;
break a;
}
break;
- default: l = ad, ad = 0, od = null, of(e, s, c, l);
+ default: l = ad, ad = 0, od = null, af(e, s, c, l);
}
}
- ef(), o = dd;
+ $d(), o = dd;
break;
} catch (t) {
- Jd(e, t);
+ qd(e, t);
}
while (1);
return t && e.shellSuspendCounter++, ma = pa = null, td = r, me.H = i, me.A = a, rd === null && (nd = null, id = 0, bi()), o;
}
- function ef() {
- for (; rd !== null;) rf(rd);
+ function $d() {
+ for (; rd !== null;) nf(rd);
}
- function tf(e, t) {
+ function ef(e, t) {
var n = td;
td |= 2;
- var r = Xd(), a = Zd();
- nd !== e || id !== t ? (Cd = null, Sd = He() + 500, qd(e, t)) : cd = lt(e, t);
+ var r = Yd(), a = Xd();
+ nd !== e || id !== t ? (Sd = null, xd = He() + 500, Kd(e, t)) : cd = lt(e, t);
a: do
try {
if (ad !== 0 && rd !== null) {
@@ -6303,16 +6303,16 @@ var _ = /* @__PURE__ */ o(((e) => {
var o = od;
b: switch (ad) {
case 1:
- ad = 0, od = null, of(e, t, o, 1);
+ ad = 0, od = null, af(e, t, o, 1);
break;
case 2:
case 9:
if (Xa(o)) {
- ad = 0, od = null, af(t);
+ ad = 0, od = null, rf(t);
break;
}
t = function() {
- ad !== 2 && ad !== 9 || nd !== e || (ad = 7), Nf(e);
+ ad !== 2 && ad !== 9 || nd !== e || (ad = 7), Mf(e);
}, o.then(t, t);
break a;
case 3:
@@ -6322,7 +6322,7 @@ var _ = /* @__PURE__ */ o(((e) => {
ad = 5;
break a;
case 7:
- Xa(o) ? (ad = 0, od = null, af(t)) : (ad = 0, od = null, of(e, t, o, 7));
+ Xa(o) ? (ad = 0, od = null, rf(t)) : (ad = 0, od = null, af(e, t, o, 7));
break;
case 5:
var s = null;
@@ -6331,44 +6331,44 @@ var _ = /* @__PURE__ */ o(((e) => {
case 5:
case 27:
var c = rd;
- if (s ? ih(s) : c.stateNode.complete) {
+ if (s ? rh(s) : c.stateNode.complete) {
ad = 0, od = null;
var l = c.sibling;
if (l !== null) rd = l;
else {
var u = c.return;
- u === null ? rd = null : (rd = u, sf(u));
+ u === null ? rd = null : (rd = u, of(u));
}
break b;
}
}
- ad = 0, od = null, of(e, t, o, 5);
+ ad = 0, od = null, af(e, t, o, 5);
break;
case 6:
- ad = 0, od = null, of(e, t, o, 6);
+ ad = 0, od = null, af(e, t, o, 6);
break;
case 8:
- Kd(), dd = 6;
+ Gd(), dd = 6;
break a;
default: throw Error(i(462));
}
}
- nf();
+ tf();
break;
} catch (t) {
- Jd(e, t);
+ qd(e, t);
}
while (1);
return ma = pa = null, me.H = r, me.A = a, td = n, rd === null ? (nd = null, id = 0, bi(), dd) : 0;
}
- function nf() {
- for (; rd !== null && !Be();) rf(rd);
+ function tf() {
+ for (; rd !== null && !Be();) nf(rd);
}
- function rf(e) {
+ function nf(e) {
var t = fl(e.alternate, e, ud);
- e.memoizedProps = e.pendingProps, t === null ? sf(e) : rd = t;
+ e.memoizedProps = e.pendingProps, t === null ? of(e) : rd = t;
}
- function af(e) {
+ function rf(e) {
var t = e, n = t.alternate;
switch (t.tag) {
case 15:
@@ -6384,9 +6384,9 @@ var _ = /* @__PURE__ */ o(((e) => {
r === $i && (ta ? (sa(r), r.tag === 5 && r.stateNode != null && (ea = r.stateNode)) : (sa(r), ta = !0));
default: xl(n, t), t = rd = ji(t, ud), t = fl(n, t, ud);
}
- e.memoizedProps = e.pendingProps, t === null ? sf(e) : rd = t;
+ e.memoizedProps = e.pendingProps, t === null ? of(e) : rd = t;
}
- function of(e, t, n, r) {
+ function af(e, t, n, r) {
ma = pa = null, is(t), no = null, ro = 0;
var i = t.return;
try {
@@ -6399,13 +6399,13 @@ var _ = /* @__PURE__ */ o(((e) => {
dd = 1, Ec(e, Ri(n, e.current)), rd = null;
return;
}
- t.flags & 32768 ? (ta || 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);
+ t.flags & 32768 ? (ta || 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))), sf(t, e)) : of(t);
}
- function sf(e) {
+ function of(e) {
var t = e;
do {
if (t.flags & 32768) {
- cf(t, sd);
+ sf(t, sd);
return;
}
e = t.return;
@@ -6422,7 +6422,7 @@ var _ = /* @__PURE__ */ o(((e) => {
} while (t !== null);
dd === 0 && (dd = 5);
}
- function cf(e, t) {
+ function sf(e, t) {
do {
var n = bl(e.alternate, e);
if (n !== null) {
@@ -6437,21 +6437,21 @@ var _ = /* @__PURE__ */ o(((e) => {
} while (e !== null);
dd = 6, rd = null;
}
- function lf(e, t, n, r, a, o, s, c, l, u, d, f) {
+ function cf(e, t, n, r, a, o, s, c, l, u, d, f) {
e.cancelPendingCommit = null;
do
- _f();
- while (Td !== 0);
+ gf();
+ while (wd !== 0);
if (td & 6) throw Error(i(327));
if (t !== null) {
if (t === e.current) throw Error(i(177));
- 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);
+ e === nd && (rd = nd = null, id = 0), Ed = t, Td = e, Dd = n, kd = a, Ad = r, lf(e, t, n, s, c, l, f);
}
}
- function uf(e, t, n, r, i, a, o) {
+ function lf(e, t, n, r, i, a, o) {
var s = t.lanes | t.childLanes;
- if (kd = s, s |= yi, ht(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, Ef(Ke, function() {
- return vf(), null;
+ if (Od = s, s |= yi, ht(e, n, s, r, i, a), Md = null, (n & 335544064) === n ? (Nd = Na(e), r = 10262) : (Nd = null, r = 10256), (t.subtreeFlags & r) !== 0 || (t.flags & r) !== 0 ? (e.callbackNode = null, e.callbackPriority = 0, Tf(Ke, function() {
+ return _f(), null;
})) : (e.callbackNode = null, e.callbackPriority = 0), zl = !1, r = !!(t.flags & 13878), t.subtreeFlags & 13878 || r) {
r = me.T, me.T = null, i = he.p, he.p = 2, a = td, td |= 4;
try {
@@ -6460,21 +6460,21 @@ var _ = /* @__PURE__ */ o(((e) => {
td = a, he.p = i, me.T = r;
}
}
- Td = 1, zl ? Md = Vp(o, e.containerInfo, Pd, pf, mf, ff, hf, vf, df, null, null) : (pf(), mf(), hf());
+ wd = 1, zl ? jd = Bp(o, e.containerInfo, Nd, ff, pf, df, mf, _f, uf, null, null) : (ff(), pf(), mf());
}
- function df(e) {
- if (Td !== 0) {
- var t = Ed.onRecoverableError;
+ function uf(e) {
+ if (wd !== 0) {
+ var t = Td.onRecoverableError;
t(e, { componentStack: null });
}
}
- function ff() {
- Td === 3 && (Td = 0, Fu(Dd, Ed), Td = 4);
+ function df() {
+ wd === 3 && (wd = 0, Fu(Ed, Td), wd = 4);
}
- function pf() {
- if (Td === 1) {
- Td = 0;
- var e = Ed, t = Dd, n = Od, r = !!(t.flags & 13878);
+ function ff() {
+ if (wd === 1) {
+ wd = 0;
+ var e = Td, t = Ed, n = Dd, r = !!(t.flags & 13878);
if (t.subtreeFlags & 13878 || r) {
r = me.T, me.T = null;
var i = he.p;
@@ -6482,7 +6482,7 @@ var _ = /* @__PURE__ */ o(((e) => {
var a = td;
td |= 4;
try {
- du = fu = !1, ju(t, e, n), n = _p;
+ du = fu = !1, ju(t, e, n), n = gp;
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)) {
@@ -6511,18 +6511,18 @@ var _ = /* @__PURE__ */ o(((e) => {
b.element.scrollLeft = b.left, b.element.scrollTop = b.top;
}
}
- Th = !!gp, _p = gp = null;
+ wh = !!hp, gp = hp = null;
} finally {
td = a, he.p = i, me.T = r;
}
}
- e.current = t, Td = 2;
+ e.current = t, wd = 2;
}
}
- function mf() {
- if (Td === 2) {
- Td = 0;
- var e = Ed, t = Dd, n = !!(t.flags & 8772);
+ function pf() {
+ if (wd === 2) {
+ wd = 0;
+ var e = Td, t = Ed, n = !!(t.flags & 8772);
if (t.subtreeFlags & 8772 || n) {
n = me.T, me.T = null;
var r = he.p;
@@ -6535,16 +6535,16 @@ var _ = /* @__PURE__ */ o(((e) => {
td = i, he.p = r, me.T = n;
}
}
- Td = 3;
+ wd = 3;
}
}
- function hf() {
- if (Td === 4 || Td === 3) {
- Td = 0;
- var e = Md;
- Md = null, Ve();
- 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), bt(r), n = n.stateNode, Qe && typeof Qe.onCommitFiberRoot == "function") try {
+ function mf() {
+ if (wd === 4 || wd === 3) {
+ wd = 0;
+ var e = jd;
+ jd = null, Ve();
+ var t = Td, n = Ed, r = Dd, i = Ad, a = (r & 335544064) === r ? 10262 : 10256;
+ if ((n.subtreeFlags & a) !== 0 || (n.flags & a) !== 0 ? wd = 5 : (wd = 0, Ed = Td = null, hf(t, t.pendingLanes)), a = t.pendingLanes, a === 0 && (Cd = null), bt(r), n = n.stateNode, Qe && typeof Qe.onCommitFiberRoot == "function") try {
Qe.onCommitFiberRoot(Ze, n, void 0, (n.current.flags & 128) == 128);
} catch {}
if (i !== null) {
@@ -6558,75 +6558,75 @@ var _ = /* @__PURE__ */ o(((e) => {
me.T = n, he.p = a;
}
}
- 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(), Nf(t), a = t.pendingLanes, r & 261930 && a & 42 ? t === Id ? Fd++ : (Fd = 0, Id = t) : (Fd = 0, Id = null), Pf(0, !1);
+ if (i = Md, o = Nd, Nd = null, i !== null && (Md = 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);
+ Dd & 3 && gf(), Mf(t), a = t.pendingLanes, r & 261930 && a & 42 ? t === Fd ? Pd++ : (Pd = 0, Fd = t) : (Pd = 0, Fd = null), Nf(0, !1);
}
}
- function gf(e, t) {
+ function hf(e, t) {
(e.pooledCacheLanes &= t) === 0 && (t = e.pooledCache, t != null && (e.pooledCache = null, Aa(t)));
}
- function _f() {
- return Md !== null && (Md.skipTransition(), Md = null), pf(), mf(), hf(), vf();
+ function gf() {
+ return jd !== null && (jd.skipTransition(), jd = null), ff(), pf(), mf(), _f();
}
- function vf() {
- if (Td !== 5) return !1;
- var e = Ed, t = kd;
- kd = 0;
- var n = bt(Od), r = me.T, a = he.p;
+ function _f() {
+ if (wd !== 5) return !1;
+ var e = Td, t = Od;
+ Od = 0;
+ var n = bt(Dd), r = me.T, a = he.p;
try {
- he.p = 32 > n ? 32 : n, me.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));
+ he.p = 32 > n ? 32 : n, me.T = null, n = kd, kd = null;
+ var o = Td, s = Dd;
+ if (wd = 0, Ed = Td = null, Dd = 0, td & 6) throw Error(i(331));
var c = td;
- if (td |= 4, Xu(o.current), Hu(o, o.current, s, n), td = c, Pf(0, !1), Qe && typeof Qe.onPostCommitFiberRoot == "function") try {
+ if (td |= 4, Xu(o.current), Hu(o, o.current, s, n), td = c, Nf(0, !1), Qe && typeof Qe.onPostCommitFiberRoot == "function") try {
Qe.onPostCommitFiberRoot(Ze, o);
} catch {}
return !0;
} finally {
- he.p = a, me.T = r, gf(e, t);
+ he.p = a, me.T = r, hf(e, t);
}
}
- function yf(e, t, n) {
- t = Ri(n, t), t = Oc(e.stateNode, t, 2), e = ho(e, t, 2), e !== null && (mt(e, 2), Nf(e));
+ function vf(e, t, n) {
+ t = Ri(n, t), t = Oc(e.stateNode, t, 2), e = ho(e, t, 2), e !== null && (mt(e, 2), Mf(e));
}
- function bf(e, t, n) {
- if (e.tag === 3) yf(e, e, n);
+ function yf(e, t, n) {
+ if (e.tag === 3) vf(e, e, n);
else for (; t !== null;) {
if (t.tag === 3) {
- yf(t, e, n);
+ vf(t, e, n);
break;
}
if (t.tag === 1) {
var r = t.stateNode;
- if (typeof t.type.getDerivedStateFromError == "function" || typeof r.componentDidCatch == "function" && (wd === null || !wd.has(r))) {
- e = Ri(n, e), n = kc(2), r = ho(t, n, 2), r !== null && (Ac(n, r, t, e), mt(r, 2), Nf(r));
+ if (typeof t.type.getDerivedStateFromError == "function" || typeof r.componentDidCatch == "function" && (Cd === null || !Cd.has(r))) {
+ e = Ri(n, e), n = kc(2), r = ho(t, n, 2), r !== null && (Ac(n, r, t, e), mt(r, 2), Mf(r));
break;
}
}
t = t.return;
}
}
- function xf(e, t, n) {
+ function bf(e, t, n) {
var r = e.pingCache;
if (r === null) {
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) || (ld = !0, i.add(n), e = Sf.bind(null, e, t, n), t.then(e, e));
+ i.has(n) || (ld = !0, i.add(n), e = xf.bind(null, e, t, n), t.then(e, e));
}
- function Sf(e, t, n) {
+ function xf(e, t, n) {
var r = e.pingCache;
- 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 > He() - bd ? td & 2 ? md |= n : qd(e, 0) : md |= n, gd === id && (gd = 0)), Nf(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 > He() - yd ? td & 2 ? pd |= n : Kd(e, 0) : pd |= n, hd === id && (hd = 0)), Mf(e);
}
- function Cf(e, t) {
- t === 0 && (t = ft()), e = Ci(e, t), e !== null && (mt(e, t), Nf(e));
+ function Sf(e, t) {
+ t === 0 && (t = ft()), e = Ci(e, t), e !== null && (mt(e, t), Mf(e));
}
- function wf(e) {
+ function Cf(e) {
var t = e.memoizedState, n = 0;
- t !== null && (n = t.retryLane), Cf(e, n);
+ t !== null && (n = t.retryLane), Sf(e, n);
}
- function Tf(e, t) {
+ function wf(e, t) {
var n = 0;
switch (e.tag) {
case 31:
@@ -6642,20 +6642,20 @@ var _ = /* @__PURE__ */ o(((e) => {
break;
default: throw Error(i(314));
}
- r !== null && r.delete(t), Cf(e, n);
+ r !== null && r.delete(t), Sf(e, n);
}
- function Ef(e, t) {
+ function Tf(e, t) {
return Re(e, t);
}
- var Df = null, Of = null, kf = !1, Af = !1, jf = !1, Mf = 0;
- function Nf(e) {
- e !== Of && e.next === null && (Of === null ? Df = Of = e : Of = Of.next = e), Af = !0, kf || (kf = !0, Bf());
+ 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());
}
- function Pf(e, t) {
- if (!jf && Af) {
- jf = !0;
+ function Nf(e, t) {
+ if (!Af && kf) {
+ Af = !0;
do
- for (var n = !1, r = Df; r !== null;) {
+ for (var n = !1, r = Ef; r !== null;) {
if (!t) {
if (e !== 0) {
var i = r.pendingLanes;
@@ -6664,29 +6664,29 @@ var _ = /* @__PURE__ */ o(((e) => {
var o = r.suspendedLanes, s = r.pingedLanes;
a = (1 << 31 - et(42 | e) + 1) - 1, a &= i & ~(o & ~s), a = a & 201326741 ? a & 201326741 | 1 : a ? a | 2 : 0;
}
- a !== 0 && (n = !0, zf(r, a));
- } else a = id, a = ct(r, r === nd ? a : 0, r.cancelPendingCommit !== null || r.timeoutHandle !== -1), !(a & 3) || lt(r, a) || (n = !0, zf(r, a));
+ a !== 0 && (n = !0, Rf(r, a));
+ } else a = id, a = ct(r, r === nd ? a : 0, r.cancelPendingCommit !== null || r.timeoutHandle !== -1), !(a & 3) || lt(r, a) || (n = !0, Rf(r, a));
}
r = r.next;
}
while (n);
- jf = !1;
+ Af = !1;
}
}
- function Ff() {
- If();
+ function Pf() {
+ Ff();
}
- function If() {
- Af = kf = !1;
+ function Ff() {
+ kf = Of = !1;
var e = 0;
- Mf !== 0 && wp() && (e = Mf);
- for (var t = He(), n = null, r = Df; r !== null;) {
- var i = r.next, a = Lf(r, t);
- a === 0 ? (r.next = null, n === null ? Df = i : n.next = i, i === null && (Of = n)) : (n = r, (e !== 0 || a & 3) && (Af = !0)), r = i;
+ jf !== 0 && Cp() && (e = jf);
+ for (var t = He(), 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;
}
- Td !== 0 && Td !== 5 || Pf(e, !1), Mf !== 0 && (Mf = 0);
+ wd !== 0 && wd !== 5 || Nf(e, !1), jf !== 0 && (jf = 0);
}
- function Lf(e, t) {
+ function If(e, t) {
for (var n = e.suspendedLanes, r = e.pingedLanes, i = e.expirationTimes, a = e.pendingLanes & -62914561; 0 < a;) {
var o = 31 - et(a), s = 1 << o, c = i[o];
c === -1 ? ((s & n) === 0 || (s & r) !== 0) && (i[o] = dt(s, t)) : c <= t && (e.expiredLanes |= s), a &= ~s;
@@ -6707,40 +6707,40 @@ var _ = /* @__PURE__ */ o(((e) => {
break;
default: n = Ke;
}
- return r = Rf.bind(null, e), n = Re(n, r), e.callbackPriority = t, e.callbackNode = n, t;
+ return r = Lf.bind(null, e), n = Re(n, r), e.callbackPriority = t, e.callbackNode = n, t;
}
return r !== null && r !== null && ze(r), e.callbackPriority = 2, e.callbackNode = null, 2;
}
- function Rf(e, t) {
- if (Td !== 0 && Td !== 5) return e.callbackNode = null, e.callbackPriority = 0, null;
+ function Lf(e, t) {
+ if (wd !== 0 && wd !== 5) return e.callbackNode = null, e.callbackPriority = 0, null;
var n = e.callbackNode;
- if (_f() && e.callbackNode !== n) return null;
+ if (gf() && e.callbackNode !== n) return null;
var r = id;
- return r = ct(e, e === nd ? r : 0, e.cancelPendingCommit !== null || e.timeoutHandle !== -1), r === 0 ? null : (Vd(e, r, t), Lf(e, He()), e.callbackNode != null && e.callbackNode === n ? Rf.bind(null, e) : null);
+ return r = ct(e, e === nd ? r : 0, e.cancelPendingCommit !== null || e.timeoutHandle !== -1), r === 0 ? null : (Bd(e, r, t), If(e, He()), e.callbackNode != null && e.callbackNode === n ? Lf.bind(null, e) : null);
}
- function zf(e, t) {
- if (_f()) return null;
- Vd(e, t, !0);
+ function Rf(e, t) {
+ if (gf()) return null;
+ Bd(e, t, !0);
}
- function Bf() {
- kp(function() {
- td & 6 ? Re(We, Ff) : If();
+ function zf() {
+ Op(function() {
+ td & 6 ? Re(We, Pf) : Ff();
});
}
- function Vf() {
- if (Mf === 0) {
+ function Bf() {
+ if (jf === 0) {
var e = Ia;
- e === 0 && (e = it, it <<= 1, !(it & 261888) && (it = 256)), Mf = e;
+ e === 0 && (e = it, it <<= 1, !(it & 261888) && (it = 256)), jf = e;
}
- return Mf;
+ return jf;
}
- function Hf(e) {
+ function Vf(e) {
return e == null || typeof e == "symbol" || typeof e == "boolean" ? null : typeof e == "function" ? e : gn(e);
}
- function Uf(e, t, n, r, i) {
+ function Hf(e, t, n, r, i) {
if (t === "submit" && n && n.stateNode === i) {
- var a = Hf((i[Tt] || null).action), o = r.submitter;
- o && (t = (t = o[Tt] || null) ? Hf(t.formAction) : o.getAttribute("formAction"), t !== null && (a = t, o = null));
+ var a = Vf((i[Tt] || null).action), o = r.submitter;
+ o && (t = (t = o[Tt] || null) ? Vf(t.formAction) : o.getAttribute("formAction"), t !== null && (a = t, o = null));
var s = new In("action", "action", null, r, i);
e.push({
event: s,
@@ -6748,7 +6748,7 @@ var _ = /* @__PURE__ */ o(((e) => {
instance: null,
listener: function() {
if (r.defaultPrevented) {
- if (Mf !== 0) {
+ if (jf !== 0) {
var e = new FormData(i, o);
ec(n, {
pending: !0,
@@ -6769,9 +6769,9 @@ var _ = /* @__PURE__ */ o(((e) => {
});
}
}
- for (var Wf = 0; Wf < ui.length; Wf++) {
- var Gf = ui[Wf];
- di(Gf.toLowerCase(), "on" + (Gf[0].toUpperCase() + Gf.slice(1)));
+ for (var Uf = 0; Uf < ui.length; Uf++) {
+ var Wf = ui[Uf];
+ di(Wf.toLowerCase(), "on" + (Wf[0].toUpperCase() + Wf.slice(1)));
}
di(ni, "onAnimationEnd"), di(ri, "onAnimationIteration"), di(ii, "onAnimationStart"), di("dblclick", "onDoubleClick"), di("focusin", "onFocus"), di("focusout", "onBlur"), di(ai, "onTransitionRun"), di(oi, "onTransitionStart"), di(si, "onTransitionCancel"), di(ci, "onTransitionEnd"), Ut("onMouseEnter", ["mouseout", "mouseover"]), Ut("onMouseLeave", ["mouseout", "mouseover"]), Ut("onPointerEnter", ["pointerout", "pointerover"]), Ut("onPointerLeave", ["pointerout", "pointerover"]), Ht("onChange", "change click focusin focusout input keydown keyup selectionchange".split(" ")), Ht("onSelect", "focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")), Ht("onBeforeInput", [
"compositionend",
@@ -6779,8 +6779,8 @@ var _ = /* @__PURE__ */ o(((e) => {
"textInput",
"paste"
]), Ht("onCompositionEnd", "compositionend focusout keydown keypress keyup mousedown".split(" ")), Ht("onCompositionStart", "compositionstart focusout keydown keypress keyup mousedown".split(" ")), Ht("onCompositionUpdate", "compositionupdate focusout keydown keypress keyup mousedown".split(" "));
- var Kf = "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(" "), qf = new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Kf));
- function Jf(e, t) {
+ 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) {
t = !!(t & 4);
for (var n = 0; n < e.length; n++) {
var r = e[n], i = r.event;
@@ -6811,42 +6811,42 @@ var _ = /* @__PURE__ */ o(((e) => {
}
}
}
- function Yf(e, t) {
+ function Jf(e, t) {
var n = t[Dt];
n === void 0 && (n = t[Dt] = /* @__PURE__ */ new Set());
var r = e + "__bubble";
- n.has(r) || ($f(t, e, 2, !1), n.add(r));
+ n.has(r) || (Qf(t, e, 2, !1), n.add(r));
}
- function Xf(e, t, n) {
+ function Yf(e, t, n) {
var r = 0;
- t && (r |= 4), $f(n, e, r, t);
+ t && (r |= 4), Qf(n, e, r, t);
}
- var Zf = "_reactListening" + Math.random().toString(36).slice(2);
- function Qf(e) {
- if (!e[Zf]) {
- e[Zf] = !0, Bt.forEach(function(t) {
- t !== "selectionchange" && (qf.has(t) || Xf(t, !1, e), Xf(t, !0, e));
+ var Xf = "_reactListening" + Math.random().toString(36).slice(2);
+ function Zf(e) {
+ if (!e[Xf]) {
+ e[Xf] = !0, Bt.forEach(function(t) {
+ t !== "selectionchange" && (Kf.has(t) || Yf(t, !1, e), Yf(t, !0, e));
});
var t = e.nodeType === 9 ? e : e.ownerDocument;
- t === null || t[Zf] || (t[Zf] = !0, Xf("selectionchange", !1, t));
+ t === null || t[Xf] || (t[Xf] = !0, Yf("selectionchange", !1, t));
}
}
- function $f(e, t, n, r) {
- switch (Mh(t)) {
+ function Qf(e, t, n, r) {
+ switch (jh(t)) {
case 2:
- var i = Eh;
+ var i = Th;
break;
case 8:
- i = Dh;
+ i = Eh;
break;
- default: i = Oh;
+ default: i = Dh;
}
n = i.bind(null, t, n, e), i = void 0, !Dn || t !== "touchstart" && t !== "touchmove" && t !== "wheel" || (i = !0), r ? i === void 0 ? e.addEventListener(t, n, !0) : e.addEventListener(t, n, {
capture: !0,
passive: i
}) : i === void 0 ? e.addEventListener(t, n, !1) : e.addEventListener(t, n, { passive: i });
}
- function ep(e, t, n, r, i) {
+ function $f(e, t, n, r, i) {
var a = r;
if (!(t & 1) && !(t & 2) && r !== null) a: for (;;) {
if (r === null) return;
@@ -6959,7 +6959,7 @@ var _ = /* @__PURE__ */ o(((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 = Tn(m, p), g != null && d.push(tp(m, g, h))), f) break;
+ if (h = g.stateNode, g = g.tag, g !== 5 && g !== 26 && g !== 27 || h === null || p === null || (g = Tn(m, p), g != null && d.push(ep(m, g, h))), f) break;
m = m.return;
}
0 < d.length && (c = new l(c, u, null, n, i), s.push({
@@ -6971,7 +6971,7 @@ var _ = /* @__PURE__ */ o(((e) => {
if (!(t & 7)) {
a: {
if (l = e === "mouseover" || e === "pointerover", c = e === "mouseout" || e === "pointerout", l && n !== vn && (u = n.relatedTarget || n.fromElement) && (Pt(u) || u[Et])) 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 ? Pt(l) : null, l !== null && (f = o(l), d = l.tag, l !== f || d !== 5 && d !== 27 && d !== 6) && (l = null)) : (c = null, l = r), c !== l && (d = Hn, g = "onMouseLeave", p = "onMouseEnter", m = "mouse", (e === "pointerout" || e === "pointerover") && (d = er, g = "onPointerLeave", p = "onPointerEnter", m = "pointer"), f = c == null ? u : It(c), h = l == null ? u : It(l), u = new d(g, m + "leave", c, n, i), u.target = f, u.relatedTarget = h, g = null, Pt(i) === r && (d = new d(p, m + "enter", l, n, i), d.target = h, d.relatedTarget = f, g = d), f = g, d = c && l ? E(c, l, rp) : null, c !== null && ip(s, u, c, d, !1), l !== null && f !== null && ip(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 ? Pt(l) : null, l !== null && (f = o(l), d = l.tag, l !== f || d !== 5 && d !== 27 && d !== 6) && (l = null)) : (c = null, l = r), c !== l && (d = Hn, g = "onMouseLeave", p = "onMouseEnter", m = "mouse", (e === "pointerout" || e === "pointerover") && (d = er, g = "onPointerLeave", p = "onPointerEnter", m = "pointer"), f = c == null ? u : It(c), h = l == null ? u : It(l), u = new d(g, m + "leave", c, n, i), u.target = f, u.relatedTarget = h, g = null, Pt(i) === r && (d = new d(p, m + "enter", l, n, i), d.target = h, d.relatedTarget = f, g = d), f = g, d = c && l ? E(c, l, np) : null, c !== null && rp(s, u, c, d, !1), l !== null && f !== null && rp(s, f, l, d, !0)));
}
a: {
if (c = r ? It(r) : window, l = c.nodeName && c.nodeName.toLowerCase(), l === "select" || l === "input" && c.type === "file") var _ = Tr;
@@ -7023,58 +7023,58 @@ var _ = /* @__PURE__ */ o(((e) => {
b = void 0;
}
else hr ? pr(e, n) && (b = "onCompositionEnd") : e === "keydown" && n.keyCode === 229 && (b = "onCompositionStart");
- b && (ur && n.locale !== "ko" && (hr || b !== "onCompositionStart" ? b === "onCompositionEnd" && hr && (y = H()) : (kn = i, An = "value" in kn ? kn.value : kn.textContent, hr = !0)), v = np(r, b), 0 < v.length && (b = new qn(b, e, null, n, i), s.push({
+ b && (ur && n.locale !== "ko" && (hr || b !== "onCompositionStart" ? b === "onCompositionEnd" && hr && (y = H()) : (kn = i, An = "value" in kn ? kn.value : kn.textContent, hr = !0)), v = tp(r, b), 0 < v.length && (b = new qn(b, e, null, n, i), s.push({
event: b,
listeners: v
- }), y ? b.data = y : (y = mr(n), y !== null && (b.data = y)))), (y = lr ? gr(e, n) : _r(e, n)) && (b = np(r, "onBeforeInput"), 0 < b.length && (v = new qn("onBeforeInput", "beforeinput", null, n, i), s.push({
+ }), y ? b.data = y : (y = mr(n), y !== null && (b.data = y)))), (y = lr ? gr(e, n) : _r(e, n)) && (b = tp(r, "onBeforeInput"), 0 < b.length && (v = new qn("onBeforeInput", "beforeinput", null, n, i), s.push({
event: v,
listeners: b
- }), v.data = y)), Uf(s, e, r, n, i);
+ }), v.data = y)), Hf(s, e, r, n, i);
}
- Jf(s, t);
+ qf(s, t);
});
}
- function tp(e, t, n) {
+ function ep(e, t, n) {
return {
instance: e,
listener: t,
currentTarget: n
};
}
- function np(e, t) {
+ function tp(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 = Tn(e, n), i != null && r.unshift(tp(e, i, a)), i = Tn(e, t), i != null && r.push(tp(e, i, a))), e.tag === 3) return r;
+ if (i = i.tag, i !== 5 && i !== 26 && i !== 27 || a === null || (i = Tn(e, n), i != null && r.unshift(ep(e, i, a)), i = Tn(e, t), i != null && r.push(ep(e, i, a))), e.tag === 3) return r;
e = e.return;
}
return [];
}
- function rp(e) {
+ function np(e) {
if (e === null) return null;
do
e = e.return;
while (e && e.tag !== 5 && e.tag !== 27);
return e || null;
}
- function ip(e, t, n, r, i) {
+ function rp(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 = Tn(n, a), l != null && o.unshift(tp(n, l, c))) : i || (l = Tn(n, a), l != null && o.push(tp(n, l, c)))), n = n.return;
+ s !== 5 && s !== 26 && s !== 27 || l === null || (c = l, i ? (l = Tn(n, a), l != null && o.unshift(ep(n, l, c))) : i || (l = Tn(n, a), l != null && o.push(ep(n, l, c)))), n = n.return;
}
o.length !== 0 && e.push({
event: t,
listeners: o
});
}
- var ap = /\r\n?/g, op = /\u0000|\uFFFD/g;
- function sp(e) {
- return (typeof e == "string" ? e : "" + e).replace(ap, "\n").replace(op, "");
+ var ip = /\r\n?/g, ap = /\u0000|\uFFFD/g;
+ function op(e) {
+ return (typeof e == "string" ? e : "" + e).replace(ip, "\n").replace(ap, "");
}
- function cp(e, t) {
- return t = sp(t), sp(e) === t;
+ function sp(e, t) {
+ return t = op(t), op(e) === t;
}
- function lp(e, t, n, r, a, o) {
+ function cp(e, t, n, r, a, o) {
switch (n) {
case "children":
if (typeof r == "string") t === "body" || t === "textarea" && r === "" || ln(e, r);
@@ -7115,7 +7115,7 @@ var _ = /* @__PURE__ */ o(((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" && lp(e, t, "name", a.name, a, null), lp(e, t, "formEncType", a.formEncType, a, null), lp(e, t, "formMethod", a.formMethod, a, null), lp(e, t, "formTarget", a.formTarget, a, null)) : (lp(e, t, "encType", a.encType, a, null), lp(e, t, "method", a.method, a, null), lp(e, t, "target", a.target, a, null))), r == null || typeof r == "symbol" || typeof r == "boolean") {
+ 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") {
e.removeAttribute(n);
break;
}
@@ -7125,10 +7125,10 @@ var _ = /* @__PURE__ */ o(((e) => {
r != null && (e.onclick = _n);
return;
case "onScroll":
- r != null && Yf("scroll", e);
+ r != null && Jf("scroll", e);
return;
case "onScrollEnd":
- r != null && Yf("scrollend", e);
+ r != null && Jf("scrollend", e);
return;
case "dangerouslySetInnerHTML":
if (r != null) {
@@ -7210,7 +7210,7 @@ var _ = /* @__PURE__ */ o(((e) => {
r == null || typeof r == "function" || typeof r == "symbol" || isNaN(r) ? e.removeAttribute(n) : e.setAttribute(n, r);
break;
case "popover":
- Yf("beforetoggle", e), Yf("toggle", e), qt(e, "popover", r);
+ Jf("beforetoggle", e), Jf("toggle", e), qt(e, "popover", r);
break;
case "xlinkActuate":
Yt(e, "http://www.w3.org/1999/xlink", "xlink:actuate", r);
@@ -7249,7 +7249,7 @@ var _ = /* @__PURE__ */ o(((e) => {
}
z = !0;
}
- function up(e, t, n, r, a, o) {
+ function lp(e, t, n, r, a, o) {
switch (n) {
case "style":
fn(e, r, o);
@@ -7269,10 +7269,10 @@ var _ = /* @__PURE__ */ o(((e) => {
else return;
break;
case "onScroll":
- r != null && Yf("scroll", e);
+ r != null && Jf("scroll", e);
return;
case "onScrollEnd":
- r != null && Yf("scrollend", e);
+ r != null && Jf("scrollend", e);
return;
case "onClick":
r != null && (e.onclick = _n);
@@ -7295,7 +7295,7 @@ var _ = /* @__PURE__ */ o(((e) => {
}
z = !0;
}
- function dp(e, t, n) {
+ function up(e, t, n) {
switch (t) {
case "div":
case "span":
@@ -7306,7 +7306,7 @@ var _ = /* @__PURE__ */ o(((e) => {
case "p":
case "li": break;
case "img":
- Yf("error", e), Yf("load", e);
+ Jf("error", e), Jf("load", e);
var r = !1, a = !1, o;
for (o in n) if (n.hasOwnProperty(o)) {
var s = n[o];
@@ -7319,13 +7319,13 @@ var _ = /* @__PURE__ */ o(((e) => {
break;
case "children":
case "dangerouslySetInnerHTML": throw Error(i(137, t));
- default: lp(e, t, o, s, n, null);
+ default: cp(e, t, o, s, n, null);
}
}
- a && lp(e, t, "srcSet", n.srcSet, n, null), r && lp(e, t, "src", n.src, n, null);
+ a && cp(e, t, "srcSet", n.srcSet, n, null), r && cp(e, t, "src", n.src, n, null);
return;
case "input":
- Yf("invalid", e);
+ Jf("invalid", e);
var c = o = s = a = null, l = null, u = null;
for (r in n) if (n.hasOwnProperty(r)) {
var d = n[r];
@@ -7352,13 +7352,13 @@ var _ = /* @__PURE__ */ o(((e) => {
case "dangerouslySetInnerHTML":
if (d != null) throw Error(i(137, t));
break;
- default: lp(e, t, r, d, n, null);
+ default: cp(e, t, r, d, n, null);
}
}
rn(e, o, c, l, u, s, a, !1);
return;
case "select":
- for (a in Yf("invalid", e), r = s = o = null, n) if (n.hasOwnProperty(a) && (c = n[a], c != null)) switch (a) {
+ for (a in Jf("invalid", e), r = s = o = null, n) if (n.hasOwnProperty(a) && (c = n[a], c != null)) switch (a) {
case "value":
o = c;
break;
@@ -7366,12 +7366,12 @@ var _ = /* @__PURE__ */ o(((e) => {
s = c;
break;
case "multiple": r = c;
- default: lp(e, t, a, c, n, null);
+ default: cp(e, t, a, c, n, null);
}
t = o, n = s, e.multiple = !!r, t == null ? n != null && on(e, !!r, n, !0) : on(e, !!r, t, !1);
return;
case "textarea":
- for (s in Yf("invalid", e), o = a = r = null, n) if (n.hasOwnProperty(s) && (c = n[s], c != null)) switch (s) {
+ for (s in Jf("invalid", e), o = a = r = null, n) if (n.hasOwnProperty(s) && (c = n[s], c != null)) switch (s) {
case "value":
r = c;
break;
@@ -7384,7 +7384,7 @@ var _ = /* @__PURE__ */ o(((e) => {
case "dangerouslySetInnerHTML":
if (c != null) throw Error(i(91));
break;
- default: lp(e, t, s, c, n, null);
+ default: cp(e, t, s, c, n, null);
}
cn(e, r, a, o);
return;
@@ -7393,29 +7393,29 @@ var _ = /* @__PURE__ */ o(((e) => {
case "selected":
e.selected = r && typeof r != "function" && typeof r != "symbol";
break;
- default: lp(e, t, l, r, n, null);
+ default: cp(e, t, l, r, n, null);
}
return;
case "dialog":
- Yf("beforetoggle", e), Yf("toggle", e), Yf("cancel", e), Yf("close", e);
+ Jf("beforetoggle", e), Jf("toggle", e), Jf("cancel", e), Jf("close", e);
break;
case "iframe":
case "object":
- Yf("load", e);
+ Jf("load", e);
break;
case "video":
case "audio":
- for (r = 0; r < Kf.length; r++) Yf(Kf[r], e);
+ for (r = 0; r < Gf.length; r++) Jf(Gf[r], e);
break;
case "image":
- Yf("error", e), Yf("load", e);
+ Jf("error", e), Jf("load", e);
break;
case "details":
- Yf("toggle", e);
+ Jf("toggle", e);
break;
case "embed":
case "source":
- case "link": Yf("error", e), Yf("load", e);
+ case "link": Jf("error", e), Jf("load", e);
case "area":
case "base":
case "br":
@@ -7430,18 +7430,18 @@ var _ = /* @__PURE__ */ o(((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: lp(e, t, u, r, n, null);
+ default: cp(e, t, u, r, n, null);
}
return;
default: if (pn(t)) {
- for (d in n) n.hasOwnProperty(d) && (r = n[d], r !== void 0 && up(e, t, d, r, n, void 0));
+ for (d in n) n.hasOwnProperty(d) && (r = n[d], r !== void 0 && lp(e, t, d, r, n, void 0));
return;
}
}
- for (c in n) n.hasOwnProperty(c) && (r = n[c], r != null && lp(e, t, c, r, n, null));
+ for (c in n) n.hasOwnProperty(c) && (r = n[c], r != null && cp(e, t, c, r, n, null));
}
- var fp = {};
- function pp(e, t, n, r) {
+ var dp = {};
+ function fp(e, t, n, r) {
switch (t) {
case "div":
case "span":
@@ -7459,7 +7459,7 @@ var _ = /* @__PURE__ */ o(((e) => {
case "checked": break;
case "value": break;
case "defaultValue": l = f;
- default: r.hasOwnProperty(m) || lp(e, t, m, null, r, f);
+ default: r.hasOwnProperty(m) || cp(e, t, m, null, r, f);
}
}
for (var p in r) {
@@ -7487,7 +7487,7 @@ var _ = /* @__PURE__ */ o(((e) => {
case "dangerouslySetInnerHTML":
if (m != null) throw Error(i(137, t));
break;
- default: m !== f && lp(e, t, p, m, r, f);
+ default: m !== f && cp(e, t, p, m, r, f);
}
}
nn(e, s, c, l, u, d, o, a);
@@ -7496,7 +7496,7 @@ var _ = /* @__PURE__ */ o(((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) || lp(e, t, o, null, r, l);
+ default: r.hasOwnProperty(o) || cp(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":
@@ -7506,7 +7506,7 @@ var _ = /* @__PURE__ */ o(((e) => {
o !== l && (z = !0), c = o;
break;
case "multiple": o !== l && (z = !0), s = o;
- default: o !== l && lp(e, t, a, o, r, l);
+ default: o !== l && cp(e, t, a, o, r, l);
}
t = c, n = s, r = m, p == null ? !!r != !!n && (t == null ? on(e, !!n, n ? [] : "", !1) : on(e, !!n, t, !0)) : on(e, !!n, p, !1);
return;
@@ -7514,7 +7514,7 @@ var _ = /* @__PURE__ */ o(((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: lp(e, t, c, null, r, a);
+ default: cp(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":
@@ -7527,7 +7527,7 @@ var _ = /* @__PURE__ */ o(((e) => {
case "dangerouslySetInnerHTML":
if (a != null) throw Error(i(91));
break;
- default: a !== o && lp(e, t, s, a, r, o);
+ default: a !== o && cp(e, t, s, a, r, o);
}
sn(e, p, m);
return;
@@ -7536,13 +7536,13 @@ var _ = /* @__PURE__ */ o(((e) => {
case "selected":
e.selected = !1;
break;
- default: lp(e, t, h, null, r, p);
+ default: cp(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 && (z = !0), e.selected = p && typeof p != "function" && typeof p != "symbol";
break;
- default: lp(e, t, l, p, r, m);
+ default: cp(e, t, l, p, r, m);
}
return;
case "img":
@@ -7560,25 +7560,25 @@ var _ = /* @__PURE__ */ o(((e) => {
case "track":
case "wbr":
case "menuitem":
- for (var g in n) p = n[g], n.hasOwnProperty(g) && p != null && !r.hasOwnProperty(g) && lp(e, t, g, null, r, p);
+ for (var g in n) p = n[g], n.hasOwnProperty(g) && p != null && !r.hasOwnProperty(g) && cp(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: lp(e, t, u, p, r, m);
+ default: cp(e, t, u, p, r, m);
}
return;
default: if (pn(t)) {
- for (var _ in n) p = n[_], n.hasOwnProperty(_) && p !== void 0 && !r.hasOwnProperty(_) && up(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 || up(e, t, d, p, r, m);
+ 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);
return;
}
}
- for (var v in n) p = n[v], n.hasOwnProperty(v) && p != null && !r.hasOwnProperty(v) && lp(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 || lp(e, t, f, p, r, m);
+ 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);
}
- function mp(e) {
+ function pp(e) {
switch (e) {
case "css":
case "script":
@@ -7590,16 +7590,16 @@ var _ = /* @__PURE__ */ o(((e) => {
default: return !1;
}
}
- function hp() {
+ function mp() {
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 && mp(o)) {
+ if (a && s && pp(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 && mp(d) && (c = c.responseEnd, o += u * (c < s ? 1 : (s - l) / (c - l)));
+ u && pp(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;
}
@@ -7608,18 +7608,18 @@ var _ = /* @__PURE__ */ o(((e) => {
}
return navigator.connection && (e = navigator.connection.downlink, typeof e == "number") ? e : 5;
}
- var gp = null, _p = null;
- function vp(e) {
+ var hp = null, gp = null;
+ function _p(e) {
return e.nodeType === 9 ? e : e.ownerDocument;
}
- function yp(e) {
+ function vp(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 bp(e, t) {
+ function yp(e, t) {
if (e === 0) switch (t) {
case "svg": return 1;
case "math": return 2;
@@ -7627,54 +7627,54 @@ var _ = /* @__PURE__ */ o(((e) => {
}
return e === 1 && t === "foreignObject" ? 0 : e;
}
- function xp(e, t, n, r) {
- return n = vp(n).createElement(e), n[wt] = r, n[Tt] = t, dp(n, e, t), Rt(n), n;
+ function bp(e, t, n, r) {
+ return n = _p(n).createElement(e), n[wt] = r, n[Tt] = t, up(n, e, t), Rt(n), n;
}
- function Sp(e, t) {
+ function xp(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 Cp = null;
- function wp() {
+ var Sp = null;
+ function Cp() {
var e = window.event;
- return e && e.type === "popstate" ? e !== Cp && (Cp = e, !0) : (Cp = null, !1);
+ return e && e.type === "popstate" ? e !== Sp && (Sp = e, !0) : (Sp = null, !1);
}
- var Tp = typeof setTimeout == "function" ? setTimeout : void 0, Ep = typeof clearTimeout == "function" ? clearTimeout : void 0, Dp = typeof Promise == "function" ? Promise : void 0, Op = typeof requestAnimationFrame == "function" ? requestAnimationFrame : Tp, kp = typeof queueMicrotask == "function" ? queueMicrotask : Dp === void 0 ? Tp : function(e) {
- return Dp.resolve(null).then(e).catch(Ap);
+ 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);
};
- function Ap(e) {
+ function kp(e) {
setTimeout(function() {
throw e;
});
}
- function jp(e) {
+ function Ap(e) {
return e === "head";
}
- function Mp(e, t) {
+ function jp(e, t) {
var n = t, r = 0;
do {
var i = n.nextSibling;
if (e.removeChild(n), i && i.nodeType === 8) {
if (n = i.data, n === "/$" || n === "/&") {
if (r === 0) {
- e.removeChild(i), Zh(t);
+ e.removeChild(i), Xh(t);
return;
}
r--;
} else if (n === "$" || n === "$?" || n === "$~" || n === "$!" || n === "&") r++;
- else if (n === "html") Em(e.ownerDocument.documentElement);
+ else if (n === "html") Tm(e.ownerDocument.documentElement);
else if (n === "head") {
- n = e.ownerDocument.head, Em(n);
+ n = e.ownerDocument.head, Tm(n);
for (var a = n.firstChild; a;) {
var o = a.nextSibling, s = a.nodeName;
a[jt] || s === "SCRIPT" || s === "STYLE" || s === "LINK" && a.rel.toLowerCase() === "stylesheet" || n.removeChild(a), a = o;
}
- } else n === "body" && Em(e.ownerDocument.body);
+ } else n === "body" && Tm(e.ownerDocument.body);
}
n = i;
} while (n);
- Zh(t);
+ Xh(t);
}
- function Np(e, t) {
+ function Mp(e, t) {
var n = e;
e = 0;
do {
@@ -7688,7 +7688,7 @@ var _ = /* @__PURE__ */ o(((e) => {
n = r;
} while (n);
}
- function Pp(e, t, n) {
+ function Np(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++) {
@@ -7698,12 +7698,12 @@ var _ = /* @__PURE__ */ o(((e) => {
r === 1 && (e = e.style, e.display = t.length === 1 ? "inline-block" : "block", e.marginTop = "-" + n.paddingTop, e.marginBottom = "-" + n.paddingBottom);
}
}
- function Fp(e, t) {
+ function Pp(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 Ip(e, t, n) {
+ function Fp(e, t, n) {
return n = n.ownerDocument.defaultView, {
rect: e,
abs: t.position === "absolute" || t.position === "fixed",
@@ -7711,22 +7711,22 @@ var _ = /* @__PURE__ */ o(((e) => {
view: 0 <= e.bottom && 0 <= e.right && e.top <= n.innerHeight && e.left <= n.innerWidth
};
}
- function Lp(e) {
- return Ip(e.getBoundingClientRect(), getComputedStyle(e), e);
+ function Ip(e) {
+ return Fp(e.getBoundingClientRect(), getComputedStyle(e), e);
}
- function Rp(e) {
+ function Lp(e) {
var t = e.getBoundingClientRect();
t = new DOMRect(t.x + 2e4, t.y + 2e4, t.width, t.height);
var n = getComputedStyle(e);
- return Ip(t, n, e);
+ return Fp(t, n, e);
}
- function zp(e) {
+ function Rp(e) {
return e.documentElement.clientHeight;
}
- function Bp(e) {
+ function zp(e) {
this.addEventListener("load", e), this.addEventListener("error", e);
}
- function Vp(e, t, n, r, i, a, o, s, c) {
+ function Bp(e, t, n, r, i, a, o, s, c) {
var l = t.nodeType === 9 ? t : t.ownerDocument;
try {
var u = l.startViewTransition({
@@ -7734,16 +7734,16 @@ var _ = /* @__PURE__ */ o(((e) => {
var t = l.defaultView, n = t.navigation && t.navigation.transition, o = l.fonts.status;
r();
var s = [];
- if (o === "loaded" && (zp(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" && (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++) {
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 += ah(f), u > ch) {
+ if (u += ih(f), u > sh) {
s.length = o;
break;
}
- f = new Promise(Bp.bind(f)), s.push(f);
+ f = new Promise(zp.bind(f)), s.push(f);
}
}
}
@@ -7798,86 +7798,86 @@ var _ = /* @__PURE__ */ o(((e) => {
return r(), i(), o(), null;
}
}
- function Hp(e, t) {
+ function Vp(e, t) {
this._scope = document.documentElement, this._selector = "::view-transition-" + e + "(" + t + ")";
}
- Hp.prototype.animate = function(e, t) {
+ Vp.prototype.animate = function(e, t) {
return t = typeof t == "number" ? { duration: t } : D({}, t), t.pseudoElement = this._selector, this._scope.animate(e, t);
- }, Hp.prototype.getAnimations = function() {
+ }, Vp.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;
- }, Hp.prototype.getComputedStyle = function() {
+ }, Vp.prototype.getComputedStyle = function() {
return getComputedStyle(this._scope, this._selector);
};
- function Up(e) {
+ function Hp(e) {
return {
name: e,
- group: new Hp("group", e),
- imagePair: new Hp("image-pair", e),
- old: new Hp("old", e),
- new: new Hp("new", e)
+ group: new Vp("group", e),
+ imagePair: new Vp("image-pair", e),
+ old: new Vp("old", e),
+ new: new Vp("new", e)
};
}
- function Wp(e) {
+ function Up(e) {
this._fragmentFiber = e, this._observers = this._eventListeners = null;
}
- Wp.prototype.addEventListener = function(e, t, n) {
+ Up.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 (Yp(a, e, t, n) === -1) {
+ if (Jp(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 = qp(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 = Kp(n), a.push({
type: e,
listener: t,
optionsOrUseCapture: n,
attachedListener: s,
cleanup: i
- }), f(this._fragmentFiber.child, !1, Gp, e, s, r);
+ }), f(this._fragmentFiber.child, !1, Wp, e, s, r);
}
this._eventListeners = a;
}
};
- function Gp(e, t, n, r) {
+ function Wp(e, t, n, r) {
return _(e).addEventListener(t, n, r), !1;
}
- Wp.prototype.removeEventListener = function(e, t, n) {
+ Up.prototype.removeEventListener = function(e, t, n) {
var r = this._eventListeners;
- if (r !== null && (t = Yp(r, e, t, n), t !== -1)) {
+ if (r !== null && (t = Jp(r, e, t, n), t !== -1)) {
var i = r[t];
n = i.attachedListener;
var a = i.cleanup;
- i = qp(i.optionsOrUseCapture), f(this._fragmentFiber.child, !1, Kp, e, n, i), r.splice(t, 1), a !== null && a();
+ i = Kp(i.optionsOrUseCapture), f(this._fragmentFiber.child, !1, Gp, e, n, i), r.splice(t, 1), a !== null && a();
}
};
- function Kp(e, t, n, r) {
+ function Gp(e, t, n, r) {
return _(e).removeEventListener(t, n, r), !1;
}
- function qp(e) {
+ function Kp(e) {
return e != null && typeof e != "boolean" && (!0 === e.once || e.signal instanceof AbortSignal) ? {
capture: e.capture,
passive: e.passive
} : e;
}
- function Jp(e) {
+ function qp(e) {
return e == null ? "c=0" : typeof e == "boolean" ? "c=" + (e ? "1" : "0") : "c=" + (e.capture ? "1" : "0");
}
- function Yp(e, t, n, r) {
+ function Jp(e, t, n, r) {
if (e.length === 0) return -1;
- r = Jp(r);
+ r = qp(r);
for (var i = 0; i < e.length; i++) {
var a = e[i];
- if (a.type === t && a.listener === n && Jp(a.optionsOrUseCapture) === r) return i;
+ if (a.type === t && a.listener === n && qp(a.optionsOrUseCapture) === r) return i;
}
return -1;
}
- Wp.prototype.dispatchEvent = function(e) {
+ Up.prototype.dispatchEvent = function(e) {
var t = p(this._fragmentFiber);
if (t === null) return !0;
t = _(t);
@@ -7886,74 +7886,74 @@ var _ = /* @__PURE__ */ o(((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, qp(a.optionsOrUseCapture));
+ r.addEventListener(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, qp(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));
return t.removeChild(r), e;
}
return t.dispatchEvent(e);
- }, Wp.prototype.focus = function(e) {
- f(this._fragmentFiber.child, !0, Xp, e, void 0, void 0);
+ }, Up.prototype.focus = function(e) {
+ f(this._fragmentFiber.child, !0, Yp, e, void 0, void 0);
};
- function Xp(e, t) {
- return e.tag !== 6 && (e = _(e), Sm(e, t));
+ function Yp(e, t) {
+ return e.tag !== 6 && (e = _(e), xm(e, t));
}
- Wp.prototype.focusLast = function(e) {
+ Up.prototype.focusLast = function(e) {
var t = [];
- f(this._fragmentFiber.child, !0, Zp, t, void 0, void 0);
- for (var n = t.length - 1; 0 <= n && !Xp(t[n], e); n--);
+ f(this._fragmentFiber.child, !0, Xp, t, void 0, void 0);
+ for (var n = t.length - 1; 0 <= n && !Yp(t[n], e); n--);
};
- function Zp(e, t) {
+ function Xp(e, t) {
return t.push(e), !1;
}
- Wp.prototype.blur = function() {
+ Up.prototype.blur = function() {
var e = p(this._fragmentFiber);
- e !== null && (e = _(e), e = vp(e).activeElement, e !== null && f(this._fragmentFiber.child, !1, Qp, e, void 0, void 0));
+ e !== null && (e = _(e), e = _p(e).activeElement, e !== null && f(this._fragmentFiber.child, !1, Zp, e, void 0, void 0));
};
- function Qp(e, t) {
+ function Zp(e, t) {
return e.tag !== 6 && (e = _(e), e === t || e.contains(t) ? (t.blur(), !0) : !1);
}
- Wp.prototype.observeUsing = function(e) {
- this._observers === null && (this._observers = /* @__PURE__ */ new Set()), this._observers.add(e), f(this._fragmentFiber.child, !1, $p, e, void 0, void 0);
+ 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);
};
- function $p(e, t) {
+ function Qp(e, t) {
return e.tag === 6 || (e = _(e), t.observe(e)), !1;
}
- Wp.prototype.unobserveUsing = function(e) {
+ Up.prototype.unobserveUsing = function(e) {
var t = this._observers;
if (t !== null && t.has(e)) {
- t.delete(e), f(this._fragmentFiber.child, !1, em, e, void 0, void 0);
- for (var n = t = 0; n < tm.length; n++) {
- var r = tm[n];
- r.fragmentInstance === this && r.observer === e ? e.unobserve(r.instance) : tm[t++] = r;
+ 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;
}
- tm.length = t;
+ em.length = t;
}
};
- function em(e, t) {
+ function $p(e, t) {
return e.tag === 6 || (e = _(e), t.unobserve(e)), !1;
}
- var tm = [], nm = !1;
- function rm(e, t, n) {
- tm.push({
+ var em = [], tm = !1;
+ function nm(e, t, n) {
+ em.push({
fragmentInstance: e,
observer: t,
instance: n
- }), nm || (nm = !0, Cm(function() {
- nm = !1;
- var e = tm;
- tm = [];
+ }), tm || (tm = !0, Sm(function() {
+ tm = !1;
+ var e = em;
+ em = [];
for (var t = 0; t < e.length; t++) {
var n = e[t];
n.observer.unobserve(n.instance);
}
}));
}
- Wp.prototype.getClientRects = function() {
+ Up.prototype.getClientRects = function() {
var e = [];
- return f(this._fragmentFiber.child, !1, im, e, void 0, void 0), e;
+ return f(this._fragmentFiber.child, !1, rm, e, void 0, void 0), e;
};
- function im(e, t) {
+ function rm(e, t) {
if (e.tag === 6) {
e = e.stateNode;
var n = e.ownerDocument.createRange();
@@ -7961,14 +7961,14 @@ var _ = /* @__PURE__ */ o(((e) => {
} else e = _(e), t.push.apply(t, e.getClientRects());
return !1;
}
- Wp.prototype.getRootNode = function(e) {
+ Up.prototype.getRootNode = function(e) {
var t = p(this._fragmentFiber);
return t === null ? this : _(t).getRootNode(e);
- }, Wp.prototype.compareDocumentPosition = function(e) {
+ }, Up.prototype.compareDocumentPosition = function(e) {
var t = p(this._fragmentFiber);
if (t === null) return Node.DOCUMENT_POSITION_DISCONNECTED;
var n = [];
- f(this._fragmentFiber.child, !1, Zp, n, void 0, void 0);
+ f(this._fragmentFiber.child, !1, Xp, n, void 0, void 0);
var r = _(t);
if (n.length === 0) {
if (n = r, m(this._fragmentFiber)) {
@@ -7994,9 +7994,9 @@ var _ = /* @__PURE__ */ o(((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 || am(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 || im(t, this._fragmentFiber, n[0], n[n.length - 1], e) ? t : Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC;
};
- function am(e, t, n, r, i) {
+ function im(e, t, n, r, i) {
var a = Pt(i);
if (e & Node.DOCUMENT_POSITION_CONTAINED_BY) {
if (n = !!a) a: {
@@ -8027,20 +8027,20 @@ var _ = /* @__PURE__ */ o(((e) => {
}
return e & Node.DOCUMENT_POSITION_PRECEDING ? ((t = !!a) && !(t = a === n) && (t = E(n, a, T), t === null ? t = !1 : (f(t, !0, C, a, n), a = y, y = null, t = a !== null)), t) : e & Node.DOCUMENT_POSITION_FOLLOWING ? ((t = !!a) && !(t = a === r) && (t = E(r, a, T), t === null ? t = !1 : (f(t, !0, w, a, r), a = y, x = y = null, t = a !== null)), t) : !1;
}
- function om(e, t) {
+ function am(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);
}
- Wp.prototype.scrollIntoView = function(e) {
+ Up.prototype.scrollIntoView = function(e) {
if (typeof e == "object") throw Error(i(566));
var t = [];
- f(this._fragmentFiber.child, !1, Zp, t, void 0, void 0);
+ f(this._fragmentFiber.child, !1, Xp, 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), om(e, n);
+ e = _(r), am(e, n);
return;
}
if (r = _(r), r.nodeType !== 9) {
@@ -8053,40 +8053,40 @@ var _ = /* @__PURE__ */ o(((e) => {
}
for (r = n ? t.length - 1 : 0; r !== (n ? -1 : t.length);) {
var a = t[r];
- a.tag === 6 ? (a = _(a), om(a, n)) : _(a).scrollIntoView(e), r += n ? -1 : 1;
+ a.tag === 6 ? (a = _(a), am(a, n)) : _(a).scrollIntoView(e), r += n ? -1 : 1;
}
};
- function sm(e, t) {
- return e = _(e), cm(e, t), !1;
+ function om(e, t) {
+ return e = _(e), sm(e, t), !1;
}
- function cm(e, t) {
+ function sm(e, t) {
e.reactFragments ??= /* @__PURE__ */ new Set(), e.reactFragments.add(t);
}
- function lm(e, t) {
+ function cm(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, qp(i.optionsOrUseCapture));
+ e.addEventListener(i.type, i.attachedListener, Kp(i.optionsOrUseCapture));
}
e.nodeType !== 3 && (n = t._observers, n !== null && n.forEach(function(n) {
- for (var r = 0, i = 0; i < tm.length; i++) {
- var a = tm[i];
- (a.fragmentInstance !== t || a.observer !== n || a.instance !== e) && (tm[r++] = a);
+ 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);
}
- tm.length = r, n.observe(e);
- }), cm(e, t));
+ em.length = r, n.observe(e);
+ }), sm(e, t));
}
- function um(e, t) {
+ function lm(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, qp(i.optionsOrUseCapture));
+ e.removeEventListener(i.type, i.attachedListener, Kp(i.optionsOrUseCapture));
}
e.nodeType !== 3 && (n = t._observers, n !== null && n.forEach(function(n) {
- typeof n.rootMargin == "string" ? rm(t, n, e) : n.unobserve(e);
+ typeof n.rootMargin == "string" ? nm(t, n, e) : n.unobserve(e);
}), e.reactFragments != null && e.reactFragments.delete(t));
}
- function dm(e) {
+ function um(e) {
var t = e.firstChild;
for (t && t.nodeType === 10 && (t = t.nextSibling); t;) {
var n = t;
@@ -8094,7 +8094,7 @@ var _ = /* @__PURE__ */ o(((e) => {
case "HTML":
case "HEAD":
case "BODY":
- dm(n), Nt(n);
+ um(n), Nt(n);
continue;
case "SCRIPT":
case "STYLE": continue;
@@ -8103,7 +8103,7 @@ var _ = /* @__PURE__ */ o(((e) => {
e.removeChild(n);
}
}
- function fm(e, t, n, r) {
+ function dm(e, t, n, r) {
for (; e.nodeType === 1;) {
var i = n;
if (e.nodeName.toLowerCase() !== t.toLowerCase()) {
@@ -8128,26 +8128,26 @@ var _ = /* @__PURE__ */ o(((e) => {
return e;
default: return e;
}
- if (e = vm(e.nextSibling), e === null) break;
+ if (e = _m(e.nextSibling), e === null) break;
}
return null;
}
- function pm(e, t, n) {
+ function fm(e, t, n) {
if (t === "") 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;
+ for (; e.nodeType !== 3;) if ((e.nodeType !== 1 || e.nodeName !== "INPUT" || e.type !== "hidden") && !n || (e = _m(e.nextSibling), e === null)) return null;
return e;
}
- 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;
+ function pm(e, t) {
+ for (; e.nodeType !== 8;) if ((e.nodeType !== 1 || e.nodeName !== "INPUT" || e.type !== "hidden") && !t || (e = _m(e.nextSibling), e === null)) return null;
return e;
}
- function hm(e) {
+ function mm(e) {
return e.data === "$?" || e.data === "$~";
}
- function gm(e) {
+ function hm(e) {
return e.data === "$!" || e.data === "$?" && e.ownerDocument.readyState !== "loading";
}
- function _m(e, t) {
+ function gm(e, t) {
var n = e.ownerDocument;
if (e.data === "$~") e._reactRetry = t;
else if (e.data !== "$?" || n.readyState !== "loading") t();
@@ -8158,7 +8158,7 @@ var _ = /* @__PURE__ */ o(((e) => {
n.addEventListener("DOMContentLoaded", r), e._reactRetry = r;
}
}
- function vm(e) {
+ function _m(e) {
for (; e != null; e = e.nextSibling) {
var t = e.nodeType;
if (t === 1 || t === 3) break;
@@ -8169,14 +8169,14 @@ var _ = /* @__PURE__ */ o(((e) => {
}
return e;
}
- var ym = null;
- function bm(e) {
+ var vm = null;
+ function ym(e) {
e = e.nextSibling;
for (var t = 0; e;) {
if (e.nodeType === 8) {
var n = e.data;
if (n === "/$" || n === "/&") {
- if (t === 0) return vm(e.nextSibling);
+ if (t === 0) return _m(e.nextSibling);
t--;
} else n !== "$" && n !== "$!" && n !== "$?" && n !== "$~" && n !== "&" || t++;
}
@@ -8184,7 +8184,7 @@ var _ = /* @__PURE__ */ o(((e) => {
}
return null;
}
- function xm(e) {
+ function bm(e) {
e = e.previousSibling;
for (var t = 0; e;) {
if (e.nodeType === 8) {
@@ -8198,7 +8198,7 @@ var _ = /* @__PURE__ */ o(((e) => {
}
return null;
}
- function Sm(e, t) {
+ function xm(e, t) {
function n() {
r = !0;
}
@@ -8211,15 +8211,15 @@ var _ = /* @__PURE__ */ o(((e) => {
}
return r;
}
- function Cm(e) {
- Op(function() {
- Op(function(t) {
+ function Sm(e) {
+ Dp(function() {
+ Dp(function(t) {
return e(t);
});
});
}
- function wm(e, t, n) {
- switch (t = vp(n), e) {
+ function Cm(e, t, n) {
+ switch (t = _p(n), e) {
case "html":
if (e = t.documentElement, !e) throw Error(i(452));
return e;
@@ -8232,91 +8232,91 @@ var _ = /* @__PURE__ */ o(((e) => {
default: throw Error(i(451));
}
}
- function Tm(e, t, n) {
+ function wm(e, t, n) {
for (var r in n) {
var i = n[r];
- n.hasOwnProperty(r) && i != null && lp(e, t, r, null, fp, i);
+ n.hasOwnProperty(r) && i != null && cp(e, t, r, null, dp, i);
}
n.dangerouslySetInnerHTML != null && (e.textContent = ""), e.onclick === _n && (e.onclick = null), Nt(e);
}
- function Em(e) {
+ function Tm(e) {
for (var t = e.attributes; t.length;) e.removeAttributeNode(t[0]);
Nt(e);
}
- var Dm = /* @__PURE__ */ new Map(), Om = /* @__PURE__ */ new Set();
- function km(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 Am = he.d;
+ var km = he.d;
he.d = {
- f: jm,
- r: Mm,
- D: Fm,
- C: Im,
- L: Lm,
- m: Rm,
- X: Bm,
- S: zm,
- M: Vm
- };
- function jm() {
- var e = Am.f(), t = Gd();
+ f: Am,
+ r: jm,
+ D: Pm,
+ C: Fm,
+ L: Im,
+ m: Lm,
+ X: zm,
+ S: Rm,
+ M: Bm
+ };
+ function Am() {
+ var e = km.f(), t = Wd();
return e || t;
}
- function Mm(e) {
+ function jm(e) {
var t = Ft(e);
- t !== null && t.tag === 5 && t.type === "form" ? nc(t) : Am.r(e);
+ t !== null && t.tag === 5 && t.type === "form" ? nc(t) : km.r(e);
}
- var Nm = typeof document > "u" ? null : document;
- function Pm(e, t, n) {
- var r = Nm;
+ var Mm = typeof document > "u" ? null : document;
+ function Nm(e, t, n) {
+ var r = Mm;
if (r && typeof t == "string" && t) {
var i = tn(t);
- i = "link[rel=\"" + e + "\"][href=\"" + i + "\"]", typeof n == "string" && (i += "[crossorigin=\"" + n + "\"]"), Om.has(i) || (Om.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"), dp(t, "link", e), Rt(t), r.head.appendChild(t)));
+ }, r.querySelector(i) === null && (t = r.createElement("link"), up(t, "link", e), Rt(t), r.head.appendChild(t)));
}
}
- function Fm(e) {
- Am.D(e), Pm("dns-prefetch", e, null);
+ function Pm(e) {
+ km.D(e), Nm("dns-prefetch", e, null);
}
- function Im(e, t) {
- Am.C(e, t), Pm("preconnect", e, t);
+ function Fm(e, t) {
+ km.C(e, t), Nm("preconnect", e, t);
}
- function Lm(e, t, n) {
- Am.L(e, t, n);
- var r = Nm;
+ function Im(e, t, n) {
+ km.L(e, t, n);
+ var r = Mm;
if (r && e && t) {
var i = "link[rel=\"preload\"][as=\"" + tn(t) + "\"]";
t === "image" && n && n.imageSrcSet ? (i += "[imagesrcset=\"" + tn(n.imageSrcSet) + "\"]", typeof n.imageSizes == "string" && (i += "[imagesizes=\"" + tn(n.imageSizes) + "\"]")) : i += "[href=\"" + tn(e) + "\"]";
var a = i;
switch (t) {
case "style":
- a = Um(e);
+ a = Hm(e);
break;
- case "script": a = qm(e);
+ case "script": a = Km(e);
}
- if (!(Dm.has(a) || (e = D({
+ if (!(Em.has(a) || (e = D({
rel: "preload",
href: t === "image" && n && n.imageSrcSet ? void 0 : e,
as: t
- }, n), Dm.set(a, e), r.querySelector(i) !== null || t === "style" && r.querySelector(Wm(a)) || t === "script" && r.querySelector(Jm(a))))) {
+ }, n), Em.set(a, e), r.querySelector(i) !== null || t === "style" && r.querySelector(Um(a)) || t === "script" && r.querySelector(qm(a))))) {
var o = r.createElement("link");
- dp(o, "link", e), t === "style" && (o[Mt] = !0, o.onload = o.onerror = function() {
+ up(o, "link", e), t === "style" && (o[Mt] = !0, o.onload = o.onerror = function() {
zt(o);
}), Rt(o), r.head.appendChild(o);
}
}
}
- function Rm(e, t) {
- Am.m(e, t);
- var n = Nm;
+ 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=\"" + tn(r) + "\"][href=\"" + tn(e) + "\"]", a = i;
switch (r) {
@@ -8325,29 +8325,29 @@ var _ = /* @__PURE__ */ o(((e) => {
case "serviceworker":
case "sharedworker":
case "worker":
- case "script": a = qm(e);
+ case "script": a = Km(e);
}
- if (!Dm.has(a) && (e = D({
+ if (!Em.has(a) && (e = D({
rel: "modulepreload",
href: e
- }, t), Dm.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(Jm(a))) return;
+ case "script": if (n.querySelector(qm(a))) return;
}
- r = n.createElement("link"), dp(r, "link", e), Rt(r), n.head.appendChild(r);
+ r = n.createElement("link"), up(r, "link", e), Rt(r), n.head.appendChild(r);
}
}
}
- function zm(e, t, n) {
- Am.S(e, t, n);
- var r = Nm;
+ function Rm(e, t, n) {
+ km.S(e, t, n);
+ var r = Mm;
if (r && e) {
- var i = Lt(r).hoistableStyles, a = Um(e);
+ var i = Lt(r).hoistableStyles, a = Hm(e);
t ||= "default";
var o = i.get(a);
if (!o) {
@@ -8355,21 +8355,21 @@ var _ = /* @__PURE__ */ o(((e) => {
loading: 0,
preload: null
};
- if (o = r.querySelector(Wm(a))) s.loading = 5;
+ if (o = r.querySelector(Um(a))) s.loading = 5;
else {
e = D({
rel: "stylesheet",
href: e,
"data-precedence": t
- }, n), (n = Dm.get(a)) && Zm(e, n);
+ }, n), (n = Em.get(a)) && Xm(e, n);
var c = o = r.createElement("link");
- Rt(c), dp(c, "link", e), c._p = new Promise(function(e, t) {
+ Rt(c), up(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, Xm(o, t, r);
+ }), s.loading |= 4, Ym(o, t, r);
}
o = {
type: "stylesheet",
@@ -8380,15 +8380,15 @@ var _ = /* @__PURE__ */ o(((e) => {
}
}
}
- function Bm(e, t) {
- Am.X(e, t);
- var n = Nm;
+ function zm(e, t) {
+ km.X(e, t);
+ var n = Mm;
if (n && e) {
- var r = Lt(n).hoistableScripts, i = qm(e), a = r.get(i);
- a || (a = n.querySelector(Jm(i)), a || (e = D({
+ var r = Lt(n).hoistableScripts, i = Km(e), a = r.get(i);
+ a || (a = n.querySelector(qm(i)), a || (e = D({
src: e,
async: !0
- }, t), (t = Dm.get(i)) && Qm(e, t), a = n.createElement("script"), Rt(a), dp(a, "link", e), n.head.appendChild(a)), a = {
+ }, t), (t = Em.get(i)) && Zm(e, t), a = n.createElement("script"), Rt(a), up(a, "link", e), n.head.appendChild(a)), a = {
type: "script",
instance: a,
count: 1,
@@ -8396,16 +8396,16 @@ var _ = /* @__PURE__ */ o(((e) => {
}, r.set(i, a));
}
}
- function Vm(e, t) {
- Am.M(e, t);
- var n = Nm;
+ function Bm(e, t) {
+ km.M(e, t);
+ var n = Mm;
if (n && e) {
- var r = Lt(n).hoistableScripts, i = qm(e), a = r.get(i);
- a || (a = n.querySelector(Jm(i)), a || (e = D({
+ var r = Lt(n).hoistableScripts, i = Km(e), a = r.get(i);
+ a || (a = n.querySelector(qm(i)), a || (e = D({
src: e,
async: !0,
type: "module"
- }, t), (t = Dm.get(i)) && Qm(e, t), a = n.createElement("script"), Rt(a), dp(a, "link", e), n.head.appendChild(a)), a = {
+ }, t), (t = Em.get(i)) && Zm(e, t), a = n.createElement("script"), Rt(a), up(a, "link", e), n.head.appendChild(a)), a = {
type: "script",
instance: a,
count: 1,
@@ -8413,13 +8413,13 @@ var _ = /* @__PURE__ */ o(((e) => {
}, r.set(i, a));
}
}
- function Hm(e, t, n, r) {
- var a = (a = we.current) ? km(a) : null;
+ function Vm(e, t, n, r) {
+ var a = (a = we.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 = Um(n.href), t = Lt(a).hoistableStyles, r = t.get(n), r || (r = {
+ case "style": return typeof n.precedence == "string" && typeof n.href == "string" ? (n = Hm(n.href), t = Lt(a).hoistableStyles, r = t.get(n), r || (r = {
type: "style",
instance: null,
count: 0,
@@ -8432,7 +8432,7 @@ var _ = /* @__PURE__ */ o(((e) => {
};
case "link":
if (n.rel === "stylesheet" && typeof n.href == "string" && typeof n.precedence == "string") {
- e = Um(n.href);
+ e = Hm(n.href);
var o = Lt(a).hoistableStyles, s = o.get(e);
if (s || (a = a.ownerDocument || a, s = {
type: "stylesheet",
@@ -8442,7 +8442,7 @@ var _ = /* @__PURE__ */ o(((e) => {
loading: 0,
preload: null
}
- }, o.set(e, s), (o = a.querySelector(Wm(e))) ? o._p || (s.instance = o, s.state.loading = 5) : (o = Dm.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,
@@ -8451,12 +8451,12 @@ var _ = /* @__PURE__ */ o(((e) => {
media: n.media,
hrefLang: n.hrefLang,
referrerPolicy: n.referrerPolicy
- }, Dm.set(e, o)), Km(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 = qm(n), t = Lt(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 = Km(n), t = Lt(a).hoistableScripts, r = t.get(n), r || (r = {
type: "script",
instance: null,
count: 0,
@@ -8470,38 +8470,38 @@ var _ = /* @__PURE__ */ o(((e) => {
default: throw Error(i(444, e));
}
}
- function Um(e) {
+ function Hm(e) {
return "href=\"" + tn(e) + "\"";
}
- function Wm(e) {
+ function Um(e) {
return "link[rel=\"stylesheet\"][" + e + "]";
}
- function Gm(e) {
+ function Wm(e) {
return D({}, e, {
"data-precedence": e.precedence,
precedence: null
});
}
- function Km(e, t, n, r) {
+ function Gm(e, t, n, r) {
if (t = e.querySelector("link[rel=\"preload\"][as=\"style\"][" + t + "]")) {
if (!0 !== t[Mt]) {
r.loading = 1;
return;
}
- } else t = e.createElement("link"), t[Mt] = !0, t.onload = t.onerror = zt.bind(null, t), dp(t, "link", n), Rt(t), e.head.appendChild(t);
+ } else t = e.createElement("link"), t[Mt] = !0, t.onload = t.onerror = zt.bind(null, t), up(t, "link", n), Rt(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 qm(e) {
+ function Km(e) {
return "[src=\"" + tn(e) + "\"]";
}
- function Jm(e) {
+ function qm(e) {
return "script[async]" + e;
}
- function Ym(e, t, n) {
+ function Jm(e, t, n) {
if (t.count++, t.instance === null) switch (t.type) {
case "style":
var r = e.querySelector("style[data-href~=\"" + tn(n.href) + "\"]");
@@ -8512,24 +8512,24 @@ var _ = /* @__PURE__ */ o(((e) => {
href: null,
precedence: null
});
- return r = (e.ownerDocument || e).createElement("style"), Rt(r), dp(r, "style", a), Xm(r, n.precedence, e), t.instance = r;
+ return r = (e.ownerDocument || e).createElement("style"), Rt(r), up(r, "style", a), Ym(r, n.precedence, e), t.instance = r;
case "stylesheet":
- a = Um(n.href);
- var o = e.querySelector(Wm(a));
+ a = Hm(n.href);
+ var o = e.querySelector(Um(a));
if (o) return t.state.loading |= 4, t.instance = o, Rt(o), o;
- r = Gm(n), (a = Dm.get(a)) && Zm(r, a), o = (e.ownerDocument || e).createElement("link"), Rt(o);
+ r = Wm(n), (a = Em.get(a)) && Xm(r, a), o = (e.ownerDocument || e).createElement("link"), Rt(o);
var s = o;
return s._p = new Promise(function(e, t) {
s.onload = e, s.onerror = t;
- }), dp(o, "link", r), t.state.loading |= 4, Xm(o, n.precedence, e), t.instance = o;
- case "script": return o = qm(n.src), (a = e.querySelector(Jm(o))) ? (t.instance = a, Rt(a), a) : (r = n, (a = Dm.get(o)) && (r = D({}, n), Qm(r, a)), e = e.ownerDocument || e, a = e.createElement("script"), Rt(a), dp(a, "link", r), e.head.appendChild(a), t.instance = a);
+ }), up(o, "link", r), t.state.loading |= 4, Ym(o, n.precedence, e), t.instance = o;
+ case "script": return o = Km(n.src), (a = e.querySelector(qm(o))) ? (t.instance = a, Rt(a), a) : (r = n, (a = Em.get(o)) && (r = D({}, n), Zm(r, a)), e = e.ownerDocument || e, a = e.createElement("script"), Rt(a), up(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, Xm(r, n.precedence, e));
+ else t.type === "stylesheet" && !(t.state.loading & 4) && (r = t.instance, t.state.loading |= 4, Ym(r, n.precedence, e));
return t.instance;
}
- function Xm(e, t, n) {
+ function Ym(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;
@@ -8537,18 +8537,18 @@ var _ = /* @__PURE__ */ o(((e) => {
}
a ? a.parentNode.insertBefore(e, a.nextSibling) : (t = n.nodeType === 9 ? n.head : n, t.insertBefore(e, t.firstChild));
}
- function Zm(e, t) {
+ function Xm(e, t) {
e.crossOrigin ??= t.crossOrigin, e.referrerPolicy ??= t.referrerPolicy, e.title ??= t.title;
}
- function Qm(e, t) {
+ function Zm(e, t) {
e.crossOrigin ??= t.crossOrigin, e.referrerPolicy ??= t.referrerPolicy, e.integrity ??= t.integrity;
}
- var $m = null;
- function eh(e, t, n) {
- if ($m === null) {
- var r = /* @__PURE__ */ new Map(), i = $m = /* @__PURE__ */ new Map();
+ var Qm = null;
+ function $m(e, t, n) {
+ if (Qm === null) {
+ var r = /* @__PURE__ */ new Map(), i = Qm = /* @__PURE__ */ new Map();
i.set(n, r);
- } else i = $m, r = i.get(n), r || (r = /* @__PURE__ */ new Map(), i.set(n, r));
+ } else i = Qm, 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];
@@ -8561,10 +8561,10 @@ var _ = /* @__PURE__ */ o(((e) => {
}
return r;
}
- function th(e, t, n) {
+ function eh(e, t, n) {
e = e.ownerDocument || e, e.head.insertBefore(n, t === "title" ? e.querySelector("head > title") : null);
}
- function nh(e, t, n) {
+ function th(e, t, n) {
if (n === 1 || t.itemProp != null) return !1;
switch (e) {
case "meta":
@@ -8582,91 +8582,91 @@ var _ = /* @__PURE__ */ o(((e) => {
}
return !1;
}
- function rh(e, t) {
+ function nh(e, t) {
return e === "img" && t.src != null && t.src !== "" && t.onLoad == null && t.loading !== "lazy";
}
- function ih(e) {
+ function rh(e) {
return !(e.type === "stylesheet" && !(e.state.loading & 3));
}
- function ah(e) {
+ function ih(e) {
return (e.width || 100) * (e.height || 100) * (typeof devicePixelRatio == "number" ? devicePixelRatio : 1) * .25;
}
- function oh(e, t) {
- typeof t.decode == "function" && (e.imgCount++, t.complete || (e.imgBytes += ah(t), e.suspenseyImages.push(t)), e = fh.bind(e), t.decode().then(e, e));
+ function ah(e, t) {
+ typeof t.decode == "function" && (e.imgCount++, t.complete || (e.imgBytes += ih(t), e.suspenseyImages.push(t)), e = dh.bind(e), t.decode().then(e, e));
}
- function sh(e, t, n, r) {
+ function oh(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 = Um(r.href), a = t.querySelector(Wm(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 = dh.bind(e), t.then(e, e)), n.state.loading |= 4, n.instance = a, Rt(a);
+ t = a._p, typeof t == "object" && t && typeof t.then == "function" && (e.count++, e = uh.bind(e), t.then(e, e)), n.state.loading |= 4, n.instance = a, Rt(a);
return;
}
- a = t.ownerDocument || t, r = Gm(r), (i = Dm.get(i)) && Zm(r, i), a = a.createElement("link"), Rt(a);
+ a = t.ownerDocument || t, r = Wm(r), (i = Em.get(i)) && Xm(r, i), a = a.createElement("link"), Rt(a);
var o = a;
o._p = new Promise(function(e, t) {
o.onload = e, o.onerror = t;
- }), dp(a, "link", r), n.instance = a;
+ }), up(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 = dh.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 = uh.bind(e), t.addEventListener("load", n), t.addEventListener("error", n));
}
}
- var ch = 0;
- function lh(e, t) {
- return e.stylesheets && e.count === 0 && mh(e, e.stylesheets), 0 < e.count || 0 < e.imgCount ? function(n) {
+ var sh = 0;
+ function ch(e, t) {
+ return e.stylesheets && e.count === 0 && ph(e, e.stylesheets), 0 < e.count || 0 < e.imgCount ? function(n) {
var r = setTimeout(function() {
- if (e.stylesheets && mh(e, e.stylesheets), e.unsuspend) {
+ if (e.stylesheets && ph(e, e.stylesheets), e.unsuspend) {
var t = e.unsuspend;
e.unsuspend = null, t();
}
}, 6e4 + t);
- 0 < e.imgBytes && ch === 0 && (ch = 62500 * hp());
+ 0 < e.imgBytes && sh === 0 && (sh = 62500 * mp());
var i = setTimeout(function() {
- if (e.waitingForImages = !1, e.count === 0 && (e.stylesheets && mh(e, e.stylesheets), e.unsuspend)) {
+ if (e.waitingForImages = !1, e.count === 0 && (e.stylesheets && ph(e, e.stylesheets), e.unsuspend)) {
var t = e.unsuspend;
e.unsuspend = null, t();
}
- }, (e.imgBytes > ch ? 50 : 800) + t);
+ }, (e.imgBytes > sh ? 50 : 800) + t);
return e.unsuspend = n, function() {
e.unsuspend = null, clearTimeout(r), clearTimeout(i);
};
} : null;
}
- function uh(e) {
+ function lh(e) {
if (e.count === 0 && (e.imgCount === 0 || !e.waitingForImages)) {
- if (e.stylesheets) mh(e, e.stylesheets);
+ if (e.stylesheets) ph(e, e.stylesheets);
else if (e.unsuspend) {
var t = e.unsuspend;
e.unsuspend = null, t();
}
}
}
+ function uh() {
+ this.count--, lh(this);
+ }
function dh() {
- this.count--, uh(this);
+ this.imgCount--, lh(this);
}
- function fh() {
- this.imgCount--, uh(this);
+ var fh = null;
+ function ph(e, t) {
+ e.stylesheets = null, e.unsuspend !== null && (e.count++, fh = /* @__PURE__ */ new Map(), t.forEach(mh, e), fh = null, uh.call(e));
}
- var ph = null;
function mh(e, t) {
- e.stylesheets = null, e.unsuspend !== null && (e.count++, ph = /* @__PURE__ */ new Map(), t.forEach(hh, e), ph = null, dh.call(e));
- }
- function hh(e, t) {
if (!(t.state.loading & 4)) {
- var n = ph.get(e);
+ var n = fh.get(e);
if (n) var r = n.get(null);
else {
- n = /* @__PURE__ */ new Map(), ph.set(e, n);
+ n = /* @__PURE__ */ new Map(), fh.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 = dh.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 = uh.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 gh = {
+ var hh = {
$$typeof: ee,
Provider: null,
Consumer: null,
@@ -8674,72 +8674,72 @@ var _ = /* @__PURE__ */ o(((e) => {
_currentValue2: ge,
_threadCount: 0
};
- function _h(e, t, n, r, i, a, o, s, c) {
+ function gh(e, t, n, r, i, a, o, s, c) {
this.tag = 1, this.containerInfo = e, this.pingCache = this.current = this.pendingChildren = null, this.timeoutHandle = -1, this.callbackNode = this.next = this.pendingContext = this.context = this.cancelPendingCommit = null, this.callbackPriority = 0, this.expirationTimes = pt(-1), this.entangledLanes = this.shellSuspendCounter = this.errorRecoveryDisabledLanes = this.expiredLanes = this.warmLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0, this.entanglements = pt(0), this.hiddenUpdates = pt(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 vh(e, t, n, r, i, a, o, s, c, l, u, d) {
- return e = new _h(e, t, n, o, c, l, u, d, s), t = 1, !0 === a && (t |= 24), a = Oi(3, null, null, t), e.current = a, a.stateNode = e, t = ka(), t.refCount++, e.pooledCache = t, t.refCount++, a.memoizedState = {
+ function _h(e, t, n, r, i, a, o, s, c, l, u, d) {
+ return e = new gh(e, t, n, o, c, l, u, d, s), t = 1, !0 === a && (t |= 24), a = Oi(3, null, null, t), e.current = a, a.stateNode = e, t = ka(), t.refCount++, e.pooledCache = t, t.refCount++, a.memoizedState = {
element: r,
isDehydrated: n,
cache: t
}, fo(a), e;
}
- function yh(e) {
+ function vh(e) {
return e ? (e = Ei, e) : Ei;
}
- function bh(e, t, n, r, i, a) {
- i = yh(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 yh(e, t, n, r, i, a) {
+ i = vh(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 && (zd(n, e, t), go(n, e, t));
}
- function xh(e, t) {
+ function bh(e, t) {
if (e = e.memoizedState, e !== null && e.dehydrated !== null) {
var n = e.retryLane;
e.retryLane = n !== 0 && n < t ? n : t;
}
}
- function Sh(e, t) {
- xh(e, t), (e = e.alternate) && xh(e, t);
+ function xh(e, t) {
+ bh(e, t), (e = e.alternate) && bh(e, t);
}
- function Ch(e) {
+ function Sh(e) {
if (e.tag === 13 || e.tag === 31) {
var t = Ci(e, 67108864);
- t !== null && Bd(t, e, 67108864), Sh(e, 67108864);
+ t !== null && zd(t, e, 67108864), xh(e, 67108864);
}
}
- function wh(e) {
+ function Ch(e) {
if (e.tag === 13 || e.tag === 31) {
- var t = Ld();
+ var t = Id();
t = yt(t);
var n = Ci(e, t);
- n !== null && Bd(n, e, t), Sh(e, t);
+ n !== null && zd(n, e, t), xh(e, t);
}
}
- var Th = !0;
- function Eh(e, t, n, r) {
+ var wh = !0;
+ function Th(e, t, n, r) {
var i = me.T;
me.T = null;
var a = he.p;
try {
- he.p = 2, Oh(e, t, n, r);
+ he.p = 2, Dh(e, t, n, r);
} finally {
he.p = a, me.T = i;
}
}
- function Dh(e, t, n, r) {
+ function Eh(e, t, n, r) {
var i = me.T;
me.T = null;
var a = he.p;
try {
- he.p = 8, Oh(e, t, n, r);
+ he.p = 8, Dh(e, t, n, r);
} finally {
he.p = a, me.T = i;
}
}
- function Oh(e, t, n, r) {
- if (Th) {
- var i = kh(r);
- if (i === null) ep(e, t, r, Ah, n), Vh(e, r);
- else if (Uh(i, e, t, n, r)) r.stopPropagation();
- else if (Vh(e, r), t & 4 && -1 < Bh.indexOf(e)) {
+ function Dh(e, t, n, r) {
+ if (wh) {
+ var i = Oh(r);
+ if (i === null) $f(e, t, r, kh, n), Bh(e, r);
+ else if (Hh(i, e, t, n, r)) r.stopPropagation();
+ else if (Bh(e, r), t & 4 && -1 < zh.indexOf(e)) {
for (; i !== null;) {
var a = Ft(i);
if (a !== null) switch (a.tag) {
@@ -8752,26 +8752,26 @@ var _ = /* @__PURE__ */ o(((e) => {
var c = 1 << 31 - et(o);
s.entanglements[1] |= c, o &= ~c;
}
- Nf(a), !(td & 6) && (Sd = He() + 500, Pf(0, !1));
+ Mf(a), !(td & 6) && (xd = He() + 500, Nf(0, !1));
}
}
break;
case 31:
- case 13: s = Ci(a, 2), s !== null && Bd(s, a, 2), Gd(), Sh(a, 2);
+ case 13: s = Ci(a, 2), s !== null && zd(s, a, 2), Wd(), xh(a, 2);
}
- if (a = kh(r), a === null && ep(e, t, r, Ah, n), a === i) break;
+ if (a = Oh(r), a === null && $f(e, t, r, kh, n), a === i) break;
i = a;
}
i !== null && r.stopPropagation();
- } else ep(e, t, r, null, n);
+ } else $f(e, t, r, null, n);
}
}
- function kh(e) {
- return e = yn(e), jh(e);
+ function Oh(e) {
+ return e = yn(e), Ah(e);
}
- var Ah = null;
- function jh(e) {
- if (Ah = null, e = Pt(e), e !== null) {
+ var kh = null;
+ function Ah(e) {
+ if (kh = null, e = Pt(e), e !== null) {
var t = o(e);
if (t === null) e = null;
else {
@@ -8788,9 +8788,9 @@ var _ = /* @__PURE__ */ o(((e) => {
} else t !== e && (e = null);
}
}
- return Ah = e, null;
+ return kh = e, null;
}
- function Mh(e) {
+ function jh(e) {
switch (e) {
case "beforetoggle":
case "cancel":
@@ -8875,51 +8875,51 @@ var _ = /* @__PURE__ */ o(((e) => {
default: return 32;
}
}
- var Nh = !1, Ph = null, Fh = null, Ih = null, Lh = /* @__PURE__ */ new Map(), Rh = /* @__PURE__ */ new Map(), zh = [], Bh = "mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");
- function Vh(e, t) {
+ var Mh = !1, Nh = null, Ph = null, Fh = null, Ih = /* @__PURE__ */ new Map(), Lh = /* @__PURE__ */ new Map(), Rh = [], zh = "mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");
+ function Bh(e, t) {
switch (e) {
case "focusin":
case "focusout":
- Ph = null;
+ Nh = null;
break;
case "dragenter":
case "dragleave":
- Fh = null;
+ Ph = null;
break;
case "mouseover":
case "mouseout":
- Ih = null;
+ Fh = null;
break;
case "pointerover":
case "pointerout":
- Lh.delete(t.pointerId);
+ Ih.delete(t.pointerId);
break;
case "gotpointercapture":
- case "lostpointercapture": Rh.delete(t.pointerId);
+ case "lostpointercapture": Lh.delete(t.pointerId);
}
}
- function Hh(e, t, n, r, i, a) {
+ function Vh(e, t, n, r, i, a) {
return e === null || e.nativeEvent !== a ? (e = {
blockedOn: t,
domEventName: n,
eventSystemFlags: r,
nativeEvent: a,
targetContainers: [i]
- }, t !== null && (t = Ft(t), t !== null && Ch(t)), e) : (e.eventSystemFlags |= r, t = e.targetContainers, i !== null && t.indexOf(i) === -1 && t.push(i), e);
+ }, t !== null && (t = Ft(t), t !== null && Sh(t)), e) : (e.eventSystemFlags |= r, t = e.targetContainers, i !== null && t.indexOf(i) === -1 && t.push(i), e);
}
- function Uh(e, t, n, r, i) {
+ function Hh(e, t, n, r, i) {
switch (t) {
- case "focusin": return Ph = Hh(Ph, e, t, n, r, i), !0;
- case "dragenter": return Fh = Hh(Fh, e, t, n, r, i), !0;
- case "mouseover": return Ih = Hh(Ih, e, t, n, r, i), !0;
+ case "focusin": return Nh = Vh(Nh, e, t, n, r, i), !0;
+ case "dragenter": return Ph = Vh(Ph, e, t, n, r, i), !0;
+ case "mouseover": return Fh = Vh(Fh, e, t, n, r, i), !0;
case "pointerover":
var a = i.pointerId;
- return Lh.set(a, Hh(Lh.get(a) || null, e, t, n, r, i)), !0;
- case "gotpointercapture": return a = i.pointerId, Rh.set(a, Hh(Rh.get(a) || null, e, t, n, r, i)), !0;
+ return Ih.set(a, Vh(Ih.get(a) || null, e, t, n, r, i)), !0;
+ case "gotpointercapture": return a = i.pointerId, Lh.set(a, Vh(Lh.get(a) || null, e, t, n, r, i)), !0;
}
return !1;
}
- function Wh(e) {
+ function Uh(e) {
var t = Pt(e.target);
if (t !== null) {
var n = o(t);
@@ -8927,14 +8927,14 @@ var _ = /* @__PURE__ */ o(((e) => {
if (t = n.tag, t === 13) {
if (t = s(n), t !== null) {
e.blockedOn = t, St(e.priority, function() {
- wh(n);
+ Ch(n);
});
return;
}
} else if (t === 31) {
if (t = c(n), t !== null) {
e.blockedOn = t, St(e.priority, function() {
- wh(n);
+ Ch(n);
});
return;
}
@@ -8946,36 +8946,36 @@ var _ = /* @__PURE__ */ o(((e) => {
}
e.blockedOn = null;
}
- function Gh(e) {
+ function Wh(e) {
if (e.blockedOn !== null) return !1;
for (var t = e.targetContainers; 0 < t.length;) {
- var n = kh(e.nativeEvent);
+ var n = Oh(e.nativeEvent);
if (n === null) {
n = e.nativeEvent;
var r = new n.constructor(n.type, n);
vn = r, n.target.dispatchEvent(r), vn = null;
- } else return t = Ft(n), t !== null && Ch(t), e.blockedOn = n, !1;
+ } else return t = Ft(n), t !== null && Sh(t), e.blockedOn = n, !1;
t.shift();
}
return !0;
}
- function Kh(e, t, n) {
- Gh(e) && n.delete(t);
+ function Gh(e, t, n) {
+ Wh(e) && n.delete(t);
}
- function qh() {
- Nh = !1, Ph !== null && Gh(Ph) && (Ph = null), Fh !== null && Gh(Fh) && (Fh = null), Ih !== null && Gh(Ih) && (Ih = null), Lh.forEach(Kh), Rh.forEach(Kh);
+ function Kh() {
+ Mh = !1, Nh !== null && Wh(Nh) && (Nh = null), Ph !== null && Wh(Ph) && (Ph = null), Fh !== null && Wh(Fh) && (Fh = null), Ih.forEach(Gh), Lh.forEach(Gh);
}
- function Jh(e, n) {
- e.blockedOn === n && (e.blockedOn = null, Nh || (Nh = !0, t.unstable_scheduleCallback(t.unstable_NormalPriority, qh)));
+ function qh(e, n) {
+ e.blockedOn === n && (e.blockedOn = null, Mh || (Mh = !0, t.unstable_scheduleCallback(t.unstable_NormalPriority, Kh)));
}
- var Yh = null;
- function Xh(e) {
- Yh !== e && (Yh = e, t.unstable_scheduleCallback(t.unstable_NormalPriority, function() {
- Yh === e && (Yh = null);
+ var Jh = null;
+ function Yh(e) {
+ Jh !== e && (Jh = e, t.unstable_scheduleCallback(t.unstable_NormalPriority, function() {
+ Jh === e && (Jh = null);
for (var t = 0; t < e.length; t += 3) {
var n = e[t], r = e[t + 1], i = e[t + 2];
if (typeof r != "function") {
- if (jh(r || n) === null) continue;
+ if (Ah(r || n) === null) continue;
break;
}
var a = Ft(n);
@@ -8988,30 +8988,30 @@ var _ = /* @__PURE__ */ o(((e) => {
}
}));
}
- function Zh(e) {
+ function Xh(e) {
function t(t) {
- return Jh(t, e);
+ return qh(t, e);
}
- Ph !== null && Jh(Ph, e), Fh !== null && Jh(Fh, e), Ih !== null && Jh(Ih, e), Lh.forEach(t), Rh.forEach(t);
- for (var n = 0; n < zh.length; n++) {
- var r = zh[n];
+ Nh !== null && qh(Nh, e), Ph !== null && qh(Ph, e), Fh !== null && qh(Fh, e), Ih.forEach(t), Lh.forEach(t);
+ for (var n = 0; n < Rh.length; n++) {
+ var r = Rh[n];
r.blockedOn === e && (r.blockedOn = null);
}
- for (; 0 < zh.length && (n = zh[0], n.blockedOn === null);) Wh(n), n.blockedOn === null && zh.shift();
+ for (; 0 < Rh.length && (n = Rh[0], n.blockedOn === null);) Uh(n), n.blockedOn === null && Rh.shift();
if (n = (e.ownerDocument || e).$$reactFormReplay, n != null) for (r = 0; r < n.length; r += 3) {
var i = n[r], a = n[r + 1], o = i[Tt] || null;
- if (typeof a == "function") o || Xh(n);
+ if (typeof a == "function") o || Yh(n);
else if (o) {
var s = null;
if (a && a.hasAttribute("formAction")) {
if (i = a, o = a[Tt] || null) s = o.formAction;
- else if (jh(i) !== null) continue;
+ else if (Ah(i) !== null) continue;
} else s = o.action;
- typeof s == "function" ? n[r + 1] = s : (n.splice(r, 3), r -= 3), Xh(n);
+ typeof s == "function" ? n[r + 1] = s : (n.splice(r, 3), r -= 3), Yh(n);
}
}
}
- function Qh() {
+ function Zh() {
function e(e) {
e.canIntercept && e.info === "react-transition" && e.intercept({
handler: function() {
@@ -9043,26 +9043,26 @@ var _ = /* @__PURE__ */ o(((e) => {
};
}
}
- function $h(e) {
+ function Qh(e) {
this._internalRoot = e;
}
- eg.prototype.render = $h.prototype.render = function(e) {
+ $h.prototype.render = Qh.prototype.render = function(e) {
var t = this._internalRoot;
if (t === null) throw Error(i(409));
var n = t.current;
- bh(n, Ld(), e, t, null, null);
- }, eg.prototype.unmount = $h.prototype.unmount = function() {
+ yh(n, Id(), e, t, null, null);
+ }, $h.prototype.unmount = Qh.prototype.unmount = function() {
var e = this._internalRoot;
if (e !== null) {
this._internalRoot = null;
var t = e.containerInfo;
- bh(e.current, 2, null, e, null, null), Gd(), t[Et] = null;
+ yh(e.current, 2, null, e, null, null), Wd(), t[Et] = null;
}
};
- function eg(e) {
+ function $h(e) {
this._internalRoot = e;
}
- eg.prototype.unstable_scheduleHydration = function(e) {
+ $h.prototype.unstable_scheduleHydration = function(e) {
if (e) {
var t = xt();
e = {
@@ -9070,18 +9070,18 @@ var _ = /* @__PURE__ */ o(((e) => {
target: e,
priority: t
};
- for (var n = 0; n < zh.length && t !== 0 && t < zh[n].priority; n++);
- zh.splice(n, 0, e), n === 0 && Wh(e);
+ for (var n = 0; n < Rh.length && t !== 0 && t < Rh[n].priority; n++);
+ Rh.splice(n, 0, e), n === 0 && Uh(e);
}
};
- var tg = n.version;
- if (tg !== "19.3.1") throw Error(i(527, tg, "19.3.1"));
+ var eg = n.version;
+ if (eg !== "19.3.1") throw Error(i(527, eg, "19.3.1"));
he.findDOMNode = function(e) {
var t = e._reactInternals;
if (t === void 0) throw typeof e.render == "function" ? Error(i(188)) : (e = Object.keys(e).join(","), Error(i(268, e)));
return e = u(t), e = e === null ? null : d(e), e = e === null ? null : e.stateNode, e;
};
- var ng = {
+ var tg = {
bundleType: 0,
version: "19.3.1",
rendererPackageName: "react-dom",
@@ -9089,15 +9089,15 @@ var _ = /* @__PURE__ */ o(((e) => {
reconcilerVersion: "19.3.1"
};
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u") {
- var rg = __REACT_DEVTOOLS_GLOBAL_HOOK__;
- if (!rg.isDisabled && rg.supportsFiber) try {
- Ze = rg.inject(ng), Qe = rg;
+ var ng = __REACT_DEVTOOLS_GLOBAL_HOOK__;
+ if (!ng.isDisabled && ng.supportsFiber) try {
+ Ze = ng.inject(tg), Qe = ng;
} catch {}
}
e.createRoot = function(e, t) {
if (!a(e)) throw Error(i(299));
var n = !1, r = "", o = Cc, s = wc, c = Tc;
- 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 = vh(e, 1, !1, null, null, n, r, null, o, s, c, Qh), e[Et] = t.current, Qf(e), new $h(t);
+ 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 = _h(e, 1, !1, null, null, n, r, null, o, s, c, Zh), e[Et] = t.current, Zf(e), new Qh(t);
};
})), w = /* @__PURE__ */ o(((e, t) => {
function n() {
@@ -11714,6 +11714,7 @@ var di = (e) => (e?.results || []).filter((e) => !e.ok), fi = (e) => (e?.results
"fanbox",
"patreon",
"subscribestar",
+ "iwara",
"kemono",
"coomer",
"pawchive",
@@ -14231,32 +14232,32 @@ var ld = {
test: (t) => typeof t == "string" && t.endsWith(e) && t.split(" ").length === 1,
parse: parseFloat,
transform: (t) => `${t}${e}`
-}), dd = /*@__PURE__*/ ud("deg"), fd = /*@__PURE__*/ ud("%"), pd = /*@__PURE__*/ ud("px"), md = /*@__PURE__*/ ud("vh"), hd = /*@__PURE__*/ ud("vw"), gd = {
+}), dd = /*@__PURE__*/ ud("deg"), fd = /*@__PURE__*/ ud("%"), G = /*@__PURE__*/ ud("px"), pd = /*@__PURE__*/ ud("vh"), md = /*@__PURE__*/ ud("vw"), hd = {
...fd,
parse: (e) => fd.parse(e) / 100,
transform: (e) => fd.transform(e * 100)
-}, _d = {
+}, gd = {
test: /*@__PURE__*/ rd("hsl", "hue"),
parse: /*@__PURE__*/ id("hue", "saturation", "lightness"),
transform: ({ hue: e, saturation: t, lightness: n, alpha: r = 1 }) => "hsla(" + Math.round(e) + ", " + fd.transform(Wu(t)) + ", " + fd.transform(Wu(n)) + ", " + Wu(Qu.transform(r)) + ")"
-}, vd = {
- test: (e) => sd.test(e) || ld.test(e) || _d.test(e),
- parse: (e) => sd.test(e) ? sd.parse(e) : _d.test(e) ? _d.parse(e) : ld.parse(e),
- transform: (e) => typeof e == "string" ? e : e.hasOwnProperty("red") ? sd.transform(e) : _d.transform(e),
+}, _d = {
+ test: (e) => sd.test(e) || ld.test(e) || gd.test(e),
+ parse: (e) => sd.test(e) ? sd.parse(e) : gd.test(e) ? gd.parse(e) : ld.parse(e),
+ transform: (e) => typeof e == "string" ? e : e.hasOwnProperty("red") ? sd.transform(e) : gd.transform(e),
getAnimatableNone: (e) => {
- let t = vd.parse(e);
- return t.alpha = 0, vd.transform(t);
+ let t = _d.parse(e);
+ return t.alpha = 0, _d.transform(t);
}
-}, yd = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu, bd = /*@__PURE__*/ new RegExp(ed.source), xd = /*@__PURE__*/ new RegExp(yd.source, "i");
-function Sd(e) {
- return isNaN(e) && typeof e == "string" && (bd.test(e) || xd.test(e));
+}, vd = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu, yd = /*@__PURE__*/ new RegExp(ed.source), bd = /*@__PURE__*/ new RegExp(vd.source, "i");
+function xd(e) {
+ return isNaN(e) && typeof e == "string" && (yd.test(e) || bd.test(e));
}
-var Cd = "number", wd = "color", Td = "var", Ed = "var(", Dd = "${}", Od = /var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)(?![a-z]*\()/giu;
-function kd(e) {
+var Sd = "number", Cd = "color", wd = "var", Td = "var(", Ed = "${}", Dd = /var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)(?![a-z]*\()/giu;
+function Od(e) {
let t = e.toString();
- return bd.test(t) || xd.test(t);
+ return yd.test(t) || bd.test(t);
}
-function Ad(e) {
+function kd(e) {
let t = e.toString(), n = [], r = {
color: [],
number: [],
@@ -14264,51 +14265,51 @@ function Ad(e) {
}, i = [], a = 0;
return {
values: n,
- split: t.replace(Od, (e) => (vd.test(e) ? (r.color.push(a), i.push(wd), n.push(vd.parse(e))) : e.startsWith(Ed) ? (r.var.push(a), i.push(Td), n.push(e)) : (r.number.push(a), i.push(Cd), n.push(parseFloat(e))), ++a, Dd)).split(Dd),
+ split: t.replace(Dd, (e) => (_d.test(e) ? (r.color.push(a), i.push(Cd), n.push(_d.parse(e))) : e.startsWith(Td) ? (r.var.push(a), i.push(wd), n.push(e)) : (r.number.push(a), i.push(Sd), n.push(parseFloat(e))), ++a, Ed)).split(Ed),
indexes: r,
types: i
};
}
-function jd(e) {
- return Ad(e).values;
+function Ad(e) {
+ return kd(e).values;
}
-function Md({ split: e, types: t }) {
+function jd({ split: e, types: t }) {
let n = e.length;
return (r) => {
let i = "";
for (let a = 0; a < n; a++) if (i += e[a], r[a] !== void 0) {
let e = t[a];
- i += e === Cd ? Wu(r[a]) : e === wd ? vd.transform(r[a]) : r[a];
+ i += e === Sd ? Wu(r[a]) : e === Cd ? _d.transform(r[a]) : r[a];
}
return i;
};
}
-function Nd(e) {
- return Md(Ad(e));
+function Md(e) {
+ return jd(kd(e));
}
-var Pd = (e) => typeof e == "number" ? 0 : vd.test(e) ? vd.getAnimatableNone(e) : e, Fd = (e, t) => typeof e == "number" ? t?.trim().endsWith("/") ? e : 0 : Pd(e);
-function Id(e) {
- let t = Ad(e);
- return Md(t)(t.values.map((e, n) => Fd(e, t.split[n])));
+var Nd = (e) => typeof e == "number" ? 0 : _d.test(e) ? _d.getAnimatableNone(e) : e, Pd = (e, t) => typeof e == "number" ? t?.trim().endsWith("/") ? e : 0 : Nd(e);
+function Fd(e) {
+ let t = kd(e);
+ return jd(t)(t.values.map((e, n) => Pd(e, t.split[n])));
}
-var Ld = {
- test: Sd,
- parse: jd,
- createTransformer: Nd,
- getAnimatableNone: Id
+var Id = {
+ test: xd,
+ parse: Ad,
+ createTransformer: Md,
+ getAnimatableNone: Fd
};
//#endregion
//#region node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.mjs
-function Rd(e, t, n) {
+function Ld(e, t, n) {
return n < 0 && (n += 1), n > 1 && --n, n < 1 / 6 ? e + (t - e) * 6 * n : n < 1 / 2 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e;
}
-function zd({ hue: e, saturation: t, lightness: n, alpha: r }) {
+function Rd({ hue: e, saturation: t, lightness: n, alpha: r }) {
e /= 360, t /= 100, n /= 100;
let i = 0, a = 0, o = 0;
if (!t) i = a = o = n;
else {
let r = n < .5 ? n * (1 + t) : n + t - n * t, s = 2 * n - r;
- i = Rd(s, r, e + 1 / 3), a = Rd(s, r, e), o = Rd(s, r, e - 1 / 3);
+ i = Ld(s, r, e + 1 / 3), a = Ld(s, r, e), o = Ld(s, r, e - 1 / 3);
}
return {
red: Math.round(i * 255),
@@ -14319,61 +14320,61 @@ function zd({ hue: e, saturation: t, lightness: n, alpha: r }) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/utils/mix/immediate.mjs
-function Bd(e, t) {
+function zd(e, t) {
return (n) => n > 0 ? t : e;
}
//#endregion
//#region node_modules/motion-dom/dist/es/utils/mix/number.mjs
-var Vd = (e, t, n) => e + (t - e) * n, Hd = (e, t, n) => {
+var Bd = (e, t, n) => e + (t - e) * n, Vd = (e, t, n) => {
let r = e * e, i = n * (t * t - r) + r;
return i < 0 ? 0 : Math.sqrt(i);
-}, Ud = [
+}, Hd = [
ld,
sd,
- _d
-], Wd = (e) => Ud.find((t) => t.test(e));
-function Gd(e) {
- let t = Wd(e);
+ gd
+], Ud = (e) => Hd.find((t) => t.test(e));
+function Wd(e) {
+ let t = Ud(e);
if (!t) return `${e}`, !1;
let n = t.parse(e);
- return t === _d && (n = zd(n)), n;
+ return t === gd && (n = Rd(n)), n;
}
-var Kd = (e, t) => {
- let n = Gd(e), r = Gd(t);
- if (!n || !r) return Bd(e, t);
+var Gd = (e, t) => {
+ let n = Wd(e), r = Wd(t);
+ if (!n || !r) return zd(e, t);
let i = { ...n };
- return (e) => (i.red = Hd(n.red, r.red, e), i.green = Hd(n.green, r.green, e), i.blue = Hd(n.blue, r.blue, e), i.alpha = Vd(n.alpha, r.alpha, e), sd.transform(i));
-}, qd = /* @__PURE__ */ new Set(["none", "hidden"]);
-function Jd(e, t) {
- return qd.has(e) ? (n) => n <= 0 ? e : t : (n) => n >= 1 ? t : e;
+ return (e) => (i.red = Vd(n.red, r.red, e), i.green = Vd(n.green, r.green, e), i.blue = Vd(n.blue, r.blue, e), i.alpha = Bd(n.alpha, r.alpha, e), sd.transform(i));
+}, Kd = /* @__PURE__ */ new Set(["none", "hidden"]);
+function qd(e, t) {
+ return Kd.has(e) ? (n) => n <= 0 ? e : t : (n) => n >= 1 ? t : e;
}
//#endregion
//#region node_modules/motion-dom/dist/es/utils/mix/complex.mjs
-function Yd(e, t) {
- return (n) => Vd(e, t, n);
+function Jd(e, t) {
+ return (n) => Bd(e, t, n);
}
-function Xd(e) {
- return typeof e == "number" ? Yd : typeof e == "string" ? Ju(e) ? Bd : vd.test(e) ? Kd : ef : Array.isArray(e) ? Zd : typeof e == "object" ? vd.test(e) ? Kd : Qd : Bd;
+function Yd(e) {
+ return typeof e == "number" ? Jd : typeof e == "string" ? Ju(e) ? zd : _d.test(e) ? Gd : $d : Array.isArray(e) ? Xd : typeof e == "object" ? _d.test(e) ? Gd : Zd : zd;
}
-function Zd(e, t) {
- let n = [...e], r = n.length, i = e.map((e, n) => Xd(e)(e, t[n]));
+function Xd(e, t) {
+ let n = [...e], r = n.length, i = e.map((e, n) => Yd(e)(e, t[n]));
return (e) => {
for (let t = 0; t < r; t++) n[t] = i[t](e);
return n;
};
}
-function Qd(e, t) {
+function Zd(e, t) {
let n = {
...e,
...t
}, r = {};
- for (let i in n) e[i] !== void 0 && t[i] !== void 0 && (r[i] = Xd(e[i])(e[i], t[i]));
+ for (let i in n) e[i] !== void 0 && t[i] !== void 0 && (r[i] = Yd(e[i])(e[i], t[i]));
return (e) => {
for (let t in r) n[t] = r[t](e);
return n;
};
}
-function $d(e, t) {
+function Qd(e, t) {
let n = [], r = {
color: 0,
var: 0,
@@ -14385,29 +14386,29 @@ function $d(e, t) {
}
return n;
}
-var ef = (e, t) => {
- let n = Ld.createTransformer(t), r = Ad(e), i = Ad(t);
- return r.indexes.var.length === i.indexes.var.length && r.indexes.color.length === i.indexes.color.length && r.indexes.number.length >= i.indexes.number.length ? qd.has(e) && !i.values.length || qd.has(t) && !r.values.length ? Jd(e, t) : pu(Zd($d(r, i), i.values), n) : (`${e}${t}`, Bd(e, t));
-}, tf = /^(-?(?:\d+(?:\.\d*)?|\.\d+))([a-z%]*)$/iu;
-function nf(e, t) {
- let n = tf.exec(e);
+var $d = (e, t) => {
+ let n = Id.createTransformer(t), r = kd(e), i = kd(t);
+ return r.indexes.var.length === i.indexes.var.length && r.indexes.color.length === i.indexes.color.length && r.indexes.number.length >= i.indexes.number.length ? Kd.has(e) && !i.values.length || Kd.has(t) && !r.values.length ? qd(e, t) : pu(Xd(Qd(r, i), i.values), n) : (`${e}${t}`, zd(e, t));
+}, ef = /^(-?(?:\d+(?:\.\d*)?|\.\d+))([a-z%]*)$/iu;
+function tf(e, t) {
+ let n = ef.exec(e);
if (!n) return;
- let r = tf.exec(t);
+ let r = ef.exec(t);
if (!r || n[2] !== r[2]) return;
let i = n[2], a = parseFloat(n[1]), o = parseFloat(r[1]);
- return (e) => Wu(Vd(a, o, e)) + i;
+ return (e) => Wu(Bd(a, o, e)) + i;
}
-function rf(e, t, n) {
- if (typeof e == "number" && typeof t == "number" && typeof n == "number") return Vd(e, t, n);
+function nf(e, t, n) {
+ if (typeof e == "number" && typeof t == "number" && typeof n == "number") return Bd(e, t, n);
if (typeof e == "string" && typeof t == "string") {
- let n = nf(e, t);
+ let n = tf(e, t);
if (n) return n;
}
- return Xd(e)(e, t);
+ return Yd(e)(e, t);
}
//#endregion
//#region node_modules/motion-dom/dist/es/frameloop/order.mjs
-var af = [
+var rf = [
"setup",
"read",
"resolveKeyframes",
@@ -14419,7 +14420,7 @@ var af = [
];
//#endregion
//#region node_modules/motion-dom/dist/es/frameloop/render-step.mjs
-function of(e) {
+function af(e) {
let t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), r = !1, i = !1, a = /* @__PURE__ */ new Set(), o = {
delta: 0,
timestamp: 0,
@@ -14450,25 +14451,25 @@ function of(e) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/frameloop/batcher.mjs
-var sf = 40;
-function cf(e, t, n = {
+var of = 40;
+function sf(e, t, n = {
delta: 0,
timestamp: 0,
isProcessing: !1
}) {
- let r = !1, i = !0, a = () => r = !0, o = af.reduce((e, t) => (e[t] = of(a), e), {}), { setup: s, read: c, resolveKeyframes: l, preUpdate: u, update: d, preRender: f, render: p, postRender: m } = o, h = () => {
+ let r = !1, i = !0, a = () => r = !0, o = rf.reduce((e, t) => (e[t] = af(a), e), {}), { setup: s, read: c, resolveKeyframes: l, preUpdate: u, update: d, preRender: f, render: p, postRender: m } = o, h = () => {
let a = su.useManualTiming, o = a ? n.timestamp : performance.now();
- r = !1, a || (n.delta = i ? 1e3 / 60 : Math.max(Math.min(o - n.timestamp, sf), 1)), n.timestamp = o, n.isProcessing = !0, s.process(n), c.process(n), l.process(n), u.process(n), d.process(n), f.process(n), p.process(n), m.process(n), n.isProcessing = !1, r && t && (i = !1, e(h));
+ r = !1, a || (n.delta = i ? 1e3 / 60 : Math.max(Math.min(o - n.timestamp, of), 1)), n.timestamp = o, n.isProcessing = !0, s.process(n), c.process(n), l.process(n), u.process(n), d.process(n), f.process(n), p.process(n), m.process(n), n.isProcessing = !1, r && t && (i = !1, e(h));
}, g = () => {
r = !0, i = !0, n.isProcessing || e(h);
};
return {
- schedule: af.reduce((e, t) => {
+ schedule: rf.reduce((e, t) => {
let n = o[t];
return e[t] = (e, t = !1, i = !1) => (r || g(), n.schedule(e, t, i)), e;
}, {}),
cancel: (e) => {
- for (let t = 0; t < af.length; t++) o[af[t]].cancel(e);
+ for (let t = 0; t < rf.length; t++) o[rf[t]].cancel(e);
},
state: n,
steps: o
@@ -14476,31 +14477,31 @@ function cf(e, t, n = {
}
//#endregion
//#region node_modules/motion-dom/dist/es/frameloop/frame.mjs
-var { schedule: lf, cancel: uf, steps: df } = /* @__PURE__ */ cf(typeof requestAnimationFrame < "u" ? requestAnimationFrame : fu, !0, Bu), ff = (e) => {
+var { schedule: cf, cancel: lf, steps: uf } = /* @__PURE__ */ sf(typeof requestAnimationFrame < "u" ? requestAnimationFrame : fu, !0, Bu), df = (e) => {
let t = ({ timestamp: t }) => e(t);
return {
- start: (e = !0) => lf.update(t, e),
- stop: () => uf(t),
+ start: (e = !0) => cf.update(t, e),
+ stop: () => lf(t),
now: () => Bu.isProcessing ? Bu.timestamp : Uu.now()
};
-}, pf = (e, t, n = 10) => {
+}, ff = (e, t, n = 10) => {
let r = "", i = Math.max(Math.round(t / n), 2);
for (let t = 0; t < i; t++) r += Math.round(e(t / (i - 1)) * 1e4) / 1e4 + ", ";
return `linear(${r.substring(0, r.length - 2)})`;
-}, mf = 2e4;
-function hf(e, t = 50, n = mf, r) {
+}, pf = 2e4;
+function mf(e, t = 50, n = pf, r) {
let i = 0, a = e.next(i);
for (r?.push(a.value); !a.done && i < n;) i += t, a = e.next(i), r?.push(a.value);
return i >= n ? Infinity : i;
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.mjs
-function gf(e, t = 100, n) {
+function hf(e, t = 100, n) {
let { keyframes: r, velocity: i } = e, a = r && r[r.length - 1] - r[0], o = n({
...e,
velocity: i && a ? i * t / a : i,
keyframes: [0, t]
- }), s = Math.min(hf(o), mf);
+ }), s = Math.min(mf(o), pf);
return {
type: "keyframes",
ease: (e) => o.next(s * e).value / t,
@@ -14509,7 +14510,7 @@ function gf(e, t = 100, n) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/generators/spring.mjs
-var _f = {
+var gf = {
stiffness: 100,
damping: 10,
mass: 1,
@@ -14527,63 +14528,63 @@ var _f = {
minDuration: .01,
maxDuration: 10,
minDamping: .05
-}, vf = (e) => e < 0 ? 1 / Math.max(1 + e, _f.minDamping) : Math.max(1 - e, _f.minDamping);
-function yf(e, t) {
+}, _f = (e) => e < 0 ? 1 / Math.max(1 + e, gf.minDamping) : Math.max(1 - e, gf.minDamping);
+function vf(e, t) {
if (!(e > 1)) return 1;
let n = Math.sqrt(e * e - 1), r = e - n, i = e + n, a = 2 * n * Math.exp(-t) * (1 + t);
- return Sf((e) => i * Math.exp(-r * e) - r * Math.exp(-i * e) - a, (e) => Math.exp(-i * e) - Math.exp(-r * e), t) / t;
+ return xf((e) => i * Math.exp(-r * e) - r * Math.exp(-i * e) - a, (e) => Math.exp(-i * e) - Math.exp(-r * e), t) / t;
}
-function bf(e, t) {
+function yf(e, t) {
return e * Math.sqrt(1 - t * t);
}
-var xf = 12;
-function Sf(e, t, n) {
+var bf = 12;
+function xf(e, t, n) {
let r = n;
- for (let n = 1; n < xf; n++) r -= e(r) / t(r);
+ for (let n = 1; n < bf; n++) r -= e(r) / t(r);
return r;
}
-var Cf = .001;
-function wf({ duration: e = _f.duration, bounce: t = _f.bounce }) {
+var Sf = .001;
+function Cf({ duration: e = gf.duration, bounce: t = gf.bounce }) {
let n, r;
- _f.maxDuration;
- let i = vf(t);
- e = ou(_f.minDuration, _f.maxDuration, /* @__PURE__ */ _u(e)), i < 1 ? (n = (t) => {
- let n = t * i, r = n * e, a = bf(t, i), o = Math.exp(-r);
- return Cf - n / a * o;
+ gf.maxDuration;
+ let i = _f(t);
+ e = ou(gf.minDuration, gf.maxDuration, /* @__PURE__ */ _u(e)), i < 1 ? (n = (t) => {
+ let n = t * i, r = n * e, a = yf(t, i), o = Math.exp(-r);
+ return Sf - n / a * o;
}, r = (t) => {
- let r = t * i * e, a = i * i * t * t * e, o = Math.exp(-r), s = bf(t * t, i);
- return (-n(t) + Cf > 0 ? -1 : 1) * -a * o / s;
+ let r = t * i * e, a = i * i * t * t * e, o = Math.exp(-r), s = yf(t * t, i);
+ return (-n(t) + Sf > 0 ? -1 : 1) * -a * o / s;
}) : (n = (t) => -.001 + Math.exp(-t * e) * (t * e + 1), r = (t) => Math.exp(-t * e) * (-t * (e * e)));
- let a = 5 / e, o = Sf(n, r, a), s = o * yf(i, o * e), c = s * s;
+ let a = 5 / e, o = xf(n, r, a), s = o * vf(i, o * e), c = s * s;
return {
stiffness: c,
damping: i * 2 * Math.sqrt(c),
duration: /* @__PURE__ */ gu(e)
};
}
-var Tf = (e, t) => (t ? e >= 0 : e > 0) && e < Infinity;
-function Ef(e, t) {
- if (Tf(e, t)) return e;
+var wf = (e, t) => (t ? e >= 0 : e > 0) && e < Infinity;
+function Tf(e, t) {
+ if (wf(e, t)) return e;
}
-function Df(e) {
- let t = Ef(e.stiffness), n = Ef(e.damping, !0), r = Ef(e.mass), i = {
+function Ef(e) {
+ let t = Tf(e.stiffness), n = Tf(e.damping, !0), r = Tf(e.mass), i = {
...e,
- stiffness: t ?? _f.stiffness,
- damping: n ?? _f.damping,
- mass: r ?? _f.mass,
+ stiffness: t ?? gf.stiffness,
+ damping: n ?? gf.damping,
+ mass: r ?? gf.mass,
isResolvedFromDuration: !1,
isTimeDefined: (t ?? n ?? r) === void 0 && (e.duration !== void 0 || e.bounce !== void 0)
};
if (i.isTimeDefined) {
if (e.visualDuration) {
- let t = vf(e.bounce || 0), n = 2 * Math.PI / (e.visualDuration * 1.2) * yf(t, 2 * Math.PI / 1.2);
+ let t = _f(e.bounce || 0), n = 2 * Math.PI / (e.visualDuration * 1.2) * vf(t, 2 * Math.PI / 1.2);
i.stiffness = n * n, i.damping = 2 * t * Math.sqrt(i.stiffness);
- } else Object.assign(i, wf(i)), i.isResolvedFromDuration = !0;
- (!Tf(i.stiffness) || !Tf(i.damping, !0)) && (i.stiffness = _f.stiffness, i.damping = _f.damping);
+ } else Object.assign(i, Cf(i)), i.isResolvedFromDuration = !0;
+ (!wf(i.stiffness) || !wf(i.damping, !0)) && (i.stiffness = gf.stiffness, i.damping = gf.damping);
}
return i;
}
-function Of(e = _f.visualDuration, t = _f.bounce) {
+function Df(e = gf.visualDuration, t = gf.bounce) {
let n = typeof e == "object" ? e : {
visualDuration: e,
keyframes: [0, 1],
@@ -14591,7 +14592,7 @@ function Of(e = _f.visualDuration, t = _f.bounce) {
}, r = n.keyframes[0], i = n.keyframes[n.keyframes.length - 1], a = {
done: !1,
value: r
- }, { stiffness: o, damping: s, mass: c, duration: l, isResolvedFromDuration: u, isTimeDefined: d } = Df({ ...n }), f = (e) => d ? 0 : -/* @__PURE__ */ _u(e), p = s / (2 * Math.sqrt(o * c)), m = /* @__PURE__ */ _u(Math.sqrt(o / c)), h = p * m, g = {
+ }, { stiffness: o, damping: s, mass: c, duration: l, isResolvedFromDuration: u, isTimeDefined: d } = Ef({ ...n }), f = (e) => d ? 0 : -/* @__PURE__ */ _u(e), p = s / (2 * Math.sqrt(o * c)), m = /* @__PURE__ */ _u(Math.sqrt(o / c)), h = p * m, g = {
target: i,
delta: i - r,
velocity: f(n.velocity || 0) || 0,
@@ -14599,12 +14600,12 @@ function Of(e = _f.visualDuration, t = _f.bounce) {
restDelta: 0
}, _ = () => {
let e = Math.abs(g.delta) < 5;
- g.restSpeed = n.restSpeed || (e ? _f.restSpeed.granular : _f.restSpeed.default), g.restDelta = n.restDelta || (e ? _f.restDelta.granular : _f.restDelta.default);
+ g.restSpeed = n.restSpeed || (e ? gf.restSpeed.granular : gf.restSpeed.default), g.restDelta = n.restDelta || (e ? gf.restDelta.granular : gf.restDelta.default);
};
_();
let v, y, b;
if (p < 1) {
- let e = bf(m, p), t = {
+ let e = yf(m, p), t = {
A: 0,
sinC: 0,
cosC: 0,
@@ -14653,20 +14654,20 @@ function Of(e = _f.visualDuration, t = _f.bounce) {
return a.value = a.done ? g.target : t, a;
},
toString: () => {
- let e = Math.min(hf(S), mf), t = pf((t) => S.next(e * t).value, e, 30);
+ let e = Math.min(mf(S), pf), t = ff((t) => S.next(e * t).value, e, 30);
return e + "ms " + t;
},
toTransition: () => {}
};
return S;
}
-Of.applyToOptions = (e) => {
- let t = gf(e, 100, Of);
+Df.applyToOptions = (e) => {
+ let t = hf(e, 100, Df);
return e.ease = t.ease, e.duration = /* @__PURE__ */ gu(t.duration), e.type = "keyframes", e;
};
//#endregion
//#region node_modules/motion-dom/dist/es/animation/generators/inertia.mjs
-function kf({ keyframes: e, velocity: t = 0, power: n = .8, timeConstant: r = 325, bounceDamping: i = 10, bounceStiffness: a = 500, modifyTarget: o, min: s, max: c, restDelta: l = .5, restSpeed: u }) {
+function Of({ keyframes: e, velocity: t = 0, power: n = .8, timeConstant: r = 325, bounceDamping: i = 10, bounceStiffness: a = 500, modifyTarget: o, min: s, max: c, restDelta: l = .5, restSpeed: u }) {
let d = e[0], f = {
done: !1,
value: d
@@ -14676,7 +14677,7 @@ function kf({ keyframes: e, velocity: t = 0, power: n = .8, timeConstant: r = 32
let t = v(e);
f.done = Math.abs(t) <= l, f.value = f.done ? _ : _ + t;
}, b, x, S = (e) => {
- p(f.value) && (b = e, x = Of({
+ p(f.value) && (b = e, x = Df({
keyframes: [f.value, m(f.value)],
velocity: -v(e) / r * 1e3,
damping: i,
@@ -14695,21 +14696,21 @@ function kf({ keyframes: e, velocity: t = 0, power: n = .8, timeConstant: r = 32
}
//#endregion
//#region node_modules/motion-dom/dist/es/utils/interpolate.mjs
-function Af(e, t, n) {
- let r = [], i = n || su.mix || rf, a = e.length - 1;
+function kf(e, t, n) {
+ let r = [], i = n || su.mix || nf, a = e.length - 1;
for (let n = 0; n < a; n++) {
let a = i(e[n], e[n + 1]);
t && (a = pu(Array.isArray(t) ? t[n] || fu : t, a)), r.push(a);
}
return r;
}
-function jf(e, t, { clamp: n = !0, ease: r, mixer: i } = {}) {
+function Af(e, t, { clamp: n = !0, ease: r, mixer: i } = {}) {
let a = e.length;
if (t.length, a === 1) return () => t[0];
if (a === 2 && t[0] === t[1]) return () => t[1];
let o = e[0] === e[1];
e[0] > e[a - 1] && (e = [...e].reverse(), t = [...t].reverse());
- let s = Af(t, r, i), c = s.length, l = (n) => {
+ let s = kf(t, r, i), c = s.length, l = (n) => {
if (o && n < e[0]) return t[0];
let r = 0;
if (c > 1) for (; r < e.length - 2 && !(n < e[r + 1]); r++);
@@ -14720,42 +14721,42 @@ function jf(e, t, { clamp: n = !0, ease: r, mixer: i } = {}) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.mjs
-function Mf(e, t) {
+function jf(e, t) {
let n = e[e.length - 1];
for (let r = 1; r <= t; r++) {
let i = /* @__PURE__ */ mu(0, t, r);
- e.push(Vd(n, 1, i));
+ e.push(Bd(n, 1, i));
}
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.mjs
-function Nf(e) {
+function Mf(e) {
let t = [0];
- return Mf(t, e.length - 1), t;
+ return jf(t, e.length - 1), t;
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.mjs
-function Pf(e, t) {
+function Nf(e, t) {
return e.map((e) => e * t);
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/generators/keyframes.mjs
-function Ff(e, t) {
+function Pf(e, t) {
return e.map(() => t || Nu).splice(0, e.length - 1);
}
-function If({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut" }) {
+function Ff({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut" }) {
let i = /* @__PURE__ */ Pu(r) ? r.map(zu) : zu(r) || Nu, a = {
done: !1,
value: t[0]
};
if (t.length === 2 && !Array.isArray(i) && (!n || n.length !== 2 || n[0] === 0 && n[1] === 1)) {
- let [n, r] = t, o = n === r ? void 0 : (su.mix || rf)(n, r);
+ let [n, r] = t, o = n === r ? void 0 : (su.mix || nf)(n, r);
return {
calculatedDuration: e,
next: (t) => (a.value = o ? o(i(e > 0 ? ou(0, 1, t / e) : 1)) : r, a.done = t >= e, a)
};
}
- let o = jf(Pf(n && n.length === t.length ? n : Nf(t), e), t, { ease: Array.isArray(i) ? i : Ff(t, i) });
+ let o = Af(Nf(n && n.length === t.length ? n : Mf(t), e), t, { ease: Array.isArray(i) ? i : Pf(t, i) });
return {
calculatedDuration: e,
next: (t) => (a.value = o(t), a.done = t >= e, a)
@@ -14763,39 +14764,39 @@ function If({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut" }
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/generators/utils/velocity.mjs
-var Lf = 5;
-function Rf(e, t, n) {
- let r = Math.max(t - Lf, 0);
+var If = 5;
+function Lf(e, t, n) {
+ let r = Math.max(t - If, 0);
return /* @__PURE__ */ vu(n - e(r), t - r);
}
-function zf(e, t, n = 0) {
- return t <= 0 ? n : e.velocity ? e.velocity(t) : Rf((t) => e.next(t).value, t, e.next(t).value);
+function Rf(e, t, n = 0) {
+ return t <= 0 ? n : e.velocity ? e.velocity(t) : Lf((t) => e.next(t).value, t, e.next(t).value);
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/keyframes/get-final.mjs
-var Bf = (e) => e !== null;
-function Vf(e, { repeat: t, repeatType: n = "loop" }, r, i = 1) {
- let a = e.filter(Bf), o = i < 0 || t && n !== "loop" && t % 2 == 1 ? 0 : a.length - 1;
+var zf = (e) => e !== null;
+function Bf(e, { repeat: t, repeatType: n = "loop" }, r, i = 1) {
+ let a = e.filter(zf), o = i < 0 || t && n !== "loop" && t % 2 == 1 ? 0 : a.length - 1;
return !o || r === void 0 ? a[o] : r;
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.mjs
-var Hf = {
- decay: kf,
- inertia: kf,
- tween: If,
- keyframes: If,
- spring: Of
+var Vf = {
+ decay: Of,
+ inertia: Of,
+ tween: Ff,
+ keyframes: Ff,
+ spring: Df
};
-function Uf(e) {
- typeof e.type == "string" && (e.type = Hf[e.type]);
+function Hf(e) {
+ typeof e.type == "string" && (e.type = Vf[e.type]);
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/utils/resolve-start-time.mjs
-var Wf = 40, Gf = (e, t) => t - e > Wf && !su.useManualTiming ? t : e;
+var Uf = 40, Wf = (e, t) => t - e > Uf && !su.useManualTiming ? t : e;
//#endregion
//#region node_modules/motion-dom/dist/es/animation/utils/notify-inspector.mjs
-function Kf(e, t) {
+function Gf(e, t) {
return {
kind: e,
animation: t,
@@ -14804,11 +14805,11 @@ function Kf(e, t) {
frameIsProcessing: Bu.isProcessing
};
}
-function qf(e, t, n) {
+function Kf(e, t, n) {
let r = globalThis.__MOTION_INSPECT__;
if (r) try {
r({
- ...Kf("animation-start", e),
+ ...Gf("animation-start", e),
options: n ? {
...t,
...n
@@ -14816,18 +14817,18 @@ function qf(e, t, n) {
});
} catch {}
}
-function Jf(e, t) {
+function qf(e, t) {
let n = globalThis.__MOTION_INSPECT__;
if (n) try {
n({
- ...Kf("layout-animation-start", e),
+ ...Gf("layout-animation-start", e),
node: t
});
} catch {}
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/utils/WithPromise.mjs
-var Yf = class {
+var Jf = class {
constructor() {
this.isResolved = !1;
}
@@ -14845,7 +14846,7 @@ var Yf = class {
then(e, t) {
return this.finished.then(e, t);
}
-}, Xf = (e) => e / 100, Zf = (e) => Math.round(e * 1e4) / 1e4, Qf = class extends Yf {
+}, Yf = (e) => e / 100, Xf = (e) => Math.round(e * 1e4) / 1e4, Zf = class extends Jf {
constructor(e) {
super(), this.state = "idle", this.startTime = null, this.isStopped = !1, this.currentTime = 0, this.holdTime = null, this.playbackSpeed = 1, this.delayState = {
done: !1,
@@ -14853,13 +14854,13 @@ var Yf = class {
}, this.stop = () => {
let { motionValue: e } = this.options;
e && e.updatedAt !== Uu.now() && this.tick(Uu.now()), this.isStopped = !0, this.state !== "idle" && (this.teardown(), this.options.onStop?.());
- }, this.options = e, this.initAnimation(), this.play(), e.autoplay === !1 && this.pause(), qf(this, this.options);
+ }, this.options = e, this.initAnimation(), this.play(), e.autoplay === !1 && this.pause(), Kf(this, this.options);
}
initAnimation() {
let { options: e } = this;
- Uf(e);
- let { type: t = If, repeat: n = 0, repeatDelay: r = 0, repeatType: i, velocity: a = 0 } = e, { keyframes: o } = e, s = t || If;
- s !== If && typeof o[0] != "number" && (this.mixKeyframes = pu(Xf, rf(o[0], o[1])), o = [0, 100]);
+ Hf(e);
+ let { type: t = Ff, repeat: n = 0, repeatDelay: r = 0, repeatType: i, velocity: a = 0 } = e, { keyframes: o } = e, s = t || Ff;
+ s !== Ff && typeof o[0] != "number" && (this.mixKeyframes = pu(Yf, nf(o[0], o[1])), o = [0, 100]);
let c = s(o === e.keyframes ? e : {
...e,
keyframes: o
@@ -14868,7 +14869,7 @@ var Yf = class {
...e,
keyframes: [...o].reverse(),
velocity: -a
- })), c.calculatedDuration === null && (c.calculatedDuration = hf(c));
+ })), c.calculatedDuration === null && (c.calculatedDuration = mf(c));
let { calculatedDuration: l } = c;
this.calculatedDuration = l, this.resolvedDuration = l + r, this.totalDuration = this.resolvedDuration * (n + 1) - r, this.generator = c;
}
@@ -14880,20 +14881,20 @@ var Yf = class {
let { generator: n, totalDuration: r, calculatedDuration: i } = this;
if (this.startTime === null) return n.next(0);
let { delay: a = 0, keyframes: o, type: s, onUpdate: c, finalKeyframe: l } = this.options;
- this.startTime === this.pendingStartTime && (this.startTime = Gf(this.startTime, e)), this.pendingStartTime = void 0, this.speed > 0 ? this.startTime = Math.min(this.startTime, e) : this.speed < 0 && (this.startTime = Math.min(e - r / this.speed, this.startTime)), t ? this.currentTime = e : this.updateTime(e);
+ this.startTime === this.pendingStartTime && (this.startTime = Wf(this.startTime, e)), this.pendingStartTime = void 0, this.speed > 0 ? this.startTime = Math.min(this.startTime, e) : this.speed < 0 && (this.startTime = Math.min(e - r / this.speed, this.startTime)), t ? this.currentTime = e : this.updateTime(e);
let u = this.currentTime - a * (this.playbackSpeed >= 0 ? 1 : -1), d = this.playbackSpeed >= 0 ? u < 0 : u > r;
this.currentTime = Math.max(u, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = r);
let f = this.generate(this.currentTime, d), { done: p } = f;
!d && i !== null && (p = this.playbackSpeed >= 0 ? this.currentTime >= r : this.currentTime <= 0);
let m = this.holdTime === null && (this.state === "finished" || this.state === "running" && p);
- return m && s !== kf && (f.value = Vf(o, this.options, l, this.speed)), c && c(f.value), m && this.finish(), f;
+ return m && s !== Of && (f.value = Bf(o, this.options, l, this.speed)), c && c(f.value), m && this.finish(), f;
}
at(e) {
- return this.holdTime ?? Zf((e - this.startTime) * this.playbackSpeed);
+ return this.holdTime ?? Xf((e - this.startTime) * this.playbackSpeed);
}
sampleAt(e, t) {
let { options: n, totalDuration: r } = this, i = this.at(e) - (n.delay || 0);
- return i >= r && n.type !== kf ? Vf(n.keyframes, n, t ? void 0 : n.finalKeyframe) : this.generate(Math.max(i, 0), i < 0).value;
+ return i >= r && n.type !== Of ? Bf(n.keyframes, n, t ? void 0 : n.finalKeyframe) : this.generate(Math.max(i, 0), i < 0).value;
}
generate(e, t) {
let { generator: n, totalDuration: r, mixKeyframes: i, mirroredGenerator: a, resolvedDuration: o } = this, { keyframes: s, repeat: c, repeatType: l, repeatDelay: u } = this.options, d = e, f = n;
@@ -14921,7 +14922,7 @@ var Yf = class {
e = /* @__PURE__ */ gu(e), this.currentTime = e, this.startTime === null || this.holdTime !== null || this.playbackSpeed === 0 ? this.holdTime = e : this.driver && (this.startTime = this.driver.now() - e / this.playbackSpeed), this.driver ? this.driver.start(!1) : (this.startTime = 0, this.state = "paused", this.holdTime = e, this.tick(e));
}
getGeneratorVelocity() {
- return zf(this.generator, this.currentTime, this.options.velocity);
+ return Rf(this.generator, this.currentTime, this.options.velocity);
}
get speed() {
return this.playbackSpeed;
@@ -14932,7 +14933,7 @@ var Yf = class {
}
play() {
if (this.isStopped) return;
- let { driver: e = ff, startTime: t } = this.options;
+ let { driver: e = df, startTime: t } = this.options;
this.driver ||= e((e) => this.tick(e)), this.options.onPlay?.();
let n = this.driver.now();
this.state === "finished" ? (this.updateFinished(), this.startTime = n) : this.holdTime === null ? this.startTime ||= t ?? (this.pendingStartTime = n) : this.startTime = n - this.holdTime / (this.playbackSpeed || 1), this.state === "finished" && this.speed < 0 && (this.startTime += this.calculatedDuration), this.holdTime = null, this.state = "running", this.driver.start();
@@ -14961,39 +14962,39 @@ var Yf = class {
attachTimeline(e) {
return this.options.allowFlatten && (this.options.type = "keyframes", this.options.ease = "linear", this.initAnimation()), this.driver?.stop(), e.observe(this);
}
-}, $f = /* @__PURE__ */ new Set([
+}, Qf = /* @__PURE__ */ new Set([
"brightness",
"contrast",
"saturate",
"opacity"
]);
-function ep(e) {
+function $f(e) {
let [t, n] = e.slice(0, -1).split("(");
if (t === "drop-shadow") return e;
let [r] = n.match(ed) || [];
if (!r) return e;
- let i = n.replace(r, ""), a = +!!$f.has(t);
+ let i = n.replace(r, ""), a = +!!Qf.has(t);
return r !== n && (a *= 100), t + "(" + a + i + ")";
}
-var tp = /\b([a-z-]*)\(.*?\)/gu, np = {
- ...Ld,
+var ep = /\b([a-z-]*)\(.*?\)/gu, tp = {
+ ...Id,
getAnimatableNone: (e) => {
- let t = e.match(tp);
- return t ? t.map(ep).join(" ") : e;
+ let t = e.match(ep);
+ return t ? t.map($f).join(" ") : e;
}
-}, rp = {
- ...Ld,
+}, np = {
+ ...Id,
getAnimatableNone: (e) => {
- let t = Ld.parse(e);
- return Ld.createTransformer(e)(t.map((e) => typeof e == "number" ? 0 : typeof e == "object" ? {
+ let t = Id.parse(e);
+ return Id.createTransformer(e)(t.map((e) => typeof e == "number" ? 0 : typeof e == "object" ? {
...e,
alpha: 1
} : e));
}
-}, ip = {
+}, rp = {
...Zu,
transform: Math.round
-}, ap = {
+}, ip = {
rotate: dd,
pathRotation: dd,
rotateX: dd,
@@ -15006,104 +15007,104 @@ var tp = /\b([a-z-]*)\(.*?\)/gu, np = {
skew: dd,
skewX: dd,
skewY: dd,
- distance: pd,
- translateX: pd,
- translateY: pd,
- translateZ: pd,
- x: pd,
- y: pd,
- z: pd,
- perspective: pd,
- transformPerspective: pd,
+ distance: G,
+ translateX: G,
+ translateY: G,
+ translateZ: G,
+ x: G,
+ y: G,
+ z: G,
+ perspective: G,
+ transformPerspective: G,
opacity: Qu,
- originX: gd,
- originY: gd,
- originZ: pd
-}, op = {
- borderWidth: pd,
- borderTopWidth: pd,
- borderRightWidth: pd,
- borderBottomWidth: pd,
- borderLeftWidth: pd,
- borderRadius: pd,
- borderTopLeftRadius: pd,
- borderTopRightRadius: pd,
- borderBottomRightRadius: pd,
- borderBottomLeftRadius: pd,
- width: pd,
- maxWidth: pd,
- height: pd,
- maxHeight: pd,
- top: pd,
- right: pd,
- bottom: pd,
- left: pd,
- inset: pd,
- insetBlock: pd,
- insetBlockStart: pd,
- insetBlockEnd: pd,
- insetInline: pd,
- insetInlineStart: pd,
- insetInlineEnd: pd,
- padding: pd,
- paddingTop: pd,
- paddingRight: pd,
- paddingBottom: pd,
- paddingLeft: pd,
- paddingBlock: pd,
- paddingBlockStart: pd,
- paddingBlockEnd: pd,
- paddingInline: pd,
- paddingInlineStart: pd,
- paddingInlineEnd: pd,
- margin: pd,
- marginTop: pd,
- marginRight: pd,
- marginBottom: pd,
- marginLeft: pd,
- marginBlock: pd,
- marginBlockStart: pd,
- marginBlockEnd: pd,
- marginInline: pd,
- marginInlineStart: pd,
- marginInlineEnd: pd,
- fontSize: pd,
- backgroundPositionX: pd,
- backgroundPositionY: pd,
- ...ap,
- zIndex: ip,
+ originX: hd,
+ originY: hd,
+ originZ: G
+}, ap = {
+ borderWidth: G,
+ borderTopWidth: G,
+ borderRightWidth: G,
+ borderBottomWidth: G,
+ borderLeftWidth: G,
+ borderRadius: G,
+ borderTopLeftRadius: G,
+ borderTopRightRadius: G,
+ borderBottomRightRadius: G,
+ borderBottomLeftRadius: G,
+ width: G,
+ maxWidth: G,
+ height: G,
+ maxHeight: G,
+ top: G,
+ right: G,
+ bottom: G,
+ left: G,
+ inset: G,
+ insetBlock: G,
+ insetBlockStart: G,
+ insetBlockEnd: G,
+ insetInline: G,
+ insetInlineStart: G,
+ insetInlineEnd: G,
+ padding: G,
+ paddingTop: G,
+ paddingRight: G,
+ paddingBottom: G,
+ paddingLeft: G,
+ paddingBlock: G,
+ paddingBlockStart: G,
+ paddingBlockEnd: G,
+ paddingInline: G,
+ paddingInlineStart: G,
+ paddingInlineEnd: G,
+ margin: G,
+ marginTop: G,
+ marginRight: G,
+ marginBottom: G,
+ marginLeft: G,
+ marginBlock: G,
+ marginBlockStart: G,
+ marginBlockEnd: G,
+ marginInline: G,
+ marginInlineStart: G,
+ marginInlineEnd: G,
+ fontSize: G,
+ backgroundPositionX: G,
+ backgroundPositionY: G,
+ ...ip,
+ zIndex: rp,
fillOpacity: Qu,
strokeOpacity: Qu,
- numOctaves: ip
-}, sp = {
- ...op,
- color: vd,
- backgroundColor: vd,
- outlineColor: vd,
- fill: vd,
- stroke: vd,
- borderColor: vd,
- borderTopColor: vd,
- borderRightColor: vd,
- borderBottomColor: vd,
- borderLeftColor: vd,
- filter: np,
- WebkitFilter: np,
- mask: rp,
- WebkitMask: rp
-}, cp = (e) => sp[e], lp = /*@__PURE__*/ new Set([np, rp]);
-function up(e, t) {
- let n = cp(e);
- return lp.has(n) || (n = Ld), n.getAnimatableNone ? n.getAnimatableNone(t) : void 0;
+ numOctaves: rp
+}, op = {
+ ...ap,
+ color: _d,
+ backgroundColor: _d,
+ outlineColor: _d,
+ fill: _d,
+ stroke: _d,
+ borderColor: _d,
+ borderTopColor: _d,
+ borderRightColor: _d,
+ borderBottomColor: _d,
+ borderLeftColor: _d,
+ filter: tp,
+ WebkitFilter: tp,
+ mask: np,
+ WebkitMask: np
+}, sp = (e) => op[e], cp = /*@__PURE__*/ new Set([tp, np]);
+function lp(e, t) {
+ let n = sp(e);
+ return cp.has(n) || (n = Id), n.getAnimatableNone ? n.getAnimatableNone(t) : void 0;
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.mjs
-function dp(e) {
+function up(e) {
for (let t = 1; t < e.length; t++) e[t] ?? (e[t] = e[t - 1]);
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/dom/parse-transform.mjs
-var fp = (e) => e * 180 / Math.PI, pp = (e) => hp(fp(Math.atan2(e[1], e[0]))), mp = {
+var dp = (e) => e * 180 / Math.PI, fp = (e) => mp(dp(Math.atan2(e[1], e[0]))), pp = {
x: 4,
y: 5,
translateX: 4,
@@ -15112,55 +15113,55 @@ var fp = (e) => e * 180 / Math.PI, pp = (e) => hp(fp(Math.atan2(e[1], e[0]))), m
scaleY: 3,
scaleZ: () => 1,
scale: (e) => (Math.abs(e[0]) + Math.abs(e[3])) / 2,
- rotate: pp,
- rotateZ: pp,
- skewX: (e) => fp(Math.atan(e[1])),
- skewY: (e) => fp(Math.atan(e[2])),
+ rotate: fp,
+ rotateZ: fp,
+ skewX: (e) => dp(Math.atan(e[1])),
+ skewY: (e) => dp(Math.atan(e[2])),
skew: (e) => (Math.abs(e[1]) + Math.abs(e[2])) / 2
-}, hp = (e) => (e %= 360, e < 0 && (e += 360), e), gp = pp, _p = (e) => Math.hypot(e[0], e[1]), vp = (e) => Math.hypot(e[4], e[5]), yp = {
+}, mp = (e) => (e %= 360, e < 0 && (e += 360), e), hp = fp, gp = (e) => Math.hypot(e[0], e[1]), _p = (e) => Math.hypot(e[4], e[5]), vp = {
x: 12,
y: 13,
z: 14,
translateX: 12,
translateY: 13,
translateZ: 14,
- scaleX: _p,
- scaleY: vp,
+ scaleX: gp,
+ scaleY: _p,
scaleZ: (e) => Math.hypot(e[8], e[9], e[10]),
- scale: (e) => (_p(e) + vp(e)) / 2,
- rotateX: (e) => hp(fp(Math.atan2(e[6], e[5]))),
- rotateY: (e) => hp(fp(Math.atan2(-e[2], e[0]))),
- rotateZ: gp,
- rotate: gp,
- skewX: (e) => fp(Math.atan(e[4])),
- skewY: (e) => fp(Math.atan(e[1])),
+ scale: (e) => (gp(e) + _p(e)) / 2,
+ rotateX: (e) => mp(dp(Math.atan2(e[6], e[5]))),
+ rotateY: (e) => mp(dp(Math.atan2(-e[2], e[0]))),
+ rotateZ: hp,
+ rotate: hp,
+ skewX: (e) => dp(Math.atan(e[4])),
+ skewY: (e) => dp(Math.atan(e[1])),
skew: (e) => (Math.abs(e[1]) + Math.abs(e[4])) / 2
};
-function bp(e) {
+function yp(e) {
return +!!e.includes("scale");
}
-function xp(e, t) {
- if (!e || e === "none") return bp(t);
+function bp(e, t) {
+ if (!e || e === "none") return yp(t);
let n = e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u), r, i;
- if (n) r = yp, i = n;
+ if (n) r = vp, i = n;
else {
let t = e.match(/^matrix\(([-\d.e\s,]+)\)$/u);
- r = mp, i = t;
+ r = pp, i = t;
}
- if (!i) return bp(t);
- let a = r[t], o = i[1].split(",").map(Cp);
+ if (!i) return yp(t);
+ let a = r[t], o = i[1].split(",").map(Sp);
return typeof a == "function" ? a(o) : o[a];
}
-var Sp = (e, t) => {
+var xp = (e, t) => {
let { transform: n = "none" } = getComputedStyle(e);
- return xp(n, t);
+ return bp(n, t);
};
-function Cp(e) {
+function Sp(e) {
return parseFloat(e.trim());
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/keys-transform.mjs
-var wp = [
+var Cp = [
"transformPerspective",
"x",
"y",
@@ -15179,14 +15180,14 @@ var wp = [
"skew",
"skewX",
"skewY"
-], Tp = /* @__PURE__ */ new Set([...wp, "pathRotation"]), Ep = (e) => e === Zu || e === pd, Dp = /* @__PURE__ */ new Set([
+], wp = /* @__PURE__ */ new Set([...Cp, "pathRotation"]), Tp = (e) => e === Zu || e === G, Ep = /* @__PURE__ */ new Set([
"x",
"y",
"z"
-]), Op = wp.filter((e) => !Dp.has(e));
-function kp(e) {
+]), Dp = Cp.filter((e) => !Ep.has(e));
+function Op(e) {
let t = [];
- return Op.forEach((n) => {
+ return Dp.forEach((n) => {
let r = e.getValue(n);
if (r !== void 0) {
let e = r.get(), i = +!!n.startsWith("scale");
@@ -15195,16 +15196,16 @@ function kp(e) {
}
}), t;
}
-var Ap = /* @__PURE__ */ new Set(["bottom", "right"]);
-function jp(e, t, n, r, i, a) {
+var kp = /* @__PURE__ */ new Set(["bottom", "right"]);
+function Ap(e, t, n, r, i, a) {
let o = parseFloat(e);
if (!isNaN(o)) return o;
let { min: s, max: c } = t()[n], l = c - s;
return a === "border-box" ? l : l - parseFloat(r) - parseFloat(i);
}
-var Mp = {
- width: ({ width: e, paddingLeft: t = "0", paddingRight: n = "0", boxSizing: r }, i) => jp(e, i, "x", t, n, r),
- height: ({ height: e, paddingTop: t = "0", paddingBottom: n = "0", boxSizing: r }, i) => jp(e, i, "y", t, n, r),
+var jp = {
+ width: ({ width: e, paddingLeft: t = "0", paddingRight: n = "0", boxSizing: r }, i) => Ap(e, i, "x", t, n, r),
+ height: ({ height: e, paddingTop: t = "0", paddingBottom: n = "0", boxSizing: r }, i) => Ap(e, i, "y", t, n, r),
top: ({ top: e }) => parseFloat(e),
left: ({ left: e }) => parseFloat(e),
bottom: ({ top: e }, t) => {
@@ -15215,22 +15216,22 @@ var Mp = {
let { x: n } = t();
return parseFloat(e) + (n.max - n.min);
},
- x: ({ transform: e }) => xp(e, "x"),
- y: ({ transform: e }) => xp(e, "y")
+ x: ({ transform: e }) => bp(e, "x"),
+ y: ({ transform: e }) => bp(e, "y")
};
-Mp.translateX = Mp.x, Mp.translateY = Mp.y;
+jp.translateX = jp.x, jp.translateY = jp.y;
//#endregion
//#region node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.mjs
-var Np = /* @__PURE__ */ new Set(), Pp = !1, Fp = !1, Ip = !1;
-function Lp() {
- if (Fp) {
+var Mp = /* @__PURE__ */ new Set(), Np = !1, Pp = !1, Fp = !1;
+function Ip() {
+ if (Pp) {
let e = [], t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set();
- Np.forEach((r) => {
- r.needsMeasurement && (e.push(r), t.add(r.element), Ap.has(r.name) && n.add(r.element));
+ Mp.forEach((r) => {
+ r.needsMeasurement && (e.push(r), t.add(r.element), kp.has(r.name) && n.add(r.element));
});
let r = /* @__PURE__ */ new Map();
n.forEach((e) => {
- let t = kp(e);
+ let t = Op(e);
t.length && (r.set(e, t), e.render());
}), e.forEach((e) => e.measureInitialState()), t.forEach((e) => {
e.render();
@@ -15242,29 +15243,29 @@ function Lp() {
e.suspendedScrollY !== void 0 && window.scrollTo(0, e.suspendedScrollY);
});
}
- Fp = !1, Pp = !1, Np.forEach((e) => e.complete(Ip)), Np.clear();
+ Pp = !1, Np = !1, Mp.forEach((e) => e.complete(Fp)), Mp.clear();
}
-function Rp() {
- Np.forEach((e) => {
- e.readKeyframes(), e.needsMeasurement && (Fp = !0);
+function Lp() {
+ Mp.forEach((e) => {
+ e.readKeyframes(), e.needsMeasurement && (Pp = !0);
});
}
-function zp() {
- Ip = !0, Rp(), Lp(), Ip = !1;
+function Rp() {
+ Fp = !0, Lp(), Ip(), Fp = !1;
}
-function Bp(e, t, n) {
+function zp(e, t, n) {
if (typeof e == "string") {
if (cu(e) || uu(e)) return parseFloat(e);
- if (!Ld.test(e) && Ld.test(n)) return up(t, n);
+ if (!Id.test(e) && Id.test(n)) return lp(t, n);
}
return e ?? void 0;
}
-var Vp = class {
+var Bp = class {
constructor(e, t, n, r, i, a = !1) {
this.state = "pending", this.isAsync = !1, this.needsMeasurement = !1, this.unresolvedKeyframes = [...e], this.onComplete = t, this.name = n, this.motionValue = r, this.element = i, this.isAsync = a;
}
scheduleResolve() {
- this.state = "scheduled", this.isAsync ? (Np.add(this), Pp || (Pp = !0, lf.read(Rp), lf.resolveKeyframes(Lp))) : (this.readKeyframes(), this.complete());
+ this.state = "scheduled", this.isAsync ? (Mp.add(this), Np || (Np = !0, cf.read(Lp), cf.resolveKeyframes(Ip))) : (this.readKeyframes(), this.complete());
}
readKeyframes() {
let { unresolvedKeyframes: e, name: t, element: n, motionValue: r } = this;
@@ -15272,75 +15273,75 @@ var Vp = class {
let i = r?.get(), a = e[e.length - 1];
if (i !== void 0) e[0] = i;
else if (n && t) {
- let r = Bp(n.readValue(t, a), t, a);
+ let r = zp(n.readValue(t, a), t, a);
r !== void 0 && (e[0] = r);
}
e[0] === void 0 && (e[0] = a), r && i === void 0 && r.set(e[0]);
}
- dp(e);
+ up(e);
}
setFinalKeyframe() {}
measureInitialState() {}
renderEndStyles() {}
measureEndState() {}
complete(e = !1) {
- this.state = "complete", this.onComplete(this.unresolvedKeyframes, this.finalKeyframe, e), Np.delete(this);
+ this.state = "complete", this.onComplete(this.unresolvedKeyframes, this.finalKeyframe, e), Mp.delete(this);
}
cancel() {
- this.state === "scheduled" && (Np.delete(this), this.state = "pending");
+ this.state === "scheduled" && (Mp.delete(this), this.state = "pending");
}
resume() {
this.state === "pending" && this.scheduleResolve();
}
-}, Hp = (e) => e.startsWith("--");
+}, Vp = (e) => e.startsWith("--");
//#endregion
//#region node_modules/motion-dom/dist/es/render/dom/style-set.mjs
-function Up(e, t, n) {
- Hp(t) ? e.style.setProperty(t, n) : e.style[t] = n;
+function Hp(e, t, n) {
+ Vp(t) ? e.style.setProperty(t, n) : e.style[t] = n;
}
//#endregion
//#region node_modules/motion-dom/dist/es/utils/supports/flags.mjs
-var Wp = {};
+var Up = {};
//#endregion
//#region node_modules/motion-dom/dist/es/utils/supports/memo.mjs
-function Gp(e, t) {
+function Wp(e, t) {
let n = /* @__PURE__ */ du(e);
- return () => Wp[t] ?? n();
+ return () => Up[t] ?? n();
}
//#endregion
//#region node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.mjs
-var Kp = /* @__PURE__ */ Gp(() => window.ScrollTimeline !== void 0, "scrollTimeline"), qp = /*@__PURE__*/ Gp(() => {
+var Gp = /* @__PURE__ */ Wp(() => window.ScrollTimeline !== void 0, "scrollTimeline"), Kp = /*@__PURE__*/ Wp(() => {
try {
document.createElement("div").animate({ opacity: 0 }, { easing: "linear(0, 1)" });
} catch {
return !1;
}
return !0;
-}, "linearEasing"), Jp = ([e, t, n, r]) => `cubic-bezier(${e}, ${t}, ${n}, ${r})`, Yp = {
+}, "linearEasing"), qp = ([e, t, n, r]) => `cubic-bezier(${e}, ${t}, ${n}, ${r})`, Jp = {
linear: "linear",
ease: "ease",
easeIn: "ease-in",
easeOut: "ease-out",
easeInOut: "ease-in-out",
- circIn: /*@__PURE__*/ Jp([
+ circIn: /*@__PURE__*/ qp([
0,
.65,
.55,
1
]),
- circOut: /*@__PURE__*/ Jp([
+ circOut: /*@__PURE__*/ qp([
.55,
0,
1,
.45
]),
- backIn: /*@__PURE__*/ Jp([
+ backIn: /*@__PURE__*/ qp([
.31,
.01,
.66,
-.59
]),
- backOut: /*@__PURE__*/ Jp([
+ backOut: /*@__PURE__*/ qp([
.33,
1.53,
.69,
@@ -15349,15 +15350,15 @@ var Kp = /* @__PURE__ */ Gp(() => window.ScrollTimeline !== void 0, "scrollTimel
};
//#endregion
//#region node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.mjs
-function Xp(e, t) {
- if (e) return typeof e == "function" ? qp() ? pf(e, t) : "ease-out" : /* @__PURE__ */ Iu(e) ? Jp(e) : Array.isArray(e) ? e.map((e) => Xp(e, t) || Yp.easeOut) : Yp[e];
+function Yp(e, t) {
+ if (e) return typeof e == "function" ? Kp() ? ff(e, t) : "ease-out" : /* @__PURE__ */ Iu(e) ? qp(e) : Array.isArray(e) ? e.map((e) => Yp(e, t) || Jp.easeOut) : Jp[e];
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.mjs
-function Zp(e, t, n, { delay: r = 0, duration: i = 300, repeat: a = 0, repeatType: o = "loop", ease: s = "easeOut", times: c } = {}, l = void 0) {
+function Xp(e, t, n, { delay: r = 0, duration: i = 300, repeat: a = 0, repeatType: o = "loop", ease: s = "easeOut", times: c } = {}, l = void 0) {
let u = { [t]: n };
c && (u.offset = c);
- let d = Xp(s, i);
+ let d = Yp(s, i);
Array.isArray(d) && (u.easing = d);
let f = {
delay: r,
@@ -15371,29 +15372,29 @@ function Zp(e, t, n, { delay: r = 0, duration: i = 300, repeat: a = 0, repeatTyp
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.mjs
-function Qp(e) {
+function Zp(e) {
return typeof e == "function" && "applyToOptions" in e;
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.mjs
-function $p({ type: e, ...t }) {
- return Qp(e) && qp() ? e.applyToOptions(t) : (t.duration ??= 300, t.ease ??= "easeOut", t);
+function Qp({ type: e, ...t }) {
+ return Zp(e) && Kp() ? e.applyToOptions(t) : (t.duration ??= 300, t.ease ??= "easeOut", t);
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/NativeAnimation.mjs
-var em = class extends Yf {
+var $p = class extends Jf {
constructor(e) {
if (super(), this.finishedTime = null, this.isStopped = !1, this.manualStartTime = null, !e) return;
let { element: t, name: n, keyframes: r, pseudoElement: i, allowFlatten: a = !1, finalKeyframe: o, onComplete: s } = e;
this.isPseudoElement = !!i, this.allowFlatten = a, this.options = e, e.type;
- let c = $p(e);
- this.animation = Zp(t, n, r, c, i), c.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
+ let c = Qp(e);
+ this.animation = Xp(t, n, r, c, i), c.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
if (this.finishedTime = this.time, !i) {
- let e = Vf(r, this.options, o, this.speed);
- this.updateMotionValue && this.updateMotionValue(e), Up(t, n, e), this.animation.cancel();
+ let e = Bf(r, this.options, o, this.speed);
+ this.updateMotionValue && this.updateMotionValue(e), Hp(t, n, e), this.animation.cancel();
}
s?.(), this.notifyFinished();
- }, qf(this, e, c);
+ }, Kf(this, e, c);
}
play() {
this.isStopped || (this.manualStartTime = null, this.animation.play(), this.state === "finished" && this.updateFinished());
@@ -15450,22 +15451,22 @@ var em = class extends Yf {
this.manualStartTime = this.animation.startTime = e;
}
attachTimeline({ timeline: e, onAttach: t, observe: n }) {
- return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, e && Kp() ? (this.animation.timeline = e, t?.(this.animation), fu) : n(this);
+ return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, e && Gp() ? (this.animation.timeline = e, t?.(this.animation), fu) : n(this);
}
-}, tm = {
+}, em = {
anticipate: Du,
backInOut: Eu,
circInOut: Au
};
-function nm(e) {
- return e in tm;
+function tm(e) {
+ return e in em;
}
-function rm(e) {
- typeof e.ease == "string" && nm(e.ease) && (e.ease = tm[e.ease]);
+function nm(e) {
+ typeof e.ease == "string" && tm(e.ease) && (e.ease = em[e.ease]);
}
-var im = class extends em {
+var rm = class extends $p {
constructor(e) {
- rm(e), Uf(e), super(e), e.startTime !== void 0 && e.autoplay !== !1 && (this.startTime = e.startTime), this.options = e;
+ nm(e), Hf(e), super(e), e.startTime !== void 0 && e.autoplay !== !1 && (this.startTime = e.startTime), this.options = e;
}
elapsed() {
return this.state === "running" ? (Uu.now() - this.startTime) * this.speed : this.time * 1e3;
@@ -15473,7 +15474,7 @@ var im = class extends em {
sample(e) {
if (!this.sampler) {
let { motionValue: e, onUpdate: t, onComplete: n, onPlay: r, onStop: i, element: a, ...o } = this.options;
- this.sampler = new Qf({
+ this.sampler = new Zf({
...o,
autoplay: !1
}), this.sampler.stop();
@@ -15492,44 +15493,44 @@ var im = class extends em {
return;
}
let { speed: i } = this, a = this.elapsed(), o = this.state === "running" && i ? ou(0, 10, a) : 0, s = this.sample(a);
- n && r && Up(n, r, s), t.setWithVelocity(this.sample(a - o * Math.sign(i)), s, o / Math.abs(i || 1));
+ n && r && Hp(n, r, s), t.setWithVelocity(this.sample(a - o * Math.sign(i)), s, o / Math.abs(i || 1));
}
-}, am = (e, t) => t !== "zIndex" && !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && (Ld.test(e) || e === "0") && !e.startsWith("url("));
+}, im = (e, t) => t !== "zIndex" && !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && (Id.test(e) || e === "0") && !e.startsWith("url("));
//#endregion
//#region node_modules/motion-dom/dist/es/animation/utils/can-animate.mjs
-function om(e) {
+function am(e) {
let t = e[0];
if (e.length === 1) return !0;
for (let n = 0; n < e.length; n++) if (e[n] !== t) return !0;
}
-function sm(e, t, n, r) {
+function om(e, t, n, r) {
let i = e[0];
if (i === null) return !1;
if (t === "display" || t === "visibility") return !0;
- let a = e[e.length - 1], o = am(i, t), s = am(a, t);
- return !o || !s ? (o !== s && `${t}${i}${a}${o ? a : i}`, !1) : om(e) || (n === "spring" || Qp(n)) && r;
+ let a = e[e.length - 1], o = im(i, t), s = im(a, t);
+ return !o || !s ? (o !== s && `${t}${i}${a}${o ? a : i}`, !1) : am(e) || (n === "spring" || Zp(n)) && r;
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.mjs
-function cm(e) {
+function sm(e) {
e.duration = 0, e.type = "keyframes";
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/waapi/utils/accelerated-values.mjs
-var lm = /* @__PURE__ */ new Set([
+var cm = /* @__PURE__ */ new Set([
"opacity",
"clipPath",
"filter",
"transform",
"backgroundColor"
-]), um = /^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;
-function dm(e) {
- for (let t = 0; t < e.length; t++) if (typeof e[t] == "string" && um.test(e[t])) return !0;
+]), lm = /^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;
+function um(e) {
+ for (let t = 0; t < e.length; t++) if (typeof e[t] == "string" && lm.test(e[t])) return !0;
return !1;
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.mjs
-var fm = /* @__PURE__ */ new Set([
+var dm = /* @__PURE__ */ new Set([
"color",
"backgroundColor",
"outlineColor",
@@ -15540,27 +15541,27 @@ var fm = /* @__PURE__ */ new Set([
"borderRightColor",
"borderBottomColor",
"borderLeftColor"
-]), pm = /*@__PURE__*/ du(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
-function mm(e) {
+]), fm = /*@__PURE__*/ du(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
+function pm(e) {
let { motionValue: t, name: n, repeatDelay: r, repeatType: i, damping: a, type: o, keyframes: s } = e;
- if (!n || !(lm.has(n) || fm.has(n))) return !1;
+ if (!n || !(cm.has(n) || dm.has(n))) return !1;
let c = t?.owner?.current;
if (!(c instanceof HTMLElement) && !(c instanceof SVGElement)) return !1;
let { onUpdate: l, transformTemplate: u } = t.owner.getProps();
- return pm() && (lm.has(n) || fm.has(n) && dm(s)) && (n !== "transform" || !u) && !l && !r && i !== "mirror" && a !== 0 && o !== "inertia";
+ return fm() && (cm.has(n) || dm.has(n) && um(s)) && (n !== "transform" || !u) && !l && !r && i !== "mirror" && a !== 0 && o !== "inertia";
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/types/utils/get-as-type.mjs
-var hm = (e, t) => t && typeof e == "number" ? t.transform(e) : e, gm = {
+var mm = (e, t) => t && typeof e == "number" ? t.transform(e) : e, hm = {
x: "translateX",
y: "translateY",
z: "translateZ",
transformPerspective: "perspective"
-}, _m = wp.length;
-function vm(e, t, n) {
+}, gm = Cp.length;
+function _m(e, t, n) {
let r = "", i = !0;
- for (let a = 0; a < _m; a++) {
- let o = wp[a], s = e[o];
+ for (let a = 0; a < gm; a++) {
+ let o = Cp[a], s = e[o];
if (s === void 0) continue;
let c = !0;
if (typeof s == "number") c = s === +!!o.startsWith("scale");
@@ -15569,44 +15570,44 @@ function vm(e, t, n) {
c = o.startsWith("scale") ? e === 1 : e === 0;
}
if (!c || n) {
- let e = hm(s, op[o]);
+ let e = mm(s, ap[o]);
if (!c) {
i = !1;
- let t = gm[o] || o;
+ let t = hm[o] || o;
r += `${t}(${e}) `;
}
n && (t[o] = e);
}
}
let a = e.pathRotation;
- return a && (i = !1, r += `rotate(${hm(a, op.pathRotation)}) `), r = r.trim(), n ? r = n(t, i ? "" : r) : i && (r = "none"), r;
+ return a && (i = !1, r += `rotate(${mm(a, ap.pathRotation)}) `), r = r.trim(), n ? r = n(t, i ? "" : r) : i && (r = "none"), r;
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/waapi/transforms/groups.mjs
-var ym = /* @__PURE__ */ new WeakMap(), bm = 200, xm = .001, Sm = .1, Cm = .001, wm = 100, Tm = (e) => /^(linear|ease(In|Out|InOut))$/.test(e), Em = (e, t) => e - t, Dm = (e, t, n) => {
+var vm = /* @__PURE__ */ new WeakMap(), ym = 200, bm = .001, xm = .1, Sm = .001, Cm = 100, wm = (e) => /^(linear|ease(In|Out|InOut))$/.test(e), Tm = (e, t) => e - t, Em = (e, t, n) => {
let r = [];
- for (let i = 0; i <= n; i++) r.push(Vd(e, t, i / n));
+ for (let i = 0; i <= n; i++) r.push(Bd(e, t, i / n));
return r;
-}, Om = (e) => e.motionValue.owner, km = (e) => ym.get(e), Am = (e, t) => e.latestValues ? e.latestValues[t] : e.getValue(t)?.get(), jm = ({ name: e, motionValue: t }) => e && wp.includes(e) && t?.owner?.current instanceof HTMLElement && pm() && qp();
-function Mm(e) {
- let t = Om(e), { onUpdate: n, transformTemplate: r } = t.getProps();
- return !e.isHandoff && !n && !e.hasOnUpdate && !r && e.type !== "inertia" && (Am(t, "transform") || "none") === "none" && !Am(t, "pathRotation") && !t.projection?.isProjecting();
+}, Dm = (e) => e.motionValue.owner, Om = (e) => vm.get(e), km = (e, t) => e.latestValues ? e.latestValues[t] : e.getValue(t)?.get(), Am = ({ name: e, motionValue: t }) => e && Cp.includes(e) && t?.owner?.current instanceof HTMLElement && fm() && Kp();
+function jm(e) {
+ let t = Dm(e), { onUpdate: n, transformTemplate: r } = t.getProps();
+ return !e.isHandoff && !n && !e.hasOnUpdate && !r && e.type !== "inertia" && (km(t, "transform") || "none") === "none" && !km(t, "pathRotation") && !t.projection?.isProjecting();
}
-var Nm = class extends Qf {
+var Mm = class extends Zf {
constructor(e) {
- let t = Om(e).current, { driver: n = ff } = e, r = Mm(e);
+ let t = Dm(e).current, { driver: n = df } = e, r = jm(e);
e.driver = (e) => {
let r = n(e);
return {
js: r,
now: r.now,
start: (e = !0) => {
- let n = km(t);
+ let n = Om(t);
!n || n.isJS ? r.start(e) : n.schedule(!1, !e);
},
stop: () => {
r.stop();
- let e = km(t);
+ let e = Om(t);
e?.schedule(!e.isFinishing);
}
};
@@ -15617,7 +15618,7 @@ var Nm = class extends Qf {
};
}
get group() {
- return km(Om(this.options).current);
+ return Om(Dm(this.options).current);
}
get js() {
return this.driver?.js;
@@ -15637,8 +15638,8 @@ var Nm = class extends Qf {
return this.isAccelerated() ? this.sampleAt(Uu.now()) : void 0;
}
tween() {
- let { keyframes: e, type: t, ease: n, times: r, repeat: i, delay: a = 0 } = this.options, o = /* @__PURE__ */ Iu(n) ? Jp(n) : Tm(n) && Yp[n];
- if (o && !i && !r && e.length === 2 && t === If && this.holdTime === null) {
+ let { keyframes: e, type: t, ease: n, times: r, repeat: i, delay: a = 0 } = this.options, o = /* @__PURE__ */ Iu(n) ? qp(n) : wm(n) && Jp[n];
+ if (o && !i && !r && e.length === 2 && t === Ff && this.holdTime === null) {
let e = this.startTime + a / this.speed;
return [
e,
@@ -15648,7 +15649,7 @@ var Nm = class extends Qf {
}
}
boundaries(e, t) {
- let { startTime: n, speed: r, resolvedDuration: i, options: a } = this, { delay: o = 0, repeat: s = 0, repeatDelay: c = 0, repeatType: l, times: u, keyframes: d, type: f } = a, p = (f || If) === If ? u || Nf(d) : [0, 1], m = n + o / r, h = [];
+ let { startTime: n, speed: r, resolvedDuration: i, options: a } = this, { delay: o = 0, repeat: s = 0, repeatDelay: c = 0, repeatType: l, times: u, keyframes: d, type: f } = a, p = (f || Ff) === Ff ? u || Mf(d) : [0, 1], m = n + o / r, h = [];
if (this.holdTime !== null || !(i > 0)) return h;
for (let n = Math.max(0, Math.floor((e - m) * r / i)); n <= s; n++) {
let a = m + n * i / r;
@@ -15668,7 +15669,7 @@ var Nm = class extends Qf {
this.options.motionValue.setWithVelocity(this.sampleAt(e - 10, !0), this.sampleAt(e, !0), 10);
}
play() {
- this.isStopped || ((this.group || Pm(Om(this.options))).tracks.add(this), super.play());
+ this.isStopped || ((this.group || Nm(Dm(this.options))).tracks.add(this), super.play());
}
pause() {
super.pause(), this.isAccelerated() && (this.sync(), this.group.schedule(!1));
@@ -15688,22 +15689,22 @@ var Nm = class extends Qf {
return this.canAccelerate = !1, this.group?.demote(!0), super.attachTimeline(e);
}
};
-function Pm(e) {
+function Nm(e) {
let t = e.current, n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Map(), i = {}, a = [], o = /* @__PURE__ */ new Map(), s = [], c = !1, l = !1, u = !1, d = -Infinity, f = (e) => {
for (let t of n) if (t.name === e) return !0;
}, p = (t, n) => {
let o = {};
- for (let s of t === void 0 ? wp : a) {
- let a = r.get(s), c = t === void 0 ? Am(e, s) : a ? a.sampleAt(n > t && !a.timing()[1] ? n : t) : i[s];
+ for (let s of t === void 0 ? Cp : a) {
+ let a = r.get(s), c = t === void 0 ? km(e, s) : a ? a.sampleAt(n > t && !a.timing()[1] ? n : t) : i[s];
c !== void 0 && (o[s] = c);
}
return o;
}, m = (e, t) => {
let n = "", r = p(e, t);
- for (let e in r) n += (gm[e] || e) + "(" + hm(r[e], op[e]) + ") ";
+ for (let e in r) n += (hm[e] || e) + "(" + mm(r[e], ap[e]) + ") ";
return n || "none";
}, h = (e = p()) => {
- t.style.transform = vm(e, {});
+ t.style.transform = _m(e, {});
}, g = (e = !0) => {
e && h(), s.forEach(({ animation: e }) => e.cancel()), s = [];
}, _ = (e, t, n = Infinity) => {
@@ -15723,34 +15724,34 @@ function Pm(e) {
}
return r(t, n) > i / 2 ? [t, n] : [];
}, y = (e, t, n, r) => {
- let i = Math.min(bm, Math.max(2, Math.ceil((n - t) / 10)));
+ let i = Math.min(ym, Math.max(2, Math.ceil((n - t) / 10)));
if (r.length * 4 > i) return;
- let a = Dm(t, n, i).concat(r).sort(Em), o = (e) => /* @__PURE__ */ mu(t, n, e), s, c;
+ let a = Em(t, n, i).concat(r).sort(Tm), o = (e) => /* @__PURE__ */ mu(t, n, e), s, c;
for (let t of e) {
let e = a.map((e) => t.numberAt(e)), [n] = e, r = e[e.length - 1] - n, i = e.map((e) => r ? (e - n) / r : e - n);
if (!r) {
- if (i.some((e) => !(Math.abs(e) <= xm))) return;
+ if (i.some((e) => !(Math.abs(e) <= bm))) return;
} else if (!s) s = i, c = (e) => (t.numberAt(e) - n) / r;
- else if (i.some((e, t) => !(Math.abs(e - s[t]) <= xm))) return;
+ else if (i.some((e, t) => !(Math.abs(e - s[t]) <= bm))) return;
}
- if (!s || s.every((e, t) => Math.abs(e - o(a[t])) <= xm)) return "linear";
- let l = [], u = (e, t = c(e)) => l.push(Zf(t) + " " + Zf(o(e) * 100) + "%");
+ if (!s || s.every((e, t) => Math.abs(e - o(a[t])) <= bm)) return "linear";
+ let l = [], u = (e, t = c(e)) => l.push(Xf(t) + " " + Xf(o(e) * 100) + "%");
return s.forEach((e, t) => {
t && Math.abs(e - s[t - 1]) > .2 && v(c, a[t - 1], a[t]).forEach((e) => u(e)), u(a[t], e);
}), "linear(" + l + ")";
}, b = (e, t, n, r) => {
- let i = [t], a = (t, n) => e.every((e) => !(Math.abs(e.numberAt((t + n) / 2) - (e.numberAt(t) + e.numberAt(n)) / 2) > (e.name.startsWith("scale") ? Cm : Sm))), o = (t, n, r) => {
+ let i = [t], a = (t, n) => e.every((e) => !(Math.abs(e.numberAt((t + n) / 2) - (e.numberAt(t) + e.numberAt(n)) / 2) > (e.name.startsWith("scale") ? Sm : xm))), o = (t, n, r) => {
if (n - t < 1 || a(t, n)) i.push(n);
else if (r < 4) o(t, (t + n) / 2, r + 1), o((t + n) / 2, n, r + 1);
else {
for (let r of e) i.push(...v((e) => r.numberAt(e), t, n));
i.push(n);
}
- }, s = Dm(t, n, Math.ceil((n - t) / 100));
+ }, s = Em(t, n, Math.ceil((n - t) / 100));
for (let e of r) s.push(e, Math.min(e + .01, n));
let c = t;
- for (let e of s.sort(Em)) e > c && o(c, e, 0), c = e;
- return i.sort(Em);
+ for (let e of s.sort(Tm)) e > c && o(c, e, 0), c = e;
+ return i.sort(Tm);
}, x = (e) => {
let t;
for (let n of e) {
@@ -15789,9 +15790,9 @@ function Pm(e) {
f.push(e), l = Math.max(l, t);
}
}
- i = {}, a = wp.filter((t) => {
+ i = {}, a = Cp.filter((t) => {
if (r.has(t)) return !0;
- let n = i[t] = Am(e, t);
+ let n = i[t] = km(e, t);
return n !== void 0 && parseFloat(n) !== +!!t.startsWith("scale");
}), g(!1);
let h = !u && x(f);
@@ -15842,11 +15843,11 @@ function Pm(e) {
let r = Uu.now();
if (E.isJS || (E.isFinishing = !0, n.forEach((t) => {
let [n, a] = t.timing();
- t.state === "running" && t.speed > 0 && !a && n <= r + 1 && (t.complete(), i[t.name] = Am(e, t.name), o.has(t) || (c = !0));
+ t.state === "running" && t.speed > 0 && !a && n <= r + 1 && (t.complete(), i[t.name] = km(e, t.name), o.has(t) || (c = !0));
}), E.isFinishing = !1), l = !1, n.forEach(({ state: e }, t) => {
(e === "idle" || e === "finished") && n.delete(t);
}), !n.size) {
- ym.delete(t), E.isJS || g();
+ vm.delete(t), E.isJS || g();
return;
}
for (let e of n) if (!e.canAccelerate) return E.demote(!0);
@@ -15854,7 +15855,7 @@ function Pm(e) {
let a = c, s = u;
if (c = u = !1, a || !w(r)) {
if (s) {
- if (r - d < wm) return E.demote();
+ if (r - d < Cm) return E.demote();
d = r;
}
if (!C(r)) return E.demote();
@@ -15864,11 +15865,11 @@ function Pm(e) {
isJS: !1,
isFinishing: !1,
schedule(e, t) {
- c ||= e, u ||= !!t, l || (l = !0, Bu.isProcessing ? lf.render(T, !1, !0) : queueMicrotask(T));
+ c ||= e, u ||= !!t, l || (l = !0, Bu.isProcessing ? cf.render(T, !1, !0) : queueMicrotask(T));
},
check() {
if (!E.isJS) {
- for (let t in i) if (Am(e, t) !== i[t] && !f(t)) return E.schedule(!0, !0);
+ for (let t in i) if (km(e, t) !== i[t] && !f(t)) return E.schedule(!0, !0);
}
},
demote(e) {
@@ -15877,18 +15878,18 @@ function Pm(e) {
}), E.isJS = !0, o = /* @__PURE__ */ new Map(), g(), n.forEach((e) => e.state === "running" && e.js?.start()));
}
};
- return ym.set(t, E), E;
+ return vm.set(t, E), E;
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.mjs
-var Fm = class extends Yf {
+var Pm = class extends Jf {
constructor(e) {
super(), this.stop = () => {
this._animation && (this._animation.stop(), this.stopTimeline?.()), this.keyframeResolver?.cancel();
}, this.createdAt = Uu.now();
let { keyframes: t, name: n, motionValue: r, element: i } = e, a = e;
a.autoplay ??= !0, a.delay ??= 0, a.type ??= "keyframes", a.repeat ??= 0, a.repeatDelay ??= 0, a.repeatType ??= "loop";
- let o = i?.KeyframeResolver || Vp;
+ let o = i?.KeyframeResolver || Bp;
this.keyframeResolver = new o(t, (e, t, n) => this.onKeyframesResolved(e, t, a, !n), n, r, i), this.keyframeResolver?.scheduleResolve();
}
onKeyframesResolved(e, t, n, r) {
@@ -15896,22 +15897,22 @@ var Fm = class extends Yf {
let { name: i, type: a, velocity: o, delay: s, isHandoff: c, onUpdate: l } = n;
this.resolvedAt = Uu.now();
let u = !0;
- sm(e, i, a, o) || (u = !1, (su.instantAnimations || !s) && l?.(Vf(e, n, t)), e[0] = e[e.length - 1], cm(n), n.repeat = 0);
+ om(e, i, a, o) || (u = !1, (su.instantAnimations || !s) && l?.(Bf(e, n, t)), e[0] = e[e.length - 1], sm(n), n.repeat = 0);
let { onComplete: d } = n;
n.finalKeyframe = t, n.keyframes = e, n.onComplete = () => {
d?.(), this.notifyFinished();
};
- let f = u && !c && mm(n), p = !f && jm(n);
- r && (f || p || this.resolvedAt !== this.createdAt) && (n.startTime ??= Gf(this.createdAt, this.resolvedAt));
+ let f = u && !c && pm(n), p = !f && Am(n);
+ r && (f || p || this.resolvedAt !== this.createdAt) && (n.startTime ??= Wf(this.createdAt, this.resolvedAt));
let m;
if (f) {
n.element = n.motionValue?.owner?.current;
try {
- m = new im(n);
+ m = new rm(n);
} catch {
- m = new Qf(n);
+ m = new Zf(n);
}
- } else m = p ? new Nm(n) : new Qf(n);
+ } else m = p ? new Mm(n) : new Zf(n);
this.pendingTimeline &&= (this.stopTimeline = m.attachTimeline(this.pendingTimeline), void 0), this._animation = m;
}
get finished() {
@@ -15924,7 +15925,7 @@ var Fm = class extends Yf {
return this._animation?.liveValue?.();
}
get animation() {
- return this._animation || (this.keyframeResolver?.resume(), zp()), this._animation;
+ return this._animation || (this.keyframeResolver?.resume(), Rp()), this._animation;
}
get duration() {
return this.animation.duration;
@@ -15965,7 +15966,7 @@ var Fm = class extends Yf {
cancel() {
this._animation && this.animation.cancel(), this.keyframeResolver?.cancel();
}
-}, Im = class {
+}, Fm = class {
constructor(e) {
this.stop = () => this.runAll("stop"), this.animations = e.filter(Boolean);
}
@@ -16005,10 +16006,10 @@ var Fm = class extends Yf {
return this.getAll("startTime");
}
get duration() {
- return Lm(this.animations, "duration");
+ return Im(this.animations, "duration");
}
get iterationDuration() {
- return Lm(this.animations, "iterationDuration");
+ return Im(this.animations, "iterationDuration");
}
runAll(e) {
this.animations.forEach((t) => t[e]());
@@ -16026,7 +16027,7 @@ var Fm = class extends Yf {
this.runAll("complete");
}
};
-function Lm(e, t) {
+function Im(e, t) {
let n = 0;
for (let r = 0; r < e.length; r++) {
let i = e[r][t];
@@ -16036,24 +16037,24 @@ function Lm(e, t) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/GroupAnimationWithThen.mjs
-var Rm = class extends Im {
+var Lm = class extends Fm {
then(e, t) {
return this.finished.finally(e).then(() => {});
}
-}, zm = /* @__PURE__ */ new WeakMap(), Bm = (e, t = "") => `${e}:${t}`;
-function Vm(e) {
- let t = zm.get(e);
- return t || (t = /* @__PURE__ */ new Map(), zm.set(e, t)), t;
+}, Rm = /* @__PURE__ */ new WeakMap(), zm = (e, t = "") => `${e}:${t}`;
+function Bm(e) {
+ let t = Rm.get(e);
+ return t || (t = /* @__PURE__ */ new Map(), Rm.set(e, t)), t;
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.mjs
-function Hm(e, t, n, r = 0, i = 1) {
+function Vm(e, t, n, r = 0, i = 1) {
let a = Array.from(e).sort((e, t) => e.sortNodePosition(t)).indexOf(t), o = e.size, s = (o - 1) * r;
return typeof n == "function" ? n(a, o) : i === 1 ? a * r : s - a * r;
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/index.mjs
-var Um = 30, Wm = (e) => !isNaN(parseFloat(e)), Gm = { current: void 0 }, Km = class {
+var Hm = 30, Um = (e) => !isNaN(parseFloat(e)), Wm = { current: void 0 }, Gm = class {
constructor(e, t = {}) {
this.canTrackVelocity = null, this.events = {}, this.updateAndNotify = (e) => {
let t = Uu.now();
@@ -16061,7 +16062,7 @@ var Um = 30, Wm = (e) => !isNaN(parseFloat(e)), Gm = { current: void 0 }, Km = c
}, this.hasAnimated = !1, this.setCurrent(e), this.owner = t.owner;
}
setCurrent(e) {
- this.current = e, this.updatedAt = Uu.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity = Wm(this.current));
+ this.current = e, this.updatedAt = Uu.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity = Um(this.current));
}
setPrevFrameValue(e = this.current) {
this.prevFrameValue = e, this.prevUpdatedAt = this.updatedAt;
@@ -16080,7 +16081,7 @@ var Um = 30, Wm = (e) => !isNaN(parseFloat(e)), Gm = { current: void 0 }, Km = c
};
}
stopIfUnobserved() {
- lf.read(() => {
+ cf.read(() => {
!this.changeSubscriber && !this.events.change?.getSize() && this.stop();
});
}
@@ -16114,7 +16115,7 @@ var Um = 30, Wm = (e) => !isNaN(parseFloat(e)), Gm = { current: void 0 }, Km = c
this.dependents && this.dependents.delete(e);
}
get() {
- Gm.current && Gm.current.push(this);
+ Wm.current && Wm.current.push(this);
let e = this.animation?.liveValue?.();
return e === void 0 ? this.current : e;
}
@@ -16126,8 +16127,8 @@ var Um = 30, Wm = (e) => !isNaN(parseFloat(e)), Gm = { current: void 0 }, Km = c
}
getVelocity() {
let e = Uu.now();
- if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt > Um) return 0;
- let t = Math.min(this.updatedAt - this.prevUpdatedAt, Um);
+ if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt > Hm) return 0;
+ let t = Math.min(this.updatedAt - this.prevUpdatedAt, Hm);
return /* @__PURE__ */ vu(parseFloat(this.current) - parseFloat(this.prevFrameValue), t);
}
start(e) {
@@ -16152,12 +16153,12 @@ var Um = 30, Wm = (e) => !isNaN(parseFloat(e)), Gm = { current: void 0 }, Km = c
this.dependents?.clear(), this.events.destroy?.notify(), this.clearListeners(), this.stop(), this.stopPassiveEffect && this.stopPassiveEffect();
}
};
-function qm(e, t) {
- return new Km(e, t);
+function Km(e, t) {
+ return new Gm(e, t);
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/utils/resolve-transition.mjs
-function Jm(e, t) {
+function qm(e, t) {
if (e?.inherit && t) {
let { inherit: n, ...r } = e;
return {
@@ -16169,26 +16170,26 @@ function Jm(e, t) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/utils/get-value-transition.mjs
-function Ym(e, t) {
+function Jm(e, t) {
let n = e?.[t] ?? e?.default ?? e;
- return n === e ? n : Jm(n, e);
+ return n === e ? n : qm(n, e);
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/utils/default-transitions.mjs
-var Xm = {
+var Ym = {
type: "spring",
stiffness: 500,
damping: 25,
restSpeed: 10
-}, Zm = (e) => ({
+}, Xm = (e) => ({
type: "spring",
stiffness: 550,
damping: e === 0 ? 2 * Math.sqrt(550) : 30,
restSpeed: 10
-}), Qm = {
+}), Zm = {
type: "keyframes",
duration: .8
-}, $m = {
+}, Qm = {
type: "keyframes",
ease: [
.25,
@@ -16197,7 +16198,7 @@ var Xm = {
1
],
duration: .3
-}, eh = (e, { keyframes: t }) => t.length > 2 ? Qm : Tp.has(e) ? e.startsWith("scale") ? Zm(t[1]) : Xm : $m, th = /* @__PURE__ */ new Set([
+}, $m = (e, { keyframes: t }) => t.length > 2 ? Zm : wp.has(e) ? e.startsWith("scale") ? Xm(t[1]) : Ym : Qm, eh = /* @__PURE__ */ new Set([
"when",
"delay",
"delayChildren",
@@ -16209,14 +16210,14 @@ var Xm = {
"from",
"elapsed"
]);
-function nh(e) {
- for (let t in e) if (!th.has(t)) return !0;
+function th(e) {
+ for (let t in e) if (!eh.has(t)) return !0;
return !1;
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/interfaces/motion-value.mjs
-var rh = (e, t, n, r = {}, i, a) => (o) => {
- let s = Ym(r, e) || {}, c = s.delay || r.delay || 0, { elapsed: l = 0 } = r;
+var nh = (e, t, n, r = {}, i, a) => (o) => {
+ let s = Jm(r, e) || {}, c = s.delay || r.delay || 0, { elapsed: l = 0 } = r;
l -= /* @__PURE__ */ gu(c);
let u = {
keyframes: Array.isArray(n) ? n : [null, n],
@@ -16235,91 +16236,91 @@ var rh = (e, t, n, r = {}, i, a) => (o) => {
element: a ? void 0 : i,
hasOnUpdate: !!s.onUpdate
};
- nh(s) || Object.assign(u, eh(e, u)), u.duration &&= /* @__PURE__ */ gu(u.duration), u.repeatDelay &&= /* @__PURE__ */ gu(u.repeatDelay), u.from !== void 0 && (u.keyframes[0] = u.from);
+ th(s) || Object.assign(u, $m(e, u)), u.duration &&= /* @__PURE__ */ gu(u.duration), u.repeatDelay &&= /* @__PURE__ */ gu(u.repeatDelay), u.from !== void 0 && (u.keyframes[0] = u.from);
let d = !1;
- if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (cm(u), u.delay === 0 && (d = !0)), (su.instantAnimations || su.skipAnimations || i?.shouldSkipAnimations || s.skipAnimations) && (d = !0, cm(u), u.delay = 0), u.allowFlatten = !s.type && !s.ease, d && !a && t.get() !== void 0) {
- let e = Vf(u.keyframes, s);
+ if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (sm(u), u.delay === 0 && (d = !0)), (su.instantAnimations || su.skipAnimations || i?.shouldSkipAnimations || s.skipAnimations) && (d = !0, sm(u), u.delay = 0), u.allowFlatten = !s.type && !s.ease, d && !a && t.get() !== void 0) {
+ let e = Bf(u.keyframes, s);
if (e !== void 0) {
- lf.update(() => {
+ cf.update(() => {
u.onUpdate(e), u.onComplete();
});
return;
}
}
- return s.isSync ? new Qf(u) : new Fm(u);
-}, ih = /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;
-function ah(e) {
- let t = ih.exec(e);
+ return s.isSync ? new Zf(u) : new Pm(u);
+}, rh = /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;
+function ih(e) {
+ let t = rh.exec(e);
if (!t) return [,];
let [, n, r, i] = t;
return [`--${n ?? r}`, i];
}
-function oh(e, t, n = 1) {
+function ah(e, t, n = 1) {
`${e}`;
- let [r, i] = ah(e);
+ let [r, i] = ih(e);
if (!r) return;
let a = window.getComputedStyle(t).getPropertyValue(r);
if (a) {
let e = a.trim();
return cu(e) ? parseFloat(e) : e;
}
- return Ju(i) ? oh(i, t, n + 1) : i;
+ return Ju(i) ? ah(i, t, n + 1) : i;
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/resolve-variants.mjs
-function sh(e) {
+function oh(e) {
let t = [{}, {}];
return e?.values.forEach((e, n) => {
t[0][n] = e.get(), t[1][n] = e.getVelocity();
}), t;
}
-function ch(e, t, n, r) {
- let i = (t) => typeof t == "function" ? t(n === void 0 ? e.custom : n, ...sh(r)) : t;
+function sh(e, t, n, r) {
+ let i = (t) => typeof t == "function" ? t(n === void 0 ? e.custom : n, ...oh(r)) : t;
return t = i(t), typeof t == "string" && (t = e.variants && e.variants[t]), i(t);
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.mjs
-function lh(e, t, n) {
- return ch(e.getProps(), t, n, e);
+function ch(e, t, n) {
+ return sh(e.getProps(), t, n, e);
}
-var uh = (e, t) => t === "exit" ? e.presenceContext?.custom : void 0, dh = /* @__PURE__ */ new Set([
+var lh = (e, t) => t === "exit" ? e.presenceContext?.custom : void 0, uh = /* @__PURE__ */ new Set([
"width",
"height",
"top",
"left",
"right",
"bottom",
- ...wp
-]), fh = (e) => Array.isArray(e);
+ ...Cp
+]), dh = (e) => Array.isArray(e);
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/setters.mjs
-function ph(e, t, n) {
- e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t, qm(n));
+function fh(e, t, n) {
+ e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t, Km(n));
}
-function mh(e) {
- return fh(e) ? e[e.length - 1] || 0 : e;
+function ph(e) {
+ return dh(e) ? e[e.length - 1] || 0 : e;
}
-function hh(e, t) {
- let { transitionEnd: n = {}, transition: r = {}, ...i } = lh(e, t) || {};
+function mh(e, t) {
+ let { transitionEnd: n = {}, transition: r = {}, ...i } = ch(e, t) || {};
i = {
...i,
...n
};
- for (let t in i) ph(e, t, mh(i[t]));
+ for (let t in i) fh(e, t, ph(i[t]));
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/utils/is-motion-value.mjs
-var gh = (e) => !!(e && e.getVelocity);
+var hh = (e) => !!(e && e.getVelocity);
//#endregion
//#region node_modules/motion-dom/dist/es/value/will-change/is.mjs
-function _h(e) {
- return !!(gh(e) && e.add);
+function gh(e) {
+ return !!(hh(e) && e.add);
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/will-change/add-will-change.mjs
-function vh(e, t) {
+function _h(e, t) {
let n = e.getValue("willChange");
- if (_h(n)) return n.add(t);
+ if (gh(n)) return n.add(t);
if (!n && su.WillChange) {
let n = new su.WillChange("auto");
e.addValue("willChange", n), n.add(t);
@@ -16327,59 +16328,59 @@ function vh(e, t) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.mjs
-function yh(e) {
+function vh(e) {
return e.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`);
}
-var bh = "data-" + yh("framerAppearId");
+var yh = "data-" + vh("framerAppearId");
//#endregion
//#region node_modules/motion-dom/dist/es/animation/optimized-appear/get-appear-id.mjs
-function xh(e) {
- return e.props[bh];
+function bh(e) {
+ return e.props[yh];
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.mjs
-var Sh = typeof window < "u";
-function Ch({ protectedKeys: e, needsAnimating: t }, n) {
+var xh = typeof window < "u";
+function Sh({ protectedKeys: e, needsAnimating: t }, n) {
let r = n in e && !t[n];
return t[n] = !1, r;
}
-function wh(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
+function Ch(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
let { transition: a, transitionEnd: o, ...s } = t, c = e.getDefaultTransition();
- a = a ? Jm(a, c) : c;
+ a = a ? qm(a, c) : c;
let l = a?.reduceMotion, u = a?.skipAnimations;
r && (a = r);
let d = [], f = i && e.animationState?.getState()[i], p = a?.path;
p && p.animateVisualElement(e, s, a, n, d);
for (let t in s) {
let r = e.getValue(t, e.latestValues[t] ?? null), i = s[t];
- if (i === void 0 || f && Ch(f, t)) continue;
+ if (i === void 0 || f && Sh(f, t)) continue;
let o = {
delay: n,
- ...Ym(a || {}, t)
+ ...Jm(a || {}, t)
};
u && (o.skipAnimations = !0);
let c = r.get();
if (c !== void 0 && !r.isAnimating() && !Array.isArray(i) && i === c && !o.velocity) {
- lf.update(() => r.set(i));
+ cf.update(() => r.set(i));
continue;
}
let p = !1;
- if (Sh && window.MotionHandoffAnimation) {
- let n = xh(e);
+ if (xh && window.MotionHandoffAnimation) {
+ let n = bh(e);
if (n) {
- let e = window.MotionHandoffAnimation(n, t, lf);
+ let e = window.MotionHandoffAnimation(n, t, cf);
e !== null && (o.startTime = e, p = !0);
}
}
- vh(e, t);
+ _h(e, t);
let m = l ?? e.shouldReduceMotion;
- r.start(rh(t, r, i, m && dh.has(t) ? { type: !1 } : o, e, p));
+ r.start(nh(t, r, i, m && uh.has(t) ? { type: !1 } : o, e, p));
let h = r.animation;
h && d.push(h);
}
if (o) {
- let t = () => lf.update(() => {
- o && hh(e, o);
+ let t = () => cf.update(() => {
+ o && mh(e, o);
});
d.length ? Promise.all(d).then(t) : t();
}
@@ -16387,13 +16388,13 @@ function wh(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.mjs
-function Th(e, t, n = {}) {
- let r = lh(e, t, uh(e, n.type)), i = n.transitionOverride || (r?.transition ?? (e.getDefaultTransition() || {})), a = () => Promise.all(r ? wh(e, r, n) : []), o = (r = 0) => {
+function wh(e, t, n = {}) {
+ let r = ch(e, t, lh(e, n.type)), i = n.transitionOverride || (r?.transition ?? (e.getDefaultTransition() || {})), a = () => Promise.all(r ? Ch(e, r, n) : []), o = (r = 0) => {
let { variantChildren: a } = e, { delayChildren: o = 0, staggerChildren: s, staggerDirection: c } = i, l = [];
return a?.forEach((e) => {
- e.notify("AnimationStart", t), l.push(Th(e, t, {
+ e.notify("AnimationStart", t), l.push(wh(e, t, {
...n,
- delay: r + (typeof o == "function" ? 0 : o) + Hm(a, e, o, s, c)
+ delay: r + (typeof o == "function" ? 0 : o) + Vm(a, e, o, s, c)
}).then(() => e.notify("AnimationComplete", t)));
}), Promise.all(l);
}, { when: s } = i;
@@ -16401,48 +16402,48 @@ function Th(e, t, n = {}) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/interfaces/visual-element.mjs
-function Eh(e, t, n = {}) {
- return e.notify("AnimationStart", t), (Array.isArray(t) ? Promise.all(t.map((t) => Th(e, t, n))) : typeof t == "string" ? Th(e, t, n) : Promise.all(wh(e, lh(e, t, n.custom), n))).then(() => {
+function Th(e, t, n = {}) {
+ return e.notify("AnimationStart", t), (Array.isArray(t) ? Promise.all(t.map((t) => wh(e, t, n))) : typeof t == "string" ? wh(e, t, n) : Promise.all(Ch(e, ch(e, t, n.custom), n))).then(() => {
e.notify("AnimationComplete", t);
});
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/types/auto.mjs
-var Dh = {
+var Eh = {
test: (e) => e === "auto",
parse: (e) => e
-}, Oh = (e) => (t) => t.test(e), kh = [
+}, Dh = (e) => (t) => t.test(e), Oh = [
Zu,
- pd,
+ G,
fd,
dd,
- hd,
md,
- Dh
-], Ah = (e) => kh.find(Oh(e));
+ pd,
+ Eh
+], kh = (e) => Oh.find(Dh(e));
//#endregion
//#region node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.mjs
-function jh(e) {
+function Ah(e) {
return typeof e == "number" ? e === 0 : e === null || e === "none" || e === "0" || uu(e);
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.mjs
-var Mh = /* @__PURE__ */ new Set([
+var jh = /* @__PURE__ */ new Set([
"auto",
"none",
"0"
]);
-function Nh(e, t, n) {
+function Mh(e, t, n) {
let r = 0, i;
for (; r < e.length && !i;) {
let t = e[r];
- typeof t == "string" && !Mh.has(t) && kd(t) && (i = e[r]), r++;
+ typeof t == "string" && !jh.has(t) && Od(t) && (i = e[r]), r++;
}
- if (i && n) for (let r of t) e[r] !== i && (e[r] = up(n, i));
+ if (i && n) for (let r of t) e[r] !== i && (e[r] = lp(n, i));
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.mjs
-var Ph = class extends Vp {
+var Nh = class extends Bp {
constructor(e, t, n, r, i) {
super(e, t, n, r, i, !0);
}
@@ -16463,31 +16464,31 @@ var Ph = class extends Vp {
for (let n = 0; n < e.length; n++) {
let r = e[n];
if (typeof r == "string" && (r = r.trim(), Ju(r))) {
- let i = oh(r, t.current);
+ let i = ah(r, t.current);
i !== void 0 && (e[n] = i), n === e.length - 1 && (this.finalKeyframe = r);
}
}
- if (this.resolveNoneKeyframes(), !dh.has(n) || e.length !== 2) return;
+ if (this.resolveNoneKeyframes(), !uh.has(n) || e.length !== 2) return;
let [r, i] = e;
if (typeof r == "number" && typeof i == "number") return;
- let a = Ah(r), o = Ah(i);
- if (Xu(r) !== Xu(i) && Mp[n]) this.needsMeasurement = !0;
+ let a = kh(r), o = kh(i);
+ if (Xu(r) !== Xu(i) && jp[n]) this.needsMeasurement = !0;
else if (a !== o) {
- if (Ep(a) && Ep(o)) for (let t = 0; t < e.length; t++) {
+ if (Tp(a) && Tp(o)) for (let t = 0; t < e.length; t++) {
let n = e[t];
typeof n == "string" && (e[t] = parseFloat(n));
}
- else Mp[n] && (this.needsMeasurement = !0);
+ else jp[n] && (this.needsMeasurement = !0);
}
}
resolveNoneKeyframes() {
let { unresolvedKeyframes: e, name: t } = this, n = [];
- for (let t = 0; t < e.length; t++) (e[t] === null || jh(e[t])) && n.push(t);
- n.length && Nh(e, n, t);
+ for (let t = 0; t < e.length; t++) (e[t] === null || Ah(e[t])) && n.push(t);
+ n.length && Mh(e, n, t);
}
measure() {
let { element: e, name: t } = this;
- return Mp[t](window.getComputedStyle(e.current), () => e.measureViewportBox());
+ return jp[t](window.getComputedStyle(e.current), () => e.measureViewportBox());
}
measureInitialState() {
let { element: e, unresolvedKeyframes: t, name: n } = this;
@@ -16505,19 +16506,19 @@ var Ph = class extends Vp {
e.getValue(t).set(n);
}), this.resolveNoneKeyframes();
}
-}, Fh = [
+}, Ph = [
"borderTopLeftRadius",
"borderTopRightRadius",
"borderBottomRightRadius",
"borderBottomLeftRadius"
-], Ih = /* @__PURE__ */ new Set([
+], Fh = /* @__PURE__ */ new Set([
"borderWidth",
"borderTopWidth",
"borderRightWidth",
"borderBottomWidth",
"borderLeftWidth",
"borderRadius",
- ...Fh,
+ ...Ph,
"width",
"maxWidth",
"height",
@@ -16561,70 +16562,70 @@ var Ph = class extends Vp {
]);
//#endregion
//#region node_modules/motion-dom/dist/es/animation/keyframes/utils/apply-px-defaults.mjs
-function Lh(e, t) {
- for (let n = 0; n < e.length; n++) typeof e[n] == "number" && Ih.has(t) && (e[n] = e[n] + "px");
+function Ih(e, t) {
+ for (let n = 0; n < e.length; n++) typeof e[n] == "number" && Fh.has(t) && (e[n] = e[n] + "px");
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/animate/effects.mjs
-var Rh = [];
+var Lh = [];
+function Rh(e) {
+ typeof e.test == "function" && e.read, zh(e), Lh.unshift(e);
+}
function zh(e) {
- typeof e.test == "function" && e.read, Bh(e), Rh.unshift(e);
+ au(Lh, e);
}
function Bh(e) {
- au(Rh, e);
+ return Lh.find((t) => t.test(e));
}
-function Vh(e) {
- return Rh.find((t) => t.test(e));
-}
-function Hh(e, t, n = {}, r) {
+function Vh(e, t, n = {}, r) {
let i = [], { velocity: a } = n, o = n.reduceMotion ?? r?.shouldReduceMotion;
for (let s in t) {
if (s === "transition" || s === "transitionEnd") continue;
let c = t[s];
if (c === void 0) continue;
let l = e(s), u = l.get();
- u !== void 0 && !l.isAnimating() && !Array.isArray(c) && c === u && !a ? lf.update(() => l.set(c)) : (l.start(rh(s, l, c, o && dh.has(s) ? { type: !1 } : n, r)), l.animation && i.push(l.animation));
+ u !== void 0 && !l.isAnimating() && !Array.isArray(c) && c === u && !a ? cf.update(() => l.set(c)) : (l.start(nh(s, l, c, o && uh.has(s) ? { type: !1 } : n, r)), l.animation && i.push(l.animation));
}
let { transitionEnd: s } = t;
if (s) {
- let t = () => lf.update(() => {
+ let t = () => cf.update(() => {
for (let t in s) e(t).set(s[t]);
});
i.length ? Promise.all(i).then(t) : t();
}
return i;
}
-function Uh(e, t, n, r, i) {
- return Hh((r) => {
+function Hh(e, t, n, r, i) {
+ return Vh((r) => {
let a = e.get(t, r);
if (!a) {
let o;
if (!i) {
let i = n[r];
- o = Wh(i) ?? e.read(t, r, i), `${r}`;
+ o = Uh(i) ?? e.read(t, r, i), `${r}`;
}
- a = qm(o, { owner: i }), e(t, { [r]: a });
+ a = Km(o, { owner: i }), e(t, { [r]: a });
}
return a;
}, n, r, i);
}
-function Wh(e) {
+function Uh(e) {
let t = Array.isArray(e) ? e[0] : void 0;
return t === null ? void 0 : t;
}
//#endregion
//#region node_modules/motion-dom/dist/es/utils/is-html-element.mjs
-function Gh(e) {
+function Wh(e) {
return lu(e) && "offsetHeight" in e && !("ownerSVGElement" in e);
}
//#endregion
//#region node_modules/motion-dom/dist/es/utils/is-svg-element.mjs
-function Kh(e) {
+function Gh(e) {
return lu(e) && "ownerSVGElement" in e;
}
//#endregion
//#region node_modules/motion-dom/dist/es/utils/resolve-elements.mjs
-function qh(e, t, n) {
+function Kh(e, t, n) {
if (e == null) return [];
if (e instanceof EventTarget) return [e];
if (typeof e == "string") {
@@ -16637,8 +16638,8 @@ function qh(e, t, n) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/effects/MotionValueState.mjs
-var Jh = class {
- constructor(e = lf.render) {
+var qh = class {
+ constructor(e = cf.render) {
this.step = e, this.values = /* @__PURE__ */ new Map(), this.pending = [], this.numPending = 0, this.flush = () => {
let { pending: e, numPending: t } = this;
this.numPending = 0;
@@ -16682,10 +16683,10 @@ var Jh = class {
};
//#endregion
//#region node_modules/motion-dom/dist/es/effects/utils/create-effect.mjs
-function Yh(e, { step: t, ...n } = {}) {
+function Jh(e, { step: t, ...n } = {}) {
let r = /* @__PURE__ */ new WeakMap();
return Object.assign((n, i) => {
- let a = r.get(n) ?? new Jh(t);
+ let a = r.get(n) ?? new qh(t);
r.set(n, a);
let o = [];
for (let t in i) {
@@ -16703,63 +16704,63 @@ function Yh(e, { step: t, ...n } = {}) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/effects/style/transform.mjs
-var Xh = {};
-function Zh(e) {
+var Yh = {};
+function Xh(e) {
let t = "", { transformKeys: n = [], transformValues: r = {} } = e;
for (let e = 0; e < n.length; e++) {
let i = n[e], a = r[i].getCurrent();
- a !== void 0 && (typeof a == "number" ? a : parseFloat(a)) !== +!!i.startsWith("scale") && (t += (t && " ") + (Xh[i] || (Xh[i] = (gm[i] || i) + "(")) + hm(a, ap[i]) + ")");
+ a !== void 0 && (typeof a == "number" ? a : parseFloat(a)) !== +!!i.startsWith("scale") && (t += (t && " ") + (Yh[i] || (Yh[i] = (hm[i] || i) + "(")) + mm(a, ip[i]) + ")");
}
let i = e.get("pathRotation")?.get();
- return i && (t += (t && " ") + "rotate(" + hm(i, ap.pathRotation) + ")"), t || "none";
+ return i && (t += (t && " ") + "rotate(" + mm(i, ip.pathRotation) + ")"), t || "none";
}
//#endregion
//#region node_modules/motion-dom/dist/es/effects/style/index.mjs
-var Qh = /* @__PURE__ */ new Set([
+var Zh = /* @__PURE__ */ new Set([
"originX",
"originY",
"originZ"
-]), $h = (e, t) => hm(e.get(t)?.get(), op[t]), eg = (e, t, n, r) => {
+]), Qh = (e, t) => mm(e.get(t)?.get(), ap[t]), $h = (e, t, n, r) => {
let i, a;
- if (Tp.has(n)) {
+ if (wp.has(n)) {
if (n !== "pathRotation") {
let e = t.transformKeys ??= [];
- (t.transformValues ??= {})[n] = r, e.includes(n) || (e.push(n), e.sort((e, t) => wp.indexOf(e) - wp.indexOf(t)));
+ (t.transformValues ??= {})[n] = r, e.includes(n) || (e.push(n), e.sort((e, t) => Cp.indexOf(e) - Cp.indexOf(t)));
}
- t.get("transform") || (!Gh(e) && !t.get("transformBox") && eg(e, t, "transformBox", new Km("fill-box")), t.set("transform", new Km("none"), () => {
- ym.get(e)?.check(), e.style.transform = Zh(t);
+ t.get("transform") || (!Wh(e) && !t.get("transformBox") && $h(e, t, "transformBox", new Gm("fill-box")), t.set("transform", new Gm("none"), () => {
+ vm.get(e)?.check(), e.style.transform = Xh(t);
})), a = t.get("transform");
- } else Qh.has(n) ? (t.get("transformOrigin") || t.set("transformOrigin", new Km(""), () => {
- let n = $h(t, "originX") ?? "50%", r = $h(t, "originY") ?? "50%", i = $h(t, "originZ") ?? 0;
+ } else Zh.has(n) ? (t.get("transformOrigin") || t.set("transformOrigin", new Gm(""), () => {
+ let n = Qh(t, "originX") ?? "50%", r = Qh(t, "originY") ?? "50%", i = Qh(t, "originZ") ?? 0;
e.style.transformOrigin = `${n} ${r} ${i}`;
- }), a = t.get("transformOrigin")) : i = Hp(n) ? () => {
+ }), a = t.get("transformOrigin")) : i = Vp(n) ? () => {
e.style.setProperty(n, r.getCurrent());
} : () => {
- e.style[n] = hm(r.getCurrent(), op[n]);
+ e.style[n] = mm(r.getCurrent(), ap[n]);
};
return t.set(n, r, i, a);
-}, tg = (e) => Gh(e) || Kh(e), ng = (e, t) => {
- if (Tp.has(t)) return Sp(e, t);
- let n = getComputedStyle(e), r = Hp(t) ? n.getPropertyValue(t) : n[t];
+}, eg = (e) => Wh(e) || Gh(e), tg = (e, t) => {
+ if (wp.has(t)) return xp(e, t);
+ let n = getComputedStyle(e), r = Vp(t) ? n.getPropertyValue(t) : n[t];
return typeof r == "string" && r.trim() || 0;
-}, rg = /*@__PURE__*/ Yh(eg, {
- test: tg,
- read: ng
+}, ng = /*@__PURE__*/ Jh($h, {
+ test: eg,
+ read: tg
});
//#endregion
//#region node_modules/motion-dom/dist/es/render/html/utils/build-styles.mjs
-function ig(e, t, n) {
+function rg(e, t, n) {
let { style: r, vars: i, transformOrigin: a } = e, o = !1, s = !1;
for (let e in t) {
let n = t[e];
- if (Tp.has(e)) o = !0;
+ if (wp.has(e)) o = !0;
else if (Ku(e)) i[e] = n;
else {
- let t = hm(n, op[e]);
+ let t = mm(n, ap[e]);
e.startsWith("origin") ? (s = !0, a[e] = t) : r[e] = t;
}
}
- if (t.transform || (o || n ? r.transform = vm(t, e.transform, n) : r.transform &&= "none"), s) {
+ if (t.transform || (o || n ? r.transform = _m(t, e.transform, n) : r.transform &&= "none"), s) {
let { originX: e = "50%", originY: t = "50%", originZ: n = 0 } = a;
r.transformOrigin = `${e} ${t} ${n}`;
}
@@ -16780,7 +16781,7 @@ function nee(e, t, n = 1, r = 0, i = !0) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.mjs
-var ag = [
+var ig = [
"transform",
"opacity",
"clipPath",
@@ -16790,14 +16791,14 @@ var ag = [
"offsetRotate",
"offsetAnchor"
];
-function og(e, { attrX: t, attrY: n, attrScale: r, pathLength: i, pathSpacing: a = 1, pathOffset: o = 0, ...s }, c, l, u) {
- if (ig(e, s, l), c) {
+function ag(e, { attrX: t, attrY: n, attrScale: r, pathLength: i, pathSpacing: a = 1, pathOffset: o = 0, ...s }, c, l, u) {
+ if (rg(e, s, l), c) {
e.style.viewBox && (e.attrs.viewBox = e.style.viewBox);
return;
}
e.attrs = e.style, e.style = {};
let { attrs: d, style: f } = e;
- for (let e of ag) d[e] !== void 0 && (f[e] = d[e], delete d[e]);
+ for (let e of ig) d[e] !== void 0 && (f[e] = d[e], delete d[e]);
(f.transform || d.transformOrigin) && (f.transformOrigin = d.transformOrigin ?? "50% 50%", delete d.transformOrigin), f.transform && (f.transformBox = u?.transformBox ?? "fill-box", delete d.transformBox), t !== void 0 && (d.x = t), n !== void 0 && (d.y = n), r !== void 0 && (d.scale = r), i !== void 0 && nee(d, i, a, o, !1);
}
//#endregion
@@ -16807,13 +16808,13 @@ function ree(e, t) {
let n = Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e), t) || Object.getOwnPropertyDescriptor(e, t);
return n && typeof n.set == "function";
}
-var sg = (e, t, n, r, i = n) => {
+var og = (e, t, n, r, i = n) => {
let a = ree(e, i);
- !a && (i.startsWith("data") || i.startsWith("aria")) && (i = yh(i));
- let o = op[n] || op[i], s = a ? () => {
- e[i] = hm(r.get(), op[n]);
+ !a && (i.startsWith("data") || i.startsWith("aria")) && (i = vh(i));
+ let o = ap[n] || ap[i], s = a ? () => {
+ e[i] = mm(r.get(), ap[n]);
} : () => {
- let t = hm(r.get(), o);
+ let t = mm(r.get(), o);
t == null ? e.removeAttribute(i) : e.setAttribute(i, String(t));
};
return t.set(n, r, s);
@@ -16821,24 +16822,24 @@ var sg = (e, t, n, r, i = n) => {
//#endregion
//#region node_modules/motion-dom/dist/es/effects/svg/index.mjs
function iee(e, t, n, r) {
- return lf.render(() => e.setAttribute("pathLength", "1")), n === "pathOffset" ? t.set(n, r, () => {
+ return cf.render(() => e.setAttribute("pathLength", "1")), n === "pathOffset" ? t.set(n, r, () => {
let t = r.get();
e.setAttribute("stroke-dashoffset", `${-t}`);
- }) : (t.get("stroke-dasharray") || t.set("stroke-dasharray", new Km("1 1"), () => {
+ }) : (t.get("stroke-dasharray") || t.set("stroke-dasharray", new Gm("1 1"), () => {
let n = t.get("pathLength")?.get() ?? 1, r = t.get("pathSpacing")?.get();
e.setAttribute("stroke-dasharray", `${n} ${r ?? 1 - Number(n)}`);
}), t.set(n, r, void 0, t.get("stroke-dasharray")));
}
-var aee = /*@__PURE__*/ Yh((e, t, n, r) => n.startsWith("path") ? iee(e, t, n, r) : n.startsWith("attr") ? sg(e, t, n, r, cg(n)) : (Tp.has(n) || Qh.has(n) || Hp(n) || n in e.style ? eg : sg)(e, t, n, r), {
- test: Kh,
- read: (e, t) => Tp.has(t) ? op[t]?.default || 0 : Hp(t) || ag.includes(t) ? ng(e, t) || e.getAttribute(yh(t)) || 0 : (t = cg(t), e.getAttribute(yh(t)) ?? e.getAttribute(t) ?? void 0)
+var aee = /*@__PURE__*/ Jh((e, t, n, r) => n.startsWith("path") ? iee(e, t, n, r) : n.startsWith("attr") ? og(e, t, n, r, sg(n)) : (wp.has(n) || Zh.has(n) || Vp(n) || n in e.style ? $h : og)(e, t, n, r), {
+ test: Gh,
+ read: (e, t) => wp.has(t) ? ap[t]?.default || 0 : Vp(t) || ig.includes(t) ? tg(e, t) || e.getAttribute(vh(t)) || 0 : (t = sg(t), e.getAttribute(vh(t)) ?? e.getAttribute(t) ?? void 0)
});
-function cg(e) {
+function sg(e) {
return e.replace(/^attr([A-Z])/, (e, t) => t.toLowerCase());
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/geometry/conversion.mjs
-function lg({ top: e, left: t, right: n, bottom: r }) {
+function cg({ top: e, left: t, right: n, bottom: r }) {
return {
x: {
min: t,
@@ -16876,37 +16877,37 @@ function see(e, t) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/utils/has-transform.mjs
-function ug(e) {
+function lg(e) {
return e === void 0 || e === 1;
}
-function dg({ scale: e, scaleX: t, scaleY: n }) {
- return !ug(e) || !ug(t) || !ug(n);
+function ug({ scale: e, scaleX: t, scaleY: n }) {
+ return !lg(e) || !lg(t) || !lg(n);
+}
+function dg(e) {
+ return ug(e) || fg(e) || e.z || e.rotate || e.rotateX || e.rotateY || e.skewX || e.skewY;
}
function fg(e) {
- return dg(e) || pg(e) || e.z || e.rotate || e.rotateX || e.rotateY || e.skewX || e.skewY;
+ return pg(e.x) || pg(e.y);
}
function pg(e) {
- return mg(e.x) || mg(e.y);
-}
-function mg(e) {
return e && e !== "0%";
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/geometry/delta-apply.mjs
-function hg(e, t, n) {
+function mg(e, t, n) {
return n + t * (e - n);
}
-function gg(e, t, n, r, i) {
- return i !== void 0 && (e = hg(e, i, r)), hg(e, n, r) + t;
+function hg(e, t, n, r, i) {
+ return i !== void 0 && (e = mg(e, i, r)), mg(e, n, r) + t;
}
-function _g(e, t = 0, n = 1, r, i) {
- e.min = gg(e.min, t, n, r, i), e.max = gg(e.max, t, n, r, i);
+function gg(e, t = 0, n = 1, r, i) {
+ e.min = hg(e.min, t, n, r, i), e.max = hg(e.max, t, n, r, i);
}
-function vg(e, { x: t, y: n }) {
- _g(e.x, t.translate, t.scale, t.originPoint), _g(e.y, n.translate, n.scale, n.originPoint);
+function _g(e, { x: t, y: n }) {
+ gg(e.x, t.translate, t.scale, t.originPoint), gg(e.y, n.translate, n.scale, n.originPoint);
}
-var yg = .999999999999, bg = 1.0000000000001;
-function xg(e, t, n, r = !1) {
+var vg = .999999999999, yg = 1.0000000000001;
+function bg(e, t, n, r = !1) {
let i = n.length;
if (!i) return;
t.x = t.y = 1;
@@ -16914,37 +16915,37 @@ function xg(e, t, n, r = !1) {
for (let s = 0; s < i; s++) {
a = n[s], o = a.projectionDelta;
let { visualElement: i } = a.options;
- i && i.props.style && i.props.style.display === "contents" || (r && a.options.layoutScroll && a.scroll && a !== a.root && (Sg(e.x, -a.scroll.offset.x), Sg(e.y, -a.scroll.offset.y)), o && (t.x *= o.x.scale, t.y *= o.y.scale, vg(e, o)), r && fg(a.latestValues) && Tg(e, a.latestValues, a.layout?.layoutBox));
+ i && i.props.style && i.props.style.display === "contents" || (r && a.options.layoutScroll && a.scroll && a !== a.root && (xg(e.x, -a.scroll.offset.x), xg(e.y, -a.scroll.offset.y)), o && (t.x *= o.x.scale, t.y *= o.y.scale, _g(e, o)), r && dg(a.latestValues) && wg(e, a.latestValues, a.layout?.layoutBox));
}
- t.x < bg && t.x > yg && (t.x = 1), t.y < bg && t.y > yg && (t.y = 1);
+ t.x < yg && t.x > vg && (t.x = 1), t.y < yg && t.y > vg && (t.y = 1);
}
-function Sg(e, t) {
+function xg(e, t) {
e.min += t, e.max += t;
}
-function Cg(e, t, n, r, i = .5) {
- _g(e, t, n, Vd(e.min, e.max, i), r);
+function Sg(e, t, n, r, i = .5) {
+ gg(e, t, n, Bd(e.min, e.max, i), r);
}
-function wg(e, t) {
+function Cg(e, t) {
return typeof e == "string" ? parseFloat(e) / 100 * (t.max - t.min) : e;
}
-function Tg(e, t, n) {
+function wg(e, t, n) {
let r = n ?? e;
- Cg(e.x, wg(t.x, r.x), t.scaleX, t.scale, t.originX), Cg(e.y, wg(t.y, r.y), t.scaleY, t.scale, t.originY);
+ Sg(e.x, Cg(t.x, r.x), t.scaleX, t.scale, t.originX), Sg(e.y, Cg(t.y, r.y), t.scaleY, t.scale, t.originY);
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/utils/measure.mjs
-function Eg(e, t) {
- return lg(see(e.getBoundingClientRect(), t));
+function Tg(e, t) {
+ return cg(see(e.getBoundingClientRect(), t));
}
-function Dg(e, t, n) {
- let r = Eg(e, n), { scroll: i } = t;
- return i && (Sg(r.x, i.offset.x), Sg(r.y, i.offset.y)), r;
+function Eg(e, t, n) {
+ let r = Tg(e, n), { scroll: i } = t;
+ return i && (xg(r.x, i.offset.x), xg(r.y, i.offset.y)), r;
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/animate/element.mjs
-var Og = {}, kg = (e) => Kh(e) ? aee : rg, Ag = class {
+var Dg = {}, Og = (e) => Gh(e) ? aee : ng, kg = class {
constructor(e, t) {
- this.effect = e, this.current = t, this.KeyframeResolver = Ph;
+ this.effect = e, this.current = t, this.KeyframeResolver = Nh;
}
getValue(e) {
return this.effect.get(this.current, e);
@@ -16956,20 +16957,20 @@ var Og = {}, kg = (e) => Kh(e) ? aee : rg, Ag = class {
this.effect.flush(this.current);
}
measureViewportBox() {
- return Eg(this.current);
+ return Tg(this.current);
}
getProps() {
- return Og;
+ return Dg;
}
};
-function jg(e, t, n, r) {
- if (r) return Hh((e) => r.getValue(e, null), t, n, r);
- let i = kg(e);
- return Uh(i, e, t, n, new Ag(i, e));
+function Ag(e, t, n, r) {
+ if (r) return Vh((e) => r.getValue(e, null), t, n, r);
+ let i = Og(e);
+ return Hh(i, e, t, n, new kg(i, e));
}
//#endregion
//#region node_modules/motion-dom/dist/es/effects/prop/index.mjs
-var Mg = /*@__PURE__*/ Yh((e, t, n, r) => t.set(n, r, () => {
+var jg = /*@__PURE__*/ Jh((e, t, n, r) => t.set(n, r, () => {
e[n] = r.get();
}), {
test: (e) => lu(e),
@@ -16977,26 +16978,26 @@ var Mg = /*@__PURE__*/ Yh((e, t, n, r) => t.set(n, r, () => {
let n = e[t];
return typeof n == "string" || typeof n == "number" ? n : void 0;
}
-}), { schedule: Ng, cancel: cee } = /* @__PURE__ */ cf(queueMicrotask, !1), Pg = {
+}), { schedule: Mg, cancel: cee } = /* @__PURE__ */ sf(queueMicrotask, !1), Ng = {
x: !1,
y: !1
};
-function Fg() {
- return Pg.x || Pg.y;
+function Pg() {
+ return Ng.x || Ng.y;
}
//#endregion
//#region node_modules/motion-dom/dist/es/gestures/drag/state/set-active.mjs
function lee(e) {
- return e === "x" || e === "y" ? Pg[e] ? null : (Pg[e] = !0, () => {
- Pg[e] = !1;
- }) : Pg.x || Pg.y ? null : (Pg.x = Pg.y = !0, () => {
- Pg.x = Pg.y = !1;
+ return e === "x" || e === "y" ? Ng[e] ? null : (Ng[e] = !0, () => {
+ Ng[e] = !1;
+ }) : Ng.x || Ng.y ? null : (Ng.x = Ng.y = !0, () => {
+ Ng.x = Ng.y = !1;
});
}
//#endregion
//#region node_modules/motion-dom/dist/es/gestures/utils/setup.mjs
-function Ig(e, t) {
- let n = qh(e), r = new AbortController();
+function Fg(e, t) {
+ let n = Kh(e), r = new AbortController();
return [
n,
{
@@ -17010,10 +17011,10 @@ function Ig(e, t) {
//#endregion
//#region node_modules/motion-dom/dist/es/gestures/hover.mjs
function uee(e) {
- return !(e.pointerType === "touch" || Fg());
+ return !(e.pointerType === "touch" || Pg());
}
function dee(e, t, n = {}) {
- let [r, i, a] = Ig(e, n);
+ let [r, i, a] = Fg(e, n);
return r.forEach((e) => {
let n = !1, r = !1, a, o = () => {
e.removeEventListener("pointerleave", u);
@@ -17036,7 +17037,7 @@ function dee(e, t, n = {}) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.mjs
-var Lg = (e, t) => t ? e === t || Lg(e, t.parentElement) : !1, Rg = (e) => e.pointerType === "mouse" ? typeof e.button != "number" || e.button <= 0 : e.isPrimary !== !1, fee = /* @__PURE__ */ new Set([
+var Ig = (e, t) => t ? e === t || Ig(e, t.parentElement) : !1, Lg = (e) => e.pointerType === "mouse" ? typeof e.button != "number" || e.button <= 0 : e.isPrimary !== !1, fee = /* @__PURE__ */ new Set([
"BUTTON",
"INPUT",
"SELECT",
@@ -17056,15 +17057,15 @@ function hee(e) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/gestures/press/utils/state.mjs
-var zg = /* @__PURE__ */ new WeakSet();
+var Rg = /* @__PURE__ */ new WeakSet();
//#endregion
//#region node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.mjs
-function Bg(e) {
+function zg(e) {
return (t) => {
t.key === "Enter" && e(t);
};
}
-function Vg(e, t) {
+function Bg(e, t) {
e.dispatchEvent(new PointerEvent("pointer" + t, {
isPrimary: !0,
bubbles: !0
@@ -17073,54 +17074,54 @@ function Vg(e, t) {
var gee = (e, t) => {
let n = e.currentTarget;
if (!n) return;
- let r = Bg(() => {
- if (zg.has(n)) return;
- Vg(n, "down");
- let e = Bg(() => {
- Vg(n, "up");
+ let r = zg(() => {
+ if (Rg.has(n)) return;
+ Bg(n, "down");
+ let e = zg(() => {
+ Bg(n, "up");
});
- n.addEventListener("keyup", e, t), n.addEventListener("blur", () => Vg(n, "cancel"), t);
+ n.addEventListener("keyup", e, t), n.addEventListener("blur", () => Bg(n, "cancel"), t);
});
n.addEventListener("keydown", r, t), n.addEventListener("blur", () => n.removeEventListener("keydown", r), t);
};
//#endregion
//#region node_modules/motion-dom/dist/es/gestures/press/index.mjs
-function Hg(e) {
- return Rg(e) && !Fg();
+function Vg(e) {
+ return Lg(e) && !Pg();
}
-var Ug = /* @__PURE__ */ new WeakSet();
+var Hg = /* @__PURE__ */ new WeakSet();
function _ee(e, t, n = {}) {
- let [r, i, a] = Ig(e, n), o = (e) => {
+ let [r, i, a] = Fg(e, n), o = (e) => {
let r = e.currentTarget;
- if (!Hg(e) || Ug.has(e)) return;
- zg.add(r), n.stopPropagation && Ug.add(e);
+ if (!Vg(e) || Hg.has(e)) return;
+ Rg.add(r), n.stopPropagation && Hg.add(e);
let a = t(r, e), o = {
...i,
capture: !0
}, s = (e, t) => {
- window.removeEventListener("pointerup", c, o), window.removeEventListener("pointercancel", l, o), zg.has(r) && zg.delete(r), Hg(e) && typeof a == "function" && a(e, { success: t });
+ window.removeEventListener("pointerup", c, o), window.removeEventListener("pointercancel", l, o), Rg.has(r) && Rg.delete(r), Vg(e) && typeof a == "function" && a(e, { success: t });
}, c = (e) => {
- s(e, r === window || r === document || n.useGlobalTarget || Lg(r, e.target));
+ s(e, r === window || r === document || n.useGlobalTarget || Ig(r, e.target));
}, l = (e) => {
s(e, !1);
};
window.addEventListener("pointerup", c, o), window.addEventListener("pointercancel", l, o);
};
return r.forEach((e) => {
- (n.useGlobalTarget ? window : e).addEventListener("pointerdown", o, i), Gh(e) && (e.addEventListener("focus", (e) => gee(e, i)), !pee(e) && !e.hasAttribute("tabindex") && (e.tabIndex = 0));
+ (n.useGlobalTarget ? window : e).addEventListener("pointerdown", o, i), Wh(e) && (e.addEventListener("focus", (e) => gee(e, i)), !pee(e) && !e.hasAttribute("tabindex") && (e.tabIndex = 0));
}), a;
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/dom/style-computed.mjs
-function Wg(e, t) {
+function Ug(e, t) {
let n = window.getComputedStyle(e);
- return Hp(t) ? n.getPropertyValue(t) : n[t];
+ return Vp(t) ? n.getPropertyValue(t) : n[t];
}
//#endregion
//#region node_modules/motion-dom/dist/es/resize/handle-element.mjs
-var Gg = /* @__PURE__ */ new WeakMap(), Kg, qg = (e, t, n) => (r, i) => i && i[0] ? i[0][e + "Size"] : Kh(r) && "getBBox" in r ? r.getBBox()[t] : r[n], vee = /*@__PURE__*/ qg("inline", "width", "offsetWidth"), yee = /*@__PURE__*/ qg("block", "height", "offsetHeight");
+var Wg = /* @__PURE__ */ new WeakMap(), Gg, Kg = (e, t, n) => (r, i) => i && i[0] ? i[0][e + "Size"] : Gh(r) && "getBBox" in r ? r.getBBox()[t] : r[n], vee = /*@__PURE__*/ Kg("inline", "width", "offsetWidth"), yee = /*@__PURE__*/ Kg("block", "height", "offsetHeight");
function bee({ target: e, borderBoxSize: t }) {
- Gg.get(e)?.forEach((n) => {
+ Wg.get(e)?.forEach((n) => {
n(e, {
get width() {
return vee(e, t);
@@ -17135,26 +17136,26 @@ function xee(e) {
e.forEach(bee);
}
function See() {
- typeof ResizeObserver < "u" && (Kg = new ResizeObserver(xee));
+ typeof ResizeObserver < "u" && (Gg = new ResizeObserver(xee));
}
function Cee(e, t) {
- Kg || See();
- let n = qh(e);
+ Gg || See();
+ let n = Kh(e);
return n.forEach((e) => {
- let n = Gg.get(e);
- n || (n = /* @__PURE__ */ new Set(), Gg.set(e, n)), n.add(t), Kg?.observe(e);
+ let n = Wg.get(e);
+ n || (n = /* @__PURE__ */ new Set(), Wg.set(e, n)), n.add(t), Gg?.observe(e);
}), () => {
n.forEach((e) => {
- let n = Gg.get(e);
- n?.delete(t), n?.size || Kg?.unobserve(e);
+ let n = Wg.get(e);
+ n?.delete(t), n?.size || Gg?.unobserve(e);
});
};
}
//#endregion
//#region node_modules/motion-dom/dist/es/resize/handle-window.mjs
-var Jg = /* @__PURE__ */ new Set(), Yg;
+var qg = /* @__PURE__ */ new Set(), Jg;
function wee() {
- Yg = () => {
+ Jg = () => {
let e = {
get width() {
return window.innerWidth;
@@ -17163,60 +17164,60 @@ function wee() {
return window.innerHeight;
}
};
- Jg.forEach((t) => t(e));
- }, window.addEventListener("resize", Yg);
+ qg.forEach((t) => t(e));
+ }, window.addEventListener("resize", Jg);
}
function Tee(e) {
- return Jg.add(e), Yg || wee(), () => {
- Jg.delete(e), !Jg.size && typeof Yg == "function" && (window.removeEventListener("resize", Yg), Yg = void 0);
+ return qg.add(e), Jg || wee(), () => {
+ qg.delete(e), !qg.size && typeof Jg == "function" && (window.removeEventListener("resize", Jg), Jg = void 0);
};
}
//#endregion
//#region node_modules/motion-dom/dist/es/resize/index.mjs
-function Xg(e, t) {
+function Yg(e, t) {
return typeof e == "function" ? Tee(e) : Cee(e, t);
}
//#endregion
//#region node_modules/motion-dom/dist/es/stats/buffer.mjs
-var Zg = {
+var Xg = {
value: null,
addProjectionMetrics: null
};
//#endregion
//#region node_modules/motion-dom/dist/es/utils/is-svg-svg-element.mjs
function Eee(e) {
- return Kh(e) && e.tagName === "svg";
+ return Gh(e) && e.tagName === "svg";
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/utils/as-number.mjs
-var Qg = (e) => typeof e == "number" ? e : parseFloat(e), $g = () => ({
+var Zg = (e) => typeof e == "number" ? e : parseFloat(e), Qg = () => ({
translate: 0,
scale: 1,
origin: 0,
originPoint: 0
+}), $g = () => ({
+ x: Qg(),
+ y: Qg()
}), e_ = () => ({
- x: $g(),
- y: $g()
-}), t_ = () => ({
min: 0,
max: 0
-}), n_ = () => ({
- x: t_(),
- y: t_()
-}), r_ = /* @__PURE__ */ new WeakMap();
+}), t_ = () => ({
+ x: e_(),
+ y: e_()
+}), n_ = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/is-animation-controls.mjs
-function i_(e) {
+function r_(e) {
return typeof e == "object" && !!e && typeof e.start == "function";
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/is-variant-label.mjs
-function a_(e) {
+function i_(e) {
return typeof e == "string" || Array.isArray(e);
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/variant-props.mjs
-var o_ = [
+var a_ = [
"animate",
"whileInView",
"whileFocus",
@@ -17224,31 +17225,31 @@ var o_ = [
"whileTap",
"whileDrag",
"exit"
-], s_ = ["initial", ...o_];
+], o_ = ["initial", ...a_];
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.mjs
-function c_(e) {
- if (i_(e.animate)) return !0;
- for (let t = 0; t < s_.length; t++) if (a_(e[s_[t]])) return !0;
+function s_(e) {
+ if (r_(e.animate)) return !0;
+ for (let t = 0; t < o_.length; t++) if (i_(e[o_[t]])) return !0;
return !1;
}
-function l_(e) {
- return !!(c_(e) || e.variants);
+function c_(e) {
+ return !!(s_(e) || e.variants);
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/motion-values.mjs
function Dee(e, t, n) {
for (let r in t) {
let i = t[r], a = n[r];
- if (gh(i)) e.addValue(r, i);
- else if (gh(a)) e.addValue(r, qm(i, { owner: e }));
+ if (hh(i)) e.addValue(r, i);
+ else if (hh(a)) e.addValue(r, Km(i, { owner: e }));
else if (a !== i) {
if (e.hasValue(r)) {
let t = e.getValue(r);
t.liveStyle === !0 ? t.jump(i) : t.hasAnimated || t.set(i);
} else {
let t = e.getStaticValue(r);
- e.addValue(r, qm(t === void 0 ? i : t, { owner: e }));
+ e.addValue(r, Km(t === void 0 ? i : t, { owner: e }));
}
}
}
@@ -17257,18 +17258,18 @@ function Dee(e, t, n) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/reduced-motion/state.mjs
-var u_ = { current: null }, d_ = { current: !1 }, Oee = typeof window < "u";
-function f_() {
- if (d_.current = !0, Oee) {
+var l_ = { current: null }, u_ = { current: !1 }, Oee = typeof window < "u";
+function d_() {
+ if (u_.current = !0, Oee) {
if (window.matchMedia) {
- let e = window.matchMedia("(prefers-reduced-motion)"), t = () => u_.current = e.matches;
+ let e = window.matchMedia("(prefers-reduced-motion)"), t = () => l_.current = e.matches;
e.addEventListener("change", t), t();
- } else u_.current = !1;
+ } else l_.current = !1;
}
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/VisualElement.mjs
-var p_ = [
+var f_ = [
"AnimationStart",
"AnimationComplete",
"Update",
@@ -17276,35 +17277,35 @@ var p_ = [
"LayoutMeasure",
"LayoutAnimationStart",
"LayoutAnimationComplete"
-], m_ = {};
-function h_(e) {
- m_ = e;
+], p_ = {};
+function m_(e) {
+ p_ = e;
}
function kee() {
- return m_;
+ return p_;
}
var Aee = class {
scrapeMotionValuesFromProps(e, t, n) {
return {};
}
constructor({ parent: e, props: t, presenceContext: n, reducedMotionConfig: r, skipAnimations: i, blockInitialAnimation: a, visualState: o }, s = {}) {
- this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.shouldSkipAnimations = !1, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver = Vp, this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.hasBeenMounted = !1, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
+ this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.shouldSkipAnimations = !1, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver = Bp, this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.hasBeenMounted = !1, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection));
}, this.renderScheduledAt = 0, this.scheduleRender = () => {
let e = Uu.now();
- this.renderScheduledAt < e && (this.renderScheduledAt = e, lf.render(this.render, !1, !0));
+ this.renderScheduledAt < e && (this.renderScheduledAt = e, cf.render(this.render, !1, !0));
};
let { latestValues: c, renderState: l } = o;
- this.latestValues = c, this.baseTarget = { ...c }, this.initialValues = t.initial ? { ...c } : {}, this.renderState = l, this.parent = e, this.props = t, this.presenceContext = n, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = r, this.skipAnimationsConfig = i, this.options = s, this.blockInitialAnimation = !!a, this.isControllingVariants = c_(t), this.isVariantNode = l_(t), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
+ this.latestValues = c, this.baseTarget = { ...c }, this.initialValues = t.initial ? { ...c } : {}, this.renderState = l, this.parent = e, this.props = t, this.presenceContext = n, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = r, this.skipAnimationsConfig = i, this.options = s, this.blockInitialAnimation = !!a, this.isControllingVariants = s_(t), this.isVariantNode = c_(t), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
let { willChange: u, ...d } = this.scrapeMotionValuesFromProps(t, {}, this);
for (let e in d) {
let t = d[e];
- c[e] !== void 0 && gh(t) && t.set(c[e]);
+ c[e] !== void 0 && hh(t) && t.set(c[e]);
}
}
mount(e) {
if (this.hasBeenMounted) for (let e in this.initialValues) this.values.get(e)?.jump(this.initialValues[e]), this.latestValues[e] = this.initialValues[e];
- if (this.current = e, r_.set(e, this), this.projection && !this.projection.instance && this.projection.mount(e), this.isVariantNode && !this.isControllingVariants) {
+ if (this.current = e, n_.set(e, this), this.projection && !this.projection.instance && this.projection.mount(e), this.isVariantNode && !this.isControllingVariants) {
let e = this;
do
e = e.props.inherit !== !1 && e.parent;
@@ -17314,10 +17315,10 @@ var Aee = class {
t.add(this), this.removeFromVariantTree = () => t.delete(this);
}
}
- this.values.forEach((e, t) => this.bindToMotionValue(t, e)), this.reducedMotionConfig === "never" ? this.shouldReduceMotion = !1 : this.reducedMotionConfig === "always" ? this.shouldReduceMotion = !0 : (d_.current || f_(), this.shouldReduceMotion = u_.current), this.shouldSkipAnimations = this.skipAnimationsConfig ?? !1, this.parent?.addChild(this), this.update(this.props, this.presenceContext), this.hasBeenMounted = !0;
+ this.values.forEach((e, t) => this.bindToMotionValue(t, e)), this.reducedMotionConfig === "never" ? this.shouldReduceMotion = !1 : this.reducedMotionConfig === "always" ? this.shouldReduceMotion = !0 : (u_.current || d_(), this.shouldReduceMotion = l_.current), this.shouldSkipAnimations = this.skipAnimationsConfig ?? !1, this.parent?.addChild(this), this.update(this.props, this.presenceContext), this.hasBeenMounted = !0;
}
unmount() {
- this.projection && this.projection.unmount(), uf(this.notifyUpdate), uf(this.render), this.valueSubscriptions.forEach((e) => e()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent?.removeChild(this);
+ this.projection && this.projection.unmount(), lf(this.notifyUpdate), lf(this.render), this.valueSubscriptions.forEach((e) => e()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent?.removeChild(this);
for (let e in this.events) this.events[e].clear();
for (let e in this.features) {
let t = this.features[e];
@@ -17332,8 +17333,8 @@ var Aee = class {
this.children.delete(e), this.enteringChildren && this.enteringChildren.delete(e);
}
bindToMotionValue(e, t) {
- if (this.valueSubscriptions.has(e) && this.valueSubscriptions.get(e)(), t.accelerate && lm.has(e) && this.current instanceof HTMLElement) {
- let { factory: n, keyframes: r, times: i, ease: a, duration: o } = t.accelerate, s = new em({
+ if (this.valueSubscriptions.has(e) && this.valueSubscriptions.get(e)(), t.accelerate && cm.has(e) && this.current instanceof HTMLElement) {
+ let { factory: n, keyframes: r, times: i, ease: a, duration: o } = t.accelerate, s = new $p({
element: this.current,
name: e,
keyframes: r,
@@ -17346,10 +17347,10 @@ var Aee = class {
});
return;
}
- let n = Tp.has(e);
+ let n = wp.has(e);
n && this.onBindTransform && this.onBindTransform();
let r = t.on("change", (t) => {
- this.latestValues[e] = t, this.props.onUpdate && lf.preRender(this.notifyUpdate), n && (this.projection && (this.projection.isTransformDirty = !0), ym.get(this.current)?.check()), this.scheduleRender();
+ this.latestValues[e] = t, this.props.onUpdate && cf.preRender(this.notifyUpdate), n && (this.projection && (this.projection.isTransformDirty = !0), vm.get(this.current)?.check()), this.scheduleRender();
}), i;
typeof window < "u" && window.MotionCheckAppearSync && (i = window.MotionCheckAppearSync(this, e, t)), this.valueSubscriptions.set(e, () => {
r(), i && i();
@@ -17360,8 +17361,8 @@ var Aee = class {
}
updateFeatures() {
let e = "animation";
- for (e in m_) {
- let t = m_[e];
+ for (e in p_) {
+ let t = p_[e];
if (!t) continue;
let { isEnabled: n, Feature: r } = t;
if (!this.features[e] && r && n(this.props) && (this.features[e] = new r(this)), this.features[e]) {
@@ -17374,7 +17375,7 @@ var Aee = class {
this.build(this.renderState, this.latestValues, this.props);
}
measureViewportBox() {
- return this.current ? this.measureInstanceViewportBox(this.current, this.props) : n_();
+ return this.current ? this.measureInstanceViewportBox(this.current, this.props) : t_();
}
getStaticValue(e) {
return this.latestValues[e];
@@ -17384,9 +17385,9 @@ var Aee = class {
}
update(e, t) {
let { transformTemplate: n, onUpdate: r } = this.props;
- (e.transformTemplate || n) && this.scheduleRender(), (e.transformTemplate && !n || e.onUpdate && !r) && ym.get(this.current)?.demote(), this.prevProps = this.props, this.props = e, this.prevPresenceContext = this.presenceContext, this.presenceContext = t;
- for (let t = 0; t < p_.length; t++) {
- let n = p_[t];
+ (e.transformTemplate || n) && this.scheduleRender(), (e.transformTemplate && !n || e.onUpdate && !r) && vm.get(this.current)?.demote(), this.prevProps = this.props, this.props = e, this.prevPresenceContext = this.presenceContext, this.presenceContext = t;
+ for (let t = 0; t < f_.length; t++) {
+ let n = f_[t];
this.propEventSubscriptions[n] && (this.propEventSubscriptions[n](), delete this.propEventSubscriptions[n]);
let r = e["on" + n];
r && (this.propEventSubscriptions[n] = this.on(n, r));
@@ -17424,11 +17425,11 @@ var Aee = class {
getValue(e, t) {
if (this.props.values && this.props.values[e]) return this.props.values[e];
let n = this.values.get(e);
- return n === void 0 && t !== void 0 && (n = qm(t ?? this.getDefaultValue?.(e), { owner: this }), this.addValue(e, n)), n;
+ return n === void 0 && t !== void 0 && (n = Km(t ?? this.getDefaultValue?.(e), { owner: this }), this.addValue(e, n)), n;
}
readValue(e, t) {
let n = this.latestValues[e] !== void 0 || !this.current ? this.latestValues[e] : this.getBaseTargetFromProps(this.props, e) ?? this.readValueFromInstance(this.current, e, this.options);
- return n != null && (typeof n == "string" && (cu(n) || uu(n)) ? n = parseFloat(n) : typeof n != "number" && !Ld.test(n) && Ld.test(t) && (n = up(e, t)), this.setBaseTarget(e, gh(n) ? n.get() : n)), gh(n) ? n.get() : n;
+ return n != null && (typeof n == "string" && (cu(n) || uu(n)) ? n = parseFloat(n) : typeof n != "number" && !Id.test(n) && Id.test(t) && (n = lp(e, t)), this.setBaseTarget(e, hh(n) ? n.get() : n)), hh(n) ? n.get() : n;
}
setBaseTarget(e, t) {
this.baseTarget[e] = t;
@@ -17440,11 +17441,11 @@ var Aee = class {
this.events[e] && this.events[e].notify(...t);
}
scheduleRenderMicrotask() {
- Ng.render(this.render);
+ Mg.render(this.render);
}
-}, g_ = class extends Aee {
+}, h_ = class extends Aee {
constructor() {
- super(...arguments), this.KeyframeResolver = Ph;
+ super(...arguments), this.KeyframeResolver = Nh;
}
sortInstanceNodePosition(e, t) {
return e.compareDocumentPosition(t) & 2 ? 1 : -1;
@@ -17459,11 +17460,11 @@ var Aee = class {
handleChildMotionValue() {
this.childSubscription && (this.childSubscription(), delete this.childSubscription);
let { children: e } = this.props;
- gh(e) && (this.childSubscription = e.on("change", (e) => {
+ hh(e) && (this.childSubscription = e.on("change", (e) => {
this.current && (this.current.textContent = `${e}`);
}));
}
-}, __ = class {
+}, g_ = class {
constructor(e) {
this.isMounted = !1, this.node = e;
}
@@ -17471,25 +17472,25 @@ var Aee = class {
};
//#endregion
//#region node_modules/motion-dom/dist/es/render/html/utils/render.mjs
-function v_(e, { style: t, vars: n }, r, i) {
+function __(e, { style: t, vars: n }, r, i) {
let a = e.style, o;
for (o in t) a[o] = t[o];
for (o in i?.applyProjectionStyles(a, r), n) a.setProperty(o, n[o]);
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/styles/scale-correction.mjs
-var y_ = {};
+var v_ = {};
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.mjs
-function b_(e, { layout: t, layoutId: n }) {
- return Tp.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!y_[e] || e === "opacity");
+function y_(e, { layout: t, layoutId: n }) {
+ return wp.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!v_[e] || e === "opacity");
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.mjs
-function x_(e, t, n) {
+function b_(e, t, n) {
let r = e.style, i = t?.style, a = {};
if (!r) return a;
- for (let t in r) (gh(r[t]) || i && gh(i[t]) || b_(t, e) || n?.getValue(t)?.liveStyle !== void 0) && (a[t] = r[t]);
+ for (let t in r) (hh(r[t]) || i && hh(i[t]) || y_(t, e) || n?.getValue(t)?.liveStyle !== void 0) && (a[t] = r[t]);
return a;
}
//#endregion
@@ -17497,30 +17498,30 @@ function x_(e, t, n) {
function jee(e) {
return window.getComputedStyle(e);
}
-var Mee = class extends g_ {
+var Mee = class extends h_ {
constructor() {
- super(...arguments), this.type = "html", this.renderInstance = v_;
+ super(...arguments), this.type = "html", this.renderInstance = __;
}
mount(e) {
e.style, super.mount(e);
}
readValueFromInstance(e, t) {
- if (Tp.has(t)) return this.projection?.isProjecting ? bp(t) : Sp(e, t);
+ if (wp.has(t)) return this.projection?.isProjecting ? yp(t) : xp(e, t);
{
let n = jee(e), r = (Ku(t) ? n.getPropertyValue(t) : n[t]) || 0;
return typeof r == "string" ? r.trim() : r;
}
}
measureInstanceViewportBox(e, { transformPagePoint: t }) {
- return Eg(e, t);
+ return Tg(e, t);
}
build(e, t, n) {
- ig(e, t, n.transformTemplate);
+ rg(e, t, n.transformTemplate);
}
scrapeMotionValuesFromProps(e, t, n) {
- return x_(e, t, n);
+ return b_(e, t, n);
}
-}, S_ = /* @__PURE__ */ new Set([
+}, x_ = /* @__PURE__ */ new Set([
"baseFrequency",
"diffuseConstant",
"kernelMatrix",
@@ -17544,62 +17545,62 @@ var Mee = class extends g_ {
"startOffset",
"textLength",
"lengthAdjust"
-]), C_ = (e) => typeof e == "string" && e.toLowerCase() === "svg";
+]), S_ = (e) => typeof e == "string" && e.toLowerCase() === "svg";
//#endregion
//#region node_modules/motion-dom/dist/es/render/svg/utils/render.mjs
function Nee(e, t, n, r) {
- v_(e, t, void 0, r);
- for (let n in t.attrs) e.setAttribute(S_.has(n) ? n : yh(n), t.attrs[n]);
+ __(e, t, void 0, r);
+ for (let n in t.attrs) e.setAttribute(x_.has(n) ? n : vh(n), t.attrs[n]);
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.mjs
-function w_(e, t, n) {
- let r = x_(e, t, n);
- for (let n in e) if (n !== "children" && (gh(e[n]) || gh(t[n]))) {
- let t = wp.indexOf(n) === -1 ? n : "attr" + n.charAt(0).toUpperCase() + n.substring(1);
+function C_(e, t, n) {
+ let r = b_(e, t, n);
+ for (let n in e) if (n !== "children" && (hh(e[n]) || hh(t[n]))) {
+ let t = Cp.indexOf(n) === -1 ? n : "attr" + n.charAt(0).toUpperCase() + n.substring(1);
r[t] = e[n];
}
return r;
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.mjs
-var Pee = class extends g_ {
+var Pee = class extends h_ {
constructor() {
- super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = n_;
+ super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = t_;
}
getBaseTargetFromProps(e, t) {
- return Tp.has(t) ? super.getBaseTargetFromProps(e, t) ?? bp(t) : e[t];
+ return wp.has(t) ? super.getBaseTargetFromProps(e, t) ?? yp(t) : e[t];
}
getDefaultValue(e) {
- return Tp.has(e) ? this.latestValues[e] ?? bp(e) : void 0;
+ return wp.has(e) ? this.latestValues[e] ?? yp(e) : void 0;
}
readValueFromInstance(e, t) {
- if (Tp.has(t)) {
- let e = cp(t);
+ if (wp.has(t)) {
+ let e = sp(t);
return e && e.default || 0;
}
- if (ag.includes(t)) {
+ if (ig.includes(t)) {
let n = getComputedStyle(e)[t];
if (typeof n == "string" && n) return n.trim();
}
- return t = S_.has(t) ? t : yh(t), e.getAttribute(t);
+ return t = x_.has(t) ? t : vh(t), e.getAttribute(t);
}
scrapeMotionValuesFromProps(e, t, n) {
- return w_(e, t, n);
+ return C_(e, t, n);
}
build(e, t, n) {
- og(e, t, this.isSVGTag, n.transformTemplate, n.style);
+ ag(e, t, this.isSVGTag, n.transformTemplate, n.style);
}
renderInstance(e, t, n, r) {
Nee(e, t, n, r);
}
mount(e) {
- this.isSVGTag = C_(e.tagName), super.mount(e);
+ this.isSVGTag = S_(e.tagName), super.mount(e);
}
};
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/shallow-compare.mjs
-function T_(e, t) {
+function w_(e, t) {
if (!Array.isArray(t)) return !1;
let n = t.length;
if (n !== e.length) return !1;
@@ -17608,19 +17609,19 @@ function T_(e, t) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/animation-state.mjs
-var Fee = [...o_].reverse();
+var Fee = [...a_].reverse();
function Iee(e) {
- let t = (t) => Promise.all(t.map(({ animation: t, options: n }) => Eh(e, t, n))), n = E_(), r = !0, i = !1;
+ let t = (t) => Promise.all(t.map(({ animation: t, options: n }) => Th(e, t, n))), n = T_(), r = !0, i = !1;
function a(a) {
let { props: o, parent: s, manuallyAnimateOnMount: c } = e, l = r || i, u = [], d = /* @__PURE__ */ new Set(), f = {}, p = Infinity, m = e;
do
m = m.props.inherit !== !1 && m.parent;
while (m && !m.isControllingVariants);
if (Fee.forEach((t, r) => {
- let i = n[t], h = o[t], g = m && m.props[t], _ = h === void 0 ? a_(g) || g === !1 ? g : void 0 : h, v = a_(_), y = t === a ? i.isActive : null;
+ let i = n[t], h = o[t], g = m && m.props[t], _ = h === void 0 ? i_(g) || g === !1 ? g : void 0 : h, v = i_(_), y = t === a ? i.isActive : null;
y === !1 && (p = r);
let b = v && h === void 0 && !(l && c);
- if (i.protectedKeys = { ...f }, !i.isActive && y === null || !_ && !i.prevProp || i_(_) || typeof _ == "boolean") return;
+ if (i.protectedKeys = { ...f }, !i.isActive && y === null || !_ && !i.prevProp || r_(_) || typeof _ == "boolean") return;
if (t === "exit" && i.isActive && y !== !0) {
f = {
...f,
@@ -17630,7 +17631,7 @@ function Iee(e) {
}
let x = Lee(i.prevProp, _), S = x || v && (y && !b || r > p), C = !1, w = Array.isArray(_) ? _ : [_], T = {};
if (y !== !1) for (let n of w) {
- let { transition: r, transitionEnd: i, ...a } = lh(e, n, uh(e, t)) || {};
+ let { transition: r, transitionEnd: i, ...a } = ch(e, n, lh(e, t)) || {};
T = {
...T,
...a,
@@ -17643,7 +17644,7 @@ function Iee(e) {
...T
}) {
if (t in f) continue;
- let n = T[t], r = E[t], a = Array.isArray(n) && Array.isArray(r) ? !T_(n, r) || x : n !== r;
+ let n = T[t], r = E[t], a = Array.isArray(n) && Array.isArray(r) ? !w_(n, r) || x : n !== r;
if (a && n == null) d.add(t);
else if (a || n !== void 0 && d.has(t)) {
S = !0, d.delete(t) && (C = !0), i.needsAnimating[t] = !0;
@@ -17657,8 +17658,8 @@ function Iee(e) {
}), S && (!(b && x) || C)) for (let n of w) {
let r = { type: t };
if (typeof n == "string" && l && c && s?.enteringChildren) {
- let t = lh(s, n)?.transition?.delayChildren;
- r.delay = Hm(s.enteringChildren, e, t);
+ let t = ch(s, n)?.transition?.delayChildren;
+ r.delay = Vm(s.enteringChildren, e, t);
}
u.push({
animation: n,
@@ -17666,12 +17667,12 @@ function Iee(e) {
});
}
}), d.size) {
- let { initial: t } = o, n = {}, r = typeof t != "boolean" && lh(e, Array.isArray(t) ? t[0] : t, e.presenceContext?.custom);
+ let { initial: t } = o, n = {}, r = typeof t != "boolean" && ch(e, Array.isArray(t) ? t[0] : t, e.presenceContext?.custom);
r && r.transition && (n.transition = r.transition), d.forEach((i) => {
let a = e.getValue(i);
a && (a.liveStyle = !0);
let s = r && !Array.isArray(t) ? r[i] : void 0, c = e.getBaseTargetFromProps(o, i);
- n[i] = (s === void 0 ? c !== void 0 && !gh(c) ? c : e.initialValues[i] === void 0 ? e.baseTarget[i] : void 0 : s) ?? null;
+ n[i] = (s === void 0 ? c !== void 0 && !hh(c) ? c : e.initialValues[i] === void 0 ? e.baseTarget[i] : void 0 : s) ?? null;
}), u.push({ animation: n });
}
let h = l && e.blockInitialAnimation || r && !c && (o.initial === !1 || o.initial === o.animate);
@@ -17692,16 +17693,16 @@ function Iee(e) {
},
getState: () => n,
reset: () => {
- n = E_(), i = !0;
+ n = T_(), i = !0;
}
};
}
function Lee(e, t) {
- return typeof t == "string" ? t !== e : Array.isArray(t) ? !T_(t, e) : !1;
+ return typeof t == "string" ? t !== e : Array.isArray(t) ? !w_(t, e) : !1;
}
-function E_() {
+function T_() {
let e = {};
- for (let t of o_) e[t] = {
+ for (let t of a_) e[t] = {
isActive: t === "animate",
protectedKeys: {},
needsAnimating: {},
@@ -17711,117 +17712,117 @@ function E_() {
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/geometry/copy.mjs
-function D_(e, t) {
+function E_(e, t) {
e.min = t.min, e.max = t.max;
}
-function O_(e, t) {
- D_(e.x, t.x), D_(e.y, t.y);
+function D_(e, t) {
+ E_(e.x, t.x), E_(e.y, t.y);
}
-function k_(e, t) {
+function O_(e, t) {
e.translate = t.translate, e.scale = t.scale, e.originPoint = t.originPoint, e.origin = t.origin;
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/geometry/delta-calc.mjs
-var Ree = .9999, zee = 1.0001, A_ = -.01, j_ = .01;
-function M_(e) {
+var Ree = .9999, zee = 1.0001, k_ = -.01, A_ = .01;
+function j_(e) {
return e.max - e.min;
}
-function N_(e, t, n) {
+function M_(e, t, n) {
return Math.abs(e - t) <= n;
}
-function P_(e, t, n, r = .5) {
- e.origin = r, e.originPoint = Vd(t.min, t.max, e.origin), e.scale = M_(n) / M_(t), e.translate = Vd(n.min, n.max, e.origin) - e.originPoint, (e.scale >= Ree && e.scale <= zee || isNaN(e.scale)) && (e.scale = 1), (e.translate >= A_ && e.translate <= j_ || isNaN(e.translate)) && (e.translate = 0);
+function N_(e, t, n, r = .5) {
+ e.origin = r, e.originPoint = Bd(t.min, t.max, e.origin), e.scale = j_(n) / j_(t), e.translate = Bd(n.min, n.max, e.origin) - e.originPoint, (e.scale >= Ree && e.scale <= zee || isNaN(e.scale)) && (e.scale = 1), (e.translate >= k_ && e.translate <= A_ || isNaN(e.translate)) && (e.translate = 0);
}
-function F_(e, t, n, r) {
- P_(e.x, t.x, n.x, r ? r.originX : void 0), P_(e.y, t.y, n.y, r ? r.originY : void 0);
+function P_(e, t, n, r) {
+ N_(e.x, t.x, n.x, r ? r.originX : void 0), N_(e.y, t.y, n.y, r ? r.originY : void 0);
}
-function I_(e, t, n, r = 0) {
- e.min = (r ? Vd(n.min, n.max, r) : n.min) + t.min, e.max = e.min + M_(t);
+function F_(e, t, n, r = 0) {
+ e.min = (r ? Bd(n.min, n.max, r) : n.min) + t.min, e.max = e.min + j_(t);
}
-function L_(e, t, n, r) {
- I_(e.x, t.x, n.x, r?.x), I_(e.y, t.y, n.y, r?.y);
+function I_(e, t, n, r) {
+ F_(e.x, t.x, n.x, r?.x), F_(e.y, t.y, n.y, r?.y);
}
-function R_(e, t, n, r = 0) {
- let i = r ? Vd(n.min, n.max, r) : n.min;
- e.min = t.min - i, e.max = e.min + M_(t);
+function L_(e, t, n, r = 0) {
+ let i = r ? Bd(n.min, n.max, r) : n.min;
+ e.min = t.min - i, e.max = e.min + j_(t);
}
-function z_(e, t, n, r) {
- R_(e.x, t.x, n.x, r?.x), R_(e.y, t.y, n.y, r?.y);
+function R_(e, t, n, r) {
+ L_(e.x, t.x, n.x, r?.x), L_(e.y, t.y, n.y, r?.y);
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/geometry/delta-remove.mjs
-function B_(e, t, n, r, i) {
- return e -= t, e = hg(e, 1 / n, r), i !== void 0 && (e = hg(e, 1 / i, r)), e;
+function z_(e, t, n, r, i) {
+ return e -= t, e = mg(e, 1 / n, r), i !== void 0 && (e = mg(e, 1 / i, r)), e;
}
-function V_(e, t = 0, n = 1, r = .5, i, a = e, o = e) {
- if (fd.test(t) && (t = parseFloat(t), t = Vd(o.min, o.max, t / 100) - o.min), typeof t != "number") return;
- let s = Vd(a.min, a.max, r);
- e === a && (s -= t), e.min = B_(e.min, t, n, s, i), e.max = B_(e.max, t, n, s, i);
+function B_(e, t = 0, n = 1, r = .5, i, a = e, o = e) {
+ if (fd.test(t) && (t = parseFloat(t), t = Bd(o.min, o.max, t / 100) - o.min), typeof t != "number") return;
+ let s = Bd(a.min, a.max, r);
+ e === a && (s -= t), e.min = z_(e.min, t, n, s, i), e.max = z_(e.max, t, n, s, i);
}
-function H_(e, t, [n, r, i], a, o) {
- V_(e, t[n], t[r], t[i], t.scale, a, o);
+function V_(e, t, [n, r, i], a, o) {
+ B_(e, t[n], t[r], t[i], t.scale, a, o);
}
-var U_ = [
+var H_ = [
"x",
"scaleX",
"originX"
-], W_ = [
+], U_ = [
"y",
"scaleY",
"originY"
];
-function G_(e, t, n, r) {
- H_(e.x, t, U_, n ? n.x : void 0, r ? r.x : void 0), H_(e.y, t, W_, n ? n.y : void 0, r ? r.y : void 0);
+function W_(e, t, n, r) {
+ V_(e.x, t, H_, n ? n.x : void 0, r ? r.x : void 0), V_(e.y, t, U_, n ? n.y : void 0, r ? r.y : void 0);
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/geometry/utils.mjs
-function K_(e) {
+function G_(e) {
return e.translate === 0 && e.scale === 1;
}
-function q_(e) {
- return K_(e.x) && K_(e.y);
+function K_(e) {
+ return G_(e.x) && G_(e.y);
}
-function J_(e, t) {
+function q_(e, t) {
return e.min === t.min && e.max === t.max;
}
-function Y_(e, t) {
- return J_(e.x, t.x) && J_(e.y, t.y);
+function J_(e, t) {
+ return q_(e.x, t.x) && q_(e.y, t.y);
}
-function X_(e, t) {
+function Y_(e, t) {
return Math.round(e.min) === Math.round(t.min) && Math.round(e.max) === Math.round(t.max);
}
-function Z_(e, t) {
- return X_(e.x, t.x) && X_(e.y, t.y);
+function X_(e, t) {
+ return Y_(e.x, t.x) && Y_(e.y, t.y);
}
-function Q_(e) {
- return M_(e.x) / M_(e.y);
+function Z_(e) {
+ return j_(e.x) / j_(e.y);
}
-function $_(e, t) {
+function Q_(e, t) {
return e.translate === t.translate && e.scale === t.scale && e.originPoint === t.originPoint;
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/utils/each-axis.mjs
-function ev(e) {
+function $_(e) {
return [e("x"), e("y")];
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/styles/scale-border-radius.mjs
-function tv(e, t) {
+function ev(e, t) {
return t.max === t.min ? 0 : e / (t.max - t.min) * 100;
}
-var nv = { correct: (e, t) => {
+var tv = { correct: (e, t) => {
if (!t.target) return e;
if (typeof e == "string") {
- if (pd.test(e)) e = parseFloat(e);
+ if (G.test(e)) e = parseFloat(e);
else return e;
}
- return `${tv(e, t.target.x)}% ${tv(e, t.target.y)}%`;
+ return `${ev(e, t.target.x)}% ${ev(e, t.target.y)}%`;
} }, Bee = { correct: (e, { treeScale: t, projectionDelta: n }) => {
- let r = e, i = Ld.parse(e);
+ let r = e, i = Id.parse(e);
if (i.length > 5) return r;
- let a = Ld.createTransformer(e), o = typeof i[0] == "number" ? 0 : 1, s = n.x.scale * t.x, c = n.y.scale * t.y;
+ let a = Id.createTransformer(e), o = typeof i[0] == "number" ? 0 : 1, s = n.x.scale * t.x, c = n.y.scale * t.y;
i[0 + o] /= s, i[1 + o] /= c;
- let l = Vd(s, c, .5);
+ let l = Bd(s, c, .5);
return typeof i[2 + o] == "number" && (i[2 + o] /= l), typeof i[3 + o] == "number" && (i[3 + o] /= l), a(i);
} };
//#endregion
@@ -17837,31 +17838,31 @@ function Vee(e, t, n) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/animation/mix-values.mjs
-var Hee = Fh.length, rv = (e) => typeof e == "number" || pd.test(e);
+var Hee = Ph.length, nv = (e) => typeof e == "number" || G.test(e);
function Uee(e, t, n, r, i, a) {
- i ? (e.opacity = Vd(0, n.opacity ?? 1, Wee(r)), e.opacityExit = Vd(t.opacity ?? 1, 0, Gee(r))) : a && (e.opacity = Vd(t.opacity ?? 1, n.opacity ?? 1, r));
+ i ? (e.opacity = Bd(0, n.opacity ?? 1, Wee(r)), e.opacityExit = Bd(t.opacity ?? 1, 0, Gee(r))) : a && (e.opacity = Bd(t.opacity ?? 1, n.opacity ?? 1, r));
for (let i = 0; i < Hee; i++) {
- let a = Fh[i], o = iv(t, a), s = iv(n, a);
- (o !== void 0 || s !== void 0) && (o ||= 0, s ||= 0, o === 0 || s === 0 || rv(o) === rv(s) ? (e[a] = Math.max(Vd(Qg(o), Qg(s), r), 0), (fd.test(s) || fd.test(o)) && (e[a] += "%")) : e[a] = s);
+ let a = Ph[i], o = rv(t, a), s = rv(n, a);
+ (o !== void 0 || s !== void 0) && (o ||= 0, s ||= 0, o === 0 || s === 0 || nv(o) === nv(s) ? (e[a] = Math.max(Bd(Zg(o), Zg(s), r), 0), (fd.test(s) || fd.test(o)) && (e[a] += "%")) : e[a] = s);
}
- (t.rotate || n.rotate) && (e.rotate = Vd(t.rotate || 0, n.rotate || 0, r));
+ (t.rotate || n.rotate) && (e.rotate = Bd(t.rotate || 0, n.rotate || 0, r));
}
-function iv(e, t) {
+function rv(e, t) {
return e[t] === void 0 ? e.borderRadius : e[t];
}
-var Wee = /*@__PURE__*/ av(0, .5, ku), Gee = /*@__PURE__*/ av(.5, .95, fu);
-function av(e, t, n) {
+var Wee = /*@__PURE__*/ iv(0, .5, ku), Gee = /*@__PURE__*/ iv(.5, .95, fu);
+function iv(e, t, n) {
return (r) => r < e ? 0 : r > t ? 1 : n(/* @__PURE__ */ mu(e, t, r));
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/animate/single-value.mjs
-function ov(e, t, n) {
- let r = gh(e) ? e : qm(e);
- return r.start(rh("", r, t, n)), r.animation;
+function av(e, t, n) {
+ let r = hh(e) ? e : Km(e);
+ return r.start(nh("", r, t, n)), r.animation;
}
//#endregion
//#region node_modules/motion-dom/dist/es/events/add-dom-event.mjs
-function sv(e, t, n, r = { passive: !0 }) {
+function ov(e, t, n, r = { passive: !0 }) {
return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
}
//#endregion
@@ -17885,14 +17886,14 @@ var Kee = (e, t) => e.depth - t.depth, qee = class {
function Jee(e, t) {
let n = Uu.now(), r = ({ timestamp: i }) => {
let a = i - n;
- a >= t && (uf(r), e(a - t));
+ a >= t && (lf(r), e(a - t));
};
- return lf.setup(r, !0), () => uf(r);
+ return cf.setup(r, !0), () => lf(r);
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.mjs
-function cv(e) {
- return gh(e) ? e.get() : e;
+function sv(e) {
+ return hh(e) ? e.get() : e;
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/shared/stack.mjs
@@ -17944,52 +17945,52 @@ var Yee = class {
}
}, Xee = {
borderRadius: {
- ...nv,
- applyTo: [...Fh]
+ ...tv,
+ applyTo: [...Ph]
},
- borderTopLeftRadius: nv,
- borderTopRightRadius: nv,
- borderBottomLeftRadius: nv,
- borderBottomRightRadius: nv,
+ borderTopLeftRadius: tv,
+ borderTopRightRadius: tv,
+ borderBottomLeftRadius: tv,
+ borderBottomRightRadius: tv,
boxShadow: Bee
-}, lv = {
+}, cv = {
hasAnimatedSinceResize: !0,
hasEverUpdated: !1
};
//#endregion
//#region node_modules/motion-dom/dist/es/projection/node/create-projection-node.mjs
-Object.assign(y_, {
+Object.assign(v_, {
...Xee,
- ...y_
+ ...v_
});
-var uv = {
+var lv = {
nodes: 0,
calculatedTargetDeltas: 0,
calculatedProjections: 0
-}, dv = [
+}, uv = [
"",
"X",
"Y",
"Z"
], Zee = 1e3, Qee = 0;
-function fv(e, t, n, r) {
+function dv(e, t, n, r) {
let { latestValues: i } = t;
i[e] && (n[e] = i[e], t.setStaticValue(e, 0), r && (r[e] = 0));
}
-var pv = ({ instance: e }) => e && ym.get(e)?.demote();
-function mv(e) {
+var fv = ({ instance: e }) => e && vm.get(e)?.demote();
+function pv(e) {
if (e.hasCheckedOptimisedAppear = !0, e.root === e) return;
let { visualElement: t } = e.options;
if (!t) return;
- let n = xh(t);
+ let n = bh(t);
if (window.MotionHasOptimisedAnimation(n, "transform")) {
let { layout: t, layoutId: r } = e.options;
- window.MotionCancelOptimisedAnimation(n, "transform", lf, !(t || r));
+ window.MotionCancelOptimisedAnimation(n, "transform", cf, !(t || r));
}
let { parent: r } = e;
- r && !r.hasCheckedOptimisedAppear && mv(r);
+ r && !r.hasCheckedOptimisedAppear && pv(r);
}
-function hv({ attachResizeListener: e, defaultParent: t, measureScroll: n, checkIsScrollRoot: r, resetTransform: i }) {
+function mv({ attachResizeListener: e, defaultParent: t, measureScroll: n, checkIsScrollRoot: r, resetTransform: i }) {
return class {
constructor(e = {}, n = t?.()) {
this.id = Qee++, this.animationId = 0, this.animationCommitId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.hasCheckedOptimisedAppear = !1, this.treeScale = {
@@ -17998,7 +17999,7 @@ function hv({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
}, this.eventHandlers = /* @__PURE__ */ new Map(), this.hasTreeAnimated = !1, this.updateScheduled = !1, this.scheduleUpdate = () => this.update(), this.projectionUpdateScheduled = !1, this.checkUpdateFailed = () => {
this.isUpdating && (this.isUpdating = !1, this.clearAllSnapshots());
}, this.updateProjection = () => {
- this.projectionUpdateScheduled = !1, Zg.value && (uv.nodes = uv.calculatedTargetDeltas = uv.calculatedProjections = 0), this.nodes.forEach(tte), this.nodes.forEach(lte), this.nodes.forEach(ute), this.nodes.forEach(nte), Zg.addProjectionMetrics && Zg.addProjectionMetrics(uv);
+ this.projectionUpdateScheduled = !1, Xg.value && (lv.nodes = lv.calculatedTargetDeltas = lv.calculatedProjections = 0), this.nodes.forEach(tte), this.nodes.forEach(lte), this.nodes.forEach(ute), this.nodes.forEach(nte), Xg.addProjectionMetrics && Xg.addProjectionMetrics(lv);
}, this.resolvedRelativeTargetAt = 0, this.hasProjected = !1, this.isVisible = !0, this.animationProgress = 0, this.sharedNodes = /* @__PURE__ */ new Map(), this.latestValues = e, this.root = n ? n.root || n : this, this.path = n ? [...n.path, n] : [], this.parent = n, this.depth = n ? n.depth + 1 : 0;
for (let e = 0; e < this.path.length; e++) this.path[e].shouldResetTransform = !0;
this.root === this && (this.nodes = new qee());
@@ -18015,15 +18016,15 @@ function hv({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
}
mount(t) {
if (this.instance) return;
- this.isSVG = Kh(t) && !Eee(t), this.instance = t;
+ this.isSVG = Gh(t) && !Eee(t), this.instance = t;
let { layoutId: n, layout: r, visualElement: i } = this.options;
if (i && !i.current && i.mount(t), this.root.nodes.add(this), this.parent && this.parent.children.add(this), this.root.hasTreeAnimated && (r || n) && (this.isLayoutDirty = !0), e) {
let n, r = 0, i = () => this.root.updateBlockedByResize = !1;
- lf.read(() => {
+ cf.read(() => {
r = window.innerWidth;
}), e(t, () => {
let e = window.innerWidth;
- e !== r && (r = e, this.root.updateBlockedByResize = !0, n && n(), n = Jee(i, 250), lv.hasAnimatedSinceResize && (lv.hasAnimatedSinceResize = !1, this.nodes.forEach(vv)));
+ e !== r && (r = e, this.root.updateBlockedByResize = !0, n && n(), n = Jee(i, 250), cv.hasAnimatedSinceResize && (cv.hasAnimatedSinceResize = !1, this.nodes.forEach(_v)));
});
}
n && this.root.registerSharedNode(n, this), this.options.animate !== !1 && i && (n || r) && this.addEventListener("didUpdate", ({ delta: e, hasLayoutChanged: t, hasRelativeLayoutChanged: n, layout: r }) => {
@@ -18031,23 +18032,23 @@ function hv({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
this.target = void 0, this.relativeTarget = void 0;
return;
}
- let a = this.options.transition || i.getDefaultTransition() || hte, { onLayoutAnimationStart: o, onLayoutAnimationComplete: s } = i.getProps(), c = !this.targetLayout || !Z_(this.targetLayout, r), l = !t && n;
+ let a = this.options.transition || i.getDefaultTransition() || hte, { onLayoutAnimationStart: o, onLayoutAnimationComplete: s } = i.getProps(), c = !this.targetLayout || !X_(this.targetLayout, r), l = !t && n;
if (this.options.layoutRoot || this.resumeFrom || l || t && (c || !this.currentAnimation)) {
this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0);
let t = {
- ...Ym(a, "layout"),
+ ...Jm(a, "layout"),
onPlay: o,
onComplete: s
};
(i.shouldReduceMotion || this.options.layoutRoot) && (t.delay = 0, t.type = !1), this.startAnimation(t), this.setAnimationOrigin(e, l, t.path);
- } else t || vv(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete();
+ } else t || _v(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete();
this.targetLayout = r;
});
}
unmount() {
this.options.layoutId && this.willUpdate(), this.root.nodes.remove(this);
let e = this.getStack();
- e && e.remove(this), this.parent && this.parent.children.delete(this), this.instance = void 0, this.eventHandlers.clear(), uf(this.updateProjection);
+ e && e.remove(this), this.parent && this.parent.children.delete(this), this.instance = void 0, this.eventHandlers.clear(), lf(this.updateProjection);
}
blockUpdate() {
this.updateManuallyBlocked = !0;
@@ -18070,11 +18071,11 @@ function hv({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
this.options.onExitComplete && this.options.onExitComplete();
return;
}
- if (window.MotionCancelOptimisedAnimation && !this.hasCheckedOptimisedAppear && mv(this), !this.root.isUpdating && this.root.startUpdate(), this.isLayoutDirty) return;
- pv(this), this.isLayoutDirty = !0;
+ if (window.MotionCancelOptimisedAnimation && !this.hasCheckedOptimisedAppear && pv(this), !this.root.isUpdating && this.root.startUpdate(), this.isLayoutDirty) return;
+ fv(this), this.isLayoutDirty = !0;
for (let e = 0; e < this.path.length; e++) {
let t = this.path[e];
- t.shouldResetTransform = !0, pv(t), (typeof t.latestValues.x == "string" || typeof t.latestValues.y == "string") && (t.isLayoutDirty = !0), t.updateScroll("snapshot"), t.options.layoutRoot && t.willUpdate(!1), t.isAnimationBlocked && (t.dragSnapshot ||= t.measure(), this.dragAncestor = t);
+ t.shouldResetTransform = !0, fv(t), (typeof t.latestValues.x == "string" || typeof t.latestValues.y == "string") && (t.isLayoutDirty = !0), t.updateScroll("snapshot"), t.options.layoutRoot && t.willUpdate(!1), t.isAnimationBlocked && (t.dragSnapshot ||= t.measure(), this.dragAncestor = t);
}
let { layoutId: t, layout: n } = this.options;
if (t === void 0 && !n) return;
@@ -18084,39 +18085,39 @@ function hv({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
update() {
if (this.updateScheduled = !1, this.isUpdateBlocked()) {
let e = this.updateBlockedByResize;
- this.unblockUpdate(), this.updateBlockedByResize = !1, this.clearAllSnapshots(), e && this.nodes.forEach(ite), this.nodes.forEach(gv);
+ this.unblockUpdate(), this.updateBlockedByResize = !1, this.clearAllSnapshots(), e && this.nodes.forEach(ite), this.nodes.forEach(hv);
return;
}
if (this.animationId <= this.animationCommitId) {
- this.nodes.forEach(_v);
+ this.nodes.forEach(gv);
return;
}
- this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(ote), this.nodes.forEach(ste), this.nodes.forEach(cte), this.nodes.forEach($ee), this.nodes.forEach(ete)) : this.nodes.forEach(_v), this.clearAllSnapshots();
+ this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(ote), this.nodes.forEach(ste), this.nodes.forEach(cte), this.nodes.forEach($ee), this.nodes.forEach(ete)) : this.nodes.forEach(gv), this.clearAllSnapshots();
let e = Uu.now();
- Bu.delta = ou(0, 1e3 / 60, e - Bu.timestamp), Bu.timestamp = e, Bu.isProcessing = !0, df.update.process(Bu), df.preRender.process(Bu), df.render.process(Bu), Bu.isProcessing = !1;
+ Bu.delta = ou(0, 1e3 / 60, e - Bu.timestamp), Bu.timestamp = e, Bu.isProcessing = !0, uf.update.process(Bu), uf.preRender.process(Bu), uf.render.process(Bu), Bu.isProcessing = !1;
}
didUpdate() {
- this.updateScheduled || (this.updateScheduled = !0, Ng.read(this.scheduleUpdate));
+ this.updateScheduled || (this.updateScheduled = !0, Mg.read(this.scheduleUpdate));
}
clearAllSnapshots() {
this.nodes.forEach(rte), this.sharedNodes.forEach(fte);
}
scheduleUpdateProjection() {
- this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, lf.preRender(this.updateProjection, !1, !0));
+ this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, cf.preRender(this.updateProjection, !1, !0));
}
scheduleCheckAfterUnmount() {
- lf.postRender(() => {
+ cf.postRender(() => {
this.isLayoutDirty ? this.root.didUpdate() : this.root.checkUpdateFailed();
});
}
updateSnapshot() {
- !this.snapshot && this.instance && (this.snapshot = this.measure(), this.snapshot && !M_(this.snapshot.measuredBox.x) && !M_(this.snapshot.measuredBox.y) && (this.snapshot = void 0));
+ !this.snapshot && this.instance && (this.snapshot = this.measure(), this.snapshot && !j_(this.snapshot.measuredBox.x) && !j_(this.snapshot.measuredBox.y) && (this.snapshot = void 0));
}
updateLayout() {
if (!this.instance || (this.updateScroll(), !(this.options.alwaysMeasureLayout && this.isLead()) && !this.isLayoutDirty)) return;
if (this.resumeFrom && !this.resumeFrom.instance) for (let e = 0; e < this.path.length; e++) this.path[e].updateScroll();
let e = this.layout;
- this.layout = this.measure(!1), this.layoutCorrected ||= n_(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);
+ this.layout = this.measure(!1), this.layoutCorrected ||= t_(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);
let { visualElement: t } = this.options;
t && t.notify("LayoutMeasure", this.layout.layoutBox, e ? e.layoutBox : void 0);
}
@@ -18136,9 +18137,9 @@ function hv({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
resetTransform() {
if (!i) return;
let e = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout;
- e && pv(this);
- let t = this.projectionDelta && !q_(this.projectionDelta), n = this.getTransformTemplate(), r = n ? n(this.latestValues, "") : void 0, a = r !== this.prevTransformTemplateValue;
- e && this.instance && (t || fg(this.latestValues) || a) && (i(this.instance, r), this.shouldResetTransform = !1, this.scheduleRender());
+ e && fv(this);
+ let t = this.projectionDelta && !K_(this.projectionDelta), n = this.getTransformTemplate(), r = n ? n(this.latestValues, "") : void 0, a = r !== this.prevTransformTemplateValue;
+ e && this.instance && (t || dg(this.latestValues) || a) && (i(this.instance, r), this.shouldResetTransform = !1, this.scheduleRender());
}
measure(e = !0) {
let t = this.measurePageBox(), n = this.removeElementScroll(t);
@@ -18152,42 +18153,42 @@ function hv({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
}
measurePageBox() {
let { visualElement: e } = this.options;
- if (!e) return n_();
+ if (!e) return t_();
let t = e.measureViewportBox();
if (!(this.scroll?.wasRoot || this.path.some(_te))) {
let { scroll: e } = this.root;
- e && (Sg(t.x, e.offset.x), Sg(t.y, e.offset.y));
+ e && (xg(t.x, e.offset.x), xg(t.y, e.offset.y));
}
return t;
}
removeElementScroll(e) {
- let t = n_();
- if (O_(t, e), this.scroll?.wasRoot) return t;
+ let t = t_();
+ if (D_(t, e), this.scroll?.wasRoot) return t;
for (let n = 0; n < this.path.length; n++) {
let r = this.path[n], { scroll: i, options: a } = r;
- r !== this.root && i && a.layoutScroll && (i.wasRoot && O_(t, e), Sg(t.x, i.offset.x), Sg(t.y, i.offset.y));
+ r !== this.root && i && a.layoutScroll && (i.wasRoot && D_(t, e), xg(t.x, i.offset.x), xg(t.y, i.offset.y));
}
return t;
}
applyTransform(e, t = !1, n) {
- let r = n || n_();
- O_(r, e);
+ let r = n || t_();
+ D_(r, e);
for (let e = 0; e < this.path.length; e++) {
let n = this.path[e];
- !t && n.options.layoutScroll && n.scroll && n !== n.root && (Sg(r.x, -n.scroll.offset.x), Sg(r.y, -n.scroll.offset.y)), fg(n.latestValues) && Tg(r, n.latestValues, n.layout?.layoutBox);
+ !t && n.options.layoutScroll && n.scroll && n !== n.root && (xg(r.x, -n.scroll.offset.x), xg(r.y, -n.scroll.offset.y)), dg(n.latestValues) && wg(r, n.latestValues, n.layout?.layoutBox);
}
- return fg(this.latestValues) && Tg(r, this.latestValues, this.layout?.layoutBox), r;
+ return dg(this.latestValues) && wg(r, this.latestValues, this.layout?.layoutBox), r;
}
removeTransform(e) {
- let t = n_();
- O_(t, e);
+ let t = t_();
+ D_(t, e);
for (let e = 0; e < this.path.length; e++) {
let n = this.path[e];
- if (!fg(n.latestValues)) continue;
+ if (!dg(n.latestValues)) continue;
let r;
- n.instance && (dg(n.latestValues) && n.updateSnapshot(), r = n_(), O_(r, n.measurePageBox())), G_(t, n.latestValues, n.snapshot?.layoutBox, r);
+ n.instance && (ug(n.latestValues) && n.updateSnapshot(), r = t_(), D_(r, n.measurePageBox())), W_(t, n.latestValues, n.snapshot?.layoutBox, r);
}
- return fg(this.latestValues) && G_(t, this.latestValues), t;
+ return dg(this.latestValues) && W_(t, this.latestValues), t;
}
setTargetDelta(e) {
this.targetDelta = e, this.root.scheduleUpdateProjection(), this.isProjectionDirty = !0;
@@ -18214,16 +18215,16 @@ function hv({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
if (!this.layout || !(r || i)) return;
this.resolvedRelativeTargetAt = Bu.timestamp;
let a = this.getClosestProjectingParent();
- !this.targetDelta && !this.relativeTarget && (this.options.layoutAnchor !== !1 && a && a.layout ? this.createRelativeTarget(a, this.layout.layoutBox, a.layout.layoutBox) : this.removeRelativeTarget()), (this.relativeTarget || this.targetDelta) && (this.target || (this.target = n_(), this.targetWithTransforms = n_()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), L_(this.target, this.relativeTarget, this.relativeParent.target, this.options.layoutAnchor || void 0)) : this.targetDelta ? (this.resumingFrom ? this.applyTransform(this.layout.layoutBox, !1, this.target) : O_(this.target, this.layout.layoutBox), vg(this.target, this.targetDelta)) : O_(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget && (this.attemptToResolveRelativeTarget = !1, this.options.layoutAnchor !== !1 && a && !!a.resumingFrom == !!this.resumingFrom && !a.options.layoutScroll && a.target && this.animationProgress !== 1 ? this.createRelativeTarget(a, this.target, a.target) : this.relativeParent = this.relativeTarget = void 0), Zg.value && uv.calculatedTargetDeltas++);
+ !this.targetDelta && !this.relativeTarget && (this.options.layoutAnchor !== !1 && a && a.layout ? this.createRelativeTarget(a, this.layout.layoutBox, a.layout.layoutBox) : this.removeRelativeTarget()), (this.relativeTarget || this.targetDelta) && (this.target || (this.target = t_(), this.targetWithTransforms = t_()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), I_(this.target, this.relativeTarget, this.relativeParent.target, this.options.layoutAnchor || void 0)) : this.targetDelta ? (this.resumingFrom ? this.applyTransform(this.layout.layoutBox, !1, this.target) : D_(this.target, this.layout.layoutBox), _g(this.target, this.targetDelta)) : D_(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget && (this.attemptToResolveRelativeTarget = !1, this.options.layoutAnchor !== !1 && a && !!a.resumingFrom == !!this.resumingFrom && !a.options.layoutScroll && a.target && this.animationProgress !== 1 ? this.createRelativeTarget(a, this.target, a.target) : this.relativeParent = this.relativeTarget = void 0), Xg.value && lv.calculatedTargetDeltas++);
}
getClosestProjectingParent() {
- if (!(!this.parent || dg(this.parent.latestValues) || pg(this.parent.latestValues))) return this.parent.isProjecting() ? this.parent : this.parent.getClosestProjectingParent();
+ if (!(!this.parent || ug(this.parent.latestValues) || fg(this.parent.latestValues))) return this.parent.isProjecting() ? this.parent : this.parent.getClosestProjectingParent();
}
isProjecting() {
return !!((this.relativeTarget || this.targetDelta || this.options.layoutRoot) && this.layout);
}
createRelativeTarget(e, t, n) {
- this.relativeParent = e, this.forceRelativeParentToResolveTarget(), this.relativeTarget = n_(), this.relativeTargetOrigin = n_(), z_(this.relativeTargetOrigin, t, n, this.options.layoutAnchor || void 0), O_(this.relativeTarget, this.relativeTargetOrigin);
+ this.relativeParent = e, this.forceRelativeParentToResolveTarget(), this.relativeTarget = t_(), this.relativeTargetOrigin = t_(), R_(this.relativeTargetOrigin, t, n, this.options.layoutAnchor || void 0), D_(this.relativeTarget, this.relativeTargetOrigin);
}
removeRelativeTarget() {
this.relativeParent = this.relativeTarget = void 0;
@@ -18233,11 +18234,11 @@ function hv({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
if ((this.isProjectionDirty || this.parent?.isProjectionDirty) && (n = !1), t && (this.isSharedProjectionDirty || this.isTransformDirty) && (n = !1), this.resolvedRelativeTargetAt === Bu.timestamp && (n = !1), n) return;
let { layout: r, layoutId: i } = this.options;
if (this.isTreeAnimating = !!(this.parent && this.parent.isTreeAnimating || this.currentAnimation || this.pendingAnimation), this.isTreeAnimating || (this.targetDelta = this.relativeTarget = void 0), !this.layout || !(r || i)) return;
- O_(this.layoutCorrected, this.layout.layoutBox);
+ D_(this.layoutCorrected, this.layout.layoutBox);
let a = this.treeScale.x, o = this.treeScale.y;
- xg(this.layoutCorrected, this.treeScale, this.path, t), e.layout && !e.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (e.target = e.layout.layoutBox, e.targetWithTransforms = n_());
+ bg(this.layoutCorrected, this.treeScale, this.path, t), e.layout && !e.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (e.target = e.layout.layoutBox, e.targetWithTransforms = t_());
let { target: s } = e;
- s ? (!this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (k_(this.prevProjectionDelta.x, this.projectionDelta.x), k_(this.prevProjectionDelta.y, this.projectionDelta.y)), F_(this.projectionDelta, this.layoutCorrected, s, this.latestValues), (this.treeScale.x !== a || this.treeScale.y !== o || !$_(this.projectionDelta.x, this.prevProjectionDelta.x) || !$_(this.projectionDelta.y, this.prevProjectionDelta.y)) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", s)), Zg.value && uv.calculatedProjections++) : this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
+ s ? (!this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (O_(this.prevProjectionDelta.x, this.projectionDelta.x), O_(this.prevProjectionDelta.y, this.projectionDelta.y)), P_(this.projectionDelta, this.layoutCorrected, s, this.latestValues), (this.treeScale.x !== a || this.treeScale.y !== o || !Q_(this.projectionDelta.x, this.prevProjectionDelta.x) || !Q_(this.projectionDelta.y, this.prevProjectionDelta.y)) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", s)), Xg.value && lv.calculatedProjections++) : this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
}
hide() {
this.isVisible = !1;
@@ -18253,22 +18254,22 @@ function hv({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
this.resumingFrom && !this.resumingFrom.instance && (this.resumingFrom = void 0);
}
createProjectionDeltas() {
- this.prevProjectionDelta = e_(), this.projectionDelta = e_(), this.projectionDeltaWithTransform = e_();
+ this.prevProjectionDelta = $g(), this.projectionDelta = $g(), this.projectionDeltaWithTransform = $g();
}
setAnimationOrigin(e, t = !1, n) {
- let r = this.snapshot, i = r ? r.latestValues : {}, a = { ...this.latestValues }, o = e_();
+ let r = this.snapshot, i = r ? r.latestValues : {}, a = { ...this.latestValues }, o = $g();
(!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !t;
- let s = n_(), c = (r ? r.source : void 0) !== (this.layout ? this.layout.source : void 0), l = this.getStack(), u = !l || l.members.length <= 1, d = !(!c || u || this.options.crossfade !== !0 || this.path.some(mte));
+ let s = t_(), c = (r ? r.source : void 0) !== (this.layout ? this.layout.source : void 0), l = this.getStack(), u = !l || l.members.length <= 1, d = !(!c || u || this.options.crossfade !== !0 || this.path.some(mte));
this.animationProgress = 0;
let f, p = n?.interpolateProjection(e);
this.mixTargetDelta = (t) => {
let n = t / 1e3, r = p?.(n);
- r ? (o.x.translate = r.x, o.x.scale = Vd(e.x.scale, 1, n), o.x.origin = e.x.origin, o.x.originPoint = e.x.originPoint, o.y.translate = r.y, o.y.scale = Vd(e.y.scale, 1, n), o.y.origin = e.y.origin, o.y.originPoint = e.y.originPoint) : (yv(o.x, e.x, n), yv(o.y, e.y, n)), this.setTargetDelta(o), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (z_(s, this.layout.layoutBox, this.relativeParent.layout.layoutBox, this.options.layoutAnchor || void 0), pte(this.relativeTarget, this.relativeTargetOrigin, s, n), f && Y_(this.relativeTarget, f) && (this.isProjectionDirty = !1), f ||= n_(), O_(f, this.relativeTarget)), c && (this.animationValues = a, Uee(a, i, this.latestValues, n, d, u)), r && r.rotate !== void 0 && (this.animationValues ||= a, this.animationValues.pathRotation = r.rotate), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = n;
+ r ? (o.x.translate = r.x, o.x.scale = Bd(e.x.scale, 1, n), o.x.origin = e.x.origin, o.x.originPoint = e.x.originPoint, o.y.translate = r.y, o.y.scale = Bd(e.y.scale, 1, n), o.y.origin = e.y.origin, o.y.originPoint = e.y.originPoint) : (vv(o.x, e.x, n), vv(o.y, e.y, n)), this.setTargetDelta(o), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (R_(s, this.layout.layoutBox, this.relativeParent.layout.layoutBox, this.options.layoutAnchor || void 0), pte(this.relativeTarget, this.relativeTargetOrigin, s, n), f && J_(this.relativeTarget, f) && (this.isProjectionDirty = !1), f ||= t_(), D_(f, this.relativeTarget)), c && (this.animationValues = a, Uee(a, i, this.latestValues, n, d, u)), r && r.rotate !== void 0 && (this.animationValues ||= a, this.animationValues.pathRotation = r.rotate), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = n;
}, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
}
startAnimation(e) {
- this.notifyListeners("animationStart"), this.currentAnimation?.stop(), this.resumingFrom?.currentAnimation?.stop(), this.pendingAnimation &&= (uf(this.pendingAnimation), void 0), this.pendingAnimation = lf.update(() => {
- lv.hasAnimatedSinceResize = !0, this.motionValue ||= qm(0), this.motionValue.jump(0, !1), this.currentAnimation = ov(this.motionValue, [0, 1e3], {
+ this.notifyListeners("animationStart"), this.currentAnimation?.stop(), this.resumingFrom?.currentAnimation?.stop(), this.pendingAnimation &&= (lf(this.pendingAnimation), void 0), this.pendingAnimation = cf.update(() => {
+ cv.hasAnimatedSinceResize = !0, this.motionValue ||= Km(0), this.motionValue.jump(0, !1), this.currentAnimation = av(this.motionValue, [0, 1e3], {
...e,
velocity: 0,
isSync: !0,
@@ -18278,7 +18279,7 @@ function hv({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
onComplete: () => {
e.onComplete && e.onComplete(), this.completeAnimation();
}
- }), Jf(this.currentAnimation, this), this.resumingFrom && (this.resumingFrom.currentAnimation = this.currentAnimation), this.pendingAnimation = void 0;
+ }), qf(this.currentAnimation, this), this.resumingFrom && (this.resumingFrom.currentAnimation = this.currentAnimation), this.pendingAnimation = void 0;
});
}
completeAnimation() {
@@ -18292,14 +18293,14 @@ function hv({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
applyTransformsToTarget() {
let e = this.getLead(), { targetWithTransforms: t, layout: n, latestValues: r } = e, { target: i } = e;
if (t && i && n) {
- if (this !== e && this.layout && n && wv(this.options.animationType, this.layout.layoutBox, n.layoutBox)) {
- i = this.target || n_();
- let t = M_(this.layout.layoutBox.x);
+ if (this !== e && this.layout && n && Cv(this.options.animationType, this.layout.layoutBox, n.layoutBox)) {
+ i = this.target || t_();
+ let t = j_(this.layout.layoutBox.x);
i.x.min = e.target.x.min, i.x.max = i.x.min + t;
- let n = M_(this.layout.layoutBox.y);
+ let n = j_(this.layout.layoutBox.y);
i.y.min = e.target.y.min, i.y.max = i.y.min + n;
}
- O_(t, i), Tg(t, r), F_(this.projectionDeltaWithTransform, this.layoutCorrected, t, r);
+ D_(t, i), wg(t, r), P_(this.projectionDeltaWithTransform, this.layoutCorrected, t, r);
}
}
registerSharedNode(e, t) {
@@ -18340,8 +18341,8 @@ function hv({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
let t = !1, { latestValues: n } = e;
if ((n.z || n.rotate || n.rotateX || n.rotateY || n.rotateZ || n.skewX || n.skewY) && (t = !0), !t) return;
let r = {};
- n.z && fv("z", e, r, this.animationValues);
- for (let t = 0; t < dv.length; t++) fv(`rotate${dv[t]}`, e, r, this.animationValues), fv(`skew${dv[t]}`, e, r, this.animationValues);
+ n.z && dv("z", e, r, this.animationValues);
+ for (let t = 0; t < uv.length; t++) dv(`rotate${uv[t]}`, e, r, this.animationValues), dv(`skew${uv[t]}`, e, r, this.animationValues);
e.render();
for (let t in r) e.setStaticValue(t, r[t]), this.animationValues && (this.animationValues[t] = r[t]);
e.scheduleRender();
@@ -18354,12 +18355,12 @@ function hv({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
}
let n = this.getTransformTemplate();
if (this.needsReset) {
- this.needsReset = !1, e.visibility = "", e.opacity = "", e.pointerEvents = cv(t?.pointerEvents) || "", e.transform = n ? n(this.latestValues, "") : "none";
+ this.needsReset = !1, e.visibility = "", e.opacity = "", e.pointerEvents = sv(t?.pointerEvents) || "", e.transform = n ? n(this.latestValues, "") : "none";
return;
}
let r = this.getLead();
if (!this.projectionDelta || !this.layout || !r.target) {
- this.options.layoutId && (e.opacity = this.latestValues.opacity === void 0 ? 1 : this.latestValues.opacity, e.pointerEvents = cv(t?.pointerEvents) || ""), this.hasProjected && !fg(this.latestValues) && (e.transform = n ? n({}, "") : "none", this.hasProjected = !1);
+ this.options.layoutId && (e.opacity = this.latestValues.opacity === void 0 ? 1 : this.latestValues.opacity, e.pointerEvents = sv(t?.pointerEvents) || ""), this.hasProjected && !dg(this.latestValues) && (e.transform = n ? n({}, "") : "none", this.hasProjected = !1);
return;
}
e.visibility = "";
@@ -18369,21 +18370,21 @@ function hv({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
n && (a = n(i, a)), e.transform = a;
let { x: o, y: s } = this.projectionDelta;
e.transformOrigin = `${o.origin * 100}% ${s.origin * 100}% 0`, e.opacity = r.animationValues ? r === this ? i.opacity ?? this.latestValues.opacity ?? 1 : this.preserveOpacity ? this.latestValues.opacity : i.opacityExit : r === this ? i.opacity === void 0 ? "" : i.opacity : i.opacityExit === void 0 ? 0 : i.opacityExit;
- for (let t in y_) {
+ for (let t in v_) {
if (i[t] === void 0) continue;
- let { correct: n, applyTo: o, isCSSVariable: s } = y_[t], c = a === "none" ? i[t] : n(i[t], r);
+ let { correct: n, applyTo: o, isCSSVariable: s } = v_[t], c = a === "none" ? i[t] : n(i[t], r);
if (o) {
let t = o.length;
for (let n = 0; n < t; n++) e[o[n]] = c;
} else s ? this.options.visualElement.renderState.vars[t] = c : e[t] = c;
}
- this.options.layoutId && (e.pointerEvents = r === this ? cv(t?.pointerEvents) || "" : "none");
+ this.options.layoutId && (e.pointerEvents = r === this ? sv(t?.pointerEvents) || "" : "none");
}
clearSnapshot() {
this.resumeFrom = this.snapshot = this.dragSnapshot = this.dragAncestor = void 0;
}
resetTree() {
- this.root.nodes.forEach((e) => e.currentAnimation?.stop()), this.root.nodes.forEach(gv), this.root.sharedNodes.clear();
+ this.root.nodes.forEach((e) => e.currentAnimation?.stop()), this.root.nodes.forEach(hv), this.root.sharedNodes.clear();
}
};
}
@@ -18394,31 +18395,31 @@ function ete(e) {
let t = e.resumeFrom?.snapshot || e.snapshot;
if (e.isLead() && e.layout && t && e.hasListeners("didUpdate")) {
let { layoutBox: n, measuredBox: r } = e.layout, { animationType: i } = e.options, a = t.source !== e.layout.source;
- if (i === "size") ev((e) => {
- let r = a ? t.measuredBox[e] : t.layoutBox[e], i = M_(r);
+ if (i === "size") $_((e) => {
+ let r = a ? t.measuredBox[e] : t.layoutBox[e], i = j_(r);
r.min = n[e].min, r.max = r.min + i;
});
else if (i === "x" || i === "y") {
let e = i === "x" ? "y" : "x";
- D_(a ? t.measuredBox[e] : t.layoutBox[e], n[e]);
- } else wv(i, t.layoutBox, n) && ev((r) => {
- let i = a ? t.measuredBox[r] : t.layoutBox[r], o = M_(n[r]);
+ E_(a ? t.measuredBox[e] : t.layoutBox[e], n[e]);
+ } else Cv(i, t.layoutBox, n) && $_((r) => {
+ let i = a ? t.measuredBox[r] : t.layoutBox[r], o = j_(n[r]);
i.max = i.min + o, e.relativeTarget && !e.currentAnimation && (e.isProjectionDirty = !0, e.relativeTarget[r].max = e.relativeTarget[r].min + o);
});
- let o = e_();
- F_(o, n, t.layoutBox);
- let s = e_();
- a ? F_(s, e.applyTransform(r, !0), t.measuredBox) : F_(s, n, t.layoutBox);
- let c = !q_(o), l = !1;
+ let o = $g();
+ P_(o, n, t.layoutBox);
+ let s = $g();
+ a ? P_(s, e.applyTransform(r, !0), t.measuredBox) : P_(s, n, t.layoutBox);
+ let c = !K_(o), l = !1;
if (!e.resumeFrom) {
let r = e.getClosestProjectingParent();
if (r && !r.resumeFrom) {
let { snapshot: i, layout: a } = r;
if (i && a) {
- let o = e.options.layoutAnchor || void 0, s = n_();
- z_(s, t.layoutBox, i.layoutBox, o);
- let c = n_();
- z_(c, n, a.layoutBox, o), Z_(s, c) || (l = !0), r.options.layoutRoot && (e.relativeTarget = c, e.relativeTargetOrigin = s, e.relativeParent = r);
+ let o = e.options.layoutAnchor || void 0, s = t_();
+ R_(s, t.layoutBox, i.layoutBox, o);
+ let c = t_();
+ R_(c, n, a.layoutBox, o), X_(s, c) || (l = !0), r.options.layoutRoot && (e.relativeTarget = c, e.relativeTargetOrigin = s, e.relativeParent = r);
}
}
}
@@ -18437,7 +18438,7 @@ function ete(e) {
e.options.transition = void 0;
}
function tte(e) {
- Zg.value && uv.nodes++, e.parent && (e.isProjecting() || (e.isProjectionDirty = e.parent.isProjectionDirty), e.isSharedProjectionDirty ||= !!(e.isProjectionDirty || e.parent.isProjectionDirty || e.parent.isSharedProjectionDirty), e.isTransformDirty ||= e.parent.isTransformDirty);
+ Xg.value && lv.nodes++, e.parent && (e.isProjecting() || (e.isProjectionDirty = e.parent.isProjectionDirty), e.isSharedProjectionDirty ||= !!(e.isProjectionDirty || e.parent.isProjectionDirty || e.parent.isSharedProjectionDirty), e.isTransformDirty ||= e.parent.isTransformDirty);
}
function nte(e) {
e.isProjectionDirty = e.isSharedProjectionDirty = e.isTransformDirty = !1;
@@ -18445,20 +18446,20 @@ function nte(e) {
function rte(e) {
e.clearSnapshot();
}
-function gv(e) {
+function hv(e) {
e.clearMeasurements();
}
function ite(e) {
e.isLayoutDirty = !0, e.updateLayout();
}
-function _v(e) {
+function gv(e) {
e.isLayoutDirty = !1;
}
function ate(e) {
let { snapshot: t, dragAncestor: n } = e, r = n?.layout;
if (!t || !r || e.resumeFrom || e.isAnimationBlocked) return;
let i = n.dragSnapshot;
- ev((e) => Sg(t.layoutBox[e], r.layoutBox[e].min - i.layoutBox[e].min));
+ $_((e) => xg(t.layoutBox[e], r.layoutBox[e].min - i.layoutBox[e].min));
}
function ote(e) {
e.isAnimationBlocked && e.layout && !e.isLayoutDirty && (e.snapshot = e.dragSnapshot || e.layout, e.isLayoutDirty = !0);
@@ -18470,7 +18471,7 @@ function cte(e) {
let { visualElement: t } = e.options;
t && t.getProps().onBeforeLayoutMeasure && t.notify("BeforeLayoutMeasure"), e.resetTransform();
}
-function vv(e) {
+function _v(e) {
e.finishAnimation(), e.targetDelta = e.relativeTarget = e.target = void 0, e.isProjectionDirty = !0;
}
function lte(e) {
@@ -18485,14 +18486,14 @@ function dte(e) {
function fte(e) {
e.removeLeadSnapshot();
}
-function yv(e, t, n) {
- e.translate = Vd(t.translate, 0, n), e.scale = Vd(t.scale, 1, n), e.origin = t.origin, e.originPoint = t.originPoint;
+function vv(e, t, n) {
+ e.translate = Bd(t.translate, 0, n), e.scale = Bd(t.scale, 1, n), e.origin = t.origin, e.originPoint = t.originPoint;
}
-function bv(e, t, n, r) {
- e.min = Vd(t.min, n.min, r), e.max = Vd(t.max, n.max, r);
+function yv(e, t, n, r) {
+ e.min = Bd(t.min, n.min, r), e.max = Bd(t.max, n.max, r);
}
function pte(e, t, n, r) {
- bv(e.x, t.x, n.x, r), bv(e.y, t.y, n.y, r);
+ yv(e.x, t.x, n.x, r), yv(e.y, t.y, n.y, r);
}
function mte(e) {
return e.animationValues && e.animationValues.opacityExit !== void 0;
@@ -18505,65 +18506,65 @@ var hte = {
.1,
1
]
-}, xv = (e) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(e), Sv = xv("applewebkit/") && !xv("chrome/") ? Math.round : fu;
-function Cv(e) {
- e.min = Sv(e.min), e.max = Sv(e.max);
+}, bv = (e) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(e), xv = bv("applewebkit/") && !bv("chrome/") ? Math.round : fu;
+function Sv(e) {
+ e.min = xv(e.min), e.max = xv(e.max);
}
function gte(e) {
- Cv(e.x), Cv(e.y);
+ Sv(e.x), Sv(e.y);
}
-function wv(e, t, n) {
- return e === "position" || e === "preserve-aspect" && !N_(Q_(t), Q_(n), .2);
+function Cv(e, t, n) {
+ return e === "position" || e === "preserve-aspect" && !M_(Z_(t), Z_(n), .2);
}
function _te(e) {
return e !== e.root && e.scroll?.wasRoot;
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.mjs
-var vte = hv({
- attachResizeListener: (e, t) => sv(e, "resize", t),
+var vte = mv({
+ attachResizeListener: (e, t) => ov(e, "resize", t),
measureScroll: () => ({
x: document.documentElement.scrollLeft || document.body?.scrollLeft || 0,
y: document.documentElement.scrollTop || document.body?.scrollTop || 0
}),
checkIsScrollRoot: () => !0
-}), Tv = { current: void 0 }, Ev = hv({
+}), wv = { current: void 0 }, Tv = mv({
measureScroll: (e) => ({
x: e.scrollLeft,
y: e.scrollTop
}),
defaultParent: () => {
- if (!Tv.current) {
+ if (!wv.current) {
let e = new vte({});
- e.mount(window), e.setOptions({ layoutScroll: !0 }), Tv.current = e;
+ e.mount(window), e.setOptions({ layoutScroll: !0 }), wv.current = e;
}
- return Tv.current;
+ return wv.current;
},
resetTransform: (e, t) => {
e.style.transform = t === void 0 ? "none" : t;
},
checkIsScrollRoot: (e) => window.getComputedStyle(e).position === "fixed"
-}), Dv = (0, D.createContext)({
+}), Ev = (0, D.createContext)({
transformPagePoint: (e) => e,
isStatic: !1,
reducedMotion: "never"
});
//#endregion
//#region node_modules/framer-motion/dist/es/utils/use-composed-ref.mjs
-function Ov(e, t) {
+function Dv(e, t) {
if (typeof e == "function") return e(t);
e != null && (e.current = t);
}
function yte(...e) {
return (t) => {
let n = !1, r = e.map((e) => {
- let r = Ov(e, t);
+ let r = Dv(e, t);
return !n && typeof r == "function" && (n = !0), r;
});
if (n) return () => {
for (let t = 0; t < r.length; t++) {
let n = r[t];
- typeof n == "function" ? n() : Ov(e[t], null);
+ typeof n == "function" ? n() : Dv(e[t], null);
}
};
};
@@ -18576,8 +18577,8 @@ function bte(...e) {
var xte = class extends D.Component {
getSnapshotBeforeUpdate(e) {
let t = this.props.childRef.current;
- if (Gh(t) && e.isPresent && !this.props.isPresent && this.props.pop !== !1) {
- let e = t.offsetParent, n = Gh(e) && e.offsetWidth || 0, r = Gh(e) && e.offsetHeight || 0, i = getComputedStyle(t), a = this.props.sizeRef.current;
+ if (Wh(t) && e.isPresent && !this.props.isPresent && this.props.pop !== !1) {
+ let e = t.offsetParent, n = Wh(e) && e.offsetWidth || 0, r = Wh(e) && e.offsetHeight || 0, i = getComputedStyle(t), a = this.props.sizeRef.current;
a.height = parseFloat(i.height), a.width = parseFloat(i.width), a.top = t.offsetTop, a.left = t.offsetLeft, a.right = n - a.width - a.left, a.bottom = r - a.height - a.top, a.direction = i.direction;
}
return null;
@@ -18596,7 +18597,7 @@ function Ste({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop:
right: 0,
bottom: 0,
direction: "ltr"
- }), { nonce: l } = (0, D.useContext)(Dv), u = bte(s, a === !1 ? void 0 : e.props?.ref ?? e?.ref);
+ }), { nonce: l } = (0, D.useContext)(Ev), u = bte(s, a === !1 ? void 0 : e.props?.ref ?? e?.ref);
return (0, D.useInsertionEffect)(() => {
let { width: e, height: u, top: d, left: f, right: p, bottom: m, direction: h } = c.current;
if (t || a === !1 || !s.current || !e || !u) return;
@@ -18670,7 +18671,7 @@ function wte() {
}
//#endregion
//#region node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.mjs
-function kv(e = !0) {
+function Ov(e = !0) {
let t = (0, D.useContext)(ru);
if (t === null) return [!0, null];
let { isPresent: n, onExitComplete: r, register: i } = t, a = (0, D.useId)();
@@ -18684,7 +18685,7 @@ function kv(e = !0) {
]);
return !n && r ? [!1, o] : [!0];
}
-function Av() {
+function kv() {
return Tte((0, D.useContext)(ru));
}
function Tte(e) {
@@ -18692,8 +18693,8 @@ function Tte(e) {
}
//#endregion
//#region node_modules/framer-motion/dist/es/components/AnimatePresence/utils.mjs
-var jv = (e) => e.key || "";
-function Mv(e) {
+var Av = (e) => e.key || "";
+function jv(e) {
let t = [];
return D.Children.forEach(e, (e) => {
(0, D.isValidElement)(e) && t.push(e);
@@ -18701,8 +18702,8 @@ function Mv(e) {
}
//#endregion
//#region node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs
-var Nv = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presenceAffectsLayout: i = !0, mode: a = "sync", propagate: o = !1, anchorX: s = "left", anchorY: c = "top", root: l }) => {
- let [u, d] = kv(o), f = (0, D.useMemo)(() => Mv(e), [e]), p = o && !u ? [] : f.map(jv), m = (0, D.useRef)(!0), h = tu(() => /* @__PURE__ */ new Map()), g = (0, D.useRef)(/* @__PURE__ */ new Set()), [_, v] = (0, D.useState)(f), [y, b] = (0, D.useState)(f);
+var Mv = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presenceAffectsLayout: i = !0, mode: a = "sync", propagate: o = !1, anchorX: s = "left", anchorY: c = "top", root: l }) => {
+ let [u, d] = Ov(o), f = (0, D.useMemo)(() => jv(e), [e]), p = o && !u ? [] : f.map(Av), m = (0, D.useRef)(!0), h = tu(() => /* @__PURE__ */ new Map()), g = (0, D.useRef)(/* @__PURE__ */ new Set()), [_, v] = (0, D.useState)(f), [y, b] = (0, D.useState)(f);
nu(() => {
o && !u && !y.length && d?.();
}, [
@@ -18713,7 +18714,7 @@ var Nv = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presence
]), nu(() => {
m.current = !1;
for (let e = 0; e < y.length; e++) {
- let t = jv(y[e]);
+ let t = Av(y[e]);
p.includes(t) ? (h.delete(t), g.current.delete(t)) : h.get(t) !== !0 && h.set(t, !1);
}
}, [
@@ -18725,14 +18726,14 @@ var Nv = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presence
if (f !== _) {
let e = [...f], t = 0;
for (let n of y) {
- let r = p.indexOf(jv(n));
+ let r = p.indexOf(Av(n));
r === -1 ? (e.splice(t++, 0, n), x.push(n)) : t = r + x.length + 1;
}
- return x.every((e) => h.get(jv(e))) ? e = f : a === "wait" && (e = x), b(Mv(e)), v(f), null;
+ return x.every((e) => h.get(Av(e))) ? e = f : a === "wait" && (e = x), b(jv(e)), v(f), null;
}
let { forceRender: S } = (0, D.useContext)(eu);
return (0, O.jsx)(O.Fragment, { children: y.map((e) => {
- let _ = jv(e), b = o && !u ? !1 : f === y || p.includes(_);
+ let _ = Av(e), b = o && !u ? !1 : f === y || p.includes(_);
return (0, O.jsx)(Cte, {
isPresent: b,
initial: !m.current || n ? void 0 : !1,
@@ -18754,7 +18755,7 @@ var Nv = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presence
children: e
}, _);
}) });
-}, Pv = (0, D.createContext)({ strict: !1 }), Fv = {
+}, Nv = (0, D.createContext)({ strict: !1 }), Pv = {
animation: [
"animate",
"variants",
@@ -18791,34 +18792,34 @@ var Nv = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presence
"onViewportLeave"
],
layout: ["layout", "layoutId"]
-}, Iv = !1;
+}, Fv = !1;
function Ete() {
- if (Iv) return;
+ if (Fv) return;
let e = {};
- for (let t in Fv) e[t] = { isEnabled: (e) => Fv[t].some((t) => !!e[t]) };
- h_(e), Iv = !0;
+ for (let t in Pv) e[t] = { isEnabled: (e) => Pv[t].some((t) => !!e[t]) };
+ m_(e), Fv = !0;
}
-function Lv() {
+function Iv() {
return Ete(), kee();
}
//#endregion
//#region node_modules/framer-motion/dist/es/motion/features/load-features.mjs
function Dte(e) {
- let t = Lv();
+ let t = Iv();
for (let n in e) t[n] = {
...t[n],
...e[n]
};
- h_(t);
+ m_(t);
}
//#endregion
//#region node_modules/framer-motion/dist/es/components/MotionConfig/index.mjs
function Ote({ children: e, ...t }) {
- let n = (0, D.useContext)(Dv);
+ let n = (0, D.useContext)(Ev);
t = {
...n,
...t
- }, t.transition = Jm(t.transition, n.transition), t.isStatic = tu(() => t.isStatic);
+ }, t.transition = qm(t.transition, n.transition), t.isStatic = tu(() => t.isStatic);
let r = (0, D.useMemo)(() => t, [
JSON.stringify(t.transition),
t.transformPagePoint,
@@ -18826,22 +18827,22 @@ function Ote({ children: e, ...t }) {
t.skipAnimations,
t.isValidProp
]);
- return (0, O.jsx)(Dv.Provider, {
+ return (0, O.jsx)(Ev.Provider, {
value: r,
children: e
});
}
//#endregion
//#region node_modules/framer-motion/dist/es/context/MotionContext/index.mjs
-var Rv = /* @__PURE__ */ (0, D.createContext)({});
+var Lv = /* @__PURE__ */ (0, D.createContext)({});
//#endregion
//#region node_modules/framer-motion/dist/es/context/MotionContext/utils.mjs
function kte(e, t) {
- if (c_(e)) {
+ if (s_(e)) {
let { initial: t, animate: n } = e;
return {
- initial: t === !1 || a_(t) ? t : void 0,
- animate: a_(n) ? n : void 0
+ initial: t === !1 || i_(t) ? t : void 0,
+ animate: i_(n) ? n : void 0
};
}
return e.inherit === !1 ? {} : t;
@@ -18849,18 +18850,18 @@ function kte(e, t) {
//#endregion
//#region node_modules/framer-motion/dist/es/context/MotionContext/create.mjs
function Ate(e) {
- let { initial: t, animate: n } = kte(e, (0, D.useContext)(Rv));
+ let { initial: t, animate: n } = kte(e, (0, D.useContext)(Lv));
return (0, D.useMemo)(() => ({
initial: t,
animate: n
- }), [zv(t), zv(n)]);
+ }), [Rv(t), Rv(n)]);
}
-function zv(e) {
+function Rv(e) {
return Array.isArray(e) ? e.join(" ") : e;
}
//#endregion
//#region node_modules/framer-motion/dist/es/render/html/utils/create-render-state.mjs
-var Bv = () => ({
+var zv = () => ({
style: {},
transform: {},
transformOrigin: {},
@@ -18868,18 +18869,18 @@ var Bv = () => ({
});
//#endregion
//#region node_modules/framer-motion/dist/es/render/html/use-props.mjs
-function Vv(e, t, n) {
- for (let r in t) !gh(t[r]) && !b_(r, n) && (e[r] = t[r]);
+function Bv(e, t, n) {
+ for (let r in t) !hh(t[r]) && !y_(r, n) && (e[r] = t[r]);
}
function jte({ transformTemplate: e }, t) {
return (0, D.useMemo)(() => {
- let n = Bv();
- return ig(n, t, e), Object.assign({}, n.vars, n.style);
+ let n = zv();
+ return rg(n, t, e), Object.assign({}, n.vars, n.style);
}, [t]);
}
function Mte(e, t) {
let n = e.style || {}, r = {};
- return Vv(r, n, e), Object.assign(r, jte(e, t)), r;
+ return Bv(r, n, e), Object.assign(r, jte(e, t)), r;
}
function Nte(e, t) {
let n = {}, r = Mte(e, t);
@@ -18887,23 +18888,23 @@ function Nte(e, t) {
}
//#endregion
//#region node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.mjs
-var Hv = () => ({
- ...Bv(),
+var Vv = () => ({
+ ...zv(),
attrs: {}
});
//#endregion
//#region node_modules/framer-motion/dist/es/render/svg/use-props.mjs
function Pte(e, t, n, r) {
let i = (0, D.useMemo)(() => {
- let n = Hv();
- return og(n, t, C_(r), e.transformTemplate, e.style), {
+ let n = Vv();
+ return ag(n, t, S_(r), e.transformTemplate, e.style), {
...n.attrs,
style: { ...n.style }
};
}, [t]);
if (e.style) {
let t = {};
- Vv(t, e.style, e), i.style = {
+ Bv(t, e.style, e), i.style = {
...t,
...i.style
};
@@ -18913,17 +18914,17 @@ function Pte(e, t, n, r) {
//#endregion
//#region node_modules/framer-motion/dist/es/motion/utils/valid-prop.mjs
var Fte = /* @__PURE__ */ new Set(/* @__PURE__ */ "animate.exit.variants.initial.style.values.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport".split("."));
-function Uv(e) {
+function Hv(e) {
return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || e.startsWith("onLayout") || Fte.has(e);
}
//#endregion
//#region node_modules/framer-motion/dist/es/render/dom/utils/filter-props.mjs
function Ite(e, t) {
- return e.startsWith("on") ? !Uv(e) : t?.(e) ?? !Uv(e);
+ return e.startsWith("on") ? !Hv(e) : t?.(e) ?? !Hv(e);
}
function Lte(e, t, n, r) {
let i = {};
- for (let a in e) (a !== "values" || typeof e.values != "object") && (gh(e[a]) || (Ite(a, r) || n === !0 && Uv(a) || !t && !Uv(a) || e.draggable && a.startsWith("onDrag")) && (i[a] = e[a]));
+ for (let a in e) (a !== "values" || typeof e.values != "object") && (hh(e[a]) || (Ite(a, r) || n === !0 && Hv(a) || !t && !Hv(a) || e.draggable && a.startsWith("onDrag")) && (i[a] = e[a]));
return i;
}
//#endregion
@@ -18957,17 +18958,17 @@ var Rte = [
];
//#endregion
//#region node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.mjs
-function Wv(e) {
+function Uv(e) {
return typeof e != "string" || e.includes("-") ? !1 : !!(Rte.indexOf(e) > -1 || /[A-Z]/u.test(e));
}
//#endregion
//#region node_modules/framer-motion/dist/es/render/dom/use-render.mjs
function zte(e, t, n, { latestValues: r }, i, a = !1, o, s) {
- let c = (o ?? Wv(e) ? Pte : Nte)(t, r, i, e), l = Lte(t, typeof e == "string", a, s), u = e === D.Fragment ? {} : {
+ let c = (o ?? Uv(e) ? Pte : Nte)(t, r, i, e), l = Lte(t, typeof e == "string", a, s), u = e === D.Fragment ? {} : {
...l,
...c,
ref: n
- }, { children: d } = t, f = (0, D.useMemo)(() => gh(d) ? d.get() : d, [d]);
+ }, { children: d } = t, f = (0, D.useMemo)(() => hh(d) ? d.get() : d, [d]);
return (0, D.createElement)(e, {
...u,
children: f
@@ -18983,16 +18984,16 @@ function Bte({ scrapeMotionValuesFromProps: e, createRenderState: t }, n, r, i)
}
function Vte(e, t, n, r) {
let i = {}, a = r(e, {});
- for (let e in a) i[e] = cv(a[e]);
- let { initial: o, animate: s } = e, c = c_(e), l = l_(e);
+ for (let e in a) i[e] = sv(a[e]);
+ let { initial: o, animate: s } = e, c = s_(e), l = c_(e);
t && l && !c && e.inherit !== !1 && (o === void 0 && (o = t.initial), s === void 0 && (s = t.animate));
let u = n ? n.initial === !1 : !1;
u ||= o === !1;
let d = u ? s : o;
- if (d && typeof d != "boolean" && !i_(d)) {
+ if (d && typeof d != "boolean" && !r_(d)) {
let t = Array.isArray(d) ? d : [d];
for (let n = 0; n < t.length; n++) {
- let r = ch(e, t[n]);
+ let r = sh(e, t[n]);
if (r) {
let { transitionEnd: e, transition: t, ...n } = r;
for (let e in n) {
@@ -19009,19 +19010,19 @@ function Vte(e, t, n, r) {
}
return i;
}
-var Gv = (e) => (t, n) => {
- let r = (0, D.useContext)(Rv), i = (0, D.useContext)(ru), a = () => Bte(e, t, r, i);
+var Wv = (e) => (t, n) => {
+ let r = (0, D.useContext)(Lv), i = (0, D.useContext)(ru), a = () => Bte(e, t, r, i);
return n ? a() : tu(a);
-}, Hte = /*@__PURE__*/ Gv({
- scrapeMotionValuesFromProps: x_,
- createRenderState: Bv
-}), Ute = /*@__PURE__*/ Gv({
- scrapeMotionValuesFromProps: w_,
- createRenderState: Hv
+}, Hte = /*@__PURE__*/ Wv({
+ scrapeMotionValuesFromProps: b_,
+ createRenderState: zv
+}), Ute = /*@__PURE__*/ Wv({
+ scrapeMotionValuesFromProps: C_,
+ createRenderState: Vv
}), Wte = Symbol.for("motionComponentSymbol");
//#endregion
//#region node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.mjs
-function Kv(e, t, n) {
+function Gv(e, t, n) {
let r = (0, D.useRef)(n);
(0, D.useInsertionEffect)(() => {
r.current = n;
@@ -19040,16 +19041,16 @@ function Kv(e, t, n) {
}
//#endregion
//#region node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.mjs
-var qv = (0, D.createContext)({});
+var Kv = (0, D.createContext)({});
//#endregion
//#region node_modules/framer-motion/dist/es/utils/is-ref-object.mjs
-function Jv(e) {
+function qv(e) {
return e && typeof e == "object" && Object.prototype.hasOwnProperty.call(e, "current");
}
//#endregion
//#region node_modules/framer-motion/dist/es/motion/utils/use-visual-element.mjs
-function Yv(e, t, n, r, i, a) {
- let { visualElement: o } = (0, D.useContext)(Rv), s = (0, D.useContext)(Pv), c = (0, D.useContext)(ru), l = (0, D.useContext)(Dv), u = l.reducedMotion, d = l.skipAnimations, f = (0, D.useRef)(null), p = (0, D.useRef)(!1);
+function Jv(e, t, n, r, i, a) {
+ let { visualElement: o } = (0, D.useContext)(Lv), s = (0, D.useContext)(Nv), c = (0, D.useContext)(ru), l = (0, D.useContext)(Ev), u = l.reducedMotion, d = l.skipAnimations, f = (0, D.useRef)(null), p = (0, D.useRef)(!1);
r ||= s.renderer, !f.current && r && (f.current = r(e, {
visualState: t,
parent: o,
@@ -19060,13 +19061,13 @@ function Yv(e, t, n, r, i, a) {
skipAnimations: d,
isSVG: a
}), p.current && f.current && (f.current.manuallyAnimateOnMount = !0));
- let m = f.current, h = (0, D.useContext)(qv);
+ let m = f.current, h = (0, D.useContext)(Kv);
m && !m.projection && i && (m.type === "html" || m.type === "svg") && Gte(f.current, n, i, h);
let g = (0, D.useRef)(!1);
(0, D.useInsertionEffect)(() => {
m && g.current && m.update(n, c);
});
- let _ = n[bh], v = (0, D.useRef)(!!_ && typeof window < "u" && !window.MotionHandoffIsComplete?.(_) && window.MotionHasOptimisedAnimation?.(_));
+ let _ = n[yh], v = (0, D.useRef)(!!_ && typeof window < "u" && !window.MotionHandoffIsComplete?.(_) && window.MotionHasOptimisedAnimation?.(_));
return nu(() => {
p.current && m && (m.animationState?.animateChanges(), m.enteringChildren = void 0);
}, []), nu(() => {
@@ -19079,10 +19080,10 @@ function Yv(e, t, n, r, i, a) {
}
function Gte(e, t, n, r) {
let { layoutId: i, layout: a, drag: o, dragConstraints: s, layoutScroll: c, layoutRoot: l, layoutAnchor: u, layoutCrossfade: d } = t;
- e.projection = new n(e.latestValues, t["data-framer-portal-id"] ? void 0 : Xv(e.parent)), e.projection.setOptions({
+ e.projection = new n(e.latestValues, t["data-framer-portal-id"] ? void 0 : Yv(e.parent)), e.projection.setOptions({
layoutId: i,
layout: a,
- alwaysMeasureLayout: !!o || s && Jv(s),
+ alwaysMeasureLayout: !!o || s && qv(s),
visualElement: e,
animationType: typeof a == "string" ? a : "both",
initialPromotionConfig: r,
@@ -19092,31 +19093,31 @@ function Gte(e, t, n, r) {
layoutAnchor: u
});
}
-function Xv(e) {
- if (e) return e.options.allowProjection === !1 ? Xv(e.parent) : e.projection;
+function Yv(e) {
+ if (e) return e.options.allowProjection === !1 ? Yv(e.parent) : e.projection;
}
//#endregion
//#region node_modules/framer-motion/dist/es/motion/index.mjs
-function Zv(e, { forwardMotionProps: t = !1, type: n } = {}, r, i) {
+function Xv(e, { forwardMotionProps: t = !1, type: n } = {}, r, i) {
r && Dte(r);
- let a = n ? n === "svg" : Wv(e), o = a ? Ute : Hte;
+ let a = n ? n === "svg" : Uv(e), o = a ? Ute : Hte;
function s(n, s) {
let c, l = {
- ...(0, D.useContext)(Dv),
+ ...(0, D.useContext)(Ev),
...n,
layoutId: Kte(n)
}, { isStatic: u, isValidProp: d } = l, f = Ate(n), p = o(n, u);
if (!u && typeof window < "u") {
qte(l, r);
let t = Jte(l);
- c = t.MeasureLayout, f.visualElement = Yv(e, p, l, i, t.ProjectionNode, a);
+ c = t.MeasureLayout, f.visualElement = Jv(e, p, l, i, t.ProjectionNode, a);
}
- return (0, O.jsxs)(Rv.Provider, {
+ return (0, O.jsxs)(Lv.Provider, {
value: f,
children: [c && f.visualElement ? (0, O.jsx)(c, {
visualElement: f.visualElement,
...l
- }) : null, zte(e, n, Kv(p, f.visualElement, s), p, u, t, a, d)]
+ }) : null, zte(e, n, Gv(p, f.visualElement, s), p, u, t, a, d)]
});
}
s.displayName = `motion.${typeof e == "string" ? e : `create(${e.displayName ?? e.name ?? ""})`}`;
@@ -19128,10 +19129,10 @@ function Kte({ layoutId: e }) {
return t && e !== void 0 ? t + "-" + e : e;
}
function qte(e, t) {
- (0, D.useContext)(Pv).strict;
+ (0, D.useContext)(Nv).strict;
}
function Jte(e) {
- let { drag: t, layout: n } = Lv();
+ let { drag: t, layout: n } = Iv();
if (!t && !n) return {};
let r = {
...t,
@@ -19145,19 +19146,19 @@ function Jte(e) {
//#endregion
//#region node_modules/framer-motion/dist/es/render/components/create-proxy.mjs
function Yte(e, t) {
- if (typeof Proxy > "u") return Zv;
- let n = /* @__PURE__ */ new Map(), r = (n, r) => Zv(n, r, e, t);
- return new Proxy((e, t) => r(e, t), { get: (i, a) => a === "create" ? r : (n.has(a) || n.set(a, Zv(a, void 0, e, t)), n.get(a)) });
+ if (typeof Proxy > "u") return Xv;
+ let n = /* @__PURE__ */ new Map(), r = (n, r) => Xv(n, r, e, t);
+ return new Proxy((e, t) => r(e, t), { get: (i, a) => a === "create" ? r : (n.has(a) || n.set(a, Xv(a, void 0, e, t)), n.get(a)) });
}
//#endregion
//#region node_modules/framer-motion/dist/es/render/dom/create-visual-element.mjs
-var Xte = (e, t) => t.isSVG ?? Wv(e) ? new Pee(t) : new Mee(t, { allowProjection: e !== D.Fragment }), Zte = class extends __ {
+var Xte = (e, t) => t.isSVG ?? Uv(e) ? new Pee(t) : new Mee(t, { allowProjection: e !== D.Fragment }), Zte = class extends g_ {
constructor(e) {
super(e), e.animationState ||= Iee(e);
}
updateAnimationControlsSubscription() {
let { animate: e } = this.node.getProps();
- i_(e) && (this.unmountControls = e.subscribe(this.node));
+ r_(e) && (this.unmountControls = e.subscribe(this.node));
}
mount() {
this.updateAnimationControlsSubscription();
@@ -19171,7 +19172,7 @@ var Xte = (e, t) => t.isSVG ?? Wv(e) ? new Pee(t) : new Mee(t, { allowProjection
}
}, Qte = 0, $te = {
animation: { Feature: Zte },
- exit: { Feature: class extends __ {
+ exit: { Feature: class extends g_ {
constructor() {
super(...arguments), this.id = Qte++;
}
@@ -19184,7 +19185,7 @@ var Xte = (e, t) => t.isSVG ?? Wv(e) ? new Pee(t) : new Mee(t, { allowProjection
if (this.exit === !0) {
let { initial: e } = this.node.getProps();
if (e && !Array.isArray(e)) {
- let { transition: t, transitionEnd: n, ...r } = lh(this.node, e) || {};
+ let { transition: t, transitionEnd: n, ...r } = ch(this.node, e) || {};
for (let e in r) this.node.getValue(e)?.jump(r[e]);
}
this.node.blockInitialAnimation = !1, n.reset(), n.animateChanges();
@@ -19206,28 +19207,28 @@ var Xte = (e, t) => t.isSVG ?? Wv(e) ? new Pee(t) : new Mee(t, { allowProjection
};
//#endregion
//#region node_modules/framer-motion/dist/es/events/event-info.mjs
-function Qv(e) {
+function Zv(e) {
return { point: {
x: e.pageX,
y: e.pageY
} };
}
-var ene = (e) => (t) => Rg(t) && e(t, Qv(t));
+var ene = (e) => (t) => Lg(t) && e(t, Zv(t));
//#endregion
//#region node_modules/framer-motion/dist/es/events/add-pointer-event.mjs
-function $v(e, t, n, r) {
- return sv(e, t, ene(n), r);
+function Qv(e, t, n, r) {
+ return ov(e, t, ene(n), r);
}
//#endregion
//#region node_modules/framer-motion/dist/es/utils/get-context-window.mjs
-var ey = ({ current: e }) => e ? e.ownerDocument.defaultView : null, ty = (e, t) => Math.abs(e - t);
+var $v = ({ current: e }) => e ? e.ownerDocument.defaultView : null, ey = (e, t) => Math.abs(e - t);
function tne(e, t) {
- let n = ty(e.x, t.x), r = ty(e.y, t.y);
+ let n = ey(e.x, t.x), r = ey(e.y, t.y);
return Math.sqrt(n ** 2 + r ** 2);
}
//#endregion
//#region node_modules/framer-motion/dist/es/gestures/pan/PanSession.mjs
-var ny = /*#__PURE__*/ new Set(["auto", "scroll"]), ry = class {
+var ty = /*#__PURE__*/ new Set(["auto", "scroll"]), ny = class {
constructor(e, t, { transformPagePoint: n, contextWindow: r = window, dragSnapToOrigin: i = !1, distanceThreshold: a = 3, element: o } = {}) {
if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.lastRawMoveEventInfo = null, this.handlers = {}, this.contextWindow = window, this.scrollPositions = /* @__PURE__ */ new Map(), this.removeScrollListeners = null, this.onElementScroll = (e) => {
this.handleScroll(e.target);
@@ -19235,8 +19236,8 @@ var ny = /*#__PURE__*/ new Set(["auto", "scroll"]), ry = class {
this.handleScroll(window);
}, this.updatePoint = () => {
if (!(this.lastMoveEvent && this.lastMoveEventInfo)) return;
- this.hasPendingMove = !1, this.lastRawMoveEventInfo && (this.lastMoveEventInfo = iy(this.lastRawMoveEventInfo, this.transformPagePoint));
- let e = oy(this.lastMoveEventInfo, this.history), t = this.startEvent !== null, n = tne(e.offset, {
+ this.hasPendingMove = !1, this.lastRawMoveEventInfo && (this.lastMoveEventInfo = ry(this.lastRawMoveEventInfo, this.transformPagePoint));
+ let e = ay(this.lastMoveEventInfo, this.history), t = this.startEvent !== null, n = tne(e.offset, {
x: 0,
y: 0
}) >= this.distanceThreshold;
@@ -19249,33 +19250,33 @@ var ny = /*#__PURE__*/ new Set(["auto", "scroll"]), ry = class {
let { onStart: i, onMove: a } = this.handlers;
t || (i && i(this.lastMoveEvent, e), this.startEvent = this.lastMoveEvent), a && a(this.lastMoveEvent, e);
}, this.handlePointerMove = (e, t) => {
- this.lastMoveEvent = e, this.lastRawMoveEventInfo = t, this.lastMoveEventInfo = iy(t, this.transformPagePoint), this.hasPendingMove = !0, lf.update(this.updatePoint, !0);
+ this.lastMoveEvent = e, this.lastRawMoveEventInfo = t, this.lastMoveEventInfo = ry(t, this.transformPagePoint), this.hasPendingMove = !0, cf.update(this.updatePoint, !0);
}, this.handlePointerUp = (e, t) => {
this.hasPendingMove && this.updatePoint(), this.end();
let { onEnd: n, onSessionEnd: r, resumeAnimation: i } = this.handlers;
if ((this.dragSnapToOrigin || !this.startEvent) && i && i(), !(this.lastMoveEvent && this.lastMoveEventInfo)) return;
- let a = oy(e.type === "pointercancel" ? this.lastMoveEventInfo : iy(t, this.transformPagePoint), this.history);
+ let a = ay(e.type === "pointercancel" ? this.lastMoveEventInfo : ry(t, this.transformPagePoint), this.history);
this.startEvent && n && n(e, a), r && r(e, a);
- }, !Rg(e)) return;
+ }, !Lg(e)) return;
this.dragSnapToOrigin = i, this.handlers = t, this.transformPagePoint = n, this.distanceThreshold = a, this.contextWindow = r || window;
- let s = iy(Qv(e), this.transformPagePoint), { point: c } = s, { timestamp: l } = Bu;
+ let s = ry(Zv(e), this.transformPagePoint), { point: c } = s, { timestamp: l } = Bu;
this.history = [{
...c,
timestamp: l
}];
let { onSessionStart: u } = t;
- u && u(e, oy(s, this.history));
+ u && u(e, ay(s, this.history));
let d = {
passive: !0,
capture: !0
};
- this.removeListeners = pu($v(this.contextWindow, "pointermove", this.handlePointerMove, d), $v(this.contextWindow, "pointerup", this.handlePointerUp, d), $v(this.contextWindow, "pointercancel", this.handlePointerUp, d)), o && this.startScrollTracking(o);
+ this.removeListeners = pu(Qv(this.contextWindow, "pointermove", this.handlePointerMove, d), Qv(this.contextWindow, "pointerup", this.handlePointerUp, d), Qv(this.contextWindow, "pointercancel", this.handlePointerUp, d)), o && this.startScrollTracking(o);
}
startScrollTracking(e) {
let t = e.parentElement;
for (; t;) {
let e = getComputedStyle(t);
- (ny.has(e.overflowX) || ny.has(e.overflowY)) && this.scrollPositions.set(t, {
+ (ty.has(e.overflowX) || ty.has(e.overflowY)) && this.scrollPositions.set(t, {
x: t.scrollLeft,
y: t.scrollTop
}), t = t.parentElement;
@@ -19300,36 +19301,36 @@ var ny = /*#__PURE__*/ new Set(["auto", "scroll"]), ry = class {
x: r.x - t.x,
y: r.y - t.y
};
- (i.x !== 0 || i.y !== 0) && (n ? this.lastMoveEventInfo && (this.lastMoveEventInfo.point.x += i.x, this.lastMoveEventInfo.point.y += i.y) : this.history.length > 0 && (this.history[0].x -= i.x, this.history[0].y -= i.y), this.scrollPositions.set(e, r), lf.update(this.updatePoint, !0));
+ (i.x !== 0 || i.y !== 0) && (n ? this.lastMoveEventInfo && (this.lastMoveEventInfo.point.x += i.x, this.lastMoveEventInfo.point.y += i.y) : this.history.length > 0 && (this.history[0].x -= i.x, this.history[0].y -= i.y), this.scrollPositions.set(e, r), cf.update(this.updatePoint, !0));
}
updateHandlers(e) {
this.handlers = e;
}
end() {
- this.removeListeners && this.removeListeners(), this.removeScrollListeners && this.removeScrollListeners(), this.scrollPositions.clear(), uf(this.updatePoint);
+ this.removeListeners && this.removeListeners(), this.removeScrollListeners && this.removeScrollListeners(), this.scrollPositions.clear(), lf(this.updatePoint);
}
};
-function iy(e, t) {
+function ry(e, t) {
return t ? { point: t(e.point) } : e;
}
-function ay(e, t) {
+function iy(e, t) {
return {
x: e.x - t.x,
y: e.y - t.y
};
}
-function oy({ point: e }, t) {
+function ay({ point: e }, t) {
return {
point: e,
- delta: ay(e, sy(t)),
- offset: ay(e, nne(t)),
+ delta: iy(e, oy(t)),
+ offset: iy(e, nne(t)),
velocity: rne(t, .1)
};
}
function nne(e) {
return e[0];
}
-function sy(e) {
+function oy(e) {
return e[e.length - 1];
}
function rne(e, t) {
@@ -19337,7 +19338,7 @@ function rne(e, t) {
x: 0,
y: 0
};
- let n = e.length - 1, r = null, i = sy(e);
+ let n = e.length - 1, r = null, i = oy(e);
for (; n >= 0 && (r = e[n], !(i.timestamp - r.timestamp > /* @__PURE__ */ gu(t)));) n--;
if (!r) return {
x: 0,
@@ -19358,9 +19359,9 @@ function rne(e, t) {
//#endregion
//#region node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.mjs
function ine(e, { min: t, max: n }, r) {
- return t !== void 0 && e < t ? e = r ? Vd(t, e, r.min) : Math.max(e, t) : n !== void 0 && e > n && (e = r ? Vd(n, e, r.max) : Math.min(e, n)), e;
+ return t !== void 0 && e < t ? e = r ? Bd(t, e, r.min) : Math.max(e, t) : n !== void 0 && e > n && (e = r ? Bd(n, e, r.max) : Math.min(e, n)), e;
}
-function cy(e, t, n) {
+function sy(e, t, n) {
return {
min: t === void 0 ? void 0 : e.min + t,
max: n === void 0 ? void 0 : e.max + n - (e.max - e.min)
@@ -19368,11 +19369,11 @@ function cy(e, t, n) {
}
function ane(e, { top: t, left: n, bottom: r, right: i }) {
return {
- x: cy(e.x, n, i),
- y: cy(e.y, t, r)
+ x: sy(e.x, n, i),
+ y: sy(e.y, t, r)
};
}
-function ly(e, t) {
+function cy(e, t) {
let n = t.min - e.min, r = t.max - e.max;
return t.max - t.min < e.max - e.min && ([n, r] = [r, n]), {
min: n,
@@ -19381,42 +19382,42 @@ function ly(e, t) {
}
function one(e, t) {
return {
- x: ly(e.x, t.x),
- y: ly(e.y, t.y)
+ x: cy(e.x, t.x),
+ y: cy(e.y, t.y)
};
}
function sne(e, t) {
- let n = .5, r = M_(e), i = M_(t);
+ let n = .5, r = j_(e), i = j_(t);
return i > r ? n = /* @__PURE__ */ mu(t.min, t.max - r, e.min) : r > i && (n = /* @__PURE__ */ mu(e.min, e.max - i, t.min)), ou(0, 1, n);
}
-function uy(e, t) {
+function ly(e, t) {
let n = {};
return t.min !== void 0 && (n.min = t.min - e.min), t.max !== void 0 && (n.max = t.max - e.min), n;
}
-var dy = .35;
-function fy(e = dy) {
- return e === !1 ? e = 0 : e === !0 && (e = dy), {
- x: py(e, "left", "right"),
- y: py(e, "top", "bottom")
+var uy = .35;
+function dy(e = uy) {
+ return e === !1 ? e = 0 : e === !0 && (e = uy), {
+ x: fy(e, "left", "right"),
+ y: fy(e, "top", "bottom")
};
}
-function py(e, t, n) {
+function fy(e, t, n) {
return {
- min: my(e, t),
- max: my(e, n)
+ min: py(e, t),
+ max: py(e, n)
};
}
-function my(e, t) {
+function py(e, t) {
return typeof e == "number" ? e : e[t] || 0;
}
//#endregion
//#region node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.mjs
-var hy = /* @__PURE__ */ new WeakMap(), gy = class {
+var my = /* @__PURE__ */ new WeakMap(), hy = class {
constructor(e) {
this.openDragLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = {
x: 0,
y: 0
- }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = n_(), this.latestPointerEvent = null, this.latestPanInfo = null, this.visualElement = e;
+ }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = t_(), this.latestPointerEvent = null, this.latestPanInfo = null, this.visualElement = e;
}
start(e, { snapToCursor: t = !1, distanceThreshold: n } = {}) {
let { presenceContext: r } = this.visualElement;
@@ -19426,17 +19427,17 @@ var hy = /* @__PURE__ */ new WeakMap(), gy = class {
}, a = (e, t) => {
let { drag: n, dragPropagation: r, onDragStart: i } = this.getProps();
if (n && !r && (this.openDragLock && this.openDragLock(), this.openDragLock = lee(n), !this.openDragLock)) return;
- this.latestPointerEvent = e, this.latestPanInfo = t, this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), ev((e) => {
+ this.latestPointerEvent = e, this.latestPanInfo = t, this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), $_((e) => {
let t = this.getAxisMotionValue(e).get() || 0;
if (fd.test(t)) {
let { projection: n } = this.visualElement;
if (n && n.layout) {
let r = n.layout.layoutBox[e];
- r && (t = M_(r) * (parseFloat(t) / 100));
+ r && (t = j_(r) * (parseFloat(t) / 100));
}
}
this.originPoint[e] = t;
- }), i && lf.update(() => i(e, t), !1, !0), vh(this.visualElement, "transform");
+ }), i && cf.update(() => i(e, t), !1, !0), _h(this.visualElement, "transform");
let { animationState: a } = this.visualElement;
a && a.setActive("whileDrag", !0);
}, o = (e, t) => {
@@ -19444,7 +19445,7 @@ var hy = /* @__PURE__ */ new WeakMap(), gy = class {
let { dragPropagation: n, dragDirectionLock: r, onDirectionLock: i, onDrag: a } = this.getProps();
if (!n && !this.openDragLock) return;
let { offset: o } = t;
- r && this.currentDirection === null ? (this.currentDirection = by(o), this.currentDirection !== null && i && i(this.currentDirection)) : (this.updateAxis("x", t.point, o), this.updateAxis("y", t.point, o), this.visualElement.render(), a && lf.update(() => a(e, t), !1, !0));
+ r && this.currentDirection === null ? (this.currentDirection = yy(o), this.currentDirection !== null && i && i(this.currentDirection)) : (this.updateAxis("x", t.point, o), this.updateAxis("y", t.point, o), this.visualElement.render(), a && cf.update(() => a(e, t), !1, !0));
}, s = (e, t) => {
this.latestPointerEvent = e, this.latestPanInfo = t, this.stop(e, t), this.latestPointerEvent = null, this.latestPanInfo = null;
}, c = () => {
@@ -19454,7 +19455,7 @@ var hy = /* @__PURE__ */ new WeakMap(), gy = class {
y: 0
});
}, { dragSnapToOrigin: l } = this.getProps();
- this.panSession = new ry(e, {
+ this.panSession = new ny(e, {
onSessionStart: i,
onStart: a,
onMove: o,
@@ -19464,7 +19465,7 @@ var hy = /* @__PURE__ */ new WeakMap(), gy = class {
transformPagePoint: this.visualElement.getTransformPagePoint(),
dragSnapToOrigin: l,
distanceThreshold: n,
- contextWindow: ey(this.visualElement),
+ contextWindow: $v(this.visualElement),
element: this.visualElement.current
});
}
@@ -19474,7 +19475,7 @@ var hy = /* @__PURE__ */ new WeakMap(), gy = class {
let { velocity: a } = r;
this.startAnimation(a);
let { onDragEnd: o } = this.getProps();
- o && lf.postRender(() => o(n, r));
+ o && cf.postRender(() => o(n, r));
}
cancel() {
this.isDragging = !1;
@@ -19488,32 +19489,32 @@ var hy = /* @__PURE__ */ new WeakMap(), gy = class {
}
updateAxis(e, t, n) {
let { drag: r } = this.getProps();
- if (!n || !yy(e, r, this.currentDirection)) return;
+ if (!n || !vy(e, r, this.currentDirection)) return;
let i = this.getAxisMotionValue(e), a = this.originPoint[e] + n[e];
this.constraints && this.constraints[e] && (a = ine(a, this.constraints[e], this.elastic[e])), i.set(a);
}
resolveConstraints() {
let { dragConstraints: e, dragElastic: t } = this.getProps(), n = this.visualElement.projection && !this.visualElement.projection.layout ? this.visualElement.projection.measure(!1) : this.visualElement.projection?.layout, r = this.constraints;
- e && Jv(e) ? this.constraints ||= this.resolveRefConstraints() : this.constraints = e && n ? ane(n.layoutBox, e) : !1, this.elastic = fy(t), r !== this.constraints && !Jv(e) && n && this.constraints && !this.hasMutatedConstraints && ev((e) => {
- this.constraints !== !1 && this.getAxisMotionValue(e) && (this.constraints[e] = uy(n.layoutBox[e], this.constraints[e]));
+ e && qv(e) ? this.constraints ||= this.resolveRefConstraints() : this.constraints = e && n ? ane(n.layoutBox, e) : !1, this.elastic = dy(t), r !== this.constraints && !qv(e) && n && this.constraints && !this.hasMutatedConstraints && $_((e) => {
+ this.constraints !== !1 && this.getAxisMotionValue(e) && (this.constraints[e] = ly(n.layoutBox[e], this.constraints[e]));
});
}
resolveRefConstraints() {
let { dragConstraints: e, onMeasureDragConstraints: t } = this.getProps();
- if (!e || !Jv(e)) return !1;
+ if (!e || !qv(e)) return !1;
let n = e.current, { projection: r } = this.visualElement;
if (!r || !r.layout) return !1;
r.root && (r.root.scroll = void 0, r.root.updateScroll());
- let i = Dg(n, r.root, this.visualElement.getTransformPagePoint()), a = one(r.layout.layoutBox, i);
+ let i = Eg(n, r.root, this.visualElement.getTransformPagePoint()), a = one(r.layout.layoutBox, i);
if (t) {
let e = t(oee(a));
- this.hasMutatedConstraints = !!e, e && (a = lg(e));
+ this.hasMutatedConstraints = !!e, e && (a = cg(e));
}
return a;
}
startAnimation(e) {
- let { drag: t, dragMomentum: n, dragElastic: r, dragTransition: i, dragSnapToOrigin: a, onDragTransitionEnd: o } = this.getProps(), s = this.constraints || {}, c = ev((o) => {
- if (!yy(o, t, this.currentDirection)) return;
+ let { drag: t, dragMomentum: n, dragElastic: r, dragTransition: i, dragSnapToOrigin: a, onDragTransitionEnd: o } = this.getProps(), s = this.constraints || {}, c = $_((o) => {
+ if (!vy(o, t, this.currentDirection)) return;
let c = s && s[o] || {};
(a === !0 || a === o) && (c = {
min: 0,
@@ -19536,10 +19537,10 @@ var hy = /* @__PURE__ */ new WeakMap(), gy = class {
}
startAxisValueAnimation(e, t) {
let n = this.getAxisMotionValue(e);
- return vh(this.visualElement, e), n.start(rh(e, n, 0, t, this.visualElement, !1));
+ return _h(this.visualElement, e), n.start(nh(e, n, 0, t, this.visualElement, !1));
}
stopAnimation() {
- ev((e) => this.getAxisMotionValue(e).stop());
+ $_((e) => this.getAxisMotionValue(e).stop());
}
getAxisMotionValue(e) {
let t = `_drag${e.toUpperCase()}`;
@@ -19550,22 +19551,22 @@ var hy = /* @__PURE__ */ new WeakMap(), gy = class {
x: e,
y: t
}, i = this.visualElement.getTransformPagePoint()?.(r) || r, a = this.visualElement.measureViewportBox();
- ev((e) => {
- if (!yy(e, n, this.currentDirection)) return;
+ $_((e) => {
+ if (!vy(e, n, this.currentDirection)) return;
let t = this.getAxisMotionValue(e), { min: r, max: o } = a[e];
- t.set((t.get() || 0) + i[e] - Vd(r, o, .5));
+ t.set((t.get() || 0) + i[e] - Bd(r, o, .5));
});
}
scalePositionWithinConstraints() {
if (!this.visualElement.current) return;
let { drag: e, dragConstraints: t } = this.getProps(), { projection: n } = this.visualElement;
- if (!Jv(t) || !n || !this.constraints) return;
+ if (!qv(t) || !n || !this.constraints) return;
this.stopAnimation();
let r = this.constraints, i = {
x: 0,
y: 0
};
- ev((e) => {
+ $_((e) => {
let t = this.getAxisMotionValue(e).get();
i[e] = sne({
min: t,
@@ -19573,26 +19574,26 @@ var hy = /* @__PURE__ */ new WeakMap(), gy = class {
}, r[e]);
});
let { transformTemplate: a } = this.visualElement.getProps();
- this.visualElement.current.style.transform = a ? a({}, "") : "none", n.root && n.root.updateScroll(), n.updateLayout(), this.constraints = !1, this.resolveConstraints(), ev((t) => {
+ this.visualElement.current.style.transform = a ? a({}, "") : "none", n.root && n.root.updateScroll(), n.updateLayout(), this.constraints = !1, this.resolveConstraints(), $_((t) => {
let n = this.getAxisMotionValue(t);
- if (!yy(t, e, null) || !n.get()) return;
+ if (!vy(t, e, null) || !n.get()) return;
let { min: r, max: a } = this.constraints[t];
- n.set(Vd(r, a, i[t]));
+ n.set(Bd(r, a, i[t]));
}), this.visualElement.render();
}
addListeners() {
if (!this.visualElement.current) return;
- hy.set(this.visualElement, this);
- let e = this.visualElement.current, t = $v(e, "pointerdown", (t) => {
+ my.set(this.visualElement, this);
+ let e = this.visualElement.current, t = Qv(e, "pointerdown", (t) => {
let { drag: n, dragListener: r = !0 } = this.getProps(), i = t.target, a = i !== e && hee(i);
n && r && !a && this.start(t);
}), n, r = () => {
let { dragConstraints: t } = this.getProps();
- Jv(t) && t.current && (this.constraints = this.resolveRefConstraints(), n ||= vy(e, t.current, () => this.scalePositionWithinConstraints()));
+ qv(t) && t.current && (this.constraints = this.resolveRefConstraints(), n ||= _y(e, t.current, () => this.scalePositionWithinConstraints()));
}, { projection: i } = this.visualElement, a = i.addEventListener("measure", r);
- i && !i.layout && (i.root && i.root.updateScroll(), i.updateLayout()), lf.read(r);
- let o = sv(window, "resize", () => this.scalePositionWithinConstraints()), s = i.addEventListener("didUpdate", (({ delta: e, hasLayoutChanged: t }) => {
- this.isDragging && t && (ev((t) => {
+ i && !i.layout && (i.root && i.root.updateScroll(), i.updateLayout()), cf.read(r);
+ let o = ov(window, "resize", () => this.scalePositionWithinConstraints()), s = i.addEventListener("didUpdate", (({ delta: e, hasLayoutChanged: t }) => {
+ this.isDragging && t && ($_((t) => {
let n = this.getAxisMotionValue(t);
n && (this.originPoint[t] += e[t].translate, n.set(n.get() + e[t].translate));
}), this.visualElement.render());
@@ -19602,7 +19603,7 @@ var hy = /* @__PURE__ */ new WeakMap(), gy = class {
};
}
getProps() {
- let e = this.visualElement.getProps(), { drag: t = !1, dragDirectionLock: n = !1, dragPropagation: r = !1, dragConstraints: i = !1, dragElastic: a = dy, dragMomentum: o = !0 } = e;
+ let e = this.visualElement.getProps(), { drag: t = !1, dragDirectionLock: n = !1, dragPropagation: r = !1, dragConstraints: i = !1, dragElastic: a = uy, dragMomentum: o = !0 } = e;
return {
...e,
drag: t,
@@ -19614,30 +19615,30 @@ var hy = /* @__PURE__ */ new WeakMap(), gy = class {
};
}
};
-function _y(e) {
+function gy(e) {
let t = !0;
return () => {
t ? t = !1 : e();
};
}
-function vy(e, t, n) {
- let r = Xg(e, _y(n)), i = Xg(t, _y(n));
+function _y(e, t, n) {
+ let r = Yg(e, gy(n)), i = Yg(t, gy(n));
return () => {
r(), i();
};
}
-function yy(e, t, n) {
+function vy(e, t, n) {
return (t === !0 || t === e) && (n === null || n === e);
}
-function by(e, t = 10) {
+function yy(e, t = 10) {
let n = null;
return Math.abs(e.y) > t ? n = "y" : Math.abs(e.x) > t && (n = "x"), n;
}
//#endregion
//#region node_modules/framer-motion/dist/es/gestures/drag/index.mjs
-var cne = class extends __ {
+var cne = class extends g_ {
constructor(e) {
- super(e), this.removeGroupControls = fu, this.removeListeners = fu, this.controls = new gy(e);
+ super(e), this.removeGroupControls = fu, this.removeListeners = fu, this.controls = new hy(e);
}
mount() {
let { dragControls: e } = this.node.getProps();
@@ -19650,31 +19651,31 @@ var cne = class extends __ {
unmount() {
this.removeGroupControls(), this.removeListeners(), this.controls.isDragging || this.controls.endPanSession();
}
-}, xy = (e) => (t, n) => {
- e && lf.update(() => e(t, n), !1, !0);
-}, lne = class extends __ {
+}, by = (e) => (t, n) => {
+ e && cf.update(() => e(t, n), !1, !0);
+}, lne = class extends g_ {
constructor() {
super(...arguments), this.removePointerDownListener = fu;
}
onPointerDown(e) {
- this.session = new ry(e, this.createPanHandlers(), {
+ this.session = new ny(e, this.createPanHandlers(), {
transformPagePoint: this.node.getTransformPagePoint(),
- contextWindow: ey(this.node)
+ contextWindow: $v(this.node)
});
}
createPanHandlers() {
let { onPanSessionStart: e, onPanStart: t, onPan: n, onPanEnd: r } = this.node.getProps();
return {
- onSessionStart: xy(e),
- onStart: xy(t),
- onMove: xy(n),
+ onSessionStart: by(e),
+ onStart: by(t),
+ onMove: by(n),
onEnd: (e, t) => {
- delete this.session, r && lf.postRender(() => r(e, t));
+ delete this.session, r && cf.postRender(() => r(e, t));
}
};
}
mount() {
- this.removePointerDownListener = $v(this.node.current, "pointerdown", (e) => this.onPointerDown(e));
+ this.removePointerDownListener = Qv(this.node.current, "pointerdown", (e) => this.onPointerDown(e));
}
update() {
this.session && this.session.updateHandlers(this.createPanHandlers());
@@ -19682,36 +19683,36 @@ var cne = class extends __ {
unmount() {
this.removePointerDownListener(), this.session && this.session.end();
}
-}, Sy = !1, une = class extends D.Component {
+}, xy = !1, une = class extends D.Component {
componentDidMount() {
let { visualElement: e, layoutGroup: t, switchLayoutGroup: n, layoutId: r } = this.props, { projection: i } = e;
- i && (t.group && t.group.add(i), n && n.register && r && n.register(i), Sy && i.root.didUpdate(), i.addEventListener("animationComplete", () => {
+ i && (t.group && t.group.add(i), n && n.register && r && n.register(i), xy && i.root.didUpdate(), i.addEventListener("animationComplete", () => {
this.safeToRemove();
}), i.setOptions({
...i.options,
layoutDependency: this.props.layoutDependency,
onExitComplete: () => this.safeToRemove()
- })), lv.hasEverUpdated = !0;
+ })), cv.hasEverUpdated = !0;
}
getSnapshotBeforeUpdate(e) {
let { layoutDependency: t, visualElement: n, drag: r, isPresent: i } = this.props, { projection: a } = n;
return a && (a.isPresent = i, e.layoutDependency !== t && a.setOptions({
...a.options,
layoutDependency: t
- }), Sy = !0, r || e.layoutDependency !== t || t === void 0 || e.isPresent !== i ? a.willUpdate() : this.safeToRemove(), e.isPresent !== i && (i ? a.promote() : a.relegate() || lf.postRender(() => {
+ }), xy = !0, r || e.layoutDependency !== t || t === void 0 || e.isPresent !== i ? a.willUpdate() : this.safeToRemove(), e.isPresent !== i && (i ? a.promote() : a.relegate() || cf.postRender(() => {
let e = a.getStack();
(!e || !e.members.length) && this.safeToRemove();
}))), null;
}
componentDidUpdate() {
let { visualElement: e, layoutAnchor: t } = this.props, { projection: n } = e;
- n && (n.options.layoutAnchor = t, n.root.didUpdate(), Ng.postRender(() => {
+ n && (n.options.layoutAnchor = t, n.root.didUpdate(), Mg.postRender(() => {
!n.currentAnimation && n.isLead() && this.safeToRemove();
}));
}
componentWillUnmount() {
let { visualElement: e, layoutGroup: t, switchLayoutGroup: n } = this.props, { projection: r } = e;
- Sy = !0, r && (r.scheduleCheckAfterUnmount(), t && t.group && t.group.remove(r), n && n.deregister && n.deregister(r));
+ xy = !0, r && (r.scheduleCheckAfterUnmount(), t && t.group && t.group.remove(r), n && n.deregister && n.deregister(r));
}
safeToRemove() {
let { safeToRemove: e } = this.props;
@@ -19721,12 +19722,12 @@ var cne = class extends __ {
return null;
}
};
-function Cy(e) {
- let [t, n] = kv(), r = (0, D.useContext)(eu);
+function Sy(e) {
+ let [t, n] = Ov(), r = (0, D.useContext)(eu);
return (0, O.jsx)(une, {
...e,
layoutGroup: r,
- switchLayoutGroup: (0, D.useContext)(qv),
+ switchLayoutGroup: (0, D.useContext)(Kv),
isPresent: t,
safeToRemove: n
});
@@ -19737,25 +19738,25 @@ var dne = {
pan: { Feature: lne },
drag: {
Feature: cne,
- ProjectionNode: Ev,
- MeasureLayout: Cy
+ ProjectionNode: Tv,
+ MeasureLayout: Sy
}
};
//#endregion
//#region node_modules/framer-motion/dist/es/gestures/hover.mjs
-function wy(e, t, n) {
+function Cy(e, t, n) {
let { props: r } = e;
e.animationState && r.whileHover && e.animationState.setActive("whileHover", n === "Start");
let i = r["onHover" + n];
- i && lf.postRender(() => i(t, Qv(t)));
+ i && cf.postRender(() => i(t, Zv(t)));
}
-var fne = class extends __ {
+var fne = class extends g_ {
mount() {
let { current: e } = this.node;
- e && (this.unmount = dee(e, (e, t) => (wy(this.node, t, "Start"), (e) => wy(this.node, e, "End"))));
+ e && (this.unmount = dee(e, (e, t) => (Cy(this.node, t, "Start"), (e) => Cy(this.node, e, "End"))));
}
unmount() {}
-}, pne = class extends __ {
+}, pne = class extends g_ {
constructor() {
super(...arguments), this.isActive = !1;
}
@@ -19772,40 +19773,40 @@ var fne = class extends __ {
this.isActive && this.node.animationState && (this.node.animationState.setActive("whileFocus", !1), this.isActive = !1);
}
mount() {
- this.unmount = pu(sv(this.node.current, "focus", () => this.onFocus()), sv(this.node.current, "blur", () => this.onBlur()));
+ this.unmount = pu(ov(this.node.current, "focus", () => this.onFocus()), ov(this.node.current, "blur", () => this.onBlur()));
}
unmount() {}
};
//#endregion
//#region node_modules/framer-motion/dist/es/gestures/press.mjs
-function Ty(e, t, n) {
+function wy(e, t, n) {
let { props: r } = e;
if (e.current instanceof HTMLButtonElement && e.current.disabled) return;
e.animationState && r.whileTap && e.animationState.setActive("whileTap", n === "Start");
let i = r["onTap" + (n === "End" ? "" : n)];
- i && lf.postRender(() => i(t, Qv(t)));
+ i && cf.postRender(() => i(t, Zv(t)));
}
-var mne = class extends __ {
+var mne = class extends g_ {
mount() {
let { current: e } = this.node;
if (!e) return;
let { globalTapTarget: t, propagate: n } = this.node.props;
- this.unmount = _ee(e, (e, t) => (Ty(this.node, t, "Start"), (e, { success: t }) => Ty(this.node, e, t ? "End" : "Cancel")), {
+ this.unmount = _ee(e, (e, t) => (wy(this.node, t, "Start"), (e, { success: t }) => wy(this.node, e, t ? "End" : "Cancel")), {
useGlobalTarget: t,
stopPropagation: n?.tap === !1
});
}
unmount() {}
-}, Ey = /* @__PURE__ */ new WeakMap(), Dy = /* @__PURE__ */ new WeakMap(), hne = (e) => {
- let t = Ey.get(e.target);
+}, Ty = /* @__PURE__ */ new WeakMap(), Ey = /* @__PURE__ */ new WeakMap(), hne = (e) => {
+ let t = Ty.get(e.target);
t && t(e);
}, gne = (e) => {
e.forEach(hne);
};
function _ne({ root: e, ...t }) {
let n = e || document;
- Dy.has(n) || Dy.set(n, {});
- let r = Dy.get(n), i = JSON.stringify(t);
+ Ey.has(n) || Ey.set(n, {});
+ let r = Ey.get(n), i = JSON.stringify(t);
return r[i] || (r[i] = new IntersectionObserver(gne, {
root: e,
...t
@@ -19813,8 +19814,8 @@ function _ne({ root: e, ...t }) {
}
function vne(e, t, n) {
let r = _ne(t);
- return Ey.set(e, n), r.observe(e), () => {
- Ey.delete(e), r.unobserve(e);
+ return Ty.set(e, n), r.observe(e), () => {
+ Ty.delete(e), r.unobserve(e);
};
}
//#endregion
@@ -19822,7 +19823,7 @@ function vne(e, t, n) {
var yne = {
some: 0,
all: 1
-}, bne = class extends __ {
+}, bne = class extends g_ {
constructor() {
super(...arguments), this.hasEnteredView = !1, this.isInView = !1;
}
@@ -19868,8 +19869,8 @@ var Sne = {
focus: { Feature: pne },
hover: { Feature: fne }
}, Cne = { layout: {
- ProjectionNode: Ev,
- MeasureLayout: Cy
+ ProjectionNode: Tv,
+ MeasureLayout: Sy
} }, wne = /*@__PURE__*/ Yte({
...$te,
...Sne,
@@ -19878,20 +19879,20 @@ var Sne = {
}, Xte);
//#endregion
//#region node_modules/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion.mjs
-function Oy() {
- !d_.current && f_();
- let [e] = (0, D.useState)(u_.current);
+function Dy() {
+ !u_.current && d_();
+ let [e] = (0, D.useState)(l_.current);
return e;
}
//#endregion
//#region node_modules/framer-motion/dist/es/animation/utils/is-dom-keyframes.mjs
-function ky(e) {
+function Oy(e) {
return typeof e == "object" && !Array.isArray(e);
}
//#endregion
//#region node_modules/framer-motion/dist/es/animation/animate/resolve-subjects.mjs
-function Ay(e, t, n, r) {
- return e == null ? [] : typeof e == "string" && ky(t) ? qh(e, n, r) : e instanceof NodeList ? Array.from(e) : Array.isArray(e) ? e.filter((e) => e != null) : [e];
+function ky(e, t, n, r) {
+ return e == null ? [] : typeof e == "string" && Oy(t) ? Kh(e, n, r) : e instanceof NodeList ? Array.from(e) : Array.isArray(e) ? e.filter((e) => e != null) : [e];
}
//#endregion
//#region node_modules/framer-motion/dist/es/animation/sequence/utils/calc-repeat-duration.mjs
@@ -19900,7 +19901,7 @@ function Tne(e, t, n) {
}
//#endregion
//#region node_modules/framer-motion/dist/es/animation/sequence/utils/calc-time.mjs
-function jy(e, t, n, r) {
+function Ay(e, t, n, r) {
return typeof t == "number" ? t : t.startsWith("-") || t.startsWith("+") ? Math.max(0, e + parseFloat(t)) : t === "<" ? n : t.startsWith("<") ? Math.max(0, n + parseFloat(t.slice(1))) : r.get(t) ?? e;
}
//#endregion
@@ -19915,7 +19916,7 @@ function Dne(e, t, n, r, i, a) {
Ene(e, i, a);
for (let o = 0; o < t.length; o++) e.push({
value: t[o],
- at: Vd(i, a, r[o]),
+ at: Bd(i, a, r[o]),
easing: /* @__PURE__ */ Fu(n, o)
});
}
@@ -19932,7 +19933,7 @@ function kne(e, t) {
}
//#endregion
//#region node_modules/framer-motion/dist/es/animation/sequence/create.mjs
-var Ane = "easeInOut", My = 20;
+var Ane = "easeInOut", jy = 20;
function jne(e, { defaultTransition: t = {}, ...n } = {}, r, i) {
let a = t.duration || .3, o = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(), c = {}, l = /* @__PURE__ */ new Map(), u = 0, d = 0, f = 0;
for (let n = 0; n < e.length; n++) {
@@ -19942,13 +19943,13 @@ function jne(e, { defaultTransition: t = {}, ...n } = {}, r, i) {
continue;
}
if (!Array.isArray(o)) {
- l.set(o.name, jy(d, o.at, u, l));
+ l.set(o.name, Ay(d, o.at, u, l));
continue;
}
let [p, m, h = {}] = o;
- h.at !== void 0 && (d = jy(d, h.at, u, l));
+ h.at !== void 0 && (d = Ay(d, h.at, u, l));
let g = 0, _ = (e, n, r, o = 0, s = 0) => {
- let c = Mne(e), { delay: l = 0, times: u = Nf(c), type: p = t.type || "keyframes", repeat: m, repeatType: h, repeatDelay: _ = 0, ...v } = n, { ease: y = t.ease || "easeOut", duration: b } = n, x = typeof l == "function" ? l(o, s) : l, S = c.length, C = Qp(p) ? p : i?.[p || "keyframes"];
+ let c = Mne(e), { delay: l = 0, times: u = Mf(c), type: p = t.type || "keyframes", repeat: m, repeatType: h, repeatDelay: _ = 0, ...v } = n, { ease: y = t.ease || "easeOut", duration: b } = n, x = typeof l == "function" ? l(o, s) : l, S = c.length, C = Zp(p) ? p : i?.[p || "keyframes"];
if (S <= 2 && C) {
let e = 100;
if (S === 2 && Fne(c)) {
@@ -19960,14 +19961,14 @@ function jne(e, { defaultTransition: t = {}, ...n } = {}, r, i) {
...v
};
b !== void 0 && (n.duration = /* @__PURE__ */ gu(b));
- let r = gf(n, e, C);
+ let r = hf(n, e, C);
y = r.ease, b = r.duration;
}
b ??= a;
let w = d + x;
u.length === 1 && u[0] === 0 && (u[1] = 1);
let T = u.length - c.length;
- if (T > 0 && Mf(u, T), c.length === 1 && c.unshift(null), m && `${m}${My}`, m && m < My) {
+ if (T > 0 && jf(u, T), c.length === 1 && c.unshift(null), m && `${m}${jy}`, m && m < jy) {
let e = b > 0 ? _ / b : 0;
b = Tne(b, m, _);
let t = [...c], n = [...u];
@@ -19984,15 +19985,15 @@ function jne(e, { defaultTransition: t = {}, ...n } = {}, r, i) {
let E = w + b;
Dne(r, c, y, u, w, E), g = Math.max(x + b, g), f = Math.max(E, f);
};
- if (gh(p)) {
- let e = Ny(p, s);
- _(m, h, Py("default", e));
+ if (hh(p)) {
+ let e = My(p, s);
+ _(m, h, Ny("default", e));
} else {
- let e = Ay(p, m, r, c), t = e.length;
+ let e = ky(p, m, r, c), t = e.length;
for (let n = 0; n < t; n++) {
m = m, h = h;
- let r = e[n], i = Ny(r, s);
- for (let e in m) _(m[e], Nne(h, e), Py(e, i), n, t);
+ let r = e[n], i = My(r, s);
+ for (let e in m) _(m[e], Nne(h, e), Ny(e, i), n, t);
}
}
u = d, d += g;
@@ -20023,10 +20024,10 @@ function jne(e, { defaultTransition: t = {}, ...n } = {}, r, i) {
}
}), o;
}
-function Ny(e, t) {
+function My(e, t) {
return !t.has(e) && t.set(e, {}), t.get(e);
}
-function Py(e, t) {
+function Ny(e, t) {
return t[e] || (t[e] = []), t[e];
}
function Mne(e) {
@@ -20042,17 +20043,17 @@ var Pne = (e) => typeof e == "number", Fne = (e) => e.every(Pne);
//#endregion
//#region node_modules/framer-motion/dist/es/animation/animate/subject.mjs
function Ine(e, t) {
- return gh(e) || typeof e == "number" || typeof e == "string" && !ky(t);
+ return hh(e) || typeof e == "number" || typeof e == "string" && !Oy(t);
}
-function Fy(e, t, n, r) {
+function Py(e, t, n, r) {
let i = [];
- if (Ine(e, t)) i.push(ov(e, ky(t) && t.default || t, n && (n.default || n)));
+ if (Ine(e, t)) i.push(av(e, Oy(t) && t.default || t, n && (n.default || n)));
else {
if (e == null) return i;
- let a = Ay(e, t, r), o = a.length;
+ let a = ky(e, t, r), o = a.length;
for (let e = 0; e < o; e++) {
let r = a[e], s = { ...n };
- "delay" in s && typeof s.delay == "function" && (s.delay = s.delay(e, o)), r instanceof Element ? i.push(...jg(r, t, s, r_.get(r))) : i.push(...Uh(Vh(r) ?? Mg, r, t, s));
+ "delay" in s && typeof s.delay == "function" && (s.delay = s.delay(e, o)), r instanceof Element ? i.push(...Ag(r, t, s, n_.get(r))) : i.push(...Hh(Bh(r) ?? jg, r, t, s));
}
}
return i;
@@ -20063,7 +20064,7 @@ function Lne(e, t, n) {
let r = [];
return jne(e.map((e) => {
if (Array.isArray(e) && typeof e[0] == "function") {
- let t = e[0], n = qm(0);
+ let t = e[0], n = Km(0);
return n.on("change", t), e.length === 1 ? [n, [0, 1]] : e.length === 2 ? [
n,
[0, 1],
@@ -20075,8 +20076,8 @@ function Lne(e, t, n) {
];
}
return e;
- }), t, n, { spring: Of }).forEach(({ keyframes: e, transition: t }, n) => {
- r.push(...Fy(n, e, t));
+ }), t, n, { spring: Df }).forEach(({ keyframes: e, transition: t }, n) => {
+ r.push(...Py(n, e, t));
}), r;
}
//#endregion
@@ -20096,12 +20097,12 @@ function zne(e = {}) {
}, t);
} else {
let { onComplete: n, ...r } = a || {};
- typeof n == "function" && (s = n), o = Fy(e, i, {
+ typeof n == "function" && (s = n), o = Py(e, i, {
...c,
...r
}, t);
}
- let l = new Rm(o);
+ let l = new Lm(o);
return s && l.finished.then(s), t && (t.animations.push(l), l.finished.then(() => {
au(t.animations, l);
})), l;
@@ -20109,23 +20110,23 @@ function zne(e = {}) {
return i;
}
var Bne = Object.assign(zne(), {
- addEffect: zh,
- removeEffect: Bh
+ addEffect: Rh,
+ removeEffect: zh
});
//#endregion
//#region node_modules/framer-motion/dist/es/animation/animators/waapi/animate-elements.mjs
function Vne(e, t, n, r) {
if (e == null) return [];
- let i = qh(e, r), a = i.length, o = [];
+ let i = Kh(e, r), a = i.length, o = [];
for (let e = 0; e < a; e++) {
let r = i[e], s = { ...n };
typeof s.delay == "function" && (s.delay = s.delay(e, a));
for (let e in t) {
let n = t[e];
Array.isArray(n) || (n = [n]);
- let i = { ...Ym(s, e) };
+ let i = { ...Jm(s, e) };
i.duration &&= /* @__PURE__ */ gu(i.duration), i.delay &&= /* @__PURE__ */ gu(i.delay);
- let a = Vm(r), c = Bm(e, i.pseudoElement || ""), l = a.get(c);
+ let a = Bm(r), c = zm(e, i.pseudoElement || ""), l = a.get(c);
l && l.stop(), o.push({
map: a,
key: c,
@@ -20141,21 +20142,21 @@ function Vne(e, t, n, r) {
}
for (let e = 0; e < o.length; e++) {
let { unresolvedKeyframes: t, options: n } = o[e], { element: r, name: i, pseudoElement: a } = n;
- !a && t[0] === null && (t[0] = Wg(r, i)), dp(t), Lh(t, i), !a && t.length < 2 && t.unshift(Wg(r, i)), n.keyframes = t;
+ !a && t[0] === null && (t[0] = Ug(r, i)), up(t), Ih(t, i), !a && t.length < 2 && t.unshift(Ug(r, i)), n.keyframes = t;
}
let s = [];
for (let e = 0; e < o.length; e++) {
- let { map: t, key: n, options: r } = o[e], i = new em(r);
+ let { map: t, key: n, options: r } = o[e], i = new $p(r);
t.set(n, i), i.finished.finally(() => t.delete(n)), s.push(i);
}
return s;
}
var Hne = /*@__PURE__*/ ((e) => {
function t(t, n, r) {
- return new Rm(Vne(t, n, r, e));
+ return new Lm(Vne(t, n, r, e));
}
return t;
-})(), Iy = wne, Ly = class {
+})(), Fy = wne, Iy = 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;
}
@@ -20170,22 +20171,22 @@ var Hne = /*@__PURE__*/ ((e) => {
let r = this.clone();
return t.addDescendants(r, e), r;
}
-}, Ry = class extends Ly {
+}, Ly = class extends Iy {
filter(e, t, n) {
- let [r, i] = Hy(e, t, this.firstChildKey, n), a = this.clone();
+ let [r, i] = Vy(e, t, this.firstChildKey, n), a = this.clone();
return a.firstChildKey = r, a.lastChildKey = i, a;
}
};
-(class extends Ly {
+(class extends Iy {
static {
this.type = "header";
}
});
-var zy = class extends Ly {
+var Ry = class extends Iy {
static {
this.type = "loader";
}
-}, By = class extends Ry {
+}, zy = class extends Ly {
static {
this.type = "item";
}
@@ -20196,7 +20197,7 @@ var zy = class extends Ly {
}
return null;
}
-}, Une = class extends Ry {
+}, Une = class extends Ly {
static {
this.type = "section";
}
@@ -20208,7 +20209,7 @@ var zy = class extends Ly {
}
return null;
}
-}, Vy = class {
+}, By = class {
get size() {
return this.itemCount;
}
@@ -20283,14 +20284,14 @@ var zy = class extends Ly {
this.firstKey = e, this.lastKey = t, this.frozen = !n;
}
filter(e) {
- let t = new this.constructor(), [n, r] = Hy(this, t, this.firstKey, e);
+ let t = new this.constructor(), [n, r] = Vy(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 Hy(e, t, n, r) {
+function Vy(e, t, n, r) {
if (n == null) return [null, null];
let i = null, a = null, o = e.getItem(n);
for (; o != null;) {
@@ -20305,7 +20306,7 @@ function Hy(e, t, n, r) {
}
//#endregion
//#region node_modules/react-aria/dist/private/collections/Document.mjs
-var Uy = class {
+var Hy = class {
constructor(e) {
this._firstChild = null, this._lastChild = null, this._previousSibling = null, this._nextSibling = null, this._parentNode = null, this._minInvalidChildIndex = null, this.ownerDocument = e;
}
@@ -20386,7 +20387,7 @@ var Uy = class {
for (; e && e.isHidden;) e = e.previousSibling;
return e;
}
-}, Wy = class e extends Uy {
+}, Uy = class e extends Hy {
constructor(e, t) {
super(t), this.nodeType = 8, this.isMutated = !0, this._index = 0, this.isHidden = !1, this.node = null;
}
@@ -20437,7 +20438,7 @@ var Uy = class {
setAttribute() {}
setAttributeNS() {}
removeAttribute() {}
-}, Wne = class extends Uy {
+}, Wne = class extends Hy {
constructor(e) {
super(null), this.nodeType = 11, this.ownerDocument = this, this.dirtyNodes = /* @__PURE__ */ new Set(), this.isSSR = !1, this.nodeId = 0, this.nodesByProps = /* @__PURE__ */ new WeakMap(), this.keyOwners = /* @__PURE__ */ new Map(), this.nextCollection = null, this.subscriptions = /* @__PURE__ */ new Set(), this.queuedRender = !1, this.inSubscription = !1, this.collection = e, this.nextCollection = e;
}
@@ -20445,7 +20446,7 @@ var Uy = class {
return !0;
}
createElement(e) {
- return new Wy(e, this);
+ return new Uy(e, this);
}
getMutableCollection() {
return this.nextCollection ||= this.collection.clone(), this.nextCollection;
@@ -20467,8 +20468,8 @@ var Uy = class {
return this.inSubscription || (this.queuedRender = !1, this.updateCollection()), this.collection;
}
updateCollection() {
- for (let e of this.dirtyNodes) e instanceof Wy && (!e.isConnected || e.isHidden) ? this.removeNode(e) : e.updateChildIndices();
- for (let e of this.dirtyNodes) e instanceof Wy ? (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 Uy && (!e.isConnected || e.isHidden) ? this.removeNode(e) : e.updateChildIndices();
+ for (let e of this.dirtyNodes) e instanceof Uy ? (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() {
@@ -20487,7 +20488,7 @@ var Uy = class {
};
//#endregion
//#region node_modules/react-aria/dist/private/collections/useCachedChildren.mjs
-function Gy(e) {
+function Wy(e) {
let { children: t, items: n, idScope: r, addIdAndValue: i, dependencies: a = [] } = e, o = (0, D.useMemo)(() => void 0, [t]), s = (0, D.useMemo)(() => /* @__PURE__ */ new WeakMap(), [...a, o]);
return (0, D.useMemo)(() => {
if (n && typeof t == "function") {
@@ -20528,25 +20529,25 @@ function Gne(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/focusWithoutScrolling.mjs
-function Ky(e) {
+function Gy(e) {
e.focus({ preventScroll: !0 });
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/domHelpers.mjs
-var qy = (e) => Kne(e) ? e.document : qne(e) ? e : e?.ownerDocument ?? (typeof document < "u" ? document : void 0), Jy = (e) => qy(e)?.defaultView ?? (typeof window < "u" ? window : void 0);
-function Yy(e) {
+var Ky = (e) => Kne(e) ? e.document : qne(e) ? e : e?.ownerDocument ?? (typeof document < "u" ? document : void 0), qy = (e) => Ky(e)?.defaultView ?? (typeof window < "u" ? window : void 0);
+function Jy(e) {
return typeof e == "object" && !!e && "nodeType" in e && typeof e.nodeType == "number";
}
function Kne(e) {
return typeof e == "object" && !!e && "window" in e && e.window === e;
}
function qne(e) {
- return Yy(e) && e.nodeType === 9;
+ return Jy(e) && e.nodeType === 9;
}
-function Xy(e) {
- return Yy(e) && e.nodeType === 11 && "host" in e;
+function Yy(e) {
+ return Jy(e) && e.nodeType === 11 && "host" in e;
}
-function Zy(e, t, n, r) {
+function Xy(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);
@@ -20554,7 +20555,7 @@ function Zy(e, t, n, r) {
for (let e of i) e.removeEventListener(t, n, r);
};
}
-function Qy(e, t, n, r) {
+function Zy(e, t, n, r) {
if (e == null) return () => {};
let i = [], a = Array.isArray(e) ? e : [e];
for (let e of a) {
@@ -20570,72 +20571,72 @@ function Qy(e, t, n, r) {
//#endregion
//#region node_modules/react-stately/dist/private/flags/flags.mjs
var Jne = !1;
-function $y() {
+function Qy() {
return Jne;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/shadowdom/DOMFunctions.mjs
-function eb(e, t) {
- if (!$y()) return t && e ? e.contains(t) : !1;
+function $y(e, t) {
+ if (!Qy()) 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 : Xy(n) ? n.host : n.parentNode;
+ n = typeof n.assignedElements != "function" && n.assignedSlot?.parentNode ? n.assignedSlot.parentNode : Yy(n) ? n.host : n.parentNode;
}
return !1;
}
-var tb = (e = document) => {
- if (!$y()) return e.activeElement;
+var eb = (e = document) => {
+ if (!Qy()) return e.activeElement;
let t = e.activeElement;
for (; t && "shadowRoot" in t && t.shadowRoot?.activeElement;) t = t.shadowRoot.activeElement;
return t;
};
-function G(e) {
- if ($y() && e.target instanceof Element && e.target.shadowRoot) {
+function K(e) {
+ if (Qy() && 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 nb(e, t) {
+function tb(e, t) {
if (t === null) return [];
- t ??= Jy(e);
+ t ??= qy(e);
let n = [t];
- if (!$y() || !e || e === t) return n;
+ if (!Qy() || !e || e === t) return n;
let r = "getRootNode" in t ? t.getRootNode() : null, i = e.getRootNode() ?? null;
- for (; Xy(i) && i !== r;) n.push(i), i = i.host.getRootNode();
+ for (; Yy(i) && i !== r;) n.push(i), i = i.host.getRootNode();
return n;
}
-function rb(e) {
+function nb(e) {
if (!e) return !1;
- let t = e.getRootNode(), n = Jy(e);
+ let t = e.getRootNode(), n = qy(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 ib = typeof Element < "u" && "checkVisibility" in Element.prototype;
-function ab(e) {
- let t = Jy(e);
+var rb = typeof Element < "u" && "checkVisibility" in Element.prototype;
+function ib(e) {
+ let t = qy(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 } = Jy(e), { display: n, visibility: r } = t(e);
+ let { getComputedStyle: t } = qy(e), { display: n, visibility: r } = t(e);
i = n !== "none" && r !== "hidden" && r !== "collapse";
}
return i;
}
-function ob(e, t) {
+function ab(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 sb(e, t) {
- return ib ? e.checkVisibility({ visibilityProperty: !0 }) && !e.closest("[data-react-aria-prevent-focus]") : e.nodeName !== "#comment" && ab(e) && ob(e, t) && (!e.parentElement || sb(e.parentElement, e));
+function ob(e, t) {
+ return rb ? e.checkVisibility({ visibilityProperty: !0 }) && !e.closest("[data-react-aria-prevent-focus]") : e.nodeName !== "#comment" && ib(e) && ab(e, t) && (!e.parentElement || ob(e.parentElement, e));
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/isFocusable.mjs
-var cb = [
+var sb = [
"input:not([disabled]):not([type=hidden])",
"select:not([disabled])",
"textarea:not([disabled])",
@@ -20650,60 +20651,60 @@ var cb = [
"video[controls]",
"[contenteditable]:not([contenteditable^=\"false\"])",
"permission"
-], lb = cb.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";
-cb.push("[tabindex]:not([tabindex=\"-1\"]):not([disabled])");
-var ub = cb.join(":not([hidden]):not([tabindex=\"-1\"]),");
-function db(e, t) {
- return e.matches(lb) && !pb(e) && (t?.skipVisibilityCheck || sb(e));
+], cb = sb.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";
+sb.push("[tabindex]:not([tabindex=\"-1\"]):not([disabled])");
+var lb = sb.join(":not([hidden]):not([tabindex=\"-1\"]),");
+function ub(e, t) {
+ return e.matches(cb) && !fb(e) && (t?.skipVisibilityCheck || ob(e));
}
-function fb(e) {
- return e.matches(ub) && sb(e) && !pb(e);
+function db(e) {
+ return e.matches(lb) && ob(e) && !fb(e);
}
-function pb(e) {
+function fb(e) {
let t = e;
for (; t != null;) {
- if (t instanceof Jy(t).HTMLElement && t.inert) return !0;
+ if (t instanceof qy(t).HTMLElement && t.inert) return !0;
t = t.parentElement;
}
return !1;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useLayoutEffect.mjs
-var mb = typeof document < "u" ? D.useLayoutEffect : () => {};
+var pb = typeof document < "u" ? D.useLayoutEffect : () => {};
//#endregion
//#region node_modules/react-aria/dist/private/interactions/utils.mjs
-function hb(e) {
+function mb(e) {
let t = e;
return t.nativeEvent = e, t.isDefaultPrevented = () => t.defaultPrevented, t.isPropagationStopped = () => t.cancelBubble, t.persist = () => {}, t;
}
-function gb(e, t) {
+function hb(e, t) {
Object.defineProperty(e, "target", { value: t }), Object.defineProperty(e, "currentTarget", { value: t });
}
-function _b(e) {
+function gb(e) {
let t = (0, D.useRef)({
isFocused: !1,
observer: null
});
- return mb(() => {
+ return pb(() => {
let e = t.current;
return () => {
e.observer &&= (e.observer.disconnect(), null);
};
}, []), (0, D.useCallback)((n) => {
- let r = G(n);
+ let r = K(n);
if (r instanceof HTMLButtonElement || r instanceof HTMLInputElement || r instanceof HTMLTextAreaElement || r instanceof HTMLSelectElement) {
t.current.isFocused = !0;
let n = r;
n.addEventListener("focusout", (r) => {
if (t.current.isFocused = !1, n.disabled) {
- let t = hb(r);
+ let t = mb(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 === tb() ? null : tb();
+ let e = n === eb() ? null : eb();
n.dispatchEvent(new FocusEvent("blur", { relatedTarget: e })), n.dispatchEvent(new FocusEvent("focusout", {
bubbles: !0,
relatedTarget: e
@@ -20716,83 +20717,83 @@ function _b(e) {
}
}, [e]);
}
-var vb = !1;
-function yb(e) {
- for (; e && !db(e, { skipVisibilityCheck: !0 });) e = e.parentElement;
- let t = tb(Jy(e).document);
+var _b = !1;
+function vb(e) {
+ for (; e && !ub(e, { skipVisibilityCheck: !0 });) e = e.parentElement;
+ let t = eb(qy(e).document);
if (!t || t === e) return;
- let n = e?.getRootNode(), r = n != null && Xy(n) ? n : Jy(e), i = (t) => t === e || Yy(t) && eb(e, t), a = (e) => e === t || t != null && Yy(e) && eb(t, e);
- vb = !0;
+ let n = e?.getRootNode(), r = n != null && Yy(n) ? n : qy(e), i = (t) => t === e || Jy(t) && $y(e, t), a = (e) => e === t || t != null && Jy(e) && $y(t, e);
+ _b = !0;
let o = !1, s = (e) => {
- (a(G(e)) || o) && e.stopImmediatePropagation();
+ (a(K(e)) || o) && e.stopImmediatePropagation();
}, c = (n) => {
- (a(G(n)) || o) && (n.stopImmediatePropagation(), !e && !o && (o = !0, Ky(t), d()));
+ (a(K(n)) || o) && (n.stopImmediatePropagation(), !e && !o && (o = !0, Gy(t), d()));
}, l = (e) => {
- (i(G(e)) || o) && e.stopImmediatePropagation();
+ (i(K(e)) || o) && e.stopImmediatePropagation();
}, u = (e) => {
- (i(G(e)) || o) && (e.stopImmediatePropagation(), o || (o = !0, Ky(t), d()));
+ (i(K(e)) || o) && (e.stopImmediatePropagation(), o || (o = !0, Gy(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), vb = !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), _b = !1, o = !1;
}, f = requestAnimationFrame(d);
return d;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/platform.mjs
-function bb(e) {
+function yb(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 xb(e) {
+function bb(e) {
return typeof window < "u" && window.navigator != null && e.test(window.navigator.userAgentData?.platform || window.navigator.platform);
}
-function Sb(e) {
+function xb(e) {
let t = null;
return () => (t ??= e(), t);
}
-var Cb = Sb(function() {
- return xb(/^Mac/i);
-}), wb = Sb(function() {
- return xb(/^iPhone/i);
-}), Tb = Sb(function() {
- return xb(/^iPad/i) || Cb() && navigator.maxTouchPoints > 1;
-}), Eb = Sb(function() {
- return wb() || Tb();
-}), Db = Sb(function() {
- return Cb() || Eb();
-}), Ob = Sb(function() {
- return bb(/AppleWebKit/i) && (Eb() || !kb());
-}), kb = Sb(function() {
- return bb(/Chrome|CriOS|CrMo/i);
-}), Ab = Sb(function() {
- return bb(/Android/i);
+var Sb = xb(function() {
+ return bb(/^Mac/i);
+}), Cb = xb(function() {
+ return bb(/^iPhone/i);
+}), wb = xb(function() {
+ return bb(/^iPad/i) || Sb() && navigator.maxTouchPoints > 1;
+}), Tb = xb(function() {
+ return Cb() || wb();
+}), Eb = xb(function() {
+ return Sb() || Tb();
+}), Db = xb(function() {
+ return yb(/AppleWebKit/i) && (Tb() || !Ob());
+}), Ob = xb(function() {
+ return yb(/Chrome|CriOS|CrMo/i);
+}), kb = xb(function() {
+ return yb(/Android/i);
});
//#endregion
//#region node_modules/react-aria/dist/private/utils/isVirtualEvent.mjs
-function jb(e) {
- return e.pointerType === "" && e.isTrusted ? !0 : Ab() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
+function Ab(e) {
+ return e.pointerType === "" && e.isTrusted ? !0 : kb() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
}
-function Mb(e) {
- return !Ab() && e.width === 0 && e.height === 0 || Ab() && e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "mouse";
+function jb(e) {
+ return !kb() && e.width === 0 && e.height === 0 || kb() && 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 Nb = /*#__PURE__*/ (0, D.createContext)({
+var Mb = /*#__PURE__*/ (0, D.createContext)({
isNative: !0,
open: Xne,
useHref: (e) => e
});
-function Pb() {
- return (0, D.useContext)(Nb);
+function Nb() {
+ return (0, D.useContext)(Mb);
}
-function Fb(e, t) {
+function Pb(e, t) {
let n = e.getAttribute("target");
return (!n || n === "_self") && e.origin === location.origin && !e.hasAttribute("download") && !t.metaKey && !t.ctrlKey && !t.altKey && !t.shiftKey;
}
-function Ib(e, t, n = !0) {
- let { metaKey: r, ctrlKey: i, altKey: a, shiftKey: o } = t, s = Ob() && Cb() && !Tb() ? new KeyboardEvent("keydown", {
+function Fb(e, t, n = !0) {
+ let { metaKey: r, ctrlKey: i, altKey: a, shiftKey: o } = t, s = Db() && Sb() && !wb() ? new KeyboardEvent("keydown", {
keyIdentifier: "Enter",
metaKey: r,
ctrlKey: i,
@@ -20807,9 +20808,9 @@ function Ib(e, t, n = !0) {
bubbles: !0,
cancelable: !0
});
- Ib.isOpening = n, Ky(e), e.dispatchEvent(s), Ib.isOpening = !1;
+ Fb.isOpening = n, Gy(e), e.dispatchEvent(s), Fb.isOpening = !1;
}
-Ib.isOpening = !1;
+Fb.isOpening = !1;
function Yne(e, t) {
if (e instanceof HTMLAnchorElement) t(e);
else if (e.hasAttribute("data-href")) {
@@ -20818,10 +20819,10 @@ function Yne(e, t) {
}
}
function Xne(e, t) {
- Yne(e, (e) => Ib(e, t));
+ Yne(e, (e) => Fb(e, t));
}
-function Lb(e) {
- let t = Pb().useHref(e.href ?? "");
+function Ib(e) {
+ let t = Nb().useHref(e.href ?? "");
return {
"data-href": e.href ? t : void 0,
"data-target": e.target,
@@ -20831,8 +20832,8 @@ function Lb(e) {
"data-referrer-policy": e.referrerPolicy
};
}
-function Rb(e) {
- let t = Pb().useHref(e?.href ?? ""), n = {};
+function Lb(e) {
+ let t = Nb().useHref(e?.href ?? ""), n = {};
if (e) for (let r of [
"href",
"target",
@@ -20844,37 +20845,37 @@ function Rb(e) {
return n;
}
function Zne(e, t, n, r) {
- !t.isNative && e.currentTarget instanceof HTMLAnchorElement && e.currentTarget.href && !e.isDefaultPrevented() && Fb(e.currentTarget, e) && n && (e.preventDefault(), t.open(e.currentTarget, e, n, r));
+ !t.isNative && e.currentTarget instanceof HTMLAnchorElement && e.currentTarget.href && !e.isDefaultPrevented() && Pb(e.currentTarget, e) && n && (e.preventDefault(), t.open(e.currentTarget, e, n, r));
}
//#endregion
//#region node_modules/react-aria/dist/private/ssr/SSRProvider.mjs
-var zb = {
+var Rb = {
prefix: String(Math.round(Math.random() * 1e10)),
current: 0
-}, Bb = /*#__PURE__*/ D.createContext(zb), Qne = /*#__PURE__*/ D.createContext(!1);
+}, zb = /*#__PURE__*/ D.createContext(Rb), Qne = /*#__PURE__*/ D.createContext(!1);
typeof window < "u" && window.document && window.document.createElement;
-var Vb = /* @__PURE__ */ new WeakMap();
+var Bb = /* @__PURE__ */ new WeakMap();
function $ne(e = !1) {
- let t = (0, D.useContext)(Bb), n = (0, D.useRef)(null);
+ let t = (0, D.useContext)(zb), n = (0, D.useRef)(null);
if (n.current === null && !e) {
let e = D.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?.ReactCurrentOwner?.current;
if (e) {
- let n = Vb.get(e);
- n == null ? Vb.set(e, {
+ let n = Bb.get(e);
+ n == null ? Bb.set(e, {
id: t.current,
state: e.memoizedState
- }) : e.memoizedState !== n.state && (t.current = n.id, Vb.delete(e));
+ }) : e.memoizedState !== n.state && (t.current = n.id, Bb.delete(e));
}
n.current = ++t.current;
}
return n.current;
}
function ere(e) {
- let t = (0, D.useContext)(Bb), n = $ne(!!e), r = `react-aria${t.prefix}`;
+ let t = (0, D.useContext)(zb), n = $ne(!!e), r = `react-aria${t.prefix}`;
return e || `${r}-${n}`;
}
function tre(e) {
- let t = D.useId(), [n] = (0, D.useState)(Hb()), r = n ? "react-aria" : `react-aria${zb.prefix}`;
+ let t = D.useId(), [n] = (0, D.useState)(Vb()), r = n ? "react-aria" : `react-aria${Rb.prefix}`;
return e || `${r}-${t}`;
}
var nre = typeof D.useId == "function" ? tre : ere;
@@ -20887,94 +20888,94 @@ function ire() {
function are(e) {
return () => {};
}
-function Hb() {
+function Vb() {
return typeof D.useSyncExternalStore == "function" ? D.useSyncExternalStore(are, rre, ire) : (0, D.useContext)(Qne);
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useFocusVisible.mjs
-var Ub = null, Wb = /* @__PURE__ */ new Set(), Gb = /* @__PURE__ */ new Map(), Kb = !1, qb = !1, ore = {
+var Hb = null, Ub = /* @__PURE__ */ new Set(), Wb = /* @__PURE__ */ new Map(), Gb = !1, Kb = !1, ore = {
Tab: !0,
Escape: !0
};
-function Jb(e, t) {
- for (let n of Wb) n(e, t);
+function qb(e, t) {
+ for (let n of Ub) n(e, t);
}
function sre(e) {
- return !(e.metaKey || !Cb() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
+ return !(e.metaKey || !Sb() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
+}
+function Jb(e) {
+ Gb = !0, !Fb.isOpening && sre(e) && (Hb = "keyboard", qb("keyboard", e));
}
function Yb(e) {
- Kb = !0, !Ib.isOpening && sre(e) && (Ub = "keyboard", Jb("keyboard", e));
+ Hb = "pointer", "pointerType" in e && e.pointerType, (e.type === "mousedown" || e.type === "pointerdown") && (Gb = !0, qb("pointer", e));
}
function Xb(e) {
- Ub = "pointer", "pointerType" in e && e.pointerType, (e.type === "mousedown" || e.type === "pointerdown") && (Kb = !0, Jb("pointer", e));
+ !Fb.isOpening && Ab(e) && (Gb = !0, Hb = "virtual");
}
function Zb(e) {
- !Ib.isOpening && jb(e) && (Kb = !0, Ub = "virtual");
+ if (_b) return;
+ let t = K(e), n = qy(t), r = Ky(t);
+ t === n ? Kb = !0 : t !== r && e.isTrusted && (!Gb && !Kb && (Hb = "virtual", qb("virtual", e)), Gb = !1, Kb = !1);
}
-function Qb(e) {
- if (vb) return;
- let t = G(e), n = Jy(t), r = qy(t);
- t === n ? qb = !0 : t !== r && e.isTrusted && (!Kb && !qb && (Ub = "virtual", Jb("virtual", e)), Kb = !1, qb = !1);
+function Qb() {
+ _b || (Gb = !1, Kb = !0);
}
-function $b() {
- vb || (Kb = !1, qb = !0);
-}
-function ex(e) {
- let t = tb(qy(G(e)));
+function $b(e) {
+ let t = eb(Ky(K(e)));
queueMicrotask(() => {
- tb(qy(G(e))) !== t && ax("keyboard");
+ eb(Ky(K(e))) !== t && ix("keyboard");
});
}
-function tx(e) {
+function ex(e) {
if (typeof window > "u" || typeof document > "u") return;
- let t = Jy(e), n = qy(e);
- if (Gb.get(t)) return;
+ let t = qy(e), n = Ky(e);
+ if (Wb.get(t)) return;
let r = t.HTMLElement.prototype.focus;
Reflect.defineProperty(t.HTMLElement.prototype, "focus", {
configurable: !0,
writable: !0,
value: function() {
- Kb = !0, r.apply(this, arguments);
+ Gb = !0, r.apply(this, arguments);
}
- }), n.addEventListener("keydown", Yb, !0), n.addEventListener("keyup", Yb, !0), n.addEventListener("click", Zb, !0), n.addEventListener("invalid", ex, !0), t.addEventListener("focus", Qb, !0), t.addEventListener("blur", $b, !1), typeof PointerEvent < "u" && (n.addEventListener("pointerdown", Xb, !0), n.addEventListener("pointermove", Xb, !0), n.addEventListener("pointerup", Xb, !0)), t.addEventListener("beforeunload", () => {
- nx(e);
- }, { once: !0 }), Gb.set(t, { focus: r });
+ }), n.addEventListener("keydown", Jb, !0), n.addEventListener("keyup", Jb, !0), n.addEventListener("click", Xb, !0), n.addEventListener("invalid", $b, !0), t.addEventListener("focus", Zb, !0), t.addEventListener("blur", Qb, !1), typeof PointerEvent < "u" && (n.addEventListener("pointerdown", Yb, !0), n.addEventListener("pointermove", Yb, !0), n.addEventListener("pointerup", Yb, !0)), t.addEventListener("beforeunload", () => {
+ tx(e);
+ }, { once: !0 }), Wb.set(t, { focus: r });
}
-var nx = (e, t) => {
- let n = Jy(e), r = qy(e);
- t && r.removeEventListener("DOMContentLoaded", t), Gb.has(n) && (Reflect.defineProperty(n.HTMLElement.prototype, "focus", {
+var tx = (e, t) => {
+ let n = qy(e), r = Ky(e);
+ t && r.removeEventListener("DOMContentLoaded", t), Wb.has(n) && (Reflect.defineProperty(n.HTMLElement.prototype, "focus", {
configurable: !0,
writable: !0,
- value: Gb.get(n).focus
- }), r.removeEventListener("keydown", Yb, !0), r.removeEventListener("keyup", Yb, !0), r.removeEventListener("click", Zb, !0), r.removeEventListener("invalid", ex, !0), n.removeEventListener("focus", Qb, !0), n.removeEventListener("blur", $b, !1), typeof PointerEvent < "u" && (r.removeEventListener("pointerdown", Xb, !0), r.removeEventListener("pointermove", Xb, !0), r.removeEventListener("pointerup", Xb, !0)), Gb.delete(n));
+ value: Wb.get(n).focus
+ }), r.removeEventListener("keydown", Jb, !0), r.removeEventListener("keyup", Jb, !0), r.removeEventListener("click", Xb, !0), r.removeEventListener("invalid", $b, !0), n.removeEventListener("focus", Zb, !0), n.removeEventListener("blur", Qb, !1), typeof PointerEvent < "u" && (r.removeEventListener("pointerdown", Yb, !0), r.removeEventListener("pointermove", Yb, !0), r.removeEventListener("pointerup", Yb, !0)), Wb.delete(n));
};
function cre(e) {
- let t = qy(e), n;
+ let t = Ky(e), n;
return t.readyState === "loading" ? (n = () => {
- tx(e);
- }, t.addEventListener("DOMContentLoaded", n)) : tx(e), () => nx(e, n);
+ ex(e);
+ }, t.addEventListener("DOMContentLoaded", n)) : ex(e), () => tx(e, n);
}
typeof document < "u" && cre();
-function rx() {
- return Ub !== "pointer";
+function nx() {
+ return Hb !== "pointer";
}
-function ix() {
- return Ub;
+function rx() {
+ return Hb;
}
-function ax(e) {
- Ub = e, Jb(e, null);
+function ix(e) {
+ Hb = e, qb(e, null);
}
-function ox() {
- tx();
- let [e, t] = (0, D.useState)(Ub);
+function ax() {
+ ex();
+ let [e, t] = (0, D.useState)(Hb);
return (0, D.useEffect)(() => {
let e = () => {
- t(Ub);
+ t(Hb);
};
- return Wb.add(e), () => {
- Wb.delete(e);
+ return Ub.add(e), () => {
+ Ub.delete(e);
};
- }, []), Hb() ? null : e;
+ }, []), Vb() ? null : e;
}
var lre = /* @__PURE__ */ new Set([
"checkbox",
@@ -20988,76 +20989,76 @@ var lre = /* @__PURE__ */ new Set([
"reset"
]);
function ure(e, t, n) {
- let r = n ? G(n) : void 0, i = qy(r), a = Jy(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 = tb(i);
+ let r = n ? K(n) : void 0, i = Ky(r), a = qy(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 = eb(i);
return e = e || u instanceof o && !lre.has(u.type) || u instanceof s || u instanceof c && u.isContentEditable, !(e && t === "keyboard" && n instanceof l && !ore[n.key]);
}
-function sx(e = {}) {
- let { isTextInput: t, autoFocus: n } = e, [r, i] = (0, D.useState)(n || rx());
- return cx((e) => {
+function ox(e = {}) {
+ let { isTextInput: t, autoFocus: n } = e, [r, i] = (0, D.useState)(n || nx());
+ return sx((e) => {
i(e);
}, [t], { isTextInput: t }), { isFocusVisible: r };
}
-function cx(e, t, n) {
- tx(), (0, D.useEffect)(() => {
+function sx(e, t, n) {
+ ex(), (0, D.useEffect)(() => {
if (n?.enabled === !1) return;
let t = (t, r) => {
- ure(!!n?.isTextInput, t, r) && e(rx());
+ ure(!!n?.isTextInput, t, r) && e(nx());
};
- return Wb.add(t), () => {
- Wb.delete(t);
+ return Ub.add(t), () => {
+ Ub.delete(t);
};
}, t);
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/runAfterTransition.mjs
-var lx = /* @__PURE__ */ new Map(), ux = /* @__PURE__ */ new Set();
-function dx(e) {
+var cx = /* @__PURE__ */ new Map(), lx = /* @__PURE__ */ new Set();
+function ux(e) {
return "propertyName" in e;
}
function dre(e) {
- let t = G(e);
- if (!dx(e) || !t) return;
- let n = lx.get(t);
- n || (n = /* @__PURE__ */ new Set(), lx.set(t, n), t.addEventListener("transitioncancel", fx, { once: !0 })), n.add(e.propertyName);
+ let t = K(e);
+ if (!ux(e) || !t) return;
+ let n = cx.get(t);
+ n || (n = /* @__PURE__ */ new Set(), cx.set(t, n), t.addEventListener("transitioncancel", dx, { once: !0 })), n.add(e.propertyName);
}
-function fx(e) {
- let t = G(e);
- if (!dx(e) || !t) return;
- let n = lx.get(t);
- if (n && (n.delete(e.propertyName), n.size === 0 && (t.removeEventListener("transitioncancel", fx), lx.delete(t)), lx.size === 0)) for (let e of ux) e(!0), ux.delete(e);
+function dx(e) {
+ let t = K(e);
+ if (!ux(e) || !t) return;
+ let n = cx.get(t);
+ if (n && (n.delete(e.propertyName), n.size === 0 && (t.removeEventListener("transitioncancel", dx), cx.delete(t)), cx.size === 0)) for (let e of lx) e(!0), lx.delete(e);
}
-function px() {
- Zy(document, "transitionrun", dre), Zy(document, "transitionend", fx);
+function fx() {
+ Xy(document, "transitionrun", dre), Xy(document, "transitionend", dx);
}
function fre() {
- for (let [e] of lx) "isConnected" in e && !e.isConnected && lx.delete(e);
+ for (let [e] of cx) "isConnected" in e && !e.isConnected && cx.delete(e);
}
-typeof document < "u" && (document.readyState === "loading" ? Zy(document, "DOMContentLoaded", px) : px());
-function mx(e) {
+typeof document < "u" && (document.readyState === "loading" ? Xy(document, "DOMContentLoaded", fx) : fx());
+function px(e) {
let t = window.requestAnimationFrame(() => {
- if (fre(), lx.size === 0) return e(!1);
- ux.add(e);
+ if (fre(), cx.size === 0) return e(!1);
+ lx.add(e);
});
return () => {
- window.cancelAnimationFrame(t), ux.delete(e);
+ window.cancelAnimationFrame(t), lx.delete(e);
};
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/focusSafely.mjs
-function hx(e) {
+function mx(e) {
if (!e.isConnected) return;
- let t = qy(e);
- if (ix() === "virtual") {
- let n = tb(t);
- mx(() => {
- let r = tb(t);
- (r === n || r === t.body) && e.isConnected && Ky(e);
+ let t = Ky(e);
+ if (rx() === "virtual") {
+ let n = eb(t);
+ px(() => {
+ let r = eb(t);
+ (r === n || r === t.body) && e.isConnected && Gy(e);
});
- } else Ky(e);
+ } else Gy(e);
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/chain.mjs
-function gx(...e) {
+function hx(...e) {
return (...t) => {
for (let n of e) typeof n == "function" && n(...t);
};
@@ -21070,7 +21071,7 @@ function pre(e) {
let e = i.current.next();
e.done ? i.current = null : r.current === e.value ? a.current() : n(e.value);
});
- return mb(() => {
+ return pb(() => {
r.current = t, i.current && a.current();
}), [t, (0, D.useCallback)((e) => {
i.current = e(r.current), a.current();
@@ -21078,21 +21079,21 @@ function pre(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useId.mjs
-var mre = !!(typeof window < "u" && window.document && window.document.createElement), _x = /* @__PURE__ */ new Map(), vx;
-typeof FinalizationRegistry < "u" && (vx = new FinalizationRegistry((e) => {
- _x.delete(e);
+var mre = !!(typeof window < "u" && window.document && window.document.createElement), gx = /* @__PURE__ */ new Map(), _x;
+typeof FinalizationRegistry < "u" && (_x = new FinalizationRegistry((e) => {
+ gx.delete(e);
}));
-var yx = /* @__PURE__ */ new WeakMap();
-function bx(e) {
- let [t, n] = (0, D.useState)(e), r = (0, D.useRef)(null), i = nre(t), a = (0, D.useRef)(null), o = yx.get(a);
- if (vx && o !== i && (o != null && vx.unregister(a), vx.register(a, i, a), yx.set(a, i)), mre) {
- let e = _x.get(i);
- e && !e.includes(r) ? e.push(r) : _x.set(i, [r]);
- }
- return mb(() => {
+var vx = /* @__PURE__ */ new WeakMap();
+function yx(e) {
+ let [t, n] = (0, D.useState)(e), r = (0, D.useRef)(null), i = nre(t), a = (0, D.useRef)(null), o = vx.get(a);
+ if (_x && o !== i && (o != null && _x.unregister(a), _x.register(a, i, a), vx.set(a, i)), mre) {
+ let e = gx.get(i);
+ e && !e.includes(r) ? e.push(r) : gx.set(i, [r]);
+ }
+ return pb(() => {
let e = i;
return () => {
- vx && (vx.unregister(a), yx.delete(a)), _x.delete(e);
+ _x && (_x.unregister(a), vx.delete(a)), gx.delete(e);
};
}, [i]), (0, D.useEffect)(() => {
let e = r.current;
@@ -21103,18 +21104,18 @@ function bx(e) {
}
function hre(e, t) {
if (e === t) return e;
- let n = _x.get(e);
+ let n = gx.get(e);
if (n) return n.forEach((e) => e.current = t), t;
- let r = _x.get(t);
+ let r = gx.get(t);
return r ? (r.forEach((t) => t.current = e), e) : t;
}
-function xx(e = []) {
- let t = bx(), [n, r] = pre(t), i = (0, D.useCallback)(() => {
+function bx(e = []) {
+ let t = yx(), [n, r] = pre(t), i = (0, D.useCallback)(() => {
r(function* () {
yield t, yield document.getElementById(t) ? t : void 0;
});
}, [t, r]);
- return mb(i, [
+ return pb(i, [
t,
i,
...e
@@ -21122,60 +21123,60 @@ function xx(e = []) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/mergeRefs.mjs
-function Sx(...e) {
+function xx(...e) {
return e.length === 1 && e[0] ? e[0] : (t) => {
let n = !1, r = e.map((e) => {
- let r = Cx(e, t);
+ let r = Sx(e, t);
return n ||= typeof r == "function", r;
});
if (n) return () => {
r.forEach((t, n) => {
- typeof t == "function" ? t() : Cx(e[n], null);
+ typeof t == "function" ? t() : Sx(e[n], null);
});
};
};
}
-function Cx(e, t) {
+function Sx(e, t) {
if (typeof e == "function") return e(t);
e != null && (e.current = t);
}
//#endregion
//#region node_modules/clsx/dist/clsx.mjs
-function wx(e) {
+function Cx(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 = wx(e[t])) && (r && (r += " "), r += n);
+ for (t = 0; t < i; t++) e[t] && (n = Cx(e[t])) && (r && (r += " "), r += n);
} else for (n in e) e[n] && (r && (r += " "), r += n);
}
return r;
}
-function Tx() {
- for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = wx(e)) && (r && (r += " "), r += t);
+function wx() {
+ for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = Cx(e)) && (r && (r += " "), r += t);
return r;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/mergeProps.mjs
-function K(...e) {
+function q(...e) {
let t = { ...e[0] };
for (let n = 1; n < e.length; n++) {
let r = e[n];
for (let e in r) {
let n = t[e], i = r[e];
- typeof n == "function" && typeof i == "function" && e[0] === "o" && e[1] === "n" && e.charCodeAt(2) >= 65 && e.charCodeAt(2) <= 90 ? t[e] = gx(n, i) : (e === "className" || e === "UNSAFE_className") && typeof n == "string" && typeof i == "string" ? t[e] = Tx(n, i) : e === "id" && n && i ? t.id = hre(n, i) : e === "ref" && n && i ? t.ref = Sx(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] = hx(n, i) : (e === "className" || e === "UNSAFE_className") && typeof n == "string" && typeof i == "string" ? t[e] = wx(n, i) : e === "id" && n && i ? t.id = hre(n, i) : e === "ref" && n && i ? t.ref = xx(n, i) : t[e] = i === void 0 ? n : i;
}
}
return t;
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useFocus.mjs
-function Ex(e) {
+function Tx(e) {
let { isDisabled: t, onFocus: n, onBlur: r, onFocusChange: i } = e, a = (0, D.useCallback)((e) => {
- if (G(e) === e.currentTarget) return r && r(e), i && i(!1), !0;
- }, [r, i]), o = _b(a), s = (0, D.useCallback)((e) => {
- let t = G(e), r = qy(t), a = r ? tb(r) : tb();
+ if (K(e) === e.currentTarget) return r && r(e), i && i(!1), !0;
+ }, [r, i]), o = gb(a), s = (0, D.useCallback)((e) => {
+ let t = K(e), r = Ky(t), a = r ? eb(r) : eb();
t === e.currentTarget && t === a && (n && n(e), i && i(!0), o(e));
}, [
i,
@@ -21189,7 +21190,7 @@ function Ex(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/createEventHandler.mjs
-function Dx(e) {
+function Ex(e) {
if (e) return (t) => {
let n = !0;
e({
@@ -21228,13 +21229,13 @@ var gre = /* @__PURE__ */ new Set([
];
function vre(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(Cb() ? "Meta" : "Control"), t;
+ return e.alt && t.add("Alt"), e.shift && t.add("Shift"), e.ctrl && t.add("Control"), e.meta && t.add("Meta"), e.mod && t.add(Sb() ? "Meta" : "Control"), t;
}
function yre(e) {
let t = /* @__PURE__ */ new Set();
return e.altKey && t.add("Alt"), e.ctrlKey && t.add("Control"), e.metaKey && t.add("Meta"), e.shiftKey && t.add("Shift"), t;
}
-function Ox(e) {
+function Dx(e) {
return _re.filter((t) => e.has(t));
}
function bre(e) {
@@ -21252,7 +21253,7 @@ function bre(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 kx(e) {
+function Ox(e) {
return e.toLowerCase();
}
var xre = {
@@ -21268,15 +21269,15 @@ var xre = {
pagedown: "pagedown"
};
function Sre(e) {
- let t = kx(e);
+ let t = Ox(e);
return xre[t] ?? t;
}
function Cre(e) {
- let t = Ox(vre(e)), n = Sre(e.key);
+ let t = Dx(vre(e)), n = Sre(e.key);
return t.length > 0 ? `${t.join("+")}+${n}` : n;
}
function wre(e) {
- let t = Ox(yre(e)), n = kx(e.key);
+ let t = Dx(yre(e)), n = Ox(e.key);
return (t.length > 0 ? `${t.join("+")}+` : "") + n;
}
function Tre(e) {
@@ -21298,16 +21299,16 @@ function Tre(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useKeyboard.mjs
-function Ax(e) {
+function kx(e) {
let { shortcuts: t, allowRepeats: n = !1, allowComposing: r = !1 } = e, i, a;
if (t) {
- let o = Tre(t), s = Dx((e) => {
- eb(e.currentTarget, G(e)) ? e.nativeEvent?.repeat && !n || e.nativeEvent?.isComposing && !r ? e.continuePropagation() : o(e) : e.continuePropagation();
- }), c = Dx((e) => {
- eb(e.currentTarget, G(e)) && (e.nativeEvent?.repeat && !n || e.nativeEvent?.isComposing), e.continuePropagation();
+ let o = Tre(t), s = Ex((e) => {
+ $y(e.currentTarget, K(e)) ? e.nativeEvent?.repeat && !n || e.nativeEvent?.isComposing && !r ? e.continuePropagation() : o(e) : e.continuePropagation();
+ }), c = Ex((e) => {
+ $y(e.currentTarget, K(e)) && (e.nativeEvent?.repeat && !n || e.nativeEvent?.isComposing), e.continuePropagation();
});
- i = e.onKeyDown ? gx(e.onKeyDown, s) : s, a = e.onKeyUp ? gx(e.onKeyUp, c) : c;
- } else i = Dx(e.onKeyDown), a = Dx(e.onKeyUp);
+ i = e.onKeyDown ? hx(e.onKeyDown, s) : s, a = e.onKeyUp ? hx(e.onKeyUp, c) : c;
+ } else i = Ex(e.onKeyDown), a = Ex(e.onKeyUp);
return { keyboardProps: e.isDisabled ? {} : {
onKeyDown: i,
onKeyUp: a
@@ -21315,7 +21316,7 @@ function Ax(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useObjectRef.mjs
-function jx(e) {
+function Ax(e) {
let t = (0, D.useRef)(null), n = (0, D.useRef)(void 0), r = (0, D.useCallback)((t) => {
if (typeof e == "function") {
let n = e, r = n(t);
@@ -21338,8 +21339,8 @@ function jx(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useSyncRef.mjs
-function Mx(e, t) {
- mb(() => {
+function jx(e, t) {
+ pb(() => {
if (e && e.ref && t) return e.ref.current = t.current, () => {
e.ref && (e.ref.current = null);
};
@@ -21347,20 +21348,20 @@ function Mx(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useFocusable.mjs
-var Nx = /*#__PURE__*/ D.createContext(null);
+var Mx = /*#__PURE__*/ D.createContext(null);
function Ere(e) {
- let t = (0, D.useContext)(Nx) || {};
- Mx(t, e);
+ let t = (0, D.useContext)(Mx) || {};
+ jx(t, e);
let { ref: n, ...r } = t;
return r;
}
-function Px(e, t) {
- let { focusProps: n } = Ex(e), { keyboardProps: r } = Ax(e), i = K(n, r), a = Ere(t), o = e.isDisabled ? {} : a, s = (0, D.useRef)(e.autoFocus);
+function Nx(e, t) {
+ let { focusProps: n } = Tx(e), { keyboardProps: r } = kx(e), i = q(n, r), a = Ere(t), o = e.isDisabled ? {} : a, s = (0, D.useRef)(e.autoFocus);
(0, D.useEffect)(() => {
- s.current && t.current && hx(t.current), s.current = !1;
+ s.current && t.current && mx(t.current), s.current = !1;
}, [t]);
let c = e.excludeFromTabOrder ? -1 : 0;
- return e.isDisabled && (c = void 0), { focusableProps: K({
+ return e.isDisabled && (c = void 0), { focusableProps: q({
...i,
tabIndex: c
}, o) };
@@ -21392,18 +21393,18 @@ typeof HTMLTemplateElement < "u" && (Object.defineProperty(HTMLTemplateElement.p
return this.content.insertBefore(e, t);
}
}));
-var Fx = /*#__PURE__*/ (0, D.createContext)(!1);
+var Px = /*#__PURE__*/ (0, D.createContext)(!1);
function Dre(e) {
- if ((0, D.useContext)(Fx)) return /*#__PURE__*/ D.createElement(D.Fragment, null, e.children);
- let t = /*#__PURE__*/ D.createElement(Fx.Provider, { value: !0 }, e.children);
+ if ((0, D.useContext)(Px)) return /*#__PURE__*/ D.createElement(D.Fragment, null, e.children);
+ let t = /*#__PURE__*/ D.createElement(Px.Provider, { value: !0 }, e.children);
return /*#__PURE__*/ D.createElement("template", null, t);
}
-function Ix(e) {
- let t = (t, n) => (0, D.useContext)(Fx) ? null : e(t, n);
+function Fx(e) {
+ let t = (t, n) => (0, D.useContext)(Px) ? null : e(t, n);
return t.displayName = e.displayName || e.name, (0, D.forwardRef)(t);
}
-function Lx() {
- return (0, D.useContext)(Fx);
+function Ix() {
+ return (0, D.useContext)(Px);
}
//#endregion
//#region node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js
@@ -21445,13 +21446,13 @@ var Ore = /* @__PURE__ */ o(((e) => {
}
var d = typeof window > "u" || window.document === void 0 || window.document.createElement === void 0 ? u : c;
e.useSyncExternalStore = t.useSyncExternalStore === void 0 ? d : t.useSyncExternalStore;
-})), Rx = /* @__PURE__ */ o(((e, t) => {
+})), Lx = /* @__PURE__ */ o(((e, t) => {
t.exports = Ore();
-})), kre = Rx(), zx = /*#__PURE__*/ (0, D.createContext)(!1), Bx = /*#__PURE__*/ (0, D.createContext)(null);
-function Vx(e) {
- if ((0, D.useContext)(Bx)) return e.content;
+})), kre = Lx(), Rx = /*#__PURE__*/ (0, D.createContext)(!1), zx = /*#__PURE__*/ (0, D.createContext)(null);
+function Bx(e) {
+ if ((0, D.useContext)(zx)) return e.content;
let { collection: t, document: n } = Nre(e.createCollection);
- return /*#__PURE__*/ D.createElement(D.Fragment, null, /*#__PURE__*/ D.createElement(Dre, null, /*#__PURE__*/ D.createElement(Bx.Provider, { value: n }, e.content)), /*#__PURE__*/ D.createElement(Are, {
+ return /*#__PURE__*/ D.createElement(D.Fragment, null, /*#__PURE__*/ D.createElement(Dre, null, /*#__PURE__*/ D.createElement(zx.Provider, { value: n }, e.content)), /*#__PURE__*/ D.createElement(Are, {
render: e.children,
collection: t
}));
@@ -21460,14 +21461,14 @@ function Are({ collection: e, render: t }) {
return t(e);
}
function jre(e, t, n) {
- let r = Hb(), i = (0, D.useRef)(r);
+ let r = Vb(), i = (0, D.useRef)(r);
i.current = r;
let a = (0, D.useCallback)(() => i.current ? n() : t(), [t, n]);
return (0, kre.useSyncExternalStore)(e, a);
}
var Mre = typeof D.useSyncExternalStore == "function" ? D.useSyncExternalStore : jre;
function Nre(e) {
- let [t] = (0, D.useState)(() => new Wne(e?.() || new Vy()));
+ let [t] = (0, D.useState)(() => new Wne(e?.() || new By()));
return {
collection: Mre((0, D.useCallback)((e) => t.subscribe(e), [t]), (0, D.useCallback)(() => {
let e = t.getCollection();
@@ -21476,15 +21477,15 @@ function Nre(e) {
document: t
};
}
-var Hx = /*#__PURE__*/ (0, D.createContext)(null);
+var Vx = /*#__PURE__*/ (0, D.createContext)(null);
function Pre(e) {
- return class extends Ly {
+ return class extends Iy {
static {
this.type = e;
}
};
}
-function Ux(e, t, n, r, i, a) {
+function Hx(e, t, n, r, i, a) {
typeof e == "string" && (e = Pre(e));
let o = (0, D.useCallback)((i) => {
i?.setProps(t, n, e, r, a);
@@ -21494,58 +21495,58 @@ function Ux(e, t, n, r, i, a) {
r,
a,
e
- ]), s = (0, D.useContext)(Hx);
+ ]), s = (0, D.useContext)(Vx);
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__*/ D.createElement(Hx.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__*/ D.createElement(Vx.Provider, { value: o }, i) : null;
}
return /*#__PURE__*/ D.createElement(e.type, { ref: o }, i);
}
-function Wx(e, t) {
+function Ux(e, t) {
let n = ({ node: e }) => t(e.props, e.props.ref, e), r = (0, D.forwardRef)((r, i) => {
- let a = (0, D.useContext)(Nx);
- if (!(0, D.useContext)(zx)) {
+ let a = (0, D.useContext)(Mx);
+ if (!(0, D.useContext)(Rx)) {
if (t.length >= 3) throw Error(t.name + " cannot be rendered outside a collection.");
return t(r, i);
}
- return Ux(e, r, i, "children" in r ? r.children : null, null, (e) => /*#__PURE__*/ D.createElement(Nx.Provider, { value: a }, /*#__PURE__*/ D.createElement(n, { node: e })));
+ return Hx(e, r, i, "children" in r ? r.children : null, null, (e) => /*#__PURE__*/ D.createElement(Mx.Provider, { value: a }, /*#__PURE__*/ D.createElement(n, { node: e })));
});
return r.displayName = t.name, r;
}
-function Gx(e, t, n = Kx) {
- let r = ({ node: e }) => t(e.props, e.props.ref, e), i = (0, D.forwardRef)((t, i) => Ux(e, t, i, null, n(t), (e) => /*#__PURE__*/ D.createElement(r, { node: e })) ?? /*#__PURE__*/ D.createElement(D.Fragment, null));
+function Wx(e, t, n = Gx) {
+ let r = ({ node: e }) => t(e.props, e.props.ref, e), i = (0, D.forwardRef)((t, i) => Hx(e, t, i, null, n(t), (e) => /*#__PURE__*/ D.createElement(r, { node: e })) ?? /*#__PURE__*/ D.createElement(D.Fragment, null));
return i.displayName = t.name, i;
}
-function Kx(e) {
- return Gy({
+function Gx(e) {
+ return Wy({
...e,
addIdAndValue: !0
});
}
-var qx = /*#__PURE__*/ (0, D.createContext)(null);
-function Jx(e) {
- let t = (0, D.useContext)(qx), n = (t?.dependencies || []).concat(e.dependencies), r = e.idScope ?? t?.idScope, i = Kx({
+var Kx = /*#__PURE__*/ (0, D.createContext)(null);
+function qx(e) {
+ let t = (0, D.useContext)(Kx), n = (t?.dependencies || []).concat(e.dependencies), r = e.idScope ?? t?.idScope, i = Gx({
...e,
idScope: r,
dependencies: n
});
- return (0, D.useContext)(Bx) && (i = /*#__PURE__*/ D.createElement(Fre, null, i)), t = (0, D.useMemo)(() => ({
+ return (0, D.useContext)(zx) && (i = /*#__PURE__*/ D.createElement(Fre, null, i)), t = (0, D.useMemo)(() => ({
dependencies: n,
idScope: r
- }), [r, ...n]), /*#__PURE__*/ D.createElement(qx.Provider, { value: t }, i);
+ }), [r, ...n]), /*#__PURE__*/ D.createElement(Kx.Provider, { value: t }, i);
}
function Fre({ children: e }) {
- let t = (0, D.useContext)(Bx), n = (0, D.useMemo)(() => /*#__PURE__*/ D.createElement(Bx.Provider, { value: null }, /*#__PURE__*/ D.createElement(zx.Provider, { value: !0 }, e)), [e]);
- return Hb() ? /*#__PURE__*/ D.createElement(Hx.Provider, { value: t }, n) : /*#__PURE__*/ (0, Tt.createPortal)(n, t);
+ let t = (0, D.useContext)(zx), n = (0, D.useMemo)(() => /*#__PURE__*/ D.createElement(zx.Provider, { value: null }, /*#__PURE__*/ D.createElement(Rx.Provider, { value: !0 }, e)), [e]);
+ return Vb() ? /*#__PURE__*/ D.createElement(Vx.Provider, { value: t }, n) : /*#__PURE__*/ (0, Tt.createPortal)(n, t);
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/constants.mjs
var Ire = "react-aria-clear-focus", Lre = "react-aria-focus";
//#endregion
//#region node_modules/react-aria/dist/private/focus/virtualFocus.mjs
-function Yx(e) {
- let t = zre(qy(e));
- t !== e && (t && Rre(t, e), e && Xx(e, t));
+function Jx(e) {
+ let t = zre(Ky(e));
+ t !== e && (t && Rre(t, e), e && Yx(e, t));
}
function Rre(e, t) {
e.dispatchEvent(new FocusEvent("blur", { relatedTarget: t })), e.dispatchEvent(new FocusEvent("focusout", {
@@ -21553,27 +21554,27 @@ function Rre(e, t) {
relatedTarget: t
}));
}
-function Xx(e, t) {
+function Yx(e, t) {
e.dispatchEvent(new FocusEvent("focus", { relatedTarget: t })), e.dispatchEvent(new FocusEvent("focusin", {
bubbles: !0,
relatedTarget: t
}));
}
function zre(e) {
- let t = tb(e), n = t?.getAttribute("aria-activedescendant");
+ let t = eb(e), n = t?.getAttribute("aria-activedescendant");
return n && e.getElementById(n) || t;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/getMetaValue.mjs
-function Zx(e, t) {
- let n = Jy(t), r = qy(t);
+function Xx(e, t) {
+ let n = qy(t), r = Ky(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/keyboard.mjs
-var Qx = 100, $x = 600, eS = {
+var Zx = 100, Qx = 600, $x = {
isOpen: !1,
screenWidth: 0,
screenHeight: 0,
@@ -21594,7 +21595,7 @@ var Qx = 100, $x = 600, eS = {
"submit",
"reset"
]);
-function tS() {
+function eS() {
let e = Number(window.visualViewport?.width ?? window.innerWidth), t = Number(window.visualViewport?.height ?? window.innerHeight), n = Number(window.visualViewport?.scale ?? 1);
return {
width: e * n,
@@ -21603,56 +21604,56 @@ function tS() {
};
}
function Vre(e) {
- eS.resizeTimeStamp <= e.timeStamp + 50 && (eS.resizeTimeStamp = e.timeStamp + 150, window.clearTimeout(eS.resizeTimeout), eS.resizeTimeout = window.setTimeout(nS, 150));
+ $x.resizeTimeStamp <= e.timeStamp + 50 && ($x.resizeTimeStamp = e.timeStamp + 150, window.clearTimeout($x.resizeTimeout), $x.resizeTimeout = window.setTimeout(tS, 150));
}
-function nS() {
- let e = Zx("viewport");
- if (Ab() && e?.includes("overlays-content")) return;
- let t = performance.now(), n = tS(), r = t - eS.startTimeStamp, i = eS.screenHeight - n.height, a = eS.screenAngle - n.angle;
- Math.abs(a) % 180 && eS.screenWidth - n.height < Qx && (eS.screenWidth = n.width, eS.screenHeight = n.height, eS.screenAngle = n.angle, i = 0), r > $x && (window.clearTimeout(eS.screenTimeout), eS.screenTimeout = window.setTimeout(() => {
- let e = aS(document.hasFocus() ? tb() : null), t = tS();
- Math.abs(eS.screenAngle - t.angle) % 180 || eS.isOpen && e || (eS.screenWidth = t.width, eS.screenHeight = t.height, eS.screenAngle = t.angle, eS.isOpen = !1);
- }, $x)), r <= $x && i >= Qx && (eS.endTimeStamp = t), eS.isOpen = i >= Qx;
+function tS() {
+ let e = Xx("viewport");
+ if (kb() && e?.includes("overlays-content")) return;
+ let t = performance.now(), n = eS(), r = t - $x.startTimeStamp, i = $x.screenHeight - n.height, a = $x.screenAngle - n.angle;
+ Math.abs(a) % 180 && $x.screenWidth - n.height < Zx && ($x.screenWidth = n.width, $x.screenHeight = n.height, $x.screenAngle = n.angle, i = 0), r > Qx && (window.clearTimeout($x.screenTimeout), $x.screenTimeout = window.setTimeout(() => {
+ let e = iS(document.hasFocus() ? eb() : null), t = eS();
+ Math.abs($x.screenAngle - t.angle) % 180 || $x.isOpen && e || ($x.screenWidth = t.width, $x.screenHeight = t.height, $x.screenAngle = t.angle, $x.isOpen = !1);
+ }, Qx)), r <= Qx && i >= Zx && ($x.endTimeStamp = t), $x.isOpen = i >= Zx;
}
function Hre() {
- let e = tS(), t = eS.screenAngle - e.angle;
- if (Math.abs(t) % 180 && !eS.isOpen) {
- let e = eS.screenWidth;
- eS.screenWidth = eS.screenHeight, eS.screenHeight = e;
+ let e = eS(), t = $x.screenAngle - e.angle;
+ if (Math.abs(t) % 180 && !$x.isOpen) {
+ let e = $x.screenWidth;
+ $x.screenWidth = $x.screenHeight, $x.screenHeight = e;
}
- eS.isOpen || (eS.screenAngle = e.angle);
+ $x.isOpen || ($x.screenAngle = e.angle);
}
function Ure(e) {
- let t = aS(G(e)), n = performance.now(), r = tS(), i = eS.screenHeight - r.height;
- i < Qx && t && (eS.screenWidth = r.width, eS.screenHeight = r.height, eS.screenAngle = r.angle, eS.startTimeStamp = n), t && window.clearTimeout(eS.screenTimeout), i >= Qx && t && (eS.endTimeStamp = n);
+ let t = iS(K(e)), n = performance.now(), r = eS(), i = $x.screenHeight - r.height;
+ i < Zx && t && ($x.screenWidth = r.width, $x.screenHeight = r.height, $x.screenAngle = r.angle, $x.startTimeStamp = n), t && window.clearTimeout($x.screenTimeout), i >= Zx && t && ($x.endTimeStamp = n);
}
-function rS() {
- let e = tS();
- Zy(window.visualViewport, "resize", Ob() ? nS : Vre), Zy(window.screen.orientation, "change", Hre), Zy(window, "focus", Ure, {
+function nS() {
+ let e = eS();
+ Xy(window.visualViewport, "resize", Db() ? tS : Vre), Xy(window.screen.orientation, "change", Hre), Xy(window, "focus", Ure, {
capture: !0,
passive: !0
- }), eS.screenWidth = e.width, eS.screenHeight = e.height, eS.screenAngle = e.angle;
+ }), $x.screenWidth = e.width, $x.screenHeight = e.height, $x.screenAngle = e.angle;
}
-typeof document < "u" && (document.readyState === "loading" ? Zy(document, "DOMContentLoaded", rS) : rS());
-function iS() {
- let e = Zx("viewport");
- return Ab() && e?.includes("overlays-content") ? !1 : eS.isOpen ? !0 : eS.startTimeStamp ? eS.endTimeStamp >= eS.startTimeStamp ? !0 : performance.now() - eS.startTimeStamp <= $x ? eS.endTimeStamp > 0 || window.navigator.maxTouchPoints > 0 : !1 : window.navigator.maxTouchPoints > 0;
+typeof document < "u" && (document.readyState === "loading" ? Xy(document, "DOMContentLoaded", nS) : nS());
+function rS() {
+ let e = Xx("viewport");
+ return kb() && e?.includes("overlays-content") ? !1 : $x.isOpen ? !0 : $x.startTimeStamp ? $x.endTimeStamp >= $x.startTimeStamp ? !0 : performance.now() - $x.startTimeStamp <= Qx ? $x.endTimeStamp > 0 || window.navigator.maxTouchPoints > 0 : !1 : window.navigator.maxTouchPoints > 0;
}
-function aS(e) {
- if (!(e instanceof Element) || !db(e)) return !1;
+function iS(e) {
+ if (!(e instanceof Element) || !ub(e)) return !1;
let t = e instanceof HTMLTextAreaElement, n = e instanceof HTMLElement && e.isContentEditable, r = e instanceof HTMLInputElement && !Bre.has(e.type);
return t || n || r;
}
-function oS(e) {
- return Cb() ? e.metaKey : e.ctrlKey;
+function aS(e) {
+ return Sb() ? e.metaKey : e.ctrlKey;
}
-function sS() {
- return eS.isOpen;
+function oS() {
+ return $x.isOpen;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useEffectEvent.mjs
-var Wre = D.useInsertionEffect ?? mb;
-function cS(e) {
+var Wre = D.useInsertionEffect ?? pb;
+function sS(e) {
let t = (0, D.useRef)(null);
return Wre(() => {
t.current = e;
@@ -21663,10 +21664,10 @@ function cS(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useEvent.mjs
-function lS(e, t, n, r) {
- let i = cS(n), a = n == null;
+function cS(e, t, n, r) {
+ let i = sS(n), a = n == null;
(0, D.useEffect)(() => {
- if (!(a || e.current == null)) return Zy(e.current, t, i, r);
+ if (!(a || e.current == null)) return Xy(e.current, t, i, r);
}, [
e,
t,
@@ -21676,9 +21677,9 @@ function lS(e, t, n, r) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useLabels.mjs
-function uS(e, t) {
+function lS(e, t) {
let { id: n, "aria-label": r, "aria-labelledby": i } = e;
- return n = bx(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 = yx(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
@@ -21729,9 +21730,9 @@ function qre(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/useDefaultLocale.mjs
-var dS = Symbol.for("react-aria.i18n.locale");
-function fS() {
- let e = typeof window < "u" && window[dS] || typeof navigator < "u" && (navigator.language || navigator.userLanguage) || "en-US";
+var uS = Symbol.for("react-aria.i18n.locale");
+function dS() {
+ let e = typeof window < "u" && window[uS] || typeof navigator < "u" && (navigator.language || navigator.userLanguage) || "en-US";
try {
Intl.DateTimeFormat.supportedLocalesOf([e]);
} catch {
@@ -21742,30 +21743,30 @@ function fS() {
direction: qre(e) ? "rtl" : "ltr"
};
}
-var pS = fS(), mS = /* @__PURE__ */ new Set();
-function hS() {
- pS = fS();
- for (let e of mS) e(pS);
+var fS = dS(), pS = /* @__PURE__ */ new Set();
+function mS() {
+ fS = dS();
+ for (let e of pS) e(fS);
}
function Jre() {
- let e = Hb(), [t, n] = (0, D.useState)(pS);
- return (0, D.useEffect)(() => (mS.size === 0 && window.addEventListener("languagechange", hS), mS.add(n), () => {
- mS.delete(n), mS.size === 0 && window.removeEventListener("languagechange", hS);
+ let e = Vb(), [t, n] = (0, D.useState)(fS);
+ return (0, D.useEffect)(() => (pS.size === 0 && window.addEventListener("languagechange", mS), pS.add(n), () => {
+ pS.delete(n), pS.size === 0 && window.removeEventListener("languagechange", mS);
}), []), e ? {
- locale: typeof window < "u" && window[dS] || "en-US",
+ locale: typeof window < "u" && window[uS] || "en-US",
direction: "ltr"
} : t;
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/I18nProvider.mjs
var Yre = /*#__PURE__*/ D.createContext(null);
-function gS() {
+function hS() {
let e = Jre();
return (0, D.useContext)(Yre) || e;
}
//#endregion
//#region node_modules/@internationalized/string/dist/private/LocalizedStringDictionary.mjs
-var Xre = Symbol.for("react-aria.i18n.locale"), Zre = Symbol.for("react-aria.i18n.strings"), _S = void 0, vS = class e {
+var Xre = Symbol.for("react-aria.i18n.locale"), Zre = Symbol.for("react-aria.i18n.strings"), gS = void 0, _S = class e {
constructor(e, t = "en-US") {
this.strings = Object.fromEntries(Object.entries(e).filter(([, e]) => e)), this.defaultLocale = t;
}
@@ -21781,13 +21782,13 @@ var Xre = Symbol.for("react-aria.i18n.locale"), Zre = Symbol.for("react-aria.i18
static getGlobalDictionaryForPackage(t) {
if (typeof window > "u") return null;
let n = window[Xre];
- if (_S === void 0) {
+ if (gS === void 0) {
let t = window[Zre];
if (!t) return null;
- _S = {};
- for (let r in t) _S[r] = new e({ [n]: t[r] }, n);
+ gS = {};
+ for (let r in t) gS[r] = new e({ [n]: t[r] }, n);
}
- let r = _S?.[t];
+ let r = gS?.[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;
}
@@ -21808,7 +21809,7 @@ function eie(e) {
}
//#endregion
//#region node_modules/@internationalized/string/dist/private/LocalizedStringFormatter.mjs
-var yS = /* @__PURE__ */ new Map(), bS = /* @__PURE__ */ new Map(), tie = class {
+var vS = /* @__PURE__ */ new Map(), yS = /* @__PURE__ */ new Map(), tie = class {
constructor(e, t) {
this.locale = e, this.strings = t;
}
@@ -21819,27 +21820,27 @@ var yS = /* @__PURE__ */ new Map(), bS = /* @__PURE__ */ new Map(), tie = class
plural(e, t, n = "cardinal") {
let r = t["=" + e];
if (r) return typeof r == "function" ? r() : r;
- let i = this.locale + ":" + n, a = yS.get(i);
- return a || (a = new Intl.PluralRules(this.locale, { type: n }), yS.set(i, a)), r = t[a.select(e)] || t.other, typeof r == "function" ? r() : r;
+ let i = this.locale + ":" + n, a = vS.get(i);
+ return a || (a = new Intl.PluralRules(this.locale, { type: n }), vS.set(i, a)), r = t[a.select(e)] || t.other, typeof r == "function" ? r() : r;
}
number(e) {
- let t = bS.get(this.locale);
- return t || (t = new Intl.NumberFormat(this.locale), bS.set(this.locale, t)), t.format(e);
+ let t = yS.get(this.locale);
+ return t || (t = new Intl.NumberFormat(this.locale), yS.set(this.locale, t)), t.format(e);
}
select(e, t) {
let n = e[t] || e.other;
return typeof n == "function" ? n() : n;
}
-}, xS = /* @__PURE__ */ new WeakMap();
+}, bS = /* @__PURE__ */ new WeakMap();
function nie(e) {
- let t = xS.get(e);
- return t || (t = new vS(e), xS.set(e, t)), t;
+ let t = bS.get(e);
+ return t || (t = new _S(e), bS.set(e, t)), t;
}
function rie(e, t) {
- return t && vS.getGlobalDictionaryForPackage(t) || nie(e);
+ return t && _S.getGlobalDictionaryForPackage(t) || nie(e);
}
-function SS(e, t) {
- let { locale: n } = gS(), r = rie(e, t);
+function xS(e, t) {
+ let { locale: n } = hS(), r = rie(e, t);
return (0, D.useMemo)(() => new tie(n, r), [n, r]);
}
//#endregion
@@ -21864,57 +21865,57 @@ var iie = /* @__PURE__ */ new Set(["id"]), aie = /* @__PURE__ */ new Set([
"inert",
"translate",
"suppressHydrationWarning"
-]), CS = /* @__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(".")), cie = /^(data-.*)$/;
-function wS(e, t = {}) {
+]), SS = /* @__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(".")), cie = /^(data-.*)$/;
+function CS(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) && (iie.has(t) || n && aie.has(t) || r && oie.has(t) || i && sie.has(t) || a && (CS.has(t) || t.endsWith("Capture") && CS.has(t.slice(0, -7))) || o?.has(t) || cie.test(t)) && (s[t] = e[t]);
+ for (let t in e) Object.prototype.hasOwnProperty.call(e, t) && (iie.has(t) || n && aie.has(t) || r && oie.has(t) || i && sie.has(t) || a && (SS.has(t) || t.endsWith("Capture") && SS.has(t.slice(0, -7))) || o?.has(t) || cie.test(t)) && (s[t] = e[t]);
return s;
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/textSelection.mjs
-var TS = "default", ES = "", DS = /* @__PURE__ */ new WeakMap();
-function OS(e) {
- if (Eb() && Ob()) {
- if (TS === "default") {
- let t = qy(e);
- ES = t.documentElement.style.webkitUserSelect, t.documentElement.style.webkitUserSelect = "none";
- }
- TS = "disabled";
+var wS = "default", TS = "", ES = /* @__PURE__ */ new WeakMap();
+function DS(e) {
+ if (Tb() && Db()) {
+ if (wS === "default") {
+ let t = Ky(e);
+ TS = t.documentElement.style.webkitUserSelect, t.documentElement.style.webkitUserSelect = "none";
+ }
+ wS = "disabled";
} else if (e instanceof HTMLElement || e instanceof SVGElement) {
let t = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
- DS.set(e, e.style[t]), e.style[t] = "none";
+ ES.set(e, e.style[t]), e.style[t] = "none";
}
}
-function kS(e) {
- if (Eb() && Ob()) {
- if (TS !== "disabled") return;
- TS = "restoring", setTimeout(() => {
- mx(() => {
- if (TS === "restoring") {
- let t = qy(e);
- t.documentElement.style.webkitUserSelect === "none" && (t.documentElement.style.webkitUserSelect = ES || ""), ES = "", TS = "default";
+function OS(e) {
+ if (Tb() && Db()) {
+ if (wS !== "disabled") return;
+ wS = "restoring", setTimeout(() => {
+ px(() => {
+ if (wS === "restoring") {
+ let t = Ky(e);
+ t.documentElement.style.webkitUserSelect === "none" && (t.documentElement.style.webkitUserSelect = TS || ""), TS = "", wS = "default";
}
});
}, 300);
- } else if ((e instanceof HTMLElement || e instanceof SVGElement) && e && DS.has(e)) {
- let t = DS.get(e), n = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
- e.style[n] === "none" && (e.style[n] = t), e.getAttribute("style") === "" && e.removeAttribute("style"), DS.delete(e);
+ } else if ((e instanceof HTMLElement || e instanceof SVGElement) && e && ES.has(e)) {
+ let t = ES.get(e), n = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
+ e.style[n] === "none" && (e.style[n] = t), e.getAttribute("style") === "" && e.removeAttribute("style"), ES.delete(e);
}
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/getNonce.mjs
-var AS = /* @__PURE__ */ new WeakMap();
-function jS(e) {
- let t = qy(e), n = AS.get(t);
- return n ??= Zx("csp-nonce", t), n !== void 0 && AS.set(t, n), n;
+var kS = /* @__PURE__ */ new WeakMap();
+function AS(e) {
+ let t = Ky(e), n = kS.get(t);
+ return n ??= Xx("csp-nonce", t), n !== void 0 && kS.set(t, n), n;
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/context.mjs
-var MS = D.createContext({ register: () => {} });
-MS.displayName = "PressResponderContext";
+var jS = D.createContext({ register: () => {} });
+jS.displayName = "PressResponderContext";
//#endregion
//#region node_modules/react-aria/dist/private/utils/useGlobalListeners.mjs
-function NS() {
+function MS() {
let e = (0, D.useRef)(/* @__PURE__ */ new Map()), t = (0, D.useCallback)((t, n, r, i) => {
let a = i?.once ? (...t) => {
e.current.delete(r), r(...t);
@@ -21942,14 +21943,14 @@ function NS() {
//#endregion
//#region node_modules/react-aria/dist/private/interactions/usePress.mjs
function lie(e) {
- let t = (0, D.useContext)(MS);
+ let t = (0, D.useContext)(jS);
if (t) {
let { register: n, ref: r, ...i } = t;
- e = K(i, e), n();
+ e = q(i, e), n();
}
- return Mx(t, e.ref), e;
+ return jx(t, e.ref), e;
}
-var PS = class {
+var NS = class {
#e;
constructor(e, t, n, r) {
this.#e = !0;
@@ -21962,8 +21963,8 @@ var PS = class {
get shouldStopPropagation() {
return this.#e;
}
-}, FS = Symbol("linkClicked"), IS = "react-aria-pressable-style", LS = "data-react-aria-pressable";
-function RS(e) {
+}, PS = Symbol("linkClicked"), FS = "react-aria-pressable-style", IS = "data-react-aria-pressable";
+function LS(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 } = lie(e), [m, h] = (0, D.useState)(!1), g = (0, D.useRef)({
isPressed: !1,
ignoreEmulatedMouseEvents: !1,
@@ -21974,12 +21975,12 @@ function RS(e) {
isOverTarget: !1,
pointerType: null,
disposables: []
- }), { addGlobalListener: _, removeAllGlobalListeners: v } = NS(), y = (0, D.useCallback)((e, t) => {
+ }), { addGlobalListener: _, removeAllGlobalListeners: v } = MS(), y = (0, D.useCallback)((e, t) => {
let i = g.current;
if (s || i.didFirePressStart) return !1;
let a = !0;
if (i.isTriggeringEvent = !0, r) {
- let n = new PS("pressstart", t, e);
+ let n = new NS("pressstart", t, e);
r(n), a = n.shouldStopPropagation;
}
return n && n(!0), i.isTriggeringEvent = !1, i.didFirePressStart = !0, h(!0), a;
@@ -21993,11 +21994,11 @@ function RS(e) {
o.didFirePressStart = !1, o.isTriggeringEvent = !0;
let c = !0;
if (i) {
- let t = new PS("pressend", r, e);
+ let t = new NS("pressend", r, e);
i(t), c = t.shouldStopPropagation;
}
if (n && n(!1), h(!1), t && a && !s) {
- let n = new PS("press", r, e);
+ let n = new NS("press", r, e);
t(n), c &&= n.shouldStopPropagation;
}
return o.isTriggeringEvent = !1, c;
@@ -22006,19 +22007,19 @@ function RS(e) {
i,
n,
t
- ]), x = cS(b), S = cS((0, D.useCallback)((e, t) => {
+ ]), x = sS(b), S = sS((0, D.useCallback)((e, t) => {
let n = g.current;
if (s) return !1;
if (a) {
n.isTriggeringEvent = !0;
- let r = new PS("pressup", t, e);
+ let r = new NS("pressup", t, e);
return a(r), n.isTriggeringEvent = !1, r.shouldStopPropagation;
}
return !0;
}, [s, a])), C = (0, D.useCallback)((e) => {
let t = g.current;
if (t.isPressed && t.target) {
- t.didFirePressStart && t.pointerType != null && b(VS(t.target, e), t.pointerType, !1), t.isPressed = !1, t.isOverTarget = !1, t.activePointerId = null, t.pointerType = null, v(), d || kS(t.target);
+ t.didFirePressStart && t.pointerType != null && b(BS(t.target, e), t.pointerType, !1), t.isPressed = !1, t.isOverTarget = !1, t.activePointerId = null, t.pointerType = null, v(), d || OS(t.target);
for (let e of t.disposables) e();
t.disposables = [];
}
@@ -22026,7 +22027,7 @@ function RS(e) {
d,
v,
b
- ]), w = cS(C);
+ ]), w = sS(C);
(0, D.useEffect)(() => {
s && g.current.isPressed && w({
currentTarget: g.current.target,
@@ -22043,39 +22044,39 @@ function RS(e) {
}, [s, o]), O = (0, D.useCallback)((e, t) => {
if (!s && o) {
let n = new MouseEvent("click", e);
- gb(n, t), o(hb(n));
+ hb(n, t), o(mb(n));
}
}, [s, o]), k = (0, D.useMemo)(() => {
let e = g.current, t = {
onKeyDown(t) {
- if (BS(t.nativeEvent, t.currentTarget) && eb(t.currentTarget, G(t))) {
- HS(G(t), t.key) && t.preventDefault();
+ if (zS(t.nativeEvent, t.currentTarget) && $y(t.currentTarget, K(t))) {
+ VS(K(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;
- _(qy(t.currentTarget), "keyup", gx((t) => {
- BS(t, i) && !t.repeat && eb(i, G(t)) && e.target && S(VS(e.target, t), "keyboard");
- }, n), !0), r && t.stopPropagation(), t.metaKey && Cb() && e.metaKeyEvents?.set(t.key, t.nativeEvent);
+ _(Ky(t.currentTarget), "keyup", hx((t) => {
+ zS(t, i) && !t.repeat && $y(i, K(t)) && e.target && S(BS(e.target, t), "keyboard");
+ }, n), !0), r && t.stopPropagation(), t.metaKey && Sb() && e.metaKeyEvents?.set(t.key, t.nativeEvent);
} else t.key === "Meta" && (e.metaKeyEvents = /* @__PURE__ */ new Map());
},
onClick(t) {
- if ((!t || eb(t.currentTarget, G(t))) && t && t.button === 0 && !e.isTriggeringEvent && !Ib.isOpening) {
+ if ((!t || $y(t.currentTarget, K(t))) && t && t.button === 0 && !e.isTriggeringEvent && !Fb.isOpening) {
let n = !0;
- if (s && t.preventDefault(), !e.ignoreEmulatedMouseEvents && !e.isPressed && (e.pointerType === "virtual" || jb(t.nativeEvent))) {
+ if (s && t.preventDefault(), !e.ignoreEmulatedMouseEvents && !e.isPressed && (e.pointerType === "virtual" || Ab(t.nativeEvent))) {
let e = y(t, "virtual"), r = S(t, "virtual"), i = x(t, "virtual");
E(t), n = e && r && i;
} else if (e.isPressed && e.pointerType !== "keyboard") {
- let r = e.pointerType || t.nativeEvent.pointerType || "virtual", i = S(VS(t.currentTarget, t), r), a = x(VS(t.currentTarget, t), r, !0);
+ let r = e.pointerType || t.nativeEvent.pointerType || "virtual", i = S(BS(t.currentTarget, t), r), a = x(BS(t.currentTarget, t), r, !0);
n = i && a, e.isOverTarget = !1, E(t), w(t);
}
e.ignoreEmulatedMouseEvents = !1, n && t.stopPropagation();
}
}
}, n = (t) => {
- if (e.isPressed && e.target && BS(t, e.target)) {
- HS(G(t), t.key) && t.preventDefault();
- let n = G(t), r = eb(e.target, n);
- x(VS(e.target, t), "keyboard", r), r && O(t, e.target), v(), t.key !== "Enter" && zS(e.target) && eb(e.target, n) && !t[FS] && (t[FS] = !0, Ib(e.target, t, !1)), e.isPressed = !1, e.metaKeyEvents?.delete(t.key);
+ if (e.isPressed && e.target && zS(t, e.target)) {
+ VS(K(t), t.key) && t.preventDefault();
+ let n = K(t), r = $y(e.target, n);
+ x(BS(e.target, t), "keyboard", r), r && O(t, e.target), v(), t.key !== "Enter" && RS(e.target) && $y(e.target, n) && !t[PS] && (t[PS] = !0, Fb(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;
@@ -22084,39 +22085,39 @@ function RS(e) {
};
if (typeof PointerEvent < "u") {
t.onPointerDown = (t) => {
- if (t.button !== 0 || !eb(t.currentTarget, G(t))) return;
- if (Mb(t.nativeEvent)) {
+ if (t.button !== 0 || !$y(t.currentTarget, K(t))) return;
+ if (jb(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 || OS(e.target), i = y(t, e.pointerType);
- let a = G(t);
- "releasePointerCapture" in a && ("hasPointerCapture" in a ? a.hasPointerCapture(t.pointerId) && a.releasePointerCapture(t.pointerId) : a.releasePointerCapture(t.pointerId)), _(qy(t.currentTarget), "pointerup", n, !1), _(qy(t.currentTarget), "pointercancel", r, !1);
+ e.isPressed = !0, e.isOverTarget = !0, e.activePointerId = t.pointerId, e.target = t.currentTarget, d || DS(e.target), i = y(t, e.pointerType);
+ let a = K(t);
+ "releasePointerCapture" in a && ("hasPointerCapture" in a ? a.hasPointerCapture(t.pointerId) && a.releasePointerCapture(t.pointerId) : a.releasePointerCapture(t.pointerId)), _(Ky(t.currentTarget), "pointerup", n, !1), _(Ky(t.currentTarget), "pointercancel", r, !1);
}
i && t.stopPropagation();
}, t.onMouseDown = (t) => {
- if (eb(t.currentTarget, G(t)) && t.button === 0) {
+ if ($y(t.currentTarget, K(t)) && t.button === 0) {
if (l) {
- let n = yb(t.target);
+ let n = vb(t.target);
n && e.disposables.push(n);
}
t.stopPropagation();
}
}, t.onPointerUp = (t) => {
- eb(t.currentTarget, G(t)) && e.pointerType !== "virtual" && t.button === 0 && !e.isPressed && S(t, e.pointerType || t.pointerType);
+ $y(t.currentTarget, K(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(VS(e.target, t), e.pointerType));
+ t.pointerId === e.activePointerId && e.target && !e.isOverTarget && e.pointerType != null && (e.isOverTarget = !0, y(BS(e.target, t), e.pointerType));
}, t.onPointerLeave = (t) => {
- t.pointerId === e.activePointerId && e.target && e.isOverTarget && e.pointerType != null && (e.isOverTarget = !1, x(VS(e.target, t), e.pointerType, !1), T(t));
+ t.pointerId === e.activePointerId && e.target && e.isOverTarget && e.pointerType != null && (e.isOverTarget = !1, x(BS(e.target, t), e.pointerType, !1), T(t));
};
let n = (t) => {
if (t.pointerId === e.activePointerId && e.isPressed && t.button === 0 && e.target) {
- if (eb(e.target, G(t)) && e.pointerType != null) {
+ if ($y(e.target, K(t)) && e.pointerType != null) {
let n = !1, r = setTimeout(() => {
- e.isPressed && e.target instanceof HTMLElement && (n ? w(t) : (Ky(e.target), e.target.click()));
+ e.isPressed && e.target instanceof HTMLElement && (n ? w(t) : (Gy(e.target), e.target.click()));
}, 80);
_(t.currentTarget, "click", () => n = !0, !0), e.disposables.push(() => clearTimeout(r));
} else w(t);
@@ -22126,7 +22127,7 @@ function RS(e) {
w(e);
};
t.onDragStart = (e) => {
- eb(e.currentTarget, G(e)) && w(e);
+ $y(e.currentTarget, K(e)) && w(e);
};
}
return t;
@@ -22143,14 +22144,14 @@ function RS(e) {
]);
return (0, D.useEffect)(() => {
if (!f) return;
- let e = qy(f.current);
- if (!e || !e.head || e.getElementById(IS)) return;
+ let e = Ky(f.current);
+ if (!e || !e.head || e.getElementById(FS)) return;
let t = e.createElement("style");
- t.id = IS;
- let n = jS(e);
+ t.id = FS;
+ let n = AS(e);
n && (t.nonce = n), t.textContent = `
@layer {
- [${LS}] {
+ [${IS}] {
touch-action: pan-x pan-y pinch-zoom;
}
}
@@ -22158,23 +22159,23 @@ function RS(e) {
}, [f]), (0, D.useEffect)(() => {
let e = g.current;
return () => {
- d || kS(e.target ?? void 0);
+ d || OS(e.target ?? void 0);
for (let t of e.disposables) t();
e.disposables = [];
};
}, [d]), {
isPressed: c || m,
- pressProps: K(p, k, { [LS]: !0 })
+ pressProps: q(p, k, { [IS]: !0 })
};
}
-function zS(e) {
+function RS(e) {
return e.tagName === "A" && e.hasAttribute("href");
}
-function BS(e, t) {
+function zS(e, t) {
let { key: n, code: r } = e, i = t, a = i.getAttribute("role");
- return (n === "Enter" || n === " " || n === "Spacebar" || r === "Space") && !(i instanceof Jy(i).HTMLInputElement && !US(i, n) || i instanceof Jy(i).HTMLTextAreaElement || i.isContentEditable) && !((a === "link" || !a && zS(i)) && n !== "Enter");
+ return (n === "Enter" || n === " " || n === "Spacebar" || r === "Space") && !(i instanceof qy(i).HTMLInputElement && !HS(i, n) || i instanceof qy(i).HTMLTextAreaElement || i.isContentEditable) && !((a === "link" || !a && RS(i)) && n !== "Enter");
}
-function VS(e, t) {
+function BS(e, t) {
let n = t.clientX, r = t.clientY;
return {
currentTarget: e,
@@ -22188,10 +22189,10 @@ function VS(e, t) {
};
}
function uie(e) {
- return e instanceof HTMLInputElement ? !1 : e instanceof HTMLButtonElement ? e.type !== "submit" && e.type !== "reset" : !zS(e);
+ return e instanceof HTMLInputElement ? !1 : e instanceof HTMLButtonElement ? e.type !== "submit" && e.type !== "reset" : !RS(e);
}
-function HS(e, t) {
- return Cb() && t === "Enter" ? !1 : e instanceof HTMLInputElement ? t === "Enter" && (e.type === "checkbox" || e.type === "radio") ? !1 : !US(e, t) : uie(e);
+function VS(e, t) {
+ return Sb() && t === "Enter" ? !1 : e instanceof HTMLInputElement ? t === "Enter" && (e.type === "checkbox" || e.type === "radio") ? !1 : !HS(e, t) : uie(e);
}
var die = /* @__PURE__ */ new Set([
"checkbox",
@@ -22204,7 +22205,7 @@ var die = /* @__PURE__ */ new Set([
"submit",
"reset"
]);
-function US(e, t) {
+function HS(e, t) {
return e.type === "checkbox" || e.type === "radio" ? t === " " : die.has(e.type);
}
//#endregion
@@ -22231,7 +22232,7 @@ function fie(e, t) {
"aria-disabled": !r || n === "input" ? void 0 : r,
rel: n === "a" ? m : void 0
};
- let { pressProps: _, isPressed: v } = RS({
+ let { pressProps: _, isPressed: v } = LS({
onPressStart: a,
onPressEnd: o,
onPressChange: c,
@@ -22241,12 +22242,12 @@ function fie(e, t) {
isDisabled: r,
preventFocusOnPress: l,
ref: t
- }), { focusableProps: y } = Px(e, t);
+ }), { focusableProps: y } = Nx(e, t);
u && (y.tabIndex = r ? -1 : y.tabIndex);
- let b = K(y, _, wS(e, { labelable: !0 }));
+ let b = q(y, _, CS(e, { labelable: !0 }));
return {
isPressed: v,
- buttonProps: K(g, b, {
+ buttonProps: q(g, b, {
"aria-haspopup": e["aria-haspopup"],
"aria-expanded": e["aria-expanded"],
"aria-controls": e["aria-controls"],
@@ -22283,7 +22284,7 @@ var pie = class {
return this._currentNode;
}
set currentNode(e) {
- if (!eb(this.root, e)) throw Error("Cannot set currentNode to a node that is not contained by the root node.");
+ if (!$y(this.root, e)) throw Error("Cannot set currentNode to a node that is not contained by the root node.");
let t = [], n = e, r = e;
for (this._currentNode = e; n && n !== this.root;) if (n.nodeType === Node.DOCUMENT_FRAGMENT_NODE) {
let e = n, i = this._doc.createTreeWalker(e, this.whatToShow, { acceptNode: this._acceptNode });
@@ -22297,7 +22298,7 @@ var pie = class {
}
firstChild() {
let e = this.currentNode, t = this.nextNode();
- return eb(e, t) ? (t && (this.currentNode = t), t) : (this.currentNode = e, null);
+ return $y(e, t) ? (t && (this.currentNode = t), t) : (this.currentNode = e, null);
}
lastChild() {
let e = this._walkerStack[0].lastChild();
@@ -22361,45 +22362,45 @@ var pie = class {
return null;
}
};
-function WS(e, t, n, r) {
- return $y() ? new pie(e, t, n, r) : e.createTreeWalker(t, n, r);
+function US(e, t, n, r) {
+ return Qy() ? new pie(e, t, n, r) : e.createTreeWalker(t, n, r);
}
//#endregion
//#region node_modules/react-aria/dist/private/focus/FocusScope.mjs
-var GS = /*#__PURE__*/ D.createContext(null), KS = "react-aria-focus-scope-restore", qS = null;
-function JS(e) {
- let { children: t, contain: n, restoreFocus: r, autoFocus: i } = e, a = (0, D.useRef)(null), o = (0, D.useRef)(null), s = (0, D.useRef)([]), { parentNode: c } = (0, D.useContext)(GS) || {}, l = (0, D.useMemo)(() => new dC({ scopeRef: s }), [s]);
- mb(() => {
- let e = c || fC.root;
- if (fC.getTreeNode(e.scopeRef) && qS && !eC(qS, e.scopeRef)) {
- let t = fC.getTreeNode(qS);
+var WS = /*#__PURE__*/ D.createContext(null), GS = "react-aria-focus-scope-restore", KS = null;
+function qS(e) {
+ let { children: t, contain: n, restoreFocus: r, autoFocus: i } = e, a = (0, D.useRef)(null), o = (0, D.useRef)(null), s = (0, D.useRef)([]), { parentNode: c } = (0, D.useContext)(WS) || {}, l = (0, D.useMemo)(() => new uC({ scopeRef: s }), [s]);
+ pb(() => {
+ let e = c || dC.root;
+ if (dC.getTreeNode(e.scopeRef) && KS && !$S(KS, e.scopeRef)) {
+ let t = dC.getTreeNode(KS);
t && (e = t);
}
- e.addChild(l), fC.addNode(l);
- }, [l, c]), mb(() => {
- let e = fC.getTreeNode(s);
+ e.addChild(l), dC.addNode(l);
+ }, [l, c]), pb(() => {
+ let e = dC.getTreeNode(s);
e && (e.contain = !!n);
- }, [n]), mb(() => {
+ }, [n]), pb(() => {
let e = a.current?.nextSibling, t = [], n = (e) => e.stopPropagation();
- for (; e && e !== o.current;) t.push(e), e.addEventListener(KS, n), e = e.nextSibling;
+ for (; e && e !== o.current;) t.push(e), e.addEventListener(GS, n), e = e.nextSibling;
return s.current = t, () => {
- for (let e of t) e.removeEventListener(KS, n);
+ for (let e of t) e.removeEventListener(GS, n);
};
- }, [t]), aC(s, r, n), _ie(s, n), sC(s, r, n), iC(s, i), (0, D.useEffect)(() => {
- let e = tb(qy(s.current ? s.current[0] : void 0)), t = null;
- if (QS(e, s.current)) {
- for (let n of fC.traverse()) n.scopeRef && QS(e, n.scopeRef.current) && (t = n);
- t === fC.getTreeNode(s) && (qS = t.scopeRef);
- }
- }, [s]), mb(() => () => {
- let e = fC.getTreeNode(s)?.parent?.scopeRef ?? null;
- (s === qS || eC(s, qS)) && (!e || fC.getTreeNode(e)) && (qS = e), fC.removeTreeNode(s);
+ }, [t]), iC(s, r, n), _ie(s, n), oC(s, r, n), rC(s, i), (0, D.useEffect)(() => {
+ let e = eb(Ky(s.current ? s.current[0] : void 0)), t = null;
+ if (ZS(e, s.current)) {
+ for (let n of dC.traverse()) n.scopeRef && ZS(e, n.scopeRef.current) && (t = n);
+ t === dC.getTreeNode(s) && (KS = t.scopeRef);
+ }
+ }, [s]), pb(() => () => {
+ let e = dC.getTreeNode(s)?.parent?.scopeRef ?? null;
+ (s === KS || $S(s, KS)) && (!e || dC.getTreeNode(e)) && (KS = e), dC.removeTreeNode(s);
}, [s]);
let u = (0, D.useMemo)(() => mie(s), []), d = (0, D.useMemo)(() => ({
focusManager: u,
parentNode: l
}), [l, u]);
- return /*#__PURE__*/ D.createElement(GS.Provider, { value: d }, /*#__PURE__*/ D.createElement("span", {
+ return /*#__PURE__*/ D.createElement(WS.Provider, { value: d }, /*#__PURE__*/ D.createElement("span", {
"data-focus-scope-start": !0,
hidden: !0,
ref: a
@@ -22412,48 +22413,48 @@ function JS(e) {
function mie(e) {
return {
focusNext(t = {}) {
- let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || tb(qy(n[0] ?? void 0)), c = n[0].previousElementSibling, l = lC(YS(n), {
+ let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || eb(Ky(n[0] ?? void 0)), c = n[0].previousElementSibling, l = cC(JS(n), {
tabbable: i,
accept: o
}, n);
- l.currentNode = QS(s, n) ? s : c;
+ l.currentNode = ZS(s, n) ? s : c;
let u = l.nextNode();
- return !u && a && (l.currentNode = c, u = l.nextNode()), u && tC(u, !0), u;
+ return !u && a && (l.currentNode = c, u = l.nextNode()), u && eC(u, !0), u;
},
focusPrevious(t = {}) {
- let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || tb(qy(n[0] ?? void 0)), c = n[n.length - 1].nextElementSibling, l = lC(YS(n), {
+ let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || eb(Ky(n[0] ?? void 0)), c = n[n.length - 1].nextElementSibling, l = cC(JS(n), {
tabbable: i,
accept: o
}, n);
- l.currentNode = QS(s, n) ? s : c;
+ l.currentNode = ZS(s, n) ? s : c;
let u = l.previousNode();
- return !u && a && (l.currentNode = c, u = l.previousNode()), u && tC(u, !0), u;
+ return !u && a && (l.currentNode = c, u = l.previousNode()), u && eC(u, !0), u;
},
focusFirst(t = {}) {
- let n = e.current, { tabbable: r, accept: i } = t, a = lC(YS(n), {
+ let n = e.current, { tabbable: r, accept: i } = t, a = cC(JS(n), {
tabbable: r,
accept: i
}, n);
a.currentNode = n[0].previousElementSibling;
let o = a.nextNode();
- return o && tC(o, !0), o;
+ return o && eC(o, !0), o;
},
focusLast(t = {}) {
- let n = e.current, { tabbable: r, accept: i } = t, a = lC(YS(n), {
+ let n = e.current, { tabbable: r, accept: i } = t, a = cC(JS(n), {
tabbable: r,
accept: i
}, n);
a.currentNode = n[n.length - 1].nextElementSibling;
let o = a.previousNode();
- return o && tC(o, !0), o;
+ return o && eC(o, !0), o;
}
};
}
-function YS(e) {
+function JS(e) {
return e[0].parentElement;
}
-function XS(e) {
- let t = fC.getTreeNode(qS);
+function YS(e) {
+ let t = dC.getTreeNode(KS);
for (; t && t.scopeRef !== e;) {
if (t.contain) return !1;
t = t.parent;
@@ -22461,8 +22462,8 @@ function XS(e) {
return !0;
}
function hie(e) {
- if (!e.form) return Array.from(qy(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter((e) => !e.form);
- let t = e.form.elements.namedItem(e.name), n = Jy(e);
+ if (!e.form) return Array.from(Ky(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter((e) => !e.form);
+ let t = e.form.elements.namedItem(e.name), n = qy(e);
return t instanceof n.RadioNodeList ? Array.from(t).filter((e) => e instanceof n.HTMLInputElement) : t instanceof n.HTMLInputElement ? [t] : [];
}
function gie(e) {
@@ -22472,91 +22473,91 @@ function gie(e) {
}
function _ie(e, t) {
let n = (0, D.useRef)(void 0), r = (0, D.useRef)(void 0);
- mb(() => {
+ pb(() => {
let i = e.current;
if (!t) {
r.current &&= (cancelAnimationFrame(r.current), void 0);
return;
}
- let a = qy(i ? i[0] : void 0), o = (t) => {
- if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !XS(e) || t.isComposing) return;
- let n = tb(a), r = e.current;
- if (!r || !QS(n, r)) return;
- let i = lC(YS(r), { tabbable: !0 }, r);
+ let a = Ky(i ? i[0] : void 0), o = (t) => {
+ if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !YS(e) || t.isComposing) return;
+ let n = eb(a), r = e.current;
+ if (!r || !ZS(n, r)) return;
+ let i = cC(JS(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 && (tC(o, !0), o instanceof Jy(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 && (eC(o, !0), o instanceof qy(o).HTMLInputElement && o.select());
}, s = (t) => {
- (!qS || eC(qS, e)) && QS(G(t), e.current) ? (qS = e, n.current = G(t)) : XS(e) && !$S(G(t), e) ? n.current ? tC(n.current) : qS && qS.current && rC(qS.current) : XS(e) && (n.current = G(t));
+ (!KS || $S(KS, e)) && ZS(K(t), e.current) ? (KS = e, n.current = K(t)) : YS(e) && !QS(K(t), e) ? n.current ? eC(n.current) : KS && KS.current && nC(KS.current) : YS(e) && (n.current = K(t));
}, c = (t) => {
r.current && cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
- let r = ix(), i = (r === "virtual" || r === null) && Ab() && kb(), o = tb(a);
- if (!i && o && XS(e) && !$S(o, e)) {
- qS = e;
- let r = G(t);
- r && r.isConnected ? (n.current = r, tC(n.current)) : qS.current && rC(qS.current);
+ let r = rx(), i = (r === "virtual" || r === null) && kb() && Ob(), o = eb(a);
+ if (!i && o && YS(e) && !QS(o, e)) {
+ KS = e;
+ let r = K(t);
+ r && r.isConnected ? (n.current = r, eC(n.current)) : KS.current && nC(KS.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]), mb(() => () => {
+ }, [e, t]), pb(() => () => {
r.current && cancelAnimationFrame(r.current);
}, [r]);
}
-function ZS(e) {
- return $S(e);
+function XS(e) {
+ return QS(e);
}
-function QS(e, t) {
- return !e || !t ? !1 : t.some((t) => eb(t, e));
+function ZS(e, t) {
+ return !e || !t ? !1 : t.some((t) => $y(t, e));
}
-function $S(e, t = null) {
+function QS(e, t = null) {
if (e instanceof Element && e.closest("[data-react-aria-top-layer]")) return !0;
- for (let { scopeRef: n } of fC.traverse(fC.getTreeNode(t))) if (n && QS(e, n.current)) return !0;
+ for (let { scopeRef: n } of dC.traverse(dC.getTreeNode(t))) if (n && ZS(e, n.current)) return !0;
return !1;
}
function vie(e) {
- return $S(e, qS);
+ return QS(e, KS);
}
-function eC(e, t) {
- let n = fC.getTreeNode(t)?.parent;
+function $S(e, t) {
+ let n = dC.getTreeNode(t)?.parent;
for (; n;) {
if (n.scopeRef === e) return !0;
n = n.parent;
}
return !1;
}
-function tC(e, t = !1) {
+function eC(e, t = !1) {
if (e != null && !t) try {
- hx(e);
+ mx(e);
} catch {}
else if (e != null) try {
e.focus();
} catch {}
}
-function nC(e, t = !0) {
- let n = e[0].previousElementSibling, r = YS(e), i = lC(r, { tabbable: t }, e);
+function tC(e, t = !0) {
+ let n = e[0].previousElementSibling, r = JS(e), i = cC(r, { tabbable: t }, e);
i.currentNode = n;
let a = i.nextNode();
- return t && !a && (r = YS(e), i = lC(r, { tabbable: !1 }, e), i.currentNode = n, a = i.nextNode()), a;
+ return t && !a && (r = JS(e), i = cC(r, { tabbable: !1 }, e), i.currentNode = n, a = i.nextNode()), a;
}
-function rC(e, t = !0) {
- tC(nC(e, t));
+function nC(e, t = !0) {
+ eC(tC(e, t));
}
-function iC(e, t) {
+function rC(e, t) {
let n = D.useRef(t);
(0, D.useEffect)(() => {
- n.current && (qS = e, !QS(tb(qy(e.current ? e.current[0] : void 0)), qS.current) && e.current && rC(e.current)), n.current = !1;
+ n.current && (KS = e, !ZS(eb(Ky(e.current ? e.current[0] : void 0)), KS.current) && e.current && nC(e.current)), n.current = !1;
}, [e]);
}
-function aC(e, t, n) {
- mb(() => {
+function iC(e, t, n) {
+ pb(() => {
if (t || n) return;
- let r = e.current, i = qy(r ? r[0] : void 0), a = (t) => {
- let n = G(t);
- QS(n, e.current) ? qS = e : ZS(n) || (qS = null);
+ let r = e.current, i = Ky(r ? r[0] : void 0), a = (t) => {
+ let n = K(t);
+ ZS(n, e.current) ? KS = e : XS(n) || (KS = 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));
@@ -22567,43 +22568,43 @@ function aC(e, t, n) {
n
]);
}
-function oC(e) {
- let t = fC.getTreeNode(qS);
+function aC(e) {
+ let t = dC.getTreeNode(KS);
for (; t && t.scopeRef !== e;) {
if (t.nodeToRestore) return !1;
t = t.parent;
}
return t?.scopeRef === e;
}
-function sC(e, t, n) {
- let r = (0, D.useRef)(typeof document < "u" ? tb(qy(e.current ? e.current[0] : void 0)) : null);
- mb(() => {
- let r = e.current, i = qy(r ? r[0] : void 0);
+function oC(e, t, n) {
+ let r = (0, D.useRef)(typeof document < "u" ? eb(Ky(e.current ? e.current[0] : void 0)) : null);
+ pb(() => {
+ let r = e.current, i = Ky(r ? r[0] : void 0);
if (!t || n) return;
let a = () => {
- (!qS || eC(qS, e)) && QS(tb(i), e.current) && (qS = e);
+ (!KS || $S(KS, e)) && ZS(eb(i), e.current) && (KS = 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]), mb(() => {
- let r = qy(e.current ? e.current[0] : void 0);
+ }, [e, n]), pb(() => {
+ let r = Ky(e.current ? e.current[0] : void 0);
if (!t) return;
let i = (t) => {
- if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !XS(e) || t.isComposing) return;
+ if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !YS(e) || t.isComposing) return;
let n = r.activeElement;
- if (!$S(n, e) || !oC(e)) return;
- let i = fC.getTreeNode(e);
+ if (!QS(n, e) || !aC(e)) return;
+ let i = dC.getTreeNode(e);
if (!i) return;
- let a = i.nodeToRestore, o = lC(r.body, { tabbable: !0 });
+ let a = i.nodeToRestore, o = cC(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 || !$S(s, e)) && a) {
+ if ((!a || !a.isConnected || a === r.body) && (a = void 0, i.nodeToRestore = void 0), (!s || !QS(s, e)) && a) {
o.currentNode = a;
do
s = t.shiftKey ? o.previousNode() : o.nextNode();
- while ($S(s, e));
- t.preventDefault(), t.stopPropagation(), s ? tC(s, !0) : ZS(a) ? tC(a, !0) : n.blur();
+ while (QS(s, e));
+ t.preventDefault(), t.stopPropagation(), s ? eC(s, !0) : XS(a) ? eC(a, !0) : n.blur();
}
};
return n || r.addEventListener("keydown", i, !0), () => {
@@ -22613,31 +22614,31 @@ function sC(e, t, n) {
e,
t,
n
- ]), mb(() => {
- let n = qy(e.current ? e.current[0] : void 0);
+ ]), pb(() => {
+ let n = Ky(e.current ? e.current[0] : void 0);
if (!t) return;
- let i = fC.getTreeNode(e);
+ let i = dC.getTreeNode(e);
if (i) return i.nodeToRestore = r.current ?? void 0, () => {
- let r = fC.getTreeNode(e);
+ let r = dC.getTreeNode(e);
if (!r) return;
- let i = r.nodeToRestore, a = tb(n);
- if (t && i && (a && $S(a, e) || a === n.body && oC(e))) {
- let t = fC.clone();
+ let i = r.nodeToRestore, a = eb(n);
+ if (t && i && (a && QS(a, e) || a === n.body && aC(e))) {
+ let t = dC.clone();
requestAnimationFrame(() => {
if (n.activeElement === n.body) {
let n = t.getTreeNode(e);
for (; n;) {
if (n.nodeToRestore && n.nodeToRestore.isConnected) {
- cC(n.nodeToRestore);
+ sC(n.nodeToRestore);
return;
}
n = n.parent;
}
for (n = t.getTreeNode(e); n;) {
- if (n.scopeRef && n.scopeRef.current && fC.getTreeNode(n.scopeRef)) {
- let e = nC(n.scopeRef.current, !0);
+ if (n.scopeRef && n.scopeRef.current && dC.getTreeNode(n.scopeRef)) {
+ let e = tC(n.scopeRef.current, !0);
if (e) {
- cC(e);
+ sC(e);
return;
}
}
@@ -22649,21 +22650,21 @@ function sC(e, t, n) {
};
}, [e, t]);
}
-function cC(e) {
- e.dispatchEvent(new CustomEvent(KS, {
+function sC(e) {
+ e.dispatchEvent(new CustomEvent(GS, {
bubbles: !0,
cancelable: !0
- })) && tC(e);
+ })) && eC(e);
}
-function lC(e, t, n) {
- let r = t?.tabbable ? fb : db, i = qy(e?.nodeType === Node.ELEMENT_NODE ? e : null), a = WS(i, e || i, NodeFilter.SHOW_ELEMENT, { acceptNode(e) {
- return eb(t?.from, e) || t?.tabbable && e.tagName === "INPUT" && e.getAttribute("type") === "radio" && (!gie(e) || a.currentNode.tagName === "INPUT" && a.currentNode.type === "radio" && a.currentNode.name === e.name) ? NodeFilter.FILTER_REJECT : r(e) && (!n || QS(e, n)) && (!t?.accept || t.accept(e)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
+function cC(e, t, n) {
+ let r = t?.tabbable ? db : ub, i = Ky(e?.nodeType === Node.ELEMENT_NODE ? e : null), a = US(i, e || i, NodeFilter.SHOW_ELEMENT, { acceptNode(e) {
+ return $y(t?.from, e) || t?.tabbable && e.tagName === "INPUT" && e.getAttribute("type") === "radio" && (!gie(e) || a.currentNode.tagName === "INPUT" && a.currentNode.type === "radio" && a.currentNode.name === e.name) ? NodeFilter.FILTER_REJECT : r(e) && (!n || ZS(e, n)) && (!t?.accept || t.accept(e)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
} });
return t?.from && (a.currentNode = t.from), a;
}
-var uC = class e {
+var lC = class e {
constructor() {
- this.fastMap = /* @__PURE__ */ new Map(), this.root = new dC({ scopeRef: null }), this.fastMap.set(null, this.root);
+ this.fastMap = /* @__PURE__ */ new Map(), this.root = new uC({ scopeRef: null }), this.fastMap.set(null, this.root);
}
get size() {
return this.fastMap.size;
@@ -22674,7 +22675,7 @@ var uC = class e {
addTreeNode(e, t, n) {
let r = this.fastMap.get(t ?? null);
if (!r) return;
- let i = new dC({ scopeRef: e });
+ let i = new uC({ scopeRef: e });
r.addChild(i), i.parent = r, this.fastMap.set(e, i), n && (i.nodeToRestore = n);
}
addNode(e) {
@@ -22685,7 +22686,7 @@ var uC = 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 && QS(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 && ZS(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);
}
@@ -22697,7 +22698,7 @@ var uC = class e {
for (let e of this.traverse()) t.addTreeNode(e.scopeRef, e.parent?.scopeRef ?? null, e.nodeToRestore);
return t;
}
-}, dC = class {
+}, uC = class {
constructor(e) {
this.children = /* @__PURE__ */ new Set(), this.contain = !1, this.scopeRef = e.scopeRef;
}
@@ -22707,13 +22708,13 @@ var uC = class e {
removeChild(e) {
this.children.delete(e), e.parent = void 0;
}
-}, fC = new uC(), pC = 7e3, mC = null;
-function hC(e, t = "assertive", n = pC) {
- mC ? mC.announce(e, t, n) : (mC = new gC(), (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") ? mC.announce(e, t, n) : setTimeout(() => {
- mC?.isAttached() && mC?.announce(e, t, n);
+}, dC = new lC(), fC = 7e3, pC = null;
+function mC(e, t = "assertive", n = fC) {
+ pC ? pC.announce(e, t, n) : (pC = new hC(), (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") ? pC.announce(e, t, n) : setTimeout(() => {
+ pC?.isAttached() && pC?.announce(e, t, n);
}, 100));
}
-var gC = class {
+var hC = 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,
@@ -22738,7 +22739,7 @@ var gC = class {
destroy() {
this.node &&= (document.body.removeChild(this.node), null);
}
- announce(e, t = "assertive", n = pC) {
+ announce(e, t = "assertive", n = fC) {
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(() => {
@@ -22751,8 +22752,8 @@ var gC = class {
};
//#endregion
//#region node_modules/react-aria/dist/private/utils/useUpdateEffect.mjs
-function _C(e, t) {
- let n = (0, D.useRef)(!0), r = (0, D.useRef)(null), i = cS(e);
+function gC(e, t) {
+ let n = (0, D.useRef)(!0), r = (0, D.useRef)(null), i = sS(e);
(0, D.useEffect)(() => (n.current = !0, () => {
n.current = !1;
}), []), (0, D.useEffect)(() => {
@@ -22762,33 +22763,33 @@ function _C(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/isScrollable.mjs
-function vC(e, t) {
+function _C(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 yC(e, t) {
+function vC(e, t) {
let n = e;
- for (vC(n, t) && (n = n.parentElement); n && !vC(n, t);) n = n.parentElement;
+ for (_C(n, t) && (n = n.parentElement); n && !_C(n, t);) n = n.parentElement;
return n || document.scrollingElement || document.documentElement;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/getScrollParents.mjs
-function bC(e, t) {
+function yC(e, t) {
let n = [], r = document.scrollingElement || document.documentElement;
- for (; e && (vC(e, t) && n.push(e), e !== r);) e = e.parentElement;
+ for (; e && (_C(e, t) && n.push(e), e !== r);) e = e.parentElement;
return n;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/scrollIntoView.mjs
-function xC(e, t, n = {}) {
- e !== t && SC(e, t, t.getBoundingClientRect(), n);
+function bC(e, t, n = {}) {
+ e !== t && xC(e, t, t.getBoundingClientRect(), n);
}
-function SC(e, t, n, r = {}) {
+function xC(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, P = e === d ? 0 : T + E, ee = e === d ? 0 : e.offsetWidth - e.clientWidth - N, F = e === d ? 0 : e.offsetHeight - e.clientHeight - P, te = p + (f ? 0 : T) + x, I = m - (f ? 0 : E) - S - F, ne = h + (f ? 0 : D) + C, re = g - (f ? 0 : O) - w;
- Eb() && Ob() || u.direction === "ltr" ? re -= ee : u.direction === "rtl" && (ne += ee);
+ Tb() && Db() || u.direction === "ltr" ? re -= ee : u.direction === "rtl" && (ne += ee);
let ie = k < te || A > I, ae = j < ne || M > re;
if (ie && i === "start") o += k - te;
else if (ie && i === "center") o += (k + A) / 2 - (te + I) / 2;
@@ -22809,7 +22810,7 @@ function SC(e, t, n, r = {}) {
top: o
});
}
-function CC(e, t = {}) {
+function SC(e, t = {}) {
let { containingElement: n } = t;
if (e && e.isConnected) {
let t = document.scrollingElement || document.documentElement;
@@ -22822,47 +22823,47 @@ function CC(e, t = {}) {
inline: "center"
}), e.scrollIntoView?.({ block: "nearest" }));
} else {
- let { left: t, top: r } = e.getBoundingClientRect(), i = bC(e, !0);
- for (let t of i) xC(t, e);
+ let { left: t, top: r } = e.getBoundingClientRect(), i = yC(e, !0);
+ for (let t of i) bC(t, e);
let { left: a, top: o } = e.getBoundingClientRect();
if (Math.abs(t - a) > 1 || Math.abs(r - o) > 1) {
- i = n ? bC(n, !0) : [];
- for (let e of i) xC(e, n, {
+ i = n ? yC(n, !0) : [];
+ for (let e of i) bC(e, n, {
block: "center",
inline: "center"
});
- for (let t of bC(e, !0)) xC(t, e);
+ for (let t of yC(e, !0)) bC(t, e);
}
}
}
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useDescription.mjs
-var wC = 0, TC = /* @__PURE__ */ new Map();
-function EC(e) {
+var CC = 0, wC = /* @__PURE__ */ new Map();
+function TC(e) {
let [t, n] = (0, D.useState)();
- return mb(() => {
+ return pb(() => {
if (!e) return;
- let t = TC.get(e);
+ let t = wC.get(e);
if (t) n(t.element.id);
else {
- let r = `react-aria-description-${wC++}`;
+ let r = `react-aria-description-${CC++}`;
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
- }, TC.set(e, t);
+ }, wC.set(e, t);
}
return t.refCount++, () => {
- t && --t.refCount === 0 && (t.element.remove(), TC.delete(e));
+ t && --t.refCount === 0 && (t.element.remove(), wC.delete(e));
};
}, [e]), { "aria-describedby": e ? t : void 0 };
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useFormReset.mjs
-function DC(e, t, n) {
- let r = cS((e) => {
+function EC(e, t, n) {
+ let r = sS((e) => {
n && !e.defaultPrevented && n(t);
});
(0, D.useEffect)(() => {
@@ -22874,21 +22875,21 @@ function DC(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/form/useFormValidation.mjs
-function OC(e, t, n) {
+function DC(e, t, n) {
let { validationBehavior: r, focus: i } = e;
- mb(() => {
+ pb(() => {
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(AC(n.current));
+ n.current.setCustomValidity(e), n.current.hasAttribute("title") || (n.current.title = ""), t.realtimeValidation.isInvalid || t.updateValidation(kC(n.current));
}
});
- let a = (0, D.useRef)(!1), o = cS(() => {
+ let a = (0, D.useRef)(!1), o = sS(() => {
a.current || t.resetValidation();
- }), s = cS((e) => {
+ }), s = sS((e) => {
t.displayValidation.isInvalid || t.commitValidation();
let r = n?.current?.form;
- !e.defaultPrevented && n && r && jC(r) === n.current && (i ? i() : n.current?.focus(), ax("keyboard")), e.preventDefault();
- }), c = cS(() => {
+ !e.defaultPrevented && n && r && AC(r) === n.current && (i ? i() : n.current?.focus(), ix("keyboard")), e.preventDefault();
+ }), c = sS(() => {
t.commitValidation();
});
(0, D.useEffect)(() => {
@@ -22896,13 +22897,13 @@ function OC(e, t, n) {
if (!e) return;
let t = e.form, r = t?.reset;
return t && (t.reset = () => {
- a.current = !window.event || window.event.type === "message" && G(window.event) instanceof MessagePort, r?.call(t), a.current = !1;
+ a.current = !window.event || window.event.type === "message" && K(window.event) instanceof MessagePort, r?.call(t), a.current = !1;
}), e.addEventListener("invalid", s), e.addEventListener("change", c), t?.addEventListener("reset", o), () => {
e.removeEventListener("invalid", s), e.removeEventListener("change", c), t?.removeEventListener("reset", o), t && (t.reset = r);
};
}, [n, r]);
}
-function kC(e) {
+function OC(e) {
let t = e.validity;
return {
badInput: t.badInput,
@@ -22918,14 +22919,14 @@ function kC(e) {
valid: t.valid
};
}
-function AC(e) {
+function kC(e) {
return {
isInvalid: !e.validity.valid,
- validationDetails: kC(e),
+ validationDetails: OC(e),
validationErrors: e.validationMessage ? [e.validationMessage] : []
};
}
-function jC(e) {
+function AC(e) {
for (let t = 0; t < e.elements.length; t++) {
let n = e.elements[t];
if (n.validity?.valid === !1) return n;
@@ -22934,16 +22935,16 @@ function jC(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useSlot.mjs
-function MC(e = !0) {
+function jC(e = !0) {
let [t, n] = (0, D.useState)(e), r = (0, D.useRef)(!1), i = (0, D.useCallback)((e) => {
r.current = !0, n(!!e);
}, []);
- return mb(() => {
+ return pb(() => {
r.current || n(!1);
}, []), [i, t];
}
-function NC(e = !0) {
- let t = bx(), [n, r] = MC(e);
+function MC(e = !0) {
+ let t = yx(), [n, r] = jC(e);
return {
id: r ? t : void 0,
ref: n
@@ -22951,7 +22952,7 @@ function NC(e = !0) {
}
//#endregion
//#region node_modules/react-stately/dist/private/form/useFormValidationState.mjs
-var PC = {
+var NC = {
badInput: !1,
customError: !1,
patternMismatch: !1,
@@ -22963,18 +22964,18 @@ var PC = {
typeMismatch: !1,
valueMissing: !1,
valid: !0
-}, FC = {
- ...PC,
+}, PC = {
+ ...NC,
customError: !0,
valid: !1
-}, IC = {
+}, FC = {
isInvalid: !1,
- validationDetails: PC,
+ validationDetails: NC,
validationErrors: []
-}, LC = (0, D.createContext)({}), RC = "__reactAriaFormValidationState";
-function zC(e) {
+}, IC = (0, D.createContext)({}), LC = "__reactAriaFormValidationState";
+function RC(e) {
if (e.__reactAriaFormValidationState) {
- let { realtimeValidation: t, displayValidation: n, updateValidation: r, resetValidation: i, commitValidation: a } = e[RC];
+ let { realtimeValidation: t, displayValidation: n, updateValidation: r, resetValidation: i, commitValidation: a } = e[LC];
return {
realtimeValidation: t,
displayValidation: n,
@@ -22983,71 +22984,71 @@ function zC(e) {
commitValidation: a
};
}
- return BC(e);
+ return zC(e);
}
-function BC(e) {
+function zC(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: FC
- }, l = (0, D.useMemo)(() => !o || i == null ? null : UC(HC(o, i)), [o, i]);
+ validationDetails: PC
+ }, l = (0, D.useMemo)(() => !o || i == null ? null : HC(VC(o, i)), [o, i]);
a?.validationDetails.valid && (a = void 0);
- let u = (0, D.useContext)(LC), d = (0, D.useMemo)(() => r ? Array.isArray(r) ? r.flatMap((e) => VC(u[e])) : VC(u[r]) : [], [u, r]), [f, p] = (0, D.useState)(u), [m, h] = (0, D.useState)(!1);
+ let u = (0, D.useContext)(IC), d = (0, D.useMemo)(() => r ? Array.isArray(r) ? r.flatMap((e) => BC(u[e])) : BC(u[r]) : [], [u, r]), [f, p] = (0, D.useState)(u), [m, h] = (0, D.useState)(!1);
u !== f && (p(u), h(!1));
- let g = (0, D.useMemo)(() => UC(m ? [] : d), [m, d]), _ = (0, D.useRef)(IC), [v, y] = (0, D.useState)(IC), b = (0, D.useRef)(IC), x = () => {
+ let g = (0, D.useMemo)(() => HC(m ? [] : d), [m, d]), _ = (0, D.useRef)(FC), [v, y] = (0, D.useState)(FC), b = (0, D.useRef)(FC), x = () => {
if (!S) return;
C(!1);
let e = l || a || _.current;
- WC(e, b.current) || (b.current = e, y(e));
+ UC(e, b.current) || (b.current = e, y(e));
}, [S, C] = (0, D.useState)(!1);
return (0, D.useEffect)(x), {
- realtimeValidation: c || g || l || a || IC,
+ realtimeValidation: c || g || l || a || FC,
displayValidation: s === "native" ? c || g || v : c || g || l || a || v,
updateValidation(e) {
- s === "aria" && !WC(v, e) ? y(e) : _.current = e;
+ s === "aria" && !UC(v, e) ? y(e) : _.current = e;
},
resetValidation() {
- let e = IC;
- WC(e, b.current) || (b.current = e, y(e)), s === "native" && C(!1), h(!0);
+ let e = FC;
+ UC(e, b.current) || (b.current = e, y(e)), s === "native" && C(!1), h(!0);
},
commitValidation() {
s === "native" && C(!0), h(!0);
}
};
}
-function VC(e) {
+function BC(e) {
return e ? Array.isArray(e) ? e : [e] : [];
}
-function HC(e, t) {
+function VC(e, t) {
if (typeof e == "function") {
let n = e(t);
- if (n && typeof n != "boolean") return VC(n);
+ if (n && typeof n != "boolean") return BC(n);
}
return [];
}
-function UC(e) {
+function HC(e) {
return e.length ? {
isInvalid: !0,
validationErrors: e,
- validationDetails: FC
+ validationDetails: PC
} : null;
}
-function WC(e, t) {
+function UC(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 GC(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 = zC({
+function WC(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 = RC({
...e,
value: t.isSelected
}), { isInvalid: x, validationErrors: S, validationDetails: C } = b.displayValidation;
- OC(e, b, n);
+ DC(e, b, n);
let w = (e) => {
- e.stopPropagation(), t.setSelected(G(e).checked);
- }, { pressProps: T, isPressed: E } = RS({
+ e.stopPropagation(), t.setSelected(K(e).checked);
+ }, { pressProps: T, isPressed: E } = LS({
onPressStart: m,
onPressEnd: h,
onPressChange: g,
@@ -23055,7 +23056,7 @@ function GC(e, t, n) {
onPressUp: v,
onClick: y,
isDisabled: r
- }), [O, k] = (0, D.useState)(!1), { pressProps: A } = RS({
+ }), [O, k] = (0, D.useState)(!1), { pressProps: A } = LS({
onPressStart(e) {
e.pointerType === "keyboard" || e.pointerType === "virtual" ? e.continuePropagation() : (m?.(e), g?.(!0), k(!0));
},
@@ -23072,16 +23073,16 @@ function GC(e, t, n) {
return;
}
_?.(r), t.toggle(), n.current?.focus();
- let { [RC]: i } = e, { commitValidation: a } = i || b;
+ let { [LC]: i } = e, { commitValidation: a } = i || b;
a();
},
isDisabled: r || i
- }), { focusableProps: j } = Px(e, n), M = K(T, j), N = wS(e, { labelable: !0 });
- DC(n, t.defaultSelected, t.setSelected);
- let P = NC(), ee = NC();
+ }), { focusableProps: j } = Nx(e, n), M = q(T, j), N = CS(e, { labelable: !0 });
+ EC(n, t.defaultSelected, t.setSelected);
+ let P = MC(), ee = MC();
return {
- labelProps: K(A, { onClick: (e) => e.preventDefault() }),
- inputProps: K(N, {
+ labelProps: q(A, { onClick: (e) => e.preventDefault() }),
+ inputProps: q(N, {
checked: t.isSelected,
"aria-required": l && u === "aria" || void 0,
required: l && u === "native",
@@ -23115,12 +23116,12 @@ function GC(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/checkbox/useCheckbox.mjs
-function KC(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 } = GC(e, t, n), { isIndeterminate: m } = e;
+function GC(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 } = WC(e, t, n), { isIndeterminate: m } = e;
return (0, D.useEffect)(() => {
n.current && (n.current.indeterminate = !!m);
}), {
- labelProps: K(r, (0, D.useMemo)(() => ({ onMouseDown: (e) => e.preventDefault() }), [])),
+ labelProps: q(r, (0, D.useMemo)(() => ({ onMouseDown: (e) => e.preventDefault() }), [])),
inputProps: i,
descriptionProps: a,
errorMessageProps: o,
@@ -23135,18 +23136,18 @@ function KC(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/checkbox/utils.mjs
-var qC = /* @__PURE__ */ new WeakMap();
+var KC = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/label/useLabel.mjs
-function JC(e) {
+function qC(e) {
let { id: t, label: n, "aria-labelledby": r, "aria-label": i, labelElementType: a = "label" } = e;
- t = bx(t);
- let o = bx(), s = {};
+ t = yx(t);
+ let o = yx(), s = {};
n && (r = r ? `${o} ${r}` : o, s = {
id: o,
htmlFor: a === "label" ? t : void 0
});
- let c = uS({
+ let c = lS({
id: t,
"aria-label": i,
"aria-labelledby": r
@@ -23158,19 +23159,19 @@ function JC(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/label/useField.mjs
-function YC(e) {
- let { description: t, errorMessage: n, isInvalid: r, validationState: i } = e, { labelProps: a, fieldProps: o } = JC(e), s = xx([
+function JC(e) {
+ let { description: t, errorMessage: n, isInvalid: r, validationState: i } = e, { labelProps: a, fieldProps: o } = qC(e), s = bx([
!!t,
!!n,
r,
i
- ]), c = xx([
+ ]), c = bx([
!!t,
!!n,
r,
i
]);
- return o = K(o, { "aria-describedby": [
+ return o = q(o, { "aria-describedby": [
s,
c,
e["aria-describedby"]
@@ -23183,26 +23184,26 @@ function YC(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useFocusWithin.mjs
-function XC(e) {
- let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: i } = e, a = (0, D.useRef)({ isFocusWithin: !1 }), { addGlobalListener: o, removeAllGlobalListeners: s } = NS(), c = (0, D.useCallback)((e) => {
- eb(e.currentTarget, G(e)) && a.current.isFocusWithin && !eb(e.currentTarget, e.relatedTarget) && (a.current.isFocusWithin = !1, s(), n && n(e), i && i(!1));
+function YC(e) {
+ let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: i } = e, a = (0, D.useRef)({ isFocusWithin: !1 }), { addGlobalListener: o, removeAllGlobalListeners: s } = MS(), c = (0, D.useCallback)((e) => {
+ $y(e.currentTarget, K(e)) && a.current.isFocusWithin && !$y(e.currentTarget, e.relatedTarget) && (a.current.isFocusWithin = !1, s(), n && n(e), i && i(!1));
}, [
n,
i,
a,
s
- ]), l = _b(c), u = (0, D.useCallback)((e) => {
- if (!eb(e.currentTarget, G(e))) return;
- let t = G(e), n = qy(t), s = tb(n);
+ ]), l = gb(c), u = (0, D.useCallback)((e) => {
+ if (!$y(e.currentTarget, K(e))) return;
+ let t = K(e), n = Ky(t), s = eb(n);
if (!a.current.isFocusWithin && s === t) {
r && r(e), i && i(!0), a.current.isFocusWithin = !0, l(e);
let t = e.currentTarget;
o(n, "focus", (e) => {
- let r = G(e);
- if (a.current.isFocusWithin && !eb(t, r)) {
+ let r = K(e);
+ if (a.current.isFocusWithin && !$y(t, r)) {
let e = new n.defaultView.FocusEvent("blur", { relatedTarget: r });
- gb(e, t);
- let i = hb(e);
+ hb(e, t);
+ let i = mb(e);
c(i);
}
}, { capture: !0 });
@@ -23224,14 +23225,14 @@ function XC(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/utils/useControlledState.mjs
-var ZC = D.useInsertionEffect ?? D.useLayoutEffect;
-function QC(e, t, n) {
+var XC = D.useInsertionEffect ?? D.useLayoutEffect;
+function ZC(e, t, n) {
let [r, i] = (0, D.useState)(e || t), a = (0, D.useRef)(r), o = (0, D.useRef)(e !== void 0), s = e !== void 0;
(0, D.useEffect)(() => {
o.current, o.current = s;
}, [s]);
let c = s ? e : r;
- ZC(() => {
+ XC(() => {
a.current = c;
});
let [, l] = (0, D.useReducer)(() => ({}), {});
@@ -23242,8 +23243,8 @@ function QC(e, t, n) {
}
//#endregion
//#region node_modules/react-stately/dist/private/toggle/useToggleState.mjs
-function $C(e = {}) {
- let { isReadOnly: t } = e, [n, r] = QC(e.isSelected, e.defaultSelected || !1, e.onChange), [i] = (0, D.useState)(n);
+function QC(e = {}) {
+ let { isReadOnly: t } = e, [n, r] = ZC(e.isSelected, e.defaultSelected || !1, e.onChange), [i] = (0, D.useState)(n);
function a(e) {
t || r(e);
}
@@ -23259,26 +23260,26 @@ function $C(e = {}) {
}
//#endregion
//#region node_modules/react-aria/dist/private/checkbox/useCheckboxGroupItem.mjs
-function ew(e, t, n) {
- let r = $C({
+function $C(e, t, n) {
+ let r = QC({
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 } = qC.get(t);
+ }), { name: i, form: a, descriptionId: o, errorMessageId: s, validationBehavior: c } = KC.get(t);
c = e.validationBehavior ?? c;
- let { realtimeValidation: l } = zC({
+ let { realtimeValidation: l } = RC({
...e,
value: r.isSelected,
name: void 0,
validationBehavior: "aria"
- }), u = (0, D.useRef)(IC), d = () => {
+ }), u = (0, D.useRef)(FC), d = () => {
t.setInvalid(e.value, l.isInvalid ? l : u.current);
};
(0, D.useEffect)(d);
- let f = t.realtimeValidation.isInvalid ? t.realtimeValidation : l, p = c === "native" ? t.displayValidation : f, m = KC({
+ let f = t.realtimeValidation.isInvalid ? t.realtimeValidation : l, p = c === "native" ? t.displayValidation : f, m = GC({
...e,
isReadOnly: e.isReadOnly || t.isReadOnly,
isDisabled: e.isDisabled || t.isDisabled,
@@ -23286,7 +23287,7 @@ function ew(e, t, n) {
form: e.form || a,
isRequired: e.isRequired ?? t.isRequired,
validationBehavior: c,
- [RC]: {
+ [LC]: {
realtimeValidation: f,
displayValidation: p,
resetValidation: t.resetValidation,
@@ -23310,10 +23311,10 @@ function ew(e, t, n) {
}
//#endregion
//#region node_modules/react-stately/dist/private/utils/number.mjs
-function tw(e, t = -Infinity, n = Infinity) {
+function ew(e, t = -Infinity, n = Infinity) {
return Math.min(Math.max(e, t), n);
}
-function nw(e, t) {
+function tw(e, t) {
let n = e, r = 0, i = t.toString(), a = i.toLowerCase().indexOf("e-");
if (a > 0) r = Math.abs(Math.floor(Math.log10(Math.abs(t)))) + a;
else {
@@ -23326,16 +23327,16 @@ function nw(e, t) {
}
return n;
}
-function rw(e, t, n, r) {
+function nw(e, t, n, r) {
t = Number(t), n = Number(n);
- let i = (e - (isNaN(t) ? 0 : t)) % r, a = nw(Math.abs(i) * 2 >= r ? e + Math.sign(i) * (r - Math.abs(i)) : e - i, r);
- return isNaN(t) ? !isNaN(n) && a > n && (a = Math.floor(nw(n / r, r)) * r) : a < t ? a = t : !isNaN(n) && a > n && (a = t + Math.floor(nw((n - t) / r, r)) * r), a = nw(a, r), a;
+ let i = (e - (isNaN(t) ? 0 : t)) % r, a = tw(Math.abs(i) * 2 >= r ? e + Math.sign(i) * (r - Math.abs(i)) : e - i, r);
+ return isNaN(t) ? !isNaN(n) && a > n && (a = Math.floor(tw(n / r, r)) * r) : a < t ? a = t : !isNaN(n) && a > n && (a = t + Math.floor(tw((n - t) / r, r)) * r), a = tw(a, r), a;
}
//#endregion
//#region node_modules/@internationalized/number/dist/private/NumberFormatter.mjs
-var iw = /* @__PURE__ */ new Map(), aw = !1;
+var rw = /* @__PURE__ */ new Map(), iw = !1;
try {
- aw = new Intl.NumberFormat("de-DE", { signDisplay: "exceptZero" }).resolvedOptions().signDisplay === "exceptZero";
+ iw = new Intl.NumberFormat("de-DE", { signDisplay: "exceptZero" }).resolvedOptions().signDisplay === "exceptZero";
} catch {}
var yie = class {
constructor(e, t = {}) {
@@ -23343,7 +23344,7 @@ var yie = class {
}
format(e) {
let t = "";
- return t = !aw && this.options.signDisplay != null ? xie(this.numberFormatter, this.options.signDisplay, e) : this.numberFormatter.format(e), t;
+ return t = !iw && this.options.signDisplay != null ? xie(this.numberFormatter, this.options.signDisplay, e) : this.numberFormatter.format(e), t;
}
formatToParts(e) {
return this.numberFormatter.formatToParts(e);
@@ -23375,7 +23376,7 @@ var yie = class {
}
resolvedOptions() {
let e = this.numberFormatter.resolvedOptions();
- return !aw && this.options.signDisplay != null && (e = {
+ return !iw && this.options.signDisplay != null && (e = {
...e,
signDisplay: this.options.signDisplay
}), e;
@@ -23385,9 +23386,9 @@ function bie(e, t = {}) {
let { numberingSystem: n } = t;
n && e.includes("-nu-") && (e.includes("-u-") || (e += "-u-"), e += `-nu-${n}`);
let r = e + (t ? Object.entries(t).sort((e, t) => e[0] < t[0] ? -1 : 1).join() : "");
- if (iw.has(r)) return iw.get(r);
+ if (rw.has(r)) return rw.get(r);
let i = new Intl.NumberFormat(e, t);
- return iw.set(r, i), i;
+ return rw.set(r, i), i;
}
function xie(e, t, n) {
if (t === "auto") return e.format(n);
@@ -23403,12 +23404,12 @@ function xie(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useMove.mjs
-function ow(e) {
+function aw(e) {
let { onMoveStart: t, onMove: n, onMoveEnd: r } = e, i = (0, D.useRef)({
didMove: !1,
lastPosition: null,
id: null
- }), { addGlobalListener: a, removeGlobalListener: o } = NS(), s = cS((0, D.useCallback)((e, r, a, o) => {
+ }), { addGlobalListener: a, removeGlobalListener: o } = MS(), s = sS((0, D.useCallback)((e, r, a, o) => {
(a !== 0 || o !== 0) && (i.current.didMove || (i.current.didMove = !0, t?.({
type: "movestart",
pointerType: r,
@@ -23430,8 +23431,8 @@ function ow(e) {
t,
n,
i
- ])), c = cS((0, D.useCallback)((e, t) => {
- kS(), i.current.didMove && r?.({
+ ])), c = sS((0, D.useCallback)((e, t) => {
+ OS(), i.current.didMove && r?.({
type: "moveend",
pointerType: t,
shiftKey: e.shiftKey,
@@ -23442,7 +23443,7 @@ function ow(e) {
}, [r, i]));
return { moveProps: (0, D.useMemo)(() => {
let e = {}, t = () => {
- OS(), i.current.didMove = !1;
+ DS(), i.current.didMove = !1;
};
{
let n = (e) => {
@@ -23457,7 +23458,7 @@ function ow(e) {
if (e.pointerId === i.current.id) {
let t = e.pointerType || "mouse";
c(e, t), i.current.id = null;
- let a = Jy(G(e));
+ let a = qy(K(e));
o(a, "pointermove", n, !1), o(a, "pointerup", r, !1), o(a, "pointercancel", r, !1);
}
};
@@ -23467,7 +23468,7 @@ function ow(e) {
pageX: e.pageX,
pageY: e.pageY
}, i.current.id = e.pointerId;
- let o = Jy(G(e));
+ let o = qy(K(e));
a(o, "pointermove", n, !1), a(o, "pointerup", r, !1), a(o, "pointercancel", r, !1);
}
};
@@ -23501,7 +23502,7 @@ function ow(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/visually-hidden/VisuallyHidden.mjs
-var sw = {
+var ow = {
border: 0,
clip: "rect(0 0 0 0)",
clipPath: "inset(50%)",
@@ -23513,40 +23514,40 @@ var sw = {
width: "1px",
whiteSpace: "nowrap"
};
-function cw(e = {}) {
- let { style: t, isFocusable: n } = e, [r, i] = (0, D.useState)(!1), { focusWithinProps: a } = XC({
+function sw(e = {}) {
+ let { style: t, isFocusable: n } = e, [r, i] = (0, D.useState)(!1), { focusWithinProps: a } = YC({
isDisabled: !n,
onFocusWithinChange: (e) => i(e)
}), o = (0, D.useMemo)(() => r ? t : t ? {
- ...sw,
+ ...ow,
...t
- } : sw, [r]);
+ } : ow, [r]);
return { visuallyHiddenProps: {
...a,
style: o
} };
}
-function lw(e) {
- let { children: t, elementType: n = "div", isFocusable: r, style: i, ...a } = e, { visuallyHiddenProps: o } = cw(e);
- return /*#__PURE__*/ D.createElement(n, K(a, o), t);
+function cw(e) {
+ let { children: t, elementType: n = "div", isFocusable: r, style: i, ...a } = e, { visuallyHiddenProps: o } = sw(e);
+ return /*#__PURE__*/ D.createElement(n, q(a, o), t);
}
//#endregion
//#region node_modules/react-aria/dist/private/textfield/useTextField.mjs
function Sie(e, t) {
- let { inputElementType: n = "input", isDisabled: r = !1, isRequired: i = !1, isReadOnly: a = !1, type: o = "text", validationBehavior: s = "aria" } = e, [c, l] = QC(e.value, e.defaultValue || "", e.onChange), { focusableProps: u } = Px(e, t), d = zC({
+ let { inputElementType: n = "input", isDisabled: r = !1, isRequired: i = !1, isReadOnly: a = !1, type: o = "text", validationBehavior: s = "aria" } = e, [c, l] = ZC(e.value, e.defaultValue || "", e.onChange), { focusableProps: u } = Nx(e, t), d = RC({
...e,
value: c
- }), { isInvalid: f, validationErrors: p, validationDetails: m } = d.displayValidation, { labelProps: h, fieldProps: g, descriptionProps: _, errorMessageProps: v } = YC({
+ }), { isInvalid: f, validationErrors: p, validationDetails: m } = d.displayValidation, { labelProps: h, fieldProps: g, descriptionProps: _, errorMessageProps: v } = JC({
...e,
isInvalid: f,
errorMessage: e.errorMessage || p
- }), y = wS(e, { labelable: !0 }), b = {
+ }), y = CS(e, { labelable: !0 }), b = {
type: o,
pattern: e.pattern
}, [x] = (0, D.useState)(c);
- return DC(t, e.defaultValue ?? x, l), OC(e, d, t), {
+ return EC(t, e.defaultValue ?? x, l), DC(e, d, t), {
labelProps: h,
- inputProps: K(y, n === "input" ? b : void 0, {
+ inputProps: q(y, n === "input" ? b : void 0, {
disabled: r,
readOnly: a,
required: i && s === "native",
@@ -23558,7 +23559,7 @@ function Sie(e, t) {
"aria-haspopup": e["aria-haspopup"],
"aria-controls": e["aria-controls"],
value: c,
- onChange: (e) => l(G(e).value),
+ onChange: (e) => l(K(e).value),
autoComplete: e.autoComplete,
autoCapitalize: e.autoCapitalize,
maxLength: e.maxLength,
@@ -23592,27 +23593,27 @@ function Sie(e, t) {
//#endregion
//#region node_modules/react-aria/dist/private/i18n/useNumberFormatter.mjs
function Cie(e = {}) {
- let { locale: t } = gS();
+ let { locale: t } = hS();
return (0, D.useMemo)(() => new yie(t, e), [t, e]);
}
//#endregion
//#region node_modules/react-aria/dist/private/slider/utils.mjs
-var uw = /* @__PURE__ */ new WeakMap();
-function dw(e, t) {
- let n = uw.get(e);
+var lw = /* @__PURE__ */ new WeakMap();
+function uw(e, t) {
+ let n = lw.get(e);
if (!n) throw Error("Unknown slider state");
return `${n.id}-${t}`;
}
//#endregion
//#region node_modules/react-aria/dist/private/slider/useSlider.mjs
function wie(e, t, n) {
- let { labelProps: r, fieldProps: i } = JC(e), a = e.orientation === "vertical";
- uw.set(t, {
+ let { labelProps: r, fieldProps: i } = qC(e), a = e.orientation === "vertical";
+ lw.set(t, {
id: r.id ?? i.id,
"aria-describedby": e["aria-describedby"],
"aria-details": e["aria-details"]
});
- let { direction: o } = gS(), { addGlobalListener: s, removeGlobalListener: c } = NS(), l = (0, D.useRef)(null), u = o === "rtl", d = (0, D.useRef)(null), { moveProps: f } = ow({
+ let { direction: o } = hS(), { addGlobalListener: s, removeGlobalListener: c } = MS(), l = (0, D.useRef)(null), u = o === "rtl", d = (0, D.useRef)(null), { moveProps: f } = aw({
onMoveStart() {
d.current = null;
},
@@ -23622,7 +23623,7 @@ function wie(e, t, n) {
d.current == null && l.current != null && (d.current = t.getThumbPercent(l.current) * s);
let c = a ? r : e;
if ((a || u) && (c = -c), d.current += c, l.current != null && n.current) {
- let e = tw(d.current / s, 0, 1);
+ let e = ew(d.current / s, 0, 1);
t.setThumbPercent(l.current, e);
}
},
@@ -23646,14 +23647,14 @@ function wie(e, t, n) {
(e.pointerId ?? e.changedTouches?.[0].identifier) === p.current && (l.current != null && (t.setThumbDragging(l.current, !1), l.current = null), c(window, "mouseup", h, !1), c(window, "touchend", h, !1), c(window, "pointerup", h, !1));
};
return "htmlFor" in r && r.htmlFor && (delete r.htmlFor, r.onClick = () => {
- document.getElementById(dw(t, 0))?.focus(), ax("keyboard");
+ document.getElementById(uw(t, 0))?.focus(), ix("keyboard");
}), {
labelProps: r,
groupProps: {
role: "group",
...i
},
- trackProps: K({
+ trackProps: q({
onMouseDown(e) {
e.button !== 0 || e.altKey || e.ctrlKey || e.metaKey || m(e, void 0, e.clientX, e.clientY);
},
@@ -23669,7 +23670,7 @@ function wie(e, t, n) {
}
}, f),
outputProps: {
- htmlFor: t.values.map((e, n) => dw(t, n)).join(" "),
+ htmlFor: t.values.map((e, n) => uw(t, n)).join(" "),
"aria-live": "off"
}
};
@@ -23677,19 +23678,19 @@ function wie(e, t, n) {
//#endregion
//#region node_modules/react-aria/dist/private/slider/useSliderThumb.mjs
function Tie(e, t) {
- let { index: n = 0, isRequired: r, validationState: i, isInvalid: a, trackRef: o, inputRef: s, orientation: c = t.orientation, name: l, form: u } = e, d = e.isDisabled || t.isDisabled, f = c === "vertical", { direction: p } = gS(), { addGlobalListener: m, removeGlobalListener: h } = NS(), g = uw.get(t), { labelProps: _, fieldProps: v } = JC({
+ let { index: n = 0, isRequired: r, validationState: i, isInvalid: a, trackRef: o, inputRef: s, orientation: c = t.orientation, name: l, form: u } = e, d = e.isDisabled || t.isDisabled, f = c === "vertical", { direction: p } = hS(), { addGlobalListener: m, removeGlobalListener: h } = MS(), g = lw.get(t), { labelProps: _, fieldProps: v } = qC({
...e,
- id: dw(t, n),
+ id: uw(t, n),
"aria-labelledby": `${g.id} ${e["aria-labelledby"] ?? ""}`.trim()
}), y = t.values[n], b = (0, D.useCallback)(() => {
- s.current && Ky(s.current);
+ s.current && Gy(s.current);
}, [s]), x = t.focusedThumb === n;
(0, D.useEffect)(() => {
x && b();
}, [x, b]);
let S = p === "rtl", C = (0, D.useRef)(null), w = (e) => {
t.setThumbDragging(n, !0), e(), t.setThumbDragging(n, !1);
- }, { keyboardProps: T } = Ax({
+ }, { keyboardProps: T } = kx({
shortcuts: {
PageUp: () => w(() => {
t.incrementThumb(n, t.pageSize);
@@ -23705,7 +23706,7 @@ function Tie(e, t) {
})
},
allowRepeats: !0
- }), { moveProps: E } = ow({
+ }), { moveProps: E } = aw({
onMoveStart() {
C.current = null, t.setThumbDragging(n, !0);
},
@@ -23716,7 +23717,7 @@ function Tie(e, t) {
if (C.current ??= s(n) * g, i === "keyboard") e > 0 && S || e < 0 && !S || r > 0 ? l(n, a ? p : d) : u(n, a ? p : d);
else {
let t = f ? r : e;
- (f || S) && (t = -t), C.current += t, c(n, tw(C.current / g, 0, 1));
+ (f || S) && (t = -t), C.current += t, c(n, ew(C.current / g, 0, 1));
}
},
onMoveEnd() {
@@ -23724,7 +23725,7 @@ function Tie(e, t) {
}
});
t.setThumbEditable(n, !d);
- let { focusableProps: O } = Px(K(e, {
+ let { focusableProps: O } = Nx(q(e, {
onFocus: () => t.setFocusedThumb(n),
onBlur: () => t.setFocusedThumb(void 0)
}), s), k = (0, D.useRef)(void 0), A = (e) => {
@@ -23733,7 +23734,7 @@ function Tie(e, t) {
(e.pointerId ?? e.changedTouches?.[0].identifier) === k.current && (b(), t.setThumbDragging(n, !1), h(window, "mouseup", j, !1), h(window, "touchend", j, !1), h(window, "pointerup", j, !1));
}, M = t.getThumbPercent(n);
(f || p === "rtl") && (M = 1 - M);
- let N = d ? {} : K(T, E, {
+ let N = d ? {} : q(T, E, {
onMouseDown: (e) => {
e.button !== 0 || e.altKey || e.ctrlKey || e.metaKey || A();
},
@@ -23744,10 +23745,10 @@ function Tie(e, t) {
A(e.changedTouches[0].identifier);
}
});
- return DC(s, t.defaultValues[n], (e) => {
+ return EC(s, t.defaultValues[n], (e) => {
t.setThumbValue(n, e);
}), {
- inputProps: K(O, v, {
+ inputProps: q(O, v, {
type: "range",
tabIndex: d ? void 0 : 0,
min: t.getThumbMinValue(n),
@@ -23765,7 +23766,7 @@ function Tie(e, t) {
"aria-describedby": [g["aria-describedby"], e["aria-describedby"]].filter(Boolean).join(" "),
"aria-details": [g["aria-details"], e["aria-details"]].filter(Boolean).join(" "),
onChange: (e) => {
- t.setThumbValue(n, parseFloat(G(e).value));
+ t.setThumbValue(n, parseFloat(K(e).value));
}
}),
thumbProps: {
@@ -23786,41 +23787,41 @@ function Tie(e, t) {
//#endregion
//#region node_modules/react-aria/dist/private/overlays/ariaHideOutside.mjs
var Eie = typeof HTMLElement < "u" && "inert" in HTMLElement.prototype;
-function fw(e) {
+function dw(e) {
return e.dataset.liveAnnouncer === "true" || e.dataset.reactAriaTopLayer !== void 0;
}
-var pw = /* @__PURE__ */ new WeakMap(), mw = [];
-function hw(e, t) {
- let n = Jy(e?.[0]), r = t instanceof n.Element ? { root: t } : t, i = r?.root ?? document.body, a = r?.shouldUseInert && Eie, 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 fw = /* @__PURE__ */ new WeakMap(), pw = [];
+function mw(e, t) {
+ let n = qy(e?.[0]), r = t instanceof n.Element ? { root: t } : t, i = r?.root ?? document.body, a = r?.shouldUseInert && Eie, 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 ($y()) {
+ if (Qy()) {
let t = i.getRootNode();
for (let n of e) {
let e = n.getRootNode();
- for (; Xy(e) && e !== t;) u.add(e), e = e.host.getRootNode();
+ for (; Yy(e) && e !== t;) u.add(e), e = e.host.getRootNode();
}
}
let d = (e) => {
for (let t of e.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]")) o.add(t);
let t = (e) => {
if (s.has(e) || o.has(e) || e.parentElement && s.has(e.parentElement) && e.parentElement.getAttribute("role") !== "row") return NodeFilter.FILTER_REJECT;
- for (let t of o) if (eb(e, t)) return NodeFilter.FILTER_SKIP;
+ for (let t of o) if ($y(e, t)) return NodeFilter.FILTER_SKIP;
return NodeFilter.FILTER_ACCEPT;
- }, n = WS(qy(e), e, NodeFilter.SHOW_ELEMENT, { acceptNode: t }), r = t(e);
+ }, n = US(Ky(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 = pw.get(e) ?? 0;
- c(e) && t === 0 || (t === 0 && l(e, !0), s.add(e), pw.set(e, t + 1));
+ let t = fw.get(e) ?? 0;
+ c(e) && t === 0 || (t === 0 && l(e, !0), s.add(e), fw.set(e, t + 1));
};
- mw.length && mw[mw.length - 1].disconnect(), d(i);
+ pw.length && pw[pw.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) => eb(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && fw(e) ? o.add(e) : e instanceof Element && d(e);
- if ($y()) {
+ if (t.target.isConnected && ![...o, ...s].some((e) => $y(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && dw(e) ? o.add(e) : e instanceof Element && d(e);
+ if (Qy()) {
for (let e of u) if (!e.isConnected) {
p.disconnect();
break;
@@ -23833,11 +23834,11 @@ function hw(e, t) {
subtree: !0
});
let m = /* @__PURE__ */ new Set();
- if ($y()) for (let e of u) {
+ if (Qy()) 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) => eb(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && fw(e) ? o.add(e) : e instanceof Element && d(e);
- if ($y()) {
+ if (t.target.isConnected && ![...o, ...s].some((e) => $y(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && dw(e) ? o.add(e) : e instanceof Element && d(e);
+ if (Qy()) {
for (let e of u) if (!e.isConnected) {
p.disconnect();
break;
@@ -23863,59 +23864,59 @@ function hw(e, t) {
p.disconnect();
}
};
- return mw.push(h), () => {
- if (p.disconnect(), $y()) for (let e of m) e.disconnect();
+ return pw.push(h), () => {
+ if (p.disconnect(), Qy()) for (let e of m) e.disconnect();
for (let e of s) {
- let t = pw.get(e);
- t != null && (t === 1 ? (l(e, !1), pw.delete(e)) : pw.set(e, t - 1));
+ let t = fw.get(e);
+ t != null && (t === 1 ? (l(e, !1), fw.delete(e)) : fw.set(e, t - 1));
}
- h === mw[mw.length - 1] ? (mw.pop(), mw.length && mw[mw.length - 1].observe()) : mw.splice(mw.indexOf(h), 1);
+ h === pw[pw.length - 1] ? (pw.pop(), pw.length && pw[pw.length - 1].observe()) : pw.splice(pw.indexOf(h), 1);
};
}
-function gw(e) {
- let t = mw[mw.length - 1];
+function hw(e) {
+ let t = pw[pw.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 _w = /* @__PURE__ */ new WeakMap();
+var gw = /* @__PURE__ */ new WeakMap();
function Die(e) {
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
}
function Oie(e, t) {
- let n = _w.get(e);
+ let n = gw.get(e);
if (!n) throw Error("Unknown list");
return `${n.id}-option-${Die(t)}`;
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/utils.mjs
-function vw(e) {
- return Db() ? e.altKey : e.ctrlKey;
+function _w(e) {
+ return Eb() ? e.altKey : e.ctrlKey;
}
-function yw(e, t) {
+function vw(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 bw = /* @__PURE__ */ new WeakMap();
+var yw = /* @__PURE__ */ new WeakMap();
function kie(e) {
- let t = bx();
- return bw.set(e, t), t;
+ let t = yx();
+ return yw.set(e, t), t;
}
function Aie(e) {
- return bw.get(e);
+ return yw.get(e);
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/DOMLayoutDelegate.mjs
-var xw = class {
+var bw = class {
constructor(e) {
this.ref = e;
}
getItemRect(e) {
let t = this.ref.current;
if (!t) return null;
- let n = e == null ? null : yw(this.ref, e);
+ let n = e == null ? null : vw(this.ref, e);
if (!n) return null;
let r = t.getBoundingClientRect(), i = n.getBoundingClientRect();
return {
@@ -23941,12 +23942,12 @@ var xw = class {
height: e?.clientHeight ?? 0
};
}
-}, Sw = class {
+}, xw = 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 xw(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 xw(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 bw(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 bw(this.ref);
this.layout === "stack" && this.orientation === "vertical" && (this.getKeyLeftOf = void 0, this.getKeyRightOf = void 0);
}
isDisabled(e) {
@@ -23986,14 +23987,14 @@ var xw = class {
return e.x === t.x || e.y !== t.y;
}
isReversed(e) {
- let t = this.getNextKey(e), n = yw(this.ref, e);
+ let t = this.getNextKey(e), n = vw(this.ref, e);
if (t != null) {
- let e = yw(this.ref, t);
+ let e = vw(this.ref, t);
return !n || !e ? !1 : n.getBoundingClientRect().top > e.getBoundingClientRect().top;
}
let r = this.getPreviousKey(e);
if (r != null) {
- let e = yw(this.ref, r);
+ let e = vw(this.ref, r);
return !n || !e ? !1 : e.getBoundingClientRect().top > n.getBoundingClientRect().top;
}
return !1;
@@ -24027,7 +24028,7 @@ var xw = class {
let t = this.ref.current, n = this.layoutDelegate.getItemRect(e);
if (!n) return null;
let r = this.isReversed(e);
- if (t && !vC(t)) return this.getFirstKey();
+ if (t && !_C(t)) return this.getFirstKey();
let i = e;
if (this.orientation === "horizontal") {
let e = Math.max(0, n.x + n.width - this.layoutDelegate.getVisibleRect().width);
@@ -24042,7 +24043,7 @@ var xw = class {
let t = this.ref.current, n = this.layoutDelegate.getItemRect(e);
if (!n) return null;
let r = this.isReversed(e);
- if (t && !vC(t)) return this.getLastKey();
+ if (t && !_C(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);
@@ -24065,184 +24066,184 @@ var xw = class {
}
return null;
}
-}, Cw = {};
-Cw = { longPressMessage: "اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة" };
+}, Sw = {};
+Sw = { longPressMessage: "اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/bg-BG.mjs
-var ww = {};
-ww = { longPressMessage: "Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто" };
+var Cw = {};
+Cw = { longPressMessage: "Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/cs-CZ.mjs
-var Tw = {};
-Tw = { longPressMessage: "Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku" };
+var ww = {};
+ww = { 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 Ew = {};
-Ew = { longPressMessage: "Langt tryk eller tryk på Alt + pil ned for at åbne menuen" };
+var Tw = {};
+Tw = { 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 Dw = {};
-Dw = { longPressMessage: "Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen" };
+var Ew = {};
+Ew = { 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 Ow = {};
-Ow = { longPressMessage: "Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού" };
+var Dw = {};
+Dw = { longPressMessage: "Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/en-US.mjs
-var kw = {};
-kw = { longPressMessage: "Long press or press Alt + ArrowDown to open menu" };
+var Ow = {};
+Ow = { longPressMessage: "Long press or press Alt + ArrowDown to open menu" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/es-ES.mjs
-var Aw = {};
-Aw = { longPressMessage: "Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú" };
+var kw = {};
+kw = { 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 jw = {};
-jw = { longPressMessage: "Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool" };
+var Aw = {};
+Aw = { 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 Mw = {};
-Mw = { longPressMessage: "Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli" };
+var jw = {};
+jw = { 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 Nw = {};
-Nw = { longPressMessage: "Appuyez de manière prolongée ou appuyez sur Alt\xA0+\xA0Flèche vers le bas pour ouvrir le menu." };
+var Mw = {};
+Mw = { 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 Pw = {};
-Pw = { longPressMessage: "לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט" };
+var Nw = {};
+Nw = { longPressMessage: "לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/hr-HR.mjs
-var Fw = {};
-Fw = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika" };
+var Pw = {};
+Pw = { 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 Iw = {};
-Iw = { longPressMessage: "Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához" };
+var Fw = {};
+Fw = { 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 Lw = {};
-Lw = { longPressMessage: "Premi a lungo o premi Alt + Freccia giù per aprire il menu" };
+var Iw = {};
+Iw = { 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 Rw = {};
-Rw = { longPressMessage: "長押しまたは Alt+下矢印キーでメニューを開く" };
+var Lw = {};
+Lw = { longPressMessage: "長押しまたは Alt+下矢印キーでメニューを開く" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/ko-KR.mjs
-var zw = {};
-zw = { longPressMessage: "길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기" };
+var Rw = {};
+Rw = { longPressMessage: "길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/lt-LT.mjs
-var Bw = {};
-Bw = { longPressMessage: "Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“." };
+var zw = {};
+zw = { 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 Vw = {};
-Vw = { longPressMessage: "Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa" };
+var Bw = {};
+Bw = { 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 Hw = {};
-Hw = { longPressMessage: "Langt trykk eller trykk Alt + PilNed for å åpne menyen" };
+var Vw = {};
+Vw = { longPressMessage: "Langt trykk eller trykk Alt + PilNed for å åpne menyen" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/nl-NL.mjs
-var Uw = {};
-Uw = { longPressMessage: "Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen" };
+var Hw = {};
+Hw = { 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 Ww = {};
-Ww = { longPressMessage: "Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu" };
+var Uw = {};
+Uw = { 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 Gw = {};
-Gw = { longPressMessage: "Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu" };
+var Ww = {};
+Ww = { 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 Kw = {};
-Kw = { longPressMessage: "Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu" };
+var Gw = {};
+Gw = { 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 qw = {};
-qw = { longPressMessage: "Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul" };
+var Kw = {};
+Kw = { 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 Jw = {};
-Jw = { longPressMessage: "Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню" };
+var qw = {};
+qw = { longPressMessage: "Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/sk-SK.mjs
-var Yw = {};
-Yw = { longPressMessage: "Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol" };
+var Jw = {};
+Jw = { 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 Xw = {};
-Xw = { longPressMessage: "Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol" };
+var Yw = {};
+Yw = { 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 Zw = {};
-Zw = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni" };
+var Xw = {};
+Xw = { 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 Qw = {};
-Qw = { longPressMessage: "Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn" };
+var Zw = {};
+Zw = { 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 $w = {};
-$w = { longPressMessage: "Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın" };
+var Qw = {};
+Qw = { 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 eT = {};
-eT = { longPressMessage: "Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню" };
+var $w = {};
+$w = { longPressMessage: "Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/zh-CN.mjs
-var tT = {};
-tT = { longPressMessage: "长按或按 Alt + 向下方向键以打开菜单" };
+var eT = {};
+eT = { longPressMessage: "长按或按 Alt + 向下方向键以打开菜单" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/zh-TW.mjs
-var nT = {};
-nT = { longPressMessage: "長按或按 Alt+向下鍵以開啟功能表" };
+var tT = {};
+tT = { longPressMessage: "長按或按 Alt+向下鍵以開啟功能表" };
//#endregion
//#region node_modules/react-aria/dist/private/menu/intlStrings.mjs
-var rT = {};
-rT = {
- "ar-AE": Cw,
- "bg-BG": ww,
- "cs-CZ": Tw,
- "da-DK": Ew,
- "de-DE": Dw,
- "el-GR": Ow,
- "en-US": kw,
- "es-ES": Aw,
- "et-EE": jw,
- "fi-FI": Mw,
- "fr-FR": Nw,
- "he-IL": Pw,
- "hr-HR": Fw,
- "hu-HU": Iw,
- "it-IT": Lw,
- "ja-JP": Rw,
- "ko-KR": zw,
- "lt-LT": Bw,
- "lv-LV": Vw,
- "nb-NO": Hw,
- "nl-NL": Uw,
- "pl-PL": Ww,
- "pt-BR": Gw,
- "pt-PT": Kw,
- "ro-RO": qw,
- "ru-RU": Jw,
- "sk-SK": Yw,
- "sl-SI": Xw,
- "sr-SP": Zw,
- "sv-SE": Qw,
- "tr-TR": $w,
- "uk-UA": eT,
- "zh-CN": tT,
- "zh-TW": nT
+var nT = {};
+nT = {
+ "ar-AE": Sw,
+ "bg-BG": Cw,
+ "cs-CZ": ww,
+ "da-DK": Tw,
+ "de-DE": Ew,
+ "el-GR": Dw,
+ "en-US": Ow,
+ "es-ES": kw,
+ "et-EE": Aw,
+ "fi-FI": jw,
+ "fr-FR": Mw,
+ "he-IL": Nw,
+ "hr-HR": Pw,
+ "hu-HU": Fw,
+ "it-IT": Iw,
+ "ja-JP": Lw,
+ "ko-KR": Rw,
+ "lt-LT": zw,
+ "lv-LV": Bw,
+ "nb-NO": Vw,
+ "nl-NL": Hw,
+ "pl-PL": Uw,
+ "pt-BR": Ww,
+ "pt-PT": Gw,
+ "ro-RO": Kw,
+ "ru-RU": qw,
+ "sk-SK": Jw,
+ "sl-SI": Yw,
+ "sr-SP": Xw,
+ "sv-SE": Zw,
+ "tr-TR": Qw,
+ "uk-UA": $w,
+ "zh-CN": eT,
+ "zh-TW": tT
};
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useLongPress.mjs
var jie = 500;
-function iT(e) {
- let { isDisabled: t, pointerType: n, onLongPressStart: r, onLongPressEnd: i, onLongPress: a, threshold: o = jie, accessibilityDescription: s } = e, c = (0, D.useRef)(void 0), { addGlobalListener: l, removeAllGlobalListeners: u } = NS(), d = (e) => n ? e.pointerType === n : e.pointerType === "mouse" || e.pointerType === "touch", { pressProps: f } = RS({
+function rT(e) {
+ let { isDisabled: t, pointerType: n, onLongPressStart: r, onLongPressEnd: i, onLongPress: a, threshold: o = jie, accessibilityDescription: s } = e, c = (0, D.useRef)(void 0), { addGlobalListener: l, removeAllGlobalListeners: u } = MS(), d = (e) => n ? e.pointerType === n : e.pointerType === "mouse" || e.pointerType === "touch", { pressProps: f } = LS({
isDisabled: t,
onPressStart(e) {
if (e.continuePropagation(), d(e)) {
@@ -24250,12 +24251,12 @@ function iT(e) {
...e,
type: "longpressstart"
}), c.current = setTimeout(() => {
- e.target.dispatchEvent(new PointerEvent("pointercancel", { bubbles: !0 })), l(e.target, "click", (e) => e.preventDefault(), { once: !0 }), qy(e.target).activeElement !== e.target && Ky(e.target), a && a({
+ e.target.dispatchEvent(new PointerEvent("pointercancel", { bubbles: !0 })), l(e.target, "click", (e) => e.preventDefault(), { once: !0 }), Ky(e.target).activeElement !== e.target && Gy(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 = Jy(e.target);
+ let t = qy(e.target);
l(t, "pointerup", () => {
setTimeout(() => {
u();
@@ -24270,12 +24271,12 @@ function iT(e) {
});
}
});
- return { longPressProps: K(f, EC(a && !t ? s : void 0)) };
+ return { longPressProps: q(f, TC(a && !t ? s : void 0)) };
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useContextMenu.mjs
function Mie(e) {
- let { onContextMenu: t } = e, n = (0, D.useRef)(!1), { longPressProps: r } = iT({
+ let { onContextMenu: t } = e, n = (0, D.useRef)(!1), { longPressProps: r } = rT({
onLongPressStart() {
n.current = !1;
},
@@ -24287,7 +24288,7 @@ function Mie(e) {
});
}
});
- return t ? { contextMenuProps: K(Eb() ? r : {}, {
+ return t ? { contextMenuProps: q(Tb() ? r : {}, {
onContextMenu(e) {
e.stopPropagation(), e.preventDefault(), n.current = !0;
let r = e.currentTarget.getBoundingClientRect();
@@ -24298,7 +24299,7 @@ function Mie(e) {
});
},
onKeyDown(e) {
- if (Cb() && e.ctrlKey && e.key === "Enter") {
+ if (Sb() && e.ctrlKey && e.key === "Enter") {
n.current = !1;
let r = e.currentTarget;
e.stopPropagation(), setTimeout(() => {
@@ -24318,13 +24319,13 @@ function Mie(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useCloseOnScroll.mjs
-var aT = /* @__PURE__ */ new WeakMap();
+var iT = /* @__PURE__ */ new WeakMap();
function Nie(e) {
let { triggerRef: t, isOpen: n, onClose: r } = e;
- (0, D.useEffect)(() => !n || r === null ? void 0 : Zy(nb(t.current), "scroll", (e) => {
- let n = G(e);
- if (!t.current || n instanceof Node && !eb(n, t.current) || n instanceof HTMLInputElement || n instanceof HTMLTextAreaElement) return;
- let i = r || aT.get(t.current);
+ (0, D.useEffect)(() => !n || r === null ? void 0 : Xy(tb(t.current), "scroll", (e) => {
+ let n = K(e);
+ if (!t.current || n instanceof Node && !$y(n, t.current) || n instanceof HTMLInputElement || n instanceof HTMLTextAreaElement) return;
+ let i = r || iT.get(t.current);
i && i();
}, !0), [
n,
@@ -24337,11 +24338,11 @@ function Nie(e) {
function Pie(e, t, n) {
let { type: r } = e, { isOpen: i } = t;
(0, D.useEffect)(() => {
- n && n.current && aT.set(n.current, t.close);
+ n && n.current && iT.set(n.current, t.close);
});
let a;
r === "menu" ? a = !0 : r === "listbox" && (a = "listbox");
- let o = bx();
+ let o = yx();
return {
triggerProps: {
"aria-haspopup": a,
@@ -24357,11 +24358,11 @@ function Pie(e, t, n) {
function Fie(e) {
return e && e.__esModule ? e.default : e;
}
-function oT(e, t, n) {
- let { type: r = "menu", isDisabled: i, trigger: a = "press" } = e, o = bx(), { triggerProps: s, overlayProps: c } = Pie({ type: r }, t, n), l = (e, n, r = "first") => {
+function aT(e, t, n) {
+ let { type: r = "menu", isDisabled: i, trigger: a = "press" } = e, o = yx(), { triggerProps: s, overlayProps: c } = Pie({ type: r }, t, n), l = (e, n, r = "first") => {
if (!e || n.isDefaultPrevented()) return !1;
t.toggle(r);
- }, { keyboardProps: u } = Ax({
+ }, { keyboardProps: u } = kx({
isDisabled: i,
shortcuts: {
Enter: (e) => l(a !== "longPress", e, "first"),
@@ -24373,7 +24374,7 @@ function oT(e, t, n) {
"Alt+ArrowDown": (e) => l(!0, e, "first"),
"Alt+ArrowUp": (e) => l(!0, e, "last")
}
- }), d = SS(Fie(rT), "@react-aria/menu"), { longPressProps: f } = iT({
+ }), d = xS(Fie(nT), "@react-aria/menu"), { longPressProps: f } = rT({
isDisabled: i || a !== "longPress",
accessibilityDescription: d.format("longPressMessage"),
onLongPressStart() {
@@ -24385,10 +24386,10 @@ function oT(e, t, n) {
}), p = {
preventFocusOnPress: !0,
onPressStart(e) {
- e.pointerType !== "touch" && e.pointerType !== "keyboard" && !i && (Ky(e.target), t.open(e.pointerType === "virtual" ? "first" : null));
+ e.pointerType !== "touch" && e.pointerType !== "keyboard" && !i && (Gy(e.target), t.open(e.pointerType === "virtual" ? "first" : null));
},
onPress(e) {
- e.pointerType === "touch" && !i && (Ky(e.target), t.toggle());
+ e.pointerType === "touch" && !i && (Gy(e.target), t.toggle());
}
};
delete s.onPress;
@@ -24402,7 +24403,7 @@ function oT(e, t, n) {
(0, D.useEffect)(() => {
if (t.isOpen && a === "contextMenu") {
let e = (e) => {
- (e.button === 2 || e.button === 0 && e.ctrlKey === !0) && G(e) === document.body && t.close();
+ (e.button === 2 || e.button === 0 && e.ctrlKey === !0) && K(e) === document.body && t.close();
};
return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
}
@@ -24437,8 +24438,8 @@ function oT(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/useTypeSelect.mjs
-var sT = 1e3;
-function cT(e) {
+var oT = 1e3;
+function sT(e) {
let { keyboardDelegate: t, selectionManager: n, onTypeSelect: r } = e, i = (0, D.useRef)({
search: "",
timeout: void 0
@@ -24457,12 +24458,12 @@ function cT(e) {
}
clearTimeout(i.current.timeout), i.current.timeout = setTimeout(() => {
i.current.search = "";
- }, sT);
+ }, oT);
}
} : void 0,
onKeyDown: t.getKeyForSearch ? (e) => {
let a = Iie(e.key);
- if (!(!a || e.ctrlKey || e.metaKey || e.altKey || !eb(e.currentTarget, G(e)) || i.current.search.length === 0 && a === " ")) {
+ if (!(!a || e.ctrlKey || e.metaKey || e.altKey || !$y(e.currentTarget, K(e)) || i.current.search.length === 0 && a === " ")) {
if (i.current.search += a, t.getKeyForSearch != null) {
let a = t.getKeyForSearch(i.current.search, n.focusedKey);
if (a ??= t.getKeyForSearch(i.current.search), a != null) n.setFocusedKey(a), r && r(a), e.preventDefault(), "continuePropagation" in e || e.stopPropagation();
@@ -24473,7 +24474,7 @@ function cT(e) {
}
clearTimeout(i.current.timeout), i.current.timeout = setTimeout(() => {
i.current.search = "";
- }, sT);
+ }, oT);
}
} : void 0
} };
@@ -24483,24 +24484,24 @@ function Iie(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useUpdateLayoutEffect.mjs
-function lT(e, t) {
+function cT(e, t) {
let n = (0, D.useRef)(!0), r = (0, D.useRef)(null);
- mb(() => (n.current = !0, () => {
+ pb(() => (n.current = !0, () => {
n.current = !1;
- }), []), mb(() => {
+ }), []), pb(() => {
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 uT(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 } = gS(), _ = Pb(), v = (e, n, i) => {
+function lT(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 } = hS(), _ = Nb(), v = (e, n, i) => {
if (n != null) {
- if (t.isLink(n) && m === "selection" && l && !vw(e)) {
+ if (t.isLink(n) && m === "selection" && l && !_w(e)) {
(0, Tt.flushSync)(() => {
t.setFocusedKey(n, i);
});
- let a = yw(r, n), o = t.getItemProps(n);
+ let a = vw(r, n), o = t.getItemProps(n);
if (a) {
_.open(a, e, o.href, o.routerOptions);
return;
@@ -24512,7 +24513,7 @@ function uT(e) {
t.extendSelection(n);
return;
}
- if (l && !vw(e)) {
+ if (l && !_w(e)) {
t.replaceSelection(n);
return;
}
@@ -24539,9 +24540,9 @@ function uT(e) {
}, x = (e) => {
if (n.getFirstKey) {
if (t.focusedKey === null && e.shiftKey) return !1;
- let r = n.getFirstKey(t.focusedKey, oS(e));
+ let r = n.getFirstKey(t.focusedKey, aS(e));
if (t.setFocusedKey(r), r != null) {
- if (oS(e) && e.shiftKey && t.selectionMode === "multiple") {
+ if (aS(e) && e.shiftKey && t.selectionMode === "multiple") {
t.extendSelection(r);
return;
}
@@ -24573,9 +24574,9 @@ function uT(e) {
}, w = (e) => {
if (n.getLastKey) {
if (t.focusedKey === null && e.shiftKey) return !1;
- let r = n.getLastKey(t.focusedKey, oS(e));
+ let r = n.getLastKey(t.focusedKey, aS(e));
if (t.setFocusedKey(r), r != null) {
- if (oS(e) && e.shiftKey && t.selectionMode === "multiple") {
+ if (aS(e) && e.shiftKey && t.selectionMode === "multiple") {
t.extendSelection(r);
return;
}
@@ -24606,12 +24607,12 @@ function uT(e) {
else return !1;
}, A = () => {
if (!f && r.current) {
- let e = lC(r.current, { tabbable: !0 }), t, n;
+ let e = cC(r.current, { tabbable: !0 }), t, n;
do
n = e.lastChild(), n && (t = n);
while (n);
- let i = tb();
- t && (!rb(t) || i && !fb(i)) && Ky(t);
+ let i = eb();
+ t && (!nb(t) || i && !db(i)) && Gy(t);
}
return {
shouldContinuePropagation: !0,
@@ -24621,11 +24622,11 @@ function uT(e) {
shouldContinuePropagation: !0,
shouldPreventDefault: !1
}), M = (e, t) => ({
- [Cb() ? e + "+Shift+Alt" : e + "+Shift+Control"]: t,
+ [Sb() ? e + "+Shift+Alt" : e + "+Shift+Control"]: t,
[e + "+Shift"]: t,
- [Cb() ? e + "+Alt" : e + "+Control"]: t,
+ [Sb() ? e + "+Alt" : e + "+Control"]: t,
[e]: t
- }), { keyboardProps: N } = Ax({
+ }), { keyboardProps: N } = kx({
shortcuts: {
...M("ArrowDown", y),
...M("ArrowUp", b),
@@ -24635,7 +24636,7 @@ function uT(e) {
...M("PageUp", E)
},
allowRepeats: !0
- }), { keyboardProps: P } = Ax({ shortcuts: {
+ }), { keyboardProps: P } = kx({ shortcuts: {
...M("Home", x),
...M("End", w),
"Mod+A": O,
@@ -24646,7 +24647,7 @@ function uT(e) {
top: 0,
left: 0
});
- lS(p, "scroll", () => {
+ cS(p, "scroll", () => {
ee.current = {
top: p.current?.scrollTop ?? 0,
left: p.current?.scrollLeft ?? 0
@@ -24654,11 +24655,11 @@ function uT(e) {
});
let F = (e) => {
if (t.isFocused) {
- eb(e.currentTarget, G(e)) || t.setFocused(!1);
+ $y(e.currentTarget, K(e)) || t.setFocused(!1);
return;
}
- if (!eb(e.currentTarget, G(e))) return;
- let i = ix();
+ if (!$y(e.currentTarget, K(e))) return;
+ let i = rx();
t.setFocused(!0);
let a = (e) => {
e != null && (t.setFocusedKey(e), l && !t.isSelected(e) && t.replaceSelection(e));
@@ -24669,27 +24670,27 @@ function uT(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 = ee.current.top, p.current.scrollLeft = ee.current.left);
if (t.focusedKey != null && p.current) {
- let e = yw(r, t.focusedKey);
- e instanceof HTMLElement && (!rb(e) && !d && Ky(e), (i === "keyboard" || h && i === "virtual") && CC(e, { containingElement: r.current }));
+ let e = vw(r, t.focusedKey);
+ e instanceof HTMLElement && (!nb(e) && !d && Gy(e), (i === "keyboard" || h && i === "virtual") && SC(e, { containingElement: r.current }));
}
}, te = (e) => {
- eb(e.currentTarget, e.relatedTarget) || t.setFocused(!1);
+ $y(e.currentTarget, e.relatedTarget) || t.setFocused(!1);
}, I = (0, D.useRef)(!1);
- lS(r, Lre, d ? (e) => {
+ cS(r, Lre, d ? (e) => {
let { detail: n } = e;
e.stopPropagation(), t.setFocused(!0), n?.focusStrategy === "first" && (I.current = !0);
} : void 0);
let ne = n.getFirstKey?.() ?? null;
- lT(() => {
+ cT(() => {
if (I.current) {
if (ne == null) {
- let e = tb();
- Yx(r.current), Xx(e, null), t.collection.size > 0 && (I.current = !1);
+ let e = eb();
+ Jx(r.current), Yx(e, null), t.collection.size > 0 && (I.current = !1);
} else t.setFocusedKey(ne), I.current = !1;
}
- }, [ne, t.collection.size]), lT(() => {
+ }, [ne, t.collection.size]), cT(() => {
t.collection.size > 0 && (I.current = !1);
- }, [t.focusedKey]), lS(r, Ire, d ? (e) => {
+ }, [t.focusedKey]), cS(r, Ire, d ? (e) => {
e.stopPropagation(), t.setFocused(!1), e.detail?.clearFocusKey && t.setFocusedKey(null);
} : void 0);
let re = (0, D.useRef)(i), ie = (0, D.useRef)(!1);
@@ -24704,53 +24705,53 @@ function uT(e) {
break;
}
}
- t.setFocused(!0), t.setFocusedKey(e), e != null && l && !a.size && t.canSelectItem(e) && t.replaceSelection(e), e == null && !d && r.current && hx(r.current), t.collection.size > 0 && (re.current = !1, ie.current = !0);
+ t.setFocused(!0), t.setFocusedKey(e), e != null && l && !a.size && t.canSelectItem(e) && t.replaceSelection(e), e == null && !d && r.current && mx(r.current), t.collection.size > 0 && (re.current = !1, ie.current = !0);
}
});
let ae = (0, D.useRef)(t.focusedKey), oe = (0, D.useRef)(null);
(0, D.useEffect)(() => {
if (t.isFocused && t.focusedKey != null && (t.focusedKey !== ae.current || ie.current) && p.current && r.current) {
- let e = ix(), n = yw(r, t.focusedKey);
+ let e = rx(), n = vw(r, t.focusedKey);
if (!(n instanceof HTMLElement)) return;
(e === "keyboard" || ie.current) && (oe.current && cancelAnimationFrame(oe.current), oe.current = requestAnimationFrame(() => {
- p.current && (xC(p.current, n), e !== "virtual" && CC(n, { containingElement: r.current }));
+ p.current && (bC(p.current, n), e !== "virtual" && SC(n, { containingElement: r.current }));
}));
}
- !d && t.isFocused && t.focusedKey == null && ae.current != null && r.current && hx(r.current), ae.current = t.focusedKey, ie.current = !1;
+ !d && t.isFocused && t.focusedKey == null && ae.current != null && r.current && mx(r.current), ae.current = t.focusedKey, ie.current = !1;
}), (0, D.useEffect)(() => () => {
oe.current && cancelAnimationFrame(oe.current);
- }, []), lS(r, "react-aria-focus-scope-restore", (e) => {
+ }, []), cS(r, "react-aria-focus-scope-restore", (e) => {
e.preventDefault(), t.setFocused(!0);
});
let se = {
- ...K(P, N),
+ ...q(P, N),
onFocus: F,
onBlur: te,
onMouseDown(e) {
- p.current === G(e) && e.preventDefault();
+ p.current === K(e) && e.preventDefault();
}
- }, { typeSelectProps: ce } = cT({
+ }, { typeSelectProps: ce } = sT({
keyboardDelegate: n,
selectionManager: t
});
- u || (se = K(ce, se));
+ u || (se = q(ce, se));
let le;
d || (le = t.focusedKey == null ? 0 : -1);
let ue = kie(t.collection);
- return { collectionProps: K(se, {
+ return { collectionProps: q(se, {
tabIndex: le,
"data-collection": ue
}) };
}
//#endregion
//#region node_modules/react-stately/dist/private/collections/getChildNodes.mjs
-function dT(e, t) {
+function uT(e, t) {
return typeof t.getChildren == "function" ? t.getChildren(e.key) : e.childNodes;
}
-function fT(e) {
- return pT(e, 0);
+function dT(e) {
+ return fT(e, 0);
}
-function pT(e, t) {
+function fT(e, t) {
if (t < 0) return;
let n = 0;
for (let r of e) {
@@ -24758,112 +24759,112 @@ function pT(e, t) {
n++;
}
}
-function mT(e) {
+function pT(e) {
let t;
for (let n of e) t = n;
return t;
}
-function hT(e, t, n) {
+function mT(e, t, n) {
if (t.parentKey === n.parentKey) return t.index - n.index;
- let r = [...gT(e, t), t], i = [...gT(e, n), n], a = r.slice(0, i.length).findIndex((e, t) => e !== i[t]);
+ let r = [...hT(e, t), t], i = [...hT(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 gT(e, t) {
+function hT(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 _T = /* @__PURE__ */ new WeakMap();
-function vT(e) {
- let t = _T.get(e);
+var gT = /* @__PURE__ */ new WeakMap();
+function _T(e) {
+ let t = gT.get(e);
if (t != null) return t;
let n = 0, r = (t) => {
- for (let i of t) i.type === "section" ? r(dT(i, e)) : i.type === "item" && n++;
+ for (let i of t) i.type === "section" ? r(uT(i, e)) : i.type === "item" && n++;
};
- return r(e), _T.set(e, n), n;
+ return r(e), gT.set(e, n), n;
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/useCollator.mjs
-var yT = /* @__PURE__ */ new Map();
-function bT(e) {
- let { locale: t } = gS(), n = t + (e ? Object.entries(e).sort((e, t) => e[0] < t[0] ? -1 : 1).join() : "");
- if (yT.has(n)) return yT.get(n);
+var vT = /* @__PURE__ */ new Map();
+function yT(e) {
+ let { locale: t } = hS(), n = t + (e ? Object.entries(e).sort((e, t) => e[0] < t[0] ? -1 : 1).join() : "");
+ if (vT.has(n)) return vT.get(n);
let r = new Intl.Collator(t, e);
- return yT.set(n, r), r;
+ return vT.set(n, r), r;
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/PressResponder.mjs
var Lie = /*#__PURE__*/ D.forwardRef(({ children: e, ...t }, n) => {
- let r = (0, D.useRef)(!1), i = (0, D.useContext)(MS), a = K(i || {}, {
+ let r = (0, D.useRef)(!1), i = (0, D.useContext)(jS), a = q(i || {}, {
...t,
register() {
r.current = !0, i && i.register();
}
});
- return a.ref = jx(n || i?.ref), Mx(i, a.ref), (0, D.useEffect)(() => {
+ return a.ref = Ax(n || i?.ref), jx(i, a.ref), (0, D.useEffect)(() => {
r.current ||= !0;
- }, []), /*#__PURE__*/ D.createElement(MS.Provider, { value: a }, e);
+ }, []), /*#__PURE__*/ D.createElement(jS.Provider, { value: a }, e);
});
function Rie({ children: e }) {
let t = (0, D.useMemo)(() => ({ register: () => {} }), []);
- return /*#__PURE__*/ D.createElement(MS.Provider, { value: t }, e);
+ return /*#__PURE__*/ D.createElement(jS.Provider, { value: t }, e);
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/PortalProvider.mjs
-var xT = /*#__PURE__*/ (0, D.createContext)({});
-function ST(e) {
- let { getContainer: t } = e, { getContainer: n } = CT();
- return /*#__PURE__*/ D.createElement(xT.Provider, { value: { getContainer: t === null ? void 0 : t ?? n } }, e.children);
+var bT = /*#__PURE__*/ (0, D.createContext)({});
+function xT(e) {
+ let { getContainer: t } = e, { getContainer: n } = ST();
+ return /*#__PURE__*/ D.createElement(bT.Provider, { value: { getContainer: t === null ? void 0 : t ?? n } }, e.children);
}
-function CT() {
- return (0, D.useContext)(xT) ?? {};
+function ST() {
+ return (0, D.useContext)(bT) ?? {};
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/Overlay.mjs
-var wT = /*#__PURE__*/ D.createContext(null);
-function TT(e) {
- let t = Hb(), { portalContainer: n = t ? null : document.body, isExiting: r } = e, [i, a] = (0, D.useState)(!1), o = (0, D.useMemo)(() => ({
+var CT = /*#__PURE__*/ D.createContext(null);
+function wT(e) {
+ let t = Vb(), { portalContainer: n = t ? null : document.body, isExiting: r } = e, [i, a] = (0, D.useState)(!1), o = (0, D.useMemo)(() => ({
contain: i,
setContain: a
- }), [i, a]), { getContainer: s } = CT();
+ }), [i, a]), { getContainer: s } = ST();
if (!e.portalContainer && s && (n = s()), !n) return null;
let c = e.children;
- return e.disableFocusManagement || (c = /*#__PURE__*/ D.createElement(JS, {
+ return e.disableFocusManagement || (c = /*#__PURE__*/ D.createElement(qS, {
restoreFocus: !0,
contain: (e.shouldContainFocus || i) && !r
- }, c)), c = /*#__PURE__*/ D.createElement(wT.Provider, { value: o }, /*#__PURE__*/ D.createElement(Rie, null, /*#__PURE__*/ D.createElement(Nx.Provider, { value: null }, c))), /*#__PURE__*/ Tt.createPortal(c, n);
+ }, c)), c = /*#__PURE__*/ D.createElement(CT.Provider, { value: o }, /*#__PURE__*/ D.createElement(Rie, null, /*#__PURE__*/ D.createElement(Mx.Provider, { value: null }, c))), /*#__PURE__*/ Tt.createPortal(c, n);
}
-function ET() {
- let e = (0, D.useContext)(wT)?.setContain;
- mb(() => {
+function TT() {
+ let e = (0, D.useContext)(CT)?.setContain;
+ pb(() => {
e?.(!0);
}, [e]);
}
//#endregion
//#region node_modules/react-aria/dist/private/dialog/useDialog.mjs
function zie(e, t) {
- let { role: n = "dialog", isEntering: r } = e, i = xx();
+ let { role: n = "dialog", isEntering: r } = e, i = bx();
i = e["aria-label"] ? void 0 : i;
- let a = xx();
+ let a = bx();
a = n === "alertdialog" && !e["aria-describedby"] ? a : void 0;
let o = (0, D.useRef)(!1);
(0, D.useEffect)(() => {
- if (!r && t.current && !rb(t.current)) {
- hx(t.current);
+ if (!r && t.current && !nb(t.current)) {
+ mx(t.current);
let e = setTimeout(() => {
- (tb() === t.current || tb() === document.body) && (o.current = !0, t.current && (t.current.blur(), hx(t.current)), o.current = !1);
+ (eb() === t.current || eb() === document.body) && (o.current = !0, t.current && (t.current.blur(), mx(t.current)), o.current = !1);
}, 500);
return () => {
clearTimeout(e);
};
}
- }, [t, r]), ET(), (0, D.useRef)(!1), (0, D.useEffect)(() => {});
+ }, [t, r]), TT(), (0, D.useRef)(!1), (0, D.useEffect)(() => {});
let s = e["aria-describedby"] ?? a;
return {
dialogProps: {
- ...wS(e, { labelable: !0 }),
+ ...CS(e, { labelable: !0 }),
role: n,
tabIndex: -1,
"aria-labelledby": e["aria-labelledby"] ?? i,
@@ -24878,23 +24879,23 @@ function zie(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/focus/useFocusRing.mjs
-function DT(e = {}) {
+function ET(e = {}) {
let { autoFocus: t = !1, isTextInput: n, within: r } = e, i = (0, D.useRef)({
isFocused: !1,
- isFocusVisible: t || rx()
+ isFocusVisible: t || nx()
}), [a, o] = (0, D.useState)(!1), [s, c] = (0, D.useState)(() => i.current.isFocused && i.current.isFocusVisible), l = (0, D.useCallback)(() => c(i.current.isFocused && i.current.isFocusVisible), []), u = (0, D.useCallback)((e) => {
- i.current.isFocused = e, i.current.isFocusVisible = rx(), o(e), l();
+ i.current.isFocused = e, i.current.isFocusVisible = nx(), o(e), l();
}, [l]);
- cx((e) => {
+ sx((e) => {
i.current.isFocusVisible = e, l();
}, [n, a], {
enabled: a,
isTextInput: n
});
- let { focusProps: d } = Ex({
+ let { focusProps: d } = Tx({
isDisabled: r,
onFocusChange: u
- }), { focusWithinProps: f } = XC({
+ }), { focusWithinProps: f } = YC({
isDisabled: !r,
onFocusWithinChange: u
});
@@ -24907,27 +24908,27 @@ function DT(e = {}) {
//#endregion
//#region node_modules/react-aria/dist/private/i18n/useListFormatter.mjs
function Bie(e = {}) {
- let { locale: t } = gS();
+ let { locale: t } = hS();
return (0, D.useMemo)(() => new Intl.ListFormat(t, e), [t, e]);
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useHover.mjs
-var OT = !1, kT = 0;
+var DT = !1, OT = 0;
function Vie() {
- OT = !0, setTimeout(() => {
- OT = !1;
+ DT = !0, setTimeout(() => {
+ DT = !1;
}, 500);
}
-function AT(e) {
+function kT(e) {
e.pointerType === "touch" && Vie();
}
function Hie() {
- let e = qy(null);
- if (e !== void 0) return kT === 0 && typeof PointerEvent < "u" && e.addEventListener("pointerup", AT), kT++, () => {
- kT--, !(kT > 0) && typeof PointerEvent < "u" && e.removeEventListener("pointerup", AT);
+ let e = Ky(null);
+ if (e !== void 0) return OT === 0 && typeof PointerEvent < "u" && e.addEventListener("pointerup", kT), OT++, () => {
+ OT--, !(OT > 0) && typeof PointerEvent < "u" && e.removeEventListener("pointerup", kT);
};
}
-function jT(e) {
+function AT(e) {
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, isDisabled: i } = e, [a, o] = (0, D.useState)(!1), s = (0, D.useRef)({
isHovered: !1,
ignoreEmulatedMouseEvents: !1,
@@ -24935,13 +24936,13 @@ function jT(e) {
target: null
}).current;
(0, D.useEffect)(Hie, []);
- let { addGlobalListener: c, removeAllGlobalListeners: l } = NS(), { hoverProps: u, triggerHoverEnd: d } = (0, D.useMemo)(() => {
+ let { addGlobalListener: c, removeAllGlobalListeners: l } = MS(), { hoverProps: u, triggerHoverEnd: d } = (0, D.useMemo)(() => {
let e = (e, r) => {
- if (s.pointerType = r, i || r === "touch" || s.isHovered || !eb(e.currentTarget, G(e))) return;
+ if (s.pointerType = r, i || r === "touch" || s.isHovered || !$y(e.currentTarget, K(e))) return;
s.isHovered = !0;
let l = e.currentTarget;
- s.target = l, c(qy(G(e)), "pointerover", (e) => {
- s.isHovered && s.target && !eb(s.target, G(e)) && a(e, e.pointerType);
+ s.target = l, c(Ky(K(e)), "pointerover", (e) => {
+ s.isHovered && s.target && !$y(s.target, K(e)) && a(e, e.pointerType);
}, { capture: !0 }), t && t({
type: "hoverstart",
target: l,
@@ -24956,9 +24957,9 @@ function jT(e) {
}), n && n(!1), o(!1));
}, u = {};
return typeof PointerEvent < "u" && (u.onPointerEnter = (t) => {
- OT && t.pointerType === "mouse" || e(t, t.pointerType);
+ DT && t.pointerType === "mouse" || e(t, t.pointerType);
}, u.onPointerLeave = (e) => {
- !i && eb(e.currentTarget, G(e)) && a(e, e.pointerType);
+ !i && $y(e.currentTarget, K(e)) && a(e, e.pointerType);
}), {
hoverProps: u,
triggerHoverEnd: a
@@ -24985,18 +24986,18 @@ function Uie(e) {
let { ref: t, onInteractOutside: n, isDisabled: r, onInteractOutsideStart: i } = e, a = (0, D.useRef)({
isPointerDown: !1,
ignoreEmulatedMouseEvents: !1
- }), o = cS((e) => {
- n && MT(e, t) && (i && i(e), a.current.isPointerDown = !0);
- }), s = cS((e) => {
+ }), o = sS((e) => {
+ n && jT(e, t) && (i && i(e), a.current.isPointerDown = !0);
+ }), s = sS((e) => {
n && n(e);
});
(0, D.useEffect)(() => {
let e = a.current;
if (r) return;
- let n = t.current, i = qy(n);
+ let n = t.current, i = Ky(n);
if (typeof PointerEvent < "u") {
let n = (n) => {
- e.isPointerDown && MT(n, t) && s(n), e.isPointerDown = !1;
+ e.isPointerDown && jT(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);
@@ -25004,20 +25005,20 @@ function Uie(e) {
}
}, [t, r]);
}
-function MT(e, t) {
+function jT(e, t) {
if (e.button > 0) return !1;
- let n = G(e);
+ let n = K(e);
if (n) {
let e = n.ownerDocument;
- if (!e || !eb(e.documentElement, n) || n.closest("[data-react-aria-top-layer]")) return !1;
+ if (!e || !$y(e.documentElement, n) || n.closest("[data-react-aria-top-layer]")) return !1;
}
return t.current ? !e.composedPath().includes(t.current) : !1;
}
//#endregion
//#region node_modules/react-aria/dist/private/gridlist/utils.mjs
-var NT = /* @__PURE__ */ new WeakMap();
-function PT(e, t) {
- let { id: n } = NT.get(e) ?? {};
+var MT = /* @__PURE__ */ new WeakMap();
+function NT(e, t) {
+ let { id: n } = MT.get(e) ?? {};
if (!n) throw Error("Unknown list");
return `${n}-${Wie(t)}`;
}
@@ -25026,8 +25027,8 @@ function Wie(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ar-AE.mjs
-var FT = {};
-FT = {
+var PT = {};
+PT = {
deselectedItem: (e) => `${e.item} \u{63A}\u{64A}\u{631} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}`,
longPressToSelect: "اضغط مطولًا للدخول إلى وضع التحديد.",
select: "تحديد",
@@ -25041,8 +25042,8 @@ FT = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/bg-BG.mjs
-var IT = {};
-IT = {
+var FT = {};
+FT = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{435} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D}.`,
longPressToSelect: "Натиснете и задръжте за да влезете в избирателен режим.",
select: "Изберете",
@@ -25056,8 +25057,8 @@ IT = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/cs-CZ.mjs
-var LT = {};
-LT = {
+var IT = {};
+IT = {
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",
@@ -25071,8 +25072,8 @@ LT = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/da-DK.mjs
-var RT = {};
-RT = {
+var LT = {};
+LT = {
deselectedItem: (e) => `${e.item} ikke valgt.`,
longPressToSelect: "Lav et langt tryk for at aktivere valgtilstand.",
select: "Vælg",
@@ -25086,8 +25087,8 @@ RT = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/de-DE.mjs
-var zT = {};
-zT = {
+var RT = {};
+RT = {
deselectedItem: (e) => `${e.item} nicht ausgew\xe4hlt.`,
longPressToSelect: "Gedrückt halten, um Auswahlmodus zu öffnen.",
select: "Auswählen",
@@ -25101,8 +25102,8 @@ zT = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/el-GR.mjs
-var BT = {};
-BT = {
+var zT = {};
+zT = {
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: "Επιλογή",
@@ -25116,8 +25117,8 @@ BT = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/en-US.mjs
-var VT = {};
-VT = {
+var BT = {};
+BT = {
deselectedItem: (e) => `${e.item} not selected.`,
select: "Select",
selectedCount: (e, t) => `${t.plural(e.count, {
@@ -25131,8 +25132,8 @@ VT = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/es-ES.mjs
-var HT = {};
-HT = {
+var VT = {};
+VT = {
deselectedItem: (e) => `${e.item} no seleccionado.`,
longPressToSelect: "Mantenga pulsado para abrir el modo de selección.",
select: "Seleccionar",
@@ -25146,8 +25147,8 @@ HT = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/et-EE.mjs
-var UT = {};
-UT = {
+var HT = {};
+HT = {
deselectedItem: (e) => `${e.item} pole valitud.`,
longPressToSelect: "Valikurežiimi sisenemiseks vajutage pikalt.",
select: "Vali",
@@ -25161,8 +25162,8 @@ UT = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/fi-FI.mjs
-var WT = {};
-WT = {
+var UT = {};
+UT = {
deselectedItem: (e) => `Kohdetta ${e.item} ei valittu.`,
longPressToSelect: "Siirry valintatilaan painamalla pitkään.",
select: "Valitse",
@@ -25176,8 +25177,8 @@ WT = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/fr-FR.mjs
-var GT = {};
-GT = {
+var WT = {};
+WT = {
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",
@@ -25191,8 +25192,8 @@ GT = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/he-IL.mjs
-var KT = {};
-KT = {
+var GT = {};
+GT = {
deselectedItem: (e) => `${e.item} \u{5DC}\u{5D0} \u{5E0}\u{5D1}\u{5D7}\u{5E8}.`,
longPressToSelect: "הקשה ארוכה לכניסה למצב בחירה.",
select: "בחר",
@@ -25206,8 +25207,8 @@ KT = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/hr-HR.mjs
-var qT = {};
-qT = {
+var KT = {};
+KT = {
deselectedItem: (e) => `Stavka ${e.item} nije odabrana.`,
longPressToSelect: "Dugo pritisnite za ulazak u način odabira.",
select: "Odaberite",
@@ -25221,8 +25222,8 @@ qT = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/hu-HU.mjs
-var JT = {};
-JT = {
+var qT = {};
+qT = {
deselectedItem: (e) => `${e.item} nincs kijel\xf6lve.`,
longPressToSelect: "Nyomja hosszan a kijelöléshez.",
select: "Kijelölés",
@@ -25236,8 +25237,8 @@ JT = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/it-IT.mjs
-var YT = {};
-YT = {
+var JT = {};
+JT = {
deselectedItem: (e) => `${e.item} non selezionato.`,
longPressToSelect: "Premi a lungo per passare alla modalità di selezione.",
select: "Seleziona",
@@ -25251,8 +25252,8 @@ YT = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ja-JP.mjs
-var XT = {};
-XT = {
+var YT = {};
+YT = {
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: "選択",
@@ -25266,8 +25267,8 @@ XT = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ko-KR.mjs
-var ZT = {};
-ZT = {
+var XT = {};
+XT = {
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: "선택",
@@ -25281,8 +25282,8 @@ ZT = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/lt-LT.mjs
-var QT = {};
-QT = {
+var ZT = {};
+ZT = {
deselectedItem: (e) => `${e.item} nepasirinkta.`,
longPressToSelect: "Norėdami įjungti pasirinkimo režimą, paspauskite ir palaikykite.",
select: "Pasirinkti",
@@ -25296,8 +25297,8 @@ QT = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/lv-LV.mjs
-var $T = {};
-$T = {
+var QT = {};
+QT = {
deselectedItem: (e) => `Vienums ${e.item} nav atlas\u{12B}ts.`,
longPressToSelect: "Ilgi turiet nospiestu. lai ieslēgtu atlases režīmu.",
select: "Atlasīt",
@@ -25311,8 +25312,8 @@ $T = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/nb-NO.mjs
-var eE = {};
-eE = {
+var $T = {};
+$T = {
deselectedItem: (e) => `${e.item} er ikke valgt.`,
longPressToSelect: "Bruk et langt trykk for å gå inn i valgmodus.",
select: "Velg",
@@ -25326,8 +25327,8 @@ eE = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/nl-NL.mjs
-var tE = {};
-tE = {
+var eE = {};
+eE = {
deselectedItem: (e) => `${e.item} niet geselecteerd.`,
longPressToSelect: "Druk lang om de selectiemodus te openen.",
select: "Selecteren",
@@ -25341,8 +25342,8 @@ tE = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/pl-PL.mjs
-var nE = {};
-nE = {
+var tE = {};
+tE = {
deselectedItem: (e) => `Nie zaznaczono ${e.item}.`,
longPressToSelect: "Naciśnij i przytrzymaj, aby wejść do trybu wyboru.",
select: "Zaznacz",
@@ -25356,8 +25357,8 @@ nE = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/pt-BR.mjs
-var rE = {};
-rE = {
+var nE = {};
+nE = {
deselectedItem: (e) => `${e.item} n\xe3o selecionado.`,
longPressToSelect: "Mantenha pressionado para entrar no modo de seleção.",
select: "Selecionar",
@@ -25371,8 +25372,8 @@ rE = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/pt-PT.mjs
-var iE = {};
-iE = {
+var rE = {};
+rE = {
deselectedItem: (e) => `${e.item} n\xe3o selecionado.`,
longPressToSelect: "Prima continuamente para entrar no modo de seleção.",
select: "Selecionar",
@@ -25386,8 +25387,8 @@ iE = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ro-RO.mjs
-var aE = {};
-aE = {
+var iE = {};
+iE = {
deselectedItem: (e) => `${e.item} neselectat.`,
longPressToSelect: "Apăsați lung pentru a intra în modul de selectare.",
select: "Selectare",
@@ -25401,8 +25402,8 @@ aE = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ru-RU.mjs
-var oE = {};
-oE = {
+var aE = {};
+aE = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`,
longPressToSelect: "Нажмите и удерживайте для входа в режим выбора.",
select: "Выбрать",
@@ -25416,8 +25417,8 @@ oE = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/sk-SK.mjs
-var sE = {};
-sE = {
+var oE = {};
+oE = {
deselectedItem: (e) => `Nevybrat\xe9 polo\u{17E}ky: ${e.item}.`,
longPressToSelect: "Dlhším stlačením prejdite do režimu výberu.",
select: "Vybrať",
@@ -25431,8 +25432,8 @@ sE = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/sl-SI.mjs
-var cE = {};
-cE = {
+var sE = {};
+sE = {
deselectedItem: (e) => `Element ${e.item} ni izbran.`,
longPressToSelect: "Za izbirni način pritisnite in dlje časa držite.",
select: "Izberite",
@@ -25446,8 +25447,8 @@ cE = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/sr-SP.mjs
-var lE = {};
-lE = {
+var cE = {};
+cE = {
deselectedItem: (e) => `${e.item} nije izabrano.`,
longPressToSelect: "Dugo pritisnite za ulazak u režim biranja.",
select: "Izaberite",
@@ -25461,8 +25462,8 @@ lE = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/sv-SE.mjs
-var uE = {};
-uE = {
+var lE = {};
+lE = {
deselectedItem: (e) => `${e.item} ej markerat.`,
longPressToSelect: "Tryck länge när du vill öppna väljarläge.",
select: "Markera",
@@ -25476,8 +25477,8 @@ uE = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/tr-TR.mjs
-var dE = {};
-dE = {
+var uE = {};
+uE = {
deselectedItem: (e) => `${e.item} se\xe7ilmedi.`,
longPressToSelect: "Seçim moduna girmek için uzun basın.",
select: "Seç",
@@ -25491,8 +25492,8 @@ dE = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/uk-UA.mjs
-var fE = {};
-fE = {
+var dE = {};
+dE = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`,
longPressToSelect: "Виконайте довге натиснення, щоб перейти в режим вибору.",
select: "Вибрати",
@@ -25506,8 +25507,8 @@ fE = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/zh-CN.mjs
-var pE = {};
-pE = {
+var fE = {};
+fE = {
deselectedItem: (e) => `\u{672A}\u{9009}\u{62E9} ${e.item}\u{3002}`,
longPressToSelect: "长按以进入选择模式。",
select: "选择",
@@ -25521,8 +25522,8 @@ pE = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/zh-TW.mjs
-var mE = {};
-mE = {
+var pE = {};
+pE = {
deselectedItem: (e) => `\u{672A}\u{9078}\u{53D6}\u{300C}${e.item}\u{300D}\u{3002}`,
longPressToSelect: "長按以進入選擇模式。",
select: "選取",
@@ -25536,55 +25537,55 @@ mE = {
};
//#endregion
//#region node_modules/react-aria/dist/private/grid/intlStrings.mjs
-var hE = {};
-hE = {
- "ar-AE": FT,
- "bg-BG": IT,
- "cs-CZ": LT,
- "da-DK": RT,
- "de-DE": zT,
- "el-GR": BT,
- "en-US": VT,
- "es-ES": HT,
- "et-EE": UT,
- "fi-FI": WT,
- "fr-FR": GT,
- "he-IL": KT,
- "hr-HR": qT,
- "hu-HU": JT,
- "it-IT": YT,
- "ja-JP": XT,
- "ko-KR": ZT,
- "lt-LT": QT,
- "lv-LV": $T,
- "nb-NO": eE,
- "nl-NL": tE,
- "pl-PL": nE,
- "pt-BR": rE,
- "pt-PT": iE,
- "ro-RO": aE,
- "ru-RU": oE,
- "sk-SK": sE,
- "sl-SI": cE,
- "sr-SP": lE,
- "sv-SE": uE,
- "tr-TR": dE,
- "uk-UA": fE,
- "zh-CN": pE,
- "zh-TW": mE
+var mE = {};
+mE = {
+ "ar-AE": PT,
+ "bg-BG": FT,
+ "cs-CZ": IT,
+ "da-DK": LT,
+ "de-DE": RT,
+ "el-GR": zT,
+ "en-US": BT,
+ "es-ES": VT,
+ "et-EE": HT,
+ "fi-FI": UT,
+ "fr-FR": WT,
+ "he-IL": GT,
+ "hr-HR": KT,
+ "hu-HU": qT,
+ "it-IT": JT,
+ "ja-JP": YT,
+ "ko-KR": XT,
+ "lt-LT": ZT,
+ "lv-LV": QT,
+ "nb-NO": $T,
+ "nl-NL": eE,
+ "pl-PL": tE,
+ "pt-BR": nE,
+ "pt-PT": rE,
+ "ro-RO": iE,
+ "ru-RU": aE,
+ "sk-SK": oE,
+ "sl-SI": sE,
+ "sr-SP": cE,
+ "sv-SE": lE,
+ "tr-TR": uE,
+ "uk-UA": dE,
+ "zh-CN": fE,
+ "zh-TW": pE
};
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridSelectionAnnouncement.mjs
function Gie(e) {
return e && e.__esModule ? e.default : e;
}
-function gE(e, t) {
- let { getRowText: n = (e) => t.collection.getTextValue?.(e) ?? t.collection.getItem(e)?.textValue } = e, r = SS(Gie(hE), "@react-aria/grid"), i = t.selectionManager.rawSelection, a = (0, D.useRef)(i), o = (0, D.useCallback)(() => {
+function hE(e, t) {
+ let { getRowText: n = (e) => t.collection.getTextValue?.(e) ?? t.collection.getItem(e)?.textValue } = e, r = xS(Gie(mE), "@react-aria/grid"), i = t.selectionManager.rawSelection, a = (0, D.useRef)(i), o = (0, D.useCallback)(() => {
if (!t.selectionManager.isFocused || i === a.current) {
a.current = i;
return;
}
- let e = _E(i, a.current), o = _E(a.current, i), s = t.selectionManager.selectionBehavior === "replace", c = [];
+ let e = gE(i, a.current), o = gE(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)) {
@@ -25604,7 +25605,7 @@ function gE(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 && hC(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 && mC(c.join(" ")), a.current = i;
}, [
i,
t.selectionManager.selectedKeys,
@@ -25615,7 +25616,7 @@ function gE(e, t) {
n,
r
]);
- _C(() => {
+ gC(() => {
if (t.selectionManager.isFocused) o();
else {
let e = requestAnimationFrame(o);
@@ -25623,7 +25624,7 @@ function gE(e, t) {
}
}, [i, t.selectionManager.isFocused]);
}
-function _E(e, t) {
+function gE(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);
@@ -25631,13 +25632,13 @@ function _E(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/focus/useHasTabbableChild.mjs
-function vE(e, t) {
+function _E(e, t) {
let n = t?.isDisabled, [r, i] = (0, D.useState)(!1);
- return mb(() => {
+ return pb(() => {
if (e?.current && !n) {
let t = () => {
if (e.current) {
- let t = lC(e.current, { tabbable: !0 });
+ let t = cC(e.current, { tabbable: !0 });
i(!!t.nextNode());
}
};
@@ -25659,9 +25660,9 @@ function vE(e, t) {
function Kie(e) {
return e && e.__esModule ? e.default : e;
}
-function yE(e) {
- let t = SS(Kie(hE), "@react-aria/grid"), n = ox(), r = (n === "pointer" || n === "virtual" || n == null) && typeof window < "u" && "ontouchstart" in window;
- return EC((0, D.useMemo)(() => {
+function vE(e) {
+ let t = xS(Kie(mE), "@react-aria/grid"), n = ax(), r = (n === "pointer" || n === "virtual" || n == null) && typeof window < "u" && "ontouchstart" in window;
+ return TC((0, D.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;
}, [
@@ -25674,11 +25675,11 @@ function yE(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/useSelectableList.mjs
-function bE(e) {
- let { selectionManager: t, collection: n, disabledKeys: r, ref: i, keyboardDelegate: a, layoutDelegate: o, orientation: s } = e, c = bT({
+function yE(e) {
+ let { selectionManager: t, collection: n, disabledKeys: r, ref: i, keyboardDelegate: a, layoutDelegate: o, orientation: s } = e, c = yT({
usage: "search",
sensitivity: "base"
- }), l = t.disabledBehavior, u = (0, D.useMemo)(() => a || new Sw({
+ }), l = t.disabledBehavior, u = (0, D.useMemo)(() => a || new xw({
collection: n,
disabledKeys: r,
disabledBehavior: l,
@@ -25695,7 +25696,7 @@ function bE(e) {
c,
l,
s
- ]), { collectionProps: d } = uT({
+ ]), { collectionProps: d } = lT({
...e,
ref: i,
selectionManager: t,
@@ -25708,7 +25709,7 @@ function bE(e) {
function qie(e, t, n) {
let { isVirtualized: r, keyboardDelegate: i, layoutDelegate: a, onAction: o, disallowTypeAhead: s, linkBehavior: c = "action", keyboardNavigationBehavior: l = "arrow", escapeKeyBehavior: u = "clearSelection", shouldSelectOnPressUp: d } = e;
!e["aria-label"] && !e["aria-labelledby"] && console.warn("An aria-label or aria-labelledby prop is required for accessibility.");
- let { listProps: f } = bE({
+ let { listProps: f } = yE({
selectionManager: t.selectionManager,
collection: t.collection,
disabledKeys: t.disabledKeys,
@@ -25723,31 +25724,31 @@ function qie(e, t, n) {
autoFocus: e.autoFocus,
escapeKeyBehavior: u,
UNSTABLE_focusOnEntry: e.UNSTABLE_focusOnEntry
- }), p = bx(e.id);
- NT.set(t, {
+ }), p = yx(e.id);
+ MT.set(t, {
id: p,
onAction: o,
linkBehavior: c,
keyboardNavigationBehavior: l,
shouldSelectOnPressUp: d
});
- let m = yE({
+ let m = vE({
selectionManager: t.selectionManager,
hasItemActions: !!o
- }), h = vE(n, { isDisabled: t.collection.size !== 0 }), g = K(wS(e, { labelable: !0 }), {
+ }), h = _E(n, { isDisabled: t.collection.size !== 0 }), g = q(CS(e, { labelable: !0 }), {
role: "grid",
id: p,
"aria-multiselectable": t.selectionManager.selectionMode === "multiple" ? "true" : void 0
}, t.collection.size === 0 ? { tabIndex: h ? -1 : 0 } : f, m);
- return r && (g["aria-rowcount"] = t.collection.size, g["aria-colcount"] = 1), gE({}, t), { gridProps: g };
+ return r && (g["aria-rowcount"] = t.collection.size, g["aria-colcount"] = 1), hE({}, t), { gridProps: g };
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/useSelectableItem.mjs
-function xE(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 = Pb();
- t = bx(t);
+function bE(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 = Nb();
+ t = yx(t);
let p = (e) => {
- if (e.pointerType === "keyboard" && vw(e)) n.toggleSelection(r);
+ if (e.pointerType === "keyboard" && _w(e)) n.toggleSelection(r);
else {
if (n.selectionMode === "none") return;
if (n.isLink(r)) {
@@ -25758,11 +25759,11 @@ function xE(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 && (oS(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 && (aS(e) || e.pointerType === "touch" || e.pointerType === "virtual") ? n.toggleSelection(r) : n.replaceSelection(r);
}
};
(0, D.useEffect)(() => {
- r === n.focusedKey && n.isFocused && (o ? Yx(i.current) : s ? s() : tb() !== i.current && i.current && hx(i.current));
+ r === n.focusedKey && n.isFocused && (o ? Jx(i.current) : s ? s() : eb() !== i.current && i.current && mx(i.current));
}, [
i,
r,
@@ -25775,7 +25776,7 @@ function xE(e) {
!o && !c ? m = {
tabIndex: r === n.focusedKey ? 0 : -1,
onFocus(e) {
- G(e) === i.current && n.setFocusedKey(r);
+ K(e) === i.current && n.setFocusedKey(r);
}
} : c && (m.onMouseDown = (e) => {
e.preventDefault();
@@ -25790,23 +25791,23 @@ function xE(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) => {
- C.current = e.pointerType, T.current = w, e.pointerType === "keyboard" && (!S || CE(e.key)) && p(e);
+ C.current = e.pointerType, T.current = w, e.pointerType === "keyboard" && (!S || SE(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" && !SE(e.key)) return;
+ if (e.pointerType === "keyboard" && !xE(e.key)) return;
k(e);
} else e.pointerType !== "keyboard" && v && p(e);
}) : (A.onPressStart = (e) => {
- C.current = e.pointerType, T.current = w, E.current = b, v && (e.pointerType === "mouse" && !b || e.pointerType === "keyboard" && (!y || CE(e.key))) && p(e);
+ C.current = e.pointerType, T.current = w, E.current = b, v && (e.pointerType === "mouse" && !b || e.pointerType === "keyboard" && (!y || SE(e.key))) && p(e);
}, A.onPress = (e) => {
- (e.pointerType === "touch" || e.pointerType === "pen" || e.pointerType === "virtual" || e.pointerType === "keyboard" && S && SE(e.key) || e.pointerType === "mouse" && E.current) && (S ? k(e) : v && p(e));
+ (e.pointerType === "touch" || e.pointerType === "pen" || e.pointerType === "virtual" || e.pointerType === "keyboard" && S && xE(e.key) || e.pointerType === "mouse" && E.current) && (S ? k(e) : v && p(e));
});
let j = Aie(n.collection);
- if (m["data-collection"] = j, m["data-key"] = r, A.preventFocusOnPress = o, o && (A = K(A, {
+ if (m["data-collection"] = j, m["data-key"] = r, A.preventFocusOnPress = o, o && (A = q(A, {
onPressStart(e) {
e.pointerType !== "touch" && (n.setFocused(!0), n.setFocusedKey(r));
},
@@ -25820,10 +25821,10 @@ function xE(e) {
"onPress",
"onPressUp",
"onClick"
- ]) O[e] && (A[e] = gx(A[e], O[e]));
- let { pressProps: M, isPressed: N } = RS(A), P = x ? (e) => {
+ ]) O[e] && (A[e] = hx(A[e], O[e]));
+ let { pressProps: M, isPressed: N } = LS(A), P = x ? (e) => {
C.current === "mouse" && (e.stopPropagation(), e.preventDefault(), k(e));
- } : void 0, { longPressProps: ee } = iT({
+ } : void 0, { longPressProps: ee } = rT({
isDisabled: !w,
onLongPress(e) {
e.pointerType === "touch" && (p(e), n.setSelectionBehavior("toggle"));
@@ -25831,8 +25832,8 @@ function xE(e) {
}), F = (e) => {
C.current === "touch" && T.current && e.preventDefault();
}, te = d !== "none" && n.isLink(r) ? (e) => {
- Ib.isOpening || e.preventDefault();
- } : void 0, I = K(m, v || b || o && !c ? M : {}, w ? ee : {}, {
+ Fb.isOpening || e.preventDefault();
+ } : void 0, I = q(m, v || b || o && !c ? M : {}, w ? ee : {}, {
onDoubleClick: P,
onDragStartCapture: F,
onClick: te,
@@ -25844,15 +25845,15 @@ function xE(e) {
if (e != null) return e !== j;
t = t.parentElement;
}
- return fb(e);
+ return db(e);
}, re = I.onPointerDown;
I.onPointerDown = (e) => {
- let t = G(e);
+ let t = K(e);
t && t !== i.current && ne(t) ? e.stopPropagation() : re?.(e);
};
let ie = I.onMouseDown;
return I.onMouseDown = (e) => {
- let t = G(e);
+ let t = K(e);
t && t !== i.current && ne(t) ? e.stopPropagation() : ie?.(e);
}, {
itemProps: I,
@@ -25864,15 +25865,15 @@ function xE(e) {
hasAction: S
};
}
-function SE(e) {
+function xE(e) {
return e === "Enter";
}
-function CE(e) {
+function SE(e) {
return e === " ";
}
//#endregion
//#region node_modules/react-aria/dist/private/gridlist/useGridListItem.mjs
-var wE = {
+var CE = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -25883,17 +25884,17 @@ var wE = {
}
};
function Jie(e, t, n) {
- let { node: r, isVirtualized: i, focusMode: a = "row", allowsArrowNavigation: o } = e, { direction: s } = gS(), { onAction: c, linkBehavior: l, keyboardNavigationBehavior: u, shouldSelectOnPressUp: d } = NT.get(t), f = xx(), p = (0, D.useRef)(null), m = () => {
+ let { node: r, isVirtualized: i, focusMode: a = "row", allowsArrowNavigation: o } = e, { direction: s } = hS(), { onAction: c, linkBehavior: l, keyboardNavigationBehavior: u, shouldSelectOnPressUp: d } = MT.get(t), f = bx(), p = (0, D.useRef)(null), m = () => {
if (n.current !== null) {
if (a === "child") {
- if (rb(n.current) && n.current !== tb(qy(n.current))) return;
- let e = lC(n.current, { tabbable: !0 }).firstChild();
+ if (nb(n.current) && n.current !== eb(Ky(n.current))) return;
+ let e = cC(n.current, { tabbable: !0 }).firstChild();
if (e) {
- hx(e), CC(e, { containingElement: yC(e) });
+ mx(e), SC(e, { containingElement: vC(e) });
return;
}
}
- (p.current != null && r.key !== p.current || !rb(n.current)) && hx(n.current);
+ (p.current != null && r.key !== p.current || !nb(n.current)) && mx(n.current);
}
}, h = {}, g = e.hasChildItems, _ = t.selectionManager.isLink(r.key);
if (r != null && "expandedKeys" in t) {
@@ -25914,75 +25915,75 @@ function Jie(e, t, n) {
"aria-setsize": i
};
}
- let { itemProps: v, ...y } = xE({
+ let { itemProps: v, ...y } = bE({
selectionManager: t.selectionManager,
key: r.key,
ref: n,
isVirtualized: i,
shouldSelectOnPressUp: e.shouldSelectOnPressUp || d,
- onAction: c || r.props?.onAction ? gx(r.props?.onAction, c ? () => c(r.key) : void 0) : void 0,
+ onAction: c || r.props?.onAction ? hx(r.props?.onAction, c ? () => c(r.key) : void 0) : void 0,
focus: m,
linkBehavior: l
}), b = (e) => {
- let i = tb(qy(n.current));
- if (!eb(e.currentTarget, G(e)) || !n.current || !i) return;
- let a = lC(n.current);
- if (a.currentNode = i, !TE(e, t, r, g, s, i, n.current, o)) switch (e.key) {
+ let i = eb(Ky(n.current));
+ if (!$y(e.currentTarget, K(e)) || !n.current || !i) return;
+ let a = cC(n.current);
+ if (a.currentNode = i, !wE(e, t, r, g, s, i, n.current, o)) switch (e.key) {
case "ArrowLeft":
if (u === "arrow") {
let t = s === "rtl" ? a.nextNode() : a.previousNode();
- if (t) e.preventDefault(), e.stopPropagation(), hx(t), CC(t, { containingElement: yC(n.current) });
- else if (e.preventDefault(), e.stopPropagation(), s === "rtl") hx(n.current), CC(n.current, { containingElement: yC(n.current) });
+ if (t) e.preventDefault(), e.stopPropagation(), mx(t), SC(t, { containingElement: vC(n.current) });
+ else if (e.preventDefault(), e.stopPropagation(), s === "rtl") mx(n.current), SC(n.current, { containingElement: vC(n.current) });
else {
a.currentNode = n.current;
- let e = EE(a);
- e && (hx(e), CC(e, { containingElement: yC(n.current) }));
+ let e = TE(a);
+ e && (mx(e), SC(e, { containingElement: vC(n.current) }));
}
}
break;
case "ArrowRight":
if (u === "arrow") {
let t = s === "rtl" ? a.previousNode() : a.nextNode();
- if (t) e.preventDefault(), e.stopPropagation(), hx(t), CC(t, { containingElement: yC(n.current) });
- else if (e.preventDefault(), e.stopPropagation(), s === "ltr") hx(n.current), CC(n.current, { containingElement: yC(n.current) });
+ if (t) e.preventDefault(), e.stopPropagation(), mx(t), SC(t, { containingElement: vC(n.current) });
+ else if (e.preventDefault(), e.stopPropagation(), s === "ltr") mx(n.current), SC(n.current, { containingElement: vC(n.current) });
else {
a.currentNode = n.current;
- let e = EE(a);
- e && (hx(e), CC(e, { containingElement: yC(n.current) }));
+ let e = TE(a);
+ e && (mx(e), SC(e, { containingElement: vC(n.current) }));
}
}
break;
case "ArrowUp":
- case "ArrowDown": !e.altKey && eb(n.current, G(e)) && (e.stopPropagation(), e.preventDefault(), n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent)));
+ case "ArrowDown": !e.altKey && $y(n.current, K(e)) && (e.stopPropagation(), e.preventDefault(), n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent)));
}
}, x = (e) => {
- p.current = r.key, G(e) === n.current ? a === "child" && e.relatedTarget && eb(n.current, e.relatedTarget) || requestAnimationFrame(() => {
- a === "child" && tb(qy(n.current)) === n.current && m();
- }) : rx() || t.selectionManager.setFocusedKey(r.key);
+ p.current = r.key, K(e) === n.current ? a === "child" && e.relatedTarget && $y(n.current, e.relatedTarget) || requestAnimationFrame(() => {
+ a === "child" && eb(Ky(n.current)) === n.current && m();
+ }) : nx() || t.selectionManager.setFocusedKey(r.key);
}, S = (e) => {
- let i = tb(qy(n.current));
- if (eb(e.currentTarget, G(e)) && n.current && i) {
+ let i = eb(Ky(n.current));
+ if ($y(e.currentTarget, K(e)) && n.current && i) {
if (u === "tab") {
- if (G(e) !== n.current && e.key !== "Tab") {
+ if (K(e) !== n.current && e.key !== "Tab") {
e.stopPropagation();
return;
}
- if (TE(e, t, r, g, s, i, n.current, o)) return;
+ if (wE(e, t, r, g, s, i, n.current, o)) return;
}
if (e.key === "Tab" && u === "tab") {
- let t = lC(n.current, { tabbable: !0 });
+ let t = cC(n.current, { tabbable: !0 });
t.currentNode = i, (e.shiftKey ? t.previousNode() : t.nextNode()) && e.stopPropagation();
}
}
- }, C = Lb(r.props), w = K(v, y.hasAction ? C : {}, {
+ }, C = Ib(r.props), w = q(v, y.hasAction ? C : {}, {
role: "row",
onKeyDownCapture: u === "arrow" || o ? b : void 0,
onFocus: x,
"aria-label": r["aria-label"] || r.textValue || void 0,
"aria-selected": t.selectionManager.canSelectItem(r.key) ? t.selectionManager.isSelected(r.key) : void 0,
"aria-disabled": t.selectionManager.isDisabled(r.key) || void 0,
- "aria-labelledby": f && (r["aria-label"] || r.textValue) ? `${PT(t, r.key)} ${f}` : void 0,
- id: PT(t, r.key)
+ "aria-labelledby": f && (r["aria-label"] || r.textValue) ? `${NT(t, r.key)} ${f}` : void 0,
+ id: NT(t, r.key)
});
a === "child" && o && u === "tab" && (w.tabIndex = -1);
let T = w.onKeyDown;
@@ -25997,22 +25998,22 @@ function Jie(e, t, n) {
"aria-colindex": 1
};
return {
- rowProps: { ...K(w, h) },
+ rowProps: { ...q(w, h) },
gridCellProps: E,
descriptionProps: { id: f },
...y
};
}
-function TE(e, t, n, r, i, a, o, s) {
+function wE(e, t, n, r, i, a, o, s) {
if (!("expandedKeys" in t) || !s && a !== o) return !1;
- if (e.key === wE.expand[i] && t.selectionManager.focusedKey === n.key && r && !t.expandedKeys.has(n.key)) return t.toggleKey(n.key), e.stopPropagation(), !0;
- if (e.key === wE.collapse[i] && t.selectionManager.focusedKey === n.key) {
+ if (e.key === CE.expand[i] && t.selectionManager.focusedKey === n.key && r && !t.expandedKeys.has(n.key)) return t.toggleKey(n.key), e.stopPropagation(), !0;
+ if (e.key === CE.collapse[i] && t.selectionManager.focusedKey === n.key) {
if (r && t.expandedKeys.has(n.key)) return t.toggleKey(n.key), e.stopPropagation(), !0;
if (!t.expandedKeys.has(n.key) && n.parentKey && t.collection.getItem(n.parentKey)?.type === "item") return t.selectionManager.setFocusedKey(n.parentKey), e.stopPropagation(), !0;
}
return !1;
}
-function EE(e) {
+function TE(e) {
let t = null, n = null;
do
n = e.lastChild(), n && (t = n);
@@ -26029,11 +26030,11 @@ function Yie(e, t) {
function Xie(e) {
return e && e.__esModule ? e.default : e;
}
-function DE(e, t) {
- let { key: n } = e, r = t.selectionManager, i = bx(), a = !t.selectionManager.canSelectItem(n), o = t.selectionManager.isSelected(n);
+function EE(e, t) {
+ let { key: n } = e, r = t.selectionManager, i = yx(), a = !t.selectionManager.canSelectItem(n), o = t.selectionManager.isSelected(n);
return { checkboxProps: {
id: i,
- "aria-label": SS(Xie(hE), "@react-aria/grid").format("select"),
+ "aria-label": xS(Xie(mE), "@react-aria/grid").format("select"),
isSelected: o,
isDisabled: a,
onChange: () => r.toggleSelection(n)
@@ -26042,30 +26043,30 @@ function DE(e, t) {
//#endregion
//#region node_modules/react-aria/dist/private/gridlist/useGridListSelectionCheckbox.mjs
function Zie(e, t) {
- let { key: n } = e, { checkboxProps: r } = DE(e, t);
+ let { key: n } = e, { checkboxProps: r } = EE(e, t);
return { checkboxProps: {
...r,
- "aria-labelledby": `${r.id} ${PT(t, n)}`
+ "aria-labelledby": `${r.id} ${NT(t, n)}`
} };
}
//#endregion
//#region node_modules/react-aria/dist/private/listbox/useListBox.mjs
function Qie(e, t, n) {
- let r = wS(e, { labelable: !0 }), i = e.selectionBehavior || "toggle", a = e.orientation || "vertical", o = e.linkBehavior || (i === "replace" ? "action" : "override");
+ let r = CS(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 } = bE({
+ let { listProps: s } = yE({
...e,
ref: n,
selectionManager: t.selectionManager,
collection: t.collection,
disabledKeys: t.disabledKeys,
linkBehavior: o
- }), { focusWithinProps: c } = XC({
+ }), { focusWithinProps: c } = YC({
onFocusWithin: e.onFocus,
onBlurWithin: e.onBlur,
onFocusWithinChange: e.onFocusChange
- }), l = bx(e.id);
- _w.set(t, {
+ }), l = yx(e.id);
+ gw.set(t, {
id: l,
shouldUseVirtualFocus: e.shouldUseVirtualFocus,
shouldSelectOnPressUp: e.shouldSelectOnPressUp,
@@ -26075,24 +26076,24 @@ function Qie(e, t, n) {
linkBehavior: o,
UNSTABLE_itemBehavior: e.UNSTABLE_itemBehavior
});
- let { labelProps: u, fieldProps: d } = JC({
+ let { labelProps: u, fieldProps: d } = qC({
...e,
id: l,
labelElementType: "span"
});
return {
labelProps: u,
- listBoxProps: K(r, c, t.selectionManager.selectionMode === "multiple" ? { "aria-multiselectable": "true" } : {}, {
+ listBoxProps: q(r, c, t.selectionManager.selectionMode === "multiple" ? { "aria-multiselectable": "true" } : {}, {
role: "listbox",
"aria-orientation": a,
- ...K(d, s)
+ ...q(d, s)
})
};
}
//#endregion
//#region node_modules/react-aria/dist/private/listbox/useListBoxSection.mjs
function $ie(e) {
- let { heading: t, "aria-label": n } = e, r = bx();
+ let { heading: t, "aria-label": n } = e, r = yx();
return {
itemProps: { role: "presentation" },
headingProps: t ? {
@@ -26112,7 +26113,7 @@ function $ie(e) {
//#endregion
//#region node_modules/react-aria/dist/private/listbox/useOption.mjs
function eae(e, t, n) {
- let { key: r } = e, i = _w.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 = xx(), f = xx(), p = {
+ let { key: r } = e, i = gw.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 = bx(), f = bx(), p = {
role: "option",
"aria-disabled": a || void 0,
"aria-selected": t.selectionManager.selectionMode === "none" ? void 0 : o,
@@ -26122,9 +26123,9 @@ function eae(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"] = vT(t.collection);
+ p["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, p["aria-setsize"] = _T(t.collection);
}
- let h = i?.onAction ? () => i?.onAction?.(r) : void 0, g = Oie(t, r), { itemProps: _, isPressed: v, isFocused: y, hasAction: b, allowsSelection: x } = xE({
+ let h = i?.onAction ? () => i?.onAction?.(r) : void 0, g = Oie(t, r), { itemProps: _, isPressed: v, isFocused: y, hasAction: b, allowsSelection: x } = bE({
selectionManager: t.selectionManager,
key: r,
ref: n,
@@ -26133,28 +26134,28 @@ function eae(e, t, n) {
isVirtualized: u,
shouldUseVirtualFocus: l,
isDisabled: a,
- onAction: h || m?.props?.onAction ? gx(m?.props?.onAction, h) : void 0,
+ onAction: h || m?.props?.onAction ? hx(m?.props?.onAction, h) : void 0,
linkBehavior: i?.linkBehavior,
UNSTABLE_itemBehavior: i?.UNSTABLE_itemBehavior,
id: g
- }), { hoverProps: S } = jT({
+ }), { hoverProps: S } = AT({
isDisabled: a || !c,
onHoverStart() {
- rx() || (t.selectionManager.setFocused(!0), t.selectionManager.setFocusedKey(r));
+ nx() || (t.selectionManager.setFocused(!0), t.selectionManager.setFocusedKey(r));
}
- }), C = wS(m?.props);
+ }), C = CS(m?.props);
delete C.id;
- let w = Rb(m?.props);
+ let w = Lb(m?.props);
return {
optionProps: {
...p,
- ...K(C, _, S, w),
+ ...q(C, _, S, w),
id: g
},
labelProps: { id: d },
descriptionProps: { id: f },
isFocused: y,
- isFocusVisible: y && t.selectionManager.isFocused && rx(),
+ isFocusVisible: y && t.selectionManager.isFocused && nx(),
isSelected: o,
isDisabled: a,
isPressed: v,
@@ -26164,13 +26165,13 @@ function eae(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/menu/utils.mjs
-var OE = /* @__PURE__ */ new WeakMap();
+var DE = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/menu/useMenu.mjs
function tae(e, t, n) {
let { shouldFocusWrap: r = !0, onKeyDown: i, onKeyUp: a, ...o } = e;
!e["aria-label"] && e["aria-labelledby"];
- let s = wS(e, { labelable: !0 }), { listProps: c } = bE({
+ let s = CS(e, { labelable: !0 }), { listProps: c } = yE({
...o,
ref: n,
selectionManager: t.selectionManager,
@@ -26179,11 +26180,11 @@ function tae(e, t, n) {
shouldFocusWrap: r,
linkBehavior: "override"
});
- return OE.set(t, {
+ return DE.set(t, {
onClose: e.onClose,
onAction: e.onAction,
shouldUseVirtualFocus: e.shouldUseVirtualFocus
- }), { menuProps: K(s, {
+ }), { menuProps: q(s, {
onKeyDown: i,
onKeyUp: a
}, {
@@ -26197,14 +26198,14 @@ function tae(e, t, n) {
//#endregion
//#region node_modules/react-aria/dist/private/menu/useMenuItem.mjs
function nae(e, t, n) {
- let { id: r, key: i, closeOnSelect: a, shouldCloseOnSelect: o, isVirtualized: s, "aria-haspopup": c, onPressStart: l, onPressUp: u, onPress: d, onPressChange: f, onPressEnd: p, onClick: m, onHoverStart: h, onHoverChange: g, onHoverEnd: _, onKeyDown: v, onKeyUp: y, onFocus: b, onFocusChange: x, onBlur: S, selectionManager: C = t.selectionManager } = e, w = !!c, T = w && e["aria-expanded"] === "true", E = e.isDisabled ?? C.isDisabled(i), O = e.isSelected ?? C.isSelected(i), k = OE.get(t), A = t.collection.getItem(i), j = e.onClose || k.onClose, M = Pb(), N = () => {
+ let { id: r, key: i, closeOnSelect: a, shouldCloseOnSelect: o, isVirtualized: s, "aria-haspopup": c, onPressStart: l, onPressUp: u, onPress: d, onPressChange: f, onPressEnd: p, onClick: m, onHoverStart: h, onHoverChange: g, onHoverEnd: _, onKeyDown: v, onKeyUp: y, onFocus: b, onFocusChange: x, onBlur: S, selectionManager: C = t.selectionManager } = e, w = !!c, T = w && e["aria-expanded"] === "true", E = e.isDisabled ?? C.isDisabled(i), O = e.isSelected ?? C.isSelected(i), k = DE.get(t), A = t.collection.getItem(i), j = e.onClose || k.onClose, M = Nb(), N = () => {
if (!w && (A?.props?.onAction ? A.props.onAction() : e.onAction && e.onAction(i), k.onAction)) {
let e = k.onAction;
e(i, A?.value);
}
}, P = "menuitem";
w || (C.selectionMode === "single" ? P = "menuitemradio" : C.selectionMode === "multiple" && (P = "menuitemcheckbox"));
- let ee = xx(), F = xx(), te = xx(), I = {
+ let ee = bx(), F = bx(), te = bx(), I = {
id: r,
"aria-disabled": E || void 0,
role: P,
@@ -26221,7 +26222,7 @@ function nae(e, t, n) {
};
if (C.selectionMode !== "none" && !w && (I["aria-checked"] = O), s) {
let e = Number(A?.index);
- I["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, I["aria-setsize"] = vT(t.collection);
+ I["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, I["aria-setsize"] = _T(t.collection);
}
let ne = (0, D.useRef)(!1), re = (e) => {
f?.(e), ne.current = e;
@@ -26231,7 +26232,7 @@ function nae(e, t, n) {
m?.(e), N(), Zne(e, M, A.props.href, A?.props.routerOptions);
let t = ie.current?.pointerType === "keyboard" ? ie.current?.key === "Enter" || C.selectionMode === "none" || C.isLink(i) : C.selectionMode !== "multiple" || C.isLink(i);
t = o ?? a ?? t, j && !w && t && j(), ie.current = null;
- }, { itemProps: se, isFocused: ce } = xE({
+ }, { itemProps: se, isFocused: ce } = bE({
id: r,
selectionManager: C,
key: i,
@@ -26240,36 +26241,36 @@ function nae(e, t, n) {
allowsDifferentPressOrigin: !0,
linkBehavior: "none",
shouldUseVirtualFocus: k.shouldUseVirtualFocus
- }), { pressProps: le, isPressed: ue } = RS({
+ }), { pressProps: le, isPressed: ue } = LS({
onPressStart: l,
onPress: d,
onPressUp: ae,
onPressChange: re,
onPressEnd: p,
isDisabled: E
- }), { hoverProps: de } = jT({
+ }), { hoverProps: de } = AT({
isDisabled: E,
onHoverStart(e) {
- !rx() && !(T && c) && (C.setFocused(!0), C.setFocusedKey(i)), h?.(e);
+ !nx() && !(T && c) && (C.setFocused(!0), C.setFocusedKey(i)), h?.(e);
},
onHoverChange: g,
onHoverEnd: _
- }), { keyboardProps: fe } = Ax({
+ }), { keyboardProps: fe } = kx({
shortcuts: {
" ": (e) => {
ie.current = {
pointerType: "keyboard",
key: " "
- }, G(e).click(), ax("keyboard");
+ }, K(e).click(), ix("keyboard");
},
Enter: (e) => {
ie.current = {
pointerType: "keyboard",
key: "Enter"
};
- let t = G(e);
- if (t.tagName !== "A") t.click(), ax("keyboard");
- else return ax("keyboard"), {
+ let t = K(e);
+ if (t.tagName !== "A") t.click(), ix("keyboard");
+ else return ix("keyboard"), {
shouldPreventDefault: !1,
shouldContinuePropagation: !1
};
@@ -26277,17 +26278,17 @@ function nae(e, t, n) {
},
onKeyDown: v,
onKeyUp: y
- }), { focusableProps: pe } = Px({
+ }), { focusableProps: pe } = Nx({
onBlur: S,
onFocus: b,
onFocusChange: x
- }, n), me = wS(A?.props);
+ }, n), me = CS(A?.props);
delete me.id;
- let he = Rb(A?.props);
+ let he = Lb(A?.props);
return {
menuItemProps: {
...I,
- ...K(me, he, w ? {
+ ...q(me, he, w ? {
onFocus: se.onFocus,
"data-collection": se["data-collection"],
"data-key": se["data-key"]
@@ -26298,7 +26299,7 @@ function nae(e, t, n) {
descriptionProps: { id: F },
keyboardShortcutProps: { id: te },
isFocused: ce,
- isFocusVisible: ce && C.isFocused && rx() && !T,
+ isFocusVisible: ce && C.isFocused && nx() && !T,
isSelected: O,
isPressed: ue,
isDisabled: E
@@ -26307,7 +26308,7 @@ function nae(e, t, n) {
//#endregion
//#region node_modules/react-aria/dist/private/menu/useMenuSection.mjs
function rae(e) {
- let { heading: t, "aria-label": n } = e, r = bx();
+ let { heading: t, "aria-label": n } = e, r = yx();
return {
itemProps: { role: "presentation" },
headingProps: t ? {
@@ -26326,8 +26327,8 @@ function rae(e) {
function iae() {
return window.ResizeObserver !== void 0;
}
-function kE(e) {
- let { ref: t, box: n, onResize: r } = e, i = cS(r);
+function OE(e) {
+ let { ref: t, box: n, onResize: r } = e, i = sS(r);
(0, D.useEffect)(() => {
let e = t?.current;
if (e) {
@@ -26347,189 +26348,189 @@ function kE(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ar-AE.mjs
-var AE = {};
-AE = { dismiss: "تجاهل" };
+var kE = {};
+kE = { dismiss: "تجاهل" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/bg-BG.mjs
-var jE = {};
-jE = { dismiss: "Отхвърляне" };
+var AE = {};
+AE = { dismiss: "Отхвърляне" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/cs-CZ.mjs
-var ME = {};
-ME = { dismiss: "Odstranit" };
+var jE = {};
+jE = { dismiss: "Odstranit" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/da-DK.mjs
-var NE = {};
-NE = { dismiss: "Luk" };
+var ME = {};
+ME = { dismiss: "Luk" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/de-DE.mjs
-var PE = {};
-PE = { dismiss: "Schließen" };
+var NE = {};
+NE = { dismiss: "Schließen" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/el-GR.mjs
-var FE = {};
-FE = { dismiss: "Απόρριψη" };
+var PE = {};
+PE = { dismiss: "Απόρριψη" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/en-US.mjs
-var IE = {};
-IE = { dismiss: "Dismiss" };
+var FE = {};
+FE = { dismiss: "Dismiss" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/es-ES.mjs
-var LE = {};
-LE = { dismiss: "Descartar" };
+var IE = {};
+IE = { dismiss: "Descartar" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/et-EE.mjs
-var RE = {};
-RE = { dismiss: "Lõpeta" };
+var LE = {};
+LE = { dismiss: "Lõpeta" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/fi-FI.mjs
-var zE = {};
-zE = { dismiss: "Hylkää" };
+var RE = {};
+RE = { dismiss: "Hylkää" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/fr-FR.mjs
-var BE = {};
-BE = { dismiss: "Rejeter" };
+var zE = {};
+zE = { dismiss: "Rejeter" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/he-IL.mjs
-var VE = {};
-VE = { dismiss: "התעלם" };
+var BE = {};
+BE = { dismiss: "התעלם" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/hr-HR.mjs
-var HE = {};
-HE = { dismiss: "Odbaci" };
+var VE = {};
+VE = { dismiss: "Odbaci" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/hu-HU.mjs
-var UE = {};
-UE = { dismiss: "Elutasítás" };
+var HE = {};
+HE = { dismiss: "Elutasítás" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/it-IT.mjs
-var WE = {};
-WE = { dismiss: "Ignora" };
+var UE = {};
+UE = { dismiss: "Ignora" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ja-JP.mjs
-var GE = {};
-GE = { dismiss: "閉じる" };
+var WE = {};
+WE = { dismiss: "閉じる" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ko-KR.mjs
-var KE = {};
-KE = { dismiss: "무시" };
+var GE = {};
+GE = { dismiss: "무시" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/lt-LT.mjs
-var qE = {};
-qE = { dismiss: "Atmesti" };
+var KE = {};
+KE = { dismiss: "Atmesti" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/lv-LV.mjs
-var JE = {};
-JE = { dismiss: "Nerādīt" };
+var qE = {};
+qE = { dismiss: "Nerādīt" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/nb-NO.mjs
-var YE = {};
-YE = { dismiss: "Lukk" };
+var JE = {};
+JE = { dismiss: "Lukk" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/nl-NL.mjs
-var XE = {};
-XE = { dismiss: "Negeren" };
+var YE = {};
+YE = { dismiss: "Negeren" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/pl-PL.mjs
-var ZE = {};
-ZE = { dismiss: "Zignoruj" };
+var XE = {};
+XE = { dismiss: "Zignoruj" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/pt-BR.mjs
-var QE = {};
-QE = { dismiss: "Descartar" };
+var ZE = {};
+ZE = { dismiss: "Descartar" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/pt-PT.mjs
-var $E = {};
-$E = { dismiss: "Dispensar" };
+var QE = {};
+QE = { dismiss: "Dispensar" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ro-RO.mjs
-var eD = {};
-eD = { dismiss: "Revocare" };
+var $E = {};
+$E = { dismiss: "Revocare" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ru-RU.mjs
-var tD = {};
-tD = { dismiss: "Пропустить" };
+var eD = {};
+eD = { dismiss: "Пропустить" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sk-SK.mjs
-var nD = {};
-nD = { dismiss: "Zrušiť" };
+var tD = {};
+tD = { dismiss: "Zrušiť" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sl-SI.mjs
-var rD = {};
-rD = { dismiss: "Opusti" };
+var nD = {};
+nD = { dismiss: "Opusti" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sr-SP.mjs
-var iD = {};
-iD = { dismiss: "Odbaci" };
+var rD = {};
+rD = { dismiss: "Odbaci" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sv-SE.mjs
-var aD = {};
-aD = { dismiss: "Avvisa" };
+var iD = {};
+iD = { dismiss: "Avvisa" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/tr-TR.mjs
-var oD = {};
-oD = { dismiss: "Kapat" };
+var aD = {};
+aD = { dismiss: "Kapat" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/uk-UA.mjs
-var sD = {};
-sD = { dismiss: "Скасувати" };
+var oD = {};
+oD = { dismiss: "Скасувати" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/zh-CN.mjs
-var cD = {};
-cD = { dismiss: "取消" };
+var sD = {};
+sD = { dismiss: "取消" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/zh-TW.mjs
-var lD = {};
-lD = { dismiss: "關閉" };
+var cD = {};
+cD = { dismiss: "關閉" };
//#endregion
//#region node_modules/react-aria/dist/private/overlays/intlStrings.mjs
-var uD = {};
-uD = {
- "ar-AE": AE,
- "bg-BG": jE,
- "cs-CZ": ME,
- "da-DK": NE,
- "de-DE": PE,
- "el-GR": FE,
- "en-US": IE,
- "es-ES": LE,
- "et-EE": RE,
- "fi-FI": zE,
- "fr-FR": BE,
- "he-IL": VE,
- "hr-HR": HE,
- "hu-HU": UE,
- "it-IT": WE,
- "ja-JP": GE,
- "ko-KR": KE,
- "lt-LT": qE,
- "lv-LV": JE,
- "nb-NO": YE,
- "nl-NL": XE,
- "pl-PL": ZE,
- "pt-BR": QE,
- "pt-PT": $E,
- "ro-RO": eD,
- "ru-RU": tD,
- "sk-SK": nD,
- "sl-SI": rD,
- "sr-SP": iD,
- "sv-SE": aD,
- "tr-TR": oD,
- "uk-UA": sD,
- "zh-CN": cD,
- "zh-TW": lD
+var lD = {};
+lD = {
+ "ar-AE": kE,
+ "bg-BG": AE,
+ "cs-CZ": jE,
+ "da-DK": ME,
+ "de-DE": NE,
+ "el-GR": PE,
+ "en-US": FE,
+ "es-ES": IE,
+ "et-EE": LE,
+ "fi-FI": RE,
+ "fr-FR": zE,
+ "he-IL": BE,
+ "hr-HR": VE,
+ "hu-HU": HE,
+ "it-IT": UE,
+ "ja-JP": WE,
+ "ko-KR": GE,
+ "lt-LT": KE,
+ "lv-LV": qE,
+ "nb-NO": JE,
+ "nl-NL": YE,
+ "pl-PL": XE,
+ "pt-BR": ZE,
+ "pt-PT": QE,
+ "ro-RO": $E,
+ "ru-RU": eD,
+ "sk-SK": tD,
+ "sl-SI": nD,
+ "sr-SP": rD,
+ "sv-SE": iD,
+ "tr-TR": aD,
+ "uk-UA": oD,
+ "zh-CN": sD,
+ "zh-TW": cD
};
//#endregion
//#region node_modules/react-aria/dist/private/overlays/DismissButton.mjs
function aae(e) {
return e && e.__esModule ? e.default : e;
}
-function dD(e) {
- let { onDismiss: t, ...n } = e, r = uS(n, SS(aae(uD), "@react-aria/overlays").format("dismiss")), i = () => {
+function uD(e) {
+ let { onDismiss: t, ...n } = e, r = lS(n, xS(aae(lD), "@react-aria/overlays").format("dismiss")), i = () => {
t && t();
};
- return /*#__PURE__*/ D.createElement(lw, null, /*#__PURE__*/ D.createElement("button", {
+ return /*#__PURE__*/ D.createElement(cw, null, /*#__PURE__*/ D.createElement("button", {
...r,
tabIndex: -1,
onClick: i,
@@ -26541,23 +26542,23 @@ function dD(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useOverlay.mjs
-var fD = [];
-function pD(e, t) {
+var dD = [];
+function fD(e, t) {
let { onClose: n, shouldCloseOnBlur: r, isOpen: i, isDismissable: a = !1, isKeyboardDismissDisabled: o = !1, shouldCloseOnInteractOutside: s } = e, c = (0, D.useRef)(void 0);
(0, D.useEffect)(() => {
- if (i && !fD.includes(t)) return fD.push(t), () => {
- let e = fD.indexOf(t);
- e >= 0 && fD.splice(e, 1);
+ if (i && !dD.includes(t)) return dD.push(t), () => {
+ let e = dD.indexOf(t);
+ e >= 0 && dD.splice(e, 1);
};
}, [i, t]);
let l = () => {
- fD[fD.length - 1] === t && n && n();
+ dD[dD.length - 1] === t && n && n();
}, u = (e) => {
- let n = fD[fD.length - 1];
- c.current = n, (!s || s(G(e))) && n === t && e.stopPropagation();
+ let n = dD[dD.length - 1];
+ c.current = n, (!s || s(K(e))) && n === t && e.stopPropagation();
}, d = (e) => {
- (!s || s(G(e))) && (fD[fD.length - 1] === t && e.stopPropagation(), c.current === t && l()), c.current = void 0;
- }, { keyboardProps: f } = Ax({ shortcuts: { Escape: () => {
+ (!s || s(K(e))) && (dD[dD.length - 1] === t && e.stopPropagation(), c.current === t && l()), c.current = void 0;
+ }, { keyboardProps: f } = kx({ shortcuts: { Escape: () => {
if (!o) l();
else return !1;
} } });
@@ -26566,7 +26567,7 @@ function pD(e, t) {
onInteractOutside: a && i ? d : void 0,
onInteractOutsideStart: u
});
- let { focusWithinProps: p } = XC({
+ let { focusWithinProps: p } = YC({
isDisabled: !r,
onBlurWithin: (e) => {
e.relatedTarget && !vie(e.relatedTarget) && (!s || s(e.relatedTarget)) && n?.();
@@ -26582,88 +26583,88 @@ function pD(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/runAfterKeyboard.mjs
-var oae = 200, sae = 50, cae = 600, mD = /* @__PURE__ */ new WeakMap(), hD = /* @__PURE__ */ new Set(), gD = /* @__PURE__ */ new Set();
+var oae = 200, sae = 50, cae = 600, pD = /* @__PURE__ */ new WeakMap(), mD = /* @__PURE__ */ new Set(), hD = /* @__PURE__ */ new Set();
function lae(e, t) {
- let n = sS();
- if (e !== n || t.aborted) for (let e of gD) e(n), gD.delete(e);
- if (!e && n && Ob() && !t.aborted) window.clearInterval(mD.get(window)), mD.set(window, _D(oae));
+ let n = oS();
+ if (e !== n || t.aborted) for (let e of hD) e(n), hD.delete(e);
+ if (!e && n && Db() && !t.aborted) window.clearInterval(pD.get(window)), pD.set(window, gD(oae));
else {
- if (e !== n || t.aborted) for (let e of hD) e(n), hD.delete(e);
- (gD.size + hD.size <= 0 || t.aborted) && (window.clearInterval(mD.get(window)), mD.delete(window));
+ if (e !== n || t.aborted) for (let e of mD) e(n), mD.delete(e);
+ (hD.size + mD.size <= 0 || t.aborted) && (window.clearInterval(pD.get(window)), pD.delete(window));
}
}
-function _D(e = cae) {
- return window.setInterval(lae, sae, sS(), AbortSignal.timeout(e));
+function gD(e = cae) {
+ return window.setInterval(lae, sae, oS(), AbortSignal.timeout(e));
}
-function vD(e) {
- if (!iS()) return e(!1), () => {};
+function _D(e) {
+ if (!rS()) return e(!1), () => {};
let t = window.requestAnimationFrame(() => {
t = window.requestAnimationFrame(() => {
- let t = aS(document.hasFocus() ? tb() : null);
- if (sS() === t || sS() && !t) return e(t);
- gD.add(e), mD.has(window) || mD.set(window, _D());
+ let t = iS(document.hasFocus() ? eb() : null);
+ if (oS() === t || oS() && !t) return e(t);
+ hD.add(e), pD.has(window) || pD.set(window, gD());
});
});
return () => {
- window.cancelAnimationFrame(t), gD.delete(e);
+ window.cancelAnimationFrame(t), hD.delete(e);
};
}
function uae(e) {
- if (!iS()) return e(!1), () => {};
+ if (!rS()) return e(!1), () => {};
let t = window.requestAnimationFrame(() => {
t = window.requestAnimationFrame(() => {
- let t = aS(document.hasFocus() ? tb() : null);
- if (sS() === t) return e(t);
- hD.add(e), mD.has(window) || mD.set(window, _D());
+ let t = iS(document.hasFocus() ? eb() : null);
+ if (oS() === t) return e(t);
+ mD.add(e), pD.has(window) || pD.set(window, gD());
});
});
return () => {
- window.cancelAnimationFrame(t), hD.delete(e);
+ window.cancelAnimationFrame(t), mD.delete(e);
};
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/usePreventScroll.mjs
-var yD = typeof document < "u" && window.visualViewport, bD = 0, xD;
-function SD(e = {}) {
+var vD = typeof document < "u" && window.visualViewport, yD = 0, bD;
+function xD(e = {}) {
let { isDisabled: t, UNSTABLE_overrideFocus: n } = e;
- mb(() => {
- if (!t) return bD++, bD === 1 && (xD = Eb() && Ob() ? fae() : dae(n)), () => {
- bD--, bD === 0 && xD();
+ pb(() => {
+ if (!t) return yD++, yD === 1 && (bD = Tb() && Db() ? fae() : dae(n)), () => {
+ yD--, yD === 0 && bD();
};
}, [t, n]);
}
function dae(e) {
let t = window.innerWidth - document.documentElement.clientWidth;
- return gx(t > 0 && ("scrollbarGutter" in document.documentElement.style ? Qy(document.documentElement, "scrollbar-gutter", "stable") : Qy(document.documentElement, "padding-right", `${t}px`)), Qy(document.documentElement, "overflow", "hidden"), e && wD(), e && iS() && CD());
+ return hx(t > 0 && ("scrollbarGutter" in document.documentElement.style ? Zy(document.documentElement, "scrollbar-gutter", "stable") : Zy(document.documentElement, "padding-right", `${t}px`)), Zy(document.documentElement, "overflow", "hidden"), e && CD(), e && rS() && SD());
}
function fae() {
- let e = Qy(document.documentElement, "overflow", "hidden"), t, n = !1, r = (e) => {
- let r = G(e);
- t = vC(r, !0) ? r : yC(r, !0), n = !1;
+ let e = Zy(document.documentElement, "overflow", "hidden"), t, n = !1, r = (e) => {
+ let r = K(e);
+ t = _C(r, !0) ? r : vC(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 = jS();
+ }, i = document.createElement("style"), a = AS();
a && (i.nonce = a), i.textContent = "@layer {\n * {\n overscroll-behavior: contain;\n }\n}", document.head.prepend(i);
let o = (e) => {
e.touches.length === 2 || n || (!t || t === document.documentElement || t === document.body || t.scrollHeight === t.clientHeight && t.scrollWidth === t.clientWidth) && e.preventDefault();
- }, s = wD(), c = gx(Zy(document, "touchstart", r, {
+ }, s = CD(), c = hx(Xy(document, "touchstart", r, {
passive: !1,
capture: !0
- }), Zy(document, "touchmove", o, {
+ }), Xy(document, "touchmove", o, {
passive: !1,
capture: !0
- }), CD());
+ }), SD());
return () => {
e(), c(), i.remove(), s();
};
}
-function CD() {
- return Zy(document, "blur", (e) => {
- let t = G(e), n = e.relatedTarget;
- n && aS(n) ? n.focus() : n || (t.parentElement?.closest("[tabindex]"))?.focus({ preventScroll: !0 });
+function SD() {
+ return Xy(document, "blur", (e) => {
+ let t = K(e), n = e.relatedTarget;
+ n && iS(n) ? n.focus() : n || (t.parentElement?.closest("[tabindex]"))?.focus({ preventScroll: !0 });
}, !0);
}
-function wD() {
+function CD() {
let e = HTMLElement.prototype.focus;
return Reflect.defineProperty(HTMLElement.prototype, "focus", {
configurable: !0,
@@ -26674,9 +26675,9 @@ function wD() {
preventScroll: !0
}), !t || !t.preventScroll) {
let e = () => {
- tb() === this && pae(this);
+ eb() === this && pae(this);
};
- vD((t) => t ? e() : uae(() => e()));
+ _D((t) => t ? e() : uae(() => e()));
}
}
}), () => {
@@ -26690,12 +26691,12 @@ function wD() {
function pae(e) {
let t = document.scrollingElement || document.documentElement, n = e;
for (; n && n !== t && n.isConnected;) {
- let e = yC(n);
+ let e = vC(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;
- yD && (n = Math.min(n, yD.offsetTop + yD.height));
+ vD && (n = Math.min(n, vD.offsetTop + vD.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)),
@@ -26709,35 +26710,35 @@ function pae(e) {
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useModalOverlay.mjs
function mae(e, t, n) {
- let { overlayProps: r, underlayProps: i } = pD({
+ let { overlayProps: r, underlayProps: i } = fD({
...e,
isOpen: t.isOpen,
onClose: t.close
}, n);
- SD({
+ xD({
isDisabled: !t.isOpen,
UNSTABLE_overrideFocus: e.UNSTABLE_overrideFocus
- }), ET();
+ }), TT();
let { isEntering: a } = e;
return (0, D.useEffect)(() => {
- if (t.isOpen && n.current) return a ? gw(n.current) : hw([n.current], { shouldUseInert: !0 });
+ if (t.isOpen && n.current) return a ? hw(n.current) : mw([n.current], { shouldUseInert: !0 });
}, [
t.isOpen,
a,
n
]), {
- modalProps: K(r),
+ modalProps: q(r),
underlayProps: i
};
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/calculatePosition.mjs
-var TD = {
+var wD = {
top: "top",
bottom: "top",
left: "left",
right: "left"
-}, ED = {
+}, TD = {
top: "bottom",
bottom: "top",
left: "right",
@@ -26745,20 +26746,20 @@ var TD = {
}, hae = {
top: "left",
left: "top"
-}, DD = {
+}, ED = {
top: "height",
left: "width"
-}, OD = {
+}, DD = {
width: "totalWidth",
height: "totalHeight"
-}, kD = {}, gae = () => typeof document < "u" ? window.visualViewport : null;
-function AD(e, t) {
+}, OD = {}, gae = () => typeof document < "u" ? window.visualViewport : null;
+function kD(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} = ID(e, !1)), c.top = e.scrollTop, c.left = e.scrollLeft, i = n, a = r;
- return Ob() && (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} = FD(e, !1)), c.top = e.scrollTop, c.left = e.scrollLeft, i = n, a = r;
+ return Db() && (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,
@@ -26776,8 +26777,8 @@ function _ae(e) {
height: e.scrollHeight
};
}
-function jD(e, t, n, r, i, a, o) {
- let s = i.scroll[e] ?? 0, c = r[DD[e]], l = o[e] + r.scroll[TD[e]] + a, u = o[e] + r.scroll[TD[e]] + c - a, d = t - s + r.scroll[TD[e]] + o[e] - r[TD[e]], f = t - s + n + r.scroll[TD[e]] + o[e] - r[TD[e]];
+function AD(e, t, n, r, i, a, o) {
+ let s = i.scroll[e] ?? 0, c = r[ED[e]], l = o[e] + r.scroll[wD[e]] + a, u = o[e] + r.scroll[wD[e]] + c - a, d = t - s + r.scroll[wD[e]] + o[e] - r[wD[e]], f = t - s + n + r.scroll[wD[e]] + o[e] - r[wD[e]];
return d < l ? l - d : f > u ? Math.max(u - f, l - d) : 0;
}
function vae(e) {
@@ -26789,55 +26790,55 @@ function vae(e) {
right: parseInt(t.marginRight, 10) || 0
};
}
-function MD(e) {
- if (kD[e]) return kD[e];
- let [t, n] = e.split(" "), r = TD[t] || "right", i = hae[r];
- TD[n] || (n = "center");
- let a = DD[r], o = DD[i];
- return kD[e] = {
+function jD(e) {
+ if (OD[e]) return OD[e];
+ let [t, n] = e.split(" "), r = wD[t] || "right", i = hae[r];
+ wD[n] || (n = "center");
+ let a = ED[r], o = ED[i];
+ return OD[e] = {
placement: t,
crossPlacement: n,
axis: r,
crossAxis: i,
size: a,
crossSize: o
- }, kD[e];
+ }, OD[e];
}
-function ND(e, t, n, r, i, a, o, s, c, l, u) {
+function MD(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] = tw(_[m], v, y), d === p) {
- let t = s ? u[h] : u[OD[h]];
- _[ED[p]] = Math.floor(t - e[p] + i);
+ if (_[m] = ew(_[m], v, y), d === p) {
+ let t = s ? u[h] : u[DD[h]];
+ _[TD[p]] = Math.floor(t - e[p] + i);
} else _[p] = Math.floor(e[p] + e[h] + i);
return _;
}
function yae(e, t, n, r, i, a, o, s, c, l, u) {
- let d = (e.top == null ? c[OD.height] - (e.bottom ?? 0) - o : e.top) - (c.scroll.top ?? 0), f = l ? n.top : 0, p = {
+ let d = (e.top == null ? c[DD.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 PD(e, t, n, r, i, a, o, s) {
+function ND(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[ED[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[ED[l]] - i);
+ return c === l ? Math.max(0, n[l] - (o.scroll[l] ?? 0) - (e[l] + (s ? t[l] : 0)) - (r[l] ?? 0) - r[TD[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[TD[l]] - i);
}
function bae(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
- let v = MD(e), { size: y, crossAxis: b, crossSize: x, placement: S, crossPlacement: C } = v, w = ND(t, s, n, v, u, d, l, f, m, h, c), T = u, E = PD(s, l, t, i, a + u, v, c, g);
+ let v = jD(e), { size: y, crossAxis: b, crossSize: x, placement: S, crossPlacement: C } = v, w = MD(t, s, n, v, u, d, l, f, m, h, c), T = u, E = ND(s, l, t, i, a + u, v, c, g);
if (o && n[y] > E) {
- let e = MD(`${ED[S]} ${C}`), r = ND(t, s, n, e, u, d, l, f, m, h, c);
- PD(s, l, t, i, a + u, e, c, g) > E && (v = e, w = r, T = u);
+ let e = jD(`${TD[S]} ${C}`), r = MD(t, s, n, e, u, d, l, f, m, h, c);
+ ND(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 = jD(b, w[b], n[x], s, c, a, l);
+ let O = AD(b, w[b], n[x], s, c, a, l);
w[b] += O;
let k = yae(w, s, l, f, i, a, n.height, D, c, g, _);
- p && p < k && (k = p), n.height = Math.min(n.height, k), w = ND(t, s, n, v, T, d, l, f, m, h, c), O = jD(b, w[b], n[x], s, c, a, l), w[b] += O;
- let A = {}, j = t[b] - w[b] - i[TD[b]], M = j + .5 * t[x], N = m / 2 + h, P = TD[b] === "left" ? (i.left ?? 0) + (i.right ?? 0) : (i.top ?? 0) + (i.bottom ?? 0), ee = n[x] - P - m / 2 - h;
- A[b] = tw(tw(M, t[b] + m / 2 - (w[b] + i[TD[b]]), t[b] + t[x] - m / 2 - (w[b] + i[TD[b]])), N, ee), {placement: S, crossPlacement: C} = v, m ? j = A[b] : C === "right" ? j += t[x] : C === "center" && (j += t[x] / 2);
+ p && p < k && (k = p), n.height = Math.min(n.height, k), w = MD(t, s, n, v, T, d, l, f, m, h, c), O = AD(b, w[b], n[x], s, c, a, l), w[b] += O;
+ let A = {}, j = t[b] - w[b] - i[wD[b]], M = j + .5 * t[x], N = m / 2 + h, P = wD[b] === "left" ? (i.left ?? 0) + (i.right ?? 0) : (i.top ?? 0) + (i.bottom ?? 0), ee = n[x] - P - m / 2 - h;
+ A[b] = ew(ew(M, t[b] + m / 2 - (w[b] + i[wD[b]]), t[b] + t[x] - m / 2 - (w[b] + i[wD[b]])), N, ee), {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
@@ -26852,16 +26853,16 @@ function bae(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
};
}
function xae(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 = gae(), h = r instanceof HTMLElement ? Sae(r) : document.documentElement, g = h === document.documentElement, _ = window.getComputedStyle(h).position, v = !!_ && _ !== "static", y = g ? ID(n, !1, p) : LD(n, h, !1, p);
+ 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 = gae(), h = r instanceof HTMLElement ? Sae(r) : document.documentElement, g = h === document.documentElement, _ = window.getComputedStyle(h).position, v = !!_ && _ !== "static", y = g ? FD(n, !1, p) : ID(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 = ID(r, !0), x = vae(r);
+ let b = FD(r, !0), x = vae(r);
b.width += (x.left ?? 0) + (x.right ?? 0), b.height += (x.top ?? 0) + (x.bottom ?? 0);
- let S = _ae(i), C = AD(s, m), w = AD(h, m), T;
+ let S = _ae(i), C = kD(s, m), w = kD(h, m), T;
if ((s.tagName === "BODY" || s.tagName === "HTML") && !g) {
- let e = FD(h, !1);
+ let e = PD(h, !1);
T = {
top: -(e.top - C.top),
left: -(e.left - C.left),
@@ -26873,11 +26874,11 @@ function xae(e) {
left: 0,
width: 0,
height: 0
- } : LD(s, h, !1);
- let E = eb(s, h);
+ } : ID(s, h, !1);
+ let E = $y(s, h);
return bae(t, y, b, S, x, a, o, C, w, T, c, l, v, u, d, f, E, m);
}
-function FD(e, t) {
+function PD(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,
@@ -26886,8 +26887,8 @@ function FD(e, t) {
height: a
};
}
-function ID(e, t, n) {
- let { top: r, left: i, width: a, height: o } = n || FD(e, t), { scrollTop: s, scrollLeft: c, clientTop: l, clientLeft: u } = document.documentElement;
+function FD(e, t, n) {
+ let { top: r, left: i, width: a, height: o } = n || PD(e, t), { scrollTop: s, scrollLeft: c, clientTop: l, clientLeft: u } = document.documentElement;
return {
top: r + s - l,
left: i + c - u,
@@ -26895,30 +26896,30 @@ function ID(e, t, n) {
height: o
};
}
-function LD(e, t, n, r) {
+function ID(e, t, n, r) {
let i = window.getComputedStyle(e), a;
- if (i.position === "fixed") a = r || FD(e, n);
+ if (i.position === "fixed") a = r || PD(e, n);
else {
- a = ID(e, n, r);
- let i = ID(t, n), o = window.getComputedStyle(t);
+ a = FD(e, n, r);
+ let i = FD(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 Sae(e) {
let t = e.offsetParent;
- if (t && t === document.body && window.getComputedStyle(t).position === "static" && !RD(t) && (t = document.documentElement), t == null) for (t = e.parentElement; t && !RD(t);) t = t.parentElement;
+ if (t && t === document.body && window.getComputedStyle(t).position === "static" && !LD(t) && (t = document.documentElement), t == null) for (t = e.parentElement; t && !LD(t);) t = t.parentElement;
return t || document.documentElement;
}
-function RD(e) {
+function LD(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 zD = typeof document < "u" ? window.visualViewport : null;
+var RD = typeof document < "u" ? window.visualViewport : null;
function Cae(e) {
- let { direction: t } = gS(), { 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, D.useState)(null), x = [
+ let { direction: t } = hS(), { 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, D.useState)(null), x = [
p,
s,
i.current,
@@ -26935,15 +26936,15 @@ function Cae(e) {
g,
_,
n
- ], S = (0, D.useRef)(zD?.scale);
+ ], S = (0, D.useRef)(RD?.scale);
(0, D.useEffect)(() => {
- m && (S.current = zD?.scale);
+ m && (S.current = RD?.scale);
}, [m]);
let C = (0, D.useCallback)(() => {
- if (p === !1 || !m || !i.current || !r.current || !u || zD?.scale !== S.current) return;
+ if (p === !1 || !m || !i.current || !r.current || !u || RD?.scale !== S.current) return;
let e = null;
- if (o.current && rb(o.current)) {
- let t = tb()?.getBoundingClientRect(), n = o.current.getBoundingClientRect();
+ if (o.current && nb(o.current)) {
+ let t = eb()?.getBoundingClientRect(), n = o.current.getBoundingClientRect();
e = {
type: "top",
offset: (t?.top ?? 0) - n.top
@@ -26962,28 +26963,28 @@ function Cae(e) {
offset: d,
crossOffset: f,
maxHeight: g,
- arrowSize: n ?? (a?.current ? FD(a.current, !0).width : 0),
+ arrowSize: n ?? (a?.current ? PD(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 = tb();
+ let x = eb();
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);
- mb(C, x), wae(C), kE({
+ pb(C, x), wae(C), OE({
ref: i,
onResize: C
- }), kE({
+ }), OE({
ref: r,
onResize: C
});
let w = (0, D.useRef)(!1);
- mb(() => {
+ pb(() => {
let e, t = () => {
w.current = !0, clearTimeout(e), e = setTimeout(() => {
w.current = !1;
@@ -26991,10 +26992,10 @@ function Cae(e) {
}, n = () => {
w.current && t();
};
- zD?.addEventListener("resize", t), zD?.addEventListener("scroll", n);
- let r = Zy(nb(window), "scroll", n);
+ RD?.addEventListener("resize", t), RD?.addEventListener("scroll", n);
+ let r = Xy(tb(window), "scroll", n);
return () => {
- zD?.removeEventListener("resize", t), zD?.removeEventListener("scroll", n), r();
+ RD?.removeEventListener("resize", t), RD?.removeEventListener("scroll", n), r();
};
}, [C]);
let T = (0, D.useCallback)(() => {
@@ -27027,7 +27028,7 @@ function Cae(e) {
};
}
function wae(e) {
- mb(() => (window.addEventListener("resize", e, !1), () => {
+ pb(() => (window.addEventListener("resize", e, !1), () => {
window.removeEventListener("resize", e, !1);
}), [e]);
}
@@ -27037,7 +27038,7 @@ function Tae(e, t) {
//#endregion
//#region node_modules/react-aria/dist/private/overlays/usePopover.mjs
function Eae(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 } = pD({
+ let { triggerRef: n, popoverRef: r, groupRef: i, isNonModal: a, isKeyboardDismissDisabled: o, shouldCloseOnInteractOutside: s, ...c } = e, l = c.trigger === "SubmenuTrigger", { overlayProps: u, underlayProps: d } = fD({
isOpen: t.isOpen,
onClose: t.close,
shouldCloseOnBlur: !0,
@@ -27052,17 +27053,17 @@ function Eae(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)
});
- SD({ isDisabled: a || !t.isOpen }), (0, D.useEffect)(() => {
- if (t.isOpen && r.current) return a ? gw(i?.current ?? r.current) : hw([i?.current ?? r.current], { shouldUseInert: !0 });
+ xD({ isDisabled: a || !t.isOpen }), (0, D.useEffect)(() => {
+ if (t.isOpen && r.current) return a ? hw(i?.current ?? r.current) : mw([i?.current ?? r.current], { shouldUseInert: !0 });
}, [
a,
t.isOpen,
r,
i
]);
- let { focusWithinProps: g } = XC(e);
+ let { focusWithinProps: g } = YC(e);
return {
- popoverProps: K(u, f, g),
+ popoverProps: q(u, f, g),
arrowProps: p,
underlayProps: d,
placement: m,
@@ -27071,13 +27072,13 @@ function Eae(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/radio/utils.mjs
-var BD = /* @__PURE__ */ new WeakMap();
+var zD = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/radio/useRadio.mjs
function Dae(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: _ } = RS({
+ }, { pressProps: g, isPressed: _ } = LS({
onPressStart: s,
onPressEnd: c,
onPressChange: l,
@@ -27085,7 +27086,7 @@ function Dae(e, t, n) {
onPressUp: d,
onClick: f,
isDisabled: p
- }), { pressProps: v, isPressed: y } = RS({
+ }), { pressProps: v, isPressed: y } = LS({
onPressStart: s,
onPressEnd: c,
onPressChange: l,
@@ -27095,17 +27096,17 @@ function Dae(e, t, n) {
onPress(e) {
u?.(e), t.setSelectedValue(r), n.current?.focus();
}
- }), { focusableProps: b } = Px(K(e, { onFocus: () => t.setLastFocusedValue(r) }), n), x = K(g, b), S = wS(e, { labelable: !0 }), C = -1;
+ }), { focusableProps: b } = Nx(q(e, { onFocus: () => t.setLastFocusedValue(r) }), n), x = q(g, b), S = CS(e, { labelable: !0 }), C = -1;
t.selectedValue == null ? (t.lastFocusedValue === r || t.lastFocusedValue == null) && (C = 0) : t.selectedValue === r && (C = 0), p && (C = void 0);
- let { name: w, form: T, descriptionId: E, errorMessageId: O, validationBehavior: k } = BD.get(t);
- DC(n, t.defaultSelectedValue, t.setSelectedValue), OC({ validationBehavior: k }, t, n);
- let A = NC();
+ let { name: w, form: T, descriptionId: E, errorMessageId: O, validationBehavior: k } = zD.get(t);
+ EC(n, t.defaultSelectedValue, t.setSelectedValue), DC({ validationBehavior: k }, t, n);
+ let A = MC();
return {
- labelProps: K(v, (0, D.useMemo)(() => ({
+ labelProps: q(v, (0, D.useMemo)(() => ({
onClick: (e) => e.preventDefault(),
onMouseDown: (e) => e.preventDefault()
}), [])),
- inputProps: K(S, {
+ inputProps: q(S, {
...x,
type: "radio",
name: w,
@@ -27132,12 +27133,12 @@ function Dae(e, t, n) {
//#endregion
//#region node_modules/react-aria/dist/private/radio/useRadioGroup.mjs
function Oae(e, t) {
- let { name: n, form: r, isReadOnly: i, isRequired: a, isDisabled: o, orientation: s = "vertical", validationBehavior: c = "aria" } = e, { direction: l } = gS(), { isInvalid: u, validationErrors: d, validationDetails: f } = t.displayValidation, { labelProps: p, fieldProps: m, descriptionProps: h, errorMessageProps: g } = YC({
+ let { name: n, form: r, isReadOnly: i, isRequired: a, isDisabled: o, orientation: s = "vertical", validationBehavior: c = "aria" } = e, { direction: l } = hS(), { isInvalid: u, validationErrors: d, validationDetails: f } = t.displayValidation, { labelProps: p, fieldProps: m, descriptionProps: h, errorMessageProps: g } = JC({
...e,
labelElementType: "span",
isInvalid: t.isInvalid,
errorMessage: e.errorMessage || d
- }), _ = wS(e, { labelable: !0 }), { focusWithinProps: v } = XC({
+ }), _ = CS(e, { labelable: !0 }), { focusWithinProps: v } = YC({
onBlurWithin(n) {
e.onBlur?.(n), t.selectedValue || t.setLastFocusedValue(null);
},
@@ -27145,13 +27146,13 @@ function Oae(e, t) {
onFocusWithinChange: e.onFocusChange
});
function y(e, n) {
- let r = lC(n.currentTarget, {
- from: G(n),
- accept: (e) => e instanceof Jy(e).HTMLInputElement && e.type === "radio"
+ let r = cC(n.currentTarget, {
+ from: K(n),
+ accept: (e) => e instanceof qy(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 } = Ax({
+ let { keyboardProps: b } = kx({
shortcuts: {
ArrowRight: (e) => y(l === "rtl" && s !== "vertical" ? "prev" : "next", e),
ArrowLeft: (e) => y(l === "rtl" && s !== "vertical" ? "next" : "prev", e),
@@ -27159,15 +27160,15 @@ function Oae(e, t) {
ArrowUp: (e) => y("prev", e)
},
allowRepeats: !0
- }), x = bx(n);
- return BD.set(t, {
+ }), x = yx(n);
+ return zD.set(t, {
name: x,
form: r,
descriptionId: h.id,
errorMessageId: g.id,
validationBehavior: c
}), {
- radioGroupProps: K(_, {
+ radioGroupProps: q(_, {
role: "radiogroup",
...b,
"aria-invalid": t.isInvalid || void 0,
@@ -27189,21 +27190,21 @@ function Oae(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/select/useSelect.mjs
-var VD = /* @__PURE__ */ new WeakMap();
+var BD = /* @__PURE__ */ new WeakMap();
function kae(e, t, n) {
- let { keyboardDelegate: r, isDisabled: i, isRequired: a, name: o, form: s, validationBehavior: c = "aria" } = e, l = bT({
+ let { keyboardDelegate: r, isDisabled: i, isRequired: a, name: o, form: s, validationBehavior: c = "aria" } = e, l = yT({
usage: "search",
sensitivity: "base"
- }), u = (0, D.useMemo)(() => r || new Sw(t.collection, t.disabledKeys, n, l), [
+ }), u = (0, D.useMemo)(() => r || new xw(t.collection, t.disabledKeys, n, l), [
r,
t.collection,
t.disabledKeys,
l,
n
- ]), { menuTriggerProps: d, menuProps: f } = oT({
+ ]), { menuTriggerProps: d, menuProps: f } = aT({
isDisabled: i,
type: "listbox"
- }, t, n), { keyboardProps: p } = Ax({
+ }, t, n), { keyboardProps: p } = kx({
shortcuts: {
ArrowLeft: () => {
if (t.selectionManager.selectionMode === "multiple") return !1;
@@ -27219,21 +27220,21 @@ function kae(e, t, n) {
allowRepeats: !0,
onKeyDown: e.onKeyDown,
onKeyUp: e.onKeyUp
- }), { typeSelectProps: m } = cT({
+ }), { typeSelectProps: m } = sT({
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 } = YC({
+ }), { isInvalid: h, validationErrors: g, validationDetails: _ } = t.displayValidation, { labelProps: v, fieldProps: y, descriptionProps: b, errorMessageProps: x } = JC({
...e,
labelElementType: "span",
isInvalid: h,
errorMessage: e.errorMessage || g
});
t.selectionManager.selectionMode === "multiple" && (m = {});
- let S = wS(e, { labelable: !0 }), C = K(m, d, y), w = bx();
- return VD.set(t, {
+ let S = CS(e, { labelable: !0 }), C = q(m, d, y), w = yx();
+ return BD.set(t, {
isDisabled: i,
isRequired: a,
name: o,
@@ -27243,13 +27244,13 @@ function kae(e, t, n) {
labelProps: {
...v,
onClick: () => {
- e.isDisabled || (n.current?.focus(), ax("keyboard"));
+ e.isDisabled || (n.current?.focus(), ix("keyboard"));
}
},
- triggerProps: K(S, {
+ triggerProps: q(S, {
...C,
isDisabled: i,
- onKeyDown: gx(C.onKeyDown, p.onKeyDown),
+ onKeyDown: hx(C.onKeyDown, p.onKeyDown),
onKeyUp: p.onKeyUp,
"aria-labelledby": [
w,
@@ -27273,7 +27274,7 @@ function kae(e, t, n) {
disallowEmptySelection: !0,
linkBehavior: "selection",
onBlur: (n) => {
- eb(n.currentTarget, n.relatedTarget) || (e.onBlur && e.onBlur(n), e.onFocusChange && e.onFocusChange(!1), t.setFocused(!1));
+ $y(n.currentTarget, n.relatedTarget) || (e.onBlur && e.onBlur(n), e.onFocusChange && e.onFocusChange(!1), t.setFocused(!1));
},
"aria-labelledby": [y["aria-labelledby"], C["aria-label"] && !y["aria-labelledby"] ? C.id : null].filter(Boolean).join(" ")
},
@@ -27295,17 +27296,17 @@ function kae(e, t, n) {
//#endregion
//#region node_modules/react-aria/dist/private/select/HiddenSelect.mjs
function Aae(e, t, n) {
- let r = VD.get(t) || {}, { autoComplete: i, name: a = r.name, form: o = r.form, isDisabled: s = r.isDisabled } = e, { validationBehavior: c, isRequired: l } = r, { visuallyHiddenProps: u } = cw({ style: {
+ let r = BD.get(t) || {}, { autoComplete: i, name: a = r.name, form: o = r.form, isDisabled: s = r.isDisabled } = e, { validationBehavior: c, isRequired: l } = r, { visuallyHiddenProps: u } = sw({ style: {
position: "fixed",
top: 0,
left: 0
} });
- DC(e.selectRef, t.defaultValue, t.setValue), OC({
+ EC(e.selectRef, t.defaultValue, t.setValue), DC({
validationBehavior: c,
focus: () => n.current?.focus()
}, t, e.selectRef);
let d = t.setValue, f = (0, D.useCallback)((e) => {
- let t = G(e);
+ let t = K(e);
t.multiple ? d(Array.from(t.selectedOptions, (e) => e.value)) : d(e.currentTarget.value);
}, [d]);
return {
@@ -27355,7 +27356,7 @@ function jae(e) {
value: e ?? ""
})))));
if (i) {
- let { validationBehavior: e } = VD.get(t) || {};
+ let { validationBehavior: e } = BD.get(t) || {};
d.length === 0 && (d = [null]);
let n = d.map((t, n) => {
let r = {
@@ -27387,7 +27388,7 @@ function jae(e) {
//#endregion
//#region node_modules/react-aria/dist/private/separator/useSeparator.mjs
function Mae(e) {
- let t = wS(e, { labelable: !0 }), n;
+ let t = CS(e, { labelable: !0 }), n;
return e.orientation === "vertical" && (n = "vertical"), e.elementType === "hr" ? { separatorProps: t } : { separatorProps: {
...t,
role: "separator",
@@ -27397,7 +27398,7 @@ function Mae(e) {
//#endregion
//#region node_modules/react-aria/dist/private/switch/useSwitch.mjs
function Nae(e, t, n) {
- let { labelProps: r, inputProps: i, isSelected: a, ...o } = GC(e, t, n);
+ let { labelProps: r, inputProps: i, isSelected: a, ...o } = WC(e, t, n);
return {
labelProps: r,
inputProps: {
@@ -27411,10 +27412,10 @@ function Nae(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/GridKeyboardDelegate.mjs
-var HD = class {
+var VD = 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 Pae(e.layout) : new xw(e.ref)), this.focusMode = e.focusMode ?? "row";
+ this.layoutDelegate = e.layoutDelegate || (e.layout ? new Pae(e.layout) : new bw(e.ref)), this.focusMode = e.focusMode ?? "row";
}
isCell(e) {
return e.type === "cell";
@@ -27450,7 +27451,7 @@ var HD = class {
let n = this.collection.getItem(e);
if (!n) return null;
let r = 0;
- for (let e of dT(n, this.collection)) {
+ for (let e of uT(n, this.collection)) {
if (e.colSpan && e.colSpan + r > t || (e.colSpan && (r = r + e.colSpan - 1), r === t)) return e.key ?? null;
r++;
}
@@ -27484,13 +27485,13 @@ var HD = class {
let t = this.collection.getItem(e);
if (!t) return null;
if (this.isRow(t)) {
- let e = dT(t, this.collection);
- return (this.direction === "rtl" ? mT(e)?.key : fT(e)?.key) ?? null;
+ let e = uT(t, this.collection);
+ return (this.direction === "rtl" ? pT(e)?.key : dT(e)?.key) ?? null;
}
if (this.isCell(t) && t.parentKey != null) {
let n = this.collection.getItem(t.parentKey);
if (!n) return null;
- let r = dT(n, this.collection), i = (this.direction === "rtl" ? pT(r, t.index - 1) : pT(r, t.index + 1)) ?? null;
+ let r = uT(n, this.collection), i = (this.direction === "rtl" ? fT(r, t.index - 1) : fT(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;
@@ -27499,13 +27500,13 @@ var HD = class {
let t = this.collection.getItem(e);
if (!t) return null;
if (this.isRow(t)) {
- let e = dT(t, this.collection);
- return (this.direction === "rtl" ? fT(e)?.key : mT(e)?.key) ?? null;
+ let e = uT(t, this.collection);
+ return (this.direction === "rtl" ? dT(e)?.key : pT(e)?.key) ?? null;
}
if (this.isCell(t) && t.parentKey != null) {
let n = this.collection.getItem(t.parentKey);
if (!n) return null;
- let r = dT(n, this.collection), i = (this.direction === "rtl" ? pT(r, t.index + 1) : pT(r, t.index - 1)) ?? null;
+ let r = uT(n, this.collection), i = (this.direction === "rtl" ? fT(r, t.index + 1) : fT(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;
@@ -27516,13 +27517,13 @@ var HD = 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 ? fT(dT(e, this.collection))?.key ?? null : null;
+ return e ? dT(uT(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 = fT(dT(e, this.collection))?.key ?? null;
+ n = dT(uT(e, this.collection))?.key ?? null;
}
return n;
}
@@ -27532,13 +27533,13 @@ var HD = 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 ? mT(dT(e, this.collection))?.key ?? null : null;
+ return e ? pT(uT(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 = mT(dT(e, this.collection))?.key ?? null;
+ n = pT(uT(e, this.collection))?.key ?? null;
}
return n;
}
@@ -27574,7 +27575,7 @@ var HD = 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" ? fT(dT(t, this.collection))?.key ?? null : t.key;
+ if (this.collator.compare(n, e) === 0) return this.isRow(t) && this.focusMode === "cell" ? dT(uT(t, this.collection))?.key ?? null : t.key;
}
n = this.findNextKey(n, (e) => e.type === "item"), n == null && !a && (n = this.getFirstKey(), a = !0);
}
@@ -27593,16 +27594,16 @@ var HD = class {
getVisibleRect() {
return this.layout.virtualizer.visibleRect;
}
-}, UD = /* @__PURE__ */ new WeakMap();
+}, HD = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGrid.mjs
function Fae(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 = bT({
+ let h = yT({
usage: "search",
sensitivity: "base"
- }), { direction: g } = gS(), _ = t.selectionManager.disabledBehavior, v = (0, D.useMemo)(() => a || new HD({
+ }), { direction: g } = hS(), _ = t.selectionManager.disabledBehavior, v = (0, D.useMemo)(() => a || new VD({
collection: t.collection,
disabledKeys: t.disabledKeys,
disabledBehavior: _,
@@ -27619,7 +27620,7 @@ function Fae(e, t, n) {
g,
h,
o
- ]), { collectionProps: y } = uT({
+ ]), { collectionProps: y } = lT({
ref: n,
selectionManager: m,
keyboardDelegate: v,
@@ -27627,8 +27628,8 @@ function Fae(e, t, n) {
scrollRef: s,
disallowTypeAhead: i,
escapeKeyBehavior: d
- }), b = bx(e.id);
- UD.set(t, {
+ }), b = yx(e.id);
+ HD.set(t, {
keyboardDelegate: v,
actions: {
onRowAction: l,
@@ -27637,44 +27638,44 @@ function Fae(e, t, n) {
shouldSelectOnPressUp: f,
keyboardNavigationBehavior: p
});
- let x = yE({
+ let x = vE({
selectionManager: m,
hasItemActions: !!(l || u)
- }), S = wS(e, { labelable: !0 }), C = (0, D.useCallback)((e) => {
- m.isFocused ? eb(e.currentTarget, G(e)) || m.setFocused(!1) : eb(e.currentTarget, G(e)) && m.setFocused(!0);
+ }), S = CS(e, { labelable: !0 }), C = (0, D.useCallback)((e) => {
+ m.isFocused ? $y(e.currentTarget, K(e)) || m.setFocused(!1) : $y(e.currentTarget, K(e)) && m.setFocused(!0);
}, [m]), w = (0, D.useMemo)(() => ({
onBlur: y.onBlur,
onFocus: C
- }), [C, y.onBlur]), T = vE(n, { isDisabled: t.collection.size !== 0 }), E = K(S, {
+ }), [C, y.onBlur]), T = _E(n, { isDisabled: t.collection.size !== 0 }), E = q(S, {
role: "grid",
id: b,
"aria-multiselectable": m.selectionMode === "multiple" ? "true" : void 0
}, t.isKeyboardNavigationDisabled ? w : y, t.collection.size === 0 && { tabIndex: T ? -1 : 0 } || void 0, x);
- return r && (E["aria-rowcount"] = t.collection.size, E["aria-colcount"] = t.collection.columnCount), gE({ getRowText: c }, t), { gridProps: E };
+ return r && (E["aria-rowcount"] = t.collection.size, E["aria-colcount"] = t.collection.columnCount), hE({ getRowText: c }, t), { gridProps: E };
}
//#endregion
//#region node_modules/react-aria/dist/private/table/utils.mjs
-var WD = /* @__PURE__ */ new WeakMap();
-function GD(e) {
+var UD = /* @__PURE__ */ new WeakMap();
+function WD(e) {
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
}
-function KD(e, t) {
- let n = WD.get(e);
+function GD(e, t) {
+ let n = UD.get(e);
if (!n) throw Error("Unknown grid");
- return `${n}-${GD(t)}`;
+ return `${n}-${WD(t)}`;
}
-function qD(e, t, n) {
- let r = WD.get(e);
+function KD(e, t, n) {
+ let r = UD.get(e);
if (!r) throw Error("Unknown grid");
- return `${r}-${GD(t)}-${GD(n)}`;
+ return `${r}-${WD(t)}-${WD(n)}`;
}
-function JD(e, t) {
- return [...e.collection.rowHeaderColumnKeys].map((n) => qD(e, t, n)).join(" ");
+function qD(e, t) {
+ return [...e.collection.rowHeaderColumnKeys].map((n) => KD(e, t, n)).join(" ");
}
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ar-AE.mjs
-var YD = {};
-YD = {
+var JD = {};
+JD = {
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: "طي",
@@ -27689,8 +27690,8 @@ YD = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/bg-BG.mjs
-var XD = {};
-XD = {
+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: "Свиване",
@@ -27705,8 +27706,8 @@ XD = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/cs-CZ.mjs
-var ZD = {};
-ZD = {
+var XD = {};
+XD = {
ascending: "vzestupně",
ascendingSort: (e) => `\u{159}azeno vzestupn\u{11B} podle sloupce ${e.columnName}`,
collapse: "Sbalit",
@@ -27721,8 +27722,8 @@ ZD = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/da-DK.mjs
-var QD = {};
-QD = {
+var ZD = {};
+ZD = {
ascending: "stigende",
ascendingSort: (e) => `sorteret efter kolonne ${e.columnName} i stigende r\xe6kkef\xf8lge`,
collapse: "Skjul",
@@ -27737,8 +27738,8 @@ QD = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/de-DE.mjs
-var $D = {};
-$D = {
+var QD = {};
+QD = {
ascending: "aufsteigend",
ascendingSort: (e) => `sortiert nach Spalte ${e.columnName} in aufsteigender Reihenfolge`,
collapse: "Reduzieren",
@@ -27753,8 +27754,8 @@ $D = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/el-GR.mjs
-var eO = {};
-eO = {
+var $D = {};
+$D = {
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: "Σύμπτυξη",
@@ -27769,8 +27770,8 @@ eO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/en-US.mjs
-var tO = {};
-tO = {
+var eO = {};
+eO = {
select: "Select",
selectAll: "Select All",
sortable: "sortable column",
@@ -27785,8 +27786,8 @@ tO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/es-ES.mjs
-var nO = {};
-nO = {
+var tO = {};
+tO = {
ascending: "ascendente",
ascendingSort: (e) => `ordenado por columna ${e.columnName} en sentido ascendente`,
collapse: "Contraer",
@@ -27801,8 +27802,8 @@ nO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/et-EE.mjs
-var rO = {};
-rO = {
+var nO = {};
+nO = {
ascending: "tõusev järjestus",
ascendingSort: (e) => `sorditud veeru j\xe4rgi ${e.columnName} t\xf5usvas j\xe4rjestuses`,
collapse: "Ahenda",
@@ -27817,8 +27818,8 @@ rO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/fi-FI.mjs
-var iO = {};
-iO = {
+var rO = {};
+rO = {
ascending: "nouseva",
ascendingSort: (e) => `lajiteltu sarakkeen ${e.columnName} mukaan nousevassa j\xe4rjestyksess\xe4`,
collapse: "Pienennä",
@@ -27833,8 +27834,8 @@ iO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/fr-FR.mjs
-var aO = {};
-aO = {
+var iO = {};
+iO = {
ascending: "croissant",
ascendingSort: (e) => `tri\xe9 en fonction de la colonne\xa0${e.columnName} par ordre croissant`,
collapse: "Réduire",
@@ -27849,8 +27850,8 @@ aO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/he-IL.mjs
-var oO = {};
-oO = {
+var aO = {};
+aO = {
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: "כווץ",
@@ -27865,8 +27866,8 @@ oO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/hr-HR.mjs
-var sO = {};
-sO = {
+var oO = {};
+oO = {
ascending: "rastući",
ascendingSort: (e) => `razvrstano po stupcima ${e.columnName} rastu\u{107}em redoslijedom`,
collapse: "Sažmi",
@@ -27881,8 +27882,8 @@ sO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/hu-HU.mjs
-var cO = {};
-cO = {
+var sO = {};
+sO = {
ascending: "növekvő",
ascendingSort: (e) => `rendezve a(z) ${e.columnName} oszlop szerint, n\xf6vekv\u{151} sorrendben`,
collapse: "Összecsukás",
@@ -27897,8 +27898,8 @@ cO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/it-IT.mjs
-var lO = {};
-lO = {
+var cO = {};
+cO = {
ascending: "crescente",
ascendingSort: (e) => `in ordine crescente in base alla colonna ${e.columnName}`,
collapse: "Comprimi",
@@ -27913,8 +27914,8 @@ lO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ja-JP.mjs
-var uO = {};
-uO = {
+var lO = {};
+lO = {
ascending: "昇順",
ascendingSort: (e) => `\u{5217} ${e.columnName} \u{3092}\u{6607}\u{9806}\u{3067}\u{4E26}\u{3079}\u{66FF}\u{3048}`,
collapse: "折りたたむ",
@@ -27929,8 +27930,8 @@ uO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ko-KR.mjs
-var dO = {};
-dO = {
+var uO = {};
+uO = {
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: "접기",
@@ -27945,8 +27946,8 @@ dO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/lt-LT.mjs
-var fO = {};
-fO = {
+var dO = {};
+dO = {
ascending: "didėjančia tvarka",
ascendingSort: (e) => `surikiuota pagal stulpel\u{12F} ${e.columnName} did\u{117}jan\u{10D}ia tvarka`,
collapse: "Sutraukti",
@@ -27961,8 +27962,8 @@ fO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/lv-LV.mjs
-var pO = {};
-pO = {
+var fO = {};
+fO = {
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",
@@ -27977,8 +27978,8 @@ pO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/nb-NO.mjs
-var mO = {};
-mO = {
+var pO = {};
+pO = {
ascending: "stigende",
ascendingSort: (e) => `sortert etter kolonne ${e.columnName} i stigende rekkef\xf8lge`,
collapse: "Skjul",
@@ -27993,8 +27994,8 @@ mO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/nl-NL.mjs
-var hO = {};
-hO = {
+var mO = {};
+mO = {
ascending: "oplopend",
ascendingSort: (e) => `gesorteerd in oplopende volgorde in kolom ${e.columnName}`,
collapse: "Samenvouwen",
@@ -28009,8 +28010,8 @@ hO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/pl-PL.mjs
-var gO = {};
-gO = {
+var hO = {};
+hO = {
ascending: "rosnąco",
ascendingSort: (e) => `posortowano wed\u{142}ug kolumny ${e.columnName} w porz\u{105}dku rosn\u{105}cym`,
collapse: "Zwiń",
@@ -28025,8 +28026,8 @@ gO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/pt-BR.mjs
-var _O = {};
-_O = {
+var gO = {};
+gO = {
ascending: "crescente",
ascendingSort: (e) => `classificado pela coluna ${e.columnName} em ordem crescente`,
collapse: "Recolher",
@@ -28041,8 +28042,8 @@ _O = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/pt-PT.mjs
-var vO = {};
-vO = {
+var _O = {};
+_O = {
ascending: "ascendente",
ascendingSort: (e) => `Ordenar por coluna ${e.columnName} em ordem ascendente`,
collapse: "Colapsar",
@@ -28057,8 +28058,8 @@ vO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ro-RO.mjs
-var yO = {};
-yO = {
+var vO = {};
+vO = {
ascending: "crescătoare",
ascendingSort: (e) => `sortate dup\u{103} coloana ${e.columnName} \xeen ordine cresc\u{103}toare`,
collapse: "Restrângeți",
@@ -28073,8 +28074,8 @@ yO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ru-RU.mjs
-var bO = {};
-bO = {
+var yO = {};
+yO = {
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: "Свернуть",
@@ -28089,8 +28090,8 @@ bO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sk-SK.mjs
-var xO = {};
-xO = {
+var bO = {};
+bO = {
ascending: "vzostupne",
ascendingSort: (e) => `zoraden\xe9 zostupne pod\u{13E}a st\u{13A}pca ${e.columnName}`,
collapse: "Zbaliť",
@@ -28105,8 +28106,8 @@ xO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sl-SI.mjs
-var SO = {};
-SO = {
+var xO = {};
+xO = {
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",
@@ -28121,8 +28122,8 @@ SO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sr-SP.mjs
-var CO = {};
-CO = {
+var SO = {};
+SO = {
ascending: "rastući",
ascendingSort: (e) => `sortirano po kolonama ${e.columnName} rastu\u{107}im redosledom`,
collapse: "Skupi",
@@ -28137,8 +28138,8 @@ CO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sv-SE.mjs
-var wO = {};
-wO = {
+var CO = {};
+CO = {
ascending: "stigande",
ascendingSort: (e) => `sorterat p\xe5 kolumn ${e.columnName} i stigande ordning`,
collapse: "Dölj",
@@ -28153,8 +28154,8 @@ wO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/tr-TR.mjs
-var TO = {};
-TO = {
+var wO = {};
+wO = {
ascending: "artan sırada",
ascendingSort: (e) => `${e.columnName} s\xfctuna g\xf6re artan d\xfczende s\u{131}rala`,
collapse: "Daralt",
@@ -28169,8 +28170,8 @@ TO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/uk-UA.mjs
-var EO = {};
-EO = {
+var TO = {};
+TO = {
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: "Згорнути",
@@ -28185,8 +28186,8 @@ EO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/zh-CN.mjs
-var DO = {};
-DO = {
+var EO = {};
+EO = {
ascending: "升序",
ascendingSort: (e) => `\u{6309}\u{5217} ${e.columnName} \u{5347}\u{5E8F}\u{6392}\u{5E8F}`,
collapse: "折叠",
@@ -28201,8 +28202,8 @@ DO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/zh-TW.mjs
-var OO = {};
-OO = {
+var DO = {};
+DO = {
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: "收合",
@@ -28217,46 +28218,46 @@ OO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/table/intlStrings.mjs
-var kO = {};
-kO = {
- "ar-AE": YD,
- "bg-BG": XD,
- "cs-CZ": ZD,
- "da-DK": QD,
- "de-DE": $D,
- "el-GR": eO,
- "en-US": tO,
- "es-ES": nO,
- "et-EE": rO,
- "fi-FI": iO,
- "fr-FR": aO,
- "he-IL": oO,
- "hr-HR": sO,
- "hu-HU": cO,
- "it-IT": lO,
- "ja-JP": uO,
- "ko-KR": dO,
- "lt-LT": fO,
- "lv-LV": pO,
- "nb-NO": mO,
- "nl-NL": hO,
- "pl-PL": gO,
- "pt-BR": _O,
- "pt-PT": vO,
- "ro-RO": yO,
- "ru-RU": bO,
- "sk-SK": xO,
- "sl-SI": SO,
- "sr-SP": CO,
- "sv-SE": wO,
- "tr-TR": TO,
- "uk-UA": EO,
- "zh-CN": DO,
- "zh-TW": OO
+var OO = {};
+OO = {
+ "ar-AE": JD,
+ "bg-BG": YD,
+ "cs-CZ": XD,
+ "da-DK": ZD,
+ "de-DE": QD,
+ "el-GR": $D,
+ "en-US": eO,
+ "es-ES": tO,
+ "et-EE": nO,
+ "fi-FI": rO,
+ "fr-FR": iO,
+ "he-IL": aO,
+ "hr-HR": oO,
+ "hu-HU": sO,
+ "it-IT": cO,
+ "ja-JP": lO,
+ "ko-KR": uO,
+ "lt-LT": dO,
+ "lv-LV": fO,
+ "nb-NO": pO,
+ "nl-NL": mO,
+ "pl-PL": hO,
+ "pt-BR": gO,
+ "pt-PT": _O,
+ "ro-RO": vO,
+ "ru-RU": yO,
+ "sk-SK": bO,
+ "sl-SI": xO,
+ "sr-SP": SO,
+ "sv-SE": CO,
+ "tr-TR": wO,
+ "uk-UA": TO,
+ "zh-CN": EO,
+ "zh-TW": DO
};
//#endregion
//#region node_modules/react-aria/dist/private/table/TableKeyboardDelegate.mjs
-var Iae = class extends HD {
+var Iae = class extends VD {
isCell(e) {
return e.type === "cell" || e.type === "rowheader" || e.type === "column";
}
@@ -28264,7 +28265,7 @@ var Iae = class extends HD {
let n = this.collection.getItem(e);
if (!n) return null;
if (n.type === "column") {
- let e = fT(dT(n, this.collection));
+ let e = dT(uT(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);
@@ -28285,13 +28286,13 @@ var Iae = class extends HD {
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 dT(n, this.collection)) if (e.type === "column") return e.key;
+ for (let e of uT(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 = [...dT(n, this.collection)];
+ let n = this.collection.headerRows[e.level], r = [...uT(n, this.collection)];
for (let e = r.length - 1; e >= 0; e--) {
let t = r[e];
if (t.type === "column") return t.key;
@@ -28320,7 +28321,7 @@ var Iae = class extends HD {
let t = o.textValue.slice(0, e.length);
if (this.collator.compare(t, e) === 0) return o.key;
}
- for (let r of dT(o, this.collection)) {
+ for (let r of uT(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);
@@ -28338,10 +28339,10 @@ function Lae(e) {
return e && e.__esModule ? e.default : e;
}
function Rae(e, t, n) {
- let { keyboardDelegate: r, isVirtualized: i, layoutDelegate: a, layout: o } = e, s = bT({
+ let { keyboardDelegate: r, isVirtualized: i, layoutDelegate: a, layout: o } = e, s = yT({
usage: "search",
sensitivity: "base"
- }), { direction: c } = gS(), l = t.selectionManager.disabledBehavior, u = (0, D.useMemo)(() => r || new Iae({
+ }), { direction: c } = hS(), l = t.selectionManager.disabledBehavior, u = (0, D.useMemo)(() => r || new Iae({
collection: t.collection,
disabledKeys: t.disabledKeys,
disabledBehavior: l,
@@ -28360,52 +28361,52 @@ function Rae(e, t, n) {
s,
a,
o
- ]), d = bx(e.id);
- WD.set(t, d);
+ ]), d = yx(e.id);
+ UD.set(t, d);
let { gridProps: f } = Fae({
...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 = SS(Lae(kO), "@react-aria/table"), g = (0, D.useMemo)(() => {
+ let { column: p, direction: m } = t.sortDescriptor || {}, h = xS(Lae(OO), "@react-aria/table"), g = (0, D.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
- ]), _ = EC(g);
- return _C(() => {
- g && hC(g, "assertive", 500);
- }, [g]), { gridProps: K(f, _, { "aria-describedby": [_["aria-describedby"], f["aria-describedby"]].filter(Boolean).join(" ") }) };
+ ]), _ = TC(g);
+ return gC(() => {
+ g && mC(g, "assertive", 500);
+ }, [g]), { gridProps: q(f, _, { "aria-describedby": [_["aria-describedby"], f["aria-describedby"]].filter(Boolean).join(" ") }) };
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridCell.mjs
-function AO(e, t, n) {
- let { node: r, isVirtualized: i, focusMode: a, allowsArrowNavigation: o, shouldSelectOnPressUp: s, onAction: c } = e, { direction: l } = gS(), { keyboardDelegate: u, actions: { onCellAction: d }, keyboardNavigationBehavior: f } = UD.get(t), p = a ?? (f === "tab" ? "cell" : "child"), m = (0, D.useRef)(null), h = (0, D.useRef)(null), g = () => {
+function kO(e, t, n) {
+ let { node: r, isVirtualized: i, focusMode: a, allowsArrowNavigation: o, shouldSelectOnPressUp: s, onAction: c } = e, { direction: l } = hS(), { keyboardDelegate: u, actions: { onCellAction: d }, keyboardNavigationBehavior: f } = HD.get(t), p = a ?? (f === "tab" ? "cell" : "child"), m = (0, D.useRef)(null), h = (0, D.useRef)(null), g = () => {
if (n.current) {
- let e = lC(n.current);
+ let e = cC(n.current);
if (p === "child") {
- let i = tb(qy(n.current));
- if (rb(n.current) && n.current !== i) return;
- let a = qy(n.current);
+ let i = eb(Ky(n.current));
+ if (nb(n.current) && n.current !== i) return;
+ let a = Ky(n.current);
if (!i || i === a.body || i === n.current) {
let e = h.current;
- if (e && m.current === r.key && eb(n.current, e)) {
- hx(e);
+ if (e && m.current === r.key && $y(n.current, e)) {
+ mx(e);
return;
}
}
- let o = t.selectionManager.childFocusStrategy === "last" ? jO(e) : e.firstChild();
+ let o = t.selectionManager.childFocusStrategy === "last" ? AO(e) : e.firstChild();
if (o) {
- hx(o);
+ mx(o);
return;
}
}
- (m.current != null && r.key !== m.current || !rb(n.current)) && hx(n.current);
+ (m.current != null && r.key !== m.current || !nb(n.current)) && mx(n.current);
}
- }, { itemProps: _, isPressed: v } = xE({
+ }, { itemProps: _, isPressed: v } = bE({
selectionManager: t.selectionManager,
key: r.key,
ref: n,
@@ -28414,47 +28415,47 @@ function AO(e, t, n) {
shouldSelectOnPressUp: s,
onAction: d ? () => d(r.key) : c,
isDisabled: t.collection.size === 0
- }), y = K(_, {
+ }), y = q(_, {
role: "gridcell",
onKeyDownCapture: f !== "tab" || o ? (e) => {
- let i = tb(qy(n.current));
- if (!eb(e.currentTarget, G(e)) || t.isKeyboardNavigationDisabled || !n.current || !i) return;
- let a = lC(n.current);
+ let i = eb(Ky(n.current));
+ if (!$y(e.currentTarget, K(e)) || t.isKeyboardNavigationDisabled || !n.current || !i) return;
+ let a = cC(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) hx(t), CC(t, { containingElement: yC(n.current) });
+ if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) mx(t), SC(t, { containingElement: vC(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" ? (hx(n.current), CC(n.current, { containingElement: yC(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? a.firstChild() : jO(a), t && (hx(t), CC(t, { containingElement: yC(n.current) })));
+ p === "cell" && l === "rtl" ? (mx(n.current), SC(n.current, { containingElement: vC(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? a.firstChild() : AO(a), t && (mx(t), SC(t, { containingElement: vC(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) hx(t), CC(t, { containingElement: yC(n.current) });
+ if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) mx(t), SC(t, { containingElement: vC(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" ? (hx(n.current), CC(n.current, { containingElement: yC(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? jO(a) : a.firstChild(), t && (hx(t), CC(t, { containingElement: yC(n.current) })));
+ p === "cell" && l === "ltr" ? (mx(n.current), SC(n.current, { containingElement: vC(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? AO(a) : a.firstChild(), t && (mx(t), SC(t, { containingElement: vC(n.current) })));
}
break;
}
case "ArrowUp":
- case "ArrowDown": !e.altKey && eb(n.current, G(e)) && (e.stopPropagation(), e.preventDefault(), n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent)));
+ case "ArrowDown": !e.altKey && $y(n.current, K(e)) && (e.stopPropagation(), e.preventDefault(), n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent)));
}
} : void 0,
onKeyDown: f === "tab" ? (e) => {
- let r = tb(qy(n.current));
- if (eb(e.currentTarget, G(e)) && !t.isKeyboardNavigationDisabled && n.current && r) {
- if (f === "tab" && G(e) !== n.current && e.key !== "Tab") e.stopPropagation();
+ let r = eb(Ky(n.current));
+ if ($y(e.currentTarget, K(e)) && !t.isKeyboardNavigationDisabled && n.current && r) {
+ if (f === "tab" && K(e) !== n.current && e.key !== "Tab") e.stopPropagation();
else if (e.key === "Tab" && f === "tab") {
- let t = lC(n.current, { tabbable: !0 });
+ let t = cC(n.current, { tabbable: !0 });
t.currentNode = r, (e.shiftKey ? t.previousNode() : t.nextNode()) && e.stopPropagation();
}
}
@@ -28463,11 +28464,11 @@ function AO(e, t, n) {
"aria-colindex": r.colIndex == null ? void 0 : r.colIndex + 1,
colSpan: i ? void 0 : r.colSpan,
onFocus: (e) => {
- if (m.current = r.key, G(e) !== n.current) {
- let i = G(e);
- n.current && eb(n.current, i) && (h.current = i), rx() || t.selectionManager.setFocusedKey(r.key);
- } else p === "child" && e.relatedTarget && eb(n.current, e.relatedTarget) || requestAnimationFrame(() => {
- p === "child" && tb(qy(n.current)) === n.current && g();
+ if (m.current = r.key, K(e) !== n.current) {
+ let i = K(e);
+ n.current && $y(n.current, i) && (h.current = i), nx() || t.selectionManager.setFocusedKey(r.key);
+ } else p === "child" && e.relatedTarget && $y(n.current, e.relatedTarget) || requestAnimationFrame(() => {
+ p === "child" && eb(Ky(n.current)) === n.current && g();
});
},
...p === "child" && f === "tab" ? { tabIndex: -1 } : {}
@@ -28482,7 +28483,7 @@ function AO(e, t, n) {
isPressed: v
};
}
-function jO(e) {
+function AO(e) {
let t = null, n = null;
do
n = e.lastChild(), n && (t = n);
@@ -28492,8 +28493,8 @@ function jO(e) {
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableCell.mjs
function zae(e, t, n) {
- let { gridCellProps: r, isPressed: i } = AO(e, t, n), a = e.node.column?.key;
- return a != null && t.collection.rowHeaderColumnKeys.has(a) && (r.role = "rowheader", r.id = qD(t, e.node.parentKey, a)), {
+ let { gridCellProps: r, isPressed: i } = kO(e, t, n), a = e.node.column?.key;
+ return a != null && t.collection.rowHeaderColumnKeys.has(a) && (r.role = "rowheader", r.id = KD(t, e.node.parentKey, a)), {
gridCellProps: r,
isPressed: i
};
@@ -28504,20 +28505,20 @@ function Bae(e) {
return e && e.__esModule ? e.default : e;
}
function Vae(e, t, n) {
- let { node: r } = e, i = r.props.allowsSorting, { gridCellProps: a } = AO({
+ let { node: r } = e, i = r.props.allowsSorting, { gridCellProps: a } = kO({
focusMode: "child",
...e
- }, t, n), o = r.props.isSelectionCell && t.selectionManager.selectionMode === "single", { pressProps: s, isPressed: c } = RS({
+ }, t, n), o = r.props.isSelectionCell && t.selectionManager.selectionMode === "single", { pressProps: s, isPressed: c } = LS({
isDisabled: !i || o,
onPress() {
t.sort(r.key);
},
ref: n
- }), { focusableProps: l } = Px({}, n), u, d = t.sortDescriptor?.column === r.key, f = t.sortDescriptor?.direction;
- r.props.allowsSorting && !Ab() && (u = d ? f : "none");
- let p = SS(Bae(kO), "@react-aria/table"), m;
- i && (m = `${p.format("sortable")}`, d && f && Ab() && (m = `${m}, ${p.format(f)}`));
- let h = EC(m), g = t.collection.size === 0;
+ }), { focusableProps: l } = Nx({}, n), u, d = t.sortDescriptor?.column === r.key, f = t.sortDescriptor?.direction;
+ r.props.allowsSorting && !kb() && (u = d ? f : "none");
+ let p = xS(Bae(OO), "@react-aria/table"), m;
+ i && (m = `${p.format("sortable")}`, d && f && kb() && (m = `${m}, ${p.format(f)}`));
+ let h = TC(m), g = t.collection.size === 0;
return (0, D.useEffect)(() => {
g && t.selectionManager.focusedKey === r.key && t.selectionManager.setFocusedKey(null);
}, [
@@ -28526,9 +28527,9 @@ function Vae(e, t, n) {
r.key
]), {
columnHeaderProps: {
- ...K(l, a, s, h, g ? { tabIndex: -1 } : null),
+ ...q(l, a, s, h, g ? { tabIndex: -1 } : null),
role: "columnheader",
- id: KD(t, r.key),
+ id: GD(t, r.key),
"aria-colspan": r.colSpan && r.colSpan > 1 ? r.colSpan : void 0,
"aria-sort": u
},
@@ -28541,13 +28542,13 @@ function Hae(e) {
return e && e.__esModule ? e.default : e;
}
function Uae(e, t, n) {
- let { column: r, triggerRef: i, isDisabled: a, onResizeStart: o, onResize: s, onResizeEnd: c, "aria-label": l } = e, u = SS(Hae(kO), "@react-aria/table"), d = bx(), f = t.resizingColumn === r.key, p = (0, D.useRef)(f), m = (0, D.useRef)(null), h = (0, D.useRef)(!1), g = t.tableState.isKeyboardNavigationDisabled, [_, v] = (0, D.useState)(!1), { direction: y } = gS(), b = (0, D.useCallback)((e) => {
+ let { column: r, triggerRef: i, isDisabled: a, onResizeStart: o, onResize: s, onResizeEnd: c, "aria-label": l } = e, u = xS(Hae(OO), "@react-aria/table"), d = yx(), f = t.resizingColumn === r.key, p = (0, D.useRef)(f), m = (0, D.useRef)(null), h = (0, D.useRef)(!1), g = t.tableState.isKeyboardNavigationDisabled, [_, v] = (0, D.useState)(!1), { direction: y } = hS(), b = (0, D.useCallback)((e) => {
p.current || (m.current = t.updateResizedColumns(e.key, t.getColumnWidth(e.key)), t.startResize(e.key), t.tableState.setKeyboardNavigationDisabled(!0), o?.(m.current)), p.current = !0;
}, [t, o]), x = (0, D.useCallback)((e, n) => {
let r = t.updateResizedColumns(e.key, n);
s?.(r), m.current = r;
}, [t, s]), S = (0, D.useCallback)((e) => {
- p.current && (m.current ??= t.updateResizedColumns(e.key, t.getColumnWidth(e.key)), t.endResize(), t.tableState.setKeyboardNavigationDisabled(!1), c?.(m.current), p.current = !1, i?.current && !h.current && hx(i.current)), m.current = null;
+ p.current && (m.current ??= t.updateResizedColumns(e.key, t.getColumnWidth(e.key)), t.endResize(), t.tableState.setKeyboardNavigationDisabled(!1), c?.(m.current), p.current = !1, i?.current && !h.current && mx(i.current)), m.current = null;
}, [
t,
i,
@@ -28555,14 +28556,14 @@ function Uae(e, t, n) {
]), C = () => {
if (g) S(r);
else return !1;
- }, { keyboardProps: w } = Ax({ shortcuts: {
+ }, { keyboardProps: w } = kx({ shortcuts: {
Escape: () => C(),
Enter: () => {
g ? S(r) : b(r);
},
" ": () => C(),
Tab: () => C()
- } }), T = (0, D.useRef)(0), { moveProps: E } = ow({
+ } }), T = (0, D.useRef)(0), { moveProps: E } = aw({
onMoveStart(e) {
T.current = t.getColumnWidth(r.key), e.pointerType === "mouse" && v(!0), b(r);
},
@@ -28578,12 +28579,12 @@ function Uae(e, t, n) {
g && E.onKeyDown?.(e);
}, [g, E]), k = Math.floor(t.getColumnMinWidth(r.key)), A = Math.floor(t.getColumnMaxWidth(r.key));
A === Infinity && (A = 2 ** 53 - 1);
- let j = Math.floor(t.getColumnWidth(r.key)), M = ox();
+ let j = Math.floor(t.getColumnWidth(r.key)), M = ax();
M === "virtual" && typeof window < "u" && "ontouchstart" in window && (M = "touch");
- let N = EC(i?.current == null && (M === "keyboard" || M === "virtual") && !f ? u.format("resizerDescription") : void 0), P = {
+ let N = TC(i?.current == null && (M === "keyboard" || M === "virtual") && !f ? u.format("resizerDescription") : void 0), P = {
"aria-label": l,
"aria-orientation": "horizontal",
- "aria-labelledby": `${d} ${KD(t.tableState, r.key)}`,
+ "aria-labelledby": `${d} ${GD(t.tableState, r.key)}`,
"aria-valuetext": u.format("columnSize", { value: j }),
type: "range",
min: k,
@@ -28591,11 +28592,11 @@ function Uae(e, t, n) {
value: j,
...N
}, ee = (0, D.useCallback)(() => {
- n.current && hx(n.current);
- }, [n]), F = t.resizingColumn, te = (0, D.useRef)(null), I = cS(b);
+ n.current && mx(n.current);
+ }, [n]), F = t.resizingColumn, te = (0, D.useRef)(null), I = sS(b);
(0, D.useEffect)(() => {
if (te.current !== F && F != null && F === r.key) {
- h.current = tb() === n.current, I(r);
+ h.current = eb() === n.current, I(r);
let e = setTimeout(() => ee(), 0), t = setTimeout(ee, 400);
return () => {
clearTimeout(e), clearTimeout(t);
@@ -28609,9 +28610,9 @@ function Uae(e, t, n) {
n
]);
let ne = (e) => {
- let n = t.getColumnWidth(r.key), i = parseFloat(G(e).value);
+ let n = t.getColumnWidth(r.key), i = parseFloat(K(e).value);
i = i > n ? n + 10 : n - 10, x(r, i);
- }, { pressProps: re } = RS({
+ }, { pressProps: re } = LS({
preventFocusOnPress: !0,
onPressStart: (e) => {
e.ctrlKey || e.altKey || e.metaKey || e.shiftKey || e.pointerType === "keyboard" || (e.pointerType === "virtual" && t.resizingColumn != null ? S(r) : (ee(), e.pointerType !== "virtual" && b(r)));
@@ -28619,13 +28620,13 @@ function Uae(e, t, n) {
onPress: (e) => {
(e.pointerType === "touch" && h.current || e.pointerType === "mouse") && t.resizingColumn != null && S(r);
}
- }), { visuallyHiddenProps: ie } = cw();
+ }), { visuallyHiddenProps: ie } = sw();
return {
- resizerProps: K(w, {
+ resizerProps: q(w, {
...E,
onKeyDown: O
}, re, { style: { touchAction: "none" } }),
- inputProps: K(ie, {
+ inputProps: q(ie, {
id: d,
onBlur: () => {
S(r);
@@ -28646,13 +28647,13 @@ function Wae(e, t, n) {
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridRow.mjs
function Gae(e, t, n) {
- let { node: r, isVirtualized: i, shouldSelectOnPressUp: a, onAction: o } = e, { actions: s, shouldSelectOnPressUp: c } = UD.get(t), l = s.onRowAction ? () => s.onRowAction?.(r.key) : o, { itemProps: u, ...d } = xE({
+ let { node: r, isVirtualized: i, shouldSelectOnPressUp: a, onAction: o } = e, { actions: s, shouldSelectOnPressUp: c } = HD.get(t), l = s.onRowAction ? () => s.onRowAction?.(r.key) : o, { itemProps: u, ...d } = bE({
selectionManager: t.selectionManager,
key: r.key,
ref: n,
isVirtualized: i,
shouldSelectOnPressUp: c || a,
- onAction: l || r?.props?.onAction ? gx(r?.props?.onAction, l) : void 0,
+ onAction: l || r?.props?.onAction ? hx(r?.props?.onAction, l) : void 0,
isDisabled: t.collection.size === 0
}), f = t.selectionManager.isSelected(r.key), p = {
role: "row",
@@ -28670,7 +28671,7 @@ function Gae(e, t, n) {
function Kae(e) {
return e && e.__esModule ? e.default : e;
}
-var MO = {
+var jO = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -28681,20 +28682,20 @@ var MO = {
}
};
function qae(e, t, n) {
- let { node: r, isVirtualized: i } = e, { rowProps: a, ...o } = Gae(e, t, n), { direction: s } = gS();
+ let { node: r, isVirtualized: i } = e, { rowProps: a, ...o } = Gae(e, t, n), { direction: s } = hS();
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 = SS(Kae(kO), "@react-aria/table"), u = uS({
+ let c = t.treeColumn != null && (t.expandedKeys === "all" || t.expandedKeys.has(r.key)), l = xS(Kae(OO), "@react-aria/table"), u = lS({
"aria-label": c ? l.format("collapse") : l.format("expand"),
- "aria-labelledby": JD(t, r.key)
+ "aria-labelledby": qD(t, r.key)
}), d = {}, f = {};
if (t.treeColumn != null) {
let e = t.collection.getItem(r.key);
if (e != null) {
- let n = NO(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 = NO(t.collection, a);
+ let n = MO(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 = MO(t.collection, a);
for (; l && l.type !== "item" && l.prevKey != null;) l = t.collection.getItem(l.prevKey);
d = {
onKeyDown: (n) => {
- n.key === MO.expand[s] && t.selectionManager.focusedKey === e.key && i && t.expandedKeys !== "all" && !t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : n.key === MO.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 === jO.expand[s] && t.selectionManager.focusedKey === e.key && i && t.expandedKeys !== "all" && !t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : n.key === jO.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,
@@ -28712,17 +28713,17 @@ function qae(e, t, n) {
};
}
}
- let p = Lb(r.props), m = o.hasAction ? p : {};
+ let p = Ib(r.props), m = o.hasAction ? p : {};
return {
rowProps: {
- ...K(a, d, m),
- "aria-labelledby": JD(t, r.key)
+ ...q(a, d, m),
+ "aria-labelledby": qD(t, r.key)
},
expandButtonProps: f,
...o
};
}
-function NO(e, t) {
+function MO(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
@@ -28732,7 +28733,7 @@ function Jae() {
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableRowGroup.mjs
-function PO() {
+function NO() {
return Jae();
}
//#endregion
@@ -28741,16 +28742,16 @@ function Yae(e) {
return e && e.__esModule ? e.default : e;
}
function Xae(e, t) {
- let { key: n } = e, { checkboxProps: r } = DE(e, t);
+ let { key: n } = e, { checkboxProps: r } = EE(e, t);
return { checkboxProps: {
...r,
- "aria-labelledby": `${r.id} ${JD(t, n)}`
+ "aria-labelledby": `${r.id} ${qD(t, n)}`
} };
}
function Zae(e) {
let { isEmpty: t, isSelectAll: n, selectionMode: r } = e.selectionManager;
return { checkboxProps: {
- "aria-label": SS(Yae(kO), "@react-aria/table").format(r === "single" ? "select" : "selectAll"),
+ "aria-label": xS(Yae(OO), "@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,
@@ -28759,28 +28760,28 @@ function Zae(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/utils.mjs
-var FO = /* @__PURE__ */ new WeakMap();
-function IO(e, t, n) {
- return e ? (typeof t == "string" && (t = t.replace(/\s+/g, "")), `${FO.get(e)}-${n}-${t}`) : "";
+var PO = /* @__PURE__ */ new WeakMap();
+function FO(e, t, n) {
+ return e ? (typeof t == "string" && (t = t.replace(/\s+/g, "")), `${PO.get(e)}-${n}-${t}`) : "";
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/useTab.mjs
function Qae(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 } = xE({
+ 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 } = bE({
selectionManager: o,
key: r,
ref: n,
isDisabled: l,
shouldSelectOnPressUp: a ?? u?.props.href != null,
linkBehavior: "selection"
- }), p = IO(t, r, "tab"), m = IO(t, r, "tabpanel"), { tabIndex: h } = d, g = wS(u?.props, { labelable: !0 });
+ }), p = FO(t, r, "tab"), m = FO(t, r, "tabpanel"), { tabIndex: h } = d, g = CS(u?.props, { labelable: !0 });
delete g.id;
- let _ = Rb(u?.props), { focusableProps: v } = Px({
+ let _ = Lb(u?.props), { focusableProps: v } = Nx({
...u?.props,
isDisabled: l
}, n);
return {
- tabProps: K(g, v, _, d, {
+ tabProps: q(g, v, _, d, {
id: p,
"aria-selected": c,
"aria-disabled": l || void 0,
@@ -28840,7 +28841,7 @@ var $ae = class {
//#endregion
//#region node_modules/react-aria/dist/private/tabs/useTabList.mjs
function eoe(e, t, n) {
- let { orientation: r = "horizontal", keyboardActivation: i = "automatic" } = e, { collection: a, selectionManager: o, disabledKeys: s } = t, { direction: c } = gS(), { collectionProps: l } = uT({
+ let { orientation: r = "horizontal", keyboardActivation: i = "automatic" } = e, { collection: a, selectionManager: o, disabledKeys: s } = t, { direction: c } = hS(), { collectionProps: l } = lT({
ref: n,
selectionManager: o,
keyboardDelegate: (0, D.useMemo)(() => new $ae(a, c, r, s), [
@@ -28853,9 +28854,9 @@ function eoe(e, t, n) {
disallowEmptySelection: !0,
scrollRef: n,
linkBehavior: "selection"
- }), u = bx();
- return FO.set(t, u), { tabListProps: {
- ...K(l, uS({
+ }), u = yx();
+ return PO.set(t, u), { tabListProps: {
+ ...q(l, lS({
...e,
id: u
})),
@@ -28867,11 +28868,11 @@ function eoe(e, t, n) {
//#endregion
//#region node_modules/react-aria/dist/private/tabs/useTabPanel.mjs
function toe(e, t, n) {
- let r = vE(n) ? void 0 : 0, i = IO(t, e.id ?? t?.selectedKey, "tabpanel");
- return { tabPanelProps: K(uS({
+ let r = _E(n) ? void 0 : 0, i = FO(t, e.id ?? t?.selectedKey, "tabpanel");
+ return { tabPanelProps: q(lS({
...e,
id: i,
- "aria-labelledby": IO(t, t?.selectedKey, "tab")
+ "aria-labelledby": FO(t, t?.selectedKey, "tab")
}), {
tabIndex: r,
role: "tabpanel",
@@ -28887,295 +28888,295 @@ function noe(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/ar-AE.mjs
-var LO = {};
-LO = {
+var IO = {};
+IO = {
collapse: "طي",
expand: "تمديد"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/bg-BG.mjs
-var RO = {};
-RO = {
+var LO = {};
+LO = {
collapse: "Свиване",
expand: "Разширяване"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/cs-CZ.mjs
-var zO = {};
-zO = {
+var RO = {};
+RO = {
collapse: "Sbalit",
expand: "Roztáhnout"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/da-DK.mjs
-var BO = {};
-BO = {
+var zO = {};
+zO = {
collapse: "Skjul",
expand: "Udvid"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/de-DE.mjs
-var VO = {};
-VO = {
+var BO = {};
+BO = {
collapse: "Reduzieren",
expand: "Erweitern"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/el-GR.mjs
-var HO = {};
-HO = {
+var VO = {};
+VO = {
collapse: "Σύμπτυξη",
expand: "Ανάπτυξη"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/en-US.mjs
-var UO = {};
-UO = {
+var HO = {};
+HO = {
expand: "Expand",
collapse: "Collapse"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/es-ES.mjs
-var WO = {};
-WO = {
+var UO = {};
+UO = {
collapse: "Contraer",
expand: "Expandir"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/et-EE.mjs
-var GO = {};
-GO = {
+var WO = {};
+WO = {
collapse: "Ahenda",
expand: "Laienda"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/fi-FI.mjs
-var KO = {};
-KO = {
+var GO = {};
+GO = {
collapse: "Pienennä",
expand: "Laajenna"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/fr-FR.mjs
-var qO = {};
-qO = {
+var KO = {};
+KO = {
collapse: "Réduire",
expand: "Développer"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/he-IL.mjs
-var JO = {};
-JO = {
+var qO = {};
+qO = {
collapse: "כווץ",
expand: "הרחב"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/hr-HR.mjs
-var YO = {};
-YO = {
+var JO = {};
+JO = {
collapse: "Sažmi",
expand: "Proširi"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/hu-HU.mjs
-var XO = {};
-XO = {
+var YO = {};
+YO = {
collapse: "Összecsukás",
expand: "Kibontás"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/it-IT.mjs
-var ZO = {};
-ZO = {
+var XO = {};
+XO = {
collapse: "Comprimi",
expand: "Espandi"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/ja-JP.mjs
-var QO = {};
-QO = {
+var ZO = {};
+ZO = {
collapse: "折りたたむ",
expand: "展開"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/ko-KR.mjs
-var $O = {};
-$O = {
+var QO = {};
+QO = {
collapse: "접기",
expand: "펼치기"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/lt-LT.mjs
-var ek = {};
-ek = {
+var $O = {};
+$O = {
collapse: "Sutraukti",
expand: "Išskleisti"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/lv-LV.mjs
-var tk = {};
-tk = {
+var ek = {};
+ek = {
collapse: "Sakļaut",
expand: "Izvērst"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/nb-NO.mjs
-var nk = {};
-nk = {
+var tk = {};
+tk = {
collapse: "Skjul",
expand: "Utvid"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/nl-NL.mjs
-var rk = {};
-rk = {
+var nk = {};
+nk = {
collapse: "Samenvouwen",
expand: "Uitvouwen"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/pl-PL.mjs
-var ik = {};
-ik = {
+var rk = {};
+rk = {
collapse: "Zwiń",
expand: "Rozwiń"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/pt-BR.mjs
-var ak = {};
-ak = {
+var ik = {};
+ik = {
collapse: "Recolher",
expand: "Expandir"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/pt-PT.mjs
-var ok = {};
-ok = {
+var ak = {};
+ak = {
collapse: "Colapsar",
expand: "Expandir"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/ro-RO.mjs
-var sk = {};
-sk = {
+var ok = {};
+ok = {
collapse: "Restrângeți",
expand: "Extindeți"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/ru-RU.mjs
-var ck = {};
-ck = {
+var sk = {};
+sk = {
collapse: "Свернуть",
expand: "Развернуть"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/sk-SK.mjs
-var lk = {};
-lk = {
+var ck = {};
+ck = {
collapse: "Zbaliť",
expand: "Rozbaliť"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/sl-SI.mjs
-var uk = {};
-uk = {
+var lk = {};
+lk = {
collapse: "Strni",
expand: "Razširi"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/sr-SP.mjs
-var dk = {};
-dk = {
+var uk = {};
+uk = {
collapse: " Skupi",
expand: "Proširi"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/sv-SE.mjs
-var fk = {};
-fk = {
+var dk = {};
+dk = {
collapse: "Dölj",
expand: "Expandera"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/tr-TR.mjs
-var pk = {};
-pk = {
+var fk = {};
+fk = {
collapse: "Daralt",
expand: "Genişlet"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/uk-UA.mjs
-var mk = {};
-mk = {
+var pk = {};
+pk = {
collapse: "Згорнути",
expand: "Розгорнути"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/zh-CN.mjs
-var hk = {};
-hk = {
+var mk = {};
+mk = {
collapse: "折叠",
expand: "扩展"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/zh-TW.mjs
-var gk = {};
-gk = {
+var hk = {};
+hk = {
collapse: "收合",
expand: "展開"
};
//#endregion
//#region node_modules/react-aria/dist/private/tree/intlStrings.mjs
-var _k = {};
-_k = {
- "ar-AE": LO,
- "bg-BG": RO,
- "cs-CZ": zO,
- "da-DK": BO,
- "de-DE": VO,
- "el-GR": HO,
- "en-US": UO,
- "es-ES": WO,
- "et-EE": GO,
- "fi-FI": KO,
- "fr-FR": qO,
- "he-IL": JO,
- "hr-HR": YO,
- "hu-HU": XO,
- "it-IT": ZO,
- "ja-JP": QO,
- "ko-KR": $O,
- "lt-LT": ek,
- "lv-LV": tk,
- "nb-NO": nk,
- "nl-NL": rk,
- "pl-PL": ik,
- "pt-BR": ak,
- "pt-PT": ok,
- "ro-RO": sk,
- "ru-RU": ck,
- "sk-SK": lk,
- "sl-SI": uk,
- "sr-SP": dk,
- "sv-SE": fk,
- "tr-TR": pk,
- "uk-UA": mk,
- "zh-CN": hk,
- "zh-TW": gk
+var gk = {};
+gk = {
+ "ar-AE": IO,
+ "bg-BG": LO,
+ "cs-CZ": RO,
+ "da-DK": zO,
+ "de-DE": BO,
+ "el-GR": VO,
+ "en-US": HO,
+ "es-ES": UO,
+ "et-EE": WO,
+ "fi-FI": GO,
+ "fr-FR": KO,
+ "he-IL": qO,
+ "hr-HR": JO,
+ "hu-HU": YO,
+ "it-IT": XO,
+ "ja-JP": ZO,
+ "ko-KR": QO,
+ "lt-LT": $O,
+ "lv-LV": ek,
+ "nb-NO": tk,
+ "nl-NL": nk,
+ "pl-PL": rk,
+ "pt-BR": ik,
+ "pt-PT": ak,
+ "ro-RO": ok,
+ "ru-RU": sk,
+ "sk-SK": ck,
+ "sl-SI": lk,
+ "sr-SP": uk,
+ "sv-SE": dk,
+ "tr-TR": fk,
+ "uk-UA": pk,
+ "zh-CN": mk,
+ "zh-TW": hk
};
//#endregion
//#region node_modules/react-aria/dist/private/tree/useTreeItem.mjs
function roe(e) {
return e && e.__esModule ? e.default : e;
}
-function vk(e, t, n) {
- let { node: r } = e, i = Jie(e, t, n), a = i.rowProps["aria-expanded"] === !0, o = SS(roe(_k), "@react-aria/tree"), s = {
+function _k(e, t, n) {
+ let { node: r } = e, i = Jie(e, t, n), a = i.rowProps["aria-expanded"] === !0, o = xS(roe(gk), "@react-aria/tree"), s = {
onPress: () => {
i.isDisabled || (t.toggleKey(r.key), t.selectionManager.setFocused(!0), t.selectionManager.setFocusedKey(r.key));
},
excludeFromTabOrder: !0,
preventFocusOnPress: !0,
"data-react-aria-prevent-focus": !0,
- ...uS({
+ ...lS({
"aria-label": a ? o.format("collapse") : o.format("expand"),
"aria-labelledby": i.rowProps.id
})
@@ -29187,15 +29188,15 @@ function vk(e, t, n) {
}
//#endregion
//#region src/react/components/selection-dock.tsx
-var yk = "(prefers-reduced-motion: reduce)", ioe = () => matchMedia(yk).matches, aoe = (e) => {
- let t = matchMedia(yk);
+var vk = "(prefers-reduced-motion: reduce)", ioe = () => matchMedia(vk).matches, aoe = (e) => {
+ let t = matchMedia(vk);
return t.addEventListener("change", e), () => t.removeEventListener("change", e);
-}, bk = /* @__PURE__ */ new Map(), xk = () => {
+}, yk = /* @__PURE__ */ new Map(), bk = () => {
let e = document.documentElement;
- bk.size ? e.style.setProperty("--selection-dock-space", `${Math.max(...bk.values())}px`) : e.style.removeProperty("--selection-dock-space");
+ yk.size ? e.style.setProperty("--selection-dock-space", `${Math.max(...yk.values())}px`) : e.style.removeProperty("--selection-dock-space");
};
function ooe({ children: e, count: t, label: n }) {
- let r = (0, D.useRef)(null), i = Av(), a = (0, D.useSyncExternalStore)(aoe, ioe, () => !1), { isFocusVisible: o } = sx(), s = a || o, c = {
+ let r = (0, D.useRef)(null), i = kv(), a = (0, D.useSyncExternalStore)(aoe, ioe, () => !1), { isFocusVisible: o } = ox(), s = a || o, c = {
opacity: 0,
transform: "translate(-50%, 8px)"
};
@@ -29203,12 +29204,12 @@ function ooe({ children: e, count: t, label: n }) {
let e = r.current;
if (!e || !i) return;
let t = () => {
- bk.set(e, Math.ceil(e.offsetHeight + (parseFloat(getComputedStyle(e).bottom) || 0) + 16)), xk();
+ yk.set(e, Math.ceil(e.offsetHeight + (parseFloat(getComputedStyle(e).bottom) || 0) + 16)), bk();
}, n = new ResizeObserver(t);
return n.observe(e), window.addEventListener("resize", t), t(), () => {
- n.disconnect(), window.removeEventListener("resize", t), bk.delete(e), xk();
+ n.disconnect(), window.removeEventListener("resize", t), yk.delete(e), bk();
};
- }, [i]), /* @__PURE__ */ (0, O.jsxs)(Iy.div, {
+ }, [i]), /* @__PURE__ */ (0, O.jsxs)(Fy.div, {
ref: r,
role: "group",
"aria-label": n,
@@ -29241,12 +29242,12 @@ function ooe({ children: e, count: t, label: n }) {
}), e]
});
}
-function Sk({ visible: e, ...t }) {
- return /* @__PURE__ */ (0, O.jsx)(Nv, { children: e ? /* @__PURE__ */ (0, O.jsx)(ooe, { ...t }, "selection") : null });
+function xk({ visible: e, ...t }) {
+ return /* @__PURE__ */ (0, O.jsx)(Mv, { children: e ? /* @__PURE__ */ (0, O.jsx)(ooe, { ...t }, "selection") : null });
}
//#endregion
//#region src/react/batch-dock/batch-dock-api.ts
-var Ck = {
+var Sk = {
group: "clear",
operation: "clear",
label: "取消",
@@ -29268,7 +29269,7 @@ function soe(e, t = !1) {
glyph: "trash",
danger: !0
},
- Ck
+ Sk
];
case "junk": return [
t ? {
@@ -29289,7 +29290,7 @@ function soe(e, t = !1) {
glyph: "trash",
danger: !0
},
- Ck
+ Sk
];
case "follow": return [
{
@@ -29310,7 +29311,7 @@ function soe(e, t = !1) {
label: "忽略",
glyph: "eye-off"
},
- Ck
+ Sk
];
default: return [
{
@@ -29344,35 +29345,35 @@ function soe(e, t = !1) {
glyph: "trash",
danger: !0
},
- Ck
+ Sk
];
}
}
//#endregion
//#region src/react/batch-dock/batch-dock-island.tsx
-var wk = null, Tk = {
+var Ck = null, wk = {
count: 0,
context: "catalog",
junkDismissed: !1
-}, Ek = /* @__PURE__ */ new Set();
+}, Tk = /* @__PURE__ */ new Set();
function coe(e) {
- return Ek.add(e), () => {
- Ek.delete(e);
+ return Tk.add(e), () => {
+ Tk.delete(e);
};
}
function loe() {
- for (let e of [...Ek]) e();
+ for (let e of [...Tk]) e();
}
var uoe = { render(e) {
- Tk = e, (0, Tt.flushSync)(loe);
+ wk = e, (0, Tt.flushSync)(loe);
} };
function doe(e) {
- return wk = e, uoe;
+ return Ck = e, uoe;
}
function foe() {
- let e = (0, D.useSyncExternalStore)(coe, () => Tk);
- return wk ? /* @__PURE__ */ (0, O.jsx)(poe, {
- host: wk,
+ let e = (0, D.useSyncExternalStore)(coe, () => wk);
+ return Ck ? /* @__PURE__ */ (0, O.jsx)(poe, {
+ host: Ck,
props: e
}) : null;
}
@@ -29386,7 +29387,7 @@ function poe({ host: e, props: t }) {
className: "peach-react",
"data-batch-scope": "",
"data-context": t.context,
- children: /* @__PURE__ */ (0, O.jsx)(Sk, {
+ children: /* @__PURE__ */ (0, O.jsx)(xk, {
label: "所选项目操作",
visible: t.count > 0,
count: `已选 ${t.count.toLocaleString()} 项`,
@@ -29407,7 +29408,7 @@ function poe({ host: e, props: t }) {
}
//#endregion
//#region src/number-setting.ts
-function Dk(e, t, n, r) {
+function Ek(e, t, n, r) {
return Number.isInteger(e) && e >= t && e <= n ? e : r;
}
//#endregion
@@ -29432,7 +29433,7 @@ function moe(e, t) {
}
//#endregion
//#region src/sort-preferences.ts
-var Ok = [
+var Dk = [
["seed", "随机"],
["rating", "评分"],
["o", "高潮计数"],
@@ -29441,7 +29442,7 @@ var Ok = [
["size", "体积"],
["new", "入库时间"],
["played", "观看时间"]
-], kk = ["release", "发行时间"], Ak = [...Ok, kk].map(([e]) => e), jk = {
+], Ok = ["release", "发行时间"], kk = [...Dk, Ok].map(([e]) => e), Ak = {
rating: ["从高到低", "从低到高"],
o: ["从多到少", "从少到多"],
plays: ["从多到少", "从少到多"],
@@ -29450,28 +29451,28 @@ var Ok = [
new: ["从新到旧", "从旧到新"],
played: ["从近到远", "从远到近"],
release: ["从新到旧", "从旧到新"]
-}, Mk = {
+}, jk = {
big: ["size", "desc"],
short: ["dur", "asc"],
long: ["dur", "desc"]
-}, Nk = (e, t, n = jk) => (n[e] || [])[+(t === "asc")] || "", Pk = (e, t = jk) => t[e] ? "desc" : "";
-function Fk(e, t, n, r = jk) {
+}, Mk = (e, t, n = Ak) => (n[e] || [])[+(t === "asc")] || "", Nk = (e, t = Ak) => t[e] ? "desc" : "";
+function Pk(e, t, n, r = Ak) {
return e === t ? r[e] ? {
sort: e,
dir: n === "asc" ? "desc" : "asc"
} : null : {
sort: e,
- dir: Pk(e, r)
+ dir: Nk(e, r)
};
}
-function Ik(e, t, n) {
+function Fk(e, t, n) {
return e === "seed" ? "" : e === t && n === "asc" ? "asc" : "desc";
}
-function Lk(e, t, n, r, i = n) {
- let a = e ? Mk[e] : void 0, o = a ? a[0] : e, s = o && Ak.includes(o) ? o : i;
- return jk[s] ? {
+function Ik(e, t, n, r, i = n) {
+ let a = e ? jk[e] : void 0, o = a ? a[0] : e, s = o && kk.includes(o) ? o : i;
+ return Ak[s] ? {
sort: s,
- dir: t === "asc" || t === "desc" ? t : a ? a[1] : e ? "desc" : Ik(s, n, r)
+ dir: t === "asc" || t === "desc" ? t : a ? a[1] : e ? "desc" : Fk(s, n, r)
} : {
sort: s,
dir: ""
@@ -29479,7 +29480,7 @@ function Lk(e, t, n, r, i = n) {
}
//#endregion
//#region src/appearance/home-glow.ts
-var Rk = [
+var Lk = [
"spot1",
"spot2",
"spot3"
@@ -29487,7 +29488,7 @@ var Rk = [
"光晕一",
"光晕二",
"光晕三"
-], zk = "native", Bk = [
+], Rk = "native", zk = [
[
"ash",
"灰雾",
@@ -29793,7 +29794,7 @@ var Rk = [
"rose"
],
[
- zk,
+ Rk,
"玻璃原色",
{
spot1: {
@@ -29811,7 +29812,7 @@ var Rk = [
},
"blue"
]
-], Vk = (e) => e === zk, Hk = [...Bk.map(([e, t]) => [e, t]), ["custom", "自定义"]], goe = (e) => (Hk.find(([t]) => t === e) || Hk[0])[1], Uk = (e) => structuredClone((Bk.find(([t]) => t === e) || Bk[0])[2]), Wk = [
+], Bk = (e) => e === Rk, Vk = [...zk.map(([e, t]) => [e, t]), ["custom", "自定义"]], goe = (e) => (Vk.find(([t]) => t === e) || Vk[0])[1], Hk = (e) => structuredClone((zk.find(([t]) => t === e) || zk[0])[2]), Uk = [
["red", "红"],
["orange", "橙"],
["amber", "琥珀"],
@@ -29824,7 +29825,7 @@ var Rk = [
["violet", "紫罗兰"],
["fuchsia", "品红"],
["rose", "玫红"]
-], Gk = "blue", Kk = (e) => Wk.some(([t]) => t === e) ? e : Gk, _oe = (e) => (Bk.find(([t]) => t === e) || [])[3] || "blue", voe = [
+], Wk = "blue", Gk = (e) => Uk.some(([t]) => t === e) ? e : Wk, _oe = (e) => (zk.find(([t]) => t === e) || [])[3] || "blue", voe = [
["all", "全部"],
["gray", "灰"],
["red", "红"],
@@ -30230,7 +30231,7 @@ var Rk = [
"霁蓝",
"#6686b8"
]
-], qk = (e, t, n, r) => Number.isInteger(e) && e >= t && e <= n ? e : r, Jk = (e, t) => /^#[0-9a-f]{6}$/i.test(String(e)) ? String(e).toLowerCase() : t, boe = (e, t) => `rgba(${[
+], Kk = (e, t, n, r) => Number.isInteger(e) && e >= t && e <= n ? e : r, qk = (e, t) => /^#[0-9a-f]{6}$/i.test(String(e)) ? String(e).toLowerCase() : t, boe = (e, t) => `rgba(${[
1,
3,
5
@@ -30260,7 +30261,7 @@ var Rk = [
100,
50
]
-}, Yk = {
+}, Jk = {
on: !0,
preset: "ash",
strength: 100,
@@ -30268,48 +30269,48 @@ var Rk = [
speed: 100,
soften: 50,
size: 50,
- ...Uk("ash")
+ ...Hk("ash")
};
-function Xk(e) {
- let t = e && typeof e == "object" ? e : {}, n = Hk.some(([e]) => e === t.preset), r = n ? t.preset : "ash", i = Uk(r === "custom" ? "ash" : r), a = {
+function Yk(e) {
+ let t = e && typeof e == "object" ? e : {}, n = Vk.some(([e]) => e === t.preset), r = n ? t.preset : "ash", i = Hk(r === "custom" ? "ash" : r), a = {
on: t.on !== !1,
preset: r
};
- for (let [e, [n, r, i]] of Object.entries(xoe)) a[e] = qk(+t[e], n, r, i);
- for (let e of Rk) {
+ for (let [e, [n, r, i]] of Object.entries(xoe)) a[e] = Kk(+t[e], n, r, i);
+ for (let e of Lk) {
let r = n && t[e] && typeof t[e] == "object" ? t[e] : {}, o = i[e];
a[e] = {
- color: Jk(r.color, o.color),
- alpha: qk(+r.alpha, 0, 100, o.alpha)
+ color: qk(r.color, o.color),
+ alpha: Kk(+r.alpha, 0, 100, o.alpha)
};
}
return a;
}
-var Soe = (e) => `conic-gradient(from -90deg,${e.map((t, n) => `${t} ${(n * 100 / e.length).toFixed(3)}% ${((n + 1) * 100 / e.length).toFixed(3)}%`).join(",")})`, Zk = /* @__PURE__ */ new WeakMap();
+var Soe = (e) => `conic-gradient(from -90deg,${e.map((t, n) => `${t} ${(n * 100 / e.length).toFixed(3)}% ${((n + 1) * 100 / e.length).toFixed(3)}%`).join(",")})`, Xk = /* @__PURE__ */ new WeakMap();
function Coe(e, t) {
if (!e) return;
- let n = Zk.get(e);
- n || (n = /* @__PURE__ */ new Map(), Zk.set(e, n));
- let r = t.on && !Vk(t.preset), i = (t, r) => {
+ let n = Xk.get(e);
+ n || (n = /* @__PURE__ */ new Map(), Xk.set(e, n));
+ let r = t.on && !Bk(t.preset), i = (t, r) => {
n.get(t) !== r && (n.set(t, r), e.style.setProperty(t, r));
};
- i("--glow-strength", String(r ? t.strength / 100 : 0)), i("--glow-noise", String(r ? t.noise / 100 : 0)), i("--glow-soften", (.7 + t.soften / 100 * .6).toFixed(3)), i("--glow-size", (.5 + t.size / 100).toFixed(3)), i("--glow-drift-scale", t.speed ? (100 / t.speed).toFixed(3) : "1"), i("--glow-drift-play", t.speed ? "running" : "paused"), Rk.forEach((e, n) => {
+ i("--glow-strength", String(r ? t.strength / 100 : 0)), i("--glow-noise", String(r ? t.noise / 100 : 0)), i("--glow-soften", (.7 + t.soften / 100 * .6).toFixed(3)), i("--glow-size", (.5 + t.size / 100).toFixed(3)), i("--glow-drift-scale", t.speed ? (100 / t.speed).toFixed(3) : "1"), i("--glow-drift-play", t.speed ? "running" : "paused"), Lk.forEach((e, n) => {
let r = t[e];
i(`--glow-spot-${n + 1}-color`, boe(r.color, r.alpha));
});
}
-function Qk(e, t) {
+function Zk(e, t) {
if (!e) return;
- let n = !t.on || Vk(t.preset);
+ let n = !t.on || Bk(t.preset);
e.toggleAttribute("data-glow-native", n), e.style.setProperty("--glow-drift-scale", t.speed ? (100 / t.speed).toFixed(3) : "1"), e.style.setProperty("--glow-drift-play", t.speed ? "running" : "paused"), n ? (e.style.removeProperty("--glass-tint-a"), e.style.removeProperty("--glass-tint-b")) : (e.style.setProperty("--glass-tint-a", t.spot1.color), e.style.setProperty("--glass-tint-b", t.spot2.color));
}
//#endregion
//#region src/appearance/settings.ts
-var $k = "peach.settings.v1", eA = [
+var Qk = "peach.settings.v1", $k = [
"system",
"light",
"dark"
-], tA = [
+], eA = [
0,
7,
30,
@@ -30318,7 +30319,7 @@ var $k = "peach.settings.v1", eA = [
"feedHideGroupCompilations",
"feedHideSoloCompilations",
"feedHideExcerpts"
-], nA = {
+], tA = {
batchSize: 60,
defaultSort: "seed",
sortDefaultsVersion: 3,
@@ -30339,19 +30340,19 @@ var $k = "peach.settings.v1", eA = [
theme: "system",
groupCollapse: !0,
sidebarOrder: [...hl],
- homeGlow: Yk,
- accent: Gk
-}, rA = (e, t, n) => t.includes(e) ? e : n;
+ homeGlow: Jk,
+ accent: Wk
+}, nA = (e, t, n) => t.includes(e) ? e : n;
function Toe(e) {
let t = e && typeof e == "object" ? e : {}, n = {
- ...nA,
+ ...tA,
...t
};
- n.followInitialDays = tA.includes(+n.followInitialDays) ? +n.followInitialDays : 30, delete n.rotateMinutes;
+ n.followInitialDays = eA.includes(+n.followInitialDays) ? +n.followInitialDays : 30, delete n.rotateMinutes;
let r = !1, i = +n.sortDefaultsVersion || 0;
i < 2 && n.defaultSort === "new" && (n.defaultSort = "seed", r = !0);
- let a = Mk[n.defaultSort];
- return i < 3 && a && (n.defaultSort = a[0], r = !0), n.sortDefaultsVersion = 3, n.batchSize = Dk(+n.batchSize, 1, 200, 60), n.defaultSort = rA(n.defaultSort, Ak, "seed"), n.hoverDelaySeconds = Dk(+n.hoverDelaySeconds, 0, 60, 5), n.seekSeconds = Dk(+n.seekSeconds, 1, 300, 10), delete n.loginDays, delete n.metadataRefreshDays, n.ambientMode = n.ambientMode !== !1, n.theaterMode = n.theaterMode === !0, n.groupCollapse = n.groupCollapse !== !1, n.detailAutoplay = n.detailAutoplay !== !1, n.miniplayer = n.miniplayer !== !1, n.uiSounds = n.uiSounds !== !1, n.feedAutoScroll = n.feedAutoScroll !== !1, n.feedHideGroupCompilations = n.feedHideGroupCompilations !== !1, n.feedHideSoloCompilations = n.feedHideSoloCompilations === !0, n.feedHideExcerpts = n.feedHideExcerpts !== !1, n.searchHistoryLimit = Dk(+n.searchHistoryLimit, 0, 50, 10), n.relatedLimit = Dk(+n.relatedLimit, 0, 60, 20), n.feedLimit = Dk(+n.feedLimit, 1, 100, 12), Object.assign(n, ba(n)), n.theme = rA(n.theme, eA, "system"), n.homeGlow = Xk(n.homeGlow), n.accent = Kk(n.accent), n.sidebarOrder = yl(n.sidebarOrder), {
+ let a = jk[n.defaultSort];
+ return i < 3 && a && (n.defaultSort = a[0], r = !0), n.sortDefaultsVersion = 3, n.batchSize = Ek(+n.batchSize, 1, 200, 60), n.defaultSort = nA(n.defaultSort, kk, "seed"), n.hoverDelaySeconds = Ek(+n.hoverDelaySeconds, 0, 60, 5), n.seekSeconds = Ek(+n.seekSeconds, 1, 300, 10), delete n.loginDays, delete n.metadataRefreshDays, n.ambientMode = n.ambientMode !== !1, n.theaterMode = n.theaterMode === !0, n.groupCollapse = n.groupCollapse !== !1, n.detailAutoplay = n.detailAutoplay !== !1, n.miniplayer = n.miniplayer !== !1, n.uiSounds = n.uiSounds !== !1, n.feedAutoScroll = n.feedAutoScroll !== !1, n.feedHideGroupCompilations = n.feedHideGroupCompilations !== !1, n.feedHideSoloCompilations = n.feedHideSoloCompilations === !0, n.feedHideExcerpts = n.feedHideExcerpts !== !1, n.searchHistoryLimit = Ek(+n.searchHistoryLimit, 0, 50, 10), n.relatedLimit = Ek(+n.relatedLimit, 0, 60, 20), n.feedLimit = Ek(+n.feedLimit, 1, 100, 12), Object.assign(n, ba(n)), n.theme = nA(n.theme, $k, "system"), n.homeGlow = Yk(n.homeGlow), n.accent = Gk(n.accent), n.sidebarOrder = yl(n.sidebarOrder), {
settings: n,
migrated: r
};
@@ -30363,22 +30364,22 @@ function Eoe(e) {
} catch {}
return Toe(t);
}
-var iA = null;
-function aA() {
- if (iA) return iA;
+var rA = null;
+function iA() {
+ if (rA) return rA;
let { settings: e, migrated: t } = Eoe(localStorage);
- return iA = moe($k, e), t && iA.save(), iA;
+ return rA = moe(Qk, e), t && rA.save(), rA;
}
-function oA(e, t, n = aA()) {
+function aA(e, t, n = iA()) {
let r = n.value, i = e && e.followInitialDays;
- tA.includes(i) && (r.followInitialDays = i, n.save());
+ eA.includes(i) && (r.followInitialDays = i, n.save());
for (let t of woe) typeof e?.[t] == "boolean" && e[t] !== r[t] && (r[t] = e[t], n.save());
let a = e && e.searchHistoryLimit;
- Number.isInteger(a) && a >= 0 && a <= 50 ? a !== r.searchHistoryLimit && (r.searchHistoryLimit = Dk(a, 0, 50, 10), n.save(), t("searchHistoryLimit")) : e && e.searchHistoryLimit === null && r.searchHistoryLimit !== nA.searchHistoryLimit && Doe(n);
+ Number.isInteger(a) && a >= 0 && a <= 50 ? a !== r.searchHistoryLimit && (r.searchHistoryLimit = Ek(a, 0, 50, 10), n.save(), t("searchHistoryLimit")) : e && e.searchHistoryLimit === null && r.searchHistoryLimit !== tA.searchHistoryLimit && Doe(n);
let o = Array.isArray(e && e.sidebarOrder) ? e.sidebarOrder : null;
o && o.length && o.join(",") !== r.sidebarOrder.join(",") && (r.sidebarOrder = o, n.save());
}
-function Doe(e = aA()) {
+function Doe(e = iA()) {
return z("/api/settings", {
method: "POST",
body: JSON.stringify({ searchHistoryLimit: e.value.searchHistoryLimit })
@@ -30402,32 +30403,32 @@ var Ooe = [
"深色",
"moon"
]
-], koe = null, sA = () => koe ??= matchMedia("(prefers-color-scheme: dark)"), cA = null;
+], koe = null, oA = () => koe ??= matchMedia("(prefers-color-scheme: dark)"), sA = null;
function Aoe() {
- return cA || (cA = document.createElement("style"), cA.textContent = "*:not(.board-theme-thumb),*::before,*::after{transition:none!important}"), cA.isConnected || document.head.append(cA), () => {
+ return sA || (sA = document.createElement("style"), sA.textContent = "*:not(.board-theme-thumb),*::before,*::after{transition:none!important}"), sA.isConnected || document.head.append(sA), () => {
getComputedStyle(document.documentElement).opacity;
let e = () => {
- cancelAnimationFrame(t), clearTimeout(n), cA?.remove();
+ cancelAnimationFrame(t), clearTimeout(n), sA?.remove();
}, t = requestAnimationFrame(e), n = setTimeout(e, 100);
};
}
-function lA(e = aA().value.theme) {
+function cA(e = iA().value.theme) {
let t = Aoe(), n = document.documentElement;
e === "system" ? delete n.dataset.theme : n.dataset.theme = e;
- let r = e === "dark" || e === "system" && sA().matches;
+ let r = e === "dark" || e === "system" && oA().matches;
n.classList.toggle("dark", r), document.querySelectorAll("[data-board-theme]").forEach((e) => e.setAttribute("aria-pressed", String(e.dataset.boardTheme === "dark" === r))), document.querySelector(".board-theme-toggle")?.classList.toggle("is-dark", r), document.querySelectorAll("meta[data-theme-color]").forEach((e) => {
e.media = e.dataset.themeColor === "dark" === r ? "all" : "not all";
}), t();
}
-var uA = !1;
+var lA = !1;
function joe() {
- uA || (uA = !0, sA().addEventListener("change", () => {
- aA().value.theme === "system" && lA();
+ lA || (lA = !0, oA().addEventListener("change", () => {
+ iA().value.theme === "system" && cA();
}));
}
//#endregion
//#region src/appearance/layout.ts
-var dA = [[
+var uA = [[
"big",
"大图",
"maximize"
@@ -30435,7 +30436,7 @@ var dA = [[
"small",
"小图",
"layout-grid"
-]], fA = [[
+]], dA = [[
"big",
"大图",
"maximize"
@@ -30443,7 +30444,7 @@ var dA = [[
"small",
"小图",
"layout-grid"
-]], pA = [[
+]], fA = [[
"fixed",
"固定比例",
"layout-grid"
@@ -30451,116 +30452,116 @@ var dA = [[
"masonry",
"瀑布流",
"columns-2"
-]], mA = .75, hA = () => aA().value, gA = (e = hA()) => ya(e.javLayout), Moe = (e = hA()) => ya(e.homeLayout), _A = (e, t = hA()) => e ? Moe(t) : gA(t), vA = fA.map(([e]) => e), yA = pA.map(([e]) => e), bA = (e = hA()) => rA(e.photoSize, vA, "small"), xA = (e = hA()) => rA(e.photoLayout, yA, "masonry"), SA = null;
-function CA(e, t = hA()) {
+]], pA = .75, mA = () => iA().value, hA = (e = mA()) => ya(e.javLayout), Moe = (e = mA()) => ya(e.homeLayout), gA = (e, t = mA()) => e ? Moe(t) : hA(t), _A = dA.map(([e]) => e), vA = fA.map(([e]) => e), yA = (e = mA()) => nA(e.photoSize, _A, "small"), bA = (e = mA()) => nA(e.photoLayout, vA, "masonry"), xA = null;
+function SA(e, t = mA()) {
let n = {
active: e.active,
- size: _A(e.home, t),
+ size: gA(e.home, t),
portrait: e.portrait,
javImage: t.javImage
- }, r = SA;
- return (!r || Object.keys(n).some((e) => n[e] !== r[e])) && (SA = n), SA;
+ }, r = xA;
+ return (!r || Object.keys(n).some((e) => n[e] !== r[e])) && (xA = n), xA;
}
-function wA(e) {
- return e.portrait ? 9 / 16 : e.active && e.size === "big" ? mA : 16 / 9;
+function CA(e) {
+ return e.portrait ? 9 / 16 : e.active && e.size === "big" ? pA : 16 / 9;
}
-function Noe(e, t = aA()) {
+function Noe(e, t = iA()) {
t.value.homeLayout = ya(e), t.save();
}
-function TA(e, t = aA()) {
+function wA(e, t = iA()) {
t.value.javLayout = ya(e), t.save();
}
-function Poe(e, t = aA()) {
+function Poe(e, t = iA()) {
t.value.homeLayout = t.value.javLayout = ya(e), t.save();
}
-function Foe(e, t = aA()) {
- t.value.photoSize = rA(e, vA, "small"), t.save();
+function Foe(e, t = iA()) {
+ t.value.photoSize = nA(e, _A, "small"), t.save();
}
-function EA(e, t = aA()) {
- t.value.photoLayout = rA(e, yA, "masonry"), t.save();
+function TA(e, t = iA()) {
+ t.value.photoLayout = nA(e, vA, "masonry"), t.save();
}
//#endregion
//#region src/appearance/density.ts
-var DA = "density", OA = {
+var EA = "density", DA = {
big: "336px",
dense: "168px"
-}, kA = () => localStorage.getItem(DA) === "dense" ? "dense" : "big";
-function AA(e, t) {
- let [n, r] = fA;
+}, OA = () => localStorage.getItem(EA) === "dense" ? "dense" : "big";
+function kA(e, t) {
+ let [n, r] = dA;
if (e.querySelector("[data-icon-swap]")) ls(e, t === r[0] ? "b" : "a");
else {
let i = e.querySelector(":scope > [data-glass-drift]");
e.innerHTML = cs(n[2], r[2], t === r[0] ? "b" : "a"), i && e.append(i);
}
- jA(e, "aria-label", t === "big" ? "切换为小图" : "切换为大图");
+ AA(e, "aria-label", t === "big" ? "切换为小图" : "切换为大图");
}
-function jA(e, t, n) {
+function AA(e, t, n) {
e.getAttribute(t) !== n && e.setAttribute(t, n);
}
-var MA = () => document.querySelector("#density");
-function NA(e = kA()) {
+var jA = () => document.querySelector("#density");
+function MA(e = OA()) {
let t = document.documentElement;
- t.style.getPropertyValue("--tile") !== OA[e] && t.style.setProperty("--tile", OA[e]), jA(document.body, "data-density", e);
- let n = MA();
- n && (jA(n, "aria-pressed", String(e === "dense")), jA(n, "title", "当前:" + (e === "big" ? "大图" : "密集")), AA(n, e === "big" ? "big" : "small"));
+ t.style.getPropertyValue("--tile") !== DA[e] && t.style.setProperty("--tile", DA[e]), AA(document.body, "data-density", e);
+ let n = jA();
+ n && (AA(n, "aria-pressed", String(e === "dense")), AA(n, "title", "当前:" + (e === "big" ? "大图" : "密集")), kA(n, e === "big" ? "big" : "small"));
}
function Ioe() {
- let e = kA() === "big" ? "dense" : "big";
- localStorage.setItem(DA, e), NA(e);
+ let e = OA() === "big" ? "dense" : "big";
+ localStorage.setItem(EA, e), MA(e);
}
function Loe(e) {
- let t = MA();
- t && (jA(t, "aria-pressed", String(e === "small")), jA(t, "title", "当前:" + (e === "big" ? "大图" : "小图")), AA(t, e));
+ let t = jA();
+ t && (AA(t, "aria-pressed", String(e === "small")), AA(t, "title", "当前:" + (e === "big" ? "大图" : "小图")), kA(t, e));
}
//#endregion
//#region src/appearance/glow.ts
-function PA(e = aA()) {
+function NA(e = iA()) {
Coe(document.querySelector(".glowlayer"), e.value.homeGlow);
}
-var FA = 0;
-function IA(e = aA()) {
- FA ||= requestAnimationFrame(() => {
- FA = 0, PA(e);
+var PA = 0;
+function FA(e = iA()) {
+ PA ||= requestAnimationFrame(() => {
+ PA = 0, NA(e);
});
}
-function LA(e = aA()) {
- Qk(document.documentElement, e.value.homeGlow);
+function IA(e = iA()) {
+ Zk(document.documentElement, e.value.homeGlow);
}
-function RA(e = aA()) {
+function LA(e = iA()) {
document.documentElement.dataset.accent = e.value.accent;
}
-var zA = (e, t, n) => ({
+var RA = (e, t, n) => ({
key: e,
label: t,
- native: Vk(e),
- fill: Vk(e) ? "" : Soe(n)
+ native: Bk(e),
+ fill: Bk(e) ? "" : Soe(n)
});
function Roe(e) {
- let t = Bk.map(([e, t, n]) => zA(e, t, Rk.map((e) => n[e].color)));
- return e.preset === "custom" && t.push(zA("custom", "自定义", Rk.map((t) => e[t].color))), t;
+ let t = zk.map(([e, t, n]) => RA(e, t, Lk.map((e) => n[e].color)));
+ return e.preset === "custom" && t.push(RA("custom", "自定义", Lk.map((t) => e[t].color))), t;
}
-var BA = Wk;
-function zoe(e, t = aA()) {
+var zA = Uk;
+function zoe(e, t = iA()) {
if (e === "custom") return;
let n = t.value.homeGlow;
- n.preset = e, Object.assign(n, Uk(e)), t.value.accent = _oe(e), t.save(), IA(t), LA(t), RA(t);
+ n.preset = e, Object.assign(n, Hk(e)), t.value.accent = _oe(e), t.save(), FA(t), IA(t), LA(t);
}
-function Boe(e, t = aA()) {
- t.value.accent = Kk(e), t.save(), RA(t);
+function Boe(e, t = iA()) {
+ t.value.accent = Gk(e), t.save(), LA(t);
}
-function Voe(e = aA()) {
+function Voe(e = iA()) {
let t = e.value.homeGlow;
- t.preset = Yk.preset, Object.assign(t, Uk(t.preset)), e.value.accent = Gk, e.save(), IA(e), LA(e), RA(e);
+ t.preset = Jk.preset, Object.assign(t, Hk(t.preset)), e.value.accent = Wk, e.save(), FA(e), IA(e), LA(e);
}
-function VA(e, t) {
- e.style.setProperty("--glow-swatch", t.on ? t.spot1.color : "var(--color-accent-500)"), e.toggleAttribute("data-glow-native", t.on && Vk(t.preset)), e.toggleAttribute("data-glow-off", !t.on);
+function BA(e, t) {
+ e.style.setProperty("--glow-swatch", t.on ? t.spot1.color : "var(--color-accent-500)"), e.toggleAttribute("data-glow-native", t.on && Bk(t.preset)), e.toggleAttribute("data-glow-off", !t.on);
}
-function Hoe(e, t = aA()) {
- return VA(e, t.value.homeGlow), t.subscribe(() => VA(e, t.value.homeGlow));
+function Hoe(e, t = iA()) {
+ return BA(e, t.value.homeGlow), t.subscribe(() => BA(e, t.value.homeGlow));
}
//#endregion
//#region src/react/components/glow-preset-grid.tsx
-function HA({ store: e, label: t, hidden: n }) {
+function VA({ store: e, label: t, hidden: n }) {
let r = e.value.homeGlow;
return /* @__PURE__ */ (0, O.jsx)("div", {
"data-glow-grid": "",
@@ -30586,12 +30587,12 @@ function HA({ store: e, label: t, hidden: n }) {
}
//#endregion
//#region src/react/glow-picker/glow-picker-island.tsx
-var UA = null;
+var HA = null;
function Uoe(e) {
- UA = e;
+ HA = e;
}
function Woe() {
- return UA ? /* @__PURE__ */ (0, O.jsx)(Goe, { host: UA }) : null;
+ return HA ? /* @__PURE__ */ (0, O.jsx)(Goe, { host: HA }) : null;
}
function Goe({ host: e }) {
let { store: t } = e;
@@ -30609,7 +30610,7 @@ function Goe({ host: e }) {
children: "重置"
})]
}),
- /* @__PURE__ */ (0, O.jsx)(HA, {
+ /* @__PURE__ */ (0, O.jsx)(VA, {
store: t,
label: "光晕",
hidden: !n.on
@@ -30623,7 +30624,7 @@ function Goe({ host: e }) {
"data-accent-grid": "",
role: "group",
"aria-label": "强调色",
- children: BA.map(([e, n]) => /* @__PURE__ */ (0, O.jsx)("button", {
+ children: zA.map(([e, n]) => /* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
"data-glow-chip": "",
"data-accent": e,
@@ -30649,32 +30650,32 @@ function Goe({ host: e }) {
}
//#endregion
//#region src/player/host.ts
-var WA = null;
+var UA = null;
function Koe(e) {
- WA = e;
+ UA = e;
}
-function GA() {
- if (!WA) throw Error("播放器还没有接上宿主(configurePlayer)");
- return WA;
+function WA() {
+ if (!UA) throw Error("播放器还没有接上宿主(configurePlayer)");
+ return UA;
}
//#endregion
//#region src/player/menu.ts
-var KA = null;
-function qA(e) {
- KA = e;
+var GA = null;
+function KA(e) {
+ GA = e;
}
-function JA() {
+function qA() {
let e = document.getElementById("playerMenu");
return e || (e = document.createElement("div"), e.className = "popmenu", e.setAttribute("data-player-context-menu", ""), e.id = "playerMenu", e.setAttribute("role", "menu"), e.setAttribute("aria-label", "播放器菜单"), e.hidden = !0, document.body.append(e)), e;
}
-var YA = null, XA = (e, t) => t ? e.replace("<svg", `<svg ${t}=""`) : e;
-function ZA() {
+var JA = null, YA = (e, t) => t ? e.replace("<svg", `<svg ${t}=""`) : e;
+function XA() {
let e = document.getElementById("playerMenu");
e?.matches(":popover-open") && e.hidePopover(), e && e.parentElement !== document.body && document.body.append(e), e && To(e, () => {
e.innerHTML = "";
- }), YA &&= (YA(), null);
+ }), JA &&= (JA(), null);
}
-async function QA(e) {
+async function ZA(e) {
try {
return await navigator.clipboard.writeText(e), !0;
} catch {
@@ -30687,8 +30688,8 @@ async function QA(e) {
return t.remove(), n;
}
}
-function $A(e) {
- let t = !!KA?.inMiniplayer(e), n = e.peachItem, r = KA?.kind(e) ?? "item", i = (t) => {
+function QA(e) {
+ let t = !!GA?.inMiniplayer(e), n = e.peachItem, r = GA?.kind(e) ?? "item", i = (t) => {
let i = new URL(r === "follow" ? `/posts/${n?.id}` : `/assets/${n?.id}`, location.origin);
if (r !== "follow" && location.pathname === i.pathname) {
let e = new URLSearchParams(location.search);
@@ -30704,7 +30705,7 @@ function $A(e) {
}
return t && i.searchParams.set("t", String(Math.floor(e.currentTime() || 0))), i.href;
}, a = (e, t) => {
- QA(i(e)).then((e) => GA().toast(e ? t : "复制失败,请手动复制地址栏", {
+ ZA(i(e)).then((e) => WA().toast(e ? t : "复制失败,请手动复制地址栏", {
timeout: 4e3,
warn: !e
}));
@@ -30716,11 +30717,11 @@ function $A(e) {
}, t ? {
icon: "maximize-2",
label: "展开",
- run: () => KA?.expand()
+ run: () => GA?.expand()
} : {
icon: "picture-in-picture-2",
label: "迷你播放器",
- run: () => KA?.toMiniplayer()
+ run: () => GA?.toMiniplayer()
}];
document.pictureInPictureEnabled && o.push({
icon: "player-pip",
@@ -30743,29 +30744,29 @@ function $A(e) {
run: () => s.click()
}), o;
}
-function ej(e, t, n) {
- let r = JA();
- ZA();
- let i = GA().stage();
+function $A(e, t, n) {
+ let r = qA();
+ XA();
+ let i = WA().stage();
i instanceof HTMLDialogElement && i.open && i.append(r), r.setAttribute("popover", "manual");
- let a = $A(e);
+ let a = QA(e);
r.innerHTML = a.map((e, t) => {
let n = e.checked !== void 0;
- return `<button type="button" role="${n ? "menuitemcheckbox" : "menuitem"}"${n ? ` aria-checked="${e.checked}"` : ""} data-player-menu="${t}">${XA(R(e.icon), e.fill ? "data-player-menu-fill" : "")}<span>${B(e.label)}</span>${n ? XA(R("check"), "data-player-menu-check") : ""}</button>`;
+ return `<button type="button" role="${n ? "menuitemcheckbox" : "menuitem"}"${n ? ` aria-checked="${e.checked}"` : ""} data-player-menu="${t}">${YA(R(e.icon), e.fill ? "data-player-menu-fill" : "")}<span>${B(e.label)}</span>${n ? YA(R("check"), "data-player-menu-check") : ""}</button>`;
}).join(""), wo(r), r.showPopover(), r.style.left = `${Math.max(8, Math.min(t, innerWidth - r.offsetWidth - 8))}px`, r.style.top = `${Math.max(8, Math.min(n, innerHeight - r.offsetHeight - 8))}px`;
let o = [...r.querySelectorAll("[data-player-menu]")];
o.forEach((e) => {
e.onclick = (t) => {
t.stopPropagation();
let n = a[Number(e.dataset.playerMenu)];
- ZA(), n?.run();
+ XA(), n?.run();
};
});
let s = (e) => {
- r.contains(e.target) || ZA();
+ r.contains(e.target) || XA();
}, c = (e) => {
if (e.key === "Escape") {
- e.preventDefault(), e.stopPropagation(), ZA();
+ e.preventDefault(), e.stopPropagation(), XA();
return;
}
if (e.key !== "ArrowDown" && e.key !== "ArrowUp") return;
@@ -30773,36 +30774,36 @@ function ej(e, t, n) {
let t = o.indexOf(document.activeElement);
o[(t + (e.key === "ArrowDown" ? 1 : -1) + o.length) % o.length]?.focus();
}, l = (t) => {
- Do(t, e.el()) && ZA();
+ Do(t, e.el()) && XA();
};
setTimeout(() => {
document.addEventListener("pointerdown", s, !0), document.addEventListener("keydown", c, !0), window.addEventListener("scroll", l, {
capture: !0,
passive: !0
});
- }, 0), YA = () => {
+ }, 0), JA = () => {
document.removeEventListener("pointerdown", s, !0), document.removeEventListener("keydown", c, !0), window.removeEventListener("scroll", l, !0);
}, o[0]?.focus();
}
function qoe(e) {
e.el().addEventListener("contextmenu", (t) => {
- t.target.closest(".vjs-peach-settings-menu") || (t.preventDefault(), ej(e, t.clientX, t.clientY));
- }), e.on("dispose", ZA);
+ t.target.closest(".vjs-peach-settings-menu") || (t.preventDefault(), $A(e, t.clientX, t.clientY));
+ }), e.on("dispose", XA);
}
//#endregion
//#region src/player/registry.ts
-var tj = null, nj = () => tj;
-function rj(e) {
- tj = e;
+var ej = null, tj = () => ej;
+function nj(e) {
+ ej = e;
}
-function ij(e) {
+function rj(e) {
e && !e.isDisposed() && requestAnimationFrame(() => {
e.isDisposed() || e.trigger("resize");
});
}
//#endregion
//#region src/player/stats.ts
-function aj(e) {
+function ij(e) {
let t = e.currentTime || 0;
for (let n = 0; n < e.buffered.length; n++) if (e.buffered.start(n) <= t && e.buffered.end(n) >= t) return Math.max(0, e.buffered.end(n) - t);
return 0;
@@ -30812,8 +30813,8 @@ function Joe(e) {
for (let n = 0; n < e.buffered.length; n++) if (e.buffered.start(n) <= t + .25 && e.buffered.end(n) >= t) return e.buffered.end(n);
return e.buffered.length ? e.buffered.end(e.buffered.length - 1) : 0;
}
-var oj = 3e3;
-function sj(e, t) {
+var aj = 3e3;
+function oj(e, t) {
let n = Number(e) || 0, r = mn(t) || 0;
return n > 0 && r > 0 ? n * 8 / r : 0;
}
@@ -30835,7 +30836,7 @@ function Yoe(e) {
let a = performance.now(), o = Joe(e), s = e.currentTime || 0;
if (n) {
let e = (a - n.at) / 1e3, i = Math.abs(s - n.ct) > e * 4 + 1, c = o - n.frontier;
- !i && c > 0 && (r += c), e * 1e3 > oj * 2 && (t.length = 0);
+ !i && c > 0 && (r += c), e * 1e3 > aj * 2 && (t.length = 0);
}
for (n = {
at: a,
@@ -30844,19 +30845,19 @@ function Yoe(e) {
}, t.push({
at: a,
advanced: r
- }); t.length > 2 && a - t[0].at > oj;) t.shift();
+ }); t.length > 2 && a - t[0].at > aj;) t.shift();
let c = t[0], l = (a - c.at) / 1e3, u = r - c.advanced;
return l >= .5 && u > 0 && this.bitrate > 0 && (i = u * this.bitrate / l), i;
}
};
}
-var cj = 24;
-function lj(e, t) {
- e.push(Number.isFinite(t) && t > 0 ? t : 0), e.length > cj && e.splice(0, e.length - cj);
+var sj = 24;
+function cj(e, t) {
+ e.push(Number.isFinite(t) && t > 0 ? t : 0), e.length > sj && e.splice(0, e.length - sj);
}
-var uj = "peach-player-panel";
-function dj(e, t, n, r) {
- let i = [...Array(Math.max(0, cj - e.length)).fill(null), ...e], a = Math.max(1, n || 0), o = i.map((e) => {
+var lj = "peach-player-panel";
+function uj(e, t, n, r) {
+ let i = [...Array(Math.max(0, sj - e.length)).fill(null), ...e], a = Math.max(1, n || 0), o = i.map((e) => {
if (e === null) return "<i aria-hidden=\"true\"></i>";
let n = e <= 0 ? 0 : Math.max(.08, Math.min(1, e / a));
return `<i data-bar="${t === "buffer" ? e < 5 ? "low" : e < 15 ? "mid" : "good" : "on"}" style="height:${(n * 100).toFixed(1)}%" aria-hidden="true"></i>`;
@@ -30868,32 +30869,32 @@ function Xoe() {
<div data-player-net="" id="playerNet" role="status" aria-live="polite" hidden></div>
<div data-player-stats="" id="playerStats" role="status" hidden></div>`;
}
-function fj(e, t = "") {
+function dj(e, t = "") {
let n = t ? encodeURIComponent(t) : "";
return performance.getEntriesByType("resource").filter((t) => t.name.includes("/stream") && (t.name.includes(`/stream?id=${e}`) || t.name.includes(`/stream/hls/${e}/`)) && (!n || t.name.includes(`session=${n}`)));
}
-function pj(e, t = "") {
- let n = fj(e, t), r = n.reduce((e, t) => e + (t.transferSize || t.encodedBodySize || 0), 0), i = n.reduce((e, t) => e + (t.duration || 0), 0) / 1e3;
+function fj(e, t = "") {
+ let n = dj(e, t), r = n.reduce((e, t) => e + (t.transferSize || t.encodedBodySize || 0), 0), i = n.reduce((e, t) => e + (t.duration || 0), 0) / 1e3;
return r > 0 && i > 0 ? r * 8 / i : 0;
}
-function mj(e, t, n = "", r = null) {
+function pj(e, t, n = "", r = null) {
let i = 0;
try {
i = Number(e?.bandwidth?.()) || 0;
} catch {}
- return i > 0 ? i : r ? Number(r.bits) || 0 : pj(t, n);
+ return i > 0 ? i : r ? Number(r.bits) || 0 : fj(t, n);
}
-function hj(e) {
+function mj(e) {
if (!Number.isFinite(e) || e <= 0) return "加载中…";
let t = e / 8;
return t >= 1048576 ? `${(t / 1048576).toFixed(1)} MB/s` : `${Math.max(1, Math.round(t / 1024))} KB/s`;
}
function Zoe(e, t) {
- return e > 0 ? hj(e) : t > 0 ? `已缓冲 ${Math.round(t)} 秒` : hj(0);
+ return e > 0 ? mj(e) : t > 0 ? `已缓冲 ${Math.round(t)} 秒` : mj(0);
}
//#endregion
//#region src/player/subtitle-style.ts
-var gj = {
+var hj = {
font: {
label: "字体",
values: [
@@ -30996,7 +30997,7 @@ var gj = {
["shadow", "阴影"]
]
}
-}, _j = {
+}, gj = {
font: "sans",
size: "100",
color: "white",
@@ -31006,7 +31007,7 @@ var gj = {
window: "black",
windowOpacity: "0",
edge: "shadow"
-}, vj = "peach.caption-style.v1", Qoe = {
+}, _j = "peach.caption-style.v1", Qoe = {
white: "255,255,255",
yellow: "255,255,0",
green: "0,255,0",
@@ -31033,11 +31034,11 @@ var gj = {
function tse() {
let e = {};
try {
- e = JSON.parse(localStorage.getItem(vj) || "{}") || {};
+ e = JSON.parse(localStorage.getItem(_j) || "{}") || {};
} catch {}
- return Object.fromEntries(Object.entries(_j).map(([t, n]) => [t, gj[t].values.some(([n]) => n === e[t]) ? e[t] : n]));
+ return Object.fromEntries(Object.entries(gj).map(([t, n]) => [t, hj[t].values.some(([n]) => n === e[t]) ? e[t] : n]));
}
-function yj(e, t, n) {
+function vj(e, t, n) {
let r = tse(), i = document.createElement("div");
i.className = "vjs-peach-captions", i.setAttribute("aria-hidden", "true");
let a = document.createElement("div");
@@ -31059,27 +31060,27 @@ function yj(e, t, n) {
return t.textTracks.addEventListener("addtrack", l, { signal: n }), t.textTracks.addEventListener("removetrack", l, { signal: n }), t.textTracks.addEventListener("change", s, { signal: n }), o(), l(), {
current: () => r,
set(e, t) {
- if (gj[e].values.some(([e]) => e === t)) {
+ if (hj[e].values.some(([e]) => e === t)) {
r = {
...r,
[e]: t
}, o();
try {
- localStorage.setItem(vj, JSON.stringify(r));
+ localStorage.setItem(_j, JSON.stringify(r));
} catch {}
}
},
reset() {
- r = { ..._j }, o();
+ r = { ...gj }, o();
try {
- localStorage.removeItem(vj);
+ localStorage.removeItem(_j);
} catch {}
}
};
}
//#endregion
//#region src/player/subtitle-memory.ts
-var bj = /* @__PURE__ */ new Map(), xj = class {
+var yj = /* @__PURE__ */ new Map(), bj = class {
player;
video;
changed;
@@ -31128,7 +31129,7 @@ var bj = /* @__PURE__ */ new Map(), xj = class {
}
save(e) {
if (!this.url) return Promise.resolve();
- let t = (bj.get(this.url) || Promise.resolve()).catch(() => {}).then(async () => {
+ let t = (yj.get(this.url) || Promise.resolve()).catch(() => {}).then(async () => {
let t = await fetch(this.url, {
method: "PUT",
headers: { "Content-Type": "application/json" },
@@ -31142,15 +31143,15 @@ var bj = /* @__PURE__ */ new Map(), xj = class {
let n = !!this.error;
this.error = "", n && !this.cleanup.signal.aborted && this.changed();
});
- return bj.set(this.url, t), t.finally(() => {
- bj.get(this.url) === t && bj.delete(this.url);
+ return yj.set(this.url, t), t.finally(() => {
+ yj.get(this.url) === t && yj.delete(this.url);
}).catch(() => {}), t;
}
async restore() {
if (!this.url) return;
let e = this.cleanup.signal;
try {
- if (await bj.get(this.url)?.catch(() => {}), e.aborted) return;
+ if (await yj.get(this.url)?.catch(() => {}), e.aborted) return;
let t = await z(this.url, { signal: e });
if (e.aborted) return;
this.selected === void 0 && (this.selected = t.selected), this.apply();
@@ -31205,7 +31206,7 @@ var bj = /* @__PURE__ */ new Map(), xj = class {
throw a.remove(), URL.revokeObjectURL(i), e;
}
}
-}, Sj = () => "<svg viewBox=\"0 0 36 36\" aria-hidden=\"true\"><path d=\"M11,11 C9.89,11 9,11.9 9,13 L9,23 C9,24.1 9.89,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M17,17 L15.5,17 L15.5,16.5 L13.5,16.5 L13.5,19.5 L15.5,19.5 L15.5,19 L17,19 L17,20 C17,20.55 16.55,21 16,21 L13,21 C12.45,21 12,20.55 12,20 L12,16 C12,15.45 12.45,15 13,15 L16,15 C16.55,15 17,15.45 17,16 L17,17 L17,17 Z M24,17 L22.5,17 L22.5,16.5 L20.5,16.5 L20.5,19.5 L22.5,19.5 L22.5,19 L24,19 L24,20 C24,20.55 23.55,21 23,21 L20,21 C19.45,21 19,20.55 19,20 L19,16 C19,15.45 19.45,15 20,15 L23,15 C23.55,15 24,15.45 24,16 L24,17 L24,17 Z\"/></svg>", nse = class {
+}, xj = () => "<svg viewBox=\"0 0 36 36\" aria-hidden=\"true\"><path d=\"M11,11 C9.89,11 9,11.9 9,13 L9,23 C9,24.1 9.89,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M17,17 L15.5,17 L15.5,16.5 L13.5,16.5 L13.5,19.5 L15.5,19.5 L15.5,19 L17,19 L17,20 C17,20.55 16.55,21 16,21 L13,21 C12.45,21 12,20.55 12,20 L12,16 C12,15.45 12.45,15 13,15 L16,15 C16.55,15 17,15.45 17,16 L17,17 L17,17 Z M24,17 L22.5,17 L22.5,16.5 L20.5,16.5 L20.5,19.5 L22.5,19.5 L22.5,19 L24,19 L24,20 C24,20.55 23.55,21 23,21 L20,21 C19.45,21 19,20.55 19,20 L19,16 C19,15.45 19.45,15 20,15 L23,15 C23.55,15 24,15.45 24,16 L24,17 L24,17 Z\"/></svg>", nse = class {
player;
video;
panels;
@@ -31224,7 +31225,7 @@ var bj = /* @__PURE__ */ new Map(), xj = class {
more = !1;
searched = !1;
constructor(e, t, n) {
- this.player = e, this.video = t, this.panels = n, this.styles = yj(e.el(), t, this.cleanup.signal), this.cc = e.el().querySelector(".vjs-subtitles-control > button"), this.cc.innerHTML = Sj(), this.cc.onclick = () => {
+ this.player = e, this.video = t, this.panels = n, this.styles = vj(e.el(), t, this.cleanup.signal), this.cc = e.el().querySelector(".vjs-subtitles-control > button"), this.cc.innerHTML = xj(), this.cc.onclick = () => {
let e = this.tracks().find((e) => e.mode === "showing");
e ? (this.last = e, this.select(null)) : this.tracks().length ? this.select(this.last && this.tracks().includes(this.last) ? this.last : this.tracks()[0]) : this.show();
}, this.input.type = "file", this.input.accept = ".srt,.ass,.ssa,.vtt", this.input.hidden = !0, this.input.setAttribute("aria-label", "加载字幕文件"), e.el().append(this.input), this.input.addEventListener("change", () => {
@@ -31234,7 +31235,7 @@ var bj = /* @__PURE__ */ new Map(), xj = class {
this.sync(), this.page === "tracks" && this.show(0);
}, { signal: this.cleanup.signal }), e.on("dispose", () => {
this.hide(), this.cleanup.abort();
- }), this.session = new xj(e, t, () => {
+ }), this.session = new bj(e, t, () => {
this.sync(), this.page === "tracks" && this.show(0);
}), this.sync();
}
@@ -31282,7 +31283,7 @@ var bj = /* @__PURE__ */ new Map(), xj = class {
}
options(e = 1) {
this.page = "options";
- let t = this.styles.current(), n = this.panel(this.header("字幕选项") + `<div class="vjs-peach-panel-menu">${Object.entries(gj).map(([e, n]) => {
+ let t = this.styles.current(), n = this.panel(this.header("字幕选项") + `<div class="vjs-peach-panel-menu">${Object.entries(hj).map(([e, n]) => {
let r = n.values.find(([n]) => n === t[e])?.[1] || "";
return `<button type="button" class="vjs-peach-caption-setting" data-subtitle-style="${e}"><span>${B(n.label)}</span><b>${B(r)}</b>${R("player-menu-next")}</button>`;
}).join("")}<button type="button" class="vjs-peach-caption-action" data-subtitle-reset>重置</button></div>`, () => this.show(-1), e);
@@ -31294,7 +31295,7 @@ var bj = /* @__PURE__ */ new Map(), xj = class {
}
styleOptions(e) {
this.page = "style";
- let t = gj[e];
+ let t = hj[e];
this.panel(this.header(t.label) + `<div class="vjs-peach-panel-menu">${t.values.map(([t, n]) => {
let r = this.styles.current()[e] === t;
return `<button type="button" class="vjs-peach-menu-option" role="menuitemradio" aria-checked="${r}" data-subtitle-value="${B(t)}"><span class="vjs-peach-option-check">${r ? R("check") : ""}</span><span class="vjs-peach-option-label">${B(n)}</span></button>`;
@@ -31411,7 +31412,7 @@ var bj = /* @__PURE__ */ new Map(), xj = class {
};
//#endregion
//#region src/player/controls.ts
-function Cj(e, t, n = "") {
+function Sj(e, t, n = "") {
if (!e) return () => {};
let r = e.querySelector(":scope>.vjs-peach-tooltip");
r || (r = document.createElement("span"), r.className = "vjs-peach-tooltip", r.setAttribute("role", "tooltip"), r.innerHTML = "<span class=\"vjs-peach-tooltip-text\"></span><kbd hidden></kbd>", e.append(r));
@@ -31422,27 +31423,27 @@ function Cj(e, t, n = "") {
};
return o(), o;
}
-function wj(e, t) {
+function Cj(e, t) {
e?.closest(".video-js")?.querySelector(`.vjs-control-bar ${t}`)?.click();
}
function rse(e, t = !0) {
- let n = GA(), r = n.settings();
+ let n = WA(), r = n.settings();
r.ambientMode = !!e, t && n.saveSettings(), n.stage()?.toggleAttribute("data-ambient", r.ambientMode), document.dispatchEvent(new CustomEvent("peachambientchange", { detail: { enabled: r.ambientMode } }));
}
-var Tj = /* @__PURE__ */ new WeakMap();
-function Ej(e) {
+var wj = /* @__PURE__ */ new WeakMap();
+function Tj(e) {
if (!e) return;
- let t = GA().settings().theaterMode;
- e.setAttribute("aria-pressed", String(t)), e.querySelector("use")?.setAttribute("href", t ? "#i-theater-exit" : "#i-theater-enter"), Tj.get(e)?.(t ? "默认视图" : "影院模式");
+ let t = WA().settings().theaterMode;
+ e.setAttribute("aria-pressed", String(t)), e.querySelector("use")?.setAttribute("href", t ? "#i-theater-exit" : "#i-theater-enter"), wj.get(e)?.(t ? "默认视图" : "影院模式");
}
-function Dj(e, t = !0) {
- let n = GA(), r = n.settings();
+function Ej(e, t = !0) {
+ let n = WA(), r = n.settings();
r.theaterMode = !!e, t && n.saveSettings();
let i = n.stage();
- i?.toggleAttribute("data-theater", r.theaterMode), Ej(i?.querySelector("[data-player-theater]")), ij(nj());
+ i?.toggleAttribute("data-theater", r.theaterMode), Tj(i?.querySelector("[data-player-theater]")), rj(tj());
}
function ise(e) {
- let t = GA().stage(), n = t?.querySelector("[data-ambient-canvas]");
+ let t = WA().stage(), n = t?.querySelector("[data-ambient-canvas]");
if (!t || !n) return () => {};
let r = n.getContext("2d", { alpha: !1 });
if (!r) return () => {};
@@ -31465,9 +31466,9 @@ function ise(e) {
}, u = (t) => {
e.requestVideoFrameCallback ? e.requestVideoFrameCallback((e) => d(t, e)) : requestAnimationFrame((e) => d(t, e));
}, d = (t, n) => {
- i || t !== o || (GA().settings().ambientMode ? e.paused || (!document.hidden && n - a > 480 && (a = n, l()), u(t)) : c());
+ i || t !== o || (WA().settings().ambientMode ? e.paused || (!document.hidden && n - a > 480 && (a = n, l()), u(t)) : c());
}, f = () => {
- !i && GA().settings().ambientMode && (l(), e.paused || u(++o));
+ !i && WA().settings().ambientMode && (l(), e.paused || u(++o));
}, p = (e) => {
let n = !!e.detail.enabled;
t.toggleAttribute("data-ambient", n), n ? f() : (o++, c());
@@ -31476,7 +31477,7 @@ function ise(e) {
i = !0, o++, document.removeEventListener("peachambientchange", p), e.removeEventListener("play", f), e.removeEventListener("loadeddata", f), c();
};
}
-function Oj(e, t, n = 0, r = null) {
+function Dj(e, t, n = 0, r = null) {
let i = e.el().querySelector(".vjs-control-bar");
if (!i || i.querySelector("[data-player-quality]")) return;
let a = document.createElement("div");
@@ -31486,7 +31487,7 @@ function Oj(e, t, n = 0, r = null) {
let o = i.querySelector(".vjs-fullscreen-control");
i.insertBefore(a, o || null);
let s = a.querySelector("button"), c = a.querySelector("[data-player-quality-badge]");
- Cj(s, "设置");
+ Sj(s, "设置");
let l = a.querySelector(".vjs-peach-settings-menu"), u, d = typeof e.qualityLevels == "function" ? e.qualityLevels() : null, f = r, p = "auto", m = (e, t) => {
let n = [Number(e), Number(t)].filter((e) => e > 0);
return n.length ? Math.min(...n) : 0;
@@ -31526,11 +31527,11 @@ function Oj(e, t, n = 0, r = null) {
active: n
};
}, _ = () => l.getAttribute("aria-hidden") !== "true", v = (e) => {
- l.setAttribute("aria-hidden", String(!e)), s.setAttribute("aria-expanded", String(e)), e || u?.hide(), e && document.dispatchEvent(new CustomEvent(uj, { detail: "settings" }));
+ l.setAttribute("aria-hidden", String(!e)), s.setAttribute("aria-expanded", String(e)), e || u?.hide(), e && document.dispatchEvent(new CustomEvent(lj, { detail: "settings" }));
}, y = () => v(!1), b = (e) => {
e.detail !== "settings" && y();
};
- document.addEventListener(uj, b);
+ document.addEventListener(lj, b);
let x = null, S = 0, C = (e, t) => {
let n = ++S;
x && (clearTimeout(x), x = null, l.classList.remove("vjs-peach-popup-animating"), l.style.height = ""), l.querySelectorAll(".vjs-peach-panel-leaving").forEach((e) => e.remove()), l.scrollTop = 0;
@@ -31546,13 +31547,13 @@ function Oj(e, t, n = 0, r = null) {
}), i;
}, w = (e, t) => e.querySelector(t), T = "main", E = (t = 0) => {
T = "main";
- let { active: n } = g(), r = Number(e.playbackRate()) || 1, i = C(`<div class="vjs-peach-panel-menu"><button type="button" class="vjs-peach-menu-row" role="menuitemcheckbox" data-player-ambient aria-checked="${GA().settings().ambientMode}">
+ let { active: n } = g(), r = Number(e.playbackRate()) || 1, i = C(`<div class="vjs-peach-panel-menu"><button type="button" class="vjs-peach-menu-row" role="menuitemcheckbox" data-player-ambient aria-checked="${WA().settings().ambientMode}">
${R("player-ambient")}<span>氛围模式</span><i class="vjs-peach-switch" aria-hidden="true"></i></button>
<button type="button" class="vjs-peach-menu-row" role="menuitem" data-player-speed>${R("player-speed")}<span>播放速度</span><b>${r === 1 ? "正常" : `${r}×`}</b>${R("player-menu-next")}</button>
- <button type="button" class="vjs-peach-menu-row" role="menuitem" data-player-subtitles><span class="vjs-peach-menu-cc" aria-hidden="true">${Sj()}</span><span>字幕</span><b>${B(u?.label() || "关闭")}</b>${R("player-menu-next")}</button>
+ <button type="button" class="vjs-peach-menu-row" role="menuitem" data-player-subtitles><span class="vjs-peach-menu-cc" aria-hidden="true">${xj()}</span><span>字幕</span><b>${B(u?.label() || "关闭")}</b>${R("player-menu-next")}</button>
<button type="button" class="vjs-peach-menu-row" role="menuitem" data-player-quality-view>${R("player-quality")}<span>清晰度</span><b>${B(n.label)}</b>${R("player-menu-next")}</button></div>`, t);
w(i, "[data-player-ambient]").onclick = () => {
- rse(!GA().settings().ambientMode), E();
+ rse(!WA().settings().ambientMode), E();
}, w(i, "[data-player-speed]").onclick = () => A(), w(i, "[data-player-subtitles]").onclick = () => u?.show(), w(i, "[data-player-quality-view]").onclick = () => M();
}, D = .05, O = [
1,
@@ -31632,7 +31633,7 @@ function Oj(e, t, n = 0, r = null) {
"removequalitylevel",
"change"
], N), e.on("dispose", () => {
- S++, document.removeEventListener("pointerdown", P), document.removeEventListener(uj, b), x && clearTimeout(x);
+ S++, document.removeEventListener("pointerdown", P), document.removeEventListener(lj, b), x && clearTimeout(x);
}), u = new nse(e, t, {
render: C,
open: () => {
@@ -31649,11 +31650,11 @@ function Oj(e, t, n = 0, r = null) {
function ase(e, t) {
let n = e.el().querySelector(".vjs-control-bar");
if (!n || n.querySelector("[data-player-theater]")) return;
- let r = GA().settings().theaterMode, i = document.createElement("div");
+ let r = WA().settings().theaterMode, i = document.createElement("div");
i.className = "vjs-peach-theater vjs-control", i.innerHTML = `<button type="button" data-player-theater aria-pressed="${r}">${R(r ? "theater-exit" : "theater-enter")}</button>`, n.insertBefore(i, t.nextSibling);
let a = i.querySelector("button");
- Tj.set(a, Cj(a, "影院模式", "T")), Ej(a), a.onclick = (e) => {
- e.stopPropagation(), Dj(!GA().settings().theaterMode);
+ wj.set(a, Sj(a, "影院模式", "T")), Tj(a), a.onclick = (e) => {
+ e.stopPropagation(), Ej(!WA().settings().theaterMode);
};
}
function ose(e) {
@@ -31668,7 +31669,7 @@ function ose(e) {
e.dataset.peachExplicitIcon = "";
let r = document.createElementNS("http://www.w3.org/2000/svg", "svg");
return r.setAttribute("viewBox", n.getAttribute("viewBox") || ""), r.setAttribute("aria-hidden", "true"), r.setAttribute("class", "vjs-peach-control-icon vjs-peach-morph-icon"), r.innerHTML = n.innerHTML, e.append(r), r;
- }, a = (e) => [...document.getElementById(`i-${e}`)?.querySelectorAll("path") || []], o = i(n, "player-play")?.querySelector("path"), s = a("player-play")[0]?.getAttribute("d") || "", c = a("player-pause")[0]?.getAttribute("d") || "", l = Cj(n, "播放", "K"), u = CSS.supports("d", "path(\"M0 0\")"), d = () => {
+ }, a = (e) => [...document.getElementById(`i-${e}`)?.querySelectorAll("path") || []], o = i(n, "player-play")?.querySelector("path"), s = a("player-play")[0]?.getAttribute("d") || "", c = a("player-pause")[0]?.getAttribute("d") || "", l = Sj(n, "播放", "K"), u = CSS.supports("d", "path(\"M0 0\")"), d = () => {
let t = e.paused() || e.ended(), n = t ? s : c;
o && (u ? o.style.setProperty("d", `path("${n}")`) : o.setAttribute("d", n)), l(t ? "播放" : "暂停");
};
@@ -31679,7 +31680,7 @@ function ose(e) {
], d), d();
let f = t.querySelector(":scope>.vjs-volume-panel"), p = f?.querySelector(":scope>.vjs-mute-control"), m = i(p, "player-volume");
m && a("player-volume-muted").forEach((e) => m.append(e.cloneNode(!0)));
- let h = Cj(p, "静音", "M"), g = () => {
+ let h = Sj(p, "静音", "M"), g = () => {
let t = e.muted() || e.volume() === 0;
m && (m.dataset.silent = String(t), m.dataset.loud = String(!t && e.volume() > .5)), h(t ? "取消静音" : "静音");
};
@@ -31705,7 +31706,7 @@ function ose(e) {
});
let x = document.createElement("button"), S = !1;
x.type = "button", x.className = "vjs-peach-time vjs-control", x.dataset.playerTime = "", x.innerHTML = "<span class=\"vjs-peach-time-text\"></span>";
- let C = x.querySelector(".vjs-peach-time-text"), w = Cj(x, "显示剩余时间"), T = () => {
+ let C = x.querySelector(".vjs-peach-time-text"), w = Sj(x, "显示剩余时间"), T = () => {
let t = Math.max(0, Number(e.currentTime()) || 0), n = Math.max(0, Number(e.duration()) || 0), r = gn(Math.max(0, n - t));
C.textContent = `${S ? `-${r}` : gn(t)} / ${gn(n)}`, x.dataset.remaining = String(S), w(S ? "显示已播放时间" : "显示剩余时间", S ? `剩余 ${r},总时长 ${gn(n)};点击显示已播放时间` : `已播放 ${gn(t)},总时长 ${gn(n)};点击显示剩余时间`);
};
@@ -31717,12 +31718,12 @@ function ose(e) {
"loadedmetadata"
], T), T(), f ? f.insertAdjacentElement("afterend", x) : t.append(x);
let E = t.querySelector(":scope>.vjs-picture-in-picture-control");
- Cj(t.querySelector(".vjs-subtitles-control>button"), "字幕"), r(E, "player-pip");
- let D = Cj(E, "画中画");
+ Sj(t.querySelector(".vjs-subtitles-control>button"), "字幕"), r(E, "player-pip");
+ let D = Sj(E, "画中画");
e.on(["enterpictureinpicture", "leavepictureinpicture"], () => D(document.pictureInPictureElement ? "退出画中画" : "画中画"));
- let O = t.querySelector(":scope>.vjs-fullscreen-control"), k = r(O, "player-fullscreen-enter"), A = Cj(O, "全屏", "F"), j = () => {
+ let O = t.querySelector(":scope>.vjs-fullscreen-control"), k = r(O, "player-fullscreen-enter"), A = Sj(O, "全屏", "F"), j = () => {
let t = !!e.isFullscreen();
- e.el().toggleAttribute("data-peach-fullscreen", t), k?.setAttribute("href", t ? "#i-player-fullscreen-exit" : "#i-player-fullscreen-enter"), A(t ? "退出全屏" : "全屏"), ij(e);
+ e.el().toggleAttribute("data-peach-fullscreen", t), k?.setAttribute("href", t ? "#i-player-fullscreen-exit" : "#i-player-fullscreen-enter"), A(t ? "退出全屏" : "全屏"), rj(e);
};
e.on([
"fullscreenchange",
@@ -31743,7 +31744,7 @@ function ose(e) {
});
let P = document.createElement("div");
P.className = "vjs-peach-expand vjs-control", P.innerHTML = `<button type="button" data-player-expand aria-expanded="false">${R("player-expand")}</button><span class="vjs-peach-hover" aria-hidden="true"></span>`, N.prepend(P);
- let ee = P.querySelector("button"), F = Cj(ee, "展开控件"), te = (t) => {
+ let ee = P.querySelector("button"), F = Sj(ee, "展开控件"), te = (t) => {
e.el().classList.toggle("vjs-peach-right-expanded", t), ee.setAttribute("aria-expanded", String(t)), F(t ? "收起控件" : "展开控件");
};
ee.onclick = (t) => {
@@ -31755,7 +31756,7 @@ function ose(e) {
}, ne = new ResizeObserver(I);
ne.observe(e.el()), e.on("dispose", () => ne.disconnect()), te(!1), I();
}
-function kj(e, t, n = {}) {
+function Oj(e, t, n = {}) {
let r = e.el().querySelector(".vjs-control-bar .vjs-progress-control");
if (!r || r.querySelector("[data-player-seek-preview]")) return;
let i = !!t && n.thumbnail !== !1, a = document.createElement("div");
@@ -31795,7 +31796,7 @@ function sse(e, t) {
let r = () => mn(e.duration()) || mn(t.duration) || 0, i = (t) => {
let n = r();
e.currentTime(Math.max(0, n ? Math.min(n, t) : t));
- }, a = () => Math.max(1, Number(GA().settings().seekSeconds) || 10), o = [
+ }, a = () => Math.max(1, Number(WA().settings().seekSeconds) || 10), o = [
["play", () => {
e.play();
}],
@@ -31836,11 +31837,11 @@ function sse(e, t) {
} catch {}
});
}
-function Aj(e) {
+function kj(e) {
let t = e.el().querySelector(".vjs-loading-spinner");
t && !t.querySelector(".vjs-peach-spinner-container") && (t.innerHTML = "<span class=\"vjs-peach-spinner-container\"><span class=\"vjs-peach-spinner-rotator\"><span class=\"vjs-peach-spinner-left\"><span class=\"vjs-peach-spinner-circle\"></span></span><span class=\"vjs-peach-spinner-right\"><span class=\"vjs-peach-spinner-circle\"></span></span></span></span>");
}
-function jj(e, t) {
+function Aj(e, t) {
z(`/api/assets/${t}/subtitles`).then((t) => {
e && !e.isDisposed() && (t?.subtitles || []).filter((e) => e.playable).forEach((t) => {
e.addRemoteTextTrack({
@@ -31856,17 +31857,17 @@ function jj(e, t) {
}
//#endregion
//#region src/player/progress.ts
-var Mj = "peach.playback-position.v1", Nj = /* @__PURE__ */ new WeakMap();
-function Pj(e) {
- Nj.get(e)?.(), Nj.delete(e);
+var jj = "peach.playback-position.v1", Mj = /* @__PURE__ */ new WeakMap();
+function Nj(e) {
+ Mj.get(e)?.(), Mj.delete(e);
}
-function Fj(e, t, n = null) {
+function Pj(e, t, n = null) {
let r = e === "follow" ? t.id : t.location === "online" ? t.follow_item_id : null;
return r ? `follow:${r}:${n ?? "main"}` : `item:${t.id}`;
}
function cse(e) {
try {
- let t = localStorage.getItem(`${Mj}:${e}`), n = t === null || !t.trim() ? NaN : Number(t);
+ let t = localStorage.getItem(`${jj}:${e}`), n = t === null || !t.trim() ? NaN : Number(t);
return Number.isFinite(n) && n >= 0 ? n : null;
} catch {
return null;
@@ -31879,12 +31880,12 @@ function lse(e, t) {
return r > 0 && r < 1 ? r * mn(t.duration) : 0;
}
function use(e, t) {
- Pj(t);
+ Nj(t);
let n = t.readyState >= 1, r = () => {
if (!n || !Number.isFinite(t.currentTime)) return;
let r = t.ended ? 0 : Math.max(0, t.currentTime);
try {
- localStorage.setItem(`${Mj}:${e}`, String(r));
+ localStorage.setItem(`${jj}:${e}`, String(r));
} catch {}
}, i = () => {
n = !0;
@@ -31898,7 +31899,7 @@ function use(e, t) {
"pause",
"ended"
]) t.addEventListener(e, r);
- window.addEventListener("pagehide", r), document.addEventListener("visibilitychange", r), Nj.set(t, () => {
+ window.addEventListener("pagehide", r), document.addEventListener("visibilitychange", r), Mj.set(t, () => {
r(), t.removeEventListener("loadedmetadata", i), t.removeEventListener("emptied", a);
for (let e of [
"timeupdate",
@@ -31911,19 +31912,19 @@ function use(e, t) {
}
//#endregion
//#region src/player/telemetry.ts
-var Ij = /* @__PURE__ */ new WeakMap();
-function Lj(e) {
- Ij.get(e)?.(), Ij.delete(e);
+var Fj = /* @__PURE__ */ new WeakMap();
+function Ij(e) {
+ Fj.get(e)?.(), Fj.delete(e);
}
-function Rj(e, t, n, r) {
+function Lj(e, t, n, r) {
let i = () => t(!1), a = () => {
n(), t(!1);
};
- e.addEventListener("seeking", r), e.addEventListener("emptied", a), window.addEventListener("pagehide", i), Ij.set(e, () => {
+ e.addEventListener("seeking", r), e.addEventListener("emptied", a), window.addEventListener("pagehide", i), Fj.set(e, () => {
n(), t(!1), e.onplay = null, e.ontimeupdate = null, e.onpause = null, e.onended = null, e.removeEventListener("seeking", r), e.removeEventListener("emptied", a), window.removeEventListener("pagehide", i);
});
}
-function zj(e, t, n = {}) {
+function Rj(e, t, n = {}) {
if (!t) return;
let r = 0, i = 0, a = 0, o = null, s = (e) => e ? document.querySelector(e) : null, c = () => {
let r = mn(e.duration) || mn(t.duration);
@@ -31964,7 +31965,7 @@ function zj(e, t, n = {}) {
u(), l(!1);
}, t.onended = () => {
u(), l(!0), n.onEnded?.();
- }, Rj(t, l, u, () => {
+ }, Lj(t, l, u, () => {
a++;
}), c();
}
@@ -31999,24 +32000,24 @@ function dse(e, t) {
s(), o(!1);
}, t.onended = () => {
s(), o(!0);
- }, Rj(t, o, s, () => {});
+ }, Lj(t, o, s, () => {});
}
//#endregion
//#region src/player/dispose.ts
-function Bj(e) {
+function zj(e) {
if (!e || e.isDisposed()) return;
let t = e.el()?.querySelector("video");
try {
e.pause();
} catch {}
- t && (Pj(t), Lj(t));
+ t && (Nj(t), Ij(t));
try {
e.dispose();
} catch {}
}
//#endregion
//#region src/core/random-id.ts
-function Vj() {
+function Bj() {
if (typeof crypto.randomUUID == "function") return crypto.randomUUID();
let e = crypto.getRandomValues(/* @__PURE__ */ new Uint8Array(16));
e[6] = e[6] & 15 | 64, e[8] = e[8] & 63 | 128;
@@ -32025,10 +32026,10 @@ function Vj() {
}
//#endregion
//#region src/player/stream.ts
-function Hj() {
- return Vj();
+function Vj() {
+ return Bj();
}
-function Uj(e, t) {
+function Hj(e, t) {
return {
src: `/stream?id=${e.id}&session=${encodeURIComponent(t)}`,
type: String(e.name || "").toLowerCase().endsWith(".webm") ? "video/webm" : "video/mp4"
@@ -32040,7 +32041,7 @@ function fse(e) {
type: "video/mp4"
} : null;
}
-async function Wj(e, t) {
+async function Uj(e, t) {
let n = fse(e);
if (n) return n;
try {
@@ -32050,9 +32051,9 @@ async function Wj(e, t) {
type: n.mime_type || (n.protocol === "hls" ? "application/vnd.apple.mpegurl" : "video/mp4")
};
} catch {}
- return Uj(e, t);
+ return Hj(e, t);
}
-function Gj(e) {
+function Wj(e) {
e && fetch(`/api/stream-cancel?session=${encodeURIComponent(e)}`, {
method: "POST",
credentials: "same-origin",
@@ -32061,23 +32062,23 @@ function Gj(e) {
document.documentElement.dataset.peachStreamCancel = JSON.stringify(e);
}).catch(() => {});
}
-var Kj = "";
+var Gj = "";
+function Kj() {
+ return Gj;
+}
function qj() {
- return Kj;
+ return Gj ||= Vj(), Gj;
}
+var pse = (e) => Hj(e, qj()), mse = (e) => Uj(e, qj());
function Jj() {
- return Kj ||= Hj(), Kj;
-}
-var pse = (e) => Uj(e, Jj()), mse = (e) => Wj(e, Jj());
-function Yj() {
- let e = Kj;
- e && (Kj = "", Gj(e));
+ let e = Gj;
+ e && (Gj = "", Wj(e));
}
//#endregion
//#region src/player/v10-player.ts
-var Xj = (e) => typeof e == "string" ? [e] : e, hse = (e, t) => {
+var Yj = (e) => typeof e == "string" ? [e] : e, hse = (e, t) => {
let n = document.createElement("div"), r = document.createElement("video-player");
- n.className = "video-js vjs-paused vjs-user-active", n.id = e.id || `peach-player-${Vj()}`, n.setAttribute("lang", "zh-CN");
+ n.className = "video-js vjs-paused vjs-user-active", n.id = e.id || `peach-player-${Bj()}`, n.setAttribute("lang", "zh-CN");
let i = document.createElement("media-container"), a = document.createElement("hlsjs-video");
e.parentNode?.replaceChild(n, e), e.removeAttribute("id"), e.className = "vjs-tech", e.slot = "media", e.controls = !1, e.preload = t.preload === "auto" ? "auto" : t.preload === "none" ? "none" : "metadata", t.poster && (e.poster = String(t.poster)), a.append(e), i.append(a), r.append(i), n.append(r), t.controls !== !1 && i.insertAdjacentHTML("beforeend", "<div class=\"vjs-loading-spinner\" aria-label=\"正在缓冲\"></div>\n <div class=\"vjs-error-display\"><div class=\"vjs-modal-dialog-content\" role=\"alert\"></div></div>\n <div class=\"vjs-control-bar\">\n <media-play-button class=\"vjs-play-control vjs-control vjs-button\" label=\"播放\"></media-play-button>\n <div class=\"vjs-volume-panel vjs-control vjs-volume-panel-horizontal\">\n <media-mute-button class=\"vjs-mute-control vjs-control vjs-button\" label=\"静音\"></media-mute-button>\n <div class=\"vjs-volume-control vjs-volume-horizontal\"><media-volume-slider class=\"vjs-volume-bar vjs-slider vjs-slider-horizontal\" label=\"音量\">\n <media-slider-track><media-slider-fill class=\"vjs-volume-level\"></media-slider-fill></media-slider-track>\n <media-slider-thumb class=\"vjs-volume-thumb\"></media-slider-thumb>\n <media-slider-value class=\"vjs-volume-tooltip\"></media-slider-value>\n </media-volume-slider></div>\n </div>\n <div class=\"vjs-progress-control vjs-control\"><media-time-slider class=\"vjs-progress-holder vjs-slider vjs-slider-horizontal\" label=\"播放进度\">\n <media-slider-track><media-slider-buffer class=\"vjs-load-progress\"></media-slider-buffer><media-slider-fill class=\"vjs-play-progress\"></media-slider-fill></media-slider-track>\n <media-slider-thumb class=\"vjs-progress-thumb\"></media-slider-thumb>\n </media-time-slider></div>\n <div class=\"vjs-subtitles-control vjs-control\"><button type=\"button\" class=\"vjs-button\" aria-label=\"开启字幕\" aria-pressed=\"false\">CC</button></div>\n <media-pip-button class=\"vjs-picture-in-picture-control vjs-control vjs-button\" label=\"画中画\"></media-pip-button>\n <media-fullscreen-button class=\"vjs-fullscreen-control vjs-control vjs-button\" label=\"全屏\"></media-fullscreen-button>\n </div>");
let o = new EventTarget(), s = new AbortController(), c = s.signal, l = !1, u = 0, d = 0, f = 0, p = {
@@ -32172,9 +32173,9 @@ var Xj = (e) => typeof e == "string" ? [e] : e, hse = (e, t) => {
e && Array.isArray(e.levels) && !x.has(e) && (x.add(e), e.on("hlsManifestParsed", w), e.on("hlsLevelSwitched", w)), w();
};
return e.addEventListener("loadedmetadata", T, { signal: c }), {
- on: (e, t) => Xj(e).forEach((e) => o.addEventListener(e, t, { signal: c })),
- off: (e, t) => Xj(e).forEach((e) => o.removeEventListener(e, t)),
- one: (e, t) => Xj(e).forEach((e) => o.addEventListener(e, t, {
+ on: (e, t) => Yj(e).forEach((e) => o.addEventListener(e, t, { signal: c })),
+ off: (e, t) => Yj(e).forEach((e) => o.removeEventListener(e, t)),
+ one: (e, t) => Yj(e).forEach((e) => o.addEventListener(e, t, {
once: !0,
signal: c
})),
@@ -32247,14 +32248,14 @@ var Xj = (e) => typeof e == "string" ? [e] : e, hse = (e, t) => {
"ui/slider-value.js",
"i18n.js",
"locales/zh-CN.js"
-], Zj = null;
-function Qj() {
- return Zj ??= Promise.all(_se.map((e) => import(
+], Xj = null;
+function Zj() {
+ return Xj ??= Promise.all(_se.map((e) => import(
/* @vite-ignore */
`${gse}${e}`
))).then(() => hse).catch((e) => {
- throw Zj = null, e;
- }), Zj;
+ throw Xj = null, e;
+ }), Xj;
}
//#endregion
//#region src/player/immerse-player.ts
@@ -32272,37 +32273,37 @@ var vse = {
};
function yse(e, t) {
let { item: n, session: r } = t, i = null, a = !1;
- return Promise.all([Wj(n, r), Qj().catch(() => null)]).then(([o, s]) => {
+ return Promise.all([Uj(n, r), Zj().catch(() => null)]).then(([o, s]) => {
if (a) return;
- let c = Uj(n, r), l = String(o.type || "").includes("mpegurl");
+ let c = Hj(n, r), l = String(o.type || "").includes("mpegurl");
if (!s) e.src = (l ? c : o).src;
else {
let t = s(e, vse);
- i = t, t.peachItem = n, t.peachPlaybackKey = Fj("item", n);
+ i = t, t.peachItem = n, t.peachPlaybackKey = Pj("item", n);
let r = new AbortController();
- yj(t.el(), e, r.signal), t.on("dispose", () => r.abort()), new xj(t, e), jj(t, n.id), l && t.one("error", () => {
+ vj(t.el(), e, r.signal), t.on("dispose", () => r.abort()), new bj(t, e), Aj(t, n.id), l && t.one("error", () => {
a || t.src(c);
}), t.src(o);
}
- zj(n, e, t.onEnded ? { onEnded: t.onEnded } : {}), t.onLoaded?.();
+ Rj(n, e, t.onEnded ? { onEnded: t.onEnded } : {}), t.onLoaded?.();
}), () => {
- a || (a = !0, Gj(r), i ? Bj(i) : (e.pause(), Lj(e), e.removeAttribute("src"), e.load()));
+ a || (a = !0, Wj(r), i ? zj(i) : (e.pause(), Ij(e), e.removeAttribute("src"), e.load()));
};
}
//#endregion
//#region src/player/detail-player.ts
-var $j = /* @__PURE__ */ new WeakMap(), eM = null, tM = null, nM = null;
-function rM() {
- eM &&= (clearInterval(eM), null), tM &&= (clearInterval(tM), null), nM &&= (clearTimeout(nM), null);
+var Qj = /* @__PURE__ */ new WeakMap(), $j = null, eM = null, tM = null;
+function nM() {
+ $j &&= (clearInterval($j), null), eM &&= (clearInterval(eM), null), tM &&= (clearTimeout(tM), null);
}
async function bse(e, t, n, r = {}) {
- let i = nj();
+ let i = tj();
if (i && !i.isDisposed()) return i;
- let a = GA(), o = r.resume ?? null;
+ let a = WA(), o = r.resume ?? null;
o?.autoplay && (n = !0);
let s = () => r.source ? Promise.resolve(r.source) : mse(e), c;
try {
- c = await Qj();
+ c = await Zj();
} catch {
return t.controls = !0, s().then((e) => {
t.addEventListener("loadedmetadata", () => {
@@ -32328,7 +32329,7 @@ async function bse(e, t, n, r = {}) {
} }
}
});
- rj(l), l.peachItem = e, l.peachPlaybackKey = r.playbackKey || Fj("item", e), qoe(l), l.on("loadedmetadata", () => {
+ nj(l), l.peachItem = e, l.peachPlaybackKey = r.playbackKey || Pj("item", e), qoe(l), l.on("loadedmetadata", () => {
let e = l.el()?.querySelector("video");
e?.videoWidth && e.videoHeight && l.el().style.setProperty("--peach-video-ratio", `${e.videoWidth}/${e.videoHeight}`);
});
@@ -32336,7 +32337,7 @@ async function bse(e, t, n, r = {}) {
speed: [],
activity: [],
buffer: []
- }, f = Number(r.size ?? e.size) || 0, p = Yoe(sj(f, e.duration)), m = 0, h = !1, g = () => nj() === l && !l.isDisposed(), _ = () => {
+ }, f = Number(r.size ?? e.size) || 0, p = Yoe(oj(f, e.duration)), m = 0, h = !1, g = () => tj() === l && !l.isDisposed(), _ = () => {
if (!u || h || !g()) return;
let e = Number(l.duration());
(!Number.isFinite(e) || Math.abs(e - u) > Math.max(2, u * .001)) && (h = !0, l.duration(u), queueMicrotask(() => {
@@ -32347,15 +32348,15 @@ async function bse(e, t, n, r = {}) {
ready: !1,
updateStats: () => {}
};
- $j.set(l, y), y.updateStats = () => {
+ Qj.set(l, y), y.updateStats = () => {
let n = y.chrome?.statsPanel;
if (!n || n.hidden || !g()) return;
- let i = t.getVideoPlaybackQuality ? t.getVideoPlaybackQuality() : null, a = t.getBoundingClientRect(), o = `${t.videoWidth || e.width || "?"}×${t.videoHeight || e.height || "?"}`, s = v(), c = qj(), h = s ? fj(e.id, c) : [], _ = h.reduce((e, t) => e + (t.transferSize || t.encodedBodySize || 0), 0), b = h.reduce((e, t) => e + (t.duration || 0), 0) / 1e3;
+ let i = t.getVideoPlaybackQuality ? t.getVideoPlaybackQuality() : null, a = t.getBoundingClientRect(), o = `${t.videoWidth || e.width || "?"}×${t.videoHeight || e.height || "?"}`, s = v(), c = Kj(), h = s ? dj(e.id, c) : [], _ = h.reduce((e, t) => e + (t.transferSize || t.encodedBodySize || 0), 0), b = h.reduce((e, t) => e + (t.duration || 0), 0) / 1e3;
p.sample(t);
- let x = mj(l, e.id, c, s ? null : p) || (b > 0 ? _ * 8 / b : 0), S = s ? _ : p.bitrate > 0 ? p.bytes() : p.seconds, C = Math.max(0, S - m);
+ let x = pj(l, e.id, c, s ? null : p) || (b > 0 ? _ * 8 / b : 0), S = s ? _ : p.bitrate > 0 ? p.bytes() : p.seconds, C = Math.max(0, S - m);
m = S;
- let w = aj(t);
- lj(d.speed, x), lj(d.activity, C), lj(d.buffer, w);
+ let w = ij(t);
+ cj(d.speed, x), cj(d.activity, C), cj(d.buffer, w);
let T = String(e.name || ""), E = (T.includes(".") ? T.split(".").pop() || "" : s ? "" : String(l.currentSource()?.type || "").split("/").pop() || "").toUpperCase() || "—", D = x ? `${(x / 1e6).toFixed(1)} Mbps` : "—", O = s || p.bitrate > 0, k = s ? [
"网络活动",
`${_ ? _n(_) : "—"} · ${h.length} 请求`,
@@ -32373,17 +32374,17 @@ async function bse(e, t, n, r = {}) {
[
"连接速度",
D,
- dj(d.speed, "speed", Math.max(1e7, ...d.speed), `连接速度 ${D === "—" ? "暂无数据" : D}`)
+ uj(d.speed, "speed", Math.max(1e7, ...d.speed), `连接速度 ${D === "—" ? "暂无数据" : D}`)
],
[
k[0],
k[1],
- dj(d.activity, "activity", Math.max(1, ...d.activity), k[2])
+ uj(d.activity, "activity", Math.max(1, ...d.activity), k[2])
],
[
"缓冲健康",
`${w.toFixed(1)} 秒`,
- dj(d.buffer, "buffer", 30, `当前可连续播放 ${w.toFixed(1)} 秒`)
+ uj(d.buffer, "buffer", 30, `当前可连续播放 ${w.toFixed(1)} 秒`)
],
["播放时间", `${gn(t.currentTime)} / ${gn(u || l.duration())}`],
["日期", (/* @__PURE__ */ new Date()).toLocaleString()]
@@ -32399,15 +32400,15 @@ async function bse(e, t, n, r = {}) {
if (!n || l.isDisposed()) return;
let r = v();
r || p.sample(t);
- let i = mj(l, e.id, qj(), r ? null : p), a = r ? hj(i) : Zoe(i, aj(t));
+ let i = pj(l, e.id, Kj(), r ? null : p), a = r ? mj(i) : Zoe(i, ij(t));
n.innerHTML = `${R("gauge")}<span class="sr-only">加载速度</span><span>${B(a)}</span>`;
}, C = () => {
let e = y.chrome?.netBadge;
- e && e.isConnected && (e.hidden = !1, S(), tM && clearInterval(tM), tM = setInterval(S, 500));
+ e && e.isConnected && (e.hidden = !1, S(), eM && clearInterval(eM), eM = setInterval(S, 500));
}, w = () => {
let e = y.chrome?.netBadge;
- e && (nM && clearTimeout(nM), nM = setTimeout(() => {
- e.hidden = !0, tM &&= (clearInterval(tM), null);
+ e && (tM && clearTimeout(tM), tM = setTimeout(() => {
+ e.hidden = !0, eM &&= (clearInterval(eM), null);
}, 1400));
};
return l.on([
@@ -32426,13 +32427,13 @@ async function bse(e, t, n, r = {}) {
});
}), l.ready(() => {
_();
- let n = Oj(l, t, e.height, r.qualities ?? null);
+ let n = Dj(l, t, e.height, r.qualities ?? null);
r.mediaPromise?.then((t) => {
if (!g()) return;
n?.(t?.qualities?.length ? t.qualities : null);
let r = Number(t?.size) || 0;
- r > 0 && !f && (f = r, p.bitrate = sj(r, e.duration));
- }).catch(() => {}), kj(l, e, { thumbnail: !r.source }), sse(l, e), Aj(l), r.source || jj(l, e.id), y.ready = !0, y.chrome?.statsButton && (y.chrome.statsButton.hidden = !1);
+ r > 0 && !f && (f = r, p.bitrate = oj(r, e.duration));
+ }).catch(() => {}), Oj(l, e, { thumbnail: !r.source }), sse(l, e), kj(l), r.source || Aj(l, e.id), y.ready = !0, y.chrome?.statsButton && (y.chrome.statsButton.hidden = !1);
}), s().then((e) => {
g() && (b = String(e.type || "").includes("mpegurl"), o && o.time > 0 && l.one("loadedmetadata", () => {
if (l.isDisposed()) return;
@@ -32442,13 +32443,13 @@ async function bse(e, t, n, r = {}) {
}).catch(() => {}), l;
}
var xse = "<canvas data-ambient-canvas=\"\" width=\"32\" height=\"18\"></canvas>";
-function iM(e, t = null) {
+function rM(e, t = null) {
if (e.querySelector(":scope > [data-ambient-canvas]") || e.insertAdjacentHTML("afterbegin", xse), e.querySelector(":scope > #playerStatsBtn")) return;
let n = document.createElement("template");
n.innerHTML = Xoe(), e.insertBefore(n.content, t);
}
-function aM(e, t) {
- let n = $j.get(e);
+function iM(e, t) {
+ let n = Qj.get(e);
if (!n || e.isDisposed()) return () => {};
let r = (e) => t.querySelector(`:scope > #${e}`), i = {
statsButton: r("playerStatsBtn"),
@@ -32460,26 +32461,26 @@ function aM(e, t) {
if (a && o) {
a.hidden = !n.ready;
let e = () => {
- o.hidden || (o.hidden = !0, a.setAttribute("aria-pressed", "false"), eM &&= (clearInterval(eM), null));
+ o.hidden || (o.hidden = !0, a.setAttribute("aria-pressed", "false"), $j &&= (clearInterval($j), null));
};
a.onclick = () => {
- o.hidden ? (document.dispatchEvent(new CustomEvent(uj, { detail: "stats" })), o.hidden = !1, a.setAttribute("aria-pressed", "true"), n.updateStats(), eM && clearInterval(eM), eM = setInterval(n.updateStats, 1e3)) : e();
+ o.hidden ? (document.dispatchEvent(new CustomEvent(lj, { detail: "stats" })), o.hidden = !1, a.setAttribute("aria-pressed", "true"), n.updateStats(), $j && clearInterval($j), $j = setInterval(n.updateStats, 1e3)) : e();
};
let t = (t) => {
t.detail !== "stats" && e();
};
- document.addEventListener(uj, t), s = () => document.removeEventListener(uj, t);
+ document.addEventListener(lj, t), s = () => document.removeEventListener(lj, t);
}
let c = e.el().querySelector("video"), l = c ? ise(c) : () => {}, u = !0, d = () => {
- u && (u = !1, s(), l(), n.chrome === i && (n.chrome = null, rM()));
+ u && (u = !1, s(), l(), n.chrome === i && (n.chrome = null, nM()));
};
return e.one("dispose", d), d;
}
-function oM(e, t) {
+function aM(e, t) {
if (t.kind === "immerse") return yse(e, t);
- let { kind: n, item: r, media: i = null, handedOff: a, onPlayer: o } = t, s = GA(), c = t.chrome === !1 ? null : e.parentElement;
- c && iM(c, e);
- let l = Fj(n, r, i?.index ?? null), u = {
+ let { kind: n, item: r, media: i = null, handedOff: a, onPlayer: o } = t, s = WA(), c = t.chrome === !1 ? null : e.parentElement;
+ c && rM(c, e);
+ let l = Pj(n, r, i?.index ?? null), u = {
playbackKey: l,
resume: t.resume ?? {
time: lse(l, r),
@@ -32502,7 +32503,7 @@ function oM(e, t) {
t && (e.poster = t);
}
let d = null, f = !1, p = () => {}, m = e, h = () => {
- p(), !(d && a?.(d)) && (Pj(m), d ? (nj() === d && (rj(null), rM()), Bj(d)) : Lj(m));
+ p(), !(d && a?.(d)) && (Nj(m), d ? (tj() === d && (nj(null), nM()), zj(d)) : Ij(m));
};
return bse(r, e, t.autoplay ?? s.settings().detailAutoplay, u).then((t) => {
d = t, f ? h() : (m = t?.el().querySelector("video") ?? e, use(l, m), n === "follow" ? dse(r, m) : (m.addEventListener("play", () => {
@@ -32510,21 +32511,21 @@ function oM(e, t) {
method: "POST",
body: JSON.stringify({ id: r.id })
}).catch(() => {});
- }, { once: !0 }), zj(r, m, {
+ }, { once: !0 }), Rj(r, m, {
watched: "#watched",
mark: "#mark",
ratio: "#ratioTxt"
- })), t ? (c && (p = aM(t, c)), o?.(t)) : o?.(null));
+ })), t ? (c && (p = iM(t, c)), o?.(t)) : o?.(null));
}), () => {
f = !0, h();
};
}
//#endregion
//#region src/player/playback.ts
-function sM(e) {
+function oM(e) {
e && (e.paused ? e.play()?.catch(() => {}) : e.pause());
}
-function cM(e, t) {
+function sM(e, t) {
let n = e.duration, r = (e.currentTime || 0) + t;
e.currentTime = Number.isFinite(n) ? Math.max(0, Math.min(n, r)) : Math.max(0, r);
}
@@ -32533,7 +32534,7 @@ function cM(e, t) {
function Sse(e, t, n) {
e.controls = !1;
let r = !1, i = null;
- return Qj().then((a) => {
+ return Zj().then((a) => {
if (r) return;
i = a(e, {
controls: !0,
@@ -32558,57 +32559,57 @@ function Sse(e, t, n) {
o.on("error", () => {
r || n();
}), o.ready(() => {
- r || o.isDisposed() || (Oj(o, e), kj(o, null, { thumbnail: !1 }), Aj(o));
+ r || o.isDisposed() || (Dj(o, e), Oj(o, null, { thumbnail: !1 }), kj(o));
}), o.src(t);
}).catch(() => {
r || n();
}), () => {
- r = !0, Bj(i), i || (e.pause(), e.removeAttribute("src"), e.load(), e.remove());
+ r = !0, zj(i), i || (e.pause(), e.removeAttribute("src"), e.load(), e.remove());
};
}
//#endregion
//#region src/react/catalog-grid/catalog-view.ts
-var lM = "peach.catalog-view.v1", uM = /* @__PURE__ */ new Set(), dM = "cards";
-function fM() {
+var cM = "peach.catalog-view.v1", lM = /* @__PURE__ */ new Set(), uM = "cards";
+function dM() {
try {
- return localStorage.getItem(lM) === "list" ? "list" : "cards";
+ return localStorage.getItem(cM) === "list" ? "list" : "cards";
} catch {
- return dM;
+ return uM;
}
}
-function pM(e) {
- dM = e === "list" ? "list" : "cards";
+function fM(e) {
+ uM = e === "list" ? "list" : "cards";
try {
- localStorage.setItem(lM, dM);
+ localStorage.setItem(cM, uM);
} catch {}
- uM.forEach((e) => e());
+ lM.forEach((e) => e());
}
-function mM(e) {
- uM.add(e);
+function pM(e) {
+ lM.add(e);
let t = (t) => {
- (t.key === lM || t.key === null) && e();
+ (t.key === cM || t.key === null) && e();
};
return addEventListener("storage", t), () => {
- uM.delete(e), removeEventListener("storage", t);
+ lM.delete(e), removeEventListener("storage", t);
};
}
-var hM = () => (0, D.useSyncExternalStore)(mM, fM, () => "cards");
-function gM(e, t) {
+var mM = () => (0, D.useSyncExternalStore)(pM, dM, () => "cards");
+function hM(e, t) {
let n = new URLSearchParams(Object.entries(e).filter(([, e]) => e));
return t && n.set("exclude_vertical", "1"), n.toString();
}
-var _M = (e, t) => [
+var gM = (e, t) => [
"catalog-grid",
"catalog",
e,
t
-], vM = (e, t) => [
+], _M = (e, t) => [
"catalog-grid",
"entity",
e,
t
];
-async function yM(e, t, n, r, i) {
+async function vM(e, t, n, r, i) {
let a = new URLSearchParams(e);
a.set("limit", String(n)), a.set("offset", String(t)), t && a.set("count", "0");
let o = await V(`/api/items?${a}`, i), s = {
@@ -32618,22 +32619,22 @@ async function yM(e, t, n, r, i) {
};
return !t && !s.items.length && !r && (s.libraryEmpty = (await V("/api/items?limit=1&thumb=0", i)).total === 0), s;
}
-var bM = (e) => (t) => (t.offset === 0 ? t.items.length < (t.total || 0) : t.has_more) ? t.offset + e : void 0, xM = (e, t) => {
+var yM = (e) => (t) => (t.offset === 0 ? t.items.length < (t.total || 0) : t.has_more) ? t.offset + e : void 0, bM = (e, t) => {
let n = t.reduce((e, t) => e + t.items.length, 0);
return (e.has_more == null ? n < (e.total || 0) : e.has_more) ? n : void 0;
};
-function SM(e) {
- let t = gM(e.filters || {}, !!e.excludeVertical), n = e.batchSize || 60, r = e.filters?.state === "trash";
+function xM(e) {
+ let t = hM(e.filters || {}, !!e.excludeVertical), n = e.batchSize || 60, r = e.filters?.state === "trash";
return {
- queryKey: _M(t, e.revision || 0),
- queryFn: ({ pageParam: e, signal: i }) => yM(t, e, n, r, i),
+ queryKey: gM(t, e.revision || 0),
+ queryFn: ({ pageParam: e, signal: i }) => vM(t, e, n, r, i),
initialPageParam: 0,
- getNextPageParam: bM(n)
+ getNextPageParam: yM(n)
};
}
-function CM(e) {
+function SM(e) {
return {
- queryKey: vM(e.entityKey || "", e.revision || 0),
+ queryKey: _M(e.entityKey || "", e.revision || 0),
queryFn: async ({ pageParam: t, signal: n }) => {
if (!e.fetchPage) return {
items: [],
@@ -32648,12 +32649,12 @@ function CM(e) {
};
},
initialPageParam: 0,
- getNextPageParam: xM
+ getNextPageParam: bM
};
}
-async function wM(e, t) {
- if (e.mode !== "catalog" || e.wall || fM() === "list") return;
- let n = SM(e);
+async function CM(e, t) {
+ if (e.mode !== "catalog" || e.wall || dM() === "list") return;
+ let n = xM(e);
await U.fetchInfiniteQuery({
...n,
queryFn: ({ pageParam: e }) => n.queryFn({
@@ -32662,11 +32663,11 @@ async function wM(e, t) {
})
});
}
-function TM(e) {
+function wM(e) {
let t = JSON.stringify(e);
return U.getQueryCache().findAll({ queryKey: e.slice(0, -1) }).filter((e) => JSON.stringify(e.queryKey) !== t && Array.isArray(e.state.data?.pages)).sort((e, t) => t.state.dataUpdatedAt - e.state.dataUpdatedAt)[0]?.state.data;
}
-function EM(e, t, n) {
+function TM(e, t, n) {
return n ? e.filter((e) => {
let n = e.part_group?.key;
if (n) {
@@ -32681,24 +32682,24 @@ function EM(e, t, n) {
return !0;
}) : [...e];
}
-var DM = (e, t) => !!e && !!Sa(e, t);
-function OM(e, t) {
- let n = (e) => DM(e, t) && !!(e.creator || (e.performers || []).length || e.studio);
- return e.slice(15).find(n) || e.slice(8).find(n) || e.slice(8).find((e) => DM(e, t)) || e[e.length - 1];
+var EM = (e, t) => !!e && !!Sa(e, t);
+function DM(e, t) {
+ let n = (e) => EM(e, t) && !!(e.creator || (e.performers || []).length || e.studio);
+ return e.slice(15).find(n) || e.slice(8).find(n) || e.slice(8).find((e) => EM(e, t)) || e[e.length - 1];
}
-function kM(e, { collapse: t, mix: n, javImage: r }) {
+function OM(e, { collapse: t, mix: n, javImage: r }) {
let i = {
parts: /* @__PURE__ */ new Set(),
editions: /* @__PURE__ */ new Set()
}, a = /* @__PURE__ */ new Set(), o = [], s = [];
for (let c of e) {
s.push(o.length);
- let e = EM(c.items.filter((e) => !a.has(e.id) && !!a.add(e.id)), i, t), l = e.map((e) => ({
+ let e = TM(c.items.filter((e) => !a.has(e.id) && !!a.add(e.id)), i, t), l = e.map((e) => ({
kind: "card",
item: e
}));
if (n && e.length >= 8) {
- let t = OM(e, r);
+ let t = DM(e, r);
t && l.splice(7, 0, {
kind: "mix",
seed: t
@@ -32711,16 +32712,16 @@ function kM(e, { collapse: t, mix: n, javImage: r }) {
pageStarts: s
};
}
-function AM(e, t, n) {
+function kM(e, t, n) {
let r = Math.max(1, n), i = [];
for (let n = Math.max(r, Math.ceil(Math.max(0, t) / r) * r); n < e; n += r) i.push(n);
return i;
}
-function jM(e, t) {
+function AM(e, t) {
let n = new URLSearchParams(Object.entries(e).filter(([, e]) => e));
return n.set("orient", "竖屏"), n.set("limit", "18"), n.set("offset", String(t)), n.toString();
}
-function MM(e, t) {
+function jM(e, t) {
let n = [...t].sort((e, t) => e.at - t.at), r = [], i = 0;
for (let t of n) r.push({
start: i,
@@ -32733,10 +32734,10 @@ function MM(e, t) {
strip: null
}), r;
}
-function NM(e, t) {
- PM((t) => t.id === e, t);
+function MM(e, t) {
+ NM((t) => t.id === e, t);
}
-function PM(e, t) {
+function NM(e, t) {
U.setQueriesData({ queryKey: ["catalog-grid", "table"] }, (n) => n?.items.some(e) ? {
...n,
items: n.items.map((n) => e(n) ? {
@@ -32757,34 +32758,34 @@ function PM(e, t) {
} : n)
});
}
-var FM = (e) => Math.min(Math.max(e || 0, 0), 100), IM = (e) => Math.round(FM(e) / 20), LM = (e) => {
- let t = IM(e);
+var PM = (e) => Math.min(Math.max(e || 0, 0), 100), FM = (e) => Math.round(PM(e) / 20), IM = (e) => {
+ let t = FM(e);
return t ? `${t} 星` : "未评分";
-}, RM = (e, t) => t === IM(e) ? 0 : t * 20, zM = (e) => ["item", e], BM = (e) => [
+}, LM = (e, t) => t === FM(e) ? 0 : t * 20, RM = (e) => ["item", e], zM = (e) => [
"item-queue",
e.kind,
e.kind === "playlist" ? e.playlistId : e.seedId
-], VM = (e, t) => [
+], BM = (e, t) => [
"item-related",
e,
t
-], Cse = (e) => `/api/item?id=${e}`, wse = (e, t) => `/api/related?id=${e}&limit=${t}`, HM = "/api/playlist", UM = "/api/feedback", WM = "/api/item-tag", GM = "/api/watch-later", KM = "/api/quality-goal", qM = "/api/preference", JM = class extends Error {};
-async function YM(e, t) {
+], Cse = (e) => `/api/item?id=${e}`, wse = (e, t) => `/api/related?id=${e}&limit=${t}`, VM = "/api/playlist", HM = "/api/feedback", UM = "/api/item-tag", WM = "/api/watch-later", GM = "/api/quality-goal", KM = "/api/preference", qM = class extends Error {};
+async function JM(e, t) {
let n = await V(Cse(e), t);
- if (n.error) throw new JM(n.error);
+ if (n.error) throw new qM(n.error);
return n;
}
-async function XM(e, t, n) {
+async function YM(e, t, n) {
if (e.kind === "mix") {
- let r = e.seedId, [i, a] = await Promise.all([YM(r, n), t.mixRelated(r)]);
- return U.setQueryData(zM(i.id), i), {
+ let r = e.seedId, [i, a] = await Promise.all([JM(r, n), t.mixRelated(r)]);
+ return U.setQueryData(RM(i.id), i), {
kind: "mix",
seedId: r,
title: `Mix · ${Qa(i, t.tagLabel)}`,
items: [i, ...a.filter((e) => e.id !== i.id)]
};
}
- if (e.kind === "playlist") return ZM(await V(`${HM}?id=${e.playlistId}`, n));
+ if (e.kind === "playlist") return XM(await V(`${VM}?id=${e.playlistId}`, n));
let r = await V(`/api/${e.kind}?id=${e.seedId}`, n);
if (r.error || !r.items?.length) throw Error(r.error || "这一组已不存在");
return {
@@ -32795,16 +32796,16 @@ async function XM(e, t, n) {
versionCount: e.kind === "editions" ? r.count : void 0
};
}
-var ZM = (e) => ({
+var XM = (e) => ({
kind: "playlist",
playlistId: e.id,
title: e.name,
items: e.items || [],
currentAssetId: e.current_asset_id
-}), QM = (e) => e.disposal === "vanished";
-function $M(e, t) {
+}), ZM = (e) => e.disposal === "vanished";
+function QM(e, t) {
if (e.kind === "mix") return t;
- let n = e.kind === "playlist" ? e.items.filter((e) => !QM(e)) : e.items;
+ let n = e.kind === "playlist" ? e.items.filter((e) => !ZM(e)) : e.items;
return n.length ? t != null && n.some((e) => e.id === t) ? t : e.kind === "playlist" && n.some((t) => t.id === e.currentAssetId) ? e.currentAssetId : n[0].id : null;
}
function Tse(e, t) {
@@ -32815,20 +32816,20 @@ function Tse(e, t) {
part_label: n
};
}
-function eN(e, t) {
+function $M(e, t) {
if (!e || e.kind !== "parts" && e.kind !== "editions") return null;
let n = e.items.findIndex((e) => e.id === t), r = e.items[n], i = e.items[n + 1];
return !r?.part_label || !i?.part_label ? null : e.kind === "parts" || r.version_id != null && r.version_id === i.version_id ? i : null;
}
-async function tN(e, t) {
+async function eN(e, t) {
let { queue: n, actions: r } = e, i = null, a = !1;
if (n) {
- let o = BM(n);
+ let o = zM(n);
try {
let r = n.fresh ? void 0 : U.getQueryData(o);
a = !r && n.kind === "mix", i = r || await U.fetchQuery({
queryKey: o,
- queryFn: () => XM(n, e.helpers, t),
+ queryFn: () => YM(n, e.helpers, t),
staleTime: 0
});
} catch (n) {
@@ -32840,21 +32841,21 @@ async function tN(e, t) {
return;
}
}
- let o = i ? $M(i, e.id) : e.id;
+ let o = i ? QM(i, e.id) : e.id;
if (o == null) {
r.redirect(i?.kind === "playlist" ? { kind: "playlists" } : { kind: "gone" });
return;
}
- let s, c = a && o === i?.seedId ? U.getQueryData(zM(o)) : void 0;
+ let s, c = a && o === i?.seedId ? U.getQueryData(RM(o)) : void 0;
try {
s = c || await U.fetchQuery({
- queryKey: zM(o),
- queryFn: () => YM(o, t),
+ queryKey: RM(o),
+ queryFn: () => JM(o, t),
staleTime: 0
});
} catch (e) {
if (t.aborted) throw e;
- if (e instanceof JM) {
+ if (e instanceof qM) {
r.redirect({ kind: "gone" });
return;
}
@@ -32894,16 +32895,16 @@ function Dse(e, t) {
(!i || un(e.k) === r && un(i.k) !== r) && n.set(r, e);
}), [...n.values()].slice(0, 40);
}
-var nN = (e, t) => (e.tags || []).some((e) => un(e.k) === un(t)), rN = (e, t) => ({
+var tN = (e, t) => (e.tags || []).some((e) => un(e.k) === un(t)), nN = (e, t) => ({
...e,
tags: (e.tags || []).filter((e) => un(e.k) !== un(t))
-}), iN = (e, t) => nN(e, t.k) ? e : {
+}), rN = (e, t) => tN(e, t.k) ? e : {
...e,
tags: [...e.tags || [], t]
-}, aN = "peach.recentTags";
-function oN() {
+}, iN = "peach.recentTags";
+function aN() {
try {
- let e = JSON.parse(localStorage.getItem(aN) || "[]");
+ let e = JSON.parse(localStorage.getItem(iN) || "[]");
return Array.isArray(e) ? e.map(String) : [];
} catch {
return [];
@@ -32911,8 +32912,8 @@ function oN() {
}
function Ose(e) {
try {
- let t = oN().filter((t) => un(t) !== un(e));
- localStorage.setItem(aN, JSON.stringify([e, ...t].slice(0, 12)));
+ let t = aN().filter((t) => un(t) !== un(e));
+ localStorage.setItem(iN, JSON.stringify([e, ...t].slice(0, 12)));
} catch {}
}
function kse(e, t, n) {
@@ -32944,7 +32945,7 @@ function Mse(e) {
summary: e.kind === "editions" ? n : `${e.title} · ${n}`
};
}
-var sN = (e = "") => /^\d+$/.test(e) ? `第 ${e} 卷` : /^[a-h]$/i.test(e) ? `${e.toUpperCase()} 卷` : e, Nse = (e, t) => (t?.kind === "parts" || t?.kind === "editions") && e.part_label ? `<small class="javedition partlabel">${B(sN(e.part_label))}</small>` : "";
+var oN = (e = "") => /^\d+$/.test(e) ? `第 ${e} 卷` : /^[a-h]$/i.test(e) ? `${e.toUpperCase()} 卷` : e, Nse = (e, t) => (t?.kind === "parts" || t?.kind === "editions") && e.part_label ? `<small class="javedition partlabel">${B(oN(e.part_label))}</small>` : "";
function Pse(e, t, n, r) {
let i = e.filter((e) => e !== t), a = i.indexOf(n);
return i.splice(a + +!!r, 0, t), i;
@@ -32957,7 +32958,7 @@ function Lse(e) {
let t = Number(e.duration) > 0 ? Number(e.duration) : 0;
return !e.play_seconds || !t ? null : Math.min(Number(e.play_seconds) / t, 1) * 100;
}
-function cN(e, t) {
+function sN(e, t) {
return e === "dislike" ? t.feedback === "dislike" ? "已标记不合口味" : "已取消不合口味" : e === "seen" ? t.feedback === "seen" ? "已标记看过" : "已取消看过" : e === "dispose" ? t.disposal === "trash" ? "已移入回收站" : "已移出回收站" : "已记录一次高潮";
}
//#endregion
@@ -32984,9 +32985,9 @@ function Vse(e, t = Math.random) {
async function Hse(e, t) {
return Vse(((await V(`/api/items?${e}`)).items || []).filter((e) => Bse(e, t)));
}
-var lN = (e) => U.ensureQueryData({
- queryKey: zM(e),
- queryFn: ({ signal: t }) => YM(e, t)
+var cN = (e) => U.ensureQueryData({
+ queryKey: RM(e),
+ queryFn: ({ signal: t }) => JM(e, t)
});
function Use(e, t) {
let n = new Set(e.map((e) => e.id));
@@ -33009,81 +33010,81 @@ function Gse(e, t, n) {
function Kse(e, t) {
return e.videoWidth && e.videoHeight ? e.videoWidth >= e.videoHeight : !!(t.width && t.height && t.width > 0 && t.height > 0 && t.width >= t.height);
}
-var qse = 15e3, uN = {
+var qse = 15e3, lN = {
open: !1,
idle: !1,
wide: !1,
loading: null,
shown: null
-}, dN = null, fN = null, pN = uN, mN = /* @__PURE__ */ new Set(), hN = 0, gN = 0, _N = 0, vN = "", yN = [], bN = 0, xN = !1, SN = !1, CN = null, wN = /* @__PURE__ */ new Set(), TN = "", EN = null, DN = 0, ON = null, kN = !1;
-function AN() {
- if (!dN) throw Error("沉浸模式还没有接上宿主(configureImmerse)");
- return dN;
+}, uN = null, dN = null, fN = lN, pN = /* @__PURE__ */ new Set(), mN = 0, hN = 0, gN = 0, _N = "", vN = [], yN = 0, bN = !1, xN = !1, SN = null, CN = /* @__PURE__ */ new Set(), wN = "", TN = null, EN = 0, DN = null, ON = !1;
+function kN() {
+ if (!uN) throw Error("沉浸模式还没有接上宿主(configureImmerse)");
+ return uN;
}
function Jse(e) {
- return mN.add(e), () => {
- mN.delete(e);
+ return pN.add(e), () => {
+ pN.delete(e);
};
}
function Yse() {
- for (let e of [...mN]) e();
+ for (let e of [...pN]) e();
}
-function jN() {
+function AN() {
(0, Tt.flushSync)(Yse);
}
-function MN() {
- let e = EN ? pj(EN.id) : 0;
- return e ? `${TN} · ${hj(e)}` : TN;
+function jN() {
+ let e = TN ? fj(TN.id) : 0;
+ return e ? `${wN} · ${mj(e)}` : wN;
}
-function NN(e, t = null) {
- clearInterval(DN), DN = 0, e === null ? (pN = {
- ...pN,
+function MN(e, t = null) {
+ clearInterval(EN), EN = 0, e === null ? (fN = {
+ ...fN,
loading: null
- }, jN()) : (TN = e, EN = t, pN = {
- ...pN,
- loading: MN()
- }, jN(), DN = window.setInterval(() => {
- EN = yN[bN] ?? null, pN = {
- ...pN,
- loading: MN()
- }, jN();
+ }, AN()) : (wN = e, TN = t, fN = {
+ ...fN,
+ loading: jN()
+ }, AN(), EN = window.setInterval(() => {
+ TN = vN[yN] ?? null, fN = {
+ ...fN,
+ loading: jN()
+ }, AN();
}, 500));
}
function Xse(e) {
let t = document.createElement("div");
t.dataset.immerseSlide = "", e && (t.style.transform = `translateY(${e}%)`);
let n = document.createElement("video");
- n.className = "video-js", n.playsInline = !0, n.preload = "auto", t.append(n), fN.track.append(t);
- let r = Hj(), i = () => {}, a = {
+ n.className = "video-js", n.playsInline = !0, n.preload = "auto", t.append(n), dN.track.append(t);
+ let r = Vj(), i = () => {}, a = {
el: t,
video: n,
session: r,
- release: () => Gj(r),
+ release: () => Wj(r),
disposed: !1,
gone: new Promise((e) => {
i = e;
}),
leave: i
};
- return wN.add(a), a;
+ return CN.add(a), a;
}
function Zse(e, t) {
return new Promise((n) => {
- e.release = oM(e.video, {
+ e.release = aM(e.video, {
kind: "immerse",
item: t,
session: e.session,
onLoaded: n,
onEnded: () => {
- pN.open && BN(1);
+ fN.open && zN(1);
}
}), e.gone.then(n);
});
}
-function PN(e) {
- e && !e.disposed && (e.disposed = !0, wN.delete(e), e.leave(), e.release(), e.el.remove(), CN === e && (CN = null));
+function NN(e) {
+ e && !e.disposed && (e.disposed = !0, CN.delete(e), e.leave(), e.release(), e.el.remove(), SN === e && (SN = null));
}
-var FN = [
+var PN = [
"loadeddata",
"canplay",
"error"
@@ -33092,32 +33093,32 @@ function Qse(e) {
let { video: t } = e;
return t.readyState >= 3 ? Promise.resolve() : new Promise((n) => {
let r = !1, i = () => {
- r || (r = !0, clearTimeout(a), FN.forEach((e) => t.removeEventListener(e, i)), n());
+ r || (r = !0, clearTimeout(a), PN.forEach((e) => t.removeEventListener(e, i)), n());
};
- FN.forEach((e) => t.addEventListener(e, i, { once: !0 }));
+ PN.forEach((e) => t.addEventListener(e, i, { once: !0 }));
let a = setTimeout(i, qse);
e.gone.then(i);
});
}
-function IN(e) {
+function FN(e) {
let t = e.closest("[data-immerse-track]"), n = t && t.clientWidth && t.clientHeight ? t.clientWidth / t.clientHeight : window.innerWidth / window.innerHeight, r = Gse(e.videoWidth, e.videoHeight, n);
r === "contain" ? e.dataset.fit = "contain" : r && delete e.dataset.fit;
}
-var LN = () => fN?.track.querySelectorAll("video").forEach(IN);
+var IN = () => dN?.track.querySelectorAll("video").forEach(FN);
function $se(e) {
- delete e.dataset.fit, e.readyState >= 1 ? IN(e) : e.addEventListener("loadedmetadata", () => IN(e), { once: !0 });
+ delete e.dataset.fit, e.readyState >= 1 ? FN(e) : e.addEventListener("loadedmetadata", () => FN(e), { once: !0 });
}
function ece(e) {
- pN = {
- ...pN,
+ fN = {
+ ...fN,
wide: e
- }, jN(), LN();
+ }, AN(), IN();
}
-var RN = () => {
- let e = vN;
+var LN = () => {
+ let e = _N;
return U.fetchQuery({
- queryKey: Rse(e, gN, _N),
- queryFn: () => Hse(e, AN().sourceOffline),
+ queryKey: Rse(e, hN, gN),
+ queryFn: () => Hse(e, kN().sourceOffline),
staleTime: Infinity
});
};
@@ -33125,182 +33126,182 @@ function tce(e, t) {
let n = () => mn(e.duration) || mn(t.duration);
e.addEventListener("timeupdate", () => {
let t = n();
- t && fN && (fN.progress.style.width = `${(e.currentTime / t * 100).toFixed(2)}%`);
- }), ON = {
+ t && dN && (dN.progress.style.width = `${(e.currentTime / t * 100).toFixed(2)}%`);
+ }), DN = {
video: e,
duration: n
};
}
-async function zN(e = 0) {
- let t = yN[bN];
- if (!t || xN) return;
- let n = hN;
- AN().route(t.id), xN = !0, NN(e ? "切换中" : "加载中", t);
+async function RN(e = 0) {
+ let t = vN[yN];
+ if (!t || bN) return;
+ let n = mN;
+ kN().route(t.id), bN = !0, MN(e ? "切换中" : "加载中", t);
let r = null;
try {
- if (await lN(t.id).catch((e) => {
- if (!(e instanceof JM)) throw e;
- }), n !== hN) return;
- let i = CN, a = !!(e && i);
- a || PN(i);
+ if (await cN(t.id).catch((e) => {
+ if (!(e instanceof qM)) throw e;
+ }), n !== mN) return;
+ let i = SN, a = !!(e && i);
+ a || NN(i);
let o = Xse(a ? e > 0 ? 100 : -100 : 0);
if (r = o, $se(o.video), await Zse(o, t), await Qse(o), o.disposed || (ece(Kse(o.video, t)), a && i && (requestAnimationFrame(() => requestAnimationFrame(() => {
i.el.style.transform = `translateY(${e > 0 ? -100 : 100}%)`, o.el.style.transform = "";
- })), await new Promise((e) => setTimeout(e, 210)), PN(i), o.el.style.transform = ""), o.disposed)) return;
- CN = o, r = null, o.video.play()?.catch(() => {}), pN = {
- ...pN,
+ })), await new Promise((e) => setTimeout(e, 210)), NN(i), o.el.style.transform = ""), o.disposed)) return;
+ SN = o, r = null, o.video.play()?.catch(() => {}), fN = {
+ ...fN,
idle: !1,
shown: {
item: t,
- index: bN,
- length: yN.length
+ index: yN,
+ length: vN.length
}
- }, tce(o.video, t), H("/api/play", { id: t.id }).catch(() => {}), NN(null);
+ }, tce(o.video, t), H("/api/play", { id: t.id }).catch(() => {}), MN(null);
} catch {
- PN(r), n === hN && NN(null);
+ NN(r), n === mN && MN(null);
} finally {
- n === hN && (xN = !1);
+ n === mN && (bN = !1);
}
}
-async function BN(e) {
- if (xN || !pN.open) return;
- let t = hN;
- if (bN += e, NN("切换中", yN[bN] ?? null), bN >= yN.length - 3 && !SN) {
- SN = !0;
+async function zN(e) {
+ if (bN || !fN.open) return;
+ let t = mN;
+ if (yN += e, MN("切换中", vN[yN] ?? null), yN >= vN.length - 3 && !xN) {
+ xN = !0;
try {
- _N += 1;
- let e = await RN();
- t === hN && (yN = Use(yN, e));
+ gN += 1;
+ let e = await LN();
+ t === mN && (vN = Use(vN, e));
} catch {} finally {
- SN = !1;
+ xN = !1;
}
}
- t === hN && (bN >= yN.length && (bN = 0), bN < 0 && (bN = yN.length - 1), await zN(e));
+ t === mN && (yN >= vN.length && (yN = 0), yN < 0 && (yN = vN.length - 1), await RN(e));
}
async function nce(e) {
- let t = ++hN;
- VN(), gN += 1, _N = 0, vN = zse(AN().filters()), U.removeQueries({ queryKey: ["immerse-list"] }), pN = {
- ...pN,
+ let t = ++mN;
+ BN(), hN += 1, gN = 0, _N = zse(kN().filters()), U.removeQueries({ queryKey: ["immerse-list"] }), fN = {
+ ...fN,
open: !0,
idle: !0,
shown: null
- }, document.body.setAttribute("data-immerse-open", ""), NN("加载内容");
+ }, document.body.setAttribute("data-immerse-open", ""), MN("加载内容");
try {
- let n = await RN();
+ let n = await LN();
if (e && !n.some((t) => t.id === e)) {
- let t = await lN(e).catch((e) => {
- if (e instanceof JM) return null;
+ let t = await cN(e).catch((e) => {
+ if (e instanceof qM) return null;
throw e;
});
t?.id && (n = [t, ...n.filter((t) => t.id !== e)]);
}
- if (t !== hN) return;
- if (yN = n, !yN.length) {
- HN(), AN().warn("当前筛选下没有可直接播放的内容");
+ if (t !== mN) return;
+ if (vN = n, !vN.length) {
+ VN(), kN().warn("当前筛选下没有可直接播放的内容");
return;
}
- bN = Math.max(0, yN.findIndex((t) => t.id === e)), await zN();
+ yN = Math.max(0, vN.findIndex((t) => t.id === e)), await RN();
} catch {
- if (t !== hN) return;
- NN(null), HN();
+ if (t !== mN) return;
+ MN(null), VN();
}
}
-function VN() {
- clearInterval(DN), DN = 0, JN(), KN = null, ON = null, kN = !1, [...wN].forEach(PN), xN = !1;
+function BN() {
+ clearInterval(EN), EN = 0, qN(), GN = null, DN = null, ON = !1, [...CN].forEach(NN), bN = !1;
}
-function HN() {
- pN.open && (hN++, VN(), pN = uN, document.body.removeAttribute("data-immerse-open"), jN(), AN().closed());
+function VN() {
+ fN.open && (mN++, BN(), fN = lN, document.body.removeAttribute("data-immerse-open"), AN(), kN().closed());
}
-var UN = 0, WN = null, GN = 0, KN = null, qN = 0;
-function JN() {
- clearTimeout(UN), UN = 0, WN = null;
+var HN = 0, UN = null, WN = 0, GN = null, KN = 0;
+function qN() {
+ clearTimeout(HN), HN = 0, UN = null;
}
function rce(e) {
- let t = CN?.video;
+ let t = SN?.video;
if (!t) return;
let n = e < window.innerWidth / 2 ? -1 : 1, r = Date.now();
- WN && WN.side === n && r - WN.at <= 280 ? (JN(), cM(t, AN().seekSeconds() * n)) : (UN && (clearTimeout(UN), UN = 0, sM(t)), WN = {
+ UN && UN.side === n && r - UN.at <= 280 ? (qN(), sM(t, kN().seekSeconds() * n)) : (HN && (clearTimeout(HN), HN = 0, oM(t)), UN = {
side: n,
at: r
- }, UN = window.setTimeout(() => {
- UN = 0, WN = null, pN.open && sM(CN?.video);
+ }, HN = window.setTimeout(() => {
+ HN = 0, UN = null, fN.open && oM(SN?.video);
}, 280));
}
function ice() {
- Date.now() < GN || sM(CN?.video);
+ Date.now() < WN || oM(SN?.video);
}
-var YN = (e) => fN?.bar.toggleAttribute("data-scrubbing", e);
-function XN(e) {
- fN && (fN.progress.style.width = `${(e * 100).toFixed(2)}%`);
+var JN = (e) => dN?.bar.toggleAttribute("data-scrubbing", e);
+function YN(e) {
+ dN && (dN.progress.style.width = `${(e * 100).toFixed(2)}%`);
}
-function ZN(e) {
+function XN(e) {
let t = e.target;
if (e.touches.length !== 1 || !t?.closest("[data-immerse-track]")) {
- KN = null;
+ GN = null;
return;
}
- let n = CN?.video;
- KN = {
+ let n = SN?.video;
+ GN = {
x: e.touches[0].clientX,
y: e.touches[0].clientY,
axis: "",
from: n && n.currentTime || 0
};
}
-function QN(e) {
- if (!KN || e.touches.length !== 1) return;
- let t = e.touches[0].clientX - KN.x, n = e.touches[0].clientY - KN.y;
- if (!KN.axis) {
+function ZN(e) {
+ if (!GN || e.touches.length !== 1) return;
+ let t = e.touches[0].clientX - GN.x, n = e.touches[0].clientY - GN.y;
+ if (!GN.axis) {
if (Math.abs(t) < 12 && Math.abs(n) < 12) return;
- KN.axis = Math.abs(t) > Math.abs(n) ? "x" : "y", KN.axis === "x" && YN(!0);
+ GN.axis = Math.abs(t) > Math.abs(n) ? "x" : "y", GN.axis === "x" && JN(!0);
}
- if (KN.axis !== "x") return;
- let r = CN?.video, i = r && r.duration || 0;
- i && (e.preventDefault(), KN.to = Math.min(i, Math.max(0, KN.from + t / window.innerWidth * i)), XN(KN.to / i));
+ if (GN.axis !== "x") return;
+ let r = SN?.video, i = r && r.duration || 0;
+ i && (e.preventDefault(), GN.to = Math.min(i, Math.max(0, GN.from + t / window.innerWidth * i)), YN(GN.to / i));
}
-function $N(e) {
- if (!KN) return;
- let t = KN;
- if (KN = null, GN = Date.now() + 700, YN(!1), t.axis === "x") {
- let e = CN?.video;
+function QN(e) {
+ if (!GN) return;
+ let t = GN;
+ if (GN = null, WN = Date.now() + 700, JN(!1), t.axis === "x") {
+ let e = SN?.video;
e && t.to != null && (e.currentTime = t.to);
return;
}
let n = e.changedTouches[0], r = n.clientX - t.x, i = t.y - n.clientY;
- Math.abs(i) > 60 ? (JN(), BN(i > 0 ? 1 : -1)) : Math.abs(r) <= 14 && Math.abs(i) <= 14 && (e.preventDefault(), rce(n.clientX));
+ Math.abs(i) > 60 ? (qN(), zN(i > 0 ? 1 : -1)) : Math.abs(r) <= 14 && Math.abs(i) <= 14 && (e.preventDefault(), rce(n.clientX));
}
-function eP() {
- KN = null, YN(!1);
+function $N() {
+ GN = null, JN(!1);
}
-function tP(e) {
+function eP(e) {
let t = Date.now();
- t - qN < 260 || (qN = t, BN(e.deltaY > 0 ? 1 : -1));
+ t - KN < 260 || (KN = t, zN(e.deltaY > 0 ? 1 : -1));
}
-function nP(e) {
- let t = fN.bar.getBoundingClientRect();
+function tP(e) {
+ let t = dN.bar.getBoundingClientRect();
return Math.min(1, Math.max(0, (e.clientX - t.left) / t.width));
}
function ace(e) {
- ON?.duration() && (kN = !0, YN(!0), e.currentTarget.setPointerCapture(e.pointerId), XN(nP(e)), e.preventDefault());
+ DN?.duration() && (ON = !0, JN(!0), e.currentTarget.setPointerCapture(e.pointerId), YN(tP(e)), e.preventDefault());
}
function oce(e) {
- kN && XN(nP(e));
+ ON && YN(tP(e));
}
function sce(e) {
- if (!kN) return;
- kN = !1, YN(!1);
- let t = ON?.duration();
- ON && t && (ON.video.currentTime = t * nP(e));
+ if (!ON) return;
+ ON = !1, JN(!1);
+ let t = DN?.duration();
+ DN && t && (DN.video.currentTime = t * tP(e));
}
function cce() {
- kN = !1, YN(!1);
+ ON = !1, JN(!1);
}
-async function rP(e, t) {
- let n = await H(UM, {
+async function nP(e, t) {
+ let n = await H(HM, {
id: e,
kind: t
- }), r = U.getQueryData(zM(e));
- if (!r) return NM(e, {
+ }), r = U.getQueryData(RM(e));
+ if (!r) return MM(e, {
feedback: n.feedback ?? void 0,
o_count: n.o_count
}), n;
@@ -33309,7 +33310,7 @@ async function rP(e, t) {
feedback: n.feedback ?? void 0,
o_count: n.o_count
};
- return U.setQueryData(zM(e), i), NM(e, {
+ return U.setQueryData(RM(e), i), MM(e, {
feedback: i.feedback,
disposal: i.disposal,
watch_later: i.watch_later,
@@ -33334,31 +33335,31 @@ var lce = [
label: "记一次高潮"
}
];
-function iP(e) {
+function rP(e) {
return St({
- queryKey: zM(e ?? 0),
- queryFn: ({ signal: t }) => YM(e, t),
+ queryKey: RM(e ?? 0),
+ queryFn: ({ signal: t }) => JM(e, t),
enabled: e != null,
staleTime: Infinity
}).data;
}
function uce({ kind: e, glyph: t, label: n, id: r }) {
- let i = iP(r), a = Ct({
+ let i = rP(r), a = Ct({
mutationFn: async (t) => {
- let n = U.getQueryData(zM(t))?.feedback || null;
+ let n = U.getQueryData(RM(t))?.feedback || null;
return {
- result: await rP(t, e),
+ result: await nP(t, e),
before: n
};
},
onSuccess: ({ result: t, before: n }, r) => {
- AN().toast(cN(e, t), { undo: async () => {
- e === "o" ? await rP(r, "o-undo") : (t.feedback && await rP(r, t.feedback), n && await rP(r, n));
+ kN().toast(sN(e, t), { undo: async () => {
+ e === "o" ? await nP(r, "o-undo") : (t.feedback && await nP(r, t.feedback), n && await nP(r, n));
} }), e === "dislike" && t.feedback === "dislike" && setTimeout(() => {
- BN(1);
+ zN(1);
}, 260);
},
- onError: (e) => AN().failure("更新反馈", e)
+ onError: (e) => kN().failure("更新反馈", e)
}), o = a.isPending, s = e !== "o" && i ? i.feedback === e ? "true" : "false" : void 0;
return /* @__PURE__ */ (0, O.jsxs)("div", {
"data-immerse-action": "",
@@ -33390,10 +33391,10 @@ function uce({ kind: e, glyph: t, label: n, id: r }) {
});
}
function dce({ shown: e }) {
- let t = e?.item ?? null, n = iP(t?.id ?? null), r = n ? Wse(n) : null, i = AN(), a = (e) => {
- e.preventDefault(), n && (HN(), n.performers?.[0] ? i.openEntity("performer", n.performers[0]) : n.creator ? i.openEntity("creator", n.creator) : i.openUnowned());
+ let t = e?.item ?? null, n = rP(t?.id ?? null), r = n ? Wse(n) : null, i = kN(), a = (e) => {
+ e.preventDefault(), n && (VN(), n.performers?.[0] ? i.openEntity("performer", n.performers[0]) : n.creator ? i.openEntity("creator", n.creator) : i.openUnowned());
}, o = () => {
- t && (HN(), i.openItem(t.id));
+ t && (VN(), i.openItem(t.id));
}, s = r ? La(r.name, r.ref, va(r.name), r.kind || "performer") : "";
return /* @__PURE__ */ (0, O.jsxs)("div", {
"data-immerse-ui": "",
@@ -33427,13 +33428,13 @@ function pce({ view: e }) {
let t = (0, D.useRef)(null), n = (0, D.useRef)(null), r = (0, D.useRef)(null), i = (0, D.useRef)(null);
(0, D.useLayoutEffect)(() => {
let e = t.current;
- return fN = {
+ return dN = {
root: e,
track: n.current,
bar: r.current,
progress: i.current
- }, e.addEventListener("touchstart", ZN, { passive: !0 }), e.addEventListener("touchmove", QN, { passive: !1 }), e.addEventListener("touchend", $N, { passive: !1 }), e.addEventListener("touchcancel", eP, { passive: !0 }), e.addEventListener("wheel", tP, { passive: !0 }), () => {
- e.removeEventListener("touchstart", ZN), e.removeEventListener("touchmove", QN), e.removeEventListener("touchend", $N), e.removeEventListener("touchcancel", eP), e.removeEventListener("wheel", tP), fN = null;
+ }, e.addEventListener("touchstart", XN, { passive: !0 }), e.addEventListener("touchmove", ZN, { passive: !1 }), e.addEventListener("touchend", QN, { passive: !1 }), e.addEventListener("touchcancel", $N, { passive: !0 }), e.addEventListener("wheel", eP, { passive: !0 }), () => {
+ e.removeEventListener("touchstart", XN), e.removeEventListener("touchmove", ZN), e.removeEventListener("touchend", QN), e.removeEventListener("touchcancel", $N), e.removeEventListener("wheel", eP), dN = null;
};
}, []);
let a = e.shown?.item.id ?? null, o = (e) => e ? "" : void 0;
@@ -33474,7 +33475,7 @@ function pce({ view: e }) {
"data-immerse-close": "",
title: "关闭",
"aria-label": "关闭",
- onClick: HN,
+ onClick: VN,
children: /* @__PURE__ */ (0, O.jsx)("svg", {
viewBox: "0 0 24 24",
children: /* @__PURE__ */ (0, O.jsx)("use", { href: "#i-x" })
@@ -33495,30 +33496,30 @@ function pce({ view: e }) {
}
var mce = {
open: nce,
- close: HN,
- isOpen: () => pN.open,
- activeVideo: () => pN.open ? CN?.video ?? null : null
+ close: VN,
+ isOpen: () => fN.open,
+ activeVideo: () => fN.open ? SN?.video ?? null : null
};
function hce(e) {
- if (!pN.open) return;
+ if (!fN.open) return;
let t = e.target;
- (!t || t.tagName !== "INPUT" && t.tagName !== "TEXTAREA" && !t.isContentEditable) && (e.ctrlKey || e.metaKey || e.altKey || (e.key === "ArrowDown" && BN(1), e.key === "ArrowUp" && BN(-1)));
+ (!t || t.tagName !== "INPUT" && t.tagName !== "TEXTAREA" && !t.isContentEditable) && (e.ctrlKey || e.metaKey || e.altKey || (e.key === "ArrowDown" && zN(1), e.key === "ArrowUp" && zN(-1)));
}
function gce(e) {
- let t = !dN;
- return dN = e, t && (document.addEventListener("keydown", hce), addEventListener("resize", () => {
- pN.open && LN();
+ let t = !uN;
+ return uN = e, t && (document.addEventListener("keydown", hce), addEventListener("resize", () => {
+ fN.open && IN();
}), addEventListener("pagehide", () => {
- wN.forEach((e) => Gj(e.session));
+ CN.forEach((e) => Wj(e.session));
})), mce;
}
function _ce() {
- let e = (0, D.useSyncExternalStore)(Jse, () => pN);
- return dN ? /* @__PURE__ */ (0, O.jsx)(pce, { view: e }) : null;
+ let e = (0, D.useSyncExternalStore)(Jse, () => fN);
+ return uN ? /* @__PURE__ */ (0, O.jsx)(pce, { view: e }) : null;
}
//#endregion
//#region src/manage-header.ts
-var aP = {
+var iP = {
"/junk-files": "垃圾文件",
"/duplicates": "重复文件",
"/review": "人工复核",
@@ -33527,14 +33528,14 @@ var aP = {
"/sources": "来源和凭证"
}, vce = /* @__PURE__ */ new Set(["/data-cleanup", "/sources"]);
function yce(e) {
- let t = aP[e.path] ? "cleanup" : e.section;
+ let t = iP[e.path] ? "cleanup" : e.section;
return e.menu.some(([e]) => e === t) ? t : "";
}
var bce = ({ total: e, shown: t }) => `${e.toLocaleString()} 个符合 · 显示 ${t.toLocaleString()}`;
-function oP(e) {
+function aP(e) {
let t = e.sections.find(([t]) => t === e.section);
if (!t) return null;
- let n = aP[e.path] ?? "";
+ let n = iP[e.path] ?? "";
return {
title: e.section === "cleanup" && n || t[1],
pressed: yce(e),
@@ -33547,26 +33548,26 @@ function oP(e) {
} : { kind: "skeleton" } : { kind: "none" }
};
}
-var sP = (e) => e.replace(/[&<>"']/g, (e) => ({
+var oP = (e) => e.replace(/[&<>"']/g, (e) => ({
"&": "&amp;",
"<": "&lt;",
">": "&gt;",
"\"": "&quot;",
"'": "&#39;"
-})[e]), cP = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${sP(e)}"/></svg>`, lP = "<span class=\"skeleton\" data-trash-lede-skeleton=\"text\" aria-hidden=\"true\"></span><span class=\"skeleton\" data-trash-lede-skeleton=\"action\" aria-hidden=\"true\"></span>";
+})[e]), sP = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${oP(e)}"/></svg>`, cP = "<span class=\"skeleton\" data-trash-lede-skeleton=\"text\" aria-hidden=\"true\"></span><span class=\"skeleton\" data-trash-lede-skeleton=\"action\" aria-hidden=\"true\"></span>";
function xce(e) {
- let t = oP(e);
+ let t = aP(e);
if (!t) return "";
let n = e.menu.map(([e, n, r]) => {
let i = e === t.pressed;
- return `<button type="button" data-manage="${sP(e)}" data-pill-variant="gray" aria-pressed="${i}"${i ? " aria-current=\"page\" data-pill-selected=\"\"" : ""}>${cP(r)}<span>${sP(n)}</span></button>`;
- }).join(""), r = t.crumb ? `<nav data-manage-crumb="" aria-label="Breadcrumb"><ol><li><a href="/data-cleanup">数据管理</a>${cP("chevron-right")}</li><li aria-current="true"><span>${sP(t.crumb)}</span></li></ol></nav>` : "", i = t.lede.kind === "none" ? "" : `<p class="mono" data-manage-lede="">${t.lede.kind === "skeleton" ? lP : `<span data-lede-text="">${sP(t.lede.text)}</span>${t.lede.total ? Sce : ""}`}</p>`;
- return `<nav data-manage-bar="" aria-label="管理"><div data-manage-menu="" data-pill-nav="" role="group">${n}</div></nav>` + r + `<h2 data-manage-title=""${t.compact ? " data-compact=\"\"" : ""}>${sP(t.title)}</h2>` + i;
+ return `<button type="button" data-manage="${oP(e)}" data-pill-variant="gray" aria-pressed="${i}"${i ? " aria-current=\"page\" data-pill-selected=\"\"" : ""}>${sP(r)}<span>${oP(n)}</span></button>`;
+ }).join(""), r = t.crumb ? `<nav data-manage-crumb="" aria-label="Breadcrumb"><ol><li><a href="/data-cleanup">数据管理</a>${sP("chevron-right")}</li><li aria-current="true"><span>${oP(t.crumb)}</span></li></ol></nav>` : "", i = t.lede.kind === "none" ? "" : `<p class="mono" data-manage-lede="">${t.lede.kind === "skeleton" ? cP : `<span data-lede-text="">${oP(t.lede.text)}</span>${t.lede.total ? Sce : ""}`}</p>`;
+ return `<nav data-manage-bar="" aria-label="管理"><div data-manage-menu="" data-pill-nav="" role="group">${n}</div></nav>` + r + `<h2 data-manage-title=""${t.compact ? " data-compact=\"\"" : ""}>${oP(t.title)}</h2>` + i;
}
var Sce = "<button type=\"button\" data-empty-trash=\"\" title=\"永久删除回收站内容\">清空回收站</button>";
//#endregion
//#region src/react/settings-panel/icon.tsx
-function uP({ name: e }) {
+function lP({ name: e }) {
let { wide: t, viewBox: n } = Gt(e);
return /* @__PURE__ */ (0, O.jsx)("svg", {
viewBox: n,
@@ -33592,36 +33593,36 @@ var wce = (e, t) => {
}, Tce = (e, t) => ({
classGroupId: e,
validator: t
-}), dP = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
+}), uP = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
nextPart: e,
validators: t,
classGroupId: n
-}), fP = "-", pP = [], Ece = "arbitrary..", Dce = (e) => {
+}), dP = "-", fP = [], Ece = "arbitrary..", Dce = (e) => {
let t = kce(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
return {
getClassGroupId: (e) => {
if (e.startsWith("[") && e.endsWith("]")) return Oce(e);
- let n = e.split(fP);
- return mP(n, +(n[0] === "" && n.length > 1), t);
+ let n = e.split(dP);
+ return pP(n, +(n[0] === "" && n.length > 1), t);
},
getConflictingClassGroupIds: (e, t) => {
if (t) {
let t = r[e], i = n[e];
- return t ? i ? wce(i, t) : t : i || pP;
+ return t ? i ? wce(i, t) : t : i || fP;
}
- return n[e] || pP;
+ return n[e] || fP;
}
};
-}, mP = (e, t, n) => {
+}, pP = (e, t, n) => {
if (e.length - t === 0) return n.classGroupId;
let r = e[t], i = n.nextPart.get(r);
if (i) {
- let n = mP(e, t + 1, i);
+ let n = pP(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(dP) : e.slice(t).join(dP), s = a.length;
for (let e = 0; e < s; e++) {
let t = a[e];
if (t.validator(o)) return t.classGroupId;
@@ -33633,13 +33634,13 @@ var wce = (e, t) => {
let { theme: t, classGroups: n } = e;
return Ace(n, t);
}, Ace = (e, t) => {
- let n = dP();
+ let n = uP();
for (let r in e) {
let i = e[r];
- hP(i, n, r, t);
+ mP(i, n, r, t);
}
return n;
-}, hP = (e, t, n, r) => {
+}, mP = (e, t, n, r) => {
let i = e.length;
for (let a = 0; a < i; a++) {
let i = e[a];
@@ -33648,21 +33649,21 @@ var wce = (e, t) => {
}, jce = (e, t, n, r) => {
typeof e == "string" ? Mce(e, t, n) : typeof e == "function" ? Nce(e, t, n, r) : Pce(e, t, n, r);
}, Mce = (e, t, n) => {
- let r = e === "" ? t : gP(t, e);
+ let r = e === "" ? t : hP(t, e);
r.classGroupId = n;
}, Nce = (e, t, n, r) => {
- Fce(e) ? hP(e(r), t, n, r) : (t.validators === null && (t.validators = []), t.validators.push(Tce(n, e)));
+ Fce(e) ? mP(e(r), t, n, r) : (t.validators === null && (t.validators = []), t.validators.push(Tce(n, e)));
}, Pce = (e, t, n, r) => {
let i = Object.entries(e), a = i.length;
for (let e = 0; e < a; e++) {
let [a, o] = i[e];
- hP(o, gP(t, a), n, r);
+ mP(o, hP(t, a), n, r);
}
-}, gP = (e, t) => {
- let n = e, r = t.split(fP), i = r.length;
+}, hP = (e, t) => {
+ let n = e, r = t.split(dP), 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 = uP(), n.nextPart.set(t, i)), n = i;
}
return n;
}, Fce = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, Ice = (e) => {
@@ -33683,7 +33684,7 @@ var wce = (e, t) => {
e in n ? n[e] = t : i(e, t);
}
};
-}, _P = "!", vP = ":", Lce = [], yP = (e, t, n, r, i) => ({
+}, gP = "!", _P = ":", Lce = [], vP = (e, t, n, r, i) => ({
modifiers: e,
hasImportantModifier: t,
baseClassName: n,
@@ -33695,7 +33696,7 @@ var wce = (e, t) => {
for (let s = 0; s < o; s++) {
let o = e[s];
if (n === 0 && r === 0) {
- if (o === vP) {
+ if (o === _P) {
t.push(e.slice(i, s)), i = s + 1;
continue;
}
@@ -33707,13 +33708,13 @@ var wce = (e, t) => {
o === "[" ? n++ : o === "]" ? n-- : o === "(" ? r++ : o === ")" && r--;
}
let s = t.length === 0 ? e : e.slice(i), c = s, l = !1;
- s.endsWith(_P) ? (c = s.slice(0, -1), l = !0) : s.startsWith(_P) && (c = s.slice(1), l = !0);
+ s.endsWith(gP) ? (c = s.slice(0, -1), l = !0) : s.startsWith(gP) && (c = s.slice(1), l = !0);
let u = a && a > i ? a - i : void 0;
- return yP(t, l, c, u);
+ return vP(t, l, c, u);
};
if (t) {
- let e = t + vP, n = r;
- r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : yP(Lce, !1, t, void 0, !0);
+ let e = t + _P, n = r;
+ r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : vP(Lce, !1, t, void 0, !0);
}
if (n) {
let e = r;
@@ -33766,7 +33767,7 @@ var wce = (e, t) => {
}
h = !1;
}
- let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + _P : _, y = v + g;
+ let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + gP : _, y = v + g;
if (s.indexOf(y) > -1) continue;
s.push(y);
let b = i(g, h);
@@ -33779,14 +33780,14 @@ var wce = (e, t) => {
return l;
}, Wce = (...e) => {
let t = 0, n, r, i = "";
- for (; t < e.length;) (n = e[t++]) && (r = bP(n)) && (i && (i += " "), i += r);
+ for (; t < e.length;) (n = e[t++]) && (r = yP(n)) && (i && (i += " "), i += r);
return i;
-}, bP = (e) => {
+}, yP = (e) => {
if (typeof e == "string") return e;
let t, n = "";
- for (let r = 0; r < e.length; r++) e[r] && (t = bP(e[r])) && (n && (n += " "), n += t);
+ for (let r = 0; r < e.length; r++) e[r] && (t = yP(e[r])) && (n && (n += " "), n += t);
return n;
-}, xP = (e, ...t) => {
+}, bP = (e, ...t) => {
let n, r, i, a, o = (o) => (n = Bce(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;
@@ -33794,17 +33795,17 @@ var wce = (e, t) => {
return i(e, a), a;
};
return a = o, (...e) => a(Wce(...e));
-}, Gce = [], SP = (e) => {
+}, Gce = [], xP = (e) => {
let t = (t) => t[e] || Gce;
return t.isThemeGetter = !0, t.themeKey = e, t;
-}, CP = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, wP = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Kce = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, qce = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Jce = /\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$/, Yce = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, Xce = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Zce = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, TP = (e) => Kce.test(e), EP = (e) => !!e && !Number.isNaN(Number(e)), DP = (e) => !!e && Number.isInteger(Number(e)), OP = (e) => e.endsWith("%") && EP(e.slice(0, -1)), kP = (e) => qce.test(e), AP = () => !0, Qce = (e) => Jce.test(e) && !Yce.test(e), jP = () => !1, $ce = (e) => Xce.test(e), ele = (e) => Zce.test(e), tle = (e) => !MP(e) && !LP(e), nle = (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)), rle = (e) => VP(e, GP, jP), MP = (e) => CP.test(e), NP = (e) => VP(e, KP, Qce), PP = (e) => VP(e, dle, EP), ile = (e) => VP(e, JP, AP), ale = (e) => VP(e, qP, jP), FP = (e) => VP(e, UP, jP), ole = (e) => VP(e, WP, ele), IP = (e) => VP(e, YP, $ce), LP = (e) => wP.test(e), RP = (e) => HP(e, KP), sle = (e) => HP(e, qP), zP = (e) => HP(e, UP), cle = (e) => HP(e, GP), lle = (e) => HP(e, WP), BP = (e) => HP(e, YP, !0), ule = (e) => HP(e, JP, !0), VP = (e, t, n) => {
- let r = CP.exec(e);
+}, SP = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, CP = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Kce = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, qce = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Jce = /\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$/, Yce = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, Xce = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Zce = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, wP = (e) => Kce.test(e), TP = (e) => !!e && !Number.isNaN(Number(e)), EP = (e) => !!e && Number.isInteger(Number(e)), DP = (e) => e.endsWith("%") && TP(e.slice(0, -1)), OP = (e) => qce.test(e), kP = () => !0, Qce = (e) => Jce.test(e) && !Yce.test(e), AP = () => !1, $ce = (e) => Xce.test(e), ele = (e) => Zce.test(e), tle = (e) => !jP(e) && !IP(e), nle = (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)), rle = (e) => BP(e, WP, AP), jP = (e) => SP.test(e), MP = (e) => BP(e, GP, Qce), NP = (e) => BP(e, dle, TP), ile = (e) => BP(e, qP, kP), ale = (e) => BP(e, KP, AP), PP = (e) => BP(e, HP, AP), ole = (e) => BP(e, UP, ele), FP = (e) => BP(e, JP, $ce), IP = (e) => CP.test(e), LP = (e) => VP(e, GP), sle = (e) => VP(e, KP), RP = (e) => VP(e, HP), cle = (e) => VP(e, WP), lle = (e) => VP(e, UP), zP = (e) => VP(e, JP, !0), ule = (e) => VP(e, qP, !0), BP = (e, t, n) => {
+ let r = SP.exec(e);
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
-}, HP = (e, t, n = !1) => {
- let r = wP.exec(e);
+}, VP = (e, t, n = !1) => {
+ let r = CP.exec(e);
return r ? r[1] ? t(r[1]) : n : !1;
-}, UP = (e) => e === "position" || e === "percentage", WP = (e) => e === "image" || e === "url", GP = (e) => e === "length" || e === "size" || e === "bg-size", KP = (e) => e === "length", dle = (e) => e === "number", qP = (e) => e === "family-name", JP = (e) => e === "number" || e === "weight", YP = (e) => e === "shadow", XP = () => {
- let e = SP("color"), t = SP("font"), n = SP("text"), r = SP("font-weight"), i = SP("tracking"), a = SP("leading"), o = SP("breakpoint"), s = SP("container"), c = SP("spacing"), l = SP("radius"), u = SP("shadow"), d = SP("inset-shadow"), f = SP("text-shadow"), p = SP("drop-shadow"), m = SP("blur"), h = SP("perspective"), g = SP("aspect"), _ = SP("ease"), v = SP("animate"), y = () => [
+}, HP = (e) => e === "position" || e === "percentage", UP = (e) => e === "image" || e === "url", WP = (e) => e === "length" || e === "size" || e === "bg-size", GP = (e) => e === "length", dle = (e) => e === "number", KP = (e) => e === "family-name", qP = (e) => e === "number" || e === "weight", JP = (e) => e === "shadow", YP = () => {
+ let e = xP("color"), t = xP("font"), n = xP("text"), r = xP("font-weight"), i = xP("tracking"), a = xP("leading"), o = xP("breakpoint"), s = xP("container"), c = xP("spacing"), l = xP("radius"), u = xP("shadow"), d = xP("inset-shadow"), f = xP("text-shadow"), p = xP("drop-shadow"), m = xP("blur"), h = xP("perspective"), g = xP("aspect"), _ = xP("ease"), v = xP("animate"), y = () => [
"auto",
"avoid",
"all",
@@ -33829,8 +33830,8 @@ var wce = (e, t) => {
"left-bottom"
], x = () => [
...b(),
- LP,
- MP
+ IP,
+ jP
], S = () => [
"auto",
"hidden",
@@ -33842,43 +33843,43 @@ var wce = (e, t) => {
"contain",
"none"
], w = () => [
- LP,
- MP,
+ IP,
+ jP,
c
], T = () => [
- TP,
+ wP,
"full",
"auto",
...w()
], E = () => [
- DP,
+ EP,
"none",
"subgrid",
- LP,
- MP
+ IP,
+ jP
], D = () => [
"auto",
{ span: [
"full",
- DP,
- LP,
- MP
+ EP,
+ IP,
+ jP
] },
- DP,
- LP,
- MP
+ EP,
+ IP,
+ jP
], O = () => [
- DP,
+ EP,
"auto",
- LP,
- MP
+ IP,
+ jP
], k = () => [
"auto",
"min",
"max",
"fr",
- LP,
- MP
+ IP,
+ jP
], A = () => [
"start",
"end",
@@ -33898,7 +33899,7 @@ var wce = (e, t) => {
"center-safe",
"end-safe"
], M = () => ["auto", ...w()], N = () => [
- TP,
+ wP,
"auto",
"full",
"dvw",
@@ -33913,7 +33914,7 @@ var wce = (e, t) => {
...w()
], P = () => [
s,
- TP,
+ wP,
"screen",
"full",
"dvw",
@@ -33924,7 +33925,7 @@ var wce = (e, t) => {
"fit",
...w()
], ee = () => [
- TP,
+ wP,
"screen",
"full",
"lh",
@@ -33937,13 +33938,13 @@ var wce = (e, t) => {
...w()
], F = () => [
e,
- LP,
- MP
+ IP,
+ jP
], te = () => [
...b(),
- zP,
- FP,
- { position: [LP, MP] }
+ RP,
+ PP,
+ { position: [IP, jP] }
], I = () => ["no-repeat", { repeat: [
"",
"x",
@@ -33956,23 +33957,23 @@ var wce = (e, t) => {
"contain",
cle,
rle,
- { size: [LP, MP] }
+ { size: [IP, jP] }
], re = () => [
- OP,
- RP,
- NP
+ DP,
+ LP,
+ MP
], ie = () => [
"",
"none",
"full",
l,
- LP,
- MP
+ IP,
+ jP
], ae = () => [
"",
- EP,
- RP,
- NP
+ TP,
+ LP,
+ MP
], oe = () => [
"solid",
"dashed",
@@ -33996,32 +33997,32 @@ var wce = (e, t) => {
"color",
"luminosity"
], ce = () => [
- EP,
- OP,
- zP,
- FP
+ TP,
+ DP,
+ RP,
+ PP
], le = () => [
"",
"none",
m,
- LP,
- MP
+ IP,
+ jP
], ue = () => [
"none",
- EP,
- LP,
- MP
+ TP,
+ IP,
+ jP
], de = () => [
"none",
- EP,
- LP,
- MP
+ TP,
+ IP,
+ jP
], fe = () => [
- EP,
- LP,
- MP
- ], pe = () => [
TP,
+ IP,
+ jP
+ ], pe = () => [
+ wP,
"full",
...w()
];
@@ -34035,11 +34036,11 @@ var wce = (e, t) => {
"bounce"
],
aspect: ["video"],
- blur: [kP],
- breakpoint: [kP],
- color: [AP],
- container: [kP],
- "drop-shadow": [kP],
+ blur: [OP],
+ breakpoint: [OP],
+ color: [kP],
+ container: [OP],
+ "drop-shadow": [OP],
ease: [
"in",
"out",
@@ -34057,7 +34058,7 @@ var wce = (e, t) => {
"extrabold",
"black"
],
- "inset-shadow": [kP],
+ "inset-shadow": [OP],
leading: [
"none",
"tight",
@@ -34074,11 +34075,11 @@ var wce = (e, t) => {
"distant",
"none"
],
- radius: [kP],
- shadow: [kP],
- spacing: ["px", EP],
- text: [kP],
- "text-shadow": [kP],
+ radius: [OP],
+ shadow: [OP],
+ spacing: ["px", TP],
+ text: [OP],
+ "text-shadow": [OP],
tracking: [
"tighter",
"tight",
@@ -34092,9 +34093,9 @@ var wce = (e, t) => {
aspect: [{ aspect: [
"auto",
"square",
- TP,
- MP,
- LP,
+ wP,
+ jP,
+ IP,
g
] }],
container: ["container"],
@@ -34102,15 +34103,15 @@ var wce = (e, t) => {
"",
"normal",
"size",
- LP,
- MP
+ IP,
+ jP
] }],
"container-named": [nle],
columns: [{ columns: [
- EP,
+ TP,
"auto",
- MP,
- LP,
+ jP,
+ IP,
s
] }],
"break-after": [{ "break-after": y() }],
@@ -34207,13 +34208,13 @@ var wce = (e, t) => {
"collapse"
],
z: [{ z: [
- DP,
+ EP,
"auto",
- LP,
- MP
+ IP,
+ jP
] }],
basis: [{ basis: [
- TP,
+ wP,
"full",
"auto",
s,
@@ -34231,32 +34232,32 @@ var wce = (e, t) => {
"wrap-reverse"
] }],
flex: [{ flex: [
- EP,
TP,
+ wP,
"auto",
"initial",
"none",
- MP
+ jP
] }],
grow: [{ grow: [
"",
- EP,
- LP,
- MP
+ TP,
+ IP,
+ jP
] }],
shrink: [{ shrink: [
"",
- EP,
- LP,
- MP
+ TP,
+ IP,
+ jP
] }],
order: [{ order: [
- DP,
+ EP,
"first",
"last",
"none",
- LP,
- MP
+ IP,
+ jP
] }],
"grid-cols": [{ "grid-cols": E() }],
"col-start-end": [{ col: D() }],
@@ -34363,8 +34364,8 @@ var wce = (e, t) => {
"font-size": [{ text: [
"base",
n,
- RP,
- NP
+ LP,
+ MP
] }],
"font-smoothing": ["antialiased", "subpixel-antialiased"],
"font-style": ["italic", "not-italic"],
@@ -34383,15 +34384,15 @@ var wce = (e, t) => {
"expanded",
"extra-expanded",
"ultra-expanded",
- OP,
- MP
+ DP,
+ jP
] }],
"font-family": [{ font: [
sle,
ale,
t
] }],
- "font-features": [{ "font-features": [MP] }],
+ "font-features": [{ "font-features": [jP] }],
"fvn-normal": ["normal-nums"],
"fvn-ordinal": ["ordinal"],
"fvn-slashed-zero": ["slashed-zero"],
@@ -34400,14 +34401,14 @@ var wce = (e, t) => {
"fvn-fraction": ["diagonal-fractions", "stacked-fractions"],
tracking: [{ tracking: [
i,
- LP,
- MP
+ IP,
+ jP
] }],
"line-clamp": [{ "line-clamp": [
- EP,
+ TP,
"none",
- LP,
- PP
+ IP,
+ NP
] }],
leading: [{ leading: [
"none",
@@ -34416,16 +34417,16 @@ var wce = (e, t) => {
] }],
"list-image": [{ "list-image": [
"none",
- LP,
- MP
+ IP,
+ jP
] }],
"list-style-position": [{ list: ["inside", "outside"] }],
"list-style-type": [{ list: [
"disc",
"decimal",
"none",
- LP,
- MP
+ IP,
+ jP
] }],
"text-alignment": [{ text: [
"left",
@@ -34445,18 +34446,18 @@ var wce = (e, t) => {
],
"text-decoration-style": [{ decoration: [...oe(), "wavy"] }],
"text-decoration-thickness": [{ decoration: [
- EP,
+ TP,
"from-font",
"auto",
- LP,
- NP
+ IP,
+ MP
] }],
"text-decoration-color": [{ decoration: F() }],
"underline-offset": [{ "underline-offset": [
- EP,
+ TP,
"auto",
- LP,
- MP
+ IP,
+ jP
] }],
"text-transform": [
"uppercase",
@@ -34477,9 +34478,9 @@ var wce = (e, t) => {
] }],
indent: [{ indent: w() }],
"tab-size": [{ tab: [
- DP,
- LP,
- MP
+ EP,
+ IP,
+ jP
] }],
"vertical-align": [{ align: [
"baseline",
@@ -34490,8 +34491,8 @@ var wce = (e, t) => {
"text-bottom",
"sub",
"super",
- LP,
- MP
+ IP,
+ jP
] }],
whitespace: [{ whitespace: [
"normal",
@@ -34519,8 +34520,8 @@ var wce = (e, t) => {
] }],
content: [{ content: [
"none",
- LP,
- MP
+ IP,
+ jP
] }],
"bg-attachment": [{ bg: [
"fixed",
@@ -34555,20 +34556,20 @@ var wce = (e, t) => {
"l",
"tl"
] },
- DP,
- LP,
- MP
+ EP,
+ IP,
+ jP
],
radial: [
"",
- LP,
- MP
+ IP,
+ jP
],
conic: [
"",
- DP,
- LP,
- MP
+ EP,
+ IP,
+ jP
]
},
lle,
@@ -34639,15 +34640,15 @@ var wce = (e, t) => {
"hidden"
] }],
"outline-offset": [{ "outline-offset": [
- EP,
- LP,
- MP
+ TP,
+ IP,
+ jP
] }],
"outline-w": [{ outline: [
"",
- EP,
- RP,
- NP
+ TP,
+ LP,
+ MP
] }],
"outline-color": [{ outline: F() }],
shadow: [{ shadow: [
@@ -34655,35 +34656,35 @@ var wce = (e, t) => {
"inner",
"none",
u,
- BP,
- IP
+ zP,
+ FP
] }],
"shadow-color": [{ shadow: F() }],
"inset-shadow": [{ "inset-shadow": [
"none",
d,
- BP,
- IP
+ zP,
+ FP
] }],
"inset-shadow-color": [{ "inset-shadow": F() }],
"ring-w": [{ ring: ae() }],
"ring-w-inset": ["ring-inset"],
"ring-color": [{ ring: F() }],
- "ring-offset-w": [{ "ring-offset": [EP, NP] }],
+ "ring-offset-w": [{ "ring-offset": [TP, MP] }],
"ring-offset-color": [{ "ring-offset": F() }],
"inset-ring-w": [{ "inset-ring": ae() }],
"inset-ring-color": [{ "inset-ring": F() }],
"text-shadow": [{ "text-shadow": [
"none",
f,
- BP,
- IP
+ zP,
+ FP
] }],
"text-shadow-color": [{ "text-shadow": F() }],
opacity: [{ opacity: [
- EP,
- LP,
- MP
+ TP,
+ IP,
+ jP
] }],
"mix-blend": [{ "mix-blend": [
...se(),
@@ -34705,7 +34706,7 @@ var wce = (e, t) => {
"intersect",
"exclude"
] }],
- "mask-image-linear-pos": [{ "mask-linear": [EP] }],
+ "mask-image-linear-pos": [{ "mask-linear": [TP] }],
"mask-image-linear-from-pos": [{ "mask-linear-from": ce() }],
"mask-image-linear-to-pos": [{ "mask-linear-to": ce() }],
"mask-image-linear-from-color": [{ "mask-linear-from": F() }],
@@ -34734,7 +34735,7 @@ var wce = (e, t) => {
"mask-image-y-to-pos": [{ "mask-y-to": ce() }],
"mask-image-y-from-color": [{ "mask-y-from": F() }],
"mask-image-y-to-color": [{ "mask-y-to": F() }],
- "mask-image-radial": [{ "mask-radial": [LP, MP] }],
+ "mask-image-radial": [{ "mask-radial": [IP, jP] }],
"mask-image-radial-from-pos": [{ "mask-radial-from": ce() }],
"mask-image-radial-to-pos": [{ "mask-radial-to": ce() }],
"mask-image-radial-from-color": [{ "mask-radial-from": F() }],
@@ -34745,7 +34746,7 @@ var wce = (e, t) => {
farthest: ["side", "corner"]
}] }],
"mask-image-radial-pos": [{ "mask-radial-at": b() }],
- "mask-image-conic-pos": [{ "mask-conic": [EP] }],
+ "mask-image-conic-pos": [{ "mask-conic": [TP] }],
"mask-image-conic-from-pos": [{ "mask-conic-from": ce() }],
"mask-image-conic-to-pos": [{ "mask-conic-to": ce() }],
"mask-image-conic-from-color": [{ "mask-conic-from": F() }],
@@ -34769,111 +34770,111 @@ var wce = (e, t) => {
"mask-type": [{ "mask-type": ["alpha", "luminance"] }],
"mask-image": [{ mask: [
"none",
- LP,
- MP
+ IP,
+ jP
] }],
filter: [{ filter: [
"",
"none",
- LP,
- MP
+ IP,
+ jP
] }],
blur: [{ blur: le() }],
brightness: [{ brightness: [
- EP,
- LP,
- MP
+ TP,
+ IP,
+ jP
] }],
contrast: [{ contrast: [
- EP,
- LP,
- MP
+ TP,
+ IP,
+ jP
] }],
"drop-shadow": [{ "drop-shadow": [
"",
"none",
p,
- BP,
- IP
+ zP,
+ FP
] }],
"drop-shadow-color": [{ "drop-shadow": F() }],
grayscale: [{ grayscale: [
"",
- EP,
- LP,
- MP
+ TP,
+ IP,
+ jP
] }],
"hue-rotate": [{ "hue-rotate": [
- EP,
- LP,
- MP
+ TP,
+ IP,
+ jP
] }],
invert: [{ invert: [
"",
- EP,
- LP,
- MP
+ TP,
+ IP,
+ jP
] }],
saturate: [{ saturate: [
- EP,
- LP,
- MP
+ TP,
+ IP,
+ jP
] }],
sepia: [{ sepia: [
"",
- EP,
- LP,
- MP
+ TP,
+ IP,
+ jP
] }],
"backdrop-filter": [{ "backdrop-filter": [
"",
"none",
- LP,
- MP
+ IP,
+ jP
] }],
"backdrop-blur": [{ "backdrop-blur": le() }],
"backdrop-brightness": [{ "backdrop-brightness": [
- EP,
- LP,
- MP
+ TP,
+ IP,
+ jP
] }],
"backdrop-contrast": [{ "backdrop-contrast": [
- EP,
- LP,
- MP
+ TP,
+ IP,
+ jP
] }],
"backdrop-grayscale": [{ "backdrop-grayscale": [
"",
- EP,
- LP,
- MP
+ TP,
+ IP,
+ jP
] }],
"backdrop-hue-rotate": [{ "backdrop-hue-rotate": [
- EP,
- LP,
- MP
+ TP,
+ IP,
+ jP
] }],
"backdrop-invert": [{ "backdrop-invert": [
"",
- EP,
- LP,
- MP
+ TP,
+ IP,
+ jP
] }],
"backdrop-opacity": [{ "backdrop-opacity": [
- EP,
- LP,
- MP
+ TP,
+ IP,
+ jP
] }],
"backdrop-saturate": [{ "backdrop-saturate": [
- EP,
- LP,
- MP
+ TP,
+ IP,
+ jP
] }],
"backdrop-sepia": [{ "backdrop-sepia": [
"",
- EP,
- LP,
- MP
+ TP,
+ IP,
+ jP
] }],
"border-collapse": [{ border: ["collapse", "separate"] }],
"border-spacing": [{ "border-spacing": w() }],
@@ -34889,39 +34890,39 @@ var wce = (e, t) => {
"shadow",
"transform",
"none",
- LP,
- MP
+ IP,
+ jP
] }],
"transition-behavior": [{ transition: ["normal", "discrete"] }],
duration: [{ duration: [
- EP,
+ TP,
"initial",
- LP,
- MP
+ IP,
+ jP
] }],
ease: [{ ease: [
"linear",
"initial",
_,
- LP,
- MP
+ IP,
+ jP
] }],
delay: [{ delay: [
- EP,
- LP,
- MP
+ TP,
+ IP,
+ jP
] }],
animate: [{ animate: [
"none",
v,
- LP,
- MP
+ IP,
+ jP
] }],
backface: [{ backface: ["hidden", "visible"] }],
perspective: [{ perspective: [
h,
- LP,
- MP
+ IP,
+ jP
] }],
"perspective-origin": [{ "perspective-origin": x() }],
rotate: [{ rotate: ue() }],
@@ -34937,8 +34938,8 @@ var wce = (e, t) => {
"skew-x": [{ "skew-x": fe() }],
"skew-y": [{ "skew-y": fe() }],
transform: [{ transform: [
- LP,
- MP,
+ IP,
+ jP,
"",
"none",
"gpu",
@@ -34952,9 +34953,9 @@ var wce = (e, t) => {
"translate-z": [{ "translate-z": pe() }],
"translate-none": ["translate-none"],
zoom: [{ zoom: [
- DP,
- LP,
- MP
+ EP,
+ IP,
+ jP
] }],
accent: [{ accent: F() }],
appearance: [{ appearance: ["none", "auto"] }],
@@ -35004,8 +35005,8 @@ var wce = (e, t) => {
"nwse-resize",
"zoom-in",
"zoom-out",
- LP,
- MP
+ IP,
+ jP
] }],
"field-sizing": [{ "field-sizing": ["fixed", "content"] }],
"pointer-events": [{ "pointer-events": ["auto", "none"] }],
@@ -35091,15 +35092,15 @@ var wce = (e, t) => {
"scroll",
"contents",
"transform",
- LP,
- MP
+ IP,
+ jP
] }],
fill: [{ fill: ["none", ...F()] }],
"stroke-w": [{ stroke: [
- EP,
- RP,
- NP,
- PP
+ TP,
+ LP,
+ MP,
+ NP
] }],
stroke: [{ stroke: ["none", ...F()] }],
"forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]
@@ -35357,16 +35358,16 @@ var wce = (e, t) => {
"selection"
]
};
-}, fle = (e, { cacheSize: t, prefix: n, experimentalParseClassName: r, extend: i = {}, override: a = {} }) => (ZP(e, "cacheSize", t), ZP(e, "prefix", n), ZP(e, "experimentalParseClassName", r), QP(e.theme, a.theme), QP(e.classGroups, a.classGroups), QP(e.conflictingClassGroups, a.conflictingClassGroups), QP(e.conflictingClassGroupModifiers, a.conflictingClassGroupModifiers), ZP(e, "postfixLookupClassGroups", a.postfixLookupClassGroups), ZP(e, "orderSensitiveModifiers", a.orderSensitiveModifiers), $P(e.theme, i.theme), $P(e.classGroups, i.classGroups), $P(e.conflictingClassGroups, i.conflictingClassGroups), $P(e.conflictingClassGroupModifiers, i.conflictingClassGroupModifiers), eF(e, i, "postfixLookupClassGroups"), eF(e, i, "orderSensitiveModifiers"), e), ZP = (e, t, n) => {
+}, fle = (e, { cacheSize: t, prefix: n, experimentalParseClassName: r, extend: i = {}, override: a = {} }) => (XP(e, "cacheSize", t), XP(e, "prefix", n), XP(e, "experimentalParseClassName", r), ZP(e.theme, a.theme), ZP(e.classGroups, a.classGroups), ZP(e.conflictingClassGroups, a.conflictingClassGroups), ZP(e.conflictingClassGroupModifiers, a.conflictingClassGroupModifiers), XP(e, "postfixLookupClassGroups", a.postfixLookupClassGroups), XP(e, "orderSensitiveModifiers", a.orderSensitiveModifiers), QP(e.theme, i.theme), QP(e.classGroups, i.classGroups), QP(e.conflictingClassGroups, i.conflictingClassGroups), QP(e.conflictingClassGroupModifiers, i.conflictingClassGroupModifiers), $P(e, i, "postfixLookupClassGroups"), $P(e, i, "orderSensitiveModifiers"), e), XP = (e, t, n) => {
n !== void 0 && (e[t] = n);
+}, ZP = (e, t) => {
+ if (t) for (let n in t) XP(e, n, t[n]);
}, QP = (e, t) => {
- if (t) for (let n in t) ZP(e, n, t[n]);
-}, $P = (e, t) => {
- if (t) for (let n in t) eF(e, t, n);
-}, eF = (e, t, n) => {
+ if (t) for (let n in t) $P(e, t, n);
+}, $P = (e, t, n) => {
let r = t[n];
r !== void 0 && (e[n] = e[n] ? e[n].concat(r) : r);
-}, ple = (e, ...t) => typeof e == "function" ? xP(XP, e, ...t) : xP(() => fle(XP(), e), ...t), mle = [
+}, ple = (e, ...t) => typeof e == "function" ? bP(YP, e, ...t) : bP(() => fle(YP(), e), ...t), mle = [
"large-title",
"display-1",
"display-2",
@@ -35385,13 +35386,13 @@ var wce = (e, t) => {
"medium",
"semibold",
"bold"
-], tF = ple({ extend: { classGroups: { "font-size": [{ text: mle.flatMap((e) => hle.map((t) => `${e}-${t}`)) }] } } });
-function nF(e) {
+], eF = ple({ extend: { classGroups: { "font-size": [{ text: mle.flatMap((e) => hle.map((t) => `${e}-${t}`)) }] } } });
+function tF(e) {
return e;
}
//#endregion
//#region src/react/components/pill-tab.tsx
-var gle = typeof window < "u" ? D.useLayoutEffect : D.useEffect, rF = nF({
+var gle = typeof window < "u" ? D.useLayoutEffect : D.useEffect, nF = tF({
radius: {
blue: "rounded-full",
gray: "rounded-2lg"
@@ -35413,7 +35414,7 @@ var gle = typeof window < "u" ? D.useLayoutEffect : D.useEffect, rF = nF({
gray: "text-text-primary"
}
});
-function iF({ children: e, className: t, ref: n, container: r, ...i }) {
+function rF({ children: e, className: t, ref: n, container: r, ...i }) {
let a = (0, D.useRef)(null), [o, s] = (0, D.useState)(null);
gle(() => {
let e = r === void 0 ? a.current : r;
@@ -35451,7 +35452,7 @@ function iF({ children: e, className: t, ref: n, container: r, ...i }) {
}, l = o && /* @__PURE__ */ (0, O.jsx)("span", {
"aria-hidden": !0,
"data-pill-thumb": "",
- className: tF("pointer-events-none absolute left-0 top-0", rF.radius[o.variant], rF.thumb[o.variant]),
+ className: eF("pointer-events-none absolute left-0 top-0", nF.radius[o.variant], nF.thumb[o.variant]),
style: {
"--pill-left": `${o.left}px`,
"--pill-top": `${o.top}px`,
@@ -35462,37 +35463,37 @@ function iF({ children: e, className: t, ref: n, container: r, ...i }) {
return r === void 0 ? /* @__PURE__ */ (0, O.jsxs)("div", {
ref: c,
role: "group",
- className: tF("relative inline-flex items-center gap-1", t),
+ className: eF("relative inline-flex items-center gap-1", t),
...i,
children: [l, e]
}) : r ? (0, Tt.createPortal)(l, r) : null;
}
//#endregion
//#region src/react/manage-header/manage-header-island.tsx
-var aF = null, oF = null, sF = /* @__PURE__ */ new Set();
+var iF = null, aF = null, oF = /* @__PURE__ */ new Set();
function _le(e) {
- return sF.add(e), () => {
- sF.delete(e);
+ return oF.add(e), () => {
+ oF.delete(e);
};
}
function vle() {
- for (let e of [...sF]) e();
+ for (let e of [...oF]) e();
}
var yle = { render(e) {
- oF = e, (0, Tt.flushSync)(vle);
+ aF = e, (0, Tt.flushSync)(vle);
} };
function ble(e) {
- return aF = e, oF = null, yle;
+ return iF = e, aF = null, yle;
}
function xle() {
- let e = (0, D.useSyncExternalStore)(_le, () => oF);
- return aF && e ? /* @__PURE__ */ (0, O.jsx)(Sle, {
- host: aF,
+ let e = (0, D.useSyncExternalStore)(_le, () => aF);
+ return iF && e ? /* @__PURE__ */ (0, O.jsx)(Sle, {
+ host: iF,
props: e
}) : null;
}
function Sle({ host: e, props: t }) {
- let n = oP(t);
+ let n = aP(t);
return n ? /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [
/* @__PURE__ */ (0, O.jsx)(Cle, {
host: e,
@@ -35524,7 +35525,7 @@ function Cle({ host: e, pressed: t, menu: n }) {
}, [t, n]), /* @__PURE__ */ (0, O.jsx)("nav", {
"data-manage-bar": "",
"aria-label": "管理",
- children: /* @__PURE__ */ (0, O.jsx)(iF, {
+ children: /* @__PURE__ */ (0, O.jsx)(rF, {
ref: r,
"data-manage-menu": "",
"data-pill-nav": "",
@@ -35538,7 +35539,7 @@ function Cle({ host: e, pressed: t, menu: n }) {
"data-pill-selected": a ? "" : void 0,
"data-pill-variant": "gray",
onClick: () => e.openManage(n),
- children: [/* @__PURE__ */ (0, O.jsx)(uP, { name: i }), /* @__PURE__ */ (0, O.jsx)("span", { children: r })]
+ children: [/* @__PURE__ */ (0, O.jsx)(lP, { name: i }), /* @__PURE__ */ (0, O.jsx)("span", { children: r })]
}, n);
})
})
@@ -35554,7 +35555,7 @@ function wle({ host: e, label: t }) {
t.metaKey || t.ctrlKey || t.shiftKey || t.altKey || t.button || (t.preventDefault(), e.openDataCleanup());
},
children: "数据管理"
- }), /* @__PURE__ */ (0, O.jsx)(uP, { name: "chevron-right" })] }), /* @__PURE__ */ (0, O.jsx)("li", {
+ }), /* @__PURE__ */ (0, O.jsx)(lP, { name: "chevron-right" })] }), /* @__PURE__ */ (0, O.jsx)("li", {
"aria-current": "true",
children: /* @__PURE__ */ (0, O.jsx)("span", { children: t })
})] })
@@ -35566,7 +35567,7 @@ function Tle({ host: e, lede: t }) {
"data-manage-lede": "",
children: t.kind === "skeleton" ? /* @__PURE__ */ (0, O.jsx)("span", {
"data-trash-lede-skeletons": "",
- dangerouslySetInnerHTML: { __html: lP }
+ dangerouslySetInnerHTML: { __html: cP }
}) : /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(Ele, { text: t.text }), t.total ? /* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
"data-empty-trash": "",
@@ -35595,7 +35596,7 @@ var Dle = /\.(?:mp4|mkv|avi|wmv|mov|m4v|webm|ts|m2ts|mts|mpg|mpeg|flv|rm|rmvb|is
let t = [e?.catalog_title, e?.original_title].map((e) => String(e || "").trim()).filter(Boolean);
return t.find(kle) || t[0] || "";
};
-function cF(e, t = e?.name) {
+function sF(e, t = e?.name) {
let n = Ole(e, t), r = String(e?.code || "").trim().toUpperCase();
if (!e?.is_jav || !r) return {
code: "",
@@ -35612,23 +35613,23 @@ function cF(e, t = e?.name) {
badges: f
};
}
-var lF = (e, t = e?.name) => {
- let { code: n, title: r, badges: i = [] } = cF(e, t);
+var cF = (e, t = e?.name) => {
+ let { code: n, title: r, badges: i = [] } = sF(e, t);
return n ? [
n,
...i,
r
].filter(Boolean).join(" ") : r;
};
-function uF(e, t = e?.name) {
- let { code: n, title: r, badges: i = [] } = cF(e, t);
+function lF(e, t = e?.name) {
+ let { code: n, title: r, badges: i = [] } = sF(e, t);
if (!n) return B(r);
let a = i.map((e) => `<small class="javedition ${e === "中字" ? "subtitle" : e === "无码" ? "uncensored" : e === "无码破解" ? "cracked" : "quality"}">${B(e)}</small>`).join("");
return `<span class="ui-javidentity"><strong class="ui-javcode">${B(n)}</strong>${a}</span>${r ? ` <span class="ui-javtitle">${B(r)}</span>` : ""}`;
}
//#endregion
//#region src/react/activity/tasks.ts
-var dF = "/api/tasks", fF = ["tasks"], jle = (e, t) => V(`${dF}?${new URLSearchParams({
+var uF = "/api/tasks", dF = ["tasks"], jle = (e, t) => V(`${uF}?${new URLSearchParams({
before_finished_at: e.finished_at || "",
before_id: String(e.id)
})}`, t);
@@ -35640,11 +35641,11 @@ function Mle(...e) {
return n === r ? t.id - e.id : n < r ? 1 : -1;
});
}
-var Nle = 2e3, Ple = 1e4, pF = (e) => e?.running?.length ? Nle : Ple, mF = (e) => V(dF, e);
+var Nle = 2e3, Ple = 1e4, fF = (e) => e?.running?.length ? Nle : Ple, pF = (e) => V(uF, e);
async function Fle(e) {
await U.fetchQuery({
- queryKey: fF,
- queryFn: () => mF(e)
+ queryKey: dF,
+ queryFn: () => pF(e)
});
}
var Ile = {
@@ -35659,7 +35660,7 @@ var Ile = {
failed: "失败",
cancelled: "已取消",
interrupted: "意外中断"
-}, Rle = (e) => Lle[e] || e, hF = {
+}, Rle = (e) => Lle[e] || e, mF = {
checked: "已检查",
total: "总数",
scanned: "已扫描",
@@ -35758,14 +35759,14 @@ var Ile = {
"paused_count",
"miss",
"incomplete"
-], Ble = ["face_match_unavailable"], gF = (e) => e.result_summary?.ok === !1 || !!e.result_summary?.error || Ble.some((t) => e.result_summary?.[t] === !0) || zle.some((t) => Number(e.result_summary?.[t]) > 0);
+], Ble = ["face_match_unavailable"], hF = (e) => e.result_summary?.ok === !1 || !!e.result_summary?.error || Ble.some((t) => e.result_summary?.[t] === !0) || zle.some((t) => Number(e.result_summary?.[t]) > 0);
function Vle(e) {
let t = e.result_summary?.issues;
return Array.isArray(t) ? t.filter((e) => !!e && typeof e == "object" && typeof e.error == "string" && typeof e.label == "string") : [];
}
-var _F = /* @__PURE__ */ new Set(["library-processing"]);
+var gF = /* @__PURE__ */ new Set(["library-processing"]);
function Hle(e, t = !0) {
- if (!gF(e) && e.status !== "failed" || _F.has(e.task_key) && !t) return null;
+ if (!hF(e) && e.status !== "failed" || gF.has(e.task_key) && !t) return null;
let n = {
"link-check": ["/data-cleanup#link-manager", "查看有问题的链接"],
"link-prune": ["/data-cleanup#link-manager", "查看有问题的链接"],
@@ -35785,7 +35786,7 @@ function Hle(e, t = !0) {
}
function Ule(e) {
let t = /* @__PURE__ */ new Map();
- for (let n of e) _F.has(n.task_key) && !n.followup_key && n.id > (t.get(n.task_key) ?? 0) && t.set(n.task_key, n.id);
+ for (let n of e) gF.has(n.task_key) && !n.followup_key && n.id > (t.get(n.task_key) ?? 0) && t.set(n.task_key, n.id);
return new Set(t.values());
}
function Wle(e) {
@@ -35819,12 +35820,12 @@ function Gle(e, t) {
}
return n;
}
-var Kle = (e) => e.trigger === "scheduled" && e.status === "succeeded" && !e.error && !gF(e) && !(Number(e.result_summary?.added) > 0) && !(Number(e.result_summary?.followups) > 0), vF = (e) => e.status === "pending" || e.status === "running";
+var Kle = (e) => e.trigger === "scheduled" && e.status === "succeeded" && !e.error && !hF(e) && !(Number(e.result_summary?.added) > 0) && !(Number(e.result_summary?.followups) > 0), _F = (e) => e.status === "pending" || e.status === "running";
function qle(e) {
let t = `${e.task_label}:`, n = e.progress_label || "", r = String(e.result_summary?.name || "") || (n.startsWith(t) ? n.slice(t.length) : n === e.task_label ? "" : n), i = e.progress_total || 0, { name: a, ...o } = e.result_summary || {};
- return [r, SF(e.error) || jF(o) || (vF(e) && i > 0 ? `${bF(e.progress_current, i)} 项` : "")].filter(Boolean).join(" · ");
+ return [r, xF(e.error) || AF(o) || (_F(e) && i > 0 ? `${yF(e.progress_current, i)} 项` : "")].filter(Boolean).join(" · ");
}
-function yF(e) {
+function vF(e) {
if (typeof e != "number" || !Number.isFinite(e) || e < 0) return "";
let t = Math.floor(e);
if (t < 60) return `${t} 秒`;
@@ -35833,19 +35834,19 @@ function yF(e) {
let r = Math.floor(n / 60);
return r < 48 ? `${r} 小时 ${n % 60} 分` : `${Math.floor(r / 24).toLocaleString()} 天 ${r % 24} 小时`;
}
-function bF(e, t) {
+function yF(e, t) {
let n = Math.max(0, Number(t) || 0);
return `${Math.min(n, Math.max(0, Number(e) || 0)).toLocaleString()} / ${n.toLocaleString()}`;
}
-function xF(e) {
+function bF(e) {
let t = String(e || "").split(/\r?\n/).map((e) => e.trim()).filter(Boolean);
return t.length ? /^Traceback \(most recent call last\)/.test(t[0]) ? t[t.length - 1] : t[0] : "";
}
-function SF(e) {
- let t = xF(e), n = t.match(/^(?:[\w.]*Error|Exception):\s*(.*)$/);
+function xF(e) {
+ let t = bF(e), n = t.match(/^(?:[\w.]*Error|Exception):\s*(.*)$/);
return n ? Ut(n[1]) : t;
}
-var CF = {
+var SF = {
没有新写法: "未发现新别名",
已装上: "已保存资料图片",
已装着认得准的小图: "已保留身份核对通过的小尺寸图片",
@@ -35859,11 +35860,11 @@ var CF = {
三站都没对上她: "三个来源均未找到与该人物相符的资料页",
已有身份: "已有创作者分类",
已变: "资料已被其他操作修改,本次未保存"
-}, wF = {
+}, CF = {
avwikidb: "AVWikiDB",
javdb: "JavDB",
"minnano-av": "みんなのAV"
-}, TF = {
+}, wF = {
like: "标记喜欢",
seen: "标记看过",
later: "加入稍后看",
@@ -35874,8 +35875,8 @@ var CF = {
"dismiss-junk": "确认不是垃圾",
"reconsider-junk": "重新判定垃圾",
region: "判定产地"
-}, EF = (e) => CF[e] || e.replace(/(avwikidb|javdb|minnano-av) (绑定|写入)/gi, (e, t, n) => n === "绑定" ? `已关联 ${wF[t.toLowerCase()]} 资料页` : `已保存来自 ${wF[t.toLowerCase()]} 的资料`);
-function DF(e) {
+}, TF = (e) => SF[e] || e.replace(/(avwikidb|javdb|minnano-av) (绑定|写入)/gi, (e, t, n) => n === "绑定" ? `已关联 ${CF[t.toLowerCase()]} 资料页` : `已保存来自 ${CF[t.toLowerCase()]} 的资料`);
+function EF(e) {
if (!e) return "";
let t = new Date(e);
return Number.isNaN(t.getTime()) ? "" : t.toLocaleString(void 0, {
@@ -35885,7 +35886,7 @@ function DF(e) {
minute: "2-digit"
});
}
-var OF = /* @__PURE__ */ new Set([
+var DF = /* @__PURE__ */ new Set([
"blocked_by",
"status",
"run_id",
@@ -35894,14 +35895,14 @@ var OF = /* @__PURE__ */ new Set([
"completed_at",
"finished_at"
]);
-function kF(e) {
- let t = AF(e);
+function OF(e) {
+ let t = kF(e);
return e?.face_match_unavailable === !0 && !t.some((e) => /不可用|未生效/.test(e)) && t.push("人脸模型不可用,未做人脸核对"), t;
}
-function AF(e) {
- return Object.entries(e || {}).filter(([e, t]) => !OF.has(e) && (e in hF || e === "outcome" || e === "followups" || e === "error") && (typeof t == "number" || typeof t == "string") && String(t) !== "" && (t !== 0 || e === "checked" || e === "total")).map(([e, t]) => e === "followups" ? `已安排 ${Number(t).toLocaleString()} 项补充任务` : e === "error" ? SF(String(t)) : e === "outcome" || e === "result" ? EF(String(t)) : e === "cache_bytes" || e === "bytes_reclaimed" ? `${hF[e]} ${_n(Number(t))}` : e === "operation" ? `操作:${TF[String(t)] || "批量操作"}` : `${hF[e]} ${typeof t == "number" ? t.toLocaleString() : t}`);
+function kF(e) {
+ return Object.entries(e || {}).filter(([e, t]) => !DF.has(e) && (e in mF || e === "outcome" || e === "followups" || e === "error") && (typeof t == "number" || typeof t == "string") && String(t) !== "" && (t !== 0 || e === "checked" || e === "total")).map(([e, t]) => e === "followups" ? `已安排 ${Number(t).toLocaleString()} 项补充任务` : e === "error" ? xF(String(t)) : e === "outcome" || e === "result" ? TF(String(t)) : e === "cache_bytes" || e === "bytes_reclaimed" ? `${mF[e]} ${_n(Number(t))}` : e === "operation" ? `操作:${wF[String(t)] || "批量操作"}` : `${mF[e]} ${typeof t == "number" ? t.toLocaleString() : t}`);
}
-var jF = (e) => kF(e).join(" · "), MF = nF({
+var AF = (e) => OF(e).join(" · "), jF = tF({
base: [
"relative inline-flex shrink-0 items-center justify-center overflow-visible rounded-2lg",
"bg-background-primary-default text-foreground-icon-primary",
@@ -35922,21 +35923,21 @@ var jF = (e) => kF(e).join(" · "), MF = nF({
small: "size-4 shrink-0"
}
});
-function NF({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {
+function MF({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {
return /* @__PURE__ */ (0, O.jsx)("button", {
ref: i,
type: r,
- className: tF(MF.base, MF.size[t], n),
+ className: eF(jF.base, jF.size[t], n),
...a,
children: /* @__PURE__ */ (0, O.jsx)(e, {
- className: MF.icon[t],
+ className: jF.icon[t],
"aria-hidden": !0
})
});
}
//#endregion
//#region src/react/components/glass-drift.tsx
-function PF() {
+function NF() {
return /* @__PURE__ */ (0, O.jsxs)("span", {
"data-glass-drift": "",
"aria-hidden": "true",
@@ -35951,7 +35952,7 @@ function PF() {
}
//#endregion
//#region src/react/components/use-stuck.ts
-function FF(e) {
+function PF(e) {
(0, D.useEffect)(() => {
let t = e.current;
if (!t) return;
@@ -35969,7 +35970,7 @@ function FF(e) {
}
//#endregion
//#region src/react/components/use-horizontal-scroller.ts
-function IF(e, t = !0) {
+function FF(e, t = !0) {
let [n, r] = (0, D.useState)(null), i = (0, D.useCallback)((t) => {
r(t), typeof e == "function" ? e(t) : e && (e.current = t);
}, [e]);
@@ -35984,17 +35985,17 @@ function IF(e, t = !0) {
}
//#endregion
//#region src/react/components/filter-glass.tsx
-var LF = ({ className: e }) => /* @__PURE__ */ (0, O.jsx)("span", {
+var IF = ({ className: e }) => /* @__PURE__ */ (0, O.jsx)("span", {
"aria-hidden": !0,
className: e,
dangerouslySetInnerHTML: { __html: ns("正在处理") }
});
-function RF({ label: e, icon: t, busy: n = !1, busyStyle: r = "spinner", onPress: i, ...a }) {
- return /* @__PURE__ */ (0, O.jsx)(NF, {
+function LF({ label: e, icon: t, busy: n = !1, busyStyle: r = "spinner", onPress: i, ...a }) {
+ return /* @__PURE__ */ (0, O.jsx)(MF, {
...a,
"data-filter-action": "",
size: "small",
- icon: n && r === "spinner" ? LF : t,
+ icon: n && r === "spinner" ? IF : t,
"aria-label": e,
title: a.title || e,
"aria-busy": n || void 0,
@@ -36004,9 +36005,9 @@ function RF({ label: e, icon: t, busy: n = !1, busyStyle: r = "spinner", onPress
}
});
}
-function zF({ title: e, children: t }) {
+function RF({ title: e, children: t }) {
let n = (0, D.useRef)(null);
- return FF(n), /* @__PURE__ */ (0, O.jsxs)("div", {
+ return PF(n), /* @__PURE__ */ (0, O.jsxs)("div", {
ref: n,
role: "group",
"aria-label": e,
@@ -36019,20 +36020,20 @@ function zF({ title: e, children: t }) {
children: e
}),
t,
- /* @__PURE__ */ (0, O.jsx)(PF, {})
+ /* @__PURE__ */ (0, O.jsx)(NF, {})
]
});
}
-function BF({ label: e, topLabel: t, top: n, bottom: r, className: i, topClassName: a, bottomClassName: o, panes: s, attrs: c, busy: l, bottomRef: u }) {
- let d = (0, D.useRef)(null), f = IF(), p = IF(u);
- return FF(d), /* @__PURE__ */ (0, O.jsxs)("div", {
+function zF({ label: e, topLabel: t, top: n, bottom: r, className: i, topClassName: a, bottomClassName: o, panes: s, attrs: c, busy: l, bottomRef: u }) {
+ let d = (0, D.useRef)(null), f = FF(), p = FF(u);
+ return PF(d), /* @__PURE__ */ (0, O.jsxs)("div", {
ref: d,
role: "group",
"aria-label": e,
"data-filter-glass": !0,
"data-glass-pane": "",
...c,
- className: tF("sticky top-topbar z-10 mb-5.5 flex flex-col", i),
+ className: eF("sticky top-topbar z-10 mb-5.5 flex flex-col", i),
children: [
s,
n === null ? null : /* @__PURE__ */ (0, O.jsx)("div", {
@@ -36040,37 +36041,37 @@ function BF({ label: e, topLabel: t, top: n, bottom: r, className: i, topClassNa
role: "group",
"aria-label": t,
"data-filter-row": "top",
- className: tF("flex h-12 min-w-0 items-center gap-1.75 overflow-x-auto overscroll-x-contain px-3 py-2", a),
+ className: eF("flex h-12 min-w-0 items-center gap-1.75 overflow-x-auto overscroll-x-contain px-3 py-2", a),
children: n
}),
/* @__PURE__ */ (0, O.jsx)("div", {
ref: p,
"data-filter-row": "bottom",
"aria-busy": l || void 0,
- className: tF("flex min-h-11.5 min-w-0 items-center gap-3 px-3 py-2", o),
+ className: eF("flex min-h-11.5 min-w-0 items-center gap-3 px-3 py-2", o),
children: r
}),
- /* @__PURE__ */ (0, O.jsx)(PF, {})
+ /* @__PURE__ */ (0, O.jsx)(NF, {})
]
});
}
-var VF = "flex h-8 flex-none cursor-pointer items-center gap-1.75 rounded-lg border border-dashed border-(--glass-low) bg-transparent px-2.5 text-body-2-regular leading-5 whitespace-nowrap text-inherit outline-none hover:border-solid focus-visible:ring-2 focus-visible:ring-border-focus-ring";
-function HF({ children: e, pressed: t, onPress: n, className: r, ...i }) {
+var BF = "flex h-8 flex-none cursor-pointer items-center gap-1.75 rounded-lg border border-dashed border-(--glass-low) bg-transparent px-2.5 text-body-2-regular leading-5 whitespace-nowrap text-inherit outline-none hover:border-solid focus-visible:ring-2 focus-visible:ring-border-focus-ring";
+function VF({ children: e, pressed: t, onPress: n, className: r, ...i }) {
return /* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
...i,
"aria-pressed": t,
- className: tF(VF, r),
+ className: eF(BF, r),
onClick: n,
children: e
});
}
-var UF = "h-8 cursor-pointer rounded-full border border-(--glass-low) bg-transparent px-3 text-body-2-regular leading-none whitespace-nowrap text-inherit outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-busy:cursor-wait aria-busy:opacity-55";
-function WF({ children: e, onPress: t, busy: n = !1 }) {
+var HF = "h-8 cursor-pointer rounded-full border border-(--glass-low) bg-transparent px-3 text-body-2-regular leading-none whitespace-nowrap text-inherit outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-busy:cursor-wait aria-busy:opacity-55";
+function UF({ children: e, onPress: t, busy: n = !1 }) {
return /* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
"data-glass-pill": "",
- className: UF,
+ className: HF,
"aria-busy": n || void 0,
"aria-disabled": n || void 0,
onClick: () => {
@@ -36081,13 +36082,13 @@ function WF({ children: e, onPress: t, busy: n = !1 }) {
}
//#endregion
//#region src/react/components/use-view-glide.ts
-var GF = (e, t) => [
+var WF = (e, t) => [
"x",
"y",
"w",
"h"
].every((n) => e[n] === t[n]);
-function KF(e, t, n) {
+function GF(e, t, n) {
if (!t.contains(e)) return null;
let r = 0, i = 0;
for (let n = e; n && n !== t; n = n.offsetParent) r += n.offsetLeft, i += n.offsetTop;
@@ -36111,17 +36112,17 @@ function KF(e, t, n) {
h: e.offsetHeight
};
}
-function qF(e, t, n, r, { axis: i = "x" } = {}) {
+function KF(e, t, n, r, { axis: i = "x" } = {}) {
let a = (0, D.useRef)(null), o = (0, D.useCallback)((r, o) => {
let s = e.current, c = t.current, l = s?.parentElement;
if (!s) return;
- let u = c && c.offsetWidth ? r ?? c.querySelector(n) : null, d = u && l ? KF(u, l, i) : null;
+ let u = c && c.offsetWidth ? r ?? c.querySelector(n) : null, d = u && l ? GF(u, l, i) : null;
if (!d || !d.w || !d.h) {
ic(s), s.hidden = !0, a.current = null;
return;
}
let f = s.hidden ? null : a.current;
- s.hidden = !1, a.current = d, !(o && f && GF(f, d)) && nc(s, o ? f : null, d, i);
+ s.hidden = !1, a.current = d, !(o && f && WF(f, d)) && nc(s, o ? f : null, d, i);
}, [
e,
t,
@@ -36142,8 +36143,8 @@ function qF(e, t, n, r, { axis: i = "x" } = {}) {
passive: !0
}), addEventListener("resize", c, { passive: !0 });
let l = new ResizeObserver(() => {
- let e = t.current, o = e?.offsetWidth ? e.querySelector(n) : null, s = o && r ? KF(o, r, i) : null, l = a.current;
- (!s || !l || !GF(s, l)) && c();
+ let e = t.current, o = e?.offsetWidth ? e.querySelector(n) : null, s = o && r ? GF(o, r, i) : null, l = a.current;
+ (!s || !l || !WF(s, l)) && c();
}), u = t.current;
if (u && r) {
l.observe(u);
@@ -36175,7 +36176,7 @@ function qF(e, t, n, r, { axis: i = "x" } = {}) {
}
//#endregion
//#region src/react/boardui/components/base/buttons/button.tsx
-var JF = nF({
+var qF = tF({
base: [
"inline-flex items-center justify-center gap-0.5 whitespace-nowrap overflow-hidden",
"font-sans select-none cursor-pointer",
@@ -36230,44 +36231,44 @@ var JF = nF({
].join(" ")
}
});
-function q({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadingIcon: r, trailingIcon: i, children: a, className: o, type: s = "button", ref: c, ...l }) {
+function J({ 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, O.jsxs)("button", {
ref: c,
type: s,
- className: tF(JF.base, JF.size[t], JF.variant[e], n && JF.iconOnlySize[t], o),
+ className: eF(qF.base, qF.size[t], qF.variant[e], n && qF.iconOnlySize[t], o),
...l,
children: [
r ? /* @__PURE__ */ (0, O.jsx)(r, {
- className: JF.icon[t],
+ className: qF.icon[t],
"aria-hidden": !0
}) : null,
!n && a != null && /* @__PURE__ */ (0, O.jsx)("span", {
- className: JF.label[t],
+ className: qF.label[t],
children: a
}),
!n && i ? /* @__PURE__ */ (0, O.jsx)(i, {
- className: JF.icon[t],
+ className: qF.icon[t],
"aria-hidden": !0
}) : null
]
});
}
-function YF({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadingIcon: r, trailingIcon: i, children: a, className: o, ref: s, ...c }) {
+function JF({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadingIcon: r, trailingIcon: i, children: a, className: o, ref: s, ...c }) {
return /* @__PURE__ */ (0, O.jsxs)("a", {
ref: s,
- className: tF(JF.base, JF.size[t], JF.variant[e], n && JF.iconOnlySize[t], o),
+ className: eF(qF.base, qF.size[t], qF.variant[e], n && qF.iconOnlySize[t], o),
...c,
children: [
r ? /* @__PURE__ */ (0, O.jsx)(r, {
- className: JF.icon[t],
+ className: qF.icon[t],
"aria-hidden": !0
}) : null,
!n && a != null && /* @__PURE__ */ (0, O.jsx)("span", {
- className: JF.label[t],
+ className: qF.label[t],
children: a
}),
!n && i ? /* @__PURE__ */ (0, O.jsx)(i, {
- className: JF.icon[t],
+ className: qF.icon[t],
"aria-hidden": !0
}) : null
]
@@ -36275,12 +36276,12 @@ function YF({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, lead
}
//#endregion
//#region node_modules/react-aria-components/dist/private/utils.mjs
-var XF = Symbol("default");
-function ZF({ values: e, children: t }) {
+var YF = Symbol("default");
+function XF({ values: e, children: t }) {
for (let [n, r] of e) t = /*#__PURE__*/ D.createElement(n.Provider, { value: r }, t);
return t;
}
-function QF(e) {
+function ZF(e) {
let { className: t, style: n, children: r, defaultClassName: i, defaultChildren: a, defaultStyle: o, values: s, render: c } = e;
return (0, D.useMemo)(() => {
let e, l, u;
@@ -36314,11 +36315,11 @@ function QF(e) {
c
]);
}
-function $F(e, t) {
+function QF(e, t) {
let n = (0, D.useContext)(e);
if (t === null) return null;
if (n && typeof n == "object" && "slots" in n && n.slots) {
- let e = t || XF;
+ let e = t || YF;
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}.`);
@@ -36327,8 +36328,8 @@ function $F(e, t) {
}
return n;
}
-function eI(e, t, n) {
- let { ref: r, ...i } = $F(n, e.slot) || {}, a = jx((0, D.useMemo)(() => Sx(t, r), [t, r])), o = K(i, e);
+function $F(e, t, n) {
+ let { ref: r, ...i } = QF(n, e.slot) || {}, a = Ax((0, D.useMemo)(() => xx(t, r), [t, r])), o = q(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,
@@ -36346,42 +36347,42 @@ function eI(e, t, n) {
...e.style
}), [o, a];
}
-function tI(e = !0) {
+function eI(e = !0) {
let [t, n] = (0, D.useState)(e), r = (0, D.useRef)(!1), i = (0, D.useCallback)((e) => {
r.current = !0, n(!!e);
}, []);
- return mb(() => {
+ return pb(() => {
r.current || n(!1);
}, []), [i, t];
}
-function nI(e) {
+function tI(e) {
let t = /^(data-.*)$/, n = {};
for (let r in e) t.test(r) || (n[r] = e[r]);
return n;
}
-function rI(e, t, n) {
- let { render: r, ...i } = t, a = (0, D.useRef)(null), o = (0, D.useMemo)(() => Sx(n, a), [n, a]);
- mb(() => {}, [e, r]);
+function nI(e, t, n) {
+ let { render: r, ...i } = t, a = (0, D.useRef)(null), o = (0, D.useMemo)(() => xx(n, a), [n, a]);
+ pb(() => {}, [e, r]);
let s = {
...i,
ref: o
};
return r ? r(s, void 0) : /*#__PURE__*/ D.createElement(e, s);
}
-var iI = {}, aI = new Proxy({}, { get(e, t) {
+var rI = {}, iI = new Proxy({}, { get(e, t) {
if (typeof t != "string") return;
- let n = iI[t];
- return n || (n = /*#__PURE__*/ (0, D.forwardRef)(rI.bind(null, t)), iI[t] = n), n;
-} }), oI = /*#__PURE__*/ (0, D.createContext)(null), sI = /*#__PURE__*/ (0, D.createContext)(null), cI = /*#__PURE__*/ (0, D.createContext)(null), lI = {
+ let n = rI[t];
+ return n || (n = /*#__PURE__*/ (0, D.forwardRef)(nI.bind(null, t)), rI[t] = n), n;
+} }), aI = /*#__PURE__*/ (0, D.createContext)(null), oI = /*#__PURE__*/ (0, D.createContext)(null), sI = /*#__PURE__*/ (0, D.createContext)(null), cI = {
CollectionRoot({ collection: e, renderDropIndicator: t }) {
- return uI(e, null, t);
+ return lI(e, null, t);
},
CollectionBranch({ collection: e, parent: t, renderDropIndicator: n }) {
- return uI(e, t, n);
+ return lI(e, t, n);
}
};
-function uI(e, t, n) {
- return Gy({
+function lI(e, t, n) {
+ return Wy({
items: t ? e.getChildren(t.key) : e,
dependencies: [n],
children(t) {
@@ -36391,11 +36392,11 @@ function uI(e, t, n) {
type: "item",
key: t.key,
dropPosition: "before"
- }), r, dI(e, t, n));
+ }), r, uI(e, t, n));
}
});
}
-function dI(e, t, n) {
+function uI(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);
@@ -36414,25 +36415,25 @@ function dI(e, t, n) {
}
return s;
}
-var fI = /*#__PURE__*/ (0, D.createContext)(lI);
-function pI(e) {
+var dI = /*#__PURE__*/ (0, D.createContext)(cI);
+function fI(e) {
return (0, D.useMemo)(() => e == null ? null : /* @__PURE__ */ new Set([e]), [e]);
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Label.mjs
-var mI = /*#__PURE__*/ (0, D.createContext)({}), hI = /*#__PURE__*/ Ix(function(e, t) {
- [e, t] = eI(e, t, mI);
- let { elementType: n = "label", ...r } = e, i = aI[n];
+var pI = /*#__PURE__*/ (0, D.createContext)({}), mI = /*#__PURE__*/ Fx(function(e, t) {
+ [e, t] = $F(e, t, pI);
+ let { elementType: n = "label", ...r } = e, i = iI[n];
return /*#__PURE__*/ D.createElement(i, {
className: "react-aria-Label",
...r,
ref: t
});
-}), gI = /*#__PURE__*/ (0, D.createContext)(null), _I = /*#__PURE__*/ (0, D.createContext)({}), vI = /*#__PURE__*/ Ix(function(e, t) {
- [e, t] = eI(e, t, _I);
+}), hI = /*#__PURE__*/ (0, D.createContext)(null), gI = /*#__PURE__*/ (0, D.createContext)({}), _I = /*#__PURE__*/ Fx(function(e, t) {
+ [e, t] = $F(e, t, gI);
let n = e, { isPending: r } = n, { buttonProps: i, isPressed: a } = fie(e, t);
- i = bI(i, r);
- let { focusProps: o, isFocused: s, isFocusVisible: c } = DT(e), { hoverProps: l, isHovered: u } = jT({
+ i = yI(i, r);
+ let { focusProps: o, isFocused: s, isFocusVisible: c } = ET(e), { hoverProps: l, isHovered: u } = AT({
...e,
isDisabled: e.isDisabled || r
}), d = {
@@ -36442,25 +36443,25 @@ var mI = /*#__PURE__*/ (0, D.createContext)({}), hI = /*#__PURE__*/ Ix(function(
isFocusVisible: c,
isDisabled: e.isDisabled || !1,
isPending: r ?? !1
- }, f = QF({
+ }, f = ZF({
...e,
values: d,
defaultClassName: "react-aria-Button"
- }), p = bx(i.id), m = bx(), h = i["aria-labelledby"];
+ }), p = yx(i.id), m = yx(), h = i["aria-labelledby"];
r && (h ? h = `${h} ${m}` : i["aria-label"] && (h = `${p} ${m}`));
let g = (0, D.useRef)(r);
(0, D.useEffect)(() => {
let e = { "aria-labelledby": h || p };
- (!g.current && s && r || g.current && s && !r) && hC(e, "assertive"), g.current = r;
+ (!g.current && s && r || g.current && s && !r) && mC(e, "assertive"), g.current = r;
}, [
r,
s,
h,
p
]);
- let _ = wS(e, { global: !0 });
- return delete _.onClick, /*#__PURE__*/ D.createElement(aI.button, {
- ...K(_, f, i, o, l),
+ let _ = CS(e, { global: !0 });
+ return delete _.onClick, /*#__PURE__*/ D.createElement(iI.button, {
+ ...q(_, f, i, o, l),
type: i.type === "submit" && r ? "button" : i.type,
id: p,
ref: t,
@@ -36473,62 +36474,62 @@ var mI = /*#__PURE__*/ (0, D.createContext)({}), hI = /*#__PURE__*/ Ix(function(
"data-focused": s || void 0,
"data-pending": r || void 0,
"data-focus-visible": c || void 0
- }, /*#__PURE__*/ D.createElement(gI.Provider, { value: { id: m } }, f.children));
-}), yI = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;
-function bI(e, t) {
+ }, /*#__PURE__*/ D.createElement(hI.Provider, { value: { id: m } }, f.children));
+}), vI = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;
+function yI(e, t) {
if (t) {
- for (let t in e) t.startsWith("on") && !yI.test(t) && (e[t] = void 0);
+ for (let t in e) t.startsWith("on") && !vI.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 xI = /*#__PURE__*/ (0, D.createContext)({}), SI = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
- [e, t] = eI(e, t, xI);
- let { children: n, level: r = 3, className: i, ...a } = e, o = aI[`h${r}`];
+var bI = /*#__PURE__*/ (0, D.createContext)({}), xI = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
+ [e, t] = $F(e, t, bI);
+ let { children: n, level: r = 3, className: i, ...a } = e, o = iI[`h${r}`];
return /*#__PURE__*/ D.createElement(o, {
...a,
ref: t,
className: i ?? "react-aria-Heading"
}, n);
-}), CI = /*#__PURE__*/ (0, D.createContext)({}), wI = /*#__PURE__*/ Ix(function(e, t) {
- [e, t] = eI(e, t, CI);
- let { elementType: n = "span", ...r } = e, i = aI[n];
+}), SI = /*#__PURE__*/ (0, D.createContext)({}), CI = /*#__PURE__*/ Fx(function(e, t) {
+ [e, t] = $F(e, t, SI);
+ let { elementType: n = "span", ...r } = e, i = iI[n];
return /*#__PURE__*/ D.createElement(i, {
className: "react-aria-Text",
...r,
ref: t
});
-}), TI = /*#__PURE__*/ (0, D.createContext)(null), EI = /*#__PURE__*/ (0, D.createContext)(null), DI = /*#__PURE__*/ (0, D.createContext)(null), OI = /*#__PURE__*/ (0, D.createContext)(null), kI = /*#__PURE__*/ (0, D.createContext)(null), AI = /*#__PURE__*/ (0, D.createContext)(null);
-function jI(e, t) {
- let { validationBehavior: n } = $F(EI) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, D.useContext)(kI), a = jx((0, D.useMemo)(() => Sx(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
- ...nI(e),
+}), wI = /*#__PURE__*/ (0, D.createContext)(null), TI = /*#__PURE__*/ (0, D.createContext)(null), EI = /*#__PURE__*/ (0, D.createContext)(null), DI = /*#__PURE__*/ (0, D.createContext)(null), OI = /*#__PURE__*/ (0, D.createContext)(null), kI = /*#__PURE__*/ (0, D.createContext)(null);
+function AI(e, t) {
+ let { validationBehavior: n } = QF(TI) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, D.useContext)(OI), a = Ax((0, D.useMemo)(() => xx(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
+ ...tI(e),
children: typeof e.children == "function" || e.children,
value: e.value,
validationBehavior: r
};
- return [i ? ew(o, i, a) : KC(o, $C(e), a), a];
+ return [i ? $C(o, i, a) : GC(o, QC(e), a), a];
}
-var MI = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
+var jI = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = eI(r, t, DI);
- let [i, a] = jI(e, n);
- return /*#__PURE__*/ D.createElement(AI.Provider, { value: {
+ [e, t] = $F(r, t, EI);
+ let [i, a] = AI(e, n);
+ return /*#__PURE__*/ D.createElement(kI.Provider, { value: {
...i,
inputRef: a,
defaultClassName: "react-aria-Checkbox",
isIndeterminate: e.isIndeterminate,
isRequired: e.isRequired
- } }, /*#__PURE__*/ D.createElement(NI, {
+ } }, /*#__PURE__*/ D.createElement(MI, {
...e,
ref: t
}));
-}), NI = /*#__PURE__*/ (0, D.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, D.useContext)(AI), { isFocused: p, isFocusVisible: m, focusProps: h } = DT(), g = a || o, { hoverProps: _, isHovered: v } = jT({
+}), MI = /*#__PURE__*/ (0, D.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, D.useContext)(kI), { isFocused: p, isFocusVisible: m, focusProps: h } = ET(), g = a || o, { hoverProps: _, isHovered: v } = AT({
...e,
isDisabled: g
- }), y = QF({
+ }), y = ZF({
...e,
defaultClassName: u,
values: {
@@ -36543,9 +36544,9 @@ var MI = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
isInvalid: c,
isRequired: f || !1
}
- }), b = wS(e, { global: !0 });
- return delete b.id, delete b.onClick, /*#__PURE__*/ D.createElement(aI.label, {
- ...K(b, n, _, y),
+ }), b = CS(e, { global: !0 });
+ return delete b.id, delete b.onClick, /*#__PURE__*/ D.createElement(iI.label, {
+ ...q(b, n, _, y),
ref: t,
slot: e.slot || void 0,
"data-selected": i || void 0,
@@ -36558,20 +36559,20 @@ var MI = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
"data-readonly": o || void 0,
"data-invalid": c || void 0,
"data-required": f || void 0
- }, /*#__PURE__*/ D.createElement(lw, { elementType: "span" }, /*#__PURE__*/ D.createElement("input", {
- ...K(r, h),
+ }, /*#__PURE__*/ D.createElement(cw, { elementType: "span" }, /*#__PURE__*/ D.createElement("input", {
+ ...q(r, h),
ref: l
})), y.children);
-}), PI = /*#__PURE__*/ (0, D.createContext)({}), FI = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
- [e, t] = eI(e, t, PI);
+}), NI = /*#__PURE__*/ (0, D.createContext)({}), PI = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
+ [e, t] = $F(e, t, NI);
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 } = jT({
+ let { hoverProps: l, isHovered: u } = AT({
onHoverStart: a,
onHoverChange: o,
onHoverEnd: s,
isDisabled: n
- }), { isFocused: d, isFocusVisible: f, focusProps: p } = DT({ within: !0 }), m = QF({
+ }), { isFocused: d, isFocusVisible: f, focusProps: p } = ET({ within: !0 }), m = ZF({
...e,
values: {
isHovered: u,
@@ -36582,8 +36583,8 @@ var MI = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
},
defaultClassName: "react-aria-Group"
});
- return /*#__PURE__*/ D.createElement(aI.div, {
- ...K(c, p, l),
+ return /*#__PURE__*/ D.createElement(iI.div, {
+ ...q(c, p, l),
...m,
ref: t,
role: e.role ?? "group",
@@ -36595,18 +36596,18 @@ var MI = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
"data-invalid": r || void 0,
"data-readonly": i || void 0
}, m.children);
-}), II = /*#__PURE__*/ (0, D.createContext)({}), LI = (e) => {
+}), FI = /*#__PURE__*/ (0, D.createContext)({}), II = (e) => {
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, ...i } = e;
return i;
-}, RI = /*#__PURE__*/ Ix(function(e, t) {
- [e, t] = eI(e, t, II);
- let { hoverProps: n, isHovered: r } = jT({
+}, LI = /*#__PURE__*/ Fx(function(e, t) {
+ [e, t] = $F(e, t, FI);
+ let { hoverProps: n, isHovered: r } = AT({
...e,
isDisabled: e.disabled
- }), { isFocused: i, isFocusVisible: a, focusProps: o } = DT({
+ }), { isFocused: i, isFocusVisible: a, focusProps: o } = ET({
isTextInput: !0,
autoFocus: e.autoFocus
- }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = QF({
+ }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = ZF({
...e,
values: {
isHovered: r,
@@ -36617,8 +36618,8 @@ var MI = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
},
defaultClassName: "react-aria-Input"
});
- return /*#__PURE__*/ D.createElement(aI.input, {
- ...K(LI(e), o, n),
+ return /*#__PURE__*/ D.createElement(iI.input, {
+ ...q(II(e), o, n),
...c,
ref: t,
"data-focused": i || void 0,
@@ -36627,24 +36628,24 @@ var MI = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
"data-focus-visible": a || void 0,
"data-invalid": s || void 0
});
-}), zI = 0, BI = 100, VI = 1;
-function HI(e) {
- let { isDisabled: t = !1, minValue: n = zI, maxValue: r = BI, numberFormatter: i, step: a = VI, orientation: o = "horizontal" } = e, s = (0, D.useMemo)(() => {
+}), RI = 0, zI = 100, BI = 1;
+function VI(e) {
+ let { isDisabled: t = !1, minValue: n = RI, maxValue: r = zI, numberFormatter: i, step: a = BI, orientation: o = "horizontal" } = e, s = (0, D.useMemo)(() => {
let e = (r - n) / 10;
- return e = rw(e, 0, e + a, a), Math.max(e, a);
+ return e = nw(e, 0, e + a, a), Math.max(e, a);
}, [
a,
r,
n
- ]), c = (0, D.useCallback)((e) => e?.map((t, i) => rw(t, i === 0 ? n : e[i - 1], i === e.length - 1 ? r : e[i + 1], a)), [
+ ]), c = (0, D.useCallback)((e) => e?.map((t, i) => nw(t, i === 0 ? n : e[i - 1], i === e.length - 1 ? r : e[i + 1], a)), [
n,
r,
a
- ]), l = (0, D.useMemo)(() => c(WI(e.value)), [e.value, c]), u = (0, D.useMemo)(() => c(WI(e.defaultValue) ?? [n]), [
+ ]), l = (0, D.useMemo)(() => c(UI(e.value)), [e.value, c]), u = (0, D.useMemo)(() => c(UI(e.defaultValue) ?? [n]), [
e.defaultValue,
n,
c
- ]), d = GI(e.value, e.defaultValue, e.onChange), f = GI(e.value, e.defaultValue, e.onChangeEnd), [p, m] = QC(l, u, d), [h] = (0, D.useState)(p), [g, _] = (0, D.useState)(Array(p.length).fill(!1)), v = (0, D.useRef)(Array(p.length).fill(!0)), [y, b] = (0, D.useState)(void 0), x = (0, D.useRef)(p), S = (0, D.useRef)(g), C = (e) => {
+ ]), d = WI(e.value, e.defaultValue, e.onChange), f = WI(e.value, e.defaultValue, e.onChangeEnd), [p, m] = ZC(l, u, d), [h] = (0, D.useState)(p), [g, _] = (0, D.useState)(Array(p.length).fill(!1)), v = (0, D.useRef)(Array(p.length).fill(!0)), [y, b] = (0, D.useState)(void 0), x = (0, D.useRef)(p), S = (0, D.useRef)(g), C = (e) => {
x.current = e, m(e);
}, w = (e) => {
S.current = e, _(e);
@@ -36667,15 +36668,15 @@ function HI(e) {
function j(e, n) {
if (t || !k(e)) return;
let r = E(e), i = O(e);
- n = rw(n, r, i, a);
- let o = UI(x.current, e, n);
+ n = nw(n, r, i, a);
+ let o = HI(x.current, e, n);
C(o);
}
function M(e, n) {
if (t || !k(e)) return;
n && (x.current = p);
let r = S.current[e];
- S.current = UI(S.current, e, n), w(S.current), f && r && !S.current.some(Boolean) && f(x.current);
+ S.current = HI(S.current, e, n), w(S.current), f && r && !S.current.some(Boolean) && f(x.current);
}
let N = (0, D.useRef)(null);
function P(e = p) {
@@ -36696,15 +36697,15 @@ function HI(e) {
return Math.round((e - n) / a) * a + n;
}
function te(e) {
- return tw(F(e * (r - n) + n), n, r);
+ return ew(F(e * (r - n) + n), n, r);
}
function I(e, t = 1) {
let i = Math.max(t, a);
- j(e, rw(p[e] + i, n, r, a));
+ j(e, nw(p[e] + i, n, r, a));
}
function ne(e, t = 1) {
let i = Math.max(t, a);
- j(e, rw(p[e] - i, n, r, a));
+ j(e, nw(p[e] - i, n, r, a));
}
return {
values: p,
@@ -36733,32 +36734,32 @@ function HI(e) {
isDisabled: t
};
}
-function UI(e, t, n) {
+function HI(e, t, n) {
return e[t] === n ? e : [
...e.slice(0, t),
n,
...e.slice(t + 1)
];
}
-function WI(e) {
+function UI(e) {
if (e != null) return Array.isArray(e) ? e : [e];
}
-function GI(e, t, n) {
+function WI(e, t, n) {
return (r) => {
typeof e == "number" || typeof t == "number" ? n?.(r[0]) : n?.(r);
};
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Slider.mjs
-var Jle = /*#__PURE__*/ (0, D.createContext)(null), KI = /*#__PURE__*/ (0, D.createContext)(null), qI = /*#__PURE__*/ (0, D.createContext)(null), Yle = /*#__PURE__*/ (0, D.createContext)(null), Xle = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
- [e, t] = eI(e, t, Jle);
- let n = (0, D.useRef)(null), r = Cie(e.formatOptions), i = HI({
+var Jle = /*#__PURE__*/ (0, D.createContext)(null), GI = /*#__PURE__*/ (0, D.createContext)(null), KI = /*#__PURE__*/ (0, D.createContext)(null), Yle = /*#__PURE__*/ (0, D.createContext)(null), Xle = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
+ [e, t] = $F(e, t, Jle);
+ let n = (0, D.useRef)(null), r = Cie(e.formatOptions), i = VI({
...e,
numberFormatter: r
- }), [a, o] = tI(!e["aria-label"] && !e["aria-labelledby"]), { groupProps: s, trackProps: c, labelProps: l, outputProps: u } = wie({
+ }), [a, o] = eI(!e["aria-label"] && !e["aria-labelledby"]), { groupProps: s, trackProps: c, labelProps: l, outputProps: u } = wie({
...e,
label: o
- }, i, n), d = QF({
+ }, i, n), d = ZF({
...e,
values: {
orientation: i.orientation,
@@ -36766,32 +36767,32 @@ var Jle = /*#__PURE__*/ (0, D.createContext)(null), KI = /*#__PURE__*/ (0, D.cre
state: i
},
defaultClassName: "react-aria-Slider"
- }), f = wS(e, { global: !0 });
- return delete f.id, /*#__PURE__*/ D.createElement(ZF, { values: [
- [KI, i],
- [qI, {
+ }), f = CS(e, { global: !0 });
+ return delete f.id, /*#__PURE__*/ D.createElement(XF, { values: [
+ [GI, i],
+ [KI, {
...c,
ref: n
}],
[Yle, u],
- [mI, {
+ [pI, {
...l,
ref: a
}]
- ] }, /*#__PURE__*/ D.createElement(aI.div, {
- ...K(f, d, s),
+ ] }, /*#__PURE__*/ D.createElement(iI.div, {
+ ...q(f, d, s),
ref: t,
slot: e.slot || void 0,
"data-orientation": i.orientation,
"data-disabled": i.isDisabled || void 0
}));
}), Zle = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
- [e, t] = eI(e, t, qI);
- let n = (0, D.useContext)(KI), { onHoverStart: r, onHoverEnd: i, onHoverChange: a, ...o } = e, { hoverProps: s, isHovered: c } = jT({
+ [e, t] = $F(e, t, KI);
+ let n = (0, D.useContext)(GI), { onHoverStart: r, onHoverEnd: i, onHoverChange: a, ...o } = e, { hoverProps: s, isHovered: c } = AT({
onHoverStart: r,
onHoverEnd: i,
onHoverChange: a
- }), l = QF({
+ }), l = ZF({
...e,
defaultClassName: "react-aria-SliderTrack",
values: {
@@ -36801,8 +36802,8 @@ var Jle = /*#__PURE__*/ (0, D.createContext)(null), KI = /*#__PURE__*/ (0, D.cre
state: n
}
});
- return /*#__PURE__*/ D.createElement(aI.div, {
- ...K(o, s),
+ return /*#__PURE__*/ D.createElement(iI.div, {
+ ...q(o, s),
...l,
ref: t,
"data-hovered": c || void 0,
@@ -36810,13 +36811,13 @@ var Jle = /*#__PURE__*/ (0, D.createContext)(null), KI = /*#__PURE__*/ (0, D.cre
"data-disabled": n.isDisabled || void 0
});
}), Qle = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
- let { inputRef: n = null } = e, r = (0, D.useContext)(KI), { ref: i } = $F(qI), { index: a = 0 } = e, o = (0, D.useRef)(null), s = n || o, [c, l] = tI(!e["aria-label"] && !e["aria-labelledby"]), { thumbProps: u, inputProps: d, labelProps: f, isDragging: p, isFocused: m, isDisabled: h } = Tie({
+ let { inputRef: n = null } = e, r = (0, D.useContext)(GI), { ref: i } = QF(KI), { index: a = 0 } = e, o = (0, D.useRef)(null), s = n || o, [c, l] = eI(!e["aria-label"] && !e["aria-labelledby"]), { thumbProps: u, inputProps: d, labelProps: f, isDragging: p, isFocused: m, isDisabled: h } = Tie({
...e,
index: a,
trackRef: i,
inputRef: s,
label: l
- }, r), { focusProps: g, isFocusVisible: _ } = DT(), { hoverProps: v, isHovered: y } = jT(e), b = QF({
+ }, r), { focusProps: g, isFocusVisible: _ } = ET(), { hoverProps: v, isHovered: y } = AT(e), b = ZF({
...e,
defaultClassName: "react-aria-SliderThumb",
values: {
@@ -36827,9 +36828,9 @@ var Jle = /*#__PURE__*/ (0, D.createContext)(null), KI = /*#__PURE__*/ (0, D.cre
isFocusVisible: _,
isDisabled: h
}
- }), x = wS(e, { global: !0 });
- return delete x.id, /*#__PURE__*/ D.createElement(aI.div, {
- ...K(x, u, v),
+ }), x = CS(e, { global: !0 });
+ return delete x.id, /*#__PURE__*/ D.createElement(iI.div, {
+ ...q(x, u, v),
...b,
ref: t,
style: {
@@ -36841,15 +36842,15 @@ var Jle = /*#__PURE__*/ (0, D.createContext)(null), KI = /*#__PURE__*/ (0, D.cre
"data-focused": m || void 0,
"data-focus-visible": _ || void 0,
"data-disabled": h || void 0
- }, /*#__PURE__*/ D.createElement(lw, null, /*#__PURE__*/ D.createElement("input", {
+ }, /*#__PURE__*/ D.createElement(cw, null, /*#__PURE__*/ D.createElement("input", {
ref: s,
- ...K(d, g)
- })), /*#__PURE__*/ D.createElement(ZF, { values: [[mI, {
+ ...q(d, g)
+ })), /*#__PURE__*/ D.createElement(XF, { values: [[pI, {
...f,
ref: c
}]] }, b.children));
-}), JI = {};
-JI = {
+}), qI = {};
+qI = {
colorSwatchPicker: "تغييرات الألوان",
dropzoneLabel: "DropZone",
selectPlaceholder: "حدد عنصرًا",
@@ -36857,8 +36858,8 @@ JI = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/bg-BG.mjs
-var YI = {};
-YI = {
+var JI = {};
+JI = {
colorSwatchPicker: "Цветови мостри",
dropzoneLabel: "DropZone",
selectPlaceholder: "Изберете предмет",
@@ -36866,8 +36867,8 @@ YI = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/cs-CZ.mjs
-var XI = {};
-XI = {
+var YI = {};
+YI = {
colorSwatchPicker: "Vzorky barev",
dropzoneLabel: "Místo pro přetažení",
selectPlaceholder: "Vyberte položku",
@@ -36875,8 +36876,8 @@ XI = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/da-DK.mjs
-var ZI = {};
-ZI = {
+var XI = {};
+XI = {
colorSwatchPicker: "Farveprøver",
dropzoneLabel: "DropZone",
selectPlaceholder: "Vælg et element",
@@ -36884,8 +36885,8 @@ ZI = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/de-DE.mjs
-var QI = {};
-QI = {
+var ZI = {};
+ZI = {
colorSwatchPicker: "Farbfelder",
dropzoneLabel: "Ablegebereich",
selectPlaceholder: "Element wählen",
@@ -36893,8 +36894,8 @@ QI = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/el-GR.mjs
-var $I = {};
-$I = {
+var QI = {};
+QI = {
colorSwatchPicker: "Χρωματικά δείγματα",
dropzoneLabel: "DropZone",
selectPlaceholder: "Επιλέξτε ένα αντικείμενο",
@@ -36902,8 +36903,8 @@ $I = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/en-US.mjs
-var eL = {};
-eL = {
+var $I = {};
+$I = {
selectPlaceholder: "Select an item",
tableResizer: "Resizer",
dropzoneLabel: "DropZone",
@@ -36911,8 +36912,8 @@ eL = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/es-ES.mjs
-var tL = {};
-tL = {
+var eL = {};
+eL = {
colorSwatchPicker: "Muestras de colores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Seleccionar un artículo",
@@ -36920,8 +36921,8 @@ tL = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/et-EE.mjs
-var nL = {};
-nL = {
+var tL = {};
+tL = {
colorSwatchPicker: "Värvinäidised",
dropzoneLabel: "DropZone",
selectPlaceholder: "Valige üksus",
@@ -36929,8 +36930,8 @@ nL = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/fi-FI.mjs
-var rL = {};
-rL = {
+var nL = {};
+nL = {
colorSwatchPicker: "Värimallit",
dropzoneLabel: "DropZone",
selectPlaceholder: "Valitse kohde",
@@ -36938,8 +36939,8 @@ rL = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/fr-FR.mjs
-var iL = {};
-iL = {
+var rL = {};
+rL = {
colorSwatchPicker: "Échantillons de couleurs",
dropzoneLabel: "DropZone",
selectPlaceholder: "Sélectionner un élément",
@@ -36947,8 +36948,8 @@ iL = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/he-IL.mjs
-var aL = {};
-aL = {
+var iL = {};
+iL = {
colorSwatchPicker: "דוגמיות צבע",
dropzoneLabel: "DropZone",
selectPlaceholder: "בחר פריט",
@@ -36956,8 +36957,8 @@ aL = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/hr-HR.mjs
-var oL = {};
-oL = {
+var aL = {};
+aL = {
colorSwatchPicker: "Uzorci boja",
dropzoneLabel: "Zona spuštanja",
selectPlaceholder: "Odaberite stavku",
@@ -36965,8 +36966,8 @@ oL = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/hu-HU.mjs
-var sL = {};
-sL = {
+var oL = {};
+oL = {
colorSwatchPicker: "Színtárak",
dropzoneLabel: "DropZone",
selectPlaceholder: "Válasszon ki egy elemet",
@@ -36974,8 +36975,8 @@ sL = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/it-IT.mjs
-var cL = {};
-cL = {
+var sL = {};
+sL = {
colorSwatchPicker: "Campioni di colore",
dropzoneLabel: "Zona di rilascio",
selectPlaceholder: "Seleziona un elemento",
@@ -36983,8 +36984,8 @@ cL = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ja-JP.mjs
-var lL = {};
-lL = {
+var cL = {};
+cL = {
colorSwatchPicker: "カラースウォッチ",
dropzoneLabel: "ドロップゾーン",
selectPlaceholder: "項目を選択",
@@ -36992,8 +36993,8 @@ lL = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ko-KR.mjs
-var uL = {};
-uL = {
+var lL = {};
+lL = {
colorSwatchPicker: "색상 견본",
dropzoneLabel: "드롭 영역",
selectPlaceholder: "항목 선택",
@@ -37001,8 +37002,8 @@ uL = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/lt-LT.mjs
-var dL = {};
-dL = {
+var uL = {};
+uL = {
colorSwatchPicker: "Spalvų pavyzdžiai",
dropzoneLabel: "„DropZone“",
selectPlaceholder: "Pasirinkite elementą",
@@ -37010,8 +37011,8 @@ dL = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/lv-LV.mjs
-var fL = {};
-fL = {
+var dL = {};
+dL = {
colorSwatchPicker: "Krāsu paraugi",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izvēlēties vienumu",
@@ -37019,8 +37020,8 @@ fL = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/nb-NO.mjs
-var pL = {};
-pL = {
+var fL = {};
+fL = {
colorSwatchPicker: "Fargekart",
dropzoneLabel: "Droppsone",
selectPlaceholder: "Velg et element",
@@ -37028,8 +37029,8 @@ pL = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/nl-NL.mjs
-var mL = {};
-mL = {
+var pL = {};
+pL = {
colorSwatchPicker: "kleurstalen",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecteer een item",
@@ -37037,8 +37038,8 @@ mL = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/pl-PL.mjs
-var hL = {};
-hL = {
+var mL = {};
+mL = {
colorSwatchPicker: "Próbki kolorów",
dropzoneLabel: "Strefa upuszczania",
selectPlaceholder: "Wybierz element",
@@ -37046,8 +37047,8 @@ hL = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/pt-BR.mjs
-var gL = {};
-gL = {
+var hL = {};
+hL = {
colorSwatchPicker: "Amostras de cores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecione um item",
@@ -37055,8 +37056,8 @@ gL = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/pt-PT.mjs
-var _L = {};
-_L = {
+var gL = {};
+gL = {
colorSwatchPicker: "Amostras de cores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecione um item",
@@ -37064,8 +37065,8 @@ _L = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ro-RO.mjs
-var vL = {};
-vL = {
+var _L = {};
+_L = {
colorSwatchPicker: "Specimene de culoare",
dropzoneLabel: "Zonă de plasare",
selectPlaceholder: "Selectați un element",
@@ -37073,8 +37074,8 @@ vL = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ru-RU.mjs
-var yL = {};
-yL = {
+var vL = {};
+vL = {
colorSwatchPicker: "Цветовые образцы",
dropzoneLabel: "DropZone",
selectPlaceholder: "Выберите элемент",
@@ -37082,8 +37083,8 @@ yL = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sk-SK.mjs
-var bL = {};
-bL = {
+var yL = {};
+yL = {
colorSwatchPicker: "Vzorkovníky farieb",
dropzoneLabel: "DropZone",
selectPlaceholder: "Vyberte položku",
@@ -37091,8 +37092,8 @@ bL = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sl-SI.mjs
-var xL = {};
-xL = {
+var bL = {};
+bL = {
colorSwatchPicker: "Barvne palete",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izberite element",
@@ -37100,8 +37101,8 @@ xL = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sr-SP.mjs
-var SL = {};
-SL = {
+var xL = {};
+xL = {
colorSwatchPicker: "Uzorci boje",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izaberite stavku",
@@ -37109,8 +37110,8 @@ SL = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sv-SE.mjs
-var CL = {};
-CL = {
+var SL = {};
+SL = {
colorSwatchPicker: "Färgrutor",
dropzoneLabel: "DropZone",
selectPlaceholder: "Välj en artikel",
@@ -37118,8 +37119,8 @@ CL = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/tr-TR.mjs
-var wL = {};
-wL = {
+var CL = {};
+CL = {
colorSwatchPicker: "Renk örnekleri",
dropzoneLabel: "Bırakma Bölgesi",
selectPlaceholder: "Bir öğe seçin",
@@ -37127,8 +37128,8 @@ wL = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/uk-UA.mjs
-var TL = {};
-TL = {
+var wL = {};
+wL = {
colorSwatchPicker: "Зразки кольорів",
dropzoneLabel: "DropZone",
selectPlaceholder: "Виберіть елемент",
@@ -37136,8 +37137,8 @@ TL = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/zh-CN.mjs
-var EL = {};
-EL = {
+var TL = {};
+TL = {
colorSwatchPicker: "颜色色板",
dropzoneLabel: "放置区域",
selectPlaceholder: "选择一个项目",
@@ -37145,8 +37146,8 @@ EL = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/zh-TW.mjs
-var DL = {};
-DL = {
+var EL = {};
+EL = {
colorSwatchPicker: "色票",
dropzoneLabel: "放置區",
selectPlaceholder: "選取項目",
@@ -37154,50 +37155,50 @@ DL = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intlStrings.mjs
-var OL = {};
-OL = {
- "ar-AE": JI,
- "bg-BG": YI,
- "cs-CZ": XI,
- "da-DK": ZI,
- "de-DE": QI,
- "el-GR": $I,
- "en-US": eL,
- "es-ES": tL,
- "et-EE": nL,
- "fi-FI": rL,
- "fr-FR": iL,
- "he-IL": aL,
- "hr-HR": oL,
- "hu-HU": sL,
- "it-IT": cL,
- "ja-JP": lL,
- "ko-KR": uL,
- "lt-LT": dL,
- "lv-LV": fL,
- "nb-NO": pL,
- "nl-NL": mL,
- "pl-PL": hL,
- "pt-BR": gL,
- "pt-PT": _L,
- "ro-RO": vL,
- "ru-RU": yL,
- "sk-SK": bL,
- "sl-SI": xL,
- "sr-SP": SL,
- "sv-SE": CL,
- "tr-TR": wL,
- "uk-UA": TL,
- "zh-CN": EL,
- "zh-TW": DL
+var DL = {};
+DL = {
+ "ar-AE": qI,
+ "bg-BG": JI,
+ "cs-CZ": YI,
+ "da-DK": XI,
+ "de-DE": ZI,
+ "el-GR": QI,
+ "en-US": $I,
+ "es-ES": eL,
+ "et-EE": tL,
+ "fi-FI": nL,
+ "fr-FR": rL,
+ "he-IL": iL,
+ "hr-HR": aL,
+ "hu-HU": oL,
+ "it-IT": sL,
+ "ja-JP": cL,
+ "ko-KR": lL,
+ "lt-LT": uL,
+ "lv-LV": dL,
+ "nb-NO": fL,
+ "nl-NL": pL,
+ "pl-PL": mL,
+ "pt-BR": hL,
+ "pt-PT": gL,
+ "ro-RO": _L,
+ "ru-RU": vL,
+ "sk-SK": yL,
+ "sl-SI": bL,
+ "sr-SP": xL,
+ "sv-SE": SL,
+ "tr-TR": CL,
+ "uk-UA": wL,
+ "zh-CN": TL,
+ "zh-TW": EL
};
//#endregion
//#region node_modules/react-aria-components/dist/private/DragAndDrop.mjs
-var kL = /*#__PURE__*/ (0, D.createContext)({}), AL = /*#__PURE__*/ (0, D.createContext)(null), $le = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
- let { render: n } = (0, D.useContext)(AL);
+var OL = /*#__PURE__*/ (0, D.createContext)({}), kL = /*#__PURE__*/ (0, D.createContext)(null), $le = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
+ let { render: n } = (0, D.useContext)(kL);
return /*#__PURE__*/ D.createElement(D.Fragment, null, n(e, t));
});
-function jL(e, t) {
+function AL(e, t) {
let n = e?.renderDropIndicator, r = e?.isVirtualDragging?.(), i = (0, D.useCallback)((e) => {
if (r || t?.isDropTarget(e)) return n ? n(e) : /*#__PURE__*/ D.createElement($le, { target: e });
}, [
@@ -37207,7 +37208,7 @@ function jL(e, t) {
]);
return e?.useDropIndicator ? i : void 0;
}
-function ML(e, t, n) {
+function jL(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;
@@ -37229,14 +37230,14 @@ function ML(e, t, n) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Header.mjs
-var NL = /*#__PURE__*/ (0, D.createContext)({}), eue = /*#__PURE__*/ (0, D.createContext)(null);
-function PL(e) {
+var ML = /*#__PURE__*/ (0, D.createContext)({}), eue = /*#__PURE__*/ (0, D.createContext)(null);
+function NL(e) {
let t = (0, D.useRef)({});
return /*#__PURE__*/ D.createElement(eue.Provider, { value: t }, e.children);
}
//#endregion
//#region node_modules/react-aria-components/dist/private/SelectionIndicator.mjs
-var FL = /*#__PURE__*/ (0, D.createContext)({ isSelected: !1 }), IL = /*#__PURE__*/ (0, D.createContext)({}), tue = /*#__PURE__*/ Wx(class extends Ly {
+var PL = /*#__PURE__*/ (0, D.createContext)({ isSelected: !1 }), FL = /*#__PURE__*/ (0, D.createContext)({}), tue = /*#__PURE__*/ Ux(class extends Iy {
static {
this.type = "separator";
}
@@ -37249,17 +37250,17 @@ var FL = /*#__PURE__*/ (0, D.createContext)({ isSelected: !1 }), IL = /*#__PURE_
return null;
}
}, function(e, t) {
- [e, t] = eI(e, t, IL);
+ [e, t] = $F(e, t, FL);
let { elementType: n, orientation: r, style: i, className: a, slot: o, ...s } = e, c = n || "hr";
c === "hr" && r === "vertical" && (c = "div");
- let l = aI[c], { separatorProps: u } = Mae({
+ let l = iI[c], { separatorProps: u } = Mae({
...s,
elementType: n,
orientation: r
- }), d = wS(e, { global: !0 });
+ }), d = CS(e, { global: !0 });
return /*#__PURE__*/ D.createElement(l, {
render: e.render,
- ...K(d, u),
+ ...q(d, u),
style: i,
className: a ?? "react-aria-Separator",
ref: t,
@@ -37268,13 +37269,13 @@ var FL = /*#__PURE__*/ (0, D.createContext)({ isSelected: !1 }), IL = /*#__PURE_
});
//#endregion
//#region node_modules/react-aria/dist/private/utils/inertValue.mjs
-function LL(e) {
+function IL(e) {
let t = D.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 RL = class {
+var LL = class {
constructor(e) {
this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.iterable = e;
let t = (e) => {
@@ -37318,7 +37319,7 @@ var RL = class {
getChildren(e) {
return this.keyMap.get(e)?.childNodes || [];
}
-}, zL = class e extends Set {
+}, RL = 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);
}
@@ -37330,8 +37331,8 @@ function nue(e, t) {
for (let n of e) if (!t.has(n)) return !1;
return !0;
}
-function BL(e) {
- let { selectionMode: t = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: a = "all" } = e, o = (0, D.useRef)(!1), [, s] = (0, D.useState)(!1), c = (0, D.useRef)(null), l = (0, D.useRef)(null), [, u] = (0, D.useState)(null), [d, f] = QC((0, D.useMemo)(() => VL(e.selectedKeys), [e.selectedKeys]), (0, D.useMemo)(() => VL(e.defaultSelectedKeys, new zL()), [e.defaultSelectedKeys]), e.onSelectionChange), p = (0, D.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), [m, h] = (0, D.useState)(i);
+function zL(e) {
+ let { selectionMode: t = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: a = "all" } = e, o = (0, D.useRef)(!1), [, s] = (0, D.useState)(!1), c = (0, D.useRef)(null), l = (0, D.useRef)(null), [, u] = (0, D.useState)(null), [d, f] = ZC((0, D.useMemo)(() => BL(e.selectedKeys), [e.selectedKeys]), (0, D.useMemo)(() => BL(e.defaultSelectedKeys, new RL()), [e.defaultSelectedKeys]), e.onSelectionChange), p = (0, D.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), [m, h] = (0, D.useState)(i);
i === "replace" && m === "toggle" && typeof d == "object" && d.size === 0 && h("replace");
let g = (0, D.useRef)(i);
return (0, D.useEffect)(() => {
@@ -37364,12 +37365,12 @@ function BL(e) {
disabledBehavior: a
};
}
-function VL(e, t) {
- return e ? e === "all" ? "all" : new zL(e) : t;
+function BL(e, t) {
+ return e ? e === "all" ? "all" : new RL(e) : t;
}
//#endregion
//#region node_modules/react-stately/dist/private/selection/SelectionManager.mjs
-var HL = class e {
+var VL = 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;
}
@@ -37425,7 +37426,7 @@ var HL = class e {
let e = null;
for (let t of this.state.selectedKeys) {
let n = this.collection.getItem(t);
- (!e || n && hT(this.collection, n, e) < 0) && (e = n);
+ (!e || n && mT(this.collection, n, e) < 0) && (e = n);
}
return e?.key ?? null;
}
@@ -37433,7 +37434,7 @@ var HL = class e {
let e = null;
for (let t of this.state.selectedKeys) {
let n = this.collection.getItem(t);
- (!e || n && hT(this.collection, n, e) > 0) && (e = n);
+ (!e || n && mT(this.collection, n, e) > 0) && (e = n);
}
return e?.key ?? null;
}
@@ -37452,10 +37453,10 @@ var HL = class e {
let t = this.getKey(e);
if (t == null) return;
let n;
- if (this.state.selectedKeys === "all") n = new zL([t], t, t);
+ if (this.state.selectedKeys === "all") n = new RL([t], t, t);
else {
let e = this.state.selectedKeys, r = e.anchorKey ?? t;
- n = new zL(e, r, t);
+ n = new RL(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);
}
@@ -37463,7 +37464,7 @@ var HL = class e {
}
getKeyRange(e, t) {
let n = this.collection.getItem(e), r = this.collection.getItem(t);
- return n && r ? hT(this.collection, n, r) <= 0 ? this.getKeyRangeInternal(e, t) : this.getKeyRangeInternal(t, e) : [];
+ return n && r ? mT(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);
@@ -37489,19 +37490,19 @@ var HL = class e {
}
let t = this.getKey(e);
if (t == null) return;
- let n = new zL(this.state.selectedKeys === "all" ? this.getSelectAllKeys() : this.state.selectedKeys);
+ let n = new RL(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 zL([t], t, t) : new zL();
+ let n = this.canSelectItem(t) ? new RL([t], t, t) : new RL();
this.state.setSelectedKeys(n);
}
setSelectedKeys(e) {
if (this.selectionMode === "none") return;
- let t = new zL();
+ let t = new RL();
for (let n of e) {
let e = this.getKey(n);
if (e != null && (t.add(e), this.selectionMode === "single")) break;
@@ -37513,7 +37514,7 @@ var HL = 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(fT(dT(i, e))?.key ?? null);
+ i?.type === "item" && t.push(r), i?.hasChildNodes && (this.allowsCellSelection || i.type !== "item") && n(dT(uT(i, e))?.key ?? null);
}
r = e.getKeyAfter(r);
}
@@ -37524,7 +37525,7 @@ var HL = 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 zL());
+ !this.disallowEmptySelection && (this.state.selectedKeys === "all" || this.state.selectedKeys.size > 0) && this.state.setSelectedKeys(new RL());
}
toggleSelectAll() {
this.isSelectAll ? this.clearSelection() : this.selectAll();
@@ -37567,7 +37568,7 @@ var HL = class e {
}
}, rue = class {
build(e, t) {
- return this.context = t, UL(() => this.iterateCollection(e));
+ return this.context = t, HL(() => this.iterateCollection(e));
}
*iterateCollection(e) {
let { children: t, items: n } = e;
@@ -37652,7 +37653,7 @@ var HL = class e {
wrapper: iue(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 <${WL(t.type)}> in <${WL(r?.type ?? "unknown parent type")}>. Only <${WL(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 <${UL(t.type)}> in <${UL(r?.type ?? "unknown parent type")}>. Only <${UL(e.type)}> is supported.`);
s++, yield t;
}
c = o.next(u);
@@ -37674,7 +37675,7 @@ var HL = class e {
wrapper: e.wrapper,
shouldInvalidate: e.shouldInvalidate,
hasChildNodes: e.hasChildNodes || !1,
- childNodes: UL(function* () {
+ childNodes: HL(function* () {
if (!e.hasChildNodes || !e.childNodes) return;
let n = 0;
for (let r of e.childNodes()) {
@@ -37693,7 +37694,7 @@ var HL = class e {
this.cache = /* @__PURE__ */ new WeakMap();
}
};
-function UL(e) {
+function HL(e) {
let t = [], n = null;
return { *[Symbol.iterator]() {
for (let e of t) yield e;
@@ -37706,12 +37707,12 @@ function iue(e, t) {
if (e) return e;
if (t) return t;
}
-function WL(e) {
+function UL(e) {
return e[0].toUpperCase() + e.slice(1);
}
//#endregion
//#region node_modules/react-stately/dist/private/collections/useCollection.mjs
-function GL(e, t, n) {
+function WL(e, t, n) {
let r = (0, D.useMemo)(() => new rue(), []), { children: i, items: a, collection: o } = e;
return (0, D.useMemo)(() => o || t(r.build({
children: i,
@@ -37727,13 +37728,13 @@ function GL(e, t, n) {
}
//#endregion
//#region node_modules/react-stately/dist/private/list/useListState.mjs
-function KL(e) {
- let { filter: t, layoutDelegate: n } = e, r = BL(e), i = (0, D.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = GL(e, (0, D.useCallback)((e) => t ? new RL(t(e)) : new RL(e), [t]), (0, D.useMemo)(() => ({ suppressTextValueWarning: e.suppressTextValueWarning }), [e.suppressTextValueWarning])), o = (0, D.useMemo)(() => new HL(a, r, { layoutDelegate: n }), [
+function GL(e) {
+ let { filter: t, layoutDelegate: n } = e, r = zL(e), i = (0, D.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = WL(e, (0, D.useCallback)((e) => t ? new LL(t(e)) : new LL(e), [t]), (0, D.useMemo)(() => ({ suppressTextValueWarning: e.suppressTextValueWarning }), [e.suppressTextValueWarning])), o = (0, D.useMemo)(() => new VL(a, r, { layoutDelegate: n }), [
a,
r,
n
]);
- return qL(a, o), {
+ return KL(a, o), {
collection: a,
disabledKeys: i,
selectionManager: o
@@ -37741,13 +37742,13 @@ function KL(e) {
}
function aue(e, t) {
let n = (0, D.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);
- return qL(n, r), {
+ return KL(n, r), {
collection: n,
selectionManager: r,
disabledKeys: e.disabledKeys
};
}
-function qL(e, t) {
+function KL(e, t) {
let n = (0, D.useRef)(null);
(0, D.useEffect)(() => {
if (t.focusedKey != null && !e.getItem(t.focusedKey) && n.current) {
@@ -37775,15 +37776,15 @@ function qL(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useLoadMoreSentinel.mjs
-function JL(e, t) {
- let { collection: n, onLoadMore: r, scrollOffset: i = 1, direction: a = "end" } = e, o = (0, D.useRef)(null), s = cS((e) => {
+function qL(e, t) {
+ let { collection: n, onLoadMore: r, scrollOffset: i = 1, direction: a = "end" } = e, o = (0, D.useRef)(null), s = sS((e) => {
for (let t of e) t.isIntersecting && r && r();
});
- mb(() => {
+ pb(() => {
if (t.current) {
let e = 100 * i, n = a === "start" ? `${e}% 0px 0px 0px` : `0px ${e}% ${e}% ${e}%`;
o.current = new IntersectionObserver(s, {
- root: yC(t?.current),
+ root: vC(t?.current),
rootMargin: n
}), o.current.observe(t.current);
}
@@ -37799,14 +37800,14 @@ function JL(e, t) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/ListBox.mjs
-var YL = /*#__PURE__*/ (0, D.createContext)(null), XL = /*#__PURE__*/ (0, D.createContext)(null), oue = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
- [e, t] = eI(e, t, YL);
- let n = (0, D.useContext)(XL);
- return n ? /*#__PURE__*/ D.createElement(ZL, {
+var JL = /*#__PURE__*/ (0, D.createContext)(null), YL = /*#__PURE__*/ (0, D.createContext)(null), oue = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
+ [e, t] = $F(e, t, JL);
+ let n = (0, D.useContext)(YL);
+ return n ? /*#__PURE__*/ D.createElement(XL, {
state: n,
props: e,
listBoxRef: t
- }) : /*#__PURE__*/ D.createElement(Vx, { content: /*#__PURE__*/ D.createElement(Jx, e) }, (n) => /*#__PURE__*/ D.createElement(sue, {
+ }) : /*#__PURE__*/ D.createElement(Bx, { content: /*#__PURE__*/ D.createElement(qx, e) }, (n) => /*#__PURE__*/ D.createElement(sue, {
props: e,
listBoxRef: t,
collection: n
@@ -37819,22 +37820,22 @@ function sue({ props: e, listBoxRef: t, collection: n }) {
children: null,
items: null
};
- let { layoutDelegate: r } = (0, D.useContext)(fI), i = KL({
+ let { layoutDelegate: r } = (0, D.useContext)(dI), i = GL({
...e,
layoutDelegate: r
});
- return /*#__PURE__*/ D.createElement(ZL, {
+ return /*#__PURE__*/ D.createElement(XL, {
state: i,
props: e,
listBoxRef: t
});
}
-function ZL({ state: e, props: t, listBoxRef: n }) {
- [t, n] = eI(t, n, oI);
- let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = aue(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = gS(), { disabledBehavior: p, disabledKeys: m } = l, h = bT({
+function XL({ state: e, props: t, listBoxRef: n }) {
+ [t, n] = $F(t, n, aI);
+ let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = aue(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = hS(), { disabledBehavior: p, disabledKeys: m } = l, h = yT({
usage: "search",
sensitivity: "base"
- }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, D.useContext)(fI), b = (0, D.useMemo)(() => t.keyboardDelegate || new Sw({
+ }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, D.useContext)(dI), b = (0, D.useMemo)(() => t.keyboardDelegate || new xw({
collection: c,
collator: h,
ref: n,
@@ -37887,7 +37888,7 @@ function ZL({ state: e, props: t, listBoxRef: n }) {
dropTargetDelegate: e
}, C, n), T = C.isDropTarget({ type: "root" });
}
- let { focusProps: k, isFocused: A, isFocusVisible: j } = DT(), M = s.collection.size === 0, N = {
+ let { focusProps: k, isFocused: A, isFocusVisible: j } = ET(), M = s.collection.size === 0, N = {
isDropTarget: T,
isEmpty: M,
isFocused: A,
@@ -37895,7 +37896,7 @@ function ZL({ state: e, props: t, listBoxRef: n }) {
layout: t.layout || "stack",
orientation: a,
state: s
- }, P = QF({
+ }, P = ZF({
...t,
children: void 0,
defaultClassName: "react-aria-ListBox",
@@ -37905,9 +37906,9 @@ function ZL({ state: e, props: t, listBoxRef: n }) {
role: "option",
style: { display: "contents" }
}, t.renderEmptyState(N)));
- let F = wS(t, { global: !0 });
- return /*#__PURE__*/ D.createElement(JS, null, /*#__PURE__*/ D.createElement(aI.div, {
- ...K(F, P, x, k, w?.collectionProps),
+ let F = CS(t, { global: !0 });
+ return /*#__PURE__*/ D.createElement(qS, null, /*#__PURE__*/ D.createElement(iI.div, {
+ ...q(F, P, x, k, w?.collectionProps),
ref: n,
slot: t.slot || void 0,
onScroll: t.onScroll,
@@ -37917,60 +37918,60 @@ function ZL({ state: e, props: t, listBoxRef: n }) {
"data-focus-visible": j || void 0,
"data-layout": t.layout || "stack",
"data-orientation": a
- }, /*#__PURE__*/ D.createElement(ZF, { values: [
- [YL, t],
- [XL, s],
- [kL, {
+ }, /*#__PURE__*/ D.createElement(XF, { values: [
+ [JL, t],
+ [YL, s],
+ [OL, {
dragAndDropHooks: r,
dragState: S,
dropState: C
}],
- [IL, { elementType: "div" }],
- [AL, { render: uue }],
- [cI, {
+ [FL, { elementType: "div" }],
+ [kL, { render: uue }],
+ [sI, {
name: "ListBoxSection",
render: cue
}]
- ] }, /*#__PURE__*/ D.createElement(PL, null, /*#__PURE__*/ D.createElement(y, {
+ ] }, /*#__PURE__*/ D.createElement(NL, null, /*#__PURE__*/ D.createElement(y, {
collection: c,
scrollRef: n,
- persistedKeys: ML(l, r, C),
- renderDropIndicator: jL(r, C)
+ persistedKeys: jL(l, r, C),
+ renderDropIndicator: AL(r, C)
}))), ee, E));
}
function cue(e, t, n, r = "react-aria-ListBoxSection") {
- let i = (0, D.useContext)(XL), { dragAndDropHooks: a, dropState: o } = (0, D.useContext)(kL), { CollectionBranch: s } = (0, D.useContext)(fI), [c, l] = tI(), { headingProps: u, groupProps: d } = $ie({
+ let i = (0, D.useContext)(YL), { dragAndDropHooks: a, dropState: o } = (0, D.useContext)(OL), { CollectionBranch: s } = (0, D.useContext)(dI), [c, l] = eI(), { headingProps: u, groupProps: d } = $ie({
heading: l,
"aria-label": e["aria-label"] ?? void 0
- }), f = QF({
+ }), f = ZF({
...e,
id: void 0,
children: void 0,
defaultClassName: r,
values: void 0
- }), p = wS(e, { global: !0 });
- return delete p.id, /*#__PURE__*/ D.createElement(aI.section, {
- ...K(p, f, d),
+ }), p = CS(e, { global: !0 });
+ return delete p.id, /*#__PURE__*/ D.createElement(iI.section, {
+ ...q(p, f, d),
ref: t
- }, /*#__PURE__*/ D.createElement(NL.Provider, { value: {
+ }, /*#__PURE__*/ D.createElement(ML.Provider, { value: {
...u,
ref: c
} }, /*#__PURE__*/ D.createElement(s, {
collection: i.collection,
parent: n,
- renderDropIndicator: jL(a, o)
+ renderDropIndicator: AL(a, o)
})));
}
-var lue = /*#__PURE__*/ Wx(By, function(e, t, n) {
- let r = jx(t), i = (0, D.useContext)(XL), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, D.useContext)(kL), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = eae({
+var lue = /*#__PURE__*/ Ux(zy, function(e, t, n) {
+ let r = Ax(t), i = (0, D.useContext)(YL), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, D.useContext)(OL), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = eae({
key: n.key,
"aria-label": e?.["aria-label"]
- }, i, r), { hoverProps: p, isHovered: m } = jT({
+ }, i, r), { hoverProps: p, isHovered: m } = AT({
isDisabled: !f.allowsSelection && !f.hasAction && !c,
onHoverStart: n.props.onHoverStart,
onHoverChange: n.props.onHoverChange,
onHoverEnd: n.props.onHoverEnd
- }), { keyboardProps: h } = Ax(e), { focusProps: g } = Ex(e), _ = null;
+ }), { keyboardProps: h } = kx(e), { focusProps: g } = Tx(e), _ = null;
o && a && (_ = a.useDraggableItem({
key: n.key,
hasAction: f.hasAction
@@ -37981,7 +37982,7 @@ var lue = /*#__PURE__*/ Wx(By, function(e, t, n) {
key: n.key,
dropPosition: "on"
} }, s, r));
- let y = o && o.isDragging(n.key), b = QF({
+ let y = o && o.isDragging(n.key), b = ZF({
...e,
id: void 0,
children: e.children,
@@ -37999,9 +38000,9 @@ var lue = /*#__PURE__*/ Wx(By, function(e, t, n) {
(0, D.useEffect)(() => {
n.textValue;
}, [n.textValue]);
- let x = e.href ? aI.a : aI.div, S = wS(e, { global: !0 });
+ let x = e.href ? iI.a : iI.div, S = CS(e, { global: !0 });
return delete S.id, delete S.onClick, e.href && l.tabIndex == null && (l.tabIndex = -1), /*#__PURE__*/ D.createElement(x, {
- ...K(S, b, l, p, h, g, _?.dragProps, v?.dropProps),
+ ...q(S, b, l, p, h, g, _?.dragProps, v?.dropProps),
ref: r,
"data-allows-dragging": !!o || void 0,
"data-selected": f.isSelected || void 0,
@@ -38013,15 +38014,15 @@ var lue = /*#__PURE__*/ Wx(By, 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__*/ D.createElement(ZF, { values: [[CI, { slots: {
- [XF]: u,
+ }, /*#__PURE__*/ D.createElement(XF, { values: [[SI, { slots: {
+ [YF]: u,
label: u,
description: d
- } }], [FL, { isSelected: f.isSelected }]] }, b.children));
+ } }], [PL, { isSelected: f.isSelected }]] }, b.children));
});
function uue(e, t) {
- t = jx(t);
- let { dragAndDropHooks: n, dropState: r } = (0, D.useContext)(kL), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);
+ t = Ax(t);
+ let { dragAndDropHooks: n, dropState: r } = (0, D.useContext)(OL), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);
return a ? null : /*#__PURE__*/ D.createElement(fue, {
...e,
dropIndicatorProps: i,
@@ -38030,12 +38031,12 @@ function uue(e, t) {
});
}
function due(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, ...i } = e, a = QF({
+ let { dropIndicatorProps: n, isDropTarget: r, ...i } = e, a = ZF({
...i,
defaultClassName: "react-aria-DropIndicator",
values: { isDropTarget: r }
});
- return /*#__PURE__*/ D.createElement(D.Fragment, null, /*#__PURE__*/ D.createElement(aI.div, {
+ return /*#__PURE__*/ D.createElement(D.Fragment, null, /*#__PURE__*/ D.createElement(iI.div, {
...n,
...a,
role: "option",
@@ -38044,9 +38045,9 @@ function due(e, t) {
}));
}
var fue = /*#__PURE__*/ (0, D.forwardRef)(due);
-Wx(zy, function(e, t, n) {
- let r = (0, D.useContext)(XL), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, D.useRef)(null);
- JL((0, D.useMemo)(() => ({
+Ux(Ry, function(e, t, n) {
+ let r = (0, D.useContext)(YL), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, D.useRef)(null);
+ qL((0, D.useMemo)(() => ({
onLoadMore: a,
collection: r?.collection,
sentinelRef: c,
@@ -38056,7 +38057,7 @@ Wx(zy, function(e, t, n) {
o,
r?.collection
]), c);
- let l = QF({
+ let l = ZF({
...s,
id: void 0,
children: n.rendered,
@@ -38069,7 +38070,7 @@ Wx(zy, function(e, t, n) {
width: 0,
height: 0
},
- inert: LL(!0)
+ inert: IL(!0)
}, /*#__PURE__*/ D.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: c,
@@ -38078,8 +38079,8 @@ Wx(zy, function(e, t, n) {
height: 1,
width: 1
}
- })), i && l.children && /*#__PURE__*/ D.createElement(D.Fragment, null, /*#__PURE__*/ D.createElement(aI.div, {
- ...K(wS(e, { global: !0 }), { tabIndex: -1 }),
+ })), i && l.children && /*#__PURE__*/ D.createElement(D.Fragment, null, /*#__PURE__*/ D.createElement(iI.div, {
+ ...q(CS(e, { global: !0 }), { tabIndex: -1 }),
...l,
role: "option",
ref: t
@@ -38090,8 +38091,8 @@ Wx(zy, function(e, t, n) {
var pue = /*#__PURE__*/ (0, D.createContext)({ placement: "bottom" });
//#endregion
//#region node_modules/react-stately/dist/private/overlays/useOverlayTriggerState.mjs
-function QL(e) {
- let [t, n] = QC(e.isOpen, e.defaultOpen || !1, e.onOpenChange), [r, i] = (0, D.useState)(null);
+function ZL(e) {
+ let [t, n] = ZC(e.isOpen, e.defaultOpen || !1, e.onOpenChange), [r, i] = (0, D.useState)(null);
return {
isOpen: t,
setOpen: n,
@@ -38110,15 +38111,15 @@ function QL(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/animation.mjs
-function $L(e, t = !0, n) {
+function QL(e, t = !0, n) {
let [r, i] = (0, D.useState)(!0), a = r && t;
- return mb(() => {
- if (!t && e.current) return gx(Qy(e.current, "opacity", "0"), Qy(e.current, "clip", "rect(0 0 0 0)"), Qy(e.current, "clip-path", "inset(50%)"), Qy(e.current, "mask-image", "linear-gradient(#0000, #0000)"));
- }, [e, t]), mb(() => {
+ return pb(() => {
+ if (!t && e.current) return hx(Zy(e.current, "opacity", "0"), Zy(e.current, "clip", "rect(0 0 0 0)"), Zy(e.current, "clip-path", "inset(50%)"), Zy(e.current, "mask-image", "linear-gradient(#0000, #0000)"));
+ }, [e, t]), pb(() => {
if (a && e.current && "getAnimations" in e.current) for (let t of e.current.getAnimations()) t instanceof CSSTransition && t.cancel();
- }, [e, a]), tR(e, a, n, (0, D.useCallback)(() => i(!1), [])), a;
+ }, [e, a]), eR(e, a, n, (0, D.useCallback)(() => i(!1), [])), a;
}
-function eR(e, t, n) {
+function $L(e, t, n) {
let [r, i] = (0, D.useState)(t ? "open" : "closed");
switch (r) {
case "open":
@@ -38128,13 +38129,13 @@ function eR(e, t, n) {
case "exiting": t && i("open");
}
let a = r === "exiting";
- return tR(e, a, n, (0, D.useCallback)(() => {
+ return eR(e, a, n, (0, D.useCallback)(() => {
i((e) => e === "exiting" ? "closed" : e);
}, [])), a;
}
-function tR(e, t, n, r) {
- let i = (0, D.useRef)(null), a = cS(n);
- mb(() => {
+function eR(e, t, n, r) {
+ let i = (0, D.useRef)(null), a = sS(n);
+ pb(() => {
if (t && e.current && i.current !== t) {
if (i.current = t, !("getAnimations" in e.current)) {
r();
@@ -38160,9 +38161,9 @@ function tR(e, t, n, r) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Popover.mjs
-var nR = /*#__PURE__*/ (0, D.createContext)(null), rR = /*#__PURE__*/ (0, D.createContext)(null), iR = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
- [e, t] = eI(e, t, nR);
- let n = (0, D.useContext)(gR), r = QL(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = eR(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = Lx(), { direction: c } = gS();
+var tR = /*#__PURE__*/ (0, D.createContext)(null), nR = /*#__PURE__*/ (0, D.createContext)(null), rR = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
+ [e, t] = $F(e, t, tR);
+ let n = (0, D.useContext)(hR), r = ZL(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = $L(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = Ix(), { direction: c } = hS();
if (s) {
let t = e.children;
return typeof t == "function" && (t = t({
@@ -38183,12 +38184,12 @@ var nR = /*#__PURE__*/ (0, D.createContext)(null), rR = /*#__PURE__*/ (0, D.crea
});
});
function mue({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts: r, ...i }) {
- let a = (0, D.useRef)(null), o = (0, D.useRef)(null), s = (0, D.useContext)(rR), c = s && i.trigger === "SubmenuTrigger", [l, u] = (0, D.useState)(!1), { popoverProps: d, underlayProps: f, arrowProps: p, placement: m, triggerAnchorPoint: h } = Eae({
+ let a = (0, D.useRef)(null), o = (0, D.useRef)(null), s = (0, D.useContext)(nR), c = s && i.trigger === "SubmenuTrigger", [l, u] = (0, D.useState)(!1), { popoverProps: d, underlayProps: f, arrowProps: p, placement: m, triggerAnchorPoint: h } = Eae({
...i,
offset: i.offset ?? 8,
arrowRef: a,
groupRef: c ? s : o
- }, e), g = i.popoverRef, _ = $L(g, !!m && l), v = i.isEntering || !i.shouldSkipAnimation && _ || !1, y = QF({
+ }, e), g = i.popoverRef, _ = QL(g, !!m && l), v = i.isEntering || !i.shouldSkipAnimation && _ || !1, y = ZF({
...i,
defaultClassName: "react-aria-Popover",
values: {
@@ -38198,10 +38199,10 @@ function mue({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
isExiting: t
}
}), b = !i.isNonModal || i.trigger === "SubmenuTrigger" || i.trigger === "PreviewTrigger", [x, S] = (0, D.useState)(i.trigger === "PreviewTrigger");
- mb(() => {
+ pb(() => {
g.current && S(b && !g.current.querySelector("[role=dialog]"));
}, [g, b]), (0, D.useEffect)(() => {
- x && i.trigger !== "PreviewTrigger" && (i.trigger !== "SubmenuTrigger" || ix() !== "pointer") && g.current && !rb(g.current) && hx(g.current);
+ x && i.trigger !== "PreviewTrigger" && (i.trigger !== "SubmenuTrigger" || rx() !== "pointer") && g.current && !nb(g.current) && mx(g.current);
}, [
x,
g,
@@ -38209,12 +38210,12 @@ function mue({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
]);
let C = (0, D.useMemo)(() => {
let e = y.children;
- for (let t of [nR, ...r ?? []]) e = /*#__PURE__*/ D.createElement(t.Provider, { value: null }, e);
+ for (let t of [tR, ...r ?? []]) e = /*#__PURE__*/ D.createElement(t.Provider, { value: null }, e);
return e;
}, [y.children, r]), [w, T] = (0, D.useState)(null), E = (0, D.useCallback)(() => {
i.triggerRef.current && T(i.triggerRef.current.getBoundingClientRect().width + "px");
}, [i.triggerRef]);
- mb(E, [E]), kE({
+ pb(E, [E]), OE({
ref: y.style?.["--trigger-width"] ? void 0 : i.triggerRef,
onResize: E
});
@@ -38224,9 +38225,9 @@ function mue({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
...y.style,
"--trigger-width": y.style?.["--trigger-width"] || w
};
- mb(() => vD(() => u(!0)), []);
- let k = /*#__PURE__*/ D.createElement(aI.div, {
- ...K(wS(i, { global: !0 }), d),
+ pb(() => _D(() => u(!0)), []);
+ let k = /*#__PURE__*/ D.createElement(iI.div, {
+ ...q(CS(i, { global: !0 }), d),
...y,
id: x ? i.id : void 0,
role: x ? "dialog" : void 0,
@@ -38241,17 +38242,17 @@ function mue({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
"data-placement": m,
"data-entering": v || void 0,
"data-exiting": t || void 0
- }, !i.isNonModal && /*#__PURE__*/ D.createElement(dD, { onDismiss: e.close }), /*#__PURE__*/ D.createElement(pue.Provider, { value: {
+ }, !i.isNonModal && /*#__PURE__*/ D.createElement(uD, { onDismiss: e.close }), /*#__PURE__*/ D.createElement(pue.Provider, { value: {
...p,
placement: m,
ref: a
- } }, C), /*#__PURE__*/ D.createElement(dD, { onDismiss: e.close }));
- return c ? /*#__PURE__*/ D.createElement(TT, {
+ } }, C), /*#__PURE__*/ D.createElement(uD, { onDismiss: e.close }));
+ return c ? /*#__PURE__*/ D.createElement(wT, {
...i,
shouldContainFocus: x && i.trigger !== "PreviewTrigger",
isExiting: t,
portalContainer: n ?? s?.current ?? void 0
- }, k) : /*#__PURE__*/ D.createElement(TT, {
+ }, k) : /*#__PURE__*/ D.createElement(wT, {
...i,
shouldContainFocus: x && i.trigger !== "PreviewTrigger",
isExiting: t,
@@ -38266,15 +38267,15 @@ function mue({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
}), /*#__PURE__*/ D.createElement("div", {
ref: o,
style: { display: "contents" }
- }, /*#__PURE__*/ D.createElement(rR.Provider, { value: o }, k)));
+ }, /*#__PURE__*/ D.createElement(nR.Provider, { value: o }, k)));
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Keyboard.mjs
var hue = /*#__PURE__*/ (0, D.createContext)({});
//#endregion
//#region node_modules/react-stately/dist/private/menu/useMenuTriggerState.mjs
-function aR(e) {
- let t = QL(e), [n, r] = (0, D.useState)(null), [i, a] = (0, D.useState)([]), o = () => {
+function iR(e) {
+ let t = ZL(e), [n, r] = (0, D.useState)(null), [i, a] = (0, D.useState)([]), o = () => {
a([]), t.close();
}, s = (e, t) => {
a((n) => t > n.length ? n : [...n.slice(0, t), e]);
@@ -38344,8 +38345,8 @@ var gue = class {
};
//#endregion
//#region node_modules/react-stately/dist/private/tree/useTreeState.mjs
-function oR(e) {
- let { onExpandedChange: t } = e, [n, r] = QC(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), t), i = BL(e), a = (0, D.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), o = GL(e, (0, D.useCallback)((e) => new gue(e, { expandedKeys: n }), [n]), null);
+function aR(e) {
+ let { onExpandedChange: t } = e, [n, r] = ZC(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), t), i = zL(e), a = (0, D.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), o = WL(e, (0, D.useCallback)((e) => new gue(e, { expandedKeys: n }), [n]), null);
return (0, D.useEffect)(() => {
i.focusedKey != null && !o.getItem(i.focusedKey) && i.setFocusedKey(null);
}, [o, i.focusedKey]), {
@@ -38356,7 +38357,7 @@ function oR(e) {
r(_ue(n, e));
},
setExpandedKeys: r,
- selectionManager: new HL(o, i)
+ selectionManager: new VL(o, i)
};
}
function _ue(e, t) {
@@ -38365,20 +38366,20 @@ function _ue(e, t) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Menu.mjs
-var sR = /*#__PURE__*/ (0, D.createContext)(null), cR = /*#__PURE__*/ (0, D.createContext)(null), lR = /*#__PURE__*/ (0, D.createContext)(null), uR = /*#__PURE__*/ (0, D.createContext)(null);
+var oR = /*#__PURE__*/ (0, D.createContext)(null), sR = /*#__PURE__*/ (0, D.createContext)(null), cR = /*#__PURE__*/ (0, D.createContext)(null), lR = /*#__PURE__*/ (0, D.createContext)(null);
function vue(e) {
- let t = aR(e), n = (0, D.useRef)(null), { menuTriggerProps: r, menuProps: i } = oT({
+ let t = iR(e), n = (0, D.useRef)(null), { menuTriggerProps: r, menuProps: i } = aT({
...e,
type: "menu"
}, t, n), a = (0, D.useRef)(null);
- return Lx() ? null : /*#__PURE__*/ D.createElement(ZF, { values: [
- [sR, {
+ return Ix() ? null : /*#__PURE__*/ D.createElement(XF, { values: [
+ [oR, {
...i,
ref: a
}],
- [gR, t],
- [lR, t],
- [nR, {
+ [hR, t],
+ [cR, t],
+ [tR, {
trigger: "MenuTrigger",
triggerRef: n,
scrollRef: a,
@@ -38393,7 +38394,7 @@ function vue(e) {
}, e.children));
}
var yue = /*#__PURE__*/ (0, D.createContext)(null);
-(class extends Ly {
+(class extends Iy {
static {
this.type = "submenutrigger";
}
@@ -38407,23 +38408,23 @@ var yue = /*#__PURE__*/ (0, D.createContext)(null);
}
});
var bue = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
- return [e, t] = eI(e, t, sR), /*#__PURE__*/ D.createElement(Vx, { content: /*#__PURE__*/ D.createElement(Jx, e) }, (n) => /*#__PURE__*/ D.createElement(xue, {
+ return [e, t] = $F(e, t, oR), /*#__PURE__*/ D.createElement(Bx, { content: /*#__PURE__*/ D.createElement(qx, e) }, (n) => /*#__PURE__*/ D.createElement(xue, {
props: e,
collection: n,
menuRef: t
}));
});
function xue({ props: e, collection: t, menuRef: n }) {
- [e, n] = eI(e, n, oI);
- let { filter: r, ...i } = e, a = (0, D.useMemo)(() => r ? t.filter(r) : t, [t, r]), o = oR({
+ [e, n] = $F(e, n, aI);
+ let { filter: r, ...i } = e, a = (0, D.useMemo)(() => r ? t.filter(r) : t, [t, r]), o = aR({
...e,
collection: a,
children: void 0
- }), s = (0, D.useContext)(lR), { isVirtualized: c, CollectionRoot: l } = (0, D.useContext)(fI), { menuProps: u } = tae({
+ }), s = (0, D.useContext)(cR), { isVirtualized: c, CollectionRoot: l } = (0, D.useContext)(dI), { menuProps: u } = tae({
...e,
isVirtualized: c,
onClose: e.onClose || s?.close
- }, o, n), d = QF({
+ }, o, n), d = ZF({
...e,
children: void 0,
defaultClassName: "react-aria-Menu",
@@ -38433,36 +38434,36 @@ function xue({ props: e, collection: t, menuRef: n }) {
role: "menuitem",
style: { display: "contents" }
}, e.renderEmptyState()));
- let p = wS(e, { global: !0 });
- return /*#__PURE__*/ D.createElement(JS, null, /*#__PURE__*/ D.createElement(aI.div, {
- ...K(p, d, u),
+ let p = CS(e, { global: !0 });
+ return /*#__PURE__*/ D.createElement(qS, null, /*#__PURE__*/ D.createElement(iI.div, {
+ ...q(p, d, u),
ref: n,
slot: e.slot || void 0,
"data-empty": o.collection.size === 0 || void 0,
onScroll: e.onScroll
- }, /*#__PURE__*/ D.createElement(ZF, { values: [
- [cR, o],
- [IL, { elementType: "div" }],
- [cI, {
+ }, /*#__PURE__*/ D.createElement(XF, { values: [
+ [sR, o],
+ [FL, { elementType: "div" }],
+ [sI, {
name: "MenuSection",
- render: dR
+ render: uR
}],
[yue, {
parentMenuRef: n,
shouldUseVirtualFocus: i?.shouldUseVirtualFocus
}],
- [pR, { shouldCloseOnSelect: e.shouldCloseOnSelect }],
+ [fR, { shouldCloseOnSelect: e.shouldCloseOnSelect }],
+ [aI, null],
[oI, null],
- [sI, null],
- [uR, o.selectionManager],
- [lR, s ?? aR({})]
- ] }, /*#__PURE__*/ D.createElement(PL, null, /*#__PURE__*/ D.createElement(l, {
+ [lR, o.selectionManager],
+ [cR, s ?? iR({})]
+ ] }, /*#__PURE__*/ D.createElement(NL, null, /*#__PURE__*/ D.createElement(l, {
collection: o.collection,
- persistedKeys: pI(o.selectionManager.focusedKey),
+ persistedKeys: fI(o.selectionManager.focusedKey),
scrollRef: n
}))), f));
}
-var Sue = class extends HL {
+var Sue = class extends VL {
constructor(e, t) {
super(e.collection, t), this.parent = e;
}
@@ -38482,11 +38483,11 @@ var Sue = class extends HL {
return this.parent.childFocusStrategy;
}
};
-function dR(e, t, n, r = "react-aria-MenuSection") {
- let i = (0, D.useContext)(cR), { CollectionBranch: a } = (0, D.useContext)(fI), [o, s] = tI(), { headingProps: c, groupProps: l } = rae({
+function uR(e, t, n, r = "react-aria-MenuSection") {
+ let i = (0, D.useContext)(sR), { CollectionBranch: a } = (0, D.useContext)(dI), [o, s] = eI(), { headingProps: c, groupProps: l } = rae({
heading: s,
"aria-label": n.props["aria-label"] ?? void 0
- }), u = QF({
+ }), u = ZF({
...e,
id: void 0,
children: void 0,
@@ -38494,31 +38495,31 @@ function dR(e, t, n, r = "react-aria-MenuSection") {
className: n.props?.className,
style: n.props?.style,
values: void 0
- }), d = (0, D.useContext)(uR), f = BL(e), p = e.selectionMode == null ? d : new Sue(d, f), m = $F(pR)?.shouldCloseOnSelect, h = wS(e, { global: !0 });
- return delete h.id, /*#__PURE__*/ D.createElement(aI.section, {
- ...K(h, u, l),
+ }), d = (0, D.useContext)(lR), f = zL(e), p = e.selectionMode == null ? d : new Sue(d, f), m = QF(fR)?.shouldCloseOnSelect, h = CS(e, { global: !0 });
+ return delete h.id, /*#__PURE__*/ D.createElement(iI.section, {
+ ...q(h, u, l),
ref: t
- }, /*#__PURE__*/ D.createElement(ZF, { values: [
- [NL, {
+ }, /*#__PURE__*/ D.createElement(XF, { values: [
+ [ML, {
...c,
ref: o
}],
- [uR, p],
- [pR, { shouldCloseOnSelect: e.shouldCloseOnSelect ?? m }]
+ [lR, p],
+ [fR, { shouldCloseOnSelect: e.shouldCloseOnSelect ?? m }]
] }, /*#__PURE__*/ D.createElement(a, {
collection: i.collection,
parent: n
})));
}
-var fR = /*#__PURE__*/ Gx(Une, dR), pR = /*#__PURE__*/ (0, D.createContext)(null), mR = /*#__PURE__*/ Wx(By, function(e, t, n) {
- [e, t] = eI(e, t, pR);
- let r = $F(pR)?.id, i = (0, D.useContext)(cR), a = jx(t), o = (0, D.useContext)(uR), { isVirtualized: s } = (0, D.useContext)(fI), { menuItemProps: c, labelProps: l, descriptionProps: u, keyboardShortcutProps: d, ...f } = nae({
+var dR = /*#__PURE__*/ Wx(Une, uR), fR = /*#__PURE__*/ (0, D.createContext)(null), pR = /*#__PURE__*/ Ux(zy, function(e, t, n) {
+ [e, t] = $F(e, t, fR);
+ let r = QF(fR)?.id, i = (0, D.useContext)(sR), a = Ax(t), o = (0, D.useContext)(lR), { isVirtualized: s } = (0, D.useContext)(dI), { menuItemProps: c, labelProps: l, descriptionProps: u, keyboardShortcutProps: d, ...f } = nae({
...e,
id: r,
key: n.key,
selectionManager: o,
isVirtualized: s
- }, i, a), { hoverProps: p, isHovered: m } = jT({ isDisabled: f.isDisabled }), h = QF({
+ }, i, a), { hoverProps: p, isHovered: m } = AT({ isDisabled: f.isDisabled }), h = ZF({
...e,
id: void 0,
children: n.rendered,
@@ -38532,9 +38533,9 @@ var fR = /*#__PURE__*/ Gx(Une, dR), pR = /*#__PURE__*/ (0, D.createContext)(null
hasSubmenu: !!e["aria-haspopup"],
isOpen: e["aria-expanded"] === "true"
}
- }), g = e.href ? aI.a : aI.div, _ = wS(e, { global: !0 });
+ }), g = e.href ? iI.a : iI.div, _ = CS(e, { global: !0 });
return delete _.id, delete _.onClick, /*#__PURE__*/ D.createElement(g, {
- ...K(_, h, c, p),
+ ...q(_, h, c, p),
ref: a,
"data-disabled": f.isDisabled || void 0,
"data-hovered": m || void 0,
@@ -38545,19 +38546,19 @@ var fR = /*#__PURE__*/ Gx(Une, dR), pR = /*#__PURE__*/ (0, D.createContext)(null
"data-selection-mode": o.selectionMode === "none" ? void 0 : o.selectionMode,
"data-has-submenu": !!e["aria-haspopup"] || void 0,
"data-open": e["aria-expanded"] === "true" || void 0
- }, /*#__PURE__*/ D.createElement(ZF, { values: [
- [CI, { slots: {
- [XF]: l,
+ }, /*#__PURE__*/ D.createElement(XF, { values: [
+ [SI, { slots: {
+ [YF]: l,
label: l,
description: u
} }],
[hue, d],
- [FL, { isSelected: f.isSelected }]
+ [PL, { isSelected: f.isSelected }]
] }, h.children));
});
-Wx(zy, function(e, t, n) {
- let r = (0, D.useContext)(cR), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, D.useRef)(null);
- JL((0, D.useMemo)(() => ({
+Ux(Ry, function(e, t, n) {
+ let r = (0, D.useContext)(sR), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, D.useRef)(null);
+ qL((0, D.useMemo)(() => ({
onLoadMore: a,
collection: r?.collection,
sentinelRef: c,
@@ -38567,7 +38568,7 @@ Wx(zy, function(e, t, n) {
o,
r?.collection
]), c);
- let l = QF({
+ let l = ZF({
...s,
id: void 0,
children: n.rendered,
@@ -38580,7 +38581,7 @@ Wx(zy, function(e, t, n) {
width: 0,
height: 0
},
- inert: LL(!0)
+ inert: IL(!0)
}, /*#__PURE__*/ D.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: c,
@@ -38589,8 +38590,8 @@ Wx(zy, function(e, t, n) {
height: 1,
width: 1
}
- })), i && l.children && /*#__PURE__*/ D.createElement(D.Fragment, null, /*#__PURE__*/ D.createElement(aI.div, {
- ...K(wS(e, { global: !0 }), { tabIndex: -1 }),
+ })), i && l.children && /*#__PURE__*/ D.createElement(D.Fragment, null, /*#__PURE__*/ D.createElement(iI.div, {
+ ...q(CS(e, { global: !0 }), { tabIndex: -1 }),
...l,
role: "menuitem",
ref: t
@@ -38598,82 +38599,82 @@ Wx(zy, function(e, t, n) {
});
//#endregion
//#region node_modules/react-aria-components/dist/private/Dialog.mjs
-var hR = /*#__PURE__*/ (0, D.createContext)(null), gR = /*#__PURE__*/ (0, D.createContext)(null), _R = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
+var mR = /*#__PURE__*/ (0, D.createContext)(null), hR = /*#__PURE__*/ (0, D.createContext)(null), gR = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
let n = e["aria-labelledby"];
- [e, t] = eI(e, t, hR);
+ [e, t] = $F(e, t, mR);
let { dialogProps: r, titleProps: i, contentProps: a } = zie({
...e,
"aria-labelledby": n
- }, t), o = (0, D.useContext)(gR);
+ }, t), o = (0, D.useContext)(hR);
!r["aria-label"] && !r["aria-labelledby"] && e["aria-labelledby"] && (r["aria-labelledby"] = e["aria-labelledby"]);
- let s = QF({
+ let s = ZF({
defaultClassName: "react-aria-Dialog",
className: e.className,
style: e.style,
children: e.children,
values: { close: o?.close || (() => {}) }
- }), c = wS(e, { global: !0 });
- return /*#__PURE__*/ D.createElement(aI.section, {
- ...K(c, s, r),
+ }), c = CS(e, { global: !0 });
+ return /*#__PURE__*/ D.createElement(iI.section, {
+ ...q(c, s, r),
render: e.render,
ref: t,
slot: e.slot || void 0
- }, /*#__PURE__*/ D.createElement(ZF, { values: [
- [xI, { slots: {
- [XF]: {},
+ }, /*#__PURE__*/ D.createElement(XF, { values: [
+ [bI, { slots: {
+ [YF]: {},
title: {
...i,
level: 2
}
} }],
- [CI, { slots: {
- [XF]: {},
+ [SI, { slots: {
+ [YF]: {},
description: a
} }],
- [_I, { slots: {
- [XF]: {},
+ [gI, { slots: {
+ [YF]: {},
close: { onPress: () => o?.close() }
} }]
] }, s.children));
-}), vR = typeof document < "u" && window.visualViewport;
+}), _R = typeof document < "u" && window.visualViewport;
function Cue() {
- let e = Hb(), t = (0, D.useRef)(null), [n, r] = (0, D.useState)(() => e ? {
+ let e = Vb(), t = (0, D.useRef)(null), [n, r] = (0, D.useState)(() => e ? {
width: 0,
height: 0
- } : yR());
+ } : vR());
return (0, D.useEffect)(() => {
let e = (e) => {
r((t) => e.width === t.width && e.height === t.height ? t : e);
}, n = () => {
- vR && vR.scale > 1 || e(yR());
+ _R && _R.scale > 1 || e(vR());
}, i = (n) => {
- vR && vR.scale > 1 || aS(G(n)) && (t.current = vD((t) => {
+ _R && _R.scale > 1 || iS(K(n)) && (t.current = _D((t) => {
t || e({
width: document.documentElement.clientWidth,
height: document.documentElement.clientHeight
});
}));
};
- return e(yR()), Eb() && Ob() && window.addEventListener("blur", i, !0), vR ? vR.addEventListener("resize", n) : window.addEventListener("resize", n), () => {
- t.current?.(), Eb() && Ob() && window.removeEventListener("blur", i, !0), vR ? vR.removeEventListener("resize", n) : window.removeEventListener("resize", n);
+ return e(vR()), Tb() && Db() && window.addEventListener("blur", i, !0), _R ? _R.addEventListener("resize", n) : window.addEventListener("resize", n), () => {
+ t.current?.(), Tb() && Db() && window.removeEventListener("blur", i, !0), _R ? _R.removeEventListener("resize", n) : window.removeEventListener("resize", n);
};
}, []), n;
}
-function yR() {
+function vR() {
return {
- width: vR ? Math.min(vR.width * vR.scale, document.documentElement.clientWidth) : document.documentElement.clientWidth,
- height: vR ? vR.height * vR.scale : document.documentElement.clientHeight
+ width: _R ? Math.min(_R.width * _R.scale, document.documentElement.clientWidth) : document.documentElement.clientWidth,
+ height: _R ? _R.height * _R.scale : document.documentElement.clientHeight
};
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Modal.mjs
-var wue = /*#__PURE__*/ (0, D.createContext)(null), bR = /*#__PURE__*/ (0, D.createContext)(null), Tue = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
- if ((0, D.useContext)(bR)) return /*#__PURE__*/ D.createElement(SR, {
+var wue = /*#__PURE__*/ (0, D.createContext)(null), yR = /*#__PURE__*/ (0, D.createContext)(null), Tue = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
+ if ((0, D.useContext)(yR)) return /*#__PURE__*/ D.createElement(xR, {
...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__*/ D.createElement(xR, {
+ return /*#__PURE__*/ D.createElement(bR, {
isDismissable: n,
isKeyboardDismissDisabled: r,
isOpen: i,
@@ -38683,14 +38684,14 @@ var wue = /*#__PURE__*/ (0, D.createContext)(null), bR = /*#__PURE__*/ (0, D.cre
isExiting: l,
UNSTABLE_portalContainer: u,
shouldCloseOnInteractOutside: d
- }, /*#__PURE__*/ D.createElement(SR, {
+ }, /*#__PURE__*/ D.createElement(xR, {
...f,
modalRef: t
}, s));
});
function Eue(e, t) {
- [e, t] = eI(e, t, wue);
- let n = (0, D.useContext)(gR), r = QL(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = jx(t), o = (0, D.useRef)(null), s = eR(a, i.isOpen, e.onExit), c = (0, D.useRef)(null), l = eR(o, i.isOpen, (e) => c.current?.(e)), u = s || l || e.isExiting || !1, d = Hb();
+ [e, t] = $F(e, t, wue);
+ let n = (0, D.useContext)(hR), r = ZL(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = Ax(t), o = (0, D.useRef)(null), s = $L(a, i.isOpen, e.onExit), c = (0, D.useRef)(null), l = $L(o, i.isOpen, (e) => c.current?.(e)), u = s || l || e.isExiting || !1, d = Vb();
return !i.isOpen && !u || d ? null : /*#__PURE__*/ D.createElement(Due, {
...e,
state: i,
@@ -38700,12 +38701,12 @@ function Eue(e, t) {
onExitRef: c
});
}
-var xR = /*#__PURE__*/ (0, D.forwardRef)(Eue);
+var bR = /*#__PURE__*/ (0, D.forwardRef)(Eue);
function Due({ UNSTABLE_portalContainer: e, UNSTABLE_deferUntilEntered: t, ...n }) {
- let r = n.modalRef, { state: i } = n, [a, o] = (0, D.useState)(!1), s = $L(n.overlayRef, a, n.onEnter) || n.isEntering || !1, c = !!t && (!a || s), { modalProps: l, underlayProps: u } = mae({
+ let r = n.modalRef, { state: i } = n, [a, o] = (0, D.useState)(!1), s = QL(n.overlayRef, a, n.onEnter) || n.isEntering || !1, c = !!t && (!a || s), { modalProps: l, underlayProps: u } = mae({
...n,
isEntering: c
- }, i, r), d = (0, D.useContext)(hR), f = t ? Oue(d, { isEntering: c }) : d, p = QF({
+ }, i, r), d = (0, D.useContext)(mR), f = t ? Oue(d, { isEntering: c }) : d, p = ZF({
...n,
defaultClassName: "react-aria-ModalOverlay",
values: {
@@ -38715,7 +38716,7 @@ function Due({ UNSTABLE_portalContainer: e, UNSTABLE_deferUntilEntered: t, ...n
}
}), m = Cue(), h, g;
if (typeof document < "u") {
- let e = vC(document.body) ? document.body : document.scrollingElement || document.documentElement, t = e.getBoundingClientRect().width % 1, n = e.getBoundingClientRect().height % 1;
+ let e = _C(document.body) ? document.body : document.scrollingElement || document.documentElement, t = e.getBoundingClientRect().width % 1, n = e.getBoundingClientRect().height % 1;
h = e.scrollWidth - t, g = e.scrollHeight - n;
}
let _ = {
@@ -38725,18 +38726,18 @@ function Due({ UNSTABLE_portalContainer: e, UNSTABLE_deferUntilEntered: t, ...n
"--page-width": h === void 0 ? void 0 : h + "px",
"--page-height": g === void 0 ? void 0 : g + "px"
};
- return mb(() => vD(() => o(!0)), []), /*#__PURE__*/ D.createElement(TT, {
+ return pb(() => _D(() => o(!0)), []), /*#__PURE__*/ D.createElement(wT, {
isExiting: n.isExiting,
portalContainer: e
- }, /*#__PURE__*/ D.createElement(aI.div, {
- ...K(wS(n, { global: !0 }), u),
+ }, /*#__PURE__*/ D.createElement(iI.div, {
+ ...q(CS(n, { global: !0 }), u),
...p,
style: _,
ref: n.overlayRef,
"data-entering": s || void 0,
"data-exiting": n.isExiting || void 0
- }, /*#__PURE__*/ D.createElement(ZF, { values: [
- [bR, {
+ }, /*#__PURE__*/ D.createElement(XF, { values: [
+ [yR, {
modalProps: l,
modalRef: r,
isExiting: n.isExiting,
@@ -38744,8 +38745,8 @@ function Due({ UNSTABLE_portalContainer: e, UNSTABLE_deferUntilEntered: t, ...n
isOpen: a,
isDismissable: n.isDismissable
}],
- [gR, i],
- [hR, f]
+ [hR, i],
+ [mR, f]
] }, p.children)));
}
function Oue(e, t) {
@@ -38765,8 +38766,8 @@ function Oue(e, t) {
...t
};
}
-function SR(e) {
- let { modalProps: t, modalRef: n, isExiting: r, onExitRef: i, isDismissable: a, isOpen: o } = (0, D.useContext)(bR), s = (0, D.useContext)(gR), c = jx((0, D.useMemo)(() => Sx(e.modalRef, n), [e.modalRef, n])), l = $L(c, o, e.onEnter), u = QF({
+function xR(e) {
+ let { modalProps: t, modalRef: n, isExiting: r, onExitRef: i, isDismissable: a, isOpen: o } = (0, D.useContext)(yR), s = (0, D.useContext)(hR), c = Ax((0, D.useMemo)(() => xx(e.modalRef, n), [e.modalRef, n])), l = QL(c, o, e.onEnter), u = ZF({
...e,
defaultClassName: "react-aria-Modal",
values: {
@@ -38775,21 +38776,21 @@ function SR(e) {
state: s
}
});
- return mb(() => {
+ return pb(() => {
i && (i.current = e.onExit);
- }), /*#__PURE__*/ D.createElement(aI.div, {
- ...K(wS(e, { global: !0 }), t),
+ }), /*#__PURE__*/ D.createElement(iI.div, {
+ ...q(CS(e, { global: !0 }), t),
...u,
ref: c,
"data-entering": l || void 0,
"data-exiting": r || void 0
- }, a && /*#__PURE__*/ D.createElement(dD, { onDismiss: s.close }), u.children);
+ }, a && /*#__PURE__*/ D.createElement(uD, { onDismiss: s.close }), u.children);
}
//#endregion
//#region node_modules/react-stately/dist/private/radio/useRadioGroupState.mjs
var kue = Math.round(Math.random() * 1e10), Aue = 0;
function jue(e) {
- let t = (0, D.useMemo)(() => e.name || `radio-group-${kue}-${++Aue}`, [e.name]), [n, r] = QC(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, D.useState)(n), [a, o] = (0, D.useState)(null), s = zC({
+ let t = (0, D.useMemo)(() => e.name || `radio-group-${kue}-${++Aue}`, [e.name]), [n, r] = ZC(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, D.useState)(n), [a, o] = (0, D.useState)(null), s = RC({
...e,
value: n
}), c = (t) => {
@@ -38812,16 +38813,16 @@ function jue(e) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/RadioGroup.mjs
-var Mue = /*#__PURE__*/ (0, D.createContext)(null), Nue = /*#__PURE__*/ (0, D.createContext)(null), CR = /*#__PURE__*/ (0, D.createContext)(null), wR = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
- [e, t] = eI(e, t, Mue);
- let { validationBehavior: n } = $F(EI) || {}, r = e.validationBehavior ?? n ?? "native", i = jue({
+var Mue = /*#__PURE__*/ (0, D.createContext)(null), Nue = /*#__PURE__*/ (0, D.createContext)(null), SR = /*#__PURE__*/ (0, D.createContext)(null), CR = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
+ [e, t] = $F(e, t, Mue);
+ let { validationBehavior: n } = QF(TI) || {}, r = e.validationBehavior ?? n ?? "native", i = jue({
...e,
validationBehavior: r
- }), [a, o] = tI(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = Oae({
+ }), [a, o] = eI(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = Oae({
...e,
label: o,
validationBehavior: r
- }, i), f = QF({
+ }, i), f = ZF({
...e,
values: {
orientation: e.orientation || "vertical",
@@ -38832,9 +38833,9 @@ var Mue = /*#__PURE__*/ (0, D.createContext)(null), Nue = /*#__PURE__*/ (0, D.cr
state: i
},
defaultClassName: "react-aria-RadioGroup"
- }), p = wS(e, { global: !0 });
- return /*#__PURE__*/ D.createElement(aI.div, {
- ...K(p, f, s),
+ }), p = CS(e, { global: !0 });
+ return /*#__PURE__*/ D.createElement(iI.div, {
+ ...q(p, f, s),
ref: t,
slot: e.slot || void 0,
"data-orientation": e.orientation || "vertical",
@@ -38842,27 +38843,27 @@ var Mue = /*#__PURE__*/ (0, D.createContext)(null), Nue = /*#__PURE__*/ (0, D.cr
"data-disabled": i.isDisabled || void 0,
"data-readonly": i.isReadOnly || void 0,
"data-required": i.isRequired || void 0
- }, /*#__PURE__*/ D.createElement(ZF, { values: [
- [CR, i],
- [mI, {
+ }, /*#__PURE__*/ D.createElement(XF, { values: [
+ [SR, i],
+ [pI, {
...c,
ref: a,
elementType: "span"
}],
- [CI, { slots: {
+ [SI, { slots: {
description: l,
errorMessage: u
} }],
- [TI, d]
- ] }, /*#__PURE__*/ D.createElement(PL, null, f.children)));
-}), TR = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
+ [wI, d]
+ ] }, /*#__PURE__*/ D.createElement(NL, null, f.children)));
+}), wR = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = eI(r, t, Nue);
- let i = D.useContext(CR), a = jx((0, D.useMemo)(() => Sx(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = Dae({
- ...nI(e),
+ [e, t] = $F(r, t, Nue);
+ let i = D.useContext(SR), a = Ax((0, D.useMemo)(() => xx(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = Dae({
+ ...tI(e),
children: typeof e.children == "function" || e.children
}, i, a);
- return /*#__PURE__*/ D.createElement(ER.Provider, { value: {
+ return /*#__PURE__*/ D.createElement(TR.Provider, { value: {
...o,
inputRef: a,
defaultClassName: "react-aria-Radio"
@@ -38870,11 +38871,11 @@ var Mue = /*#__PURE__*/ (0, D.createContext)(null), Nue = /*#__PURE__*/ (0, D.cr
...e,
ref: t
}));
-}), ER = /*#__PURE__*/ (0, D.createContext)(null), Pue = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
- let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, D.useContext)(ER), l = D.useContext(CR), { isFocused: u, isFocusVisible: d, focusProps: f } = DT(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = jT({
+}), TR = /*#__PURE__*/ (0, D.createContext)(null), Pue = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, D.useContext)(TR), l = D.useContext(SR), { isFocused: u, isFocusVisible: d, focusProps: f } = ET(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = AT({
...e,
isDisabled: p
- }), g = QF({
+ }), g = ZF({
...e,
defaultClassName: s,
values: {
@@ -38888,9 +38889,9 @@ var Mue = /*#__PURE__*/ (0, D.createContext)(null), Nue = /*#__PURE__*/ (0, D.cr
isInvalid: l.isInvalid,
isRequired: l.isRequired
}
- }), _ = wS(e, { global: !0 });
- return delete _.id, delete _.onClick, /*#__PURE__*/ D.createElement(aI.label, {
- ...K(_, n, m, g),
+ }), _ = CS(e, { global: !0 });
+ return delete _.id, delete _.onClick, /*#__PURE__*/ D.createElement(iI.label, {
+ ...q(_, n, m, g),
ref: t,
"data-selected": i || void 0,
"data-pressed": o || void 0,
@@ -38901,19 +38902,19 @@ var Mue = /*#__PURE__*/ (0, D.createContext)(null), Nue = /*#__PURE__*/ (0, D.cr
"data-readonly": l.isReadOnly || void 0,
"data-invalid": l.isInvalid || void 0,
"data-required": l.isRequired || void 0
- }, /*#__PURE__*/ D.createElement(lw, { elementType: "span" }, /*#__PURE__*/ D.createElement("input", {
- ...K(r, f),
+ }, /*#__PURE__*/ D.createElement(cw, { elementType: "span" }, /*#__PURE__*/ D.createElement("input", {
+ ...q(r, f),
ref: c
})), g.children);
});
//#endregion
//#region node_modules/react-stately/dist/private/select/useSelectState.mjs
function Fue(e) {
- let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = QL(e), [i, a] = (0, D.useState)(null), o = (0, D.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [
+ let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = ZL(e), [i, a] = (0, D.useState)(null), o = (0, D.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [
e.defaultValue,
e.defaultSelectedKey,
t
- ]), [s, c] = QC((0, D.useMemo)(() => e.value === void 0 ? t === "single" ? e.selectedKey : void 0 : e.value, [
+ ]), [s, c] = ZC((0, D.useMemo)(() => e.value === void 0 ? t === "single" ? e.selectedKey : void 0 : e.value, [
e.value,
e.selectedKey,
t
@@ -38925,7 +38926,7 @@ function Fue(e) {
let e = [];
Array.isArray(n) ? e = n : n != null && (e = [n]), c(e);
}
- }, d = KL({
+ }, d = GL({
...e,
selectionMode: t,
disallowEmptySelection: t === "single",
@@ -38940,7 +38941,7 @@ function Fue(e) {
n && r.close(), m.commitValidation();
}
}
- }), f = d.selectionManager.firstSelectedKey, p = (0, D.useMemo)(() => [...d.selectionManager.selectedKeys].map((e) => d.collection.getItem(e)).filter((e) => e != null), [d.selectionManager.selectedKeys, d.collection]), m = zC({
+ }), f = d.selectionManager.firstSelectedKey, p = (0, D.useMemo)(() => [...d.selectionManager.selectedKeys].map((e) => d.collection.getItem(e)).filter((e) => e != null), [d.selectionManager.selectedKeys, d.collection]), m = RC({
...e,
value: Array.isArray(l) && l.length === 0 ? null : l
}), [h, g] = (0, D.useState)(!1), [_] = (0, D.useState)(l);
@@ -38975,8 +38976,8 @@ function Iue(e) {
function Lue(e) {
return e && e.__esModule ? e.default : e;
}
-var DR = /*#__PURE__*/ (0, D.createContext)(null), OR = /*#__PURE__*/ (0, D.createContext)(null), Rue = /*#__PURE__*/ Ix(function(e, t) {
- [e, t] = eI(e, t, DR);
+var ER = /*#__PURE__*/ (0, D.createContext)(null), DR = /*#__PURE__*/ (0, D.createContext)(null), Rue = /*#__PURE__*/ Fx(function(e, t) {
+ [e, t] = $F(e, t, ER);
let { children: n, isDisabled: r = !1, isInvalid: i = !1, isRequired: a = !1 } = e, o = (0, D.useMemo)(() => typeof n == "function" ? n({
isOpen: !1,
isDisabled: r,
@@ -38991,24 +38992,24 @@ var DR = /*#__PURE__*/ (0, D.createContext)(null), OR = /*#__PURE__*/ (0, D.crea
i,
a
]);
- return /*#__PURE__*/ D.createElement(Vx, { content: o }, (n) => /*#__PURE__*/ D.createElement(Bue, {
+ return /*#__PURE__*/ D.createElement(Bx, { content: o }, (n) => /*#__PURE__*/ D.createElement(Bue, {
props: e,
collection: n,
selectRef: t
}));
}), zue = [
- mI,
- _I,
- CI
+ pI,
+ gI,
+ SI
];
function Bue({ props: e, selectRef: t, collection: n }) {
- let { validationBehavior: r } = $F(EI) || {}, i = e.validationBehavior ?? r ?? "native", a = Fue({
+ let { validationBehavior: r } = QF(TI) || {}, i = e.validationBehavior ?? r ?? "native", a = Fue({
...e,
collection: n,
children: void 0,
validationBehavior: i
- }), { isFocusVisible: o, focusProps: s } = DT({ within: !0 }), c = (0, D.useRef)(null), [l, u] = tI(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = kae({
- ...nI(e),
+ }), { isFocusVisible: o, focusProps: s } = ET({ within: !0 }), c = (0, D.useRef)(null), [l, u] = eI(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = kae({
+ ...tI(e),
label: u,
validationBehavior: i
}, a, c), y = (0, D.useMemo)(() => ({
@@ -39025,30 +39026,30 @@ function Bue({ props: e, selectRef: t, collection: n }) {
e.isDisabled,
v.isInvalid,
e.isRequired
- ]), b = QF({
+ ]), b = ZF({
...e,
values: y,
defaultClassName: "react-aria-Select"
- }), x = wS(e, { global: !0 });
+ }), x = CS(e, { global: !0 });
delete x.id;
let S = (0, D.useRef)(null);
- return /*#__PURE__*/ D.createElement(ZF, { values: [
- [DR, e],
- [OR, a],
- [kR, p],
- [mI, {
+ return /*#__PURE__*/ D.createElement(XF, { values: [
+ [ER, e],
+ [DR, a],
+ [OR, p],
+ [pI, {
...d,
ref: l,
elementType: "span"
}],
- [_I, {
+ [gI, {
...f,
ref: c,
isPressed: a.isOpen,
autoFocus: e.autoFocus
}],
- [gR, a],
- [nR, {
+ [hR, a],
+ [tR, {
trigger: "Select",
triggerRef: c,
scrollRef: S,
@@ -39056,18 +39057,18 @@ function Bue({ props: e, selectRef: t, collection: n }) {
"aria-labelledby": m["aria-labelledby"],
clearContexts: zue
}],
- [YL, {
+ [JL, {
...m,
ref: S
}],
- [XL, a],
- [CI, { slots: {
+ [YL, a],
+ [SI, { slots: {
description: h,
errorMessage: g
} }],
- [TI, v]
- ] }, /*#__PURE__*/ D.createElement(aI.div, {
- ...K(x, b, s),
+ [wI, v]
+ ] }, /*#__PURE__*/ D.createElement(iI.div, {
+ ...q(x, b, s),
ref: t,
slot: e.slot || void 0,
"data-focused": a.isFocused || void 0,
@@ -39081,9 +39082,9 @@ function Bue({ props: e, selectRef: t, collection: n }) {
autoComplete: e.autoComplete
})));
}
-for (var kR = /*#__PURE__*/ (0, D.createContext)(null), Vue = /*#__PURE__*/ Ix(function(e, t) {
- [e, t] = eI(e, t, kR);
- let n = (0, D.useContext)(OR), { placeholder: r } = $F(DR), i = n.selectedItems.map((e) => {
+for (var OR = /*#__PURE__*/ (0, D.createContext)(null), Vue = /*#__PURE__*/ Fx(function(e, t) {
+ [e, t] = $F(e, t, OR);
+ let n = (0, D.useContext)(DR), { placeholder: r } = QF(ER), i = n.selectedItems.map((e) => {
let t = e.props?.children;
return typeof t == "function" && (t = t({
isHovered: !1,
@@ -39110,7 +39111,7 @@ for (var kR = /*#__PURE__*/ (0, D.createContext)(null), Vue = /*#__PURE__*/ Ix(f
a,
o,
i
- ]), u = SS(Lue(OL), "react-aria-components"), d = QF({
+ ]), u = xS(Lue(DL), "react-aria-components"), d = ZF({
...e,
defaultChildren: l ?? r ?? u.format("selectPlaceholder"),
defaultClassName: "react-aria-SelectValue",
@@ -39121,21 +39122,21 @@ for (var kR = /*#__PURE__*/ (0, D.createContext)(null), Vue = /*#__PURE__*/ Ix(f
isPlaceholder: n.selectedItems.length === 0,
state: n
}
- }), f = wS(e, { global: !0 });
- return /*#__PURE__*/ D.createElement(aI.span, {
+ }), f = CS(e, { global: !0 });
+ return /*#__PURE__*/ D.createElement(iI.span, {
ref: t,
...f,
...d,
"data-placeholder": n.selectedItems.length === 0 || void 0
- }, /*#__PURE__*/ D.createElement(CI.Provider, { value: void 0 }, d.children));
-}), Hue = /*#__PURE__*/ (0, D.createContext)(null), AR = /*#__PURE__*/ (0, D.createContext)(null), Uue = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
+ }, /*#__PURE__*/ D.createElement(SI.Provider, { value: void 0 }, d.children));
+}), Hue = /*#__PURE__*/ (0, D.createContext)(null), kR = /*#__PURE__*/ (0, D.createContext)(null), Uue = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = eI(r, t, Hue);
- let i = jx((0, D.useMemo)(() => Sx(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = $C(e), o = Nae({
- ...nI(e),
+ [e, t] = $F(r, t, Hue);
+ let i = Ax((0, D.useMemo)(() => xx(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = QC(e), o = Nae({
+ ...tI(e),
children: typeof e.children == "function" || e.children
}, a, i);
- return /*#__PURE__*/ D.createElement(ZF, { values: [[AR, a], [jR, {
+ return /*#__PURE__*/ D.createElement(XF, { values: [[kR, a], [AR, {
...o,
inputRef: i,
defaultClassName: "react-aria-Switch"
@@ -39143,11 +39144,11 @@ for (var kR = /*#__PURE__*/ (0, D.createContext)(null), Vue = /*#__PURE__*/ Ix(f
...e,
ref: t
}));
-}), jR = /*#__PURE__*/ (0, D.createContext)(null), Wue = /*#__PURE__*/ (0, D.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, D.useContext)(jR), { isFocused: f, isFocusVisible: p, focusProps: m } = DT(), h = a || o, g = (0, D.useContext)(AR), { hoverProps: _, isHovered: v } = jT({
+}), AR = /*#__PURE__*/ (0, D.createContext)(null), Wue = /*#__PURE__*/ (0, D.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, D.useContext)(AR), { isFocused: f, isFocusVisible: p, focusProps: m } = ET(), h = a || o, g = (0, D.useContext)(kR), { hoverProps: _, isHovered: v } = AT({
...e,
isDisabled: h
- }), y = QF({
+ }), y = ZF({
...e,
defaultClassName: u,
values: {
@@ -39162,9 +39163,9 @@ for (var kR = /*#__PURE__*/ (0, D.createContext)(null), Vue = /*#__PURE__*/ Ix(f
isRequired: d || !1,
state: g
}
- }), b = wS(e, { global: !0 });
- return delete b.id, delete b.onClick, /*#__PURE__*/ D.createElement(aI.label, {
- ...K(b, n, _, y),
+ }), b = CS(e, { global: !0 });
+ return delete b.id, delete b.onClick, /*#__PURE__*/ D.createElement(iI.label, {
+ ...q(b, n, _, y),
ref: t,
slot: e.slot || void 0,
"data-selected": i || void 0,
@@ -39176,11 +39177,11 @@ for (var kR = /*#__PURE__*/ (0, D.createContext)(null), Vue = /*#__PURE__*/ Ix(f
"data-readonly": o || void 0,
"data-invalid": c || void 0,
"data-required": d || void 0
- }, /*#__PURE__*/ D.createElement(lw, { elementType: "span" }, /*#__PURE__*/ D.createElement("input", {
- ...K(r, m),
+ }, /*#__PURE__*/ D.createElement(cw, { elementType: "span" }, /*#__PURE__*/ D.createElement("input", {
+ ...q(r, m),
ref: l
})), y.children);
-}), MR = 10, NR = 5, PR = class {
+}), jR = 10, MR = 5, NR = class {
setup(e, t, n) {
this.delegate = e, this.state = t, this.direction = n;
}
@@ -39190,7 +39191,7 @@ for (var kR = /*#__PURE__*/ (0, D.createContext)(null), Vue = /*#__PURE__*/ Ix(f
}
resolveDropTarget(e, t, n, r) {
let i = this.pointerTracking, a = n - i.lastY, o = t - i.lastX, s = i.yDirection, c = i.xDirection;
- if (Math.abs(a) > NR && (s = a > 0 ? "down" : "up", i.yDirection = s, i.lastY = n), Math.abs(o) > MR && (c = o > 0 ? "right" : "left", i.xDirection = c, i.lastX = t), e.dropPosition === "before") {
+ if (Math.abs(a) > MR && (s = a > 0 ? "down" : "up", i.yDirection = s, i.lastY = n), Math.abs(o) > jR && (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);
@@ -39269,11 +39270,11 @@ for (var kR = /*#__PURE__*/ (0, D.createContext)(null), Vue = /*#__PURE__*/ Ix(f
lastSwitchX: n
});
let c = o.boundaryContext, l = Math.abs(n - c.lastSwitchX);
- if (Math.abs(r - c.lastSwitchY) > NR && i) {
+ if (Math.abs(r - c.lastSwitchY) > MR && 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 > MR && a) {
+ if (l > jR && 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;
}
@@ -39358,8 +39359,8 @@ for (var kR = /*#__PURE__*/ (0, D.createContext)(null), Vue = /*#__PURE__*/ Ix(f
getChildren(e) {
return this.keyMap.get(e)?.childNodes || [];
}
-}, FR = "row-header-column-" + Math.random().toString(36).slice(2), IR = "row-header-column-" + Math.random().toString(36).slice(2); FR === IR;) IR = "row-header-column-" + Math.random().toString(36).slice(2);
-function LR(e, t) {
+}, PR = "row-header-column-" + Math.random().toString(36).slice(2), FR = "row-header-column-" + Math.random().toString(36).slice(2); PR === FR;) FR = "row-header-column-" + Math.random().toString(36).slice(2);
+function IR(e, t) {
if (t.length === 0) return [];
let n = [], r = /* @__PURE__ */ new Map();
for (let i of t) {
@@ -39449,7 +39450,7 @@ var Kue = class extends Gue {
if (n?.showSelectionCheckboxes) {
let e = {
type: "column",
- key: FR,
+ key: PR,
value: null,
textValue: "",
level: 0,
@@ -39464,7 +39465,7 @@ var Kue = class extends Gue {
if (n?.showDragButtons) {
let e = {
type: "column",
- key: IR,
+ key: FR,
value: null,
textValue: "",
level: 0,
@@ -39491,7 +39492,7 @@ var Kue = class extends Gue {
for (let t of e.childNodes) c(t);
};
for (let t of e) c(t);
- let l = LR(s, a);
+ let l = IR(s, a);
if (l.forEach((e, t) => o.splice(t, 0, e)), super({
columnCount: a.length,
items: o,
@@ -39517,10 +39518,10 @@ var Kue = class extends Gue {
return this.keyMap.get(e)?.nextKey ?? null;
}
getFirstKey() {
- return fT(this.body.childNodes)?.key ?? null;
+ return dT(this.body.childNodes)?.key ?? null;
}
getLastKey() {
- return mT(this.body.childNodes)?.key ?? null;
+ return pT(this.body.childNodes)?.key ?? null;
}
getItem(e) {
return e === this.body.key ? this.body : this.keyMap.get(e) ?? null;
@@ -39560,7 +39561,7 @@ function Jue(e) {
let t = e.match(/^(.+)(?=fr$)/);
return t ? parseFloat(t[0]) : 1;
}
-function RR(e, t) {
+function LR(e, t) {
if (typeof e == "string") {
let n = e.match(/^(\d+)(?=%$)/);
if (!n) throw Error("Only percentages or numbers are supported for static column widths");
@@ -39568,19 +39569,19 @@ function RR(e, t) {
}
return e;
}
-function zR(e, t) {
- return e == null ? 2 ** 53 - 1 : RR(e, t);
+function RR(e, t) {
+ return e == null ? 2 ** 53 - 1 : LR(e, t);
}
-function BR(e, t) {
- return e == null ? 0 : RR(e, t);
+function zR(e, t) {
+ return e == null ? 0 : LR(e, t);
}
function Yue(e, t, n, r, i) {
let a = e, o = Math.floor(e), s = e - o > 0;
e = o;
let c = !1, l = t.map((t, a) => {
let o = n.get(t.key) == null ? t.width ?? t.defaultWidth ?? r?.(a) ?? "1fr" : n.get(t.key) ?? "1fr", s = !1, l = 0, u = 0, d = 0;
- que(o) ? (l = RR(o, e), s = !0) : (u = Jue(o), u <= 0 && (s = !0));
- let f = BR(t.minWidth ?? i?.(a) ?? 0, e), p = zR(t.maxWidth, e), m = Math.max(f, Math.min(l, p));
+ que(o) ? (l = LR(o, e), s = !0) : (u = Jue(o), u <= 0 && (s = !0));
+ let f = zR(t.minWidth ?? i?.(a) ?? 0, e), p = RR(t.maxWidth, e), m = Math.max(f, Math.min(l, p));
return s ? d = m : l > m && (s = !0, d = m), s || (c = !0), {
frozen: s,
baseSize: l,
@@ -39664,7 +39665,7 @@ var Zue = class {
key: e.key
})), n, (e) => this.getDefaultWidth(t.columns[e]), (e) => this.getDefaultMinWidth(t.columns[e])).forEach((n, r) => {
let i = t.columns[r].key, a = t.columns[r];
- this.columnWidths.set(i, n), this.columnMinWidths.set(i, BR(a.props.minWidth ?? this.getDefaultMinWidth(a), e)), this.columnMaxWidths.set(i, zR(a.props.maxWidth, e));
+ this.columnWidths.set(i, n), this.columnMinWidths.set(i, zR(a.props.minWidth ?? this.getDefaultMinWidth(a), e)), this.columnMaxWidths.set(i, RR(a.props.maxWidth, e));
}), this.columnWidths;
}
};
@@ -39724,18 +39725,18 @@ function Que(e, t) {
//#endregion
//#region node_modules/react-stately/dist/private/grid/useGridState.mjs
function $ue(e) {
- let { collection: t, focusMode: n } = e, r = e.UNSAFE_selectionState || BL(e), i = (0, D.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = r.setFocusedKey;
+ let { collection: t, focusMode: n } = e, r = e.UNSAFE_selectionState || zL(e), i = (0, D.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 = dT(n, t);
- e = r === "last" ? mT(i)?.key ?? null : fT(i)?.key ?? null;
+ let i = uT(n, t);
+ e = r === "last" ? pT(i)?.key ?? null : dT(i)?.key ?? null;
}
}
a(e, r);
};
- let o = (0, D.useMemo)(() => new HL(t, r), [t, r]), s = (0, D.useRef)(null);
+ let o = (0, D.useMemo)(() => new VL(t, r), [t, r]), s = (0, D.useRef)(null);
return (0, D.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;
@@ -39755,7 +39756,7 @@ function $ue(e) {
}
}
if (u) {
- let i = u.hasChildNodes ? [...dT(u, t)] : [], a = u.hasChildNodes && n !== e && e && e.index < i.length ? i[e.index].key : u.key;
+ let i = u.hasChildNodes ? [...uT(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);
}
@@ -39789,11 +39790,11 @@ function tde(e) {
i,
r,
a
- ]), c = GL(e, (0, D.useCallback)((e) => new Kue(e, null, s), [s]), s), { disabledKeys: l, selectionManager: u } = $ue({
+ ]), c = WL(e, (0, D.useCallback)((e) => new Kue(e, null, s), [s]), s), { disabledKeys: l, selectionManager: u } = $ue({
...e,
collection: c,
disabledBehavior: e.disabledBehavior || "selection"
- }), [d, f] = QC(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
+ }), [d, f] = ZC(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
return {
collection: c,
disabledKeys: l,
@@ -39831,7 +39832,7 @@ function nde(e, t) {
function rde(e) {
return e && e.__esModule ? e.default : e;
}
-var ide = class extends Vy {
+var ide = class extends By {
withExpandedKeys(e) {
let t = this.clone();
return t.expandedKeys = e, t.frozen = this.frozen, t.rows = Array.from(t.getRows()), t;
@@ -39846,7 +39847,7 @@ var ide = class extends Vy {
}
get body() {
for (let e of this) if (e.type === "tablebody") return e;
- return new YR(-2);
+ return new JR(-2);
}
commit(e, t, n = !1) {
this.updateColumns(n), this.firstKey = e, this.lastKey = t, this.rows = [];
@@ -39872,7 +39873,7 @@ var ide = class extends Vy {
for (let t of this.getChildren(e.key)) n(t);
};
for (let e of this.getChildren(this.head.key)) n(e);
- if (this.headerRows = LR(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 = IR(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;
@@ -39953,21 +39954,21 @@ var ide = class extends Vy {
return r.join(" ");
}
constructor(...e) {
- super(...e), this.headerRows = [], this.columns = [], this.rows = [], this.rowHeaderColumnKeys = /* @__PURE__ */ new Set(), this.head = new GR(-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 WR(-1), this.columnsDirty = !0, this.expandedKeys = /* @__PURE__ */ new Set();
}
-}, VR = /*#__PURE__*/ (0, D.createContext)(null), ade = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
- let n = jx(t), r = (0, D.useRef)(null), i = (0, D.useRef)(null), [a, o] = (0, D.useState)(0);
- mb(() => {
+}, BR = /*#__PURE__*/ (0, D.createContext)(null), ade = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
+ let n = Ax(t), r = (0, D.useRef)(null), i = (0, D.useRef)(null), [a, o] = (0, D.useState)(0);
+ pb(() => {
let e = r.current;
- for (; e && e !== n.current && !vC(e);) e = e.parentElement;
+ for (; e && e !== n.current && !_C(e);) e = e.parentElement;
i.current = e;
- }, [n]), kE({
+ }, [n]), OE({
ref: i,
box: "border-box",
onResize() {
o(i.current?.clientWidth ?? 0);
}
- }), mb(() => {
+ }), pb(() => {
o(i.current?.clientWidth ?? 0);
}, []);
let s = (0, D.useMemo)(() => ({
@@ -39985,17 +39986,17 @@ var ide = class extends Vy {
e.onResize,
e.onResizeEnd
]);
- return /*#__PURE__*/ D.createElement(aI.div, {
+ return /*#__PURE__*/ D.createElement(iI.div, {
render: e.render,
- ...wS(e, { global: !0 }),
+ ...CS(e, { global: !0 }),
ref: n,
className: e.className || "react-aria-ResizableTableContainer",
style: e.style,
onScroll: e.onScroll
- }, /*#__PURE__*/ D.createElement(VR.Provider, { value: s }, e.children));
-}), ode = /*#__PURE__*/ (0, D.createContext)(null), HR = /*#__PURE__*/ (0, D.createContext)(null), UR = /*#__PURE__*/ (0, D.createContext)(null), sde = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
- [e, t] = eI(e, t, ode);
- let n = BL(e), { selectionBehavior: r, selectionMode: i, disallowEmptySelection: a } = n, o = !!e.dragAndDropHooks?.useDraggableCollectionState, s = (0, D.useMemo)(() => ({
+ }, /*#__PURE__*/ D.createElement(BR.Provider, { value: s }, e.children));
+}), ode = /*#__PURE__*/ (0, D.createContext)(null), VR = /*#__PURE__*/ (0, D.createContext)(null), HR = /*#__PURE__*/ (0, D.createContext)(null), sde = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
+ [e, t] = $F(e, t, ode);
+ let n = zL(e), { selectionBehavior: r, selectionMode: i, disallowEmptySelection: a } = n, o = !!e.dragAndDropHooks?.useDraggableCollectionState, s = (0, D.useMemo)(() => ({
selectionBehavior: i === "none" ? null : r,
selectionMode: i,
disallowEmptySelection: a,
@@ -40005,8 +40006,8 @@ var ide = class extends Vy {
i,
a,
o
- ]), c = /*#__PURE__*/ D.createElement(ude.Provider, { value: s }, /*#__PURE__*/ D.createElement(Jx, e));
- return /*#__PURE__*/ D.createElement(Vx, {
+ ]), c = /*#__PURE__*/ D.createElement(ude.Provider, { value: s }, /*#__PURE__*/ D.createElement(qx, e));
+ return /*#__PURE__*/ D.createElement(Bx, {
content: c,
createCollection: () => new ide()
}, (r) => /*#__PURE__*/ D.createElement(lde, {
@@ -40016,15 +40017,15 @@ var ide = class extends Vy {
collection: r
}));
}), cde = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, D.useContext)(fI);
- return n ? /*#__PURE__*/ D.createElement(aI.div, {
+ let { isVirtualized: n } = (0, D.useContext)(dI);
+ return n ? /*#__PURE__*/ D.createElement(iI.div, {
...e,
ref: t
- }) : /*#__PURE__*/ D.createElement(aI.table, {
+ }) : /*#__PURE__*/ D.createElement(iI.table, {
...e,
ref: t
});
-}), WR = {
+}), UR = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -40035,10 +40036,10 @@ var ide = class extends Vy {
}
};
function lde({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
- [e, t] = eI(e, t, oI);
- let { shouldUseVirtualFocus: i, disallowTypeAhead: a, filter: o, ...s } = e, c = (0, D.useContext)(VR);
- t = jx((0, D.useMemo)(() => Sx(t, c?.tableRef), [t, c?.tableRef]));
- let [l, u] = QC(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
+ [e, t] = $F(e, t, aI);
+ let { shouldUseVirtualFocus: i, disallowTypeAhead: a, filter: o, ...s } = e, c = (0, D.useContext)(BR);
+ t = Ax((0, D.useMemo)(() => xx(t, c?.tableRef), [t, c?.tableRef]));
+ let [l, u] = ZC(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
r = (0, D.useMemo)(() => r.withExpandedKeys(l), [r, l]);
let d = tde({
...s,
@@ -40047,13 +40048,13 @@ function lde({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
UNSAFE_selectionState: n,
expandedKeys: l,
onExpandedChange: u
- }), f = nde(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, D.useContext)(fI), { dragAndDropHooks: _ } = e, { gridProps: v } = Rae({
+ }), f = nde(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, D.useContext)(dI), { dragAndDropHooks: _ } = e, { gridProps: v } = Rae({
...s,
layoutDelegate: m,
isVirtualized: p
}, f, t), y = f.selectionManager, b = !!_?.useDraggableCollectionState, x = !!_?.useDroppableCollectionState;
(0, D.useRef)(b), (0, D.useRef)(x), (0, D.useEffect)(() => {}, [b, x]);
- let S, C, w, T = !1, E = null, O = (0, D.useRef)(null), { direction: k } = gS(), [A] = (0, D.useState)(() => new PR());
+ let S, C, w, T = !1, E = null, O = (0, D.useRef)(null), { direction: k } = hS(), [A] = (0, D.useState)(() => new NR());
if (b && _) {
S = _.useDraggableCollectionState({
collection: f.collection,
@@ -40068,7 +40069,7 @@ function lde({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
collection: f.collection,
selectionManager: y
});
- let e = new Sw({
+ let e = new xw({
collection: f.collection,
disabledKeys: y.disabledKeys,
disabledBehavior: y.disabledBehavior,
@@ -40088,12 +40089,12 @@ function lde({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
let t = C?.target;
if (t && t.type === "item" && t.dropPosition === "on") {
let n = d.collection.getItem(t.key);
- (e.key === WR.expand[k] && n?.hasChildNodes && !d.expandedKeys.has(t.key) || e.key === WR.collapse[k] && n?.hasChildNodes && d.expandedKeys.has(t.key)) && d.toggleKey(t.key);
+ (e.key === UR.expand[k] && n?.hasChildNodes && !d.expandedKeys.has(t.key) || e.key === UR.collapse[k] && n?.hasChildNodes && d.expandedKeys.has(t.key)) && d.toggleKey(t.key);
}
}
}, C, t), T = C.isDropTarget({ type: "root" });
}
- let { focusProps: j, isFocused: M, isFocusVisible: N } = DT(), P = QF({
+ let { focusProps: j, isFocused: M, isFocusVisible: N } = ET(), P = ZF({
...e,
children: void 0,
defaultClassName: "react-aria-Table",
@@ -40109,20 +40110,20 @@ function lde({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
tableLayout: "fixed",
width: "min-content"
}));
- let I = wS(e, { global: !0 });
- return /*#__PURE__*/ D.createElement(ZF, { values: [
- [HR, f],
- [UR, te],
- [kL, {
+ let I = CS(e, { global: !0 });
+ return /*#__PURE__*/ D.createElement(XF, { values: [
+ [VR, f],
+ [HR, te],
+ [OL, {
dragAndDropHooks: _,
dragState: S,
dropState: C
}],
- [AL, { render: bde }],
- [oI, null],
- [sI, null]
- ] }, /*#__PURE__*/ D.createElement(JS, null, /*#__PURE__*/ D.createElement(cde, {
- ...K(I, P, v, j, w?.collectionProps),
+ [kL, { render: bde }],
+ [aI, null],
+ [oI, null]
+ ] }, /*#__PURE__*/ D.createElement(qS, null, /*#__PURE__*/ D.createElement(cde, {
+ ...q(I, P, v, j, w?.collectionProps),
style: F,
ref: t,
slot: e.slot || void 0,
@@ -40131,27 +40132,27 @@ function lde({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
"data-drop-target": T || void 0,
"data-focused": M || void 0,
"data-focus-visible": N || void 0
- }, /*#__PURE__*/ D.createElement(PL, null, /*#__PURE__*/ D.createElement(g, {
+ }, /*#__PURE__*/ D.createElement(NL, null, /*#__PURE__*/ D.createElement(g, {
collection: f.collection,
scrollRef: c?.scrollRef ?? t,
- persistedKeys: ML(y, _, C)
+ persistedKeys: jL(y, _, C)
})))), E);
}
-var ude = /*#__PURE__*/ (0, D.createContext)(null), GR = class extends Ly {
+var ude = /*#__PURE__*/ (0, D.createContext)(null), WR = class extends Iy {
static {
this.type = "tableheader";
}
}, dde = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, D.useContext)(fI);
- return n ? /*#__PURE__*/ D.createElement(aI.div, {
+ let { isVirtualized: n } = (0, D.useContext)(dI);
+ return n ? /*#__PURE__*/ D.createElement(iI.div, {
...e,
ref: t
- }) : /*#__PURE__*/ D.createElement(aI.thead, {
+ }) : /*#__PURE__*/ D.createElement(iI.thead, {
...e,
ref: t
});
-}), KR = /*#__PURE__*/ Gx(GR, (e, t) => {
- let n = (0, D.useContext)(HR).collection, r = Gy({
+}), GR = /*#__PURE__*/ Wx(WR, (e, t) => {
+ let n = (0, D.useContext)(VR).collection, r = Wy({
items: n.headerRows,
children: (0, D.useCallback)((e) => {
switch (e.type) {
@@ -40159,27 +40160,27 @@ var ude = /*#__PURE__*/ (0, D.createContext)(null), GR = class extends Ly {
default: throw Error("Unsupported node type in TableHeader: " + e.type);
}
}, [])
- }), { rowGroupProps: i } = PO(), { hoverProps: a, isHovered: o } = jT({
+ }), { rowGroupProps: i } = NO(), { hoverProps: a, isHovered: o } = AT({
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
- }), s = QF({
+ }), s = ZF({
...e,
children: void 0,
defaultClassName: "react-aria-TableHeader",
values: { isHovered: o }
});
return /*#__PURE__*/ D.createElement(dde, {
- ...K(wS(e, { global: !0 }), i, a),
+ ...q(CS(e, { global: !0 }), i, a),
...s,
ref: t,
"data-hovered": o || void 0
}, r);
-}, (e) => /*#__PURE__*/ D.createElement(Jx, {
+}, (e) => /*#__PURE__*/ D.createElement(qx, {
dependencies: e.dependencies,
items: e.columns
}, e.children)), fde = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, D.useContext)(fI);
+ let { isVirtualized: n } = (0, D.useContext)(dI);
return n ? /*#__PURE__*/ D.createElement("div", {
...e,
ref: t
@@ -40189,40 +40190,40 @@ var ude = /*#__PURE__*/ (0, D.createContext)(null), GR = class extends Ly {
});
});
function pde({ item: e }) {
- let t = (0, D.useRef)(null), n = (0, D.useContext)(HR), { isVirtualized: r, CollectionBranch: i } = (0, D.useContext)(fI), { rowProps: a } = Wae({
+ let t = (0, D.useRef)(null), n = (0, D.useContext)(VR), { isVirtualized: r, CollectionBranch: i } = (0, D.useContext)(dI), { rowProps: a } = Wae({
node: e,
isVirtualized: r
}, n, t), { checkboxProps: o } = Zae(n);
return /*#__PURE__*/ D.createElement(fde, {
...a,
ref: t
- }, /*#__PURE__*/ D.createElement(ZF, { values: [[DI, { slots: { selection: o } }], [OI, { slots: { selection: o } }]] }, /*#__PURE__*/ D.createElement(i, {
+ }, /*#__PURE__*/ D.createElement(XF, { values: [[EI, { slots: { selection: o } }], [DI, { slots: { selection: o } }]] }, /*#__PURE__*/ D.createElement(i, {
collection: n.collection,
parent: e
})));
}
-var mde = class extends Ly {
+var mde = class extends Iy {
static {
this.type = "column";
}
}, hde = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, D.useContext)(fI);
- return n ? /*#__PURE__*/ D.createElement(aI.div, {
+ let { isVirtualized: n } = (0, D.useContext)(dI);
+ return n ? /*#__PURE__*/ D.createElement(iI.div, {
...e,
ref: t
- }) : /*#__PURE__*/ D.createElement(aI.th, {
+ }) : /*#__PURE__*/ D.createElement(iI.th, {
...e,
ref: t
});
-}), qR = /*#__PURE__*/ Wx(mde, (e, t, n) => {
- let r = jx(t), i = (0, D.useContext)(HR), { isVirtualized: a } = (0, D.useContext)(fI), { columnHeaderProps: o, isPressed: s } = Vae({
+}), KR = /*#__PURE__*/ Ux(mde, (e, t, n) => {
+ let r = Ax(t), i = (0, D.useContext)(VR), { isVirtualized: a } = (0, D.useContext)(dI), { columnHeaderProps: o, isPressed: s } = Vae({
node: n,
isVirtualized: a,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, i, r), { isFocused: c, isFocusVisible: l, focusProps: u } = DT(), d = (0, D.useContext)(UR), f = !1;
+ }, i, r), { isFocused: c, isFocusVisible: l, focusProps: u } = ET(), d = (0, D.useContext)(HR), f = !1;
d && (f = d.resizingColumn === n.key);
- let { hoverProps: p, isHovered: m } = jT({ isDisabled: !e.allowsSorting }), h = QF({
+ let { hoverProps: p, isHovered: m } = AT({ isDisabled: !e.allowsSorting }), h = ZF({
...e,
id: void 0,
children: n.rendered,
@@ -40248,9 +40249,9 @@ var mde = class extends Ly {
...g,
width: d.getColumnWidth(n.key)
});
- let _ = wS(e, { global: !0 });
+ let _ = CS(e, { global: !0 });
return delete _.id, /*#__PURE__*/ D.createElement(hde, {
- ...K(_, o, u, p),
+ ...q(_, o, u, p),
...h,
style: g,
ref: r,
@@ -40261,29 +40262,29 @@ var mde = class extends Ly {
"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__*/ D.createElement(ZF, { values: [[JR, {
+ }, /*#__PURE__*/ D.createElement(XF, { values: [[qR, {
column: n,
triggerRef: r
- }], [fI, lI]] }, h.children));
-}), JR = /*#__PURE__*/ (0, D.createContext)(null), gde = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
- let n = (0, D.useContext)(UR);
+ }], [dI, cI]] }, h.children));
+}), qR = /*#__PURE__*/ (0, D.createContext)(null), gde = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
+ let n = (0, D.useContext)(HR);
if (!n) throw Error("Wrap your <Table> in a <ResizableTableContainer> to enable column resizing");
- let r = SS(rde(OL), "react-aria-components"), { onResizeStart: i, onResize: a, onResizeEnd: o } = (0, D.useContext)(VR), { column: s, triggerRef: c } = (0, D.useContext)(JR), l = (0, D.useRef)(null), { resizerProps: u, inputProps: d, isResizing: f, isMouseResizing: p } = Uae({
+ let r = xS(rde(DL), "react-aria-components"), { onResizeStart: i, onResize: a, onResizeEnd: o } = (0, D.useContext)(BR), { column: s, triggerRef: c } = (0, D.useContext)(qR), l = (0, D.useRef)(null), { resizerProps: u, inputProps: d, isResizing: f, isMouseResizing: p } = Uae({
column: s,
"aria-label": e["aria-label"] || r.format("tableResizer"),
onResizeStart: i,
onResize: a,
onResizeEnd: o,
triggerRef: c
- }, n, l), { focusProps: m, isFocused: h, isFocusVisible: g } = DT(), { hoverProps: _, isHovered: v } = jT(e), y = n.getColumnMinWidth(s.key) >= n.getColumnWidth(s.key), b = n.getColumnMaxWidth(s.key) <= n.getColumnWidth(s.key), { direction: x } = gS(), S = "both";
+ }, n, l), { focusProps: m, isFocused: h, isFocusVisible: g } = ET(), { hoverProps: _, isHovered: v } = AT(e), y = n.getColumnMinWidth(s.key) >= n.getColumnWidth(s.key), b = n.getColumnMaxWidth(s.key) <= n.getColumnWidth(s.key), { direction: x } = hS(), S = "both";
S = y ? x === "rtl" ? "right" : "left" : b ? x === "rtl" ? "left" : "right" : "both";
- let C = jx(t), [w, T] = (0, D.useState)("");
+ let C = Ax(t), [w, T] = (0, D.useState)("");
(0, D.useEffect)(() => {
if (!C.current) return;
let e = window.getComputedStyle(C.current);
T(e.cursor);
}, [C, S]);
- let E = QF({
+ let E = ZF({
...e,
defaultClassName: "react-aria-ColumnResizer",
values: {
@@ -40293,11 +40294,11 @@ var mde = class extends Ly {
isHovered: v,
resizableDirection: S
}
- }), O = wS(e, { global: !0 });
- return /*#__PURE__*/ D.createElement(aI.div, {
+ }), O = CS(e, { global: !0 });
+ return /*#__PURE__*/ D.createElement(iI.div, {
ref: C,
role: "presentation",
- ...K(O, E, u, _),
+ ...q(O, E, u, _),
"data-hovered": v || void 0,
"data-focused": h || void 0,
"data-focus-visible": g || void 0,
@@ -40305,7 +40306,7 @@ var mde = class extends Ly {
"data-resizable-direction": S
}, E.children, /*#__PURE__*/ D.createElement("input", {
ref: l,
- ...K(d, m)
+ ...q(d, m)
}), f && p && /*#__PURE__*/ Tt.createPortal(/*#__PURE__*/ D.createElement("div", {
style: {
position: "fixed",
@@ -40317,24 +40318,24 @@ var mde = class extends Ly {
},
"data-testid": "cursor-overlay"
}), document.body));
-}), YR = class extends Ry {
+}), JR = class extends Ly {
static {
this.type = "tablebody";
}
}, _de = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, D.useContext)(fI);
- return n ? /*#__PURE__*/ D.createElement(aI.div, {
+ let { isVirtualized: n } = (0, D.useContext)(dI);
+ return n ? /*#__PURE__*/ D.createElement(iI.div, {
...e,
ref: t
- }) : /*#__PURE__*/ D.createElement(aI.tbody, {
+ }) : /*#__PURE__*/ D.createElement(iI.tbody, {
...e,
ref: t
});
-}), XR = /*#__PURE__*/ Gx(YR, (e, t, n) => {
- let r = (0, D.useContext)(HR), { isVirtualized: i } = (0, D.useContext)(fI), a = r.collection, { CollectionBranch: o } = (0, D.useContext)(fI), { dragAndDropHooks: s, dropState: c } = (0, D.useContext)(kL), l = !!s?.useDroppableCollectionState && !c?.isDisabled, u = l && !!c && (c.isDropTarget({ type: "root" }) ?? !1), d = a.size === 0, f = {
+}), YR = /*#__PURE__*/ Wx(JR, (e, t, n) => {
+ let r = (0, D.useContext)(VR), { isVirtualized: i } = (0, D.useContext)(dI), a = r.collection, { CollectionBranch: o } = (0, D.useContext)(dI), { dragAndDropHooks: s, dropState: c } = (0, D.useContext)(OL), l = !!s?.useDroppableCollectionState && !c?.isDisabled, u = l && !!c && (c.isDropTarget({ type: "root" }) ?? !1), d = a.size === 0, f = {
isDropTarget: u,
isEmpty: d
- }, p = QF({
+ }, p = ZF({
...e,
id: void 0,
children: void 0,
@@ -40343,33 +40344,33 @@ var mde = class extends Ly {
}), 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__*/ D.createElement(QR, {
+ i ? (n["aria-colspan"] = h, r = { display: "contents" }) : n.colSpan = h, m = /*#__PURE__*/ D.createElement(ZR, {
role: "row",
...t,
style: r
- }, /*#__PURE__*/ D.createElement(ez, {
+ }, /*#__PURE__*/ D.createElement($R, {
role: "rowheader",
...n,
style: r
}, e.renderEmptyState(f)));
}
- let { rowGroupProps: g } = PO(), _ = wS(e, { global: !0 });
+ let { rowGroupProps: g } = NO(), _ = CS(e, { global: !0 });
return /*#__PURE__*/ D.createElement(_de, {
- ...K(_, p, g),
+ ...q(_, p, g),
ref: t,
"data-empty": d || void 0
}, l && /*#__PURE__*/ D.createElement(Tde, null), /*#__PURE__*/ D.createElement(o, {
collection: a,
parent: n,
- renderDropIndicator: jL(s, c)
+ renderDropIndicator: AL(s, c)
}), m);
});
-(class extends Ry {
+(class extends Ly {
static {
this.type = "tablefooter";
}
});
-var ZR = /*#__PURE__*/ (0, D.createContext)({ isFocusVisibleWithinRow: !1 }), vde = class extends Ly {
+var XR = /*#__PURE__*/ (0, D.createContext)({ isFocusVisibleWithinRow: !1 }), vde = class extends Iy {
static {
this.type = "item";
}
@@ -40381,21 +40382,21 @@ var ZR = /*#__PURE__*/ (0, D.createContext)({ isFocusVisibleWithinRow: !1 }), vd
}
return null;
}
-}, QR = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, D.useContext)(fI);
- return n ? /*#__PURE__*/ D.createElement(aI.div, {
+}, ZR = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, D.useContext)(dI);
+ return n ? /*#__PURE__*/ D.createElement(iI.div, {
...e,
ref: t
- }) : /*#__PURE__*/ D.createElement(aI.tr, {
+ }) : /*#__PURE__*/ D.createElement(iI.tr, {
...e,
ref: t
});
-}), $R = /*#__PURE__*/ Gx(vde, (e, t, n) => {
- let r = jx(t), i = (0, D.useContext)(HR), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, D.useContext)(kL), { isVirtualized: c, CollectionBranch: l } = (0, D.useContext)(fI), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = qae({
+}), QR = /*#__PURE__*/ Wx(vde, (e, t, n) => {
+ let r = Ax(t), i = (0, D.useContext)(VR), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, D.useContext)(OL), { isVirtualized: c, CollectionBranch: l } = (0, D.useContext)(dI), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = qae({
node: n,
shouldSelectOnPressUp: !!o,
isVirtualized: c
- }, i, r), { isFocused: m, isFocusVisible: h, focusProps: g } = DT(), { isFocusVisible: _, focusProps: v } = DT({ within: !0 }), { hoverProps: y, isHovered: b } = jT({
+ }, i, r), { isFocused: m, isFocusVisible: h, focusProps: g } = ET(), { isFocusVisible: _, focusProps: v } = ET({ within: !0 }), { hoverProps: y, isHovered: b } = AT({
isDisabled: !p.allowsSelection && !p.hasAction && !u,
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
@@ -40405,7 +40406,7 @@ var ZR = /*#__PURE__*/ (0, D.createContext)({ isFocusVisibleWithinRow: !1 }), vd
key: n.key,
hasDragButton: !0
}, o));
- let C, w = (0, D.useRef)(null), { visuallyHiddenProps: T } = cw();
+ let C, w = (0, D.useRef)(null), { visuallyHiddenProps: T } = sw();
s && a && (C = a.useDropIndicator({ target: {
type: "item",
key: n.key,
@@ -40415,7 +40416,7 @@ var ZR = /*#__PURE__*/ (0, D.createContext)({ isFocusVisibleWithinRow: !1 }), vd
(0, D.useEffect)(() => {
o && E.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 = QF({
+ 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 = ZF({
...A,
id: void 0,
defaultClassName: "react-aria-Row",
@@ -40436,11 +40437,11 @@ var ZR = /*#__PURE__*/ (0, D.createContext)({ isFocusVisibleWithinRow: !1 }), vd
isExpanded: M,
level: n.level + 1
}
- }), P = wS(e, { global: !0 });
- return delete P.id, delete P.onClick, /*#__PURE__*/ D.createElement(D.Fragment, null, C && !C.isHidden && /*#__PURE__*/ D.createElement(QR, {
+ }), P = CS(e, { global: !0 });
+ return delete P.id, delete P.onClick, /*#__PURE__*/ D.createElement(D.Fragment, null, C && !C.isHidden && /*#__PURE__*/ D.createElement(ZR, {
role: "row",
style: { height: 0 }
- }, /*#__PURE__*/ D.createElement(ez, {
+ }, /*#__PURE__*/ D.createElement($R, {
role: "gridcell",
colSpan: i.collection.columnCount,
style: { padding: 0 }
@@ -40449,8 +40450,8 @@ var ZR = /*#__PURE__*/ (0, D.createContext)({ isFocusVisibleWithinRow: !1 }), vd
...T,
...C.dropIndicatorProps,
ref: w
- }))), /*#__PURE__*/ D.createElement(QR, {
- ...K(P, N, d, g, y, S?.dragProps, v),
+ }))), /*#__PURE__*/ D.createElement(ZR, {
+ ...q(P, N, d, g, y, S?.dragProps, v),
ref: r,
"data-disabled": p.isDisabled || void 0,
"data-selected": p.isSelected || void 0,
@@ -40465,17 +40466,17 @@ var ZR = /*#__PURE__*/ (0, D.createContext)({ isFocusVisibleWithinRow: !1 }), vd
"data-expanded": M || void 0,
"data-has-child-items": j || void 0,
"data-level": n.level + 1
- }, /*#__PURE__*/ D.createElement(ZF, { values: [
- [DI, { slots: {
- [XF]: {},
+ }, /*#__PURE__*/ D.createElement(XF, { values: [
+ [EI, { slots: {
+ [YF]: {},
selection: x
} }],
- [OI, { slots: {
- [XF]: {},
+ [DI, { slots: {
+ [YF]: {},
selection: x
} }],
- [_I, { slots: {
- [XF]: {},
+ [gI, { slots: {
+ [YF]: {},
chevron: f,
drag: {
...S?.dragButtonProps,
@@ -40483,8 +40484,8 @@ var ZR = /*#__PURE__*/ (0, D.createContext)({ isFocusVisibleWithinRow: !1 }), vd
style: { pointerEvents: "none" }
}
} }],
- [FL, { isSelected: p.isSelected }],
- [ZR, { isFocusVisibleWithinRow: _ }]
+ [PL, { isSelected: p.isSelected }],
+ [XR, { isFocusVisibleWithinRow: _ }]
] }, /*#__PURE__*/ D.createElement(l, {
collection: i.collection,
parent: n
@@ -40492,26 +40493,26 @@ var ZR = /*#__PURE__*/ (0, D.createContext)({ isFocusVisibleWithinRow: !1 }), vd
}, (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__*/ D.createElement(Jx, {
+ return /*#__PURE__*/ D.createElement(qx, {
dependencies: t,
items: e.columns,
idScope: e.id
}, e.children);
-}), yde = class extends Ly {
+}), yde = class extends Iy {
static {
this.type = "cell";
}
-}, ez = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, D.useContext)(fI);
- return n ? /*#__PURE__*/ D.createElement(aI.div, {
+}, $R = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, D.useContext)(dI);
+ return n ? /*#__PURE__*/ D.createElement(iI.div, {
...e,
ref: t
- }) : /*#__PURE__*/ D.createElement(aI.td, {
+ }) : /*#__PURE__*/ D.createElement(iI.td, {
...e,
ref: t
});
-}), tz = /*#__PURE__*/ Wx(yde, (e, t, n) => {
- let r = jx(t), i = (0, D.useContext)(HR), { dragState: a } = (0, D.useContext)(kL), { isVirtualized: o } = (0, D.useContext)(fI);
+}), ez = /*#__PURE__*/ Ux(yde, (e, t, n) => {
+ let r = Ax(t), i = (0, D.useContext)(VR), { dragState: a } = (0, D.useContext)(OL), { isVirtualized: o } = (0, D.useContext)(dI);
n.column = i.collection.columns[n.index];
let { gridCellProps: s, isPressed: c } = zae({
node: n,
@@ -40519,7 +40520,7 @@ var ZR = /*#__PURE__*/ (0, D.createContext)({ isFocusVisibleWithinRow: !1 }), vd
isVirtualized: o,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, i, r), { isFocused: l, isFocusVisible: u, focusProps: d } = DT(), { hoverProps: f, isHovered: p } = jT({}), { isFocusVisibleWithinRow: m } = (0, D.useContext)(ZR), 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 = QF({
+ }, i, r), { isFocused: l, isFocusVisible: u, focusProps: d } = ET(), { hoverProps: f, isHovered: p } = AT({}), { isFocusVisibleWithinRow: m } = (0, D.useContext)(XR), 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 = ZF({
...e,
id: void 0,
defaultClassName: "react-aria-Cell",
@@ -40538,9 +40539,9 @@ var ZR = /*#__PURE__*/ (0, D.createContext)({ isFocusVisibleWithinRow: !1 }), vd
level: _.level + 1,
isTreeColumn: n.column.key === i.treeColumn
}
- }), S = wS(e, { global: !0 });
- return delete S.id, /*#__PURE__*/ D.createElement(ez, {
- ...K(S, x, s, d, f),
+ }), S = CS(e, { global: !0 });
+ return delete S.id, /*#__PURE__*/ D.createElement($R, {
+ ...q(S, x, s, d, f),
ref: r,
"data-focused": l || void 0,
"data-focus-visible": u || void 0,
@@ -40553,11 +40554,11 @@ var ZR = /*#__PURE__*/ (0, D.createContext)({ isFocusVisibleWithinRow: !1 }), vd
"data-level": _.level + 1,
"data-tree-column": n.column.key === i.treeColumn || void 0,
"data-disabled": b || void 0
- }, /*#__PURE__*/ D.createElement(fI.Provider, { value: lI }, x.children));
+ }, /*#__PURE__*/ D.createElement(dI.Provider, { value: cI }, x.children));
});
function bde(e, t) {
- t = jx(t);
- let { dragAndDropHooks: n, dropState: r } = (0, D.useContext)(kL), i = (0, D.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);
+ t = Ax(t);
+ let { dragAndDropHooks: n, dropState: r } = (0, D.useContext)(OL), i = (0, D.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__*/ D.createElement(wde, {
@@ -40570,33 +40571,33 @@ function bde(e, t) {
});
}
var xde = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, D.useContext)(fI);
- return n ? /*#__PURE__*/ D.createElement(aI.div, {
+ let { isVirtualized: n } = (0, D.useContext)(dI);
+ return n ? /*#__PURE__*/ D.createElement(iI.div, {
...e,
ref: t
- }) : /*#__PURE__*/ D.createElement(aI.tr, {
+ }) : /*#__PURE__*/ D.createElement(iI.tr, {
...e,
ref: t
});
}), Sde = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, D.useContext)(fI);
- return n ? /*#__PURE__*/ D.createElement(aI.div, {
+ let { isVirtualized: n } = (0, D.useContext)(dI);
+ return n ? /*#__PURE__*/ D.createElement(iI.div, {
...e,
ref: t
- }) : /*#__PURE__*/ D.createElement(aI.td, {
+ }) : /*#__PURE__*/ D.createElement(iI.td, {
...e,
ref: t
});
});
function Cde(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, s = (0, D.useContext)(HR), { visuallyHiddenProps: c } = cw(), l = QF({
+ let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, s = (0, D.useContext)(VR), { visuallyHiddenProps: c } = sw(), l = ZF({
...o,
defaultClassName: "react-aria-DropIndicator",
defaultStyle: { "--table-row-level": a + 1 },
values: { isDropTarget: r }
});
return /*#__PURE__*/ D.createElement(xde, {
- ...wS(e, { global: !0 }),
+ ...CS(e, { global: !0 }),
...l,
role: "row",
ref: t,
@@ -40615,12 +40616,12 @@ function Cde(e, t) {
}
var wde = /*#__PURE__*/ (0, D.forwardRef)(Cde);
function Tde() {
- let e = (0, D.useContext)(HR), { dragAndDropHooks: t, dropState: n } = (0, D.useContext)(kL), r = (0, D.useRef)(null), { dropIndicatorProps: i } = t.useDropIndicator({ target: { type: "root" } }, n, r), a = n.isDropTarget({ type: "root" }), { visuallyHiddenProps: o } = cw();
- return !a && i["aria-hidden"] ? null : /*#__PURE__*/ D.createElement(QR, {
+ let e = (0, D.useContext)(VR), { dragAndDropHooks: t, dropState: n } = (0, D.useContext)(OL), r = (0, D.useRef)(null), { dropIndicatorProps: i } = t.useDropIndicator({ target: { type: "root" } }, n, r), a = n.isDropTarget({ type: "root" }), { visuallyHiddenProps: o } = sw();
+ return !a && i["aria-hidden"] ? null : /*#__PURE__*/ D.createElement(ZR, {
role: "row",
"aria-hidden": i["aria-hidden"],
style: { height: 0 }
- }, /*#__PURE__*/ D.createElement(ez, {
+ }, /*#__PURE__*/ D.createElement($R, {
role: "gridcell",
colSpan: e.collection.columnCount,
style: { padding: 0 }
@@ -40631,9 +40632,9 @@ function Tde() {
ref: r
})));
}
-Wx(zy, function(e, t, n) {
- let r = (0, D.useContext)(HR), { isVirtualized: i } = (0, D.useContext)(fI), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = r.collection.columns.length, u = (0, D.useRef)(null);
- JL((0, D.useMemo)(() => ({
+Ux(Ry, function(e, t, n) {
+ let r = (0, D.useContext)(VR), { isVirtualized: i } = (0, D.useContext)(dI), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = r.collection.columns.length, u = (0, D.useRef)(null);
+ qL((0, D.useMemo)(() => ({
onLoadMore: o,
collection: r?.collection,
sentinelRef: u,
@@ -40643,7 +40644,7 @@ Wx(zy, function(e, t, n) {
s,
r?.collection
]), u);
- let d = QF({
+ let d = ZF({
...c,
id: void 0,
children: n.rendered,
@@ -40651,10 +40652,10 @@ Wx(zy, 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__*/ D.createElement(D.Fragment, null, /*#__PURE__*/ D.createElement(QR, {
+ return i ? (p["aria-colspan"] = l, m = { display: "contents" }) : p.colSpan = l, /*#__PURE__*/ D.createElement(D.Fragment, null, /*#__PURE__*/ D.createElement(ZR, {
style: { height: 0 },
- inert: LL(!0)
- }, /*#__PURE__*/ D.createElement(ez, { style: {
+ inert: IL(!0)
+ }, /*#__PURE__*/ D.createElement($R, { style: {
padding: 0,
border: 0
} }, /*#__PURE__*/ D.createElement("div", {
@@ -40665,14 +40666,14 @@ Wx(zy, function(e, t, n) {
height: 1,
width: 1
}
- }))), a && d.children && /*#__PURE__*/ D.createElement(QR, {
- ...K(wS(e, { global: !0 }), f),
+ }))), a && d.children && /*#__PURE__*/ D.createElement(ZR, {
+ ...q(CS(e, { global: !0 }), f),
...d,
role: "row",
ref: t,
"aria-level": n.level + 1,
"data-level": n.level + 1
- }, /*#__PURE__*/ D.createElement(ez, {
+ }, /*#__PURE__*/ D.createElement($R, {
role: "rowheader",
...p,
style: m
@@ -40681,7 +40682,7 @@ Wx(zy, function(e, t, n) {
//#endregion
//#region node_modules/react-stately/dist/private/list/useSingleSelectListState.mjs
function Ede(e) {
- let [t, n] = QC(e.selectedKey, e.defaultSelectedKey ?? null, e.onSelectionChange), r = (0, D.useMemo)(() => t == null ? [] : [t], [t]), { collection: i, disabledKeys: a, selectionManager: o } = KL({
+ let [t, n] = ZC(e.selectedKey, e.defaultSelectedKey ?? null, e.onSelectionChange), r = (0, D.useMemo)(() => t == null ? [] : [t], [t]), { collection: i, disabledKeys: a, selectionManager: o } = GL({
...e,
selectionMode: "single",
disallowEmptySelection: !0,
@@ -40711,17 +40712,17 @@ function Dde(e) {
t != null && e.onSelectionChange?.(t);
} : void 0,
suppressTextValueWarning: !0,
- defaultSelectedKey: e.defaultSelectedKey ?? nz(e.collection, e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set()) ?? void 0
+ defaultSelectedKey: e.defaultSelectedKey ?? tz(e.collection, e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set()) ?? void 0
}), { selectionManager: n, collection: r, selectedKey: i } = t, a = (0, D.useRef)(i);
return (0, D.useEffect)(() => {
let o = i;
- e.selectedKey == null && (n.isEmpty || o == null || !r.getItem(o)) && (o = nz(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 = tz(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 nz(e, t) {
+function tz(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);
@@ -40731,13 +40732,13 @@ function nz(e, t) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Tabs.mjs
-var rz = /*#__PURE__*/ (0, D.createContext)(null), iz = /*#__PURE__*/ (0, D.createContext)(null), Ode = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
- [e, t] = eI(e, t, rz);
+var nz = /*#__PURE__*/ (0, D.createContext)(null), rz = /*#__PURE__*/ (0, D.createContext)(null), Ode = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
+ [e, t] = $F(e, t, nz);
let { children: n, orientation: r = "horizontal" } = e;
return n = (0, D.useMemo)(() => typeof n == "function" ? n({
orientation: r,
defaultChildren: null
- }) : n, [n, r]), /*#__PURE__*/ D.createElement(Vx, { content: n }, (n) => /*#__PURE__*/ D.createElement(kde, {
+ }) : n, [n, r]), /*#__PURE__*/ D.createElement(Bx, { content: n }, (n) => /*#__PURE__*/ D.createElement(kde, {
props: e,
collection: n,
tabsRef: t
@@ -40748,7 +40749,7 @@ function kde({ props: e, tabsRef: t, collection: n }) {
...e,
collection: n,
children: void 0
- }), { focusProps: a, isFocused: o, isFocusVisible: s } = DT({ within: !0 }), c = (0, D.useMemo)(() => ({
+ }), { focusProps: a, isFocused: o, isFocusVisible: s } = ET({ within: !0 }), c = (0, D.useMemo)(() => ({
orientation: r,
isFocusWithin: o,
isFocusVisible: s
@@ -40756,33 +40757,33 @@ function kde({ props: e, tabsRef: t, collection: n }) {
r,
o,
s
- ]), l = QF({
+ ]), l = ZF({
...e,
defaultClassName: "react-aria-Tabs",
values: c
- }), u = wS(e, { global: !0 });
- return /*#__PURE__*/ D.createElement(aI.div, {
- ...K(u, l, a),
+ }), u = CS(e, { global: !0 });
+ return /*#__PURE__*/ D.createElement(iI.div, {
+ ...q(u, l, a),
ref: t,
slot: e.slot || void 0,
"data-focused": o || void 0,
"data-orientation": r,
"data-focus-visible": s || void 0,
"data-disabled": i.isDisabled || void 0
- }, /*#__PURE__*/ D.createElement(ZF, { values: [[rz, e], [iz, i]] }, l.children));
+ }, /*#__PURE__*/ D.createElement(XF, { values: [[nz, e], [rz, i]] }, l.children));
}
-var az = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
- return (0, D.useContext)(iz) ? /*#__PURE__*/ D.createElement(Ade, {
+var iz = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
+ return (0, D.useContext)(rz) ? /*#__PURE__*/ D.createElement(Ade, {
props: e,
forwardedRef: t
- }) : /*#__PURE__*/ D.createElement(Jx, e);
+ }) : /*#__PURE__*/ D.createElement(qx, e);
});
function Ade({ props: e, forwardedRef: t }) {
- let n = (0, D.useContext)(iz), { CollectionRoot: r } = (0, D.useContext)(fI), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = $F(rz), o = jx(t), { tabListProps: s } = eoe({
+ let n = (0, D.useContext)(rz), { CollectionRoot: r } = (0, D.useContext)(dI), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = QF(nz), o = Ax(t), { tabListProps: s } = eoe({
...e,
orientation: i,
keyboardActivation: a
- }, n, o), c = QF({
+ }, n, o), c = ZF({
...e,
children: null,
defaultClassName: "react-aria-TabList",
@@ -40790,30 +40791,30 @@ function Ade({ props: e, forwardedRef: t }) {
orientation: i,
state: n
}
- }), l = wS(e, { global: !0 });
- return delete l.id, /*#__PURE__*/ D.createElement(aI.div, {
- ...K(l, c, s),
+ }), l = CS(e, { global: !0 });
+ return delete l.id, /*#__PURE__*/ D.createElement(iI.div, {
+ ...q(l, c, s),
ref: o,
"data-orientation": i || void 0
- }, /*#__PURE__*/ D.createElement(PL, null, /*#__PURE__*/ D.createElement(r, {
+ }, /*#__PURE__*/ D.createElement(NL, null, /*#__PURE__*/ D.createElement(r, {
collection: n.collection,
- persistedKeys: pI(n.selectionManager.focusedKey)
+ persistedKeys: fI(n.selectionManager.focusedKey)
})));
}
-var jde = /*#__PURE__*/ Wx(class extends Ly {
+var jde = /*#__PURE__*/ Ux(class extends Iy {
static {
this.type = "item";
}
}, (e, t, n) => {
- let r = (0, D.useContext)(iz), i = jx(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = Qae({
+ let r = (0, D.useContext)(rz), i = Ax(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = Qae({
key: n.key,
...e
- }, r, i), { focusProps: l, isFocused: u, isFocusVisible: d } = DT(), { hoverProps: f, isHovered: p } = jT({
+ }, r, i), { focusProps: l, isFocused: u, isFocusVisible: d } = ET(), { hoverProps: f, isHovered: p } = AT({
isDisabled: s,
onHoverStart: e.onHoverStart,
onHoverEnd: e.onHoverEnd,
onHoverChange: e.onHoverChange
- }), m = QF({
+ }), m = ZF({
...e,
id: void 0,
children: n.rendered,
@@ -40826,9 +40827,9 @@ var jde = /*#__PURE__*/ Wx(class extends Ly {
isPressed: c,
isHovered: p
}
- }), h = n.props.href ? aI.a : aI.div, g = wS(e, { global: !0 });
+ }), h = n.props.href ? iI.a : iI.div, g = CS(e, { global: !0 });
return delete g.id, delete g.onClick, /*#__PURE__*/ D.createElement(h, {
- ...K(g, m, a, l, f),
+ ...q(g, m, a, l, f),
ref: i,
"data-selected": o || void 0,
"data-disabled": s || void 0,
@@ -40836,11 +40837,11 @@ var jde = /*#__PURE__*/ Wx(class extends Ly {
"data-focus-visible": d || void 0,
"data-pressed": c || void 0,
"data-hovered": p || void 0
- }, /*#__PURE__*/ D.createElement(FL.Provider, { value: { isSelected: o } }, m.children));
-}), Mde = /*#__PURE__*/ Ix(function(e, t) {
- let n = (0, D.useContext)(iz), r = jx(t), i = n.selectedKey === e.id, [a, o] = (0, D.useState)(n.selectedKey == null ? null : i);
+ }, /*#__PURE__*/ D.createElement(PL.Provider, { value: { isSelected: o } }, m.children));
+}), Mde = /*#__PURE__*/ Fx(function(e, t) {
+ let n = (0, D.useContext)(rz), r = Ax(t), i = n.selectedKey === e.id, [a, o] = (0, D.useState)(n.selectedKey == null ? null : i);
a == null && n.selectedKey != null ? o(i) : !i && a && o(!1);
- let s = eR(r, i);
+ let s = $L(r, i);
return !i && !e.shouldForceMount && !s ? null : /*#__PURE__*/ D.createElement(Nde, {
...e,
tabPanelRef: r,
@@ -40849,42 +40850,42 @@ var jde = /*#__PURE__*/ Wx(class extends Ly {
});
});
function Nde(e) {
- let t = (0, D.useContext)(iz), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = toe(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = DT(), d = t.selectedKey === e.id, f = $L(r) && !i, p = QF({
+ let t = (0, D.useContext)(rz), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = toe(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = ET(), d = t.selectedKey === e.id, f = QL(r) && !i, p = ZF({
...e,
defaultClassName: "react-aria-TabPanel",
values: {
isFocused: l,
isFocusVisible: u,
- isInert: LL(!d),
+ isInert: IL(!d),
isEntering: f,
isExiting: a,
state: t
}
- }), m = wS(o, { global: !0 });
+ }), m = CS(o, { global: !0 });
delete m.id;
- let h = d ? K(m, s, c, p) : K(m, p);
- return /*#__PURE__*/ D.createElement(aI.div, {
+ let h = d ? q(m, s, c, p) : q(m, p);
+ return /*#__PURE__*/ D.createElement(iI.div, {
...h,
ref: r,
"data-focused": l || void 0,
"data-focus-visible": u || void 0,
- inert: LL(!d || e.inert),
+ inert: IL(!d || e.inert),
"data-inert": d ? void 0 : "true",
"data-entering": f || void 0,
"data-exiting": a || void 0
- }, /*#__PURE__*/ D.createElement(ZF, { values: [[rz, null], [iz, null]] }, /*#__PURE__*/ D.createElement(fI.Provider, { value: lI }, p.children)));
+ }, /*#__PURE__*/ D.createElement(XF, { values: [[nz, null], [rz, null]] }, /*#__PURE__*/ D.createElement(dI.Provider, { value: cI }, p.children)));
}
//#endregion
//#region node_modules/react-aria-components/dist/private/TextArea.mjs
-var oz = /*#__PURE__*/ (0, D.createContext)({}), Pde = (e) => {
+var az = /*#__PURE__*/ (0, D.createContext)({}), Pde = (e) => {
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, ...i } = e;
return i;
}, Fde = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
- [e, t] = eI(e, t, oz);
- let { hoverProps: n, isHovered: r } = jT(e), { isFocused: i, isFocusVisible: a, focusProps: o } = DT({
+ [e, t] = $F(e, t, az);
+ let { hoverProps: n, isHovered: r } = AT(e), { isFocused: i, isFocusVisible: a, focusProps: o } = ET({
isTextInput: !0,
autoFocus: e.autoFocus
- }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = QF({
+ }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = ZF({
...e,
values: {
isHovered: r,
@@ -40895,8 +40896,8 @@ var oz = /*#__PURE__*/ (0, D.createContext)({}), Pde = (e) => {
},
defaultClassName: "react-aria-TextArea"
});
- return /*#__PURE__*/ D.createElement(aI.textarea, {
- ...K(Pde(e), o, n),
+ return /*#__PURE__*/ D.createElement(iI.textarea, {
+ ...q(Pde(e), o, n),
...c,
ref: t,
"data-focused": i || void 0,
@@ -40905,18 +40906,18 @@ var oz = /*#__PURE__*/ (0, D.createContext)({}), Pde = (e) => {
"data-focus-visible": a || void 0,
"data-invalid": s || void 0
});
-}), Ide = /*#__PURE__*/ (0, D.createContext)(null), Lde = /*#__PURE__*/ Ix(function(e, t) {
- [e, t] = eI(e, t, Ide);
- let { validationBehavior: n } = $F(EI) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, D.useRef)(null);
- [e, i] = eI(e, i, sI);
- let [a, o] = tI(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, D.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = Sie({
- ...nI(e),
+}), Ide = /*#__PURE__*/ (0, D.createContext)(null), Lde = /*#__PURE__*/ Fx(function(e, t) {
+ [e, t] = $F(e, t, Ide);
+ let { validationBehavior: n } = QF(TI) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, D.useRef)(null);
+ [e, i] = $F(e, i, oI);
+ let [a, o] = eI(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, D.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = Sie({
+ ...tI(e),
inputElementType: s,
label: o,
validationBehavior: r
}, i), m = (0, D.useCallback)((e) => {
i.current = e, e && c(e instanceof HTMLTextAreaElement ? "textarea" : "input");
- }, [i]), h = QF({
+ }, [i]), h = ZF({
...e,
values: {
isDisabled: e.isDisabled || !1,
@@ -40925,8 +40926,8 @@ var oz = /*#__PURE__*/ (0, D.createContext)({}), Pde = (e) => {
isRequired: e.isRequired || !1
},
defaultClassName: "react-aria-TextField"
- }), g = wS(e, { global: !0 });
- return delete g.id, /*#__PURE__*/ D.createElement(aI.div, {
+ }), g = CS(e, { global: !0 });
+ return delete g.id, /*#__PURE__*/ D.createElement(iI.div, {
...g,
...h,
ref: t,
@@ -40935,31 +40936,31 @@ var oz = /*#__PURE__*/ (0, D.createContext)({}), Pde = (e) => {
"data-invalid": p.isInvalid || void 0,
"data-readonly": e.isReadOnly || void 0,
"data-required": e.isRequired || void 0
- }, /*#__PURE__*/ D.createElement(ZF, { values: [
- [mI, {
+ }, /*#__PURE__*/ D.createElement(XF, { values: [
+ [pI, {
...l,
ref: a
}],
- [II, {
+ [FI, {
...u,
ref: m
}],
- [oz, {
+ [az, {
...u,
ref: m
}],
- [PI, {
+ [NI, {
role: "presentation",
isInvalid: p.isInvalid,
isDisabled: e.isDisabled || !1
}],
- [CI, { slots: {
+ [SI, { slots: {
description: d,
errorMessage: f
} }],
- [TI, p]
+ [wI, p]
] }, h.children));
-}), Rde = class e extends Vy {
+}), Rde = class e extends By {
withExpandedKeys(t, n) {
let r = this.clone();
return r.expandedKeys = n, e.cloneAncestorSections(n, t, r), e.cloneAncestorSections(t, n, r), r.frozen = this.frozen, r;
@@ -41031,16 +41032,16 @@ var oz = /*#__PURE__*/ (0, D.createContext)({}), Pde = (e) => {
constructor(...e) {
super(...e), this.expandedKeys = /* @__PURE__ */ new Set();
}
-}, zde = /*#__PURE__*/ (0, D.createContext)(null), sz = /*#__PURE__*/ (0, D.createContext)(null), Bde = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
- return [e, t] = eI(e, t, zde), /*#__PURE__*/ D.createElement(Vx, {
- content: /*#__PURE__*/ D.createElement(Jx, e),
+}, zde = /*#__PURE__*/ (0, D.createContext)(null), oz = /*#__PURE__*/ (0, D.createContext)(null), Bde = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
+ return [e, t] = $F(e, t, zde), /*#__PURE__*/ D.createElement(Bx, {
+ content: /*#__PURE__*/ D.createElement(qx, e),
createCollection: () => new Rde()
}, (n) => /*#__PURE__*/ D.createElement(Vde, {
props: e,
collection: n,
treeRef: t
}));
-}), cz = {
+}), sz = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -41051,16 +41052,16 @@ var oz = /*#__PURE__*/ (0, D.createContext)({}), Pde = (e) => {
}
};
function Vde({ props: e, collection: t, treeRef: n }) {
- let { dragAndDropHooks: r } = e, { direction: i } = gS(), a = bT({
+ let { dragAndDropHooks: r } = e, { direction: i } = hS(), a = yT({
usage: "search",
sensitivity: "base"
}), o = !!r?.useDraggableCollectionState, s = !!r?.useDroppableCollectionState, c = (0, D.useRef)(o), l = (0, D.useRef)(s);
(0, D.useEffect)(() => {
c.current !== o && console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."), l.current !== s && console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior.");
}, [o, s]);
- let { selectionMode: u = "none", expandedKeys: d, defaultExpandedKeys: f, onExpandedChange: p, disabledBehavior: m = "all" } = e, { CollectionRoot: h, isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v } = (0, D.useContext)(fI), [y, b] = QC(d ? new Set(d) : void 0, f ? new Set(f) : /* @__PURE__ */ new Set(), p), [x, S] = (0, D.useState)(t), [C, w] = (0, D.useState)(y), [T, E] = (0, D.useState)(() => t.withExpandedKeys(C, y));
+ let { selectionMode: u = "none", expandedKeys: d, defaultExpandedKeys: f, onExpandedChange: p, disabledBehavior: m = "all" } = e, { CollectionRoot: h, isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v } = (0, D.useContext)(dI), [y, b] = ZC(d ? new Set(d) : void 0, f ? new Set(f) : /* @__PURE__ */ new Set(), p), [x, S] = (0, D.useState)(t), [C, w] = (0, D.useState)(y), [T, E] = (0, D.useState)(() => t.withExpandedKeys(C, y));
(!Jde(C, y) || t !== x) && (E(t.withExpandedKeys(C, y)), S(t), w(y));
- let O = oR({
+ let O = aR({
...e,
selectionMode: u,
expandedKeys: y,
@@ -41082,7 +41083,7 @@ function Vde({ props: e, collection: t, treeRef: n }) {
let e = r.DragPreview;
P = r.renderDragPreview ? /*#__PURE__*/ D.createElement(e, { ref: ee }, r.renderDragPreview) : null;
}
- let [F] = (0, D.useState)(() => new PR());
+ let [F] = (0, D.useState)(() => new NR());
if (s && r) {
j = r.useDroppableCollectionState({
collection: O.collection,
@@ -41090,7 +41091,7 @@ function Vde({ props: e, collection: t, treeRef: n }) {
});
let e = r.dropTargetDelegate || v || new r.ListDropTargetDelegate(O.collection, n, { direction: i });
F.setup(e, O, i);
- let t = new Sw({
+ let t = new xw({
collection: O.collection,
collator: a,
ref: n,
@@ -41112,12 +41113,12 @@ function Vde({ props: e, collection: t, treeRef: n }) {
let t = j?.target;
if (t && t.type === "item" && t.dropPosition === "on") {
let n = O.collection.getItem(t.key);
- (e.key === cz.expand[i] && n?.hasChildNodes && !O.expandedKeys.has(t.key) || e.key === cz.collapse[i] && n?.hasChildNodes && O.expandedKeys.has(t.key)) && O.toggleKey(t.key);
+ (e.key === sz.expand[i] && n?.hasChildNodes && !O.expandedKeys.has(t.key) || e.key === sz.collapse[i] && n?.hasChildNodes && O.expandedKeys.has(t.key)) && O.toggleKey(t.key);
}
}
}, j, n), N = j.isDropTarget({ type: "root" });
}
- let te = !(!o || A?.isDisabled), { focusProps: I, isFocused: ne, isFocusVisible: re } = DT(), ie = {
+ let te = !(!o || A?.isDisabled), { focusProps: I, isFocused: ne, isFocusVisible: re } = ET(), ie = {
isEmpty: O.collection.size === 0,
isFocused: ne,
isFocusVisible: re,
@@ -41125,7 +41126,7 @@ function Vde({ props: e, collection: t, treeRef: n }) {
selectionMode: O.selectionManager.selectionMode,
allowsDragging: !!te,
state: O
- }, ae = QF({
+ }, ae = ZF({
...e,
children: void 0,
defaultClassName: "react-aria-Tree",
@@ -41142,9 +41143,9 @@ function Vde({ props: e, collection: t, treeRef: n }) {
style: { display: "contents" }
}, r));
}
- let se = wS(e, { global: !0 });
- return /*#__PURE__*/ D.createElement(D.Fragment, null, /*#__PURE__*/ D.createElement(JS, null, /*#__PURE__*/ D.createElement(aI.div, {
- ...K(se, ae, k, I, M?.collectionProps),
+ let se = CS(e, { global: !0 });
+ return /*#__PURE__*/ D.createElement(D.Fragment, null, /*#__PURE__*/ D.createElement(qS, null, /*#__PURE__*/ D.createElement(iI.div, {
+ ...q(se, ae, k, I, M?.collectionProps),
ref: n,
slot: e.slot || void 0,
"data-empty": O.collection.size === 0 || void 0,
@@ -41153,54 +41154,54 @@ function Vde({ props: e, collection: t, treeRef: n }) {
"data-focus-visible": re || void 0,
"data-selection-mode": O.selectionManager.selectionMode === "none" ? void 0 : O.selectionManager.selectionMode,
"data-allows-dragging": !!te || void 0
- }, /*#__PURE__*/ D.createElement(ZF, { values: [
- [sz, O],
- [kL, {
+ }, /*#__PURE__*/ D.createElement(XF, { values: [
+ [oz, O],
+ [OL, {
dragAndDropHooks: r,
dragState: A,
dropState: j
}],
- [AL, { render: Wde }]
- ] }, s && /*#__PURE__*/ D.createElement(qde, null), /*#__PURE__*/ D.createElement(PL, null, /*#__PURE__*/ D.createElement(h, {
+ [kL, { render: Wde }]
+ ] }, s && /*#__PURE__*/ D.createElement(qde, null), /*#__PURE__*/ D.createElement(NL, null, /*#__PURE__*/ D.createElement(h, {
collection: O.collection,
- persistedKeys: ML(O.selectionManager, r, j),
+ persistedKeys: jL(O.selectionManager, r, j),
scrollRef: n,
- renderDropIndicator: jL(r, j)
+ renderDropIndicator: AL(r, j)
}))), oe)), P);
}
-var Hde = /*#__PURE__*/ Wx(class extends Ly {
+var Hde = /*#__PURE__*/ Ux(class extends Iy {
static {
this.type = "content";
}
}, function(e) {
- let t = (0, D.useContext)(lz), n = QF({
+ let t = (0, D.useContext)(cz), n = ZF({
children: e.children,
values: t
});
- return /*#__PURE__*/ D.createElement(fI.Provider, { value: lI }, n.children);
-}), lz = /*#__PURE__*/ (0, D.createContext)(null), Ude = /*#__PURE__*/ Gx(class extends Ly {
+ return /*#__PURE__*/ D.createElement(dI.Provider, { value: cI }, n.children);
+}), cz = /*#__PURE__*/ (0, D.createContext)(null), Ude = /*#__PURE__*/ Wx(class extends Iy {
static {
this.type = "item";
}
}, (e, t, n) => {
- let r = (0, D.useContext)(sz);
- t = jx(t);
- let { dragAndDropHooks: i, dragState: a, dropState: o } = (0, D.useContext)(kL), s = a && !(a.isDisabled || a.selectionManager.isDisabled(n.key)), { rowProps: c, gridCellProps: l, expandButtonProps: u, descriptionProps: d, ...f } = vk({
+ let r = (0, D.useContext)(oz);
+ t = Ax(t);
+ let { dragAndDropHooks: i, dragState: a, dropState: o } = (0, D.useContext)(OL), s = a && !(a.isDisabled || a.selectionManager.isDisabled(n.key)), { rowProps: c, gridCellProps: l, expandButtonProps: u, descriptionProps: d, ...f } = _k({
node: n,
shouldSelectOnPressUp: !!a,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, r, t), p = c["aria-expanded"] === !0, m = e.hasChildItems || [...r.collection.getChildren(n.key)].length > 1, h = c["aria-level"] || 1, { hoverProps: g, isHovered: _ } = jT({
+ }, r, t), p = c["aria-expanded"] === !0, m = e.hasChildItems || [...r.collection.getChildren(n.key)].length > 1, h = c["aria-level"] || 1, { hoverProps: g, isHovered: _ } = AT({
isDisabled: !f.allowsSelection && !f.hasAction && !s,
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
- }), { isFocusVisible: v, focusProps: y } = DT(), { isFocusVisible: b, focusProps: x } = DT({ within: !0 }), { checkboxProps: S } = Zie({ key: n.key }, r), C = null;
+ }), { isFocusVisible: v, focusProps: y } = ET(), { isFocusVisible: b, focusProps: x } = ET({ within: !0 }), { checkboxProps: S } = Zie({ key: n.key }, r), C = null;
a && i && (C = i.useDraggableItem({
key: n.key,
hasDragButton: !0
}, a));
- let w = null, T = (0, D.useRef)(null), E = (0, D.useRef)(null), O = (0, D.useRef)(null), { visuallyHiddenProps: k } = cw();
+ let w = null, T = (0, D.useRef)(null), E = (0, D.useRef)(null), O = (0, D.useRef)(null), { visuallyHiddenProps: k } = sw();
o && i && (w = i.useDropIndicator({
target: {
type: "item",
@@ -41239,7 +41240,7 @@ var Hde = /*#__PURE__*/ Wx(class extends Ly {
j,
N,
M
- ]), ee = QF({
+ ]), ee = ZF({
...e,
id: void 0,
children: n.rendered,
@@ -41256,7 +41257,7 @@ var Hde = /*#__PURE__*/ Wx(class extends Ly {
(0, D.useEffect)(() => {
a && F.current;
}, []);
- let te = Gy({
+ let te = Wy({
items: r.collection.getChildren(n.key),
children: (e) => {
switch (e.type) {
@@ -41266,7 +41267,7 @@ var Hde = /*#__PURE__*/ Wx(class extends Ly {
default: throw Error("Unsupported element type in TreeRow: " + e.type);
}
}
- }), I = bx(), ne = wS(e, { global: !0 });
+ }), I = yx(), ne = CS(e, { global: !0 });
return delete ne.id, delete ne.onClick, /*#__PURE__*/ D.createElement(D.Fragment, null, w && !w.isHidden && /*#__PURE__*/ D.createElement("div", {
role: "row",
"aria-level": c["aria-level"],
@@ -41289,8 +41290,8 @@ var Hde = /*#__PURE__*/ Wx(class extends Ly {
"aria-labelledby": `${I} ${c.id}`,
tabIndex: -1,
ref: O
- }))), /*#__PURE__*/ D.createElement(aI.div, {
- ...K(ne, c, y, g, x, C?.dragProps),
+ }))), /*#__PURE__*/ D.createElement(iI.div, {
+ ...q(ne, c, y, g, x, C?.dragProps),
...ee,
ref: t,
"data-expanded": m && p || void 0,
@@ -41309,17 +41310,17 @@ var Hde = /*#__PURE__*/ Wx(class extends Ly {
}, /*#__PURE__*/ D.createElement("div", {
...l,
style: { display: "contents" }
- }, /*#__PURE__*/ D.createElement(ZF, { values: [
- [DI, { slots: {
- [XF]: {},
+ }, /*#__PURE__*/ D.createElement(XF, { values: [
+ [EI, { slots: {
+ [YF]: {},
selection: S
} }],
- [OI, { slots: {
- [XF]: {},
+ [DI, { slots: {
+ [YF]: {},
selection: S
} }],
- [_I, { slots: {
- [XF]: {},
+ [gI, { slots: {
+ [YF]: {},
chevron: {
...u,
ref: T
@@ -41330,13 +41331,13 @@ var Hde = /*#__PURE__*/ Wx(class extends Ly {
style: { pointerEvents: "none" }
}
} }],
- [lz, { ...P }],
- [FL, { isSelected: f.isSelected }]
+ [cz, { ...P }],
+ [PL, { isSelected: f.isSelected }]
] }, te))));
});
-Wx(zy, function(e, t, n) {
- let { isVirtualized: r } = (0, D.useContext)(fI), i = (0, D.useContext)(sz), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = (0, D.useRef)(null);
- JL((0, D.useMemo)(() => ({
+Ux(Ry, function(e, t, n) {
+ let { isVirtualized: r } = (0, D.useContext)(dI), i = (0, D.useContext)(oz), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = (0, D.useRef)(null);
+ qL((0, D.useMemo)(() => ({
onLoadMore: o,
collection: i?.collection,
sentinelRef: l,
@@ -41345,11 +41346,11 @@ Wx(zy, function(e, t, n) {
o,
s,
i?.collection
- ]), l), t = jx(t);
- let { rowProps: u, gridCellProps: d } = vk({ node: n }, i, t), f = u["aria-level"] || 1, p = {
+ ]), l), t = Ax(t);
+ let { rowProps: u, gridCellProps: d } = _k({ node: n }, i, t), f = u["aria-level"] || 1, p = {
role: "row",
"aria-level": u["aria-level"]
- }, m = QF({
+ }, m = ZF({
...c,
id: void 0,
children: n.rendered,
@@ -41362,7 +41363,7 @@ Wx(zy, function(e, t, n) {
width: 0,
height: 0
},
- inert: LL(!0)
+ inert: IL(!0)
}, /*#__PURE__*/ D.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: l,
@@ -41371,9 +41372,9 @@ Wx(zy, function(e, t, n) {
height: 1,
width: 1
}
- })), a && m.children && /*#__PURE__*/ D.createElement(aI.div, {
+ })), a && m.children && /*#__PURE__*/ D.createElement(iI.div, {
ref: t,
- ...K(wS(e), p),
+ ...q(CS(e), p),
...m,
"data-level": f
}, /*#__PURE__*/ D.createElement("div", {
@@ -41382,8 +41383,8 @@ Wx(zy, function(e, t, n) {
}, m.children)));
});
function Wde(e, t) {
- t = jx(t);
- let { dragAndDropHooks: n, dropState: r } = (0, D.useContext)(kL), i = (0, D.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);
+ t = Ax(t);
+ let { dragAndDropHooks: n, dropState: r } = (0, D.useContext)(OL), i = (0, D.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__*/ D.createElement(Kde, {
@@ -41396,7 +41397,7 @@ function Wde(e, t) {
});
}
function Gde(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, { visuallyHiddenProps: s } = cw(), c = QF({
+ let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, { visuallyHiddenProps: s } = sw(), c = ZF({
...o,
defaultClassName: "react-aria-DropIndicator",
defaultStyle: {
@@ -41405,7 +41406,7 @@ function Gde(e, t) {
},
values: { isDropTarget: r }
});
- return /*#__PURE__*/ D.createElement(aI.div, {
+ return /*#__PURE__*/ D.createElement(iI.div, {
...c,
role: "row",
"aria-level": a,
@@ -41420,7 +41421,7 @@ function Gde(e, t) {
}
var Kde = /*#__PURE__*/ (0, D.forwardRef)(Gde);
function qde() {
- let { dragAndDropHooks: e, dropState: t } = (0, D.useContext)(kL), n = (0, D.useRef)(null), { dropIndicatorProps: r } = e.useDropIndicator({ target: { type: "root" } }, t, n), i = t.isDropTarget({ type: "root" }), { visuallyHiddenProps: a } = cw();
+ let { dragAndDropHooks: e, dropState: t } = (0, D.useContext)(OL), n = (0, D.useRef)(null), { dropIndicatorProps: r } = e.useDropIndicator({ target: { type: "root" } }, t, n), i = t.isDropTarget({ type: "root" }), { visuallyHiddenProps: a } = sw();
return !i && r["aria-hidden"] ? null : /*#__PURE__*/ D.createElement("div", {
role: "row",
"aria-hidden": r["aria-hidden"],
@@ -41455,7 +41456,7 @@ var Yde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.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" })), uz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.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" })), lz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41463,7 +41464,7 @@ var Yde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.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" })), dz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.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" })), uz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41471,7 +41472,7 @@ var Yde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.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" })), fz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.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" })), dz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41559,7 +41560,7 @@ var Yde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.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" })), pz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.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" })), fz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41607,7 +41608,7 @@ var Yde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.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" })), mz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.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" })), pz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41663,7 +41664,7 @@ var Yde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.createElement("path", { d: "M10 18H14V16H10V18ZM3 6V8H21V6H3ZM6 13H18V11H6V13Z" })), hz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.createElement("path", { d: "M10 18H14V16H10V18ZM3 6V8H21V6H3ZM6 13H18V11H6V13Z" })), mz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41671,7 +41672,7 @@ var Yde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.createElement("path", { d: "M12.4142 5H21C21.5523 5 22 5.44772 22 6V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H10.4142L12.4142 5ZM4 7V19H20V7H4Z" })), gz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.createElement("path", { d: "M12.4142 5H21C21.5523 5 22 5.44772 22 6V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H10.4142L12.4142 5ZM4 7V19H20V7H4Z" })), hz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41687,7 +41688,7 @@ var Yde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.createElement("path", { d: "M12.4142 5H21C21.5523 5 22 5.44772 22 6V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H10.4142L12.4142 5ZM4 5V19H20V7H11.5858L9.58579 5H4ZM8.59114 13.8089C8.52934 13.5486 8.49663 13.277 8.49663 12.9978C8.49663 12.7186 8.52933 12.4471 8.59112 12.1868L7.59998 11.6146L8.59949 9.88335L9.59133 10.456C9.98424 10.0843 10.4633 9.80275 10.9954 9.64438V8.5H12.9944V9.64438C13.5265 9.80274 14.0056 10.0843 14.3985 10.4559L15.3904 9.88325L16.39 11.6145L15.3987 12.1867C15.4605 12.447 15.4932 12.7186 15.4932 12.9978C15.4932 13.277 15.4605 13.5485 15.3987 13.8088L16.39 14.3811L15.3905 16.1123L14.3986 15.5396C14.0057 15.9113 13.5266 16.1928 12.9945 16.3512V17.4956H10.9955V16.3513C10.4634 16.1929 9.98434 15.9114 9.59141 15.5397L8.59954 16.1124L7.59998 14.3812L8.59114 13.8089ZM11.9949 14.4971C12.8229 14.4971 13.4942 13.8258 13.4942 12.9978C13.4942 12.1698 12.8229 11.4985 11.9949 11.4985C11.1669 11.4985 10.4957 12.1698 10.4957 12.9978C10.4957 13.8258 11.1669 14.4971 11.9949 14.4971Z" })), _z = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.createElement("path", { d: "M12.4142 5H21C21.5523 5 22 5.44772 22 6V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H10.4142L12.4142 5ZM4 5V19H20V7H11.5858L9.58579 5H4ZM8.59114 13.8089C8.52934 13.5486 8.49663 13.277 8.49663 12.9978C8.49663 12.7186 8.52933 12.4471 8.59112 12.1868L7.59998 11.6146L8.59949 9.88335L9.59133 10.456C9.98424 10.0843 10.4633 9.80275 10.9954 9.64438V8.5H12.9944V9.64438C13.5265 9.80274 14.0056 10.0843 14.3985 10.4559L15.3904 9.88325L16.39 11.6145L15.3987 12.1867C15.4605 12.447 15.4932 12.7186 15.4932 12.9978C15.4932 13.277 15.4605 13.5485 15.3987 13.8088L16.39 14.3811L15.3905 16.1123L14.3986 15.5396C14.0057 15.9113 13.5266 16.1928 12.9945 16.3512V17.4956H10.9955V16.3513C10.4634 16.1929 9.98434 15.9114 9.59141 15.5397L8.59954 16.1124L7.59998 14.3812L8.59114 13.8089ZM11.9949 14.4971C12.8229 14.4971 13.4942 13.8258 13.4942 12.9978C13.4942 12.1698 12.8229 11.4985 11.9949 11.4985C11.1669 11.4985 10.4957 12.1698 10.4957 12.9978C10.4957 13.8258 11.1669 14.4971 11.9949 14.4971Z" })), gz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41695,7 +41696,7 @@ var Yde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.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" })), vz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.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" })), _z = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41743,7 +41744,7 @@ var Yde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.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" })), yz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.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" })), vz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41767,7 +41768,7 @@ var Yde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.createElement("path", { d: "M8 4H21V6H8V4ZM4.5 6.5C3.67157 6.5 3 5.82843 3 5C3 4.17157 3.67157 3.5 4.5 3.5C5.32843 3.5 6 4.17157 6 5C6 5.82843 5.32843 6.5 4.5 6.5ZM4.5 13.5C3.67157 13.5 3 12.8284 3 12C3 11.1716 3.67157 10.5 4.5 10.5C5.32843 10.5 6 11.1716 6 12C6 12.8284 5.32843 13.5 4.5 13.5ZM4.5 20.4C3.67157 20.4 3 19.7284 3 18.9C3 18.0716 3.67157 17.4 4.5 17.4C5.32843 17.4 6 18.0716 6 18.9C6 19.7284 5.32843 20.4 4.5 20.4ZM8 11H21V13H8V11ZM8 18H21V20H8V18Z" })), bz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.createElement("path", { d: "M8 4H21V6H8V4ZM4.5 6.5C3.67157 6.5 3 5.82843 3 5C3 4.17157 3.67157 3.5 4.5 3.5C5.32843 3.5 6 4.17157 6 5C6 5.82843 5.32843 6.5 4.5 6.5ZM4.5 13.5C3.67157 13.5 3 12.8284 3 12C3 11.1716 3.67157 10.5 4.5 10.5C5.32843 10.5 6 11.1716 6 12C6 12.8284 5.32843 13.5 4.5 13.5ZM4.5 20.4C3.67157 20.4 3 19.7284 3 18.9C3 18.0716 3.67157 17.4 4.5 17.4C5.32843 17.4 6 18.0716 6 18.9C6 19.7284 5.32843 20.4 4.5 20.4ZM8 11H21V13H8V11ZM8 18H21V20H8V18Z" })), yz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41775,7 +41776,7 @@ var Yde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.createElement("path", { d: "M6 5H8V19H6V5ZM16 5H18V19H16V5Z" })), xz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.createElement("path", { d: "M6 5H8V19H6V5ZM16 5H18V19H16V5Z" })), bz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41783,7 +41784,7 @@ var Yde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.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" })), Sz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.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" })), xz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41791,7 +41792,7 @@ var Yde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.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" })), Cz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.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" })), Sz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41807,7 +41808,7 @@ var Yde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.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" })), wz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.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" })), Cz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41863,7 +41864,7 @@ var Yde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.createElement("path", { d: "M3 19H21V21H3V19ZM13 5.82843V17H11V5.82843L4.92893 11.8995L3.51472 10.4853L12 2L20.4853 10.4853L19.0711 11.8995L13 5.82843Z" })), Tz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.createElement("path", { d: "M3 19H21V21H3V19ZM13 5.82843V17H11V5.82843L4.92893 11.8995L3.51472 10.4853L12 2L20.4853 10.4853L19.0711 11.8995L13 5.82843Z" })), wz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41871,7 +41872,7 @@ var Yde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.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" })), Ez = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.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" })), Tz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41898,11 +41899,11 @@ var Yde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
}, D.createElement("path", { d: "M4.50772 2.87597C4.57028 2.37554 4.99568 2 5.5 2H18.5C19.0043 2 19.4297 2.37554 19.4923 2.87597L20.9923 14.876C20.9974 14.9171 21 14.9585 21 15V21C21 21.5523 20.5523 22 20 22H4C3.44772 22 3 21.5523 3 21V15C3 14.9585 3.00258 14.9171 3.00772 14.876L4.50772 2.87597ZM6.38278 4L5.13278 14H18.8672L17.6172 4H6.38278ZM19 16H5V20H19V16ZM15 17H17V19H15V17ZM13 17H11V19H13V17Z" }));
//#endregion
//#region src/react/boardui/components/base/input/label.tsx
-function Dz({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {
- return /* @__PURE__ */ (0, O.jsxs)(hI, {
+function Ez({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {
+ return /* @__PURE__ */ (0, O.jsxs)(mI, {
"data-label": "true",
...a,
- className: tF("flex cursor-default items-center gap-0.5", "text-body-medium text-text-primary", r),
+ className: eF("flex cursor-default items-center gap-0.5", "text-body-medium text-text-primary", r),
children: [
i,
e && /* @__PURE__ */ (0, O.jsx)("span", {
@@ -41919,18 +41920,18 @@ function Dz({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, childr
}
//#endregion
//#region src/react/boardui/components/base/input/hint-text.tsx
-function Oz({ isInvalid: e = !1, className: t, ...n }) {
- return /* @__PURE__ */ (0, O.jsx)(wI, {
+function Dz({ isInvalid: e = !1, className: t, ...n }) {
+ return /* @__PURE__ */ (0, O.jsx)(CI, {
slot: e ? "errorMessage" : "description",
...n,
- className: tF("pt-px text-caption-1-medium text-text-secondary", e && "text-text-error-primary", t)
+ className: eF("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 kz = (0, D.createContext)({});
-function Az({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {
- return /* @__PURE__ */ (0, O.jsx)(kz.Provider, {
+var Oz = (0, D.createContext)({});
+function kz({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {
+ return /* @__PURE__ */ (0, O.jsx)(Oz.Provider, {
value: {
size: e,
fieldClassName: t,
@@ -41939,13 +41940,13 @@ function Az({ size: e = "medium", fieldClassName: t, inputClassName: n, classNam
children: /* @__PURE__ */ (0, O.jsx)(Lde, {
...a,
"data-input-size": e,
- className: tF("group flex h-max w-full flex-col items-start gap-1", r),
+ className: eF("group flex h-max w-full flex-col items-start gap-1", r),
children: i
})
});
}
-Az.displayName = "TextField";
-var jz = nF({
+kz.displayName = "TextField";
+var Az = tF({
field: [
"relative flex w-full items-center",
"rounded-2lg",
@@ -41974,44 +41975,44 @@ var jz = nF({
].join(" "),
icon: "size-5 shrink-0"
});
-function Mz({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {
- let l = (0, D.useContext)(kz), u = e ?? l.size ?? "medium", d = r != null;
- return /* @__PURE__ */ (0, O.jsx)(FI, {
+function jz({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {
+ let l = (0, D.useContext)(Oz), u = e ?? l.size ?? "medium", d = r != null;
+ return /* @__PURE__ */ (0, O.jsx)(PI, {
ref: s,
- className: ({ isFocusWithin: e, isHovered: t, isDisabled: n, isInvalid: r }) => tF(jz.field, d ? jz.fieldWithAddonSize[u] : jz.fieldSize[u], t && !e && !n && !r && "ring-border-button-hover", e && !n && !r && "ring-border-button-active", n && "bg-input-disabled-background text-input-disabled-foreground", r && "bg-background-tertiary-error text-foreground-icon-error", l.fieldClassName, i),
+ className: ({ isFocusWithin: e, isHovered: t, isDisabled: n, isInvalid: r }) => eF(Az.field, d ? Az.fieldWithAddonSize[u] : Az.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, O.jsxs)("div", {
- className: jz.content,
+ className: Az.content,
children: [/* @__PURE__ */ (0, O.jsxs)("div", {
- className: jz.leftSection,
+ className: Az.leftSection,
children: [d ? r : t ? /* @__PURE__ */ (0, O.jsx)(t, {
- className: jz.icon,
+ className: Az.icon,
"aria-hidden": !0
- }) : null, /* @__PURE__ */ (0, O.jsx)(RI, {
+ }) : null, /* @__PURE__ */ (0, O.jsx)(LI, {
ref: o,
...c,
- className: tF(jz.input, l.inputClassName, a)
+ className: eF(Az.input, l.inputClassName, a)
})]
}), n ? /* @__PURE__ */ (0, O.jsx)(n, {
- className: jz.icon,
+ className: Az.icon,
"aria-hidden": !0
}) : null]
})
});
}
-Mz.displayName = "InputBase";
-function Nz({ 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, O.jsx)(Az, {
+jz.displayName = "InputBase";
+function Mz({ 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, O.jsx)(kz, {
...d,
className: u,
"aria-label": d["aria-label"] ?? (!e && typeof r == "string" ? r : void 0),
children: ({ isRequired: u, isInvalid: d }) => /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [
- e && /* @__PURE__ */ (0, O.jsx)(Dz, {
+ e && /* @__PURE__ */ (0, O.jsx)(Ez, {
isRequired: u,
isInvalid: d,
tooltip: n,
children: e
}),
- /* @__PURE__ */ (0, O.jsx)(Mz, {
+ /* @__PURE__ */ (0, O.jsx)(jz, {
ref: c,
groupRef: l,
placeholder: r,
@@ -42020,14 +42021,14 @@ function Nz({ label: e, hint: t, tooltip: n, placeholder: r, leadingIcon: i, tra
leadingAddon: o,
fieldClassName: s
}),
- t && /* @__PURE__ */ (0, O.jsx)(Oz, {
+ t && /* @__PURE__ */ (0, O.jsx)(Dz, {
isInvalid: d,
children: t
})
] })
});
}
-Nz.displayName = "Input";
+Mz.displayName = "Input";
//#endregion
//#region src/react/components/modal-frame.tsx
var Ffe = {
@@ -42036,9 +42037,9 @@ var Ffe = {
form: "max-w-form-modal",
collections: "max-w-4xl"
};
-function Pz({ isOpen: e, onOpenChange: t, width: n, label: r, children: i }) {
- let { isFocusVisible: a } = sx();
- return /* @__PURE__ */ (0, O.jsx)(xR, {
+function Nz({ isOpen: e, onOpenChange: t, width: n, label: r, children: i }) {
+ let { isFocusVisible: a } = ox();
+ return /* @__PURE__ */ (0, O.jsx)(bR, {
isOpen: e,
onOpenChange: t,
isDismissable: !0,
@@ -42050,7 +42051,7 @@ function Pz({ isOpen: e, onOpenChange: t, width: n, label: r, children: i }) {
"data-modal-surface": "",
"data-modal-width": n,
className: `flex max-h-full w-full ${Ffe[n]} flex-col overflow-hidden rounded-2-5xl border border-separator-border bg-background-full shadow-dropdown`,
- children: /* @__PURE__ */ (0, O.jsx)(_R, {
+ children: /* @__PURE__ */ (0, O.jsx)(gR, {
"aria-label": r,
className: "flex min-h-0 flex-col overflow-y-auto overscroll-contain outline-none",
children: i
@@ -42058,7 +42059,7 @@ function Pz({ isOpen: e, onOpenChange: t, width: n, label: r, children: i }) {
})
});
}
-function Fz({ children: e }) {
+function Pz({ children: e }) {
return /* @__PURE__ */ (0, O.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",
@@ -42067,12 +42068,12 @@ function Fz({ children: e }) {
}
//#endregion
//#region src/react/components/note.tsx
-function Iz({ tone: e, title: t, action: n, extra: r, children: i, actionLayout: a = "inline", className: o }) {
+function Fz({ tone: e, title: t, action: n, extra: r, children: i, actionLayout: a = "inline", className: o }) {
let s = /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsxs)("div", {
"data-note-layout": "",
- className: tF("flex gap-3", a === "inline" ? "flex-wrap items-center justify-between" : "flex-col items-start"),
+ className: eF("flex gap-3", a === "inline" ? "flex-wrap items-center justify-between" : "flex-col items-start"),
children: [/* @__PURE__ */ (0, O.jsxs)("div", {
- className: tF("flex min-w-0 flex-auto flex-col justify-center gap-0.5", a === "below" && "w-full"),
+ className: eF("flex min-w-0 flex-auto flex-col justify-center gap-0.5", a === "below" && "w-full"),
children: [t ? /* @__PURE__ */ (0, O.jsx)("p", {
className: "text-body-medium wrap-anywhere",
children: t
@@ -42089,27 +42090,27 @@ function Iz({ tone: e, title: t, action: n, extra: r, children: i, actionLayout:
switch (e) {
case "info": return /* @__PURE__ */ (0, O.jsx)("div", {
role: "status",
- className: tF("@container flex flex-col gap-2 rounded-2lg bg-notification-information-background px-3 py-2 text-notification-information-foreground", o),
+ className: eF("@container flex flex-col gap-2 rounded-2lg bg-notification-information-background px-3 py-2 text-notification-information-foreground", o),
children: s
});
case "success": return /* @__PURE__ */ (0, O.jsx)("div", {
role: "status",
- className: tF("@container flex flex-col gap-2 rounded-2lg bg-notification-success-background px-3 py-2 text-notification-success-foreground", o),
+ className: eF("@container flex flex-col gap-2 rounded-2lg bg-notification-success-background px-3 py-2 text-notification-success-foreground", o),
children: s
});
case "warning": return /* @__PURE__ */ (0, O.jsx)("div", {
role: "note",
- className: tF("@container flex flex-col gap-2 rounded-2lg bg-status-yellow-background px-3 py-2 text-status-yellow-text", o),
+ className: eF("@container flex flex-col gap-2 rounded-2lg bg-status-yellow-background px-3 py-2 text-status-yellow-text", o),
children: s
});
case "error": return /* @__PURE__ */ (0, O.jsx)("div", {
role: "alert",
- className: tF("@container flex flex-col gap-2 rounded-2lg bg-background-tertiary-error px-3 py-2 text-text-error-primary", o),
+ className: eF("@container flex flex-col gap-2 rounded-2lg bg-background-tertiary-error px-3 py-2 text-text-error-primary", o),
children: s
});
default: return /* @__PURE__ */ (0, O.jsx)("div", {
role: "note",
- className: tF("@container flex flex-col gap-2 rounded-2lg bg-background-tertiary-default px-3 py-2 text-text-secondary", o),
+ className: eF("@container flex flex-col gap-2 rounded-2lg bg-background-tertiary-default px-3 py-2 text-text-secondary", o),
children: s
});
}
@@ -42121,14 +42122,14 @@ var Ife = {
compact: "min-h-60 px-4 py-6"
};
function Lfe({ target: e, children: t }) {
- return /* @__PURE__ */ (0, O.jsx)(q, {
+ return /* @__PURE__ */ (0, O.jsx)(J, {
size: "small",
variant: "secondary",
onClick: () => document.querySelector(e)?.focus(),
children: t
});
}
-function Lz({ icon: e, title: t, actions: n, children: r, size: i = "standard" }) {
+function Iz({ icon: e, title: t, actions: n, children: r, size: i = "standard" }) {
return /* @__PURE__ */ (0, O.jsxs)("div", {
"data-empty-state": "",
"data-empty-size": i,
@@ -42159,9 +42160,9 @@ function Lz({ icon: e, title: t, actions: n, children: r, size: i = "standard" }
}
//#endregion
//#region src/react/components/sprite-glyph.tsx
-var Rz = /* @__PURE__ */ new Map();
-function zz(e) {
- let t = Rz.get(e);
+var Lz = /* @__PURE__ */ new Map();
+function Rz(e) {
+ let t = Lz.get(e);
if (t) return t;
let { wide: n, viewBox: r } = Gt(e), i = n ? ({ className: t }) => /* @__PURE__ */ (0, O.jsx)("svg", {
"aria-hidden": !0,
@@ -42177,11 +42178,11 @@ function zz(e) {
className: `shrink-0 stroke-current stroke-2 ${t ?? "size-4"}`,
children: /* @__PURE__ */ (0, O.jsx)("use", { href: `#i-${e}` })
});
- return i.displayName = `SpriteGlyph(${e})`, Rz.set(e, i), i;
+ return i.displayName = `SpriteGlyph(${e})`, Lz.set(e, i), i;
}
//#endregion
//#region src/react/components/settings-dialog-close.tsx
-function Bz({ label: e, id: t, onPress: n }) {
+function zz({ label: e, id: t, onPress: n }) {
return /* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
id: t,
@@ -42197,7 +42198,7 @@ function Bz({ label: e, id: t, onPress: n }) {
}
//#endregion
//#region src/react/settings/busy-props.ts
-function Vz(e) {
+function Bz(e) {
return e ? {
"aria-busy": !0,
"aria-disabled": !0
@@ -42205,25 +42206,25 @@ function Vz(e) {
}
//#endregion
//#region src/react/library-shortcuts/library-shortcuts.ts
-var Hz = ["library-shortcuts"], Uz = "/api/library-shortcuts";
-function Wz(e = !0) {
+var Vz = ["library-shortcuts"], Hz = "/api/library-shortcuts";
+function Uz(e = !0) {
return St({
- queryKey: Hz,
- queryFn: ({ signal: e }) => V(Uz, e),
+ queryKey: Vz,
+ queryFn: ({ signal: e }) => V(Hz, e),
enabled: e,
refetchOnMount: e ? "always" : !1
});
}
-function Gz() {
+function Wz() {
return Ct({
- mutationKey: Hz,
- mutationFn: (e) => H(Uz, e),
+ mutationKey: Vz,
+ mutationFn: (e) => H(Hz, e),
onSuccess: (e, t) => {
- U.setQueryData(Hz, e), t.action === "favorite" && t.scope === "online" && (U.invalidateQueries({ queryKey: ["follow", "tags"] }), U.invalidateQueries({ queryKey: ["tag-management"] }));
+ U.setQueryData(Vz, e), t.action === "favorite" && t.scope === "online" && (U.invalidateQueries({ queryKey: ["follow", "tags"] }), U.invalidateQueries({ queryKey: ["tag-management"] }));
}
});
}
-function Kz(e, t) {
+function Gz(e, t) {
return e.some((e) => t.scope === "online" ? e.scope === "online" && e.tag_id === t.tag_id : e.scope !== "online" && (t.entity_id ? e.entity_id === t.entity_id : e.kind === t.kind && e.name === t.name));
}
function Rfe(e) {
@@ -42231,28 +42232,28 @@ function Rfe(e) {
}
//#endregion
//#region src/react/library-shortcuts/shortcut-controls.tsx
-var qz = zz("star"), zfe = zz("bookmark-plus"), Jz = zz("chevron-right"), Yz = {
+var Kz = Rz("star"), zfe = Rz("bookmark-plus"), qz = Rz("chevron-right"), Jz = {
performer: "艺人",
creator: "创作者",
studio: "片商与厂牌",
series: "系列",
agency: "事务所",
tag: "标签"
-}, Xz = {
- all: zz("star"),
- performer: zz("user-round"),
- creator: zz("user-round"),
- studio: zz("clapperboard"),
- series: zz("film"),
- agency: zz("briefcase"),
- tag: zz("tags"),
- filters: zz("list-filter")
-}, Zz = [
+}, Yz = {
+ all: Rz("star"),
+ performer: Rz("user-round"),
+ creator: Rz("user-round"),
+ studio: Rz("clapperboard"),
+ series: Rz("film"),
+ agency: Rz("briefcase"),
+ tag: Rz("tags"),
+ filters: Rz("list-filter")
+}, Xz = [
["all", "全部"],
- ...Object.entries(Yz),
+ ...Object.entries(Jz),
["filters", "保存的筛选"]
];
-function Qz({ label: e, children: t, ...n }) {
+function Zz({ label: e, children: t, ...n }) {
return /* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
...n,
@@ -42262,19 +42263,19 @@ function Qz({ label: e, children: t, ...n }) {
children: t
});
}
-function $z({ item: e }) {
+function Qz({ item: e }) {
return /* @__PURE__ */ (0, O.jsx)(Bfe, { item: e }, `${e.scope || "local"}:${e.kind}:${e.tag_id || e.entity_id}:${e.name}`);
}
function Bfe({ item: e }) {
- let t = Wz(!1), n = (0, D.useRef)(t.data), r = Gz(), i = t.data && t.data !== n.current ? Kz(t.data.favorites || [], e) : e.favorite ?? (t.data ? Kz(t.data.favorites || [], e) : !1);
+ let t = Uz(!1), n = (0, D.useRef)(t.data), r = Wz(), i = t.data && t.data !== n.current ? Gz(t.data.favorites || [], e) : e.favorite ?? (t.data ? Gz(t.data.favorites || [], e) : !1);
return /* @__PURE__ */ (0, O.jsxs)("span", {
className: "inline-flex min-w-0 flex-col gap-1",
children: [
- /* @__PURE__ */ (0, O.jsx)(Qz, {
+ /* @__PURE__ */ (0, O.jsx)(Zz, {
"data-favorite": "",
"aria-pressed": !!i,
label: `${i ? "取消收藏" : "收藏"}${e.name}`,
- ...Vz(r.isPending),
+ ...Bz(r.isPending),
onClick: () => {
r.isPending || r.mutate({
action: "favorite",
@@ -42285,13 +42286,13 @@ function Bfe({ item: e }) {
children: r.isPending ? /* @__PURE__ */ (0, O.jsx)("span", {
"aria-hidden": !0,
dangerouslySetInnerHTML: { __html: ns("") }
- }) : /* @__PURE__ */ (0, O.jsx)(qz, {})
+ }) : /* @__PURE__ */ (0, O.jsx)(Kz, {})
}),
- r.isError ? /* @__PURE__ */ (0, O.jsx)(Iz, {
+ r.isError ? /* @__PURE__ */ (0, O.jsx)(Fz, {
tone: "error",
children: An(r.error)
}) : null,
- t.isError ? /* @__PURE__ */ (0, O.jsx)(q, {
+ t.isError ? /* @__PURE__ */ (0, O.jsx)(J, {
variant: "secondary",
size: "small",
"aria-label": "立即重试读取收藏",
@@ -42301,19 +42302,19 @@ function Bfe({ item: e }) {
]
});
}
-function eB({ currentHref: e, kind: t }) {
+function $z({ currentHref: e, kind: t }) {
let [n, r] = (0, D.useState)(!1);
return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)("span", {
"data-shortcuts-entry": "",
- children: /* @__PURE__ */ (0, O.jsx)(RF, {
+ children: /* @__PURE__ */ (0, O.jsx)(LF, {
"data-shortcuts-trigger": "",
label: "我的收藏",
- icon: qz,
+ icon: Kz,
"aria-haspopup": "dialog",
"aria-expanded": n,
onPress: () => r(!0)
})
- }), /* @__PURE__ */ (0, O.jsx)(Pz, {
+ }), /* @__PURE__ */ (0, O.jsx)(Nz, {
isOpen: n,
onOpenChange: r,
width: "collections",
@@ -42326,12 +42327,12 @@ function eB({ currentHref: e, kind: t }) {
})] });
}
function Vfe({ currentHref: e, kind: t, close: n }) {
- let r = Wz(), i = Gz(), [a, o] = (0, D.useState)(""), [s, c] = (0, D.useState)(t || "all"), [l, u] = (0, D.useState)(""), [d, f] = (0, D.useState)(""), p = (0, D.useId)(), [m, h] = (0, D.useState)(() => matchMedia("(max-width: 760px)").matches);
+ let r = Uz(), i = Wz(), [a, o] = (0, D.useState)(""), [s, c] = (0, D.useState)(t || "all"), [l, u] = (0, D.useState)(""), [d, f] = (0, D.useState)(""), p = (0, D.useId)(), [m, h] = (0, D.useState)(() => matchMedia("(max-width: 760px)").matches);
(0, D.useEffect)(() => {
let e = matchMedia("(max-width: 760px)"), t = () => h(e.matches);
return e.addEventListener("change", t), () => e.removeEventListener("change", t);
}, []);
- let g = (0, D.useRef)(null), _ = (0, D.useRef)(null), v = (0, D.useRef)(s), y = (0, D.useRef)(null), b = (0, D.useRef)(null), x = (0, D.useRef)(null), S = qF(y, g, "[role=\"tab\"][aria-selected=\"true\"]", s, { axis: "y" });
+ let g = (0, D.useRef)(null), _ = (0, D.useRef)(null), v = (0, D.useRef)(s), y = (0, D.useRef)(null), b = (0, D.useRef)(null), x = (0, D.useRef)(null), S = KF(y, g, "[role=\"tab\"][aria-selected=\"true\"]", s, { axis: "y" });
(0, D.useLayoutEffect)(() => {
b.current && (x.current = $a(b.current) || null);
}, []), (0, D.useLayoutEffect)(() => {
@@ -42344,7 +42345,7 @@ function Vfe({ currentHref: e, kind: t, close: n }) {
}, [s]), (0, D.useLayoutEffect)(() => {
x.current?.();
});
- let C = Zz.find(([e]) => e === s)?.[1] || "全部", w = (e) => {
+ let C = Xz.find(([e]) => e === s)?.[1] || "全部", w = (e) => {
let t = [...e.currentTarget.querySelectorAll("[role=\"tab\"]")], n = t.indexOf(e.target);
if (n < 0) return;
let r = e.key === "Home" ? 0 : e.key === "End" ? t.length - 1 : ["ArrowDown", "ArrowRight"].includes(e.key) ? (n + 1) % t.length : ["ArrowUp", "ArrowLeft"].includes(e.key) ? (n + t.length - 1) % t.length : -1;
@@ -42367,7 +42368,7 @@ function Vfe({ currentHref: e, kind: t, close: n }) {
children: [/* @__PURE__ */ (0, O.jsx)("h2", {
className: "text-title-2-semibold text-text-primary",
children: C
- }), /* @__PURE__ */ (0, O.jsx)(Bz, {
+ }), /* @__PURE__ */ (0, O.jsx)(zz, {
label: "关闭我的收藏",
onPress: n
})]
@@ -42397,8 +42398,8 @@ function Vfe({ currentHref: e, kind: t, close: n }) {
role: "presentation",
children: "我的收藏"
}),
- Zz.map(([e, t]) => {
- let n = Xz[e] || qz, r = e === "filters" ? E?.filters.length || 0 : (E?.favorites || []).filter((t) => e === "all" || t.kind === e).length;
+ Xz.map(([e, t]) => {
+ let n = Yz[e] || Kz, r = e === "filters" ? E?.filters.length || 0 : (E?.favorites || []).filter((t) => e === "all" || t.kind === e).length;
return /* @__PURE__ */ (0, O.jsxs)("button", {
type: "button",
role: "tab",
@@ -42430,9 +42431,9 @@ function Vfe({ currentHref: e, kind: t, close: n }) {
href: "/flagged",
onClick: n,
children: [
- /* @__PURE__ */ (0, O.jsx)(qz, { "aria-hidden": !0 }),
+ /* @__PURE__ */ (0, O.jsx)(Kz, { "aria-hidden": !0 }),
"已标记",
- /* @__PURE__ */ (0, O.jsx)(Jz, { "aria-hidden": !0 })
+ /* @__PURE__ */ (0, O.jsx)(qz, { "aria-hidden": !0 })
]
}), /* @__PURE__ */ (0, O.jsxs)("a", {
href: "/watch-later",
@@ -42440,7 +42441,7 @@ function Vfe({ currentHref: e, kind: t, close: n }) {
children: [
/* @__PURE__ */ (0, O.jsx)(zfe, { "aria-hidden": !0 }),
"稍后看",
- /* @__PURE__ */ (0, O.jsx)(Jz, { "aria-hidden": !0 })
+ /* @__PURE__ */ (0, O.jsx)(qz, { "aria-hidden": !0 })
]
})]
})]
@@ -42459,25 +42460,25 @@ function Vfe({ currentHref: e, kind: t, close: n }) {
"data-skeleton": "",
className: "h-12 animate-pulse rounded-lg bg-background-secondary-default"
}) : null,
- r.isError ? /* @__PURE__ */ (0, O.jsx)(Iz, {
+ r.isError ? /* @__PURE__ */ (0, O.jsx)(Fz, {
tone: "error",
- action: /* @__PURE__ */ (0, O.jsx)(q, {
+ action: /* @__PURE__ */ (0, O.jsx)(J, {
variant: "secondary",
onClick: () => void r.refetch(),
children: "立即重试"
}),
children: An(r.error)
}) : null,
- i.isError ? /* @__PURE__ */ (0, O.jsx)(Iz, {
+ i.isError ? /* @__PURE__ */ (0, O.jsx)(Fz, {
tone: "error",
children: An(i.error)
}) : null,
E ? s === "filters" ? /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [
- E.filters.length ? null : /* @__PURE__ */ (0, O.jsx)(Lz, {
+ E.filters.length ? null : /* @__PURE__ */ (0, O.jsx)(Iz, {
size: "compact",
- icon: zz("list-filter"),
+ icon: Rz("list-filter"),
title: "还没有保存的筛选",
- actions: /* @__PURE__ */ (0, O.jsx)(YF, {
+ actions: /* @__PURE__ */ (0, O.jsx)(JF, {
size: "small",
href: "/",
onClick: n,
@@ -42492,11 +42493,11 @@ function Vfe({ currentHref: e, kind: t, close: n }) {
onClick: n,
className: "min-w-0 flex-1 break-all text-body-regular text-text-primary underline",
children: e.name
- }), /* @__PURE__ */ (0, O.jsx)(q, {
+ }), /* @__PURE__ */ (0, O.jsx)(J, {
variant: "secondary",
size: "small",
"aria-label": `删除筛选${e.name}`,
- ...Vz(i.isPending),
+ ...Bz(i.isPending),
onClick: () => {
i.isPending || i.mutate({
action: "delete_filter",
@@ -42511,16 +42512,16 @@ function Vfe({ currentHref: e, kind: t, close: n }) {
className: "flex flex-col gap-3",
"aria-label": "保存当前筛选",
children: [
- /* @__PURE__ */ (0, O.jsx)(Nz, {
+ /* @__PURE__ */ (0, O.jsx)(Mz, {
label: "筛选名称",
value: a,
onChange: o,
maxLength: 80
}),
- /* @__PURE__ */ (0, O.jsx)(q, {
+ /* @__PURE__ */ (0, O.jsx)(J, {
type: "submit",
disabled: !a.trim(),
- ...Vz(i.isPending),
+ ...Bz(i.isPending),
children: "保存当前筛选"
}),
d ? /* @__PURE__ */ (0, O.jsx)("span", {
@@ -42531,26 +42532,26 @@ function Vfe({ currentHref: e, kind: t, close: n }) {
]
}) : null
] }) : /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [
- /* @__PURE__ */ (0, O.jsx)(Nz, {
+ /* @__PURE__ */ (0, O.jsx)(Mz, {
"aria-label": "搜索收藏",
placeholder: "搜索收藏",
- leadingIcon: zz("search"),
+ leadingIcon: Rz("search"),
value: l,
onChange: u
}),
- k.length ? null : /* @__PURE__ */ (0, O.jsx)(Lz, {
+ k.length ? null : /* @__PURE__ */ (0, O.jsx)(Iz, {
size: "compact",
- icon: qz,
+ icon: Kz,
title: l ? "没有匹配的收藏" : E.favorites.length ? "还没有此类收藏" : "还没有收藏",
- actions: l ? /* @__PURE__ */ (0, O.jsx)(q, {
+ actions: l ? /* @__PURE__ */ (0, O.jsx)(J, {
size: "small",
onClick: () => u(""),
children: "清除搜索"
- }) : E.favorites.length ? /* @__PURE__ */ (0, O.jsx)(q, {
+ }) : E.favorites.length ? /* @__PURE__ */ (0, O.jsx)(J, {
size: "small",
onClick: () => c("all"),
children: "查看全部收藏"
- }) : /* @__PURE__ */ (0, O.jsx)(YF, {
+ }) : /* @__PURE__ */ (0, O.jsx)(JF, {
size: "small",
href: "/",
onClick: n,
@@ -42575,14 +42576,14 @@ function Vfe({ currentHref: e, kind: t, close: n }) {
children: e.name
}), /* @__PURE__ */ (0, O.jsx)("span", {
className: "text-caption-1-regular text-text-secondary",
- children: e.scope === "online" ? "在线标签" : Yz[e.kind]
+ children: e.scope === "online" ? "在线标签" : Jz[e.kind]
})]
})]
- }), /* @__PURE__ */ (0, O.jsx)(q, {
+ }), /* @__PURE__ */ (0, O.jsx)(J, {
variant: "secondary",
size: "small",
"aria-label": `取消收藏${e.name}`,
- ...Vz(i.isPending),
+ ...Bz(i.isPending),
onClick: () => {
i.isPending || i.mutate({
action: "favorite",
@@ -42601,7 +42602,7 @@ function Vfe({ currentHref: e, kind: t, close: n }) {
});
}
function Hfe({ item: e }) {
- let t = Xz[e.kind] || qz;
+ let t = Yz[e.kind] || Kz;
return /* @__PURE__ */ (0, O.jsxs)("span", {
"data-shortcuts-avatar": "",
title: e.image_label || e.name,
@@ -42620,20 +42621,20 @@ function Hfe({ item: e }) {
}
//#endregion
//#region node_modules/react-router/dist/production/lib/router/url.js
-var Ufe = /^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i, tB = /^[\\/]{2}/;
+var Ufe = /^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i, eB = /^[\\/]{2}/;
function Wfe(e, t) {
return t + e.replace(/\\/g, "/");
}
//#endregion
//#region node_modules/react-router/dist/production/lib/router/history.js
-var nB = "popstate";
-function rB(e) {
+var tB = "popstate";
+function nB(e) {
return typeof e == "object" && !!e && "pathname" in e && "search" in e && "hash" in e && "state" in e && "key" in e;
}
function Gfe(e = {}) {
function t(e, t) {
let n = t.state?.masked, { pathname: r, search: i, hash: a } = n || e.location;
- return sB("", {
+ return oB("", {
pathname: r,
search: i,
hash: a
@@ -42644,14 +42645,14 @@ function Gfe(e = {}) {
} : void 0);
}
function n(e, t) {
- return typeof t == "string" ? t : cB(t);
+ return typeof t == "string" ? t : sB(t);
}
return qfe(t, n, null, e);
}
-function iB(e, t) {
+function rB(e, t) {
if (e === !1 || e == null) throw Error(t);
}
-function aB(e, t) {
+function iB(e, t) {
if (!e) {
typeof console < "u" && console.warn(t);
try {
@@ -42662,7 +42663,7 @@ function aB(e, t) {
function Kfe() {
return Math.random().toString(36).substring(2, 10);
}
-function oB(e, t) {
+function aB(e, t) {
return {
usr: e.state,
key: e.key,
@@ -42674,21 +42675,21 @@ function oB(e, t) {
} : void 0
};
}
-function sB(e, t, n = null, r, i) {
+function oB(e, t, n = null, r, i) {
return {
pathname: typeof e == "string" ? e : e.pathname,
search: "",
hash: "",
- ...typeof t == "string" ? lB(t) : t,
+ ...typeof t == "string" ? cB(t) : t,
state: n,
key: t && t.key || r || Kfe(),
mask: i
};
}
-function cB({ pathname: e = "/", search: t = "", hash: n = "" }) {
+function sB({ pathname: e = "/", search: t = "", hash: n = "" }) {
return t && t !== "?" && (e += t.charAt(0) === "?" ? t : "?" + t), n && n !== "#" && (e += n.charAt(0) === "#" ? n : "#" + n), e;
}
-function lB(e) {
+function cB(e) {
let t = {};
if (e) {
let n = e.indexOf("#");
@@ -42718,9 +42719,9 @@ function qfe(e, t, n, r = {}) {
}
function f(e, t) {
s = "PUSH";
- let r = rB(e) ? e : sB(h.location, e, t);
+ let r = nB(e) ? e : oB(h.location, e, t);
n && n(r, e), l = u() + 1;
- let d = oB(r, l), f = h.createHref(r.mask || r);
+ let d = aB(r, l), f = h.createHref(r.mask || r);
try {
o.pushState(d, "", f);
} catch (e) {
@@ -42735,9 +42736,9 @@ function qfe(e, t, n, r = {}) {
}
function p(e, t) {
s = "REPLACE";
- let r = rB(e) ? e : sB(h.location, e, t);
+ let r = nB(e) ? e : oB(h.location, e, t);
n && n(r, e), l = u();
- let i = oB(r, l), d = h.createHref(r.mask || r);
+ let i = aB(r, l), d = h.createHref(r.mask || r);
o.replaceState(i, "", d), a && c && c({
action: s,
location: h.location,
@@ -42756,8 +42757,8 @@ function qfe(e, t, n, r = {}) {
},
listen(e) {
if (c) throw Error("A history only accepts one active listener");
- return i.addEventListener(nB, d), c = e, () => {
- i.removeEventListener(nB, d), c = null;
+ return i.addEventListener(tB, d), c = e, () => {
+ i.removeEventListener(tB, d), c = null;
};
},
createHref(e) {
@@ -42782,9 +42783,9 @@ function qfe(e, t, n, r = {}) {
}
function Jfe(e, t, n = !1) {
let r = "http://localhost";
- e && (r = e.location.origin === "null" ? e.location.href : e.location.origin), iB(r, "No window.location.(origin|href) available to create URL");
- let i = typeof t == "string" ? t : cB(t);
- return i = i.replace(/ $/, "%20"), !n && tB.test(i) && (i = r + i), new URL(i, r);
+ e && (r = e.location.origin === "null" ? e.location.href : e.location.origin), rB(r, "No window.location.(origin|href) available to create URL");
+ let i = typeof t == "string" ? t : sB(t);
+ return i = i.replace(/ $/, "%20"), !n && eB.test(i) && (i = r + i), new URL(i, r);
}
//#endregion
//#region node_modules/react-router/dist/production/lib/router/utils.js
@@ -42792,17 +42793,17 @@ function Yfe(e, t, n = "/") {
return Xfe(e, t, n, !1);
}
function Xfe(e, t, n, r, i) {
- let a = gB((typeof t == "string" ? lB(t) : t).pathname || "/", n);
+ let a = hB((typeof t == "string" ? cB(t) : t).pathname || "/", n);
if (a == null) return null;
let o = i ?? Zfe(e), s = null, c = upe(a);
for (let e = 0; s == null && e < o.length; ++e) s = lpe(o[e], c, r);
return s;
}
function Zfe(e) {
- let t = uB(e);
+ let t = lB(e);
return Qfe(t), t;
}
-function uB(e, t = [], n = [], r = "", i = !1) {
+function lB(e, t = [], n = [], r = "", i = !1) {
let a = (e, a, o = i, s) => {
let c = {
relativePath: s === void 0 ? e.path || "" : s,
@@ -42812,14 +42813,14 @@ function uB(e, t = [], n = [], r = "", i = !1) {
};
if (c.relativePath.startsWith("/")) {
if (!c.relativePath.startsWith(r) && o) return;
- iB(c.relativePath.startsWith(r), `Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`), c.relativePath = c.relativePath.slice(r.length);
+ rB(c.relativePath.startsWith(r), `Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`), c.relativePath = c.relativePath.slice(r.length);
}
- let l = bB([r, c.relativePath]), u = n.concat(c);
- e.children && e.children.length > 0 && (iB(e.index !== !0, `Index routes must not have child routes. Please remove all child routes from route path "${l}".`), uB(e.children, t, u, l, o)), (e.path != null || e.index) && t.push({
+ let l = yB([r, c.relativePath]), u = n.concat(c);
+ e.children && e.children.length > 0 && (rB(e.index !== !0, `Index routes must not have child routes. Please remove all child routes from route path "${l}".`), lB(e.children, t, u, l, o)), (e.path != null || e.index) && t.push({
path: l,
score: spe(l, e.index),
routesMeta: u.map((e, t) => {
- let [n, r] = hB(e.relativePath, e.caseSensitive, t === u.length - 1);
+ let [n, r] = mB(e.relativePath, e.caseSensitive, t === u.length - 1);
return {
...e,
matcher: n,
@@ -42830,24 +42831,24 @@ function uB(e, t = [], n = [], r = "", i = !1) {
};
return e.forEach((e, t) => {
if (e.path === "" || !e.path?.includes("?")) a(e, t);
- else for (let n of dB(e.path)) a(e, t, !0, n);
+ else for (let n of uB(e.path)) a(e, t, !0, n);
}), t;
}
-function dB(e) {
+function uB(e) {
let t = e.split("/");
if (t.length === 0) return [];
let [n, ...r] = t, i = n.endsWith("?"), a = n.replace(/\?$/, "");
if (r.length === 0) return i ? [a, ""] : [a];
- let o = dB(r.join("/")), s = [];
+ let o = uB(r.join("/")), s = [];
return s.push(...o.map((e) => e === "" ? a : [a, e].join("/"))), i && s.push(...o), s.map((t) => e.startsWith("/") && t === "" ? "/" : t);
}
function Qfe(e) {
e.sort((e, t) => e.score === t.score ? cpe(e.routesMeta.map((e) => e.childrenIndex), t.routesMeta.map((e) => e.childrenIndex)) : t.score - e.score);
}
-var $fe = /^:[\w-]+$/, epe = /^:[\w-]+/, tpe = 3.5, npe = 3, rpe = 2, ipe = 1, ape = 10, ope = -2, fB = (e) => e === "*";
+var $fe = /^:[\w-]+$/, epe = /^:[\w-]+/, tpe = 3.5, npe = 3, rpe = 2, ipe = 1, ape = 10, ope = -2, dB = (e) => e === "*";
function spe(e, t) {
let n = e.split("/"), r = n.length;
- return n.some(fB) && (r += ope), t && (r += rpe), n.filter((e) => !fB(e)).reduce((e, t) => e + ($fe.test(t) ? npe : epe.test(t) ? tpe : t === "" ? ipe : ape), r);
+ return n.some(dB) && (r += ope), t && (r += rpe), n.filter((e) => !dB(e)).reduce((e, t) => e + ($fe.test(t) ? npe : epe.test(t) ? tpe : t === "" ? ipe : ape), r);
}
function cpe(e, t) {
return e.length === t.length && e.slice(0, -1).every((e, n) => e === t[n]) ? e[e.length - 1] - t[t.length - 1] : 0;
@@ -42859,39 +42860,39 @@ function lpe(e, t, n = !1) {
path: s.relativePath,
caseSensitive: s.caseSensitive,
end: c
- }, d = s.matcher && s.compiledParams ? mB(u, l, s.matcher, s.compiledParams) : pB(u, l), f = s.route;
- if (!d && c && n && !r[r.length - 1].route.index && (d = pB({
+ }, d = s.matcher && s.compiledParams ? pB(u, l, s.matcher, s.compiledParams) : fB(u, l), f = s.route;
+ if (!d && c && n && !r[r.length - 1].route.index && (d = fB({
path: s.relativePath,
caseSensitive: s.caseSensitive,
end: !1
}, l)), !d) return null;
Object.assign(i, d.params), o.push({
params: i,
- pathname: bB([a, d.pathname]),
- pathnameBase: hpe(bB([a, d.pathnameBase])),
+ pathname: yB([a, d.pathname]),
+ pathnameBase: hpe(yB([a, d.pathnameBase])),
route: f
- }), d.pathnameBase !== "/" && (a = bB([a, d.pathnameBase]));
+ }), d.pathnameBase !== "/" && (a = yB([a, d.pathnameBase]));
}
return o;
}
-function pB(e, t) {
+function fB(e, t) {
typeof e == "string" && (e = {
path: e,
caseSensitive: !1,
end: !0
});
- let [n, r] = hB(e.path, e.caseSensitive, e.end);
- return mB(e, t, n, r);
+ let [n, r] = mB(e.path, e.caseSensitive, e.end);
+ return pB(e, t, n, r);
}
-function mB(e, t, n, r) {
+function pB(e, t, n, r) {
let i = t.match(n);
if (!i) return null;
- let a = i[0], o = xB(a, 1), s = i.slice(1);
+ let a = i[0], o = bB(a, 1), s = i.slice(1);
return {
params: r.reduce((e, { paramName: t, isOptional: n }, r) => {
if (t === "*") {
let e = s[r] || "";
- o = xB(a.slice(0, a.length - e.length), 1);
+ o = bB(a.slice(0, a.length - e.length), 1);
}
let i = s[r];
return e[t] = n && !i ? void 0 : (i || "").replace(/%2F/g, "/"), e;
@@ -42901,8 +42902,8 @@ function mB(e, t, n, r) {
pattern: e
};
}
-function hB(e, t = !1, n = !0) {
- aB(e === "*" || !e.endsWith("*") || e.endsWith("/*"), `Route path "${e}" will be treated as if it were "${e.replace(/\*$/, "/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/, "/*")}".`);
+function mB(e, t = !1, n = !0) {
+ iB(e === "*" || !e.endsWith("*") || e.endsWith("/*"), `Route path "${e}" will be treated as if it were "${e.replace(/\*$/, "/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/, "/*")}".`);
let r = [], i = "^" + e.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^${}|()[\]]/g, "\\$&").replace(/\/:([\w-]+)(\?)?/g, (e, t, n, i, a) => {
if (r.push({
paramName: t,
@@ -42919,30 +42920,30 @@ function upe(e) {
try {
return e.split("/").map((e) => decodeURIComponent(e).replace(/\//g, "%2F")).join("/");
} catch (t) {
- return aB(!1, `The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`), e;
+ return iB(!1, `The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`), e;
}
}
-function gB(e, t) {
+function hB(e, t) {
if (t === "/") return e;
if (!e.toLowerCase().startsWith(t.toLowerCase())) return null;
let n = t.endsWith("/") ? t.length - 1 : t.length, r = e.charAt(n);
return r && r !== "/" ? null : e.slice(n) || "/";
}
function dpe(e, t = "/") {
- let { pathname: n, search: r = "", hash: i = "" } = typeof e == "string" ? lB(e) : e, a;
- return n ? (n = yB(n), a = n.startsWith("/") || n.startsWith("\\") ? _B(n.substring(1), "/") : _B(n, t)) : a = t, {
+ let { pathname: n, search: r = "", hash: i = "" } = typeof e == "string" ? cB(e) : e, a;
+ return n ? (n = vB(n), a = n.startsWith("/") || n.startsWith("\\") ? gB(n.substring(1), "/") : gB(n, t)) : a = t, {
pathname: a,
search: gpe(r),
hash: _pe(i)
};
}
-function _B(e, t) {
- let n = xB(t).split("/");
+function gB(e, t) {
+ let n = bB(t).split("/");
return e.split("/").forEach((e) => {
e === ".." ? n.length > 1 && n.pop() : e !== "." && n.push(e);
}), n.length > 1 ? n.join("/") : "/";
}
-function vB(e, t, n, r) {
+function _B(e, t, n, r) {
return `Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`;
}
function fpe(e) {
@@ -42954,7 +42955,7 @@ function ppe(e) {
}
function mpe(e, t, n, r = !1) {
let i;
- typeof e == "string" ? i = lB(e) : (i = { ...e }, iB(!i.pathname || !i.pathname.includes("?"), vB("?", "pathname", "search", i)), iB(!i.pathname || !i.pathname.includes("#"), vB("#", "pathname", "hash", i)), iB(!i.search || !i.search.includes("#"), vB("#", "search", "hash", i)));
+ typeof e == "string" ? i = cB(e) : (i = { ...e }, rB(!i.pathname || !i.pathname.includes("?"), _B("?", "pathname", "search", i)), rB(!i.pathname || !i.pathname.includes("#"), _B("#", "pathname", "hash", i)), rB(!i.search || !i.search.includes("#"), _B("#", "search", "hash", i)));
let a = e === "" || i.pathname === "", o = a ? "/" : i.pathname, s;
if (o == null) s = n;
else {
@@ -42969,13 +42970,13 @@ function mpe(e, t, n, r = !1) {
let c = dpe(i, s), l = o && o !== "/" && o.endsWith("/"), u = (a || o === ".") && n.endsWith("/");
return !c.pathname.endsWith("/") && (l || u) && (c.pathname += "/"), c;
}
-var yB = (e) => e.replace(/[\\/]{2,}/g, "/"), bB = (e) => yB(e.join("/"));
-function xB(e, t = 0) {
+var vB = (e) => e.replace(/[\\/]{2,}/g, "/"), yB = (e) => vB(e.join("/"));
+function bB(e, t = 0) {
let n = e.length;
for (; n > t && e.charCodeAt(n - 1) === 47;) n--;
return n === e.length ? e : e.slice(0, n);
}
-var hpe = (e) => xB(e).replace(/^\/*/, "/"), gpe = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, _pe = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, vpe = class {
+var hpe = (e) => bB(e).replace(/^\/*/, "/"), gpe = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, _pe = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, vpe = class {
status;
statusText;
data;
@@ -42989,9 +42990,9 @@ function ype(e) {
return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e;
}
function bpe(e) {
- return bB(e.map((e) => e.route.path).filter(Boolean)) || "/";
+ return yB(e.map((e) => e.route.path).filter(Boolean)) || "/";
}
-var SB = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;
+var xB = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;
function xpe(e, t) {
let n = e;
if (typeof n != "string" || !Ufe.test(n)) return {
@@ -43000,11 +43001,11 @@ function xpe(e, t) {
to: n
};
let r = n, i = !1;
- if (SB) try {
- let e = new URL(window.location.href), r = tB.test(n) ? new URL(Wfe(n, e.protocol)) : new URL(n), a = gB(r.pathname, t);
+ if (xB) try {
+ let e = new URL(window.location.href), r = eB.test(n) ? new URL(Wfe(n, e.protocol)) : new URL(n), a = hB(r.pathname, t);
r.origin === e.origin && a != null ? n = a + r.search + r.hash : i = !0;
} catch {
- aB(!1, `<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`);
+ iB(!1, `<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`);
}
return {
absoluteURL: r,
@@ -43014,16 +43015,16 @@ function xpe(e, t) {
}
//#endregion
//#region node_modules/react-router/dist/production/lib/router/navigation.js
-var CB = new URL("http://localhost");
-function wB(e) {
+var SB = new URL("http://localhost");
+function CB(e) {
if (e.createURL) return e.createURL("/");
try {
- return new URL(e.createHref("/"), CB);
+ return new URL(e.createHref("/"), SB);
} catch {
- return CB;
+ return SB;
}
}
-function TB(e, t) {
+function wB(e, t) {
return e.origin === t.origin && (e.origin !== "null" || e.protocol === t.protocol && e.host === t.host);
}
function Spe(e, t) {
@@ -43031,26 +43032,26 @@ function Spe(e, t) {
let n = t.protocol.toLowerCase();
return e.toLowerCase().startsWith(n) ? t.host === "" || e.slice(n.length).startsWith("//") : !1;
}
-function EB(e, t, n, r) {
+function TB(e, t, n, r) {
let i = null;
try {
i = e == null ? null : new URL(e, n);
} catch {}
- let a = new URL(t, n), o = i != null && !TB(i, n), s = !TB(a, n);
+ let a = new URL(t, n), o = i != null && !wB(i, n), s = !wB(a, n);
if (r === "reject") {
if (o || s) throw Error("External navigation is not allowed");
- } else if (s && (i == null || !Spe(e, i) || !TB(i, a))) throw Error("External navigation is not allowed");
+ } else if (s && (i == null || !Spe(e, i) || !wB(i, a))) throw Error("External navigation is not allowed");
}
//#endregion
//#region node_modules/react-router/dist/production/lib/router/router.js
-var DB = [
+var EB = [
"POST",
"PUT",
"PATCH",
"DELETE"
];
-new Set(DB);
-var Cpe = ["GET", ...DB];
+new Set(EB);
+var Cpe = ["GET", ...EB];
new Set(Cpe);
var wpe = [
"about:",
@@ -43073,12 +43074,12 @@ function Tpe(e) {
}
//#endregion
//#region node_modules/react-router/dist/production/lib/context.js
-var OB = D.createContext(null);
-OB.displayName = "DataRouter";
+var DB = D.createContext(null);
+DB.displayName = "DataRouter";
var Epe = D.createContext(null);
Epe.displayName = "DataRouterState";
-var kB = D.createContext(null);
-kB.displayName = "DataRouterData";
+var OB = D.createContext(null);
+OB.displayName = "DataRouterData";
var Dpe = D.createContext(null);
Dpe.displayName = "DataRouterNavigation";
var Ope = D.createContext(!1), kpe = D.createContext({ isTransitioning: !1 });
@@ -43087,62 +43088,62 @@ var Ape = D.createContext(null);
Ape.displayName = "Fetchers";
var jpe = D.createContext(null);
jpe.displayName = "Await";
+var kB = D.createContext(null);
+kB.displayName = "Navigation";
var AB = D.createContext(null);
-AB.displayName = "Navigation";
-var jB = D.createContext(null);
-jB.displayName = "Location";
-var MB = D.createContext({
+AB.displayName = "Location";
+var jB = D.createContext({
outlet: null,
matches: [],
isDataRoute: !1
});
-MB.displayName = "Route";
-var NB = D.createContext(!1);
-NB.displayName = "IsDataRoute";
-var PB = D.createContext(void 0);
-PB.displayName = "RouteId";
-var FB = D.createContext(null);
-FB.displayName = "RouteError";
+jB.displayName = "Route";
+var MB = D.createContext(!1);
+MB.displayName = "IsDataRoute";
+var NB = D.createContext(void 0);
+NB.displayName = "RouteId";
+var PB = D.createContext(null);
+PB.displayName = "RouteError";
//#endregion
//#region node_modules/react-router/dist/production/lib/errors.js
-var IB = "REACT_ROUTER_ERROR", Mpe = "REDIRECT", Npe = "ROUTE_ERROR_RESPONSE";
+var FB = "REACT_ROUTER_ERROR", Mpe = "REDIRECT", Npe = "ROUTE_ERROR_RESPONSE";
function Ppe(e) {
- if (e.startsWith(`${IB}:${Mpe}:{`)) try {
+ if (e.startsWith(`${FB}:${Mpe}:{`)) try {
let t = JSON.parse(e.slice(28));
if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string" && typeof t.location == "string" && typeof t.reloadDocument == "boolean" && typeof t.replace == "boolean") return t;
} catch {}
}
function Fpe(e) {
- if (e.startsWith(`${IB}:${Npe}:{`)) try {
+ if (e.startsWith(`${FB}:${Npe}:{`)) try {
let t = JSON.parse(e.slice(40));
if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string") return new vpe(t.status, t.statusText, t.data);
} catch {}
}
//#endregion
//#region node_modules/react-router/dist/production/lib/hooks.js
-function LB() {
- return D.useContext(jB) != null;
+function IB() {
+ return D.useContext(AB) != null;
}
-function RB() {
- return iB(LB(), "useLocation() may be used only in the context of a <Router> component."), D.useContext(jB).location;
+function LB() {
+ return rB(IB(), "useLocation() may be used only in the context of a <Router> component."), D.useContext(AB).location;
}
-var zB = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
+var RB = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
function Ipe() {
- return D.useContext(NB) ? Jpe() : Lpe();
+ return D.useContext(MB) ? Jpe() : Lpe();
}
function Lpe() {
- iB(LB(), "useNavigate() may be used only in the context of a <Router> component.");
- let e = D.useContext(OB), { basename: t, navigator: n } = D.useContext(AB), { matches: r } = D.useContext(MB), { pathname: i } = RB(), a = JSON.stringify(ppe(r)), o = D.useRef(!1);
+ rB(IB(), "useNavigate() may be used only in the context of a <Router> component.");
+ let e = D.useContext(DB), { basename: t, navigator: n } = D.useContext(kB), { matches: r } = D.useContext(jB), { pathname: i } = LB(), a = JSON.stringify(ppe(r)), o = D.useRef(!1);
return D.useLayoutEffect(() => {
o.current = !0;
}), D.useCallback((r, s = {}) => {
- if (aB(o.current, zB), !o.current) return;
+ if (iB(o.current, RB), !o.current) return;
if (typeof r == "number") {
n.go(r);
return;
}
let c = mpe(r, JSON.parse(a), i, s.relative === "path");
- e == null && t !== "/" && (c.pathname = c.pathname === "/" ? t : bB([t, c.pathname])), EB(typeof r == "string" ? r : cB(r), n.createHref(c), wB(n), "reject"), (s.replace ? n.replace : n.push)(c, s.state, s);
+ e == null && t !== "/" && (c.pathname = c.pathname === "/" ? t : yB([t, c.pathname])), TB(typeof r == "string" ? r : sB(r), n.createHref(c), CB(n), "reject"), (s.replace ? n.replace : n.push)(c, s.state, s);
}, [
t,
n,
@@ -43153,18 +43154,18 @@ function Lpe() {
}
D.createContext(null);
function Rpe(e, t) {
- return BB(e, t);
+ return zB(e, t);
}
-function BB(e, t, n) {
- iB(LB(), "useRoutes() may be used only in the context of a <Router> component.");
- let { navigator: r } = D.useContext(AB), { matches: i } = D.useContext(MB), a = i[i.length - 1], o = a ? a.params : {};
+function zB(e, t, n) {
+ rB(IB(), "useRoutes() may be used only in the context of a <Router> component.");
+ let { navigator: r } = D.useContext(kB), { matches: i } = D.useContext(jB), a = i[i.length - 1], o = a ? a.params : {};
a && a.pathname;
let s = a ? a.pathnameBase : "/";
a && a.route;
- let c = RB(), l;
+ let c = LB(), l;
if (t) {
- let e = typeof t == "string" ? lB(t) : t;
- iB(s === "/" || e.pathname?.startsWith(s), `When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${s}" but pathname "${e.pathname}" was given in the \`location\` prop.`), l = e;
+ let e = typeof t == "string" ? cB(t) : t;
+ rB(s === "/" || e.pathname?.startsWith(s), `When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${s}" but pathname "${e.pathname}" was given in the \`location\` prop.`), l = e;
} else l = c;
let u = l.pathname || "/", d = u;
if (s !== "/") {
@@ -43175,10 +43176,10 @@ function BB(e, t, n) {
f = n ? n.state.matches.length ? n.state.matches.map((e) => Object.assign(e, { route: n.manifest[e.route.id] || e.route })) : n.router.match(n.state.location) : Yfe(e, { pathname: d });
let p = Wpe(f && f.map((e) => Object.assign({}, e, {
params: Object.assign({}, o, e.params),
- pathname: bB([s, r.encodeLocation ? r.encodeLocation(e.pathname.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathname]),
- pathnameBase: e.pathnameBase === "/" ? s : bB([s, r.encodeLocation ? r.encodeLocation(e.pathnameBase.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathnameBase])
+ pathname: yB([s, r.encodeLocation ? r.encodeLocation(e.pathname.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathname]),
+ pathnameBase: e.pathnameBase === "/" ? s : yB([s, r.encodeLocation ? r.encodeLocation(e.pathnameBase.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathnameBase])
})), i, n);
- return t && p ? /* @__PURE__ */ D.createElement(jB.Provider, { value: {
+ return t && p ? /* @__PURE__ */ D.createElement(AB.Provider, { value: {
location: {
pathname: "/",
search: "",
@@ -43230,27 +43231,27 @@ var Bpe = /* @__PURE__ */ D.createElement(zpe, null), Vpe = class extends D.Comp
let t = Fpe(e.digest);
t && (e = t);
}
- let t = e === void 0 ? this.props.children : /* @__PURE__ */ D.createElement(MB.Provider, { value: this.props.routeContext }, /* @__PURE__ */ D.createElement(NB.Provider, { value: this.props.routeContext.isDataRoute }, /* @__PURE__ */ D.createElement(PB.Provider, { value: this.props.routeContext.matches[this.props.routeContext.matches.length - 1]?.route.id }, /* @__PURE__ */ D.createElement(FB.Provider, {
+ let t = e === void 0 ? this.props.children : /* @__PURE__ */ D.createElement(jB.Provider, { value: this.props.routeContext }, /* @__PURE__ */ D.createElement(MB.Provider, { value: this.props.routeContext.isDataRoute }, /* @__PURE__ */ D.createElement(NB.Provider, { value: this.props.routeContext.matches[this.props.routeContext.matches.length - 1]?.route.id }, /* @__PURE__ */ D.createElement(PB.Provider, {
value: e,
children: this.props.component
}))));
return this.context ? /* @__PURE__ */ D.createElement(Hpe, { error: e }, t) : t;
}
-}, VB = /* @__PURE__ */ new WeakMap();
+}, BB = /* @__PURE__ */ new WeakMap();
function Hpe({ children: e, error: t }) {
- let { basename: n, navigator: r } = D.useContext(AB);
+ let { basename: n, navigator: r } = D.useContext(kB);
if (typeof t == "object" && t && "digest" in t && typeof t.digest == "string") {
let e = Ppe(t.digest);
if (e) {
- let i = VB.get(t);
+ let i = BB.get(t);
if (i) throw i;
let a = xpe(e.location, n), o = a.absoluteURL || a.to;
- if (EB(e.location, o, wB(r), "allow-explicit"), Tpe(o)) throw Error("Invalid redirect location");
- if (SB && !VB.get(t)) {
+ if (TB(e.location, o, CB(r), "allow-explicit"), Tpe(o)) throw Error("Invalid redirect location");
+ if (xB && !BB.get(t)) {
if (a.isExternal || e.reloadDocument) window.location.href = o;
else {
let n = Promise.resolve().then(() => window.__reactRouterDataRouter.navigate(a.to, { replace: e.replace }));
- throw VB.set(t, n), n;
+ throw BB.set(t, n), n;
}
}
return /* @__PURE__ */ D.createElement("meta", {
@@ -43262,8 +43263,8 @@ function Hpe({ children: e, error: t }) {
return e;
}
function Upe({ routeContext: e, match: t, children: n }) {
- let r = D.useContext(OB);
- return r && r.static && r.staticContext && (t.route.errorElement || t.route.ErrorBoundary) && (r.staticContext._deepestRenderedBoundaryId = t.route.id), /* @__PURE__ */ D.createElement(MB.Provider, { value: e }, /* @__PURE__ */ D.createElement(NB.Provider, { value: e.isDataRoute }, /* @__PURE__ */ D.createElement(PB.Provider, { value: t.route.id }, n)));
+ let r = D.useContext(DB);
+ return r && r.static && r.staticContext && (t.route.errorElement || t.route.ErrorBoundary) && (r.staticContext._deepestRenderedBoundaryId = t.route.id), /* @__PURE__ */ D.createElement(jB.Provider, { value: e }, /* @__PURE__ */ D.createElement(MB.Provider, { value: e.isDataRoute }, /* @__PURE__ */ D.createElement(NB.Provider, { value: t.route.id }, n)));
}
function Wpe(e, t = [], n) {
let r = n?.state;
@@ -43276,7 +43277,7 @@ function Wpe(e, t = [], n) {
let i = e, a = r?.errors;
if (a != null) {
let e = i.findIndex((e) => e.route.id && a?.[e.route.id] !== void 0);
- iB(e >= 0, `Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`), i = i.slice(0, Math.min(i.length, e + 1));
+ rB(e >= 0, `Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`), i = i.slice(0, Math.min(i.length, e + 1));
}
let o = !1, s = -1;
if (n && r) {
@@ -43330,44 +43331,44 @@ function Wpe(e, t = [], n) {
}) : h();
}, null);
}
-function HB(e) {
+function VB(e) {
return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
}
function Gpe(e) {
- let t = D.useContext(OB);
- return iB(t, HB(e)), t;
+ let t = D.useContext(DB);
+ return rB(t, VB(e)), t;
}
function Kpe(e) {
- let t = D.useContext(kB);
- return iB(t, HB(e)), t;
+ let t = D.useContext(OB);
+ return rB(t, VB(e)), t;
}
-function UB(e) {
- let t = D.useContext(PB);
- return iB(t, `${e} can only be used on routes that contain a unique "id"`), t;
+function HB(e) {
+ let t = D.useContext(NB);
+ return rB(t, `${e} can only be used on routes that contain a unique "id"`), t;
}
function qpe() {
- let e = D.useContext(FB), t = Kpe("useRouteError"), n = UB("useRouteError");
+ let e = D.useContext(PB), t = Kpe("useRouteError"), n = HB("useRouteError");
return e === void 0 ? t.errors?.[n] : e;
}
function Jpe() {
- let { router: e } = Gpe("useNavigate"), t = UB("useNavigate"), n = D.useRef(!1);
+ let { router: e } = Gpe("useNavigate"), t = HB("useNavigate"), n = D.useRef(!1);
return D.useLayoutEffect(() => {
n.current = !0;
}), D.useCallback(async (r, i = {}) => {
- aB(n.current, zB), n.current && (typeof r == "number" ? await e.navigate(r) : await e.navigate(r, {
+ iB(n.current, RB), n.current && (typeof r == "number" ? await e.navigate(r) : await e.navigate(r, {
fromRouteId: t,
...i
}));
}, [e, t]);
}
-var WB = {};
+var UB = {};
function Ype(e, t, n) {
- !t && !WB[e] && (WB[e] = !0, aB(!1, n));
+ !t && !UB[e] && (UB[e] = !0, iB(!1, n));
}
D.memo(Xpe);
function Xpe({ routes: e, manifest: t, state: n, isStatic: r, onError: i }) {
- let a = D.useContext(OB);
- return iB(a, "You must render this element inside a <DataRouterContext.Provider> element"), BB(e, void 0, {
+ let a = D.useContext(DB);
+ return rB(a, "You must render this element inside a <DataRouterContext.Provider> element"), zB(e, void 0, {
router: a.router,
manifest: t,
state: n,
@@ -43375,11 +43376,11 @@ function Xpe({ routes: e, manifest: t, state: n, isStatic: r, onError: i }) {
onError: i
});
}
-function GB(e) {
- iB(!1, "A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.");
+function WB(e) {
+ rB(!1, "A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.");
}
function Zpe({ basename: e = "/", children: t = null, location: n, navigationType: r = "POP", navigator: i, static: a = !1, useTransitions: o }) {
- iB(!LB(), "You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");
+ rB(!IB(), "You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");
let s = e.replace(/^\/*/, "/"), c = D.useMemo(() => ({
basename: s,
navigator: i,
@@ -43392,9 +43393,9 @@ function Zpe({ basename: e = "/", children: t = null, location: n, navigationTyp
a,
o
]);
- typeof n == "string" && (n = lB(n));
+ typeof n == "string" && (n = cB(n));
let { pathname: l = "/", search: u = "", hash: d = "", state: f = null, key: p = "default", mask: m } = n, h = D.useMemo(() => {
- let e = gB(l, s);
+ let e = hB(l, s);
return e == null ? null : {
location: {
pathname: e,
@@ -43416,27 +43417,27 @@ function Zpe({ basename: e = "/", children: t = null, location: n, navigationTyp
r,
m
]);
- return aB(h != null, `<Router basename="${s}"> is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`), h == null ? null : /* @__PURE__ */ D.createElement(AB.Provider, { value: c }, /* @__PURE__ */ D.createElement(jB.Provider, {
+ return iB(h != null, `<Router basename="${s}"> is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`), h == null ? null : /* @__PURE__ */ D.createElement(kB.Provider, { value: c }, /* @__PURE__ */ D.createElement(AB.Provider, {
children: t,
value: h
}));
}
-function KB({ children: e, location: t }) {
- return Rpe(qB(e), t);
+function GB({ children: e, location: t }) {
+ return Rpe(KB(e), t);
}
D.Component;
-function qB(e, t = []) {
+function KB(e, t = []) {
let n = [];
return D.Children.forEach(e, (e, r) => {
if (!D.isValidElement(e)) return;
let i = [...t, r];
if (e.type === D.Fragment) {
- n.push.apply(n, qB(e.props.children, i));
+ n.push.apply(n, KB(e.props.children, i));
return;
}
- iB(e.type === GB, `[${typeof e.type == "string" ? e.type : e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`);
+ rB(e.type === WB, `[${typeof e.type == "string" ? e.type : e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`);
let a = e.props;
- iB(!a.index || !a.children, "An index route cannot have child routes.");
+ rB(!a.index || !a.children, "An index route cannot have child routes.");
let o = {
id: a.id || i.join("-"),
caseSensitive: a.caseSensitive,
@@ -43455,7 +43456,7 @@ function qB(e, t = []) {
handle: a.handle,
lazy: a.lazy
};
- a.children && (o.children = qB(a.children, i)), n.push(o);
+ a.children && (o.children = KB(a.children, i)), n.push(o);
}), n;
}
//#endregion
@@ -43493,7 +43494,7 @@ function eme(e) {
})
});
}
-function JB(e) {
+function qB(e) {
return /* @__PURE__ */ (0, O.jsx)("svg", {
viewBox: "0 0 24 24",
fill: "none",
@@ -43512,7 +43513,7 @@ function tme({ children: e, "aria-label": t = "Breadcrumb", className: n, ref: r
return /* @__PURE__ */ (0, O.jsx)("nav", {
ref: r,
"aria-label": t,
- className: tF("flex w-full items-center overflow-x-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden", n),
+ className: eF("flex w-full items-center overflow-x-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden", n),
children: /* @__PURE__ */ (0, O.jsx)("ol", {
className: "flex items-center gap-2.5 px-1",
children: i.map((e, t) => /* @__PURE__ */ (0, O.jsxs)(D.Fragment, { children: [t > 0 && /* @__PURE__ */ (0, O.jsx)(eme, {
@@ -43522,17 +43523,17 @@ function tme({ children: e, "aria-label": t = "Breadcrumb", className: n, ref: r
})
});
}
-function YB({ children: e, icon: t, href: n, onClick: r, current: i = !1, className: a }) {
+function JB({ children: e, icon: t, href: n, onClick: r, current: i = !1, className: a }) {
let o = /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [t && /* @__PURE__ */ (0, O.jsx)(t, {
className: "size-4 shrink-0",
"aria-hidden": !0
}), e] });
if (i) return /* @__PURE__ */ (0, O.jsx)("li", {
"aria-current": "page",
- className: tF("flex items-center gap-1.5 text-caption-1-medium whitespace-nowrap text-text-secondary", a),
+ className: eF("flex items-center gap-1.5 text-caption-1-medium whitespace-nowrap text-text-secondary", a),
children: o
});
- let s = tF("-mx-1 flex items-center gap-1.5 rounded-md px-1 py-0.5 text-caption-1-medium whitespace-nowrap text-text-tertiary", "transition-colors duration-150 ease outline-none", "hover:bg-background-primary-hover hover:text-text-secondary", "focus-visible:ring-2 focus-visible:ring-border-focus-ring", a);
+ let s = eF("-mx-1 flex items-center gap-1.5 rounded-md px-1 py-0.5 text-caption-1-medium whitespace-nowrap text-text-tertiary", "transition-colors duration-150 ease outline-none", "hover:bg-background-primary-hover hover:text-text-secondary", "focus-visible:ring-2 focus-visible:ring-border-focus-ring", a);
return /* @__PURE__ */ (0, O.jsx)("li", {
className: "flex items-center",
children: n ? /* @__PURE__ */ (0, O.jsx)(Qpe, {
@@ -43542,19 +43543,19 @@ function YB({ children: e, icon: t, href: n, onClick: r, current: i = !1, classN
}) : /* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
onClick: r,
- className: tF("cursor-pointer", s),
+ className: eF("cursor-pointer", s),
children: o
})
});
}
//#endregion
//#region src/react/boardui/components/foundations/direction/direction.tsx
-function XB() {
- return gS().direction;
+function YB() {
+ return hS().direction;
}
//#endregion
//#region src/react/boardui/components/base/dropdown/menu-styles.ts
-var ZB = [
+var XB = [
"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",
@@ -43562,11 +43563,11 @@ var ZB = [
"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(" "), nme = "w-[266px]", rme = "flex w-full flex-col gap-1 outline-none", QB = ["flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left", "text-text-primary outline-none transition-colors"].join(" "), $B = "hover:bg-dropdown-item-hover-background focus-visible:bg-dropdown-item-hover-background";
+].join(" "), nme = "w-[266px]", rme = "flex w-full flex-col gap-1 outline-none", ZB = ["flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left", "text-text-primary outline-none transition-colors"].join(" "), QB = "hover:bg-dropdown-item-hover-background focus-visible:bg-dropdown-item-hover-background";
//#endregion
//#region src/react/boardui/components/base/tree-view/tree-view.tsx
function ime({ size: e = "md", showGuides: t = !0, selectionMode: n = "single", renderEmptyState: r = () => "No items.", className: i, onKeyDownCapture: a, ref: o, ...s }) {
- let c = XB(), l = (0, D.useContext)(fI), u = l === lI && !s.dragAndDropHooks ? tV : l;
+ let c = YB(), l = (0, D.useContext)(dI), u = l === cI && !s.dragAndDropHooks ? eV : l;
return /* @__PURE__ */ (0, O.jsx)("div", {
className: "contents",
onKeyDownCapture: (e) => {
@@ -43583,7 +43584,7 @@ function ime({ size: e = "md", showGuides: t = !0, selectionMode: n = "single",
}
}
},
- children: /* @__PURE__ */ (0, O.jsx)(fI.Provider, {
+ children: /* @__PURE__ */ (0, O.jsx)(dI.Provider, {
value: u,
children: /* @__PURE__ */ (0, O.jsx)(Bde, {
...s,
@@ -43592,13 +43593,13 @@ function ime({ size: e = "md", showGuides: t = !0, selectionMode: n = "single",
"data-size": e,
"data-show-guides": t,
renderEmptyState: r,
- className: (e) => tF("group/tree-view flex w-full min-w-0 flex-col rounded-3xl border border-border-button-default bg-background-primary-default p-2 outline-none", u === tV ? "gap-0" : "gap-0.5", "data-[empty]:px-4 data-[empty]:py-8 data-[empty]:text-center data-[empty]:text-body-regular data-[empty]:text-text-tertiary", "data-[focus-visible]:ring-2 data-[focus-visible]:ring-border-focus-ring", typeof i == "function" ? i(e) : i)
+ className: (e) => eF("group/tree-view flex w-full min-w-0 flex-col rounded-3xl border border-border-button-default bg-background-primary-default p-2 outline-none", u === eV ? "gap-0" : "gap-0.5", "data-[empty]:px-4 data-[empty]:py-8 data-[empty]:text-center data-[empty]:text-body-regular data-[empty]:text-text-tertiary", "data-[focus-visible]:ring-2 data-[focus-visible]:ring-border-focus-ring", typeof i == "function" ? i(e) : i)
})
})
});
}
-function eV({ label: e, textValue: t = e, icon: n, expandedIcon: r, iconClassName: i, trailingContent: a, children: o, className: s, style: c, ref: l, ...u }) {
- let d = XB();
+function $B({ label: e, textValue: t = e, icon: n, expandedIcon: r, iconClassName: i, trailingContent: a, children: o, className: s, style: c, ref: l, ...u }) {
+ let d = YB();
return /* @__PURE__ */ (0, O.jsxs)(Ude, {
...u,
ref: l,
@@ -43607,9 +43608,9 @@ function eV({ label: e, textValue: t = e, icon: n, expandedIcon: r, iconClassNam
paddingInlineStart: `calc(0.5rem + ${e.level - 1} * 1.25rem)`,
...typeof c == "function" ? c(e) : c
}),
- className: (e) => tF("relative flex min-h-9 min-w-0 cursor-pointer items-center gap-2 rounded-xl pe-2 text-body-regular text-text-primary outline-none", "transition-[background-color,color,box-shadow] duration-150 motion-reduce:transition-none", "group-data-[size=sm]/tree-view:min-h-8 group-data-[size=sm]/tree-view:text-body-2-regular", (e.isHovered || e.isPressed || e.isFocusVisible) && !e.isDisabled && "bg-dropdown-item-hover-background", e.isSelected && "bg-dropdown-item-hover-background", e.isFocusVisible && "ring-2 ring-inset ring-border-focus-ring", e.isDisabled && "cursor-default text-text-placeholder", typeof s == "function" ? s(e) : s),
+ className: (e) => eF("relative flex min-h-9 min-w-0 cursor-pointer items-center gap-2 rounded-xl pe-2 text-body-regular text-text-primary outline-none", "transition-[background-color,color,box-shadow] duration-150 motion-reduce:transition-none", "group-data-[size=sm]/tree-view:min-h-8 group-data-[size=sm]/tree-view:text-body-2-regular", (e.isHovered || e.isPressed || e.isFocusVisible) && !e.isDisabled && "bg-dropdown-item-hover-background", e.isSelected && "bg-dropdown-item-hover-background", e.isFocusVisible && "ring-2 ring-inset ring-border-focus-ring", e.isDisabled && "cursor-default text-text-placeholder", typeof s == "function" ? s(e) : s),
children: [/* @__PURE__ */ (0, O.jsx)(Hde, { children: ({ hasChildItems: t, isExpanded: o, isDisabled: s, level: c, state: l, id: u }) => {
- let f = n === null ? null : o && r ? r : n ?? (t ? o ? gz : hz : mfe);
+ let f = n === null ? null : o && r ? r : n ?? (t ? o ? hz : mz : mfe);
return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [
/* @__PURE__ */ (0, O.jsx)(ome, {
state: l,
@@ -43621,20 +43622,20 @@ function eV({ label: e, textValue: t = e, icon: n, expandedIcon: r, iconClassNam
}),
/* @__PURE__ */ (0, O.jsxs)("span", {
className: "flex shrink-0 items-center gap-1",
- children: [t ? /* @__PURE__ */ (0, O.jsx)(vI, {
+ children: [t ? /* @__PURE__ */ (0, O.jsx)(_I, {
slot: "chevron",
isDisabled: s,
className: "flex size-5 shrink-0 cursor-pointer items-center justify-center rounded-md text-foreground-icon-tertiary outline-none transition-colors hover:text-foreground-icon-primary data-[focus-visible]:ring-2 data-[focus-visible]:ring-border-focus-ring",
- children: /* @__PURE__ */ (0, O.jsx)(fz, {
+ children: /* @__PURE__ */ (0, O.jsx)(dz, {
"aria-hidden": !0,
- className: tF("size-4 opacity-50 transition-transform duration-150 motion-reduce:transition-none", o ? "rotate-90" : d === "rtl" && "rotate-180")
+ className: eF("size-4 opacity-50 transition-transform duration-150 motion-reduce:transition-none", o ? "rotate-90" : d === "rtl" && "rotate-180")
})
}) : /* @__PURE__ */ (0, O.jsx)("span", {
"aria-hidden": !0,
- className: tF("h-5 shrink-0", c > 1 ? "w-2" : "w-5")
+ className: eF("h-5 shrink-0", c > 1 ? "w-2" : "w-5")
}), f && /* @__PURE__ */ (0, O.jsx)(f, {
"aria-hidden": !0,
- className: tF("size-4 shrink-0 opacity-50", t ? "text-foreground-icon-primary" : "text-foreground-icon-secondary", i)
+ className: eF("size-4 shrink-0 opacity-50", t ? "text-foreground-icon-primary" : "text-foreground-icon-secondary", i)
})]
}),
/* @__PURE__ */ (0, O.jsx)("span", {
@@ -43649,19 +43650,19 @@ function eV({ label: e, textValue: t = e, icon: n, expandedIcon: r, iconClassNam
} }), o]
});
}
-var tV = {
- ...lI,
+var eV = {
+ ...cI,
CollectionRoot: ame
};
function ame({ collection: e, ...t }) {
- let n = (0, D.useContext)(sz);
- return n ? /* @__PURE__ */ (0, O.jsx)(Nv, {
+ let n = (0, D.useContext)(oz);
+ return n ? /* @__PURE__ */ (0, O.jsx)(Mv, {
initial: !1,
children: Array.from(e).filter((e) => e.type !== "content").map((e) => /* @__PURE__ */ (0, O.jsx)(sme, {
state: n,
children: e.render?.(e)
}, e.key))
- }) : /* @__PURE__ */ (0, O.jsx)(lI.CollectionRoot, {
+ }) : /* @__PURE__ */ (0, O.jsx)(cI.CollectionRoot, {
collection: e,
...t
});
@@ -43699,7 +43700,7 @@ function ome({ state: e, id: t, level: n, expanded: r, branchWidth: i, direction
height: "7",
viewBox: `0 0 ${i} 7`,
fill: "none",
- className: tF("absolute start-0", a === "rtl" && "-scale-x-100"),
+ className: eF("absolute start-0", a === "rtl" && "-scale-x-100"),
style: { top: "calc(50% - 6px)" },
children: /* @__PURE__ */ (0, O.jsx)("path", {
d: `M0.5 0 Q0.5 6 6.5 6 H${i - .5}`,
@@ -43726,8 +43727,8 @@ function ome({ state: e, id: t, level: n, expanded: r, branchWidth: i, direction
});
}
function sme({ state: e, children: t }) {
- let n = Av(), r = Oy(), [i, a] = (0, D.useState)(e);
- return n && i !== e && a(e), /* @__PURE__ */ (0, O.jsx)(Iy.div, {
+ let n = kv(), r = Dy(), [i, a] = (0, D.useState)(e);
+ return n && i !== e && a(e), /* @__PURE__ */ (0, O.jsx)(Fy.div, {
role: "presentation",
className: "relative min-w-0 shrink-0 overflow-hidden",
"data-tree-view-exiting": !n || void 0,
@@ -43766,7 +43767,7 @@ function sme({ state: e, children: t }) {
1
]
},
- children: /* @__PURE__ */ (0, O.jsx)(sz.Provider, {
+ children: /* @__PURE__ */ (0, O.jsx)(oz.Provider, {
value: n ? e : i,
children: t
})
@@ -43774,7 +43775,7 @@ function sme({ state: e, children: t }) {
}
//#endregion
//#region src/react/boardui/components/base/checkbox/checkbox-glyph.tsx
-var nV = {
+var tV = {
md: {
box: "size-4",
glyph: "size-4",
@@ -43788,11 +43789,11 @@ var nV = {
gap: "gap-1.5"
}
};
-function rV({ state: e, size: t = "md" }) {
- let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = nV[t], c = n || r, l = o && !a;
+function nV({ state: e, size: t = "md" }) {
+ let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = tV[t], c = n || r, l = o && !a;
return /* @__PURE__ */ (0, O.jsx)("span", {
"aria-hidden": !0,
- className: tF("flex shrink-0 items-center justify-center rounded-sm", "transition-[background-color,border-color,box-shadow] duration-150 ease", s.box, c ? tF("bg-linear-to-b shadow-checkbox-selected", l ? "from-accent-400 to-accent-500" : "from-accent-500 to-accent-600") : tF("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"),
+ className: eF("flex shrink-0 items-center justify-center rounded-sm", "transition-[background-color,border-color,box-shadow] duration-150 ease", s.box, c ? eF("bg-linear-to-b shadow-checkbox-selected", l ? "from-accent-400 to-accent-500" : "from-accent-500 to-accent-600") : eF("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, O.jsx)("svg", {
viewBox: "0 0 16 16",
fill: "none",
@@ -43816,24 +43817,24 @@ function rV({ state: e, size: t = "md" }) {
}
//#endregion
//#region src/react/boardui/components/base/checkbox/checkbox.tsx
-function iV({ className: e, children: t, size: n = "md", ref: r, ...i }) {
- let a = nV[n];
- return /* @__PURE__ */ (0, O.jsx)(MI, {
+function rV({ className: e, children: t, size: n = "md", ref: r, ...i }) {
+ let a = tV[n];
+ return /* @__PURE__ */ (0, O.jsx)(jI, {
ref: r,
...i,
- className: (t) => tF("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, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(rV, {
+ className: (t) => eF("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, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(nV, {
state: e,
size: n
}), t != null && /* @__PURE__ */ (0, O.jsx)("span", {
- className: tF(a.label, "text-text-primary"),
+ className: eF(a.label, "text-text-primary"),
children: t
})] })
});
}
//#endregion
//#region src/react/components/overlay-scrollbar.ts
-function aV() {
+function iV() {
let e = (0, D.useRef)(null);
return (0, D.useEffect)(() => {
$a(e.current);
@@ -43841,13 +43842,13 @@ function aV() {
}
//#endregion
//#region src/history/settings-route.ts
-var oV = {
+var aV = {
appearance: "外观与导航",
playback: "浏览与播放",
jav: "JAV 与新作",
search: "搜索与推荐",
content: "内容显示"
-}, sV = {
+}, oV = {
library: "媒体库与入库",
subscriptions: "来源与订阅",
downloads: "下载渠道",
@@ -43855,23 +43856,23 @@ var oV = {
maintenance: "应用与维护",
diagnostics: "系统诊断"
};
-function cV(e) {
- return sV[e.split("/")[2]] || sV.library;
+function sV(e) {
+ return oV[e.split("/")[2]] || oV.library;
}
-var lV = ["/settings", ...Object.keys(oV).map((e) => `/settings/${e}`)], uV = (e) => lV.includes(e);
-function dV(e) {
- return oV[e.split("/")[2]] || oV.appearance;
+var cV = ["/settings", ...Object.keys(aV).map((e) => `/settings/${e}`)], lV = (e) => cV.includes(e);
+function uV(e) {
+ return aV[e.split("/")[2]] || aV.appearance;
}
-function fV(e) {
+function dV(e) {
return `/settings/${Object.entries({
- ...oV,
- ...sV
+ ...aV,
+ ...oV
}).find(([, t]) => t === e)?.[0] || "appearance"}`;
}
-var pV = (e) => {
+var fV = (e) => {
let t = e?.settingsBackground;
return t && typeof t.pathname == "string" ? t : null;
-}, mV = [
+}, pV = [
"/assets/:id",
"/posts/:id",
"/works/:code"
@@ -43881,11 +43882,11 @@ var pV = (e) => {
"editions",
"playlist"
];
-function hV(e, t = "") {
+function mV(e, t = "") {
let n = new URL(e, "https://peach.invalid");
e = n.pathname, t ||= n.search;
- for (let n of mV) {
- let r = pB(n, e);
+ for (let n of pV) {
+ let r = fB(n, e);
if (!r) continue;
if (n === "/works/:code") {
let e = r.params.code || "";
@@ -43926,8 +43927,8 @@ function hV(e, t = "") {
}
return null;
}
-var gV = (e, t = "") => hV(e, t)?.target ?? null, _V = (e) => uV(e.split(/[?#]/)[0]) || mV.some((t) => pB(t, e.split(/[?#]/)[0]) !== null);
-function vV(e) {
+var hV = (e, t = "") => mV(e, t)?.target ?? null, gV = (e) => lV(e.split(/[?#]/)[0]) || pV.some((t) => fB(t, e.split(/[?#]/)[0]) !== null);
+function _V(e) {
let t = e?.backgroundLocation;
return typeof t?.pathname == "string" ? {
pathname: t.pathname,
@@ -43935,35 +43936,35 @@ function vV(e) {
...typeof t.hash == "string" && t.hash ? { hash: t.hash } : {}
} : null;
}
-var yV = null, bV = null;
-function xV() {
+var vV = null, yV = null;
+function bV() {
let { pathname: e, search: t, hash: n } = window.location;
- _V(e) || (yV = {
+ gV(e) || (vV = {
pathname: e,
search: t,
...n ? { hash: n } : {}
});
}
-function SV() {
- yV = null, bV = null;
+function xV() {
+ vV = null, yV = null;
}
function lme(e) {
- let t = vV(e);
- t && (yV = t, bV = t.pathname + t.search + (t.hash || ""));
+ let t = _V(e);
+ t && (vV = t, yV = t.pathname + t.search + (t.hash || ""));
}
-function CV() {
- let e = bV;
- return bV = null, e;
+function SV() {
+ let e = yV;
+ return yV = null, e;
}
-function wV(e) {
- return yV ? {
- backgroundLocation: { ...yV },
+function CV(e) {
+ return vV ? {
+ backgroundLocation: { ...vV },
overlay: e
} : void 0;
}
//#endregion
//#region src/history/canonical-path.ts
-function TV(e) {
+function wV(e) {
let t = new URL(e, "https://peach.invalid");
for (let [e, n] of [
[/^\/item\/(\d+)$/, "/assets/"],
@@ -43987,16 +43988,16 @@ function TV(e) {
}
//#endregion
//#region src/history/route-meta.ts
-var EV = {
+var TV = {
"/settings": {
title: "设置",
refresh: "skip"
},
- ...Object.fromEntries(Object.entries(oV).map(([e, t]) => [`/settings/${e}`, {
+ ...Object.fromEntries(Object.entries(aV).map(([e, t]) => [`/settings/${e}`, {
title: t,
refresh: "skip"
}])),
- ...Object.fromEntries(Object.entries(sV).map(([e, t]) => [`/settings/${e}`, {
+ ...Object.fromEntries(Object.entries(oV).map(([e, t]) => [`/settings/${e}`, {
title: t,
section: "configuration",
refresh: "reopen"
@@ -44127,13 +44128,13 @@ var EV = {
title: "播放墙"
}
};
-function DV(e) {
- if (Object.hasOwn(EV, e)) return EV[e];
- let t = hV(e);
- if (t) return EV[t.path];
+function EV(e) {
+ if (Object.hasOwn(TV, e)) return TV[e];
+ let t = mV(e);
+ if (t) return TV[t.path];
let [n, ...r] = e.split("/").filter(Boolean);
if (!n) return null;
- if (!r.length) return Object.hasOwn(EV, `/${n}`) ? EV[`/${n}`] : null;
+ if (!r.length) return Object.hasOwn(TV, `/${n}`) ? TV[`/${n}`] : null;
let i = `/${n}/*`, a = /^\d+$/.test(r.join("/")) ? Mt({
performers: "performer",
studios: "studio",
@@ -44142,126 +44143,126 @@ function DV(e) {
series: "series",
tags: "tag"
}[n] || "", Number(r[0])) : r.join("/");
- return Object.hasOwn(EV, i) ? {
- ...EV[i],
+ return Object.hasOwn(TV, i) ? {
+ ...TV[i],
title: a || "资料"
} : null;
}
//#endregion
//#region src/history/managed.ts
-var OV = () => {}, kV = new Promise((e) => {
- OV = e;
+var DV = () => {}, OV = new Promise((e) => {
+ DV = e;
});
-kV.catch(() => {});
-var AV = null, jV = /* @__PURE__ */ new Map(), MV = /* @__PURE__ */ new Map(), NV = 0, PV = /* @__PURE__ */ new Set();
+OV.catch(() => {});
+var kV = null, AV = /* @__PURE__ */ new Map(), jV = /* @__PURE__ */ new Map(), MV = 0, NV = /* @__PURE__ */ new Set();
function ume(e) {
- OV(e);
+ DV(e);
}
-function FV(e) {
- return jV.get(e) ?? null;
+function PV(e) {
+ return AV.get(e) ?? null;
}
-function IV(e) {
- return !!e && (jV.has(e) || MV.has(e));
+function FV(e) {
+ return !!e && (AV.has(e) || jV.has(e));
}
-var LV = () => [...jV.values()];
+var IV = () => [...AV.values()];
function dme(e) {
- return PV.add(e), () => {
- PV.delete(e);
+ return NV.add(e), () => {
+ NV.delete(e);
};
}
-function RV(e) {
- let t = LV();
- for (let n of [...PV]) n(t, e);
+function LV(e) {
+ let t = IV();
+ for (let n of [...NV]) n(t, e);
}
-async function zV(e, t, n) {
+async function RV(e, t, n) {
let { container: r } = n;
- if (VV(r), !n.isCurrent()) return !1;
- NV += 1;
+ if (BV(r), !n.isCurrent()) return !1;
+ MV += 1;
let i = {
- revision: NV,
+ revision: MV,
controller: new AbortController()
};
- MV.set(r, i);
- let a = AV;
- AV = null, a?.();
- let o = await kV;
- if (MV.get(r) !== i) return !1;
+ jV.set(r, i);
+ let a = kV;
+ kV = null, a?.();
+ let o = await OV;
+ if (jV.get(r) !== i) return !1;
try {
await o(e, t, i.controller.signal);
} catch {
if (i.controller.signal.aborted) return !1;
}
- if (MV.get(r) !== i || (MV.delete(r), !n.isCurrent())) return !1;
+ if (jV.get(r) !== i || (jV.delete(r), !n.isCurrent())) return !1;
let s = n.place ? n.place(r) : fme(r);
- return jV.set(r, {
+ return AV.set(r, {
path: e,
props: t,
revision: i.revision,
container: r,
host: s,
resident: !!n.resident
- }), RV(!0), !0;
+ }), LV(!0), !0;
}
function fme(e) {
let t = e.ownerDocument.createElement("div");
return t.className = "peach-react", e.textContent = "", e.append(t), t;
}
-function BV(e, t) {
- let n = e ? jV.get(e) : void 0;
- n && (jV.set(n.container, {
+function zV(e, t) {
+ let n = e ? AV.get(e) : void 0;
+ n && (AV.set(n.container, {
...n,
props: {
...n.props,
...t
}
- }), RV(!1));
+ }), LV(!1));
}
-function VV(e, ...t) {
+function BV(e, ...t) {
let n = [];
for (let r of /* @__PURE__ */ new Set([e, ...t])) {
- let e = MV.get(r);
- e && (e.controller.abort(), MV.delete(r));
- let t = jV.get(r);
- t && (jV.delete(r), n.push(t));
+ let e = jV.get(r);
+ e && (e.controller.abort(), jV.delete(r));
+ let t = AV.get(r);
+ t && (AV.delete(r), n.push(t));
}
if (n.length) {
- RV(!0);
+ LV(!0);
for (let e of n) e.resident || e.host.remove();
}
}
function pme() {
- let [e, ...t] = /* @__PURE__ */ new Set([...jV.keys(), ...MV.keys()]);
- e && VV(e, ...t);
+ let [e, ...t] = /* @__PURE__ */ new Set([...AV.keys(), ...jV.keys()]);
+ e && BV(e, ...t);
}
function mme(e, t) {
- let n = jV.get(e);
- n?.revision === t && (jV.delete(e), n.resident || n.host.remove(), queueMicrotask(() => {
- RV(!1);
+ let n = AV.get(e);
+ n?.revision === t && (AV.delete(e), n.resident || n.host.remove(), queueMicrotask(() => {
+ LV(!1);
}));
}
//#endregion
//#region src/history/index.ts
-var HV = Gfe({ v5Compat: !0 }), UV = 0, WV = 0, GV = {
- action: HV.action,
- location: HV.location,
- seq: UV,
- openEpoch: WV,
+var VV = Gfe({ v5Compat: !0 }), HV = 0, UV = 0, WV = {
+ action: VV.action,
+ location: VV.location,
+ seq: HV,
+ openEpoch: UV,
claimed: !0
-}, KV = /* @__PURE__ */ new Set(), qV = !1, JV = !0;
-HV.listen(({ action: e, location: t }) => {
- let n = t.pathname + t.search + t.hash, r = TV(n);
- r !== n && (window.history.replaceState(window.history.state, "", r), t = HV.location), UV += 1, qV || (WV += 1), e !== "REPLACE" && (JV = !1), GV = {
+}, GV = /* @__PURE__ */ new Set(), KV = !1, qV = !0;
+VV.listen(({ action: e, location: t }) => {
+ let n = t.pathname + t.search + t.hash, r = wV(n);
+ r !== n && (window.history.replaceState(window.history.state, "", r), t = VV.location), HV += 1, KV || (UV += 1), e !== "REPLACE" && (qV = !1), WV = {
action: e,
location: t,
- seq: UV,
- openEpoch: WV,
- claimed: qV
+ seq: HV,
+ openEpoch: UV,
+ claimed: KV
};
- for (let e of [...KV]) e(GV);
+ for (let e of [...GV]) e(WV);
});
-function YV(e) {
- if (typeof e == "string") return TV(new URL(e, window.location.href).href);
- let t = new URL(`${e.pathname ?? window.location.pathname}${e.search || ""}${e.hash || ""}`, window.location.href), n = TV(t.href);
+function JV(e) {
+ if (typeof e == "string") return wV(new URL(e, window.location.href).href);
+ let t = new URL(`${e.pathname ?? window.location.pathname}${e.search || ""}${e.hash || ""}`, window.location.href), n = wV(t.href);
if (n === t.pathname + t.search + t.hash) return e;
let r = new URL(n, window.location.origin);
return {
@@ -44271,51 +44272,51 @@ function YV(e) {
hash: r.hash
};
}
-var XV = {
+var YV = {
get navigation() {
- return GV;
+ return WV;
},
listen(e) {
- return KV.add(e), () => {
- KV.delete(e);
+ return GV.add(e), () => {
+ GV.delete(e);
};
},
- createHref: (e) => HV.createHref(e),
- createURL: (e) => HV.createURL(e),
- encodeLocation: (e) => HV.encodeLocation(e),
- go: (e) => HV.go(e),
- push: (e, t) => HV.push(YV(e), t),
- replace: (e, t) => HV.replace(YV(e), t)
+ createHref: (e) => VV.createHref(e),
+ createURL: (e) => VV.createURL(e),
+ encodeLocation: (e) => VV.encodeLocation(e),
+ go: (e) => VV.go(e),
+ push: (e, t) => VV.push(JV(e), t),
+ replace: (e, t) => VV.replace(JV(e), t)
};
-function ZV(e, { replace: t = !1, state: n } = {}) {
- let r = new URL(e, window.location.href), i = TV(`${r.pathname}${r.search}${r.hash}`);
- qV = !0;
+function XV(e, { replace: t = !1, state: n } = {}) {
+ let r = new URL(e, window.location.href), i = wV(`${r.pathname}${r.search}${r.hash}`);
+ KV = !0;
try {
- t ? HV.replace(i, n) : HV.push(i, n);
+ t ? VV.replace(i, n) : VV.push(i, n);
} finally {
- qV = !1;
+ KV = !1;
}
}
-var QV = () => JV;
-function $V() {
- if (uV(GV.location.pathname)) {
- let e = JV ? null : pV(GV.location.state);
- return e ? vV(e.state) || e : null;
+var ZV = () => qV;
+function QV() {
+ if (lV(WV.location.pathname)) {
+ let e = qV ? null : fV(WV.location.state);
+ return e ? _V(e.state) || e : null;
}
- return JV ? null : vV(GV.location.state);
+ return qV ? null : _V(WV.location.state);
}
//#endregion
//#region src/react/providers.tsx
-var eH = null;
+var $V = null;
function hme() {
- return eH?.isConnected || (eH = document.createElement("div"), eH.className = "peach-react", eH.dataset.reactOverlays = "", document.body.append(eH)), eH;
+ return $V?.isConnected || ($V = document.createElement("div"), $V.className = "peach-react", $V.dataset.reactOverlays = "", document.body.append($V)), $V;
}
-function tH({ children: e }) {
+function eH({ children: e }) {
return /* @__PURE__ */ (0, O.jsx)(j, {
client: U,
children: /* @__PURE__ */ (0, O.jsx)(Ote, {
reducedMotion: "user",
- children: /* @__PURE__ */ (0, O.jsx)(ST, {
+ children: /* @__PURE__ */ (0, O.jsx)(xT, {
getContainer: hme,
children: e
})
@@ -44416,7 +44417,7 @@ var _me = (e) => {
};
return document.addEventListener("visibilitychange", e), () => document.removeEventListener("visibilitychange", e);
}, []), e;
-}, Eme = 1, Dme = 100, nH = (e) => typeof e?.id == "number" || e?.id?.length > 0 ? e.id : Eme++, rH = new class {
+}, Eme = 1, Dme = 100, tH = (e) => typeof e?.id == "number" || e?.id?.length > 0 ? e.id : Eme++, nH = new class {
constructor() {
this.subscribe = (e) => (this.subscribers.push(e), this.getActiveToasts().forEach((t) => e(t)), () => {
let t = this.subscribers.indexOf(e);
@@ -44429,7 +44430,7 @@ var _me = (e) => {
let e = this.toasts.length - Dme;
e <= 0 || (this.toasts = this.toasts.filter((t) => e > 0 && this.dismissedToasts.has(t.id) ? (this.dismissedToasts.delete(t.id), e--, !1) : !0));
}, this.create = (e) => {
- let { message: t, ...n } = e, r = nH(e), i = this.pendingDismissals.get(r);
+ let { message: t, ...n } = e, r = tH(e), i = this.pendingDismissals.get(r);
i !== void 0 && (cancelAnimationFrame(i), this.pendingDismissals.delete(r), this.dismissedToasts.delete(r));
let a = this.dismissedToasts.has(r), o = e.dismissible === void 0 || e.dismissible;
return a && (this.dismissedToasts.delete(r), this.toasts = this.toasts.filter((e) => e.id !== r)), !a && this.toasts.find((e) => e.id === r) ? this.toasts = this.toasts.map((n) => n.id === r ? (this.publish({
@@ -44548,7 +44549,7 @@ var _me = (e) => {
}), s = () => new Promise((e, t) => o.then(() => a[0] === "reject" ? t(a[1]) : e(a[1])).catch(t));
return typeof n != "string" && typeof n != "number" ? { unwrap: s } : Object.assign(n, { unwrap: s });
}, this.custom = (e, t) => {
- let n = nH(t);
+ let n = tH(t);
return this.create({
...t,
jsx: e(n),
@@ -44557,26 +44558,26 @@ var _me = (e) => {
}), n;
}, this.getActiveToasts = () => this.toasts.filter((e) => !this.dismissedToasts.has(e.id)), this.subscribers = [], this.toasts = [], this.dismissedToasts = /* @__PURE__ */ new Set(), this.pendingDismissals = /* @__PURE__ */ new Map();
}
-}(), Ome = (e, t) => rH.message(e, t), kme = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", iH = Object.assign(Ome, {
- success: rH.success,
- info: rH.info,
- warning: rH.warning,
- error: rH.error,
- custom: rH.custom,
- message: rH.message,
- promise: rH.promise,
- dismiss: rH.dismiss,
- loading: rH.loading
+}(), Ome = (e, t) => nH.message(e, t), kme = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", rH = Object.assign(Ome, {
+ success: nH.success,
+ info: nH.info,
+ warning: nH.warning,
+ error: nH.error,
+ custom: nH.custom,
+ message: nH.message,
+ promise: nH.promise,
+ dismiss: nH.dismiss,
+ loading: nH.loading
}, {
- getHistory: () => rH.toasts,
- getToasts: () => rH.getActiveToasts()
+ getHistory: () => nH.toasts,
+ getToasts: () => nH.getActiveToasts()
});
gme("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--normal-text);background:var(--normal-bg);border:1px solid var(--normal-border);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{-webkit-user-select:none;user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");
-function aH(e) {
+function iH(e) {
return e.label !== void 0;
}
-var Ame = 3, jme = "24px", Mme = "16px", oH = 4e3, Nme = 356, Pme = 14, Fme = 45, Ime = 200;
-function sH(...e) {
+var Ame = 3, jme = "24px", Mme = "16px", aH = 4e3, Nme = 356, Pme = 14, Fme = 45, Ime = 200;
+function oH(...e) {
return e.filter(Boolean).join(" ");
}
function Lme(e) {
@@ -44584,7 +44585,7 @@ function Lme(e) {
return t && r.push(t), n && r.push(n), r;
}
var Rme = (e) => {
- let { invert: t, toast: n, unstyled: r, interacting: i, setHeights: a, visibleToasts: o, heights: s, index: c, toasts: l, expanded: u, removeToast: d, defaultRichColors: f, closeButton: p, style: m, cancelButtonStyle: h, actionButtonStyle: g, className: _ = "", descriptionClassName: v = "", duration: y, position: b, gap: x, expandByDefault: S, classNames: C, icons: w, closeButtonAriaLabel: T = "Close toast" } = e, [E, O] = D.useState(null), [k, A] = D.useState(null), [j, M] = D.useState(!1), [N, P] = D.useState(!1), [ee, F] = D.useState(!1), [te, I] = D.useState(!1), [ne, re] = D.useState(!1), [ie, ae] = D.useState(0), [oe, se] = D.useState(0), ce = D.useRef(n.duration || y || oH), le = D.useRef(null), ue = D.useRef(null), de = c === 0, fe = c + 1 <= o, pe = n.type, me = pe ?? "default", he = n.dismissible !== !1, ge = n.className || "", _e = n.descriptionClassName || "", ve = D.useMemo(() => s.findIndex((e) => e.toastId === n.id) || 0, [s, n.id]), ye = D.useMemo(() => n.closeButton ?? p, [n.closeButton, p]), be = D.useMemo(() => n.duration || y || oH, [n.duration, y]), xe = D.useRef(0), Se = D.useRef(0), Ce = D.useRef(0), we = D.useRef(null), [Te, Ee] = b.split("-"), De = D.useMemo(() => s.reduce((e, t, n) => n >= ve ? e : e + t.height, 0), [s, ve]), Oe = Tme(), ke = D.useMemo(() => e.swipeDirections ?? Lme(b), [e.swipeDirections, b]), Ae = n.invert || t, je = pe === "loading";
+ let { invert: t, toast: n, unstyled: r, interacting: i, setHeights: a, visibleToasts: o, heights: s, index: c, toasts: l, expanded: u, removeToast: d, defaultRichColors: f, closeButton: p, style: m, cancelButtonStyle: h, actionButtonStyle: g, className: _ = "", descriptionClassName: v = "", duration: y, position: b, gap: x, expandByDefault: S, classNames: C, icons: w, closeButtonAriaLabel: T = "Close toast" } = e, [E, O] = D.useState(null), [k, A] = D.useState(null), [j, M] = D.useState(!1), [N, P] = D.useState(!1), [ee, F] = D.useState(!1), [te, I] = D.useState(!1), [ne, re] = D.useState(!1), [ie, ae] = D.useState(0), [oe, se] = D.useState(0), ce = D.useRef(n.duration || y || aH), le = D.useRef(null), ue = D.useRef(null), de = c === 0, fe = c + 1 <= o, pe = n.type, me = pe ?? "default", he = n.dismissible !== !1, ge = n.className || "", _e = n.descriptionClassName || "", ve = D.useMemo(() => s.findIndex((e) => e.toastId === n.id) || 0, [s, n.id]), ye = D.useMemo(() => n.closeButton ?? p, [n.closeButton, p]), be = D.useMemo(() => n.duration || y || aH, [n.duration, y]), xe = D.useRef(0), Se = D.useRef(0), Ce = D.useRef(0), we = D.useRef(null), [Te, Ee] = b.split("-"), De = D.useMemo(() => s.reduce((e, t, n) => n >= ve ? e : e + t.height, 0), [s, ve]), Oe = Tme(), ke = D.useMemo(() => e.swipeDirections ?? Lme(b), [e.swipeDirections, b]), Ae = n.invert || t, je = pe === "loading";
Se.current = D.useMemo(() => ve * x + De, [ve, De]), D.useEffect(() => {
ce.current = be;
}, [be]), D.useEffect(() => {
@@ -44656,10 +44657,10 @@ var Rme = (e) => {
}, [Me, n.delete]);
function Ne() {
return w?.loading ? /*#__PURE__*/ D.createElement("div", {
- className: sH(C?.loader, n?.classNames?.loader, "sonner-loader"),
+ className: oH(C?.loader, n?.classNames?.loader, "sonner-loader"),
"data-visible": pe === "loading"
}, w.loading) : /*#__PURE__*/ D.createElement(yme, {
- className: sH(C?.loader, n?.classNames?.loader),
+ className: oH(C?.loader, n?.classNames?.loader),
visible: pe === "loading"
});
}
@@ -44667,7 +44668,7 @@ var Rme = (e) => {
return /*#__PURE__*/ D.createElement("li", {
tabIndex: 0,
ref: ue,
- className: sH(_, ge, C?.toast, n?.classNames?.toast, C?.[me], n?.classNames?.[me]),
+ className: oH(_, ge, C?.toast, n?.classNames?.toast, C?.[me], n?.classNames?.[me]),
"data-sonner-toast": "",
"data-rich-colors": n.richColors ?? f,
"data-styled": !(n.jsx || n.unstyled || r),
@@ -44749,38 +44750,38 @@ var Rme = (e) => {
onClick: je || !he ? () => {} : () => {
Me(), n.onDismiss == null || n.onDismiss.call(n, n);
},
- className: sH(C?.closeButton, n?.classNames?.closeButton)
+ className: oH(C?.closeButton, n?.classNames?.closeButton)
}, w?.close ?? wme) : null, (pe || n.icon || n.promise) && n.icon !== null && (w?.[pe] !== null || n.icon) ? /*#__PURE__*/ D.createElement("div", {
"data-icon": "",
- className: sH(C?.icon, n?.classNames?.icon)
+ className: oH(C?.icon, n?.classNames?.icon)
}, pe === "loading" ? n.icon || Ne() : n.promise ? Ne() : null, pe === "loading" ? null : Pe) : null, /*#__PURE__*/ D.createElement("div", {
"data-content": "",
- className: sH(C?.content, n?.classNames?.content)
+ className: oH(C?.content, n?.classNames?.content)
}, /*#__PURE__*/ D.createElement("div", {
"data-title": "",
- className: sH(C?.title, n?.classNames?.title)
+ className: oH(C?.title, n?.classNames?.title)
}, n.jsx ? n.jsx : typeof n.title == "function" ? n.title() : n.title), n.description ? /*#__PURE__*/ D.createElement("div", {
"data-description": "",
- className: sH(v, _e, C?.description, n?.classNames?.description)
- }, typeof n.description == "function" ? n.description() : n.description) : null), /*#__PURE__*/ D.isValidElement(n.cancel) ? n.cancel : n.cancel && aH(n.cancel) ? /*#__PURE__*/ D.createElement("button", {
+ className: oH(v, _e, C?.description, n?.classNames?.description)
+ }, typeof n.description == "function" ? n.description() : n.description) : null), /*#__PURE__*/ D.isValidElement(n.cancel) ? n.cancel : n.cancel && iH(n.cancel) ? /*#__PURE__*/ D.createElement("button", {
"data-button": !0,
"data-cancel": !0,
style: n.cancelButtonStyle || h,
onClick: (e) => {
- aH(n.cancel) && he && (n.cancel.onClick == null || n.cancel.onClick.call(n.cancel, e), Me());
+ iH(n.cancel) && he && (n.cancel.onClick == null || n.cancel.onClick.call(n.cancel, e), Me());
},
- className: sH(C?.cancelButton, n?.classNames?.cancelButton)
- }, n.cancel.label) : null, /*#__PURE__*/ D.isValidElement(n.action) ? n.action : n.action && aH(n.action) ? /*#__PURE__*/ D.createElement("button", {
+ className: oH(C?.cancelButton, n?.classNames?.cancelButton)
+ }, n.cancel.label) : null, /*#__PURE__*/ D.isValidElement(n.action) ? n.action : n.action && iH(n.action) ? /*#__PURE__*/ D.createElement("button", {
"data-button": !0,
"data-action": !0,
style: n.actionButtonStyle || g,
onClick: (e) => {
- aH(n.action) && (n.action.onClick == null || n.action.onClick.call(n.action, e), !e.defaultPrevented && Me());
+ iH(n.action) && (n.action.onClick == null || n.action.onClick.call(n.action, e), !e.defaultPrevented && Me());
},
- className: sH(C?.actionButton, n?.classNames?.actionButton)
+ className: oH(C?.actionButton, n?.classNames?.actionButton)
}, n.action.label) : null);
};
-function cH() {
+function sH() {
if (typeof window > "u" || typeof document > "u") return "ltr";
let e = document.documentElement.getAttribute("dir");
return e === "auto" || !e ? window.getComputedStyle(document.documentElement).direction : e;
@@ -44809,11 +44810,11 @@ function zme(e, t) {
}) : o(a);
}), n;
}
-var lH = /*#__PURE__*/ D.forwardRef(function(e, t) {
- let { id: n, invert: r, position: i = "bottom-right", hotkey: a = ["altKey", "KeyT"], expand: o, closeButton: s, className: c, offset: l, mobileOffset: u, theme: d = "light", richColors: f, duration: p, style: m, visibleToasts: h = Ame, toastOptions: g, dir: _ = cH(), gap: v = Pme, icons: y, customAriaLabel: b, containerAriaLabel: x = "Notifications" } = e, [S, C] = D.useState([]), w = D.useMemo(() => n ? S.filter((e) => e.toasterId === n) : S.filter((e) => !e.toasterId), [S, n]), T = D.useMemo(() => Array.from(new Set([i].concat(w.filter((e) => e.position).map((e) => e.position)))), [w, i]), [E, O] = D.useState([]), [k, A] = D.useState(!1), [j, M] = D.useState(!1), [N, P] = D.useState(d === "system" ? typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : d), ee = D.useRef(null), F = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), te = D.useRef(null), I = D.useRef(!1), ne = D.useCallback((e) => {
- C((t) => (t.find((t) => t.id === e.id)?.delete || rH.dismiss(e.id), t.filter(({ id: t }) => t !== e.id)));
+var cH = /*#__PURE__*/ D.forwardRef(function(e, t) {
+ let { id: n, invert: r, position: i = "bottom-right", hotkey: a = ["altKey", "KeyT"], expand: o, closeButton: s, className: c, offset: l, mobileOffset: u, theme: d = "light", richColors: f, duration: p, style: m, visibleToasts: h = Ame, toastOptions: g, dir: _ = sH(), gap: v = Pme, icons: y, customAriaLabel: b, containerAriaLabel: x = "Notifications" } = e, [S, C] = D.useState([]), w = D.useMemo(() => n ? S.filter((e) => e.toasterId === n) : S.filter((e) => !e.toasterId), [S, n]), T = D.useMemo(() => Array.from(new Set([i].concat(w.filter((e) => e.position).map((e) => e.position)))), [w, i]), [E, O] = D.useState([]), [k, A] = D.useState(!1), [j, M] = D.useState(!1), [N, P] = D.useState(d === "system" ? typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : d), ee = D.useRef(null), F = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), te = D.useRef(null), I = D.useRef(!1), ne = D.useCallback((e) => {
+ C((t) => (t.find((t) => t.id === e.id)?.delete || nH.dismiss(e.id), t.filter(({ id: t }) => t !== e.id)));
}, []);
- return D.useEffect(() => rH.subscribe((e) => {
+ return D.useEffect(() => nH.subscribe((e) => {
e.dismiss ? requestAnimationFrame(() => {
C((t) => t.map((t) => t.id === e.id ? {
...t,
@@ -44882,7 +44883,7 @@ var lH = /*#__PURE__*/ D.forwardRef(function(e, t) {
let [i, a] = t.split("-");
return w.length ? /*#__PURE__*/ D.createElement("ol", {
key: t,
- dir: _ === "auto" ? cH() : _,
+ dir: _ === "auto" ? sH() : _,
tabIndex: -1,
ref: ee,
className: c,
@@ -44943,19 +44944,19 @@ var lH = /*#__PURE__*/ D.forwardRef(function(e, t) {
swipeDirections: e.swipeDirections
}))) : null;
}));
-}), uH = "/api/library-processing", dH = ["library-processing"], Bme = (e, t, n) => {
+}), lH = "/api/library-processing", uH = ["library-processing"], Bme = (e, t, n) => {
let r = new URLSearchParams({
estimate: "1",
stage: e.stage || "all"
});
- return e.asset_ids && r.set("asset_ids", JSON.stringify(e.asset_ids)), n && r.set("inventory", n), V(`${uH}?${r}`, t);
-}, fH = (e) => !!e && [
+ return e.asset_ids && r.set("asset_ids", JSON.stringify(e.asset_ids)), n && r.set("inventory", n), V(`${lH}?${r}`, t);
+}, dH = (e) => !!e && [
"running",
"pausing",
"paused"
].includes(e.status);
-function pH(e) {
- if (!fH(e)) return "";
+function fH(e) {
+ if (!dH(e)) return "";
if (e.status === "paused") return "已暂停,继续后更新预估";
if (e.status === "pausing") return "正在暂停,当前步骤结束后暂停";
if (e.stalled) return "等待当前文件响应,剩余时间待更新";
@@ -44965,16 +44966,16 @@ function pH(e) {
let r = n >= 86400 ? 86400 : n >= 3600 ? 3600 : 60, i = r === 86400 ? "天" : r === 3600 ? "小时" : "分钟", a = r === 60 ? 1 : 10, o = Math.max(1 / a, Math.floor(t / r * a) / a), s = Math.max(o, Math.ceil(n / r * a) / a);
return `预计剩余约 ${o === s ? `${s}` : `${o}–${s}`} ${i}${e.eta_initial || e.eta_kind !== "measured" ? "(粗估)" : ""}${e.eta_scope ? ` · ${e.eta_scope}` : ""}`;
}
-var mH = (e) => V(uH, e);
-async function hH(e) {
+var pH = (e) => V(lH, e);
+async function mH(e) {
await U.fetchQuery({
- queryKey: dH,
- queryFn: () => mH(e)
+ queryKey: uH,
+ queryFn: () => pH(e)
});
}
-var Vme = 2e3, Hme = 1e4, gH = "连接中断,正在重新读取处理进度";
-function _H(e, t) {
- return fH(e) ? Vme : t ? Hme : !1;
+var Vme = 2e3, Hme = 1e4, hH = "连接中断,正在重新读取处理进度";
+function gH(e, t) {
+ return dH(e) ? Vme : t ? Hme : !1;
}
var Ume = {
scanning_files: "扫描文件",
@@ -44984,22 +44985,22 @@ var Ume = {
fetching_cover: "采集缺失封面",
generating_preview: "生成视频预览",
writing_candidates: "保存待确认资料"
-}, vH = {
+}, _H = {
querying_metadata: "没有资料",
fetching_cover: "没有封面"
};
function Wme(e) {
- let t = Object.entries(e).filter(([e, t]) => vH[e] && t > 0).map(([e, t]) => `${vH[e]} ${t.toLocaleString()} 部`);
+ let t = Object.entries(e).filter(([e, t]) => _H[e] && t > 0).map(([e, t]) => `${_H[e]} ${t.toLocaleString()} 部`);
return t.length ? `外部来源${t.join("、")},7 天内不再问。` : "";
}
function Gme(e) {
if (e.status === "paused") return "已暂停";
if (e.status === "pausing") return "正在暂停";
- let t = Ume[e.current_action || ""] || e.stage || "正在处理", n = e.waited_seconds ? ` · 已等待 ${yF(e.waited_seconds)}` : "";
+ let t = Ume[e.current_action || ""] || e.stage || "正在处理", n = e.waited_seconds ? ` · 已等待 ${vF(e.waited_seconds)}` : "";
return e.current_asset_name ? `当前:${e.current_asset_name} · ${t}${n}` : t + n;
}
function Kme(e) {
- let t = e.total ? `${bF(e.checked, e.total)} 项` : e.current_action === "scanning_files" || e.stage === "扫描文件" ? `已发现 ${(e.scanned || 0).toLocaleString()} 个文件` : "";
+ let t = e.total ? `${yF(e.checked, e.total)} 项` : e.current_action === "scanning_files" || e.stage === "扫描文件" ? `已发现 ${(e.scanned || 0).toLocaleString()} 个文件` : "";
return Gme(e) + (t ? ` · ${t}` : "");
}
function qme(e) {
@@ -45016,23 +45017,23 @@ function qme(e) {
log: e.issues_log || ""
} : null;
}
-var yH = "peach.library-processing.announced", Jme = 120;
-function bH(e) {
+var vH = "peach.library-processing.announced", Jme = 120;
+function yH(e) {
let t = e.completed_at == null ? Infinity : Date.now() / 1e3 - e.completed_at;
return !!e.job_id && t >= 0 && t < Jme;
}
function Yme(e, t, n) {
- if (e.status === "complete" && (n || bH(e))) {
+ if (e.status === "complete" && (n || yH(e))) {
try {
- if (e.job_id && localStorage.getItem(yH) === e.job_id) return;
- e.job_id && localStorage.setItem(yH, e.job_id);
+ if (e.job_id && localStorage.getItem(vH) === e.job_id) return;
+ e.job_id && localStorage.setItem(vH, e.job_id);
} catch {}
e.requested_stage === "previews" ? t(`视频预览已生成:${e.previews || 0} 部`) : t(`扫描与资料采集已完成:识别 ${e.identified || 0} 个番号,取得 ${e.candidates || 0} 组作品资料,自动保存 ${e.auto_applied || 0} 条` + (e.previews ? `,生成 ${e.previews} 部视频预览` : ""));
}
}
//#endregion
//#region src/react/boardui/components/base/buttons/link-button.tsx
-var xH = nF({
+var bH = tF({
base: [
"inline-flex items-center justify-center gap-1 whitespace-nowrap",
"font-sans select-none cursor-pointer rounded-sm",
@@ -45056,15 +45057,15 @@ var xH = nF({
secondary: ["text-text-secondary active:text-text-primary", "disabled:text-text-tertiary aria-disabled:text-text-tertiary"].join(" ")
}
});
-function SH({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {
- let c = tF(xH.base, xH.size[t], xH.variant[e], a), l = /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [
+function xH({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {
+ let c = eF(bH.base, bH.size[t], bH.variant[e], a), l = /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [
n ? /* @__PURE__ */ (0, O.jsx)(n, {
- className: xH.icon[t],
+ className: bH.icon[t],
"aria-hidden": !0
}) : null,
i != null && /* @__PURE__ */ (0, O.jsx)("span", { children: i }),
r ? /* @__PURE__ */ (0, O.jsx)(r, {
- className: xH.icon[t],
+ className: bH.icon[t],
"aria-hidden": !0
}) : null
] });
@@ -45093,17 +45094,17 @@ function SH({ variant: e = "primary", size: t = "medium", leadingIcon: n, traili
//#region src/react/components/use-moving-surface.ts
var Xme = {
selection: {
- type: Of,
+ type: Df,
duration: .16,
bounce: 0
},
hover: {
- type: Of,
+ type: Df,
duration: .08,
bounce: 0
}
};
-function CH(e) {
+function SH(e) {
let [t, n] = (0, D.useState)(null);
return (0, D.useLayoutEffect)(() => {
if (!t) return;
@@ -45161,25 +45162,25 @@ function CH(e) {
}
//#endregion
//#region src/react/components/menu-dialog.tsx
-function wH(e) {
- let t = CH("hover");
- return /* @__PURE__ */ (0, O.jsx)(_R, {
+function CH(e) {
+ let t = SH("hover");
+ return /* @__PURE__ */ (0, O.jsx)(gR, {
...e,
ref: t
});
}
//#endregion
//#region src/react/library-processing/processing-effort.tsx
-var TH = [
+var wH = [
"low",
"standard",
"high"
-], EH = [
+], TH = [
"低占用",
"标准",
"全速"
-], DH = zz("snail"), OH = zz("zap");
-function kH({ className: e }) {
+], EH = Rz("snail"), DH = Rz("zap");
+function OH({ className: e }) {
return /* @__PURE__ */ (0, O.jsxs)("svg", {
className: `processing-effort-double ${e ?? ""}`,
"aria-hidden": "true",
@@ -45211,9 +45212,9 @@ function kH({ className: e }) {
});
}
var Zme = [
+ EH,
DH,
- OH,
- kH
+ OH
];
function Qme({ animate: e }) {
let [t, n] = (0, D.useState)(document.hidden);
@@ -45247,8 +45248,8 @@ function Qme({ animate: e }) {
} }, t))]
});
}
-function AH({ value: e, busy: t, onChange: n, animate: r = !0 }) {
- let i = Math.max(0, TH.indexOf(e)), [a, o] = (0, D.useState)(i);
+function kH({ value: e, busy: t, onChange: n, animate: r = !0 }) {
+ let i = Math.max(0, wH.indexOf(e)), [a, o] = (0, D.useState)(i);
return (0, D.useEffect)(() => {
t || o(i);
}, [i, t]), /* @__PURE__ */ (0, O.jsxs)("div", {
@@ -45259,7 +45260,7 @@ function AH({ value: e, busy: t, onChange: n, animate: r = !0 }) {
children: [/* @__PURE__ */ (0, O.jsx)("span", {
className: "text-text-tertiary",
children: "处理强度 "
- }), EH[a]]
+ }), TH[a]]
}),
/* @__PURE__ */ (0, O.jsxs)("div", {
className: "processing-effort-scale text-caption-1-regular text-text-tertiary",
@@ -45267,15 +45268,15 @@ function AH({ value: e, busy: t, onChange: n, animate: r = !0 }) {
children: [
/* @__PURE__ */ (0, O.jsxs)("span", {
"data-selected": a === 0 || void 0,
- children: [/* @__PURE__ */ (0, O.jsx)(DH, {}), "最慢"]
+ children: [/* @__PURE__ */ (0, O.jsx)(EH, {}), "最慢"]
}),
/* @__PURE__ */ (0, O.jsxs)("span", {
"data-selected": a === 1 || void 0,
- children: [/* @__PURE__ */ (0, O.jsx)(OH, {}), "标准"]
+ children: [/* @__PURE__ */ (0, O.jsx)(DH, {}), "标准"]
}),
/* @__PURE__ */ (0, O.jsxs)("span", {
"data-selected": a === 2 || void 0,
- children: [/* @__PURE__ */ (0, O.jsx)(kH, {}), "最快"]
+ children: [/* @__PURE__ */ (0, O.jsx)(OH, {}), "最快"]
})
]
}),
@@ -45288,10 +45289,10 @@ function AH({ value: e, busy: t, onChange: n, animate: r = !0 }) {
isDisabled: t,
onChange: o,
onChangeEnd: (e) => {
- e !== i && n(TH[e]);
+ e !== i && n(wH[e]);
},
className: "processing-effort-slider",
- children: [/* @__PURE__ */ (0, O.jsx)(hI, {
+ children: [/* @__PURE__ */ (0, O.jsx)(mI, {
className: "processing-effort-label",
children: "处理速度"
}), /* @__PURE__ */ (0, O.jsxs)("div", {
@@ -45315,7 +45316,7 @@ function AH({ value: e, busy: t, onChange: n, animate: r = !0 }) {
/* @__PURE__ */ (0, O.jsx)(Zle, {
className: "processing-effort-hit",
children: /* @__PURE__ */ (0, O.jsx)(Qle, {
- "aria-label": EH[a],
+ "aria-label": TH[a],
className: "processing-effort-thumb"
})
})
@@ -45330,36 +45331,36 @@ function AH({ value: e, busy: t, onChange: n, animate: r = !0 }) {
});
}
function $me({ value: e, busy: t, onChange: n, animate: r = !0 }) {
- let i = (0, D.useRef)(null), [a, o] = (0, D.useState)(!1), s = Math.max(0, TH.indexOf(e));
+ let i = (0, D.useRef)(null), [a, o] = (0, D.useState)(!1), s = Math.max(0, wH.indexOf(e));
return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)("span", {
className: "processing-effort-trigger",
"data-speed": e,
- children: /* @__PURE__ */ (0, O.jsx)(q, {
+ children: /* @__PURE__ */ (0, O.jsx)(J, {
ref: i,
size: "small",
variant: "secondary",
- "aria-label": `处理速度:${EH[s]}`,
+ "aria-label": `处理速度:${TH[s]}`,
"aria-haspopup": "dialog",
"aria-expanded": a,
"aria-disabled": t,
leadingIcon: Zme[s],
- trailingIcon: uz,
+ trailingIcon: lz,
onClick: () => {
t || o(!a);
},
- children: EH[s]
+ children: TH[s]
})
- }), /* @__PURE__ */ (0, O.jsx)(iR, {
+ }), /* @__PURE__ */ (0, O.jsx)(rR, {
triggerRef: i,
isOpen: a,
onOpenChange: o,
placement: "top start",
offset: 8,
- className: ZB,
- children: /* @__PURE__ */ (0, O.jsx)(wH, {
+ className: XB,
+ children: /* @__PURE__ */ (0, O.jsx)(CH, {
"aria-label": "处理速度",
className: "outline-none",
- children: /* @__PURE__ */ (0, O.jsx)(AH, {
+ children: /* @__PURE__ */ (0, O.jsx)(kH, {
value: e,
busy: t,
onChange: n,
@@ -45370,7 +45371,7 @@ function $me({ value: e, busy: t, onChange: n, animate: r = !0 }) {
}
//#endregion
//#region src/react/settings/use-action.ts
-function jH(e = "") {
+function AH(e = "") {
let t = (0, D.useRef)(null), [n, r] = (0, D.useState)(""), [i, a] = (0, D.useState)(e);
(0, D.useEffect)(() => () => t.current?.abort(), []);
async function o(e, n, i, o) {
@@ -45397,9 +45398,9 @@ function jH(e = "") {
//#endregion
//#region src/react/library-processing/processing-controls.tsx
function ehe({ state: e, disabled: t = !1 }) {
- let n = jH(), r = fH(e), i = e.status === "paused" ? "继续" : e.status === "pausing" ? "正在暂停" : "暂停", a = (e) => {
- t || n.busy || n.run(e.action, (t) => H(uH, e, "POST", t), (e) => {
- U.setQueryData(dH, e), U.invalidateQueries({ queryKey: dH });
+ let n = AH(), r = dH(e), i = e.status === "paused" ? "继续" : e.status === "pausing" ? "正在暂停" : "暂停", a = (e) => {
+ t || n.busy || n.run(e.action, (t) => H(lH, e, "POST", t), (e) => {
+ U.setQueryData(uH, e), U.invalidateQueries({ queryKey: uH });
});
};
return /* @__PURE__ */ (0, O.jsxs)("div", {
@@ -45416,15 +45417,15 @@ function ehe({ state: e, disabled: t = !1 }) {
speed_mode: t,
...r ? { job_id: e.job_id } : {}
})
- }), r ? /* @__PURE__ */ (0, O.jsx)(q, {
+ }), r ? /* @__PURE__ */ (0, O.jsx)(J, {
size: "small",
variant: "secondary",
iconOnly: !0,
- leadingIcon: e.status === "paused" ? xz : bz,
+ leadingIcon: e.status === "paused" ? bz : yz,
"aria-label": i,
title: i,
disabled: t || !e.job_id || e.status === "pausing",
- ...Vz(n.busy === "pause" || n.busy === "resume"),
+ ...Bz(n.busy === "pause" || n.busy === "resume"),
onClick: () => {
e.job_id && a({
action: e.status === "paused" ? "resume" : "pause",
@@ -45441,11 +45442,11 @@ function ehe({ state: e, disabled: t = !1 }) {
}
//#endregion
//#region src/react/library-processing/use-library-processing.ts
-function MH({ toast: e, mode: t, monitor: n }) {
+function jH({ toast: e, mode: t, monitor: n }) {
let r = t === "notice" || !!n, i = St({
- queryKey: dH,
- queryFn: ({ signal: e }) => mH(e),
- refetchInterval: (e) => _H(e.state.data, r)
+ queryKey: uH,
+ queryFn: ({ signal: e }) => pH(e),
+ refetchInterval: (e) => gH(e.state.data, r)
}), [a, o] = (0, D.useState)(null), s = (0, D.useRef)(void 0), c = i.data;
return (0, D.useEffect)(() => {
if (!c) return;
@@ -45455,7 +45456,7 @@ function MH({ toast: e, mode: t, monitor: n }) {
"running",
"pausing",
"paused"
- ].includes(n) && !fH(c);
+ ].includes(n) && !dH(c);
r && o(c), (r || t === "notice") && Yme(c, e, r);
}, [
c,
@@ -45485,7 +45486,7 @@ var the = "min-w-0", nhe = {
none: "",
default: "p-5"
}, ohe = "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", she = "relative data-selected:bg-background-primary-default data-selected:shadow-none data-selected:after:pointer-events-none data-selected:after:absolute data-selected:after:inset-0 data-selected:after:z-1 data-selected:after:rounded-[inherit] data-selected:after:border-2 data-selected:after:border-border-focus-ring";
-function NH(e = {}) {
+function MH(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 [
the,
@@ -45500,7 +45501,7 @@ function NH(e = {}) {
}
//#endregion
//#region src/react/components/loading-dots.tsx
-function PH({ label: e }) {
+function NH({ label: e }) {
return /* @__PURE__ */ (0, O.jsxs)("p", {
role: "status",
className: "flex min-w-0 items-center gap-2 text-caption-1-regular text-text-secondary",
@@ -45520,21 +45521,21 @@ function PH({ label: e }) {
}
//#endregion
//#region src/react/components/progress.tsx
-var FH = 100, che = .4;
-function IH({ label: e, value: t, max: n = 100, stops: r = [] }) {
- let i = n > 0 ? n : 1, a = (e) => Math.min(Math.max(Number.isFinite(e) ? e : 0, 0), i), o = (e) => a(e) / i * FH;
+var PH = 100, che = .4;
+function FH({ label: e, value: t, max: n = 100, stops: r = [] }) {
+ let i = n > 0 ? n : 1, a = (e) => Math.min(Math.max(Number.isFinite(e) ? e : 0, 0), i), o = (e) => a(e) / i * PH;
return /* @__PURE__ */ (0, O.jsxs)("svg", {
role: "progressbar",
"aria-label": e,
"aria-valuemin": 0,
"aria-valuemax": i,
"aria-valuenow": a(t),
- viewBox: `0 0 ${FH} 1`,
+ viewBox: `0 0 ${PH} 1`,
preserveAspectRatio: "none",
className: "h-1.5 w-full overflow-hidden rounded-full",
children: [
/* @__PURE__ */ (0, O.jsx)("rect", {
- width: FH,
+ width: PH,
height: 1,
className: "fill-background-tertiary-default"
}),
@@ -45554,27 +45555,27 @@ function IH({ label: e, value: t, max: n = 100, stops: r = [] }) {
}
//#endregion
//#region src/react/components/task-progress.tsx
-function LH({ label: e, value: t = 0, total: n, embedded: r = !1 }) {
+function IH({ label: e, value: t = 0, total: n, embedded: r = !1 }) {
return /* @__PURE__ */ (0, O.jsx)("div", {
"data-task-progress": !0,
- className: r ? "flex flex-col gap-1.5" : NH({
+ className: r ? "flex flex-col gap-1.5" : MH({
variant: "outlined",
padding: "none",
className: "flex flex-col gap-1.5 px-4 py-3.5"
}),
- children: n && n > 0 ? /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(IH, {
+ children: n && n > 0 ? /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(FH, {
label: e,
value: t,
max: n
}), /* @__PURE__ */ (0, O.jsx)("p", {
className: "text-caption-1-regular text-text-secondary wrap-anywhere",
children: e
- })] }) : /* @__PURE__ */ (0, O.jsx)(PH, { label: e })
+ })] }) : /* @__PURE__ */ (0, O.jsx)(NH, { label: e })
});
}
//#endregion
//#region src/react/library-processing/processing-line.tsx
-function RH(e) {
+function LH(e) {
let [t, n] = (0, D.useState)({
snapshot: e,
seconds: 0
@@ -45596,11 +45597,11 @@ function RH(e) {
} : e);
}
function lhe({ state: e }) {
- return RH(e);
+ return LH(e);
}
function uhe({ state: e }) {
- let t = RH(e);
- return /* @__PURE__ */ (0, O.jsx)(LH, {
+ let t = LH(e);
+ return /* @__PURE__ */ (0, O.jsx)(IH, {
embedded: !0,
label: t,
value: Math.min(e.checked || 0, e.total || 0),
@@ -45609,7 +45610,7 @@ function uhe({ state: e }) {
}
//#endregion
//#region src/react/components/collapse-region.tsx
-function zH({ open: e, children: t, ...n }) {
+function RH({ open: e, children: t, ...n }) {
let r = (0, D.useRef)(null), i = (0, D.useRef)(!1);
return (0, D.useLayoutEffect)(() => {
let t = r.current;
@@ -45620,7 +45621,7 @@ function zH({ open: e, children: t, ...n }) {
children: t
});
}
-function BH(e) {
+function zH(e) {
return /* @__PURE__ */ (0, O.jsx)("svg", {
...e,
"aria-hidden": !0,
@@ -45636,21 +45637,21 @@ function BH(e) {
}
//#endregion
//#region src/react/boardui/components/application/settings/settings-rows.tsx
-function VH({ className: e, children: t }) {
+function BH({ className: e, children: t }) {
return /* @__PURE__ */ (0, O.jsx)("div", {
- className: tF("flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3", e),
+ className: eF("flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3", e),
children: t
});
}
-function HH({ className: e, children: t }) {
+function VH({ className: e, children: t }) {
return /* @__PURE__ */ (0, O.jsx)("p", {
- className: tF("w-full px-3 text-body-2-medium text-text-secondary", e),
+ className: eF("w-full px-3 text-body-2-medium text-text-secondary", e),
children: t
});
}
function dhe({ label: e, description: t, children: n }) {
return /* @__PURE__ */ (0, O.jsxs)("div", {
- className: tF("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"),
+ className: eF("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, O.jsxs)("div", {
className: "flex min-w-0 flex-col",
children: [/* @__PURE__ */ (0, O.jsx)("p", {
@@ -45673,12 +45674,12 @@ function fhe({ title: e, icon: t, id: n, aside: r, onSubmit: i, children: a }) {
className: "flex w-full flex-wrap items-center justify-between gap-2",
children: [/* @__PURE__ */ (0, O.jsx)("div", {
className: "min-w-40 flex-1",
- children: /* @__PURE__ */ (0, O.jsx)(HH, { children: o })
+ children: /* @__PURE__ */ (0, O.jsx)(VH, { children: o })
}), /* @__PURE__ */ (0, O.jsx)("div", {
className: "flex min-w-0 max-w-full",
children: r
})]
- }) : /* @__PURE__ */ (0, O.jsx)(HH, { children: o }), /* @__PURE__ */ (0, O.jsx)(VH, { children: a })] });
+ }) : /* @__PURE__ */ (0, O.jsx)(VH, { children: o }), /* @__PURE__ */ (0, O.jsx)(BH, { children: a })] });
return i ? /* @__PURE__ */ (0, O.jsx)("form", {
id: n,
"aria-label": e,
@@ -45699,7 +45700,7 @@ function phe({ children: e }) {
children: e
});
}
-function UH({ divided: e = !1, children: t }) {
+function HH({ divided: e = !1, children: t }) {
return e ? /* @__PURE__ */ (0, O.jsx)("div", {
className: "flex flex-col gap-4 border-t border-separator-border py-4 pr-3 empty:hidden",
children: t
@@ -45727,34 +45728,34 @@ function hhe({ status: e, children: t }) {
}) : null, t]
});
}
-function WH({ role: e, children: t }) {
+function UH({ role: e, children: t }) {
return /* @__PURE__ */ (0, O.jsx)("p", {
role: e,
className: "text-body-2-regular text-text-secondary",
children: t
});
}
-function GH({ children: e }) {
+function WH({ children: e }) {
return /* @__PURE__ */ (0, O.jsx)("p", {
role: "alert",
className: "text-body-2-regular text-text-error-primary",
children: e
});
}
-function KH({ children: e }) {
+function GH({ children: e }) {
return /* @__PURE__ */ (0, O.jsx)("p", {
className: "text-body-medium text-text-primary",
children: e
});
}
function ghe({ href: e, children: t, leadingIcon: n }) {
- return /* @__PURE__ */ (0, O.jsx)(SH, {
+ return /* @__PURE__ */ (0, O.jsx)(xH, {
href: e,
target: "_blank",
rel: "noopener noreferrer",
size: "small",
leadingIcon: n,
- trailingIcon: mz,
+ trailingIcon: pz,
className: "min-w-0 max-w-full",
children: /* @__PURE__ */ (0, O.jsx)("span", {
className: "min-w-0 whitespace-normal break-all",
@@ -45780,7 +45781,7 @@ function vhe({ term: e, children: t }) {
})]
});
}
-function qH({ summary: e, defaultOpen: t = !1, isOpen: n, children: r, trailing: i = !1, onOpenChange: a, contentClassName: o }) {
+function KH({ summary: e, defaultOpen: t = !1, isOpen: n, children: r, trailing: i = !1, onOpenChange: a, contentClassName: o }) {
let s = (0, D.useId)(), c = (0, D.useRef)(null), l = (0, D.useRef)(null), u = (0, D.useRef)(!1), [d, f] = (0, D.useState)(n ?? t);
return (0, D.useLayoutEffect)(() => {
n !== void 0 && n !== d && c.current && l.current && (to(c.current, l.current, n), f(n));
@@ -45796,12 +45797,12 @@ function qH({ summary: e, defaultOpen: t = !1, isOpen: n, children: r, trailing:
},
className: `${i ? "w-full" : "w-fit"} flex cursor-pointer list-none items-center gap-1 rounded-sm text-body-2-medium text-text-secondary outline-none select-none hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring`,
children: [
- i ? null : /* @__PURE__ */ (0, O.jsx)(fz, {
+ i ? null : /* @__PURE__ */ (0, O.jsx)(dz, {
"aria-hidden": !0,
className: d ? "size-(--icon-inline) shrink-0 rotate-90 transition-transform" : "size-(--icon-inline) shrink-0 transition-transform"
}),
e,
- i ? /* @__PURE__ */ (0, O.jsx)(fz, {
+ i ? /* @__PURE__ */ (0, O.jsx)(dz, {
"aria-hidden": !0,
className: d ? "ml-auto size-(--icon-inline) shrink-0 -rotate-90 transition-transform" : "ml-auto size-(--icon-inline) shrink-0 rotate-90 transition-transform"
}) : null
@@ -45811,7 +45812,7 @@ function qH({ summary: e, defaultOpen: t = !1, isOpen: n, children: r, trailing:
id: s,
inert: !d,
children: /* @__PURE__ */ (0, O.jsx)("div", {
- className: tF("flex flex-col gap-2 pt-3", o),
+ className: eF("flex flex-col gap-2 pt-3", o),
children: r
})
})]
@@ -45827,7 +45828,7 @@ function yhe({ name: e }) {
children: /* @__PURE__ */ (0, O.jsx)("use", { href: `#i-${e}` })
});
}
-function JH({ mark: e }) {
+function qH({ mark: e }) {
return e.startsWith("data:image/png;base64,") ? /* @__PURE__ */ (0, O.jsx)("img", {
src: e,
alt: "",
@@ -45838,24 +45839,24 @@ function JH({ mark: e }) {
}
//#endregion
//#region src/react/components/source-label.tsx
-var YH = (e) => e.startsWith("clouddrive:") ? e.split(":")[1] : e, bhe = Object.fromEntries(Object.entries(No).map(([e, t]) => [e, function({ className: e }) {
+var JH = (e) => e.startsWith("clouddrive:") ? e.split(":")[1] : e, bhe = Object.fromEntries(Object.entries(No).map(([e, t]) => [e, function({ className: e }) {
return /* @__PURE__ */ (0, O.jsx)("span", {
className: e,
- children: /* @__PURE__ */ (0, O.jsx)(JH, { mark: t })
+ children: /* @__PURE__ */ (0, O.jsx)(qH, { mark: t })
});
}]));
function xhe({ className: e }) {
return /* @__PURE__ */ (0, O.jsx)("span", {
className: e,
- children: /* @__PURE__ */ (0, O.jsx)(JH, { mark: "database" })
+ children: /* @__PURE__ */ (0, O.jsx)(qH, { mark: "database" })
});
}
-var XH = (e) => bhe[YH(e)] ?? xhe;
+var YH = (e) => bhe[JH(e)] ?? xhe;
function She({ site: e, label: t }) {
let [n, r] = (0, D.useState)(!1), i = e === "javdb" ? "/site-mark?source=javdb" : e === "missav" ? "/site-mark?domain=missav.com" : null;
return /* @__PURE__ */ (0, O.jsxs)("span", {
className: "inline-flex min-w-0 items-center gap-1.5",
- children: [n || !i ? /* @__PURE__ */ (0, O.jsx)(JH, { mark: "globe" }) : /* @__PURE__ */ (0, O.jsx)("img", {
+ children: [n || !i ? /* @__PURE__ */ (0, O.jsx)(qH, { mark: "globe" }) : /* @__PURE__ */ (0, O.jsx)("img", {
src: i,
alt: "",
className: "size-(--icon-inline) shrink-0 object-contain",
@@ -45863,11 +45864,11 @@ function She({ site: e, label: t }) {
}), /* @__PURE__ */ (0, O.jsx)("span", { children: t })]
});
}
-function ZH({ source: e, label: t }) {
- let n = YH(e);
+function XH({ source: e, label: t }) {
+ let n = JH(e);
return /* @__PURE__ */ (0, O.jsxs)("span", {
className: "inline-flex min-w-0 items-center gap-1.5",
- children: [/* @__PURE__ */ (0, O.jsx)(JH, { mark: No[n] || (n === "local" ? "hard-drive" : "database") }), /* @__PURE__ */ (0, O.jsx)("span", {
+ children: [/* @__PURE__ */ (0, O.jsx)(qH, { mark: No[n] || (n === "local" ? "hard-drive" : "database") }), /* @__PURE__ */ (0, O.jsx)("span", {
className: "min-w-0 truncate",
children: t
})]
@@ -45875,13 +45876,13 @@ function ZH({ source: e, label: t }) {
}
//#endregion
//#region src/react/library-processing/processing-traffic.tsx
-var QH = (e) => _n(e).replace(/\s/g, ""), $H = (e) => e >= 1024 ** 2 && e < 1024 ** 3 ? `${Number((e / 1024 ** 2).toFixed(1))}MB` : QH(e), Che = (e, t) => {
- if (e === t) return QH(t);
+var ZH = (e) => _n(e).replace(/\s/g, ""), QH = (e) => e >= 1024 ** 2 && e < 1024 ** 3 ? `${Number((e / 1024 ** 2).toFixed(1))}MB` : ZH(e), Che = (e, t) => {
+ if (e === t) return ZH(t);
let [n, r] = _n(e).split(" "), [i, a] = _n(t).split(" ");
- return r === a ? `${n}-${i}${a}` : `${QH(e)}-${QH(t)}`;
-}, eU = (e, t, n) => e === void 0 ? Che(t, n) : `${e > 0 ? "约 " : ""}${QH(e)}`;
-function tU({ traffic: e, initial: t = !1, detailsOpen: n, onDetailsChange: r }) {
- let i = aV(), [a, o] = (0, D.useState)(!1), s = (0, D.useId)(), c = n ?? a;
+ return r === a ? `${n}-${i}${a}` : `${ZH(e)}-${ZH(t)}`;
+}, $H = (e, t, n) => e === void 0 ? Che(t, n) : `${e > 0 ? "约 " : ""}${ZH(e)}`;
+function eU({ traffic: e, initial: t = !1, detailsOpen: n, onDetailsChange: r }) {
+ let i = iV(), [a, o] = (0, D.useState)(!1), s = (0, D.useId)(), c = n ?? a;
if (!e) return null;
let l = (e) => e.toLocaleString("zh-CN");
return /* @__PURE__ */ (0, O.jsxs)("div", {
@@ -45918,25 +45919,25 @@ function tU({ traffic: e, initial: t = !1, detailsOpen: n, onDetailsChange: r })
children: [
/* @__PURE__ */ (0, O.jsxs)("p", {
className: "inline-flex items-center gap-1.5",
- children: [/* @__PURE__ */ (0, O.jsx)(_z, {
+ children: [/* @__PURE__ */ (0, O.jsx)(gz, {
"aria-hidden": !0,
className: "size-(--icon-inline) shrink-0"
}), e.inventory && !e.inventory.complete ? "已识别流量" : "预计流量"]
}),
/* @__PURE__ */ (0, O.jsx)("p", {
className: "text-title-3-semibold text-text-primary",
- children: eU(e.estimated_bytes, e.estimated_min_bytes, e.estimated_max_bytes)
+ children: $H(e.estimated_bytes, e.estimated_min_bytes, e.estimated_max_bytes)
}),
/* @__PURE__ */ (0, O.jsxs)("p", { children: [
e.unknown_route_estimated_bytes ? "已确认代理" : "代理",
" ",
- eU(e.metered_estimated_bytes, e.metered_estimated_min_bytes, e.metered_estimated_max_bytes)
+ $H(e.metered_estimated_bytes, e.metered_estimated_min_bytes, e.metered_estimated_max_bytes)
] }),
t ? null : /* @__PURE__ */ (0, O.jsxs)("p", { children: [
"已用 ",
- /* @__PURE__ */ (0, O.jsxs)("span", { children: [e.partial ? "约 " : "", QH(e.used_bytes)] }),
+ /* @__PURE__ */ (0, O.jsxs)("span", { children: [e.partial ? "约 " : "", ZH(e.used_bytes)] }),
" · 代理 ",
- QH(e.metered_used_bytes)
+ ZH(e.metered_used_bytes)
] })
]
}), e.disk ? /* @__PURE__ */ (0, O.jsxs)("section", {
@@ -45952,18 +45953,18 @@ function tU({ traffic: e, initial: t = !1, detailsOpen: n, onDetailsChange: r })
}),
/* @__PURE__ */ (0, O.jsxs)("p", {
className: "text-title-3-semibold text-text-primary",
- children: ["约 ", QH(e.disk.estimated_bytes)]
+ children: ["约 ", ZH(e.disk.estimated_bytes)]
}),
- e.disk.temporary_bytes > 0 ? /* @__PURE__ */ (0, O.jsxs)("p", { children: ["抽帧临时文件约 ", $H(e.disk.temporary_bytes)] }) : null,
+ e.disk.temporary_bytes > 0 ? /* @__PURE__ */ (0, O.jsxs)("p", { children: ["抽帧临时文件约 ", QH(e.disk.temporary_bytes)] }) : null,
e.disk.volumes.map((e) => /* @__PURE__ */ (0, O.jsxs)("div", {
className: "flex min-w-0 flex-col gap-1",
children: [/* @__PURE__ */ (0, O.jsxs)("p", { children: [
e.path,
" 剩余 ",
- e.free_bytes == null ? "未取得" : QH(e.free_bytes)
+ e.free_bytes == null ? "未取得" : ZH(e.free_bytes)
] }), e.can_fit === !1 ? /* @__PURE__ */ (0, O.jsxs)("p", {
role: "status",
- children: ["空间不足,还差 ", QH(e.shortfall_bytes || 0)]
+ children: ["空间不足,还差 ", ZH(e.shortfall_bytes || 0)]
}) : null]
}, e.path)),
e.disk.cache_unknown ? /* @__PURE__ */ (0, O.jsx)("p", {
@@ -45973,13 +45974,13 @@ function tU({ traffic: e, initial: t = !1, detailsOpen: n, onDetailsChange: r })
]
}) : null]
}),
- /* @__PURE__ */ (0, O.jsx)(q, {
+ /* @__PURE__ */ (0, O.jsx)(J, {
variant: "secondary",
size: "small",
className: "self-start",
"aria-expanded": c,
"aria-controls": s,
- trailingIcon: c ? Qde : uz,
+ trailingIcon: c ? Qde : lz,
onClick: () => {
o(!c), r?.(!c);
},
@@ -45998,12 +45999,12 @@ function tU({ traffic: e, initial: t = !1, detailsOpen: n, onDetailsChange: r })
children: [
/* @__PURE__ */ (0, O.jsxs)("div", {
className: "flex min-w-0 items-start justify-between gap-2",
- children: [e.root ? /* @__PURE__ */ (0, O.jsx)(ZH, {
+ children: [e.root ? /* @__PURE__ */ (0, O.jsx)(XH, {
source: e.location,
label: e.label
}) : /* @__PURE__ */ (0, O.jsxs)("span", {
className: "inline-flex min-w-0 items-center gap-1.5",
- children: [/* @__PURE__ */ (0, O.jsx)(JH, { mark: "globe" }), e.label]
+ children: [/* @__PURE__ */ (0, O.jsx)(qH, { mark: "globe" }), e.label]
}), /* @__PURE__ */ (0, O.jsx)("span", {
className: "shrink-0",
children: e.connection === "system" ? "跟随系统" : e.connection === "unknown" ? "连接待确认" : e.metered ? "代理" : "直连"
@@ -46025,7 +46026,7 @@ function tU({ traffic: e, initial: t = !1, detailsOpen: n, onDetailsChange: r })
"待补资料 ",
l(e.workload.pending_jav_titles),
" 部 · 平均约 ",
- $H(e.workload.metadata_average_bytes || 0),
+ QH(e.workload.metadata_average_bytes || 0),
"/部"
]
}) : null,
@@ -46035,8 +46036,8 @@ function tU({ traffic: e, initial: t = !1, detailsOpen: n, onDetailsChange: r })
"已用",
e.unobserved.length ? "约" : "",
" ",
- QH(e.used_bytes)
- ] }), /* @__PURE__ */ (0, O.jsxs)("span", { children: ["预计 ", eU(e.estimated_bytes, e.estimated_min_bytes, e.estimated_max_bytes)] })]
+ ZH(e.used_bytes)
+ ] }), /* @__PURE__ */ (0, O.jsxs)("span", { children: ["预计 ", $H(e.estimated_bytes, e.estimated_min_bytes, e.estimated_max_bytes)] })]
})
]
}, e.key))
@@ -46048,10 +46049,10 @@ function tU({ traffic: e, initial: t = !1, detailsOpen: n, onDetailsChange: r })
}
//#endregion
//#region src/react/library-processing/library-processing-notice.tsx
-var nU = "peach.library-processing.collapsed";
-function rU(e) {
+var tU = "peach.library-processing.collapsed";
+function nU(e) {
try {
- return !e || sessionStorage.getItem(nU) !== e;
+ return !e || sessionStorage.getItem(tU) !== e;
} catch {
return !0;
}
@@ -46086,14 +46087,14 @@ function whe({ value: e, max: t }) {
})]
});
}
-function iU({ state: e, problem: t = "", measure: n = !1 }) {
- let [r, i] = (0, D.useState)(() => rU(e?.job_id)), a = (0, D.useId)(), [o, s] = (0, D.useState)(!1), c = (0, D.useRef)(null), l = e?.status === "failed", u = fH(e);
+function rU({ state: e, problem: t = "", measure: n = !1 }) {
+ let [r, i] = (0, D.useState)(() => nU(e?.job_id)), a = (0, D.useId)(), [o, s] = (0, D.useState)(!1), c = (0, D.useRef)(null), l = e?.status === "failed", u = dH(e);
(0, D.useEffect)(() => {
- i(rU(e?.job_id)), s(!1);
+ i(nU(e?.job_id)), s(!1);
}, [e?.job_id]);
let d = () => {
try {
- r && e?.job_id ? sessionStorage.setItem(nU, e.job_id) : sessionStorage.removeItem(nU);
+ r && e?.job_id ? sessionStorage.setItem(tU, e.job_id) : sessionStorage.removeItem(tU);
} catch {}
r && s(!1), i(!r);
};
@@ -46115,7 +46116,7 @@ function iU({ state: e, problem: t = "", measure: n = !1 }) {
"data-processing-tone": l ? "error" : f ? "warning" : "neutral",
"aria-label": "扫描任务",
role: l ? "alert" : "status",
- className: tF("flex min-w-0 flex-col border bg-background-primary-default p-4", l ? "border-current/35 text-text-error-primary" : f ? "border-current/35 text-status-yellow-text" : "border-border-button-default text-text-primary"),
+ className: eF("flex min-w-0 flex-col border bg-background-primary-default p-4", l ? "border-current/35 text-text-error-primary" : f ? "border-current/35 text-status-yellow-text" : "border-border-button-default text-text-primary"),
children: [
/* @__PURE__ */ (0, O.jsxs)("div", {
className: "flex min-w-0 flex-col gap-3",
@@ -46140,14 +46141,14 @@ function iU({ state: e, problem: t = "", measure: n = !1 }) {
}), u ? /* @__PURE__ */ (0, O.jsx)("p", {
"data-processing-eta": "",
className: "text-caption-1-regular text-text-secondary tabular-nums wrap-anywhere",
- children: pH(e)
+ children: fH(e)
}) : null]
}),
- /* @__PURE__ */ (0, O.jsx)(q, {
+ /* @__PURE__ */ (0, O.jsx)(J, {
size: "small",
variant: "secondary",
iconOnly: !0,
- leadingIcon: BH,
+ leadingIcon: zH,
"data-processing-toggle": "",
"data-collapse-upward": "",
"aria-label": r ? "收起任务详情" : "展开任务详情",
@@ -46156,20 +46157,20 @@ function iU({ state: e, problem: t = "", measure: n = !1 }) {
onClick: d
})
]
- }), /* @__PURE__ */ (0, O.jsx)(tU, {
+ }), /* @__PURE__ */ (0, O.jsx)(eU, {
traffic: e?.traffic,
detailsOpen: o,
onDetailsChange: s
})]
}),
- /* @__PURE__ */ (0, O.jsx)(zH, {
+ /* @__PURE__ */ (0, O.jsx)(RH, {
id: a,
open: r,
"data-processing-body": "",
children: /* @__PURE__ */ (0, O.jsx)("div", {
className: "pt-3",
children: /* @__PURE__ */ (0, O.jsxs)("div", {
- className: tF("flex min-w-0 flex-col gap-2 border-t pt-3", l ? "border-border-error-default/20" : f ? "border-current/20" : "border-separator-border"),
+ className: eF("flex min-w-0 flex-col gap-2 border-t pt-3", l ? "border-border-error-default/20" : f ? "border-current/20" : "border-separator-border"),
children: [
e?.steps?.length ? /* @__PURE__ */ (0, O.jsx)("ol", {
"aria-label": "处理步骤",
@@ -46177,16 +46178,16 @@ function iU({ state: e, problem: t = "", measure: n = !1 }) {
children: e.steps.map((e) => /* @__PURE__ */ (0, O.jsxs)("li", {
"data-processing-step": e.status,
"aria-current": e.status === "current" ? "step" : void 0,
- className: tF("flex min-h-8 items-center gap-2 text-body-2-regular", e.status === "current" ? "text-text-primary" : "text-text-tertiary"),
+ className: eF("flex min-h-8 items-center gap-2 text-body-2-regular", e.status === "current" ? "text-text-primary" : "text-text-tertiary"),
children: [
e.status === "complete" ? /* @__PURE__ */ (0, O.jsx)(ife, {
"aria-hidden": !0,
className: "size-(--icon-inline) shrink-0"
}) : /* @__PURE__ */ (0, O.jsx)(afe, {
"aria-hidden": !0,
- className: tF("size-(--icon-inline) shrink-0", e.status === "current" && "text-border-focus-ring")
+ className: eF("size-(--icon-inline) shrink-0", e.status === "current" && "text-border-focus-ring")
}),
- /* @__PURE__ */ (0, O.jsx)(lw, { children: e.status === "complete" ? "已完成:" : e.status === "current" ? "当前:" : "待处理:" }),
+ /* @__PURE__ */ (0, O.jsx)(cw, { children: e.status === "complete" ? "已完成:" : e.status === "current" ? "当前:" : "待处理:" }),
e.status === "complete" ? /* @__PURE__ */ (0, O.jsx)("s", {
className: "wrap-anywhere",
children: e.label
@@ -46215,11 +46216,11 @@ function iU({ state: e, problem: t = "", measure: n = !1 }) {
}),
/* @__PURE__ */ (0, O.jsxs)("div", {
className: "flex flex-wrap items-center justify-between gap-2 pt-3",
- children: [/* @__PURE__ */ (0, O.jsx)(SH, {
+ children: [/* @__PURE__ */ (0, O.jsx)(xH, {
href: "/data-cleanup#libraryProcessing",
variant: "secondary",
size: "small",
- trailingIcon: dz,
+ trailingIcon: uz,
children: t || l ? "打开扫描与采集" : "任务详情"
}), u ? /* @__PURE__ */ (0, O.jsx)(ehe, {
state: e,
@@ -46230,31 +46231,31 @@ function iU({ state: e, problem: t = "", measure: n = !1 }) {
});
}
function The(e) {
- let { job: t } = MH(e);
- return /* @__PURE__ */ (0, O.jsx)(iU, {
+ let { job: t } = jH(e);
+ return /* @__PURE__ */ (0, O.jsx)(rU, {
state: t.data,
- problem: t.isError ? t.data ? gH : An(t.error) : ""
+ problem: t.isError ? t.data ? hH : An(t.error) : ""
});
}
//#endregion
//#region src/react/library-processing/library-processing-dock.tsx
-var aU = "peach-library-processing";
+var iU = "peach-library-processing";
function Ehe({ toast: e }) {
- let { job: t, settled: n } = MH({
+ let { job: t, settled: n } = jH({
toast: e,
mode: "notice"
- }), r = (0, D.useRef)(""), i = (0, D.useRef)(!1), a = t.data, o = t.isError ? a ? gH : An(t.error) : "";
+ }), r = (0, D.useRef)(""), i = (0, D.useRef)(!1), a = t.data, o = t.isError ? a ? hH : An(t.error) : "";
return (0, D.useEffect)(() => {
- let e = fH(a), t = a?.job_id || "unavailable", s = a?.status === "failed" && (n?.job_id === a.job_id || bH(a));
- !e && (!o && !s || r.current === t) ? (i.current && iH.dismiss(aU), i.current = !1) : (iH.custom(() => /* @__PURE__ */ (0, O.jsx)("div", {
+ let e = dH(a), t = a?.job_id || "unavailable", s = a?.status === "failed" && (n?.job_id === a.job_id || yH(a));
+ !e && (!o && !s || r.current === t) ? (i.current && rH.dismiss(iU), i.current = !1) : (rH.custom(() => /* @__PURE__ */ (0, O.jsx)("div", {
className: "peach-react",
- children: /* @__PURE__ */ (0, O.jsx)(iU, {
+ children: /* @__PURE__ */ (0, O.jsx)(rU, {
state: a,
problem: o,
measure: !0
})
}), {
- id: aU,
+ id: iU,
toasterId: "processing",
duration: Infinity,
dismissible: !e,
@@ -46269,7 +46270,7 @@ function Ehe({ toast: e }) {
o,
n
]), (0, D.useEffect)(() => () => {
- i.current && iH.dismiss(aU), i.current = !1;
+ i.current && rH.dismiss(iU), i.current = !1;
}, []), null;
}
//#endregion
@@ -46302,20 +46303,20 @@ function Ahe() {
//#endregion
//#region src/react/router/pages/settings.tsx
function jhe() {
- let e = (0, D.useContext)(uU), { pathname: t } = RB();
+ let e = (0, D.useContext)(lU), { pathname: t } = LB();
return (0, D.useEffect)(() => {
- e?.openSettings?.(dV(t));
+ e?.openSettings?.(uV(t));
}, [e, t]), (0, D.useEffect)(() => () => {
queueMicrotask(() => {
- uV(XV.navigation.location.pathname) || e?.closeSettings?.();
+ lV(YV.navigation.location.pathname) || e?.closeSettings?.();
});
}, [e]), null;
}
//#endregion
//#region src/react/router/pages/overlay.tsx
-var oU = () => Hl, Mhe = () => Ul;
+var aU = () => Hl, Mhe = () => Ul;
function Nhe() {
- let e = (0, D.useContext)(uU), t = (0, D.useSyncExternalStore)($l, Mhe), n = (0, D.useSyncExternalStore)($l, oU);
+ let e = (0, D.useContext)(lU), t = (0, D.useSyncExternalStore)($l, Mhe), n = (0, D.useSyncExternalStore)($l, aU);
return (0, D.useEffect)(() => {
if (!t || !n) return;
let r = !0;
@@ -46330,11 +46331,11 @@ function Nhe() {
e
]), null;
}
-function sU(e, t = !1) {
- let n = (0, D.useSyncExternalStore)($l, oU), r = (0, D.useRef)(void 0);
+function oU(e, t = !1) {
+ let n = (0, D.useSyncExternalStore)($l, aU), r = (0, D.useRef)(void 0);
if (r.current === void 0) {
- let { claimed: e } = XV.navigation;
- r.current = Hl === 0 || QV() ? "boot" : e && !t ? null : "history";
+ let { claimed: e } = YV.navigation;
+ r.current = Hl === 0 || ZV() ? "boot" : e && !t ? null : "history";
}
let i = (0, D.useRef)(e);
(0, D.useEffect)(() => {
@@ -46351,21 +46352,21 @@ function sU(e, t = !1) {
}, [n]);
}
function Phe() {
- let e = (0, D.useContext)(uU), t = (0, D.useRef)(e);
+ let e = (0, D.useContext)(lU), t = (0, D.useRef)(e);
return (0, D.useLayoutEffect)(() => {
t.current = e;
- }, [e]), sU((t) => {
- let n = XV.navigation.location, { pathname: r, search: i } = uV(n.pathname) && pV(n.state) || n, a = gV(r, i);
- e && a && (SV(), t || lme(XV.navigation.location.state), e.openOverlay(a));
+ }, [e]), oU((t) => {
+ let n = YV.navigation.location, { pathname: r, search: i } = lV(n.pathname) && fV(n.state) || n, a = hV(r, i);
+ e && a && (xV(), t || lme(YV.navigation.location.state), e.openOverlay(a));
}, !0), (0, D.useEffect)(() => () => {
queueMicrotask(() => {
- _V(XV.navigation.location.pathname) || t.current?.closeStage();
+ gV(YV.navigation.location.pathname) || t.current?.closeStage();
});
}, []), null;
}
function Fhe({ path: e }) {
- lU();
- let { location: t, seq: n, action: r } = XV.navigation, i = uV(t.pathname) ? pV(t.state) : null, a = (i || t).pathname + (i || t).search, o = (0, D.useRef)({
+ cU();
+ let { location: t, seq: n, action: r } = YV.navigation, i = lV(t.pathname) ? fV(t.state) : null, a = (i || t).pathname + (i || t).search, o = (0, D.useRef)({
identity: a,
seq: i?.seq ?? n,
navigationSeq: n,
@@ -46379,27 +46380,27 @@ function Fhe({ path: e }) {
}), /* @__PURE__ */ (0, O.jsx)(Phe, {}, `${e} ${o.current.seq}`);
}
function Ihe() {
- let e = (0, D.useContext)(uU);
- return sU(() => {
+ let e = (0, D.useContext)(lU);
+ return oU(() => {
e?.follow?.ground();
}), null;
}
function Lhe() {
- return /* @__PURE__ */ (0, O.jsx)(Ihe, {}, lU());
+ return /* @__PURE__ */ (0, O.jsx)(Ihe, {}, cU());
}
//#endregion
//#region src/react/router/router.tsx
-var cU = (0, D.createContext)(0), lU = () => (0, D.useContext)(cU), uU = (0, D.createContext)(null);
+var sU = (0, D.createContext)(0), cU = () => (0, D.useContext)(sU), lU = (0, D.createContext)(null);
function Rhe({ children: e }) {
- let [t, n] = (0, D.useState)(() => XV.navigation);
- return (0, D.useLayoutEffect)(() => (n(XV.navigation), XV.listen((e) => {
+ let [t, n] = (0, D.useState)(() => YV.navigation);
+ return (0, D.useLayoutEffect)(() => (n(YV.navigation), YV.listen((e) => {
(0, Tt.flushSync)(() => n(e));
- })), []), /* @__PURE__ */ (0, O.jsx)(cU.Provider, {
+ })), []), /* @__PURE__ */ (0, O.jsx)(sU.Provider, {
value: t.openEpoch,
children: /* @__PURE__ */ (0, O.jsx)(Zpe, {
location: t.location,
navigationType: t.action,
- navigator: XV,
+ navigator: YV,
children: e
})
});
@@ -46412,11 +46413,11 @@ function zhe({ target: e }) {
}
function Bhe(e, t, n) {
let r = new URL(e, window.location.href);
- P6(r.pathname) ? n(`${r.pathname}${r.search}${r.hash}`) : t.navigate(e);
+ N6(r.pathname) ? n(`${r.pathname}${r.search}${r.hash}`) : t.navigate(e);
}
function Vhe() {
- let e = (0, D.useContext)(uU), [t, n] = (0, D.useState)(LV), r = (0, D.useRef)(null);
- (0, D.useLayoutEffect)(() => (n(LV()), dme((e, t) => {
+ let e = (0, D.useContext)(lU), [t, n] = (0, D.useState)(IV), r = (0, D.useRef)(null);
+ (0, D.useLayoutEffect)(() => (n(IV()), dme((e, t) => {
t ? (0, Tt.flushSync)(() => n(e)) : n(e);
})), []);
let i = (0, D.useMemo)(() => (t) => {
@@ -46443,79 +46444,79 @@ var Hhe = class extends D.Component {
return this.state.failed ? null : this.props.children;
}
}, Uhe = (0, D.memo)(function({ entry: e, actions: t, go: n }) {
- return J6(e.path) ? (0, Tt.createPortal)(CAe(e.path, e.props, t, n), e.host, String(e.revision)) : null;
+ return q6(e.path) ? (0, Tt.createPortal)(CAe(e.path, e.props, t, n), e.host, String(e.revision)) : null;
});
function Whe({ children: e }) {
- let t = RB();
- lU();
- let n = $V(), r = uV(t.pathname) && !QV() ? pV(t.state) : null;
+ let t = LB();
+ cU();
+ let n = QV(), r = lV(t.pathname) && !ZV() ? fV(t.state) : null;
return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [
- /* @__PURE__ */ (0, O.jsxs)(KB, {
+ /* @__PURE__ */ (0, O.jsxs)(GB, {
location: n ?? t,
children: [
- Object.entries(N6).map(([e, t]) => /* @__PURE__ */ (0, O.jsx)(GB, {
+ Object.entries(M6).map(([e, t]) => /* @__PURE__ */ (0, O.jsx)(WB, {
path: e,
element: t.element
}, e)),
- Object.entries(yAe).map(([e, t]) => /* @__PURE__ */ (0, O.jsx)(GB, {
+ Object.entries(yAe).map(([e, t]) => /* @__PURE__ */ (0, O.jsx)(WB, {
path: e,
element: t.element
}, e)),
- Object.entries(F6).map(([e, t]) => /* @__PURE__ */ (0, O.jsx)(GB, {
+ Object.entries(P6).map(([e, t]) => /* @__PURE__ */ (0, O.jsx)(WB, {
path: e,
element: t.element
}, e)),
- Object.entries(R6).map(([e, t]) => /* @__PURE__ */ (0, O.jsx)(GB, {
+ Object.entries(L6).map(([e, t]) => /* @__PURE__ */ (0, O.jsx)(WB, {
path: e,
element: t.element
}, e)),
- Object.entries(B6).map(([e, t]) => /* @__PURE__ */ (0, O.jsx)(GB, {
+ Object.entries(z6).map(([e, t]) => /* @__PURE__ */ (0, O.jsx)(WB, {
path: e,
element: t.element
}, e)),
- q6.map((e) => /* @__PURE__ */ (0, O.jsx)(GB, {
+ K6.map((e) => /* @__PURE__ */ (0, O.jsx)(WB, {
path: e,
- element: V6["/"].element
+ element: B6["/"].element
}, e)),
- Object.entries(bAe).map(([e, t]) => /* @__PURE__ */ (0, O.jsx)(GB, {
+ Object.entries(bAe).map(([e, t]) => /* @__PURE__ */ (0, O.jsx)(WB, {
path: e,
element: t.element
}, e)),
- mV.map((e) => /* @__PURE__ */ (0, O.jsx)(GB, {
+ pV.map((e) => /* @__PURE__ */ (0, O.jsx)(WB, {
path: e,
- element: e === "/works/:code" ? null : e === "/posts/:id" ? /* @__PURE__ */ (0, O.jsx)(Lhe, {}) : V6["/"].element
+ element: e === "/works/:code" ? null : e === "/posts/:id" ? /* @__PURE__ */ (0, O.jsx)(Lhe, {}) : B6["/"].element
}, e)),
- lV.map((e) => /* @__PURE__ */ (0, O.jsx)(GB, {
+ cV.map((e) => /* @__PURE__ */ (0, O.jsx)(WB, {
path: e,
element: null
}, e)),
- /* @__PURE__ */ (0, O.jsx)(GB, {
+ /* @__PURE__ */ (0, O.jsx)(WB, {
path: "*",
element: e
})
]
}),
- /* @__PURE__ */ (0, O.jsxs)(KB, {
+ /* @__PURE__ */ (0, O.jsxs)(GB, {
location: r ?? t,
- children: [mV.map((e) => /* @__PURE__ */ (0, O.jsx)(GB, {
+ children: [pV.map((e) => /* @__PURE__ */ (0, O.jsx)(WB, {
path: e,
element: /* @__PURE__ */ (0, O.jsx)(Fhe, { path: e })
- }, e)), /* @__PURE__ */ (0, O.jsx)(GB, {
+ }, e)), /* @__PURE__ */ (0, O.jsx)(WB, {
path: "*",
element: null
})]
}),
- /* @__PURE__ */ (0, O.jsxs)(KB, { children: [lV.map((e) => /* @__PURE__ */ (0, O.jsx)(GB, {
+ /* @__PURE__ */ (0, O.jsxs)(GB, { children: [cV.map((e) => /* @__PURE__ */ (0, O.jsx)(WB, {
path: e,
element: /* @__PURE__ */ (0, O.jsx)(jhe, {})
- }, e)), /* @__PURE__ */ (0, O.jsx)(GB, {
+ }, e)), /* @__PURE__ */ (0, O.jsx)(WB, {
path: "*",
element: null
})] })
] });
}
function Ghe({ children: e, actions: t = null, background: n, processing: r = !1 }) {
- return /* @__PURE__ */ (0, O.jsxs)(tH, { children: [n, /* @__PURE__ */ (0, O.jsx)(uU.Provider, {
+ return /* @__PURE__ */ (0, O.jsxs)(eH, { children: [n, /* @__PURE__ */ (0, O.jsx)(lU.Provider, {
value: t,
children: /* @__PURE__ */ (0, O.jsxs)(Rhe, { children: [
/* @__PURE__ */ (0, O.jsx)(Vhe, {}),
@@ -46559,8 +46560,8 @@ function Jhe(e, t) {
}
//#endregion
//#region src/react/boardui/components/base/select/select.tsx
-var dU = (0, D.createContext)("md");
-function fU({ className: e, triggerClassName: t, popoverClassName: n, size: r = "md", children: i, items: a, renderValue: o, ref: s, ...c }) {
+var uU = (0, D.createContext)("md");
+function dU({ className: e, triggerClassName: t, popoverClassName: n, size: r = "md", children: i, items: a, renderValue: o, ref: s, ...c }) {
let l = (0, D.useRef)(null), u = (0, D.useRef)(null), [d, f] = (0, D.useState)(!1);
qhe(d, () => f(!1), [l, u]);
let p = Jhe(d, l);
@@ -46569,23 +46570,23 @@ function fU({ className: e, triggerClassName: t, popoverClassName: n, size: r =
...c,
isOpen: d,
onOpenChange: (e) => p(e) && f(e),
- className: tF("group flex flex-col", e),
- children: ({ isOpen: e }) => /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsxs)(vI, {
+ className: eF("group flex flex-col", e),
+ children: ({ isOpen: e }) => /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsxs)(_I, {
ref: l,
- className: tF("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),
+ className: eF("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, O.jsx)(Vue, {
- className: tF("flex min-w-0 items-center truncate", r === "sm" ? "gap-1" : "gap-[5px]"),
+ className: eF("flex min-w-0 items-center truncate", r === "sm" ? "gap-1" : "gap-[5px]"),
children: o
- }), /* @__PURE__ */ (0, O.jsx)($pe, { className: tF("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
- }), /* @__PURE__ */ (0, O.jsx)(iR, {
+ }), /* @__PURE__ */ (0, O.jsx)($pe, { className: eF("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
+ }), /* @__PURE__ */ (0, O.jsx)(rR, {
ref: u,
isNonModal: !0,
offset: 4,
- className: tF(nme, ZB, "p-2", n),
+ className: eF(nme, XB, "p-2", n),
children: /* @__PURE__ */ (0, O.jsx)(oue, {
items: a,
- className: tF(rme, "max-h-[240px] overflow-auto"),
- children: /* @__PURE__ */ (0, O.jsx)(dU.Provider, {
+ className: eF(rme, "max-h-[240px] overflow-auto"),
+ children: /* @__PURE__ */ (0, O.jsx)(uU.Provider, {
value: r,
children: i
})
@@ -46593,24 +46594,24 @@ function fU({ className: e, triggerClassName: t, popoverClassName: n, size: r =
})] })
});
}
-function pU({ className: e, children: t, ...n }) {
- let r = (0, D.useContext)(dU);
+function fU({ className: e, children: t, ...n }) {
+ let r = (0, D.useContext)(uU);
return /* @__PURE__ */ (0, O.jsx)(lue, {
...n,
- className: (t) => tF(QB, 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) => eF(ZB, 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/catalog-folders/catalog-folders.ts
-var mU = {
+var pU = {
category: "个人分类",
creator: "创作者/账号",
performer: "人物",
seller: "卖家",
studio: "厂牌"
};
-function hU(e, t = "", n = "") {
+function mU(e, t = "", n = "") {
let r = new URLSearchParams({
...e,
folder: t,
@@ -46622,7 +46623,7 @@ function hU(e, t = "", n = "") {
queryFn: ({ signal: e }) => V(`/api/folders?${r}`, e)
};
}
-function gU(e, t) {
+function hU(e, t) {
let n = new URLSearchParams(e.search);
for (let [e, r] of Object.entries(t)) r ? n.set(e, r) : n.delete(e);
return e.pathname + (n.size ? `?${n}` : "");
@@ -46630,7 +46631,7 @@ function gU(e, t) {
//#endregion
//#region src/react/catalog-folders/folder-rule-dialog.tsx
function Yhe({ folder: e, rule: t, revision: n, close: r }) {
- let i = (0, D.useContext)(uU), a = jH(), [o, s] = (0, D.useState)(t?.purpose || "category"), [c, l] = (0, D.useState)(t?.name || ""), [u, d] = (0, D.useState)(t?.recursive ?? !0), [f, p] = (0, D.useState)(t?.future ?? !1), [m, h] = (0, D.useState)(null), [g, _] = (0, D.useState)(!1), v = {
+ let i = (0, D.useContext)(lU), a = AH(), [o, s] = (0, D.useState)(t?.purpose || "category"), [c, l] = (0, D.useState)(t?.name || ""), [u, d] = (0, D.useState)(t?.recursive ?? !0), [f, p] = (0, D.useState)(t?.future ?? !1), [m, h] = (0, D.useState)(null), [g, _] = (0, D.useState)(!1), v = {
folder: e.id,
purpose: o,
name: c,
@@ -46659,7 +46660,7 @@ function Yhe({ folder: e, rule: t, revision: n, close: r }) {
})
})).confirmed ? b("已移除目录规则") : _(!1);
}, w = !!a.busy, T = (e, t) => a.busy === e ? /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)("span", { dangerouslySetInnerHTML: { __html: ns(t) } }), t] }) : null;
- return g ? null : /* @__PURE__ */ (0, O.jsx)(Pz, {
+ return g ? null : /* @__PURE__ */ (0, O.jsx)(Nz, {
isOpen: !0,
onOpenChange: (e) => {
!e && !w && r();
@@ -46673,7 +46674,7 @@ function Yhe({ folder: e, rule: t, revision: n, close: r }) {
className: "flex items-start justify-between gap-4 border-b border-separator-border p-5",
children: [/* @__PURE__ */ (0, O.jsxs)("div", {
className: "min-w-0",
- children: [/* @__PURE__ */ (0, O.jsx)(SI, {
+ children: [/* @__PURE__ */ (0, O.jsx)(xI, {
slot: "title",
className: "text-title-2-medium",
children: "设置目录用途"
@@ -46681,7 +46682,7 @@ function Yhe({ folder: e, rule: t, revision: n, close: r }) {
className: "mt-1 text-body-2-regular text-text-secondary wrap-anywhere",
children: e.path
})]
- }), /* @__PURE__ */ (0, O.jsx)(Bz, {
+ }), /* @__PURE__ */ (0, O.jsx)(zz, {
label: "关闭目录用途",
onPress: () => {
w || r();
@@ -46693,20 +46694,20 @@ function Yhe({ folder: e, rule: t, revision: n, close: r }) {
children: [
/* @__PURE__ */ (0, O.jsxs)("div", {
className: "flex flex-col gap-1",
- children: [/* @__PURE__ */ (0, O.jsx)(Dz, { children: "这个文件夹用于" }), /* @__PURE__ */ (0, O.jsx)(fU, {
+ children: [/* @__PURE__ */ (0, O.jsx)(Ez, { children: "这个文件夹用于" }), /* @__PURE__ */ (0, O.jsx)(dU, {
"aria-label": "这个文件夹用于",
selectedKey: o,
isDisabled: w,
onSelectionChange: (e) => {
s(e), y();
},
- children: Object.entries(mU).map(([e, t]) => /* @__PURE__ */ (0, O.jsx)(pU, {
+ children: Object.entries(pU).map(([e, t]) => /* @__PURE__ */ (0, O.jsx)(fU, {
id: e,
children: t
}, e))
})]
}),
- o === "category" ? null : /* @__PURE__ */ (0, O.jsx)(Nz, {
+ o === "category" ? null : /* @__PURE__ */ (0, O.jsx)(Mz, {
label: "关联名称",
value: c,
onChange: (e) => {
@@ -46717,7 +46718,7 @@ function Yhe({ folder: e, rule: t, revision: n, close: r }) {
isDisabled: w,
isRequired: !0
}),
- /* @__PURE__ */ (0, O.jsx)(iV, {
+ /* @__PURE__ */ (0, O.jsx)(rV, {
isSelected: u,
isDisabled: w,
onChange: (e) => {
@@ -46725,7 +46726,7 @@ function Yhe({ folder: e, rule: t, revision: n, close: r }) {
},
children: "应用到子文件夹"
}),
- /* @__PURE__ */ (0, O.jsx)(iV, {
+ /* @__PURE__ */ (0, O.jsx)(rV, {
isSelected: f,
isDisabled: w,
onChange: (e) => {
@@ -46762,9 +46763,9 @@ function Yhe({ folder: e, rule: t, revision: n, close: r }) {
children: e.name
}, e.id))
}) : null,
- m.conflicts.length ? /* @__PURE__ */ (0, O.jsx)(Iz, {
+ m.conflicts.length ? /* @__PURE__ */ (0, O.jsx)(Fz, {
tone: "warning",
- extra: /* @__PURE__ */ (0, O.jsx)(qH, {
+ extra: /* @__PURE__ */ (0, O.jsx)(KH, {
summary: "查看归属冲突",
children: /* @__PURE__ */ (0, O.jsx)("ul", {
className: "mt-2 flex flex-col gap-2",
@@ -46782,7 +46783,7 @@ function Yhe({ folder: e, rule: t, revision: n, close: r }) {
}) : null
]
}) : null,
- a.error ? /* @__PURE__ */ (0, O.jsx)(Iz, {
+ a.error ? /* @__PURE__ */ (0, O.jsx)(Fz, {
tone: "error",
children: a.error
}) : null
@@ -46791,31 +46792,31 @@ function Yhe({ folder: e, rule: t, revision: n, close: r }) {
/* @__PURE__ */ (0, O.jsxs)("div", {
className: "flex flex-wrap items-center justify-end gap-2 border-t border-separator-border p-4",
children: [
- t ? /* @__PURE__ */ (0, O.jsx)(q, {
+ t ? /* @__PURE__ */ (0, O.jsx)(J, {
variant: "ghost",
className: "mr-auto",
onClick: () => {
w || C();
},
- ...Vz(a.busy === "remove"),
+ ...Bz(a.busy === "remove"),
children: "移除规则"
}) : null,
- /* @__PURE__ */ (0, O.jsx)(q, {
+ /* @__PURE__ */ (0, O.jsx)(J, {
variant: "secondary",
onClick: () => {
w || r();
},
children: "取消"
}),
- m ? /* @__PURE__ */ (0, O.jsx)(q, {
+ m ? /* @__PURE__ */ (0, O.jsx)(J, {
variant: "primary",
- ...Vz(a.busy === "save"),
+ ...Bz(a.busy === "save"),
onClick: S,
children: T("save", "正在保存") || "保存目录用途"
- }) : /* @__PURE__ */ (0, O.jsx)(q, {
+ }) : /* @__PURE__ */ (0, O.jsx)(J, {
variant: "primary",
disabled: o !== "category" && !c.trim(),
- ...Vz(a.busy === "preview"),
+ ...Bz(a.busy === "preview"),
onClick: () => {
x();
},
@@ -46853,21 +46854,21 @@ function Xhe(e, t) {
}
//#endregion
//#region src/react/catalog-folders/catalog-folders-page.tsx
-function _U() {
- return LB() ? /* @__PURE__ */ (0, O.jsx)(Zhe, {}) : null;
+function gU() {
+ return IB() ? /* @__PURE__ */ (0, O.jsx)(Zhe, {}) : null;
}
function Zhe() {
- let e = RB(), t = (0, D.useContext)(uU);
+ let e = LB(), t = (0, D.useContext)(lU);
if (!Zt(e.pathname) && !/^\/(performers|creators|studios|series|agencies|tags)\/[^/]+$/.test(e.pathname)) return null;
let n = new URLSearchParams(e.search), r = n.get("browse") === "folders" || !!n.get("folder");
- return /* @__PURE__ */ (0, O.jsx)(NF, {
+ return /* @__PURE__ */ (0, O.jsx)(MF, {
size: "small",
"data-folder-mode-toggle": "",
"aria-label": "文件夹模式",
title: "文件夹模式",
"aria-pressed": r,
- icon: hz,
- onClick: () => t?.navigate(gU(e, r ? {
+ icon: mz,
+ onClick: () => t?.navigate(hU(e, r ? {
browse: null,
folder: null,
folder_recursive: null
@@ -46875,13 +46876,13 @@ function Zhe() {
});
}
function Qhe({ children: e, enabled: t }) {
- return LB() ? /* @__PURE__ */ (0, O.jsx)($he, {
+ return IB() ? /* @__PURE__ */ (0, O.jsx)($he, {
enabled: t,
children: e
}) : /* @__PURE__ */ (0, O.jsx)(O.Fragment, { children: e });
}
function $he({ children: e, enabled: t }) {
- let [n, r] = (0, D.useState)(null), [i, a] = (0, D.useState)(null), o = RB(), s = new URLSearchParams(o.search), c = t && (s.get("browse") === "folders" || !!s.get("folder"));
+ let [n, r] = (0, D.useState)(null), [i, a] = (0, D.useState)(null), o = LB(), s = new URLSearchParams(o.search), c = t && (s.get("browse") === "folders" || !!s.get("folder"));
return /* @__PURE__ */ (0, O.jsxs)("div", {
className: "entity-folder-workspace",
"data-folder-workspace": "",
@@ -46900,7 +46901,7 @@ function $he({ children: e, enabled: t }) {
hidden: !c
}), e]
}),
- n && i ? /* @__PURE__ */ (0, O.jsx)(vU, {
+ n && i ? /* @__PURE__ */ (0, O.jsx)(_U, {
treeTarget: n,
headerTarget: i,
enabled: t
@@ -46908,14 +46909,14 @@ function $he({ children: e, enabled: t }) {
]
});
}
-function vU({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
- let r = RB(), i = (0, D.useContext)(uU), a = new URLSearchParams(r.search), o = n && (a.get("browse") === "folders" || !!a.get("folder")), s = {
+function _U({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
+ let r = LB(), i = (0, D.useContext)(lU), a = new URLSearchParams(r.search), o = n && (a.get("browse") === "folders" || !!a.get("folder")), s = {
loc: a.get("loc") ?? "",
library: a.get("library") ?? ""
};
Xhe(o, e);
let c = a.get("folder") || "", l = St({
- ...hU(s, c),
+ ...mU(s, c),
enabled: o
}), [u, d] = (0, D.useState)(!1), [f, p] = (0, D.useState)(!1), m = e ?? document.getElementById("catalogFoldersTree"), h = t ?? document.getElementById("catalogFolderHeader");
if ((0, D.useLayoutEffect)(() => (m && (m.hidden = !o), h && (h.hidden = !o), e || document.body.toggleAttribute("data-folder-browse", o), () => {
@@ -46929,7 +46930,7 @@ function vU({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
d(!1), p(!1);
}, [c, o]), !o || !m || !h || !i) return null;
let g = (e) => {
- d(!1), i.navigate(gU(r, {
+ d(!1), i.navigate(hU(r, {
browse: "folders",
folder: e
}));
@@ -46950,7 +46951,7 @@ function vU({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
children: [
/* @__PURE__ */ (0, O.jsx)("span", {
className: "folder-drawer-trigger",
- children: /* @__PURE__ */ (0, O.jsx)(NF, {
+ children: /* @__PURE__ */ (0, O.jsx)(MF, {
"aria-label": "打开文件夹目录",
icon: Dfe,
size: "small",
@@ -46959,12 +46960,12 @@ function vU({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
}),
/* @__PURE__ */ (0, O.jsxs)(tme, {
"aria-label": "文件夹路径",
- children: [/* @__PURE__ */ (0, O.jsx)(YB, {
+ children: [/* @__PURE__ */ (0, O.jsx)(JB, {
current: !c,
onClick: () => g(""),
- icon: hz,
+ icon: mz,
children: "全部文件夹"
- }), _?.ancestors.map((e, t) => /* @__PURE__ */ (0, O.jsx)(YB, {
+ }), _?.ancestors.map((e, t) => /* @__PURE__ */ (0, O.jsx)(JB, {
current: t === _.ancestors.length - 1,
onClick: () => g(e.id),
children: /* @__PURE__ */ (0, O.jsx)("span", {
@@ -46974,7 +46975,7 @@ function vU({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
})
}, e.id))]
}),
- _?.selected ? /* @__PURE__ */ (0, O.jsx)(NF, {
+ _?.selected ? /* @__PURE__ */ (0, O.jsx)(MF, {
"aria-label": "设置目录用途",
icon: vfe,
size: "small",
@@ -46982,9 +46983,9 @@ function vU({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
}) : null
]
}),
- l.error && !u ? /* @__PURE__ */ (0, O.jsx)(Iz, {
+ l.error && !u ? /* @__PURE__ */ (0, O.jsx)(Fz, {
tone: "error",
- action: /* @__PURE__ */ (0, O.jsx)(q, {
+ action: /* @__PURE__ */ (0, O.jsx)(J, {
variant: "secondary",
size: "small",
onClick: () => {
@@ -46994,9 +46995,9 @@ function vU({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
}),
children: An(l.error)
}) : null,
- _?.conflicts?.length ? /* @__PURE__ */ (0, O.jsxs)(Iz, {
+ _?.conflicts?.length ? /* @__PURE__ */ (0, O.jsxs)(Fz, {
tone: "warning",
- action: /* @__PURE__ */ (0, O.jsx)(q, {
+ action: /* @__PURE__ */ (0, O.jsx)(J, {
variant: "secondary",
size: "small",
onClick: () => p(!0),
@@ -47006,14 +47007,14 @@ function vU({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
}) : null,
_?.selected ? /* @__PURE__ */ (0, O.jsxs)("div", {
className: "folder-scope-row",
- children: [/* @__PURE__ */ (0, O.jsx)(iV, {
+ children: [/* @__PURE__ */ (0, O.jsx)(rV, {
size: "sm",
isSelected: a.get("folder_recursive") !== "0",
- onChange: (e) => i.navigate(gU(r, { folder_recursive: e ? null : "0" })),
+ onChange: (e) => i.navigate(hU(r, { folder_recursive: e ? null : "0" })),
children: "包含子文件夹"
}), /* @__PURE__ */ (0, O.jsx)("span", {
className: "text-caption-1-regular text-text-tertiary",
- children: _.rule ? `${mU[_.rule.purpose]}${_.rule.name ? ` · ${_.rule.name}` : ""}` : "个人分类"
+ children: _.rule ? `${pU[_.rule.purpose]}${_.rule.name ? ` · ${_.rule.name}` : ""}` : "个人分类"
})]
}) : null,
l.isPending ? /* @__PURE__ */ (0, O.jsx)("div", {
@@ -47029,7 +47030,7 @@ function vU({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
}, c) : null
]
}), h),
- /* @__PURE__ */ (0, O.jsxs)(Pz, {
+ /* @__PURE__ */ (0, O.jsxs)(Nz, {
isOpen: u,
onOpenChange: d,
width: "form",
@@ -47039,7 +47040,7 @@ function vU({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
children: [/* @__PURE__ */ (0, O.jsx)("h2", {
className: "text-title-2-medium",
children: "文件夹"
- }), /* @__PURE__ */ (0, O.jsx)(Bz, {
+ }), /* @__PURE__ */ (0, O.jsx)(zz, {
label: "关闭文件夹目录",
onPress: () => d(!1)
})]
@@ -47064,17 +47065,17 @@ function ege({ nodes: e, go: t }) {
id: i,
className: "folder-children",
"aria-label": "子文件夹",
- children: a.map((e) => /* @__PURE__ */ (0, O.jsx)(q, {
+ children: a.map((e) => /* @__PURE__ */ (0, O.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: hz,
+ leadingIcon: mz,
onClick: () => t(e.id),
children: /* @__PURE__ */ (0, O.jsx)("span", {
className: "truncate",
children: e.name
})
}, e.id))
- }), e.length > 12 ? /* @__PURE__ */ (0, O.jsx)(q, {
+ }), e.length > 12 ? /* @__PURE__ */ (0, O.jsx)(J, {
variant: "ghost",
size: "small",
"aria-expanded": n,
@@ -47085,27 +47086,27 @@ function ege({ nodes: e, go: t }) {
});
}
function tge({ scope: e, selected: t, current: n, go: r, reportedError: i }) {
- let a = St(hU(e)), [o, s] = (0, D.useState)(/* @__PURE__ */ new Set()), [c, l] = (0, D.useState)(""), u = (0, D.useDeferredValue)(c), d = St({
- ...hU(e, "", u),
+ let a = St(mU(e)), [o, s] = (0, D.useState)(/* @__PURE__ */ new Set()), [c, l] = (0, D.useState)(""), u = (0, D.useDeferredValue)(c), d = St({
+ ...mU(e, "", u),
enabled: !!u.trim()
- }), f = aV();
+ }), f = iV();
(0, D.useEffect)(() => {
n?.ancestors.length && s((e) => /* @__PURE__ */ new Set([...e, ...n.ancestors.filter((e) => e.has_children).map((e) => e.id)]));
}, [n?.ancestors]);
- let p = [...o].map(String), m = bt({ queries: p.map((t) => hU(e, t)) }), h = /* @__PURE__ */ new Map();
+ let p = [...o].map(String), m = bt({ queries: p.map((t) => mU(e, t)) }), h = /* @__PURE__ */ new Map();
m.forEach((e, t) => {
e.data && h.set(p[t], e.data.children);
}), n?.selected && h.set(n.selected.id, n.children);
let g = (e) => {
let t = h.get(e.id);
- return /* @__PURE__ */ (0, O.jsx)(eV, {
+ return /* @__PURE__ */ (0, O.jsx)($B, {
id: e.id,
label: e.name,
- icon: hz,
- expandedIcon: gz,
+ icon: mz,
+ expandedIcon: hz,
iconClassName: "size-(--icon-inline)",
trailingContent: e.parent ? void 0 : e.location === "local" ? "本地" : e.location,
- children: e.has_children ? t ? t.map(g) : /* @__PURE__ */ (0, O.jsx)(eV, {
+ children: e.has_children ? t ? t.map(g) : /* @__PURE__ */ (0, O.jsx)($B, {
id: `${e.id}:loading`,
label: "正在读取文件夹",
isDisabled: !0
@@ -47121,17 +47122,17 @@ function tge({ scope: e, selected: t, current: n, go: r, reportedError: i }) {
"aria-label": "文件夹导航",
className: "catalog-folder-navigation flex min-h-0 min-w-0 flex-col gap-3",
children: [
- /* @__PURE__ */ (0, O.jsx)(Nz, {
+ /* @__PURE__ */ (0, O.jsx)(Mz, {
"aria-label": "查找文件夹",
placeholder: "查找文件夹",
- leadingIcon: wz,
+ leadingIcon: Cz,
value: c,
onChange: l,
size: "small"
}),
- v ? /* @__PURE__ */ (0, O.jsx)(Iz, {
+ v ? /* @__PURE__ */ (0, O.jsx)(Fz, {
tone: "error",
- action: /* @__PURE__ */ (0, O.jsx)(q, {
+ action: /* @__PURE__ */ (0, O.jsx)(J, {
variant: "secondary",
size: "small",
onClick: () => {
@@ -47164,22 +47165,22 @@ function tge({ scope: e, selected: t, current: n, go: r, reportedError: i }) {
"aria-busy": "true",
className: "h-8 skeleton-sheen",
"aria-label": "正在查找文件夹"
- }) : d.error ? /* @__PURE__ */ (0, O.jsx)(Iz, {
+ }) : d.error ? /* @__PURE__ */ (0, O.jsx)(Fz, {
tone: "error",
children: An(d.error)
- }) : d.data?.matches.length ? d.data.matches.map((e) => /* @__PURE__ */ (0, O.jsx)(q, {
+ }) : d.data?.matches.length ? d.data.matches.map((e) => /* @__PURE__ */ (0, O.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: hz,
+ leadingIcon: mz,
onClick: () => {
l(""), r(e.id);
},
children: e.name
- }, e.id)) : /* @__PURE__ */ (0, O.jsx)(Lz, {
+ }, e.id)) : /* @__PURE__ */ (0, O.jsx)(Iz, {
size: "compact",
- icon: wz,
+ icon: Cz,
title: "没有匹配的文件夹",
- actions: /* @__PURE__ */ (0, O.jsx)(q, {
+ actions: /* @__PURE__ */ (0, O.jsx)(J, {
size: "small",
onClick: () => l(""),
children: "清除搜索"
@@ -47194,11 +47195,11 @@ function tge({ scope: e, selected: t, current: n, go: r, reportedError: i }) {
selectedKeys: new Set(t ? [t] : []),
onSelectionChange: _,
children: a.data?.roots.map(g)
- }) : /* @__PURE__ */ (0, O.jsx)(Lz, {
+ }) : /* @__PURE__ */ (0, O.jsx)(Iz, {
size: "compact",
- icon: hz,
+ icon: mz,
title: "尚未添加媒体目录",
- actions: /* @__PURE__ */ (0, O.jsx)(YF, {
+ actions: /* @__PURE__ */ (0, O.jsx)(JF, {
size: "small",
href: "/settings/library",
children: "添加媒体"
@@ -47213,48 +47214,48 @@ function tge({ scope: e, selected: t, current: n, go: r, reportedError: i }) {
//#endregion
//#region src/react/components/segmented.tsx
function nge(e) {
- let t = IF(CH("selection"));
- return /* @__PURE__ */ (0, O.jsx)(az, {
+ let t = FF(SH("selection"));
+ return /* @__PURE__ */ (0, O.jsx)(iz, {
...e,
ref: t
});
}
-function yU(e) {
- let t = IF(CH("selection"));
- return /* @__PURE__ */ (0, O.jsx)(wR, {
+function vU(e) {
+ let t = FF(SH("selection"));
+ return /* @__PURE__ */ (0, O.jsx)(CR, {
...e,
ref: t
});
}
-var bU = "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", xU = "flex min-h-7 flex-none cursor-pointer items-center gap-1.5 rounded-md px-2.5 py-1 max-sm:px-2 text-body-medium whitespace-nowrap text-text-secondary outline-none transition-colors hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-focus-visible:ring-2 data-focus-visible:ring-border-focus-ring data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", rge = "flex size-7 flex-none cursor-pointer items-center justify-center rounded-md text-text-secondary outline-none transition-colors hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-focus-visible:ring-2 data-focus-visible:ring-border-focus-ring data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", SU = "inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg", CU = "relative flex size-8 flex-none cursor-pointer items-center justify-center rounded-lg text-(--glass-text)/62 outline-none transition-colors hover:text-(--glass-text) focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:text-(--glass-text)";
+var yU = "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", bU = "flex min-h-7 flex-none cursor-pointer items-center gap-1.5 rounded-md px-2.5 py-1 max-sm:px-2 text-body-medium whitespace-nowrap text-text-secondary outline-none transition-colors hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-focus-visible:ring-2 data-focus-visible:ring-border-focus-ring data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", rge = "flex size-7 flex-none cursor-pointer items-center justify-center rounded-md text-text-secondary outline-none transition-colors hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-focus-visible:ring-2 data-focus-visible:ring-border-focus-ring data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", xU = "inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg", SU = "relative flex size-8 flex-none cursor-pointer items-center justify-center rounded-lg text-(--glass-text)/62 outline-none transition-colors hover:text-(--glass-text) focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:text-(--glass-text)";
//#endregion
//#region src/react/catalog-grid/catalog-view-toggle.tsx
-function wU() {
- let e = hM();
- return /* @__PURE__ */ (0, O.jsxs)(wR, {
+function CU() {
+ let e = mM();
+ return /* @__PURE__ */ (0, O.jsxs)(CR, {
"aria-label": "馆藏显示方式",
orientation: "horizontal",
value: e,
- onChange: pM,
+ onChange: fM,
"data-entity-layout": "",
- className: SU,
- children: [/* @__PURE__ */ (0, O.jsx)(TR, {
+ className: xU,
+ children: [/* @__PURE__ */ (0, O.jsx)(wR, {
value: "cards",
"aria-label": "卡片",
- className: CU,
+ className: SU,
"data-glass-segment": "",
children: /* @__PURE__ */ (0, O.jsx)("span", {
title: "卡片",
className: "pointer-events-none contents",
- children: /* @__PURE__ */ (0, O.jsx)(yz, {
+ children: /* @__PURE__ */ (0, O.jsx)(vz, {
"aria-hidden": "true",
className: "size-4"
})
})
- }), /* @__PURE__ */ (0, O.jsx)(TR, {
+ }), /* @__PURE__ */ (0, O.jsx)(wR, {
value: "list",
"aria-label": "列表",
- className: CU,
+ className: SU,
"data-glass-segment": "",
children: /* @__PURE__ */ (0, O.jsx)("span", {
title: "列表",
@@ -47269,8 +47270,8 @@ function wU() {
}
//#endregion
//#region src/react/components/icon-swap.tsx
-function TU({ a: e, b: t, state: n, className: r }) {
- let { isFocusVisible: i } = sx();
+function wU({ a: e, b: t, state: n, className: r }) {
+ let { isFocusVisible: i } = ox();
return /* @__PURE__ */ (0, O.jsxs)("span", {
"aria-hidden": !0,
className: `iconswap ${r || ""}`,
@@ -47286,8 +47287,8 @@ function TU({ a: e, b: t, state: n, className: r }) {
})]
});
}
-function EU({ className: e }) {
- return /* @__PURE__ */ (0, O.jsx)(TU, {
+function TU({ className: e }) {
+ return /* @__PURE__ */ (0, O.jsx)(wU, {
a: Zde,
b: Xde,
className: e
@@ -47295,75 +47296,75 @@ function EU({ className: e }) {
}
//#endregion
//#region src/react/follow-feed/follow-marks.ts
-var DU = (e) => typeof e == "string" ? e : "", OU = (e) => e.aliases;
-function kU(e, t = "") {
+var EU = (e) => typeof e == "string" ? e : "", DU = (e) => e.aliases;
+function OU(e, t = "") {
let n = hi(e);
return n ? `<img data-follow-site-icon="" src="${n}" alt="${B(t)}"${t ? ` title="${B(t)}"` : ""} loading="lazy" data-drop="self">` : "";
}
-function AU(e, t = "") {
+function kU(e, t = "") {
let n = B(Or(t || e)), r = hi(e);
return r ? `<img data-follow-site-icon="" src="${r}" alt="" loading="lazy" data-drop="initial" data-initial="${n}" data-drop-class="follow-site-initial">` : `<span class="follow-site-initial" aria-hidden="true">${n}</span>`;
}
-var jU = (e) => DU(e.title).trim() || "未命名内容", MU = (e, t) => Dr(e, OU(t));
-function NU(e) {
+var AU = (e) => EU(e.title).trim() || "未命名内容", jU = (e, t) => Dr(e, DU(t));
+function MU(e) {
let t = e.filter((e) => e.entity_id && e.entity_name);
if (new Set(t.map((e) => e.entity_id)).size !== 1) return "";
- let n = t[0], r = DU(n.entity_name);
+ let n = t[0], r = EU(n.entity_name);
return jt("creator", r, n.entity_id), r;
}
-function PU(e, t) {
+function NU(e, t) {
let { src: n, fallback: r } = kr(e), i = Or(t);
if (!n) return `<span class="favatar none" title="没有可用头像">${B(i)}</span>`;
let a = r ? ` data-fallbacks="${B(r)}"` : "";
return `<img class="favatar" src="${B(n)}" alt="" loading="lazy" referrerpolicy="no-referrer" data-drop="initial"${a} data-initial="${B(i)}" data-drop-class="favatar none">`;
}
-function FU(e, t, n) {
- let r = OU(n), i = e.credit, a = i?.poster;
+function PU(e, t, n) {
+ let r = DU(n), i = e.credit, a = i?.poster;
if (!a) {
let n = Dr(t, r);
return {
- author: n || DU(e.author) || DU(e.source_label) || "创作者未取得",
- avatar: PU(t, n),
+ author: n || EU(e.author) || EU(e.source_label) || "创作者未取得",
+ avatar: NU(t, n),
credited: "",
- entityName: NU(t)
+ entityName: MU(t)
};
}
let o = (e) => String(e || "").toLowerCase().replace(/[^a-z0-9]/g, ""), s = n.sources.find((e) => o(e.ref) === o(a)), c = s?.author_key ? n.sources.filter((e) => e.author_key === s.author_key) : s ? [s] : [], l = c.length && Dr(c, r) || a;
return {
author: l,
- avatar: PU(c, l),
+ avatar: NU(c, l),
credited: i.credited || "",
- entityName: NU(c)
+ entityName: MU(c)
};
}
-function IU(e, t = e.primary) {
+function FU(e, t = e.primary) {
let n = [], r = (e, t) => `<small class="javedition" data-follow-edition="${e}">${t}</small>`;
e.primary.variant_kind === "wip" ? n.push(r("wip", "WIP")) : e.has_wip && n.push(r("has-wip", "含 WIP"));
- let i = DU(e.primary.version);
+ let i = EU(e.primary.version);
i && n.push(r("version", B(i)));
- let a = DU(t.audio), o = a === "voiced" ? "配音版" : a === "silent" ? "无声版" : "";
+ let a = EU(t.audio), o = a === "voiced" ? "配音版" : a === "silent" ? "无声版" : "";
return o && n.push(r(a, o)), n.join("");
}
-function LU(e, t = e.primary) {
+function IU(e, t = e.primary) {
let n = new Map([
e.primary,
...e.variants,
...e.duplicates
].filter((e) => e.provider !== t.provider).map((e) => [e.provider, e.provider_label || e.provider]));
if (!n.size) return "";
- let r = [...n].map(([e, t]) => kU(e, t) || `<span>${B(t)}</span>`).join("");
+ let r = [...n].map(([e, t]) => OU(e, t) || `<span>${B(t)}</span>`).join("");
return `<span data-follow-seealso="" title="另见 ${B([...n.values()].join("、"))}"><span data-follow-seealso-label="">另见</span> ${r}</span>`;
}
-function RU(e, t) {
- let n = DU(e.media_error);
+function LU(e, t) {
+ let n = EU(e.media_error);
return n ? `媒体未取得:${n}` : e.media_needs_credential && !t.credentials.has(e.provider) ? e.playable ? "部分媒体未取得:需要 F95 登录会话解析" : "媒体未取得:需要 F95 登录会话解析" : "";
}
var ige = 864e5, age = (e, t) => {
let n = new Date(/[Zz]|[+-]\d\d:?\d\d$/.test(e) ? e : `${e}Z`).getTime();
return Number.isFinite(n) && n - t > ige;
};
-function zU(e, t) {
- let n = DU(e.published_at);
+function RU(e, t) {
+ let n = EU(e.published_at);
if (!n) return null;
let r = e.published_precision === "approximate", i = Wn(n);
return {
@@ -47372,29 +47373,29 @@ function zU(e, t) {
suffix: age(n, t) ? " · 晚于现在" : ""
};
}
-function BU(e, t = Date.now()) {
- let n = zU(e, t);
+function zU(e, t = Date.now()) {
+ let n = RU(e, t);
return n ? `${n.prefix}${n.full}${n.suffix}` : "时间未取得";
}
function oge(e, t = Date.now()) {
- let n = zU(e, t);
+ let n = RU(e, t);
if (!n) return "时间未取得";
if (!/^\d{4}-/.test(n.full)) return `${n.prefix}${n.full}${n.suffix}`;
let r = n.full.startsWith(String(new Date(t).getFullYear())) ? n.full.slice(5, 10) : n.full.slice(0, 10);
return `${n.prefix}${r}${n.suffix}`;
}
-var VU = /* @__PURE__ */ new Set(), HU = [], UU = null;
-function WU() {
- if (UU = null, !HU.length) return;
- let e = HU.splice(0, 200);
+var BU = /* @__PURE__ */ new Set(), VU = [], HU = null;
+function UU() {
+ if (HU = null, !VU.length) return;
+ let e = VU.splice(0, 200);
z("/api/follow/image-dims", {
method: "POST",
body: JSON.stringify({ entries: e })
- }).catch(() => {}), HU.length && (UU = setTimeout(WU, 800));
+ }).catch(() => {}), VU.length && (HU = setTimeout(UU, 800));
}
function sge(e, t, n, r) {
let i = `${e}:${t ?? ""}`;
- VU.has(i) || (VU.add(i), HU.push(t === null ? {
+ BU.has(i) || (BU.add(i), VU.push(t === null ? {
item: e,
width: n,
height: r
@@ -47403,26 +47404,26 @@ function sge(e, t, n, r) {
width: n,
height: r,
media: t
- }), UU ||= setTimeout(WU, 800));
+ }), HU ||= setTimeout(UU, 800));
}
//#endregion
//#region src/react/entity-filter/entity-filter.ts
-var cge = (e) => e === "videos", GU = () => /* @__PURE__ */ (0, O.jsx)("span", {
+var cge = (e) => e === "videos", WU = () => /* @__PURE__ */ (0, O.jsx)("span", {
"data-entity-sep": "",
"aria-hidden": "true"
-}), lge = zz("shuffle"), uge = zz("arrow-up"), dge = zz("arrow-down");
+}), lge = Rz("shuffle"), uge = Rz("arrow-up"), dge = Rz("arrow-down");
function fge(e) {
let { view: t, views: n, state: r, states: i, tags: a, combo: o, actions: s, helpers: c } = e, l = cge(t), u = t === "online" ? e.online : null, d = l || !!u, f = u ? u.status : r, p = u ? u.statuses.map(([e, t]) => ({
k: e,
label: t
- })) : i, m = (0, D.useRef)(null), h = (0, D.useRef)(null), g = (0, D.useRef)(null), _ = (0, D.useRef)(null), v = (0, D.useRef)(null), y = (0, D.useRef)(null), b = (0, D.useRef)(null), x = qF(m, g, "[data-entity-state][aria-pressed=\"true\"]", `${t}:${f}`), S = qF(h, _, "[data-media-view][aria-pressed=\"true\"]", `${t}:${!!n}`), C = (0, D.useRef)(null), w = (0, D.useRef)(null), T = u?.mediaCounts ? u : null, E = qF(C, w, "[data-media-view][aria-pressed=\"true\"]", `${t}:${u?.media}:${!!T}`);
+ })) : i, m = (0, D.useRef)(null), h = (0, D.useRef)(null), g = (0, D.useRef)(null), _ = (0, D.useRef)(null), v = (0, D.useRef)(null), y = (0, D.useRef)(null), b = (0, D.useRef)(null), x = KF(m, g, "[data-entity-state][aria-pressed=\"true\"]", `${t}:${f}`), S = KF(h, _, "[data-media-view][aria-pressed=\"true\"]", `${t}:${!!n}`), C = (0, D.useRef)(null), w = (0, D.useRef)(null), T = u?.mediaCounts ? u : null, E = KF(C, w, "[data-media-view][aria-pressed=\"true\"]", `${t}:${u?.media}:${!!T}`);
return (0, D.useEffect)(() => {
c.wireDrag(y.current), c.wireScroller(v.current), c.wireDrag(b.current);
- }, [c]), /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(KU, {
+ }, [c]), /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(GU, {
items: o,
hidden: !l,
actions: s
- }), /* @__PURE__ */ (0, O.jsx)(BF, {
+ }), /* @__PURE__ */ (0, O.jsx)(zF, {
label: "筛选与排序",
topLabel: "媒体与标签",
attrs: {
@@ -47457,13 +47458,13 @@ function fge(e) {
row: _,
glide: S,
onView: s.setView
- }), d ? /* @__PURE__ */ (0, O.jsx)(GU, {}) : null] }) : null,
+ }), d ? /* @__PURE__ */ (0, O.jsx)(WU, {}) : null] }) : null,
T ? /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(mge, {
head: T,
row: w,
glide: E,
onMedia: s.onlineMedia
- }), /* @__PURE__ */ (0, O.jsx)(GU, {})] }) : null,
+ }), /* @__PURE__ */ (0, O.jsx)(WU, {})] }) : null,
/* @__PURE__ */ (0, O.jsxs)("div", {
ref: v,
"data-entity-scroll": "",
@@ -47484,11 +47485,11 @@ function fge(e) {
f !== e.k && (u ? s.onlineStatus(e.k) : s.setState(e.k));
},
children: e.label
- }, e.k)), !u || u.providers.length || u.tags.length ? /* @__PURE__ */ (0, O.jsx)(GU, {}) : null]
+ }, e.k)), !u || u.providers.length || u.tags.length ? /* @__PURE__ */ (0, O.jsx)(WU, {}) : null]
}), /* @__PURE__ */ (0, O.jsx)("div", {
ref: y,
"data-entity-tags": "",
- children: l ? a.map((e) => /* @__PURE__ */ (0, O.jsxs)(HF, {
+ children: l ? a.map((e) => /* @__PURE__ */ (0, O.jsxs)(VF, {
"data-entity-tag": e.k,
"data-entity-press": "",
pressed: e.selected,
@@ -47554,10 +47555,10 @@ function hge({ head: e, actions: t }) {
title: r,
"aria-label": `来源:${r}`,
onClick: () => t.onlineProvider(n),
- dangerouslySetInnerHTML: { __html: kU(n) }
+ dangerouslySetInnerHTML: { __html: OU(n) }
}, n)),
- e.providers.length && e.tags.length ? /* @__PURE__ */ (0, O.jsx)(GU, {}) : null,
- e.tags.map((e) => /* @__PURE__ */ (0, O.jsxs)(HF, {
+ e.providers.length && e.tags.length ? /* @__PURE__ */ (0, O.jsx)(WU, {}) : null,
+ e.tags.map((e) => /* @__PURE__ */ (0, O.jsxs)(VF, {
"data-follow-tag": e.k,
"data-entity-press": "",
"data-tag-cat": `r34-${e.cat}`,
@@ -47618,7 +47619,7 @@ function gge({ keys: e, view: t, row: n, glide: r, onView: i }) {
})
});
}
-function KU({ items: e, hidden: t, actions: n }) {
+function GU({ items: e, hidden: t, actions: n }) {
return /* @__PURE__ */ (0, O.jsx)("div", {
"data-entity-combo": "",
hidden: t,
@@ -47654,17 +47655,17 @@ function _ge(e) {
text: n,
busy: r
}),
- /* @__PURE__ */ (0, O.jsx)(eB, { currentHref: () => location.pathname + location.search }),
+ /* @__PURE__ */ (0, O.jsx)($z, { currentHref: () => location.pathname + location.search }),
t === "videos" && i ? /* @__PURE__ */ (0, O.jsx)(yge, {
head: i,
actions: o
}) : null,
- t === "photos" && a ? /* @__PURE__ */ (0, O.jsx)(ZU, {
+ t === "photos" && a ? /* @__PURE__ */ (0, O.jsx)(XU, {
head: a,
actions: o,
helpers: s
}) : null,
- t === "online" && e.online ? /* @__PURE__ */ (0, O.jsx)(XU, {
+ t === "online" && e.online ? /* @__PURE__ */ (0, O.jsx)(YU, {
head: e.online,
actions: o
}) : null
@@ -47680,22 +47681,22 @@ function vge({ text: e, busy: t }) {
}) : e
});
}
-function qU({ name: e, label: t, value: n, options: r, onChange: i }) {
- return /* @__PURE__ */ (0, O.jsx)(wR, {
+function KU({ name: e, label: t, value: n, options: r, onChange: i }) {
+ return /* @__PURE__ */ (0, O.jsx)(CR, {
name: e,
"aria-label": t,
orientation: "horizontal",
value: n,
onChange: i,
"data-entity-layout": "",
- className: SU,
+ className: xU,
children: r.map(([e, t, n]) => {
- let r = zz(n);
- return /* @__PURE__ */ (0, O.jsx)(TR, {
+ let r = Rz(n);
+ return /* @__PURE__ */ (0, O.jsx)(wR, {
value: e,
"aria-label": t,
"data-glass-segment": "",
- className: CU,
+ className: SU,
children: /* @__PURE__ */ (0, O.jsx)("span", {
title: t,
className: "contents",
@@ -47705,8 +47706,8 @@ function qU({ name: e, label: t, value: n, options: r, onChange: i }) {
})
});
}
-function JU({ onPress: e, busy: t = !1 }) {
- return /* @__PURE__ */ (0, O.jsx)(RF, {
+function qU({ onPress: e, busy: t = !1 }) {
+ return /* @__PURE__ */ (0, O.jsx)(LF, {
"data-entity-batch": "",
label: "换一批",
busy: t,
@@ -47716,27 +47717,27 @@ function JU({ onPress: e, busy: t = !1 }) {
});
}
function yge({ head: e, actions: t }) {
- let n = hM();
+ let n = mM();
return /* @__PURE__ */ (0, O.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, O.jsx)(JU, { onPress: () => void t.reshuffle() }),
- e.jav && n === "cards" ? /* @__PURE__ */ (0, O.jsx)(qU, {
+ /* @__PURE__ */ (0, O.jsx)(qU, { onPress: () => void t.reshuffle() }),
+ e.jav && n === "cards" ? /* @__PURE__ */ (0, O.jsx)(KU, {
label: "JAV 卡片版式",
value: e.jav.layout,
options: e.jav.options,
onChange: t.setJavLayout
}) : null,
- /* @__PURE__ */ (0, O.jsx)(wU, {}),
- /* @__PURE__ */ (0, O.jsx)(_U, {}),
- /* @__PURE__ */ (0, O.jsx)(YU, {
+ /* @__PURE__ */ (0, O.jsx)(CU, {}),
+ /* @__PURE__ */ (0, O.jsx)(gU, {}),
+ /* @__PURE__ */ (0, O.jsx)(JU, {
sorts: e.sorts,
onSort: t.setSort
})
]
});
}
-function YU({ sorts: e, onSort: t }) {
+function JU({ sorts: e, onSort: t }) {
return /* @__PURE__ */ (0, O.jsx)(O.Fragment, { children: e.map((e) => /* @__PURE__ */ (0, O.jsxs)("button", {
type: "button",
"data-entity-sort": e.key,
@@ -47744,7 +47745,7 @@ function YU({ sorts: e, onSort: t }) {
"aria-pressed": e.pressed,
"aria-label": e.ariaLabel || void 0,
onClick: () => t(e.key),
- children: [e.label, e.pressed && e.dir ? /* @__PURE__ */ (0, O.jsx)(TU, {
+ children: [e.label, e.pressed && e.dir ? /* @__PURE__ */ (0, O.jsx)(wU, {
a: uge,
b: dge,
state: e.dir === "asc" ? "a" : "b",
@@ -47752,12 +47753,12 @@ function YU({ sorts: e, onSort: t }) {
}) : null]
}, e.key)) });
}
-function XU({ head: e, actions: t }) {
+function YU({ head: e, actions: t }) {
return /* @__PURE__ */ (0, O.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, O.jsx)(JU, { onPress: t.onlineShuffle }),
- e.media === "images" ? /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(qU, {
+ /* @__PURE__ */ (0, O.jsx)(qU, { onPress: t.onlineShuffle }),
+ e.media === "images" ? /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(KU, {
label: "图片布局",
value: e.photoLayout,
options: e.photoLayouts,
@@ -47777,27 +47778,27 @@ function XU({ head: e, actions: t }) {
dangerouslySetInnerHTML: { __html: R("captions-off") }
})]
})] }) : null,
- /* @__PURE__ */ (0, O.jsx)(YU, {
+ /* @__PURE__ */ (0, O.jsx)(JU, {
sorts: e.sorts,
onSort: t.onlineSort
})
]
});
}
-function ZU({ head: e, actions: t, helpers: n }) {
+function XU({ head: e, actions: t, helpers: n }) {
let [r, i] = (0, D.useState)(!1), a = (0, D.useRef)(null), o = e.back ? n.sourceToolsHtml(e.setId) : "";
return (0, D.useEffect)(() => {
a.current && o && n.wireSourceTools(a.current);
}, [n, o]), /* @__PURE__ */ (0, O.jsxs)("span", {
"data-entity-sorts": "",
children: [
- e.shuffle ? /* @__PURE__ */ (0, O.jsx)(JU, {
+ e.shuffle ? /* @__PURE__ */ (0, O.jsx)(qU, {
onPress: () => {
i(!0), t.reshuffle().finally(() => i(!1));
},
busy: r
}) : null,
- /* @__PURE__ */ (0, O.jsx)(qU, {
+ /* @__PURE__ */ (0, O.jsx)(KU, {
label: "图片布局",
value: e.layout,
options: e.layouts,
@@ -47813,31 +47814,31 @@ function ZU({ head: e, actions: t, helpers: n }) {
}
//#endregion
//#region src/react/catalog-filter/catalog-filter-page.tsx
-var QU = "";
-function $U(e) {
- let t = !e.tiers, n = sW(e.comboHost);
+var ZU = "";
+function QU(e) {
+ let t = !e.tiers, n = oW(e.comboHost);
return /* @__PURE__ */ (0, O.jsxs)("div", {
"data-catalog-root": "",
"data-loading": t || void 0,
"data-refreshing": e.refreshing || void 0,
className: "contents",
children: [
- n ? (0, Tt.createPortal)(/* @__PURE__ */ (0, O.jsx)(KU, {
+ n ? (0, Tt.createPortal)(/* @__PURE__ */ (0, O.jsx)(GU, {
items: e.combo,
hidden: e.comboHidden,
actions: e.actions
}), n) : null,
- /* @__PURE__ */ (0, O.jsx)(nW, { ...e }),
- e.offscreen ? null : /* @__PURE__ */ (0, O.jsx)(eW, { ...e })
+ /* @__PURE__ */ (0, O.jsx)(tW, { ...e }),
+ e.offscreen ? null : /* @__PURE__ */ (0, O.jsx)($U, { ...e })
]
});
}
-function eW(e) {
- let { actions: t, helpers: n } = e, r = (0, D.useRef)(null), i = (0, D.useRef)(null), a = (0, D.useRef)(null), o = (0, D.useRef)(null), s = (0, D.useRef)(null), [c, l] = (0, D.useState)(!1), u = qF(r, i, "[data-catalog-view][aria-pressed=\"true\"]", e.state);
+function $U(e) {
+ let { actions: t, helpers: n } = e, r = (0, D.useRef)(null), i = (0, D.useRef)(null), a = (0, D.useRef)(null), o = (0, D.useRef)(null), s = (0, D.useRef)(null), [c, l] = (0, D.useState)(!1), u = KF(r, i, "[data-catalog-view][aria-pressed=\"true\"]", e.state);
(0, D.useEffect)(() => {
n.wireDrag(o.current), n.wireScroller(a.current), n.wireDrag(s.current);
}, [n]);
- let d = !e.tiers, f = cW(o, e.tags, e.tiers?.key ?? "", e.tagFirst);
+ let d = !e.tiers, f = sW(o, e.tags, e.tiers?.key ?? "", e.tagFirst);
return (0, D.useLayoutEffect)(() => {
let e = a.current?.closest("[data-catalog-frame]");
if (!e) return;
@@ -47854,7 +47855,7 @@ function eW(e) {
e.sorts
]), (0, D.useLayoutEffect)(() => {
ms(o.current, "tagbar");
- }, [f]), /* @__PURE__ */ (0, O.jsx)(BF, {
+ }, [f]), /* @__PURE__ */ (0, O.jsx)(zF, {
label: "筛选与排序",
topLabel: "视图与标签",
attrs: {
@@ -47898,17 +47899,17 @@ function eW(e) {
}), /* @__PURE__ */ (0, O.jsxs)("div", {
ref: o,
"data-catalog-tags": "",
- children: [e.empty || d ? /* @__PURE__ */ (0, O.jsx)(iW, { kind: "tag" }) : null, f.map((e) => /* @__PURE__ */ (0, O.jsx)(tW, {
+ children: [e.empty || d ? /* @__PURE__ */ (0, O.jsx)(rW, { kind: "tag" }) : null, f.map((e) => /* @__PURE__ */ (0, O.jsx)(eW, {
tag: e,
onPress: t.toggleTag
}, e.k))]
})]
}),
- bottom: e.trash ? null : /* @__PURE__ */ (0, O.jsx)(aW, { ...e })
+ bottom: e.trash ? null : /* @__PURE__ */ (0, O.jsx)(iW, { ...e })
});
}
-function tW({ tag: e, onPress: t }) {
- return /* @__PURE__ */ (0, O.jsxs)(HF, {
+function eW({ tag: e, onPress: t }) {
+ return /* @__PURE__ */ (0, O.jsxs)(VF, {
"data-catalog-tag": e.k,
"data-entity-press": "",
pressed: e.selected,
@@ -47919,12 +47920,12 @@ function tW({ tag: e, onPress: t }) {
})]
});
}
-function nW(e) {
+function tW(e) {
let { actions: t, helpers: n } = e, r = e.tiers ?? {
key: "",
performers: [],
studios: []
- }, i = e.empty || !e.tiers, a = (0, D.useRef)(null), o = (0, D.useRef)(null), s = (0, D.useCallback)((e) => () => t.moreTops(e), [t]), c = cW(a, r.performers, r.key, 24, i ? void 0 : s("performers")), l = cW(o, r.studios, r.key, 24, i ? void 0 : s("studios")), u = i || r.performers.length > 0, d = i || r.studios.length > 0;
+ }, i = e.empty || !e.tiers, a = (0, D.useRef)(null), o = (0, D.useRef)(null), s = (0, D.useCallback)((e) => () => t.moreTops(e), [t]), c = sW(a, r.performers, r.key, 24, i ? void 0 : s("performers")), l = sW(o, r.studios, r.key, 24, i ? void 0 : s("studios")), u = i || r.performers.length > 0, d = i || r.studios.length > 0;
return (0, D.useEffect)(() => {
n.wireDrag(a.current), n.wireDrag(o.current);
}, [
@@ -47937,7 +47938,7 @@ function nW(e) {
children: [u ? /* @__PURE__ */ (0, O.jsx)("div", {
ref: a,
"data-catalog-tier": "performers",
- children: i ? /* @__PURE__ */ (0, O.jsx)(iW, { kind: "performer" }) : c.map((e) => /* @__PURE__ */ (0, O.jsxs)("button", {
+ children: i ? /* @__PURE__ */ (0, O.jsx)(rW, { kind: "performer" }) : c.map((e) => /* @__PURE__ */ (0, O.jsxs)("button", {
type: "button",
"data-tier-performer": "",
"data-entity-kind": "performer",
@@ -47954,18 +47955,18 @@ function nW(e) {
}) : null, d ? /* @__PURE__ */ (0, O.jsx)("div", {
ref: o,
"data-catalog-tier": "studios",
- children: i ? /* @__PURE__ */ (0, O.jsx)(iW, { kind: "studio" }) : l.map((e) => /* @__PURE__ */ (0, O.jsxs)("button", {
+ children: i ? /* @__PURE__ */ (0, O.jsx)(rW, { kind: "studio" }) : l.map((e) => /* @__PURE__ */ (0, O.jsxs)("button", {
type: "button",
"data-tier-studio": "",
"data-entity-kind": "studio",
"data-entity-name": e.name,
onClick: () => t.openEntity("studio", e.name),
- children: [/* @__PURE__ */ (0, O.jsx)(rW, { studio: e }), e.name]
+ children: [/* @__PURE__ */ (0, O.jsx)(nW, { studio: e }), e.name]
}, e.name))
}) : null]
});
}
-function rW({ studio: e }) {
+function nW({ studio: e }) {
let [t, n] = (0, D.useState)(!1);
return /* @__PURE__ */ (0, O.jsx)("span", {
"data-tier-mark": "",
@@ -47983,7 +47984,7 @@ function rW({ studio: e }) {
}) : e.fallback
});
}
-function iW({ kind: e }) {
+function rW({ kind: e }) {
let t = Array.from({ length: 64 }, (e, t) => t);
return e === "tag" ? /* @__PURE__ */ (0, O.jsx)("span", {
"data-catalog-placeholder": "tag",
@@ -47999,37 +48000,37 @@ function iW({ kind: e }) {
children: [/* @__PURE__ */ (0, O.jsx)("span", {}), /* @__PURE__ */ (0, O.jsx)("span", { children: "\xA0" })]
}, t)) });
}
-function aW({ count: e, refreshing: t, layout: n, sorts: r, actions: i }) {
- let a = hM(), [o, s] = (0, D.useState)(!1);
+function iW({ count: e, refreshing: t, layout: n, sorts: r, actions: i }) {
+ let a = mM(), [o, s] = (0, D.useState)(!1);
return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsxs)("span", {
"data-catalog-summary": "",
- children: [/* @__PURE__ */ (0, O.jsx)(oW, { count: e }), /* @__PURE__ */ (0, O.jsx)(eB, { currentHref: i.currentHref })]
+ children: [/* @__PURE__ */ (0, O.jsx)(aW, { count: e }), /* @__PURE__ */ (0, O.jsx)($z, { currentHref: i.currentHref })]
}), /* @__PURE__ */ (0, O.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, O.jsx)(JU, {
+ /* @__PURE__ */ (0, O.jsx)(qU, {
onPress: () => {
s(!0), i.reshuffle().finally(() => s(!1));
},
busy: o || t
}),
- n && a === "cards" ? /* @__PURE__ */ (0, O.jsx)(qU, {
+ n && a === "cards" ? /* @__PURE__ */ (0, O.jsx)(KU, {
name: n.name,
label: n.label,
value: n.value,
options: n.options,
onChange: i.setLayout
}, n.name) : null,
- /* @__PURE__ */ (0, O.jsx)(wU, {}),
- /* @__PURE__ */ (0, O.jsx)(_U, {}),
- /* @__PURE__ */ (0, O.jsx)(YU, {
+ /* @__PURE__ */ (0, O.jsx)(CU, {}),
+ /* @__PURE__ */ (0, O.jsx)(gU, {}),
+ /* @__PURE__ */ (0, O.jsx)(JU, {
sorts: r,
onSort: i.setSort
})
]
})] });
}
-function oW({ count: e }) {
+function aW({ count: e }) {
let t = (0, D.useRef)(null), n = (0, D.useRef)(null), r = e ? `${e.total.toLocaleString()} 个符合 · 显示 ${e.shown.toLocaleString()}` : "";
return (0, D.useLayoutEffect)(() => {
if (e === !1) return;
@@ -48038,7 +48039,7 @@ function oW({ count: e }) {
return;
}
let i = t.current;
- i && (QU && i.dataset.popCount === void 0 && (i.dataset.popCount = QU), QU = r, ds(i, r));
+ i && (ZU && i.dataset.popCount === void 0 && (i.dataset.popCount = ZU), ZU = r, ds(i, r));
}, [e, r]), e === !1 ? /* @__PURE__ */ (0, O.jsx)("span", { "data-catalog-readout": "" }, "failed") : e ? /* @__PURE__ */ (0, O.jsx)("span", {
ref: t,
"data-catalog-readout": "",
@@ -48054,7 +48055,7 @@ function oW({ count: e }) {
})
}, "skeleton");
}
-function sW(e) {
+function oW(e) {
let [t, n] = (0, D.useState)(null);
return (0, D.useLayoutEffect)(() => {
if (!e) return;
@@ -48064,7 +48065,7 @@ function sW(e) {
};
}, [e]), t;
}
-function cW(e, t, n, r, i) {
+function sW(e, t, n, r, i) {
let a = () => ({
key: n,
limit: r,
@@ -48108,8 +48109,8 @@ function cW(e, t, n, r, i) {
}
//#endregion
//#region src/react/components/grid-reveal.tsx
-var lW = "100% 0px";
-function uW(e, t) {
+var cW = "100% 0px";
+function lW(e, t) {
let [n, r] = (0, D.useState)(e ? "skeleton" : "none"), [i] = (0, D.useState)(() => e ? t() : ""), a = (0, D.useRef)(null);
return (0, D.useLayoutEffect)(() => {
a.current && Ts(a.current);
@@ -48135,7 +48136,7 @@ function uW(e, t) {
fading: n === "fade"
};
}
-function dW({ message: e, onRetry: t }) {
+function uW({ message: e, onRetry: t }) {
return /* @__PURE__ */ (0, O.jsx)("div", {
"data-media-error": "",
onClick: (e) => {
@@ -48149,7 +48150,7 @@ function dW({ message: e, onRetry: t }) {
}
//#endregion
//#region src/react/components/art-slot.tsx
-function fW({ artwork: e, identity: t = e.html, relayout: n }) {
+function dW({ artwork: e, identity: t = e.html, relayout: n }) {
let [r, i] = (0, D.useState)({
identity: t,
artwork: e
@@ -48169,64 +48170,64 @@ function fW({ artwork: e, identity: t = e.html, relayout: n }) {
}
//#endregion
//#region src/library-catalog.ts
-var pW = "peach.library-colors.v1", mW = null, hW = /* @__PURE__ */ new Set();
-function gW() {
+var fW = "peach.library-colors.v1", pW = null, mW = /* @__PURE__ */ new Set();
+function hW() {
try {
- let e = JSON.parse(localStorage.getItem(pW) || "{}");
+ let e = JSON.parse(localStorage.getItem(fW) || "{}");
return e && typeof e == "object" ? e : {};
} catch {
return {};
}
}
-function _W(e) {
- mW = e;
+function gW(e) {
+ pW = e;
try {
- localStorage.setItem(pW, JSON.stringify(Object.fromEntries(e.filter((e) => e.color).map((e) => [e.id, e.color]))));
+ localStorage.setItem(fW, JSON.stringify(Object.fromEntries(e.filter((e) => e.color).map((e) => [e.id, e.color]))));
} catch {}
- hW.forEach((t) => t(e));
+ mW.forEach((t) => t(e));
}
-function vW() {
- return mW;
+function _W() {
+ return pW;
}
-function yW(e) {
- return hW.add(e), () => {
- hW.delete(e);
+function vW(e) {
+ return mW.add(e), () => {
+ mW.delete(e);
};
}
//#endregion
//#region src/react/components/library-tint.ts
-var bW = /* @__PURE__ */ new Map(), xW = !1, SW = /* @__PURE__ */ new Set();
-function CW(e) {
+var yW = /* @__PURE__ */ new Map(), bW = !1, xW = /* @__PURE__ */ new Set();
+function SW(e) {
let t = document.createElement("span");
t.setAttribute("data-accent-ball", e), t.hidden = !0, document.body.append(t);
let n = getComputedStyle(t).getPropertyValue("--color-accent-500").trim();
return t.remove(), n;
}
-function wW(e) {
- bW = e;
+function CW(e) {
+ yW = e;
let t = document.getElementById("peach-library-tints");
- t || (t = document.createElement("style"), t.id = "peach-library-tints", document.head.append(t)), t.textContent = [...bW.values()].filter((e) => e.color).map((e) => `[data-library="${CSS.escape(e.id)}"]{--library-color:${CW(e.color)}}`).join("\n");
+ t || (t = document.createElement("style"), t.id = "peach-library-tints", document.head.append(t)), t.textContent = [...yW.values()].filter((e) => e.color).map((e) => `[data-library="${CSS.escape(e.id)}"]{--library-color:${SW(e.color)}}`).join("\n");
}
-function TW(e) {
- wW(e), SW.forEach((e) => e());
+function wW(e) {
+ CW(e), xW.forEach((e) => e());
}
-var EW = (e) => new Map(e.map((e) => [e.id, {
+var TW = (e) => new Map(e.map((e) => [e.id, {
id: e.id,
name: e.name,
icon: No[e.icon || ""] || e.icon || "database",
location: e.roots?.[0]?.location || "",
color: e.color || ""
-}])), DW = !1;
-function OW() {
- if (DW) return;
- DW = !0, yW((e) => TW(EW(e)));
- let e = vW();
+}])), EW = !1;
+function DW() {
+ if (EW) return;
+ EW = !0, vW((e) => wW(TW(e)));
+ let e = _W();
if (e) {
- wW(EW(e));
+ CW(TW(e));
return;
}
- let t = Object.entries(gW()).filter(([, e]) => e);
- t.length && wW(new Map(t.map(([e, t]) => [e, {
+ let t = Object.entries(hW()).filter(([, e]) => e);
+ t.length && CW(new Map(t.map(([e, t]) => [e, {
id: e,
name: "",
icon: "database",
@@ -48234,35 +48235,35 @@ function OW() {
color: t
}])));
}
-function kW() {
- xW || vW() || (xW = !0, V("/api/libraries").then((e) => _W(e.libraries || [])).catch(() => {
- xW = !1;
+function OW() {
+ bW || _W() || (bW = !0, V("/api/libraries").then((e) => gW(e.libraries || [])).catch(() => {
+ bW = !1;
}));
}
-function AW(e, t) {
- let n = bW.get(e) ?? {
+function kW(e, t) {
+ let n = yW.get(e) ?? {
id: e,
name: "",
icon: "database",
location: "",
color: ""
};
- TW(new Map([...bW, [e, {
+ wW(new Map([...yW, [e, {
...n,
color: t
}]]));
}
-function jW(e) {
- return SW.add(e), () => {
- SW.delete(e);
+function AW(e) {
+ return xW.add(e), () => {
+ xW.delete(e);
};
}
-function MW({ names: e = !1 } = {}) {
- return OW(), e && kW(), (0, D.useSyncExternalStore)(jW, () => bW, () => bW);
+function jW({ names: e = !1 } = {}) {
+ return DW(), e && OW(), (0, D.useSyncExternalStore)(AW, () => yW, () => yW);
}
//#endregion
//#region src/react/components/row-click.ts
-var NW = [
+var MW = [
"a",
"button",
"input",
@@ -48275,46 +48276,46 @@ var NW = [
"[role=\"link\"]",
"[role=\"menu\"]"
].join(",");
-function PW(e, t) {
+function NW(e, t) {
let n = e.target;
if (!(n instanceof Element) || !t.contains(n)) return !1;
- let r = n.closest(NW);
+ let r = n.closest(MW);
return !r || !t.contains(r) || r === t;
}
-function FW(e) {
+function PW(e) {
e.shiftKey && e.preventDefault();
}
//#endregion
//#region src/react/components/media-card.tsx
-var IW = 9 / 16, LW = "未命名视频";
-function RW({ name: e }) {
+var FW = 9 / 16, IW = "未命名视频";
+function LW({ name: e }) {
return /* @__PURE__ */ (0, O.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, O.jsx)("use", { href: `#i-${e}` })
});
}
-var zW = {
+var RW = {
image: "图片",
audio: "音频",
archive: "压缩包",
other: "其它文件"
-}, BW = {
+}, zW = {
manual: "手动",
junk: "垃圾",
duplicate: "重复",
missing: "文件缺失"
};
-function VW({ item: e }) {
+function BW({ item: e }) {
if (e.disposal !== "trash") return null;
- let t = e.disposal_reason && BW[e.disposal_reason] || "原因未记录";
+ let t = e.disposal_reason && zW[e.disposal_reason] || "原因未记录";
return /* @__PURE__ */ (0, O.jsx)("span", {
"data-media-disposal-reason": "",
title: `归入原因:${t}`,
children: t
});
}
-function HW({ item: e, actions: t }) {
+function VW({ item: e, actions: t }) {
let [n, r] = (0, D.useState)(!1), [i, a] = (0, D.useState)(""), o = e.disposal === "trash" ? "restore" : "dispose", s = o === "restore" ? "还原" : "移入回收站";
return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
@@ -48333,10 +48334,10 @@ function HW({ item: e, actions: t }) {
children: i
}) : null] });
}
-function UW(e, t, n) {
- return t === "short" ? IW : wA(n);
+function HW(e, t, n) {
+ return t === "short" ? FW : CA(n);
}
-function WW(e) {
+function UW(e) {
let { kind: t, name: n, coStarred: r, performers: i, refs: a, total: o } = Xa(e), s = i[0] || "", c = Fa(e);
return {
avatar: r ? /* @__PURE__ */ (0, O.jsx)("div", {
@@ -48368,7 +48369,7 @@ function WW(e) {
"data-entity-kind": "performer",
"data-entity-name": s,
title: s,
- children: [/* @__PURE__ */ (0, O.jsx)(RW, { name: "user-round" }), /* @__PURE__ */ (0, O.jsx)("span", { children: s })]
+ children: [/* @__PURE__ */ (0, O.jsx)(LW, { name: "user-round" }), /* @__PURE__ */ (0, O.jsx)("span", { children: s })]
}), /* @__PURE__ */ (0, O.jsx)("span", {
"data-media-who-more": "",
children: `等 ${o} 人`
@@ -48378,16 +48379,16 @@ function WW(e) {
"data-entity-kind": t,
"data-entity-name": n,
title: n,
- children: [/* @__PURE__ */ (0, O.jsx)(RW, { name: "user-round" }), /* @__PURE__ */ (0, O.jsx)("span", { children: n })]
+ children: [/* @__PURE__ */ (0, O.jsx)(LW, { name: "user-round" }), /* @__PURE__ */ (0, O.jsx)("span", { children: n })]
}) : /* @__PURE__ */ (0, O.jsxs)("button", {
type: "button",
"data-media-who": "",
"data-open-unowned": "",
- children: [/* @__PURE__ */ (0, O.jsx)(RW, { name: "user-round" }), /* @__PURE__ */ (0, O.jsx)("span", { children: n })]
+ children: [/* @__PURE__ */ (0, O.jsx)(LW, { name: "user-round" }), /* @__PURE__ */ (0, O.jsx)("span", { children: n })]
})
};
}
-function GW() {
+function WW() {
return /* @__PURE__ */ (0, O.jsxs)("button", {
type: "button",
"data-media-preview": "",
@@ -48406,7 +48407,7 @@ function GW() {
})]
});
}
-function KW({ item: e, actions: t, on: n, onChange: r }) {
+function GW({ item: e, actions: t, on: n, onChange: r }) {
let [i, a] = (0, D.useState)(!1);
return /* @__PURE__ */ (0, O.jsx)("div", {
"data-media-later": "",
@@ -48421,11 +48422,11 @@ function KW({ item: e, actions: t, on: n, onChange: r }) {
},
"aria-busy": i || void 0,
"aria-disabled": i || void 0,
- children: /* @__PURE__ */ (0, O.jsx)(RW, { name: n ? "check" : "bookmark-plus" })
+ children: /* @__PURE__ */ (0, O.jsx)(LW, { name: n ? "check" : "bookmark-plus" })
})
});
}
-function qW({ reason: e }) {
+function KW({ reason: e }) {
let t = (0, D.useRef)(null), [n, r] = (0, D.useState)(!1);
return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)("button", {
ref: t,
@@ -48439,15 +48440,15 @@ function qW({ reason: e }) {
e.stopPropagation(), r(!0);
},
children: e
- }), /* @__PURE__ */ (0, O.jsx)(iR, {
+ }), /* @__PURE__ */ (0, O.jsx)(rR, {
triggerRef: t,
isOpen: n,
onOpenChange: r,
placement: "top",
offset: 8,
containerPadding: 12,
- className: ZB,
- children: /* @__PURE__ */ (0, O.jsx)(_R, {
+ className: XB,
+ children: /* @__PURE__ */ (0, O.jsx)(gR, {
"data-media-reason-dialog": "",
"aria-label": "推荐理由",
className: "w-64 max-w-full p-2 text-body-regular whitespace-normal break-words text-text-primary outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring",
@@ -48455,17 +48456,17 @@ function qW({ reason: e }) {
})
})] });
}
-function JW(e, t) {
+function qW(e, t) {
let n = e?.querySelector("video.hv");
n && Number.isFinite(n.duration) && (n._hop &&= (clearInterval(n._hop), null), n.currentTime = Math.max(0, Math.min(n.duration, n.currentTime + t)));
}
-function YW({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSeconds: a, helpers: o, actions: s, onOpen: c, grouped: l = !0 }) {
- let u = (0, D.useRef)(null), [d, f] = (0, D.useState)(null), p = d?.id === e.id ? d.on : !!e.watch_later, m = MW(), h = e.library_id && m.get(e.library_id)?.color ? e.library_id : void 0, g = [Number(e.liked) > 0 ? "喜欢" : "", Number(e.o_count) > 0 ? "有高潮记录" : ""].filter(Boolean), _ = (0, D.useRef)(e);
+function JW({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSeconds: a, helpers: o, actions: s, onOpen: c, grouped: l = !0 }) {
+ let u = (0, D.useRef)(null), [d, f] = (0, D.useState)(null), p = d?.id === e.id ? d.on : !!e.watch_later, m = jW(), h = e.library_id && m.get(e.library_id)?.color ? e.library_id : void 0, g = [Number(e.liked) > 0 ? "喜欢" : "", Number(e.o_count) > 0 ? "有高潮记录" : ""].filter(Boolean), _ = (0, D.useRef)(e);
_.current = e;
let v = (0, D.useCallback)((e) => {
let t = _.current;
u.current && u.current !== e && ll(u.current), u.current = e, e && (!t.medium || t.medium === "video") && dl(e, t);
- }, []), y = l && Number(e.part_group?.count) > 1 && e.part_group || null, b = l && Number(e.edition_group?.count) > 1 && e.edition_group || null, x = !!(y || b), S = n.active && !!e.is_jav, C = UW(e, t, n), w = S ? n.size : "small", T = C === IW && !!e.is_jav, E = T ? qa(e, !1) : Ga(e, w, !1, n.javImage), k = T || w === "small" ? E.html : Ga(e, "small", !1, n.javImage).html, A = y?.title || e.name || "", j = o.displayName(e, A).trim() || LW, M = o.titleHtml(e, A).trim() || B(LW), N = y?.total_size ?? e.size, P = y?.total_duration ?? e.duration, ee = !y && Number(e.play_seconds) > 0 && Number(e.duration) > 0 ? Math.min(Number(e.play_seconds) / Number(e.duration), 1) : 0, { avatar: F, who: te } = WW(e), I = (e.follow_tags || e.tags || []).slice(0, 3), ne = (t) => {
+ }, []), y = l && Number(e.part_group?.count) > 1 && e.part_group || null, b = l && Number(e.edition_group?.count) > 1 && e.edition_group || null, x = !!(y || b), S = n.active && !!e.is_jav, C = HW(e, t, n), w = S ? n.size : "small", T = C === FW && !!e.is_jav, E = T ? qa(e, !1) : Ga(e, w, !1, n.javImage), k = T || w === "small" ? E.html : Ga(e, "small", !1, n.javImage).html, A = y?.title || e.name || "", j = o.displayName(e, A).trim() || IW, M = o.titleHtml(e, A).trim() || B(IW), N = y?.total_size ?? e.size, P = y?.total_duration ?? e.duration, ee = !y && Number(e.play_seconds) > 0 && Number(e.duration) > 0 ? Math.min(Number(e.play_seconds) / Number(e.duration), 1) : 0, { avatar: F, who: te } = UW(e), I = (e.follow_tags || e.tags || []).slice(0, 3), ne = (t) => {
let n = t.target;
if (n.closest("[data-media-reason-dialog]")) return;
let r = u.current;
@@ -48492,10 +48493,10 @@ function YW({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSe
l && r.contains(l) ? s.toggleTag(l.dataset.tag || "") : c(e, r);
}, re = /* @__PURE__ */ (0, O.jsxs)("div", {
"data-media-pic": "",
- "data-pic-portrait": C === IW ? "" : void 0,
+ "data-pic-portrait": C === FW ? "" : void 0,
style: { "--card-ratio": String(C) },
children: [
- E.html ? /* @__PURE__ */ (0, O.jsx)(fW, {
+ E.html ? /* @__PURE__ */ (0, O.jsx)(dW, {
artwork: E,
identity: k,
relayout: (e) => tl(e, w)
@@ -48509,11 +48510,11 @@ function YW({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSe
}),
/* @__PURE__ */ (0, O.jsx)("span", {
"data-media-check": "",
- children: /* @__PURE__ */ (0, O.jsx)(RW, { name: "check" })
+ children: /* @__PURE__ */ (0, O.jsx)(LW, { name: "check" })
}),
/* @__PURE__ */ (0, O.jsxs)("span", {
"data-media-trash-mark": "",
- children: [/* @__PURE__ */ (0, O.jsx)(RW, { name: "trash" }), /* @__PURE__ */ (0, O.jsx)("b", { children: "回收站" })]
+ children: [/* @__PURE__ */ (0, O.jsx)(LW, { name: "trash" }), /* @__PURE__ */ (0, O.jsx)("b", { children: "回收站" })]
}),
y && !b ? /* @__PURE__ */ (0, O.jsx)("span", {
"data-media-group": "",
@@ -48528,7 +48529,7 @@ function YW({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSe
"data-media-duration": "",
children: hn(P)
}),
- !i && e.disposal === "trash" ? /* @__PURE__ */ (0, O.jsx)(HW, {
+ !i && e.disposal === "trash" ? /* @__PURE__ */ (0, O.jsx)(VW, {
item: e,
actions: s
}) : null,
@@ -48544,22 +48545,22 @@ function YW({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSe
"data-media-scrub": "",
children: /* @__PURE__ */ (0, O.jsx)("i", { style: { "--media-fill": `${Math.round(e.leave_ratio * 100)}%` } })
}),
- /* @__PURE__ */ (0, O.jsx)(GW, {}),
+ /* @__PURE__ */ (0, O.jsx)(WW, {}),
p || g.length ? /* @__PURE__ */ (0, O.jsxs)("div", {
"data-media-status": "",
children: [p ? /* @__PURE__ */ (0, O.jsx)("span", {
"data-status": "later",
title: "稍后看",
"aria-label": "稍后看",
- children: /* @__PURE__ */ (0, O.jsx)(RW, { name: "bookmark" })
+ children: /* @__PURE__ */ (0, O.jsx)(LW, { name: "bookmark" })
}) : null, g.length ? /* @__PURE__ */ (0, O.jsx)("span", {
"data-status": "flagged",
title: `已标记:${g.join("、")}`,
"aria-label": `已标记:${g.join("、")}`,
- children: /* @__PURE__ */ (0, O.jsx)(RW, { name: "heart" })
+ children: /* @__PURE__ */ (0, O.jsx)(LW, { name: "heart" })
}) : null]
}) : null,
- i ? null : /* @__PURE__ */ (0, O.jsx)(KW, {
+ i ? null : /* @__PURE__ */ (0, O.jsx)(GW, {
item: e,
actions: s,
on: p,
@@ -48574,27 +48575,27 @@ function YW({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSe
/* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
onClick: (e) => {
- e.stopPropagation(), JW(u.current, -a);
+ e.stopPropagation(), qW(u.current, -a);
},
title: `后退 ${a} 秒`,
"aria-label": `后退 ${a} 秒`,
- children: /* @__PURE__ */ (0, O.jsx)(RW, { name: "rotate-ccw" })
+ children: /* @__PURE__ */ (0, O.jsx)(LW, { name: "rotate-ccw" })
}),
/* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
onClick: (e) => {
- e.stopPropagation(), JW(u.current, a);
+ e.stopPropagation(), qW(u.current, a);
},
title: `前进 ${a} 秒`,
"aria-label": `前进 ${a} 秒`,
- children: /* @__PURE__ */ (0, O.jsx)(RW, { name: "rotate-cw" })
+ children: /* @__PURE__ */ (0, O.jsx)(LW, { name: "rotate-cw" })
}),
/* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
"data-open": "",
title: "打开详情",
"aria-label": "打开详情",
- children: /* @__PURE__ */ (0, O.jsx)(RW, { name: "expand" })
+ children: /* @__PURE__ */ (0, O.jsx)(LW, { name: "expand" })
})
]
})
@@ -48613,7 +48614,7 @@ function YW({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSe
"data-pending-delete": e.disposal === "trash" ? "" : void 0,
"data-selected": r ? "" : void 0,
onClick: ne,
- onMouseDown: FW,
+ onMouseDown: PW,
children: [
/* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
@@ -48653,15 +48654,15 @@ function YW({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSe
"data-media-release": "",
dateTime: e.release_date,
title: e.release_date,
- children: [/* @__PURE__ */ (0, O.jsx)(RW, { name: "calendar" }), e.release_date]
+ children: [/* @__PURE__ */ (0, O.jsx)(LW, { name: "calendar" }), e.release_date]
}) : null,
/* @__PURE__ */ (0, O.jsxs)("span", {
"data-media-size": "",
- children: [/* @__PURE__ */ (0, O.jsx)(RW, { name: "hard-drive" }), Number(N) > 0 ? _n(Number(N)) : "大小未知"]
+ children: [/* @__PURE__ */ (0, O.jsx)(LW, { name: "hard-drive" }), Number(N) > 0 ? _n(Number(N)) : "大小未知"]
})
]
}),
- t === "next" ? e.why ? /* @__PURE__ */ (0, O.jsx)(qW, { reason: e.why }) : null : I.length || e.disposal === "trash" ? /* @__PURE__ */ (0, O.jsx)("div", {
+ t === "next" ? e.why ? /* @__PURE__ */ (0, O.jsx)(KW, { reason: e.why }) : null : I.length || e.disposal === "trash" ? /* @__PURE__ */ (0, O.jsx)("div", {
"data-media-tags": "",
children: I.map((t) => /* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
@@ -48671,15 +48672,15 @@ function YW({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSe
children: o.tagLabel(t)
}, t))
}) : null,
- /* @__PURE__ */ (0, O.jsx)(VW, { item: e })
+ /* @__PURE__ */ (0, O.jsx)(BW, { item: e })
]
})]
})
]
});
}
-function XW({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOpen: a }) {
- let o = (0, D.useRef)(null), s = e.medium === "image" && e.location !== "online", c = String(e.name || ""), l = c.toLowerCase().endsWith(".url") ? "网址快捷方式" : zW[e.medium || ""] || "其它文件", u = s ? "pics" : l === "网址快捷方式" ? "globe" : "hard-drive";
+function YW({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOpen: a }) {
+ let o = (0, D.useRef)(null), s = e.medium === "image" && e.location !== "online", c = String(e.name || ""), l = c.toLowerCase().endsWith(".url") ? "网址快捷方式" : RW[e.medium || ""] || "其它文件", u = s ? "pics" : l === "网址快捷方式" ? "globe" : "hard-drive";
return /* @__PURE__ */ (0, O.jsxs)("article", {
ref: o,
"data-media-card": "",
@@ -48691,14 +48692,14 @@ function XW({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOpe
onClick: (t) => {
o.current && (n || t.shiftKey || t.ctrlKey || t.metaKey ? (t.preventDefault(), i.toggleSelection(e.id, t.shiftKey)) : a(e, o.current));
},
- onMouseDown: FW,
+ onMouseDown: PW,
children: [/* @__PURE__ */ (0, O.jsxs)("div", {
"data-media-pic": "",
style: { "--card-ratio": "1.7777777777777777" },
children: [
/* @__PURE__ */ (0, O.jsxs)("span", {
"data-media-glyph": "",
- children: [/* @__PURE__ */ (0, O.jsx)(RW, { name: u }), /* @__PURE__ */ (0, O.jsx)("b", { children: l })]
+ children: [/* @__PURE__ */ (0, O.jsx)(LW, { name: u }), /* @__PURE__ */ (0, O.jsx)("b", { children: l })]
}),
s ? /* @__PURE__ */ (0, O.jsx)("span", {
"data-media-art": "thumb",
@@ -48710,13 +48711,13 @@ function XW({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOpe
}),
/* @__PURE__ */ (0, O.jsx)("span", {
"data-media-check": "",
- children: /* @__PURE__ */ (0, O.jsx)(RW, { name: "check" })
+ children: /* @__PURE__ */ (0, O.jsx)(LW, { name: "check" })
}),
/* @__PURE__ */ (0, O.jsxs)("span", {
"data-media-trash-mark": "",
- children: [/* @__PURE__ */ (0, O.jsx)(RW, { name: "trash" }), /* @__PURE__ */ (0, O.jsx)("b", { children: "回收站" })]
+ children: [/* @__PURE__ */ (0, O.jsx)(LW, { name: "trash" }), /* @__PURE__ */ (0, O.jsx)("b", { children: "回收站" })]
}),
- n ? null : /* @__PURE__ */ (0, O.jsx)(HW, {
+ n ? null : /* @__PURE__ */ (0, O.jsx)(VW, {
item: e,
actions: i
})
@@ -48727,7 +48728,7 @@ function XW({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOpe
"data-media-avatar": "",
"data-media-kind-glyph": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, O.jsx)(RW, { name: u })
+ children: /* @__PURE__ */ (0, O.jsx)(LW, { name: u })
}), /* @__PURE__ */ (0, O.jsxs)("div", {
"data-media-text": "",
children: [
@@ -48755,29 +48756,29 @@ function XW({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOpe
]
}),
e.disposal === "trash" ? /* @__PURE__ */ (0, O.jsx)("div", { "data-media-tags": "" }) : null,
- /* @__PURE__ */ (0, O.jsx)(VW, { item: e })
+ /* @__PURE__ */ (0, O.jsx)(BW, { item: e })
]
})]
})]
});
}
-function ZW(e) {
- return e.variant === "resource" ? /* @__PURE__ */ (0, O.jsx)(XW, { ...e }) : /* @__PURE__ */ (0, O.jsx)(YW, { ...e });
+function XW(e) {
+ return e.variant === "resource" ? /* @__PURE__ */ (0, O.jsx)(YW, { ...e }) : /* @__PURE__ */ (0, O.jsx)(JW, { ...e });
}
-var QW = (0, D.memo)(ZW), $W = 1100, eG = 340, tG = 5e3;
-function nG(e, t, n) {
+var ZW = (0, D.memo)(XW), QW = 1100, $W = 340, eG = 5e3;
+function tG(e, t, n) {
return new Promise((r) => {
let i = new Image();
n && (i.referrerPolicy = n);
let a = !1, o = (e) => {
a || (a = !0, clearTimeout(c), i.onload = null, i.onerror = null, t.cancels.delete(s), r(e));
- }, s = () => o(!1), c = setTimeout(s, tG);
+ }, s = () => o(!1), c = setTimeout(s, eG);
t.cancels.add(s), i.onerror = s, i.onload = () => {
i.naturalWidth ? typeof i.decode == "function" ? i.decode().then(() => o(!0), s) : o(!0) : o(!1);
}, i.src = e;
});
}
-function rG({ load: e, canFlip: t, referrerPolicy: n }) {
+function nG({ load: e, canFlip: t, referrerPolicy: n }) {
let [r, i] = (0, D.useState)([]), [a, o] = (0, D.useState)(0), [s, c] = (0, D.useState)(null), l = (0, D.useRef)({
live: !1,
generation: 0,
@@ -48819,11 +48820,11 @@ function rG({ load: e, canFlip: t, referrerPolicy: n }) {
return;
}
if (!r() || !u.current.canFlip() || a.length < 2) return;
- let s = await Promise.all(a.map((t) => nG(t, e, n)));
+ let s = await Promise.all(a.map((t) => tG(t, e, n)));
if (!r() || !u.current.canFlip()) return;
let d = a.filter((e, t) => s[t]);
d.length < 2 || (e.count = d.length, e.at = 0, i(d), o(0), c(null), f(420, () => {
- p(), e.cycle = setInterval(p, $W);
+ p(), e.cycle = setInterval(p, QW);
}));
};
return (0, D.useEffect)(() => d, [d]), {
@@ -48832,7 +48833,7 @@ function rG({ load: e, canFlip: t, referrerPolicy: n }) {
leaving: s,
onPointerEnter: () => {
let e = l.current;
- e.armed !== null && (clearTimeout(e.armed), e.timers.delete(e.armed)), e.armed = f(eG, () => {
+ e.armed !== null && (clearTimeout(e.armed), e.timers.delete(e.armed)), e.armed = f($W, () => {
e.armed = null, m();
});
},
@@ -48843,8 +48844,8 @@ function rG({ load: e, canFlip: t, referrerPolicy: n }) {
}
//#endregion
//#region src/react/components/mix-card.tsx
-var iG = zz("play");
-function aG({ src: e }) {
+var rG = Rz("play");
+function iG({ src: e }) {
let [t, n] = (0, D.useState)(!1);
return t ? null : /* @__PURE__ */ (0, O.jsx)("img", {
"data-mix-poster": "",
@@ -48857,8 +48858,8 @@ function aG({ src: e }) {
className: "absolute inset-0 block size-full object-contain"
});
}
-var oG = "relative inline-grid size-9.5 flex-none place-items-center overflow-hidden rounded-full bg-background-secondary-default text-body-2-regular text-text-secondary [&_img]:absolute [&_img]:inset-0 [&_img]:block [&_img]:size-full [&_img]:object-cover";
-function sG({ faces: e, fallback: t, onOpenEntity: n }) {
+var aG = "relative inline-grid size-9.5 flex-none place-items-center overflow-hidden rounded-full bg-background-secondary-default text-body-2-regular text-text-secondary [&_img]:absolute [&_img]:inset-0 [&_img]:block [&_img]:size-full [&_img]:object-cover";
+function oG({ faces: e, fallback: t, onOpenEntity: n }) {
return e.length ? /* @__PURE__ */ (0, O.jsx)("div", {
"data-mix-avatars": "",
children: e.slice(0, 5).map((e) => /* @__PURE__ */ (0, O.jsx)("button", {
@@ -48866,18 +48867,18 @@ function sG({ faces: e, fallback: t, onOpenEntity: n }) {
title: `打开资料页:${e.name}`,
"aria-label": `打开资料页:${e.name}`,
onClick: () => n(e.kind, e.name),
- className: `${oG} cursor-pointer outline-none`,
+ className: `${aG} cursor-pointer outline-none`,
dangerouslySetInnerHTML: { __html: La(e.name, e, va(e.name), e.kind) }
}, `${e.kind}:${e.id}`))
}) : /* @__PURE__ */ (0, O.jsx)("span", {
"data-mix-initial": "",
"aria-hidden": !0,
- className: `${oG} mt-0.5`,
+ className: `${aG} mt-0.5`,
children: t
});
}
-function cG({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip: a, faces: o, onOpenEntity: s, onOpen: c, openLabel: l, menu: u, ratio: d, artwork: f, artworkIdentity: p, relayoutArt: m, faceHtml: h, badge: g, glyph: _, wholeCard: v, ...y }) {
- let b = rG({
+function sG({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip: a, faces: o, onOpenEntity: s, onOpen: c, openLabel: l, menu: u, ratio: d, artwork: f, artworkIdentity: p, relayoutArt: m, faceHtml: h, badge: g, glyph: _, wholeCard: v, ...y }) {
+ let b = nG({
load: i,
canFlip: a
}), x = (0, D.useRef)(b.onPointerLeave);
@@ -48904,11 +48905,11 @@ function cG({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
style: d === void 0 ? void 0 : { "--card-ratio": String(d) },
className: "relative z-1 flex aspect-video items-center justify-center overflow-hidden",
children: [
- f?.html ? /* @__PURE__ */ (0, O.jsx)(fW, {
+ f?.html ? /* @__PURE__ */ (0, O.jsx)(dW, {
artwork: f,
identity: p,
relayout: m
- }) : r ? /* @__PURE__ */ (0, O.jsx)(aG, { src: r }, r) : /* @__PURE__ */ (0, O.jsx)("span", {
+ }) : r ? /* @__PURE__ */ (0, O.jsx)(iG, { src: r }, r) : /* @__PURE__ */ (0, O.jsx)("span", {
className: "text-caption-1-regular tracking-caps text-text-secondary uppercase",
children: "无预览"
}),
@@ -48938,7 +48939,7 @@ function cG({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
/* @__PURE__ */ (0, O.jsxs)("span", {
"data-mix-badge": "",
className: "absolute right-2.25 bottom-2.25 z-6 flex min-h-7 items-center gap-1.5 rounded-2lg px-2.25 py-1 text-caption-1-semibold text-text-white",
- children: [/* @__PURE__ */ (0, O.jsx)(iG, {
+ children: [/* @__PURE__ */ (0, O.jsx)(rG, {
"aria-hidden": !0,
className: "size-(--icon-inline)"
}), g ?? `${n.toLocaleString()} 个视频`]
@@ -48951,8 +48952,8 @@ function cG({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
_ ? /* @__PURE__ */ (0, O.jsx)("span", {
"data-mix-glyph": "",
"aria-hidden": !0,
- children: /* @__PURE__ */ (0, O.jsx)(iG, {})
- }) : /* @__PURE__ */ (0, O.jsx)(sG, {
+ children: /* @__PURE__ */ (0, O.jsx)(rG, {})
+ }) : /* @__PURE__ */ (0, O.jsx)(oG, {
faces: o,
fallback: xn(e),
onOpenEntity: s
@@ -48976,7 +48977,7 @@ function cG({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
}
//#endregion
//#region src/react/video-wall/folia/blockReflows.ts
-var lG = [
+var cG = [
[
[
{
@@ -52537,7 +52538,7 @@ var lG = [
}
]
]
-], uG = [
+], lG = [
[
{
x: 0,
@@ -52834,89 +52835,89 @@ var lG = [
rows: 2
}
]
-], dG = (e) => e.map((e) => ({
+], uG = (e) => e.map((e) => ({
...e,
x: 12 - e.x - e.cols
-})), fG = (e) => e.map((e) => ({
+})), dG = (e) => e.map((e) => ({
...e,
y: 8 - e.y - e.rows
-})), pG = [
+})), fG = [
(e) => e,
+ uG,
dG,
- fG,
- (e) => dG(fG(e))
-], mG = uG.flatMap((e) => pG.map((t) => t(e))), hG = lG.flatMap((e) => pG.map((t) => e.map(t)));
-mG.length;
-var gG = (e, t) => {
+ (e) => uG(dG(e))
+], pG = lG.flatMap((e) => fG.map((t) => t(e))), mG = cG.flatMap((e) => fG.map((t) => e.map(t)));
+pG.length;
+var hG = (e, t) => {
let n = Math.imul(e, 2654435761) ^ Math.imul(t, 2246822507);
return n = Math.imul(n ^ n >>> 15, 739982445), n ^= n >>> 12, n >>> 0;
-}, _G = (e, t) => {
- let n = uG.length;
- return ((e + t * 2) % n + n) % n * pG.length + gG(e, t) % pG.length;
-}, vG = (e, t) => mG[_G(e, t)], yG = (e, t, n) => n < 0 || n >= 12 ? null : hG[_G(e, t)][n], bG = 103.36, xG = 6.08, SG = 12 * bG, CG = 8 * bG, wG = 12, TG = (e, t) => (e % t + t) % t, EG = (e, t) => e.x < t.x + t.width && e.x + e.width > t.x && e.y < t.y + t.height && e.y + e.height > t.y;
-function DG(e, t) {
- let n = Math.max(1, Math.ceil(e / wG)), r = t ? 3 : Math.min(3, n);
+}, gG = (e, t) => {
+ let n = lG.length;
+ return ((e + t * 2) % n + n) % n * fG.length + hG(e, t) % fG.length;
+}, _G = (e, t) => pG[gG(e, t)], vG = (e, t, n) => n < 0 || n >= 12 ? null : mG[gG(e, t)][n], yG = 103.36, bG = 6.08, xG = 12 * yG, SG = 8 * yG, CG = 12, wG = (e, t) => (e % t + t) % t, TG = (e, t) => e.x < t.x + t.width && e.x + e.width > t.x && e.y < t.y + t.height && e.y + e.height > t.y;
+function EG(e, t) {
+ let n = Math.max(1, Math.ceil(e / CG)), r = t ? 3 : Math.min(3, n);
return {
columns: r,
- width: r * SG,
- height: Math.ceil(n / r) * CG
+ width: r * xG,
+ height: Math.ceil(n / r) * SG
};
}
-function OG(e, t, n) {
- let { x: r, y: i, cols: a, rows: o } = vG(e, t)[n];
+function DG(e, t, n) {
+ let { x: r, y: i, cols: a, rows: o } = _G(e, t)[n];
return {
- x: e * SG + r * bG,
- y: t * CG + i * bG,
- width: a * bG - xG,
- height: o * bG - xG
+ x: e * xG + r * yG,
+ y: t * SG + i * yG,
+ width: a * yG - bG,
+ height: o * yG - bG
};
}
-function kG(e) {
+function OG(e) {
return (!e.medium || e.medium === "video") && !!e.has_cover && !!(e.cover_key || e.code);
}
-function AG(e, t, n) {
+function kG(e, t, n) {
if (!e) return null;
let [r, i, a] = n.split(":").map(Number);
if (![
r,
i,
a
- ].every(Number.isInteger) || a < 0 || a >= wG) return null;
- let o = DG(e, t), s = o.height / CG;
+ ].every(Number.isInteger) || a < 0 || a >= CG) return null;
+ let o = EG(e, t), s = o.height / SG;
if (t && (r < 0 || r >= o.columns || i < 0 || i >= s)) return null;
- let c = t ? r : TG(r, o.columns), l = ((t ? i : TG(i, s)) * o.columns + c) * wG + a;
+ let c = t ? r : wG(r, o.columns), l = ((t ? i : wG(i, s)) * o.columns + c) * CG + a;
return t && l >= e ? null : {
- ...OG(r, i, a),
+ ...DG(r, i, a),
index: l % e,
key: n
};
}
-function jG(e, t) {
+function AG(e, t) {
if (t < 0 || t >= e) return null;
- let n = Math.floor(t / wG);
- return AG(e, !0, `${n % 3}:${Math.floor(n / 3)}:${t % wG}`);
+ let n = Math.floor(t / CG);
+ return kG(e, !0, `${n % 3}:${Math.floor(n / 3)}:${t % CG}`);
}
-function MG(e, t, n) {
- let [r, i, a] = n.key.split(":").map(Number), o = yG(r, i, a);
+function jG(e, t, n) {
+ let [r, i, a] = n.key.split(":").map(Number), o = vG(r, i, a);
return new Map((o || []).map((e, t) => [`${r}:${i}:${t}`, {
- x: r * SG + e.x * bG,
- y: i * CG + e.y * bG,
- width: e.cols * bG - xG,
- height: e.rows * bG - xG
+ x: r * xG + e.x * yG,
+ y: i * SG + e.y * yG,
+ width: e.cols * yG - bG,
+ height: e.rows * yG - bG
}]));
}
-function NG(e) {
+function MG(e) {
let t = 0, n = 0;
for (let r = Math.max(0, e - 36); r < e; r += 1) {
- let e = Math.floor(r / wG), i = OG(e % 3, Math.floor(e / 3), r % wG);
+ let e = Math.floor(r / CG), i = DG(e % 3, Math.floor(e / 3), r % CG);
t = Math.max(t, i.x + i.width), n = Math.max(n, i.y + i.height);
}
return {
- width: e >= 36 ? 3 * SG - xG : t,
+ width: e >= 36 ? 3 * xG - bG : t,
height: n
};
}
-function PG(e, t, n, r) {
+function NG(e, t, n, r) {
if (!r) return e;
let i = (t, n, r) => Math.min(16, Math.max(Math.min(16, r - n * e.scale - 16), t));
return {
@@ -52925,22 +52926,22 @@ function PG(e, t, n, r) {
y: i(e.y, n.height, t.height)
};
}
-function FG(e, t, n, r) {
+function PG(e, t, n, r) {
if (!e || !r.width || !r.height) return [];
let i = 180 / n.scale, a = {
x: -n.x / n.scale - i,
y: -n.y / n.scale - i,
width: r.width / n.scale + i * 2,
height: r.height / n.scale + i * 2
- }, o = DG(e, t), s = o.height / CG, c = [];
- for (let n = Math.floor(a.y / CG); n <= Math.floor((a.y + a.height) / CG); n += 1) for (let r = Math.floor(a.x / SG); r <= Math.floor((a.x + a.width) / SG); r += 1) {
+ }, o = EG(e, t), s = o.height / SG, c = [];
+ for (let n = Math.floor(a.y / SG); n <= Math.floor((a.y + a.height) / SG); n += 1) for (let r = Math.floor(a.x / xG); r <= Math.floor((a.x + a.width) / xG); r += 1) {
if (t && (r < 0 || r >= o.columns || n < 0 || n >= s)) continue;
- let i = t ? r : TG(r, o.columns), l = t ? n : TG(n, s);
- for (let s = 0; s < wG; s += 1) {
- let u = (l * o.columns + i) * wG + s;
+ let i = t ? r : wG(r, o.columns), l = t ? n : wG(n, s);
+ for (let s = 0; s < CG; s += 1) {
+ let u = (l * o.columns + i) * CG + s;
if (t && u >= e) continue;
- let d = OG(r, n, s);
- EG(d, a) && c.push({
+ let d = DG(r, n, s);
+ TG(d, a) && c.push({
...d,
index: u % e,
key: `${r}:${n}:${s}`
@@ -52949,7 +52950,7 @@ function FG(e, t, n, r) {
}
return c;
}
-var IG = class {
+var FG = class {
positions = /* @__PURE__ */ new Map();
used = /* @__PURE__ */ new Set();
cursor = 0;
@@ -52961,7 +52962,7 @@ var IG = class {
this.cursor = e;
}
tile(e, t) {
- let n = this.positions.get(e), r = n === void 0 ? null : AG(t, !1, e);
+ let n = this.positions.get(e), r = n === void 0 ? null : kG(t, !1, e);
return r ? {
...r,
index: n
@@ -52991,7 +52992,7 @@ var IG = class {
let e = 0;
for (let t of this.positions.keys()) e = Math.max(e, Number(t.split(":")[0]));
return {
- x: (e + 2) * SG,
+ x: (e + 2) * xG,
y: 0
};
}
@@ -53004,10 +53005,10 @@ var IG = class {
c < i && (r = s, i = c);
}
if (r) return r;
- let a = this.fresh(), o = `${Math.round(a.x / SG)}:0:0`;
+ let a = this.fresh(), o = `${Math.round(a.x / xG)}:0:0`;
return this.positions.set(o, t), this.used.add(t), this.tile(o, e);
}
-}, LG = [
+}, IG = [
"q",
"performer",
"series",
@@ -53022,17 +53023,17 @@ var IG = class {
"dur_max",
"region"
];
-function RG(e = {}) {
- return LG.some((t) => !!e[t]);
+function LG(e = {}) {
+ return IG.some((t) => !!e[t]);
}
//#endregion
//#region src/react/video-wall/use-wall-camera.ts
-var zG = {
+var RG = {
x: 16,
y: 16,
scale: 1
};
-function BG(e, t, n = zG, r = !1) {
+function zG(e, t, n = RG, r = !1) {
let i = (0, D.useRef)(null), a = (0, D.useRef)(null), o = (0, D.useRef)({
width: 0,
height: 0
@@ -53052,7 +53053,7 @@ function BG(e, t, n = zG, r = !1) {
let f = (0, D.useRef)(null), p = (0, D.useRef)(null), m = (0, D.useRef)(!1), h = (0, D.useRef)(null), g = (0, D.useCallback)(() => {
p.current?.stop(), p.current = null, f.current !== null && cancelAnimationFrame(f.current), f.current = null;
}, []), _ = (0, D.useCallback)((e, t = !1, n = !1) => {
- let { count: r, finite: c, focused: f } = d.current, p = PG(e, o.current, NG(r), c && !f && !n);
+ let { count: r, finite: c, focused: f } = d.current, p = NG(e, o.current, MG(r), c && !f && !n);
s.current = p;
let m = window.devicePixelRatio || 1;
a.current && (a.current.style.transform = `translate3d(${Math.round(p.x * m) / m}px, ${Math.round(p.y * m) / m}px, 0) scale(${p.scale})`), i.current && (i.current.dataset.cameraX = String(p.x), i.current.dataset.cameraY = String(p.y));
@@ -53152,7 +53153,7 @@ function BG(e, t, n = zG, r = !1) {
},
snapshot: () => ({ ...s.current }),
reset: () => {
- g(), _({ ...zG }, !0);
+ g(), _({ ...RG }, !0);
},
pan: (e, t) => {
g(), _({
@@ -53214,17 +53215,17 @@ function BG(e, t, n = zG, r = !1) {
}
//#endregion
//#region src/react/video-wall/wall-motion.ts
-var VG = {
+var BG = {
type: "spring",
stiffness: 300,
damping: 34
-}, HG = {
+}, VG = {
delay: .14,
duration: .24
};
//#endregion
//#region src/react/video-wall/use-wall-playback.ts
-function UG(e, t, n) {
+function HG(e, t, n) {
let [r, i] = (0, D.useState)({
paused: !0,
time: 0,
@@ -53266,15 +53267,15 @@ function UG(e, t, n) {
}
//#endregion
//#region src/react/video-wall/wall-controls.tsx
-function WG({ item: e, playing: t, frame: n, starting: r, pendingGroup: i, grouped: a, queueOpen: o, queueReady: s, hasPrevious: c, hasNext: l, later: u, laterBusy: d, play: f, previous: p, next: m, queue: h, watchLater: g, details: _, ended: v, error: y }) {
- let b = Oy(), x = UG(t, n, v), S = x.duration || Number(e.duration) || 0, C = r || i, w = !t || x.paused, T = async () => {
+function UG({ item: e, playing: t, frame: n, starting: r, pendingGroup: i, grouped: a, queueOpen: o, queueReady: s, hasPrevious: c, hasNext: l, later: u, laterBusy: d, play: f, previous: p, next: m, queue: h, watchLater: g, details: _, ended: v, error: y }) {
+ let b = Dy(), x = HG(t, n, v), S = x.duration || Number(e.duration) || 0, C = r || i, w = !t || x.paused, T = async () => {
if (!(C || a && !s)) try {
t === e.id ? await x.toggle() : await f();
} catch (e) {
y(Ut(e));
}
};
- return /* @__PURE__ */ (0, O.jsxs)(Iy.div, {
+ return /* @__PURE__ */ (0, O.jsxs)(Fy.div, {
"data-wall-focus-actions": "",
initial: !b && {
opacity: 0,
@@ -53284,7 +53285,7 @@ function WG({ item: e, playing: t, frame: n, starting: r, pendingGroup: i, group
opacity: 1,
transform: "translateY(0px)"
},
- transition: b ? { duration: 0 } : HG,
+ transition: b ? { duration: 0 } : VG,
children: [/* @__PURE__ */ (0, O.jsxs)("div", {
"data-wall-control-row": "",
children: [
@@ -53292,7 +53293,7 @@ function WG({ item: e, playing: t, frame: n, starting: r, pendingGroup: i, group
type: "button",
"data-wall-play": "",
"data-wall-pause": w ? void 0 : "",
- ...Vz(C),
+ ...Bz(C),
"aria-label": r ? "正在打开" : i ? "正在读取版本" : w ? "播放" : "暂停",
title: w ? "播放" : "暂停",
onClick: () => void T(),
@@ -53342,7 +53343,7 @@ function WG({ item: e, playing: t, frame: n, starting: r, pendingGroup: i, group
}),
/* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
- ...Vz(d),
+ ...Bz(d),
"aria-label": u ? "移出稍后看" : "稍后看",
title: "稍后看",
"aria-pressed": u,
@@ -53389,7 +53390,7 @@ function WG({ item: e, playing: t, frame: n, starting: r, pendingGroup: i, group
}
//#endregion
//#region src/react/components/mix-queue.tsx
-function GG({ kind: e, title: t, summary: n, onClose: r, actions: i, listRef: a, children: o, ...s }) {
+function WG({ kind: e, title: t, summary: n, onClose: r, actions: i, listRef: a, children: o, ...s }) {
let c = (0, D.useRef)(null), l = (0, D.useCallback)((e) => {
c.current = e, typeof a == "function" ? a(e) : a && (a.current = e);
}, [a]);
@@ -53425,7 +53426,7 @@ function GG({ kind: e, title: t, summary: n, onClose: r, actions: i, listRef: a,
})]
});
}
-function KG({ current: e, pic: t, lead: n, after: r, row: i, children: a, ...o }) {
+function GG({ current: e, pic: t, lead: n, after: r, row: i, children: a, ...o }) {
let s = /* @__PURE__ */ (0, O.jsx)("span", {
"data-mix-item-text": "",
children: a
@@ -53448,7 +53449,7 @@ function KG({ current: e, pic: t, lead: n, after: r, row: i, children: a, ...o }
}), r]
});
}
-var qG = ({ label: e, count: t }) => /* @__PURE__ */ (0, O.jsxs)("h3", {
+var KG = ({ label: e, count: t }) => /* @__PURE__ */ (0, O.jsxs)("h3", {
"data-mix-group-label": "",
children: [
e,
@@ -53458,28 +53459,28 @@ var qG = ({ label: e, count: t }) => /* @__PURE__ */ (0, O.jsxs)("h3", {
});
//#endregion
//#region src/react/video-wall/wall-queue.tsx
-function JG({ items: e, activeId: t, kind: n, label: r, choose: i, close: a }) {
+function qG({ items: e, activeId: t, kind: n, label: r, choose: i, close: a }) {
return /* @__PURE__ */ (0, O.jsx)("div", {
"data-wall-queue": "",
id: "wall-queue",
- children: /* @__PURE__ */ (0, O.jsx)(GG, {
+ children: /* @__PURE__ */ (0, O.jsx)(WG, {
kind: n,
title: n === "parts" ? "分卷" : n === "editions" ? "版本" : "作品",
summary: `${e.length} 个视频`,
onClose: a,
- children: e.map((e) => /* @__PURE__ */ (0, O.jsxs)(KG, {
+ children: e.map((e) => /* @__PURE__ */ (0, O.jsxs)(GG, {
current: e.id === t,
"data-wall-source": e.id,
"aria-label": [
e.edition_label,
- e.part_label ? sN(e.part_label) : "",
+ e.part_label ? oN(e.part_label) : "",
r(e)
].filter(Boolean).join(" · "),
onClick: () => i(e),
- pic: /* @__PURE__ */ (0, O.jsx)(fW, { artwork: Ga(e, "small", !0, "cover") }),
+ pic: /* @__PURE__ */ (0, O.jsx)(dW, { artwork: Ga(e, "small", !0, "cover") }),
children: [/* @__PURE__ */ (0, O.jsx)("b", { children: r(e) }), /* @__PURE__ */ (0, O.jsx)("span", { children: [
e.edition_label,
- e.part_label ? sN(e.part_label) : "",
+ e.part_label ? oN(e.part_label) : "",
hn(e.duration)
].filter(Boolean).join(" · ") })]
}, e.id))
@@ -53488,7 +53489,7 @@ function JG({ items: e, activeId: t, kind: n, label: r, choose: i, close: a }) {
}
//#endregion
//#region src/react/video-wall/wall-route.ts
-function YG(e = `${location.pathname}${location.search}`, t = {}) {
+function JG(e = `${location.pathname}${location.search}`, t = {}) {
let n = new URL(e, location.origin), [r, ...i] = n.pathname.split("/").filter(Boolean), a = {
performers: "performer",
creators: "creator",
@@ -53503,18 +53504,18 @@ function YG(e = `${location.pathname}${location.search}`, t = {}) {
}
return s.set("returnTo", `${n.pathname}${n.search}`), `/wall?${s}`;
}
-function XG(e = `${location.pathname}${location.search}`) {
+function YG(e = `${location.pathname}${location.search}`) {
let t = new URL(e, location.origin).searchParams;
- for (let e of LG) t.delete(e);
+ for (let e of IG) t.delete(e);
return t.delete("tag_match"), `/wall${t.size ? `?${t}` : ""}`;
}
-function ZG() {
- let e = new URLSearchParams(XV.navigation.location.search).get("returnTo") || "/";
- XV.replace(e.startsWith("/") && !e.startsWith("//") && !e.startsWith("/wall") ? e : "/");
+function XG() {
+ let e = new URLSearchParams(YV.navigation.location.search).get("returnTo") || "/";
+ YV.replace(e.startsWith("/") && !e.startsWith("//") && !e.startsWith("/wall") ? e : "/");
}
//#endregion
//#region src/react/video-wall/video-wall.tsx
-var QG = /* @__PURE__ */ new Map(), $G = (0, D.memo)(function({ item: e, image: t, big: n = !1, ratio: r = 1 }) {
+var ZG = /* @__PURE__ */ new Map(), QG = (0, D.memo)(function({ item: e, image: t, big: n = !1, ratio: r = 1 }) {
let i = Ga(!e.is_jav && t === "thumbnail" && e.has_thumb ? {
...e,
has_cover: !1
@@ -53527,7 +53528,7 @@ var QG = /* @__PURE__ */ new Map(), $G = (0, D.memo)(function({ item: e, image:
ref: a,
"data-media-pic": "",
style: { "--card-ratio": String(r) },
- children: /* @__PURE__ */ (0, O.jsx)(fW, {
+ children: /* @__PURE__ */ (0, O.jsx)(dW, {
artwork: i,
relayout: (e) => e.querySelectorAll("img.cover").forEach((e) => {
e.complete && e.naturalWidth && Vc(e, r);
@@ -53535,31 +53536,31 @@ var QG = /* @__PURE__ */ new Map(), $G = (0, D.memo)(function({ item: e, image:
})
});
});
-function eK({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error: a = "", retry: o, emptyHtml: s = "", loadMore: c, actions: l, helpers: u, javImage: d, sessionKey: f }) {
+function $G({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error: a = "", retry: o, emptyHtml: s = "", loadMore: c, actions: l, helpers: u, javImage: d, sessionKey: f }) {
let p = String(e[0]?.id), [m] = (0, D.useState)(() => {
- let e = QG.get(f);
+ let e = ZG.get(f);
return e && (i || t || e.pool === p) ? e : void 0;
- }), [h] = (0, D.useState)(() => m?.exploration || new IG()), g = (0, D.useRef)(!1), [_, v] = (0, D.useState)(null), y = (0, D.useRef)(null), b = (0, D.useRef)(null), x = (0, D.useRef)(null), S = (0, D.useRef)(null), C = (0, D.useRef)(null), [w, T] = (0, D.useState)(() => e.find((e) => e.id === m?.selectedId) || null), [E, k] = (0, D.useState)(m?.selectedKey || ""), [A, j] = (0, D.useState)(m?.sourceId || null), [M, N] = (0, D.useState)(!1), P = w?.edition_group ? {
+ }), [h] = (0, D.useState)(() => m?.exploration || new FG()), g = (0, D.useRef)(!1), [_, v] = (0, D.useState)(null), y = (0, D.useRef)(null), b = (0, D.useRef)(null), x = (0, D.useRef)(null), S = (0, D.useRef)(null), C = (0, D.useRef)(null), [w, T] = (0, D.useState)(() => e.find((e) => e.id === m?.selectedId) || null), [E, k] = (0, D.useState)(m?.selectedKey || ""), [A, j] = (0, D.useState)(m?.sourceId || null), [M, N] = (0, D.useState)(!1), P = w?.edition_group ? {
kind: "editions",
seedId: w.edition_group.seed_id
} : w?.part_group ? {
kind: "parts",
seedId: w.part_group.seed_id
} : null, ee = St({
- queryKey: BM(P || {
+ queryKey: zM(P || {
kind: "parts",
seedId: 0
}),
enabled: !!P,
- queryFn: ({ signal: e }) => XM(P, {
+ queryFn: ({ signal: e }) => YM(P, {
tagLabel: u.tagLabel,
mixRelated: async () => []
}, e)
- }), F = P ? ee.data : void 0, te = F?.items.find((e) => e.id === $M(F, A || w?.id || null)) || w, I = BG(e.length, t && !!e.length, m?.camera || {
+ }), F = P ? ee.data : void 0, te = F?.items.find((e) => e.id === QM(F, A || w?.id || null)) || w, I = zG(e.length, t && !!e.length, m?.camera || {
x: 0,
y: 0,
scale: innerWidth < 640 ? .68 : 1
- }, !!w), ne = Oy(), [re, ie] = (0, D.useState)(!!m);
+ }, !!w), ne = Dy(), [re, ie] = (0, D.useState)(!!m);
(0, D.useEffect)(() => {
if (!e.length || re || ne) return;
let t = setTimeout(() => ie(!0), 1100);
@@ -53576,7 +53577,7 @@ function eK({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
(0, D.useLayoutEffect)(() => {
document.body.append(Se), I.viewport.current?.focus({ preventScroll: !0 });
}, [Se]), (0, D.useEffect)(() => () => Se.remove(), [Se]);
- let [Ce, we] = (0, D.useState)(() => _V(XV.navigation.location.pathname)), [Te, Ee] = (0, D.useState)(m?.image || d), De = (0, D.useRef)(null), Oe = (0, D.useRef)(p), ke = (0, D.useRef)(!!e.length);
+ let [Ce, we] = (0, D.useState)(() => gV(YV.navigation.location.pathname)), [Te, Ee] = (0, D.useState)(m?.image || d), De = (0, D.useRef)(null), Oe = (0, D.useRef)(p), ke = (0, D.useRef)(!!e.length);
ke.current = !!e.length;
let Ae = (0, D.useRef)({
selectedId: w?.id || null,
@@ -53593,17 +53594,17 @@ function eK({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
pool: p
};
let je = () => {
- ke.current && (QG.delete(f), QG.set(f, {
+ ke.current && (ZG.delete(f), ZG.set(f, {
...Ae.current,
camera: I.snapshot(),
exploration: h
- }), QG.size > 8 && QG.delete(QG.keys().next().value));
+ }), ZG.size > 8 && ZG.delete(ZG.keys().next().value));
};
(0, D.useLayoutEffect)(je);
- let Me = FG(i ? 12 : t ? e.length : e.length || n ? 12 : 0, t && !i, I.view.camera, I.view.size), Ne = i ? Me.map((e) => ({
+ let Me = PG(i ? 12 : t ? e.length : e.length || n ? 12 : 0, t && !i, I.view.camera, I.view.size), Ne = i ? Me.map((e) => ({
...e,
index: -1
- })) : t ? Me : h.assign(Me, e.length, n), Pe = w && (t ? AG(e.length, !0, E) : h.tile(E, e.length)), Fe = Pe ? MG(e.length, t, Pe) : /* @__PURE__ */ new Map();
+ })) : t ? Me : h.assign(Me, e.length, n), Pe = w && (t ? kG(e.length, !0, E) : h.tile(E, e.length)), Fe = Pe ? jG(e.length, t, Pe) : /* @__PURE__ */ new Map();
Pe && !Ne.some((e) => e.key === Pe.key) && Ne.push(Pe);
let Ie = (e = !1) => {
C.current?.abort(), C.current = null, S.current?.(e), S.current = null, se(null), de(!1);
@@ -53620,8 +53621,8 @@ function eK({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
t,
p,
i
- ]), (0, D.useEffect)(() => XV.listen((e) => {
- let t = _V(e.location.pathname);
+ ]), (0, D.useEffect)(() => YV.listen((e) => {
+ let t = gV(e.location.pathname);
t && (C.current?.abort(), S.current?.(!0), S.current = null, se(null), de(!1)), we(t);
}), []), (0, D.useEffect)(() => () => {
C.current?.abort(), S.current?.(!0), je();
@@ -53642,7 +53643,7 @@ function eK({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
w?.id !== n.id && Ie(!1), De.current = {
key: r.key,
id: n.id
- }, pe(""), le(null), T(n), k(r.key), j(null), N(!1), xe(!1), I.reveal(MG(e.length, t, r).get(r.key) || r, i, !0), i || requestAnimationFrame(() => y.current?.querySelector("[data-wall-play]")?.focus({ preventScroll: !0 }));
+ }, pe(""), le(null), T(n), k(r.key), j(null), N(!1), xe(!1), I.reveal(jG(e.length, t, r).get(r.key) || r, i, !0), i || requestAnimationFrame(() => y.current?.querySelector("[data-wall-play]")?.focus({ preventScroll: !0 }));
}, ze = () => {
te && y.current && (je(), Ie(!0), l.wallDetails?.(te, y.current.querySelector("[data-wall-focus]") || y.current));
}, Be = async (e = te) => {
@@ -53664,7 +53665,7 @@ function eK({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
C.current === t && de(!1);
}
}, Ve = () => {
- let e = eN(F || null, oe || 0);
+ let e = $M(F || null, oe || 0);
e && (j(e.id), Be(e));
};
(0, D.useEffect)(() => {
@@ -53686,7 +53687,7 @@ function eK({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
let r = I.snapshot(), i = e.findIndex((e) => e.id === n.id), a = {
x: (I.view.size.width / 2 - r.x) / r.scale,
y: (I.view.size.height / 2 - r.y) / r.scale
- }, o = t ? jG(e.length, i) : h.nearest(e.length, i, a);
+ }, o = t ? AG(e.length, i) : h.nearest(e.length, i, a);
o && (Re(n, o), le(n.id));
}, Ge = async () => {
if (!(r || g.current)) {
@@ -53778,7 +53779,7 @@ function eK({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
/* @__PURE__ */ (0, O.jsx)("div", {
"data-wall-focus-backdrop": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, O.jsx)($G, {
+ children: /* @__PURE__ */ (0, O.jsx)(QG, {
item: w,
image: Te,
big: !0
@@ -53786,7 +53787,7 @@ function eK({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
}),
/* @__PURE__ */ (0, O.jsx)("div", {
"data-wall-scene": "",
- children: /* @__PURE__ */ (0, O.jsx)($G, {
+ children: /* @__PURE__ */ (0, O.jsx)(QG, {
item: w,
image: Te,
big: !0
@@ -53815,7 +53816,7 @@ function eK({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
}),
Xe.code ? /* @__PURE__ */ (0, O.jsx)("strong", { children: Ye(Xe).startsWith(Xe.code) ? Ye(Xe).slice(Xe.code.length).trim() : Ye(Xe) }) : null,
/* @__PURE__ */ (0, O.jsx)("span", { children: Xe.performers?.join(" · ") || Xe.creator || "未归属" }),
- F ? /* @__PURE__ */ (0, O.jsx)("small", { children: [Xe.edition_label, Xe.part_label ? sN(Xe.part_label) : ""].filter(Boolean).join(" · ") }) : null
+ F ? /* @__PURE__ */ (0, O.jsx)("small", { children: [Xe.edition_label, Xe.part_label ? oN(Xe.part_label) : ""].filter(Boolean).join(" · ") }) : null
]
}),
/* @__PURE__ */ (0, O.jsx)("button", {
@@ -53832,17 +53833,17 @@ function eK({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
}),
fe || P && ee.error && !F ? /* @__PURE__ */ (0, O.jsxs)("div", {
"data-wall-play-error": "",
- children: [/* @__PURE__ */ (0, O.jsx)(Iz, {
+ children: [/* @__PURE__ */ (0, O.jsx)(Fz, {
tone: "error",
children: fe || Ut(ee.error)
- }), ee.error && !F ? /* @__PURE__ */ (0, O.jsx)(q, {
+ }), ee.error && !F ? /* @__PURE__ */ (0, O.jsx)(J, {
size: "small",
variant: "ghost",
onClick: () => void ee.refetch(),
children: "立即重试"
}) : null]
}) : null,
- /* @__PURE__ */ (0, O.jsx)(WG, {
+ /* @__PURE__ */ (0, O.jsx)(UG, {
item: Xe,
playing: oe,
frame: b,
@@ -53864,7 +53865,7 @@ function eK({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
ended: Ve,
error: pe
}),
- M ? /* @__PURE__ */ (0, O.jsx)(JG, {
+ M ? /* @__PURE__ */ (0, O.jsx)(qG, {
items: He,
activeId: Xe.id,
kind: F?.kind || "wall",
@@ -53880,7 +53881,7 @@ function eK({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
"data-refreshing": _ !== null || void 0,
hidden: Ce,
onKeyDown: (e) => {
- e.key !== "Escape" || e.defaultPrevented || (e.preventDefault(), e.stopPropagation(), M ? N(!1) : w ? Le() : be ? xe(!1) : ZG());
+ e.key !== "Escape" || e.defaultPrevented || (e.preventDefault(), e.stopPropagation(), M ? N(!1) : w ? Le() : be ? xe(!1) : XG());
},
children: [
/* @__PURE__ */ (0, O.jsx)("button", {
@@ -53888,7 +53889,7 @@ function eK({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
"data-wall-back": "",
"aria-label": "退出播放墙",
title: "返回",
- onClick: ZG,
+ onClick: XG,
children: /* @__PURE__ */ (0, O.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
@@ -53903,10 +53904,10 @@ function eK({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, O.jsx)("use", { href: "#i-info" })
- }), /* @__PURE__ */ (0, O.jsx)("p", { children: "当前仅显示筛选结果" })] }), /* @__PURE__ */ (0, O.jsx)(q, {
+ }), /* @__PURE__ */ (0, O.jsx)("p", { children: "当前仅显示筛选结果" })] }), /* @__PURE__ */ (0, O.jsx)(J, {
size: "small",
variant: "ghost",
- onClick: () => XV.push(XG()),
+ onClick: () => YV.push(YG()),
children: "清除筛选"
})]
}) : null,
@@ -53918,7 +53919,7 @@ function eK({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
onSubmit: (e) => {
e.preventDefault();
let t = new URLSearchParams(location.search), n = String(new FormData(e.currentTarget).get("q") || "").trim();
- n ? t.set("q", n) : t.delete("q"), je(), XV.push(`/wall?${t}`), xe(!1);
+ n ? t.set("q", n) : t.delete("q"), je(), YV.push(`/wall?${t}`), xe(!1);
},
children: [/* @__PURE__ */ (0, O.jsx)("svg", {
viewBox: "0 0 24 24",
@@ -53932,39 +53933,39 @@ function eK({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
defaultValue: new URLSearchParams(location.search).get("q") || ""
})]
}),
- /* @__PURE__ */ (0, O.jsxs)(yU, {
+ /* @__PURE__ */ (0, O.jsxs)(vU, {
"aria-label": "播放墙图片",
value: Te,
onChange: Ee,
- className: bU,
- children: [/* @__PURE__ */ (0, O.jsx)(TR, {
+ className: yU,
+ children: [/* @__PURE__ */ (0, O.jsx)(wR, {
value: "cover",
- className: xU,
+ className: bU,
children: "封面"
- }), /* @__PURE__ */ (0, O.jsx)(TR, {
+ }), /* @__PURE__ */ (0, O.jsx)(wR, {
value: "thumbnail",
- className: xU,
+ className: bU,
children: "缩略图"
})]
}),
/* @__PURE__ */ (0, O.jsxs)("div", {
"data-wall-tools": "",
children: [
- /* @__PURE__ */ (0, O.jsx)(q, {
+ /* @__PURE__ */ (0, O.jsx)(J, {
size: "small",
variant: "ghost",
"aria-label": "缩小播放墙",
onClick: () => I.zoom(1 / 1.2),
children: "缩小"
}),
- /* @__PURE__ */ (0, O.jsx)(q, {
+ /* @__PURE__ */ (0, O.jsx)(J, {
size: "small",
variant: "ghost",
"aria-label": "放大播放墙",
onClick: () => I.zoom(1.2),
children: "放大"
}),
- /* @__PURE__ */ (0, O.jsx)(q, {
+ /* @__PURE__ */ (0, O.jsx)(J, {
size: "small",
variant: "ghost",
onClick: I.reset,
@@ -54015,7 +54016,7 @@ function eK({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
}
}, t.key);
let n = e[t.index], r = !!w && t.key === E, i = Fe.get(t.key) || t, a = !re && !r, o = a ? Math.min(.34, (Math.max(0, t.x + I.view.camera.x / I.view.camera.scale) + Math.max(0, t.y + I.view.camera.y / I.view.camera.scale)) / 103.36 * .03) : 0;
- return /* @__PURE__ */ (0, O.jsx)(Iy.article, {
+ return /* @__PURE__ */ (0, O.jsx)(Fy.article, {
layout: !0,
layoutDependency: `${i.x}:${i.y}:${i.width}:${i.height}`,
"data-wall-tile": t.key,
@@ -54036,7 +54037,7 @@ function eK({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
},
whileHover: ae && !ne && !r && re ? { transform: `translateY(0px) scale(${(i.width + 12.16) / i.width},${(i.height + 12.16) / i.height})` } : void 0,
transition: ne ? { duration: 0 } : {
- layout: VG,
+ layout: BG,
transform: a ? {
type: "spring",
stiffness: 360,
@@ -54069,7 +54070,7 @@ function eK({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
!r && ["Enter", " "].includes(e.key) && (e.preventDefault(), Re(n, t, !1));
},
children: r ? Ze : /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [
- /* @__PURE__ */ (0, O.jsx)($G, {
+ /* @__PURE__ */ (0, O.jsx)(QG, {
item: n,
image: Te,
ratio: i.width / i.height
@@ -54095,7 +54096,7 @@ function eK({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
style: { "--wall-progress": `${Math.min(100, Number(n.leave_ratio) * 100)}%` },
"aria-label": "观看进度"
}) : null,
- /* @__PURE__ */ (0, O.jsx)(Iy.span, {
+ /* @__PURE__ */ (0, O.jsx)(Fy.span, {
"data-wall-dim": "",
animate: { opacity: w ? .65 : 0 },
transition: { duration: ne ? 0 : .24 }
@@ -54107,10 +54108,10 @@ function eK({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
}),
!i && a ? /* @__PURE__ */ (0, O.jsxs)("div", {
"data-wall-error": "",
- children: [/* @__PURE__ */ (0, O.jsx)(Iz, {
+ children: [/* @__PURE__ */ (0, O.jsx)(Fz, {
tone: "error",
children: a
- }), /* @__PURE__ */ (0, O.jsx)(q, {
+ }), /* @__PURE__ */ (0, O.jsx)(J, {
size: "small",
variant: "ghost",
onClick: o,
@@ -54134,30 +54135,30 @@ function eK({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
}) : null,
!t && (n || e.length > 0) ? /* @__PURE__ */ (0, O.jsx)("div", {
"data-wall-refresh": "",
- children: /* @__PURE__ */ (0, O.jsx)(JU, {
+ children: /* @__PURE__ */ (0, O.jsx)(qU, {
busy: r,
onPress: () => void qe()
})
}) : null,
n && t && e.length > 0 ? /* @__PURE__ */ (0, O.jsx)("div", {
"data-wall-footer": "",
- children: /* @__PURE__ */ (0, O.jsxs)(q, {
+ children: /* @__PURE__ */ (0, O.jsxs)(J, {
size: "small",
variant: "secondary",
- ...Vz(r),
+ ...Bz(r),
onClick: () => void Ge(),
children: [r ? /* @__PURE__ */ (0, O.jsx)("span", { dangerouslySetInnerHTML: { __html: ns() } }) : null, "载入更多"]
})
}) : null,
me ? /* @__PURE__ */ (0, O.jsxs)("div", {
"data-wall-error": "",
- children: [/* @__PURE__ */ (0, O.jsx)(Iz, {
+ children: [/* @__PURE__ */ (0, O.jsx)(Fz, {
tone: "error",
children: me
- }), /* @__PURE__ */ (0, O.jsx)(q, {
+ }), /* @__PURE__ */ (0, O.jsx)(J, {
size: "small",
variant: "ghost",
- ...Vz(r),
+ ...Bz(r),
onClick: () => void Ge(),
children: "立即重试"
})]
@@ -54181,7 +54182,7 @@ function eK({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
}
//#endregion
//#region src/catalog-onboarding.ts
-var tK = [
+var eK = [
"loc",
"creator",
"performer",
@@ -54199,19 +54200,19 @@ var tK = [
"jav",
"thumb"
];
-function nK(e = typeof location > "u" ? "/" : location.href) {
+function tK(e = typeof location > "u" ? "/" : location.href) {
let t = new URL(e, "http://localhost");
for (let e of [
- ...tK,
+ ...eK,
"q",
"category",
"cat"
]) t.searchParams.delete(e);
return t.searchParams.set("thumb", "0"), t.pathname + (t.search ? t.search : "") + t.hash;
}
-async function rK(e, t) {
+async function nK(e, t) {
let n = new URLSearchParams();
- for (let t of tK) e[t] && n.set(t, e[t]);
+ for (let t of eK) e[t] && n.set(t, e[t]);
let [r, i] = await Promise.all([t("/api/facets?" + n), t("/api/items?" + n + "&limit=5")]), a = [...new Set([
...r.creators || [],
...r.tagperformers || [],
@@ -54222,9 +54223,9 @@ async function rK(e, t) {
return r.set("q", e), r.set("limit", "1"), (await t("/api/items?" + r)).total > 0 ? e : "";
}))).filter(Boolean);
}
-function iK({ kind: e = "catalog", filtered: t = !1, jav: n = !1, configurable: r = !1, online: i = !1 } = {}) {
+function rK({ kind: e = "catalog", filtered: t = !1, jav: n = !1, configurable: r = !1, online: i = !1 } = {}) {
let a = "<a class=\"geist-button primary\" href=\"/settings/library\">添加媒体</a>", o = "<a class=\"geist-button" + (i ? " primary" : "") + "\" href=\"/subscriptions?tab=add\">添加关注</a>";
- if (t || n) return os("search", n ? "还没有符合条件的 JAV 作品" : "没有符合条件的内容", n ? "已扫描但尚未补充发行资料的视频可在全部内容中查看。" : "清除筛选或搜索条件后查看全部内容。", { actions: `<a class="geist-button primary" href="${t ? B(nK()) : "/?loc=&thumb=0"}">${t ? "清除筛选" : "查看全部内容"}</a>` });
+ if (t || n) return os("search", n ? "还没有符合条件的 JAV 作品" : "没有符合条件的内容", n ? "已扫描但尚未补充发行资料的视频可在全部内容中查看。" : "清除筛选或搜索条件后查看全部内容。", { actions: `<a class="geist-button primary" href="${t ? B(tK()) : "/?loc=&thumb=0"}">${t ? "清除筛选" : "查看全部内容"}</a>` });
if (e !== "catalog") {
let t = (i ? {
tags: "标签",
@@ -54243,12 +54244,12 @@ function iK({ kind: e = "catalog", filtered: t = !1, jav: n = !1, configurable:
}
//#endregion
//#region src/react/video-wall/wall-empty.ts
-function aK({ libraryEmpty: e, matches: t, hasMore: n, catalogEmpty: r }) {
- return e ? r || iK() : t ? os("image", "这些视频还没有封面", n ? "载入更多作品后继续浏览。" : "为作品补充封面后,可在播放墙中查看。", { actions: "<a class=\"geist-button primary\" href=\"/data-cleanup\">补全封面</a>" + (n ? "<button type=\"button\" class=\"geist-button\" data-wall-load-more>加载更多</button>" : "") }) : os("search", "没有符合筛选条件的视频", "清除筛选条件后查看全部视频。", { actions: `<a class="geist-button primary" href="${XG()}">清除筛选</a>` });
+function iK({ libraryEmpty: e, matches: t, hasMore: n, catalogEmpty: r }) {
+ return e ? r || rK() : t ? os("image", "这些视频还没有封面", n ? "载入更多作品后继续浏览。" : "为作品补充封面后,可在播放墙中查看。", { actions: "<a class=\"geist-button primary\" href=\"/data-cleanup\">补全封面</a>" + (n ? "<button type=\"button\" class=\"geist-button\" data-wall-load-more>加载更多</button>" : "") }) : os("search", "没有符合筛选条件的视频", "清除筛选条件后查看全部视频。", { actions: `<a class="geist-button primary" href="${YG()}">清除筛选</a>` });
}
//#endregion
//#region src/react/library-processing/processing-actions.tsx
-function oK({ command: e, speed: t, dialog: n, onSpeed: r, busy: i }) {
+function aK({ command: e, speed: t, dialog: n, onSpeed: r, busy: i }) {
let [a, o] = (0, D.useState)(t), [s, c] = (0, D.useState)(), [l, u] = (0, D.useState)("");
return (0, D.useEffect)(() => {
let t = new AbortController(), r, i = async (a) => {
@@ -54271,7 +54272,7 @@ function oK({ command: e, speed: t, dialog: n, onSpeed: r, busy: i }) {
children: [
/* @__PURE__ */ (0, O.jsx)("div", {
className: "flex justify-center",
- children: /* @__PURE__ */ (0, O.jsx)(AH, {
+ children: /* @__PURE__ */ (0, O.jsx)(kH, {
value: a,
busy: i,
onChange: (e) => {
@@ -54279,7 +54280,7 @@ function oK({ command: e, speed: t, dialog: n, onSpeed: r, busy: i }) {
}
})
}),
- s ? /* @__PURE__ */ (0, O.jsx)(tU, {
+ s ? /* @__PURE__ */ (0, O.jsx)(eU, {
traffic: s,
initial: !0
}) : null,
@@ -54291,7 +54292,7 @@ function oK({ command: e, speed: t, dialog: n, onSpeed: r, busy: i }) {
]
});
}
-function sK({ busy: e, scan: t = !1, metadataOnly: n = !1, speedMode: r = "standard", onRun: i }) {
+function oK({ busy: e, scan: t = !1, metadataOnly: n = !1, speedMode: r = "standard", onRun: i }) {
let a = (0, D.useRef)(null), o = (0, D.useRef)(null), [s, c] = (0, D.useState)(null), l = (0, D.useRef)(r);
(0, D.useEffect)(() => () => o.current?.close(), []);
let [u, d] = (0, D.useState)(!1), f = {
@@ -54349,7 +54350,7 @@ function sK({ busy: e, scan: t = !1, metadataOnly: n = !1, speedMode: r = "stand
});
};
return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [
- s ? (0, Tt.createPortal)(/* @__PURE__ */ (0, O.jsx)(oK, {
+ s ? (0, Tt.createPortal)(/* @__PURE__ */ (0, O.jsx)(aK, {
command: s.command,
dialog: s.dialog,
speed: r,
@@ -54358,11 +54359,11 @@ function sK({ busy: e, scan: t = !1, metadataOnly: n = !1, speedMode: r = "stand
l.current = e;
}
}), s.host) : null,
- s ? (0, Tt.createPortal)(/* @__PURE__ */ (0, O.jsx)(SH, {
+ s ? (0, Tt.createPortal)(/* @__PURE__ */ (0, O.jsx)(xH, {
href: "/settings/library",
size: "small",
variant: "primary",
- trailingIcon: dz,
+ trailingIcon: uz,
disabled: e,
onClick: (e) => {
s.dialog.confirmButton.getAttribute("aria-busy") === "true" ? e.preventDefault() : s.dialog.close();
@@ -54373,31 +54374,31 @@ function sK({ busy: e, scan: t = !1, metadataOnly: n = !1, speedMode: r = "stand
"data-button-group": !0,
"data-split-button": !0,
"data-variant": "primary",
- children: [/* @__PURE__ */ (0, O.jsx)(q, {
- ...Vz(e),
+ children: [/* @__PURE__ */ (0, O.jsx)(J, {
+ ...Bz(e),
onClick: () => m(f.command),
children: f.label
- }), /* @__PURE__ */ (0, O.jsx)(q, {
+ }), /* @__PURE__ */ (0, O.jsx)(J, {
ref: a,
iconOnly: !0,
- leadingIcon: uz,
+ leadingIcon: lz,
"aria-label": "更多同步方式",
"aria-haspopup": "dialog",
"aria-expanded": u,
- ...Vz(e),
+ ...Bz(e),
onClick: () => {
e || d(!u);
}
})]
}),
- /* @__PURE__ */ (0, O.jsx)(iR, {
+ /* @__PURE__ */ (0, O.jsx)(rR, {
triggerRef: a,
isOpen: u,
onOpenChange: d,
placement: "bottom end",
offset: 4,
- className: ZB,
- children: /* @__PURE__ */ (0, O.jsx)(wH, {
+ className: XB,
+ children: /* @__PURE__ */ (0, O.jsx)(CH, {
"aria-label": "同步方式",
className: "flex w-80 flex-col gap-1 outline-none",
children: p.map(({ label: e, description: t, command: r }) => {
@@ -54406,7 +54407,7 @@ function sK({ busy: e, scan: t = !1, metadataOnly: n = !1, speedMode: r = "stand
type: "button",
disabled: i,
title: i ? "请先在媒体库设置中开启视频预览生成" : void 0,
- className: tF(QB, $B, "text-body-2-medium"),
+ className: eF(ZB, QB, "text-body-2-medium"),
onClick: () => m(r),
children: /* @__PURE__ */ (0, O.jsxs)("span", {
className: "flex min-w-0 flex-col gap-1",
@@ -54423,48 +54424,48 @@ function sK({ busy: e, scan: t = !1, metadataOnly: n = !1, speedMode: r = "stand
}
//#endregion
//#region src/react/library-processing/library-completion.tsx
-function cK(e, t) {
+function sK(e, t) {
return [...new Set(e.filter((e) => (!e.medium || e.medium === "video") && (!/\.(strm|iso)$/i.test(e.name || "") || !!e.code) && !e.disposal && e.location !== "online" && (e.location === "local" || !!e.code) && !Ga(e, "small", !1, t).html).map((e) => e.id))];
}
-function lK({ assetIds: e, onComplete: t, className: n = "mb-4" }) {
- return e.length ? /* @__PURE__ */ (0, O.jsx)(uK, {
+function cK({ assetIds: e, onComplete: t, className: n = "mb-4" }) {
+ return e.length ? /* @__PURE__ */ (0, O.jsx)(lK, {
assetIds: e,
onComplete: t,
className: n
}) : null;
}
-function uK({ assetIds: e, onComplete: t, className: n }) {
+function lK({ assetIds: e, onComplete: t, className: n }) {
let r = St({
- queryKey: dH,
- queryFn: ({ signal: e }) => mH(e),
- refetchInterval: (e) => _H(e.state.data, !0)
+ queryKey: uH,
+ queryFn: ({ signal: e }) => pH(e),
+ refetchInterval: (e) => gH(e.state.data, !0)
}), [i, a] = (0, D.useState)(null), [o, s] = (0, D.useState)(""), c = (0, D.useRef)(null), l = Ct({
- mutationFn: (t) => H(uH, {
+ mutationFn: (t) => H(lH, {
...t,
asset_ids: e
}),
onSuccess: (e) => {
- a(e.job_id || null), U.setQueryData(dH, e), U.invalidateQueries({ queryKey: dH });
+ a(e.job_id || null), U.setQueryData(uH, e), U.invalidateQueries({ queryKey: uH });
}
}), u = r.data;
if ((0, D.useEffect)(() => {
- u && i && u.job_id === i && !fH(u) && c.current !== i && (c.current = i, u.status === "complete" && s(`补全完成:取得 ${u.covers || 0} 张封面,生成 ${u.previews || 0} 部视频预览。`), U.invalidateQueries({ queryKey: ["catalog-grid"] }), t?.());
+ u && i && u.job_id === i && !dH(u) && c.current !== i && (c.current = i, u.status === "complete" && s(`补全完成:取得 ${u.covers || 0} 张封面,生成 ${u.previews || 0} 部视频预览。`), U.invalidateQueries({ queryKey: ["catalog-grid"] }), t?.());
}, [
u,
i,
t
- ]), fH(u)) return null;
- let d = l.isPending || fH(u), f = l.error ? An(l.error) : r.error ? gH : i && u?.job_id === i && u.status === "failed" ? u.error || "补全未完成" : "", p = f || (l.isPending ? "正在启动补全…" : o || `这批影片中有 ${e.length.toLocaleString()} 部暂无预览,可补全资料与图片。`);
+ ]), dH(u)) return null;
+ let d = l.isPending || dH(u), f = l.error ? An(l.error) : r.error ? hH : i && u?.job_id === i && u.status === "failed" ? u.error || "补全未完成" : "", p = f || (l.isPending ? "正在启动补全…" : o || `这批影片中有 ${e.length.toLocaleString()} 部暂无预览,可补全资料与图片。`);
return /* @__PURE__ */ (0, O.jsx)("section", {
"aria-label": "补全预览",
"aria-live": "polite",
"data-library-completion": "",
- className: tF("@container", n),
- children: /* @__PURE__ */ (0, O.jsxs)(Iz, {
+ className: eF("@container", n),
+ children: /* @__PURE__ */ (0, O.jsxs)(Fz, {
tone: f ? "warning" : "neutral",
action: /* @__PURE__ */ (0, O.jsx)("div", {
className: "flex flex-wrap items-center gap-2",
- children: /* @__PURE__ */ (0, O.jsx)(sK, {
+ children: /* @__PURE__ */ (0, O.jsx)(oK, {
busy: d,
metadataOnly: u?.metadata_only,
onRun: (e) => {
@@ -54475,10 +54476,10 @@ function uK({ assetIds: e, onComplete: t, className: n }) {
children: [
p,
" ",
- /* @__PURE__ */ (0, O.jsx)(SH, {
+ /* @__PURE__ */ (0, O.jsx)(xH, {
href: "/data-cleanup#libraryProcessing",
size: "small",
- trailingIcon: dz,
+ trailingIcon: uz,
children: f ? "打开扫描与采集" : "查看处理详情"
})
]
@@ -54487,32 +54488,32 @@ function uK({ assetIds: e, onComplete: t, className: n }) {
}
//#endregion
//#region node_modules/@tanstack/react-table/dist/FlexRender.js
-function dK(e) {
- return fK(e) || typeof e == "function" || pK(e);
+function uK(e) {
+ return dK(e) || typeof e == "function" || fK(e);
}
-function fK(e) {
+function dK(e) {
return typeof e == "function" && (() => {
let t = Object.getPrototypeOf(e);
return t.prototype && t.prototype.isReactComponent;
})();
}
-function pK(e) {
+function fK(e) {
return typeof e == "object" && typeof e.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(e.$$typeof.description);
}
-function mK(e, t) {
- return e == null ? null : dK(e) ? /* @__PURE__ */ D.createElement(e, t) : e;
+function pK(e, t) {
+ return e == null ? null : uK(e) ? /* @__PURE__ */ D.createElement(e, t) : e;
}
-function hK(e) {
+function mK(e) {
if ("cell" in e && e.cell) {
let t = e.cell, n = t.column.columnDef, r = t, i = n;
- return r.getIsAggregated?.() ? mK(i.aggregatedCell ?? n.cell, t.getContext()) : r.getIsPlaceholder?.() ? null : mK(n.cell, t.getContext());
+ return r.getIsAggregated?.() ? pK(i.aggregatedCell ?? n.cell, t.getContext()) : r.getIsPlaceholder?.() ? null : pK(n.cell, t.getContext());
}
- return "header" in e && e.header ? mK(e.header.column.columnDef.header, e.header.getContext()) : "footer" in e && e.footer ? mK(e.footer.column.columnDef.footer, e.footer.getContext()) : null;
+ return "header" in e && e.header ? pK(e.header.column.columnDef.header, e.header.getContext()) : "footer" in e && e.footer ? pK(e.footer.column.columnDef.footer, e.footer.getContext()) : null;
}
//#endregion
//#region node_modules/@tanstack/store/dist/alien.js
/* @__NO_SIDE_EFFECTS__ */
-function gK({ update: e, notify: t, unwatched: n }) {
+function hK({ update: e, notify: t, unwatched: n }) {
return {
link: r,
unlink: i,
@@ -54630,7 +54631,7 @@ function gK({ update: e, notify: t, unwatched: n }) {
}
//#endregion
//#region node_modules/@tanstack/store/dist/atom.js
-function _K(e, t, n) {
+function gK(e, t, n) {
let r = typeof e == "object", i = r ? e : void 0;
return {
next: (r ? e.next : e)?.bind(i),
@@ -54638,38 +54639,38 @@ function _K(e, t, n) {
complete: (r ? e.complete : n)?.bind(i)
};
}
-var vK = [], yK = 0, { link: bK, unlink: xK, propagate: SK, checkDirty: CK, shallowPropagate: wK } = /* @__PURE__ */ gK({
+var _K = [], vK = 0, { link: yK, unlink: bK, propagate: xK, checkDirty: SK, shallowPropagate: CK } = /* @__PURE__ */ hK({
update(e) {
return e._update();
},
notify(e) {
- vK[EK++] = e, e.flags &= -3;
+ _K[TK++] = e, e.flags &= -3;
},
unwatched(e) {
- e.depsTail !== void 0 && (e.depsTail = void 0, e.flags = 17, AK(e));
+ e.depsTail !== void 0 && (e.depsTail = void 0, e.flags = 17, kK(e));
}
-}), TK = 0, EK = 0, DK, OK = 0;
-function kK(e) {
+}), wK = 0, TK = 0, EK, DK = 0;
+function OK(e) {
try {
- ++OK, e();
+ ++DK, e();
} finally {
- --OK || jK();
+ --DK || AK();
}
}
-function AK(e) {
+function kK(e) {
let t = e.depsTail, n = t === void 0 ? e.deps : t.nextDep;
- for (; n !== void 0;) n = xK(n, e);
+ for (; n !== void 0;) n = bK(n, e);
}
-function jK() {
- if (!(OK > 0)) {
- for (; TK < EK;) {
- let e = vK[TK];
- vK[TK++] = void 0, e.notify();
+function AK() {
+ if (!(DK > 0)) {
+ for (; wK < TK;) {
+ let e = _K[wK];
+ _K[wK++] = void 0, e.notify();
}
- TK = 0, EK = 0;
+ wK = 0, TK = 0;
}
}
-function MK(e, t) {
+function jK(e, t) {
let n = typeof e == "function", r = e, i = {
_snapshot: n ? void 0 : e,
subs: void 0,
@@ -54678,53 +54679,53 @@ function MK(e, t) {
depsTail: void 0,
flags: +!n,
get() {
- return DK !== void 0 && bK(i, DK, yK), i._snapshot;
+ return EK !== void 0 && yK(i, EK, vK), i._snapshot;
},
subscribe(e) {
- let t = _K(e), n = { current: !1 }, r = NK(() => {
- i.get(), n.current ? (DK = void 0, t.next?.(i._snapshot)) : n.current = !0;
+ let t = gK(e), n = { current: !1 }, r = MK(() => {
+ i.get(), n.current ? (EK = void 0, t.next?.(i._snapshot)) : n.current = !0;
});
return { unsubscribe: () => {
r.stop();
} };
},
_update(e) {
- let a = DK, o = t?.compare ?? Object.is;
- if (n) DK = i, ++yK, i.depsTail = void 0;
+ let a = EK, o = t?.compare ?? Object.is;
+ if (n) EK = i, ++vK, i.depsTail = void 0;
else if (e === void 0) return !1;
n && (i.flags = 5);
try {
let t = i._snapshot, a = typeof e == "function" ? e(t) : e === void 0 && n ? r(t) : e;
return t === void 0 || !o(t, a) ? (i._snapshot = a, !0) : !1;
} finally {
- DK = a, n && (i.flags &= -5), AK(i);
+ EK = a, n && (i.flags &= -5), kK(i);
}
}
};
return n ? (i.flags = 17, i.get = function() {
let e = i.flags;
- if (e & 16 || e & 32 && CK(i.deps, i)) {
+ if (e & 16 || e & 32 && SK(i.deps, i)) {
if (i._update()) {
let e = i.subs;
- e !== void 0 && wK(e);
+ e !== void 0 && CK(e);
}
} else e & 32 && (i.flags = e & -33);
- return DK !== void 0 && bK(i, DK, yK), i._snapshot;
+ return EK !== void 0 && yK(i, EK, vK), i._snapshot;
}) : i.set = function(e) {
if (i._update(e)) {
let e = i.subs;
- e !== void 0 && (SK(e), wK(e), jK());
+ e !== void 0 && (xK(e), CK(e), AK());
}
}, i;
}
-function NK(e) {
+function MK(e) {
let t = () => {
- let t = DK;
- DK = n, ++yK, n.depsTail = void 0, n.flags = 6;
+ let t = EK;
+ EK = n, ++vK, n.depsTail = void 0, n.flags = 6;
try {
return e();
} finally {
- DK = t, n.flags &= -5, AK(n);
+ EK = t, n.flags &= -5, kK(n);
}
}, n = {
deps: void 0,
@@ -54734,17 +54735,17 @@ function NK(e) {
flags: 6,
notify() {
let e = this.flags;
- e & 16 || e & 32 && CK(this.deps, this) ? t() : this.flags = 2;
+ e & 16 || e & 32 && SK(this.deps, this) ? t() : this.flags = 2;
},
stop() {
- this.flags = 0, this.depsTail = void 0, AK(this);
+ this.flags = 0, this.depsTail = void 0, kK(this);
}
};
return t(), n;
}
//#endregion
//#region node_modules/@tanstack/store/dist/shallow.js
-function PK(e, t) {
+function NK(e, t) {
if (Object.is(e, t)) return !0;
if (typeof e != "object" || !e || typeof t != "object" || !t) return !1;
if (e instanceof Map && t instanceof Map) {
@@ -54758,18 +54759,18 @@ function PK(e, t) {
return !0;
}
if (e instanceof Date && t instanceof Date) return e.getTime() === t.getTime();
- let n = FK(e);
- if (n.length !== FK(t).length) return !1;
+ let n = PK(e);
+ if (n.length !== PK(t).length) return !1;
for (let r = 0; r < n.length; r++) if (!Object.prototype.hasOwnProperty.call(t, n[r]) || !Object.is(e[n[r]], t[n[r]])) return !1;
return !0;
}
-function FK(e) {
+function PK(e) {
return Object.keys(e).concat(Object.getOwnPropertySymbols(e));
}
//#endregion
//#region node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js
-var IK = /* @__PURE__ */ o(((e) => {
- var t = v(), n = Rx();
+var FK = /* @__PURE__ */ o(((e) => {
+ var t = v(), n = Lx();
function r(e, t) {
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
}
@@ -54813,28 +54814,28 @@ var IK = /* @__PURE__ */ o(((e) => {
f.hasValue = !0, f.value = p;
}, [p]), l(p), p;
};
-})), LK = /* @__PURE__ */ o(((e, t) => {
- t.exports = IK();
-})), RK = LK();
-function zK(e, t) {
+})), IK = /* @__PURE__ */ o(((e, t) => {
+ t.exports = FK();
+})), LK = IK();
+function RK(e, t) {
return e === t;
}
-function BK(e, t = (e) => e, n) {
- let r = n?.compare ?? zK, i = (0, D.useCallback)((t) => {
+function zK(e, t = (e) => e, n) {
+ let r = n?.compare ?? RK, i = (0, D.useCallback)((t) => {
let { unsubscribe: n } = e.subscribe(t);
return n;
}, [e]), a = (0, D.useCallback)(() => e.get(), [e]);
- return (0, RK.useSyncExternalStoreWithSelector)(i, a, a, t, r);
+ return (0, LK.useSyncExternalStoreWithSelector)(i, a, a, t, r);
}
//#endregion
//#region node_modules/@tanstack/react-table/dist/Subscribe.js
-function VK(e) {
- let t = BK(e.source, e.selector, { compare: PK });
+function BK(e) {
+ let t = zK(e.source, e.selector, { compare: NK });
return typeof e.children == "function" ? e.children(t) : e.children;
}
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/reactivity/coreReactivityFeature.utils.js
-function HK(e) {
+function VK(e) {
let t = e;
return Object.defineProperty(e, "state", { get() {
return e.get();
@@ -54842,7 +54843,7 @@ function HK(e) {
}
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/reactivity/renderPhaseReactivity.js
-function UK(e) {
+function HK(e) {
let { createAtom: t, batch: n } = e, r = t(0);
return {
createOptionsStore: !1,
@@ -54872,7 +54873,7 @@ function UK(e) {
}
};
}
-function WK(e, t = Object.is) {
+function UK(e, t = Object.is) {
let n = !1, r;
return {
get: e.get,
@@ -54886,29 +54887,29 @@ function WK(e, t = Object.is) {
}
//#endregion
//#region node_modules/@tanstack/react-table/dist/reactivity.js
-function GK() {
- return UK({
- createAtom: MK,
- batch: kK
+function WK() {
+ return HK({
+ createAtom: jK,
+ batch: OK
});
}
//#endregion
//#region node_modules/@tanstack/table-core/dist/utils.js
-function KK(e, t) {
+function GK(e, t) {
return typeof e == "function" ? e(t) : e;
}
-function qK(e) {
- if (Array.isArray(e)) return e.map(qK);
+function KK(e) {
+ if (Array.isArray(e)) return e.map(KK);
if (e && typeof e == "object") {
let t = Object.getPrototypeOf(e);
if (t !== Object.prototype && t !== null) return e;
- let n = t === null ? YK() : {}, r = Object.keys(e);
+ let n = t === null ? JK() : {}, r = Object.keys(e);
for (let t = 0; t < r.length; t++) {
let i = r[t];
Object.defineProperty(n, i, {
configurable: !0,
enumerable: !0,
- value: qK(e[i]),
+ value: KK(e[i]),
writable: !0
});
}
@@ -54916,7 +54917,7 @@ function qK(e) {
}
return e;
}
-function JK(e, t) {
+function qK(e, t) {
let n = Object.keys(t), r = e;
for (let e = 0; e < n.length; e++) {
let i = n[e];
@@ -54924,53 +54925,53 @@ function JK(e, t) {
}
return e;
}
-function YK() {
+function JK() {
return Object.create(null);
}
-function XK(e, t) {
+function YK(e, t) {
return Object.prototype.hasOwnProperty.call(e, t);
}
-function ZK(e, t) {
+function XK(e, t) {
return (n) => {
- (t.options.atoms?.[e] ?? t.baseAtoms[e]).set((e) => KK(n, e));
+ (t.options.atoms?.[e] ?? t.baseAtoms[e]).set((e) => GK(n, e));
};
}
-function QK(e) {
+function ZK(e) {
if (typeof e != "object" || !e) return !1;
if (Array.isArray(e)) return !0;
let t = Object.getPrototypeOf(e);
return t === Object.prototype || t === null;
}
-function $K(e) {
+function QK(e) {
return Reflect.ownKeys(e).filter((t) => Object.prototype.propertyIsEnumerable.call(e, t));
}
-var eq = 3;
-function tq(e, t) {
- return nq(e, t, eq);
+var $K = 3;
+function eq(e, t) {
+ return tq(e, t, $K);
}
-function nq(e, t, n) {
+function tq(e, t, n) {
if (Object.is(e, t)) return !0;
- if (n <= 0 || !QK(e) || !QK(t) || (Array.isArray(e) || Array.isArray(t)) && (!Array.isArray(e) || !Array.isArray(t) || e.length !== t.length)) return !1;
- let r = $K(e), i = $K(t);
+ if (n <= 0 || !ZK(e) || !ZK(t) || (Array.isArray(e) || Array.isArray(t)) && (!Array.isArray(e) || !Array.isArray(t) || e.length !== t.length)) return !1;
+ let r = QK(e), i = QK(t);
if (r.length !== i.length) return !1;
let a = e, o = t;
for (let e = 0; e < r.length; e++) {
let i = r[e];
- if (!Object.prototype.propertyIsEnumerable.call(t, i) || !nq(a[i], o[i], n - 1)) return !1;
+ if (!Object.prototype.propertyIsEnumerable.call(t, i) || !tq(a[i], o[i], n - 1)) return !1;
}
return !0;
}
-function rq(e, t, n, r = tq) {
+function nq(e, t, n, r = eq) {
let i = `on${t.charAt(0).toUpperCase()}${t.slice(1)}Change`, a = e.options[i];
a && a((e) => {
- let t = KK(n, e);
+ let t = GK(n, e);
return r(e, t) ? e : t;
});
}
-function iq(e) {
+function rq(e) {
return e instanceof Function;
}
-function aq(e, t) {
+function iq(e, t) {
let n = [], r = (e) => {
e.forEach((e) => {
n.push(e);
@@ -54980,7 +54981,7 @@ function aq(e, t) {
};
return r(e), n;
}
-var oq = ({ fn: e, memoDeps: t, onAfterCompare: n, onAfterUpdate: r, onBeforeCompare: i, onBeforeUpdate: a }) => {
+var aq = ({ fn: e, memoDeps: t, onAfterCompare: n, onAfterUpdate: r, onBeforeCompare: i, onBeforeUpdate: a }) => {
let o = [], s;
return (c) => {
i?.();
@@ -54994,23 +54995,23 @@ var oq = ({ fn: e, memoDeps: t, onAfterCompare: n, onAfterUpdate: r, onBeforeCom
return n?.(u), u && (o = l, a?.(), s = e(...l ?? []), r?.(s)), s;
};
};
-function sq(e) {
+function oq(e) {
let t = !1;
return () => {
t ? e() : t = !0;
};
}
-function cq({ feature: e, fnName: t, objectId: n, onAfterUpdate: r, table: i, ...a }) {
+function sq({ feature: e, fnName: t, objectId: n, onAfterUpdate: r, table: i, ...a }) {
let o = { onAfterUpdate: r ? () => {
let { schedule: e, untrack: t } = i._reactivity;
e(() => t(() => r()));
} : void 0 };
- return oq({
+ return aq({
...a,
...o
});
}
-function lq(e, t = "_") {
+function cq(e, t = "_") {
let [n, r] = e.replace(t, " ").split(" ");
return {
fnKey: r,
@@ -55018,10 +55019,10 @@ function lq(e, t = "_") {
parentName: n
};
}
-function uq(e, t, n) {
+function lq(e, t, n) {
for (let [r, { fn: i, memoDeps: a }] of Object.entries(n)) {
- let { fnKey: n, fnName: o } = lq(r);
- t[n] = a ? cq({
+ let { fnKey: n, fnName: o } = cq(r);
+ t[n] = a ? sq({
memoDeps: a,
fn: i,
fnName: o,
@@ -55030,15 +55031,15 @@ function uq(e, t, n) {
}) : i;
}
}
-function dq(e, t, n, r) {
+function uq(e, t, n, r) {
for (let [i, { fn: a, memoDeps: o }] of Object.entries(r)) {
- let { fnKey: r, fnName: s } = lq(i);
+ let { fnKey: r, fnName: s } = cq(i);
if (o) {
let i = `_memo_${r}`;
t[r] = function(...t) {
if (!this[i]) {
let t = this;
- this[i] = cq({
+ this[i] = sq({
memoDeps: (e) => o(t, e),
fn: (...e) => a(t, ...e),
fnName: s,
@@ -55054,18 +55055,18 @@ function dq(e, t, n, r) {
};
}
}
-function fq(e, t, n, ...r) {
+function dq(e, t, n, ...r) {
return e[t]?.(...r) ?? n(e, ...r);
}
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/cells/coreCellsFeature.utils.js
-function pq(e) {
+function fq(e) {
return e.row.getValue(e.column.id);
}
-function mq(e) {
+function pq(e) {
return e.getValue() ?? e.table.options.renderFallbackValue;
}
-function hq(e) {
+function mq(e) {
return {
table: e.table,
column: e.column,
@@ -55077,19 +55078,19 @@ function hq(e) {
}
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/cells/coreCellsFeature.js
-var gq = { assignCellPrototype: (e, t) => {
- dq("coreCellsFeature", e, t, {
- cell_getValue: { fn: (e) => pq(e) },
- cell_renderValue: { fn: (e) => mq(e) },
+var hq = { assignCellPrototype: (e, t) => {
+ uq("coreCellsFeature", e, t, {
+ cell_getValue: { fn: (e) => fq(e) },
+ cell_renderValue: { fn: (e) => pq(e) },
cell_getContext: {
- fn: (e) => hq(e),
+ fn: (e) => mq(e),
memoDeps: (e) => [e]
}
});
} };
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/columns/constructColumn.js
-function _q(e) {
+function gq(e) {
if (!e._columnPrototype) {
e._columnPrototype = { table: e };
let t = Object.values(e._features);
@@ -55097,7 +55098,7 @@ function _q(e) {
}
return e._columnPrototype;
}
-function vq(e, t, n, r) {
+function _q(e, t, n, r) {
let i = {
...e.getDefaultColumnDef(),
...t
@@ -55117,7 +55118,7 @@ function vq(e, t, n, r) {
} else c = (e) => e[i.accessorKey];
}
if (!s) throw Error();
- let l = _q(e), u = Object.create(l);
+ let l = gq(e), u = Object.create(l);
u.accessorFn = c, u.columnDef = i, u.columns = [], u.depth = n, u.id = `${String(s)}`, u.parent = r;
let d = e._columnInstanceInitFns;
for (let e = 0; e < d.length; e++) d[e](u);
@@ -55125,47 +55126,47 @@ function vq(e, t, n, r) {
}
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/featureStubs.js
-function yq(e) {
+function vq(e) {
return e.getIsVisible?.() ?? !0;
}
-function bq(e) {
+function yq(e) {
return e.getVisibleLeafColumns?.() ?? e.getAllLeafColumns();
}
-function xq(e, t) {
+function bq(e, t) {
let n = e, r = t;
return n.getOrderColumnsFn?.()(r) ?? n._orderGroupedColumns?.(r) ?? t;
}
-function Sq(e, t, n, r) {
+function xq(e, t, n, r) {
return e._orderByColumnPinning?.(t, n, r) ?? t;
}
-function Cq(e, t) {
+function Sq(e, t) {
return e._expandRows?.(t) ?? t;
}
-function wq(e) {
+function Cq(e) {
e.autoResetExpanded?.();
}
-function Tq(e) {
+function wq(e) {
e.autoResetPageIndex?.();
}
-function Eq(e) {
+function Tq(e) {
e.autoResetSorting?.();
}
-function Dq(e) {
+function Eq(e) {
e.autoResetCellSelection?.();
}
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/columns/coreColumnsFeature.utils.js
-function Oq(e) {
+function Dq(e) {
return [e, ...e.columns.flatMap((e) => e.getFlatColumns())];
}
-function kq(e) {
+function Oq(e) {
if (e.columns.length) {
let t = e.columns.flatMap((e) => e.getLeafColumns());
- return xq(e.table, t);
+ return bq(e.table, t);
}
return [e];
}
-function Aq(e) {
+function kq(e) {
return {
header: (e) => {
let t = e.header.column.columnDef;
@@ -55176,54 +55177,54 @@ function Aq(e) {
...e.options.defaultColumn
};
}
-function jq(e, t, n, r = 0) {
+function Aq(e, t, n, r = 0) {
let i = Array(t.length);
for (let a = 0; a < t.length; a++) {
if (!(a in t)) continue;
- let o = t[a], s = vq(e, o, r, n), c = o;
- s.columns = c.columns ? jq(e, c.columns, s, r + 1) : [], i[a] = s;
+ let o = t[a], s = _q(e, o, r, n), c = o;
+ s.columns = c.columns ? Aq(e, c.columns, s, r + 1) : [], i[a] = s;
}
return i;
}
-function Mq(e) {
- return jq(e, e.options.columns);
+function jq(e) {
+ return Aq(e, e.options.columns);
}
-function Nq(e) {
+function Mq(e) {
return e.getAllColumns().flatMap((e) => e.getFlatColumns());
}
-function Pq(e) {
- let t = YK(), n = e.getAllFlatColumns();
+function Nq(e) {
+ let t = JK(), n = e.getAllFlatColumns();
for (let e = 0; e < n.length; e++) {
let r = n[e];
t[r.id] = r;
}
return t;
}
-function Fq(e) {
- return xq(e, e.getAllColumns().flatMap((e) => e.getLeafColumns()));
+function Pq(e) {
+ return bq(e, e.getAllColumns().flatMap((e) => e.getLeafColumns()));
}
-function Iq(e) {
- let t = YK(), n = e.getAllLeafColumns();
+function Fq(e) {
+ let t = JK(), n = e.getAllLeafColumns();
for (let e = 0; e < n.length; e++) {
let r = n[e];
t[r.id] = r;
}
return t;
}
-function Lq(e, t) {
+function Iq(e, t) {
return e.getAllFlatColumnsById()[t];
}
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/columns/coreColumnsFeature.js
-var Rq = {
+var Lq = {
assignColumnPrototype: (e, t) => {
- dq("coreColumnsFeature", e, t, {
+ uq("coreColumnsFeature", e, t, {
column_getFlatColumns: {
- fn: (e) => Oq(e),
+ fn: (e) => Dq(e),
memoDeps: (e) => [e.table.options.columns]
},
column_getLeafColumns: {
- fn: (e) => kq(e),
+ fn: (e) => Oq(e),
memoDeps: (e) => [
e.table.atoms.columnOrder?.get(),
e.table.atoms.grouping?.get(),
@@ -55234,25 +55235,25 @@ var Rq = {
});
},
constructTableAPIs: (e) => {
- uq("coreColumnsFeature", e, {
+ lq("coreColumnsFeature", e, {
table_getDefaultColumnDef: {
- fn: () => Aq(e),
+ fn: () => kq(e),
memoDeps: () => [e.options.defaultColumn]
},
table_getAllColumns: {
- fn: () => Mq(e),
+ fn: () => jq(e),
memoDeps: () => [e.options.columns]
},
table_getAllFlatColumns: {
- fn: () => Nq(e),
+ fn: () => Mq(e),
memoDeps: () => [e.options.columns]
},
table_getAllFlatColumnsById: {
- fn: () => Pq(e),
+ fn: () => Nq(e),
memoDeps: () => [e.options.columns]
},
table_getAllLeafColumns: {
- fn: () => Fq(e),
+ fn: () => Pq(e),
memoDeps: () => [
e.atoms.columnOrder?.get(),
e.atoms.grouping?.get(),
@@ -55261,16 +55262,16 @@ var Rq = {
]
},
table_getAllLeafColumnsById: {
- fn: () => Iq(e),
+ fn: () => Fq(e),
memoDeps: () => [e.getAllLeafColumns()]
},
- table_getColumn: { fn: (t) => Lq(e, t) }
+ table_getColumn: { fn: (t) => Iq(e, t) }
});
}
};
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/headers/constructHeader.js
-function zq(e) {
+function Rq(e) {
if (!e._headerPrototype) {
e._headerPrototype = { table: e };
let t = Object.values(e._features);
@@ -55278,8 +55279,8 @@ function zq(e) {
}
return e._headerPrototype;
}
-function Bq(e, t, n) {
- let r = zq(e), i = Object.create(r);
+function zq(e, t, n) {
+ let r = Rq(e), i = Object.create(r);
i.colSpan = 0, i.column = t, i.depth = n.depth, i.headerGroup = null, i.id = n.id ?? t.id, i.index = n.index, i.isPlaceholder = !!n.isPlaceholder, i.placeholderId = n.placeholderId, i.rowSpan = 0, i.subHeaders = [];
let a = e._headerInstanceInitFns;
for (let e = 0; e < a.length; e++) a[e](i);
@@ -55287,11 +55288,11 @@ function Bq(e, t, n) {
}
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/headers/buildHeaderGroups.js
-function Vq(e, t = 1) {
+function Bq(e, t = 1) {
let n = t;
for (let r = 0; r < e.length; r++) {
let i = e[r];
- yq(i) && i.columns.length && (n = Math.max(n, Vq(i.columns, t + 1)));
+ vq(i) && i.columns.length && (n = Math.max(n, Bq(i.columns, t + 1)));
}
return n;
}
@@ -55307,7 +55308,7 @@ function Sge(e, t) {
for (let r = 0; r < e.length; r++) e[r].column === t && n++;
return n;
}
-function Hq(e, t, n, r, i, a) {
+function Vq(e, t, n, r, i, a) {
let o = {
depth: t,
id: bge(r, t),
@@ -55318,7 +55319,7 @@ function Hq(e, t, n, r, i, a) {
let a = e[i], c = s[s.length - 1], l = a.column.depth === o.depth, u, d = !1;
if (l && a.column.parent ? u = a.column.parent : (u = a.column, d = !0), c && c.column === u) c.subHeaders.push(a);
else {
- let e = Bq(n, u, {
+ let e = zq(n, u, {
id: xge(r, t, u.id, a.id),
isPlaceholder: d,
placeholderId: d ? String(Sge(s, u)) : void 0,
@@ -55330,18 +55331,18 @@ function Hq(e, t, n, r, i, a) {
o.headers.push(a), a.headerGroup = o;
}
for (let e = 0; e < a.length; e++) a[e](o);
- i.push(o), t > 0 && Hq(s, t - 1, n, r, i, a);
+ i.push(o), t > 0 && Vq(s, t - 1, n, r, i, a);
}
-function Uq(e) {
+function Hq(e) {
for (let t = 0; t < e.length; t++) {
let n = e[t];
- if (!yq(n.column)) continue;
+ if (!vq(n.column)) continue;
let r = 0;
if (n.subHeaders.length) {
- Uq(n.subHeaders);
+ Hq(n.subHeaders);
for (let e = 0; e < n.subHeaders.length; e++) {
let t = n.subHeaders[e];
- yq(t.column) && (r += t.colSpan);
+ vq(t.column) && (r += t.colSpan);
}
} else r = 1;
if (n.colSpan = r, n.isPlaceholder && n.subHeaders.length === 1 && n.subHeaders[0].column === n.column) {
@@ -55352,22 +55353,22 @@ function Uq(e) {
}
}
function Cge(e, t, n, r) {
- let i = Vq(e), a = [], o = n._headerGroupInstanceInitFns, s = Array(t.length);
- for (let e = 0; e < t.length; e++) e in t && (s[e] = Bq(n, t[e], {
+ let i = Bq(e), a = [], o = n._headerGroupInstanceInitFns, s = Array(t.length);
+ for (let e = 0; e < t.length; e++) e in t && (s[e] = zq(n, t[e], {
depth: i,
index: e
}));
- return Hq(s, i - 1, n, r, a, o), a.reverse(), Uq(a[0]?.headers ?? []), a;
+ return Vq(s, i - 1, n, r, a, o), a.reverse(), Hq(a[0]?.headers ?? []), a;
}
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/headers/coreHeadersFeature.utils.js
-function Wq(e, t) {
- for (let n = 0; n < e.subHeaders.length; n++) Wq(e.subHeaders[n], t);
+function Uq(e, t) {
+ for (let n = 0; n < e.subHeaders.length; n++) Uq(e.subHeaders[n], t);
t.push(e);
}
function wge(e) {
let t = [];
- return Wq(e, t), t;
+ return Uq(e, t), t;
}
function Tge(e) {
return {
@@ -55377,7 +55378,7 @@ function Tge(e) {
};
}
function Ege(e) {
- return Cge(e.getAllColumns(), Sq(e, bq(e), (e) => e.id), e);
+ return Cge(e.getAllColumns(), xq(e, yq(e), (e) => e.id), e);
}
function Dge(e) {
return [...e.getHeaderGroups()].reverse();
@@ -55402,7 +55403,7 @@ function kge(e) {
//#region node_modules/@tanstack/table-core/dist/core/headers/coreHeadersFeature.js
var Age = {
assignHeaderPrototype: (e, t) => {
- dq("coreHeadersFeature", e, t, {
+ uq("coreHeadersFeature", e, t, {
header_getLeafHeaders: {
fn: (e) => wge(e),
memoDeps: (e) => [e.column.table.options.columns]
@@ -55414,7 +55415,7 @@ var Age = {
});
},
constructTableAPIs: (e) => {
- uq("coreHeadersFeature", e, {
+ lq("coreHeadersFeature", e, {
table_getHeaderGroups: {
fn: () => Ege(e),
memoDeps: () => [
@@ -55453,7 +55454,7 @@ function jge(e) {
}
var Mge = (e, t, n, r, i, a, o) => {
let s = jge(e), c = Object.create(s);
- c._displayIndexCache = -1, c._uniqueValuesCache = YK(), c._valuesCache = YK(), c.depth = i, c.id = t, c.index = r, c.original = n, c.parentId = o, c.subRows = a ?? [];
+ c._displayIndexCache = -1, c._uniqueValuesCache = JK(), c._valuesCache = JK(), c.depth = i, c.id = t, c.index = r, c.original = n, c.parentId = o, c.subRows = a ?? [];
let l = e._rowInstanceInitFns;
for (let e = 0; e < l.length; e++) l[e](c);
return c;
@@ -55461,22 +55462,22 @@ var Mge = (e, t, n, r, i, a, o) => {
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/row-models/createCoreRowModel.js
function Nge() {
- return (e) => cq({
+ return (e) => sq({
feature: "coreRowModelsFeature",
table: e,
fnName: "table.getCoreRowModel",
memoDeps: () => [e.options.data],
fn: () => Pge(e, e.options.data),
- onAfterUpdate: sq(() => {
- wq(e), Tq(e), Eq(e), Dq(e);
+ onAfterUpdate: oq(() => {
+ Cq(e), wq(e), Tq(e), Eq(e);
})
});
}
-function Gq(e, t, n, r = 0, i) {
+function Wq(e, t, n, r = 0, i) {
let a = [];
for (let o = 0; o < n.length; o++) {
let s = n[o], c = Mge(e, e.getRowId(s, o, i), s, o, r, void 0, i?.id);
- t.flatRows.push(c), t.rowsById[c.id] = c, a.push(c), e.options.getSubRows && (c.originalSubRows = e.options.getSubRows(s, o), c.originalSubRows?.length && (c.subRows = Gq(e, t, c.originalSubRows, r + 1, c)));
+ t.flatRows.push(c), t.rowsById[c.id] = c, a.push(c), e.options.getSubRows && (c.originalSubRows = e.options.getSubRows(s, o), c.originalSubRows?.length && (c.subRows = Wq(e, t, c.originalSubRows, r + 1, c)));
}
return a;
}
@@ -55484,9 +55485,9 @@ function Pge(e, t) {
let n = {
rows: [],
flatRows: [],
- rowsById: YK()
+ rowsById: JK()
};
- return n.rows = Gq(e, n, t), n;
+ return n.rows = Wq(e, n, t), n;
}
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/row-models/coreRowModelsFeature.utils.js
@@ -55529,7 +55530,7 @@ function Kge(e) {
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/row-models/coreRowModelsFeature.js
var qge = { constructTableAPIs: (e) => {
- uq("coreRowModelsFeature", e, {
+ lq("coreRowModelsFeature", e, {
table_getCoreRowModel: { fn: () => Fge(e) },
table_getPreFilteredRowModel: { fn: () => Ige(e) },
table_getFilteredRowModel: { fn: () => Lge(e) },
@@ -55568,17 +55569,17 @@ function Xge(e) {
return t[n] === e ? n : -1;
}
function Zge(e) {
- let t = e.getPrePaginatedRowModel(), n = e.options.paginateExpandedRows === !1 ? Cq(e, t).rows : t.rows;
+ let t = e.getPrePaginatedRowModel(), n = e.options.paginateExpandedRows === !1 ? Sq(e, t).rows : t.rows;
for (let e = 0; e < n.length; e++) n[e]._displayIndexCache = e;
return n;
}
function Qge(e, t) {
- if (XK(e._valuesCache, t)) return e._valuesCache[t];
+ if (YK(e._valuesCache, t)) return e._valuesCache[t];
let n = e.table.getColumn(t);
if (n?.accessorFn) return e._valuesCache[t] = n.accessorFn(e.original, e.index), e._valuesCache[t];
}
function $ge(e, t) {
- if (XK(e._uniqueValuesCache, t)) return e._uniqueValuesCache[t];
+ if (YK(e._uniqueValuesCache, t)) return e._uniqueValuesCache[t];
let n = e.table.getColumn(t);
if (n?.accessorFn) return n.columnDef.getUniqueValues ? (e._uniqueValuesCache[t] = n.columnDef.getUniqueValues(e.original, e.index), e._uniqueValuesCache[t]) : (e._uniqueValuesCache[t] = [e.getValue(t)], e._uniqueValuesCache[t]);
}
@@ -55586,7 +55587,7 @@ function e_e(e, t) {
return e.getValue(t) ?? e.table.options.renderFallbackValue;
}
function t_e(e) {
- return aq(e.subRows, (e) => e.subRows);
+ return iq(e.subRows, (e) => e.subRows);
}
function n_e(e) {
let t = e.getCoreRowModel().flatRows, n = 0;
@@ -55616,7 +55617,7 @@ function a_e(e) {
return r;
}
function o_e(e) {
- let t = YK(), n = e.getAllCells();
+ let t = JK(), n = e.getAllCells();
for (let e = 0; e < n.length; e++) {
let r = n[e];
t[r.column.id] = r;
@@ -55635,7 +55636,7 @@ function c_e(e, t, n) {
//#region node_modules/@tanstack/table-core/dist/core/rows/coreRowsFeature.js
var l_e = {
assignRowPrototype: (e, t) => {
- dq("coreRowsFeature", e, t, {
+ uq("coreRowsFeature", e, t, {
row_getDisplayIndex: { fn: (e) => Xge(e) },
row_getAllCellsByColumnId: {
fn: (e) => o_e(e),
@@ -55657,7 +55658,7 @@ var l_e = {
});
},
constructTableAPIs: (e) => {
- uq("coreRowsFeature", e, {
+ lq("coreRowsFeature", e, {
table_getRowsInDisplayOrder: {
fn: () => Zge(e),
memoDeps: () => [
@@ -55677,7 +55678,7 @@ var l_e = {
};
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/table/coreTablesFeature.utils.js
-function Kq(e, t, n = (e, t) => e === t) {
+function Gq(e, t, n = (e, t) => e === t) {
let r = t === void 0 ? e.options.state : t;
e._reactivity.batch(() => {
if (r) for (let t in r) {
@@ -55688,13 +55689,13 @@ function Kq(e, t, n = (e, t) => e === t) {
}
});
}
-function qq(e, t, n = (e, t) => e === t) {
+function Kq(e, t, n = (e, t) => e === t) {
e._reactivity.batch(() => {
- Kq(e, t, n), e._reactivity.commit?.();
+ Gq(e, t, n), e._reactivity.commit?.();
});
}
function u_e(e) {
- let t = qK(e.initialState);
+ let t = KK(e.initialState);
e._reactivity.batch(() => {
let n = Object.keys(t);
for (let r = 0; r < n.length; r++) {
@@ -55737,28 +55738,28 @@ function d_e(e, t) {
}
});
}
-function Jq(e, t, n) {
- let r = d_e(e, KK(t, e.options));
- e.optionsStore ? e.optionsStore.set(() => r) : e.options = r, n?.syncExternalState !== !1 && qq(e, r.state ?? null);
+function qq(e, t, n) {
+ let r = d_e(e, GK(t, e.options));
+ e.optionsStore ? e.optionsStore.set(() => r) : e.options = r, n?.syncExternalState !== !1 && Kq(e, r.state ?? null);
}
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/coreFeatures.js
var f_e = {
- coreCellsFeature: gq,
- coreColumnsFeature: Rq,
+ coreCellsFeature: hq,
+ coreColumnsFeature: Lq,
coreHeadersFeature: Age,
coreRowModelsFeature: qge,
coreRowsFeature: l_e,
coreTablesFeature: { constructTableAPIs: (e) => {
- uq("coreTablesFeature", e, {
+ lq("coreTablesFeature", e, {
table_reset: { fn: () => u_e(e) },
- table_setOptions: { fn: (t) => Jq(e, t) }
+ table_setOptions: { fn: (t) => qq(e, t) }
});
} }
};
//#endregion
//#region node_modules/@tanstack/table-core/dist/helpers/columnHelper.js
-function Yq() {
+function Jq() {
return {
accessor: (e, t) => typeof e == "function" ? {
...t,
@@ -55774,7 +55775,7 @@ function Yq() {
}
//#endregion
//#region node_modules/@tanstack/table-core/dist/helpers/tableFeatures.js
-function Xq(e) {
+function Yq(e) {
return e;
}
//#endregion
@@ -55782,7 +55783,7 @@ function Xq(e) {
function p_e(e, t = {}) {
return Object.values(e).forEach((e) => {
t = e.getInitialState?.(t) ?? t;
- }), qK(t);
+ }), KK(t);
}
function m_e(e) {
let t = e.features.coreReactivityFeature, { aggregationFns: n, columnMeta: r, coreRowModel: i, expandedRowModel: a, facetedMinMaxValues: o, facetedRowModel: s, facetedUniqueValues: c, filterFns: l, filterMeta: u, filteredRowModel: d, groupedRowModel: f, paginatedRowModel: p, sortFns: m, sortedRowModel: h, tableMeta: g, ..._ } = e.features, v = {
@@ -55835,14 +55836,14 @@ function m_e(e) {
let e = v.options, t = e.atoms?.[n], r = t ? t.get() : v.baseAtoms[n].get();
if (t) return r;
let i = e.state;
- if (i && XK(i, n)) {
+ if (i && YK(i, n)) {
let e = i[n];
return e === void 0 ? v.initialState[n] : e;
}
return r;
}, { debugName: `table/atoms/${n}` });
}
- Kq(v), v.store = HK(t.createReadonlyAtom(() => {
+ Gq(v), v.store = VK(t.createReadonlyAtom(() => {
let e = {};
for (let t = 0; t < x.length; t++) {
let n = x[t];
@@ -55850,7 +55851,7 @@ function m_e(e) {
}
return e;
}, {
- compare: PK,
+ compare: NK,
debugName: "table/store"
}));
for (let e = 0; e < y.length; e++) {
@@ -55862,105 +55863,105 @@ function m_e(e) {
//#endregion
//#region node_modules/@tanstack/table-core/dist/features/column-visibility/columnVisibilityFeature.utils.js
function h_e() {
- return YK();
+ return JK();
}
-function Zq(e, t) {
- $q(e) && tJ(e.table, (n) => {
- let r = Object.assign(YK(), n), i = t ?? !fq(e, "getIsVisible", Qq), a = e.getLeafColumns();
+function Xq(e, t) {
+ Qq(e) && eJ(e.table, (n) => {
+ let r = Object.assign(JK(), n), i = t ?? !dq(e, "getIsVisible", Zq), a = e.getLeafColumns();
for (let e = 0; e < a.length; e++) {
let t = a[e];
- $q(t) && (r[t.id] = i);
+ Qq(t) && (r[t.id] = i);
}
return r;
});
}
-function Qq(e) {
+function Zq(e) {
let t = e.table.atoms.columnVisibility?.get();
if (!t) return !0;
let n = e.columns;
- return n.length ? n.some((e) => fq(e, "getIsVisible", Qq)) : (XK(t, e.id) ? t[e.id] : void 0) ?? !0;
+ return n.length ? n.some((e) => dq(e, "getIsVisible", Zq)) : (YK(t, e.id) ? t[e.id] : void 0) ?? !0;
}
-function $q(e) {
+function Qq(e) {
return (e.columnDef.enableHiding ?? !0) && (e.table.options.enableHiding ?? !0);
}
function g_e(e) {
return (t) => {
- Zq(e, t.target.checked);
+ Xq(e, t.target.checked);
};
}
function __e(e) {
let t = e.getAllCells(), n = [];
for (let e = 0; e < t.length; e++) {
let r = t[e];
- fq(r.column, "getIsVisible", Qq) && n.push(r);
+ dq(r.column, "getIsVisible", Zq) && n.push(r);
}
- return Sq(e.table, n, (e) => e.column.id, () => fq(e, "getVisibleCellsByColumnId", eJ));
+ return xq(e.table, n, (e) => e.column.id, () => dq(e, "getVisibleCellsByColumnId", $q));
}
-function eJ(e) {
- let t = YK(), n = e.getAllCells();
+function $q(e) {
+ let t = JK(), n = e.getAllCells();
for (let e = 0; e < n.length; e++) {
let r = n[e];
- fq(r.column, "getIsVisible", Qq) && (t[r.column.id] = r);
+ dq(r.column, "getIsVisible", Zq) && (t[r.column.id] = r);
}
return t;
}
function v_e(e) {
- return e.getAllFlatColumns().filter((e) => fq(e, "getIsVisible", Qq));
+ return e.getAllFlatColumns().filter((e) => dq(e, "getIsVisible", Zq));
}
function y_e(e) {
- return e.getAllLeafColumns().filter((e) => fq(e, "getIsVisible", Qq));
+ return e.getAllLeafColumns().filter((e) => dq(e, "getIsVisible", Zq));
}
-function tJ(e, t) {
- rq(e, "columnVisibility", t);
+function eJ(e, t) {
+ nq(e, "columnVisibility", t);
}
function b_e(e, t) {
- tJ(e, t ? YK() : Object.assign(YK(), qK(e.initialState.columnVisibility ?? {})));
+ eJ(e, t ? JK() : Object.assign(JK(), KK(e.initialState.columnVisibility ?? {})));
}
-function nJ(e, t) {
- t ??= !rJ(e);
- let n = YK(), r = e.getAllLeafColumns();
+function tJ(e, t) {
+ t ??= !nJ(e);
+ let n = JK(), r = e.getAllLeafColumns();
for (let e = 0; e < r.length; e++) {
let i = r[e];
- n[i.id] = t || !$q(i);
+ n[i.id] = t || !Qq(i);
}
- tJ(e, n);
+ eJ(e, n);
}
-function rJ(e) {
- return !e.getAllLeafColumns().some((e) => !fq(e, "getIsVisible", Qq));
+function nJ(e) {
+ return !e.getAllLeafColumns().some((e) => !dq(e, "getIsVisible", Zq));
}
function x_e(e) {
- return e.getAllLeafColumns().some((e) => fq(e, "getIsVisible", Qq));
+ return e.getAllLeafColumns().some((e) => dq(e, "getIsVisible", Zq));
}
function S_e(e) {
return (t) => {
- nJ(e, t.target.checked);
+ tJ(e, t.target.checked);
};
}
//#endregion
//#region node_modules/@tanstack/table-core/dist/features/column-visibility/columnVisibilityFeature.js
-var iJ = {
+var rJ = {
getInitialState: (e) => ({
columnVisibility: h_e(),
...e
}),
- getDefaultTableOptions: (e) => ({ onColumnVisibilityChange: ZK("columnVisibility", e) }),
+ getDefaultTableOptions: (e) => ({ onColumnVisibilityChange: XK("columnVisibility", e) }),
assignColumnPrototype: (e, t) => {
- dq("columnVisibilityFeature", e, t, {
+ uq("columnVisibilityFeature", e, t, {
column_getIsVisible: {
- fn: (e) => Qq(e),
+ fn: (e) => Zq(e),
memoDeps: (e) => [
t.options.columns,
t.atoms.columnVisibility?.get(),
e.columns
]
},
- column_getCanHide: { fn: (e) => $q(e) },
+ column_getCanHide: { fn: (e) => Qq(e) },
column_getToggleVisibilityHandler: { fn: (e) => g_e(e) },
- column_toggleVisibility: { fn: (e, t) => Zq(e, t) }
+ column_toggleVisibility: { fn: (e, t) => Xq(e, t) }
});
},
assignRowPrototype: (e, t) => {
- dq("columnVisibilityFeature", e, t, {
+ uq("columnVisibilityFeature", e, t, {
row_getVisibleCells: {
fn: (e) => __e(e),
memoDeps: (e) => [
@@ -55970,13 +55971,13 @@ var iJ = {
]
},
row_getVisibleCellsByColumnId: {
- fn: (e) => eJ(e),
+ fn: (e) => $q(e),
memoDeps: (e) => [e.getAllCells(), t.atoms.columnVisibility?.get()]
}
});
},
constructTableAPIs: (e) => {
- uq("columnVisibilityFeature", e, {
+ lq("columnVisibilityFeature", e, {
table_getVisibleFlatColumns: {
fn: () => v_e(e),
memoDeps: () => [
@@ -55997,51 +55998,51 @@ var iJ = {
e.options.groupedColumnMode
]
},
- table_setColumnVisibility: { fn: (t) => tJ(e, t) },
+ table_setColumnVisibility: { fn: (t) => eJ(e, t) },
table_resetColumnVisibility: { fn: (t) => b_e(e, t) },
- table_toggleAllColumnsVisible: { fn: (t) => nJ(e, t) },
- table_getIsAllColumnsVisible: { fn: () => rJ(e) },
+ table_toggleAllColumnsVisible: { fn: (t) => tJ(e, t) },
+ table_getIsAllColumnsVisible: { fn: () => nJ(e) },
table_getIsSomeColumnsVisible: { fn: () => x_e(e) },
table_getToggleAllColumnsVisibilityHandler: { fn: () => S_e(e) }
});
}
-}, aJ = 0, oJ = 10;
-function sJ() {
+}, iJ = 0, aJ = 10;
+function oJ() {
return {
- pageIndex: aJ,
- pageSize: oJ
+ pageIndex: iJ,
+ pageSize: aJ
};
}
function C_e(e) {
if (e.options.autoResetAll ?? e.options.autoResetPageIndex ?? !e.options.manualPagination) {
- if ((e.atoms.pagination?.get()?.pageIndex ?? aJ) === aJ) return;
- uJ(e, !0);
+ if ((e.atoms.pagination?.get()?.pageIndex ?? iJ) === iJ) return;
+ lJ(e, !0);
}
}
-function cJ(e, t) {
- rq(e, "pagination", t);
+function sJ(e, t) {
+ nq(e, "pagination", t);
}
function w_e(e, t) {
- cJ(e, t ? sJ() : qK(e.initialState.pagination ?? sJ()));
+ sJ(e, t ? oJ() : KK(e.initialState.pagination ?? oJ()));
}
-function lJ(e, t) {
- cJ(e, (n) => {
- let r = KK(t, n.pageIndex), i = e.options.pageCount === void 0 || e.options.pageCount === -1 ? 2 ** 53 - 1 : e.options.pageCount - 1;
+function cJ(e, t) {
+ sJ(e, (n) => {
+ let r = GK(t, n.pageIndex), i = e.options.pageCount === void 0 || e.options.pageCount === -1 ? 2 ** 53 - 1 : e.options.pageCount - 1;
return r = Math.max(0, Math.min(r, i)), {
...n,
pageIndex: r
};
});
}
-function uJ(e, t) {
- lJ(e, t ? aJ : e.initialState.pagination?.pageIndex ?? aJ);
+function lJ(e, t) {
+ cJ(e, t ? iJ : e.initialState.pagination?.pageIndex ?? iJ);
}
function T_e(e, t) {
- dJ(e, t ? oJ : e.initialState.pagination?.pageSize ?? oJ);
+ uJ(e, t ? aJ : e.initialState.pagination?.pageSize ?? aJ);
}
-function dJ(e, t) {
- cJ(e, (e) => {
- let n = Math.max(1, KK(t, e.pageSize)), r = e.pageSize === Infinity ? 0 : e.pageSize * e.pageIndex, i = n === Infinity ? 0 : Math.floor(r / n);
+function uJ(e, t) {
+ sJ(e, (e) => {
+ let n = Math.max(1, GK(t, e.pageSize)), r = e.pageSize === Infinity ? 0 : e.pageSize * e.pageIndex, i = n === Infinity ? 0 : Math.floor(r / n);
return {
...e,
pageIndex: i,
@@ -56050,62 +56051,62 @@ function dJ(e, t) {
});
}
function E_e(e) {
- let t = fJ(e), n = [];
+ let t = dJ(e), n = [];
return t && t > 0 && (n = [...Array(t)].fill(null).map((e, t) => t)), n;
}
function D_e(e) {
return (e.atoms.pagination?.get()?.pageIndex ?? 0) > 0;
}
function O_e(e) {
- let t = e.atoms.pagination?.get()?.pageIndex ?? aJ, n = fJ(e);
+ let t = e.atoms.pagination?.get()?.pageIndex ?? iJ, n = dJ(e);
return n === -1 || n !== 0 && t < n - 1;
}
function k_e(e) {
- let t = e.atoms.pagination?.get()?.pageIndex ?? aJ, n = fJ(e);
+ let t = e.atoms.pagination?.get()?.pageIndex ?? iJ, n = dJ(e);
return Number.isFinite(n) && n > 0 && t < n - 1;
}
function A_e(e) {
- return lJ(e, (e) => e - 1);
+ return cJ(e, (e) => e - 1);
}
function j_e(e) {
- return lJ(e, (e) => e + 1);
+ return cJ(e, (e) => e + 1);
}
function M_e(e) {
- return lJ(e, 0);
+ return cJ(e, 0);
}
function N_e(e) {
- let t = fJ(e);
- if (!(!Number.isFinite(t) || t <= 0)) return lJ(e, t - 1);
+ let t = dJ(e);
+ if (!(!Number.isFinite(t) || t <= 0)) return cJ(e, t - 1);
}
-function fJ(e) {
+function dJ(e) {
let t = e.options.pageCount;
if (t != null) return t;
- let n = pJ(e), r = e.atoms.pagination?.get()?.pageSize ?? oJ;
+ let n = fJ(e), r = e.atoms.pagination?.get()?.pageSize ?? aJ;
return r === Infinity && Number.isFinite(n) && n > 0 ? 1 : Math.ceil(n / r);
}
-function pJ(e) {
+function fJ(e) {
return e.options.rowCount ?? e.getPrePaginatedRowModel().rows.length;
}
//#endregion
//#region node_modules/@tanstack/table-core/dist/features/row-pagination/rowPaginationFeature.js
-var mJ = {
+var pJ = {
getInitialState: (e) => ({
...e,
pagination: {
- ...sJ(),
+ ...oJ(),
...e.pagination
}
}),
- getDefaultTableOptions: (e) => ({ onPaginationChange: ZK("pagination", e) }),
+ getDefaultTableOptions: (e) => ({ onPaginationChange: XK("pagination", e) }),
constructTableAPIs: (e) => {
- uq("rowPaginationFeature", e, {
+ lq("rowPaginationFeature", e, {
table_autoResetPageIndex: { fn: () => C_e(e) },
- table_setPagination: { fn: (t) => cJ(e, t) },
+ table_setPagination: { fn: (t) => sJ(e, t) },
table_resetPagination: { fn: (t) => w_e(e, t) },
- table_setPageIndex: { fn: (t) => lJ(e, t) },
- table_resetPageIndex: { fn: (t) => uJ(e, t) },
- table_setPageSize: { fn: (t) => dJ(e, t) },
- table_getPageCount: { fn: () => fJ(e) },
+ table_setPageIndex: { fn: (t) => cJ(e, t) },
+ table_resetPageIndex: { fn: (t) => lJ(e, t) },
+ table_setPageSize: { fn: (t) => uJ(e, t) },
+ table_getPageCount: { fn: () => dJ(e) },
table_resetPageSize: { fn: (t) => T_e(e, t) },
table_getPageOptions: { fn: () => E_e(e) },
table_getCanPreviousPage: { fn: () => D_e(e) },
@@ -56115,43 +56116,43 @@ var mJ = {
table_nextPage: { fn: () => j_e(e) },
table_firstPage: { fn: () => M_e(e) },
table_lastPage: { fn: () => N_e(e) },
- table_getRowCount: { fn: () => pJ(e) }
+ table_getRowCount: { fn: () => fJ(e) }
});
}
};
//#endregion
//#region node_modules/@tanstack/table-core/dist/features/row-selection/rowSelectionFeature.utils.js
function P_e() {
- return YK();
+ return JK();
}
-function hJ(e, t) {
+function mJ(e, t) {
e.options.onRowSelectionChange?.(t);
}
function F_e(e, t) {
- e._lastSelectedRowId = null, hJ(e, t ? YK() : Object.assign(YK(), qK(e.initialState.rowSelection ?? {})));
+ e._lastSelectedRowId = null, mJ(e, t ? JK() : Object.assign(JK(), KK(e.initialState.rowSelection ?? {})));
}
-function gJ(e, t, n) {
- e._lastSelectedRowId = null, hJ(e, (r) => {
- if (t = t === void 0 ? !fq(e, "getIsAllRowsSelected", yJ) : t, n?.deselectAll && !t) return YK();
- let i = Object.assign(YK(), r), a = e.getPreGroupedRowModel().flatRows;
+function hJ(e, t, n) {
+ e._lastSelectedRowId = null, mJ(e, (r) => {
+ if (t = t === void 0 ? !dq(e, "getIsAllRowsSelected", vJ) : t, n?.deselectAll && !t) return JK();
+ let i = Object.assign(JK(), r), a = e.getPreGroupedRowModel().flatRows;
if (t) {
let e = /* @__PURE__ */ new Map();
a.forEach((t) => {
- kJ(t, e) && (i[t.id] = !0);
+ OJ(t, e) && (i[t.id] = !0);
});
} else a.forEach((e) => {
- TJ(e) && delete i[e.id];
+ wJ(e) && delete i[e.id];
});
return i;
});
}
-function _J(e, t, n) {
- e._lastSelectedRowId = null, hJ(e, (r) => {
- let i = t === void 0 ? !fq(e, "getIsAllPageRowsSelected", bJ) : t;
- if (n?.deselectAll && !i) return YK();
- let a = Object.assign(YK(), r);
+function gJ(e, t, n) {
+ e._lastSelectedRowId = null, mJ(e, (r) => {
+ let i = t === void 0 ? !dq(e, "getIsAllPageRowsSelected", yJ) : t;
+ if (n?.deselectAll && !i) return JK();
+ let a = Object.assign(JK(), r);
return e.getRowModel().rows.forEach((t) => {
- OJ(a, t.id, i, !0, e, !0);
+ DJ(a, t.id, i, !0, e, !0);
}), a;
});
}
@@ -56160,122 +56161,122 @@ function I_e(e) {
}
function L_e(e) {
let t = e.getCoreRowModel();
- return fq(e, "getIsSomeRowsSelected", xJ) ? MJ(t, e) : {
+ return dq(e, "getIsSomeRowsSelected", bJ) ? jJ(t, e) : {
rows: [],
flatRows: [],
- rowsById: YK()
+ rowsById: JK()
};
}
function R_e(e) {
let t = e.getFilteredRowModel();
- return fq(e, "getIsSomeRowsSelected", xJ) ? MJ(t, e) : {
+ return dq(e, "getIsSomeRowsSelected", bJ) ? jJ(t, e) : {
rows: [],
flatRows: [],
- rowsById: YK()
+ rowsById: JK()
};
}
function z_e(e) {
let t = e.getSortedRowModel();
- return fq(e, "getIsSomeRowsSelected", xJ) ? MJ(t, e) : {
+ return dq(e, "getIsSomeRowsSelected", bJ) ? jJ(t, e) : {
rows: [],
flatRows: [],
- rowsById: YK()
+ rowsById: JK()
};
}
-function vJ(e) {
+function _J(e) {
return Object.keys(e.atoms.rowSelection?.get() ?? {});
}
-function yJ(e) {
+function vJ(e) {
let t = e.getFilteredRowModel().flatRows, n = e.atoms.rowSelection?.get() ?? {}, r = !!(t.length && Object.keys(n).length);
if (r) {
let e = /* @__PURE__ */ new Map();
- t.some((t) => !NJ(t, n) && kJ(t, e)) && (r = !1);
+ t.some((t) => !MJ(t, n) && OJ(t, e)) && (r = !1);
}
return r;
}
-function bJ(e) {
+function yJ(e) {
let t = e.getPaginatedRowModel().flatRows, n = e.atoms.rowSelection?.get() ?? {}, r = /* @__PURE__ */ new Map(), i = !1;
for (let e = 0; e < t.length; e++) {
let a = t[e];
- if (NJ(a, n)) !i && kJ(a, r) && (i = !0);
- else if (kJ(a, r)) return !1;
+ if (MJ(a, n)) !i && OJ(a, r) && (i = !0);
+ else if (OJ(a, r)) return !1;
}
return i;
}
-function xJ(e) {
- return fq(e, "getSelectedRowIds", vJ).length > 0;
+function bJ(e) {
+ return dq(e, "getSelectedRowIds", _J).length > 0;
}
function B_e(e) {
- return e.getPaginatedRowModel().flatRows.filter((e) => TJ(e)).some((e) => CJ(e) || fq(e, "getIsSomeSelected", wJ));
+ return e.getPaginatedRowModel().flatRows.filter((e) => wJ(e)).some((e) => SJ(e) || dq(e, "getIsSomeSelected", CJ));
}
function V_e(e) {
return (t) => {
- gJ(e, t.target.checked);
+ hJ(e, t.target.checked);
};
}
function H_e(e) {
return (t) => {
- _J(e, t.target.checked);
+ gJ(e, t.target.checked);
};
}
-function SJ(e, t, n) {
- let r = CJ(e);
- hJ(e.table, (i) => {
+function xJ(e, t, n) {
+ let r = SJ(e);
+ mJ(e.table, (i) => {
t = t === void 0 ? !r : t;
- let a = Object.assign(YK(), i);
- return OJ(a, e.id, t, (n?.selectChildren ?? !0) && DJ(e), e.table), !t && n?.deselectParents && AJ(a, e), a;
+ let a = Object.assign(JK(), i);
+ return DJ(a, e.id, t, (n?.selectChildren ?? !0) && EJ(e), e.table), !t && n?.deselectParents && kJ(a, e), a;
});
}
-function CJ(e) {
- return NJ(e, e.table.atoms.rowSelection?.get() ?? {});
+function SJ(e) {
+ return MJ(e, e.table.atoms.rowSelection?.get() ?? {});
}
-function wJ(e) {
- return PJ(e) === "some";
+function CJ(e) {
+ return NJ(e) === "some";
}
function U_e(e) {
- return PJ(e) === "all";
+ return NJ(e) === "all";
}
-function TJ(e) {
+function wJ(e) {
let t = e.table.options;
return typeof t.enableRowSelection == "function" ? t.enableRowSelection(e) : t.enableRowSelection ?? !0;
}
-function EJ(e) {
+function TJ(e) {
let t = e.table.options;
return typeof t.enableSubRowSelection == "function" ? t.enableSubRowSelection(e) : t.enableSubRowSelection ?? !0;
}
-function DJ(e) {
+function EJ(e) {
let t = e.table.options;
return typeof t.enableMultiRowSelection == "function" ? t.enableMultiRowSelection(e) : t.enableMultiRowSelection ?? !0;
}
function W_e(e, t) {
- let n = TJ(e);
+ let n = wJ(e);
return (r) => {
if (!n) return;
let i = r, a = e.table, o = i.target.checked, s = a._lastSelectedRowId;
- (!(a.options.enableRowRangeSelection !== !1 && s !== null && DJ(e) && (a.options.isRowRangeSelectionEvent?.(r) ?? !1)) || !G_e(e, s, o, t)) && SJ(e, o, t), a._lastSelectedRowId = e.id;
+ (!(a.options.enableRowRangeSelection !== !1 && s !== null && EJ(e) && (a.options.isRowRangeSelectionEvent?.(r) ?? !1)) || !G_e(e, s, o, t)) && xJ(e, o, t), a._lastSelectedRowId = e.id;
};
}
function G_e(e, t, n, r) {
let i = r?.selectChildren ?? !0, a = e.table, o = a.getRowsInDisplayOrder(), s = a.getPrePaginatedRowModel().rowsById[t] ?? a.getCoreRowModel().rowsById[t];
if (!s) return !1;
let c = s.getDisplayIndex(), l = e.getDisplayIndex(), u = o[c], d = o[l];
- if (c < 0 || l < 0 || c >= o.length || l >= o.length || u?.id !== s.id || d?.id !== e.id || !DJ(s) || !DJ(e)) return !1;
+ if (c < 0 || l < 0 || c >= o.length || l >= o.length || u?.id !== s.id || d?.id !== e.id || !EJ(s) || !EJ(e)) return !1;
let f = Math.min(c, l), p = Math.max(c, l);
- return hJ(a, (e) => {
- let t = Object.assign(YK(), e);
+ return mJ(a, (e) => {
+ let t = Object.assign(JK(), e);
for (let e = f; e <= p; e++) {
let s = o[e];
- TJ(s) && DJ(s) && (OJ(t, s.id, n, i, a), !n && r?.deselectParents && AJ(t, s));
+ wJ(s) && EJ(s) && (DJ(t, s.id, n, i, a), !n && r?.deselectParents && kJ(t, s));
}
return t;
}), !0;
}
-function OJ(e, t, n, r, i, a) {
+function DJ(e, t, n, r, i, a) {
let o = i.getRow(t, !0);
- n ? (DJ(o) || Object.keys(e).forEach((t) => delete e[t]), TJ(o) && (e[t] = !0)) : (!a || TJ(o)) && delete e[t], r && o.subRows.length && EJ(o) && o.subRows.forEach((t) => OJ(e, t.id, n, r, i, a));
+ n ? (EJ(o) || Object.keys(e).forEach((t) => delete e[t]), wJ(o) && (e[t] = !0)) : (!a || wJ(o)) && delete e[t], r && o.subRows.length && TJ(o) && o.subRows.forEach((t) => DJ(e, t.id, n, r, i, a));
}
-function kJ(e, t) {
- if (!TJ(e)) return !1;
+function OJ(e, t) {
+ if (!wJ(e)) return !1;
let n = e.table;
if (n.options.enableSubRowSelection === !0) return !0;
let r = e.parentId;
@@ -56291,7 +56292,7 @@ function kJ(e, t) {
}
o.push(c);
let r = a[c] ?? n.getRow(c, !0);
- if (!EJ(r)) {
+ if (!TJ(r)) {
s = !1;
break;
}
@@ -56299,43 +56300,43 @@ function kJ(e, t) {
}
return o.forEach((e) => t.set(e, s)), s;
}
-function AJ(e, t) {
+function kJ(e, t) {
let n = t.table.getCoreRowModel().rowsById, r = t.parentId;
for (; r !== void 0;) delete e[r], r = (n[r] ?? t.table.getRow(r, !0)).parentId;
}
-function jJ(e, t, n, r) {
+function AJ(e, t, n, r) {
let i = [];
for (let a = 0; a < e.length; a++) {
- let o = e[a], s = NJ(o, t);
+ let o = e[a], s = MJ(o, t);
if (s && (n.push(o), r[o.id] = o), o.subRows.length) {
- let e = jJ(o.subRows, t, n, r);
+ let e = AJ(o.subRows, t, n, r);
if (s) {
let t = Object.create(Object.getPrototypeOf(o));
- JK(t, o), t.subRows = e, i.push(t);
+ qK(t, o), t.subRows = e, i.push(t);
}
} else s && i.push(o);
}
return i;
}
-function MJ(e, t) {
- let n = [], r = YK(), i = t.atoms.rowSelection?.get() ?? {};
+function jJ(e, t) {
+ let n = [], r = JK(), i = t.atoms.rowSelection?.get() ?? {};
return {
- rows: jJ(e.rows, i, n, r),
+ rows: AJ(e.rows, i, n, r),
flatRows: n,
rowsById: r
};
}
-function NJ(e, t) {
- return !!(XK(t, e.id) && t[e.id]);
+function MJ(e, t) {
+ return !!(YK(t, e.id) && t[e.id]);
}
-function PJ(e) {
+function NJ(e) {
if (!e.subRows.length) return !1;
let t = e.table.atoms.rowSelection?.get() ?? {}, n = !1, r = !0, i = !1;
for (let a = 0; a < e.subRows.length; a++) {
let o = e.subRows[a];
if (n && !r) break;
- if (TJ(o) && (i = !0, NJ(o, t) ? n = !0 : r = !1), o.subRows.length) {
- let e = PJ(o);
+ if (wJ(o) && (i = !0, MJ(o, t) ? n = !0 : r = !1), o.subRows.length) {
+ let e = NJ(o);
e === "all" ? (n = !0, i = !0) : e === "some" ? (n = !0, r = !1, i = !0) : r = !1;
}
}
@@ -56343,7 +56344,7 @@ function PJ(e) {
}
//#endregion
//#region node_modules/@tanstack/table-core/dist/features/row-selection/rowSelectionFeature.js
-var FJ = {
+var PJ = {
initTableInstanceData: (e) => {
e._lastSelectedRowId = null;
},
@@ -56355,7 +56356,7 @@ var FJ = {
...e
}),
getDefaultTableOptions: (e) => ({
- onRowSelectionChange: ZK("rowSelection", e),
+ onRowSelectionChange: XK("rowSelection", e),
enableRowSelection: !0,
enableMultiRowSelection: !0,
enableRowRangeSelection: !0,
@@ -56366,11 +56367,11 @@ var FJ = {
}
}),
assignRowPrototype: (e, t) => {
- dq("rowSelectionFeature", e, t, {
- row_toggleSelected: { fn: (e, t, n) => SJ(e, t, n) },
- row_getIsSelected: { fn: (e) => CJ(e) },
+ uq("rowSelectionFeature", e, t, {
+ row_toggleSelected: { fn: (e, t, n) => xJ(e, t, n) },
+ row_getIsSelected: { fn: (e) => SJ(e) },
row_getIsSomeSelected: {
- fn: (e) => wJ(e),
+ fn: (e) => CJ(e),
memoDeps: (e) => [
e.subRows,
e.table.atoms.rowSelection?.get(),
@@ -56385,18 +56386,18 @@ var FJ = {
e.table.options.enableRowSelection
]
},
- row_getCanSelect: { fn: (e) => TJ(e) },
- row_getCanSelectSubRows: { fn: (e) => EJ(e) },
- row_getCanMultiSelect: { fn: (e) => DJ(e) },
+ row_getCanSelect: { fn: (e) => wJ(e) },
+ row_getCanSelectSubRows: { fn: (e) => TJ(e) },
+ row_getCanMultiSelect: { fn: (e) => EJ(e) },
row_getToggleSelectedHandler: { fn: (e, t) => W_e(e, t) }
});
},
constructTableAPIs: (e) => {
- uq("rowSelectionFeature", e, {
- table_setRowSelection: { fn: (t) => hJ(e, t) },
+ lq("rowSelectionFeature", e, {
+ table_setRowSelection: { fn: (t) => mJ(e, t) },
table_resetRowSelection: { fn: (t) => F_e(e, t) },
- table_toggleAllRowsSelected: { fn: (t, n) => gJ(e, t, n) },
- table_toggleAllPageRowsSelected: { fn: (t, n) => _J(e, t, n) },
+ table_toggleAllRowsSelected: { fn: (t, n) => hJ(e, t, n) },
+ table_toggleAllPageRowsSelected: { fn: (t, n) => gJ(e, t, n) },
table_getPreSelectedRowModel: { fn: () => I_e(e) },
table_getSelectedRowModel: {
fn: () => L_e(e),
@@ -56411,11 +56412,11 @@ var FJ = {
memoDeps: () => [e.atoms.rowSelection?.get(), e.getSortedRowModel()]
},
table_getSelectedRowIds: {
- fn: () => vJ(e),
+ fn: () => _J(e),
memoDeps: () => [e.atoms.rowSelection?.get()]
},
table_getIsAllRowsSelected: {
- fn: () => yJ(e),
+ fn: () => vJ(e),
memoDeps: () => [
e.atoms.rowSelection?.get(),
e.getFilteredRowModel(),
@@ -56424,7 +56425,7 @@ var FJ = {
]
},
table_getIsAllPageRowsSelected: {
- fn: () => bJ(e),
+ fn: () => yJ(e),
memoDeps: () => [
e.atoms.rowSelection?.get(),
e.getPaginatedRowModel(),
@@ -56433,7 +56434,7 @@ var FJ = {
]
},
table_getIsSomeRowsSelected: {
- fn: () => xJ(e),
+ fn: () => bJ(e),
memoDeps: () => [e.atoms.rowSelection?.get()]
},
table_getIsSomePageRowsSelected: {
@@ -56457,7 +56458,7 @@ function q_e(e) {
}, e);
return t;
}
-var IJ = /* @__PURE__ */ q_e({ sort: (e, t) => J_e(e, t) });
+var FJ = /* @__PURE__ */ q_e({ sort: (e, t) => J_e(e, t) });
function J_e(e, t) {
return e === t ? 0 : e > t ? 1 : -1;
}
@@ -56466,16 +56467,16 @@ function J_e(e, t) {
function Y_e() {
return [];
}
-function LJ(e, t) {
- rq(e, "sorting", t);
+function IJ(e, t) {
+ nq(e, "sorting", t);
}
-function RJ(e, t) {
- LJ(e, t ? [] : qK(e.initialState.sorting ?? []));
+function LJ(e, t) {
+ IJ(e, t ? [] : KK(e.initialState.sorting ?? []));
}
function X_e(e) {
- e.atoms.sorting && (e.options.autoResetAll ?? e.options.autoResetSorting ?? !1) && RJ(e);
+ e.atoms.sorting && (e.options.autoResetAll ?? e.options.autoResetSorting ?? !1) && LJ(e);
}
-function zJ(e) {
+function RJ(e) {
let t = e.table._rowModelFns.sortFns, n = e.table.getFilteredRowModel().flatRows.slice(0, 10), r, i = !1;
for (let t = 0; t < n.length; t++) {
let a = n[t].getValue(e.id);
@@ -56492,9 +56493,9 @@ function zJ(e) {
let e = t?.[r];
if (e || r === "alphanumeric" && (e = t?.text), e) return e;
}
- return IJ;
+ return FJ;
}
-function BJ(e) {
+function zJ(e) {
let t = e.table.getFilteredRowModel().flatRows.slice(0, 10);
for (let n = 0; n < t.length; n++) {
let r = t[n].getValue(e.id);
@@ -56502,14 +56503,14 @@ function BJ(e) {
}
return "desc";
}
-function VJ(e) {
+function BJ(e) {
let t = e.table._rowModelFns.sortFns;
- return iq(e.columnDef.sortFn) ? e.columnDef.sortFn : e.columnDef.sortFn === "auto" ? zJ(e) : t?.[e.columnDef.sortFn] ?? IJ;
+ return rq(e.columnDef.sortFn) ? e.columnDef.sortFn : e.columnDef.sortFn === "auto" ? RJ(e) : t?.[e.columnDef.sortFn] ?? FJ;
}
-function HJ(e, t, n) {
- let r = WJ(e, n && KJ(e)), i = t !== void 0;
- LJ(e.table, (a) => {
- let o = a.findIndex((t) => t.id === e.id), s = o === -1 ? void 0 : a[o], c = [], l, u = i ? t : r === "desc", d = !!(a.length && KJ(e) && n);
+function VJ(e, t, n) {
+ let r = UJ(e, n && GJ(e)), i = t !== void 0;
+ IJ(e.table, (a) => {
+ let o = a.findIndex((t) => t.id === e.id), s = o === -1 ? void 0 : a[o], c = [], l, u = i ? t : r === "desc", d = !!(a.length && GJ(e) && n);
return l = d ? s ? "toggle" : "add" : s ? "toggle" : "replace", l === "toggle" && (i || r || (l = "remove")), l === "add" ? (c = [...a, {
id: e.id,
desc: u
@@ -56525,20 +56526,20 @@ function HJ(e, t, n) {
}], c;
});
}
-function UJ(e) {
- return e.columnDef.sortDescFirst ?? e.table.options.sortDescFirst ?? BJ(e) === "desc" ? "desc" : "asc";
+function HJ(e) {
+ return e.columnDef.sortDescFirst ?? e.table.options.sortDescFirst ?? zJ(e) === "desc" ? "desc" : "asc";
}
-function WJ(e, t) {
- let n = UJ(e), r = qJ(e);
+function UJ(e, t) {
+ let n = HJ(e), r = KJ(e);
return r ? r !== n && (e.table.options.enableSortingRemoval ?? !0) && (!t || (e.table.options.enableMultiRemove ?? !0)) ? !1 : r === "desc" ? "asc" : "desc" : n;
}
-function GJ(e) {
+function WJ(e) {
return (e.columnDef.enableSorting ?? !0) && (e.table.options.enableSorting ?? !0) && !!e.accessorFn;
}
-function KJ(e) {
+function GJ(e) {
return e.columnDef.enableMultiSort ?? e.table.options.enableMultiSort ?? !!e.accessorFn;
}
-function qJ(e) {
+function KJ(e) {
let t = e.table.atoms.sorting?.get()?.find((t) => t.id === e.id);
return t ? t.desc ? "desc" : "asc" : !1;
}
@@ -56546,17 +56547,17 @@ function Z_e(e) {
return e.table.atoms.sorting?.get()?.findIndex((t) => t.id === e.id) ?? -1;
}
function Q_e(e) {
- LJ(e.table, (t) => t.length ? t.filter((t) => t.id !== e.id) : []);
+ IJ(e.table, (t) => t.length ? t.filter((t) => t.id !== e.id) : []);
}
function $_e(e) {
- let t = GJ(e);
+ let t = WJ(e);
return (n) => {
- t && HJ(e, void 0, KJ(e) ? e.table.options.isMultiSortEvent?.(n) : !1);
+ t && VJ(e, void 0, GJ(e) ? e.table.options.isMultiSortEvent?.(n) : !1);
};
}
//#endregion
//#region node_modules/@tanstack/table-core/dist/features/row-sorting/rowSortingFeature.js
-var JJ = {
+var qJ = {
getInitialState(e) {
return {
sorting: Y_e(),
@@ -56572,58 +56573,58 @@ var JJ = {
getDefaultTableOptions(e) {
return {
autoResetSorting: !1,
- onSortingChange: ZK("sorting", e),
+ onSortingChange: XK("sorting", e),
isMultiSortEvent: (e) => e.shiftKey
};
},
assignColumnPrototype(e, t) {
- dq("rowSortingFeature", e, t, {
- column_getAutoSortFn: { fn: (e) => zJ(e) },
- column_getAutoSortDir: { fn: (e) => BJ(e) },
- column_getSortFn: { fn: (e) => VJ(e) },
- column_toggleSorting: { fn: (e, t, n) => HJ(e, t, n) },
- column_getFirstSortDir: { fn: (e) => UJ(e) },
- column_getNextSortingOrder: { fn: (e, t) => WJ(e, t) },
- column_getCanSort: { fn: (e) => GJ(e) },
- column_getCanMultiSort: { fn: (e) => KJ(e) },
- column_getIsSorted: { fn: (e) => qJ(e) },
+ uq("rowSortingFeature", e, t, {
+ column_getAutoSortFn: { fn: (e) => RJ(e) },
+ column_getAutoSortDir: { fn: (e) => zJ(e) },
+ column_getSortFn: { fn: (e) => BJ(e) },
+ column_toggleSorting: { fn: (e, t, n) => VJ(e, t, n) },
+ column_getFirstSortDir: { fn: (e) => HJ(e) },
+ column_getNextSortingOrder: { fn: (e, t) => UJ(e, t) },
+ column_getCanSort: { fn: (e) => WJ(e) },
+ column_getCanMultiSort: { fn: (e) => GJ(e) },
+ column_getIsSorted: { fn: (e) => KJ(e) },
column_getSortIndex: { fn: (e) => Z_e(e) },
column_clearSorting: { fn: (e) => Q_e(e) },
column_getToggleSortingHandler: { fn: (e) => $_e(e) }
});
},
constructTableAPIs(e) {
- uq("rowSortingFeature", e, {
+ lq("rowSortingFeature", e, {
table_autoResetSorting: { fn: () => X_e(e) },
- table_setSorting: { fn: (t) => LJ(e, t) },
- table_resetSorting: { fn: (t) => RJ(e, t) }
+ table_setSorting: { fn: (t) => IJ(e, t) },
+ table_resetSorting: { fn: (t) => LJ(e, t) }
});
}
}, eve = typeof window > "u" ? D.useEffect : D.useLayoutEffect;
-function YJ(e, t) {
+function JJ(e, t) {
let [{ table: n, rootSource: r }] = (0, D.useState)(() => {
let t = m_e({
...e,
features: {
- coreReactivityFeature: GK(),
+ coreReactivityFeature: WK(),
...e.features
}
});
- return t.Subscribe = ((e) => VK({
+ return t.Subscribe = ((e) => BK({
...e,
source: e.source ?? t.store
- })), t.FlexRender = hK, {
+ })), t.FlexRender = mK, {
table: t,
- rootSource: WK(t.store, PK)
+ rootSource: UK(t.store, NK)
};
}), i = n;
- Jq(i, (t) => ({
+ qq(i, (t) => ({
...t,
...e
}), { syncExternalState: !1 });
- let a = i.options.state, o = r.get(), s = BK(r, t, { compare: PK });
+ let a = i.options.state, o = r.get(), s = zK(r, t, { compare: NK });
return eve(() => {
- r.markCommitted(o), qq(i, a ?? null, PK);
+ r.markCommitted(o), Kq(i, a ?? null, NK);
}), (0, D.useMemo)(() => ({
...n,
options: e,
@@ -56636,19 +56637,19 @@ function YJ(e, t) {
}
//#endregion
//#region src/react/boardui/components/base/table/table.tsx
-function XJ({ size: e = "md", className: t, containerClassName: n, ref: r, ...i }) {
+function YJ({ size: e = "md", className: t, containerClassName: n, ref: r, ...i }) {
return /* @__PURE__ */ (0, O.jsx)("div", {
- className: tF("w-full overflow-x-auto", n),
+ className: eF("w-full overflow-x-auto", n),
children: /* @__PURE__ */ (0, O.jsx)(sde, {
ref: r,
...i,
- className: tF("bui-table", e === "sm" && "bui-table-sm", t)
+ className: eF("bui-table", e === "sm" && "bui-table-sm", t)
})
});
}
//#endregion
//#region src/react/catalog-grid/catalog-table-columns.ts
-var ZJ = "peach.catalog-column-widths.v1", QJ = "peach.catalog-column-visibility.v1", tve = {
+var XJ = "peach.catalog-column-widths.v1", ZJ = "peach.catalog-column-visibility.v1", tve = {
select: {
width: 48,
min: 48,
@@ -56734,7 +56735,7 @@ var ZJ = "peach.catalog-column-widths.v1", QJ = "peach.catalog-column-visibility
release: "发行时间",
code: "番号",
tags: "标签"
-}, $J = [
+}, QJ = [
"select",
"name",
"tags",
@@ -56756,7 +56757,7 @@ var ZJ = "peach.catalog-column-widths.v1", QJ = "peach.catalog-column-visibility
required: e === "select" || e === "name",
visible: nve[e] !== !1
}));
-function eY(e) {
+function $J(e) {
try {
let t = JSON.parse(localStorage.getItem(e) || "{}");
return t && typeof t == "object" && !Array.isArray(t) ? t : {};
@@ -56765,8 +56766,8 @@ function eY(e) {
}
}
function ive() {
- let e = eY(ZJ), t = eY(QJ);
- return $J.filter((e) => e.id !== "select" && (e.required || (typeof t[e.id] == "boolean" ? t[e.id] === !0 : e.visible))).map((t) => {
+ let e = $J(XJ), t = $J(ZJ);
+ return QJ.filter((e) => e.id !== "select" && (e.required || (typeof t[e.id] == "boolean" ? t[e.id] === !0 : e.visible))).map((t) => {
let n = e[t.id], r = typeof n == "number" && Number.isFinite(n) && !(t.flex && n === t.width);
return {
id: t.id,
@@ -56778,31 +56779,31 @@ function ive() {
}
//#endregion
//#region src/react/library-processing/completion-row.ts
-var tY = "peach.catalog.completion-row";
-function nY() {
+var eY = "peach.catalog.completion-row";
+function tY() {
try {
- return localStorage.getItem(tY) === "1";
+ return localStorage.getItem(eY) === "1";
} catch {
return !1;
}
}
function ave(e) {
try {
- e ? localStorage.setItem(tY, "1") : localStorage.removeItem(tY);
+ e ? localStorage.setItem(eY, "1") : localStorage.removeItem(eY);
} catch {}
}
var ove = "<i data-completion-skeleton class=\"skeleton-sheen\"></i>";
//#endregion
//#region src/catalog-content-skeleton.ts
-function rY(e) {
+function nY(e) {
return e === "name" ? "<span data-list-skeleton-name><i class=\"skeleton-sheen\"></i><b class=\"skeleton-sheen\"></b><span><i class=\"skeleton-sheen\"></i><i class=\"skeleton-sheen\"></i></span></span>" : "<i data-list-skeleton-bar class=\"skeleton-sheen\"></i>";
}
function sve(e) {
- let t = ive(), n = t.some((e) => e.width === null), r = t.reduce((e, t) => e + (t.width ?? t.min), 0), i = t.map((e) => e.width === null ? "<col>" : `<col style="width:${e.width}px">`).join("") + (n ? "" : "<col>"), a = t.map((e) => `<th>${B(e.label)}</th>`).join("") + (n ? "" : "<th></th>"), o = `<tr>${t.map((e) => `<td>${rY(e.id)}</td>`).join("")}${n ? "" : "<td></td>"}</tr>`;
- return `<div class="peach-react catalog-skeleton" data-skeleton="catalog/list" role="status" aria-busy="true" aria-label="${B(e)}"><div data-list-skeleton aria-hidden="true"><div data-list-skeleton-tools><i class="skeleton-sheen"></i></div>` + (nY() ? ove : "") + `<div data-board-data-table><div class="w-full overflow-x-auto"><table class="bui-table bui-table-sm" style="table-layout:fixed;min-width:${r}px"><colgroup>${i}</colgroup><thead><tr>${a}</tr></thead><tbody>${o.repeat(6)}</tbody></table></div></div></div></div>`;
+ let t = ive(), n = t.some((e) => e.width === null), r = t.reduce((e, t) => e + (t.width ?? t.min), 0), i = t.map((e) => e.width === null ? "<col>" : `<col style="width:${e.width}px">`).join("") + (n ? "" : "<col>"), a = t.map((e) => `<th>${B(e.label)}</th>`).join("") + (n ? "" : "<th></th>"), o = `<tr>${t.map((e) => `<td>${nY(e.id)}</td>`).join("")}${n ? "" : "<td></td>"}</tr>`;
+ return `<div class="peach-react catalog-skeleton" data-skeleton="catalog/list" role="status" aria-busy="true" aria-label="${B(e)}"><div data-list-skeleton aria-hidden="true"><div data-list-skeleton-tools><i class="skeleton-sheen"></i></div>` + (tY() ? ove : "") + `<div data-board-data-table><div class="w-full overflow-x-auto"><table class="bui-table bui-table-sm" style="table-layout:fixed;min-width:${r}px"><colgroup>${i}</colgroup><thead><tr>${a}</tr></thead><tbody>${o.repeat(6)}</tbody></table></div></div></div></div>`;
}
-function iY(e, t) {
- return fM() === "list" ? sve(e) : _s(e, {
+function rY(e, t) {
+ return dM() === "list" ? sve(e) : _s(e, {
variant: "cards",
className: "catalog-skeleton postercard-skeleton",
cardRatio: t
@@ -56810,7 +56811,7 @@ function iY(e, t) {
}
//#endregion
//#region src/react/components/data-table-frame.tsx
-function aY({ children: e, follow: t = !1, onRowClick: n, preferences: r }) {
+function iY({ children: e, follow: t = !1, onRowClick: n, preferences: r }) {
let i = (0, D.useRef)(null);
return (0, D.useEffect)(() => {
let e = i.current?.querySelector(".overflow-x-auto") ?? null;
@@ -56824,7 +56825,7 @@ function aY({ children: e, follow: t = !1, onRowClick: n, preferences: r }) {
let t = e.target;
if (!(t instanceof Element)) return;
let r = t.closest("[role=\"row\"][data-key]");
- r && PW(e, r) && n(r.dataset.key);
+ r && NW(e, r) && n(r.dataset.key);
} : void 0,
children: r ? /* @__PURE__ */ (0, O.jsx)(ade, {
className: "relative min-w-0",
@@ -56836,8 +56837,8 @@ function aY({ children: e, follow: t = !1, onRowClick: n, preferences: r }) {
}
//#endregion
//#region src/react/components/select.tsx
-function oY({ prefix: e, renderValue: t, size: n, ...r }) {
- if (e == null) return /* @__PURE__ */ (0, O.jsx)(fU, {
+function aY({ prefix: e, renderValue: t, size: n, ...r }) {
+ if (e == null) return /* @__PURE__ */ (0, O.jsx)(dU, {
...r,
size: n,
renderValue: t
@@ -56847,7 +56848,7 @@ function oY({ prefix: e, renderValue: t, size: n, ...r }) {
className: `shrink-0 text-text-tertiary ${i}`,
children: e
}), typeof t == "function" ? t(n) : t ?? n.defaultChildren] });
- return /* @__PURE__ */ (0, O.jsx)(fU, {
+ return /* @__PURE__ */ (0, O.jsx)(dU, {
...r,
size: n,
renderValue: a
@@ -56855,13 +56856,13 @@ function oY({ prefix: e, renderValue: t, size: n, ...r }) {
}
//#endregion
//#region src/react/components/table-pagination.tsx
-function sY({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {
+function oY({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {
return t <= 1 ? null : /* @__PURE__ */ (0, O.jsxs)("nav", {
"aria-label": r,
"data-pagination-layout": "",
className: "inline-grid min-w-0 max-w-full items-center gap-2",
children: [
- /* @__PURE__ */ (0, O.jsx)(q, {
+ /* @__PURE__ */ (0, O.jsx)(J, {
variant: "secondary",
size: "small",
disabled: e <= 1,
@@ -56874,7 +56875,7 @@ function sY({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {
"aria-hidden": !0,
className: "px-1 text-body-2-regular text-text-tertiary",
children: "…"
- }) : /* @__PURE__ */ (0, O.jsx)(q, {
+ }) : /* @__PURE__ */ (0, O.jsx)(J, {
variant: t === e ? "secondary" : "ghost",
size: "small",
"aria-label": `第 ${t} 页`,
@@ -56883,7 +56884,7 @@ function sY({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {
children: t
}) }, t === "…" ? `dots-${r}` : t))
}),
- /* @__PURE__ */ (0, O.jsx)(q, {
+ /* @__PURE__ */ (0, O.jsx)(J, {
variant: "secondary",
size: "small",
disabled: e >= t,
@@ -56895,11 +56896,11 @@ function sY({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {
}
//#endregion
//#region src/react/components/table-controls.tsx
-function cY({ label: e, options: t, sorting: n, onChange: r }) {
+function sY({ label: e, options: t, sorting: n, onChange: r }) {
let i = n[0];
return /* @__PURE__ */ (0, O.jsxs)("span", {
className: "flex flex-none items-center gap-2",
- children: [/* @__PURE__ */ (0, O.jsxs)(oY, {
+ children: [/* @__PURE__ */ (0, O.jsxs)(aY, {
"aria-label": `${e}排序`,
prefix: "排序",
selectedKey: i?.id ?? "default",
@@ -56909,18 +56910,18 @@ function cY({ label: e, options: t, sorting: n, onChange: r }) {
desc: i?.desc ?? !1
}]);
},
- children: [/* @__PURE__ */ (0, O.jsx)(pU, {
+ children: [/* @__PURE__ */ (0, O.jsx)(fU, {
id: "default",
children: "默认顺序"
- }), t.map((e) => /* @__PURE__ */ (0, O.jsx)(pU, {
+ }), t.map((e) => /* @__PURE__ */ (0, O.jsx)(fU, {
id: e.id,
children: e.label
}, e.id))]
- }), /* @__PURE__ */ (0, O.jsx)(q, {
+ }), /* @__PURE__ */ (0, O.jsx)(J, {
variant: "secondary",
iconOnly: !0,
disabled: !i,
- leadingIcon: EU,
+ leadingIcon: TU,
"data-icon-state": i?.desc ? "b" : "a",
"aria-label": `${e}改为${i?.desc ? "升序" : "降序"}`,
onClick: () => {
@@ -56932,7 +56933,7 @@ function cY({ label: e, options: t, sorting: n, onChange: r }) {
})]
});
}
-function lY({ label: e, total: t, pagination: n, onChange: r, unit: i = "条记录", pageUnit: a = "条" }) {
+function cY({ label: e, total: t, pagination: n, onChange: r, unit: i = "条记录", pageUnit: a = "条" }) {
let o = Math.max(1, Math.ceil(t / n.pageSize)), s = Math.min(n.pageIndex, o - 1), c = t ? s * n.pageSize + 1 : 0, l = Math.min((s + 1) * n.pageSize, t);
return /* @__PURE__ */ (0, O.jsxs)("div", {
"data-table-pagination": !0,
@@ -56942,7 +56943,7 @@ function lY({ label: e, total: t, pagination: n, onChange: r, unit: i = "条记
children: `${c.toLocaleString()}–${l.toLocaleString()} / ${t.toLocaleString()} ${i}`
}), /* @__PURE__ */ (0, O.jsxs)("div", {
"data-toolbar-actions": "",
- children: [/* @__PURE__ */ (0, O.jsx)(oY, {
+ children: [/* @__PURE__ */ (0, O.jsx)(aY, {
"aria-label": "每页显示数量",
size: "sm",
selectedKey: String(n.pageSize),
@@ -56957,11 +56958,11 @@ function lY({ label: e, total: t, pagination: n, onChange: r, unit: i = "条记
20,
50,
100
- ].map((e) => /* @__PURE__ */ (0, O.jsx)(pU, {
+ ].map((e) => /* @__PURE__ */ (0, O.jsx)(fU, {
id: String(e),
children: `每页 ${e} ${a}`
}, e))
- }), /* @__PURE__ */ (0, O.jsx)(sY, {
+ }), /* @__PURE__ */ (0, O.jsx)(oY, {
label: `${e}分页`,
page: s + 1,
pages: o,
@@ -56975,7 +56976,7 @@ function lY({ label: e, total: t, pagination: n, onChange: r, unit: i = "条记
}
//#endregion
//#region src/react/components/table-column-preferences.ts
-function uY(e) {
+function lY(e) {
try {
let t = JSON.parse(localStorage.getItem(e) || "{}");
return t && typeof t == "object" && !Array.isArray(t) ? t : {};
@@ -56983,7 +56984,7 @@ function uY(e) {
return {};
}
}
-function dY(e, t) {
+function uY(e, t) {
try {
localStorage.setItem(e, JSON.stringify(t));
} catch {}
@@ -56993,7 +56994,7 @@ function cve(e, t) {
let r = e[t];
return [t, typeof r == "number" && Number.isFinite(r) ? Math.max(n.min, Math.min(n.max, r)) : n.flex ? "1fr" : n.width];
})), [r, i] = (0, D.useState)(() => {
- let r = uY(e);
+ let r = lY(e);
for (let [e, n] of Object.entries(t)) n.flex && r[e] === n.width && delete r[e];
return n(r);
});
@@ -57010,7 +57011,7 @@ function cve(e, t) {
...r,
...Object.fromEntries(t)
});
- i(a), dY(e, a);
+ i(a), uY(e, a);
},
reset: () => {
i(n({}));
@@ -57024,16 +57025,16 @@ function lve(e, t, n, r = {}) {
let i = (e) => ({
...r,
...Object.fromEntries(t.filter((t) => !n.includes(t) && typeof e[t] == "boolean").map((t) => [t, e[t] === !0]))
- }), [a, o] = (0, D.useState)(() => i(uY(e)));
+ }), [a, o] = (0, D.useState)(() => i(lY(e)));
return {
visibility: a,
change: (t) => {
let n = i(typeof t == "function" ? t(a) : t);
- o(n), dY(e, n);
+ o(n), uY(e, n);
}
};
}
-function fY(e, t, n) {
+function dY(e, t, n) {
let r = (0, D.useMemo)(() => Object.fromEntries(t.map((e) => [e.id, {
width: e.width ?? 180,
min: e.min ?? 96,
@@ -57060,15 +57061,15 @@ function fY(e, t, n) {
//#endregion
//#region src/react/catalog-grid/catalog-column-widths.ts
function uve() {
- return fY("catalog", $J, {
- widths: ZJ,
- visibility: QJ
+ return dY("catalog", QJ, {
+ widths: XJ,
+ visibility: ZJ
});
}
//#endregion
//#region src/react/components/rating-stars.tsx
-var pY = zz("star");
-function mY({ value: e, onRate: t, busyStar: n, busyAttrs: r }) {
+var fY = Rz("star");
+function pY({ value: e, onRate: t, busyStar: n, busyAttrs: r }) {
let i = Math.max(0, Math.min(5, e)), a = Math.round(i);
return /* @__PURE__ */ (0, O.jsx)("span", {
"data-rating-stars": "",
@@ -57091,16 +57092,16 @@ function mY({ value: e, onRate: t, busyStar: n, busyAttrs: r }) {
onClick: () => {
n || t(e);
},
- children: n === e ? /* @__PURE__ */ (0, O.jsx)("span", { dangerouslySetInnerHTML: { __html: ns("正在保存评分") } }) : /* @__PURE__ */ (0, O.jsx)(pY, {})
+ children: n === e ? /* @__PURE__ */ (0, O.jsx)("span", { dangerouslySetInnerHTML: { __html: ns("正在保存评分") } }) : /* @__PURE__ */ (0, O.jsx)(fY, {})
}, e) : /* @__PURE__ */ (0, O.jsx)("span", {
"data-rate": e,
"data-on": String(i >= e),
children: /* @__PURE__ */ (0, O.jsxs)("span", {
"data-rating-icon": "",
- children: [/* @__PURE__ */ (0, O.jsx)(pY, {}), /* @__PURE__ */ (0, O.jsx)("span", {
+ children: [/* @__PURE__ */ (0, O.jsx)(fY, {}), /* @__PURE__ */ (0, O.jsx)("span", {
"data-rating-fill": "",
style: { width: `${Math.max(0, Math.min(1, i - e + 1)) * 100}%` },
- children: /* @__PURE__ */ (0, O.jsx)(pY, {})
+ children: /* @__PURE__ */ (0, O.jsx)(fY, {})
})]
})
}, e))
@@ -57109,8 +57110,8 @@ function mY({ value: e, onRate: t, busyStar: n, busyAttrs: r }) {
//#endregion
//#region src/react/catalog-grid/catalog-table-controls.tsx
function dve({ item: e, actions: t }) {
- let { rating: n } = e, r = jH(), i = (0, D.useRef)(0), a = IM(n), o = n == null ? "未评分" : `评分 ${a} / 5`, s = (t) => {
- NM(e.id, { rating: t }), U.setQueryData(["item", e.id], (e) => e && {
+ let { rating: n } = e, r = AH(), i = (0, D.useRef)(0), a = FM(n), o = n == null ? "未评分" : `评分 ${a} / 5`, s = (t) => {
+ MM(e.id, { rating: t }), U.setQueryData(["item", e.id], (e) => e && {
...e,
rating: t
});
@@ -57122,13 +57123,13 @@ function dve({ item: e, actions: t }) {
role: "group",
"aria-label": o,
title: o,
- children: [/* @__PURE__ */ (0, O.jsx)(mY, {
+ children: [/* @__PURE__ */ (0, O.jsx)(pY, {
value: a,
onRate: c,
busyStar: r.busy ? Number(r.busy) : void 0
- }), r.error ? /* @__PURE__ */ (0, O.jsx)(Iz, {
+ }), r.error ? /* @__PURE__ */ (0, O.jsx)(Fz, {
tone: "error",
- action: /* @__PURE__ */ (0, O.jsx)(q, {
+ action: /* @__PURE__ */ (0, O.jsx)(J, {
variant: "secondary",
size: "small",
"aria-label": "立即重试评分",
@@ -57139,7 +57140,7 @@ function dve({ item: e, actions: t }) {
}) : null]
});
}
-function hY(e) {
+function mY(e) {
if (e == null || e === "") return "—";
let t = String(e);
if (/^\d{4}-\d{2}-\d{2}$/.test(t)) return t;
@@ -57155,14 +57156,14 @@ function hY(e) {
}
//#endregion
//#region src/react/components/table-column-controls.tsx
-function gY({ preferences: e, label: t = "表格" }) {
+function hY({ preferences: e, label: t = "表格" }) {
let n = (0, D.useRef)(null), [r, i] = (0, D.useState)(!1), a = e.columns.filter((e) => !e.required);
return /* @__PURE__ */ (0, O.jsxs)("div", {
role: "group",
"aria-label": `${t}列设置`,
className: "flex flex-none gap-2",
children: [
- /* @__PURE__ */ (0, O.jsx)(q, {
+ /* @__PURE__ */ (0, O.jsx)(J, {
ref: n,
variant: "secondary",
size: "medium",
@@ -57171,18 +57172,18 @@ function gY({ preferences: e, label: t = "表格" }) {
onClick: () => i(!0),
children: "显示列"
}),
- /* @__PURE__ */ (0, O.jsx)(iR, {
+ /* @__PURE__ */ (0, O.jsx)(rR, {
triggerRef: n,
isOpen: r,
onOpenChange: i,
placement: "bottom end",
offset: 4,
- className: `${ZB} overscroll-contain`,
- children: /* @__PURE__ */ (0, O.jsxs)(wH, {
+ className: `${XB} overscroll-contain`,
+ children: /* @__PURE__ */ (0, O.jsxs)(CH, {
"aria-label": `${t}显示列`,
className: "flex w-48 flex-col gap-2 outline-none",
children: [
- a.map((t) => /* @__PURE__ */ (0, O.jsx)(iV, {
+ a.map((t) => /* @__PURE__ */ (0, O.jsx)(rV, {
isSelected: e.visibility[t.id] !== !1,
onChange: (n) => e.change((e) => ({
...e,
@@ -57190,13 +57191,13 @@ function gY({ preferences: e, label: t = "表格" }) {
})),
children: t.label
}, t.id)),
- /* @__PURE__ */ (0, O.jsx)(q, {
+ /* @__PURE__ */ (0, O.jsx)(J, {
variant: "ghost",
size: "small",
onClick: () => e.change(Object.fromEntries(a.map((e) => [e.id, !0]))),
children: "显示全部列"
}),
- /* @__PURE__ */ (0, O.jsx)(q, {
+ /* @__PURE__ */ (0, O.jsx)(J, {
variant: "ghost",
size: "small",
onClick: () => e.change({}),
@@ -57205,7 +57206,7 @@ function gY({ preferences: e, label: t = "表格" }) {
]
})
}),
- /* @__PURE__ */ (0, O.jsx)(q, {
+ /* @__PURE__ */ (0, O.jsx)(J, {
variant: "secondary",
size: "medium",
onClick: e.reset,
@@ -57214,40 +57215,40 @@ function gY({ preferences: e, label: t = "表格" }) {
]
});
}
-function _Y({ preferences: e, id: t }) {
+function gY({ preferences: e, id: t }) {
let n = e.columns.find((e) => e.id === t);
return e.canResize(t) ? /* @__PURE__ */ (0, O.jsx)(gde, { "aria-label": `调整${n.label}列宽` }) : null;
}
//#endregion
//#region src/react/components/table-selection-header.tsx
-function vY(e, t) {
+function _Y(e, t) {
let n = (t ? e.getPaginatedRowModel() : e.getFilteredRowModel()).flatRows.filter((e) => e.getCanSelect()), r = n.filter((e) => e.getIsSelected()).length;
return {
all: n.length > 0 && r === n.length,
some: r > 0 && r < n.length
};
}
-function yY({ table: e, label: t, page: n = !1, disabled: r = !1 }) {
- let { all: i, some: a } = vY(e, n);
- return /* @__PURE__ */ (0, O.jsx)(iV, {
+function vY({ table: e, label: t, page: n = !1, disabled: r = !1 }) {
+ let { all: i, some: a } = _Y(e, n);
+ return /* @__PURE__ */ (0, O.jsx)(rV, {
slot: null,
"aria-label": t,
isDisabled: r,
isSelected: i,
isIndeterminate: a,
onChange: () => {
- let t = !vY(e, n).all;
+ let t = !_Y(e, n).all;
n ? e.toggleAllPageRowsSelected(t) : e.toggleAllRowsSelected(t);
}
});
}
//#endregion
//#region src/react/catalog-grid/catalog-list-page.tsx
-var fve = Xq({
- rowSortingFeature: JJ,
- rowSelectionFeature: FJ,
- rowPaginationFeature: mJ,
- columnVisibilityFeature: iJ
+var fve = Yq({
+ rowSortingFeature: qJ,
+ rowSelectionFeature: PJ,
+ rowPaginationFeature: pJ,
+ columnVisibilityFeature: rJ
}), pve = [
{
id: "name",
@@ -57285,12 +57286,12 @@ var fve = Xq({
id: "played",
label: "观看时间"
}
-], bY = /* @__PURE__ */ new Map();
+], yY = /* @__PURE__ */ new Map();
function mve(e) {
- let t = uve(), n = MW(), r = gM(e.filters || {}, !1), [i] = (0, D.useState)(() => {
+ let t = uve(), n = jW(), r = hM(e.filters || {}, !1), [i] = (0, D.useState)(() => {
let t = new URLSearchParams(r);
return new URLSearchParams(location.search).has("seed") || t.delete("seed"), `${e.mode}:${e.listScope || e.entityKey || ""}:${t}`;
- }), [a, o] = (0, D.useState)(() => bY.get(i) || {
+ }), [a, o] = (0, D.useState)(() => yY.get(i) || {
sorting: [],
pagination: {
pageIndex: 0,
@@ -57298,7 +57299,7 @@ function mve(e) {
}
}), { sorting: s, pagination: c } = a;
(0, D.useEffect)(() => {
- bY.set(i, a);
+ yY.set(i, a);
}, [i, a]);
let l = c.pageIndex * c.pageSize, u = s[0], d = St({
queryKey: [
@@ -57324,7 +57325,7 @@ function mve(e) {
let i = new URLSearchParams(r);
return i.set("offset", String(l)), i.set("limit", String(n.limit)), i.delete("count"), n.sort && i.set("sort", n.sort), n.dir && i.set("dir", n.dir), V(`/api/items?${i}`, t);
}
- }), f = d.data?.items || [], p = Number(d.data?.total || 0), m = e.filters?.state === "trash" ? [] : cK(f, e.layout.javImage), [h] = (0, D.useState)(nY);
+ }), f = d.data?.items || [], p = Number(d.data?.total || 0), m = e.filters?.state === "trash" ? [] : sK(f, e.layout.javImage), [h] = (0, D.useState)(tY);
(0, D.useEffect)(() => {
d.data && !d.isPlaceholderData && ave(m.length > 0);
}, [
@@ -57358,19 +57359,19 @@ function mve(e) {
p,
c.pageIndex
]);
- let g = e.selectMode ? Object.fromEntries([...e.selected].map((e) => [String(e), !0])) : {}, _ = YJ({
+ let g = e.selectMode ? Object.fromEntries([...e.selected].map((e) => [String(e), !0])) : {}, _ = JJ({
features: fve,
columns: (0, D.useMemo)(() => {
- let t = Yq();
+ let t = Jq();
return t.columns([
t.display({
id: "select",
- header: ({ table: e }) => /* @__PURE__ */ (0, O.jsx)(yY, {
+ header: ({ table: e }) => /* @__PURE__ */ (0, O.jsx)(vY, {
table: e,
label: "全选本页作品",
disabled: d.isPlaceholderData
}),
- cell: ({ row: t }) => /* @__PURE__ */ (0, O.jsx)(iV, {
+ cell: ({ row: t }) => /* @__PURE__ */ (0, O.jsx)(rV, {
slot: null,
"aria-label": `选择 ${e.helpers.displayName(t.original, t.original.name || "")}`,
isDisabled: d.isPlaceholderData,
@@ -57460,13 +57461,13 @@ function mve(e) {
id: "played",
header: "观看时间",
enableSorting: !0,
- cell: ({ row: e }) => hY(e.original.last_played)
+ cell: ({ row: e }) => mY(e.original.last_played)
}),
t.accessor((e) => e.first_seen, {
id: "new",
header: "入库时间",
enableSorting: !0,
- cell: ({ row: e }) => hY(e.original.first_seen)
+ cell: ({ row: e }) => mY(e.original.first_seen)
}),
t.accessor((e) => e.release_date, {
id: "release",
@@ -57526,7 +57527,7 @@ function mve(e) {
"aria-label": "作品列表工具栏",
children: /* @__PURE__ */ (0, O.jsxs)("div", {
"data-toolbar-actions": "",
- children: [/* @__PURE__ */ (0, O.jsx)(gY, { preferences: t }), /* @__PURE__ */ (0, O.jsx)(cY, {
+ children: [/* @__PURE__ */ (0, O.jsx)(hY, { preferences: t }), /* @__PURE__ */ (0, O.jsx)(sY, {
label: "作品列表",
options: pve,
sorting: s,
@@ -57538,21 +57539,21 @@ function mve(e) {
"data-completion-skeleton": "",
"aria-hidden": "true",
className: "skeleton-sheen"
- }) : null : /* @__PURE__ */ (0, O.jsx)(lK, {
+ }) : null : /* @__PURE__ */ (0, O.jsx)(cK, {
className: "",
assetIds: m
}),
- d.isError ? /* @__PURE__ */ (0, O.jsx)(dW, {
+ d.isError ? /* @__PURE__ */ (0, O.jsx)(uW, {
message: Ut(d.error),
onRetry: () => void d.refetch()
}) : null,
- /* @__PURE__ */ (0, O.jsx)(aY, {
+ /* @__PURE__ */ (0, O.jsx)(iY, {
follow: !0,
preferences: t,
onRowClick: e.selectMode ? (t) => {
d.isPlaceholderData || e.actions.toggleSelection(Number(t), !1);
} : void 0,
- children: /* @__PURE__ */ (0, O.jsxs)(XJ, {
+ children: /* @__PURE__ */ (0, O.jsxs)(YJ, {
"aria-label": "作品列表",
size: "sm",
sortDescriptor: u ? {
@@ -57563,47 +57564,47 @@ function mve(e) {
id: String(e.column),
desc: e.direction === "descending"
}]),
- children: [/* @__PURE__ */ (0, O.jsxs)(KR, { children: [_.getHeaderGroups()[0].headers.map((e) => /* @__PURE__ */ (0, O.jsx)(qR, {
+ children: [/* @__PURE__ */ (0, O.jsxs)(GR, { children: [_.getHeaderGroups()[0].headers.map((e) => /* @__PURE__ */ (0, O.jsx)(KR, {
id: e.id,
isRowHeader: e.id === "name",
allowsSorting: e.column.getCanSort(),
...t.columnProps(e.id),
children: ({ sortDirection: n }) => /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsxs)("span", {
className: "flex items-center gap-0.5",
- children: [mK(e.column.columnDef.header, e.getContext()), e.column.getCanSort() ? /* @__PURE__ */ (0, O.jsx)("span", {
+ children: [pK(e.column.columnDef.header, e.getContext()), e.column.getCanSort() ? /* @__PURE__ */ (0, O.jsx)("span", {
"data-sort-indicator": !0,
"data-direction": n || void 0,
- children: /* @__PURE__ */ (0, O.jsx)(JB, {})
+ children: /* @__PURE__ */ (0, O.jsx)(qB, {})
}) : null]
- }), /* @__PURE__ */ (0, O.jsx)(_Y, {
+ }), /* @__PURE__ */ (0, O.jsx)(gY, {
preferences: t,
id: e.id
})] })
- }, e.id)), /* @__PURE__ */ (0, O.jsx)(qR, {
+ }, e.id)), /* @__PURE__ */ (0, O.jsx)(KR, {
id: "remaining-space",
"aria-label": "行空白区域",
"data-table-space": "",
width: t.spaceWidth,
minWidth: 0
- })] }), /* @__PURE__ */ (0, O.jsx)(XR, {
+ })] }), /* @__PURE__ */ (0, O.jsx)(YR, {
renderEmptyState: () => d.isError ? "作品列表未取得" : "没有符合的作品",
- children: d.isPending ? Array.from({ length: 6 }, (e, t) => /* @__PURE__ */ (0, O.jsxs)($R, {
+ children: d.isPending ? Array.from({ length: 6 }, (e, t) => /* @__PURE__ */ (0, O.jsxs)(QR, {
id: `skeleton-${t}`,
"data-list-skeleton-row": "",
"aria-hidden": "true",
- children: [_.getHeaderGroups()[0].headers.map((e) => /* @__PURE__ */ (0, O.jsx)(tz, { children: /* @__PURE__ */ (0, O.jsx)("span", { dangerouslySetInnerHTML: { __html: rY(e.id) } }) }, e.id)), /* @__PURE__ */ (0, O.jsx)(tz, { "data-table-space": "" })]
- }, `skeleton-${t}`)) : _.getRowModel().rows.map((e) => /* @__PURE__ */ (0, O.jsxs)($R, {
+ children: [_.getHeaderGroups()[0].headers.map((e) => /* @__PURE__ */ (0, O.jsx)(ez, { children: /* @__PURE__ */ (0, O.jsx)("span", { dangerouslySetInnerHTML: { __html: nY(e.id) } }) }, e.id)), /* @__PURE__ */ (0, O.jsx)(ez, { "data-table-space": "" })]
+ }, `skeleton-${t}`)) : _.getRowModel().rows.map((e) => /* @__PURE__ */ (0, O.jsxs)(QR, {
id: e.id,
"data-catalog-row": "",
"data-id": e.original.id,
"data-library": n.get(e.original.library_id || "")?.color ? e.original.library_id : void 0,
"data-board-selected": e.getIsSelected() || void 0,
- children: [e.getVisibleCells().map((e) => /* @__PURE__ */ (0, O.jsx)(tz, { children: mK(e.column.columnDef.cell, e.getContext()) }, e.id)), /* @__PURE__ */ (0, O.jsx)(tz, { "data-table-space": "" })]
+ children: [e.getVisibleCells().map((e) => /* @__PURE__ */ (0, O.jsx)(ez, { children: pK(e.column.columnDef.cell, e.getContext()) }, e.id)), /* @__PURE__ */ (0, O.jsx)(ez, { "data-table-space": "" })]
}, e.id))
})]
})
}),
- d.data ? /* @__PURE__ */ (0, O.jsx)(lY, {
+ d.data ? /* @__PURE__ */ (0, O.jsx)(cY, {
label: "作品列表",
total: p,
pagination: c,
@@ -57615,7 +57616,7 @@ function mve(e) {
});
}
function hve({ item: e, props: t, disabled: n }) {
- let r = Ga(e, "small", !1, t.layout.javImage), i = Number(e.part_group?.count) > 1 && e.part_group || null, a = Number(e.edition_group?.count) > 1 && e.edition_group || null, o = i?.title || e.name || "", s = t.helpers.displayName(e, o).trim() || "未命名作品", c = t.helpers.titleHtml(e, o).trim() || "未命名作品", { avatar: l, who: u } = WW(e), d = !i && Number(e.play_seconds) > 0 && Number(e.duration) > 0 ? Math.min(Number(e.play_seconds) / Number(e.duration), 1) : 0, f = MW({ names: !0 }), p = e.library_id ? f.get(e.library_id) : void 0, m = [Number(e.liked) > 0 ? "喜欢" : "", Number(e.o_count) > 0 ? "有高潮记录" : ""].filter(Boolean), h = (e) => /* @__PURE__ */ (0, O.jsx)("svg", {
+ let r = Ga(e, "small", !1, t.layout.javImage), i = Number(e.part_group?.count) > 1 && e.part_group || null, a = Number(e.edition_group?.count) > 1 && e.edition_group || null, o = i?.title || e.name || "", s = t.helpers.displayName(e, o).trim() || "未命名作品", c = t.helpers.titleHtml(e, o).trim() || "未命名作品", { avatar: l, who: u } = UW(e), d = !i && Number(e.play_seconds) > 0 && Number(e.duration) > 0 ? Math.min(Number(e.play_seconds) / Number(e.duration), 1) : 0, f = jW({ names: !0 }), p = e.library_id ? f.get(e.library_id) : void 0, m = [Number(e.liked) > 0 ? "喜欢" : "", Number(e.o_count) > 0 ? "有高潮记录" : ""].filter(Boolean), h = (e) => /* @__PURE__ */ (0, O.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, O.jsx)("use", { href: `#i-${e}` })
@@ -57640,7 +57641,7 @@ function hve({ item: e, props: t, disabled: n }) {
children: /* @__PURE__ */ (0, O.jsxs)("span", {
"data-list-picture": "",
children: [
- r.html ? /* @__PURE__ */ (0, O.jsx)(fW, {
+ r.html ? /* @__PURE__ */ (0, O.jsx)(dW, {
artwork: r,
relayout: (e) => tl(e, "small")
}) : /* @__PURE__ */ (0, O.jsx)("span", { children: "无预览" }),
@@ -57695,7 +57696,7 @@ function hve({ item: e, props: t, disabled: n }) {
children: [p?.name ? /* @__PURE__ */ (0, O.jsxs)("span", {
"data-list-library": "",
title: `媒体库:${p.name}`,
- children: [/* @__PURE__ */ (0, O.jsx)(JH, { mark: p.icon }), p.name]
+ children: [/* @__PURE__ */ (0, O.jsx)(qH, { mark: p.icon }), p.name]
}) : null, u]
})]
})
@@ -57704,10 +57705,10 @@ function hve({ item: e, props: t, disabled: n }) {
}
//#endregion
//#region src/react/catalog-grid/catalog-grid-page.tsx
-function xY(e) {
- let t = hM();
+function bY(e) {
+ let t = mM();
if (e.mode === "items") return /* @__PURE__ */ (0, O.jsx)(_ve, { ...e });
- let n = e.mode === "entity" ? `entity:${e.entityKey || ""}:${e.revision}` : `catalog:${gM(e.filters || {}, !!e.excludeVertical)}:${e.batchSize || 60}:${e.revision}`;
+ let n = e.mode === "entity" ? `entity:${e.entityKey || ""}:${e.revision}` : `catalog:${hM(e.filters || {}, !!e.excludeVertical)}:${e.batchSize || 60}:${e.revision}`;
return t === "list" && !e.wall ? /* @__PURE__ */ (0, O.jsx)(mve, { ...e }, n) : /* @__PURE__ */ (0, O.jsx)(vve, { ...e }, n);
}
function gve({ name: e }) {
@@ -57717,7 +57718,7 @@ function gve({ name: e }) {
children: /* @__PURE__ */ (0, O.jsx)("use", { href: `#i-${e}` })
});
}
-function SY({ children: e, selectMode: t }) {
+function xY({ children: e, selectMode: t }) {
let n = (0, D.useRef)(null), [r, i] = (0, D.useState)(!1);
return (0, D.useLayoutEffect)(() => {
let e = n.current;
@@ -57734,7 +57735,7 @@ function SY({ children: e, selectMode: t }) {
});
}
function _ve(e) {
- let { actions: t } = e, n = (0, D.useCallback)((e, n) => t.open(e, n), [t]), r = e.variant === "next" ? "next" : "grid", i = (e.items || []).map((i) => /* @__PURE__ */ (0, O.jsx)(QW, {
+ let { actions: t } = e, n = (0, D.useCallback)((e, n) => t.open(e, n), [t]), r = e.variant === "next" ? "next" : "grid", i = (e.items || []).map((i) => /* @__PURE__ */ (0, O.jsx)(ZW, {
item: i,
variant: r,
layout: e.layout,
@@ -57748,13 +57749,13 @@ function _ve(e) {
return r === "next" ? /* @__PURE__ */ (0, O.jsx)("div", {
"data-media-next-row": "",
children: i
- }) : /* @__PURE__ */ (0, O.jsx)(SY, {
+ }) : /* @__PURE__ */ (0, O.jsx)(xY, {
selectMode: e.selectMode,
children: i
});
}
function vve(e) {
- let { helpers: t, actions: n, layout: r } = e, i = e.mode === "entity", a = !i && e.filters?.state === "trash", o = i ? CM(e) : SM(e), [s] = (0, D.useState)(() => e.wall ? TM(o.queryKey) : void 0), c = s || (i && e.initial ? {
+ let { helpers: t, actions: n, layout: r } = e, i = e.mode === "entity", a = !i && e.filters?.state === "trash", o = i ? SM(e) : xM(e), [s] = (0, D.useState)(() => e.wall ? wM(o.queryKey) : void 0), c = s || (i && e.initial ? {
pages: [{
...e.initial,
items: e.initial.items || [],
@@ -57775,7 +57776,7 @@ function vve(e) {
(0, D.useEffect)(() => {
l.isPending || u.current || (u.current = !0, e.settled?.(e.revision));
}, [l.isPending]);
- let { tiles: d, pageStarts: f } = (0, D.useMemo)(() => kM(l.data?.pages || [], {
+ let { tiles: d, pageStarts: f } = (0, D.useMemo)(() => OM(l.data?.pages || [], {
collapse: e.groupCollapse !== !1,
mix: !!e.mix && !a,
javImage: r.javImage
@@ -57785,7 +57786,7 @@ function vve(e) {
e.mix,
a,
r.javImage
- ]), p = d.reduce((e, t) => e + +(t.kind === "card"), 0), m = Number(l.data?.pages[0]?.total || 0), h = i || RG(e.filters), g = !a && !e.selectMode && !!n.wallPlayer && !!n.wallDetails, _ = d.flatMap((e) => e.kind === "card" && kG(e.item) ? [e.item] : []), v = a ? [] : cK(d.flatMap((e) => e.kind === "card" ? [e.item] : []), r.javImage), y = uW(l.isPending, e.skeletonHtml), b = (0, D.useRef)(null), x = yve(e, l.data, d, f, b);
+ ]), p = d.reduce((e, t) => e + +(t.kind === "card"), 0), m = Number(l.data?.pages[0]?.total || 0), h = i || LG(e.filters), g = !a && !e.selectMode && !!n.wallPlayer && !!n.wallDetails, _ = d.flatMap((e) => e.kind === "card" && OG(e.item) ? [e.item] : []), v = a ? [] : sK(d.flatMap((e) => e.kind === "card" ? [e.item] : []), r.javImage), y = lW(l.isPending, e.skeletonHtml), b = (0, D.useRef)(null), x = yve(e, l.data, d, f, b);
(0, D.useLayoutEffect)(() => {
if (!l.data) return;
let t = !0;
@@ -57817,7 +57818,7 @@ function vve(e) {
layout: r,
helpers: t,
actions: n
- }, `mix:${i.seed.id}`) : /* @__PURE__ */ (0, O.jsx)(QW, {
+ }, `mix:${i.seed.id}`) : /* @__PURE__ */ (0, O.jsx)(ZW, {
item: i.item,
grouped: e.groupCollapse !== !1,
variant: a && i.item.medium && i.item.medium !== "video" ? "resource" : "grid",
@@ -57835,10 +57836,10 @@ function vve(e) {
"data-grid-reveal": y.fading ? "" : void 0,
children: [
!e.wall && y.layer,
- /* @__PURE__ */ (0, O.jsx)(lK, { assetIds: v }),
+ /* @__PURE__ */ (0, O.jsx)(cK, { assetIds: v }),
(() => {
- if (g && e.wall) return /* @__PURE__ */ (0, O.jsx)(eK, {
- sessionKey: i ? `entity:${e.entityKey || ""}` : `catalog:${gM(e.filters || {}, !!e.excludeVertical)}`,
+ if (g && e.wall) return /* @__PURE__ */ (0, O.jsx)($G, {
+ sessionKey: i ? `entity:${e.entityKey || ""}` : `catalog:${hM(e.filters || {}, !!e.excludeVertical)}`,
items: _,
finite: h,
hasMore: !!l.hasNextPage,
@@ -57846,7 +57847,7 @@ function vve(e) {
loading: l.isPending || !l.data && l.isFetching,
error: !l.data && !l.isPending ? Ut(l.error) : "",
retry: () => void l.refetch(),
- emptyHtml: l.data && !_.length ? aK({
+ emptyHtml: l.data && !_.length ? iK({
libraryEmpty: !!l.data.pages[0]?.libraryEmpty,
matches: m,
hasMore: !!l.hasNextPage,
@@ -57861,7 +57862,7 @@ function vve(e) {
javImage: r.javImage
}, h ? "finite" : "explore");
if (l.isPending) return null;
- if (!l.data) return /* @__PURE__ */ (0, O.jsx)(dW, {
+ if (!l.data) return /* @__PURE__ */ (0, O.jsx)(uW, {
message: Ut(l.error),
onRetry: () => void l.refetch()
});
@@ -57878,12 +57879,12 @@ function vve(e) {
return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)("div", {
"data-media-sections": "",
"data-select-mode": e.selectMode ? "" : void 0,
- children: MM(d, x).map((t) => /* @__PURE__ */ (0, O.jsxs)(D.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(SY, { children: t.tiles.map(k) }), t.strip ? /* @__PURE__ */ (0, O.jsx)(bve, {
+ children: jM(d, x).map((t) => /* @__PURE__ */ (0, O.jsxs)(D.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(xY, { children: t.tiles.map(k) }), t.strip ? /* @__PURE__ */ (0, O.jsx)(bve, {
cut: t.strip,
props: e,
onOpen: T
}) : null] }, t.start))
- }), l.hasNextPage ? /* @__PURE__ */ (0, O.jsx)(CY, {
+ }), l.hasNextPage ? /* @__PURE__ */ (0, O.jsx)(SY, {
entity: i,
load: E,
enabled: () => e.canLoadMore?.() !== !1
@@ -57892,7 +57893,7 @@ function vve(e) {
]
});
}
-function CY({ entity: e, load: t, enabled: n, children: r }) {
+function SY({ entity: e, load: t, enabled: n, children: r }) {
let i = (0, D.useRef)(null), a = (0, D.useRef)(null), o = (0, D.useRef)(!1), s = (0, D.useRef)(!1), [c, l] = (0, D.useState)({
busy: !1,
error: ""
@@ -57934,7 +57935,7 @@ function CY({ entity: e, load: t, enabled: n, children: r }) {
if (!e) return;
let t = new IntersectionObserver((e) => {
e.some((e) => e.isIntersecting) && d(!1);
- }, { rootMargin: lW });
+ }, { rootMargin: cW });
return a.current = t, t.observe(e), () => {
t.disconnect(), a.current = null;
};
@@ -57957,7 +57958,7 @@ function CY({ entity: e, load: t, enabled: n, children: r }) {
hidden: !!c.error,
onClick: () => void d(!0),
dangerouslySetInnerHTML: { __html: is(rs) }
- }), c.error ? /* @__PURE__ */ (0, O.jsx)(dW, {
+ }), c.error ? /* @__PURE__ */ (0, O.jsx)(uW, {
message: c.error,
onRetry: () => void d(!0)
}) : null] });
@@ -57974,7 +57975,7 @@ function yve(e, t, n, r, i) {
let r = new AbortController();
f.current.push(r);
let i = n - 1;
- V(`/api/items?${jM(e.filters || {}, l.current)}`, r.signal).then((e) => {
+ V(`/api/items?${AM(e.filters || {}, l.current)}`, r.signal).then((e) => {
let t = e.items || [];
t.length ? c({
page: i,
@@ -57986,9 +57987,9 @@ function yve(e, t, n, r, i) {
}, [t]), (0, D.useLayoutEffect)(() => {
if (!s) return;
c(null);
- let t = a.reduce((e, t) => Math.max(e, t.at), 0), u = i.current?.querySelectorAll("[data-media-sections] > [data-media-grid]"), f = u?.[u.length - 1], p = f ? Math.max(1, getComputedStyle(f).gridTemplateColumns.split(" ").length) : 1, m = Math.max(0, (r[s.page] ?? 0) - t), h = AM(n.length - t, m, p);
+ let t = a.reduce((e, t) => Math.max(e, t.at), 0), u = i.current?.querySelectorAll("[data-media-sections] > [data-media-grid]"), f = u?.[u.length - 1], p = f ? Math.max(1, getComputedStyle(f).gridTemplateColumns.split(" ").length) : 1, m = Math.max(0, (r[s.page] ?? 0) - t), h = kM(n.length - t, m, p);
if (!h.length) return;
- let g = EM(s.items, d.current, e.groupCollapse !== !1);
+ let g = TM(s.items, d.current, e.groupCollapse !== !1);
if (l.current = s.more ? l.current + 18 : 0, !g.length) return;
let _ = t + (h[Math.floor(Math.random() * h.length)] ?? 0);
o((e) => [...e, {
@@ -58019,7 +58020,7 @@ function bve({ cut: e, props: t, onOpen: n }) {
] }), /* @__PURE__ */ (0, O.jsx)("div", {
ref: r,
"data-shorts-row": "",
- children: e.items.map((e) => /* @__PURE__ */ (0, O.jsx)(QW, {
+ children: e.items.map((e) => /* @__PURE__ */ (0, O.jsx)(ZW, {
item: e,
variant: "short",
layout: t.layout,
@@ -58034,17 +58035,17 @@ function bve({ cut: e, props: t, onOpen: n }) {
})]
});
}
-function wY(e, t, n) {
+function CY(e, t, n) {
return Ka(e, t.active && e.is_jav ? t.size : "small", n, t.javImage);
}
function xve({ seed: e, layout: t, helpers: n, actions: r }) {
let i = (0, D.useRef)(/* @__PURE__ */ new Map()), a = (0, D.useRef)(t);
a.current = t;
let o = Qa(e, n.tagLabel), s = (0, D.useCallback)(async () => {
- let t = a.current, n = [e, ...await r.mixRelated(e.id)].filter((e) => DM(e, t.javImage)).slice(0, 9);
- return i.current = new Map(n.map((e) => [String(e.id), wY(e, t, !0).html])), n.map((e) => String(e.id));
- }, [e, r]), c = t.active && e.is_jav ? t.size : "small", l = wY(e, t, !1);
- return /* @__PURE__ */ (0, O.jsx)(cG, {
+ let t = a.current, n = [e, ...await r.mixRelated(e.id)].filter((e) => EM(e, t.javImage)).slice(0, 9);
+ return i.current = new Map(n.map((e) => [String(e.id), CY(e, t, !0).html])), n.map((e) => String(e.id));
+ }, [e, r]), c = t.active && e.is_jav ? t.size : "small", l = CY(e, t, !1);
+ return /* @__PURE__ */ (0, O.jsx)(sG, {
"data-mix-seed": String(e.id),
name: `Mix · ${o}`,
caption: `${n.displayName(e, e.name || "")}及相似作品`,
@@ -58054,12 +58055,12 @@ function xve({ seed: e, layout: t, helpers: n, actions: r }) {
wholeCard: !0,
poster: null,
artwork: l,
- artworkIdentity: c === "small" ? l.html : wY(e, {
+ artworkIdentity: c === "small" ? l.html : CY(e, {
...t,
size: "small"
}, !1).html,
relayoutArt: (e) => tl(e, c),
- ratio: UW(e, "grid", t),
+ ratio: HW(e, "grid", t),
flipImages: s,
faceHtml: (e) => i.current.get(e) || "",
canFlip: r.canFlip,
@@ -58071,13 +58072,13 @@ function xve({ seed: e, layout: t, helpers: n, actions: r }) {
}
//#endregion
//#region src/react/media-sources.ts
-async function TY(e) {
+async function wY(e) {
await U.fetchQuery({
queryKey: Bn,
queryFn: () => Vn(e)
});
}
-var Sve = (e) => (e?.sources ?? []).filter((e) => Bt.includes(e.location) && (e.roots === void 0 || e.roots.length > 0)).map((e) => e.location), Cve = "/api/duplicates?limit=120", EY = ["duplicates"], DY = "/api/batch", OY = (e) => V(Cve, e), wve = /[\s\-_.()[\]【】/\\]/;
+var Sve = (e) => (e?.sources ?? []).filter((e) => Bt.includes(e.location) && (e.roots === void 0 || e.roots.length > 0)).map((e) => e.location), Cve = "/api/duplicates?limit=120", TY = ["duplicates"], EY = "/api/batch", DY = (e) => V(Cve, e), wve = /[\s\-_.()[\]【】/\\]/;
function Tve(e) {
if (e.length < 2) return "";
let t = 0, n = e[0];
@@ -58090,9 +58091,9 @@ function Tve(e) {
var Eve = (e, t) => t && e.startsWith(t) && e.length > t.length ? `…${e.slice(t.length)}` : e;
async function Dve(e) {
await Promise.all([U.fetchQuery({
- queryKey: EY,
- queryFn: () => OY(e)
- }), TY(e)]);
+ queryKey: TY,
+ queryFn: () => DY(e)
+ }), wY(e)]);
}
var Ove = {
largest: "最大的一个",
@@ -58100,7 +58101,7 @@ var Ove = {
115: "115(没有则留最大)",
pikpak: "PikPak(没有则留最大)",
all: "零个文件"
-}, kve = (e, t) => t.filter((t) => e.some((e) => e.location === t)), kY = (e, t) => kve(e, t).filter((t) => e.some((e) => e.location !== t)), Ave = (e, t) => t.filter((t) => e.some((e) => kY(e.files, [t]).length));
+}, kve = (e, t) => t.filter((t) => e.some((e) => e.location === t)), OY = (e, t) => kve(e, t).filter((t) => e.some((e) => e.location !== t)), Ave = (e, t) => t.filter((t) => e.some((e) => OY(e.files, [t]).length));
function jve(e, t) {
let n = [];
for (let r of e) {
@@ -58125,7 +58126,7 @@ function Mve(e, t) {
return e.reduce((e, t) => e + t.files.reduce((e, t) => e + (n.has(t.id) && t.size || 0), 0), 0);
}
async function Nve(e, t) {
- for (let n = 0; n < e.length; n += 200) await H(DY, {
+ for (let n = 0; n < e.length; n += 200) await H(EY, {
ids: e.slice(n, n + 200),
operation: t,
...t === "dispose" ? { disposal_reason: "duplicate" } : {}
@@ -58133,7 +58134,7 @@ async function Nve(e, t) {
}
//#endregion
//#region src/react/media-repair/media-repair.ts
-var AY = "/api/media-repair", jY = ["media-repair"], MY = ["media-repair", "libraries"], Pve = {
+var kY = "/api/media-repair", AY = ["media-repair"], jY = ["media-repair", "libraries"], Pve = {
status: "idle",
library: "",
stage: "",
@@ -58145,41 +58146,41 @@ var AY = "/api/media-repair", jY = ["media-repair"], MY = ["media-repair", "libr
missing_tool: 0,
skipped: 0,
message: ""
-}, NY = (e) => V(AY, e), PY = async (e) => (await V("/api/libraries", e)).libraries || [];
+}, MY = (e) => V(kY, e), NY = async (e) => (await V("/api/libraries", e)).libraries || [];
async function Fve(e) {
await Promise.all([U.fetchQuery({
+ queryKey: AY,
+ queryFn: () => MY(e)
+ }), U.fetchQuery({
queryKey: jY,
queryFn: () => NY(e)
- }), U.fetchQuery({
- queryKey: MY,
- queryFn: () => PY(e)
})]);
}
-var FY = (e) => Number(e).toLocaleString();
+var PY = (e) => Number(e).toLocaleString();
function Ive(e) {
if (e.status === "running") {
- let t = e.total ? `${FY(Math.min(e.checked || 0, e.total))} / ${FY(e.total)}` : "准备中";
+ let t = e.total ? `${PY(Math.min(e.checked || 0, e.total))} / ${PY(e.total)}` : "准备中";
return e.stage === "修复" && e.message ? `修复 ${t} · ${e.message}` : `${e.stage || "扫描"} ${t}`;
}
- return e.status === "complete" && (e.repaired || e.failed) ? e.failed ? `修好 ${FY(e.repaired)} 部,${FY(e.failed)} 部修不了` : `修好 ${FY(e.repaired)} 部` : "";
+ return e.status === "complete" && (e.repaired || e.failed) ? e.failed ? `修好 ${PY(e.repaired)} 部,${PY(e.failed)} 部修不了` : `修好 ${PY(e.repaired)} 部` : "";
}
-var Lve = (e) => `${FY(e.missing_tool)} 部缺索引的片子要装上 untrunc 才修得了,下载入口在配置页的「运行信息」里。`, Rve = "/api/quality-goals?limit=200", IY = ["quality-goals"], LY = (e) => V(Rve, e);
+var Lve = (e) => `${PY(e.missing_tool)} 部缺索引的片子要装上 untrunc 才修得了,下载入口在配置页的「运行信息」里。`, Rve = "/api/quality-goals?limit=200", FY = ["quality-goals"], IY = (e) => V(Rve, e);
async function zve(e) {
await U.fetchQuery({
- queryKey: IY,
- queryFn: () => LY(e)
+ queryKey: FY,
+ queryFn: () => IY(e)
});
}
var Bve = (e) => e.has_cover ? Aa(e) : `/poster?id=${e.id}&c=4`;
//#endregion
//#region src/selection.ts
-function RY(e, t, n, r, i, a = i || !e.has(r)) {
+function LY(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 Vve = "/api/review", Hve = "/api/review/decision", Uve = "/api/review/genre", zY = ["review"], BY = {
+var Vve = "/api/review", Hve = "/api/review/decision", Uve = "/api/review/genre", RY = ["review"], zY = {
metadata_fields: "元数据字段",
creator_tags: "创作者标签",
studio_logos: "厂牌 Logo",
@@ -58189,7 +58190,7 @@ var Vve = "/api/review", Hve = "/api/review/decision", Uve = "/api/review/genre"
fc2_markings: "FC2 评论标记",
fc2_similarity: "FC2 跨号相似",
video_endcards: "片尾/出处证据"
-}, Wve = Object.keys(BY), Gve = "metadata_fields", VY = (e) => typeof e == "string" && Object.hasOwn(BY, e), Kve = {
+}, Wve = Object.keys(zY), Gve = "metadata_fields", BY = (e) => typeof e == "string" && Object.hasOwn(zY, e), Kve = {
creator_tags: "creator",
western_identity: "creator"
};
@@ -58197,7 +58198,7 @@ function qve(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 HY(e, t) {
+function VY(e, t) {
let n = /* @__PURE__ */ new Map();
for (let r of e) {
let e, i;
@@ -58215,7 +58216,7 @@ function HY(e, t) {
return [...n.values()];
}
function Jve(e, t, n) {
- return n && HY(e, t).find((e) => e.key === n)?.rows || e;
+ return n && VY(e, t).find((e) => e.key === n)?.rows || e;
}
function Yve(e, t) {
let n = Ln(e.length, 20), r = Rn(t, n);
@@ -58229,17 +58230,17 @@ function Xve(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 Zve(e, t, n, r, i, a) {
- return RY(e, t, n, r, i, a);
+ return LY(e, t, n, r, i, a);
}
function Qve(e, t) {
return e === "metadata_fields" ? (t.candidates?.length || 0) > 0 : e !== "creator_tags" || String(t.status || "").trim() === "candidate";
}
-function UY(e, t) {
+function HY(e, t) {
return String(e === "metadata_fields" ? t.query || t.code || "" : t.creator || t.studio || t.current_name || t.name || t.item_key);
}
-var WY = (e, t) => e === "metadata_fields" ? String(t.field_label || t.field || "").trim() : "";
+var UY = (e, t) => e === "metadata_fields" ? String(t.field_label || t.field || "").trim() : "";
function $ve(e, t) {
- let n = UY(e, t), r = WY(e, t);
+ let n = HY(e, t), r = UY(e, t);
return r ? `${n} · ${r}` : n;
}
var eye = (e) => e.reason || e.evidence || e.note || e.decision_note || "", tye = (e) => String(e.tags || "").split("|").filter(Boolean), nye = (e) => [...new Set((e.candidates || []).flatMap((e) => e.unmapped_genres || []))];
@@ -58266,12 +58267,12 @@ function iye(e, t, n, r) {
...i ? { expected_revision: t.asset_mutation_revision } : {}
};
}
-var aye = (e) => e === "approved" ? "已通过资料" : e === "rejected" ? "已拒绝资料" : "已跳过资料", GY = (e) => V(Vve, e);
+var aye = (e) => e === "approved" ? "已通过资料" : e === "rejected" ? "已拒绝资料" : "已跳过资料", WY = (e) => V(Vve, e);
async function oye(e) {
let t = await H(Hve, e);
if (t.ok && t.asset_revisions) {
let e = t.asset_revisions;
- U.setQueryData(zY, (t) => t && {
+ U.setQueryData(RY, (t) => t && {
...t,
sections: {
...t.sections,
@@ -58288,7 +58289,7 @@ async function oye(e) {
return t;
}
function sye(e, t) {
- return U.getQueryData(zY)?.sections[e]?.find((e) => e.item_key === t.item_key) || t;
+ return U.getQueryData(RY)?.sections[e]?.find((e) => e.item_key === t.item_key) || t;
}
var cye = (e, t) => H(Uve, {
genre: e,
@@ -58296,13 +58297,13 @@ var cye = (e, t) => H(Uve, {
});
async function lye(e) {
await U.fetchQuery({
- queryKey: zY,
- queryFn: () => GY(e)
+ queryKey: RY,
+ queryFn: () => WY(e)
});
}
function uye(e, t) {
let n = new Set(t);
- n.size && U.setQueryData(zY, (t) => {
+ n.size && U.setQueryData(RY, (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 : {
@@ -58319,7 +58320,7 @@ function uye(e, t) {
});
}
var dye = () => U.invalidateQueries({
- queryKey: zY,
+ queryKey: RY,
exact: !0
});
function fye(e, t) {
@@ -58327,63 +58328,63 @@ function fye(e, t) {
}
//#endregion
//#region src/react/data-cleanup/links.ts
-var pye = "/api/links", KY = "/api/links/check", qY = "/api/links/prune", JY = ["links"], YY = ["links", "check"], XY = ["links", "prune"], mye = {
+var pye = "/api/links", GY = "/api/links/check", KY = "/api/links/prune", qY = ["links"], JY = ["links", "check"], YY = ["links", "prune"], mye = {
official: "官网/事务所",
social: "社交账号",
catalog: "作品资料站",
source_reference: "资料出处"
};
-async function ZY(e) {
+async function XY(e) {
let t = await e;
if (t.ok === !1) throw Error(t.error || "操作未完成,请重试");
return t;
}
-var QY = (e) => V(pye, e), $Y = (e) => H(KY, { status_only: !0 }, "POST", e), hye = ({ retry: e, checkId: t }) => ZY(H(KY, e ? {
+var ZY = (e) => V(pye, e), QY = (e) => H(GY, { status_only: !0 }, "POST", e), hye = ({ retry: e, checkId: t }) => XY(H(GY, e ? {
retry: e,
check_id: t
-} : { restart: !0 })), eX = (e) => V(qY, e), gye = ({ checkId: e, ids: t }) => ZY(H(qY, {
+} : { restart: !0 })), $Y = (e) => V(KY, e), gye = ({ checkId: e, ids: t }) => XY(H(KY, {
confirm: !0,
check_id: e,
background: !0,
...t ? { ids: t } : {}
-})), tX = (e) => Number(e || 0).toLocaleString(), _ye = (e) => `已删除 ${tX(e.removed)} 条;${e.marked ? `已隐退女优的 ${tX(e.marked)} 条留作不可点的记录;` : ""}保留 ${tX(e.recovered)} 条未确认失效的链接。`;
+})), eX = (e) => Number(e || 0).toLocaleString(), _ye = (e) => `已删除 ${eX(e.removed)} 条;${e.marked ? `已隐退女优的 ${eX(e.marked)} 条留作不可点的记录;` : ""}保留 ${eX(e.recovered)} 条未确认失效的链接。`;
function vye(e) {
let t = e.scope === "retry";
- return e.total ? `${t ? "已重验" : "已检查"} ${tX(e.checked)} / ${tX(e.total)} 条链接` : t ? "正在重验链接" : "正在检查链接";
+ return e.total ? `${t ? "已重验" : "已检查"} ${eX(e.checked)} / ${eX(e.total)} 条链接` : t ? "正在重验链接" : "正在检查链接";
}
//#endregion
//#region src/configuration-endpoints.ts
-var nX = "/api/configuration", rX = "/api/pick-folder", iX = "/api/settings", aX = "/api/follow/schedule", oX = "/api/feeds/schedule", sX = "/api/thumbnail-jobs", cX = ["settings"], lX = ["follow-schedule"], uX = ["feed-schedule"], dX = ["thumbnail-jobs"], fX = "/api/media-processing", yye = ["media-processing"], bye = (e) => V(fX, e), pX = (e) => V(iX, e), xye = (e) => V(aX, e), Sye = (e) => V(oX, e), Cye = (e) => V(sX, e);
+var tX = "/api/configuration", nX = "/api/pick-folder", rX = "/api/settings", iX = "/api/follow/schedule", aX = "/api/feeds/schedule", oX = "/api/thumbnail-jobs", sX = ["settings"], cX = ["follow-schedule"], lX = ["feed-schedule"], uX = ["thumbnail-jobs"], dX = "/api/media-processing", yye = ["media-processing"], bye = (e) => V(dX, e), fX = (e) => V(rX, e), xye = (e) => V(iX, e), Sye = (e) => V(aX, e), Cye = (e) => V(oX, e);
function wye(e = U) {
return e.fetchQuery({
- queryKey: cX,
- queryFn: ({ signal: e }) => pX(e),
+ queryKey: sX,
+ queryFn: ({ signal: e }) => fX(e),
staleTime: 0
}).catch(() => null);
}
-function mX() {
+function pX() {
return Ct({
- mutationFn: (e) => H(iX, e),
- onSuccess: (e) => U.setQueryData(cX, e)
+ mutationFn: (e) => H(rX, e),
+ onSuccess: (e) => U.setQueryData(sX, e)
});
}
function Tye() {
return Ct({
- mutationFn: (e) => H(aX, {
+ mutationFn: (e) => H(iX, {
enabled: e > 0,
interval_minutes: e || 60
}),
- onSuccess: (e) => U.setQueryData(lX, e)
+ onSuccess: (e) => U.setQueryData(cX, e)
});
}
var Eye = {
follow: {
- url: `${aX}/run`,
- key: lX
+ url: `${iX}/run`,
+ key: cX
},
feed: {
- url: `${oX}/run`,
- key: uX
+ url: `${aX}/run`,
+ key: lX
}
};
function Dye(e) {
@@ -58396,33 +58397,33 @@ function Dye(e) {
var Oye = (e) => e?.running ? 3e3 : !1;
function kye() {
return Ct({
- mutationFn: (e) => H(sX, { mode: e }),
- onSuccess: (e) => U.setQueryData(dX, e)
+ mutationFn: (e) => H(oX, { mode: e }),
+ onSuccess: (e) => U.setQueryData(uX, e)
});
}
//#endregion
//#region src/react/data-cleanup/organize.ts
-var Aye = "/api/organize", jye = "/api/organize/preview", Mye = "/api/organize/apply", Nye = "/api/organize/rollback", hX = ["organize"], Pye = "/api/organize/example", Fye = (e, t, n) => V(`${Pye}?${new URLSearchParams({
+var Aye = "/api/organize", jye = "/api/organize/preview", Mye = "/api/organize/apply", Nye = "/api/organize/rollback", mX = ["organize"], Pye = "/api/organize/example", Fye = (e, t, n) => V(`${Pye}?${new URLSearchParams({
file_template: e,
dir_template: t
-})}`, n), gX = (e) => V(Aye, e);
+})}`, n), hX = (e) => V(Aye, e);
async function Iye(e) {
await U.fetchQuery({
- queryKey: hX,
- queryFn: () => gX(e)
+ queryKey: mX,
+ queryFn: () => hX(e)
});
}
-var Lye = (e) => H(jye, e), Rye = (e) => H(rX, { initial: e }), zye = (e) => e.kind === "apply" ? H(Mye, {
+var Lye = (e) => H(jye, e), Rye = (e) => H(nX, { initial: e }), zye = (e) => e.kind === "apply" ? H(Mye, {
...e.request,
confirm: !0
}) : H(Nye, { confirm: !0 });
async function Bye(e) {
- U.setQueryData(hX, (t) => t && {
+ U.setQueryData(mX, (t) => t && {
...t,
templates: e
});
try {
- await H(iX, { organizeTemplates: e });
+ await H(rX, { organizeTemplates: e });
} catch {}
}
var Vye = (e, t) => e && {
@@ -58433,92 +58434,92 @@ function Uye(e) {
let t = String(e || "");
return t.slice(Math.max(t.lastIndexOf("\\"), t.lastIndexOf("/")) + 1);
}
-var _X = (e) => Number(e || 0).toLocaleString();
+var gX = (e) => Number(e || 0).toLocaleString();
function Wye(e) {
- let t = Object.entries(e.reasons || {}).sort((e, t) => t[1] - e[1]).map(([e, t]) => `${e} ${_X(t)}`).join(" · ");
- return Number(e.counts?.change || 0) ? `${_X(e.counts.change)} 个文件会改名或移动,${_X(e.counts.unchanged)} 个已经就是目标名字${t ? `;跳过 ${t}` : ""}。` : `没有要改的文件。${t ? `跳过:${t}。` : ""}`;
+ let t = Object.entries(e.reasons || {}).sort((e, t) => t[1] - e[1]).map(([e, t]) => `${e} ${gX(t)}`).join(" · ");
+ return Number(e.counts?.change || 0) ? `${gX(e.counts.change)} 个文件会改名或移动,${gX(e.counts.unchanged)} 个已经就是目标名字${t ? `;跳过 ${t}` : ""}。` : `没有要改的文件。${t ? `跳过:${t}。` : ""}`;
}
function Gye(e) {
let t = e.restored !== void 0, n = Number(e.failed || 0), r = Number(t ? e.restored : e.moved || 0);
return {
- text: t ? `已退回 ${_X(r)} 个文件${n ? `,${_X(n)} 行未能退回` : ""}。` : `已整理 ${_X(r)} 个文件${n ? `,${_X(n)} 行未能处理` : ""}。`,
+ text: t ? `已退回 ${gX(r)} 个文件${n ? `,${gX(n)} 行未能退回` : ""}。` : `已整理 ${gX(r)} 个文件${n ? `,${gX(n)} 行未能处理` : ""}。`,
failed: n,
rollback: t
};
}
//#endregion
//#region src/react/data-cleanup/orphan-records.ts
-var Kye = "/api/orphan-records", qye = "/api/orphan-records/attach", vX = ["orphan-records"], Jye = [
+var Kye = "/api/orphan-records", qye = "/api/orphan-records/attach", _X = ["orphan-records"], Jye = [
["asset_preference", "喜欢与理由"],
["watch_queue", "稍后看"],
["playlist_item", "播放列表"],
["asset_quality_goal", "寻找更好版本"],
["activity_event", "观看历史"],
["asset_tag_preference", "隐藏标签"]
-], yX = (e) => V(Kye, e), Yye = (e, t) => H(qye, {
+], vX = (e) => V(Kye, e), Yye = (e, t) => H(qye, {
id: e,
target: t
-}), Xye = (e) => H(DY, {
+}), Xye = (e) => H(EY, {
ids: Array.isArray(e) ? e : [e],
operation: "delete"
}), Zye = (e) => [
e.rating ? `评分 ${e.rating}` : "",
e.play_count ? `播放 ${Number(e.play_count).toLocaleString()} 次` : e.last_played ? "播放过" : "",
e.o_count ? `高潮 ${Number(e.o_count).toLocaleString()} 次` : ""
-], Qye = (e) => [...Jye.filter(([t]) => e[t]).map(([t, n]) => `${n} ${Number(e[t]).toLocaleString()}`), ...Zye(e)].filter(Boolean).join(" · "), $ye = (e) => e ? `${Math.round(e / 60)} 分钟` : "", ebe = (e) => [e.name, $ye(e.duration)].filter(Boolean).join(" · "), bX = "/api/resource-sync/scan", xX = "/api/resource-sync/apply", SX = ["resource-sync", "scan"], CX = ["resource-sync", "apply"], wX = (e) => H(bX, {
+], Qye = (e) => [...Jye.filter(([t]) => e[t]).map(([t, n]) => `${n} ${Number(e[t]).toLocaleString()}`), ...Zye(e)].filter(Boolean).join(" · "), $ye = (e) => e ? `${Math.round(e / 60)} 分钟` : "", ebe = (e) => [e.name, $ye(e.duration)].filter(Boolean).join(" · "), yX = "/api/resource-sync/scan", bX = "/api/resource-sync/apply", xX = ["resource-sync", "scan"], SX = ["resource-sync", "apply"], CX = (e) => H(yX, {
background: !0,
status_only: !0
-}, "POST", e), tbe = () => H(bX, {
+}, "POST", e), tbe = () => H(yX, {
background: !0,
restart: !0
-}), TX = (e) => V(xX, e), nbe = (e) => H(xX, {
+}), wX = (e) => V(bX, e), nbe = (e) => H(bX, {
confirm: !0,
clean_cache: !0,
scan_id: e,
background: !0
-}), EX = (e) => (e?.sources ?? []).some((e) => zt.includes(e.location) && Array.isArray(e.roots) && e.roots.length > 0);
+}), TX = (e) => (e?.sources ?? []).some((e) => zt.includes(e.location) && Array.isArray(e.roots) && e.roots.length > 0);
async function rbe(e) {
- EX(U.getQueryData(Bn)) && await Promise.all([U.fetchQuery({
+ TX(U.getQueryData(Bn)) && await Promise.all([U.fetchQuery({
+ queryKey: xX,
+ queryFn: () => CX(e)
+ }), U.fetchQuery({
queryKey: SX,
queryFn: () => wX(e)
- }), U.fetchQuery({
- queryKey: CX,
- queryFn: () => TX(e)
})]);
}
-var ibe = (e) => !!(e?.missing || e?.empty || e?.cache?.files), DX = (e) => Number(e || 0).toLocaleString(), abe = (e) => e.total_sources ? `已扫描 ${e.completed_sources || 0}/${e.total_sources} 个来源` : "正在扫描来源", OX = (e) => e.purge ?? Number(e.missing || 0) - Number(e.vanish || 0), kX = (e) => e.vanish ? `${DX(e.vanish)} 条作品记录的文件已丢失,个人记录保留,可在「文件已丢失的记录」中转移个人记录或删除记录。` : "", AX = (e) => e.vanish ? "这几样不可撤销。" : "这一步不可撤销。", obe = (e) => `将永久删除文件已不在盘上的 ${DX(OX(e))} 条记录和 ${DX(e.empty)} 个空文件夹,并清理 ${DX(e.cache?.files)} 个闲置缓存。${AX(e)}${kX(e)}`, sbe = (e) => `将永久删除文件已不在盘上的 ${DX(OX(e))} 条记录(含回收站里的)、${DX(e.empty)} 个空文件夹,并清理 ${DX(e.cache?.files)} 个闲置缓存。来源根目录保留。${AX(e)}${kX(e)}`, cbe = (e) => e.online ? [
- `找不到文件 · 共 ${DX(e.total)} 项`,
- e.vanish ? `${DX(e.vanish)} 项带个人记录` : "",
- e.empty ? `空文件夹 ${DX(e.empty)} 个` : ""
-].filter(Boolean).join(" · ") : `馆藏中有 ${DX(e.total)} 项`;
-function jX(e) {
+var ibe = (e) => !!(e?.missing || e?.empty || e?.cache?.files), EX = (e) => Number(e || 0).toLocaleString(), abe = (e) => e.total_sources ? `已扫描 ${e.completed_sources || 0}/${e.total_sources} 个来源` : "正在扫描来源", DX = (e) => e.purge ?? Number(e.missing || 0) - Number(e.vanish || 0), OX = (e) => e.vanish ? `${EX(e.vanish)} 条作品记录的文件已丢失,个人记录保留,可在「文件已丢失的记录」中转移个人记录或删除记录。` : "", kX = (e) => e.vanish ? "这几样不可撤销。" : "这一步不可撤销。", obe = (e) => `将永久删除文件已不在盘上的 ${EX(DX(e))} 条记录和 ${EX(e.empty)} 个空文件夹,并清理 ${EX(e.cache?.files)} 个闲置缓存。${kX(e)}${OX(e)}`, sbe = (e) => `将永久删除文件已不在盘上的 ${EX(DX(e))} 条记录(含回收站里的)、${EX(e.empty)} 个空文件夹,并清理 ${EX(e.cache?.files)} 个闲置缓存。来源根目录保留。${kX(e)}${OX(e)}`, cbe = (e) => e.online ? [
+ `找不到文件 · 共 ${EX(e.total)} 项`,
+ e.vanish ? `${EX(e.vanish)} 项带个人记录` : "",
+ e.empty ? `空文件夹 ${EX(e.empty)} 个` : ""
+].filter(Boolean).join(" · ") : `馆藏中有 ${EX(e.total)} 项`;
+function AX(e) {
let t = e.blocked ?? [], n = Number(e.dir_errors || 0), r = e.cache_blocked ?? [], i = Number(e.purged || 0) + Number(e.vanished || 0) + Number(e.reattached || 0) + Number(e.dirs_removed || 0) + Number(e.cache_removed || 0), a = t.length + n + r.length, o = t.slice(0, 3).map((e) => `「${e.name}」`).join("、") + (t.length > 3 ? " 等" : "");
return {
done: i,
left: a,
rest: [
- t.length ? `${DX(t.length)} 条记录没有删除(${o})` : "",
- n ? `${DX(n)} 个文件夹没有删除` : "",
- r.length ? `${DX(r.length)} 个缓存没有清理` : ""
+ t.length ? `${EX(t.length)} 条记录没有删除(${o})` : "",
+ n ? `${EX(n)} 个文件夹没有删除` : "",
+ r.length ? `${EX(r.length)} 个缓存没有清理` : ""
].filter(Boolean).join(",")
};
}
var lbe = (e, t) => {
- let { rest: n } = jX(e), r = `已永久删除 ${DX(e.purged)} 条失效记录和 ${DX(e.dirs_removed)} 个空文件夹,清理 ${DX(e.cache_removed)} 个缓存,释放 ${t(e.bytes_reclaimed || 0)}。` + (e.vanished ? `${DX(e.vanished)} 条作品记录已标为文件丢失,可在「文件已丢失的记录」中处理。` : "") + (e.reattached ? `${DX(e.reattached)} 条的记录已接到库里的另一个版本。` : "");
+ let { rest: n } = AX(e), r = `已永久删除 ${EX(e.purged)} 条失效记录和 ${EX(e.dirs_removed)} 个空文件夹,清理 ${EX(e.cache_removed)} 个缓存,释放 ${t(e.bytes_reclaimed || 0)}。` + (e.vanished ? `${EX(e.vanished)} 条作品记录已标为文件丢失,可在「文件已丢失的记录」中处理。` : "") + (e.reattached ? `${EX(e.reattached)} 条的记录已接到库里的另一个版本。` : "");
return n ? `${r}${n},重新检查后可再试。` : r;
-}, ube = "/api/review?counts=1", MX = ["review", "counts"], dbe = "/api/ads?limit=1", NX = ["junk-summary"], PX = "/api/items?state=trash&limit=1", FX = ["trash-summary"], fbe = [
+}, ube = "/api/review?counts=1", jX = ["review", "counts"], dbe = "/api/ads?limit=1", MX = ["junk-summary"], NX = "/api/items?state=trash&limit=1", PX = ["trash-summary"], fbe = [
["video", "视频"],
["image", "图片"],
["archive", "压缩包"],
["audio", "音频"],
["url", "网址"],
["other", "其它"]
-], IX = (e) => V(ube, e), LX = (e) => V(dbe, e), RX = (e) => {
+], FX = (e) => V(ube, e), IX = (e) => V(dbe, e), LX = (e) => {
let t = sessionStorage.getItem("peach.library");
- return V(t ? `${PX}&library=${encodeURIComponent(t)}` : PX, e);
-}, zX = (e) => Number(e || 0).toLocaleString();
+ return V(t ? `${NX}&library=${encodeURIComponent(t)}` : NX, e);
+}, RX = (e) => Number(e || 0).toLocaleString();
function pbe(e) {
- let t = BY, n = Object.entries(e?.counts ?? {}).map(([e, n]) => [t[e] || e, Number(n) || 0]).filter(([, e]) => e > 0).sort((e, t) => t[1] - e[1]), r = n.reduce((e, [, t]) => e + t, 0), i = n.slice(0, 3).map(([e, t]) => `${e} ${t.toLocaleString()}`), a = n.slice(3).reduce((e, [, t]) => e + t, 0);
+ let t = zY, n = Object.entries(e?.counts ?? {}).map(([e, n]) => [t[e] || e, Number(n) || 0]).filter(([, e]) => e > 0).sort((e, t) => t[1] - e[1]), r = n.reduce((e, [, t]) => e + t, 0), i = n.slice(0, 3).map(([e, t]) => `${e} ${t.toLocaleString()}`), a = n.slice(3).reduce((e, [, t]) => e + t, 0);
return a && i.push(`其余 ${a.toLocaleString()}`), {
figure: `${r.toLocaleString()} 条待复核`,
meta: i.join(" · ")
@@ -58526,17 +58527,17 @@ function pbe(e) {
}
function mbe(e) {
if (!e) return "";
- let t = fbe.filter(([t]) => Number(e.counts?.[t]) > 0).map(([t, n]) => `${n} ${zX(e.counts[t])}`);
- return Number(e.dismissed_total) > 0 && t.push(`已忽略 ${zX(e.dismissed_total)}`), t.join(" · ");
+ let t = fbe.filter(([t]) => Number(e.counts?.[t]) > 0).map(([t, n]) => `${n} ${RX(e.counts[t])}`);
+ return Number(e.dismissed_total) > 0 && t.push(`已忽略 ${RX(e.dismissed_total)}`), t.join(" · ");
}
var hbe = [
- [MX, ({ signal: e }) => IX(e)],
- [IY, ({ signal: e }) => LY(e)],
- [FX, ({ signal: e }) => RX(e)],
+ [jX, ({ signal: e }) => FX(e)],
+ [FY, ({ signal: e }) => IY(e)],
+ [PX, ({ signal: e }) => LX(e)],
+ [qY, ({ signal: e }) => ZY(e)],
[JY, ({ signal: e }) => QY(e)],
[YY, ({ signal: e }) => $Y(e)],
- [XY, ({ signal: e }) => eX(e)],
- [vX, ({ signal: e }) => yX(e)]
+ [_X, ({ signal: e }) => vX(e)]
];
async function gbe(e) {
let t = !!location.hash, n = hbe.map(([n, r]) => {
@@ -58552,22 +58553,22 @@ async function gbe(e) {
await Promise.all([
...n,
U.fetchQuery({
- queryKey: NX,
- queryFn: () => LX(e)
+ queryKey: MX,
+ queryFn: () => IX(e)
}),
U.fetchQuery({
- queryKey: EY,
- queryFn: () => OY(e)
+ queryKey: TY,
+ queryFn: () => DY(e)
}),
- TY(e).then(() => rbe(e)),
- hH(e),
+ wY(e).then(() => rbe(e)),
+ mH(e),
Fve(e),
Iye(e)
]);
}
//#endregion
//#region src/react/feed-new/feed-new.ts
-var BX = (e) => ["feed-new", e ?? "home"], _be = 8, vbe = 1500;
+var zX = (e) => ["feed-new", e ?? "home"], _be = 8, vbe = 1500;
function ybe(e, t, n) {
let r = document.createElement("template");
r.innerHTML = e;
@@ -58580,7 +58581,7 @@ function ybe(e, t, n) {
})]);
}
async function bbe(e, t, n) {
- let r = new URLSearchParams({ limit: String(aA().value.feedLimit) });
+ let r = new URLSearchParams({ limit: String(iA().value.feedLimit) });
e && r.set("entity", String(e));
let i = await z(`/api/feeds/discoveries?${r}`).catch(() => null), a = i && !i.error ? i : null, o = a?.items || [], s = t(a);
return n && o.length && await ybe(s, _be, vbe), {
@@ -58589,12 +58590,12 @@ async function bbe(e, t, n) {
fetching: o.some((e) => e.cover_fetching && !e.has_cover)
};
}
-var VX = (e, t, n = !1) => ({
- queryKey: BX(e),
+var BX = (e, t, n = !1) => ({
+ queryKey: zX(e),
queryFn: () => bbe(e, t, n),
staleTime: Infinity,
refetchInterval: (e) => e.state.data?.fetching ? 2e3 : !1
-}), HX = (e, t) => z("/api/feeds/discovery", {
+}), VX = (e, t) => z("/api/feeds/discovery", {
method: "POST",
body: JSON.stringify({
action: t,
@@ -58602,11 +58603,11 @@ var VX = (e, t, n = !1) => ({
})
}).then(() => void 0, () => void 0);
async function xbe(e) {
- U.removeQueries({ queryKey: BX(null) }), await U.fetchQuery(VX(null, e.helpers.feedRowHtml, e.host.getAttribute("aria-busy") === "true"));
+ U.removeQueries({ queryKey: zX(null) }), await U.fetchQuery(BX(null, e.helpers.feedRowHtml, e.host.getAttribute("aria-busy") === "true"));
}
//#endregion
//#region src/react/entity-page/entity-page.ts
-var UX = [
+var HX = [
"loc",
"creator",
"tag",
@@ -58619,10 +58620,10 @@ var UX = [
"browse",
"folder",
"folder_recursive"
-], WX = {
+], UX = {
media: "videos",
set: 0
-}, GX = (e, t) => [
+}, WX = (e, t) => [
"entity",
e,
t
@@ -58632,35 +58633,35 @@ var UX = [
t,
n,
r
-], KX = (e, t, n, r) => [
+], GX = (e, t, n, r) => [
"entity-photos",
e,
t,
n,
r
-], qX = (e) => String(e || "").split(",").filter(Boolean), Cbe = (e, t) => qX(e).includes(t);
-function JX(e, t, n, r, i = 0) {
+], KX = (e) => String(e || "").split(",").filter(Boolean), Cbe = (e, t) => KX(e).includes(t);
+function qX(e, t, n, r, i = 0) {
let a = new URLSearchParams();
- a.set(e, t), e === "tag" && (a.set("tag", [.../* @__PURE__ */ new Set([t, ...qX(n.tag)])].join(",")), a.set("tag_match", "all")), a.set("limit", "48"), a.set("offset", String(i)), a.set("sort", n.sort || "new"), n.dir && a.set("dir", n.dir), n.sort === "seed" && a.set("seed", r.seed), i && a.set("count", "0");
- for (let t of UX) n[t] && t !== e && t !== "sort" && a.set(t, n[t]);
+ a.set(e, t), e === "tag" && (a.set("tag", [.../* @__PURE__ */ new Set([t, ...KX(n.tag)])].join(",")), a.set("tag_match", "all")), a.set("limit", "48"), a.set("offset", String(i)), a.set("sort", n.sort || "new"), n.dir && a.set("dir", n.dir), n.sort === "seed" && a.set("seed", r.seed), i && a.set("count", "0");
+ for (let t of HX) n[t] && t !== e && t !== "sort" && a.set(t, n[t]);
return r.jav && a.set("jav", "1"), a;
}
-async function YX(e, t, n, r, i, a, o) {
- let s = JX(e, t, n, r, i);
+async function JX(e, t, n, r, i, a, o) {
+ let s = qX(e, t, n, r, i);
return o && (s.set("limit", String(o.limit)), s.delete("count"), o.sort && s.set("sort", o.sort), o.dir && s.set("dir", o.dir)), await z(`/api/items?${s}`, a ? { signal: a } : {});
}
-var XX = (e) => {
+var YX = (e) => {
let t = {
jav: e.jav,
seed: e.seed
- }, n = JX(e.kind, e.name, e.filters, t).toString();
+ }, n = qX(e.kind, e.name, e.filters, t).toString();
return {
queryKey: Sbe(e.kind, e.name, n, e.revision),
- queryFn: ({ signal: n }) => YX(e.kind, e.name, e.filters, t, 0, n),
+ queryFn: ({ signal: n }) => JX(e.kind, e.name, e.filters, t, 0, n),
staleTime: Infinity
};
-}, ZX = (e, t) => ({
- queryKey: GX(e, t),
+}, XX = (e, t) => ({
+ queryKey: WX(e, t),
queryFn: ({ signal: n }) => z(`/api/entity?kind=${encodeURIComponent(e)}&name=${encodeURIComponent(t)}`, { signal: n }),
staleTime: Infinity
});
@@ -58673,8 +58674,8 @@ function wbe(e, t, n, r, i, a) {
let s = r ? `&seed=${encodeURIComponent(r)}` : "";
return n ? `/api/photo-set?id=${n}&limit=120${s}` : r ? `/api/photos?${o}&limit=120${s}` : `/api/photos?${o}`;
}
-var QX = (e, t, n, r) => ({
- queryKey: KX(e, t, n, r),
+var ZX = (e, t, n, r) => ({
+ queryKey: GX(e, t, n, r),
queryFn: async ({ pageParam: i }) => {
let a = await z(wbe(e, t, n, r, i?.offset || 0, i?.seed || "")).catch((e) => {
if (i) throw e;
@@ -58689,7 +58690,7 @@ var QX = (e, t, n, r) => ({
seed: t[0]?.seed || ""
} : void 0,
staleTime: Infinity
-}), $X = (e) => e && !e.error ? (e.sets || []).filter((e) => e.kind === "code") : [];
+}), QX = (e) => e && !e.error ? (e.sets || []).filter((e) => e.kind === "code") : [];
async function Tbe(e) {
let { kind: t, name: n } = e;
for (let e of [
@@ -58701,26 +58702,26 @@ async function Tbe(e) {
t,
n
] });
- e.resolvedEntity?.id && U.setQueryData(GX(t, n), e.resolvedEntity), await Promise.all([
- U.fetchQuery(ZX(t, n)).then((t) => !t || t.error || !t.id ? null : (U.removeQueries({ queryKey: BX(Number(t.id)) }), U.fetchQuery(VX(Number(t.id), e.helpers.feedRowHtml, !0)))),
- U.fetchQuery(XX(e)),
- U.fetchInfiniteQuery(QX(t, n, 0, "")),
- e.media.media === "photos" && e.media.set ? U.fetchInfiniteQuery(QX(t, n, e.media.set, "")) : null
+ e.resolvedEntity?.id && U.setQueryData(WX(t, n), e.resolvedEntity), await Promise.all([
+ U.fetchQuery(XX(t, n)).then((t) => !t || t.error || !t.id ? null : (U.removeQueries({ queryKey: zX(Number(t.id)) }), U.fetchQuery(BX(Number(t.id), e.helpers.feedRowHtml, !0)))),
+ U.fetchQuery(YX(e)),
+ U.fetchInfiniteQuery(ZX(t, n, 0, "")),
+ e.media.media === "photos" && e.media.set ? U.fetchInfiniteQuery(ZX(t, n, e.media.set, "")) : null
]);
}
//#endregion
//#region src/identity-filter.ts
-var eZ = [
+var $X = [
["all", "全部"],
["japanese_av", "女优"],
["amateur", "素人"],
["western", "西方"],
["blogger", "网黄博主"],
["animation", "动画作者"]
-], tZ = "mb-4 flex flex-wrap gap-2";
+], eZ = "mb-4 flex flex-wrap gap-2";
function Ebe(e) {
- let t = eZ.some(([t]) => t === e) ? e : "all";
- return `<div class="peach-react"><div aria-label="身份分类" class="${tZ}">${eZ.map(([e, n]) => Wo({
+ let t = $X.some(([t]) => t === e) ? e : "all";
+ return `<div class="peach-react"><div aria-label="身份分类" class="${eZ}">${$X.map(([e, n]) => Wo({
variant: e === t ? "primary" : "secondary",
size: "small",
label: n,
@@ -58754,7 +58755,7 @@ function Mbe(e, t, n, r) {
});
return t && t !== "all" && i.set("type", t), e && i.set("q", e), `${Obe}?${i}`;
}
-var Nbe = (e, t, n, r) => V(jbe(e, t, n), r), Pbe = (e, t, n, r, i) => V(Mbe(e, t, n, r), i), Fbe = "/api/index", nZ = {
+var Nbe = (e, t, n, r) => V(jbe(e, t, n), r), Pbe = (e, t, n, r, i) => V(Mbe(e, t, n, r), i), Fbe = "/api/index", tZ = {
performers: "艺人",
creators: "卖家",
studios: "厂牌",
@@ -58765,7 +58766,7 @@ var Nbe = (e, t, n, r) => V(jbe(e, t, n), r), Pbe = (e, t, n, r, i) => V(Mbe(e,
creators: "creator",
studios: "studio",
agencies: "agency"
-}, rZ = [
+}, nZ = [
["all", "全部"],
["meta", "影片属性"],
["relationship", "人物关系"],
@@ -58775,31 +58776,31 @@ var Nbe = (e, t, n, r) => V(jbe(e, t, n), r), Pbe = (e, t, n, r, i) => V(Mbe(e,
["story", "故事剧情"],
["position", "性交体位"],
["general", "其他内容"]
-], iZ = [
+], rZ = [
["all", "全部"],
["general", "通用"],
["artist", "创作者"],
["character", "角色"],
["copyright", "作品"],
["metadata", "元数据"]
-], aZ = {
+], iZ = {
people: 120,
tags: 180
-}, oZ = (e) => e !== "tags", sZ = (e) => e === "studios" || e === "agencies";
-function cZ(e) {
- if (e.kind === "creators" && e.category === "animation") return cZ({
+}, aZ = (e) => e !== "tags", oZ = (e) => e === "studios" || e === "agencies";
+function sZ(e) {
+ if (e.kind === "creators" && e.category === "animation") return sZ({
...e,
kind: "performers",
scope: "local"
});
- let t = e.kind === "tags" || e.kind === "performers" ? e.scope : "local", n = (e.kind === "tags" ? t === "online" ? iZ : rZ : e.kind === "performers" && t === "local" ? eZ : []).some(([t]) => t === e.category);
+ let t = e.kind === "tags" || e.kind === "performers" ? e.scope : "local", n = (e.kind === "tags" ? t === "online" ? rZ : nZ : e.kind === "performers" && t === "local" ? $X : []).some(([t]) => t === e.category);
return {
...e,
scope: t,
category: n ? e.category : "all"
};
}
-function lZ(e) {
+function cZ(e) {
let { kind: t, q: n, scope: r, category: i } = e;
return t === "tags" ? r === "online" ? {
what: "online-tags",
@@ -58819,13 +58820,13 @@ function lZ(e) {
...i && i !== "all" ? { category: i } : {}
};
}
-var uZ = (e, t, n = "all") => [
+var lZ = (e, t, n = "all") => [
"index",
e,
t,
...e === "tags" || n !== "all" ? [n] : []
];
-function dZ(e, t, n, r, i) {
+function uZ(e, t, n, r, i) {
let a = new URLSearchParams({
kind: e,
limit: String(r),
@@ -58833,21 +58834,21 @@ function dZ(e, t, n, r, i) {
});
return t && a.set("q", t), n !== "all" && a.set("category", n), `${Fbe}?${a}`;
}
-function fZ(e) {
- let t = e.what === "people" || e.what === "online-authors" ? aZ.people : aZ.tags, n = {
+function dZ(e) {
+ let t = e.what === "people" || e.what === "online-authors" ? iZ.people : iZ.tags, n = {
initialPageParam: 0,
getNextPageParam: (e, t) => e.has_more ? t.reduce((e, t) => e + t.items.length, 0) : void 0
};
switch (e.what) {
case "people": return {
...n,
- queryKey: uZ(e.kind, e.q, e.category || "all"),
- queryFn: ({ pageParam: n, signal: r }) => V(dZ(e.kind, e.q, e.category || "all", t, n), r)
+ queryKey: lZ(e.kind, e.q, e.category || "all"),
+ queryFn: ({ pageParam: n, signal: r }) => V(uZ(e.kind, e.q, e.category || "all", t, n), r)
};
case "tags": return {
...n,
- queryKey: uZ("tags", e.q, e.category),
- queryFn: ({ pageParam: n, signal: r }) => V(dZ("tags", e.q, e.category, t, n), r)
+ queryKey: lZ("tags", e.q, e.category),
+ queryFn: ({ pageParam: n, signal: r }) => V(uZ("tags", e.q, e.category, t, n), r)
};
case "online-authors": return {
...n,
@@ -58862,7 +58863,7 @@ function fZ(e) {
}
}
async function Lbe(e, t) {
- let n = fZ(lZ(cZ(e)));
+ let n = dZ(cZ(sZ(e)));
U.removeQueries({
queryKey: n.queryKey,
exact: !0
@@ -58876,11 +58877,11 @@ async function Lbe(e, t) {
getNextPageParam: n.getNextPageParam
});
}
-var Rbe = (e) => e ? e.pages.flatMap((e) => e.items) : [], zbe = (e, t) => `${e.toLocaleString()}${t ? "+" : ""} 项`, pZ = (e, t) => e ? `r34-${t || "unknown"}` : t || "general", Bbe = (e, t) => e === "agencies" ? `${(t.members || 0).toLocaleString()} 人` : `${(t.n || 0).toLocaleString()} 个视频`, Vbe = {
+var Rbe = (e) => e ? e.pages.flatMap((e) => e.items) : [], zbe = (e, t) => `${e.toLocaleString()}${t ? "+" : ""} 项`, fZ = (e, t) => e ? `r34-${t || "unknown"}` : t || "general", Bbe = (e, t) => e === "agencies" ? `${(t.members || 0).toLocaleString()} 人` : `${(t.n || 0).toLocaleString()} 个视频`, Vbe = {
numeric: !0,
sensitivity: "base"
};
-function mZ(e, t) {
+function pZ(e, t) {
let n = /* @__PURE__ */ new Map();
for (let r of [...e].sort((e, t) => e.k.localeCompare(t.k, "zh-CN", Vbe))) {
let e = xn(t(r.k).normalize("NFKC"), "").toUpperCase(), i = /[A-Z]/.test(e) ? e : /[0-9]/.test(e) ? "#" : /[㐀-鿿]/.test(e) ? "中文" : "其他", a = n.get(i);
@@ -58890,7 +58891,7 @@ function mZ(e, t) {
}
//#endregion
//#region src/react/boardui/components/base/badges/chip.tsx
-var hZ = nF({
+var mZ = tF({
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",
@@ -58909,16 +58910,16 @@ var hZ = nF({
soft: "bg-background-secondary-default text-text-secondary"
}
});
-function gZ({ variant: e = "bold", color: t = "neutral", className: n, ref: r, ...i }) {
+function hZ({ variant: e = "bold", color: t = "neutral", className: n, ref: r, ...i }) {
return /* @__PURE__ */ (0, O.jsx)("span", {
ref: r,
- className: tF(hZ.base, hZ.variant[e], hZ.color[t], n),
+ className: eF(mZ.base, mZ.variant[e], mZ.color[t], n),
...i
});
}
//#endregion
//#region src/react/index/index-people.tsx
-function _Z({ html: e, face: t, company: n, big: r }) {
+function gZ({ html: e, face: t, company: n, big: r }) {
let i = (0, D.useRef)(null);
return (0, D.useLayoutEffect)(() => {
t ? i.current?.style.setProperty("--face", t) : i.current?.style.removeProperty("--face");
@@ -58930,14 +58931,14 @@ function _Z({ html: e, face: t, company: n, big: r }) {
dangerouslySetInnerHTML: { __html: e }
});
}
-var Hbe = "relative flex cursor-pointer flex-col gap-2 p-3 text-inherit", Ube = zz("rss");
-function vZ({ name: e, readout: t, big: n, children: r, following: i, onPress: a, ...o }) {
+var Hbe = "relative flex cursor-pointer flex-col gap-2 p-3 text-inherit", Ube = Rz("rss");
+function _Z({ name: e, readout: t, big: n, children: r, following: i, onPress: a, ...o }) {
return /* @__PURE__ */ (0, O.jsxs)("button", {
type: "button",
...o,
"data-index-cell": "",
onClick: a,
- className: NH({
+ className: MH({
radius: "plain",
padding: "none",
interactive: !0,
@@ -58950,7 +58951,7 @@ function vZ({ name: e, readout: t, big: n, children: r, following: i, onPress: a
role: "img",
"aria-label": "已订阅新作",
className: "index-feed-mark absolute top-4 right-4 z-2 inline-flex",
- children: /* @__PURE__ */ (0, O.jsx)(gZ, {
+ children: /* @__PURE__ */ (0, O.jsx)(hZ, {
variant: "caption",
color: "soft",
children: /* @__PURE__ */ (0, O.jsx)(Ube, {})
@@ -58969,8 +58970,8 @@ function vZ({ name: e, readout: t, big: n, children: r, following: i, onPress: a
]
});
}
-function yZ({ kind: e, items: t, layout: n, props: r }) {
- let i = sZ(e), a = n === "big";
+function vZ({ kind: e, items: t, layout: n, props: r }) {
+ let i = oZ(e), a = n === "big";
return /* @__PURE__ */ (0, O.jsx)("div", {
"data-index-grid": "",
"data-layout": n,
@@ -58978,7 +58979,7 @@ function yZ({ kind: e, items: t, layout: n, props: r }) {
className: `${i ? "index-grid-company" : "index-grid-person"} gap-3`,
children: t.map((t) => {
let n = t.entity_kind || Ibe[e], o = r.personAvatar(t, n, a);
- return /* @__PURE__ */ (0, O.jsx)(vZ, {
+ return /* @__PURE__ */ (0, O.jsx)(_Z, {
"data-k": t.k,
"data-kind": n,
name: t.k,
@@ -58986,7 +58987,7 @@ function yZ({ kind: e, items: t, layout: n, props: r }) {
big: a,
following: t.following,
onPress: () => r.openEntity(n, t.k),
- children: /* @__PURE__ */ (0, O.jsx)(_Z, {
+ children: /* @__PURE__ */ (0, O.jsx)(gZ, {
html: o.html,
face: o.face,
company: i,
@@ -59003,7 +59004,7 @@ function Wbe({ items: e, layout: t, props: n }) {
"data-layout": t,
"data-cells": "people",
className: "index-grid-person gap-3",
- children: e.map((e) => /* @__PURE__ */ (0, O.jsx)(vZ, {
+ children: e.map((e) => /* @__PURE__ */ (0, O.jsx)(_Z, {
"data-follow-author": e.key,
"data-kind": "performer",
name: e.k,
@@ -59012,7 +59013,7 @@ function Wbe({ items: e, layout: t, props: n }) {
onPress: () => {
e.entity_id ? n.openEntity("creator", e.k) : e.held_by ? n.openEntity("creator", e.held_by) : n.openFollowAuthor(e.key);
},
- children: /* @__PURE__ */ (0, O.jsx)(_Z, {
+ children: /* @__PURE__ */ (0, O.jsx)(gZ, {
html: n.authorAvatar(e),
company: !1,
big: r
@@ -59022,8 +59023,8 @@ function Wbe({ items: e, layout: t, props: n }) {
}
//#endregion
//#region src/board-tooltip.ts
-var bZ = (e) => e.replace(/\s+/g, " ").trim();
-function xZ(e) {
+var yZ = (e) => e.replace(/\s+/g, " ").trim();
+function bZ(e) {
let t = document.createTreeWalker(e, NodeFilter.SHOW_TEXT), n = "", r;
for (; r = t.nextNode();) {
let e = r.parentElement;
@@ -59031,12 +59032,12 @@ function xZ(e) {
let t = document.createRange();
t.selectNodeContents(r), [...t.getClientRects()].some((e) => e.width > 0 && e.height > 0) && getComputedStyle(e).visibility === "visible" && (n += r.textContent);
}
- return bZ(n);
+ return yZ(n);
}
-function SZ(e) {
+function xZ(e) {
let t = e.getBoundingClientRect();
if (t.width && t.height) {
- if (e.matches("a") && xZ(e) && !CZ(e)) {
+ if (e.matches("a") && bZ(e) && !SZ(e)) {
let t = document.createRange();
t.selectNodeContents(e);
let n = t.getBoundingClientRect();
@@ -59049,7 +59050,7 @@ function SZ(e) {
let r = Math.min(...n.map((e) => e.left)), i = Math.min(...n.map((e) => e.top));
return new DOMRect(r, i, Math.max(...n.map((e) => e.right)) - r, Math.max(...n.map((e) => e.bottom)) - i);
}
-function CZ(e) {
+function SZ(e) {
if (e.matches(".middle-truncated") || e.querySelector(".middle-truncated") || [e, ...e.querySelectorAll("*")].some((e) => e.clientWidth > 0 && (e.scrollWidth > e.clientWidth + 1 || e.scrollHeight > e.clientHeight + 1))) return !0;
let t = document.createRange();
t.selectNodeContents(e);
@@ -59064,15 +59065,15 @@ function Gbe() {
let e = document.createElement("div");
e.className = "ui-board-tooltip", e.id = "board-control-tooltip", e.role = "tooltip", e.popover = "manual", e.hidden = !0, document.body.append(e);
let t = null, n = "", r = null, i, a = (t) => {
- let n = SZ(t), r = e.getBoundingClientRect();
+ let n = xZ(t), r = e.getBoundingClientRect();
n && (e.style.left = `${Math.max(8, Math.min(innerWidth - r.width - 8, n.left + (n.width - r.width) / 2))}px`, e.style.top = `${n.top >= r.height + 16 ? n.top - r.height - 8 : Math.min(innerHeight - r.height - 8, n.bottom + 8)}px`);
}, o = () => {
clearTimeout(i), e.matches(":popover-open") && e.hidePopover(), e.hidden = !0, t && (t.hasAttribute("title") || (t.title = n), r === null ? t.removeAttribute("aria-describedby") : t.setAttribute("aria-describedby", r)), t = null;
}, s = (s, c) => {
if (!(s instanceof Element)) return;
let l = s.closest("[title]");
- (!t?.contains(s) || l && !l.contains(t)) && l && !l.closest(".vjs-control") && l.title.trim() && (o(), t = l, n = l.title, r = l.getAttribute("aria-describedby"), l.removeAttribute("title"), (xZ(l) !== bZ(n) || CZ(l)) && (i = setTimeout(() => {
- t === l && l.isConnected && SZ(l) && ((l.closest("dialog[open]") ?? document.body).append(e), e.textContent = n, e.hidden = !1, e.showPopover(), a(l), l.setAttribute("aria-describedby", [r, e.id].filter(Boolean).join(" ")));
+ (!t?.contains(s) || l && !l.contains(t)) && l && !l.closest(".vjs-control") && l.title.trim() && (o(), t = l, n = l.title, r = l.getAttribute("aria-describedby"), l.removeAttribute("title"), (bZ(l) !== yZ(n) || SZ(l)) && (i = setTimeout(() => {
+ t === l && l.isConnected && xZ(l) && ((l.closest("dialog[open]") ?? document.body).append(e), e.textContent = n, e.hidden = !1, e.showPopover(), a(l), l.setAttribute("aria-describedby", [r, e.id].filter(Boolean).join(" ")));
}, c)));
};
document.addEventListener("pointerover", (e) => s(e.target, 400)), document.addEventListener("pointerout", (e) => {
@@ -59081,30 +59082,30 @@ function Gbe() {
e.key === "Escape" && o();
}), document.addEventListener("scroll", (n) => {
if (!t || !Do(n, t)) return;
- let r = SZ(t);
+ let r = xZ(t);
t.matches(":focus-visible") && r && r.bottom > 0 && r.top < innerHeight ? e.matches(":popover-open") && a(t) : o();
}, !0), window.addEventListener("resize", o);
}
//#endregion
//#region src/board-controls.ts
-function wZ(e) {
+function CZ(e) {
let t = Number(e.min) || 0, n = Number(e.max) || 100, r = Number(e.value), i = n > t ? Math.max(0, Math.min(100, (r - t) / (n - t) * 100)) : 0;
e.style.setProperty("--board-range-value", `${i}%`);
}
-var TZ = /* @__PURE__ */ new WeakSet();
+var wZ = /* @__PURE__ */ new WeakSet();
function Kbe() {
- if (TZ.has(document)) return;
- TZ.add(document);
+ if (wZ.has(document)) return;
+ wZ.add(document);
let e = (e) => {
- e.querySelectorAll("input[type=range]").forEach(wZ), Jbe(e), qbe(e);
+ e.querySelectorAll("input[type=range]").forEach(CZ), Jbe(e), qbe(e);
};
e(document), new MutationObserver((t) => {
- for (let n of t) for (let t of n.addedNodes) t instanceof Element && (t.matches("input[type=range]") && wZ(t), e(t));
+ for (let n of t) for (let t of n.addedNodes) t instanceof Element && (t.matches("input[type=range]") && CZ(t), e(t));
}).observe(document.body, {
subtree: !0,
childList: !0
}), document.addEventListener("input", (e) => {
- e.target instanceof HTMLInputElement && e.target.type === "range" && wZ(e.target);
+ e.target instanceof HTMLInputElement && e.target.type === "range" && CZ(e.target);
}), Gbe();
}
function qbe(e) {
@@ -59131,7 +59132,7 @@ function qbe(e) {
r.observe(e);
});
}
-var EZ = /* @__PURE__ */ new Map();
+var TZ = /* @__PURE__ */ new Map();
function Jbe(e) {
let t = ".iconswitch,.insightswitch,.follow-workspace-switch", n = [...e.querySelectorAll(t)];
e instanceof HTMLElement && e.matches(t) && n.push(e), n.forEach((e) => {
@@ -59139,7 +59140,7 @@ function Jbe(e) {
e.dataset.boardSegments = "true";
let t = document.createElement("span");
t.className = "board-segment-thumb", t.setAttribute("aria-hidden", "true"), e.prepend(t);
- let n = e.className + (e.getAttribute("aria-label") ?? ""), r = EZ.get(n) ?? null, i = () => {
+ let n = e.className + (e.getAttribute("aria-label") ?? ""), r = TZ.get(n) ?? null, i = () => {
let i = e.querySelector("label:has(input:checked),button[aria-selected=true]");
if (!i || !i.offsetWidth) return;
let a = {
@@ -59148,7 +59149,7 @@ function Jbe(e) {
w: i.offsetWidth,
h: i.offsetHeight
};
- nc(t, r, a, "x"), r = a, EZ.set(n, a);
+ nc(t, r, a, "x"), r = a, TZ.set(n, a);
};
e.addEventListener("change", i);
let a = new MutationObserver(i);
@@ -59165,8 +59166,8 @@ function Jbe(e) {
}
//#endregion
//#region src/react/photo-lightbox/photo-lightbox.ts
-var DZ = "/vendor/swiper/14.3.0/", OZ = null, Ybe = () => OZ ??= Promise.all([new Promise((e, t) => {
- let n = `${DZ}swiper-bundle.min.css`, r = document.querySelector(`link[href="${n}"]`);
+var EZ = "/vendor/swiper/14.3.0/", DZ = null, Ybe = () => DZ ??= Promise.all([new Promise((e, t) => {
+ let n = `${EZ}swiper-bundle.min.css`, r = document.querySelector(`link[href="${n}"]`);
if (r?.sheet) {
e();
return;
@@ -59180,9 +59181,9 @@ var DZ = "/vendor/swiper/14.3.0/", OZ = null, Ybe = () => OZ ??= Promise.all([ne
return;
}
let r = document.createElement("script");
- r.src = `${DZ}swiper-bundle.min.js`, r.onload = () => e(window.Swiper), r.onerror = () => t(/* @__PURE__ */ Error("swiper unavailable")), document.head.append(r);
+ r.src = `${EZ}swiper-bundle.min.js`, r.onload = () => e(window.Swiper), r.onerror = () => t(/* @__PURE__ */ Error("swiper unavailable")), document.head.append(r);
})]).then(([, e]) => e).catch((e) => {
- throw OZ = null, e;
+ throw DZ = null, e;
});
function Xbe(e, t, n) {
let r = "fit", i = () => t.slides?.[t.activeIndex]?.querySelector("img"), a = () => {
@@ -59205,27 +59206,27 @@ function Xbe(e, t, n) {
}
};
}
-var kZ = (e) => {
+var OZ = (e) => {
let t = Number(e) || 0;
return t ? (t < 1048576 ? `${Math.max(1, Math.round(t / 1024))} KB` : _n(t)).replace(" ", "\xA0") : "大小未知";
}, Zbe = (e) => e.asset?.name || e.name || "未命名图片";
function Qbe(e, t) {
let n = e.asset;
- if (n) return [Cn[n.location ?? ""] || n.location || "来源未知", kZ(n.size)].join(" · ");
+ if (n) return [Cn[n.location ?? ""] || n.location || "来源未知", OZ(n.size)].join(" · ");
let r = t?.[0] && t[1] ? `${t[0]} × ${t[1]}` : "";
return [
e.source || "在线图片",
r,
- e.size ? kZ(e.size) : ""
+ e.size ? OZ(e.size) : ""
].filter(Boolean).join(" · ");
}
//#endregion
//#region src/react/photo-lightbox/photo-lightbox-dialog.tsx
-var AZ = null, jZ = null, $be = 0;
+var kZ = null, AZ = null, $be = 0;
function exe() {
- return (!jZ || !AZ?.isConnected) && (jZ?.unmount(), AZ = document.createElement("div"), AZ.className = "peach-react", AZ.dataset.photoLightboxHost = "", document.body.append(AZ), jZ = (0, Et.createRoot)(AZ)), jZ;
+ return (!AZ || !kZ?.isConnected) && (AZ?.unmount(), kZ = document.createElement("div"), kZ.className = "peach-react", kZ.dataset.photoLightboxHost = "", document.body.append(kZ), AZ = (0, Et.createRoot)(kZ)), AZ;
}
-async function MZ(e, t, n) {
+async function jZ(e, t, n) {
if (!t.length || e < 0 || e >= t.length) return;
let r;
try {
@@ -59242,8 +59243,8 @@ async function MZ(e, t, n) {
host: n ?? null
}, ++$be)));
}
-function NZ() {
- jZ && (0, Tt.flushSync)(() => jZ.render(null));
+function MZ() {
+ AZ && (0, Tt.flushSync)(() => AZ.render(null));
}
function txe({ slides: e, index: t, Swiper: n, host: r }) {
let i = e.length > 1, a = (0, D.useId)(), o = (0, D.useRef)(null), s = (0, D.useRef)(null), c = (0, D.useRef)(null), l = (0, D.useRef)(null), u = (0, D.useRef)(null), d = (0, D.useRef)(null), f = (0, D.useRef)(null), p = (0, D.useRef)(null), m = (0, D.useRef)(null), h = (0, D.useRef)(null), g = (0, D.useRef)(null), [_, v] = (0, D.useState)(t), [y, b] = (0, D.useState)(100), [x, S] = (0, D.useState)({}), [C, w] = (0, D.useState)(() => /* @__PURE__ */ new Set()), [T, E] = (0, D.useState)(() => /* @__PURE__ */ new Set()), [k, A] = (0, D.useState)(!1), [j, M] = (0, D.useState)({
@@ -59305,13 +59306,13 @@ function txe({ slides: e, index: t, Swiper: n, host: r }) {
});
y.observe(e);
let x = (e) => {
- e.key === "Escape" && (e.preventDefault(), e.stopImmediatePropagation(), g.current?.isOpen() ? g.current.dismiss(!0) : NZ());
+ e.key === "Escape" && (e.preventDefault(), e.stopImmediatePropagation(), g.current?.isOpen() ? g.current.dismiss(!0) : MZ());
};
return document.addEventListener("keydown", x, !0), () => {
document.removeEventListener("keydown", x, !0), _(), y.disconnect(), a.destroy(!0, !0), r.destroy(!0, !0), h.current = null, g.current = null, e.close(), document.body.classList.remove("photolight-open");
};
}, []), (0, D.useLayoutEffect)(() => {
- m.current && wZ(m.current);
+ m.current && CZ(m.current);
}, [y]);
let N = e[_], P = N.asset ?? null, ee = async (e) => {
if (!P || !r || e.getAttribute("aria-busy") === "true") return;
@@ -59342,18 +59343,18 @@ function txe({ slides: e, index: t, Swiper: n, host: r }) {
"data-photo-lightbox": "",
"data-has-strip": i ? "" : void 0,
onCancel: (e) => {
- e.preventDefault(), NZ();
+ e.preventDefault(), MZ();
},
onClick: (e) => {
let t = e.target;
- g.current?.dismissOutside(t) || (t === o.current || t.classList.contains("swiper-zoom-container")) && NZ();
+ g.current?.dismissOutside(t) || (t === o.current || t.classList.contains("swiper-zoom-container")) && MZ();
},
children: [
/* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
"data-photo-close": "",
"aria-label": "关闭",
- onClick: NZ,
+ onClick: MZ,
dangerouslySetInnerHTML: { __html: R("x") }
}),
/* @__PURE__ */ (0, O.jsxs)("div", {
@@ -59540,31 +59541,31 @@ function nxe(e) {
props: e
}, e.photos.revision) : null;
}
-var PZ = aZ.people;
+var NZ = iZ.people;
function rxe({ roster: e, props: t }) {
let { helpers: n, actions: r } = t, i = (0, D.useMemo)(() => ({
personAvatar: n.personAvatar,
openEntity: r.openEntity
- }), [n, r]), [a, o] = (0, D.useState)(PZ), s = (0, D.useMemo)(() => e.people.slice(0, a), [e.people, a]), c = (0, D.useCallback)(async () => {
- o((e) => e + PZ);
+ }), [n, r]), [a, o] = (0, D.useState)(NZ), s = (0, D.useMemo)(() => e.people.slice(0, a), [e.people, a]), c = (0, D.useCallback)(async () => {
+ o((e) => e + NZ);
}, []);
- return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(yZ, {
+ return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(vZ, {
kind: e.kind,
items: s,
layout: e.layout,
props: i
- }), a < e.people.length ? /* @__PURE__ */ (0, O.jsx)(CY, {
+ }), a < e.people.length ? /* @__PURE__ */ (0, O.jsx)(SY, {
entity: !0,
load: c,
enabled: () => !0
}, a) : null] });
}
function ixe(e) {
- let t = uW(!e.items, e.skeletonHtml);
+ let t = lW(!e.items, e.skeletonHtml);
return /* @__PURE__ */ (0, O.jsxs)("div", {
"data-entity-grid": "",
"data-grid-reveal": t.fading ? "" : void 0,
- children: [t.layer, e.items ? /* @__PURE__ */ (0, O.jsx)(xY, {
+ children: [t.layer, e.items ? /* @__PURE__ */ (0, O.jsx)(bY, {
mode: "entity",
entityKey: `${e.kind}:${e.name}`,
revision: e.revision,
@@ -59591,15 +59592,15 @@ var axe = (e) => Array.from({ length: e.n }, (t, n) => ({
total: e.n,
name: `${e.code} 样张 ${n + 1}`,
source: e.site_label || "官方样张"
-})), FZ = (e) => e.sample === !0, IZ = (e) => `code=${encodeURIComponent(e.code)}&n=${e.position}`, LZ = (e) => FZ(e) ? `/sample-thumb?${IZ(e)}` : `/photo-thumb?id=${e.id}`, oxe = (e) => FZ(e) ? {
- src: `/sample-image?${IZ(e)}`,
- thumb: LZ(e),
+})), PZ = (e) => e.sample === !0, FZ = (e) => `code=${encodeURIComponent(e.code)}&n=${e.position}`, IZ = (e) => PZ(e) ? `/sample-thumb?${FZ(e)}` : `/photo-thumb?id=${e.id}`, oxe = (e) => PZ(e) ? {
+ src: `/sample-image?${FZ(e)}`,
+ thumb: IZ(e),
name: e.name,
asset: null,
source: e.source
} : {
src: `/photo?id=${e.id}`,
- thumb: LZ(e),
+ thumb: IZ(e),
name: e.name || "",
asset: e
};
@@ -59609,7 +59610,7 @@ function sxe({ photos: e, props: t }) {
let n = new Set(t);
return n.add(e), n;
}), []), u = (0, D.useCallback)((e) => {
- MZ(e, o.map(oxe), { revealSource: i.revealSource });
+ jZ(e, o.map(oxe), { revealSource: i.revealSource });
}, [i, o]), d = (e, t) => /* @__PURE__ */ (0, O.jsx)(cxe, {
item: e,
index: t,
@@ -59628,7 +59629,7 @@ function sxe({ photos: e, props: t }) {
};
}), h = p;
return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [
- m.map(({ set: e, from: t }) => /* @__PURE__ */ (0, O.jsxs)(D.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(RZ, {
+ m.map(({ set: e, from: t }) => /* @__PURE__ */ (0, O.jsxs)(D.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(LZ, {
label: e.code,
title: e.name,
meta: [
@@ -59640,7 +59641,7 @@ function sxe({ photos: e, props: t }) {
...f,
children: o.slice(t, t + e.n).map((e, n) => d(e, t + n))
})] }, e.code)),
- m.length && e.total ? /* @__PURE__ */ (0, O.jsx)(RZ, {
+ m.length && e.total ? /* @__PURE__ */ (0, O.jsx)(LZ, {
label: "本地图片",
meta: `${e.total.toLocaleString()} 张`
}) : null,
@@ -59649,14 +59650,14 @@ function sxe({ photos: e, props: t }) {
"data-local-wall": "",
children: e.items.map((e, t) => s.has(h + t) ? null : d(e, h + t))
}),
- e.hasMore ? /* @__PURE__ */ (0, O.jsx)(CY, {
+ e.hasMore ? /* @__PURE__ */ (0, O.jsx)(SY, {
entity: !0,
load: i.loadMorePhotos,
enabled: () => a?.() !== !1
}, e.items.length) : null
] });
}
-function RZ({ label: e, title: t, meta: n }) {
+function LZ({ label: e, title: t, meta: n }) {
return /* @__PURE__ */ (0, O.jsxs)("div", {
"data-photo-group": "",
children: [
@@ -59682,7 +59683,7 @@ function cxe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
title: a,
onClick: () => i(t),
children: n ? null : /* @__PURE__ */ (0, O.jsx)("img", {
- src: LZ(e),
+ src: IZ(e),
alt: a,
loading: "lazy",
decoding: "async",
@@ -59694,7 +59695,7 @@ function cxe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
//#endregion
//#region src/react/background-job.ts
var lxe = 2e3, uxe = (e) => e, dxe = (e, t) => t;
-function zZ(e) {
+function RZ(e) {
let { queryKey: t, jobOf: n = uxe, withJob: r = dxe, idlePollMs: i } = e, [a, o] = (0, D.useState)(!1), [s, c] = (0, D.useState)(null), l = (0, D.useRef)(e);
(0, D.useEffect)(() => {
l.current = e;
@@ -59729,14 +59730,14 @@ function zZ(e) {
}
//#endregion
//#region src/react/follow-feed/follow-check.ts
-var BZ = (e) => [...new Set(e)].filter((e) => Number.isSafeInteger(e) && e > 0);
+var zZ = (e) => [...new Set(e)].filter((e) => Number.isSafeInteger(e) && e > 0);
function fxe(e, t) {
- return t ? BZ(e.filter((e) => e.author_key === t || t.startsWith("entity:") && String(e.entity_id) === t.slice(7)).map((e) => e.id)) : [];
+ return t ? zZ(e.filter((e) => e.author_key === t || t.startsWith("entity:") && String(e.entity_id) === t.slice(7)).map((e) => e.id)) : [];
}
//#endregion
//#region src/react/follow-feed/follow-check-button.tsx
function pxe({ sources: e, report: t }) {
- let n = BZ(e), [r, i] = (0, D.useState)(""), { running: a, start: o } = zZ({
+ let n = zZ(e), [r, i] = (0, D.useState)(""), { running: a, start: o } = RZ({
queryKey: or,
queryFn: ({ signal: e }) => zr(e),
start: (e) => Hr(e),
@@ -59747,15 +59748,15 @@ function pxe({ sources: e, report: t }) {
}), s = a || o.isPending;
return /* @__PURE__ */ (0, O.jsxs)("div", {
className: "flex min-w-0 flex-col gap-2",
- children: [/* @__PURE__ */ (0, O.jsx)(q, {
+ children: [/* @__PURE__ */ (0, O.jsx)(J, {
size: "small",
disabled: !n.length,
- ...Vz(s),
+ ...Bz(s),
onClick: () => {
n.length && !s && (i(""), o.mutate(n));
},
children: "检查更新"
- }), r ? /* @__PURE__ */ (0, O.jsx)(Iz, {
+ }), r ? /* @__PURE__ */ (0, O.jsx)(Fz, {
tone: "error",
children: r
}) : null]
@@ -59764,7 +59765,7 @@ function pxe({ sources: e, report: t }) {
//#endregion
//#region src/react/follow-feed/follow-card.tsx
var mxe = (e) => Number(e) > 0;
-function VZ({ name: e, actions: t, children: n, ...r }) {
+function BZ({ name: e, actions: t, children: n, ...r }) {
return /* @__PURE__ */ (0, O.jsx)("a", {
...r,
href: en("creator", e),
@@ -59774,15 +59775,15 @@ function VZ({ name: e, actions: t, children: n, ...r }) {
children: n
});
}
-var HZ = ({ provider: e }) => /* @__PURE__ */ (0, O.jsx)("span", {
+var VZ = ({ provider: e }) => /* @__PURE__ */ (0, O.jsx)("span", {
"data-follow-nothumb": "",
- dangerouslySetInnerHTML: { __html: AU(e) }
+ dangerouslySetInnerHTML: { __html: kU(e) }
});
function hxe({ src: e, fallback: t, width: n, height: r, provider: i, onLearn: a, retryKey: o }) {
let [s, c] = (0, D.useState)(!1), [l, u] = (0, D.useState)(!1), [d, f] = (0, D.useState)(null);
return (0, D.useEffect)(() => {
c(!1);
- }, [o]), s ? /* @__PURE__ */ (0, O.jsx)(HZ, { provider: i }) : /* @__PURE__ */ (0, O.jsx)("img", {
+ }, [o]), s ? /* @__PURE__ */ (0, O.jsx)(VZ, { provider: i }) : /* @__PURE__ */ (0, O.jsx)("img", {
src: l ? t : e,
alt: "",
loading: "lazy",
@@ -59810,7 +59811,7 @@ function gxe(e) {
limit: 9
}), S = (0, D.useRef)(x.faces);
S.current = x.faces;
- let C = rG({
+ let C = nG({
load: async () => S.current,
canFlip: () => S.current.length > 1 && l.canFlip(),
referrerPolicy: "no-referrer"
@@ -59818,7 +59819,7 @@ function gxe(e) {
w.current = C.onPointerLeave;
let T = (0, D.useCallback)((e) => {
e && (e._stopHover = () => w.current());
- }, []), E = FU(u, n, i), k = jU(u), A = u.resource_provider || u.provider, j = (u.tags || []).slice(0, 3), M = RU(u, i), N = LU(t, u), P = u.status === "saved", ee = (e) => {
+ }, []), E = PU(u, n, i), k = AU(u), A = u.resource_provider || u.provider, j = (u.tags || []).slice(0, 3), M = LU(u, i), N = IU(t, u), P = u.status === "saved", ee = (e) => {
e.target.closest("[data-media-tag]") || (l.toggleSelection && (o || e.shiftKey || e.ctrlKey || e.metaKey) ? (e.preventDefault(), l.toggleSelection(u.id, e.shiftKey)) : l.openDetail(u.id));
}, F = (e, t) => {
e.stopPropagation(), t();
@@ -59833,7 +59834,7 @@ function gxe(e) {
"data-collection": x.isMix ? "" : void 0,
"data-selected": a ? "" : void 0,
onClick: ee,
- onMouseDown: FW,
+ onMouseDown: PW,
onMouseEnter: C.onPointerEnter,
onMouseLeave: C.onPointerLeave,
children: [
@@ -59855,7 +59856,7 @@ function gxe(e) {
provider: A,
onLearn: v,
retryKey: e.retryKey
- }, p) : /* @__PURE__ */ (0, O.jsx)(HZ, { provider: A }),
+ }, p) : /* @__PURE__ */ (0, O.jsx)(VZ, { provider: A }),
x.faces.length > 1 ? /* @__PURE__ */ (0, O.jsx)("div", {
"data-mix-faces": "",
hidden: !C.faces.length,
@@ -59875,7 +59876,7 @@ function gxe(e) {
"data-media-badge": "",
title: u.provider_label || u.provider,
"aria-label": `来源:${u.provider_label || u.provider}`,
- dangerouslySetInnerHTML: { __html: AU(u.provider, u.provider_label) }
+ dangerouslySetInnerHTML: { __html: kU(u.provider, u.provider_label) }
}), N ? /* @__PURE__ */ (0, O.jsx)("span", {
"data-follow-badges": "",
dangerouslySetInnerHTML: { __html: N }
@@ -59960,7 +59961,7 @@ function gxe(e) {
/* @__PURE__ */ (0, O.jsxs)("div", {
"data-media-meta": "",
children: [
- E.entityName ? /* @__PURE__ */ (0, O.jsx)(VZ, {
+ E.entityName ? /* @__PURE__ */ (0, O.jsx)(BZ, {
name: E.entityName,
actions: l,
"data-media-avatar": "",
@@ -59979,12 +59980,12 @@ function gxe(e) {
/* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
"data-media-title": "",
- dangerouslySetInnerHTML: { __html: IU(t, u) + B(k) }
+ dangerouslySetInnerHTML: { __html: FU(t, u) + B(k) }
}),
/* @__PURE__ */ (0, O.jsxs)("div", {
"data-follow-byline": "",
children: [
- E.entityName ? /* @__PURE__ */ (0, O.jsx)(VZ, {
+ E.entityName ? /* @__PURE__ */ (0, O.jsx)(BZ, {
name: E.entityName,
actions: l,
"data-follow-author": "",
@@ -59997,7 +59998,7 @@ function gxe(e) {
}),
/* @__PURE__ */ (0, O.jsx)("time", {
dateTime: u.published_at || "",
- title: BU(u),
+ title: zU(u),
children: oge(u)
}),
E.credited ? /* @__PURE__ */ (0, O.jsx)("span", {
@@ -60033,7 +60034,7 @@ function gxe(e) {
]
});
}
-var UZ = (0, D.memo)(gxe);
+var HZ = (0, D.memo)(gxe);
//#endregion
//#region src/react/components/use-masonry-grid.ts
function _xe(e, t) {
@@ -60077,7 +60078,7 @@ var vxe = [
"add",
"feeds"
];
-function WZ(e) {
+function UZ(e) {
let t = new URLSearchParams(e), n = t.get("tab");
return {
tab: vxe.find((e) => e === n) || "list",
@@ -60086,13 +60087,13 @@ function WZ(e) {
dir: t.get("dir") || ""
};
}
-function GZ(e) {
+function WZ(e) {
let t = new URLSearchParams();
return e.tab !== "list" && t.set("tab", e.tab), e.page > 1 && t.set("page", String(e.page)), e.sort && t.set("sort", e.sort), e.dir && t.set("dir", e.dir), "/subscriptions" + (t.size ? `?${t}` : "");
}
-function KZ(e, t) {
- return !t && new URLSearchParams(e).get("tab") === "wants" ? "/jav?tab=wants" : !t && new URLSearchParams(e).get("tab") === "source" ? "/settings/library?section=%E6%9D%A5%E6%BA%90%E4%B8%8E%E8%AE%A2%E9%98%85" : GZ({
- tab: t || WZ(e).tab,
+function GZ(e, t) {
+ return !t && new URLSearchParams(e).get("tab") === "wants" ? "/jav?tab=wants" : !t && new URLSearchParams(e).get("tab") === "source" ? "/settings/library?section=%E6%9D%A5%E6%BA%90%E4%B8%8E%E8%AE%A2%E9%98%85" : WZ({
+ tab: t || UZ(e).tab,
page: 1,
sort: "",
dir: ""
@@ -60100,10 +60101,10 @@ function KZ(e, t) {
}
//#endregion
//#region src/react/follow-feed/follow-feed-page.tsx
-var qZ = () => /* @__PURE__ */ (0, O.jsx)("span", {
+var KZ = () => /* @__PURE__ */ (0, O.jsx)("span", {
"data-entity-sep": "",
"aria-hidden": "true"
-}), yxe = zz("settings"), JZ = zz("chevron-down"), bxe = zz("history"), xxe = zz("arrow-up"), Sxe = zz("arrow-down"), Cxe = [[
+}), yxe = Rz("settings"), qZ = Rz("chevron-down"), bxe = Rz("history"), xxe = Rz("arrow-up"), Sxe = Rz("arrow-down"), Cxe = [[
"fixed",
"固定比例",
"layout-grid"
@@ -60197,7 +60198,7 @@ function Txe(e) {
let h = Dxe(e, !!c);
if (!c) return o.isError ? /* @__PURE__ */ (0, O.jsxs)("div", {
"data-follow-feed": "",
- children: [/* @__PURE__ */ (0, O.jsx)(YZ, {}), /* @__PURE__ */ (0, O.jsx)(dW, {
+ children: [/* @__PURE__ */ (0, O.jsx)(JZ, {}), /* @__PURE__ */ (0, O.jsx)(uW, {
message: Ut(o.error),
onRetry: () => void o.refetch()
})]
@@ -60210,7 +60211,7 @@ function Txe(e) {
author: d.author,
provider: d.provider
}, {
- authors: new Map([...d.authorSources].map(([e, t]) => [e, MU(t, u)])),
+ authors: new Map([...d.authorSources].map(([e, t]) => [e, jU(t, u)])),
providers: d.providers,
works: d.workNames
}), v = t.status ? d.counts[t.status] || 0 : d.allCount, y = d.sources.some((e) => e.can_backfill);
@@ -60219,7 +60220,7 @@ function Txe(e) {
ref: h.host,
"data-follow-progress": ""
}, h.generation),
- !h.busy && h.report ? /* @__PURE__ */ (0, O.jsx)(Iz, {
+ !h.busy && h.report ? /* @__PURE__ */ (0, O.jsx)(Fz, {
tone: "neutral",
title: "检查结果",
children: h.report
@@ -60228,7 +60229,7 @@ function Txe(e) {
"data-follow-feed": "",
"data-select-mode": e.selectMode ? "" : void 0,
children: [
- /* @__PURE__ */ (0, O.jsx)(YZ, { children: d.sources.length ? /* @__PURE__ */ (0, O.jsx)(q, {
+ /* @__PURE__ */ (0, O.jsx)(JZ, { children: d.sources.length ? /* @__PURE__ */ (0, O.jsx)(J, {
variant: "primary",
"data-follow-recheck": "",
"aria-label": "检查每个来源的更新",
@@ -60280,7 +60281,7 @@ function Txe(e) {
data: c,
context: u,
props: e,
- checkAction: /* @__PURE__ */ (0, O.jsx)(q, {
+ checkAction: /* @__PURE__ */ (0, O.jsx)(J, {
size: "small",
variant: "secondary",
"aria-label": "检查每个来源的更新",
@@ -60296,13 +60297,13 @@ function Txe(e) {
"data-follow-pagination": "",
children: [c.has_more ? /* @__PURE__ */ (0, O.jsx)("span", {
"data-follow-page-action": "",
- children: c.groups.length < 500 ? /* @__PURE__ */ (0, O.jsxs)(CY, {
+ children: c.groups.length < 500 ? /* @__PURE__ */ (0, O.jsxs)(SY, {
entity: !0,
enabled: () => !h.busyRef.current,
load: async () => {
await o.fetchNextPage({ throwOnError: !0 });
},
- children: [/* @__PURE__ */ (0, O.jsx)(JZ, { className: "size-(--icon-inline)" }), "加载更多"]
+ children: [/* @__PURE__ */ (0, O.jsx)(qZ, { className: "size-(--icon-inline)" }), "加载更多"]
}, o.data?.pages.length) : /* @__PURE__ */ (0, O.jsx)(Exe, {
busy: o.isFetchingNextPage,
error: o.isFetchNextPageError ? Ut(o.error) : "",
@@ -60312,7 +60313,7 @@ function Txe(e) {
})
}) : null, y ? /* @__PURE__ */ (0, O.jsxs)("span", {
"data-follow-page-action": "",
- children: [/* @__PURE__ */ (0, O.jsx)(q, {
+ children: [/* @__PURE__ */ (0, O.jsx)(J, {
variant: "secondary",
leadingIcon: h.olderBusy ? void 0 : bxe,
"data-follow-older": "",
@@ -60332,7 +60333,7 @@ function Txe(e) {
})
] });
}
-function YZ({ children: e }) {
+function JZ({ children: e }) {
return /* @__PURE__ */ (0, O.jsxs)("div", {
"data-follow-head": "",
children: [/* @__PURE__ */ (0, O.jsx)("h2", {
@@ -60340,11 +60341,11 @@ function YZ({ children: e }) {
children: "关注"
}), /* @__PURE__ */ (0, O.jsxs)("span", {
"data-follow-head-actions": "",
- children: [/* @__PURE__ */ (0, O.jsx)(YF, {
+ children: [/* @__PURE__ */ (0, O.jsx)(JF, {
variant: "secondary",
leadingIcon: yxe,
"data-follow-manage": "",
- href: XZ(),
+ href: YZ(),
children: "管理关注"
}), e]
})]
@@ -60357,8 +60358,8 @@ function Exe({ busy: e, error: t, load: n }) {
"aria-busy": e || void 0,
"aria-disabled": e || void 0,
onClick: n,
- children: [/* @__PURE__ */ (0, O.jsx)(JZ, { className: "size-(--icon-inline)" }), "加载更多"]
- }), t ? /* @__PURE__ */ (0, O.jsx)(dW, {
+ children: [/* @__PURE__ */ (0, O.jsx)(qZ, { className: "size-(--icon-inline)" }), "加载更多"]
+ }), t ? /* @__PURE__ */ (0, O.jsx)(uW, {
message: t,
onRetry: n
}) : null] });
@@ -60430,7 +60431,7 @@ function Oxe({ facets: e, pressed: t, context: n, props: r, onPick: i }) {
(0, D.useEffect)(() => {
r.helpers.wireDrag(a.current);
}, [r.helpers]);
- let o = (t) => MU(e.authorSources.get(t) || [], n);
+ let o = (t) => jU(e.authorSources.get(t) || [], n);
return e.authorOrder.length ? /* @__PURE__ */ (0, O.jsx)("div", {
"data-follow-authors-bar": "",
children: /* @__PURE__ */ (0, O.jsx)("div", {
@@ -60438,14 +60439,14 @@ function Oxe({ facets: e, pressed: t, context: n, props: r, onPick: i }) {
"data-follow-authors": "",
"aria-label": "创作者",
children: e.authorOrder.map((n) => {
- let a = e.authorSources.get(n) || [], s = NU(a), c = /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)("span", {
+ let a = e.authorSources.get(n) || [], s = MU(a), c = /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)("span", {
"data-follow-ring": "",
- dangerouslySetInnerHTML: { __html: PU(a, o(n)) }
+ dangerouslySetInnerHTML: { __html: NU(a, o(n)) }
}), /* @__PURE__ */ (0, O.jsx)("span", {
"data-follow-name": "",
children: o(n)
})] });
- return s ? /* @__PURE__ */ (0, O.jsx)(VZ, {
+ return s ? /* @__PURE__ */ (0, O.jsx)(BZ, {
name: s,
actions: r.actions,
"data-follow-author": n,
@@ -60484,12 +60485,12 @@ function kxe({ rows: e, pressed: t, props: n, onPick: r }) {
}) : null;
}
function Axe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
- let { helpers: o, actions: s } = i, c = (0, D.useRef)(null), l = (0, D.useRef)(null), u = (0, D.useRef)(null), d = (0, D.useRef)(null), f = (0, D.useRef)(null), p = (0, D.useRef)(null), m = !!e.mediaCounts.images || t.media === "images", h = qF(c, u, "[data-follow-filter][aria-pressed=\"true\"]", t.status), g = qF(l, d, "[data-media-view][aria-pressed=\"true\"]", `${t.media}:${m}`);
+ let { helpers: o, actions: s } = i, c = (0, D.useRef)(null), l = (0, D.useRef)(null), u = (0, D.useRef)(null), d = (0, D.useRef)(null), f = (0, D.useRef)(null), p = (0, D.useRef)(null), m = !!e.mediaCounts.images || t.media === "images", h = KF(c, u, "[data-follow-filter][aria-pressed=\"true\"]", t.status), g = KF(l, d, "[data-media-view][aria-pressed=\"true\"]", `${t.media}:${m}`);
(0, D.useEffect)(() => {
o.wireDrag(f.current), o.wireDrag(p.current), o.wireScroller(p.current);
}, [o]);
let _ = [...e.providers], v = _.length + e.tagRows.length > 0, y = t.media === "images";
- return /* @__PURE__ */ (0, O.jsx)(BF, {
+ return /* @__PURE__ */ (0, O.jsx)(zF, {
label: "筛选与排序",
topLabel: m ? "媒体与关注筛选" : "关注筛选",
attrs: {
@@ -60541,7 +60542,7 @@ function Axe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
dangerouslySetInnerHTML: { __html: R(i) }
}, e);
})
- }), /* @__PURE__ */ (0, O.jsx)(qZ, {})] }) : null, /* @__PURE__ */ (0, O.jsxs)("div", {
+ }), /* @__PURE__ */ (0, O.jsx)(KZ, {})] }) : null, /* @__PURE__ */ (0, O.jsxs)("div", {
ref: f,
"data-entity-scroll": "",
children: [/* @__PURE__ */ (0, O.jsxs)("div", {
@@ -60561,7 +60562,7 @@ function Axe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
t.status !== e && a({ status: e });
},
children: n
- }, e)), v ? /* @__PURE__ */ (0, O.jsx)(qZ, {}) : null]
+ }, e)), v ? /* @__PURE__ */ (0, O.jsx)(KZ, {}) : null]
}), /* @__PURE__ */ (0, O.jsxs)("div", {
ref: p,
"data-entity-tags": "",
@@ -60574,10 +60575,10 @@ function Axe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
title: n,
"aria-label": `来源:${n}`,
onClick: () => a({ provider: e.provider === t ? "" : t }),
- dangerouslySetInnerHTML: { __html: AU(t, n) }
+ dangerouslySetInnerHTML: { __html: kU(t, n) }
}, t)),
- _.length && e.tagRows.length ? /* @__PURE__ */ (0, O.jsx)(qZ, {}) : null,
- e.tagRows.map(([n, r]) => /* @__PURE__ */ (0, O.jsxs)(HF, {
+ _.length && e.tagRows.length ? /* @__PURE__ */ (0, O.jsx)(KZ, {}) : null,
+ e.tagRows.map(([n, r]) => /* @__PURE__ */ (0, O.jsxs)(VF, {
"data-follow-tag": n,
"data-entity-press": "",
"data-tag-cat": `r34-${Ji(e.groups, n)}`,
@@ -60597,15 +60598,15 @@ function Axe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
"data-follow-readout": "",
children: `${n.toLocaleString()} 项更新 · 显示 ${e.visible.length.toLocaleString()}`
}),
- /* @__PURE__ */ (0, O.jsx)(eB, {
+ /* @__PURE__ */ (0, O.jsx)($z, {
currentHref: () => location.pathname + location.search,
kind: "creator"
}),
/* @__PURE__ */ (0, O.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, O.jsx)(JU, { onPress: s.shuffle }),
- y ? /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(qU, {
+ /* @__PURE__ */ (0, O.jsx)(qU, { onPress: s.shuffle }),
+ y ? /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(KU, {
label: "图片布局",
value: i.photoLayout,
options: Cxe,
@@ -60638,7 +60639,7 @@ function Axe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
let n = Ui(e, t.sort, t.dir);
n && a(n);
},
- children: [n, r ? /* @__PURE__ */ (0, O.jsx)(TU, {
+ children: [n, r ? /* @__PURE__ */ (0, O.jsx)(wU, {
a: xxe,
b: Sxe,
state: t.dir === "asc" ? "a" : "b",
@@ -60679,12 +60680,12 @@ function jxe({ conditions: e, onDrop: t, onClear: n }) {
function Mxe({ count: e }) {
return /* @__PURE__ */ (0, O.jsx)("div", {
"data-follow-broken": "",
- dangerouslySetInnerHTML: { __html: `<div class="geist-note geist-note-error fwarn" role="alert">${R("alert")}<span>${e} 个来源上次检查失败,去<a class="flink" href="${B(XZ())}" data-follow-manage>管理关注</a>看原因。</span></div>` }
+ dangerouslySetInnerHTML: { __html: `<div class="geist-note geist-note-error fwarn" role="alert">${R("alert")}<span>${e} 个来源上次检查失败,去<a class="flink" href="${B(YZ())}" data-follow-manage>管理关注</a>看原因。</span></div>` }
});
}
-var XZ = () => KZ(window.location.search);
+var YZ = () => GZ(window.location.search);
function Nxe({ pending: e, facets: t, data: n, context: r, props: i, retryKey: a, checkAction: o }) {
- let { view: s, helpers: c } = i, l = s.media === "images", u = uW(e, () => c.listSkeletonHtml(s.media));
+ let { view: s, helpers: c } = i, l = s.media === "images", u = lW(e, () => c.listSkeletonHtml(s.media));
return /* @__PURE__ */ (0, O.jsxs)("div", {
"data-follow-list-body": "",
"data-grid-reveal": u.fading ? "" : void 0,
@@ -60700,23 +60701,23 @@ function Nxe({ pending: e, facets: t, data: n, context: r, props: i, retryKey: a
});
}
function Pxe({ facets: e, data: t, context: n, props: r, images: i, retryKey: a, checkAction: o }) {
- let { view: s, actions: c } = r, l = QZ(r), u = i ? {
+ let { view: s, actions: c } = r, l = ZZ(r), u = i ? {
"data-size": r.photoSize,
"data-layout": r.photoLayout,
"data-images-only": String(r.imagesOnly)
} : {}, d = _xe(i && r.photoLayout === "masonry", `${r.photoSize}:${e.visible.map((e) => e.primary.id).join(",")}`), f;
return f = e.visible.length ? e.visible.map((t) => {
let i = e.byId.get(t.primary?.source_id), o = i?.author_key && e.authorSources.get(i.author_key) || [], u = t.primary.id;
- return /* @__PURE__ */ (0, O.jsx)(UZ, {
+ return /* @__PURE__ */ (0, O.jsx)(HZ, {
group: t,
authorSources: o,
media: s.media,
retryKey: a,
context: n,
- selected: r.selected.has(ZZ(t, s)),
+ selected: r.selected.has(XZ(t, s)),
selectMode: r.selectMode,
- busy: l.busy.get(ZZ(t, s)) || "",
- failure: l.failures.get(ZZ(t, s)) || "",
+ busy: l.busy.get(XZ(t, s)) || "",
+ failure: l.failures.get(XZ(t, s)) || "",
actions: c,
onStatus: l.status,
onSave: l.save
@@ -60744,7 +60745,7 @@ function Pxe({ facets: e, data: t, context: n, props: r, images: i, retryKey: a,
children: f
});
}
-function ZZ(e, t) {
+function XZ(e, t) {
return Li(e, t.media).id;
}
function Fxe({ data: e, filtered: t, clear: n, checkAction: r }) {
@@ -60752,14 +60753,14 @@ function Fxe({ data: e, filtered: t, clear: n, checkAction: r }) {
return /* @__PURE__ */ (0, O.jsx)("div", {
"data-follow-empty": "",
className: "contents",
- children: /* @__PURE__ */ (0, O.jsx)(Lz, {
- icon: zz(i ? "search-x" : "rss"),
+ children: /* @__PURE__ */ (0, O.jsx)(Iz, {
+ icon: Rz(i ? "search-x" : "rss"),
title: i ? "当前筛选下没有更新" : a ? "还没有更新" : "还没有关注任何来源",
- actions: i ? /* @__PURE__ */ (0, O.jsx)(q, {
+ actions: i ? /* @__PURE__ */ (0, O.jsx)(J, {
size: "small",
onClick: n,
children: "清除筛选"
- }) : a ? r : /* @__PURE__ */ (0, O.jsx)(YF, {
+ }) : a ? r : /* @__PURE__ */ (0, O.jsx)(JF, {
size: "small",
href: "/subscriptions?tab=add",
children: "添加关注"
@@ -60773,7 +60774,7 @@ var Ixe = {
seen: "已标记已看",
ignored: "已忽略"
};
-function QZ(e) {
+function ZZ(e) {
let { view: t, revision: n, actions: r } = e, [i, a] = (0, D.useState)(() => /* @__PURE__ */ new Map()), [o, s] = (0, D.useState)(() => /* @__PURE__ */ new Map()), c = wi(t, n).queryKey, l = (e, t, n) => n((n) => {
let r = new Map(n);
return t ? r.set(e, t) : r.delete(e), r;
@@ -60843,8 +60844,8 @@ function QZ(e) {
//#endregion
//#region src/react/entity-body/entity-online.tsx
function Lxe(e) {
- let { result: t, data: n, media: r, helpers: i } = e, a = t.isPending || t.isPlaceholderData, o = uW(a, () => i.listSkeletonHtml(r));
- return !n && t.isError ? /* @__PURE__ */ (0, O.jsx)(dW, {
+ let { result: t, data: n, media: r, helpers: i } = e, a = t.isPending || t.isPlaceholderData, o = lW(a, () => i.listSkeletonHtml(r));
+ return !n && t.isError ? /* @__PURE__ */ (0, O.jsx)(uW, {
message: Ut(t.error),
onRetry: () => {
t.refetch();
@@ -60859,7 +60860,7 @@ function Lxe(e) {
...e,
data: n
}),
- !a && n?.has_more ? /* @__PURE__ */ (0, O.jsx)(CY, {
+ !a && n?.has_more ? /* @__PURE__ */ (0, O.jsx)(SY, {
entity: !0,
enabled: () => e.canLoadMore?.() !== !1,
load: async () => {
@@ -60870,7 +60871,7 @@ function Lxe(e) {
});
}
function Rxe({ view: e, media: t, data: n, visible: r, context: i, photoSize: a, photoLayout: o, imagesOnly: s, actions: c, clearFilters: l }) {
- let u = QZ({
+ let u = ZZ({
view: e,
revision: 0,
actions: c
@@ -60888,7 +60889,7 @@ function Rxe({ view: e, media: t, data: n, visible: r, context: i, photoSize: a,
"data-images-only": String(s)
} : {}, m = r.length ? r.map((e) => {
let n = Li(e, t).id, r = d.byId.get(e.primary?.source_id)?.author_key;
- return /* @__PURE__ */ (0, O.jsx)(UZ, {
+ return /* @__PURE__ */ (0, O.jsx)(HZ, {
group: e,
authorSources: r && d.byAuthor.get(r) || [],
media: t,
@@ -60918,17 +60919,17 @@ function zxe({ searched: e, clear: t, actions: n, sources: r }) {
return /* @__PURE__ */ (0, O.jsx)("div", {
"data-follow-empty": "",
className: "contents",
- children: /* @__PURE__ */ (0, O.jsx)(Lz, {
- icon: zz(e ? "search-x" : "rss"),
+ children: /* @__PURE__ */ (0, O.jsx)(Iz, {
+ icon: Rz(e ? "search-x" : "rss"),
title: e ? "当前筛选下没有更新" : "还没有抓到更新",
- actions: e ? /* @__PURE__ */ (0, O.jsx)(q, {
+ actions: e ? /* @__PURE__ */ (0, O.jsx)(J, {
size: "small",
onClick: t,
children: "清除筛选"
}) : r.length ? /* @__PURE__ */ (0, O.jsx)(pxe, {
sources: r,
report: n.checkReport
- }) : /* @__PURE__ */ (0, O.jsx)(YF, {
+ }) : /* @__PURE__ */ (0, O.jsx)(JF, {
size: "small",
href: "/subscriptions?tab=add",
children: "添加关注"
@@ -60937,7 +60938,7 @@ function zxe({ searched: e, clear: t, actions: n, sources: r }) {
})
});
}
-function $Z(e) {
+function QZ(e) {
return {
x0: 0,
y0: 0,
@@ -60945,7 +60946,7 @@ function $Z(e) {
y1: e.height
};
}
-function eQ(e) {
+function $Z(e) {
return {
x0: Math.round(e.x0),
y0: Math.round(e.y0),
@@ -60953,21 +60954,21 @@ function eQ(e) {
y1: Math.round(e.y1)
};
}
-function tQ(e) {
+function eQ(e) {
return !!e && Number.isFinite(e.width) && Number.isFinite(e.height) && e.width > 0 && e.height > 0;
}
-function nQ(e, t) {
- if (!tQ(e)) return {
+function tQ(e, t) {
+ if (!eQ(e)) return {
x0: 0,
y0: 0,
x1: 0,
y1: 0
};
- if (t == null || !(t > 0)) return $Z(e);
+ if (t == null || !(t > 0)) return QZ(e);
let n = e.width, r = n / t;
r > e.height && (r = e.height, n = r * t);
let i = (e.width - n) / 2, a = (e.height - r) / 2;
- return eQ({
+ return $Z({
x0: i,
y0: a,
x1: i + n,
@@ -60975,9 +60976,9 @@ function nQ(e, t) {
});
}
function Bxe(e, t) {
- if (!tQ(e) || !(t > 0)) return $Z(e);
+ if (!eQ(e) || !(t > 0)) return QZ(e);
let n = Math.min(e.width, e.height * t);
- return eQ({
+ return $Z({
x0: e.width - n,
y0: 0,
x1: e.width,
@@ -60985,8 +60986,8 @@ function Bxe(e, t) {
});
}
function Vxe(e, t, n) {
- if (!tQ(t) || !(n > 0)) return $Z(t);
- let r = rQ(e, t), i = nQ({
+ if (!eQ(t) || !(n > 0)) return QZ(t);
+ let r = nQ(e, t), i = tQ({
width: r.x1 - r.x0,
height: r.y1 - r.y0
}, n);
@@ -60997,8 +60998,8 @@ function Vxe(e, t, n) {
y1: r.y0 + i.y1
};
}
-function rQ(e, t, n = null, r = "width") {
- if (!tQ(t)) return {
+function nQ(e, t, n = null, r = "width") {
+ if (!eQ(t)) return {
x0: 0,
y0: 0,
x1: 0,
@@ -61007,26 +61008,26 @@ function rQ(e, t, n = null, r = "width") {
let i = Math.min(16, t.width, t.height), a = Math.max(i, Math.min(e.x1 - e.x0, t.width)), o = Math.max(i, Math.min(e.y1 - e.y0, t.height));
n != null && n > 0 && (r === "width" ? (o = a / n, o > t.height && (o = t.height, a = o * n)) : (a = o * n, a > t.width && (a = t.width, o = a / n)), a > t.width && (a = t.width, o = a / n));
let s = Math.max(0, Math.min(e.x0, t.width - a)), c = Math.max(0, Math.min(e.y0, t.height - o));
- return eQ({
+ return $Z({
x0: s,
y0: c,
x1: s + a,
y1: c + o
});
}
-function iQ(e, t, n, r) {
+function rQ(e, t, n, r) {
let i = e.x1 - e.x0, a = e.y1 - e.y0, o = Math.max(0, Math.min(e.x0 + t, r.width - i)), s = Math.max(0, Math.min(e.y0 + n, r.height - a));
- return eQ({
+ return $Z({
x0: o,
y0: s,
x1: o + i,
y1: s + a
});
}
-function aQ(e, t, n, r = null) {
- if (!tQ(n) || !(t > 0)) return e;
+function iQ(e, t, n, r = null) {
+ if (!eQ(n) || !(t > 0)) return e;
let i = (e.x0 + e.x1) / 2, a = (e.y0 + e.y1) / 2, o = (e.x1 - e.x0) * t, s = (e.y1 - e.y0) * t;
- return rQ({
+ return nQ({
x0: i - o / 2,
y0: a - s / 2,
x1: i + o / 2,
@@ -61040,10 +61041,10 @@ function Hxe(e, t, n, r, i = null) {
x1: Math.max(e.x0 + 1, t),
y1: Math.max(e.y0 + 1, n)
};
- return rQ(a, r, i, (a.x1 - a.x0) / Math.max(1, a.y1 - a.y0) > (i ?? 1) ? "height" : "width");
+ return nQ(a, r, i, (a.x1 - a.x0) / Math.max(1, a.y1 - a.y0) > (i ?? 1) ? "height" : "width");
}
function Uxe(e, t) {
- return tQ(t) ? {
+ return eQ(t) ? {
left: e.x0 / t.width * 100,
top: e.y0 / t.height * 100,
width: (e.x1 - e.x0) / t.width * 100,
@@ -61056,7 +61057,7 @@ function Uxe(e, t) {
};
}
function Wxe(e, t) {
- if (!tQ(t)) return {
+ if (!eQ(t)) return {
size: "cover",
position: "50% 50%"
};
@@ -61075,7 +61076,7 @@ function Gxe(e, t) {
height: `${t.height / r * 100}%`
};
}
-function oQ(e, t, n) {
+function aQ(e, t, n) {
return t > 0 ? e * n / t : 0;
}
function Kxe(e, t) {
@@ -61083,8 +61084,8 @@ function Kxe(e, t) {
}
//#endregion
//#region src/react/crop/crop-frame.tsx
-var qxe = .02, sQ = 1.08;
-function cQ({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o }) {
+var qxe = .02, oQ = 1.08;
+function sQ({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o }) {
let s = (0, D.useRef)(null), c = (0, D.useRef)(null), [l, u] = (0, D.useState)(!1), [d, f] = (0, D.useState)(null);
(0, D.useEffect)(() => {
u(!1);
@@ -61103,8 +61104,8 @@ function cQ({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
dx: 0,
dy: 0
} : {
- dx: oQ(e, n.clientWidth, r.width),
- dy: oQ(t, n.clientHeight, r.height)
+ dx: aQ(e, n.clientWidth, r.width),
+ dy: aQ(t, n.clientHeight, r.height)
};
}, [r]);
function m(e) {
@@ -61121,7 +61122,7 @@ function cQ({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
let n = c.current, a = s.current;
if (!n || !a || !r) return;
let o = p(e.clientX - n.x, e.clientY - n.y);
- n.mode === "move" ? i(iQ(n.box, o.dx, o.dy, r)) : i(Hxe(n.box, n.box.x0 + (n.box.x1 - n.box.x0) + o.dx, n.box.y0 + (n.box.y1 - n.box.y0) + o.dy, r, t));
+ n.mode === "move" ? i(rQ(n.box, o.dx, o.dy, r)) : i(Hxe(n.box, n.box.x0 + (n.box.x1 - n.box.x0) + o.dx, n.box.y0 + (n.box.y1 - n.box.y0) + o.dy, r, t));
}
function g(e) {
c.current && (c.current = null, e.currentTarget.hasPointerCapture(e.pointerId) && e.currentTarget.releasePointerCapture(e.pointerId));
@@ -61134,9 +61135,9 @@ function cQ({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
ArrowUp: [0, -a],
ArrowDown: [0, a]
};
- o[e.key] ? (e.preventDefault(), i(iQ(n, o[e.key][0], o[e.key][1], r))) : (e.key === "+" || e.key === "=" || e.key === "-") && (e.preventDefault(), i(aQ(n, e.key === "-" ? 1 / sQ : sQ, r, t)));
+ o[e.key] ? (e.preventDefault(), i(rQ(n, o[e.key][0], o[e.key][1], r))) : (e.key === "+" || e.key === "=" || e.key === "-") && (e.preventDefault(), i(iQ(n, e.key === "-" ? 1 / oQ : oQ, r, t)));
}
- let v = n && r ? Uxe(rQ(n, r, t), r) : null, y = v ? Kxe(v, d) : !1, b = v ? {
+ let v = n && r ? Uxe(nQ(n, r, t), r) : null, y = v ? Kxe(v, d) : !1, b = v ? {
"--crop-l": `${v.left}%`,
"--crop-t": `${v.top}%`,
"--crop-w": `${v.width}%`,
@@ -61155,7 +61156,7 @@ function cQ({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
draggable: !1,
onLoad: (e) => {
let t = e.currentTarget;
- tQ({
+ eQ({
width: t.naturalWidth,
height: t.naturalHeight
}) && a({
@@ -61194,7 +61195,7 @@ function cQ({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
onPointerCancel: g,
onKeyDown: _,
onWheel: (e) => {
- n && r && i(aQ(n, e.deltaY > 0 ? sQ : 1 / sQ, r, t));
+ n && r && i(iQ(n, e.deltaY > 0 ? oQ : 1 / oQ, r, t));
},
className: "absolute left-(--crop-l) top-(--crop-t) h-(--crop-h) w-(--crop-w) cursor-move touch-none outline-none ring-2 ring-border-focus-ring ring-inset focus-visible:ring-4",
children: /* @__PURE__ */ (0, O.jsx)("span", {
@@ -61217,13 +61218,13 @@ function cQ({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
}
//#endregion
//#region src/react/avatar-picker/avatar-picker.ts
-var Jxe = "/api/avatar-choices", lQ = "/api/avatar-pick", Yxe = "/api/avatar-code-cover", uQ = "/api/avatar-frame", Xxe = "/avatar-choice", dQ = (e, t) => [
+var Jxe = "/api/avatar-choices", cQ = "/api/avatar-pick", Yxe = "/api/avatar-code-cover", lQ = "/api/avatar-frame", Xxe = "/avatar-choice", uQ = (e, t) => [
"avatar-choices",
e,
t
-], fQ = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, pQ = (e, t, n, r = "") => `${Xxe}${fQ(e, t)}&ref=${encodeURIComponent(n)}` + (r ? `&v=${encodeURIComponent(r)}` : ""), mQ = (e, t) => t.startsWith("cover:") || t.endsWith(":cover") ? e.version : "", Zxe = (e, t, n) => V(Jxe + fQ(e, t), n), Qxe = (e) => H(Yxe, { code: e });
+], dQ = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, fQ = (e, t, n, r = "") => `${Xxe}${dQ(e, t)}&ref=${encodeURIComponent(n)}` + (r ? `&v=${encodeURIComponent(r)}` : ""), pQ = (e, t) => t.startsWith("cover:") || t.endsWith(":cover") ? e.version : "", Zxe = (e, t, n) => V(Jxe + dQ(e, t), n), Qxe = (e) => H(Yxe, { code: e });
async function $xe(e, t, n) {
- let r = await H(uQ, {
+ let r = await H(lQ, {
kind: e,
id: t,
ref: n.ref
@@ -61236,12 +61237,12 @@ async function $xe(e, t, n) {
bases: r.bases
};
}
-var eSe = (e, t, n) => H(uQ, {
+var eSe = (e, t, n) => H(lQ, {
kind: e,
id: t,
url: n
-}), tSe = (e, t, n) => hQ(`${uQ}${fQ(e, t)}&name=${encodeURIComponent(n.name)}`, n);
-async function hQ(e, t) {
+}), tSe = (e, t, n) => mQ(`${lQ}${dQ(e, t)}&name=${encodeURIComponent(n.name)}`, n);
+async function mQ(e, t) {
let n = await fetch(e, {
method: "POST",
credentials: "same-origin",
@@ -61250,17 +61251,17 @@ async function hQ(e, t) {
if (n.ok) return r;
throw new On(r?.error || `请求失败(${n.status})`, n.status, r);
}
-function gQ(e, t, n) {
+function hQ(e, t, n) {
let r = t.width === e.width && t.height === e.height;
- return e.focus && r ? Vxe(e.focus, t, n) : nQ(t, n);
+ return e.focus && r ? Vxe(e.focus, t, n) : tQ(t, n);
}
-var nSe = (e) => e.crop && tQ({
+var nSe = (e) => e.crop && eQ({
width: e.width,
height: e.height
});
async function rSe(e, t, n) {
if (!("file" in n)) {
- await H(lQ, {
+ await H(cQ, {
kind: e,
id: t,
...n
@@ -61273,19 +61274,19 @@ async function rSe(e, t, n) {
i.x1,
i.y1
].join(",")}` : "";
- await hQ(`${lQ}${fQ(e, t)}&name=${encodeURIComponent(r.name)}${a}`, r);
+ await mQ(`${cQ}${dQ(e, t)}&name=${encodeURIComponent(r.name)}${a}`, r);
}
-var _Q = 2;
-function vQ(e, t) {
+var gQ = 2;
+function _Q(e, t) {
if (!t) return e;
let n = t.matched_names.filter((t) => t !== e);
- return n.length ? `${e}:图库里按${`「${n.slice(0, _Q).join("」「")}」`}${n.length > _Q ? `等 ${n.length.toLocaleString()} 个名字` : ""}找到的。` : t.choices.length ? `${e}:换上的那张留在本机,随时能换回来。` : `${e}:还没有备选图片,可输入番号、图片地址或从本机选择。`;
+ return n.length ? `${e}:图库里按${`「${n.slice(0, gQ).join("」「")}」`}${n.length > gQ ? `等 ${n.length.toLocaleString()} 个名字` : ""}找到的。` : t.choices.length ? `${e}:换上的那张留在本机,随时能换回来。` : `${e}:还没有备选图片,可输入番号、图片地址或从本机选择。`;
}
var iSe = (e) => e < 48 ? `${Math.max(1, Math.round(e))} 小时` : `${Math.floor(e / 24)} 天`;
function aSe(e) {
return !e || !e.index_stale || e.choices.some((e) => e.source === "gfriends") ? "" : e.index_age_hours === null ? "图库索引还没取过,只能从用过的图里选。" : `图库索引 ${iSe(e.index_age_hours)}没更新,新收的人像这里还查不到。`;
}
-var yQ = (e) => e.cast > 1, oSe = (e) => yQ(e) ? `${e.label}:${e.cast.toLocaleString()} 人合演,先找到她自己的脸,再拖动方框选一块。` : `${e.label}:拖动方框选一块,滚轮或角上那枚方块改大小。`, sSe = {
+var vQ = (e) => e.cast > 1, oSe = (e) => vQ(e) ? `${e.label}:${e.cast.toLocaleString()} 人合演,先找到她自己的脸,再拖动方框选一块。` : `${e.label}:拖动方框选一块,滚轮或角上那枚方块改大小。`, sSe = {
gfriends: "图库",
history: "用过的",
asset: "作品画面",
@@ -61306,7 +61307,7 @@ function cSe(e) {
let n = Number(t.replace("cell", ""));
return Number.isFinite(n) ? `第 ${n + 1} 格` : t;
}
-var lSe = (e) => `${sSe[e.source] || e.source} · ${e.label}` + (e.width ? ` · ${e.width}×${e.height}` : "") + (yQ(e) ? ` · ${e.cast.toLocaleString()} 人合演` : "") + (e.found_by ? ` · 按「${e.found_by}」找到` : "") + (e.source === "asset" && e.detail && e.detail !== e.label ? ` · ${e.detail}` : ""), uSe = 8, dSe = 3 / 4;
+var lSe = (e) => `${sSe[e.source] || e.source} · ${e.label}` + (e.width ? ` · ${e.width}×${e.height}` : "") + (vQ(e) ? ` · ${e.cast.toLocaleString()} 人合演` : "") + (e.found_by ? ` · 按「${e.found_by}」找到` : "") + (e.source === "asset" && e.detail && e.detail !== e.label ? ` · ${e.detail}` : ""), uSe = 8, dSe = 3 / 4;
async function fSe(e, t, n) {
switch (n.via) {
case "choice": return { choice: await $xe(e, t, n.choice) };
@@ -61333,7 +61334,7 @@ function pSe({ kind: e, entityId: t, name: n, onPicked: r }) {
className: "size-4"
})
})
- }), /* @__PURE__ */ (0, O.jsx)(Pz, {
+ }), /* @__PURE__ */ (0, O.jsx)(Nz, {
isOpen: i,
onOpenChange: a,
width: "avatar-picker",
@@ -61348,13 +61349,13 @@ function pSe({ kind: e, entityId: t, name: n, onPicked: r }) {
})] });
}
function mSe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
- let a = (0, D.useRef)(null), o = aV(), [s, c] = (0, D.useState)(""), [l, u] = (0, D.useState)(""), [d, f] = (0, D.useState)(null), p = dQ(e, t), m = (0, D.useRef)(!1), h = St({
+ let a = (0, D.useRef)(null), o = iV(), [s, c] = (0, D.useState)(""), [l, u] = (0, D.useState)(""), [d, f] = (0, D.useState)(null), p = uQ(e, t), m = (0, D.useRef)(!1), h = St({
queryKey: p,
queryFn: ({ signal: n }) => Zxe(e, t, n),
retryOnMount: !0
});
(0, D.useEffect)(() => () => {
- m.current && U.removeQueries({ queryKey: dQ(e, t) });
+ m.current && U.removeQueries({ queryKey: uQ(e, t) });
}, [e, t]);
let g = Ct({
mutationFn: (n) => rSe(e, t, n),
@@ -61387,35 +61388,35 @@ function mSe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsxs)("div", {
className: "flex shrink-0 items-start gap-4 p-5",
children: [
- /* @__PURE__ */ (0, O.jsx)(Fz, { children: /* @__PURE__ */ (0, O.jsx)(Tz, { className: "size-6" }) }),
+ /* @__PURE__ */ (0, O.jsx)(Pz, { children: /* @__PURE__ */ (0, O.jsx)(wz, { className: "size-6" }) }),
/* @__PURE__ */ (0, O.jsxs)("div", {
className: "flex min-w-0 flex-1 flex-col gap-2",
children: [
/* @__PURE__ */ (0, O.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, O.jsx)(SI, {
+ children: [/* @__PURE__ */ (0, O.jsx)(xI, {
slot: "title",
className: "text-title-3-semibold text-text-primary",
children: d ? "框出头像那一块" : "更换头像"
- }), !d && S.length ? /* @__PURE__ */ (0, O.jsxs)(gZ, {
+ }), !d && S.length ? /* @__PURE__ */ (0, O.jsxs)(hZ, {
color: "soft",
children: [S.length.toLocaleString(), " 张可选"]
}) : null]
}),
/* @__PURE__ */ (0, O.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: d ? oSe(d.choice) : vQ(n, x)
+ children: d ? oSe(d.choice) : _Q(n, x)
}),
- T ? /* @__PURE__ */ (0, O.jsx)(Iz, {
+ T ? /* @__PURE__ */ (0, O.jsx)(Fz, {
tone: "neutral",
children: T
}) : null,
- C ? /* @__PURE__ */ (0, O.jsx)(Iz, {
+ C ? /* @__PURE__ */ (0, O.jsx)(Fz, {
tone: "error",
- action: E ? /* @__PURE__ */ (0, O.jsx)(q, {
+ action: E ? /* @__PURE__ */ (0, O.jsx)(J, {
variant: "secondary",
size: "small",
- ...Vz(h.isFetching),
+ ...Bz(h.isFetching),
onClick: () => {
h.isFetching || h.refetch();
},
@@ -61425,8 +61426,8 @@ function mSe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
}) : null
]
}),
- /* @__PURE__ */ (0, O.jsx)(NF, {
- icon: pz,
+ /* @__PURE__ */ (0, O.jsx)(MF, {
+ icon: fz,
size: "small",
"aria-label": "关闭",
onClick: i
@@ -61466,7 +61467,7 @@ function mSe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
"data-avatar-choice": !0,
"aria-selected": n.current,
title: lSe(n),
- ...Vz(w),
+ ...Bz(w),
onClick: () => {
w || (n.crop ? (g.reset(), _.reset(), f({ choice: n })) : _.mutate({
via: "choice",
@@ -61476,7 +61477,7 @@ function mSe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
className: "relative flex cursor-pointer flex-col gap-1 overflow-hidden rounded-2lg border border-separator-border bg-background-secondary-default pb-1 text-center text-caption-1-regular text-text-secondary outline-none hover:border-border-button-hover hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-selected:border-border-focus-ring aria-selected:bg-background-tertiary-default aria-selected:text-text-primary aria-disabled:cursor-progress aria-disabled:opacity-60",
children: [
/* @__PURE__ */ (0, O.jsx)(hSe, {
- src: pQ(e, t, n.ref, mQ(n, n.ref)),
+ src: fQ(e, t, n.ref, pQ(n, n.ref)),
choice: n
}),
/* @__PURE__ */ (0, O.jsx)("span", {
@@ -61485,15 +61486,15 @@ function mSe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
}),
n.current ? /* @__PURE__ */ (0, O.jsx)("span", {
className: "absolute top-1 left-1",
- children: /* @__PURE__ */ (0, O.jsx)(gZ, {
+ children: /* @__PURE__ */ (0, O.jsx)(hZ, {
variant: "caption",
color: "gray",
children: "在用"
})
}) : null,
- yQ(n) ? /* @__PURE__ */ (0, O.jsx)("span", {
+ vQ(n) ? /* @__PURE__ */ (0, O.jsx)("span", {
className: "absolute top-1 right-1",
- children: /* @__PURE__ */ (0, O.jsxs)(gZ, {
+ children: /* @__PURE__ */ (0, O.jsxs)(hZ, {
variant: "caption",
color: "gray",
children: [n.cast.toLocaleString(), " 人"]
@@ -61515,26 +61516,26 @@ function mSe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
},
children: [/* @__PURE__ */ (0, O.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, O.jsx)(Nz, {
+ children: /* @__PURE__ */ (0, O.jsx)(Mz, {
"aria-label": "番号",
placeholder: "番号,如 ABW-232",
value: l,
onChange: u
})
- }), /* @__PURE__ */ (0, O.jsx)(q, {
+ }), /* @__PURE__ */ (0, O.jsx)(J, {
type: "submit",
variant: "secondary",
disabled: !l.trim(),
- ...Vz(v("code")),
+ ...Bz(v("code")),
children: "取封面来框"
})]
}), /* @__PURE__ */ (0, O.jsxs)("div", {
className: "flex flex-wrap items-center gap-3",
children: [
- /* @__PURE__ */ (0, O.jsx)(q, {
+ /* @__PURE__ */ (0, O.jsx)(J, {
variant: "secondary",
onClick: () => a.current?.click(),
- ...Vz(v("file")),
+ ...Bz(v("file")),
children: "从本机选图片"
}),
/* @__PURE__ */ (0, O.jsx)("input", {
@@ -61554,17 +61555,17 @@ function mSe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
className: "flex min-w-0 flex-1 basis-56 items-center gap-2",
children: [/* @__PURE__ */ (0, O.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, O.jsx)(Nz, {
+ children: /* @__PURE__ */ (0, O.jsx)(Mz, {
type: "url",
"aria-label": "图片地址",
placeholder: "https://…",
value: s,
onChange: c
})
- }), /* @__PURE__ */ (0, O.jsx)(q, {
+ }), /* @__PURE__ */ (0, O.jsx)(J, {
variant: "secondary",
disabled: !s.trim(),
- ...Vz(v("url")),
+ ...Bz(v("url")),
onClick: () => {
w || _.mutate({
via: "url",
@@ -61586,7 +61587,7 @@ function hSe({ src: e, choice: t }) {
let s = {
width: t.width,
height: t.height
- }, c = nSe(t) ? Gxe(gQ(t, s, dSe), s) : null, l = r || a ? !0 : void 0;
+ }, c = nSe(t) ? Gxe(hQ(t, s, dSe), s) : null, l = r || a ? !0 : void 0;
return /* @__PURE__ */ (0, O.jsxs)("span", {
"data-choice-lost": a || void 0,
className: "relative block w-full aspect-avatar-choice overflow-hidden",
@@ -61613,7 +61614,7 @@ function hSe({ src: e, choice: t }) {
});
}
function gSe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a }) {
- let o = n.bases.length ? n.bases : [n.ref], [s, c] = (0, D.useState)(o[0]), [l, u] = (0, D.useState)(null), [d, f] = (0, D.useState)(null), p = mQ(n, s), m = pQ(e, t, s, p), h = aV();
+ let o = n.bases.length ? n.bases : [n.ref], [s, c] = (0, D.useState)(o[0]), [l, u] = (0, D.useState)(null), [d, f] = (0, D.useState)(null), p = pQ(n, s), m = fQ(e, t, s, p), h = iV();
function g(e) {
c(e), u(null), f(null);
}
@@ -61621,14 +61622,14 @@ function gSe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a })
return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsxs)("div", {
ref: h,
className: "flex min-h-0 flex-1 flex-col items-center gap-4 overflow-y-auto border-t border-separator-border px-5 py-4",
- children: [m ? /* @__PURE__ */ (0, O.jsx)(cQ, {
+ children: [m ? /* @__PURE__ */ (0, O.jsx)(sQ, {
src: m,
aspect: 1,
box: d,
size: l,
label: `${n.label} 的头像取景框`,
onSize: (e) => {
- u(e), tQ(e) && f(s === n.ref ? gQ(n, e, 1) : nQ(e, 1));
+ u(e), eQ(e) && f(s === n.ref ? hQ(n, e, 1) : tQ(e, 1));
},
onBox: f
}) : null, o.length > 1 ? /* @__PURE__ */ (0, O.jsx)("div", {
@@ -61659,23 +61660,23 @@ function gSe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a })
}), /* @__PURE__ */ (0, O.jsxs)("div", {
className: "flex flex-1 flex-wrap items-center justify-end gap-3",
children: [
- /* @__PURE__ */ (0, O.jsx)(q, {
+ /* @__PURE__ */ (0, O.jsx)(J, {
variant: "secondary",
onClick: i,
- ...Vz(r),
+ ...Bz(r),
children: "返回备选图片"
}),
- n.crop ? null : /* @__PURE__ */ (0, O.jsx)(q, {
+ n.crop ? null : /* @__PURE__ */ (0, O.jsx)(J, {
variant: "secondary",
- ...Vz(r),
+ ...Bz(r),
onClick: () => {
r || a(null);
},
children: "整张使用"
}),
- /* @__PURE__ */ (0, O.jsx)(q, {
+ /* @__PURE__ */ (0, O.jsx)(J, {
disabled: !d || !l,
- ...Vz(r),
+ ...Bz(r),
onClick: () => {
d && !r && a({
ref: s,
@@ -61691,8 +61692,8 @@ function gSe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a })
}
//#endregion
//#region src/react/components/source-picture.tsx
-var bQ = (e, t, n = 0) => `/jav-image?code=${encodeURIComponent(e)}&image=${encodeURIComponent(t)}${n ? `&attempt=${n}` : ""}`;
-function xQ({ item: e, image: t, thumbnail: n = !1 }) {
+var yQ = (e, t, n = 0) => `/jav-image?code=${encodeURIComponent(e)}&image=${encodeURIComponent(t)}${n ? `&attempt=${n}` : ""}`;
+function bQ({ item: e, image: t, thumbnail: n = !1 }) {
let [r, i] = (0, D.useState)(0), [a, o] = (0, D.useState)(""), [s, c] = (0, D.useState)(""), l = t === "cover" && e.has_cover, u = !l && (t !== "cover" || e.source_image), d = n ? "" : t === "cover" ? `${e.code} 封面` : `${e.code} 预览 ${Number(t) + 1}`;
if (!u) {
let r = l ? Aa(e, !0) : t === "cover" && !e.source_image ? e.cover_url : "";
@@ -61703,18 +61704,18 @@ function xQ({ item: e, image: t, thumbnail: n = !1 }) {
referrerPolicy: "no-referrer"
}) : n ? /* @__PURE__ */ (0, O.jsx)("span", { children: "预览未取得" }) : /* @__PURE__ */ (0, O.jsx)("div", {
"data-jav-picture-wait": "",
- children: /* @__PURE__ */ (0, O.jsx)(Iz, {
+ children: /* @__PURE__ */ (0, O.jsx)(Fz, {
tone: "neutral",
children: "封面未取得"
})
});
}
- let f = bQ(e.code, t, r);
+ let f = yQ(e.code, t, r);
if (s === f) return n ? /* @__PURE__ */ (0, O.jsx)("span", { children: "预览未取得" }) : /* @__PURE__ */ (0, O.jsx)("div", {
"data-jav-picture-wait": "",
- children: /* @__PURE__ */ (0, O.jsx)(Iz, {
+ children: /* @__PURE__ */ (0, O.jsx)(Fz, {
tone: "neutral",
- action: /* @__PURE__ */ (0, O.jsx)(q, {
+ action: /* @__PURE__ */ (0, O.jsx)(J, {
variant: "secondary",
onClick: () => i((e) => e + 1),
children: "立即重试"
@@ -61745,7 +61746,7 @@ function xQ({ item: e, image: t, thumbnail: n = !1 }) {
}
//#endregion
//#region src/react/components/source-avatar.tsx
-function SQ({ code: e, person: t, detail: n = !1 }) {
+function xQ({ code: e, person: t, detail: n = !1 }) {
let r = (0, D.useRef)(null), [i, a] = (0, D.useState)(n || typeof IntersectionObserver > "u");
(0, D.useEffect)(() => {
if (!r.current || i) return;
@@ -61759,7 +61760,7 @@ function SQ({ code: e, person: t, detail: n = !1 }) {
"data-source-initial": "",
children: xn(t.name)
}), i && t.source_actor_id ? /* @__PURE__ */ (0, O.jsx)("img", {
- src: bQ(e, `actor:${t.source_actor_id}`),
+ src: yQ(e, `actor:${t.source_actor_id}`),
alt: "",
"data-drop": "self"
}) : null] });
@@ -61770,8 +61771,8 @@ function SQ({ code: e, person: t, detail: n = !1 }) {
}
//#endregion
//#region src/react/feed-new/feed-new-row.tsx
-function CQ({ feedNew: e, host: t, wire: n, act: r, settled: i }) {
- let a = (0, D.useContext)(uU), o = (0, D.useRef)(null), [s, c] = (0, D.useState)([]), l = e?.items.length ? e.html : "";
+function SQ({ feedNew: e, host: t, wire: n, act: r, settled: i }) {
+ let a = (0, D.useContext)(lU), o = (0, D.useRef)(null), [s, c] = (0, D.useState)([]), l = e?.items.length ? e.html : "";
(0, D.useLayoutEffect)(() => {
t.removeAttribute("aria-busy"), t.hidden = !l, e && i?.(!!l);
}, [
@@ -61803,7 +61804,7 @@ function CQ({ feedNew: e, host: t, wire: n, act: r, settled: i }) {
u(e);
},
dangerouslySetInnerHTML: { __html: l }
- }), s.map((e, t) => (0, Tt.createPortal)(/* @__PURE__ */ (0, O.jsx)(SQ, {
+ }), s.map((e, t) => (0, Tt.createPortal)(/* @__PURE__ */ (0, O.jsx)(xQ, {
code: e.dataset.code,
person: {
name: e.dataset.name,
@@ -61813,7 +61814,7 @@ function CQ({ feedNew: e, host: t, wire: n, act: r, settled: i }) {
}
//#endregion
//#region src/react/entity-hero/glyph.tsx
-function wQ({ name: e }) {
+function CQ({ name: e }) {
let { wide: t, viewBox: n } = Gt(e);
return /* @__PURE__ */ (0, O.jsx)("svg", {
viewBox: n,
@@ -61824,20 +61825,20 @@ function wQ({ name: e }) {
}
//#endregion
//#region src/react/entity-hero/hero-pop.tsx
-function TQ(e, t) {
+function wQ(e, t) {
t.style.removeProperty("max-height");
let n = e.getBoundingClientRect(), r = t.getBoundingClientRect();
t.style.left = `${Math.max(8, Math.min(innerWidth - r.width - 8, n.left))}px`;
let i = n.bottom + 8, a = innerHeight - 8 - i, o = n.top - 16, s = r.height <= a || r.height > o && a >= o, c = Math.max(0, s ? a : o);
r.height > c && (t.style.maxHeight = `${c}px`), t.style.top = `${s ? i : n.top - 8 - Math.min(r.height, c)}px`;
}
-var EQ = (e) => !!e?.isConnected && e.matches(":popover-open");
-function DQ(e, t, n, r) {
+var TQ = (e) => !!e?.isConnected && e.matches(":popover-open");
+function EQ(e, t, n, r) {
let i = (0, D.useRef)(r);
i.current = r, (0, D.useEffect)(() => {
if (!e) return;
let r = () => {
- t.current && EQ(n.current) ? TQ(t.current, n.current) : i.current();
+ t.current && TQ(n.current) ? wQ(t.current, n.current) : i.current();
};
return addEventListener("scroll", r, {
capture: !0,
@@ -61851,17 +61852,17 @@ function DQ(e, t, n, r) {
n
]);
}
-function OQ({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
+function DQ({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
let o = (0, D.useRef)(null), s = (0, D.useRef)(null), [c, l] = (0, D.useState)(!1), u = (0, D.useRef)(!1), d = (0, D.useRef)(0), f = () => {
- clearTimeout(d.current), u.current = !1, EQ(s.current) && s.current.hidePopover(), l(!1);
+ clearTimeout(d.current), u.current = !1, TQ(s.current) && s.current.hidePopover(), l(!1);
}, p = () => {
- clearTimeout(d.current), s.current && o.current && !EQ(s.current) && (s.current.showPopover(), TQ(o.current, s.current), l(!0));
+ clearTimeout(d.current), s.current && o.current && !TQ(s.current) && (s.current.showPopover(), wQ(o.current, s.current), l(!0));
}, m = () => {
clearTimeout(d.current), d.current = window.setTimeout(() => {
!u.current && !o.current?.matches(":hover,:focus-visible") && !s.current?.matches(":hover") && f();
}, 150);
};
- return DQ(c, o, s, f), (0, D.useEffect)(() => {
+ return EQ(c, o, s, f), (0, D.useEffect)(() => {
if (!c) return;
let e = (e) => {
let t = e.target;
@@ -61887,7 +61888,7 @@ function OQ({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
u.current ? f() : (p(), u.current = !0);
},
onKeyDown: (e) => {
- e.key === "Escape" && EQ(s.current) && (e.preventDefault(), f());
+ e.key === "Escape" && TQ(s.current) && (e.preventDefault(), f());
},
children: ["+", t]
}), /* @__PURE__ */ (0, O.jsxs)("div", {
@@ -61907,14 +61908,14 @@ function OQ({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
}
function _Se({ following: e, busy: t, onToggle: n, tip: r }) {
let i = (0, D.useRef)(null), a = (0, D.useRef)(null), o = (0, D.useRef)(null), [s, c] = (0, D.useState)(!1), l = (0, D.useRef)(!1), u = () => {
- EQ(o.current) && o.current.hidePopover(), c(!1);
+ TQ(o.current) && o.current.hidePopover(), c(!1);
}, d = () => {
- !l.current && o.current && i.current && !EQ(o.current) && (o.current.showPopover(), TQ(i.current, o.current), c(!0));
+ !l.current && o.current && i.current && !TQ(o.current) && (o.current.showPopover(), wQ(i.current, o.current), c(!0));
}, f = () => {
l.current = !1, u();
};
- return DQ(s, i, o, () => c(!1)), (0, D.useEffect)(() => {
- i.current && EQ(o.current) && TQ(i.current, o.current);
+ return EQ(s, i, o, () => c(!1)), (0, D.useEffect)(() => {
+ i.current && TQ(o.current) && wQ(i.current, o.current);
}, [r]), /* @__PURE__ */ (0, O.jsxs)("label", {
ref: i,
"data-entry-feed": "",
@@ -61923,7 +61924,7 @@ function _Se({ following: e, busy: t, onToggle: n, tip: r }) {
a.current?.matches(":focus-visible") || f();
},
children: [
- /* @__PURE__ */ (0, O.jsx)(wQ, { name: "rss" }),
+ /* @__PURE__ */ (0, O.jsx)(CQ, { name: "rss" }),
/* @__PURE__ */ (0, O.jsx)("input", {
ref: a,
type: "checkbox",
@@ -61965,22 +61966,22 @@ function vSe({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
}, []), /* @__PURE__ */ (0, O.jsxs)(vue, {
isOpen: i,
onOpenChange: a,
- children: [/* @__PURE__ */ (0, O.jsx)(vI, {
+ children: [/* @__PURE__ */ (0, O.jsx)(_I, {
ref: o,
"data-namepick-toggle": "",
"aria-label": "名字与别名",
- children: /* @__PURE__ */ (0, O.jsx)(wQ, { name: "chevron-down" })
- }), /* @__PURE__ */ (0, O.jsx)(iR, {
+ children: /* @__PURE__ */ (0, O.jsx)(CQ, { name: "chevron-down" })
+ }), /* @__PURE__ */ (0, O.jsx)(rR, {
placement: "bottom start",
offset: 8,
containerPadding: 8,
- className: ZB,
+ className: XB,
"data-namepick-menu": "",
children: /* @__PURE__ */ (0, O.jsxs)(bue, {
"aria-label": "名字与别名",
"data-namepick-list": "",
children: [
- /* @__PURE__ */ (0, O.jsx)(fR, {
+ /* @__PURE__ */ (0, O.jsx)(dR, {
selectionMode: "single",
disallowEmptySelection: !0,
selectedKeys: [e],
@@ -61988,31 +61989,31 @@ function vSe({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
let r = [...t][0];
r && r !== e && n(r);
},
- children: t.map((e) => /* @__PURE__ */ (0, O.jsxs)(mR, {
+ children: t.map((e) => /* @__PURE__ */ (0, O.jsxs)(pR, {
id: e,
textValue: e,
"data-namepick-name": e,
- children: [/* @__PURE__ */ (0, O.jsx)(wQ, { name: "check" }), /* @__PURE__ */ (0, O.jsx)("span", { children: e })]
+ children: [/* @__PURE__ */ (0, O.jsx)(CQ, { name: "check" }), /* @__PURE__ */ (0, O.jsx)("span", { children: e })]
}, e))
}),
/* @__PURE__ */ (0, O.jsx)(tue, { "data-namepick-rule": "" }),
- /* @__PURE__ */ (0, O.jsx)(fR, { children: /* @__PURE__ */ (0, O.jsxs)(mR, {
+ /* @__PURE__ */ (0, O.jsx)(dR, { children: /* @__PURE__ */ (0, O.jsxs)(pR, {
id: "alias",
textValue: "添加别名",
"data-namepick-alias": "",
onAction: r,
- children: [/* @__PURE__ */ (0, O.jsx)(wQ, { name: "plus" }), /* @__PURE__ */ (0, O.jsx)("span", { children: "添加别名…" })]
+ children: [/* @__PURE__ */ (0, O.jsx)(CQ, { name: "plus" }), /* @__PURE__ */ (0, O.jsx)("span", { children: "添加别名…" })]
}) })
]
})
})]
});
}
-var ySe = (e) => e === "studio" || e === "agency", kQ = (e) => e === "performer" || e === "creator", bSe = (e) => e ? "已订阅新作,点击取消订阅" : "订阅新作";
+var ySe = (e) => e === "studio" || e === "agency", OQ = (e) => e === "performer" || e === "creator", bSe = (e) => e ? "已订阅新作,点击取消订阅" : "订阅新作";
function xSe(e) {
return [e.canonical_name, ...e.aliases || []].filter((e, t, n) => e && n.indexOf(e) === t);
}
-function AQ(e) {
+function kQ(e) {
if (e.agency) return {
name: e.agency.canonical_name,
linked: !0,
@@ -62024,13 +62025,13 @@ function AQ(e) {
linked: !1
} : null;
}
-function jQ(e, t) {
+function AQ(e, t) {
let n = pn(e, "performer"), r = un(t);
return r && [e.label, n].map(un).some((e) => e && (r.includes(e) || e.includes(r))) ? `${t} 官方资料` : n || e.label || "";
}
-var MQ = (e) => ({ site: on(e) });
+var jQ = (e) => ({ site: on(e) });
function SSe(e, t) {
- let n = AQ(e)?.name || "", r = (e.entry_links || []).filter((e) => e.slot === "pill").map((e) => ({
+ let n = kQ(e)?.name || "", r = (e.entry_links || []).filter((e) => e.slot === "pill").map((e) => ({
type: "icon",
url: e.url,
title: e.label,
@@ -62040,7 +62041,7 @@ function SSe(e, t) {
let t = e.retired_year ? `已于 ${e.retired_year} 年隐退` : "链接已失效";
return {
type: "gone",
- title: `${jQ(e, n)} · ${t}`
+ title: `${AQ(e, n)} · ${t}`
};
}
let r = e.url || "";
@@ -62048,11 +62049,11 @@ function SSe(e, t) {
type: "private",
label: e.label || e.hostname || "已记录"
};
- if (kQ(t) && e.link_kind !== "social") return {
+ if (OQ(t) && e.link_kind !== "social") return {
type: "icon",
url: r,
- title: jQ(e, n),
- mark: MQ(e)
+ title: AQ(e, n),
+ mark: jQ(e)
};
if (e.link_kind === "social") {
let t = ln(r);
@@ -62060,7 +62061,7 @@ function SSe(e, t) {
type: "icon",
url: r,
title: e.label || "",
- mark: t ? { brand: t } : MQ(e)
+ mark: t ? { brand: t } : jQ(e)
};
}
return {
@@ -62068,7 +62069,7 @@ function SSe(e, t) {
url: r,
title: e.label || "",
text: pn(e, t, i),
- mark: MQ(e)
+ mark: jQ(e)
};
});
return [...r, ...CSe(a)];
@@ -62081,7 +62082,7 @@ function CSe(e) {
sources: t.map((e) => e.label)
}];
}
-var NQ = (e) => (e.entry_links || []).filter((e) => e.slot === "mark");
+var MQ = (e) => (e.entry_links || []).filter((e) => e.slot === "mark");
function wSe(e) {
return [
[
@@ -62195,7 +62196,7 @@ function TSe(e) {
tags: e.tags
}), t;
}
-function PQ(e, t = 4) {
+function NQ(e, t = 4) {
let n = e.length > t + 1 ? t : e.length;
return {
shown: e.slice(0, n),
@@ -62225,7 +62226,7 @@ function DSe(e) {
});
}
function OSe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a, helpers: o }) {
- let s = kQ(e), c = ySe(e), l = s ? TSe(n.profile) : c ? wSe(n.company_profile) : [], u = SSe(n, e), d = NQ(n), f = e === "agency" ? [] : n.related_performers || [], p = (0, D.useRef)(null), m = (0, D.useRef)(null);
+ let s = OQ(e), c = ySe(e), l = s ? TSe(n.profile) : c ? wSe(n.company_profile) : [], u = SSe(n, e), d = MQ(n), f = e === "agency" ? [] : n.related_performers || [], p = (0, D.useRef)(null), m = (0, D.useRef)(null);
return (0, D.useEffect)(() => {
o.wireScroller(p.current);
}, [o, u.length]), (0, D.useEffect)(() => {
@@ -62267,7 +62268,7 @@ function OSe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
onChoose: a.chooseName,
onAddAlias: a.addAlias
}),
- n.id ? /* @__PURE__ */ (0, O.jsx)($z, { item: {
+ n.id ? /* @__PURE__ */ (0, O.jsx)(Qz, { item: {
entity_id: Number(n.id),
kind: e,
name: n.canonical_name || t,
@@ -62343,7 +62344,7 @@ function OSe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
}, e.k))
})
}) : null]
- }), i ? (0, Tt.createPortal)(/* @__PURE__ */ (0, O.jsx)(CQ, {
+ }), i ? (0, Tt.createPortal)(/* @__PURE__ */ (0, O.jsx)(SQ, {
feedNew: r,
host: i,
wire: o.wireFeedRow,
@@ -62360,7 +62361,7 @@ function kSe({ kind: e, name: t, helpers: n, people: r, company: i }) {
});
}
function ASe({ kind: e, entity: t, actions: n }) {
- let r = AQ(t), i = (e, t) => (r) => {
+ let r = kQ(t), i = (e, t) => (r) => {
r.preventDefault(), n.openEntity(e, t);
}, a = r ? r.linked ? /* @__PURE__ */ (0, O.jsx)("a", {
href: en("agency", r.name, r.id),
@@ -62373,11 +62374,11 @@ function ASe({ kind: e, entity: t, actions: n }) {
return /* @__PURE__ */ (0, O.jsxs)("div", {
"data-entity-alias": "meta",
children: [
- /* @__PURE__ */ (0, O.jsx)(FQ, { entity: t }),
+ /* @__PURE__ */ (0, O.jsx)(PQ, { entity: t }),
/* @__PURE__ */ (0, O.jsxs)("span", {
"data-meta-item": "",
title: "视频",
- children: [/* @__PURE__ */ (0, O.jsx)(wQ, { name: "film" }), /* @__PURE__ */ (0, O.jsx)("span", { children: o })]
+ children: [/* @__PURE__ */ (0, O.jsx)(CQ, { name: "film" }), /* @__PURE__ */ (0, O.jsx)("span", { children: o })]
}),
t.follow?.key ? /* @__PURE__ */ (0, O.jsx)(MSe, {
follow: t.follow,
@@ -62386,24 +62387,24 @@ function ASe({ kind: e, entity: t, actions: n }) {
a ? /* @__PURE__ */ (0, O.jsxs)("span", {
"data-meta-item": "",
title: "事务所",
- children: [/* @__PURE__ */ (0, O.jsx)(wQ, { name: "briefcase" }), /* @__PURE__ */ (0, O.jsx)("span", { children: a })]
+ children: [/* @__PURE__ */ (0, O.jsx)(CQ, { name: "briefcase" }), /* @__PURE__ */ (0, O.jsx)("span", { children: a })]
}) : null,
e ? /* @__PURE__ */ (0, O.jsxs)("div", {
"data-meta-item": "names",
children: [
- /* @__PURE__ */ (0, O.jsx)(wQ, { name: "id-card" }),
+ /* @__PURE__ */ (0, O.jsx)(CQ, { name: "id-card" }),
/* @__PURE__ */ (0, O.jsx)("span", {
"data-alias-names": "",
title: "别名",
children: e.names.map((e, t) => /* @__PURE__ */ (0, O.jsx)("span", { children: e }, t))
}),
- e.rest > 0 ? /* @__PURE__ */ (0, O.jsx)(OQ, {
+ e.rest > 0 ? /* @__PURE__ */ (0, O.jsx)(DQ, {
id: "entityAliasPop",
hook: "alias",
rest: e.rest,
label: `另外 ${e.rest.toLocaleString()} 个别名`,
heading: `${e.total.toLocaleString()} 个别名`,
- children: /* @__PURE__ */ (0, O.jsx)("dl", { children: (t.name_groups?.groups || []).map((e, t) => /* @__PURE__ */ (0, O.jsx)(IQ, {
+ children: /* @__PURE__ */ (0, O.jsx)("dl", { children: (t.name_groups?.groups || []).map((e, t) => /* @__PURE__ */ (0, O.jsx)(FQ, {
label: e.label,
names: e.names
}, t)) })
@@ -62425,21 +62426,21 @@ function ASe({ kind: e, entity: t, actions: n }) {
return /* @__PURE__ */ (0, O.jsxs)("div", {
"data-entity-alias": "meta",
children: [
- e === "creator" ? /* @__PURE__ */ (0, O.jsx)(FQ, { entity: t }) : null,
+ e === "creator" ? /* @__PURE__ */ (0, O.jsx)(PQ, { entity: t }) : null,
/* @__PURE__ */ (0, O.jsxs)("span", {
"data-meta-item": "",
title: "视频",
- children: [/* @__PURE__ */ (0, O.jsx)(wQ, { name: "film" }), /* @__PURE__ */ (0, O.jsxs)("span", { children: [o, c] })]
+ children: [/* @__PURE__ */ (0, O.jsx)(CQ, { name: "film" }), /* @__PURE__ */ (0, O.jsxs)("span", { children: [o, c] })]
}),
a ? /* @__PURE__ */ (0, O.jsxs)("span", {
"data-meta-item": "",
title: "事务所",
- children: [/* @__PURE__ */ (0, O.jsx)(wQ, { name: "briefcase" }), /* @__PURE__ */ (0, O.jsx)("span", { children: a })]
+ children: [/* @__PURE__ */ (0, O.jsx)(CQ, { name: "briefcase" }), /* @__PURE__ */ (0, O.jsx)("span", { children: a })]
}) : null,
l ? /* @__PURE__ */ (0, O.jsxs)("span", {
"data-meta-item": "",
title: "片商",
- children: [/* @__PURE__ */ (0, O.jsx)(wQ, { name: "clapperboard" }), /* @__PURE__ */ (0, O.jsx)("a", {
+ children: [/* @__PURE__ */ (0, O.jsx)(CQ, { name: "clapperboard" }), /* @__PURE__ */ (0, O.jsx)("a", {
href: en("studio", l.name, l.id),
"data-studio-link": l.name,
onClick: i("studio", l.name),
@@ -62451,24 +62452,24 @@ function ASe({ kind: e, entity: t, actions: n }) {
});
}
function jSe({ aliases: e }) {
- let { shown: t, rest: n } = PQ(e, 3);
+ let { shown: t, rest: n } = NQ(e, 3);
return /* @__PURE__ */ (0, O.jsxs)("div", {
"data-meta-item": "names",
"data-company-names": "",
children: [
- /* @__PURE__ */ (0, O.jsx)(wQ, { name: "id-card" }),
+ /* @__PURE__ */ (0, O.jsx)(CQ, { name: "id-card" }),
/* @__PURE__ */ (0, O.jsx)("span", {
"data-alias-names": "",
title: "别名",
children: t.map((e, t) => /* @__PURE__ */ (0, O.jsx)("span", { children: e }, t))
}),
- n ? /* @__PURE__ */ (0, O.jsx)(OQ, {
+ n ? /* @__PURE__ */ (0, O.jsx)(DQ, {
id: "entityAliasPop",
hook: "alias",
rest: n,
label: `另外 ${n.toLocaleString()} 个别名`,
heading: `${e.length.toLocaleString()} 个别名`,
- children: /* @__PURE__ */ (0, O.jsx)("dl", { children: /* @__PURE__ */ (0, O.jsx)(IQ, { names: e.map((e) => ({ name: e })) }) })
+ children: /* @__PURE__ */ (0, O.jsx)("dl", { children: /* @__PURE__ */ (0, O.jsx)(FQ, { names: e.map((e) => ({ name: e })) }) })
}) : null
]
});
@@ -62479,7 +62480,7 @@ function MSe({ follow: e, actions: t }) {
"data-meta-item": "",
"data-entity-follow": "",
title: n ? `关注 · ${n}` : "关注",
- children: [/* @__PURE__ */ (0, O.jsx)(wQ, { name: "rss" }), /* @__PURE__ */ (0, O.jsxs)("a", {
+ children: [/* @__PURE__ */ (0, O.jsx)(CQ, { name: "rss" }), /* @__PURE__ */ (0, O.jsxs)("a", {
href: "?media=online",
onClick: (n) => {
n.preventDefault(), t.openFollowAuthor(e.key);
@@ -62502,12 +62503,12 @@ function NSe({ follow: e, entity: t, actions: n }) {
return /* @__PURE__ */ (0, O.jsx)("div", {
"data-entity-held": "",
className: "flex flex-col gap-2",
- children: e.held.map((e) => /* @__PURE__ */ (0, O.jsxs)(Iz, {
+ children: e.held.map((e) => /* @__PURE__ */ (0, O.jsxs)(Fz, {
tone: "info",
title: `关注里有同名作者 ${e.name}`,
- action: /* @__PURE__ */ (0, O.jsx)(q, {
+ action: /* @__PURE__ */ (0, O.jsx)(J, {
size: "small",
- ...Vz(r === e.key),
+ ...Bz(r === e.key),
onClick: () => {
a(e.key, e.name);
},
@@ -62522,14 +62523,14 @@ function NSe({ follow: e, entity: t, actions: n }) {
}, e.key))
});
}
-function FQ({ entity: e }) {
+function PQ({ entity: e }) {
return e.identity_labels?.length ? /* @__PURE__ */ (0, O.jsxs)("span", {
"data-meta-item": "classification",
"data-identity-classification": "",
- children: [/* @__PURE__ */ (0, O.jsx)(wQ, { name: "user-round" }), /* @__PURE__ */ (0, O.jsx)("span", { children: e.identity_labels.join(" · ") })]
+ children: [/* @__PURE__ */ (0, O.jsx)(CQ, { name: "user-round" }), /* @__PURE__ */ (0, O.jsx)("span", { children: e.identity_labels.join(" · ") })]
}) : null;
}
-function IQ({ label: e, names: t }) {
+function FQ({ label: e, names: t }) {
return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [e ? /* @__PURE__ */ (0, O.jsx)("dt", { children: e }) : null, /* @__PURE__ */ (0, O.jsx)("dd", {
"data-wide": e ? void 0 : "",
children: t.map((e, t) => /* @__PURE__ */ (0, O.jsxs)("span", {
@@ -62539,19 +62540,19 @@ function IQ({ label: e, names: t }) {
})] });
}
function PSe({ glyph: e, label: t, clip: n, children: r }) {
- return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsxs)("dt", { children: [/* @__PURE__ */ (0, O.jsx)(wQ, { name: e }), t] }), /* @__PURE__ */ (0, O.jsx)("dd", {
+ return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsxs)("dt", { children: [/* @__PURE__ */ (0, O.jsx)(CQ, { name: e }), t] }), /* @__PURE__ */ (0, O.jsx)("dd", {
"data-fact": e === "tags" ? "tags" : n ? "clip" : e === "calendar-range" ? "num" : void 0,
title: n,
children: r
})] });
}
function FSe({ tags: e }) {
- let { shown: t, rest: n } = PQ(e);
+ let { shown: t, rest: n } = NQ(e);
return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [t.map((e) => /* @__PURE__ */ (0, O.jsx)("span", {
"data-fact-tag": "",
title: e,
children: e
- }, e)), n ? /* @__PURE__ */ (0, O.jsx)(OQ, {
+ }, e)), n ? /* @__PURE__ */ (0, O.jsx)(DQ, {
id: "entityTagPop",
hook: "fact",
rest: n,
@@ -62567,10 +62568,10 @@ function FSe({ tags: e }) {
})
}) : null] });
}
-function LQ({ mark: e }) {
+function IQ({ mark: e }) {
if ("brand" in e) return /* @__PURE__ */ (0, O.jsx)("span", {
"data-link-icon": "brand",
- children: /* @__PURE__ */ (0, O.jsx)(wQ, { name: e.brand })
+ children: /* @__PURE__ */ (0, O.jsx)(CQ, { name: e.brand })
});
let t = R("globe") + ("site" in e ? `<img src="${B(e.site)}" alt="" width="20" height="20" loading="lazy" decoding="async" referrerpolicy="no-referrer" data-drop="self">` : "");
return /* @__PURE__ */ (0, O.jsx)("span", {
@@ -62587,19 +62588,19 @@ function ISe({ link: e }) {
rel: "noopener noreferrer",
title: e.title,
"aria-label": e.title,
- children: /* @__PURE__ */ (0, O.jsx)(LQ, { mark: e.mark })
+ children: /* @__PURE__ */ (0, O.jsx)(IQ, { mark: e.mark })
});
case "gone": return /* @__PURE__ */ (0, O.jsx)("span", {
"data-link": "gone",
tabIndex: 0,
title: e.title,
"aria-label": e.title,
- children: /* @__PURE__ */ (0, O.jsx)(LQ, { mark: { globe: !0 } })
+ children: /* @__PURE__ */ (0, O.jsx)(IQ, { mark: { globe: !0 } })
});
case "private": return /* @__PURE__ */ (0, O.jsxs)("span", {
"data-link": "private",
title: e.sources ? e.sources.join("\n") : e.label,
- children: [/* @__PURE__ */ (0, O.jsx)(LQ, { mark: { globe: !0 } }), /* @__PURE__ */ (0, O.jsx)("span", {
+ children: [/* @__PURE__ */ (0, O.jsx)(IQ, { mark: { globe: !0 } }), /* @__PURE__ */ (0, O.jsx)("span", {
"data-link-label": "",
children: e.sources ? e.label : `来源 · ${e.label}`
})]
@@ -62611,7 +62612,7 @@ function ISe({ link: e }) {
rel: "noopener noreferrer",
title: e.title,
children: [
- /* @__PURE__ */ (0, O.jsx)(LQ, { mark: e.mark }),
+ /* @__PURE__ */ (0, O.jsx)(IQ, { mark: e.mark }),
/* @__PURE__ */ (0, O.jsx)("span", {
"data-link-label": "",
children: e.text
@@ -62644,14 +62645,14 @@ function LSe({ entity: e, actions: t, helpers: n }) {
};
return /* @__PURE__ */ (0, O.jsxs)("div", {
"data-entry-marks": "",
- children: [NQ(e).map((e, t) => /* @__PURE__ */ (0, O.jsxs)("a", {
+ children: [MQ(e).map((e, t) => /* @__PURE__ */ (0, O.jsxs)("a", {
"data-entry-mark": "",
href: e.url,
target: "_blank",
rel: "noopener noreferrer",
title: e.label,
"aria-label": e.label,
- children: [e.mark ? /* @__PURE__ */ (0, O.jsx)(wQ, { name: e.mark }) : /* @__PURE__ */ (0, O.jsxs)("span", {
+ children: [e.mark ? /* @__PURE__ */ (0, O.jsx)(CQ, { name: e.mark }) : /* @__PURE__ */ (0, O.jsxs)("span", {
"data-missav-mark": "",
children: [/* @__PURE__ */ (0, O.jsx)("span", { children: "MISS" }), /* @__PURE__ */ (0, O.jsx)("span", { children: "AV" })]
}), e.ordinal ? /* @__PURE__ */ (0, O.jsx)("span", {
@@ -62782,7 +62783,7 @@ function zSe(e, t, n) {
//#endregion
//#region src/react/entity-page/entity-page-view.tsx
function BSe(e) {
- let { kind: t, name: n } = e, r = St(ZX(t, n)), i = !!r.data?.error, a = r.data?.canonical_name, o = r.data?.redirect ?? (a && a !== n ? {
+ let { kind: t, name: n } = e, r = St(XX(t, n)), i = !!r.data?.error, a = r.data?.canonical_name, o = r.data?.redirect ?? (a && a !== n ? {
kind: t,
name: a
} : void 0), { actions: s } = e;
@@ -62800,7 +62801,7 @@ function BSe(e) {
s,
o?.kind,
o?.name
- ]), r.isError ? /* @__PURE__ */ (0, O.jsx)(dW, {
+ ]), r.isError ? /* @__PURE__ */ (0, O.jsx)(uW, {
message: An(r.error),
onRetry: () => {
r.refetch();
@@ -62810,7 +62811,7 @@ function BSe(e) {
entity: r.data
});
}
-function RQ(e) {
+function LQ(e) {
let [t, n] = (0, D.useState)({
key: e,
n: 1
@@ -62827,17 +62828,17 @@ function HSe(e, t) {
return `照片 · ${[e.total || !t ? `${(e.total || 0).toLocaleString()} 张` : "", t ? `样张 ${(e.sample_total || 0).toLocaleString()} 张 · ${t.toLocaleString()} 部作品` : ""].filter(Boolean).join(" · ")}`;
}
function USe(e) {
- let { kind: t, name: n, entity: r, filters: i, media: a, helpers: o, actions: s, hosts: c } = e, l = t === "agency" || t === "studio", u = t === "agency" ? r.related_performers || [] : t === "studio" && r.labels || [], d = Number(r.id) || 0, f = wt(QX(t, n, 0, "")).data?.pages[0], p = f && !f.error ? f : null, m = p ? (p.total || 0) + (p.sample_total || 0) : 0, h = (p?.total || 0) > 0 || $X(p).length > 0, g = t === "creator" && r.follow?.key || "", _ = !!g && !r.asset_count, v = a.media === "photos" && h ? a : (a.media === "online" || _) && g ? {
+ let { kind: t, name: n, entity: r, filters: i, media: a, helpers: o, actions: s, hosts: c } = e, l = t === "agency" || t === "studio", u = t === "agency" ? r.related_performers || [] : t === "studio" && r.labels || [], d = Number(r.id) || 0, f = wt(ZX(t, n, 0, "")).data?.pages[0], p = f && !f.error ? f : null, m = p ? (p.total || 0) + (p.sample_total || 0) : 0, h = (p?.total || 0) > 0 || QX(p).length > 0, g = t === "creator" && r.follow?.key || "", _ = !!g && !r.asset_count, v = a.media === "photos" && h ? a : (a.media === "online" || _) && g ? {
media: "online",
set: 0
- } : WX, [y, b] = (0, D.useState)("people"), x = new URLSearchParams(Object.entries(i).filter(([, e]) => e)).toString(), [S, C] = (0, D.useState)(x);
+ } : UX, [y, b] = (0, D.useState)("people"), x = new URLSearchParams(Object.entries(i).filter(([, e]) => e)).toString(), [S, C] = (0, D.useState)(x);
S !== x && (C(x), b("videos"));
let w = l && y === "people" && u.length ? "people" : v.media, T = zSe(g, w === "online", {
photoLayout: e.photoLayout,
photoLayouts: e.photoLayouts,
imagesOnly: e.followImagesOnly,
setImagesOnly: e.follow.actions.setImagesOnly
- }), E = w === "photos" || w === "online" && T.media === "images", [k, A] = (0, D.useState)(0), j = XX(e), M = St(j), N = RQ(JSON.stringify([j.queryKey, k])), [P] = (0, D.useState)(() => (t === "performer" || t === "studio") && (e.jav || (M.data?.items || []).some((e) => e.is_jav)));
+ }), E = w === "photos" || w === "online" && T.media === "images", [k, A] = (0, D.useState)(0), j = YX(e), M = St(j), N = LQ(JSON.stringify([j.queryKey, k])), [P] = (0, D.useState)(() => (t === "performer" || t === "studio") && (e.jav || (M.data?.items || []).some((e) => e.is_jav)));
(0, D.useLayoutEffect)(() => {
s.javContext(P);
}, [s, P]);
@@ -62847,26 +62848,26 @@ function USe(e) {
}, [e.layout, P]), F = {
jav: e.jav,
seed: e.seed
- }, te = (0, D.useCallback)((e, r, a) => YX(t, n, i, F, e, r, a), [N]), [I, ne] = (0, D.useState)({}), re = v.set, ie = I[re] || "", ae = wt({
- ...QX(t, n, re, ie),
+ }, te = (0, D.useCallback)((e, r, a) => JX(t, n, i, F, e, r, a), [N]), [I, ne] = (0, D.useState)({}), re = v.set, ie = I[re] || "", ae = wt({
+ ...ZX(t, n, re, ie),
enabled: w === "photos"
- }), oe = ae.data?.pages[0], se = RQ(JSON.stringify(KX(t, n, re, ie))), ce = (0, D.useMemo)(() => {
+ }), oe = ae.data?.pages[0], se = LQ(JSON.stringify(GX(t, n, re, ie))), ce = (0, D.useMemo)(() => {
let e = ae.data?.pages;
if (!e?.[0] || e[0].error) return null;
let t = e[0];
return {
revision: se,
- codeSets: t.id ? [] : $X(t),
+ codeSets: t.id ? [] : QX(t),
items: e.flatMap((e) => e.items || []),
total: t.total || 0,
hasMore: !!e[e.length - 1]?.has_more
};
}, [ae.data, se]), le = ae.refetch, ue = ae.fetchNextPage, de = St({
- ...VX(d, o.feedRowHtml),
+ ...BX(d, o.feedRowHtml),
enabled: !!d
}), fe = (0, D.useRef)(e.feedRevision);
(0, D.useEffect)(() => {
- fe.current !== e.feedRevision && (fe.current = e.feedRevision, U.invalidateQueries({ queryKey: BX(d) }));
+ fe.current !== e.feedRevision && (fe.current = e.feedRevision, U.invalidateQueries({ queryKey: zX(d) }));
}, [d, e.feedRevision]);
let pe = !!M.data;
(0, D.useEffect)(() => {
@@ -62885,7 +62886,7 @@ function USe(e) {
me.current = !1;
}, []);
let he = (0, D.useCallback)(async () => {
- await U.invalidateQueries({ queryKey: ["entity-route"] }), await U.invalidateQueries({ queryKey: GX(t, n) }), await U.invalidateQueries({ queryKey: [
+ await U.invalidateQueries({ queryKey: ["entity-route"] }), await U.invalidateQueries({ queryKey: WX(t, n) }), await U.invalidateQueries({ queryKey: [
"entity-items",
t,
n
@@ -62919,7 +62920,7 @@ function USe(e) {
enabled: e
})
}),
- onSuccess: (e, r) => U.setQueryData(GX(t, n), (e) => e && {
+ onSuccess: (e, r) => U.setQueryData(WX(t, n), (e) => e && {
...e,
feed: {
...e.feed,
@@ -62973,10 +62974,10 @@ function USe(e) {
let e = await z("/api/feeds/check").catch(() => null);
if (!e || e.status !== "running") break;
}
- me.current && await U.invalidateQueries({ queryKey: BX(d) });
+ me.current && await U.invalidateQueries({ queryKey: zX(d) });
})();
},
- feedAction: HX,
+ feedAction: VX,
avatarPicked: () => {
s.avatarChanged(), he().then(() => {
me.current && A((e) => e + 1);
@@ -63024,19 +63025,19 @@ function USe(e) {
(e !== w || v.set) && (b(e === "people" ? "people" : "videos"), s.route(i, e === "photos" || e === "online" ? {
media: e,
set: 0
- } : WX));
+ } : UX));
},
setState: (e) => s.route({
...i,
state: e
- }, WX),
+ }, UX),
toggleTag: s.toggleTag,
clearFilter: s.clearFilter,
clearAll: s.clearAll,
setSort: s.setSort,
reshuffle: async () => {
if (w !== "photos") {
- let r = s.reshuffleVideos(), a = XX({
+ let r = s.reshuffleVideos(), a = YX({
kind: t,
name: n,
filters: {
@@ -63050,7 +63051,7 @@ function USe(e) {
await U.fetchQuery(a).catch(() => null);
return;
}
- let r = VSe(), a = await U.fetchInfiniteQuery(QX(t, n, re, r)).catch(() => null);
+ let r = VSe(), a = await U.fetchInfiniteQuery(ZX(t, n, re, r)).catch(() => null);
me.current && a?.pages[0] && !a.pages[0].error && ne((e) => ({
...e,
[re]: r
@@ -63120,14 +63121,14 @@ function USe(e) {
creator: "",
studio: "",
owner: ""
- }, WX), Ne = "", Pe = !1;
+ }, UX), Ne = "", Pe = !1;
if (w === "people") Ne = `${t === "studio" ? "厂牌" : "艺人"} · ${u.length.toLocaleString()}`;
else if (w === "online") Pe = T.busy, Ne = `在线 · ${(T.total ?? r.follow?.n ?? 0).toLocaleString()} 项更新`;
else if (w === "videos") {
Pe = !M.data;
- let e = qX(i.tag).length;
+ let e = KX(i.tag).length;
Ne = `视频 · ${(M.data?.work_total ?? M.data?.total ?? 0).toLocaleString()}${e ? ` · 已选 ${e.toLocaleString()} 个标签` : ""}`;
- } else oe && !oe.error ? Ne = De ? `${oe.title} · ${(oe.total || 0).toLocaleString()} 张` : HSe(oe, $X(oe).length) : Pe = ae.isPending;
+ } else oe && !oe.error ? Ne = De ? `${oe.title} · ${(oe.total || 0).toLocaleString()} 张` : HSe(oe, QX(oe).length) : Pe = ae.isPending;
let Fe = (0, D.useMemo)(() => ({
...e.card.actions,
loadMorePhotos: async () => {
@@ -63187,7 +63188,7 @@ function USe(e) {
actions: e.follow.actions,
canLoadMore: e.canLoadMore,
clearFilters: T.clearFilters
- }, T.key) : w === "videos" && M.isError ? /* @__PURE__ */ (0, O.jsx)(dW, {
+ }, T.key) : w === "videos" && M.isError ? /* @__PURE__ */ (0, O.jsx)(uW, {
message: An(M.error),
onRetry: () => {
M.refetch();
@@ -63229,23 +63230,23 @@ function USe(e) {
] });
}
function WSe({ filtered: e, onShowAll: t, onOnline: n }) {
- return e ? /* @__PURE__ */ (0, O.jsx)(Lz, {
- icon: zz("search"),
+ return e ? /* @__PURE__ */ (0, O.jsx)(Iz, {
+ icon: Rz("search"),
title: "没有符合条件的视频",
- actions: /* @__PURE__ */ (0, O.jsx)(q, {
+ actions: /* @__PURE__ */ (0, O.jsx)(J, {
size: "small",
onClick: t,
children: "清除筛选"
}),
children: "清除筛选后查看名下全部视频。"
- }) : /* @__PURE__ */ (0, O.jsx)(Lz, {
- icon: zz("film"),
+ }) : /* @__PURE__ */ (0, O.jsx)(Iz, {
+ icon: Rz("film"),
title: "还没有视频",
- actions: n ? /* @__PURE__ */ (0, O.jsx)(q, {
+ actions: n ? /* @__PURE__ */ (0, O.jsx)(J, {
size: "small",
onClick: n,
children: "查看在线作品"
- }) : /* @__PURE__ */ (0, O.jsx)(YF, {
+ }) : /* @__PURE__ */ (0, O.jsx)(JF, {
size: "small",
href: "/",
children: "浏览馆藏"
@@ -63255,31 +63256,31 @@ function WSe({ filtered: e, onShowAll: t, onOnline: n }) {
}
//#endregion
//#region src/react/diagnostics/diagnostics.ts
-var zQ = ["diagnostics"], BQ = (e) => V("/api/diagnostics", e);
+var RQ = ["diagnostics"], zQ = (e) => V("/api/diagnostics", e);
async function GSe(e) {
await U.fetchQuery({
- queryKey: zQ,
- queryFn: () => BQ(e),
+ queryKey: RQ,
+ queryFn: () => zQ(e),
staleTime: 1e4
});
}
//#endregion
//#region src/react/feed-new/feed-new-page.tsx
function KSe({ host: e, revision: t, helpers: n, actions: r }) {
- let i = St(VX(null, n.feedRowHtml)), a = (0, D.useRef)(t);
+ let i = St(BX(null, n.feedRowHtml)), a = (0, D.useRef)(t);
return (0, D.useEffect)(() => {
- a.current !== t && (a.current = t, U.invalidateQueries({ queryKey: BX(null) }));
- }, [t]), (0, Tt.createPortal)(/* @__PURE__ */ (0, O.jsx)(CQ, {
+ a.current !== t && (a.current = t, U.invalidateQueries({ queryKey: zX(null) }));
+ }, [t]), (0, Tt.createPortal)(/* @__PURE__ */ (0, O.jsx)(SQ, {
feedNew: i.data ?? null,
host: e,
wire: n.wireFeedRow,
- act: HX,
+ act: VX,
settled: r.settled
}), e);
}
//#endregion
//#region src/react/components/board-tabs.tsx
-function VQ({ value: e }) {
+function BQ({ value: e }) {
return /* @__PURE__ */ (0, O.jsx)("span", {
"data-tab-count": "",
className: "ml-1.5 inline-block rounded-sm bg-text-primary/10 px-1 py-px text-caption-1-medium text-text-primary opacity-50",
@@ -63287,8 +63288,8 @@ function VQ({ value: e }) {
});
}
var qSe = "relative flex flex-none cursor-pointer items-center whitespace-nowrap rounded-md px-3 py-2 text-body-regular text-text-secondary outline-none focus-visible:outline-2 focus-visible:-outline-offset-3 focus-visible:outline-border-focus-ring hover:text-text-primary aria-selected:bg-background-tertiary-default aria-selected:text-text-primary max-board-narrow:px-2.25 max-board-narrow:text-body-2-regular";
-function HQ({ tabs: e, value: t, label: n, onChange: r, className: i = "mb-5.5" }) {
- let a = (0, D.useRef)(null), o = IF(a);
+function VQ({ tabs: e, value: t, label: n, onChange: r, className: i = "mb-5.5" }) {
+ let a = (0, D.useRef)(null), o = FF(a);
return (0, D.useLayoutEffect)(() => {
let e = a.current;
e && (() => {
@@ -63297,7 +63298,7 @@ function HQ({ tabs: e, value: t, label: n, onChange: r, className: i = "mb-5.5"
let n = t.offsetLeft, r = n + t.offsetWidth;
n < e.scrollLeft ? e.scrollLeft = n : r > e.scrollLeft + e.clientWidth && (e.scrollLeft = r - e.clientWidth);
})();
- }, [t]), /* @__PURE__ */ (0, O.jsx)(iF, {
+ }, [t]), /* @__PURE__ */ (0, O.jsx)(rF, {
ref: o,
role: "tablist",
"aria-label": n,
@@ -63312,7 +63313,7 @@ function HQ({ tabs: e, value: t, label: n, onChange: r, className: i = "mb-5.5"
},
className: `relative flex flex-none gap-1 overflow-x-auto max-board-narrow:gap-0 ${i}`,
children: e.map((e) => {
- let n = e.symbol ? zz(e.symbol) : null, i = e.value === t;
+ let n = e.symbol ? Rz(e.symbol) : null, i = e.value === t;
return /* @__PURE__ */ (0, O.jsxs)("button", {
type: "button",
role: "tab",
@@ -63332,11 +63333,11 @@ function HQ({ tabs: e, value: t, label: n, onChange: r, className: i = "mb-5.5"
}
//#endregion
//#region src/react/index/index-tags.tsx
-var UQ = () => /* @__PURE__ */ (0, O.jsx)("span", {
+var HQ = () => /* @__PURE__ */ (0, O.jsx)("span", {
"aria-hidden": !0,
"data-tag-dot": "",
className: "size-1.75 flex-none rounded-full"
-}), WQ = zz("pencil"), GQ = (e, t) => ({
+}), UQ = Rz("pencil"), WQ = (e, t) => ({
kind: "tag",
name: e.k,
favorite: e.favorite,
@@ -63354,13 +63355,13 @@ function JSe({ tag: e, actions: t }) {
type: "button",
"data-alpha-tag": "",
"data-k": e.k,
- "data-tag-cat": pZ(t.online, e.cat),
+ "data-tag-cat": fZ(t.online, e.cat),
"aria-pressed": n,
title: e.label,
onClick: () => t.press(e.k),
className: "flex h-9 min-w-0 flex-1 cursor-pointer items-center gap-2.25 rounded-lg px-2.5 text-left text-body-regular text-text-secondary outline-none hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring",
children: [
- /* @__PURE__ */ (0, O.jsx)(UQ, {}),
+ /* @__PURE__ */ (0, O.jsx)(HQ, {}),
/* @__PURE__ */ (0, O.jsx)("span", {
className: "min-w-0 flex-1 truncate",
children: e.label
@@ -63371,29 +63372,29 @@ function JSe({ tag: e, actions: t }) {
})
]
}),
- t.favorites === !1 ? null : /* @__PURE__ */ (0, O.jsx)($z, { item: GQ(e, t.online) }),
- t.edit ? /* @__PURE__ */ (0, O.jsx)(Qz, {
+ t.favorites === !1 ? null : /* @__PURE__ */ (0, O.jsx)(Qz, { item: WQ(e, t.online) }),
+ t.edit ? /* @__PURE__ */ (0, O.jsx)(Zz, {
label: `编辑标签 ${e.label}`,
onClick: () => t.edit?.(e.k),
- children: /* @__PURE__ */ (0, O.jsx)(WQ, {})
+ children: /* @__PURE__ */ (0, O.jsx)(UQ, {})
}) : null
]
});
}
-function KQ({ groups: e, actions: t }) {
+function GQ({ groups: e, actions: t }) {
return /* @__PURE__ */ (0, O.jsx)("div", {
"data-alphabet": "",
className: "flex flex-col gap-4",
children: e.map(([e, n], r) => /* @__PURE__ */ (0, O.jsxs)("section", {
"data-alpha-group": r,
- className: NH({
+ className: MH({
radius: "plain",
padding: "none",
className: "px-5 pt-4 pb-3"
}),
children: [/* @__PURE__ */ (0, O.jsxs)("h3", {
className: "mb-2 flex items-center text-title-2-medium text-text-primary",
- children: [e, /* @__PURE__ */ (0, O.jsx)(VQ, { value: n.length })]
+ children: [e, /* @__PURE__ */ (0, O.jsx)(BQ, { value: n.length })]
}), /* @__PURE__ */ (0, O.jsx)("div", {
className: "index-tag-list gap-x-4 gap-y-0.5",
children: n.map((e) => /* @__PURE__ */ (0, O.jsx)(JSe, {
@@ -63405,19 +63406,19 @@ function KQ({ groups: e, actions: t }) {
});
}
var YSe = "\xA0";
-function qQ({ tags: e, actions: t }) {
+function KQ({ tags: e, actions: t }) {
return /* @__PURE__ */ (0, O.jsx)("div", {
"data-tag-cloud": "",
className: "flex flex-wrap gap-1.75",
children: e.map((e) => /* @__PURE__ */ (0, O.jsxs)("span", {
"data-tag-token": "",
- "data-tag-cat": pZ(t.online, e.cat),
+ "data-tag-cat": fZ(t.online, e.cat),
className: "inline-flex max-w-full min-w-0 items-center gap-1 rounded-lg border p-1",
children: [/* @__PURE__ */ (0, O.jsxs)("button", {
type: "button",
"data-tag-chip": "",
"data-k": e.k,
- "data-tag-cat": pZ(t.online, e.cat),
+ "data-tag-cat": fZ(t.online, e.cat),
"aria-pressed": t.picked.has(e.k),
onClick: () => t.press(e.k),
className: "inline-flex max-w-full min-w-0 cursor-pointer items-center rounded-lg px-2 py-0.5 text-body-2-regular text-text-secondary outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring",
@@ -63432,10 +63433,10 @@ function qQ({ tags: e, actions: t }) {
}), t.favorites !== !1 || t.edit ? /* @__PURE__ */ (0, O.jsxs)("span", {
"data-tag-actions": "",
className: "inline-flex flex-none items-center gap-1",
- children: [t.favorites === !1 ? null : /* @__PURE__ */ (0, O.jsx)($z, { item: GQ(e, t.online) }), t.edit ? /* @__PURE__ */ (0, O.jsx)(Qz, {
+ children: [t.favorites === !1 ? null : /* @__PURE__ */ (0, O.jsx)(Qz, { item: WQ(e, t.online) }), t.edit ? /* @__PURE__ */ (0, O.jsx)(Zz, {
label: `编辑标签 ${e.label}`,
onClick: () => t.edit?.(e.k),
- children: /* @__PURE__ */ (0, O.jsx)(WQ, {})
+ children: /* @__PURE__ */ (0, O.jsx)(UQ, {})
}) : null]
}) : null]
}, e.k))
@@ -63450,34 +63451,34 @@ var XSe = [[
"字母表",
"text-aa"
]];
-function JQ({ categories: e, category: t, online: n, readout: r, letters: i, view: a, onCategory: o, onJump: s, onView: c, status: l, actions: u }) {
- let d = IF();
- return /* @__PURE__ */ (0, O.jsx)(BF, {
+function qQ({ categories: e, category: t, online: n, readout: r, letters: i, view: a, onCategory: o, onJump: s, onView: c, status: l, actions: u }) {
+ let d = FF();
+ return /* @__PURE__ */ (0, O.jsx)(zF, {
label: "标签筛选",
topLabel: "标签类型",
top: /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [l ? /* @__PURE__ */ (0, O.jsxs)("div", {
role: "group",
"aria-label": "标签状态",
className: "flex flex-none items-center gap-1.75 border-r border-(--glass-low) pr-3",
- children: [[[!1, "使用中"], [!0, "已隐藏"]].map(([e, t]) => /* @__PURE__ */ (0, O.jsx)(HF, {
+ children: [[[!1, "使用中"], [!0, "已隐藏"]].map(([e, t]) => /* @__PURE__ */ (0, O.jsx)(VF, {
"data-tag-pill": "",
"data-tag-cat": "all",
pressed: !l.blocked && l.hidden === e,
onPress: () => l.onChange(!!e),
children: t
- }, String(e))), l.onBlocked ? /* @__PURE__ */ (0, O.jsx)(HF, {
+ }, String(e))), l.onBlocked ? /* @__PURE__ */ (0, O.jsx)(VF, {
"data-tag-pill": "",
"data-tag-cat": "all",
pressed: !!l.blocked,
onPress: l.onBlocked,
children: "已屏蔽内容"
}) : null]
- }) : null, e.map(([e, r]) => /* @__PURE__ */ (0, O.jsxs)(HF, {
+ }) : null, e.map(([e, r]) => /* @__PURE__ */ (0, O.jsxs)(VF, {
"data-tag-pill": "",
- "data-tag-cat": e === "all" ? "all" : pZ(n, e),
+ "data-tag-cat": e === "all" ? "all" : fZ(n, e),
pressed: t === e,
onPress: () => o(e),
- children: [/* @__PURE__ */ (0, O.jsx)(UQ, {}), r]
+ children: [/* @__PURE__ */ (0, O.jsx)(HQ, {}), r]
}, e))] }),
bottom: /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [
/* @__PURE__ */ (0, O.jsx)("span", {
@@ -63498,19 +63499,19 @@ function JQ({ categories: e, category: t, online: n, readout: r, letters: i, vie
children: e
}, e))
}) : null,
- /* @__PURE__ */ (0, O.jsx)(wR, {
+ /* @__PURE__ */ (0, O.jsx)(CR, {
"aria-label": "标签视图",
orientation: "horizontal",
value: a,
onChange: (e) => c(e),
- className: `ml-auto ${SU}`,
+ className: `ml-auto ${xU}`,
children: XSe.map(([e, t, n]) => {
- let r = zz(n);
- return /* @__PURE__ */ (0, O.jsx)(TR, {
+ let r = Rz(n);
+ return /* @__PURE__ */ (0, O.jsx)(wR, {
value: e,
"aria-label": t,
"data-glass-segment": "",
- className: CU,
+ className: SU,
children: /* @__PURE__ */ (0, O.jsx)("span", {
title: t,
className: "contents",
@@ -63523,12 +63524,12 @@ function JQ({ categories: e, category: t, online: n, readout: r, letters: i, vie
});
}
function ZSe({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
- return /* @__PURE__ */ (0, O.jsxs)(Sk, {
+ return /* @__PURE__ */ (0, O.jsxs)(xk, {
visible: e > 0,
label: "所选标签操作",
count: `已选 ${e.toLocaleString()} 个标签`,
children: [
- /* @__PURE__ */ (0, O.jsx)(iV, {
+ /* @__PURE__ */ (0, O.jsx)(rV, {
isSelected: t === "any",
onChange: (e) => n(e ? "any" : "all"),
children: /* @__PURE__ */ (0, O.jsxs)("span", {
@@ -63542,13 +63543,13 @@ function ZSe({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
})]
})
}),
- /* @__PURE__ */ (0, O.jsx)(q, {
+ /* @__PURE__ */ (0, O.jsx)(J, {
variant: "secondary",
size: "small",
onClick: r,
children: "清空"
}),
- /* @__PURE__ */ (0, O.jsx)(q, {
+ /* @__PURE__ */ (0, O.jsx)(J, {
variant: "primary",
size: "small",
disabled: !e,
@@ -63560,29 +63561,29 @@ function ZSe({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
}
//#endregion
//#region src/react/toaster.tsx
-var YQ = (e, t) => /* @__PURE__ */ (0, O.jsx)("span", {
+var JQ = (e, t) => /* @__PURE__ */ (0, O.jsx)("span", {
"data-toast-glyph": t ? "draw" : "still",
"aria-hidden": "true",
dangerouslySetInnerHTML: { __html: e }
-}), XQ = null, ZQ = { "--floating-radius": "var(--radius-2xl)" };
-function QQ() {
- let e = XQ;
- XQ = null, e?.root.unmount();
-}
-var $Q = (e, t) => {
- if (XQ?.host === e) return;
- QQ();
+}), YQ = null, XQ = { "--floating-radius": "var(--radius-2xl)" };
+function ZQ() {
+ let e = YQ;
+ YQ = null, e?.root.unmount();
+}
+var QQ = (e, t) => {
+ if (YQ?.host === e) return;
+ ZQ();
let n = (0, Et.createRoot)(e);
- XQ = {
+ YQ = {
host: e,
root: n
- }, n.render(/* @__PURE__ */ (0, O.jsxs)(tH, { children: [/* @__PURE__ */ (0, O.jsx)(lH, {
+ }, n.render(/* @__PURE__ */ (0, O.jsxs)(eH, { children: [/* @__PURE__ */ (0, O.jsx)(cH, {
id: "receipts",
position: "bottom-right",
closeButton: !0,
gap: 8,
style: {
- ...ZQ,
+ ...XQ,
"--width": "min(560px, calc(100vw - 48px))"
},
offset: {
@@ -63597,16 +63598,16 @@ var $Q = (e, t) => {
toastOptions: { closeButtonAriaLabel: "关闭提示" },
containerAriaLabel: "通知",
icons: {
- success: YQ(t.success, !0),
- error: YQ(t.error, !1)
+ success: JQ(t.success, !0),
+ error: JQ(t.error, !1)
}
- }), /* @__PURE__ */ (0, O.jsx)(lH, {
+ }), /* @__PURE__ */ (0, O.jsx)(cH, {
id: "processing",
position: "bottom-right",
gap: 8,
expand: !0,
style: {
- ...ZQ,
+ ...XQ,
"--width": "min(400px, calc(100vw - 32px))"
},
offset: {
@@ -63621,9 +63622,9 @@ var $Q = (e, t) => {
toastOptions: { closeButtonAriaLabel: "关闭任务提示" },
containerAriaLabel: "后台任务"
})] }));
-}, QSe = 6e3, e$ = (e, t) => {
+}, QSe = 6e3, $Q = (e, t) => {
if (!String(t.html ?? "").trim()) return;
- let n = t.alert ? iH.error : iH.success, r = t.action;
+ let n = t.alert ? rH.error : rH.success, r = t.action;
n(/* @__PURE__ */ (0, O.jsx)("span", { dangerouslySetInnerHTML: { __html: t.html } }), {
id: e,
toasterId: "receipts",
@@ -63635,7 +63636,7 @@ var $Q = (e, t) => {
}
} : void 0
});
-}, t$ = (e) => e.id ?? e.entity_id, n$ = {
+}, e$ = (e) => e.id ?? e.entity_id, t$ = {
rename: "重命名标签",
merge: "合并标签",
hide: "隐藏标签",
@@ -63643,20 +63644,20 @@ var $Q = (e, t) => {
repair: "整理重复标签",
block: "屏蔽内容",
unblock: "恢复内容"
-}, r$ = (e, t) => H("/api/tag-management/preview", e, "POST", t);
-async function i$(e, t, n) {
+}, n$ = (e, t) => H("/api/tag-management/preview", e, "POST", t);
+async function r$(e, t, n) {
if (n?.aborted) return !1;
let r = t.tags.map((e) => `「${e.k}」`).join("、"), i = e.operation === "merge" || e.operation === "repair" ? `合并 ${t.tags.length} 个标签,涉及 ${t.assets} 个资源,重叠关联 ${t.overlap} 个。旧名称保留为别名。此操作无法直接撤销。` : e.operation === "rename" ? `${r}将更名为「${t.name || e.name}」,涉及 ${t.assets} 个资源。旧名称保留为别名。` : e.operation === "block" ? `屏蔽带有${r}任一标签的内容及其其它版本,涉及 ${t.assets} 个资源。可在「已屏蔽内容」中恢复。` : e.operation === "unblock" ? `解除${r}的内容屏蔽,涉及 ${t.assets} 个资源。` : `${e.operation === "hide" ? "隐藏" : "恢复"} ${t.tags.length} 个标签,涉及 ${t.assets} 个资源。${e.operation === "hide" ? "可在“已隐藏”中恢复。" : ""}`;
return !(await xc({
- title: n$[e.operation],
+ title: t$[e.operation],
body: i,
- confirmLabel: n$[e.operation],
+ confirmLabel: t$[e.operation],
onConfirm: () => H("/api/tag-management", {
...e,
token: t.token
}, "POST", n)
- })).confirmed || n?.aborted ? !1 : (await U.invalidateQueries(), e$(`tag-management-${Date.now()}`, {
- html: `已${n$[e.operation]}`,
+ })).confirmed || n?.aborted ? !1 : (await U.invalidateQueries(), $Q(`tag-management-${Date.now()}`, {
+ html: `已${t$[e.operation]}`,
alert: !1,
timeout: 6e3,
action: null
@@ -63671,24 +63672,24 @@ function $Se({ operation: e, selected: t, close: n, done: r, scope: i = "local"
scope: i
}), o = (0, D.useRef)({
name: t[0]?.k || "",
- target_id: t[0] ? t$(t[0]) : 0
+ target_id: t[0] ? e$(t[0]) : 0
}), [s, c] = (0, D.useState)(null);
return (0, D.useEffect)(() => {
let e = new AbortController(), t = a.current, n = yc({
- title: n$[t.operation],
+ title: t$[t.operation],
confirmLabel: "预览影响范围",
confirmDisabled: !0,
body: "<div class=\"peach-react\" data-tag-editor-fields></div>",
onConfirm: async () => {
let n = {
operation: t.operation,
- ids: t.selected.map(t$),
+ ids: t.selected.map(e$),
...t.scope === "online" ? { scope: t.scope } : {},
...t.operation === "rename" ? { name: o.current.name.trim() } : { target_id: o.current.target_id }
};
return {
command: n,
- plan: await r$(n, e.signal)
+ plan: await n$(n, e.signal)
};
}
});
@@ -63699,7 +63700,7 @@ function $Se({ operation: e, selected: t, close: n, done: r, scope: i = "local"
if (!e.signal.aborted) {
if (n.confirmed) {
let r = n.result;
- await i$(r.command, r.plan, e.signal) && t.done();
+ await r$(r.command, r.plan, e.signal) && t.done();
}
e.signal.aborted || t.close();
}
@@ -63716,7 +63717,7 @@ function $Se({ operation: e, selected: t, close: n, done: r, scope: i = "local"
}), s.host) : null;
}
function eCe({ operation: e, selected: t, dialog: n, update: r }) {
- let [i, a] = (0, D.useState)(t[0]?.k || ""), [o, s] = (0, D.useState)(t[0] ? t$(t[0]) : 0);
+ let [i, a] = (0, D.useState)(t[0]?.k || ""), [o, s] = (0, D.useState)(t[0] ? e$(t[0]) : 0);
return (0, D.useEffect)(() => {
r({
name: i,
@@ -63729,24 +63730,24 @@ function eCe({ operation: e, selected: t, dialog: n, update: r }) {
e,
t,
r
- ]), e === "rename" ? /* @__PURE__ */ (0, O.jsx)(Nz, {
+ ]), e === "rename" ? /* @__PURE__ */ (0, O.jsx)(Mz, {
autoFocus: !0,
"aria-label": "标签名称",
value: i,
onChange: a,
maxLength: 80
- }) : /* @__PURE__ */ (0, O.jsx)(oY, {
+ }) : /* @__PURE__ */ (0, O.jsx)(aY, {
"aria-label": "保留的标签",
prefix: "保留",
selectedKey: String(o),
onSelectionChange: (e) => {
- let n = t.find((t) => String(t$(t)) === String(e));
- n && s(t$(n));
+ let n = t.find((t) => String(e$(t)) === String(e));
+ n && s(e$(n));
},
- children: t.map((e) => /* @__PURE__ */ (0, O.jsx)(pU, {
- id: String(t$(e)),
+ children: t.map((e) => /* @__PURE__ */ (0, O.jsx)(fU, {
+ id: String(e$(e)),
children: e.k
- }, t$(e)))
+ }, e$(e)))
});
}
//#endregion
@@ -63755,20 +63756,20 @@ function tCe({ search: e = "", category: t = "all", view: n = "cloud", onCategor
let s = o === "online", c = St({
queryKey: ["tag-management", o],
queryFn: ({ signal: e }) => V(`/api/tag-management${s ? "?scope=online" : ""}`, e)
- }), [l, u] = (0, D.useState)(!1), [d, f] = (0, D.useState)(!1), [p, m] = (0, D.useState)(/* @__PURE__ */ new Set()), [h, g] = (0, D.useState)(null), _ = jH(), v = c.data?.items || [], y = v.filter((e) => d ? e.blocked : e.hidden === l && (!s || !e.blocked)).filter((t) => [t.k, ...t.aliases].some((t) => t.toLocaleLowerCase().includes(e.trim().toLocaleLowerCase()))), b = y.filter((e) => t === "all" || (e.cat || "general") === t), x = (s ? iZ : rZ).filter(([e]) => e === "all" || e === t || c.isPending || y.some((t) => (t.cat || "general") === e)), S = b.map((e) => ({
+ }), [l, u] = (0, D.useState)(!1), [d, f] = (0, D.useState)(!1), [p, m] = (0, D.useState)(/* @__PURE__ */ new Set()), [h, g] = (0, D.useState)(null), _ = AH(), v = c.data?.items || [], y = v.filter((e) => d ? e.blocked : e.hidden === l && (!s || !e.blocked)).filter((t) => [t.k, ...t.aliases].some((t) => t.toLocaleLowerCase().includes(e.trim().toLocaleLowerCase()))), b = y.filter((e) => t === "all" || (e.cat || "general") === t), x = (s ? rZ : nZ).filter(([e]) => e === "all" || e === t || c.isPending || y.some((t) => (t.cat || "general") === e)), S = b.map((e) => ({
...e,
label: e.k
- })), C = n === "alphabet" ? mZ(S, (e) => e) : [], w = v.filter((e) => p.has(e.k)), T = (e) => {
+ })), C = n === "alphabet" ? pZ(S, (e) => e) : [], w = v.filter((e) => p.has(e.k)), T = (e) => {
_.run(e.operation, async (t) => {
let n = s ? {
...e,
scope: o
} : e;
- return i$(n, await r$(n, t), t);
+ return r$(n, await n$(n, t), t);
}, (e) => {
e && m(/* @__PURE__ */ new Set());
});
- }, E = w.map(t$), k = {
+ }, E = w.map(e$), k = {
online: s,
favorites: s,
picked: p,
@@ -63785,7 +63786,7 @@ function tCe({ search: e = "", category: t = "all", view: n = "cloud", onCategor
"data-tag-manager": "",
className: "flex min-w-0 flex-col",
children: [
- /* @__PURE__ */ (0, O.jsx)(JQ, {
+ /* @__PURE__ */ (0, O.jsx)(qQ, {
categories: x,
category: t,
online: s,
@@ -63808,7 +63809,7 @@ function tCe({ search: e = "", category: t = "all", view: n = "cloud", onCategor
} } : {}
},
actions: /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [
- c.data?.duplicate_groups.length ? /* @__PURE__ */ (0, O.jsx)(WF, {
+ c.data?.duplicate_groups.length ? /* @__PURE__ */ (0, O.jsx)(UF, {
busy: _.busy === "repair",
onPress: () => T({
operation: "repair",
@@ -63816,11 +63817,11 @@ function tCe({ search: e = "", category: t = "all", view: n = "cloud", onCategor
}),
children: "整理重复标签"
}) : null,
- b.length ? /* @__PURE__ */ (0, O.jsx)(WF, {
+ b.length ? /* @__PURE__ */ (0, O.jsx)(UF, {
onPress: () => m(new Set(b.map((e) => e.k))),
children: "选择当前结果"
}) : null,
- p.size ? /* @__PURE__ */ (0, O.jsx)(WF, {
+ p.size ? /* @__PURE__ */ (0, O.jsx)(UF, {
onPress: () => m(/* @__PURE__ */ new Set()),
children: "清空选择"
}) : null
@@ -63830,62 +63831,62 @@ function tCe({ search: e = "", category: t = "all", view: n = "cloud", onCategor
"aria-busy": "true",
"data-skeleton": "",
className: "h-24 rounded-lg bg-background-tertiary-default",
- children: /* @__PURE__ */ (0, O.jsx)(lw, { children: "正在读取标签" })
- }) : c.isError ? /* @__PURE__ */ (0, O.jsx)(Iz, {
+ children: /* @__PURE__ */ (0, O.jsx)(cw, { children: "正在读取标签" })
+ }) : c.isError ? /* @__PURE__ */ (0, O.jsx)(Fz, {
tone: "error",
- action: /* @__PURE__ */ (0, O.jsx)(q, {
+ action: /* @__PURE__ */ (0, O.jsx)(J, {
variant: "secondary",
onClick: () => void c.refetch(),
children: "立即重试"
}),
children: "无法读取标签"
- }) : b.length ? n === "alphabet" ? /* @__PURE__ */ (0, O.jsx)(KQ, {
+ }) : b.length ? n === "alphabet" ? /* @__PURE__ */ (0, O.jsx)(GQ, {
groups: C,
actions: k
- }) : /* @__PURE__ */ (0, O.jsx)(qQ, {
+ }) : /* @__PURE__ */ (0, O.jsx)(KQ, {
tags: S,
actions: k
- }) : /* @__PURE__ */ (0, O.jsx)(Iz, {
+ }) : /* @__PURE__ */ (0, O.jsx)(Fz, {
tone: "neutral",
children: "没有符合条件的标签。"
}),
- _.error ? /* @__PURE__ */ (0, O.jsx)(Iz, {
+ _.error ? /* @__PURE__ */ (0, O.jsx)(Fz, {
tone: "error",
children: _.error
}) : null,
- /* @__PURE__ */ (0, O.jsxs)(Sk, {
+ /* @__PURE__ */ (0, O.jsxs)(xk, {
label: "标签管理操作",
count: `已选 ${p.size} 个标签`,
visible: p.size > 0,
children: [
- /* @__PURE__ */ (0, O.jsx)(q, {
+ /* @__PURE__ */ (0, O.jsx)(J, {
variant: "secondary",
size: "small",
disabled: w.length !== 1,
onClick: () => g("rename"),
children: "重命名"
}),
- /* @__PURE__ */ (0, O.jsx)(q, {
+ /* @__PURE__ */ (0, O.jsx)(J, {
variant: "secondary",
size: "small",
disabled: w.length < 2 || s && new Set(w.map((e) => e.cat)).size > 1,
onClick: () => g("merge"),
children: "合并"
}),
- /* @__PURE__ */ (0, O.jsx)(q, {
+ /* @__PURE__ */ (0, O.jsx)(J, {
variant: "secondary",
size: "small",
- ...Vz(!!_.busy),
+ ...Bz(!!_.busy),
onClick: () => T({
operation: l ? "restore" : "hide",
ids: E
}),
children: l ? "恢复" : "隐藏"
}),
- s ? /* @__PURE__ */ (0, O.jsx)(q, {
+ s ? /* @__PURE__ */ (0, O.jsx)(J, {
variant: "secondary",
size: "small",
- ...Vz(!!_.busy),
+ ...Bz(!!_.busy),
onClick: () => T({
operation: d ? "unblock" : "block",
ids: E
@@ -63959,16 +63960,16 @@ var nCe = [{
]]
};
function oCe({ kind: e, layout: t, onChange: n }) {
- return /* @__PURE__ */ (0, O.jsx)(yU, {
- "aria-label": `${nZ[e]}索引版式`,
+ return /* @__PURE__ */ (0, O.jsx)(vU, {
+ "aria-label": `${tZ[e]}索引版式`,
orientation: "horizontal",
value: t,
onChange: (e) => n(e),
"data-index-layout": "",
- className: `flex-none ${bU}`,
- children: aCe[sZ(e) ? "company" : "people"].map(([e, t, n]) => {
- let r = zz(n);
- return /* @__PURE__ */ (0, O.jsx)(TR, {
+ className: `flex-none ${yU}`,
+ children: aCe[oZ(e) ? "company" : "people"].map(([e, t, n]) => {
+ let r = Rz(n);
+ return /* @__PURE__ */ (0, O.jsx)(wR, {
value: e,
"aria-label": t,
className: rge,
@@ -63981,7 +63982,7 @@ function oCe({ kind: e, layout: t, onChange: n }) {
})
});
}
-var sCe = zz("search");
+var sCe = Rz("search");
function cCe({ label: e, value: t, onQuery: n }) {
let [r, i] = (0, D.useState)(t), a = (0, D.useRef)(!1), o = (0, D.useRef)(void 0);
(0, D.useEffect)(() => {
@@ -63999,13 +64000,13 @@ function cCe({ label: e, value: t, onQuery: n }) {
onCompositionEnd: (e) => {
a.current = !1, s(e.target.value);
},
- children: /* @__PURE__ */ (0, O.jsx)(Az, {
+ children: /* @__PURE__ */ (0, O.jsx)(kz, {
"aria-label": e,
value: r,
onChange: (e) => {
i(e), a.current || s(e);
},
- children: /* @__PURE__ */ (0, O.jsx)(Mz, {
+ children: /* @__PURE__ */ (0, O.jsx)(jz, {
type: "search",
leadingIcon: sCe,
spellCheck: !1,
@@ -64019,13 +64020,13 @@ function cCe({ label: e, value: t, onQuery: n }) {
});
}
function lCe(e) {
- let [t, n] = (0, D.useState)(!1), [r, i] = (0, D.useState)(() => cZ({
+ let [t, n] = (0, D.useState)(!1), [r, i] = (0, D.useState)(() => sZ({
kind: e.kind,
q: e.q,
scope: e.scope,
view: e.view,
category: e.category
- })), [a, o] = (0, D.useState)(e.layout), [s, c] = (0, D.useState)(/* @__PURE__ */ new Set()), [l, u] = (0, D.useState)("any"), d = (0, D.useRef)(null), { kind: f, q: p, scope: m, view: h, category: g } = r, _ = nZ[f], v = f === "tags" && m === "online", y = f === "performers" && m === "online";
+ })), [a, o] = (0, D.useState)(e.layout), [s, c] = (0, D.useState)(/* @__PURE__ */ new Set()), [l, u] = (0, D.useState)("any"), d = (0, D.useRef)(null), { kind: f, q: p, scope: m, view: h, category: g } = r, _ = tZ[f], v = f === "tags" && m === "online", y = f === "performers" && m === "online";
(0, D.useEffect)(() => {
if (r.kind === e.kind && r.scope === e.scope && r.category === e.category) return;
let t = !0;
@@ -64044,7 +64045,7 @@ function lCe(e) {
...t
};
x(Object.keys(t).every((e) => e === "q")), i(o), e.route(o, { replace: a });
- }, C = fZ(lZ(r)), w = wt({
+ }, C = dZ(cZ(r)), w = wt({
queryKey: C.queryKey,
queryFn: ({ pageParam: e, signal: t }) => C.queryFn({
pageParam: e,
@@ -64069,14 +64070,14 @@ function lCe(e) {
T,
f,
v
- ]), te = (0, D.useMemo)(() => f === "tags" && h === "alphabet" ? mZ(F, (t) => v ? t : e.tagLabel(t)) : [], [
+ ]), te = (0, D.useMemo)(() => f === "tags" && h === "alphabet" ? pZ(F, (t) => v ? t : e.tagLabel(t)) : [], [
F,
h,
f,
v
]), I = (t) => {
o(t), e.savePreference({ layout: t });
- }, ne = f === "tags" ? /* @__PURE__ */ (0, O.jsx)(HQ, {
+ }, ne = f === "tags" ? /* @__PURE__ */ (0, O.jsx)(VQ, {
tabs: rCe,
value: m,
label: "词表",
@@ -64087,7 +64088,7 @@ function lCe(e) {
view: e === "online" ? "alphabet" : h
});
}
- }) : sZ(f) ? /* @__PURE__ */ (0, O.jsx)(HQ, {
+ }) : oZ(f) ? /* @__PURE__ */ (0, O.jsx)(VQ, {
tabs: nCe,
value: f,
label: "公司类型",
@@ -64097,7 +64098,7 @@ function lCe(e) {
let n = new Set(e);
return n.delete(t) || n.add(t), n;
}) : F.find((e) => e.k === t)?.entity_id ? e.openEntity("tag", t) : e.showTags([t], "all");
- }, ie = (v ? iZ : rZ).filter(ee);
+ }, ie = (v ? rZ : nZ).filter(ee);
return /* @__PURE__ */ (0, O.jsxs)("div", {
ref: d,
"data-index-page": f,
@@ -64112,23 +64113,23 @@ function lCe(e) {
className: "flex flex-none items-center text-display-4-medium whitespace-nowrap text-text-primary max-board-narrow:text-title-1-medium",
children: _
}),
- oZ(f) ? /* @__PURE__ */ (0, O.jsx)("span", {
+ aZ(f) ? /* @__PURE__ */ (0, O.jsx)("span", {
"data-index-count": "",
className: "text-caption-1-regular leading-5 whitespace-nowrap text-text-secondary tabular-nums max-board-narrow:order-1 max-board-narrow:basis-full",
children: w.isPending || w.isError ? "" : k
}) : null,
- oZ(f) ? /* @__PURE__ */ (0, O.jsx)(oCe, {
+ aZ(f) ? /* @__PURE__ */ (0, O.jsx)(oCe, {
kind: f,
layout: a,
onChange: I
}) : null,
- /* @__PURE__ */ (0, O.jsx)(eB, { kind: f === "tags" ? "tag" : f === "studios" ? "studio" : f === "agencies" ? "agency" : f === "creators" ? "creator" : "performer" }),
- f === "tags" ? /* @__PURE__ */ (0, O.jsx)(q, {
+ /* @__PURE__ */ (0, O.jsx)($z, { kind: f === "tags" ? "tag" : f === "studios" ? "studio" : f === "agencies" ? "agency" : f === "creators" ? "creator" : "performer" }),
+ f === "tags" ? /* @__PURE__ */ (0, O.jsx)(J, {
variant: t ? "primary" : "ghost",
iconOnly: !0,
className: "flex-none",
"data-tag-mode": "",
- leadingIcon: zz("pencil"),
+ leadingIcon: Rz("pencil"),
"aria-label": t ? "返回标签浏览" : "管理标签",
title: t ? "返回标签浏览" : "管理标签",
"aria-pressed": t,
@@ -64145,7 +64146,7 @@ function lCe(e) {
})
]
}),
- f === "performers" || f === "creators" ? /* @__PURE__ */ (0, O.jsx)(HQ, {
+ f === "performers" || f === "creators" ? /* @__PURE__ */ (0, O.jsx)(VQ, {
tabs: iCe,
value: y ? "online" : f,
label: "人物名册",
@@ -64172,8 +64173,8 @@ function lCe(e) {
}, m) : /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [
f === "performers" && m === "local" ? /* @__PURE__ */ (0, O.jsx)("div", {
"aria-label": "身份分类",
- className: tZ,
- children: eZ.filter((e) => e[0] === g || ee(e)).map(([e, t]) => /* @__PURE__ */ (0, O.jsx)(q, {
+ className: eZ,
+ children: $X.filter((e) => e[0] === g || ee(e)).map(([e, t]) => /* @__PURE__ */ (0, O.jsx)(J, {
variant: g === e ? "primary" : "secondary",
size: "small",
"aria-pressed": g === e,
@@ -64181,7 +64182,7 @@ function lCe(e) {
children: t
}, e))
}) : null,
- f === "tags" ? /* @__PURE__ */ (0, O.jsx)(JQ, {
+ f === "tags" ? /* @__PURE__ */ (0, O.jsx)(qQ, {
categories: ie,
category: g,
online: v,
@@ -64206,10 +64207,10 @@ function lCe(e) {
mode: h
}) }
});
- if (w.isError) return /* @__PURE__ */ (0, O.jsx)(Lz, {
- icon: zz("alert"),
+ if (w.isError) return /* @__PURE__ */ (0, O.jsx)(Iz, {
+ icon: Rz("alert"),
title: `没能读取${_}`,
- actions: /* @__PURE__ */ (0, O.jsx)(q, {
+ actions: /* @__PURE__ */ (0, O.jsx)(J, {
variant: "secondary",
onClick: () => void w.refetch(),
children: "立即重试"
@@ -64230,7 +64231,7 @@ function lCe(e) {
layout: a,
props: e
});
- if (oZ(f)) return /* @__PURE__ */ (0, O.jsx)(yZ, {
+ if (aZ(f)) return /* @__PURE__ */ (0, O.jsx)(vZ, {
kind: f,
items: T,
layout: a,
@@ -64241,10 +64242,10 @@ function lCe(e) {
picked: s,
press: re
};
- return h === "alphabet" ? /* @__PURE__ */ (0, O.jsx)(KQ, {
+ return h === "alphabet" ? /* @__PURE__ */ (0, O.jsx)(GQ, {
groups: te,
actions: t
- }) : /* @__PURE__ */ (0, O.jsx)(qQ, {
+ }) : /* @__PURE__ */ (0, O.jsx)(KQ, {
tags: F,
actions: t
});
@@ -64252,7 +64253,7 @@ function lCe(e) {
}),
E ? /* @__PURE__ */ (0, O.jsx)("div", {
className: "mt-5 flex justify-center",
- children: /* @__PURE__ */ (0, O.jsxs)(q, {
+ children: /* @__PURE__ */ (0, O.jsxs)(J, {
variant: "secondary",
"data-index-more": "",
className: "min-w-31",
@@ -64287,26 +64288,26 @@ var uCe = {
agencies: "事务所"
};
function dCe({ kind: e, filtered: t, online: n, onClear: r }) {
- if (t) return /* @__PURE__ */ (0, O.jsx)(Lz, {
- icon: zz("search"),
+ if (t) return /* @__PURE__ */ (0, O.jsx)(Iz, {
+ icon: Rz("search"),
title: "没有符合条件的内容",
- actions: /* @__PURE__ */ (0, O.jsx)(q, {
+ actions: /* @__PURE__ */ (0, O.jsx)(J, {
size: "small",
onClick: r,
children: "清除筛选"
}),
children: "清除筛选或搜索条件后查看全部内容。"
});
- let i = n && e === "performers" ? "创作者" : uCe[e], a = /* @__PURE__ */ (0, O.jsx)(YF, {
+ let i = n && e === "performers" ? "创作者" : uCe[e], a = /* @__PURE__ */ (0, O.jsx)(JF, {
size: "small",
variant: n ? "primary" : "secondary",
href: "/subscriptions?tab=add",
children: "添加关注"
});
- return /* @__PURE__ */ (0, O.jsx)(Lz, {
- icon: zz(e === "tags" ? "tags" : "user-round"),
+ return /* @__PURE__ */ (0, O.jsx)(Iz, {
+ icon: Rz(e === "tags" ? "tags" : "user-round"),
title: `还没有${i}`,
- actions: n ? a : /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(YF, {
+ actions: n ? a : /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(JF, {
size: "small",
href: "/settings/library",
children: "添加媒体"
@@ -64314,14 +64315,14 @@ function dCe({ kind: e, filtered: t, online: n, onClear: r }) {
children: n ? `添加关注来源并获取内容后,这里会显示来源上的${i}。` : "添加内容并补充资料后,这里会显示对应信息。"
});
}
-var a$ = {
+var i$ = {
video: ["视频", "play"],
image: ["图片", "pics"],
archive: ["压缩包", "file-archive"],
audio: ["音频", "file-audio"],
url: ["网址快捷方式", "globe"],
other: ["其它文件", "hard-drive"]
-}, fCe = (e) => a$[e.junk_kind || "other"] || a$.other;
+}, fCe = (e) => i$[e.junk_kind || "other"] || i$.other;
function pCe(e) {
return e === "dismissed" ? {
operation: "reconsider-junk",
@@ -64333,7 +64334,7 @@ function pCe(e) {
glyph: "check"
};
}
-var o$ = (e, t) => Number((t ? e.counts?.[t] : e.all_total) || 0), mCe = (e, t) => [
+var a$ = (e, t) => Number((t ? e.counts?.[t] : e.all_total) || 0), mCe = (e, t) => [
"junk-queue",
e.view,
e.kind,
@@ -64355,19 +64356,19 @@ async function gCe(e, t) {
}
//#endregion
//#region src/react/junk-queue/junk-card.tsx
-function s$({ name: e }) {
+function o$({ name: e }) {
return /* @__PURE__ */ (0, O.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, O.jsx)("use", { href: `#i-${e}` })
});
}
-var c$ = (e, t) => e || t.shiftKey || t.ctrlKey || t.metaKey;
+var s$ = (e, t) => e || t.shiftKey || t.ctrlKey || t.metaKey;
function _Ce({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions: a }) {
let o = (0, D.useRef)(null), [s, c] = (0, D.useState)(""), [l, u] = (0, D.useState)(""), d = e.junk_kind || "other", [f, p] = fCe(e), m = String(e.name || ""), h = pCe(t), g = d === "video" ? `/thumb?id=${e.id}&c=4` : d === "image" ? `/photo-thumb?id=${e.id}` : "", _ = d === "video" || d === "image", v = (t) => {
- t.target.closest("[data-junk-actions]") || c$(r, t) && (t.preventDefault(), a.toggleSelection(e.id, t.shiftKey));
+ t.target.closest("[data-junk-actions]") || s$(r, t) && (t.preventDefault(), a.toggleSelection(e.id, t.shiftKey));
}, y = (t) => {
- t.stopPropagation(), c$(r, t) ? (t.preventDefault(), a.toggleSelection(e.id, t.shiftKey)) : o.current && a.open(e, o.current);
+ t.stopPropagation(), s$(r, t) ? (t.preventDefault(), a.toggleSelection(e.id, t.shiftKey)) : o.current && a.open(e, o.current);
}, b = (t) => {
t.preventDefault(), t.stopPropagation(), s !== "reveal" && (c("reveal"), u(""), a.reveal(e).then(u, () => {}).finally(() => c("")));
}, x = (t) => (n) => {
@@ -64398,7 +64399,7 @@ function _Ce({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
"data-junk-kind": d,
"data-selected": n ? "" : void 0,
onClick: v,
- onMouseDown: FW,
+ onMouseDown: PW,
children: [
/* @__PURE__ */ (0, O.jsxs)("div", {
"data-media-pic": "",
@@ -64406,7 +64407,7 @@ function _Ce({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
children: [
/* @__PURE__ */ (0, O.jsxs)("span", {
"data-media-glyph": "",
- children: [/* @__PURE__ */ (0, O.jsx)(s$, { name: p }), /* @__PURE__ */ (0, O.jsx)("b", { children: f })]
+ children: [/* @__PURE__ */ (0, O.jsx)(o$, { name: p }), /* @__PURE__ */ (0, O.jsx)("b", { children: f })]
}),
g ? /* @__PURE__ */ (0, O.jsx)("span", {
"data-media-art": "thumb",
@@ -64418,7 +64419,7 @@ function _Ce({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
}),
/* @__PURE__ */ (0, O.jsx)("span", {
"data-media-check": "",
- children: /* @__PURE__ */ (0, O.jsx)(s$, { name: "check" })
+ children: /* @__PURE__ */ (0, O.jsx)(o$, { name: "check" })
})
]
}),
@@ -64455,7 +64456,7 @@ function _Ce({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
children: [s === "reveal" ? /* @__PURE__ */ (0, O.jsx)("span", {
"data-junk-spinner": "",
dangerouslySetInnerHTML: { __html: ns("正在定位") }
- }) : /* @__PURE__ */ (0, O.jsx)(s$, { name: "folder-open" }), /* @__PURE__ */ (0, O.jsx)("span", {
+ }) : /* @__PURE__ */ (0, O.jsx)(o$, { name: "folder-open" }), /* @__PURE__ */ (0, O.jsx)("span", {
"data-junk-label": "",
children: "打开位置"
})]
@@ -64467,7 +64468,7 @@ function _Ce({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
"aria-label": h.label,
...S(h.operation),
onClick: x(h.operation),
- children: [/* @__PURE__ */ (0, O.jsx)(s$, { name: h.glyph }), /* @__PURE__ */ (0, O.jsx)("span", {
+ children: [/* @__PURE__ */ (0, O.jsx)(o$, { name: h.glyph }), /* @__PURE__ */ (0, O.jsx)("span", {
"data-junk-label": "",
children: h.label
})]
@@ -64479,7 +64480,7 @@ function _Ce({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
"aria-label": "移入回收站",
...S("dispose"),
onClick: x("dispose"),
- children: [/* @__PURE__ */ (0, O.jsx)(s$, { name: "trash" }), /* @__PURE__ */ (0, O.jsx)("span", {
+ children: [/* @__PURE__ */ (0, O.jsx)(o$, { name: "trash" }), /* @__PURE__ */ (0, O.jsx)("span", {
"data-junk-label": "",
children: "移入回收站"
})]
@@ -64494,7 +64495,7 @@ function _Ce({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
]
});
}
-var vCe = (0, D.memo)(_Ce), l$ = [
+var vCe = (0, D.memo)(_Ce), c$ = [
[
"",
"全部",
@@ -64530,41 +64531,41 @@ var vCe = (0, D.memo)(_Ce), l$ = [
"其它",
"hard-drive"
]
-], yCe = (e) => l$.find(([t]) => t === e)?.[0] ?? "";
-function u$(e) {
+], yCe = (e) => c$.find(([t]) => t === e)?.[0] ?? "";
+function l$(e) {
let t = new URLSearchParams(e);
return {
kind: yCe(t.get("type")),
view: t.get("view") === "dismissed" ? "dismissed" : "pending"
};
}
-function d$(e = "", t = "pending") {
+function u$(e = "", t = "pending") {
let n = new URLSearchParams();
e && n.set("type", e), t === "dismissed" && n.set("view", "dismissed");
let r = n.toString();
return `/junk-files${r ? `?${r}` : ""}`;
}
-function f$(e) {
+function d$(e) {
return e === "dismissed" ? {
view: "pending",
label: "返回待判断",
glyph: "rotate-ccw",
- href: d$("", "pending")
+ href: u$("", "pending")
} : {
view: "dismissed",
label: "已排除",
glyph: "eye-off",
- href: d$("", "dismissed")
+ href: u$("", "dismissed")
};
}
-var p$ = (e) => e === "dismissed" ? "已排除" : "待判断", m$ = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${e}"></use></svg>`;
+var f$ = (e) => e === "dismissed" ? "已排除" : "待判断", p$ = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${e}"></use></svg>`;
function bCe({ kind: e, view: t }) {
- let n = l$.map(([n, r, i]) => `<a href="${d$(n, t)}" data-junk-kind-link="${n}"${n === e ? " aria-current=\"page\"" : ""}>${m$(i)}${B(r)}</a>`).join(""), r = f$(t);
- return `<div class="peach-react" data-junk-count-skeleton=""><div data-junk-count=""><div data-junk-summary="" aria-live="polite">${Qo(p$(t))}</div><div data-junk-filters-frame="" data-filter-glass="" data-glass-pane=""><span data-view-glide="" aria-hidden="true" hidden></span><nav data-junk-filters="" aria-label="垃圾文件分类">${n}<i data-junk-divider="" aria-hidden="true"></i><a href="${r.href}" data-junk-view-link="${r.view}"${t === "dismissed" ? " aria-current=\"page\"" : ""}>${m$(r.glyph)}${r.label}</a></nav></div></div></div>`;
+ let n = c$.map(([n, r, i]) => `<a href="${u$(n, t)}" data-junk-kind-link="${n}"${n === e ? " aria-current=\"page\"" : ""}>${p$(i)}${B(r)}</a>`).join(""), r = d$(t);
+ return `<div class="peach-react" data-junk-count-skeleton=""><div data-junk-count=""><div data-junk-summary="" aria-live="polite">${Qo(f$(t))}</div><div data-junk-filters-frame="" data-filter-glass="" data-glass-pane=""><span data-view-glide="" aria-hidden="true" hidden></span><nav data-junk-filters="" aria-label="垃圾文件分类">${n}<i data-junk-divider="" aria-hidden="true"></i><a href="${r.href}" data-junk-view-link="${r.view}"${t === "dismissed" ? " aria-current=\"page\"" : ""}>${p$(r.glyph)}${r.label}</a></nav></div></div></div>`;
}
//#endregion
//#region src/react/components/collection-summary.tsx
-function h$({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !1 }) {
+function m$({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !1 }) {
return /* @__PURE__ */ (0, O.jsxs)("div", {
"data-collection-summary": "",
className: `${i ? "" : "mb-5 "}flex items-end justify-between gap-4 rounded-surface bg-background-secondary-default px-6 py-5
@@ -64591,31 +64592,31 @@ function h$({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !
}
//#endregion
//#region src/react/junk-queue/junk-count.tsx
-function g$({ name: e }) {
+function h$({ name: e }) {
return /* @__PURE__ */ (0, O.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, O.jsx)("use", { href: `#i-${e}` })
});
}
-function _$({ scope: e, count: t }) {
+function g$({ scope: e, count: t }) {
return t ? /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [" ", /* @__PURE__ */ (0, O.jsx)("span", {
"data-count-badge": `junk:${e}`,
children: t.toLocaleString()
})] }) : null;
}
function xCe({ route: e, page: t, failed: n, onNavigate: r }) {
- let i = aV(), a = (0, D.useRef)(null), { kind: o, view: s } = e, c = qF(a, i, "[data-junk-kind-link][aria-current=\"page\"]", `${s}:${o}:${t ? l$.map(([e]) => o$(t, e)).join(",") : ""}`), l = f$(s), u = (e) => {
+ let i = iV(), a = (0, D.useRef)(null), { kind: o, view: s } = e, c = KF(a, i, "[data-junk-kind-link][aria-current=\"page\"]", `${s}:${o}:${t ? c$.map(([e]) => a$(t, e)).join(",") : ""}`), l = d$(s), u = (e) => {
let t = e.target.closest("a");
- !t || e.button !== 0 || e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || (e.preventDefault(), r(t.getAttribute("href") || d$()));
+ !t || e.button !== 0 || e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || (e.preventDefault(), r(t.getAttribute("href") || u$()));
}, d = t ? `${Number(t.total || 0).toLocaleString()} 个` : n ? "—" : "";
return /* @__PURE__ */ (0, O.jsxs)("div", {
"data-junk-count": "",
children: [/* @__PURE__ */ (0, O.jsx)("div", {
"data-junk-summary": "",
"aria-live": "polite",
- children: /* @__PURE__ */ (0, O.jsx)(h$, {
- label: p$(s),
+ children: /* @__PURE__ */ (0, O.jsx)(m$, {
+ label: f$(s),
figure: d,
pending: !t && !n,
flush: !0
@@ -64635,17 +64636,17 @@ function xCe({ route: e, page: t, failed: n, onNavigate: r }) {
onClick: u,
onPointerLeave: c.leave,
children: [
- l$.map(([e, n, r]) => /* @__PURE__ */ (0, O.jsxs)("a", {
- href: d$(e, s),
+ c$.map(([e, n, r]) => /* @__PURE__ */ (0, O.jsxs)("a", {
+ href: u$(e, s),
"data-junk-kind-link": e,
"aria-current": e === o ? "page" : void 0,
onPointerEnter: c.hover,
children: [
- /* @__PURE__ */ (0, O.jsx)(g$, { name: r }),
+ /* @__PURE__ */ (0, O.jsx)(h$, { name: r }),
n,
- /* @__PURE__ */ (0, O.jsx)(_$, {
+ /* @__PURE__ */ (0, O.jsx)(g$, {
scope: e,
- count: t ? o$(t, e) : 0
+ count: t ? a$(t, e) : 0
})
]
}, e || "all")),
@@ -64659,9 +64660,9 @@ function xCe({ route: e, page: t, failed: n, onNavigate: r }) {
"aria-current": s === "dismissed" ? "page" : void 0,
onPointerEnter: s === "dismissed" ? void 0 : c.hover,
children: [
- /* @__PURE__ */ (0, O.jsx)(g$, { name: l.glyph }),
+ /* @__PURE__ */ (0, O.jsx)(h$, { name: l.glyph }),
l.label,
- /* @__PURE__ */ (0, O.jsx)(_$, {
+ /* @__PURE__ */ (0, O.jsx)(g$, {
scope: "dismissed",
count: Number(t?.dismissed_total || 0)
})
@@ -64674,7 +64675,7 @@ function xCe({ route: e, page: t, failed: n, onNavigate: r }) {
}
//#endregion
//#region src/react/junk-queue/junk-queue-page.tsx
-var SCe = zz("check"), CCe = (e, t) => e[1] === t.view && e[2] === t.kind;
+var SCe = Rz("check"), CCe = (e, t) => e[1] === t.view && e[2] === t.kind;
function wCe(e) {
let t = {
kind: e.kind,
@@ -64719,7 +64720,7 @@ function TCe(e) {
}, [e]), t;
}
function ECe({ props: e, data: t, pending: n, error: r, retry: i }) {
- let a = uW(n, e.skeletonHtml), o = Math.max(1, e.batchSize || 60), [s, c] = (0, D.useState)(1), l = t?.items || [], u = l.slice(0, s * o), { canLoadMore: d } = e, f = (0, D.useCallback)(() => {
+ let a = lW(n, e.skeletonHtml), o = Math.max(1, e.batchSize || 60), [s, c] = (0, D.useState)(1), l = t?.items || [], u = l.slice(0, s * o), { canLoadMore: d } = e, f = (0, D.useCallback)(() => {
d?.() !== !1 && c((e) => e + 1);
}, [d]);
return /* @__PURE__ */ (0, O.jsxs)("div", {
@@ -64727,16 +64728,16 @@ function ECe({ props: e, data: t, pending: n, error: r, retry: i }) {
"data-grid-reveal": a.fading ? "" : void 0,
children: [a.layer, (() => {
if (n) return null;
- if (!t) return /* @__PURE__ */ (0, O.jsx)(dW, {
+ if (!t) return /* @__PURE__ */ (0, O.jsx)(uW, {
message: Ut(r),
onRetry: i
});
if (!l.length) {
let t = e.view === "dismissed";
- return /* @__PURE__ */ (0, O.jsx)(Lz, {
+ return /* @__PURE__ */ (0, O.jsx)(Iz, {
icon: SCe,
title: t ? "没有已排除的文件" : "没有待判断的垃圾文件",
- actions: t ? /* @__PURE__ */ (0, O.jsx)(YF, {
+ actions: t ? /* @__PURE__ */ (0, O.jsx)(JF, {
size: "small",
href: "/junk-files",
children: "查看待判断"
@@ -64775,7 +64776,7 @@ function DCe({ onMore: e }) {
if (!n || typeof IntersectionObserver > "u") return;
let r = new IntersectionObserver((t) => {
t.some((e) => e.isIntersecting) && e();
- }, { rootMargin: lW });
+ }, { rootMargin: cW });
return r.observe(n), () => r.disconnect();
}, [e]), /* @__PURE__ */ (0, O.jsx)("div", {
ref: t,
@@ -64786,7 +64787,7 @@ function DCe({ onMore: e }) {
}
//#endregion
//#region src/react/wants/wants.ts
-var v$ = "/api/wants", y$ = ["wants"], OCe = (e) => [
+var _$ = "/api/wants", v$ = ["wants"], OCe = (e) => [
"wants",
"follow",
e
@@ -64795,9 +64796,9 @@ var v$ = "/api/wants", y$ = ["wants"], OCe = (e) => [
["unreleased", "未发售"],
["given_up", "暂时放弃"],
["acquired", "已入库"]
-], b$ = (e) => V(v$, e);
+], y$ = (e) => V(_$, e);
function ACe(e, t) {
- U.setQueryData(y$, (n) => n?.items.some((n) => n.id === e && n.has_magnets !== t) ? {
+ U.setQueryData(v$, (n) => n?.items.some((n) => n.id === e && n.has_magnets !== t) ? {
...n,
items: n.items.map((n) => n.id === e ? {
...n,
@@ -64805,39 +64806,39 @@ function ACe(e, t) {
} : n)
} : n);
}
-var jCe = (e, t) => V(`${v$}?follow=${encodeURIComponent(e)}`, t), x$ = (e, t) => H(v$, {
+var jCe = (e, t) => V(`${_$}?follow=${encodeURIComponent(e)}`, t), b$ = (e, t) => H(_$, {
action: "add",
...e
-}, "POST", t), S$ = (e, t) => H(v$, {
+}, "POST", t), x$ = (e, t) => H(_$, {
action: "remove",
ids: e
-}, "POST", t), MCe = (e, t) => H(v$, {
+}, "POST", t), MCe = (e, t) => H(_$, {
action: "reset",
ids: e
-}, "POST", t), C$ = () => U.invalidateQueries({ queryKey: y$ }), NCe = (e) => e.code || e.title || `关注条目 ${e.follow_item_id ?? e.id}`;
+}, "POST", t), S$ = () => U.invalidateQueries({ queryKey: v$ }), NCe = (e) => e.code || e.title || `关注条目 ${e.follow_item_id ?? e.id}`;
function PCe(e) {
return e.phase === "acquired" ? e.acquired_at ? `入库于 ${e.acquired_at.slice(0, 10)}` : "已入库" : e.phase === "unreleased" ? e.release_date ? `${e.release_date} 发售` : "还没发售" : e.phase === "given_up" ? `查过 ${e.search_count} 次都没找到` : e.fresh ? "新片:查不到也一直留在待找" : e.search_count ? `查过 ${e.search_count} 次` : "还没查过";
}
//#endregion
//#region src/react/jav/jav-navigation.ts
-var w$ = [
+var C$ = [
["library", "馆藏"],
["discover", "发现"],
["wants", "想要"]
-], T$ = (e) => w$.some(([t]) => t === e) ? e : "library", FCe = (e) => T$(e) === "library" ? "/?jav=1" : `/jav?tab=${e}`;
+], w$ = (e) => C$.some(([t]) => t === e) ? e : "library", FCe = (e) => w$(e) === "library" ? "/?jav=1" : `/jav?tab=${e}`;
function ICe(e) {
let t = new URLSearchParams(e);
return t.delete("tab"), t.set("jav", "1"), "/?" + t;
}
//#endregion
//#region src/react/jav/jav.ts
-var E$ = (e, t = "taste", n = "desc") => [
+var T$ = (e, t = "taste", n = "desc") => [
"jav-discoveries",
e,
t,
n
];
-function D$(e, t, n = {}) {
+function E$(e, t, n = {}) {
let r = new URLSearchParams({
scope: e,
limit: "100",
@@ -64857,82 +64858,82 @@ function LCe(e, t, n) {
}
async function RCe(e, t) {
e === "wants" ? await U.ensureQueryData({
- queryKey: y$,
- queryFn: () => b$(t),
+ queryKey: v$,
+ queryFn: () => y$(t),
staleTime: 3e4,
revalidateIfStale: !0
}) : e === "discover" && await U.ensureQueryData({
- queryKey: E$("external"),
- queryFn: () => D$("external", t),
+ queryKey: T$("external"),
+ queryFn: () => E$("external", t),
staleTime: 3e4,
revalidateIfStale: !0
});
}
//#endregion
//#region src/react/components/fieldset-layout.ts
-var O$ = NH({
+var D$ = MH({
padding: "none",
bordered: "line",
className: "overflow-hidden"
-}), k$ = {
+}), O$ = {
split: "min-w-0 p-6",
stack: "flex min-h-30 min-w-0 flex-1 flex-col px-5 pt-5 pb-4 max-cleanup-tight:min-h-0 max-cleanup-tight:p-4.5"
-}, A$ = {
+}, k$ = {
split: "flex flex-wrap items-center justify-end gap-2 self-stretch p-6 max-[1001px]:justify-start max-[1001px]:pt-0",
stack: "flex min-h-14 flex-wrap items-center justify-end gap-2 border-t border-border-button-default bg-card-footer px-5 py-3 max-cleanup-tight:px-4.5"
};
-function j$(e) {
- return `${O$} ${e === "split" ? "fieldset-split" : "flex flex-col"}`;
+function A$(e) {
+ return `${D$} ${e === "split" ? "fieldset-split" : "flex flex-col"}`;
}
//#endregion
//#region src/management.ts
-var M$ = "扫描文件并更新馆藏,读取本地资料、补齐缺失资料和封面,按设置生成视频预览。", N$ = "部分视频文件可能播放卡顿、打不开,修复缺时间戳表和缺索引的问题。", P$ = "<span class=\"skeleton skeleton-text\" aria-hidden=\"true\"></span>", F$ = "disabled data-skeleton-action", zCe = "aria-disabled=\"true\"", I$ = (e) => `<div class="peach-react"><div class="flex flex-col gap-4">${e}</div></div>`, L$ = (e, t, n) => `<div class="${k$[n]}"><div class="flex flex-col gap-2">
+var j$ = "扫描文件并更新馆藏,读取本地资料、补齐缺失资料和封面,按设置生成视频预览。", M$ = "部分视频文件可能播放卡顿、打不开,修复缺时间戳表和缺索引的问题。", N$ = "<span class=\"skeleton skeleton-text\" aria-hidden=\"true\"></span>", P$ = "disabled data-skeleton-action", zCe = "aria-disabled=\"true\"", F$ = (e) => `<div class="peach-react"><div class="flex flex-col gap-4">${e}</div></div>`, I$ = (e, t, n) => `<div class="${O$[n]}"><div class="flex flex-col gap-2">
<h3 class="text-title-2-medium text-text-primary">${e}</h3>
<p class="text-body-2-regular text-text-secondary">${t}</p></div></div>`;
function BCe() {
- return I$(`<section aria-label="扫描与采集" class="${j$("stack")}" data-cleanup-task data-cleanup-processing>
- ${L$("扫描与采集", M$, "stack")}
- <footer class="${A$.stack}"><a href="/sources" class="inline-flex items-center justify-center gap-1 whitespace-nowrap font-sans rounded-sm text-body-medium text-accent-600"><span>来源和凭证</span>${Vo("arrow-up", "size-(--icon-inline) shrink-0 rotate-90")}</a><span data-button-group data-split-button data-variant="primary">${Wo({
+ return F$(`<section aria-label="扫描与采集" class="${A$("stack")}" data-cleanup-task data-cleanup-processing>
+ ${I$("扫描与采集", j$, "stack")}
+ <footer class="${k$.stack}"><a href="/sources" class="inline-flex items-center justify-center gap-1 whitespace-nowrap font-sans rounded-sm text-body-medium text-accent-600"><span>来源和凭证</span>${Vo("arrow-up", "size-(--icon-inline) shrink-0 rotate-90")}</a><span data-button-group data-split-button data-variant="primary">${Wo({
label: "同步媒体库",
- attrs: F$
+ attrs: P$
})}${Wo({
glyph: "chevron-down",
- attrs: `${F$} aria-label="更多同步方式"`
+ attrs: `${P$} aria-label="更多同步方式"`
})}</span></footer>
</section>`);
}
function VCe() {
- return I$(`<section aria-label="媒体修复" class="${j$("split")}" data-cleanup-task data-cleanup-processing>
- ${L$("媒体修复", N$, "split")}
- <footer class="${A$.split}">${Ko(P$, {
+ return F$(`<section aria-label="媒体修复" class="${A$("split")}" data-cleanup-task data-cleanup-processing>
+ ${I$("媒体修复", M$, "split")}
+ <footer class="${k$.split}">${Ko(N$, {
className: "w-48",
attrs: zCe
})}${Wo({
label: "开始修复",
- attrs: F$
+ attrs: P$
})}</footer>
</section>`);
}
-function R$() {
+function L$() {
let e = [
["人工复核", "square-check-big"],
["高清版", "sparkles"],
["重复文件", "file-stack"],
["垃圾文件", "file-archive"],
["回收站", "trash"]
- ], t = O$, n = k$.stack, r = (e, t = "mb-2") => `<h3 class="text-title-2-medium text-text-primary ${t}">${e}</h3>`, i = (e) => `<footer class="${A$.stack}">${Wo({
+ ], t = D$, n = O$.stack, r = (e, t = "mb-2") => `<h3 class="text-title-2-medium text-text-primary ${t}">${e}</h3>`, i = (e) => `<footer class="${k$.stack}">${Wo({
label: e,
- attrs: F$
+ attrs: P$
})}</footer>`, a = (e) => `<div class="flex flex-col gap-1.5"><span class="text-body-medium text-text-primary">${e}</span><span class="skeleton ui-configuration-skeleton-input"></span></div>`;
return `<div class="peach-react" data-skeleton="cleanup" aria-busy="true" role="status" aria-label="正在读取数据管理状态"><div aria-hidden="true" inert class="mx-auto flex w-full max-w-board flex-col gap-8">
- <div class="inline-grid w-full grid-cols-5 gap-4 max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1">${e.map(([e, t]) => `<div class="min-w-0 bg-background-secondary-default rounded-2xl flex min-h-33 flex-col gap-2 p-4 text-left"><span class="flex min-w-0 items-center gap-2 text-body-medium text-text-secondary"><i class="flex size-8 shrink-0 items-center justify-center rounded-md bg-background-primary-default text-text-primary">${Vo(t, "size-4")}</i>${e}</span><strong class="text-title-1-medium">${P$}</strong><span class="text-caption-1-regular">${P$}</span></div>`).join("")}</div>
+ <div class="inline-grid w-full grid-cols-5 gap-4 max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1">${e.map(([e, t]) => `<div class="min-w-0 bg-background-secondary-default rounded-2xl flex min-h-33 flex-col gap-2 p-4 text-left"><span class="flex min-w-0 items-center gap-2 text-body-medium text-text-secondary"><i class="flex size-8 shrink-0 items-center justify-center rounded-md bg-background-primary-default text-text-primary">${Vo(t, "size-4")}</i>${e}</span><strong class="text-title-1-medium">${N$}</strong><span class="text-caption-1-regular">${N$}</span></div>`).join("")}</div>
<div class="flex flex-col gap-4 max-cleanup-tight:gap-3">
<div id="libraryProcessing">${BCe()}</div><div id="mediaRepair">${VCe()}</div>
<section id="organize" class="${t} flex flex-col" data-cleanup-organize><div class="${n}">${r("整理", "mb-3")}<p class="text-body-regular text-text-secondary">清理文件名中的特殊符号与乱码,也可按模板改名并归入目录。先预览,确认后执行;执行过的一批可以整批退回。</p>
- <div class="mt-3 flex flex-col gap-3"><div class="flex min-w-0 flex-wrap items-start gap-2">${Ko(P$)}<span class="skeleton ui-configuration-skeleton-input min-w-0 basis-64 flex-1"></span></div><p class="text-caption-1-regular text-text-secondary">指定路径时包含子目录,目录模板以该路径为起点。模板均留空时只清理文件名。</p>${a("文件名模板")}${a("目录模板")}<div class="flex flex-wrap gap-2">${Array.from({ length: 3 }, () => Wo({
+ <div class="mt-3 flex flex-col gap-3"><div class="flex min-w-0 flex-wrap items-start gap-2">${Ko(N$)}<span class="skeleton ui-configuration-skeleton-input min-w-0 basis-64 flex-1"></span></div><p class="text-caption-1-regular text-text-secondary">指定路径时包含子目录,目录模板以该路径为起点。模板均留空时只清理文件名。</p>${a("文件名模板")}${a("目录模板")}<div class="flex flex-wrap gap-2">${Array.from({ length: 3 }, () => Wo({
variant: "secondary",
- label: P$,
- attrs: F$
+ label: N$,
+ attrs: P$
})).join("")}</div></div></div>${i("预览")}</section>
</div>
<section id="link-manager" class="flex scroll-mt-20 flex-col gap-4"><div class="${t} flex flex-col"><div class="${n}">${r("链接管理")}<div class="link-stat-grid mt-4 gap-x-8 gap-y-3">${[
@@ -64940,36 +64941,36 @@ function R$() {
"官网/事务所",
"社交账号",
"作品资料站"
- ].map((e) => `<div class="flex min-w-0 flex-col gap-0.5"><span class="text-caption-1-regular text-text-secondary">${e}</span><b class="text-title-2-semibold">${P$}</b></div>`).join("")}</div><div class="mt-4 flex flex-col gap-0.5"><span class="text-caption-1-regular text-text-secondary">主要站点</span>${P$}</div></div>${i("检查死链")}</div></section>
+ ].map((e) => `<div class="flex min-w-0 flex-col gap-0.5"><span class="text-caption-1-regular text-text-secondary">${e}</span><b class="text-title-2-semibold">${N$}</b></div>`).join("")}</div><div class="mt-4 flex flex-col gap-0.5"><span class="text-caption-1-regular text-text-secondary">主要站点</span>${N$}</div></div>${i("检查死链")}</div></section>
</div></div>`;
}
//#endregion
//#region src/react/components/fieldset.tsx
-var HCe = NH({
+var HCe = MH({
padding: "none",
radius: "surface",
bordered: "line",
className: "overflow-hidden"
}), UCe = "border-t border-border-button-default p-4 first:border-t-0";
-function z$({ id: e, gap: t = "none", children: n }) {
+function R$({ id: e, gap: t = "none", children: n }) {
return /* @__PURE__ */ (0, O.jsx)("h3", {
id: e,
className: `text-title-2-medium text-text-primary ${t === "medium" ? "mb-3" : t === "small" ? "mb-2" : ""}`,
children: n
});
}
-function B$({ layout: e, label: t, labelledBy: n, id: r, footer: i, children: a, attributes: o }) {
+function z$({ layout: e, label: t, labelledBy: n, id: r, footer: i, children: a, attributes: o }) {
return /* @__PURE__ */ (0, O.jsxs)("section", {
id: r,
"aria-label": t,
"aria-labelledby": n,
...o,
- className: j$(e),
+ className: A$(e),
children: [/* @__PURE__ */ (0, O.jsx)("div", {
- className: k$[e],
+ className: O$[e],
children: a
}), i ? /* @__PURE__ */ (0, O.jsx)("footer", {
- className: A$[e],
+ className: k$[e],
children: i
}) : null]
});
@@ -64983,8 +64984,8 @@ var WCe = {
error: "rose",
neutral: "neutral"
};
-function V$({ tone: e = "neutral", ...t }) {
- return /* @__PURE__ */ (0, O.jsx)(gZ, {
+function B$({ tone: e = "neutral", ...t }) {
+ return /* @__PURE__ */ (0, O.jsx)(hZ, {
"data-status-tone": e,
variant: "caption",
color: WCe[e],
@@ -65007,7 +65008,7 @@ function GCe({ className: e }) {
});
}
var KCe = "打开文件管理器失败,请重试";
-function H$({ path: e, prefix: t, className: n, onRevealed: r }) {
+function V$({ path: e, prefix: t, className: n, onRevealed: r }) {
let [i, a] = (0, D.useState)(!1), [o, s] = (0, D.useState)(""), c = (0, D.useRef)(!0);
(0, D.useEffect)(() => () => {
c.current = !1;
@@ -65029,15 +65030,15 @@ function H$({ path: e, prefix: t, className: n, onRevealed: r }) {
children: [/* @__PURE__ */ (0, O.jsxs)("div", {
className: "flex items-center justify-between gap-2",
children: [/* @__PURE__ */ (0, O.jsxs)("p", {
- className: tF("min-w-0 break-all", n),
+ className: eF("min-w-0 break-all", n),
children: [t, e]
- }), /* @__PURE__ */ (0, O.jsx)(NF, {
+ }), /* @__PURE__ */ (0, O.jsx)(MF, {
icon: GCe,
size: "small",
className: "shrink-0",
"aria-label": "在资源管理器中显示",
onClick: () => void l(),
- ...Vz(i)
+ ...Bz(i)
})]
}), o ? /* @__PURE__ */ (0, O.jsx)("p", {
className: "text-caption-1-regular text-text-error-primary",
@@ -65054,20 +65055,20 @@ var qCe = "这一项耗时较长,暂时没有新进展。任务结束后可以
return r && a.push(`${r} 项同名人物资料需要确认是否为同一人`), i && a.push(`${i} 张头像未取得`), `${a.join(",")}。`;
}, YCe = (e) => e.requested_stage === "previews" ? `已生成 ${e.previews || 0} 部视频预览。` : `已扫描 ${e.scanned || 0} 个文件,识别 ${e.identified || 0} 个番号,取得 ${e.candidates || 0} 组作品资料,自动保存 ${e.auto_applied || 0} 条。` + (e.previews ? `已生成 ${e.previews} 部视频预览。` : "") + JCe(e);
function XCe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
- let a = qme(e), o = e.status === "failed" && !!e.retryable_asset_ids?.length, s = Wme(e.notes || {}), c = !!t || e.status === "failed", l = c && !!a?.log, u = aV();
+ let a = qme(e), o = e.status === "failed" && !!e.retryable_asset_ids?.length, s = Wme(e.notes || {}), c = !!t || e.status === "failed", l = c && !!a?.log, u = iV();
return /* @__PURE__ */ (0, O.jsxs)("div", {
"aria-live": "polite",
className: "flex flex-col gap-4 empty:hidden",
children: [
- e.status === "running" && e.stalled ? /* @__PURE__ */ (0, O.jsx)(Iz, {
+ e.status === "running" && e.stalled ? /* @__PURE__ */ (0, O.jsx)(Fz, {
tone: "warning",
title: "处理较慢",
children: qCe
}) : null,
- c ? /* @__PURE__ */ (0, O.jsx)(Iz, {
+ c ? /* @__PURE__ */ (0, O.jsx)(Fz, {
tone: "error",
className: "gap-0 p-3",
- action: o ? /* @__PURE__ */ (0, O.jsx)(q, {
+ action: o ? /* @__PURE__ */ (0, O.jsx)(J, {
variant: "secondary",
size: "small",
"aria-label": "立即重试未完成项",
@@ -65076,7 +65077,7 @@ function XCe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
}) : null,
extra: a ? /* @__PURE__ */ (0, O.jsx)("div", {
className: "mt-3 border-t border-current/20 pt-3",
- children: /* @__PURE__ */ (0, O.jsxs)(qH, {
+ children: /* @__PURE__ */ (0, O.jsxs)(KH, {
summary: a.label,
contentClassName: "gap-0",
children: [/* @__PURE__ */ (0, O.jsx)("div", {
@@ -65108,7 +65109,7 @@ function XCe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
})
}), a.log ? /* @__PURE__ */ (0, O.jsx)("div", {
className: "mt-3 border-t border-border-error-default/20 pt-3 text-text-secondary",
- children: /* @__PURE__ */ (0, O.jsx)(H$, {
+ children: /* @__PURE__ */ (0, O.jsx)(V$, {
path: a.log,
prefix: "完整记录:",
className: "text-caption-1-regular",
@@ -65119,17 +65120,17 @@ function XCe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
}) : null,
children: t || e.error || "处理未完成,请重试"
}) : null,
- n?.status === "complete" ? /* @__PURE__ */ (0, O.jsx)(Iz, {
+ n?.status === "complete" ? /* @__PURE__ */ (0, O.jsx)(Fz, {
tone: "success",
title: "处理完成",
children: YCe(n)
}) : null,
- !fH(e) && s ? /* @__PURE__ */ (0, O.jsx)(Iz, {
+ !dH(e) && s ? /* @__PURE__ */ (0, O.jsx)(Fz, {
tone: "neutral",
className: "gap-0 p-3",
extra: e.issues_log && !l ? /* @__PURE__ */ (0, O.jsx)("div", {
className: "mt-3 border-t border-current/20 pt-3 text-text-secondary",
- children: /* @__PURE__ */ (0, O.jsx)(H$, {
+ children: /* @__PURE__ */ (0, O.jsx)(V$, {
path: e.issues_log,
prefix: "完整记录:",
className: "text-caption-1-regular",
@@ -65141,38 +65142,38 @@ function XCe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
]
});
}
-function U$(e) {
- let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = MH(e), o = Ct({
- mutationFn: (e) => H(uH, e),
+function H$(e) {
+ let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = jH(e), o = Ct({
+ mutationFn: (e) => H(lH, e),
onSuccess: (e) => {
- a(), U.setQueryData(dH, e), U.invalidateQueries({ queryKey: dH });
+ a(), U.setQueryData(uH, e), U.invalidateQueries({ queryKey: uH });
}
});
(0, D.useEffect)(() => {
i && n?.();
}, [i, n]);
- let s = r.data ?? { status: "idle" }, c = o.error ? An(o.error) : r.isError ? r.data ? gH : An(r.error) : "", l = o.isPending || fH(s), u = async (e) => {
+ let s = r.data ?? { status: "idle" }, c = o.error ? An(o.error) : r.isError ? r.data ? hH : An(r.error) : "", l = o.isPending || dH(s), u = async (e) => {
l || (o.reset(), await o.mutateAsync(e));
};
return /* @__PURE__ */ (0, O.jsxs)("div", {
className: "flex flex-col gap-4",
- children: [/* @__PURE__ */ (0, O.jsx)(B$, {
+ children: [/* @__PURE__ */ (0, O.jsx)(z$, {
layout: "stack",
label: "扫描与采集",
footer: /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [
- /* @__PURE__ */ (0, O.jsx)(SH, {
+ /* @__PURE__ */ (0, O.jsx)(xH, {
href: "/sources",
size: "small",
- trailingIcon: dz,
+ trailingIcon: uz,
children: "来源和凭证"
}),
- s.candidates ? /* @__PURE__ */ (0, O.jsx)(SH, {
+ s.candidates ? /* @__PURE__ */ (0, O.jsx)(xH, {
href: "/review",
size: "small",
- trailingIcon: dz,
+ trailingIcon: uz,
children: "复核资料"
}) : null,
- /* @__PURE__ */ (0, O.jsx)(sK, {
+ /* @__PURE__ */ (0, O.jsx)(oK, {
scan: !0,
busy: l,
metadataOnly: s?.metadata_only,
@@ -65183,21 +65184,21 @@ function U$(e) {
children: /* @__PURE__ */ (0, O.jsxs)("div", {
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, O.jsx)(z$, { children: "扫描与采集" }),
+ /* @__PURE__ */ (0, O.jsx)(R$, { children: "扫描与采集" }),
/* @__PURE__ */ (0, O.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: M$
+ children: j$
}),
s.status === "paused" && !s.total ? /* @__PURE__ */ (0, O.jsx)("span", {
className: "self-start",
- children: /* @__PURE__ */ (0, O.jsx)(V$, { children: "已暂停" })
- }) : fH(s) ? /* @__PURE__ */ (0, O.jsx)(uhe, { state: s }) : null,
- fH(s) ? /* @__PURE__ */ (0, O.jsx)("p", {
+ children: /* @__PURE__ */ (0, O.jsx)(B$, { children: "已暂停" })
+ }) : dH(s) ? /* @__PURE__ */ (0, O.jsx)(uhe, { state: s }) : null,
+ dH(s) ? /* @__PURE__ */ (0, O.jsx)("p", {
className: "text-body-2-regular text-text-secondary tabular-nums",
"data-processing-eta": "",
- children: pH(s)
+ children: fH(s)
}) : null,
- fH(s) ? /* @__PURE__ */ (0, O.jsx)(tU, { traffic: s.traffic }) : null
+ dH(s) ? /* @__PURE__ */ (0, O.jsx)(eU, { traffic: s.traffic }) : null
]
})
}), /* @__PURE__ */ (0, O.jsx)(XCe, {
@@ -65216,32 +65217,32 @@ function U$(e) {
}
//#endregion
//#region src/react/playlists/playlists.ts
-var ZCe = "/api/playlists", W$ = "/api/playlist", G$ = ["playlists"], K$ = (e) => V(ZCe, e);
+var ZCe = "/api/playlists", U$ = "/api/playlist", W$ = ["playlists"], G$ = (e) => V(ZCe, e);
async function QCe(e) {
await U.fetchQuery({
- queryKey: G$,
- queryFn: () => K$(e),
+ queryKey: W$,
+ queryFn: () => G$(e),
staleTime: 0
});
}
var $Ce = () => U.invalidateQueries({
- queryKey: G$,
+ queryKey: W$,
exact: !0
-}), ewe = (e) => e.current_asset_id || e.preview_asset_id || null, twe = (e) => `/poster?id=${e}&c=4`, nwe = (e) => H(W$, {
+}), ewe = (e) => e.current_asset_id || e.preview_asset_id || null, twe = (e) => `/poster?id=${e}&c=4`, nwe = (e) => H(U$, {
action: "create",
name: e,
asset_ids: []
-}), rwe = (e, t) => H(W$, {
+}), rwe = (e, t) => H(U$, {
action: "rename",
id: e,
name: t
-}), iwe = (e) => H(W$, {
+}), iwe = (e) => H(U$, {
action: "delete",
id: e
-}), awe = (e) => V(`${W$}?id=${e}`).catch(() => null);
+}), awe = (e) => V(`${U$}?id=${e}`).catch(() => null);
function owe(e) {
let t = (e.items || []).map((e) => e.id), n = e.source_seed_asset_id;
- return H(W$, {
+ return H(U$, {
action: "create",
name: e.name,
asset_ids: t,
@@ -65251,9 +65252,13 @@ function owe(e) {
}
//#endregion
//#region src/react/scraping/custom-source-data.ts
-var q$ = "/api/custom-metadata", J$ = ["custom-metadata"], Y$ = (e) => V(q$, e), swe = "/api/scraping", cwe = "/api/scraping/settings", lwe = "/api/scraping/check", X$ = "/api/scraping/cover", uwe = "/api/scraping/amane-bridge", dwe = "/api/scraping/amane-bridge/check", fwe = "/api/scraping/amane-bridge/rebuild", Z$ = ["scraping"], Q$ = ["scraping", "cover"], $$ = ["scraping", "amane-bridge"], pwe = 262144, e1 = (e) => V(swe, e), t1 = (e) => V(X$, e), n1 = (e) => V(uwe, e);
+var K$ = "/api/custom-metadata", q$ = ["custom-metadata"], J$ = (e) => V(K$, e), swe = "/api/scraping", cwe = "/api/scraping/settings", lwe = "/api/scraping/check", Y$ = "/api/scraping/cover", uwe = "/api/scraping/amane-bridge", dwe = "/api/scraping/amane-bridge/check", fwe = "/api/scraping/amane-bridge/rebuild", X$ = ["scraping"], Z$ = ["scraping", "cover"], Q$ = ["scraping", "amane-bridge"], pwe = 262144, $$ = (e) => V(swe, e), e1 = (e) => V(Y$, e), t1 = (e) => V(uwe, e);
async function mwe(e) {
await Promise.all([
+ U.fetchQuery({
+ queryKey: X$,
+ queryFn: () => $$(e)
+ }),
U.fetchQuery({
queryKey: Z$,
queryFn: () => e1(e)
@@ -65263,12 +65268,8 @@ async function mwe(e) {
queryFn: () => t1(e)
}),
U.fetchQuery({
- queryKey: $$,
- queryFn: () => n1(e)
- }),
- U.fetchQuery({
- queryKey: J$,
- queryFn: () => Y$(e)
+ queryKey: q$,
+ queryFn: () => J$(e)
})
]);
}
@@ -65277,19 +65278,19 @@ function hwe(e, t) {
}
//#endregion
//#region src/react/search/search.ts
-var r1 = /* @__PURE__ */ new Set([
+var n1 = /* @__PURE__ */ new Set([
"performer",
"creator",
"studio",
"agency",
"series"
-]), i1 = /* @__PURE__ */ new Set([
+]), r1 = /* @__PURE__ */ new Set([
"asset",
"jav",
"post",
"photo",
"release"
-]), a1 = (e) => String(e ?? "").normalize("NFKC").trim().toLocaleLowerCase();
+]), i1 = (e) => String(e ?? "").normalize("NFKC").trim().toLocaleLowerCase();
function gwe({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a, kind: o, recommendations: s = [] }) {
let c = 0, l = [], u = (e) => {
let t = {
@@ -65297,7 +65298,7 @@ function gwe({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a
index: c++
};
return l.push(t), t;
- }, d = t.filter((t) => !e || a1(t).includes(a1(e)));
+ }, d = t.filter((t) => !e || i1(t).includes(i1(e)));
if (!e) {
if (s.length) {
let e = s.map((e) => ({
@@ -65318,8 +65319,8 @@ function gwe({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a
value: e
}))
} : null,
- left: e.filter((e) => !i1.has(e.kind)),
- right: e.filter((e) => i1.has(e.kind)),
+ left: e.filter((e) => !r1.has(e.kind)),
+ right: e.filter((e) => r1.has(e.kind)),
empty: !1,
options: l
};
@@ -65369,7 +65370,7 @@ function gwe({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a
options: n,
more: r
};
- }, g = m.filter((e) => !i1.has(e.kind)).map(h), _ = m.filter((e) => i1.has(e.kind)).map(h), v = f && !m.some((e) => e.items.length);
+ }, g = m.filter((e) => !r1.has(e.kind)).map(h), _ = m.filter((e) => r1.has(e.kind)).map(h), v = f && !m.some((e) => e.items.length);
return {
tabs: f && a.length > 1 ? [...a] : null,
recent: p,
@@ -65385,7 +65386,7 @@ function _we(e, t, n = Math.random) {
let t = Math.floor(n() * (e + 1));
[r[e], r[t]] = [r[t], r[e]];
}
- return r.filter((e) => !t.some((t) => a1(t) === a1(e))).slice(0, 5);
+ return r.filter((e) => !t.some((t) => i1(t) === i1(e))).slice(0, 5);
}
//#endregion
//#region src/react/search/search-page.tsx
@@ -65407,7 +65408,7 @@ var vwe = () => ({
active: -1,
reveal: !1,
rewind: !1
-}), o1 = (e) => gwe({
+}), a1 = (e) => gwe({
query: e.query,
history: e.history,
picks: e.picks,
@@ -65416,7 +65417,7 @@ var vwe = () => ({
tabs: e.tabs,
kind: e.kind,
recommendations: e.recommendations
-}), ywe = (e) => !!(e.tabs || e.recent || e.left.length || e.right.length || e.empty), s1 = ({ name: e }) => /* @__PURE__ */ (0, O.jsx)("svg", {
+}), ywe = (e) => !!(e.tabs || e.recent || e.left.length || e.right.length || e.empty), o1 = ({ name: e }) => /* @__PURE__ */ (0, O.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, O.jsx)("use", { href: `#i-${e}` })
@@ -65440,7 +65441,7 @@ function bwe(e) {
let e = i.current?.closest("[data-search-menu]");
r.rewind && e && (e.scrollTop = 0), r.rewind = !1, r.reveal && i.current?.querySelector("[data-search-option][data-active]")?.scrollIntoView({ block: "nearest" }), r.reveal = !1;
});
- let c = o1(r), l = e.historyLimit, u = (t) => /* @__PURE__ */ (0, O.jsx)(Cwe, {
+ let c = a1(r), l = e.historyLimit, u = (t) => /* @__PURE__ */ (0, O.jsx)(Cwe, {
entry: t,
active: t.index === r.active,
helpers: e.helpers,
@@ -65453,7 +65454,7 @@ function bwe(e) {
children: [
/* @__PURE__ */ (0, O.jsxs)("h3", { children: [e.label, e.href ? /* @__PURE__ */ (0, O.jsx)("a", {
href: e.href,
- onMouseDown: c1,
+ onMouseDown: s1,
onClick: (t) => {
t.ctrlKey || t.metaKey || t.shiftKey || t.altKey || (t.preventDefault(), s.openPath(e.href));
},
@@ -65510,7 +65511,7 @@ function xwe(e, t, n, r) {
t.history = Array.isArray(e.items) ? e.items.map(String) : [];
} catch {}
}, l = (t) => {
- t && e().historyLimit && (s([t, ...o().filter((e) => a1(e) !== a1(t))]), H("/api/search-history", { query: t }).catch(() => null));
+ t && e().historyLimit && (s([t, ...o().filter((e) => i1(e) !== i1(t))]), H("/api/search-history", { query: t }).catch(() => null));
}, u = async () => {
let n = ++t.poolRequest;
t.pool = [];
@@ -65558,7 +65559,7 @@ function xwe(e, t, n, r) {
}, h = () => {
t.query = i().value.trim(), t.picks = t.query ? [] : _we(t.pool, o()), t.active = -1;
let a = n();
- a && (ywe(o1(t)) ? e().helpers.present(a) : e().helpers.dismiss(a)), r();
+ a && (ywe(a1(t)) ? e().helpers.present(a) : e().helpers.dismiss(a)), r();
}, g = () => {
t.active = -1, t.kind = "", clearTimeout(t.timer);
let e = i().value.trim();
@@ -65570,7 +65571,7 @@ function xwe(e, t, n, r) {
n && e !== t.kind && (t.kind = e, clearTimeout(t.timer), h(), t.rewind = !0, f(n, e).then(() => {
a() && t.kind === e && h();
}));
- }, v = () => p() ? o1(t).options : [], y = (e) => {
+ }, v = () => p() ? a1(t).options : [], y = (e) => {
let n = v();
return n.length ? (t.active = (t.active + e + n.length) % n.length, t.reveal = !0, r(), !0) : !1;
}, b = (t, n) => {
@@ -65579,7 +65580,7 @@ function xwe(e, t, n, r) {
}, x = (t, n) => {
i().blur(), l(n), e().actions.openEntity(t, n);
}, S = (t) => {
- t.type === "suggest" && t.item.followMedia && t.item.id && e().actions.openFollow ? (i().blur(), e().actions.openFollow(t.item.id, t.item.followMedia, t.item.mediaIndex ?? null)) : t.type === "suggest" && t.item.href ? C(t.item.href) : t.type === "more" ? (b(!1, !0), i().blur()) : t.type === "suggest" && t.kind === "asset" && t.item.id != null ? (i().blur(), e().actions.openItem(t.item.id)) : t.type === "suggest" && r1.has(t.kind) ? x(t.kind, t.value) : (i().value = t.value, b(!1, !0));
+ t.type === "suggest" && t.item.followMedia && t.item.id && e().actions.openFollow ? (i().blur(), e().actions.openFollow(t.item.id, t.item.followMedia, t.item.mediaIndex ?? null)) : t.type === "suggest" && t.item.href ? C(t.item.href) : t.type === "more" ? (b(!1, !0), i().blur()) : t.type === "suggest" && t.kind === "asset" && t.item.id != null ? (i().blur(), e().actions.openItem(t.item.id)) : t.type === "suggest" && n1.has(t.kind) ? x(t.kind, t.value) : (i().value = t.value, b(!1, !0));
}, C = (t) => {
m(), i().blur(), e().actions.openPath?.(t);
};
@@ -65625,7 +65626,7 @@ function xwe(e, t, n, r) {
await H("/api/search-history", {
operation: "remove",
query: e
- }).catch(() => null), s(o().filter((t) => a1(t) !== a1(e))), t.active = -1, r();
+ }).catch(() => null), s(o().filter((t) => i1(t) !== i1(e))), t.active = -1, r();
},
pickKind: _,
openPath: C
@@ -65645,9 +65646,9 @@ function Swe({ tabs: e, kind: t, onPick: n, wire: r }) {
"data-pill-variant": "gray",
onMouseDown: (e) => e.preventDefault(),
onClick: () => n(e),
- children: [r, i ? /* @__PURE__ */ (0, O.jsx)(VQ, { value: i }) : null]
+ children: [r, i ? /* @__PURE__ */ (0, O.jsx)(BQ, { value: i }) : null]
}, e || "all");
- return /* @__PURE__ */ (0, O.jsxs)(iF, {
+ return /* @__PURE__ */ (0, O.jsxs)(rF, {
ref: i,
"data-search-tabs": "",
"data-pill-nav": "",
@@ -65656,7 +65657,7 @@ function Swe({ tabs: e, kind: t, onPick: n, wire: r }) {
children: [a("", "全部"), e.map((e) => a(e.kind, e.label, e.total))]
});
}
-var c1 = (e) => e.preventDefault();
+var s1 = (e) => e.preventDefault();
function Cwe({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove: a }) {
let o = {
"data-search-value": e.value,
@@ -65669,33 +65670,33 @@ function Cwe({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
type: "button",
"data-search-option": "more",
...o,
- onMouseDown: c1,
+ onMouseDown: s1,
children: [
"查看全部 ",
e.total.toLocaleString(),
" 个视频",
- /* @__PURE__ */ (0, O.jsx)(s1, { name: "chevron-right" })
+ /* @__PURE__ */ (0, O.jsx)(o1, { name: "chevron-right" })
]
});
if (e.type !== "suggest") return /* @__PURE__ */ (0, O.jsxs)("div", {
"data-search-option": "",
...o,
children: [
- /* @__PURE__ */ (0, O.jsx)(s1, { name: e.type === "history" ? "history" : "sparkles" }),
+ /* @__PURE__ */ (0, O.jsx)(o1, { name: e.type === "history" ? "history" : "sparkles" }),
/* @__PURE__ */ (0, O.jsx)("span", { children: e.value }),
e.type === "history" ? /* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
"data-remove-history": e.value,
"aria-label": `删除历史 ${e.value}`,
- onMouseDown: c1,
+ onMouseDown: s1,
onClick: (t) => {
t.stopPropagation(), a(e.value);
},
- children: /* @__PURE__ */ (0, O.jsx)(s1, { name: "x" })
+ children: /* @__PURE__ */ (0, O.jsx)(o1, { name: "x" })
}) : null
]
});
- let { item: s, kind: c } = e, l = r1.has(c) ? c : void 0;
+ let { item: s, kind: c } = e, l = n1.has(c) ? c : void 0;
if ([
"asset",
"jav",
@@ -65709,8 +65710,8 @@ function Cwe({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
"data-search-option": "work",
"data-open-item": c === "asset" ? s.id : void 0,
...o,
- onMouseDown: c1,
- children: [/* @__PURE__ */ (0, O.jsx)(l1, {
+ onMouseDown: s1,
+ children: [/* @__PURE__ */ (0, O.jsx)(c1, {
card: s.card,
helpers: n
}), /* @__PURE__ */ (0, O.jsxs)("span", {
@@ -65735,9 +65736,9 @@ function Cwe({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
"data-search-option": "person",
"data-open-entity": l,
...o,
- onMouseDown: c1,
+ onMouseDown: s1,
children: [
- /* @__PURE__ */ (0, O.jsx)(u1, {
+ /* @__PURE__ */ (0, O.jsx)(l1, {
item: s,
kind: c
}),
@@ -65760,11 +65761,11 @@ function Cwe({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
type: "button",
"data-open-work": e.id,
"aria-label": `打开 ${e.code || s.value}`,
- onMouseDown: c1,
+ onMouseDown: s1,
onClick: (t) => {
t.stopPropagation(), i(e);
},
- children: /* @__PURE__ */ (0, O.jsx)(l1, {
+ children: /* @__PURE__ */ (0, O.jsx)(c1, {
card: e,
helpers: n
})
@@ -65778,7 +65779,7 @@ function Cwe({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
"data-open-entity": l,
...o,
children: [
- c === "studio" || c === "agency" ? /* @__PURE__ */ (0, O.jsx)(u1, {
+ c === "studio" || c === "agency" ? /* @__PURE__ */ (0, O.jsx)(l1, {
item: s,
kind: c
}) : null,
@@ -65791,13 +65792,13 @@ function Cwe({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
]
});
}
-function l1({ card: e, helpers: t }) {
+function c1({ card: e, helpers: t }) {
return /* @__PURE__ */ (0, O.jsx)("span", {
"data-search-pic": "",
dangerouslySetInnerHTML: { __html: t.coverHtml(e) }
});
}
-function u1({ item: e, kind: t }) {
+function l1({ item: e, kind: t }) {
if (e.avatarHtml) return /* @__PURE__ */ (0, O.jsx)("span", {
"data-search-face": "",
dangerouslySetInnerHTML: { __html: e.avatarHtml }
@@ -65817,25 +65818,25 @@ function u1({ item: e, kind: t }) {
}
//#endregion
//#region src/react/settings/configuration.ts
-var d1 = ["configuration"], f1 = (e) => V(nX, e);
+var u1 = ["configuration"], d1 = (e) => V(tX, e);
async function wwe(e) {
await U.fetchQuery({
- queryKey: d1,
- queryFn: () => f1(e)
+ queryKey: u1,
+ queryFn: () => d1(e)
});
}
//#endregion
//#region src/react/settings-panel/legacy-controls.tsx
-var p1 = (e) => e.map(([e, t, n]) => n ? [
+var f1 = (e) => e.map(([e, t, n]) => n ? [
e,
t,
n
] : [e, t]);
-function m1({ id: e, name: t, legend: n, options: r, value: i, attr: a, variant: o, text: s = !1, epoch: c, onChoose: l }) {
+function p1({ id: e, name: t, legend: n, options: r, value: i, attr: a, variant: o, text: s = !1, epoch: c, onChoose: l }) {
let u = (0, D.useRef)(null), d = (0, D.useRef)(null), f = (0, D.useRef)(l);
return f.current = l, (0, D.useLayoutEffect)(() => {
let e = u.current;
- e && (d.current && d.current.value === i && d.current.epoch === c || (e.innerHTML = dc(t, n, p1(r), i, {
+ e && (d.current && d.current.value === i && d.current.epoch === c || (e.innerHTML = dc(t, n, f1(r), i, {
attr: a,
className: o,
text: s
@@ -65853,13 +65854,13 @@ function m1({ id: e, name: t, legend: n, options: r, value: i, attr: a, variant:
ref: u
});
}
-function h1({ id: e, label: t, options: n, value: r, disabled: i = !1, busy: a = !1, hidden: o, describedBy: s, epoch: c, onPick: l, decorate: u }) {
+function m1({ id: e, label: t, options: n, value: r, disabled: i = !1, busy: a = !1, hidden: o, describedBy: s, epoch: c, onPick: l, decorate: u }) {
let d = (0, D.useRef)(null), f = (0, D.useRef)(null), p = (0, D.useRef)(-1), m = (0, D.useRef)(l);
return m.current = l, (0, D.useLayoutEffect)(() => {
let e = d.current;
if (!e) return;
if (p.current !== c || !f.current) {
- e.innerHTML = Ao(p1(n), r, { label: t });
+ e.innerHTML = Ao(f1(n), r, { label: t });
let i = jo(e.firstElementChild);
i.addEventListener("change", () => m.current(i.value)), f.current = i, p.current = c;
}
@@ -65935,7 +65936,7 @@ var Ewe = [
]
];
function Dwe({ host: e, spot: t, index: n, glow: r }) {
- let i = hoe[n], a = (0, D.useRef)(null), o = (0, D.useRef)(null), s = (0, D.useRef)(null), c = aV(), [l, u] = (0, D.useState)("all");
+ let i = hoe[n], a = (0, D.useRef)(null), o = (0, D.useRef)(null), s = (0, D.useRef)(null), c = iV(), [l, u] = (0, D.useState)("all");
(0, D.useLayoutEffect)(() => {
let [e, t, n] = [
a.current,
@@ -65948,7 +65949,7 @@ function Dwe({ host: e, spot: t, index: n, glow: r }) {
}, []);
let d = r[t].color, f = (n) => {
let r = e.store.value.homeGlow;
- r[t].color = Jk(n, r[t].color), r.preset = "custom", e.store.save(), e.changed("glow"), So(), o.current?.focus();
+ r[t].color = qk(n, r[t].color), r.preset = "custom", e.store.save(), e.changed("glow"), So(), o.current?.focus();
};
return /* @__PURE__ */ (0, O.jsxs)("div", {
"data-glow-stop": t,
@@ -65973,7 +65974,7 @@ function Dwe({ host: e, spot: t, index: n, glow: r }) {
children: d
})]
}),
- /* @__PURE__ */ (0, O.jsx)(uP, { name: "chevron-down" })
+ /* @__PURE__ */ (0, O.jsx)(lP, { name: "chevron-down" })
]
}), /* @__PURE__ */ (0, O.jsxs)("div", {
className: "popmenu",
@@ -66017,7 +66018,7 @@ function Dwe({ host: e, spot: t, index: n, glow: r }) {
});
}
function Owe({ host: e }) {
- let t = e.store.value.homeGlow, n = Vk(t.preset);
+ let t = e.store.value.homeGlow, n = Bk(t.preset);
return /* @__PURE__ */ (0, O.jsxs)("section", {
"data-glow-setting": "",
id: "homeGlowControls",
@@ -66039,7 +66040,7 @@ function Owe({ host: e }) {
children: goe(t.preset)
})]
}),
- /* @__PURE__ */ (0, O.jsx)(HA, {
+ /* @__PURE__ */ (0, O.jsx)(VA, {
store: e.store,
label: "光晕配色"
}),
@@ -66071,7 +66072,7 @@ function Owe({ host: e }) {
className: "geist-button",
"data-glow-reset": "",
onClick: () => {
- e.store.value.homeGlow = Xk(null), e.store.save(), e.changed("glow");
+ e.store.value.homeGlow = Yk(null), e.store.save(), e.changed("glow");
},
children: "恢复默认"
})
@@ -66090,7 +66091,7 @@ function Owe({ host: e }) {
"data-glow-colour-card": "",
children: /* @__PURE__ */ (0, O.jsx)("div", {
"data-glow-stops": "",
- children: Rk.map((n, r) => /* @__PURE__ */ (0, O.jsx)(Dwe, {
+ children: Lk.map((n, r) => /* @__PURE__ */ (0, O.jsx)(Dwe, {
host: e,
spot: n,
index: r,
@@ -66150,22 +66151,22 @@ var kwe = {
optional: !0,
fallback: 60
}
-}, g1 = (e) => `peach.number.${e}`;
-function _1(e, t) {
+}, h1 = (e) => `peach.number.${e}`;
+function g1(e, t) {
if (t !== "分钟" || !Number.isInteger(e) || e < 1440) return "";
let n = e / 1440;
return Number.isInteger(n) ? `${n.toLocaleString()} 天` : `约 ${n.toFixed(1)} 天`;
}
-function v1({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
+function _1({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
let a = kwe[e], { min: o, max: s, unit: c, fallback: l } = a, u = a.optional === !0, d = (0, D.useRef)(0);
- d.current ||= Dk(Number(localStorage.getItem(g1(e))), o, s, n && n > 0 ? n : l);
+ d.current ||= Ek(Number(localStorage.getItem(h1(e))), o, s, n && n > 0 ? n : l);
let [f, p] = (0, D.useState)(n ?? 0), [m, h] = (0, D.useState)(String(n && n > 0 ? n : d.current)), [g, _] = (0, D.useState)(""), v = (0, D.useRef)(null), y = (0, D.useRef)(i);
y.current = i, (0, D.useLayoutEffect)(() => {
n !== null && (p(n), n > 0 && h(String(n)));
}, [n]);
let b = () => {
let t = v.current;
- t && (!t.value || !t.checkValidity() ? (t.setAttribute("aria-invalid", "true"), _(`请输入 ${o}–${s} 的整数(${c})`)) : (t.removeAttribute("aria-invalid"), _(""), d.current = Number(t.value), localStorage.setItem(g1(e), String(d.current)), y.current(d.current)));
+ t && (!t.value || !t.checkValidity() ? (t.setAttribute("aria-invalid", "true"), _(`请输入 ${o}–${s} 的整数(${c})`)) : (t.removeAttribute("aria-invalid"), _(""), d.current = Number(t.value), localStorage.setItem(h1(e), String(d.current)), y.current(d.current)));
}, x = (0, D.useRef)(b);
x.current = b, (0, D.useEffect)(() => {
let e = v.current;
@@ -66175,7 +66176,7 @@ function v1({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
}, []);
let S = f > 0, C = () => {
let t = v.current;
- t?.removeAttribute("aria-invalid"), _(""), S ? (t && t.value && t.checkValidity() && (d.current = Number(t.value)), localStorage.setItem(g1(e), String(d.current)), p(0), y.current(0)) : (p(d.current), h(String(d.current)), y.current(d.current));
+ t?.removeAttribute("aria-invalid"), _(""), S ? (t && t.value && t.checkValidity() && (d.current = Number(t.value)), localStorage.setItem(h1(e), String(d.current)), p(0), y.current(0)) : (p(d.current), h(String(d.current)), y.current(d.current));
}, w = r || n === null;
return /* @__PURE__ */ (0, O.jsxs)("div", {
"data-number-setting": "",
@@ -66212,7 +66213,7 @@ function v1({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
}
}), /* @__PURE__ */ (0, O.jsxs)("span", {
"aria-hidden": "true",
- children: [c, _1(Number(m), c) ? ` · ${_1(Number(m), c)}` : ""]
+ children: [c, g1(Number(m), c) ? ` · ${g1(Number(m), c)}` : ""]
})]
}), /* @__PURE__ */ (0, O.jsx)("small", {
id: `${e}-error`,
@@ -66226,13 +66227,13 @@ function v1({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
}
//#endregion
//#region src/react/sidebar/sidebar-order.ts
-function y1(e) {
- let { mutate: t } = mX();
+function v1(e) {
+ let { mutate: t } = pX();
return (0, D.useCallback)((n) => {
e.value.sidebarOrder = n, e.save(), t({ sidebarOrder: n }, { onError: () => {} });
}, [e, t]);
}
-function b1(e, t, n, r) {
+function y1(e, t, n, r) {
if (t === n) return null;
let i = [...e], a = i.indexOf(t);
if (a < 0) return null;
@@ -66242,17 +66243,17 @@ function b1(e, t, n, r) {
}
//#endregion
//#region src/react/settings-panel/sidebar-order.tsx
-var Awe = "__home__", x1 = (e) => e === "" ? Awe : e;
+var Awe = "__home__", b1 = (e) => e === "" ? Awe : e;
function jwe({ host: e }) {
- let t = y1(e.store), n = e.store.value.sidebarOrder, r = new Map(e.navCatalog.map((e) => [e[0], e])), i = n.map((e) => r.get(e)).filter((e) => e !== void 0), a = e.navCatalog.filter(([e]) => !n.includes(e)), [o, s] = (0, D.useState)(null), [c, l] = (0, D.useState)(!1), [u, d] = (0, D.useState)(null), [f, p] = (0, D.useState)(null), m = (0, D.useRef)(null), h = (0, D.useRef)(null), g = (e, r, i) => {
- let a = b1(n, e, r, i);
+ let t = v1(e.store), n = e.store.value.sidebarOrder, r = new Map(e.navCatalog.map((e) => [e[0], e])), i = n.map((e) => r.get(e)).filter((e) => e !== void 0), a = e.navCatalog.filter(([e]) => !n.includes(e)), [o, s] = (0, D.useState)(null), [c, l] = (0, D.useState)(!1), [u, d] = (0, D.useState)(null), [f, p] = (0, D.useState)(null), m = (0, D.useRef)(null), h = (0, D.useRef)(null), g = (e, r, i) => {
+ let a = y1(n, e, r, i);
a && t(a);
}, _ = (e, r) => {
let i = n.indexOf(e), a = i + r;
if (i < 0 || a < 0 || a >= n.length) return;
let o = [...n];
[o[i], o[a]] = [o[a], o[i]], t(o);
- }, v = a.find(([e]) => x1(e) === o) ?? a[0], y = () => {
+ }, v = a.find(([e]) => b1(e) === o) ?? a[0], y = () => {
h.current && To(h.current), l(!1);
}, b = () => {
let e = h.current;
@@ -66273,7 +66274,7 @@ function jwe({ host: e }) {
}, C = (e) => ({
draggable: !0,
onDragStart: (t) => {
- d(e), t.dataTransfer.effectAllowed = "move", t.dataTransfer.setData("text/plain", x1(e));
+ d(e), t.dataTransfer.effectAllowed = "move", t.dataTransfer.setData("text/plain", b1(e));
},
onDragOver: (t) => {
if (u === null || u === e) return;
@@ -66305,9 +66306,9 @@ function jwe({ host: e }) {
/* @__PURE__ */ (0, O.jsx)("i", {
"data-sidebar-grip": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, O.jsx)(uP, { name: "grip-vertical" })
+ children: /* @__PURE__ */ (0, O.jsx)(lP, { name: "grip-vertical" })
}),
- /* @__PURE__ */ (0, O.jsx)(uP, { name: a ?? "" }),
+ /* @__PURE__ */ (0, O.jsx)(lP, { name: a ?? "" }),
/* @__PURE__ */ (0, O.jsx)("b", { children: r })
]
}), /* @__PURE__ */ (0, O.jsxs)("span", {
@@ -66321,7 +66322,7 @@ function jwe({ host: e }) {
title: "上移",
disabled: o === 0,
onClick: () => _(e, -1),
- children: /* @__PURE__ */ (0, O.jsx)(uP, { name: "chevron-up" })
+ children: /* @__PURE__ */ (0, O.jsx)(lP, { name: "chevron-up" })
}),
/* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
@@ -66331,7 +66332,7 @@ function jwe({ host: e }) {
title: "下移",
disabled: o === i.length - 1,
onClick: () => _(e, 1),
- children: /* @__PURE__ */ (0, O.jsx)(uP, { name: "chevron-down" })
+ children: /* @__PURE__ */ (0, O.jsx)(lP, { name: "chevron-down" })
}),
/* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
@@ -66343,11 +66344,11 @@ function jwe({ host: e }) {
onClick: () => {
n.length > 1 && t(n.filter((t) => t !== e));
},
- children: /* @__PURE__ */ (0, O.jsx)(uP, { name: "eye-off" })
+ children: /* @__PURE__ */ (0, O.jsx)(lP, { name: "eye-off" })
})
]
})]
- }, x1(e))), /* @__PURE__ */ (0, O.jsxs)("div", {
+ }, b1(e))), /* @__PURE__ */ (0, O.jsxs)("div", {
"data-sidebar-add-row": "",
children: [/* @__PURE__ */ (0, O.jsxs)("div", {
"data-sidebar-add-picker": "",
@@ -66363,13 +66364,13 @@ function jwe({ host: e }) {
ref: m,
onClick: b,
children: v ? /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [
- /* @__PURE__ */ (0, O.jsx)(uP, { name: v[2] ?? "" }),
+ /* @__PURE__ */ (0, O.jsx)(lP, { name: v[2] ?? "" }),
/* @__PURE__ */ (0, O.jsx)("span", {
"data-sidebar-add-label": "",
children: v[1]
}),
- /* @__PURE__ */ (0, O.jsx)(uP, { name: "chevron-down" })
- ] }) : /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(uP, { name: "check" }), /* @__PURE__ */ (0, O.jsx)("span", { children: "全部页面都已显示" })] })
+ /* @__PURE__ */ (0, O.jsx)(lP, { name: "chevron-down" })
+ ] }) : /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(lP, { name: "check" }), /* @__PURE__ */ (0, O.jsx)("span", { children: "全部页面都已显示" })] })
}), a.length ? /* @__PURE__ */ (0, O.jsx)("div", {
className: "popmenu",
"data-sidebar-add-menu": "",
@@ -66380,15 +66381,15 @@ function jwe({ host: e }) {
children: a.map(([e, t, n]) => /* @__PURE__ */ (0, O.jsxs)("button", {
type: "button",
role: "option",
- "data-sidebar-add-option": x1(e),
+ "data-sidebar-add-option": b1(e),
"aria-selected": v?.[0] === e,
tabIndex: v?.[0] === e ? 0 : -1,
onKeyDown: x,
onClick: () => {
- s(x1(e)), y(), m.current?.focus();
+ s(b1(e)), y(), m.current?.focus();
},
- children: [/* @__PURE__ */ (0, O.jsx)(uP, { name: n ?? "" }), /* @__PURE__ */ (0, O.jsx)("span", { children: t })]
- }, x1(e)))
+ children: [/* @__PURE__ */ (0, O.jsx)(lP, { name: n ?? "" }), /* @__PURE__ */ (0, O.jsx)("span", { children: t })]
+ }, b1(e)))
}) : null]
}), /* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
@@ -66405,7 +66406,7 @@ function jwe({ host: e }) {
}
//#endregion
//#region src/react/settings-panel/settings-panel.tsx
-var S1 = [
+var x1 = [
["外观与导航", "ri-palette-line"],
["浏览与播放", "ri-play-circle-line"],
["JAV 与新作", "jav"],
@@ -66447,76 +66448,76 @@ var S1 = [
"切片",
"隐藏切片"
]
-], Iwe = "button:not([disabled]),input:not([disabled]),textarea:not([disabled]),a[href]", C1 = null, w1 = {
+], Iwe = "button:not([disabled]),input:not([disabled]),textarea:not([disabled]),a[href]", S1 = null, C1 = {
open: !1,
closing: !1,
epoch: 0,
tab: 0,
configurable: null
-}, T1 = 0, E1 = null, D1 = /* @__PURE__ */ new Set();
+}, w1 = 0, T1 = null, E1 = /* @__PURE__ */ new Set();
function Lwe(e) {
- return D1.add(e), () => {
- D1.delete(e);
+ return E1.add(e), () => {
+ E1.delete(e);
};
}
function Rwe() {
- for (let e of [...D1]) e();
+ for (let e of [...E1]) e();
}
-function O1(e) {
- w1 = {
- ...w1,
+function D1(e) {
+ C1 = {
+ ...C1,
...e
}, (0, Tt.flushSync)(Rwe);
}
async function zwe(e) {
- let t = w1.epoch, n = await e.configurable();
- w1.open && w1.epoch === t && O1({ configurable: n });
+ let t = C1.epoch, n = await e.configurable();
+ C1.open && C1.epoch === t && D1({ configurable: n });
}
function Bwe(e = "") {
- let t = C1;
+ let t = S1;
if (!t) return;
- let n = S1.findIndex(([t]) => t === e);
- if (w1.open && !w1.closing) {
- n >= 0 && n !== w1.tab && O1({ tab: n });
+ let n = x1.findIndex(([t]) => t === e);
+ if (C1.open && !C1.closing) {
+ n >= 0 && n !== C1.tab && D1({ tab: n });
return;
}
- So(), T1 += 1, E1 ||= document.activeElement, t.sound("whoosh"), document.documentElement.style.overflow = "hidden", document.body.classList.add("settings-open");
+ So(), w1 += 1, T1 ||= document.activeElement, t.sound("whoosh"), document.documentElement.style.overflow = "hidden", document.body.classList.add("settings-open");
let r = wye();
- O1({
+ D1({
open: !0,
closing: !1,
configurable: null,
- epoch: w1.epoch + 1,
- tab: n >= 0 ? n : w1.tab
+ epoch: C1.epoch + 1,
+ tab: n >= 0 ? n : C1.tab
}), r.then((e) => {
e && t.syncRemote(e);
}), zwe(t), queueMicrotask(() => document.getElementById("settingsClose")?.focus());
}
-function k1(e = !0) {
- if (!w1.open || w1.closing) return;
- let t = ++T1;
- e && C1?.closed?.(), O1({ closing: !0 });
+function O1(e = !0) {
+ if (!C1.open || C1.closing) return;
+ let t = ++w1;
+ e && S1?.closed?.(), D1({ closing: !0 });
let n = () => {
- t === T1 && w1.closing && (O1({
+ t === w1 && C1.closing && (D1({
open: !1,
closing: !1
- }), document.documentElement.style.overflow = "", document.body.classList.remove("settings-open"), E1 instanceof HTMLElement && document.contains(E1) && E1.focus(), E1 = null);
+ }), document.documentElement.style.overflow = "", document.body.classList.remove("settings-open"), T1 instanceof HTMLElement && document.contains(T1) && T1.focus(), T1 = null);
};
matchMedia("(prefers-reduced-motion: reduce)").matches ? queueMicrotask(n) : (document.querySelector("#settingsPanel > [data-settings-card]")?.addEventListener("animationend", n, { once: !0 }), setTimeout(n, 380));
}
var Vwe = {
open: Bwe,
- close: k1,
- isOpen: () => w1.open,
+ close: O1,
+ isOpen: () => C1.open,
reveal: (e) => queueMicrotask(() => document.querySelector(e)?.scrollIntoView({ block: "nearest" }))
};
function Hwe(e) {
- return C1 = e, Vwe;
+ return S1 = e, Vwe;
}
function Uwe() {
- let e = (0, D.useSyncExternalStore)(Lwe, () => w1);
- return C1 ? /* @__PURE__ */ (0, O.jsx)(Kwe, {
- host: C1,
+ let e = (0, D.useSyncExternalStore)(Lwe, () => C1);
+ return S1 ? /* @__PURE__ */ (0, O.jsx)(Kwe, {
+ host: S1,
view: e
}) : null;
}
@@ -66527,7 +66528,7 @@ function Wwe(e) {
let n = t[0], r = t[t.length - 1];
e.shiftKey && document.activeElement === n ? (e.preventDefault(), r.focus()) : !e.shiftKey && document.activeElement === r && (e.preventDefault(), n.focus());
}
-var A1 = (e) => `settings-tab-${e}`, j1 = (e) => `settings-group-${e}`;
+var k1 = (e) => `settings-tab-${e}`, A1 = (e) => `settings-group-${e}`;
function Gwe({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect: i }) {
let a = (0, D.useRef)(null), o = (0, D.useRef)(null), s = (0, D.useRef)(null), c = (0, D.useRef)(e), l = (0, D.useRef)([]), u = (e, t) => {
let n = o.current;
@@ -66556,7 +66557,7 @@ function Gwe({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect
c.current = e, d.current(l.current[e], t);
}, [e, t]);
let f = (e, t) => {
- let n = S1.length, r = t;
+ let n = x1.length, r = t;
if (e.key === "ArrowRight" || e.key === "ArrowDown") r = (t + 1) % n;
else if (e.key === "ArrowLeft" || e.key === "ArrowUp") r = (t + n - 1) % n;
else if (e.key === "Home") r = 0;
@@ -66585,11 +66586,11 @@ function Gwe({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect
role: "presentation",
children: "设置"
}),
- S1.map(([t, n], r) => /* @__PURE__ */ (0, O.jsxs)("button", {
+ x1.map(([t, n], r) => /* @__PURE__ */ (0, O.jsxs)("button", {
type: "button",
role: "tab",
- id: A1(r),
- "aria-controls": j1(r),
+ id: k1(r),
+ "aria-controls": A1(r),
"aria-selected": r === e,
tabIndex: r === e ? 0 : -1,
ref: (e) => {
@@ -66600,7 +66601,7 @@ function Gwe({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect
onPointerEnter: (e) => {
e.pointerType !== "touch" && u(e.currentTarget, !0);
},
- children: [n === "jav" ? /* @__PURE__ */ (0, O.jsx)(uP, { name: n }) : /* @__PURE__ */ (0, O.jsx)(Cce, { name: n }), t]
+ children: [n === "jav" ? /* @__PURE__ */ (0, O.jsx)(lP, { name: n }) : /* @__PURE__ */ (0, O.jsx)(Cce, { name: n }), t]
}, t)),
/* @__PURE__ */ (0, O.jsx)("div", {
"data-settings-service": "",
@@ -66611,27 +66612,27 @@ function Gwe({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect
onClick: r,
title: n === !1 ? "请在运行 Peach 的设备上打开 Peach 配置" : void 0,
children: [
- /* @__PURE__ */ (0, O.jsx)(uP, { name: "folder-cog" }),
+ /* @__PURE__ */ (0, O.jsx)(lP, { name: "folder-cog" }),
"Peach 配置",
- /* @__PURE__ */ (0, O.jsx)(uP, { name: "chevron-right" })
+ /* @__PURE__ */ (0, O.jsx)(lP, { name: "chevron-right" })
]
})
})
]
});
}
-function M1({ index: e, tab: t, children: n, cards: r = !1 }) {
+function j1({ index: e, tab: t, children: n, cards: r = !1 }) {
return /* @__PURE__ */ (0, O.jsxs)("section", {
"data-setting-group": "",
"data-setting-layout": r ? "cards" : void 0,
- id: j1(e),
+ id: A1(e),
role: "tabpanel",
- "aria-labelledby": A1(e),
+ "aria-labelledby": k1(e),
hidden: e !== t,
- children: [/* @__PURE__ */ (0, O.jsx)("h3", { children: S1[e][0] }), n]
+ children: [/* @__PURE__ */ (0, O.jsx)("h3", { children: x1[e][0] }), n]
});
}
-function N1({ id: e, title: t, description: n, describedBy: r = `${e.replace(/Setting$/, "")}Description`, checked: i, onToggle: a }) {
+function M1({ id: e, title: t, description: n, describedBy: r = `${e.replace(/Setting$/, "")}Description`, checked: i, onToggle: a }) {
return /* @__PURE__ */ (0, O.jsxs)("label", {
"data-setting-row": "",
children: [/* @__PURE__ */ (0, O.jsxs)("span", { children: [/* @__PURE__ */ (0, O.jsx)("b", { children: t }), n ? /* @__PURE__ */ (0, O.jsx)("small", {
@@ -66648,7 +66649,7 @@ function N1({ id: e, title: t, description: n, describedBy: r = `${e.replace(/Se
})]
});
}
-function P1({ title: e, description: t, kind: n, children: r }) {
+function N1({ title: e, description: t, kind: n, children: r }) {
return /* @__PURE__ */ (0, O.jsxs)("div", {
"data-setting-row": "",
"data-setting-sort": n === "sort" ? "" : void 0,
@@ -66677,7 +66678,7 @@ function Kwe({ host: e, view: t }) {
s.current?.();
});
let d = t.epoch, f = (t) => {
- t !== w1.tab && (O1({ tab: t }), e.selectSection?.(S1[t][0]));
+ t !== C1.tab && (D1({ tab: t }), e.selectSection?.(x1[t][0]));
}, p = () => e.store.save();
return /* @__PURE__ */ (0, O.jsx)("section", {
"data-settings-panel": "",
@@ -66690,7 +66691,7 @@ function Kwe({ host: e, view: t }) {
ref: r,
onKeyDown: Wwe,
onClick: (e) => {
- e.target === e.currentTarget && k1();
+ e.target === e.currentTarget && O1();
},
children: /* @__PURE__ */ (0, O.jsxs)("div", {
"data-settings-card": "",
@@ -66701,11 +66702,11 @@ function Kwe({ host: e, view: t }) {
ref: a,
children: [/* @__PURE__ */ (0, O.jsx)("h2", {
id: "settingsTitle",
- children: S1[t.tab][0]
- }), /* @__PURE__ */ (0, O.jsx)(Bz, {
+ children: x1[t.tab][0]
+ }), /* @__PURE__ */ (0, O.jsx)(zz, {
id: "settingsClose",
label: "关闭设置",
- onPress: () => k1()
+ onPress: () => O1()
})]
}),
/* @__PURE__ */ (0, O.jsx)(Gwe, {
@@ -66714,14 +66715,14 @@ function Kwe({ host: e, view: t }) {
configurable: t.configurable,
onSelect: f,
openConfiguration: () => {
- k1(!1), e.openConfiguration();
+ O1(!1), e.openConfiguration();
}
}),
/* @__PURE__ */ (0, O.jsxs)("div", {
"data-settings-scroll": "",
ref: o,
children: [
- /* @__PURE__ */ (0, O.jsxs)(M1, {
+ /* @__PURE__ */ (0, O.jsxs)(j1, {
index: 0,
tab: t.tab,
cards: !0,
@@ -66729,9 +66730,9 @@ function Kwe({ host: e, view: t }) {
/* @__PURE__ */ (0, O.jsxs)("div", {
"data-setting-card": "",
children: [
- /* @__PURE__ */ (0, O.jsx)(P1, {
+ /* @__PURE__ */ (0, O.jsx)(N1, {
title: "主题",
- children: /* @__PURE__ */ (0, O.jsx)(m1, {
+ children: /* @__PURE__ */ (0, O.jsx)(p1, {
id: "themeSetting",
name: "theme",
legend: "主题",
@@ -66759,7 +66760,7 @@ function Kwe({ host: e, view: t }) {
onChange: (t) => e.setHighContrast(t.target.checked)
})]
}),
- /* @__PURE__ */ (0, O.jsx)(N1, {
+ /* @__PURE__ */ (0, O.jsx)(M1, {
id: "uiSoundsSetting",
title: "界面音效",
checked: n.uiSounds,
@@ -66767,7 +66768,7 @@ function Kwe({ host: e, view: t }) {
n.uiSounds = t, p(), e.changed("uiSounds");
}
}),
- /* @__PURE__ */ (0, O.jsx)(N1, {
+ /* @__PURE__ */ (0, O.jsx)(M1, {
id: "homeGlowSetting",
title: "侧栏光晕",
checked: n.homeGlow.on,
@@ -66805,7 +66806,7 @@ function Kwe({ host: e, view: t }) {
tab: t.tab,
epoch: d
}),
- /* @__PURE__ */ (0, O.jsxs)(M1, {
+ /* @__PURE__ */ (0, O.jsxs)(j1, {
index: 3,
tab: t.tab,
children: [
@@ -66813,11 +66814,11 @@ function Kwe({ host: e, view: t }) {
host: e,
epoch: d
}),
- /* @__PURE__ */ (0, O.jsx)(P1, {
+ /* @__PURE__ */ (0, O.jsx)(N1, {
title: "相关推荐数量",
children: /* @__PURE__ */ (0, O.jsx)("div", {
id: "relatedLimitSetting",
- children: /* @__PURE__ */ (0, O.jsx)(v1, {
+ children: /* @__PURE__ */ (0, O.jsx)(_1, {
id: "relatedLimitSetting",
label: "相关推荐数量",
value: n.relatedLimit,
@@ -66827,24 +66828,24 @@ function Kwe({ host: e, view: t }) {
}, d)
})
}),
- /* @__PURE__ */ (0, O.jsx)(P1, {
+ /* @__PURE__ */ (0, O.jsx)(N1, {
title: "口味与记录",
children: /* @__PURE__ */ (0, O.jsx)("div", {
className: "peach-react",
- children: /* @__PURE__ */ (0, O.jsx)(YF, {
+ children: /* @__PURE__ */ (0, O.jsx)(JF, {
variant: "secondary",
href: "/taste",
- onClick: () => k1(!1),
+ onClick: () => O1(!1),
children: "打开口味与记录"
})
})
})
]
}),
- /* @__PURE__ */ (0, O.jsx)(M1, {
+ /* @__PURE__ */ (0, O.jsx)(j1, {
index: 4,
tab: t.tab,
- children: /* @__PURE__ */ (0, O.jsx)(N1, {
+ children: /* @__PURE__ */ (0, O.jsx)(M1, {
id: "censorSetting",
title: "SFW 模式",
describedBy: "sfwDescription",
@@ -66871,7 +66872,7 @@ function qwe(e, t) {
}
function Jwe({ host: e, tab: t, epoch: n }) {
let r = e.store.value, i = () => e.store.save(), a = r.defaultSort === "seed", o = r.defaultSortDirection === "asc";
- return /* @__PURE__ */ (0, O.jsxs)(M1, {
+ return /* @__PURE__ */ (0, O.jsxs)(j1, {
index: 1,
tab: t,
children: [
@@ -66879,11 +66880,11 @@ function Jwe({ host: e, tab: t, epoch: n }) {
"data-settings-subheading": "",
children: "作品列表"
}),
- /* @__PURE__ */ (0, O.jsx)(P1, {
+ /* @__PURE__ */ (0, O.jsx)(N1, {
title: "每批加载作品",
children: /* @__PURE__ */ (0, O.jsx)("div", {
id: "batchSizeSetting",
- children: /* @__PURE__ */ (0, O.jsx)(v1, {
+ children: /* @__PURE__ */ (0, O.jsx)(_1, {
id: "batchSizeSetting",
label: "每批作品",
value: r.batchSize,
@@ -66893,12 +66894,12 @@ function Jwe({ host: e, tab: t, epoch: n }) {
}, n)
})
}),
- /* @__PURE__ */ (0, O.jsx)(P1, {
+ /* @__PURE__ */ (0, O.jsx)(N1, {
title: "默认排序",
kind: "sort",
children: /* @__PURE__ */ (0, O.jsxs)("div", {
"data-setting-sort-controls": "",
- children: [/* @__PURE__ */ (0, O.jsx)(h1, {
+ children: [/* @__PURE__ */ (0, O.jsx)(m1, {
id: "defaultSortSetting",
label: "默认排序",
options: Mwe,
@@ -66907,7 +66908,7 @@ function Jwe({ host: e, tab: t, epoch: n }) {
onPick: (t) => {
r.defaultSort = t, i(), e.changed("defaultSort");
}
- }), /* @__PURE__ */ (0, O.jsx)(h1, {
+ }), /* @__PURE__ */ (0, O.jsx)(m1, {
id: "defaultSortDirectionSetting",
label: "默认排序方向",
options: Nwe,
@@ -66922,9 +66923,9 @@ function Jwe({ host: e, tab: t, epoch: n }) {
})]
})
}),
- /* @__PURE__ */ (0, O.jsx)(P1, {
+ /* @__PURE__ */ (0, O.jsx)(N1, {
title: "视频卡片大小",
- children: /* @__PURE__ */ (0, O.jsx)(m1, {
+ children: /* @__PURE__ */ (0, O.jsx)(p1, {
id: "javSizeSetting",
name: "video-size",
legend: "视频卡片大小",
@@ -66950,16 +66951,16 @@ function Jwe({ host: e, tab: t, epoch: n }) {
}
})]
}),
- /* @__PURE__ */ (0, O.jsx)(P1, {
+ /* @__PURE__ */ (0, O.jsx)(N1, {
title: "悬停预览延迟",
children: /* @__PURE__ */ (0, O.jsx)("div", {
id: "hoverDelaySetting",
- children: /* @__PURE__ */ (0, O.jsx)(v1, {
+ children: /* @__PURE__ */ (0, O.jsx)(_1, {
id: "hoverDelaySetting",
label: "悬停预览延迟",
value: r.hoverDelaySeconds,
onApply: (t) => {
- r.hoverDelaySeconds = Dk(t, 0, 60, 5), i(), e.changed("hoverDelay");
+ r.hoverDelaySeconds = Ek(t, 0, 60, 5), i(), e.changed("hoverDelay");
}
}, n)
})
@@ -66977,7 +66978,7 @@ function Jwe({ host: e, tab: t, epoch: n }) {
}
function Ywe({ host: e, tab: t, epoch: n }) {
let r = e.store.value, i = () => e.store.save();
- return /* @__PURE__ */ (0, O.jsxs)(M1, {
+ return /* @__PURE__ */ (0, O.jsxs)(j1, {
index: 2,
tab: t,
children: [
@@ -66985,9 +66986,9 @@ function Ywe({ host: e, tab: t, epoch: n }) {
"data-settings-subheading": "",
children: "作品显示"
}),
- /* @__PURE__ */ (0, O.jsx)(P1, {
+ /* @__PURE__ */ (0, O.jsx)(N1, {
title: "默认图片",
- children: /* @__PURE__ */ (0, O.jsx)(m1, {
+ children: /* @__PURE__ */ (0, O.jsx)(p1, {
id: "javImageSetting",
name: "jav-image",
legend: "默认图片",
@@ -67006,21 +67007,21 @@ function Ywe({ host: e, tab: t, epoch: n }) {
"data-settings-subheading": "",
children: "新作显示"
}),
- /* @__PURE__ */ (0, O.jsx)(P1, {
+ /* @__PURE__ */ (0, O.jsx)(N1, {
title: "显示数量",
children: /* @__PURE__ */ (0, O.jsx)("div", {
id: "feedLimitSetting",
- children: /* @__PURE__ */ (0, O.jsx)(v1, {
+ children: /* @__PURE__ */ (0, O.jsx)(_1, {
id: "feedLimitSetting",
label: "新作显示数量",
value: r.feedLimit,
onApply: (t) => {
- r.feedLimit = Dk(t, 1, 100, 12), i(), e.changed("feedLimit");
+ r.feedLimit = Ek(t, 1, 100, 12), i(), e.changed("feedLimit");
}
}, n)
})
}),
- /* @__PURE__ */ (0, O.jsx)(N1, {
+ /* @__PURE__ */ (0, O.jsx)(M1, {
id: "feedAutoScrollSetting",
title: "自动滚动",
checked: r.feedAutoScroll,
@@ -67039,7 +67040,7 @@ function Ywe({ host: e, tab: t, epoch: n }) {
});
}
function Xwe({ host: e, id: t, settingKey: n, label: r, title: i }) {
- let a = mX(), [o, s] = (0, D.useState)(null), c = (0, D.useRef)(null), l = e.store.value, u = (t) => {
+ let a = pX(), [o, s] = (0, D.useState)(null), c = (0, D.useRef)(null), l = e.store.value, u = (t) => {
s(t), cc(c.current), a.mutate({ [n]: t }, {
onSuccess: (i) => {
l[n] = i[n] === !0, e.store.save(), e.changed("feedCompilations"), e.receipt(t ? `新作已收起${r}` : `新作已列出${r}`);
@@ -67066,7 +67067,7 @@ function Xwe({ host: e, id: t, settingKey: n, label: r, title: i }) {
function Zwe({ host: e, epoch: t }) {
let n = e.store.value, r = () => e.store.save();
return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [
- /* @__PURE__ */ (0, O.jsx)(N1, {
+ /* @__PURE__ */ (0, O.jsx)(M1, {
id: "detailAutoplaySetting",
title: "打开详情自动播放",
checked: n.detailAutoplay,
@@ -67074,7 +67075,7 @@ function Zwe({ host: e, epoch: t }) {
n.detailAutoplay = e, r();
}
}),
- /* @__PURE__ */ (0, O.jsx)(N1, {
+ /* @__PURE__ */ (0, O.jsx)(M1, {
id: "miniplayerSetting",
title: "离开详情后小窗播放",
checked: n.miniplayer,
@@ -67082,11 +67083,11 @@ function Zwe({ host: e, epoch: t }) {
n.miniplayer = t, r(), e.changed("miniplayer");
}
}),
- /* @__PURE__ */ (0, O.jsx)(P1, {
+ /* @__PURE__ */ (0, O.jsx)(N1, {
title: "快进 / 快退步长",
children: /* @__PURE__ */ (0, O.jsx)("div", {
id: "seekSecondsSetting",
- children: /* @__PURE__ */ (0, O.jsx)(v1, {
+ children: /* @__PURE__ */ (0, O.jsx)(_1, {
id: "seekSecondsSetting",
label: "快进 / 快退",
value: n.seekSeconds,
@@ -67099,17 +67100,17 @@ function Zwe({ host: e, epoch: t }) {
] });
}
function Qwe({ host: e, epoch: t }) {
- let n = e.store.value, r = mX();
- return /* @__PURE__ */ (0, O.jsx)(P1, {
+ let n = e.store.value, r = pX();
+ return /* @__PURE__ */ (0, O.jsx)(N1, {
title: "搜索记录数量",
children: /* @__PURE__ */ (0, O.jsx)("div", {
id: "searchHistoryLimitSetting",
- children: /* @__PURE__ */ (0, O.jsx)(v1, {
+ children: /* @__PURE__ */ (0, O.jsx)(_1, {
id: "searchHistoryLimitSetting",
label: "搜索记录",
value: n.searchHistoryLimit,
onApply: (t) => {
- n.searchHistoryLimit = Dk(t, 0, 50, 10), e.store.save(), e.changed("searchHistoryLimit"), r.mutate({ searchHistoryLimit: n.searchHistoryLimit }, { onError: () => {} });
+ n.searchHistoryLimit = Ek(t, 0, 50, 10), e.store.save(), e.changed("searchHistoryLimit"), r.mutate({ searchHistoryLimit: n.searchHistoryLimit }, { onError: () => {} });
}
}, t)
})
@@ -67117,43 +67118,43 @@ function Qwe({ host: e, epoch: t }) {
}
//#endregion
//#region src/react/sidebar/sidebar-island.tsx
-var F1 = "__home__", $we = {
+var P1 = "__home__", $we = {
creator: 26,
tag: 30,
tech: 16
-}, I1 = 180, L1 = null, R1 = {
+}, F1 = 180, I1 = null, L1 = {
props: {
content: null,
filters: {},
latest: null
},
epoch: 0
-}, z1 = /* @__PURE__ */ new Set();
+}, R1 = /* @__PURE__ */ new Set();
function eTe(e) {
- return z1.add(e), () => {
- z1.delete(e);
+ return R1.add(e), () => {
+ R1.delete(e);
};
}
-function B1() {
- for (let e of [...z1]) e();
+function z1() {
+ for (let e of [...R1]) e();
}
var tTe = {
render(e) {
- R1 = {
- ...R1,
+ L1 = {
+ ...L1,
props: e
- }, (0, Tt.flushSync)(B1);
+ }, (0, Tt.flushSync)(z1);
},
navChanged() {
- R1 = {
- ...R1,
- epoch: R1.epoch + 1
- }, (0, Tt.flushSync)(B1);
+ L1 = {
+ ...L1,
+ epoch: L1.epoch + 1
+ }, (0, Tt.flushSync)(z1);
}
};
function nTe(e) {
- return L1 = e, R1 = {
- ...R1,
+ return I1 = e, L1 = {
+ ...L1,
props: {
content: null,
filters: {},
@@ -67162,9 +67163,9 @@ function nTe(e) {
}, tTe;
}
function rTe() {
- let e = (0, D.useSyncExternalStore)(eTe, () => R1);
- return L1 ? /* @__PURE__ */ (0, O.jsx)(iTe, {
- host: L1,
+ let e = (0, D.useSyncExternalStore)(eTe, () => L1);
+ return I1 ? /* @__PURE__ */ (0, O.jsx)(iTe, {
+ host: I1,
props: e.props,
epoch: e.epoch
}) : null;
@@ -67187,7 +67188,7 @@ function iTe({ host: e, props: t, epoch: n }) {
] });
}
function aTe({ host: e, epoch: t, version: n }) {
- let r = y1(e.store), i = e.store.value.sidebarOrder, a = new Map(e.navCatalog.map((e) => [e[0], e])), o = i.map((e) => a.get(e)).filter((e) => e !== void 0), s = o.map(([t]) => e.navOn(t)), c = (0, D.useRef)(null), l = (0, D.useRef)(null), u = qF(l, c, "[data-nav][aria-pressed=\"true\"]", `${t}:${n}:${o.map(([e], t) => s[t] ? e || F1 : "").join(",")}`, { axis: "y" }), { sync: d } = u;
+ let r = v1(e.store), i = e.store.value.sidebarOrder, a = new Map(e.navCatalog.map((e) => [e[0], e])), o = i.map((e) => a.get(e)).filter((e) => e !== void 0), s = o.map(([t]) => e.navOn(t)), c = (0, D.useRef)(null), l = (0, D.useRef)(null), u = KF(l, c, "[data-nav][aria-pressed=\"true\"]", `${t}:${n}:${o.map(([e], t) => s[t] ? e || P1 : "").join(",")}`, { axis: "y" }), { sync: d } = u;
(0, D.useEffect)(() => {
let t = e.scroll, n = t.parentElement, r = t.querySelector(":scope > [data-sidebar-head]"), i = new ResizeObserver(() => d());
[
@@ -67211,7 +67212,7 @@ function aTe({ host: e, epoch: t, version: n }) {
}, _ = (e) => ({
draggable: !0,
onDragStart: (t) => {
- p(e), t.dataTransfer.effectAllowed = "move", t.dataTransfer.setData("text/plain", e || F1);
+ p(e), t.dataTransfer.effectAllowed = "move", t.dataTransfer.setData("text/plain", e || P1);
},
onDragOver: (t) => {
if (f === null || f === e) return;
@@ -67226,7 +67227,7 @@ function aTe({ host: e, epoch: t, version: n }) {
t.preventDefault();
let n = f, a = m?.key === e && m.after;
g();
- let o = n === null ? null : b1(i, n, e, a);
+ let o = n === null ? null : y1(i, n, e, a);
o && r(o);
},
onDragEnd: g
@@ -67254,15 +67255,15 @@ function aTe({ host: e, epoch: t, version: n }) {
height: 24,
alt: "",
decoding: "async"
- }) : /* @__PURE__ */ (0, O.jsx)(uP, { name: r }), /* @__PURE__ */ (0, O.jsx)("span", { children: n })]
- }, t || F1))
+ }) : /* @__PURE__ */ (0, O.jsx)(lP, { name: r }), /* @__PURE__ */ (0, O.jsx)("span", { children: n })]
+ }, t || P1))
}), v ? (0, Tt.createPortal)(/* @__PURE__ */ (0, O.jsx)("span", {
"data-sidebar-glide": "",
"aria-hidden": "true",
ref: l
}), v) : null] });
}
-var V1 = (e, t) => String(e[t] ?? "").split(",").filter(Boolean);
+var B1 = (e, t) => String(e[t] ?? "").split(",").filter(Boolean);
function oTe(e) {
if (!e) return null;
let t = /* @__PURE__ */ new Map(), n = [
@@ -67298,8 +67299,8 @@ function sTe({ host: e, content: t, filters: n, latest: r }) {
function cTe(e, t, n, r, i) {
let a = oTe(r), o = (t, r, i) => {
if (!t.length) return null;
- let o = V1(n, r);
- return /* @__PURE__ */ (0, O.jsx)(W1, {
+ let o = B1(n, r);
+ return /* @__PURE__ */ (0, O.jsx)(U1, {
rows: t,
filterKey: r,
multi: i,
@@ -67309,7 +67310,7 @@ function cTe(e, t, n, r, i) {
});
}, s = (t, s, c, l, u, d) => {
if (!c.length) return null;
- let f = V1(n, l), p = c.some((e) => f.includes(e.value));
+ let f = B1(n, l), p = c.some((e) => f.includes(e.value));
if (!d) return {
title: t,
kind: s,
@@ -67341,7 +67342,7 @@ function cTe(e, t, n, r, i) {
title: "时长",
kind: "meta",
active: !1,
- body: /* @__PURE__ */ (0, O.jsx)(q1, {
+ body: /* @__PURE__ */ (0, O.jsx)(K1, {
host: e,
filters: n
})
@@ -67355,7 +67356,7 @@ function cTe(e, t, n, r, i) {
title: "关注标签",
kind: "online",
active: !1,
- body: /* @__PURE__ */ (0, O.jsx)(G1, {
+ body: /* @__PURE__ */ (0, O.jsx)(W1, {
rows: t.followTags,
host: e,
selected: null,
@@ -67365,13 +67366,13 @@ function cTe(e, t, n, r, i) {
];
}
function lTe(e, t, n) {
- let r = t.providers || [], i = V1(n, "provider"), a = new Set(t.selected);
+ let r = t.providers || [], i = B1(n, "provider"), a = new Set(t.selected);
return [
r.length ? {
title: "来源",
kind: "src",
active: r.some((e) => i.includes(e.value)),
- body: /* @__PURE__ */ (0, O.jsx)(W1, {
+ body: /* @__PURE__ */ (0, O.jsx)(U1, {
rows: r,
filterKey: "provider",
multi: !1,
@@ -67385,7 +67386,7 @@ function lTe(e, t, n) {
title: "时长",
kind: "meta",
active: !1,
- body: /* @__PURE__ */ (0, O.jsx)(q1, {
+ body: /* @__PURE__ */ (0, O.jsx)(K1, {
host: e,
filters: n,
commit: e.setFollowDuration
@@ -67395,7 +67396,7 @@ function lTe(e, t, n) {
title: "内容标签",
kind: "online",
active: t.tags.some((e) => a.has(e.value)),
- body: /* @__PURE__ */ (0, O.jsx)(G1, {
+ body: /* @__PURE__ */ (0, O.jsx)(W1, {
rows: t.tags,
host: e,
selected: a,
@@ -67404,7 +67405,7 @@ function lTe(e, t, n) {
} : null
];
}
-function H1(e, t) {
+function V1(e, t) {
let n = null;
try {
n = sessionStorage.getItem(`peach.sidebar.group.${e}`);
@@ -67412,11 +67413,11 @@ function H1(e, t) {
return n === null ? t : n === "open";
}
function uTe({ title: e, kind: t, active: n, index: r, epoch: i, children: a }) {
- let o = (0, D.useRef)(null), s = (0, D.useRef)(null), [c, l] = (0, D.useState)(() => H1(e, n)), u = (0, D.useRef)(!1);
+ let o = (0, D.useRef)(null), s = (0, D.useRef)(null), [c, l] = (0, D.useState)(() => V1(e, n)), u = (0, D.useRef)(!1);
(0, D.useLayoutEffect)(() => {
let t = o.current, r = s.current;
if (!t || !r) return;
- let i = u.current ? H1(e, n) : c;
+ let i = u.current ? V1(e, n) : c;
u.current = !0, t.open !== i && (t.open = i, r.inert = !i, r.style.height = "", r.classList.contains("ui-fcollapse") && r.classList.toggle("ui-fcollapse-settled", i), l(i));
}, [i]);
let d = (t) => {
@@ -67437,7 +67438,7 @@ function uTe({ title: e, kind: t, active: n, index: r, epoch: i, children: a })
"aria-expanded": c,
"aria-controls": f,
onClick: d,
- children: [/* @__PURE__ */ (0, O.jsx)(uP, { name: "chevron-right" }), /* @__PURE__ */ (0, O.jsx)("span", { children: e })]
+ children: [/* @__PURE__ */ (0, O.jsx)(lP, { name: "chevron-right" }), /* @__PURE__ */ (0, O.jsx)("span", { children: e })]
}), /* @__PURE__ */ (0, O.jsx)("div", {
ref: s,
"data-sidebar-collapse": "",
@@ -67448,7 +67449,7 @@ function uTe({ title: e, kind: t, active: n, index: r, epoch: i, children: a })
children: /* @__PURE__ */ (0, O.jsx)("div", {
"data-sidebar-body": "",
id: `sidebar-group-${encodeURIComponent(e)}`,
- children: /* @__PURE__ */ (0, O.jsx)(U1.Provider, {
+ children: /* @__PURE__ */ (0, O.jsx)(H1.Provider, {
value: d,
children: a
})
@@ -67457,15 +67458,15 @@ function uTe({ title: e, kind: t, active: n, index: r, epoch: i, children: a })
})]
});
}
-var U1 = (0, D.createContext)(() => {});
+var H1 = (0, D.createContext)(() => {});
function dTe({ dot: e }) {
- return e ? e.kind === "glyph" ? /* @__PURE__ */ (0, O.jsx)(uP, { name: e.name }) : e.kind === "image" ? /* @__PURE__ */ (0, O.jsx)("img", {
+ return e ? e.kind === "glyph" ? /* @__PURE__ */ (0, O.jsx)(lP, { name: e.name }) : e.kind === "image" ? /* @__PURE__ */ (0, O.jsx)("img", {
"data-sidebar-source-icon": "",
src: e.src,
alt: ""
}) : /* @__PURE__ */ (0, O.jsx)("i", { "data-sidebar-cost": e.cost }) : null;
}
-function W1({ rows: e, filterKey: t, multi: n, selected: r, counts: i, host: a, onToggle: o = a.toggleChip }) {
+function U1({ rows: e, filterKey: t, multi: n, selected: r, counts: i, host: a, onToggle: o = a.toggleChip }) {
return /* @__PURE__ */ (0, O.jsx)("div", {
"data-sidebar-chips": "",
children: e.map((e) => {
@@ -67498,7 +67499,7 @@ function W1({ rows: e, filterKey: t, multi: n, selected: r, counts: i, host: a,
});
}
function fTe({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, selected: o, counts: s, host: c, expandable: l }) {
- let u = (0, D.useContext)(U1), [d, f] = (0, D.useState)(null), [p, m] = (0, D.useState)(e);
+ let u = (0, D.useContext)(H1), [d, f] = (0, D.useState)(null), [p, m] = (0, D.useState)(e);
p !== e && (m(e), f(null));
let h = (0, D.useRef)(null), g = (0, D.useRef)(null), _ = !!d?.all, v = d ? d.rows : n;
return (0, D.useLayoutEffect)(() => {
@@ -67513,7 +67514,7 @@ function fTe({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, s
e.body.classList.add("ui-fcollapse"), ao(e.body, e.before, () => !!t?.open && !e.body.inert);
}
t(), requestAnimationFrame(t);
- }, [d, _]), /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(W1, {
+ }, [d, _]), /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(U1, {
rows: _ ? v : v.slice(0, i),
filterKey: a,
multi: !1,
@@ -67538,10 +67539,10 @@ function fTe({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, s
all: !_
}), _ && u());
},
- children: /* @__PURE__ */ (0, O.jsx)(uP, { name: "chevron-down" })
+ children: /* @__PURE__ */ (0, O.jsx)(lP, { name: "chevron-down" })
}) : null] });
}
-function G1({ rows: e, host: t, selected: n, badges: r }) {
+function W1({ rows: e, host: t, selected: n, badges: r }) {
return /* @__PURE__ */ (0, O.jsx)("div", {
"data-sidebar-chips": "",
children: e.map((e) => /* @__PURE__ */ (0, O.jsxs)("button", {
@@ -67563,10 +67564,10 @@ function G1({ rows: e, host: t, selected: n, badges: r }) {
}, e.value))
});
}
-var K1 = (e, t) => e ? Math.min(I1, Number(e) / 60) : t;
-function q1({ host: e, filters: t, commit: n = e.setDuration }) {
- let r = `${t.dur_min ?? ""}:${t.dur_max ?? ""}`, [i, a] = (0, D.useState)(r), [o, s] = (0, D.useState)(() => [K1(t.dur_min, 0), K1(t.dur_max, I1)]), [c, l] = (0, D.useState)("max");
- i !== r && (a(r), s([K1(t.dur_min, 0), K1(t.dur_max, I1)]));
+var G1 = (e, t) => e ? Math.min(F1, Number(e) / 60) : t;
+function K1({ host: e, filters: t, commit: n = e.setDuration }) {
+ let r = `${t.dur_min ?? ""}:${t.dur_max ?? ""}`, [i, a] = (0, D.useState)(r), [o, s] = (0, D.useState)(() => [G1(t.dur_min, 0), G1(t.dur_max, F1)]), [c, l] = (0, D.useState)("max");
+ i !== r && (a(r), s([G1(t.dur_min, 0), G1(t.dur_max, F1)]));
let [u, d] = o, f = (0, D.useRef)(null), p = (0, D.useRef)(null), m = (0, D.useRef)(null), h = (0, D.useRef)(o);
h.current = o;
let g = (e, t) => {
@@ -67579,11 +67580,11 @@ function q1({ host: e, filters: t, commit: n = e.setDuration }) {
}, [n]), (0, D.useLayoutEffect)(() => {
let e = f.current;
if (!e) return;
- e.style.setProperty("--lo", `${u / I1 * 100}%`), e.style.setProperty("--hi", `${d / I1 * 100}%`);
+ e.style.setProperty("--lo", `${u / F1 * 100}%`), e.style.setProperty("--hi", `${d / F1 * 100}%`);
let t = e.getBoundingClientRect();
e.querySelectorAll("[data-sidebar-range-tip]").forEach((e) => {
let n = e.dataset.rangeEnd === "max" ? d : u;
- e.style.left = `${n / I1 * 100}%`, e.style.setProperty("--range-tip-shift", "0px");
+ e.style.left = `${n / F1 * 100}%`, e.style.setProperty("--range-tip-shift", "0px");
let r = e.getBoundingClientRect(), i = r.right > t.right ? t.right - r.right : r.left < t.left ? t.left - r.left : 0;
i && e.style.setProperty("--range-tip-shift", `${Math.round(i)}px`);
});
@@ -67593,7 +67594,7 @@ function q1({ host: e, filters: t, commit: n = e.setDuration }) {
"data-range-end": e,
"data-range-active": c === e ? "" : void 0,
"aria-hidden": "true",
- children: e === "max" && t >= I1 ? "不限" : `${t} 分钟`
+ children: e === "max" && t >= F1 ? "不限" : `${t} 分钟`
});
return /* @__PURE__ */ (0, O.jsx)("div", {
"data-sidebar-duration": "",
@@ -67608,7 +67609,7 @@ function q1({ host: e, filters: t, commit: n = e.setDuration }) {
id: "durMin",
type: "range",
min: "0",
- max: I1,
+ max: F1,
step: "5",
value: u,
"aria-label": "最短时长(分钟)",
@@ -67619,7 +67620,7 @@ function q1({ host: e, filters: t, commit: n = e.setDuration }) {
id: "durMax",
type: "range",
min: "0",
- max: I1,
+ max: F1,
step: "5",
value: d,
"aria-label": "最长时长(分钟)",
@@ -67634,7 +67635,7 @@ function q1({ host: e, filters: t, commit: n = e.setDuration }) {
}
//#endregion
//#region src/diagnostics-skeleton.ts
-function J1() {
+function q1() {
let e = (e) => Wo({
label: e,
variant: "secondary",
@@ -67649,7 +67650,7 @@ function J1() {
}
//#endregion
//#region src/react/settings/library-policy-copy.ts
-var Y1 = "每个媒体库都先读本地 NFO 和同目录图片;处理方式只决定要不要联网补全。", pTe = [
+var J1 = "每个媒体库都先读本地 NFO 和同目录图片;处理方式只决定要不要联网补全。", pTe = [
"自动补全",
"仅使用本地资料",
"自定义"
@@ -67684,7 +67685,7 @@ var Y1 = "每个媒体库都先读本地 NFO 和同目录图片;处理方式
"—",
"可选"
]
-], hTe = "本地只有竖版海报时:自动补全会联网找完整封套(FC2 商品图除外),仅使用本地资料直接用竖版。", X1 = "一个媒体库可以有多个文件夹,作品合在一起显示,共用名称、颜色和处理方式;要分开显示或分开设置时再添加媒体库。", Z1 = "JavDB 或 MISSAV 打不开时,填一个能打开的镜像域名。", Q1 = "只填域名,留空用默认地址", gTe = [
+], hTe = "本地只有竖版海报时:自动补全会联网找完整封套(FC2 商品图除外),仅使用本地资料直接用竖版。", Y1 = "一个媒体库可以有多个文件夹,作品合在一起显示,共用名称、颜色和处理方式;要分开显示或分开设置时再添加媒体库。", X1 = "JavDB 或 MISSAV 打不开时,填一个能打开的镜像域名。", Z1 = "只填域名,留空用默认地址", gTe = [
{
provider: "coomer",
label: "Coomer",
@@ -67717,6 +67718,15 @@ var Y1 = "每个媒体库都先读本地 NFO 和同目录图片;处理方式
where: "https://gofile.io/myprofile",
howto: "登录 Premium Gofile 账户后,在个人资料页复制 API token。"
},
+ {
+ provider: "iwara",
+ label: "Iwara",
+ requirement: "optional",
+ fields: ["access_token"],
+ why: "公开作者视频无需登录;有访问限制的视频需要账号访问权及有效登录凭据。",
+ where: "https://www.iwara.tv/",
+ howto: "登录 Iwara 后,从成功的 apiq.iwara.tv/video 请求复制 Authorization 中 Bearer 后的值,填写 access_token。令牌过期后需重新复制。"
+ },
{
provider: "kemono",
label: "Kemono",
@@ -67765,8 +67775,8 @@ var Y1 = "每个媒体库都先读本地 NFO 和同目录图片;处理方式
label: "SubscribeStar",
requirement: "none"
}
-], $1 = "API 代理用于列目录和查询文件信息,数据代理用于读取视频及配套文件。保存后,同一网盘账号在 CloudDrive 中的其他读取也会使用此设置。", _Te = "peach.configuration.shape.v1";
-function e0() {
+], Q1 = "API 代理用于列目录和查询文件信息,数据代理用于读取视频及配套文件。保存后,同一网盘账号在 CloudDrive 中的其他读取也会使用此设置。", _Te = "peach.configuration.shape.v1";
+function $1() {
try {
let e = JSON.parse(localStorage.getItem("peach.configuration.shape.v1") || "{}");
return e && typeof e == "object" ? e : {};
@@ -67776,7 +67786,7 @@ function e0() {
}
function vTe(e, t) {
try {
- let n = e0();
+ let n = $1();
if (JSON.stringify(n[e]) === JSON.stringify(t)) return;
localStorage.setItem(_Te, JSON.stringify({
...n,
@@ -67784,17 +67794,17 @@ function vTe(e, t) {
}));
} catch {}
}
-var t0 = (e) => e0()[e], n0 = (e) => e === !0, r0 = (e, t) => Number.isInteger(e) && e > 0 ? Math.min(e, t) : 0, i0 = (e, t, n) => Array.isArray(e) ? e.slice(0, t).map(n) : [], a0 = "disabled data-skeleton-action", o0 = (e = "60%") => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, s0 = (e = "100%") => `<span class="skeleton ui-configuration-skeleton-input" style="width:${e}"></span>`, c0 = (e, t) => `<span class="skeleton shrink-0" style="width:${e};height:${t}"></span>`, l0 = (e = "3em") => c0(e, "24px"), u0 = () => c0("var(--icon-inline)", "var(--icon-inline)"), d0 = (e, t = "primary", n = "medium") => Wo({
+var e0 = (e) => $1()[e], t0 = (e) => e === !0, n0 = (e, t) => Number.isInteger(e) && e > 0 ? Math.min(e, t) : 0, r0 = (e, t, n) => Array.isArray(e) ? e.slice(0, t).map(n) : [], i0 = "disabled data-skeleton-action", a0 = (e = "60%") => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, o0 = (e = "100%") => `<span class="skeleton ui-configuration-skeleton-input" style="width:${e}"></span>`, s0 = (e, t) => `<span class="skeleton shrink-0" style="width:${e};height:${t}"></span>`, c0 = (e = "3em") => s0(e, "24px"), l0 = () => s0("var(--icon-inline)", "var(--icon-inline)"), u0 = (e, t = "primary", n = "medium") => Wo({
label: e,
variant: t,
size: n,
- attrs: a0
-}), f0 = (e, t = "") => `<div class="-ml-3 flex flex-wrap items-center justify-end gap-3 rounded-b-2xl border-t border-separator-border bg-card-footer px-3 py-3">${t ? `<div class="mr-auto min-w-0 text-body-2-regular text-text-secondary">${t}</div>` : ""}${e}</div>`, p0 = (e, t = !1) => `<div class="flex flex-col gap-4 ${t ? "border-t border-separator-border " : ""}py-4 pr-3">${e}</div>`, yTe = (e, t, n) => {
- let r = `<p class="w-full px-3 text-body-2-medium text-text-secondary">${n ? `<span class="inline-flex items-center gap-1.5">${u0()}${e}</span>` : e}</p>`;
+ attrs: i0
+}), d0 = (e, t = "") => `<div class="-ml-3 flex flex-wrap items-center justify-end gap-3 rounded-b-2xl border-t border-separator-border bg-card-footer px-3 py-3">${t ? `<div class="mr-auto min-w-0 text-body-2-regular text-text-secondary">${t}</div>` : ""}${e}</div>`, f0 = (e, t = !1) => `<div class="flex flex-col gap-4 ${t ? "border-t border-separator-border " : ""}py-4 pr-3">${e}</div>`, yTe = (e, t, n) => {
+ let r = `<p class="w-full px-3 text-body-2-medium text-text-secondary">${n ? `<span class="inline-flex items-center gap-1.5">${l0()}${e}</span>` : e}</p>`;
return t ? `<div class="flex w-full flex-wrap items-center justify-between gap-2"><div class="min-w-40 flex-1">${r}</div><div class="flex min-w-0 max-w-full">${t}</div></div>` : r;
-}, m0 = (e, t, n = "", { aside: r = "", status: i = "", mark: a = !1 } = {}) => `<section aria-label="${e}" class="flex w-full flex-col gap-2 wrap-anywhere">${yTe(e, r, a)}<div class="flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3">${t}${n ? f0(n, i) : ""}</div></section>`, h0 = (e, t, n) => `<div class="flex min-h-[52px] w-full items-center justify-between gap-4 py-2.5 pr-2.5 border-b border-separator-border last:border-b-0"><div class="flex min-w-0 flex-col"><p class="text-body-regular text-text-primary">${e}</p>${t ? `<p class="text-body-2-regular text-text-secondary">${t}</p>` : ""}</div>${n}</div>`, g0 = (e, t = "", n = "ui-configuration-skeleton-toggle") => h0(e, t, `<span class="skeleton ${n}"></span>`), _0 = (e, t = "4em") => h0(e, "", o0(t)), v0 = (e) => `<p class="text-body-2-regular text-text-secondary">${e}</p>`, y0 = (e) => `<p class="text-body-medium text-text-primary">${e}</p>`, b0 = (e, t = "") => `<div class="flex w-full flex-col items-start gap-1"><span class="flex items-center gap-0.5 text-body-medium text-text-primary">${e}</span>${s0()}${t ? `<span class="pt-px text-caption-1-medium text-text-secondary">${t}</span>` : ""}</div>`, x0 = (e) => `<div class="flex flex-col gap-1">${y0(e)}${Ko(o0("8em"))}</div>`, S0 = (e) => `<span class="flex items-center gap-2 text-body-regular text-text-primary">${c0("16px", "16px")}${e}</span>`, C0 = (e) => `<span class="inline-flex items-center gap-1">${u0()}${e}</span>`, w0 = (e, t = !1) => `<span class="flex w-fit items-center gap-1 text-body-2-medium text-text-secondary">${Vo("chevron-right", `size-(--icon-inline) shrink-0${t ? " rotate-90" : ""}`)}${e}</span>`, bTe = /* @__PURE__ */ new Set(["FFmpeg", "untrunc"]), T0 = (e) => `<dl class="ui-settings-facts flex flex-col">${e.map((e) => `<div class="flex min-h-11 items-center justify-between gap-4 border-b border-separator-border py-2.5 pr-3 last:border-b-0"><dt class="flex max-w-1/2 min-w-0 shrink-0 items-center gap-2 text-body-regular text-text-secondary">${e}</dt><dd class="flex min-w-0 flex-wrap items-center justify-end gap-2 text-body-regular text-text-primary">${bTe.has(e) ? o0("100%") + o0("80%") + o0("6em") : o0("6em")}</dd></div>`).join("")}</dl>`, xTe = gTe;
-function STe(e = t0("credentials")) {
- let t = new Set(i0(e?.done, 64, String));
+}, p0 = (e, t, n = "", { aside: r = "", status: i = "", mark: a = !1 } = {}) => `<section aria-label="${e}" class="flex w-full flex-col gap-2 wrap-anywhere">${yTe(e, r, a)}<div class="flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3">${t}${n ? d0(n, i) : ""}</div></section>`, m0 = (e, t, n) => `<div class="flex min-h-[52px] w-full items-center justify-between gap-4 py-2.5 pr-2.5 border-b border-separator-border last:border-b-0"><div class="flex min-w-0 flex-col"><p class="text-body-regular text-text-primary">${e}</p>${t ? `<p class="text-body-2-regular text-text-secondary">${t}</p>` : ""}</div>${n}</div>`, h0 = (e, t = "", n = "ui-configuration-skeleton-toggle") => m0(e, t, `<span class="skeleton ${n}"></span>`), g0 = (e, t = "4em") => m0(e, "", a0(t)), _0 = (e) => `<p class="text-body-2-regular text-text-secondary">${e}</p>`, v0 = (e) => `<p class="text-body-medium text-text-primary">${e}</p>`, y0 = (e, t = "") => `<div class="flex w-full flex-col items-start gap-1"><span class="flex items-center gap-0.5 text-body-medium text-text-primary">${e}</span>${o0()}${t ? `<span class="pt-px text-caption-1-medium text-text-secondary">${t}</span>` : ""}</div>`, b0 = (e) => `<div class="flex flex-col gap-1">${v0(e)}${Ko(a0("8em"))}</div>`, x0 = (e) => `<span class="flex items-center gap-2 text-body-regular text-text-primary">${s0("16px", "16px")}${e}</span>`, S0 = (e) => `<span class="inline-flex items-center gap-1">${l0()}${e}</span>`, C0 = (e, t = !1) => `<span class="flex w-fit items-center gap-1 text-body-2-medium text-text-secondary">${Vo("chevron-right", `size-(--icon-inline) shrink-0${t ? " rotate-90" : ""}`)}${e}</span>`, bTe = /* @__PURE__ */ new Set(["FFmpeg", "untrunc"]), w0 = (e) => `<dl class="ui-settings-facts flex flex-col">${e.map((e) => `<div class="flex min-h-11 items-center justify-between gap-4 border-b border-separator-border py-2.5 pr-3 last:border-b-0"><dt class="flex max-w-1/2 min-w-0 shrink-0 items-center gap-2 text-body-regular text-text-secondary">${e}</dt><dd class="flex min-w-0 flex-wrap items-center justify-end gap-2 text-body-regular text-text-primary">${bTe.has(e) ? a0("100%") + a0("80%") + a0("6em") : a0("6em")}</dd></div>`).join("")}</dl>`, xTe = gTe;
+function STe(e = e0("credentials")) {
+ let t = new Set(r0(e?.done, 64, String));
return xTe.map((e) => {
let n = t.has(e.provider);
return {
@@ -67805,95 +67815,95 @@ function STe(e = t0("credentials")) {
});
}
function CTe(e) {
- let t = e.fields ?? [], n = e.requirement !== "none" && e.requirement !== "blocked", r = l0() + (n && !e.done ? t.map(() => l0("4.5em")).join("") : ""), i = `<span class="flex min-w-0 flex-wrap items-center gap-2">${c0("14px", "14px")}<b class="min-w-0 text-body-medium wrap-anywhere text-text-primary">${B(e.label)}</b>${r}</span>`;
- if (!n) return `<div class="flex flex-wrap items-center gap-3 border-b border-separator-border px-6 py-5 last:border-b-0 max-sm:px-4">${i}${e.requirement === "blocked" && e.why ? v0(B(e.why)) : ""}</div>`;
- let a = e.open ? "<div class=\"flex flex-col gap-2 pt-3\"><div class=\"flex flex-col gap-3\">" + v0(`${B(e.why ?? "")}${e.where ? " 获取凭据" : ""}`) + (e.howto ? v0(B(e.howto)) : "") + `<div class="flex w-full flex-col gap-3">${t.map((e) => b0(B(e))).join("")}</div><div class="flex flex-wrap items-center gap-2">${d0("保存配置")}</div>${w0("凭据文件")}</div></div>` : "";
- return `<div class="flex flex-col gap-2 border-b border-separator-border px-6 py-5 last:border-b-0 max-sm:px-4">${i}<div>${w0(e.done ? "修改凭据" : "填写凭据", e.open)}${a}</div></div>`;
+ let t = e.fields ?? [], n = e.requirement !== "none" && e.requirement !== "blocked", r = c0() + (n && !e.done ? t.map(() => c0("4.5em")).join("") : ""), i = `<span class="flex min-w-0 flex-wrap items-center gap-2">${s0("14px", "14px")}<b class="min-w-0 text-body-medium wrap-anywhere text-text-primary">${B(e.label)}</b>${r}</span>`;
+ if (!n) return `<div class="flex flex-wrap items-center gap-3 border-b border-separator-border px-6 py-5 last:border-b-0 max-sm:px-4">${i}${e.requirement === "blocked" && e.why ? _0(B(e.why)) : ""}</div>`;
+ let a = e.open ? "<div class=\"flex flex-col gap-2 pt-3\"><div class=\"flex flex-col gap-3\">" + _0(`${B(e.why ?? "")}${e.where ? " 获取凭据" : ""}`) + (e.howto ? _0(B(e.howto)) : "") + `<div class="flex w-full flex-col gap-3">${t.map((e) => y0(B(e))).join("")}</div><div class="flex flex-wrap items-center gap-2">${u0("保存配置")}</div>${C0("凭据文件")}</div></div>` : "";
+ return `<div class="flex flex-col gap-2 border-b border-separator-border px-6 py-5 last:border-b-0 max-sm:px-4">${i}<div>${C0(e.done ? "修改凭据" : "填写凭据", e.open)}${a}</div></div>`;
}
-function E0() {
+function T0() {
let e = STe(), t = e.filter((e) => e.requirement === "required" && !e.done).length;
- return m0("来源凭据", p0(`<div class="flex flex-col gap-4">${[
+ return p0("来源凭据", f0(`<div class="flex flex-col gap-4">${[
["可配置凭据", e.filter((e) => e.requirement !== "none" && e.requirement !== "blocked")],
["不需要凭据", e.filter((e) => e.requirement === "none")],
["暂不支持", e.filter((e) => e.requirement === "blocked")]
- ].filter(([, e]) => e.length).map(([e, t]) => `<div class="flex flex-col gap-2"><h4 class="text-body-medium text-text-secondary">${e}</h4><div class="min-w-0 border border-separator-border bg-background-primary-default rounded-surface flex flex-col overflow-hidden">${t.map(CTe).join("")}</div></div>`).join("")}</div>`), "", { aside: t ? o0("5em") : "" });
+ ].filter(([, e]) => e.length).map(([e, t]) => `<div class="flex flex-col gap-2"><h4 class="text-body-medium text-text-secondary">${e}</h4><div class="min-w-0 border border-separator-border bg-background-primary-default rounded-surface flex flex-col overflow-hidden">${t.map(CTe).join("")}</div></div>`).join("")}</div>`), "", { aside: t ? a0("5em") : "" });
}
-function D0() {
- let e = i0(t0("indexers")?.open, 20, n0).map((e) => `<div class="min-w-0 border-t border-separator-border pt-2"><span class="flex w-full min-w-0 items-center gap-1 text-body-2-medium">${Vo("chevron-right", `size-(--icon-inline) shrink-0 text-text-secondary${e ? " rotate-90" : ""}`)}${o0("6em")}${o0("12em")}</span>` + (e ? `<div class="flex flex-col gap-2 pt-3"><div class="flex min-w-0 flex-col gap-4">${b0("名称")}${b0("Torznab 地址")}${b0("API key")}<div class="flex flex-wrap items-center gap-x-6 gap-y-2">${S0("启用")}${d0("移除", "secondary", "small")}</div></div></div>` : "") + "</div>").join("");
- return m0("资源搜索", p0(`<div class="flex min-w-0 flex-col gap-4">${w0("索引器连接帮助")}${e}</div>`), d0("添加索引器", "secondary") + d0("保存配置"));
+function E0() {
+ let e = r0(e0("indexers")?.open, 20, t0).map((e) => `<div class="min-w-0 border-t border-separator-border pt-2"><span class="flex w-full min-w-0 items-center gap-1 text-body-2-medium">${Vo("chevron-right", `size-(--icon-inline) shrink-0 text-text-secondary${e ? " rotate-90" : ""}`)}${a0("6em")}${a0("12em")}</span>` + (e ? `<div class="flex flex-col gap-2 pt-3"><div class="flex min-w-0 flex-col gap-4">${y0("名称")}${y0("Torznab 地址")}${y0("API key")}<div class="flex flex-wrap items-center gap-x-6 gap-y-2">${x0("启用")}${u0("移除", "secondary", "small")}</div></div></div>` : "") + "</div>").join("");
+ return p0("资源搜索", f0(`<div class="flex min-w-0 flex-col gap-4">${C0("索引器连接帮助")}${e}</div>`), u0("添加索引器", "secondary") + u0("保存配置"));
}
-function O0() {
- let e = t0("javBrowser"), t = n0(e?.enabled);
- return m0("浏览器添加 JAV", p0(`<div class="flex min-w-0 flex-col gap-4">${`<div class="min-w-0 bg-background-primary-default rounded-2xl shadow-card p-5 border border-border-button-default flex flex-col gap-3"><div class="flex flex-wrap items-center justify-between gap-3"><span class="text-body-medium text-text-primary">Peach 用户脚本</span>${o0("4em")}</div><div class="flex flex-wrap items-center justify-between gap-3"><span class="text-body-regular text-text-secondary">浏览器添加</span>${l0()}</div><p class="text-caption-1-regular text-text-secondary">${o0("70%")}</p><div class="flex flex-wrap items-center gap-2">${d0("重新检测", "secondary")}</div></div>`}${x0("浏览器添加的下载渠道")}${n0(e?.ready) ? "" : v0("请在媒体库中添加支持云下载的网盘,并配置账号与目标目录。")}${b0("Peach 地址")}</div>`), (t ? d0("关闭浏览器添加", "secondary") : "") + d0(t ? "更新渠道与令牌" : "启用并生成令牌"));
+function D0() {
+ let e = e0("javBrowser"), t = t0(e?.enabled);
+ return p0("浏览器添加 JAV", f0(`<div class="flex min-w-0 flex-col gap-4">${`<div class="min-w-0 bg-background-primary-default rounded-2xl shadow-card p-5 border border-border-button-default flex flex-col gap-3"><div class="flex flex-wrap items-center justify-between gap-3"><span class="text-body-medium text-text-primary">Peach 用户脚本</span>${a0("4em")}</div><div class="flex flex-wrap items-center justify-between gap-3"><span class="text-body-regular text-text-secondary">浏览器添加</span>${c0()}</div><p class="text-caption-1-regular text-text-secondary">${a0("70%")}</p><div class="flex flex-wrap items-center gap-2">${u0("重新检测", "secondary")}</div></div>`}${b0("浏览器添加的下载渠道")}${t0(e?.ready) ? "" : _0("请在媒体库中添加支持云下载的网盘,并配置账号与目标目录。")}${y0("Peach 地址")}</div>`), (t ? u0("关闭浏览器添加", "secondary") : "") + u0(t ? "更新渠道与令牌" : "启用并生成令牌"));
}
-var k0 = (e, t) => `<div class="flex min-w-0 flex-col gap-3">${y0(e)}${Ko(o0("6em"))}` + (t ? `<div class="flex flex-wrap gap-3"><div class="min-w-40 flex-1">${b0(`${e}地址`)}</div><div class="w-full sm:w-28">${b0(`${e}端口`)}</div></div>${w0("代理认证")}` : "") + "</div>";
-function A0() {
- let e = t0("cloudProxy"), t = i0(e?.accounts, 12, (e) => Array.isArray(e) ? [n0(e[0]), n0(e[1])] : [!1, !1]), n = r0(e?.unlinked, 12), r = t.length || n ? Array.from({ length: n }, () => `<div class="flex min-w-0 flex-col gap-1">${y0(C0(o0("6em")))}${v0(o0("9em"))}</div>`).join("") + t.map(([e, t]) => `<div class="flex min-w-0 flex-col gap-4 border-t border-separator-border pt-4">${y0(C0(o0("8em")))}${v0(o0("50%"))}${k0("数据代理", e)}${k0("API 代理", t)}<div class="flex justify-end">${d0("保存配置")}</div></div>`).join("") : v0(o0("60%"));
- return m0("CloudDrive 代理", p0(`${v0($1)}<div class="flex min-w-0 flex-col gap-4">${r}</div>`), d0("重新读取", "secondary"));
+var O0 = (e, t) => `<div class="flex min-w-0 flex-col gap-3">${v0(e)}${Ko(a0("6em"))}` + (t ? `<div class="flex flex-wrap gap-3"><div class="min-w-40 flex-1">${y0(`${e}地址`)}</div><div class="w-full sm:w-28">${y0(`${e}端口`)}</div></div>${C0("代理认证")}` : "") + "</div>";
+function k0() {
+ let e = e0("cloudProxy"), t = r0(e?.accounts, 12, (e) => Array.isArray(e) ? [t0(e[0]), t0(e[1])] : [!1, !1]), n = n0(e?.unlinked, 12), r = t.length || n ? Array.from({ length: n }, () => `<div class="flex min-w-0 flex-col gap-1">${v0(S0(a0("6em")))}${_0(a0("9em"))}</div>`).join("") + t.map(([e, t]) => `<div class="flex min-w-0 flex-col gap-4 border-t border-separator-border pt-4">${v0(S0(a0("8em")))}${_0(a0("50%"))}${O0("数据代理", e)}${O0("API 代理", t)}<div class="flex justify-end">${u0("保存配置")}</div></div>`).join("") : _0(a0("60%"));
+ return p0("CloudDrive 代理", f0(`${_0(Q1)}<div class="flex min-w-0 flex-col gap-4">${r}</div>`), u0("重新读取", "secondary"));
}
-var j0 = (e, t, n) => `<div class="flex min-w-0 flex-col gap-1 ${n}"><span class="flex items-center gap-0.5 text-body-medium text-text-primary" aria-hidden="true">${e}</span>${t}</div>`, wTe = (e) => `<div data-folder-row class="@container flex flex-col gap-2 rounded-2lg border border-separator-border bg-background-primary-default p-3">
- <div class="flex items-start gap-2"><span class="min-w-0 flex-1">${s0()}</span>${Wo({
+var A0 = (e, t, n) => `<div class="flex min-w-0 flex-col gap-1 ${n}"><span class="flex items-center gap-0.5 text-body-medium text-text-primary" aria-hidden="true">${e}</span>${t}</div>`, wTe = (e) => `<div data-folder-row class="@container flex flex-col gap-2 rounded-2lg border border-separator-border bg-background-primary-default p-3">
+ <div class="flex items-start gap-2"><span class="min-w-0 flex-1">${o0()}</span>${Wo({
glyph: "folder-search",
variant: "secondary",
- attrs: a0
+ attrs: i0
})}</div>
- <div class="flex flex-wrap items-end gap-2"><div class="flex w-full flex-wrap items-start gap-2">${j0("来源", Ko(o0("6em")), "w-full @lg:w-60")}${j0("读取策略", Ko(o0("4em")), "w-full @lg:w-32")}${e > 1 ? j0("移到媒体库", Ko(o0("4em")), "w-full @lg:w-48") : ""}</div></div>
+ <div class="flex flex-wrap items-end gap-2"><div class="flex w-full flex-wrap items-start gap-2">${A0("来源", Ko(a0("6em")), "w-full @lg:w-60")}${A0("读取策略", Ko(a0("4em")), "w-full @lg:w-32")}${e > 1 ? A0("移到媒体库", Ko(a0("4em")), "w-full @lg:w-48") : ""}</div></div>
</div>`, TTe = (e, t) => `<div data-library-block class="min-w-0 bg-background-primary-default rounded-2xl shadow-card flex flex-col p-2">
<div data-library-head>${Wo({
label: "自动识别",
variant: "secondary",
- attrs: a0
-})}${s0()}<span class="skeleton ui-configuration-skeleton-input" style="width:136px"></span>${Ko(o0("4em"), { prefix: "处理方式" })}</div>
+ attrs: i0
+})}${o0()}<span class="skeleton ui-configuration-skeleton-input" style="width:136px"></span>${Ko(a0("4em"), { prefix: "处理方式" })}</div>
<div data-library-folders>${wTe(t).repeat(e)}<div class="flex">${Wo({
label: "添加文件夹",
variant: "secondary",
- attrs: a0
-})}</div></div></div>`, ETe = `<div data-policy-legend class="flex flex-col gap-1"><p class="text-body-2-regular text-text-secondary">${Y1}</p><span class="flex items-center gap-1 text-body-2-medium text-text-secondary">三种处理方式对比</span></div>`, DTe = "<p class=\"text-body-2-regular text-text-secondary\">读取策略选「代理保护」时,会限制自动读取视频。</p><div class=\"flex flex-col gap-3\"><span class=\"flex items-center gap-1 text-body-2-medium text-text-secondary\">CloudDrive 设置帮助</span></div>";
-function OTe(e = t0("media")) {
- let t = i0(e?.folders, 12, (e) => r0(e, 50)).filter(Boolean);
+ attrs: i0
+})}</div></div></div>`, ETe = `<div data-policy-legend class="flex flex-col gap-1"><p class="text-body-2-regular text-text-secondary">${J1}</p><span class="flex items-center gap-1 text-body-2-medium text-text-secondary">三种处理方式对比</span></div>`, DTe = "<p class=\"text-body-2-regular text-text-secondary\">读取策略选「代理保护」时,会限制自动读取视频。</p><div class=\"flex flex-col gap-3\"><span class=\"flex items-center gap-1 text-body-2-medium text-text-secondary\">CloudDrive 设置帮助</span></div>";
+function OTe(e = e0("media")) {
+ let t = r0(e?.folders, 12, (e) => n0(e, 50)).filter(Boolean);
return t.length ? {
folders: t,
- cloud: n0(e?.cloud)
+ cloud: t0(e?.cloud)
} : {
folders: [1],
cloud: !1
};
}
function kTe() {
- let e = t0("discovery"), t = n0(e?.enabled), n = t && n0(e?.cloud), r = n && n0(e?.webhook), i = `<div class="flex items-start gap-2"><span class="min-w-0 flex-1">${s0()}</span>${Ko(o0("4em"), { prefix: "对应目录" })}${Wo({
+ let e = e0("discovery"), t = t0(e?.enabled), n = t && t0(e?.cloud), r = n && t0(e?.webhook), i = `<div class="flex items-start gap-2"><span class="min-w-0 flex-1">${o0()}</span>${Ko(a0("4em"), { prefix: "对应目录" })}${Wo({
glyph: "trash",
variant: "secondary",
- attrs: a0
+ attrs: i0
})}</div>`;
- return m0("自动发现新文件", p0(`<div class="flex flex-wrap items-center gap-2"><span class="text-body-regular text-text-secondary">本机监视</span>${l0()}</div>`) + g0("发现新文件后自动入库", t ? o0("10em") : "") + g0("监视本机文件夹", t && n0(e?.watchLocal) ? o0("12em") : "") + g0("接收 CloudDrive2 通知") + (n ? h0("Webhook 配置", o0("20em"), "") : "") + (r ? p0(w0("查看配置"), !0) : "") + (n ? p0(`<div class="flex flex-col gap-3">${y0("云端路径前缀")}<div class="flex flex-col gap-3">${i.repeat(r0(e?.prefixes, 20))}</div><div>${d0("添加前缀", "secondary")}</div></div>`, !0) : ""), (r ? d0("更换密钥", "secondary") : "") + d0("保存配置"));
+ return p0("自动发现新文件", f0(`<div class="flex flex-wrap items-center gap-2"><span class="text-body-regular text-text-secondary">本机监视</span>${c0()}</div>`) + h0("发现新文件后自动入库", t ? a0("10em") : "") + h0("监视本机文件夹", t && t0(e?.watchLocal) ? a0("12em") : "") + h0("接收 CloudDrive2 通知") + (n ? m0("Webhook 配置", a0("20em"), "") : "") + (r ? f0(C0("查看配置"), !0) : "") + (n ? f0(`<div class="flex flex-col gap-3">${v0("云端路径前缀")}<div class="flex flex-col gap-3">${i.repeat(n0(e?.prefixes, 20))}</div><div>${u0("添加前缀", "secondary")}</div></div>`, !0) : ""), (r ? u0("更换密钥", "secondary") : "") + u0("保存配置"));
}
var ATe = () => {
let e = OTe();
- return m0("媒体库与目录", p0(`${ETe}<div class="flex flex-col gap-4">${e.folders.map((t) => TTe(t, e.folders.length)).join("")}</div>
- <div class="self-start">${d0("添加媒体库", "secondary")}</div>
- <p class="text-body-2-regular text-text-secondary">${X1}</p>
- ${e.cloud ? DTe : ""}<span class="text-body-medium text-text-primary">${o0("15em")}</span>`), d0("保存配置"), { status: "保存后 Peach 会重新启动。" }) + (e.cloud ? A0() : "") + kTe() + m0("番号识别规则", p0(`${o0("90%")}${o0("60%")}<span class="skeleton ui-configuration-skeleton-input" style="width:100%;height:88px"></span>`), d0("保存配置")) + m0("视频预览", g0("生成视频预览", "为本地视频生成九宫格与时间轴预览;关闭后仍按入库规则探测时长与分辨率。") + g0("时间轴预览", "按所选间隔抽帧,仅处理本机磁盘上的视频。", "ui-configuration-skeleton-select") + g0("抽帧解码方式", "用于生成封面、九宫格和时间轴。", "ui-configuration-skeleton-select"));
-}, jTe = () => `<div>${d0("采集来源与登录状态", "secondary")}</div>` + E0() + m0("关注采集", h0("自动检查更新", "", "<span class=\"flex items-center gap-2\"><span class=\"skeleton ui-configuration-skeleton-toggle\"></span><span class=\"skeleton ui-configuration-skeleton-input\" style=\"width:96px\"></span></span>") + _0("订阅源拉取") + g0("首次采集范围", "", "ui-configuration-skeleton-select") + _0("头像刷新") + _0("favicon 刷新")) + D0() + m0("作品资料站点", p0(`<p class="text-body-2-regular text-text-secondary">${Z1}</p>${b0(C0("JavDB 地址"), Q1)}${b0(C0("MISSAV 地址"), Q1)}`), d0("保存配置")), MTe = () => {
- let e = t0("downloads"), t = n0(e?.pikpak), n = n0(e?.pikpakRoots) ? x0(C0("PikPak 根目录对应的媒体目录")) : `<div class="flex flex-col gap-1">${y0(C0("PikPak 根目录对应的媒体目录"))}${v0("先在「媒体库与入库」添加 PikPak 挂载文件夹。")}</div>`, r = n0(e?.cloud) ? m0("云下载", p0(b0("CloudDrive2 地址") + b0("CloudDrive2 API 令牌", "需要离线任务权限。") + (n0(e?.has115) ? b0(C0("115 目标目录"), "应位于自动入库的云端路径前缀内。") : "") + (t ? b0(C0("PikPak 目标目录"), "目录要已经存在。") + n : "") + b0("等待上限(小时)", o0("14em"))), d0("检查连接", "secondary") + d0("保存配置")) : "", i = n0(e?.pikpakLoggedIn);
- return r + (t ? m0("PikPak 账号", i ? T0(["账号", o0("4em")]) : p0(b0("账号") + b0("密码") + S0("保存密码,登录过期时自动重新登录")), i ? d0("登出", "secondary") : (n0(e?.browserLogin) ? d0("用浏览器登录", "secondary") : "") + d0("登录"), {
- aside: l0(),
+ return p0("媒体库与目录", f0(`${ETe}<div class="flex flex-col gap-4">${e.folders.map((t) => TTe(t, e.folders.length)).join("")}</div>
+ <div class="self-start">${u0("添加媒体库", "secondary")}</div>
+ <p class="text-body-2-regular text-text-secondary">${Y1}</p>
+ ${e.cloud ? DTe : ""}<span class="text-body-medium text-text-primary">${a0("15em")}</span>`), u0("保存配置"), { status: "保存后 Peach 会重新启动。" }) + (e.cloud ? k0() : "") + kTe() + p0("番号识别规则", f0(`${a0("90%")}${a0("60%")}<span class="skeleton ui-configuration-skeleton-input" style="width:100%;height:88px"></span>`), u0("保存配置")) + p0("视频预览", h0("生成视频预览", "为本地视频生成九宫格与时间轴预览;关闭后仍按入库规则探测时长与分辨率。") + h0("时间轴预览", "按所选间隔抽帧,仅处理本机磁盘上的视频。", "ui-configuration-skeleton-select") + h0("抽帧解码方式", "用于生成封面、九宫格和时间轴。", "ui-configuration-skeleton-select"));
+}, jTe = () => `<div>${u0("采集来源与登录状态", "secondary")}</div>` + T0() + p0("关注采集", m0("自动检查更新", "", "<span class=\"flex items-center gap-2\"><span class=\"skeleton ui-configuration-skeleton-toggle\"></span><span class=\"skeleton ui-configuration-skeleton-input\" style=\"width:96px\"></span></span>") + g0("订阅源拉取") + h0("首次采集范围", "", "ui-configuration-skeleton-select") + g0("头像刷新") + g0("favicon 刷新")) + E0() + p0("作品资料站点", f0(`<p class="text-body-2-regular text-text-secondary">${X1}</p>${y0(S0("JavDB 地址"), Z1)}${y0(S0("MISSAV 地址"), Z1)}`), u0("保存配置")), MTe = () => {
+ let e = e0("downloads"), t = t0(e?.pikpak), n = t0(e?.pikpakRoots) ? b0(S0("PikPak 根目录对应的媒体目录")) : `<div class="flex flex-col gap-1">${v0(S0("PikPak 根目录对应的媒体目录"))}${_0("先在「媒体库与入库」添加 PikPak 挂载文件夹。")}</div>`, r = t0(e?.cloud) ? p0("云下载", f0(y0("CloudDrive2 地址") + y0("CloudDrive2 API 令牌", "需要离线任务权限。") + (t0(e?.has115) ? y0(S0("115 目标目录"), "应位于自动入库的云端路径前缀内。") : "") + (t ? y0(S0("PikPak 目标目录"), "目录要已经存在。") + n : "") + y0("等待上限(小时)", a0("14em"))), u0("检查连接", "secondary") + u0("保存配置")) : "", i = t0(e?.pikpakLoggedIn);
+ return r + (t ? p0("PikPak 账号", i ? w0(["账号", a0("4em")]) : f0(y0("账号") + y0("密码") + x0("保存密码,登录过期时自动重新登录")), i ? u0("登出", "secondary") : (t0(e?.browserLogin) ? u0("用浏览器登录", "secondary") : "") + u0("登录"), {
+ aside: c0(),
mark: !0
- }) : "") + O0();
-}, M0 = {
+ }) : "") + D0();
+}, j0 = {
legacy: "当前使用系统生成的访问口令。改设自己的密码,或关闭登录要求。",
locked: "访问设置无法读取,请在本机检查配置文件。",
password: "已设置密码。新设备需要登录,登录时勾选「保持登录」可保持 30 天。"
-}, N0 = {
+}, M0 = {
quick: "临时预览用,地址随机,重启后会变。启动前要先设置访问密码。",
named: "使用你在 Cloudflare 绑定的固定域名。启动前要先设置访问密码。"
};
function NTe(e) {
- let t = e === "locked" ? "" : b0(e === "password" ? "新访问密码 *" : "设置访问密码 *", "至少 8 个字符。保存后其他设备需要重新登录。") + b0(e === "password" ? "确认新访问密码 *" : "确认访问密码 *");
- return (M0[e] ? v0(M0[e]) : "") + (e === "open" ? c0("100%", "64px") : "") + (e === "password" || e === "legacy" ? S0("关闭访问密码") : "") + (e === "password" ? b0("当前访问密码 *") : "") + t;
+ let t = e === "locked" ? "" : y0(e === "password" ? "新访问密码 *" : "设置访问密码 *", "至少 8 个字符。保存后其他设备需要重新登录。") + y0(e === "password" ? "确认新访问密码 *" : "确认访问密码 *");
+ return (j0[e] ? _0(j0[e]) : "") + (e === "open" ? s0("100%", "64px") : "") + (e === "password" || e === "legacy" ? x0("关闭访问密码") : "") + (e === "password" ? y0("当前访问密码 *") : "") + t;
}
var PTe = () => {
- let e = t0("network"), t = typeof e?.access == "string" && e.access ? e.access : "legacy", n = n0(e?.tunnelNamed), r = (n && n0(e?.tunnelNamedMode) ? v0(N0.named) + b0("公开主机名", "Cloudflare Zero Trust 里指向这台电脑的主机名。") + b0("隧道令牌", o0("16em")) : v0(N0.quick)) + (n0(e?.tunnelNote) ? c0("100%", "64px") : "");
- return (n0(e?.port) ? m0("本机访问端口", p0(s0("128px")), d0("保存配置"), { status: "保存后 Peach 会重启,并跳转到新地址。" }) : "") + m0("Peach 代理", g0("连接方式", "", "ui-configuration-skeleton-select") + (n0(e?.proxyAddress) ? p0(b0("代理地址"), !0) : ""), d0("保存配置")) + m0("访问密码", p0(NTe(t)), t === "locked" ? "" : d0("保存配置")) + m0("Cloudflare 公网入口", p0((n ? c0("10.5em", "36px") : "") + r), d0("启动公网入口", n ? "secondary" : "primary") + (n ? d0("保存配置") : ""), { aside: l0() });
+ let e = e0("network"), t = typeof e?.access == "string" && e.access ? e.access : "legacy", n = t0(e?.tunnelNamed), r = (n && t0(e?.tunnelNamedMode) ? _0(M0.named) + y0("公开主机名", "Cloudflare Zero Trust 里指向这台电脑的主机名。") + y0("隧道令牌", a0("16em")) : _0(M0.quick)) + (t0(e?.tunnelNote) ? s0("100%", "64px") : "");
+ return (t0(e?.port) ? p0("本机访问端口", f0(o0("128px")), u0("保存配置"), { status: "保存后 Peach 会重启,并跳转到新地址。" }) : "") + p0("Peach 代理", h0("连接方式", "", "ui-configuration-skeleton-select") + (t0(e?.proxyAddress) ? f0(y0("代理地址"), !0) : ""), u0("保存配置")) + p0("访问密码", f0(NTe(t)), t === "locked" ? "" : u0("保存配置")) + p0("Cloudflare 公网入口", f0((n ? s0("10.5em", "36px") : "") + r), u0("启动公网入口", n ? "secondary" : "primary") + (n ? u0("保存配置") : ""), { aside: c0() });
}, FTe = [
"版本",
"操作系统",
@@ -67901,21 +67911,21 @@ var PTe = () => {
"设置文件",
"日志目录"
], ITe = () => {
- let e = t0("maintenance"), t = [
+ let e = e0("maintenance"), t = [
"当前版本",
"安装方式",
"更新通道",
"最新版本",
"下载内容"
- ].slice(0, Math.max(4, r0(e?.releaseFacts, 5))), n = r0(e?.releaseNotes, 4), r = r0(e?.storageRows, 12), i = r0(e?.storageNotes, 3), a = i0(e?.facts, 12, (e) => B(String(e))), o = `<span class="self-start">${l0("6em")}</span>`, s = (t) => !e || n0(t), c = s(e?.reporting) ? g0("发送版本统计与错误诊断(推荐)", "上传版本、系统信息、故障类型、代码位置与发生次数。") + (n0(e?.reportingIdle) ? p0(o, !0) : "") : "", l = s(e?.sharing) ? `<div class="border-t border-separator-border">${g0("上传馆藏与口味明细", n0(e?.sharingNotice) ? o0("12em") : "")}${n0(e?.sharingIdle) ? p0(o, !0) : ""}${f0(d0("预览上传内容", "secondary"))}</div>` : "";
- return m0("检查更新", T0(t) + (n ? p0(v0(o0("50%")).repeat(n), !0) : ""), d0("检查更新"), {
- aside: l0("4em"),
- status: o0("5em")
- }) + m0("自动更新", g0("自动检查新版本") + g0("自动下载更新") + g0("检查频率", n0(e?.autoUpdateHelp) ? o0("12em") : "", "ui-configuration-skeleton-select"), d0("保存配置")) + m0("开机自启", g0("开机后启动 Peach") + g0("只启动托盘,不打开网页") + g0("在桌面创建快捷方式", n0(e?.desktopNote) ? o0("12em") : "") + (n0(e?.startupNote) ? p0(v0(o0("60%")), !0) : ""), d0("保存配置")) + m0("视频播放", g0("转码方式", "用于播放时的视频转码。", "ui-configuration-skeleton-select")) + m0("存储空间", T0(["数据目录", "所在磁盘"]) + (r ? Array.from({ length: r }, () => h0(o0("6em"), "", o0("4em"))).join("") : p0(v0("统计后显示各类数据的占用,并可清理缓存与旧备份。"), !0)) + (i ? p0(v0(o0("80%")).repeat(i), !0) : ""), d0("更改位置", "secondary") + d0(r ? "重新统计" : "统计占用")) + (c || l ? m0("数据上传", c + l) : "") + m0("运行信息", T0(a.length ? a : FTe)) + `<section aria-label="安装教程" class="w-full"><div class="flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3">${h0("安装教程", "", d0("重新打开教程", "secondary"))}</div></section>` + (s(e?.uninstall) ? m0("卸载 Peach", (n0(e?.uninstallHelp) ? p0(v0("卸载移除 Peach 程序本身,原始媒体文件保留。")) : "") + g0("完全卸载", "同时删除设置、本地数据库、观看记录、凭据和缓存") + p0(w0("数据目录"), !0), d0("卸载 Peach"), { status: o0("16em") }) : "");
+ ].slice(0, Math.max(4, n0(e?.releaseFacts, 5))), n = n0(e?.releaseNotes, 4), r = n0(e?.storageRows, 12), i = n0(e?.storageNotes, 3), a = r0(e?.facts, 12, (e) => B(String(e))), o = `<span class="self-start">${c0("6em")}</span>`, s = (t) => !e || t0(t), c = s(e?.reporting) ? h0("发送版本统计与错误诊断(推荐)", "上传版本、系统信息、故障类型、代码位置与发生次数。") + (t0(e?.reportingIdle) ? f0(o, !0) : "") : "", l = s(e?.sharing) ? `<div class="border-t border-separator-border">${h0("上传馆藏与口味明细", t0(e?.sharingNotice) ? a0("12em") : "")}${t0(e?.sharingIdle) ? f0(o, !0) : ""}${d0(u0("预览上传内容", "secondary"))}</div>` : "";
+ return p0("检查更新", w0(t) + (n ? f0(_0(a0("50%")).repeat(n), !0) : ""), u0("检查更新"), {
+ aside: c0("4em"),
+ status: a0("5em")
+ }) + p0("自动更新", h0("自动检查新版本") + h0("自动下载更新") + h0("检查频率", t0(e?.autoUpdateHelp) ? a0("12em") : "", "ui-configuration-skeleton-select"), u0("保存配置")) + p0("开机自启", h0("开机后启动 Peach") + h0("只启动托盘,不打开网页") + h0("在桌面创建快捷方式", t0(e?.desktopNote) ? a0("12em") : "") + (t0(e?.startupNote) ? f0(_0(a0("60%")), !0) : ""), u0("保存配置")) + p0("视频播放", h0("转码方式", "用于播放时的视频转码。", "ui-configuration-skeleton-select")) + p0("存储空间", w0(["数据目录", "所在磁盘"]) + (r ? Array.from({ length: r }, () => m0(a0("6em"), "", a0("4em"))).join("") : f0(_0("统计后显示各类数据的占用,并可清理缓存与旧备份。"), !0)) + (i ? f0(_0(a0("80%")).repeat(i), !0) : ""), u0("更改位置", "secondary") + u0(r ? "重新统计" : "统计占用")) + (c || l ? p0("数据上传", c + l) : "") + p0("运行信息", w0(a.length ? a : FTe)) + `<section aria-label="安装教程" class="w-full"><div class="flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3">${m0("安装教程", "", u0("重新打开教程", "secondary"))}</div></section>` + (s(e?.uninstall) ? p0("卸载 Peach", (t0(e?.uninstallHelp) ? f0(_0("卸载移除 Peach 程序本身,原始媒体文件保留。")) : "") + h0("完全卸载", "同时删除设置、本地数据库、观看记录、凭据和缓存") + f0(C0("数据目录"), !0), u0("卸载 Peach"), { status: a0("16em") }) : "");
};
function LTe(e) {
switch (e) {
- case "系统诊断": return J1();
+ case "系统诊断": return q1();
case "来源与订阅": return jTe();
case "下载渠道": return MTe();
case "网络与访问": return PTe();
@@ -67924,11 +67934,11 @@ function LTe(e) {
}
}
function RTe(e = "媒体库与入库") {
- return `<div class="peach-react"><div class="ui-configpage">${`<div class="ui-board-local-nav" data-section-nav data-section-items>${Object.values(sV).map((t) => `<button type="button" tabindex="-1" aria-selected="${t === e}">${t}</button>`).join("")}</div>`}<div class="flex min-w-0 flex-col gap-6">${LTe(e)}</div></div></div>`;
+ return `<div class="peach-react"><div class="ui-configpage">${`<div class="ui-board-local-nav" data-section-nav data-section-items>${Object.values(oV).map((t) => `<button type="button" tabindex="-1" aria-selected="${t === e}">${t}</button>`).join("")}</div>`}<div class="flex min-w-0 flex-col gap-6">${LTe(e)}</div></div></div>`;
}
//#endregion
//#region src/react/jav/discovery-sorts.ts
-var P0 = [
+var N0 = [
[
"taste",
"口味",
@@ -67936,7 +67946,7 @@ var P0 = [
],
[
"release_date",
- kk[1],
+ Ok[1],
"按发行日期排序"
],
[
@@ -67984,8 +67994,8 @@ function BTe(e) {
}
//#endregion
//#region src/jav-skeleton.ts
-var F0 = (e) => `<span data-jav-skeleton-text class="skeleton block rounded-md" style="width:${e}" aria-hidden="true"></span>`, VTe = (e) => `<span data-jav-skeleton-cover class="skeleton ${e}"></span>`, I0 = "w-full min-w-0";
-function L0() {
+var P0 = (e) => `<span data-jav-skeleton-text class="skeleton block rounded-md" style="width:${e}" aria-hidden="true"></span>`, VTe = (e) => `<span data-jav-skeleton-cover class="skeleton ${e}"></span>`, F0 = "w-full min-w-0";
+function I0() {
return [
"w-20",
"w-16",
@@ -67995,20 +68005,20 @@ function L0() {
"w-24"
].map((e) => `<span data-skeleton="tag" aria-hidden="true" class="skeleton-sheen relative block h-8 flex-none rounded-(--tag-radius) ${e}"></span>`).join("");
}
-function R0(e, t = gA()) {
- if (e === "wants") return `<div class="flex w-full flex-col gap-8" data-skeleton="jav-wants">${F0("5em")}${Array.from({ length: 3 }, () => `<div class="flex min-w-0 gap-4 rounded-2lg bg-background-secondary-default p-6">${VTe("block w-card-cover shrink-0 aspect-card-cover rounded-2lg max-sm:w-24")}<div class="flex min-w-0 flex-1 flex-col gap-3">${F0("80%")}${F0("60%")}${F0("40%")}</div></div>`).join("")}</div>`;
- let n = wA({
- ...CA({
+function L0(e, t = hA()) {
+ if (e === "wants") return `<div class="flex w-full flex-col gap-8" data-skeleton="jav-wants">${P0("5em")}${Array.from({ length: 3 }, () => `<div class="flex min-w-0 gap-4 rounded-2lg bg-background-secondary-default p-6">${VTe("block w-card-cover shrink-0 aspect-card-cover rounded-2lg max-sm:w-24")}<div class="flex min-w-0 flex-1 flex-col gap-3">${P0("80%")}${P0("60%")}${P0("40%")}</div></div>`).join("")}</div>`;
+ let n = CA({
+ ...SA({
active: !0,
home: !1,
portrait: !1
}),
size: t
});
- return `<div data-media-grid class="${I0}" data-skeleton="jav-discover">${Array.from({ length: 6 }, () => `<div data-jav-skeleton-card data-media-card data-jav-card class="flex min-w-0 flex-col gap-3">
+ return `<div data-media-grid class="${F0}" data-skeleton="jav-discover">${Array.from({ length: 6 }, () => `<div data-jav-skeleton-card data-media-card data-jav-card class="flex min-w-0 flex-col gap-3">
<span data-jav-skeleton-cover class="skeleton block w-full rounded-2lg" style="aspect-ratio:${n}"></span>
<div data-media-meta><span data-jav-skeleton-avatar class="skeleton block shrink-0"></span><div data-media-text>
- <div data-media-title>${F0("85%")}${F0("65%")}</div><div data-media-byline>${F0("55%")}</div>
+ <div data-media-title>${P0("85%")}${P0("65%")}</div><div data-media-byline>${P0("55%")}</div>
<div data-media-tags><span class="skeleton block h-5 w-20 rounded-md"></span><span class="skeleton block h-5 w-24 rounded-md"></span></div>
</div></div>
<div data-jav-skeleton-actions class="flex flex-wrap gap-2"><span data-jav-skeleton-action class="skeleton block h-9 w-20 rounded-md"></span><span data-jav-skeleton-action class="skeleton block h-9 w-12 rounded-md"></span><span data-jav-skeleton-action class="skeleton block h-9 w-26 rounded-md"></span></div>
@@ -68022,28 +68032,28 @@ function HTe(e) {
label: "查找资源",
attrs: "disabled data-skeleton-action"
})}</div>
- <div class="relative flex flex-none gap-1 overflow-x-auto max-board-narrow:gap-0">${w$.map(([t, n]) => `<span class="relative flex flex-none items-center whitespace-nowrap rounded-md px-3 py-2 text-body-regular max-board-narrow:px-2.25 max-board-narrow:text-body-2-regular ${t === e ? "bg-background-tertiary-default text-text-primary" : "text-text-secondary"}">${n}</span>`).join("")}</div></div>
+ <div class="relative flex flex-none gap-1 overflow-x-auto max-board-narrow:gap-0">${C$.map(([t, n]) => `<span class="relative flex flex-none items-center whitespace-nowrap rounded-md px-3 py-2 text-body-regular max-board-narrow:px-2.25 max-board-narrow:text-body-2-regular ${t === e ? "bg-background-tertiary-default text-text-primary" : "text-text-secondary"}">${n}</span>`).join("")}</div></div>
<form aria-label="${t}">${Uo("筛选番号、女优或标题", "", t)}</form>
- ${e === "wants" ? `<div class="rounded-2lg bg-background-secondary-default px-6 py-5"><h3 class="mb-4 text-title-2-medium text-text-primary">按番号添加</h3>${F0("100%")}</div>${R0(e)}` : `<section class="flex min-w-0 flex-col gap-4">${UTe()}${R0(e)}</section>`}</div></div>`;
+ ${e === "wants" ? `<div class="rounded-2lg bg-background-secondary-default px-6 py-5"><h3 class="mb-4 text-title-2-medium text-text-primary">按番号添加</h3>${P0("100%")}</div>${L0(e)}` : `<section class="flex min-w-0 flex-col gap-4">${UTe()}${L0(e)}</section>`}</div></div>`;
}
function UTe() {
- let e = (e, t) => `<button type="button" data-entity-tag="${e}" data-entity-press="" aria-pressed="${e === "external"}" class="flex h-8 flex-none items-center gap-1.75 rounded-lg border border-dashed border-(--glass-low) bg-transparent px-2.5 text-body-2-regular leading-5 whitespace-nowrap text-inherit">${t}</button>`, t = (e, t) => `<span data-glass-segment="" ${gA() === e ? "data-selected=\"true\"" : ""} class="flex size-8 flex-none items-center justify-center rounded-lg text-(--glass-text)/62">${Vo(t, "size-4")}</span>`;
+ let e = (e, t) => `<button type="button" data-entity-tag="${e}" data-entity-press="" aria-pressed="${e === "external"}" class="flex h-8 flex-none items-center gap-1.75 rounded-lg border border-dashed border-(--glass-low) bg-transparent px-2.5 text-body-2-regular leading-5 whitespace-nowrap text-inherit">${t}</button>`, t = (e, t) => `<span data-glass-segment="" ${hA() === e ? "data-selected=\"true\"" : ""} class="flex size-8 flex-none items-center justify-center rounded-lg text-(--glass-text)/62">${Vo(t, "size-4")}</span>`;
return `<div data-filter-glass data-glass-pane data-filter-frame data-jav-filter data-catalog-frame class="sticky top-topbar z-10 mb-5.5 flex flex-col">
<div data-filter-row="top" class="flex h-12 min-w-0 items-center overscroll-x-contain px-3 py-2 gap-1.5 overflow-visible">
- <div data-catalog-scroll><div data-catalog-views>${e("external", "库外发现")}${e("library", "馆藏探索")}<span data-entity-sep aria-hidden="true"></span></div><div data-catalog-tags>${L0()}</div></div>
+ <div data-catalog-scroll><div data-catalog-views>${e("external", "库外发现")}${e("library", "馆藏探索")}<span data-entity-sep aria-hidden="true"></span></div><div data-catalog-tags>${I0()}</div></div>
</div>
<div data-filter-row="bottom" aria-busy="true" class="flex min-h-12 min-w-0 items-center gap-3 px-3 py-2">
<span data-catalog-readout><span data-skeleton="count" class="relative inline-block h-3.5 w-37.5 rounded-md align-middle skeleton-sheen"></span></span>
${Ho()}
<span data-entity-sorts><button type="button" data-entity-batch data-filter-action data-skeleton-action data-jav-metadata-update title="更新资料" aria-label="更新资料" disabled>${Vo("refresh-cw", "size-4")}</button><span data-entity-layout class="inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg">${t("big", "maximize")}${t("small", "layout-grid")}</span>
- ${P0.map(([e, t]) => `<button type="button" data-entity-sort="${e}" data-entity-press aria-pressed="${e === "taste"}">${t}${e === "taste" ? Vo("arrow-down", "size-3.5") : ""}</button>`).join("")}
+ ${N0.map(([e, t]) => `<button type="button" data-entity-sort="${e}" data-entity-press aria-pressed="${e === "taste"}">${t}${e === "taste" ? Vo("arrow-down", "size-3.5") : ""}</button>`).join("")}
</span>
</div>
</div>`;
}
//#endregion
//#region src/management-skeletons.ts
-var z0 = "relative overflow-hidden skeleton-sheen bg-background-tertiary-default rounded-lg", B0 = (e = "60%") => `<span class="${z0} inline-block max-w-full align-middle" style="width:${e};height:1em"></span>`, V0 = "disabled data-skeleton-action", H0 = "min-w-0 rounded-2-5xl bg-background-secondary-default p-5 flex flex-col gap-4 max-sm:p-4";
+var R0 = "relative overflow-hidden skeleton-sheen bg-background-tertiary-default rounded-lg", z0 = (e = "60%") => `<span class="${R0} inline-block max-w-full align-middle" style="width:${e};height:1em"></span>`, B0 = "disabled data-skeleton-action", V0 = "min-w-0 rounded-2-5xl bg-background-secondary-default p-5 flex flex-col gap-4 max-sm:p-4";
function WTe() {
let e = [
"馆藏视频",
@@ -68052,27 +68062,27 @@ function WTe() {
"使用空间"
].map((e, t) => `
<div class="min-w-0 rounded-2xl shadow-card flex flex-col overflow-hidden pt-4 text-left ${t === 0 ? "ring-2 ring-border-focus-ring bg-background-primary-default" : "bg-background-secondary-default"}">
- <span class="flex min-w-0 items-center gap-2 px-4 text-body-regular text-text-secondary max-sm:gap-1.5 max-sm:px-3"><i class="${z0} size-7 max-sm:size-6"></i>${e}</span>
- <b class="px-4 pt-3 pb-4 text-title-1-medium max-sm:px-3 max-sm:pb-3 max-sm:text-title-3-medium">${B0("4em")}</b>
- <small class="mt-auto block min-h-9.5 bg-card-footer px-4 py-2.5 text-caption-1-regular max-sm:px-3 max-sm:py-2">${B0("6em")}</small>
- </div>`).join(""), t = (e) => `<section class="${H0}" data-stats-chart>
- <header class="flex flex-wrap items-end justify-between gap-x-4 gap-y-1"><span class="flex min-w-0 flex-col gap-1"><h3 class="text-title-2-medium text-text-primary">${e}</h3><b class="text-display-4-medium">${B0("4em")}</b></span><small class="text-caption-1-regular text-text-secondary">个视频</small></header>
+ <span class="flex min-w-0 items-center gap-2 px-4 text-body-regular text-text-secondary max-sm:gap-1.5 max-sm:px-3"><i class="${R0} size-7 max-sm:size-6"></i>${e}</span>
+ <b class="px-4 pt-3 pb-4 text-title-1-medium max-sm:px-3 max-sm:pb-3 max-sm:text-title-3-medium">${z0("4em")}</b>
+ <small class="mt-auto block min-h-9.5 bg-card-footer px-4 py-2.5 text-caption-1-regular max-sm:px-3 max-sm:py-2">${z0("6em")}</small>
+ </div>`).join(""), t = (e) => `<section class="${V0}" data-stats-chart>
+ <header class="flex flex-wrap items-end justify-between gap-x-4 gap-y-1"><span class="flex min-w-0 flex-col gap-1"><h3 class="text-title-2-medium text-text-primary">${e}</h3><b class="text-display-4-medium">${z0("4em")}</b></span><small class="text-caption-1-regular text-text-secondary">个视频</small></header>
<svg class="h-75 w-full max-sm:h-65 text-background-tertiary-default" viewBox="0 0 200 200" fill="none" stroke="currentColor" stroke-width="12">${[
76,
54,
32
].map((e) => `<circle cx="100" cy="100" r="${e}"/>`).join("")}</svg>
- <div class="inline-grid w-full grid-cols-3 gap-2 max-sm:grid-cols-2">${Array.from({ length: 3 }, () => `<div class="flex min-w-0 flex-col gap-1 rounded-xl bg-background-tertiary-default p-2.5"><span class="text-caption-1-regular">${B0()}</span><b class="text-title-2-medium">${B0("3em")}</b><small class="text-caption-1-regular">${B0()}</small></div>`).join("")}</div>
+ <div class="inline-grid w-full grid-cols-3 gap-2 max-sm:grid-cols-2">${Array.from({ length: 3 }, () => `<div class="flex min-w-0 flex-col gap-1 rounded-xl bg-background-tertiary-default p-2.5"><span class="text-caption-1-regular">${z0()}</span><b class="text-title-2-medium">${z0("3em")}</b><small class="text-caption-1-regular">${z0()}</small></div>`).join("")}</div>
</section>`;
return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">
- <p class="text-caption-1-regular text-text-secondary">数据库中的当前统计 · ${B0("12em")}</p>
+ <p class="text-caption-1-regular text-text-secondary">数据库中的当前统计 · ${z0("12em")}</p>
<div class="flex flex-col gap-4"><div class="inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4" data-stats-metrics>${e}</div>
<div class="flex flex-col gap-5"><div class="inline-grid w-full gap-5 md:grid-cols-2">${t("网盘与本地")}${t("媒体库")}</div>
<div class="inline-grid w-full gap-5 md:grid-cols-2 xl:grid-cols-3">${[
"时长",
"画质",
"文件类型"
- ].map((e) => `<section class="${H0}"><h3 class="text-title-2-medium">${e}</h3><div class="${z0} h-64"></div></section>`).join("")}</div>
+ ].map((e) => `<section class="${V0}"><h3 class="text-title-2-medium">${e}</h3><div class="${R0} h-64"></div></section>`).join("")}</div>
</div>
</div>
<section class="rounded-surface bg-background-secondary-default dark:bg-background-primary-default">
@@ -68081,7 +68091,7 @@ function WTe() {
"最近看过",
"标签来源"
].map((e) => `<span>${e}</span>`).join("")}</div>
- <div class="flex flex-col gap-3 px-4 pt-3.5 pb-4">${Array.from({ length: 5 }, () => `<div class="${z0} h-7"></div>`).join("")}</div>
+ <div class="flex flex-col gap-3 px-4 pt-3.5 pb-4">${Array.from({ length: 5 }, () => `<div class="${R0} h-7"></div>`).join("")}</div>
</section>
</div></div>`;
}
@@ -68093,20 +68103,20 @@ function GTe() {
"私有导出"
].map((e) => `
<div class="min-w-0 rounded-2xl shadow-card bg-background-secondary-default flex flex-col overflow-hidden pt-4 text-left">
- <span class="flex min-w-0 items-center gap-2 px-4 text-body-regular text-text-secondary max-sm:gap-1.5 max-sm:px-3"><i class="${z0} size-7 max-sm:size-6"></i>${e}</span>
- <b class="px-4 pt-3 pb-4 text-title-1-medium max-sm:px-3 max-sm:pb-3">${B0("4em")}</b>
- <small class="mt-auto block min-h-9.5 bg-card-footer px-4 py-2.5 text-caption-1-regular max-sm:px-3 max-sm:py-2">${B0("6em")}</small>
- </div>`).join(""), n = Array.from({ length: 6 }, () => `<div class="${z0} h-6"></div>`).join(""), r = (e) => `<section class="${H0}"><h3 class="text-title-2-medium text-text-primary">${e}</h3><div class="${z0} h-40"></div></section>`;
+ <span class="flex min-w-0 items-center gap-2 px-4 text-body-regular text-text-secondary max-sm:gap-1.5 max-sm:px-3"><i class="${R0} size-7 max-sm:size-6"></i>${e}</span>
+ <b class="px-4 pt-3 pb-4 text-title-1-medium max-sm:px-3 max-sm:pb-3">${z0("4em")}</b>
+ <small class="mt-auto block min-h-9.5 bg-card-footer px-4 py-2.5 text-caption-1-regular max-sm:px-3 max-sm:py-2">${z0("6em")}</small>
+ </div>`).join(""), n = Array.from({ length: 6 }, () => `<div class="${R0} h-6"></div>`).join(""), r = (e) => `<section class="${V0}"><h3 class="text-title-2-medium text-text-primary">${e}</h3><div class="${R0} h-40"></div></section>`;
return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">
<div class="flex flex-col gap-5">
<div class="flex flex-wrap items-center justify-between gap-3">${e(["浏览器记录", "Peach 内部"])}
<div class="flex flex-wrap items-center gap-2">${Ko("全部时间")}<span data-button-group data-split-button data-variant="primary">${Wo({
glyph: "compass",
label: "读取浏览器历史",
- attrs: V0
+ attrs: B0
})}${Wo({
glyph: "chevron-down",
- attrs: V0
+ attrs: B0
})}</span></div>
</div>
<div class="inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4" data-taste-metrics>${t}</div>
@@ -68124,11 +68134,11 @@ function GTe() {
4,
5
].map((t) => `${(100 + e * Math.sin(t * Math.PI / 3)).toFixed(1)},${(100 - e * Math.cos(t * Math.PI / 3)).toFixed(1)}`).join(" ")}"/>`).join("")}</svg>
- <small class="text-caption-1-regular">${B0("8em")}</small></div>
+ <small class="text-caption-1-regular">${z0("8em")}</small></div>
<div class="flex min-w-0 grow flex-col justify-around gap-3">${n}</div>
</section>
<div class="inline-grid w-full items-start gap-5 lg:grid-cols-2">${r("浏览活跃时间")}${r("每日活跃")}</div>
- <section class="${H0}"><h3 class="text-title-2-medium text-text-primary">创作者线索来源</h3><div class="${z0} h-72 max-sm:h-48"></div></section>
+ <section class="${V0}"><h3 class="text-title-2-medium text-text-primary">创作者线索来源</h3><div class="${R0} h-72 max-sm:h-48"></div></section>
<section class="min-w-0 bg-background-secondary-default rounded-2xl shadow-card flex flex-col">
<div class="px-4 pt-3">${e([
"标签",
@@ -68136,20 +68146,20 @@ function GTe() {
"常访问网站",
"浏览线索"
])}</div>
- <div class="flex flex-col gap-3 px-4 pt-3.5 pb-4">${Array.from({ length: 5 }, () => `<div class="${z0} h-7"></div>`).join("")}</div>
+ <div class="flex flex-col gap-3 px-4 pt-3.5 pb-4">${Array.from({ length: 5 }, () => `<div class="${R0} h-7"></div>`).join("")}</div>
</section>
</div>
</div></div>`;
}
function KTe() {
let e = `<div class="duplicate-row items-center gap-3 border-t border-separator-border px-5 py-4 max-compact:p-4">
- <span class="${z0} row-span-2 inline-grid aspect-16/10 w-full rounded-2lg"></span>
- <span class="text-body-regular max-duplicate-narrow:col-start-2 max-duplicate-narrow:-col-end-1">${B0("70%")}</span>
- ${Array.from({ length: 3 }, () => `<span class="font-mono text-caption-1-regular leading-5">${B0("3em")}</span>`).join("")}
- <span class="col-start-2 -col-end-1 min-w-0 pt-0.5 font-mono text-caption-1-regular leading-5 max-duplicate-narrow:col-span-full">${B0("75%")}</span>
+ <span class="${R0} row-span-2 inline-grid aspect-16/10 w-full rounded-2lg"></span>
+ <span class="text-body-regular max-duplicate-narrow:col-start-2 max-duplicate-narrow:-col-end-1">${z0("70%")}</span>
+ ${Array.from({ length: 3 }, () => `<span class="font-mono text-caption-1-regular leading-5">${z0("3em")}</span>`).join("")}
+ <span class="col-start-2 -col-end-1 min-w-0 pt-0.5 font-mono text-caption-1-regular leading-5 max-duplicate-narrow:col-span-full">${z0("75%")}</span>
</div>`, t = `<section class="mb-6 overflow-hidden rounded-surface bg-background-secondary-default dark:bg-background-primary-default" data-duplicate-group>
<div class="flex flex-wrap items-center gap-3 bg-background-tertiary-default p-5 max-compact:p-4 dark:bg-background-secondary-default">
- <b class="text-title-2-medium">${B0("5em")}</b><span class="font-mono text-caption-1-regular leading-5">${B0("8em")}</span>
+ <b class="text-title-2-medium">${z0("5em")}</b><span class="font-mono text-caption-1-regular leading-5">${z0("8em")}</span>
<span class="ml-auto flex flex-wrap gap-2 max-compact:ml-0 max-compact:w-full">${[
"留最大",
"留最长",
@@ -68158,27 +68168,27 @@ function KTe() {
variant: "secondary",
size: "small",
label: e,
- attrs: V0
+ attrs: B0
})).join("")}</span>
</div>${e.repeat(2)}</section>`;
return `<div class="peach-react"><div class="mx-auto w-full max-w-board pb-10.5">
<div data-collection-summary class="mb-5 flex items-end justify-between gap-4 rounded-surface bg-background-secondary-default px-6 py-5 max-compact:flex-col max-compact:items-start max-compact:gap-3 max-compact:p-4 dark:bg-background-primary-default">
- <div class="flex min-w-0 flex-col gap-2"><span class="text-body-regular text-text-secondary">重复内容</span><strong class="text-display-4-medium">${B0("4em")}</strong></div><p class="text-body-regular text-text-secondary">${B0("12em")}</p>
+ <div class="flex min-w-0 flex-col gap-2"><span class="text-body-regular text-text-secondary">重复内容</span><strong class="text-display-4-medium">${z0("4em")}</strong></div><p class="text-body-regular text-text-secondary">${z0("12em")}</p>
</div>
- <div data-filter-glass data-glass-pane class="mb-5.5 flex flex-wrap items-center gap-x-2.5 gap-y-2 px-4 py-2.5"><h3 class="mr-1 text-body-medium">批量保留</h3>${["全部保留最大", "全部保留最长"].map((e) => `<button ${V0} class="h-8 rounded-full border border-separator-border px-3 text-body-2-medium">${e}</button>`).join("")}</div>
+ <div data-filter-glass data-glass-pane class="mb-5.5 flex flex-wrap items-center gap-x-2.5 gap-y-2 px-4 py-2.5"><h3 class="mr-1 text-body-medium">批量保留</h3>${["全部保留最大", "全部保留最长"].map((e) => `<button ${B0} class="h-8 rounded-full border border-separator-border px-3 text-body-2-medium">${e}</button>`).join("")}</div>
${t.repeat(2)}
</div></div>`;
}
function qTe() {
let e = `<li class="min-w-0 bg-background-secondary-default rounded-2xl shadow-card border border-separator-border flex flex-col gap-3 p-3">
- <div class="flex min-w-0 gap-4"><span class="${z0} inline-grid w-card-cover shrink-0 aspect-card-cover rounded-2lg"></span>
- <div class="flex min-w-0 flex-1 flex-col gap-1.5"><h3 class="text-headline-medium">${B0("80%")}</h3><p class="text-body-2-regular">${B0("60%")}</p></div>
+ <div class="flex min-w-0 gap-4"><span class="${R0} inline-grid w-card-cover shrink-0 aspect-card-cover rounded-2lg"></span>
+ <div class="flex min-w-0 flex-1 flex-col gap-1.5"><h3 class="text-headline-medium">${z0("80%")}</h3><p class="text-body-2-regular">${z0("60%")}</p></div>
</div>
<footer class="flex justify-end">${Wo({
variant: "secondary",
size: "small",
label: "查看版本",
- attrs: V0
+ attrs: B0
})}</footer>
</li>`;
return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">
@@ -68188,24 +68198,24 @@ function qTe() {
}
//#endregion
//#region src/board-skeleton.ts
-var U0 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, JTe = () => `${U0("80%")}${U0("48%")}`, W0 = (e, t) => e.repeat(t), G0 = "disabled data-skeleton-action", K0 = (e) => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, q0 = (e, t, n = !1) => `<span class="skeleton" style="width:${e}px;height:${t}px;flex:none${n ? ";border-radius:50%" : ""}"></span>`, YTe = "min-w-0 bg-background-secondary-default rounded-2xl shadow-card flex flex-col gap-3 px-6 py-5 max-sm:gap-2 max-sm:p-4", J0 = () => `<div class="inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6">${[
+var H0 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, JTe = () => `${H0("80%")}${H0("48%")}`, U0 = (e, t) => e.repeat(t), W0 = "disabled data-skeleton-action", G0 = (e) => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, K0 = (e, t, n = !1) => `<span class="skeleton" style="width:${e}px;height:${t}px;flex:none${n ? ";border-radius:50%" : ""}"></span>`, YTe = "min-w-0 bg-background-secondary-default rounded-2xl shadow-card flex flex-col gap-3 px-6 py-5 max-sm:gap-2 max-sm:p-4", q0 = () => `<div class="inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6">${[
"关注创作者",
"启用来源",
"检查失败",
"未看更新",
"JAV 订阅",
"未看新作"
-].map((e) => `<div class="${YTe}"><span class="text-body-medium text-text-secondary">${e}</span><b class="text-title-1-medium tabular-nums text-text-primary">${K0("3em")}</b></div>`).join("")}</div>`, Y0 = [
+].map((e) => `<div class="${YTe}"><span class="text-body-medium text-text-secondary">${e}</span><b class="text-title-1-medium tabular-nums text-text-primary">${G0("3em")}</b></div>`).join("")}</div>`, J0 = [
["list", "关注列表"],
["add", "添加关注"],
["feeds", "JAV 订阅源"]
-], XTe = (e = "") => Y0.some(([t]) => t === e) ? e : "list", X0 = (e) => `<div data-section-nav data-section-items class="flex max-w-full flex-nowrap overflow-x-auto">${Y0.map(([t, n]) => `<span class="whitespace-nowrap" aria-selected="${t === e}">${n}</span>`).join("")}</div>`, Z0 = (e = "") => `<span class="group inline-flex items-center select-none gap-2"><span class="flex shrink-0 items-center justify-center rounded-sm size-4 border bg-background-primary-default shadow-xs border-border-checkbox-default"></span>${e ? `<span class="text-body-medium text-text-primary">${e}</span>` : ""}</span>`, ZTe = ({ table: e, sort: t, dir: n }) => {
+], XTe = (e = "") => J0.some(([t]) => t === e) ? e : "list", Y0 = (e) => `<div data-section-nav data-section-items class="flex max-w-full flex-nowrap overflow-x-auto">${J0.map(([t, n]) => `<span class="whitespace-nowrap" aria-selected="${t === e}">${n}</span>`).join("")}</div>`, X0 = (e = "") => `<span class="group inline-flex items-center select-none gap-2"><span class="flex shrink-0 items-center justify-center rounded-sm size-4 border bg-background-primary-default shadow-xs border-border-checkbox-default"></span>${e ? `<span class="text-body-medium text-text-primary">${e}</span>` : ""}</span>`, ZTe = ({ table: e, sort: t, dir: n }) => {
let r = jn.find(([e]) => e === t)[1];
- return `<div data-responsive-toolbar class="ui-follow-skeleton-toolbar"><span data-follow-toolbar-heading data-toolbar-heading><h3 class="text-title-2-medium text-text-primary">关注列表</h3><span class="text-body-2-regular text-text-secondary">${K0("132px")}</span></span><div data-follow-toolbar-actions data-toolbar-actions>${Wo({
+ return `<div data-responsive-toolbar class="ui-follow-skeleton-toolbar"><span data-follow-toolbar-heading data-toolbar-heading><h3 class="text-title-2-medium text-text-primary">关注列表</h3><span class="text-body-2-regular text-text-secondary">${G0("132px")}</span></span><div data-follow-toolbar-actions data-toolbar-actions>${Wo({
glyph: "refresh-cw",
label: "检查全部",
compact: !0,
- attrs: G0
+ attrs: W0
})}<span data-follow-toolbar-controls class="contents"><span data-button-group role="group">${Wo({
variant: "ghost",
glyph: "layout-grid",
@@ -68222,36 +68232,36 @@ var U0 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, JTe
glyph: "chevron-up",
label: "全部收起",
compact: !0,
- attrs: G0
+ attrs: W0
})}</span></div></div>`;
-}, Q0 = () => `<span class="flex shrink-0 items-center gap-1">${Wo({
+}, Z0 = () => `<span class="flex shrink-0 items-center gap-1">${Wo({
variant: "secondary",
size: "small",
glyph: "refresh-cw",
- attrs: G0
+ attrs: W0
})}${Wo({
variant: "secondary",
size: "small",
glyph: "trash",
- attrs: G0
-})}</span>`, QTe = () => `<div class="flex min-h-16 flex-wrap items-center gap-3 px-2 py-3 max-sm:gap-x-2 follow-skeleton-source">${Z0()}<span class="flex min-w-0 grow basis-0 flex-col gap-0.5"><span class="text-body-medium">${K0("8em")}</span></span><span class="flex shrink-0 items-center gap-1.5">${q0(14, 14)}</span>${q0(48, 24)}<span data-follow-source-controls class="flex w-max max-w-full flex-none flex-wrap items-center gap-1.5 max-sm:w-full"><span class="shrink-0 text-body-2-regular whitespace-nowrap text-text-secondary max-sm:mr-auto max-sm:text-caption-1-regular">${K0("113px")}</span>${Q0()}</span></div>`, $0 = (e) => `<section class="min-w-0 bg-background-primary-default rounded-2xl shadow-card flex flex-col overflow-hidden p-2 follow-skeleton-author"><div class="flex flex-wrap items-center gap-3 px-2 py-2.5" data-follow-author-header data-open>${q0(32, 32, !0)}<b class="min-w-0 grow text-body-medium wrap-anywhere text-text-primary max-sm:basis-0">${K0("92px")}</b><span data-follow-author-controls class="flex w-max max-w-full flex-none flex-wrap items-center gap-2 max-sm:w-full">${Wo({
+ attrs: W0
+})}</span>`, QTe = () => `<div class="flex min-h-16 flex-wrap items-center gap-3 px-2 py-3 max-sm:gap-x-2 follow-skeleton-source">${X0()}<span class="flex min-w-0 grow basis-0 flex-col gap-0.5"><span class="text-body-medium">${G0("8em")}</span></span><span class="flex shrink-0 items-center gap-1.5">${K0(14, 14)}</span>${K0(48, 24)}<span data-follow-source-controls class="flex w-max max-w-full flex-none flex-wrap items-center gap-1.5 max-sm:w-full"><span class="shrink-0 text-body-2-regular whitespace-nowrap text-text-secondary max-sm:mr-auto max-sm:text-caption-1-regular">${G0("113px")}</span>${Z0()}</span></div>`, Q0 = (e) => `<section class="min-w-0 bg-background-primary-default rounded-2xl shadow-card flex flex-col overflow-hidden p-2 follow-skeleton-author"><div class="flex flex-wrap items-center gap-3 px-2 py-2.5" data-follow-author-header data-open>${K0(32, 32, !0)}<b class="min-w-0 grow text-body-medium wrap-anywhere text-text-primary max-sm:basis-0">${G0("92px")}</b><span data-follow-author-controls class="flex w-max max-w-full flex-none flex-wrap items-center gap-2 max-sm:w-full">${Wo({
variant: "secondary",
size: "small",
glyph: "refresh-cw",
- attrs: G0
-})}<span class="flex shrink-0 items-center gap-1 max-sm:mr-auto">${q0(14, 14)}${q0(14, 14)}</span><span class="flex flex-none items-center gap-2">${Wo({
+ attrs: W0
+})}<span class="flex shrink-0 items-center gap-1 max-sm:mr-auto">${K0(14, 14)}${K0(14, 14)}</span><span class="flex flex-none items-center gap-2">${Wo({
variant: "secondary",
size: "small",
glyph: "check-check",
label: "全选",
- attrs: G0
+ attrs: W0
})}${Wo({
variant: "secondary",
size: "small",
glyph: "chevron-up",
label: "收起",
- attrs: G0
-})}</span></span></div><div data-source-divider>${W0(QTe(), e)}</div></section>`, $Te = () => {
+ attrs: W0
+})}</span></span></div><div data-source-divider>${U0(QTe(), e)}</div></section>`, $Te = () => {
try {
return Number(JSON.parse(localStorage.getItem("peach.settings.v1") || "{}").followPageSize) || 20;
} catch {
@@ -68271,30 +68281,30 @@ var U0 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, JTe
provider: "provider",
status: "status",
checked: "checked"
-}, nEe = "<svg viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden=\"true\"><path d=\"M12.7071 15.2929C12.3166 15.6834 11.6834 15.6834 11.2929 15.2929L7.70711 11.7071C7.07714 11.0771 7.52331 10 8.41421 10H15.5858C16.4767 10 16.9229 11.0771 16.2929 11.7071L12.7071 15.2929Z\" fill=\"currentColor\"/></svg>", rEe = (e, { sort: t, dir: n }) => `<div data-board-data-table data-follow-table class="follow-skeleton-table"><div class="w-full overflow-x-auto"><table class="bui-table bui-table-sm"><thead><tr>${eEe.map(([e, r]) => r ? `<th><span class="flex items-center gap-0.5">${r}<span data-sort-indicator${tEe[t] === e ? ` data-direction="${n === "asc" ? "ascending" : "descending"}"` : ""}>${nEe}</span></span></th>` : "<th></th>").join("")}</tr></thead><tbody>${W0(`<tr>${[
- Z0(),
- `<span class="flex min-w-0 items-center gap-2">${q0(32, 32, !0)}${K0("5em")}</span>`,
- K0("10em"),
- `<span class="flex items-center gap-1.5">${q0(14, 14)}${K0("4em")}</span>`,
- q0(48, 24),
- K0("113px"),
- Q0()
-].map((e) => `<td>${e}</td>`).join("")}</tr>`, e)}</tbody></table></div></div>`, iEe = (e, t) => `<div class="flex flex-wrap items-center justify-between gap-3"><span class="mr-auto text-body-2-regular text-text-secondary">${K0("111px")}</span><div data-toolbar-actions>${Ko(`每页 ${t} ${e ? "条" : "位"}`, { size: "sm" })}${q0(204, 32)}</div></div>`, aEe = () => `<div class="min-w-0 bg-background-secondary-default rounded-2xl shadow-card flex flex-col gap-4 px-6 py-5 max-sm:px-4 ui-follow-skeleton-surface"><h3 class="text-title-2-medium text-text-primary">${K0("120px")}</h3>${[
+}, nEe = "<svg viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden=\"true\"><path d=\"M12.7071 15.2929C12.3166 15.6834 11.6834 15.6834 11.2929 15.2929L7.70711 11.7071C7.07714 11.0771 7.52331 10 8.41421 10H15.5858C16.4767 10 16.9229 11.0771 16.2929 11.7071L12.7071 15.2929Z\" fill=\"currentColor\"/></svg>", rEe = (e, { sort: t, dir: n }) => `<div data-board-data-table data-follow-table class="follow-skeleton-table"><div class="w-full overflow-x-auto"><table class="bui-table bui-table-sm"><thead><tr>${eEe.map(([e, r]) => r ? `<th><span class="flex items-center gap-0.5">${r}<span data-sort-indicator${tEe[t] === e ? ` data-direction="${n === "asc" ? "ascending" : "descending"}"` : ""}>${nEe}</span></span></th>` : "<th></th>").join("")}</tr></thead><tbody>${U0(`<tr>${[
+ X0(),
+ `<span class="flex min-w-0 items-center gap-2">${K0(32, 32, !0)}${G0("5em")}</span>`,
+ G0("10em"),
+ `<span class="flex items-center gap-1.5">${K0(14, 14)}${G0("4em")}</span>`,
+ K0(48, 24),
+ G0("113px"),
+ Z0()
+].map((e) => `<td>${e}</td>`).join("")}</tr>`, e)}</tbody></table></div></div>`, iEe = (e, t) => `<div class="flex flex-wrap items-center justify-between gap-3"><span class="mr-auto text-body-2-regular text-text-secondary">${G0("111px")}</span><div data-toolbar-actions>${Ko(`每页 ${t} ${e ? "条" : "位"}`, { size: "sm" })}${K0(204, 32)}</div></div>`, aEe = () => `<div class="min-w-0 bg-background-secondary-default rounded-2xl shadow-card flex flex-col gap-4 px-6 py-5 max-sm:px-4 ui-follow-skeleton-surface"><h3 class="text-title-2-medium text-text-primary">${G0("120px")}</h3>${[
"72%",
"56%",
"64%",
"40%"
-].map((e) => `<span class="text-body-medium">${K0(e)}</span>`).join("")}</div>`, oEe = (e) => {
+].map((e) => `<span class="text-body-medium">${G0(e)}</span>`).join("")}</div>`, oEe = (e) => {
let t = XTe(e.followTab);
- if (t !== "list") return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${J0()}<div class="flex flex-col gap-6">${X0(t)}<div class="flex flex-col gap-4">${aEe()}</div></div></div></div>`;
- let n = e.followLayout === "table", r = Fn(e.followSort, e.followDir), i = e.followPageSize || $Te(), a = n ? rEe(i, r) : `${Z0("全选本页")}<div class="flex flex-col gap-3">${$0(3)}${$0(4)}${$0(3)}</div>`;
- return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${J0()}<div class="flex flex-col gap-6">${X0(t)}<div class="flex flex-col gap-4"><div class="min-w-0 bg-background-secondary-default rounded-2xl shadow-card flex flex-col gap-4 px-6 py-5 max-sm:px-4 ui-follow-skeleton-surface" data-layout="${n ? "table" : "default"}">${ZTe({
+ if (t !== "list") return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${q0()}<div class="flex flex-col gap-6">${Y0(t)}<div class="flex flex-col gap-4">${aEe()}</div></div></div></div>`;
+ let n = e.followLayout === "table", r = Fn(e.followSort, e.followDir), i = e.followPageSize || $Te(), a = n ? rEe(i, r) : `${X0("全选本页")}<div class="flex flex-col gap-3">${Q0(3)}${Q0(4)}${Q0(3)}</div>`;
+ return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${q0()}<div class="flex flex-col gap-6">${Y0(t)}<div class="flex flex-col gap-4"><div class="min-w-0 bg-background-secondary-default rounded-2xl shadow-card flex flex-col gap-4 px-6 py-5 max-sm:px-4 ui-follow-skeleton-surface" data-layout="${n ? "table" : "default"}">${ZTe({
table: n,
...r
})}${a}${iEe(n, i)}</div></div></div></div></div>`;
};
function sEe() {
- return `<div data-stage-grid="" aria-hidden="true"><div data-stage-media="" class="ui-skeleton-detail-media skeleton"></div><aside data-stage-side=""><div data-stage-side-content="" class="ui-skeleton-lines">${U0("85%")}${U0("65%")}${W0(JTe(), 4)}</div></aside></div>`;
+ return `<div data-stage-grid="" aria-hidden="true"><div data-stage-media="" class="ui-skeleton-detail-media skeleton"></div><aside data-stage-side=""><div data-stage-side-content="" class="ui-skeleton-lines">${H0("85%")}${H0("65%")}${U0(JTe(), 4)}</div></aside></div>`;
}
function cEe(e, t = {}) {
let n = "";
@@ -68302,18 +68312,18 @@ function cEe(e, t = {}) {
else if (e === "/jav") n = HTe(new URLSearchParams(location.search).get("tab") === "wants" ? "wants" : "discover");
else if (e === "/taste") n = GTe();
else if (e === "/subscriptions") n = oEe(t);
- else if (e.startsWith("/settings/") && e.split("/")[2] in sV) n = RTe(sV[e.split("/")[2]]);
+ else if (e.startsWith("/settings/") && e.split("/")[2] in oV) n = RTe(oV[e.split("/")[2]]);
else if (e === "/tasks") n = `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${[
"正在进行",
"本次未执行",
"最近完成"
- ].map((e) => `<section class="activitysection flex min-w-0 flex-col gap-3"><h3 class="text-title-2-medium text-text-primary">${e}</h3><div class="min-w-0 rounded-2xl shadow-card border border-border-button-default bg-background-secondary-default"><div class="flex flex-col gap-1.5 px-5 pt-5 pb-4"><span class="text-title-1-medium">${K0("8em")}</span><span class="text-caption-1-regular">${K0("14em")}</span>${K0("60%")}${K0("40%")}</div><div class="border-t border-separator-border px-5 py-2.5">${K0("6em")}</div></div></section>`).join("")}</div></div>`;
+ ].map((e) => `<section class="activitysection flex min-w-0 flex-col gap-3"><h3 class="text-title-2-medium text-text-primary">${e}</h3><div class="min-w-0 rounded-2xl shadow-card border border-border-button-default bg-background-secondary-default"><div class="flex flex-col gap-1.5 px-5 pt-5 pb-4"><span class="text-title-1-medium">${G0("8em")}</span><span class="text-caption-1-regular">${G0("14em")}</span>${G0("60%")}${G0("40%")}</div><div class="border-t border-separator-border px-5 py-2.5">${G0("6em")}</div></div></section>`).join("")}</div></div>`;
else if (e === "/duplicates") n = KTe();
else if (e === "/quality-goals") n = qTe();
else if (e === "/playlists") n = `<div class="peach-react"><section class="w-full pt-1 pb-10.5"><header class="mb-4 flex items-start justify-between gap-4.5 max-board-narrow:flex-col max-board-narrow:items-stretch"><div><h2 class="mb-1 text-display-4-medium! text-text-primary">播放列表</h2><p class="text-body-2-regular text-text-secondary">保存 Mix,按自己的顺序继续播放。</p></div><div class="flex flex-wrap items-end gap-2"><div class="min-w-50 max-w-80 flex-1 basis-50 max-board-narrow:min-w-0 max-board-narrow:max-w-none"><span class="text-body-medium">新播放列表</span><span class="skeleton ui-configuration-skeleton-input mt-1.5"></span></div>${Wo({
label: "新建",
- attrs: G0
- })}</div></header><div class="mx-auto w-full max-w-board"><div class="ui-playlistcards card-grid-cover gap-4.5">${W0("<article class=\"playlistcard skeletoncard\"><i></i><b></b><em></em></article>", 6)}</div></div></section></div>`;
+ attrs: W0
+ })}</div></header><div class="mx-auto w-full max-w-board"><div class="ui-playlistcards card-grid-cover gap-4.5">${U0("<article class=\"playlistcard skeletoncard\"><i></i><b></b><em></em></article>", 6)}</div></div></section></div>`;
else return "";
return `<div class="board-page-skeleton" data-skeleton="board${e}" role="status" aria-label="正在读取页面"><div aria-hidden="true" inert>${n}</div></div>`;
}
@@ -68325,22 +68335,22 @@ function lEe(e) {
let n = e.ownerDocument.createElement("div");
return n.className = "peach-react", n.dataset.reactOverlays = "", e.append(n), n;
}
-function e2(e) {
+function $0(e) {
let t = e?.ownerDocument ?? globalThis.document, n = e?.closest("dialog[open]");
return lEe(n ?? t.body);
}
-function t2(e) {
+function e2(e) {
let t = document.getElementById("toasts"), n = e?.open ? e : document.body;
t && t.parentElement !== n && n.append(t);
}
//#endregion
//#region src/react/follow-detail/follow-detail.ts
-var n2 = (e) => ["follow-item", e], uEe = (e) => `/api/follow?item=${encodeURIComponent(e)}`, dEe = "/api/follow/save", fEe = "/api/follow/media/hide", r2 = class extends Error {
+var t2 = (e) => ["follow-item", e], uEe = (e) => `/api/follow?item=${encodeURIComponent(e)}`, dEe = "/api/follow/save", fEe = "/api/follow/media/hide", n2 = class extends Error {
constructor() {
super("这条关注内容已不存在");
}
};
-async function i2(e, t) {
+async function r2(e, t) {
let n = await V(uEe(e), t);
for (let t of n.groups || []) {
let r = Ai(t).find((t) => t.id === e);
@@ -68351,7 +68361,7 @@ async function i2(e, t) {
aliases: n.author_aliases || []
};
}
- throw new r2();
+ throw new n2();
}
function pEe(e) {
for (let [, t] of U.getQueriesData({ queryKey: ["follow-item"] })) {
@@ -68364,8 +68374,8 @@ function pEe(e) {
}
return null;
}
-async function a2(e, t) {
- let n = n2(e.id), r = ji(e.id), i = U.getQueryData(Ti) ? null : U.fetchQuery({
+async function i2(e, t) {
+ let n = t2(e.id), r = ji(e.id), i = U.getQueryData(Ti) ? null : U.fetchQuery({
queryKey: Ti,
queryFn: () => Ei(t)
}), a = r ? {
@@ -68374,7 +68384,7 @@ async function a2(e, t) {
} : U.getQueryData(n) ?? pEe(e.id);
a ? U.setQueryData(n, a) : await U.fetchQuery({
queryKey: n,
- queryFn: () => i2(e.id, t)
+ queryFn: () => r2(e.id, t)
}), await i;
}
function mEe(e, t, n, r) {
@@ -68414,7 +68424,7 @@ function vEe(e) {
return "外部文件页";
}
}
-function o2(e, t) {
+function a2(e, t) {
return _Ee[e?.resource_provider || ""] || t.provider_label || t.provider || "在线图片";
}
function yEe(e, t, n = "") {
@@ -68426,7 +68436,7 @@ function yEe(e, t, n = "") {
title: e.is_release && t.author ? `${t.author}:${i}` : i
};
}
-var bEe = (e) => String(e.name || "").trim(), s2 = (e, t) => e.tag_types?.[t] || "unknown", xEe = /* @__PURE__ */ new Set([
+var bEe = (e) => String(e.name || "").trim(), o2 = (e, t) => e.tag_types?.[t] || "unknown", xEe = /* @__PURE__ */ new Set([
"artist",
"character",
"copyright",
@@ -68434,10 +68444,10 @@ var bEe = (e) => String(e.name || "").trim(), s2 = (e, t) => e.tag_types?.[t] ||
"unknown"
]);
function SEe(e, t) {
- let n = s2(e, t);
+ let n = o2(e, t);
return `r34-${xEe.has(n) ? n : "general"}`;
}
-var c2 = [
+var s2 = [
"copyright",
"character",
"artist",
@@ -68446,12 +68456,12 @@ var c2 = [
];
function CEe(e, t) {
let n = e.detail_tags || e.tags || [], r = (t) => {
- let n = c2.indexOf(s2(e, t));
- return n < 0 ? c2.length : n;
+ let n = s2.indexOf(o2(e, t));
+ return n < 0 ? s2.length : n;
};
return [...n].sort((e, n) => r(e) - r(n) || t(e).localeCompare(t(n)));
}
-function l2(e, t) {
+function c2(e, t) {
let n = t.find((t) => t.id === e.source_id), r = t.filter((e) => n?.author_key && e.author_key === n.author_key);
return !r.length && n && r.push(n), r;
}
@@ -68459,21 +68469,21 @@ var wEe = (e, t) => ({
sources: e.sources,
aliases: e.aliases,
credentials: t
-}), u2 = (e) => e?.size ? { size: e.size } : {};
+}), l2 = (e) => e?.size ? { size: e.size } : {};
function TEe(e, t) {
let { images: n, kind: r, src: i, selected: a } = t;
return n.length ? n.map((t) => ({
src: `/follow-stream?id=${e.id}&media=${t.index}`,
thumb: t.thumb_url || e.thumb_url || `/follow-stream?id=${e.id}&media=${t.index}`,
name: t.name || e.title,
- source: o2(t, e),
- ...u2(t)
+ source: a2(t, e),
+ ...l2(t)
})) : r === "image" && i ? [{
src: i,
thumb: e.thumb_url || i,
name: e.title,
- source: o2(a, e),
- ...u2(a)
+ source: a2(a, e),
+ ...l2(a)
}] : e.thumb_url ? [{
src: e.thumb_url,
thumb: e.thumb_url,
@@ -68481,7 +68491,7 @@ function TEe(e, t) {
source: e.provider_label || e.provider || "在线图片"
}] : [];
}
-var EEe = (e) => e === "seen" ? "已标记看过" : "已更新关注状态", d2 = (e, { cards: t = !1, className: n = "", variant: r = "", count: i, fill: a, cardRatio: o, gridClass: s = "", gridSize: c = "" } = {}) => _s(e, {
+var EEe = (e) => e === "seen" ? "已标记看过" : "已更新关注状态", u2 = (e, { cards: t = !1, className: n = "", variant: r = "", count: i, fill: a, cardRatio: o, gridClass: s = "", gridSize: c = "" } = {}) => _s(e, {
variant: r || (t ? "cards" : "panel"),
className: n,
gridClass: s,
@@ -68504,34 +68514,34 @@ var EEe = (e) => e === "seen" ? "已标记看过" : "已更新关注状态", d2
<div class="reviewtabs" data-section-items>${DEe.map((e, t) => `<button type="button" disabled aria-selected="${t === 0}">${B(e)}<span class="skeleton reviewcountskeleton" aria-hidden="true"></span></button>`).join("")}</div></div>
<div class="reviewbulkbar reviewbulktoolbar" aria-hidden="true">${"<span class=\"skeleton reviewtoolskeleton\"></span>".repeat(3)}</div>
<section class="reviewsection"><div class="reviewlist">${"<div class=\"skeletoncard\" aria-hidden=\"true\"><i></i><b></b><em></em></div>".repeat(6)}</div></section></div>`, kEe = {
- "/data-cleanup": () => R$(),
- "/resource-sync": () => R$(),
+ "/data-cleanup": () => L$(),
+ "/resource-sync": () => L$(),
"/review": () => OEe(),
"/sources": () => `<div class="scraping-page"><p>高清图片可能要经代理才能下载,先检查连接。</p>
- ${d2("正在读取采集来源", {
+ ${u2("正在读取采集来源", {
cards: !0,
count: 4,
fill: !1,
className: "cleanup-skeleton"
})}</div>`
};
-function f2(e, { followLayout: t, followSort: n, followDir: r }) {
+function d2(e, { followLayout: t, followSort: n, followDir: r }) {
return cEe(e, {
followLayout: t,
...e === "/subscriptions" ? {
followSort: n,
followDir: r
} : {}
- }) || (kEe[e] ?? (() => d2("正在读取页面")))();
+ }) || (kEe[e] ?? (() => u2("正在读取页面")))();
}
-var p2 = (e) => String(e).match(/data-skeleton="([^"]*)"/)?.[1] || "";
-function m2(e, t) {
- let n = e.querySelector("[data-skeleton]")?.dataset.skeleton || "", r = p2(t);
+var f2 = (e) => String(e).match(/data-skeleton="([^"]*)"/)?.[1] || "";
+function p2(e, t) {
+ let n = e.querySelector("[data-skeleton]")?.dataset.skeleton || "", r = f2(t);
(!r || r !== n) && (e.innerHTML = t, Ts(e));
}
//#endregion
//#region src/react/components/related-section.tsx
-function h2({ children: e, wireDrag: t, busy: n, empty: r, error: i, onRetry: a, online: o = !1, ...s }) {
+function m2({ children: e, wireDrag: t, busy: n, empty: r, error: i, onRetry: a, online: o = !1, ...s }) {
let c = (0, D.useCallback)((e) => {
e && (Ts(e), t(e));
}, [t]);
@@ -68544,17 +68554,17 @@ function h2({ children: e, wireDrag: t, busy: n, empty: r, error: i, onRetry: a,
children: "接着看"
}), i ? /* @__PURE__ */ (0, O.jsx)("div", {
"data-related-state": "",
- children: /* @__PURE__ */ (0, O.jsx)(dW, {
+ children: /* @__PURE__ */ (0, O.jsx)(uW, {
message: i,
onRetry: a || (() => {})
})
}) : r && !n ? /* @__PURE__ */ (0, O.jsx)("div", {
"data-related-state": "",
- children: /* @__PURE__ */ (0, O.jsx)(Lz, {
+ children: /* @__PURE__ */ (0, O.jsx)(Iz, {
size: "compact",
- icon: Ez,
+ icon: Tz,
title: "暂无接着看的内容",
- actions: /* @__PURE__ */ (0, O.jsx)(YF, {
+ actions: /* @__PURE__ */ (0, O.jsx)(JF, {
size: "small",
href: o ? "/follow" : "/",
children: o ? "返回关注" : "浏览馆藏"
@@ -68571,7 +68581,7 @@ function h2({ children: e, wireDrag: t, busy: n, empty: r, error: i, onRetry: a,
}
//#endregion
//#region src/react/components/detail-continuation.tsx
-function g2({ queue: e, children: t, editionCards: n }) {
+function h2({ queue: e, children: t, editionCards: n }) {
return /* @__PURE__ */ (0, O.jsxs)("div", {
"data-detail-continuation": "",
"data-edition-cards": n == null ? void 0 : Math.min(3, n),
@@ -68580,7 +68590,7 @@ function g2({ queue: e, children: t, editionCards: n }) {
}
//#endregion
//#region src/react/components/media-carousel.tsx
-function _2({ items: e, position: t, onSelect: n, below: r = !1, renderThumbnail: i }) {
+function g2({ items: e, position: t, onSelect: n, below: r = !1, renderThumbnail: i }) {
let a = (0, D.useRef)(null), o = e.some((e) => e.video), s = !!i;
if ((0, D.useLayoutEffect)(() => {
let e = a.current?.querySelector("[data-media-thumbnails]");
@@ -68713,7 +68723,7 @@ var jEe = (e, t, n) => [
t,
n
];
-function v2(e, t, n, r) {
+function _2(e, t, n, r) {
let i = new Set((t.group ? Ai(t.group) : [t.item]).map((e) => e.id)), a = /* @__PURE__ */ new Set(), o = new Set(t.item.tags || []), s = t.sources.find((e) => e.id === t.item.source_id)?.author_key, c = new Map(e.flatMap((e) => e.sources || []).map((e) => [e.id, e]));
return e.flatMap((e) => e.groups || []).filter((e) => {
let t = Ai(e);
@@ -68742,7 +68752,7 @@ async function MEe(e, t, n, r) {
}, t), r);
return o.push(n), n;
}, c = await s(i, 0);
- return v2(o, e, t, n).length < n && c.has_more && await s(i, (c.offset || 0) + 100), i && v2(o, e, t, n).length < n && await s("", 0), {
+ return _2(o, e, t, n).length < n && c.has_more && await s(i, (c.offset || 0) + 100), i && _2(o, e, t, n).length < n && await s("", 0), {
pages: o,
pageParams: o.map((e) => e.offset || 0)
};
@@ -68750,26 +68760,32 @@ async function MEe(e, t, n, r) {
//#endregion
//#region src/react/follow-detail/follow-tags.tsx
function NEe({ item: e, label: t, actions: n }) {
- let [r, i] = (0, D.useState)(!1), [a, o] = (0, D.useState)(""), [s, c] = (0, D.useState)(""), l = jH(), u = CEe(e, t), d = e.custom_tags || [], f = [.../* @__PURE__ */ new Set([
+ let [r, i] = (0, D.useState)(!1), [a, o] = (0, D.useState)(""), [s, c] = (0, D.useState)(""), l = AH(), u = CEe(e, t), d = e.custom_tags || [], f = [.../* @__PURE__ */ new Set([
...u,
...d,
...e.blocked_tags || []
- ])], p = f.includes(s) ? s : f[0] || "", m = (t) => {
- Mi(t.item), U.setQueriesData({ queryKey: ["follow-item"] }, (n) => n && {
- ...n,
- ...n.item.id === e.id ? {
- item: t.item,
- group: t.group
- } : {}
+ ])], p = f.includes(s) ? s : f[0] || "", m = () => U.invalidateQueries({ predicate: (e) => [
+ "follow-feed",
+ "follow",
+ "tag-management"
+ ].includes(String(e.queryKey[0])) }), h = (e) => {
+ Mi(e.item), U.setQueriesData({ queryKey: ["follow-item"] }, (t) => {
+ if (!t) return t;
+ let n = Ai(e.group).find((e) => e.id === t.item.id);
+ return n ? {
+ ...t,
+ item: n,
+ group: e.group
+ } : t;
});
- }, h = (r, i) => {
+ }, g = (r, i) => {
l.run(`${r}:${i}`, async (t) => {
let n = await H("/api/follow/tag", {
id: e.id,
operation: r,
tag: i
}, "POST", t);
- return m(n), await U.invalidateQueries({ predicate: (e) => e.queryKey[0] !== "follow-item" }), n.item;
+ return h(n), await m(), n.item;
}, () => {
o(""), n.toast(r === "add" ? `已添加标签「${t(i)}」` : `已移除标签「${t(i)}」`, { undo: async () => {
let t = await H("/api/follow/tag", {
@@ -68777,19 +68793,19 @@ function NEe({ item: e, label: t, actions: n }) {
operation: r === "add" ? "remove" : "add",
tag: i
});
- m(t), await U.invalidateQueries();
+ h(t), await m();
} });
});
- }, g = (e) => {
+ }, _ = (e) => {
l.run(`block:${e}`, async (t) => {
let { items: n } = await V("/api/tag-management?scope=online", t), r = n.find((t) => t.k === e);
if (!r) throw Error("标签已变化,请关闭详情后重试");
let i = {
scope: "online",
operation: r.blocked ? "unblock" : "block",
- ids: [t$(r)]
+ ids: [e$(r)]
};
- return i$(i, await r$(i, t), t);
+ return r$(i, await n$(i, t), t);
}, () => {});
};
return /* @__PURE__ */ (0, O.jsxs)("section", {
@@ -68808,7 +68824,7 @@ function NEe({ item: e, label: t, actions: n }) {
children: t(r)
}, r))
}),
- /* @__PURE__ */ (0, O.jsx)("div", { children: /* @__PURE__ */ (0, O.jsx)(q, {
+ /* @__PURE__ */ (0, O.jsx)("div", { children: /* @__PURE__ */ (0, O.jsx)(J, {
variant: "secondary",
size: "small",
"aria-expanded": r,
@@ -68821,11 +68837,11 @@ function NEe({ item: e, label: t, actions: n }) {
"aria-label": "添加手动标签",
"aria-busy": !!l.busy,
onSubmit: (e) => {
- e.preventDefault(), a.trim() && !l.busy && h("add", a.trim());
+ e.preventDefault(), a.trim() && !l.busy && g("add", a.trim());
},
children: [/* @__PURE__ */ (0, O.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, O.jsx)(Nz, {
+ children: /* @__PURE__ */ (0, O.jsx)(Mz, {
"aria-label": "新标签名称",
name: "tag",
autoComplete: "off",
@@ -68837,11 +68853,11 @@ function NEe({ item: e, label: t, actions: n }) {
e.key === "Enter" && !e.nativeEvent.isComposing && (e.preventDefault(), e.currentTarget.closest("form")?.requestSubmit());
}
})
- }), /* @__PURE__ */ (0, O.jsx)(q, {
+ }), /* @__PURE__ */ (0, O.jsx)(J, {
type: "submit",
variant: "secondary",
disabled: !a.trim(),
- ...Vz(!!l.busy),
+ ...Bz(!!l.busy),
children: "添加标签"
})]
}),
@@ -68849,21 +68865,21 @@ function NEe({ item: e, label: t, actions: n }) {
className: "flex min-w-0 items-center gap-2",
children: [/* @__PURE__ */ (0, O.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, O.jsx)(oY, {
+ children: /* @__PURE__ */ (0, O.jsx)(aY, {
size: "md",
"aria-label": "屏蔽内容的标签",
prefix: "标签",
selectedKey: p,
onSelectionChange: (e) => c(String(e)),
- children: f.map((e) => /* @__PURE__ */ (0, O.jsx)(pU, {
+ children: f.map((e) => /* @__PURE__ */ (0, O.jsx)(fU, {
id: e,
children: t(e)
}, e))
})
- }), /* @__PURE__ */ (0, O.jsx)(q, {
+ }), /* @__PURE__ */ (0, O.jsx)(J, {
variant: "secondary",
- ...Vz(!!l.busy),
- onClick: () => g(p),
+ ...Bz(!!l.busy),
+ onClick: () => _(p),
children: e.blocked_tags?.includes(p) ? "恢复内容" : "屏蔽内容"
})]
}) : null,
@@ -68872,17 +68888,17 @@ function NEe({ item: e, label: t, actions: n }) {
children: [/* @__PURE__ */ (0, O.jsx)("span", {
className: "min-w-0 flex-1 wrap-anywhere text-body-2-regular text-text-secondary",
children: t(e)
- }), /* @__PURE__ */ (0, O.jsx)(q, {
+ }), /* @__PURE__ */ (0, O.jsx)(J, {
size: "small",
variant: "secondary",
- ...Vz(!!l.busy),
+ ...Bz(!!l.busy),
"aria-label": `移除手动标签 ${t(e)}`,
- onClick: () => h("remove", e),
+ onClick: () => g("remove", e),
children: "移除"
})]
}, e))
] }) : null,
- l.error ? /* @__PURE__ */ (0, O.jsx)(Iz, {
+ l.error ? /* @__PURE__ */ (0, O.jsx)(Fz, {
tone: "error",
children: l.error
}) : null
@@ -68891,14 +68907,14 @@ function NEe({ item: e, label: t, actions: n }) {
}
//#endregion
//#region src/react/follow-detail/follow-detail-page.tsx
-var y2 = (e) => Number(e) > 0, PEe = ({ name: e }) => /* @__PURE__ */ (0, O.jsx)("span", {
+var v2 = (e) => Number(e) > 0, PEe = ({ name: e }) => /* @__PURE__ */ (0, O.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: R(e) }
-}), b2 = R("external-link", "ui-externalmark");
+}), y2 = R("external-link", "ui-externalmark");
function FEe(e) {
let { id: t, actions: n } = e, r = St({
- queryKey: n2(t),
- queryFn: ({ signal: e }) => i2(t, e)
+ queryKey: t2(t),
+ queryFn: ({ signal: e }) => r2(t, e)
}), i = St({
queryKey: Ti,
queryFn: ({ signal: e }) => Ei(e)
@@ -68915,9 +68931,9 @@ function FEe(e) {
children: /* @__PURE__ */ (0, O.jsxs)("div", {
"data-stage-media": "",
"data-follow-detail-media": "none",
- children: [/* @__PURE__ */ (0, O.jsx)(x2, { onClose: n.close }), /* @__PURE__ */ (0, O.jsx)("div", {
+ children: [/* @__PURE__ */ (0, O.jsx)(b2, { onClose: n.close }), /* @__PURE__ */ (0, O.jsx)("div", {
"data-follow-detail-placeholder": "",
- children: r.isError ? IEe(r.error) ? /* @__PURE__ */ (0, O.jsx)(LEe, { onBack: n.close }) : /* @__PURE__ */ (0, O.jsx)(dW, {
+ children: r.isError ? IEe(r.error) ? /* @__PURE__ */ (0, O.jsx)(LEe, { onBack: n.close }) : /* @__PURE__ */ (0, O.jsx)(uW, {
message: Ut(r.error),
onRetry: () => void r.refetch()
}) : null
@@ -68925,7 +68941,7 @@ function FEe(e) {
})
});
}
-var IEe = (e) => e instanceof r2 || e instanceof On && e.status === 404;
+var IEe = (e) => e instanceof n2 || e instanceof On && e.status === 404;
function LEe({ onBack: e }) {
return /* @__PURE__ */ (0, O.jsx)("div", {
"data-follow-detail-gone": "",
@@ -68935,7 +68951,7 @@ function LEe({ onBack: e }) {
dangerouslySetInnerHTML: { __html: ts("这条关注内容已不存在,可能已被来源删除或已清理。", { actionLabel: "回到关注" }) }
});
}
-var x2 = ({ onClose: e }) => /* @__PURE__ */ (0, O.jsx)("button", {
+var b2 = ({ onClose: e }) => /* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
"data-stage-close": "",
id: "closeStage",
@@ -68965,13 +68981,13 @@ function REe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, rel
c,
u.kind
]);
- let g = !u.embedded.length && u.collection ? hEe(u.collection) : void 0, _ = u.embeddedQueue ? /* @__PURE__ */ (0, O.jsx)(T2, {
+ let g = !u.embedded.length && u.collection ? hEe(u.collection) : void 0, _ = u.embeddedQueue ? /* @__PURE__ */ (0, O.jsx)(w2, {
item: c,
current: u.selected.index,
helpers: o,
actions: s,
onMedia: r
- }) : u.collection ? g ? /* @__PURE__ */ (0, O.jsx)(T2, {
+ }) : u.collection ? g ? /* @__PURE__ */ (0, O.jsx)(w2, {
item: g,
current: null,
helpers: o,
@@ -69005,7 +69021,7 @@ function REe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, rel
helpers: o,
actions: s
})]
- }), /* @__PURE__ */ (0, O.jsx)(g2, {
+ }), /* @__PURE__ */ (0, O.jsx)(h2, {
queue: _,
children: a > 0 ? /* @__PURE__ */ (0, O.jsx)(zEe, {
data: e,
@@ -69021,19 +69037,19 @@ function zEe({ data: e, media: t, limit: n, context: r, helpers: i, actions: a }
let o = St({
queryKey: jEe(e.item.id, t, n),
queryFn: ({ signal: r }) => MEe(e, t, n, r)
- }), [s] = (0, D.useState)(() => d2("正在读取推荐", {
+ }), [s] = (0, D.useState)(() => u2("正在读取推荐", {
cards: !0,
className: "related-skeleton"
})), c = (0, D.useMemo)(() => ({
openDetail: a.openItem,
openAuthor: a.openAuthor,
canFlip: () => !1
- }), [a]), l = v2(o.data?.pages || [], e, t, n), u = o.data?.pages.at(-1)?.sources || e.sources, d = {
+ }), [a]), l = _2(o.data?.pages || [], e, t, n), u = o.data?.pages.at(-1)?.sources || e.sources, d = {
...r,
sources: u,
aliases: o.data?.pages.at(-1)?.author_aliases || r.aliases
};
- return /* @__PURE__ */ (0, O.jsx)(h2, {
+ return /* @__PURE__ */ (0, O.jsx)(m2, {
online: !0,
"data-follow-related": "",
wireDrag: i.wireDrag,
@@ -69043,11 +69059,11 @@ function zEe({ data: e, media: t, limit: n, context: r, helpers: i, actions: a }
onRetry: () => {
o.refetch();
},
- children: o.data ? l.map((e) => /* @__PURE__ */ (0, O.jsx)(UZ, {
+ children: o.data ? l.map((e) => /* @__PURE__ */ (0, O.jsx)(HZ, {
variant: "next",
group: e,
media: t,
- authorSources: l2(e.primary, u),
+ authorSources: c2(e.primary, u),
context: d,
selected: !1,
selectMode: !1,
@@ -69075,14 +69091,14 @@ function BEe({ item: e, media: t, actions: n, onMedia: r, issues: i }) {
"data-framed": d ? "" : void 0,
style: { "--follow-frame-ratio": d ? d.toFixed(4) : void 0 },
children: [
- /* @__PURE__ */ (0, O.jsx)(x2, { onClose: n.close }),
+ /* @__PURE__ */ (0, O.jsx)(b2, { onClose: n.close }),
h ? null : g ? /* @__PURE__ */ (0, O.jsx)("img", {
"data-follow-detail-poster": "",
"data-zoomable": p.length ? "" : void 0,
src: v,
alt: e.title,
referrerPolicy: "no-referrer",
- onClick: p.length ? () => void MZ(Math.max(0, l), p) : void 0,
+ onClick: p.length ? () => void jZ(Math.max(0, l), p) : void 0,
onError: () => {
_ && v !== _ ? (y(_), i.thumbFallback()) : i.failed();
}
@@ -69090,10 +69106,10 @@ function BEe({ item: e, media: t, actions: n, onMedia: r, issues: i }) {
"data-follow-detail-placeholder": "",
children: [/* @__PURE__ */ (0, O.jsx)("span", {
className: "contents",
- dangerouslySetInnerHTML: { __html: kU(e.resource_provider || e.provider) }
+ dangerouslySetInnerHTML: { __html: OU(e.resource_provider || e.provider) }
}), /* @__PURE__ */ (0, O.jsx)("span", { children: "没有可用预览" })]
}),
- u ? /* @__PURE__ */ (0, O.jsx)(_2, {
+ u ? /* @__PURE__ */ (0, O.jsx)(g2, {
items: c,
position: l,
onSelect: r,
@@ -69110,11 +69126,11 @@ function BEe({ item: e, media: t, actions: n, onMedia: r, issues: i }) {
]
});
}
-var S2 = ({ kind: e }) => /* @__PURE__ */ (0, O.jsx)("span", {
+var x2 = ({ kind: e }) => /* @__PURE__ */ (0, O.jsx)("span", {
"data-follow-nothumb": "",
dangerouslySetInnerHTML: { __html: R(e === "image" ? "image-off" : "play") }
});
-function C2({ src: e }) {
+function S2({ src: e }) {
let [t, n] = (0, D.useState)(!1);
return t ? null : /* @__PURE__ */ (0, O.jsx)("img", {
src: e,
@@ -69124,27 +69140,27 @@ function C2({ src: e }) {
onError: () => n(!0)
});
}
-function w2(e) {
+function C2(e) {
return (0, D.useCallback)((t) => {
t && e.wireDrag(t);
}, [e]);
}
function VEe({ group: e, itemId: t, helpers: n, actions: r }) {
- let i = zi(e), a = w2(n);
- return /* @__PURE__ */ (0, O.jsx)(GG, {
+ let i = zi(e), a = C2(n);
+ return /* @__PURE__ */ (0, O.jsx)(WG, {
kind: "collection",
"data-follow-queue": "",
title: "视频合集",
onClose: r.close,
listRef: a,
- summary: `${jU(e.primary)} · ${i.length} 个视频`,
+ summary: `${AU(e.primary)} · ${i.length} 个视频`,
children: i.map((n) => {
- let i = e.duplicates.includes(n), a = yEe(e, n, i ? n.provider_label : ""), o = i ? kU(n.provider, n.provider_label) : "";
- return /* @__PURE__ */ (0, O.jsxs)(KG, {
+ let i = e.duplicates.includes(n), a = yEe(e, n, i ? n.provider_label : ""), o = i ? OU(n.provider, n.provider_label) : "";
+ return /* @__PURE__ */ (0, O.jsxs)(GG, {
current: n.id === t,
"data-follow-queue-item": n.id,
onClick: () => r.openItem(n.id),
- pic: /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [n.thumb_url ? /* @__PURE__ */ (0, O.jsx)(C2, { src: n.thumb_url }) : /* @__PURE__ */ (0, O.jsx)(S2, { kind: "video" }), y2(n.duration) ? /* @__PURE__ */ (0, O.jsx)("i", {
+ pic: /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [n.thumb_url ? /* @__PURE__ */ (0, O.jsx)(S2, { src: n.thumb_url }) : /* @__PURE__ */ (0, O.jsx)(x2, { kind: "video" }), v2(n.duration) ? /* @__PURE__ */ (0, O.jsx)("i", {
className: "mono",
"data-mix-item-duration": "",
children: hn(n.duration)
@@ -69162,15 +69178,15 @@ function VEe({ group: e, itemId: t, helpers: n, actions: r }) {
children: a.label
}), /* @__PURE__ */ (0, O.jsx)("time", {
dateTime: n.published_at || "",
- children: BU(n)
+ children: zU(n)
})]
})]
}, n.id);
})
});
}
-function T2({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i, onMedia: a }) {
- let o = e.media_items || [], s = w2(r), c = [];
+function w2({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i, onMedia: a }) {
+ let o = e.media_items || [], s = C2(r), c = [];
o.forEach((e) => {
let t = e.resource_group || "ungrouped", n = c.find((e) => e.key === t);
n || (n = {
@@ -69180,23 +69196,23 @@ function T2({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i,
}, c.push(n)), n.items.push(e);
});
let l = (t) => e.id === n ? a(t.index) : i.openItem(e.id, t.index);
- return /* @__PURE__ */ (0, O.jsx)(GG, {
+ return /* @__PURE__ */ (0, O.jsx)(WG, {
kind: "media",
"data-follow-queue": "",
title: "多媒体",
onClose: i.close,
listRef: s,
- summary: `${jU(e)} · ${o.length} 个媒体`,
- children: c.map((n) => [n.label ? /* @__PURE__ */ (0, O.jsx)(qG, {
+ summary: `${AU(e)} · ${o.length} 个媒体`,
+ children: c.map((n) => [n.label ? /* @__PURE__ */ (0, O.jsx)(KG, {
label: n.label,
count: n.items.length
- }, `label:${n.key}`) : null, ...n.items.map((n) => /* @__PURE__ */ (0, O.jsxs)(KG, {
+ }, `label:${n.key}`) : null, ...n.items.map((n) => /* @__PURE__ */ (0, O.jsxs)(GG, {
current: n.index === t,
"data-follow-media-owner": e.id,
"data-follow-media-item": n.index,
"data-media-kind": n.media_kind || "",
onClick: () => l(n),
- pic: n.thumb_url ? /* @__PURE__ */ (0, O.jsx)(C2, { src: n.thumb_url }) : /* @__PURE__ */ (0, O.jsx)(S2, { kind: n.media_kind || "" }),
+ pic: n.thumb_url ? /* @__PURE__ */ (0, O.jsx)(S2, { src: n.thumb_url }) : /* @__PURE__ */ (0, O.jsx)(x2, { kind: n.media_kind || "" }),
children: [/* @__PURE__ */ (0, O.jsx)("b", {
"data-middle-truncate": "",
children: bEe(n)
@@ -69213,7 +69229,7 @@ function HEe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
variants: [],
duplicates: [],
has_wip: e.variant_kind === "wip"
- }, f = LU(d, e), p = FU(e, l2(e, t.sources), n), m = p.credited ? "" : e.author && un(e.author) !== un(p.author) ? e.author : "", h = RU(e, n), g = e.status === "saved", { busy: _ } = i, v = (e) => _.has(e) ? {
+ }, f = IU(d, e), p = PU(e, c2(e, t.sources), n), m = p.credited ? "" : e.author && un(e.author) !== un(p.author) ? e.author : "", h = LU(e, n), g = e.status === "saved", { busy: _ } = i, v = (e) => _.has(e) ? {
"aria-busy": !0,
"aria-disabled": !0
} : {};
@@ -69229,7 +69245,7 @@ function HEe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
"data-stage-title": "",
"data-follow-detail-name": "",
"data-reveal-line": "",
- dangerouslySetInnerHTML: { __html: IU(d, e) + B(jU(e)) }
+ dangerouslySetInnerHTML: { __html: FU(d, e) + B(AU(e)) }
}), e.url ? /* @__PURE__ */ (0, O.jsx)("a", {
"data-follow-origin": "",
href: e.url,
@@ -69237,7 +69253,7 @@ function HEe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
rel: "noreferrer noopener",
title: "打开来源页面",
"aria-label": "打开来源页面",
- dangerouslySetInnerHTML: { __html: b2 }
+ dangerouslySetInnerHTML: { __html: y2 }
}) : null]
}),
/* @__PURE__ */ (0, O.jsxs)("div", {
@@ -69245,8 +69261,8 @@ function HEe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
"data-stage-meta": "",
"data-reveal-line": "",
children: [
- /* @__PURE__ */ (0, O.jsx)("span", { children: BU(e) }),
- y2(e.duration) ? /* @__PURE__ */ (0, O.jsx)("span", { children: hn(e.duration) }) : null,
+ /* @__PURE__ */ (0, O.jsx)("span", { children: zU(e) }),
+ v2(e.duration) ? /* @__PURE__ */ (0, O.jsx)("span", { children: hn(e.duration) }) : null,
f ? /* @__PURE__ */ (0, O.jsx)("span", {
"data-follow-badges": "",
dangerouslySetInnerHTML: { __html: f }
@@ -69263,7 +69279,7 @@ function HEe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
children: "创作者"
}), /* @__PURE__ */ (0, O.jsx)("div", {
"data-id-row": "",
- children: p.entityName ? /* @__PURE__ */ (0, O.jsxs)(VZ, {
+ children: p.entityName ? /* @__PURE__ */ (0, O.jsxs)(BZ, {
name: p.entityName,
actions: s,
"data-id-cell": "creator",
@@ -69320,7 +69336,7 @@ function HEe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
rel: "noreferrer noopener",
children: [vEe(e), /* @__PURE__ */ (0, O.jsx)("span", {
className: "contents",
- dangerouslySetInnerHTML: { __html: b2 }
+ dangerouslySetInnerHTML: { __html: y2 }
})]
}, e))
}) : null,
@@ -69420,7 +69436,7 @@ function HEe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
"aria-label": `恢复显示 ${e.name || ""}`,
...v(`restore:${e.index}`),
onClick: () => i.restore(e.index),
- children: [e.thumb_url ? /* @__PURE__ */ (0, O.jsx)(C2, { src: e.thumb_url }) : /* @__PURE__ */ (0, O.jsx)(PEe, { name: "image-off" }), /* @__PURE__ */ (0, O.jsx)("i", { dangerouslySetInnerHTML: { __html: R("rotate-ccw") } })]
+ children: [e.thumb_url ? /* @__PURE__ */ (0, O.jsx)(S2, { src: e.thumb_url }) : /* @__PURE__ */ (0, O.jsx)(PEe, { name: "image-off" }), /* @__PURE__ */ (0, O.jsx)("i", { dangerouslySetInnerHTML: { __html: R("rotate-ccw") } })]
}, e.index))
})]
}) : null,
@@ -69452,7 +69468,7 @@ function UEe({ text: e }) {
"data-follow-detail-summary": "",
"data-clamped": n ? void 0 : "",
children: e
- }), i || n ? /* @__PURE__ */ (0, O.jsx)(q, {
+ }), i || n ? /* @__PURE__ */ (0, O.jsx)(J, {
variant: "ghost",
size: "small",
"data-follow-summary-toggle": "",
@@ -69462,7 +69478,7 @@ function UEe({ text: e }) {
}) : null] });
}
function WEe(e, t, n) {
- let r = e.id, i = n2(r), [a, o] = (0, D.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, D.useState)(""), l = (e, t) => o((n) => {
+ let r = e.id, i = t2(r), [a, o] = (0, D.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, D.useState)(""), l = (e, t) => o((n) => {
let r = new Set(n);
return t ? r.add(e) : r.delete(e), r;
}), u = (e) => {
@@ -69481,7 +69497,7 @@ function WEe(e, t, n) {
to: e
}),
onSuccess: (e, { to: n, was: i }) => {
- u(n), c(""), n === "ignored" && C$(), t.toast(EEe(n), { undo: i === "saved" ? void 0 : async () => {
+ u(n), c(""), n === "ignored" && S$(), t.toast(EEe(n), { undo: i === "saved" ? void 0 : async () => {
await H($n, {
item: r,
to: i
@@ -69518,9 +69534,9 @@ function WEe(e, t, n) {
queryKey: OCe(r),
queryFn: ({ signal: e }) => jCe(r, e)
}).data?.want ?? null, g = Ct({
- mutationFn: async (e) => (e ? await S$([e.id]) : await x$({ follow: r }), !e),
+ mutationFn: async (e) => (e ? await x$([e.id]) : await b$({ follow: r }), !e),
onSuccess: (e) => {
- c(""), t.toast(e ? "已加入想要" : "已取消想要"), C$();
+ c(""), t.toast(e ? "已加入想要" : "已取消想要"), S$();
},
onError: d,
onSettled: () => l("want", !1)
@@ -69560,7 +69576,7 @@ function WEe(e, t, n) {
}
//#endregion
//#region src/react/components/identity-cell.tsx
-function E2({ kind: e, person: t, onOpen: n, hidden: r, overflow: i, face: a }) {
+function T2({ kind: e, person: t, onOpen: n, hidden: r, overflow: i, face: a }) {
let o = e === "performer" || e === "creator" ? /* @__PURE__ */ (0, O.jsx)("span", {
"data-id-face": "",
dangerouslySetInnerHTML: { __html: `<span>${B(xn(t.name))}</span>` + Ia({
@@ -69606,7 +69622,7 @@ function E2({ kind: e, person: t, onOpen: n, hidden: r, overflow: i, face: a })
children: s
});
}
-function D2({ people: e, onOpen: t }) {
+function E2({ people: e, onOpen: t }) {
if (!e.length) return null;
let n = (e) => /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)("span", {
className: "contents",
@@ -69640,7 +69656,7 @@ function D2({ people: e, onOpen: t }) {
}
//#endregion
//#region src/react/components/folded-title.ts
-function O2(e) {
+function D2(e) {
let t = (0, D.useRef)(null), [n, r] = (0, D.useState)(!1), [i, a] = (0, D.useState)(!1);
return (0, D.useLayoutEffect)(() => {
let e = t.current;
@@ -69658,9 +69674,9 @@ function O2(e) {
}
//#endregion
//#region src/react/item-detail/catalog-picture.tsx
-function k2({ item: e, image: t, source: n = !1, thumbnail: r = !1 }) {
+function O2({ item: e, image: t, source: n = !1, thumbnail: r = !1 }) {
let [i, a] = (0, D.useState)(!1), [o, s] = (0, D.useState)(0);
- if (n && t > 0 && e.code) return /* @__PURE__ */ (0, O.jsx)(xQ, {
+ if (n && t > 0 && e.code) return /* @__PURE__ */ (0, O.jsx)(bQ, {
item: {
code: e.code,
has_cover: !1,
@@ -69674,9 +69690,9 @@ function k2({ item: e, image: t, source: n = !1, thumbnail: r = !1 }) {
src: c,
alt: "",
onError: () => a(!0)
- }) : i ? /* @__PURE__ */ (0, O.jsx)(Iz, {
+ }) : i ? /* @__PURE__ */ (0, O.jsx)(Fz, {
tone: "neutral",
- action: /* @__PURE__ */ (0, O.jsx)(q, {
+ action: /* @__PURE__ */ (0, O.jsx)(J, {
variant: "secondary",
onClick: () => {
a(!1), s((e) => e + 1);
@@ -69693,9 +69709,9 @@ function k2({ item: e, image: t, source: n = !1, thumbnail: r = !1 }) {
}
//#endregion
//#region src/react/jav-detail/jav-detail.ts
-var A2 = (e) => ["jav-detail", e], j2 = (e, t, n = !1) => V(`/api/jav/detail?code=${encodeURIComponent(e)}${n ? "&refresh=1" : ""}`, t), GEe = (e, t, n, r = !1) => V(`/api/jav/reviews?code=${encodeURIComponent(e)}&page=${t}${r ? "&refresh=1" : ""}`, n), M2 = (e, t) => U.ensureQueryData({
- queryKey: A2(e.code),
- queryFn: () => j2(e.code, t),
+var k2 = (e) => ["jav-detail", e], A2 = (e, t, n = !1) => V(`/api/jav/detail?code=${encodeURIComponent(e)}${n ? "&refresh=1" : ""}`, t), GEe = (e, t, n, r = !1) => V(`/api/jav/reviews?code=${encodeURIComponent(e)}&page=${t}${r ? "&refresh=1" : ""}`, n), j2 = (e, t) => U.ensureQueryData({
+ queryKey: k2(e.code),
+ queryFn: () => A2(e.code, t),
staleTime: 216e5,
revalidateIfStale: !0
});
@@ -69706,7 +69722,7 @@ function KEe(e, t) {
}
//#endregion
//#region src/react/item-detail/external-playback.tsx
-var N2 = "peach.external-player.v1", P2 = [
+var M2 = "peach.external-player.v1", N2 = [
["m3u", "M3U 播放列表"],
["vlc-ios", "VLC(iPhone / iPad)"],
["iina", "IINA(Mac)"]
@@ -69714,60 +69730,60 @@ var N2 = "peach.external-player.v1", P2 = [
function qEe(e, t, n) {
return e === "vlc-ios" ? `vlc-x-callback://x-callback-url/stream?url=${encodeURIComponent(t)}` : e === "iina" ? `iina://weblink?url=${encodeURIComponent(t)}` : n;
}
-function F2({ id: e }) {
+function P2({ id: e }) {
let [t, n] = (0, D.useState)(() => {
try {
- return P2.find(([e]) => e === localStorage.getItem(N2))?.[0] || "m3u";
+ return N2.find(([e]) => e === localStorage.getItem(M2))?.[0] || "m3u";
} catch {
return "m3u";
}
- }), [r, i] = (0, D.useState)(null), a = jH();
- return /* @__PURE__ */ (0, O.jsx)(qH, {
+ }), [r, i] = (0, D.useState)(null), a = AH();
+ return /* @__PURE__ */ (0, O.jsx)(KH, {
summary: "外部播放器 / VR",
- children: /* @__PURE__ */ (0, O.jsxs)(UH, { children: [
- /* @__PURE__ */ (0, O.jsx)(h1, {
+ children: /* @__PURE__ */ (0, O.jsxs)(HH, { children: [
+ /* @__PURE__ */ (0, O.jsx)(m1, {
id: `external-player-${e}`,
label: "此设备的外部播放器",
- options: P2,
+ options: N2,
value: t,
epoch: 0,
onPick: (e) => {
- let t = P2.find(([t]) => t === e)?.[0] || "m3u";
+ let t = N2.find(([t]) => t === e)?.[0] || "m3u";
n(t);
try {
- localStorage.setItem(N2, t);
+ localStorage.setItem(M2, t);
} catch {}
}
}),
- /* @__PURE__ */ (0, O.jsx)(q, {
+ /* @__PURE__ */ (0, O.jsx)(J, {
variant: "secondary",
- ...Vz(a.busy === "prepare"),
+ ...Bz(a.busy === "prepare"),
onClick: () => void a.run("prepare", (t) => H(`/api/external-playback?id=${e}`, {}, "POST", t), (e) => i({
url: new URL(e.url, location.origin).href,
playlist: new URL(e.playlist, location.origin).href
})),
children: "生成播放链接"
}),
- a.error ? /* @__PURE__ */ (0, O.jsx)(GH, { children: a.error }) : null,
+ a.error ? /* @__PURE__ */ (0, O.jsx)(WH, { children: a.error }) : null,
r ? /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [
/* @__PURE__ */ (0, O.jsx)("a", {
href: qEe(t, r.url, r.playlist),
rel: "noreferrer",
- children: t === "m3u" ? "下载 M3U 播放列表" : `打开 ${P2.find(([e]) => e === t)?.[1]}`
+ children: t === "m3u" ? "下载 M3U 播放列表" : `打开 ${N2.find(([e]) => e === t)?.[1]}`
}),
- /* @__PURE__ */ (0, O.jsx)(Nz, {
+ /* @__PURE__ */ (0, O.jsx)(Mz, {
label: "网络播放地址",
value: r.url,
isReadOnly: !0
}),
- /* @__PURE__ */ (0, O.jsx)(WH, { children: "链接有效期为 6 小时。VR 播放器可使用网络播放地址;另一台设备需要能访问当前 Peach 地址。" })
+ /* @__PURE__ */ (0, O.jsx)(UH, { children: "链接有效期为 6 小时。VR 播放器可使用网络播放地址;另一台设备需要能访问当前 Peach 地址。" })
] }) : null
] })
}, e);
}
//#endregion
//#region src/react/boardui/components/base/switch/switch.tsx
-var JEe = nF({
+var JEe = tF({
sm: {
track: "h-4 w-7",
trackRadius: {
@@ -69833,18 +69849,18 @@ function YEe({ state: e, size: t = "md", shape: n = "pill" }) {
let r = JEe[t];
return /* @__PURE__ */ (0, O.jsx)("span", {
"aria-hidden": !0,
- className: tF("relative shrink-0 transition-colors duration-200 ease", r.track, r.trackRadius[n], e.isSelected ? tF("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"),
+ className: eF("relative shrink-0 transition-colors duration-200 ease", r.track, r.trackRadius[n], e.isSelected ? eF("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, O.jsx)("span", {
- className: tF("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, O.jsx)("span", { className: tF("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: eF("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, O.jsx)("span", { className: eF("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 I2({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {
+function F2({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {
return /* @__PURE__ */ (0, O.jsx)(Uue, {
ref: i,
...a,
- className: (t) => tF("group inline-flex items-center gap-2 select-none", t.isDisabled ? "cursor-not-allowed" : "cursor-pointer", typeof e == "function" ? e(t) : e),
+ className: (t) => eF("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, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(YEe, {
state: e,
size: n,
@@ -69863,7 +69879,7 @@ var XEe = "/api/cover-crop", ZEe = (e, t) => H(XEe, {
});
//#endregion
//#region src/react/cover-crop/cover-crop-page.tsx
-function L2({ className: e }) {
+function I2({ className: e }) {
return /* @__PURE__ */ (0, O.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@ -69886,8 +69902,8 @@ function QEe({ code: e, coverUrl: t, box: n, onSaved: r }) {
title: "裁剪封面:框出正封那一块",
onClick: () => a(!0),
className: "flex size-7 cursor-pointer items-center justify-center rounded-lg text-foreground-icon-secondary outline-none transition-colors hover:bg-background-primary-hover hover:text-foreground-icon-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring",
- children: /* @__PURE__ */ (0, O.jsx)(L2, { className: "size-3.75" })
- }), /* @__PURE__ */ (0, O.jsx)(Pz, {
+ children: /* @__PURE__ */ (0, O.jsx)(I2, { className: "size-3.75" })
+ }), /* @__PURE__ */ (0, O.jsx)(Nz, {
isOpen: i,
onOpenChange: a,
width: "cover-crop",
@@ -69902,7 +69918,7 @@ function QEe({ code: e, coverUrl: t, box: n, onSaved: r }) {
})] });
}
function $Ee({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
- let [a, o] = (0, D.useState)(null), [s, c] = (0, D.useState)(null), [l, u] = (0, D.useState)(!0), d = aV(), f = Ct({
+ let [a, o] = (0, D.useState)(null), [s, c] = (0, D.useState)(null), [l, u] = (0, D.useState)(!0), d = iV(), f = Ct({
mutationFn: (t) => ZEe(e, t),
onSuccess: (e) => {
i(), r(e.poster_box);
@@ -69916,18 +69932,18 @@ function $Ee({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
x1: n.x1,
y1: n.y1
} : Bxe(e, Ca);
- c(rQ(t, e, null));
+ c(nQ(t, e, null));
}
let m = f.isPending;
return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [
/* @__PURE__ */ (0, O.jsxs)("div", {
className: "flex shrink-0 items-start gap-4 p-5",
children: [
- /* @__PURE__ */ (0, O.jsx)(Fz, { children: /* @__PURE__ */ (0, O.jsx)(L2, { className: "size-6" }) }),
+ /* @__PURE__ */ (0, O.jsx)(Pz, { children: /* @__PURE__ */ (0, O.jsx)(I2, { className: "size-6" }) }),
/* @__PURE__ */ (0, O.jsxs)("div", {
className: "flex min-w-0 flex-1 flex-col gap-2",
children: [
- /* @__PURE__ */ (0, O.jsx)(SI, {
+ /* @__PURE__ */ (0, O.jsx)(xI, {
slot: "title",
className: "text-title-3-semibold text-text-primary",
children: "裁剪封面"
@@ -69936,14 +69952,14 @@ function $Ee({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
className: "text-body-2-regular text-text-secondary",
children: [e, ":框出正封那一块,封面原图不动。拖动方框移动,滚轮或角上那枚方块改大小。"]
}),
- f.error ? /* @__PURE__ */ (0, O.jsx)(Iz, {
+ f.error ? /* @__PURE__ */ (0, O.jsx)(Fz, {
tone: "error",
children: An(f.error)
}) : null
]
}),
- /* @__PURE__ */ (0, O.jsx)(NF, {
- icon: pz,
+ /* @__PURE__ */ (0, O.jsx)(MF, {
+ icon: fz,
size: "small",
"aria-label": "关闭",
onClick: i
@@ -69953,24 +69969,24 @@ function $Ee({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
/* @__PURE__ */ (0, O.jsx)("div", {
ref: d,
className: "flex min-h-0 flex-1 flex-col items-center gap-4 overflow-y-auto border-t border-separator-border px-5 py-4",
- children: /* @__PURE__ */ (0, O.jsx)(cQ, {
+ children: /* @__PURE__ */ (0, O.jsx)(sQ, {
src: t,
aspect: l ? Ca : null,
box: s,
size: a,
label: `${e} 的正封取景框`,
onSize: (e) => {
- tQ(e) && p(e);
+ eQ(e) && p(e);
},
onBox: c
})
}),
/* @__PURE__ */ (0, O.jsxs)("div", {
className: "flex shrink-0 flex-wrap items-center gap-3 border-t border-separator-border p-5",
- children: [/* @__PURE__ */ (0, O.jsx)(I2, {
+ children: [/* @__PURE__ */ (0, O.jsx)(F2, {
isSelected: l,
onChange: (e) => {
- u(e), e && s && a && c(rQ(s, a, Ca));
+ u(e), e && s && a && c(nQ(s, a, Ca));
},
children: /* @__PURE__ */ (0, O.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
@@ -69978,16 +69994,16 @@ function $Ee({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
})
}), /* @__PURE__ */ (0, O.jsxs)("div", {
className: "flex flex-1 flex-wrap items-center justify-end gap-3",
- children: [/* @__PURE__ */ (0, O.jsx)(q, {
+ children: [/* @__PURE__ */ (0, O.jsx)(J, {
variant: "secondary",
- ...Vz(m),
+ ...Bz(m),
onClick: () => {
m || f.mutate(null);
},
children: "恢复默认"
- }), /* @__PURE__ */ (0, O.jsx)(q, {
+ }), /* @__PURE__ */ (0, O.jsx)(J, {
disabled: !s || !a,
- ...Vz(m),
+ ...Bz(m),
onClick: () => {
s && !m && f.mutate(s);
},
@@ -69999,21 +70015,21 @@ function $Ee({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
}
//#endregion
//#region src/react/item-detail/item-detail-page.tsx
-var R2 = ({ name: e }) => /* @__PURE__ */ (0, O.jsx)("span", {
+var L2 = ({ name: e }) => /* @__PURE__ */ (0, O.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: R(e) }
-}), z2 = ({ html: e }) => /* @__PURE__ */ (0, O.jsx)("span", {
+}), R2 = ({ html: e }) => /* @__PURE__ */ (0, O.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: e }
-}), B2 = (e) => Number(e) > 0 ? _n(Number(e)) : "大小未知";
+}), z2 = (e) => Number(e) > 0 ? _n(Number(e)) : "大小未知";
function eDe(e) {
let { queue: t, actions: n } = e, r = St({
- queryKey: t ? BM(t) : ["item-queue", "none"],
- queryFn: ({ signal: n }) => XM(t, e.helpers, n),
+ queryKey: t ? zM(t) : ["item-queue", "none"],
+ queryFn: ({ signal: n }) => YM(t, e.helpers, n),
enabled: !!t
- }), i = t && r.data || null, a = i ? $M(i, e.id) : t ? null : e.id, o = St({
- queryKey: zM(a ?? 0),
- queryFn: ({ signal: e }) => YM(a, e),
+ }), i = t && r.data || null, a = i ? QM(i, e.id) : t ? null : e.id, o = St({
+ queryKey: RM(a ?? 0),
+ queryFn: ({ signal: e }) => JM(a, e),
enabled: a != null
});
if (!o.data || t && !i) {
@@ -70024,9 +70040,9 @@ function eDe(e) {
children: /* @__PURE__ */ (0, O.jsxs)("div", {
"data-stage-media": "",
"data-item-media": "none",
- children: [/* @__PURE__ */ (0, O.jsx)(V2, { onClose: n.close }), /* @__PURE__ */ (0, O.jsx)("div", {
+ children: [/* @__PURE__ */ (0, O.jsx)(B2, { onClose: n.close }), /* @__PURE__ */ (0, O.jsx)("div", {
"data-item-placeholder": "",
- children: e ? /* @__PURE__ */ (0, O.jsx)(dW, {
+ children: e ? /* @__PURE__ */ (0, O.jsx)(uW, {
message: Ut(e),
onRetry: () => {
r.error && r.refetch(), o.error && o.refetch();
@@ -70042,7 +70058,7 @@ function eDe(e) {
queue: i
}, o.data.id);
}
-var V2 = ({ onClose: e }) => /* @__PURE__ */ (0, O.jsx)("button", {
+var B2 = ({ onClose: e }) => /* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
"data-stage-close": "",
id: "closeStage",
@@ -70056,13 +70072,13 @@ function tDe(e) {
(0, D.useLayoutEffect)(() => {
r.present(o.current, n);
}, [r]), (0, D.useEffect)(() => {
- n?.kind === "playlist" && H(HM, {
+ n?.kind === "playlist" && H(VM, {
action: "progress",
id: n.playlistId,
asset_id: t.id
}).catch(() => {});
}, []);
- let s = Ise(t, i.sourceOffline(String(t.root_id || t.location || ""))), c = eN(n, t.id);
+ let s = Ise(t, i.sourceOffline(String(t.root_id || t.location || ""))), c = $M(n, t.id);
return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsxs)("div", {
"data-stage-grid": "",
"data-with-queue": n ? "" : void 0,
@@ -70087,7 +70103,7 @@ function tDe(e) {
helpers: i,
actions: r
})]
- }), /* @__PURE__ */ (0, O.jsx)(g2, {
+ }), /* @__PURE__ */ (0, O.jsx)(h2, {
editionCards: n?.kind === "editions" ? n.items.length : void 0,
queue: n ? /* @__PURE__ */ (0, O.jsx)(iDe, {
queue: n,
@@ -70106,10 +70122,10 @@ function tDe(e) {
}
function nDe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a }) {
let [o, s] = (0, D.useState)(t ? "" : "auto"), c = (0, D.useRef)(null), [l, u] = (0, D.useState)(-2), d = (0, D.useRef)(!1), f = St({
- queryKey: A2(e.code || ""),
+ queryKey: k2(e.code || ""),
queryFn: ({ signal: t }) => {
let n = d.current;
- return d.current = !1, j2(e.code, t, n);
+ return d.current = !1, A2(e.code, t, n);
},
staleTime: 216e5,
enabled: !!e.is_jav && !!e.code && !e.sample_images?.length
@@ -70154,26 +70170,26 @@ function nDe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a
"data-item-gallery": h ? "" : void 0,
"data-item-picture": l === -2 ? void 0 : "",
children: [
- /* @__PURE__ */ (0, O.jsx)(V2, { onClose: r.close }),
+ /* @__PURE__ */ (0, O.jsx)(B2, { onClose: r.close }),
h ? /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [
/* @__PURE__ */ (0, O.jsxs)("button", {
type: "button",
"data-jav-preview-toggle": "",
"aria-pressed": l !== -2,
onClick: () => g(l === -2 ? m[0].index : -2),
- children: [/* @__PURE__ */ (0, O.jsx)(R2, { name: l === -2 ? "image" : "play" }), l === -2 ? "查看图片" : "播放正片"]
+ children: [/* @__PURE__ */ (0, O.jsx)(L2, { name: l === -2 ? "image" : "play" }), l === -2 ? "查看图片" : "播放正片"]
}),
- l === -2 ? null : /* @__PURE__ */ (0, O.jsx)(k2, {
+ l === -2 ? null : /* @__PURE__ */ (0, O.jsx)(O2, {
item: e,
image: l,
source: p.find((e) => e.index === l)?.source
}, l),
- /* @__PURE__ */ (0, O.jsx)(_2, {
+ /* @__PURE__ */ (0, O.jsx)(g2, {
items: m,
position: Math.max(0, m.findIndex((e) => e.index === l)),
onSelect: g,
below: !0,
- renderThumbnail: (t) => /* @__PURE__ */ (0, O.jsx)(k2, {
+ renderThumbnail: (t) => /* @__PURE__ */ (0, O.jsx)(O2, {
item: e,
image: t.index === -2 ? m[0].index : t.index,
source: p.find((e) => e.index === (t.index === -2 ? m[0].index : t.index))?.source,
@@ -70188,9 +70204,9 @@ function nDe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a
role: "status",
"aria-label": "正在读取样图",
className: "relative block h-12 w-20 skeleton-sheen"
- }) : /* @__PURE__ */ (0, O.jsx)(q, {
+ }) : /* @__PURE__ */ (0, O.jsx)(J, {
variant: "secondary",
- ...Vz(f.isFetching),
+ ...Bz(f.isFetching),
title: f.data?.message || Ut(f.error),
"aria-label": "立即重试样图",
onClick: () => {
@@ -70210,14 +70226,14 @@ function nDe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a
children: [
/* @__PURE__ */ (0, O.jsx)("b", { children: "ISO 原盘" }),
/* @__PURE__ */ (0, O.jsx)("span", { children: "请使用支持原盘的外部播放器打开。" }),
- /* @__PURE__ */ (0, O.jsx)(F2, { id: e.id })
+ /* @__PURE__ */ (0, O.jsx)(P2, { id: e.id })
]
}) : t === "online" ? /* @__PURE__ */ (0, O.jsxs)("div", {
id: "onlineGate",
role: "status",
"data-item-gate": "online",
children: [
- /* @__PURE__ */ (0, O.jsx)(z2, { html: y }),
+ /* @__PURE__ */ (0, O.jsx)(R2, { html: y }),
/* @__PURE__ */ (0, O.jsx)("b", { children: "在线作品" }),
/* @__PURE__ */ (0, O.jsx)("span", { children: "这条没有对应的关注条目,媒体地址无从解析。" }),
/* @__PURE__ */ (0, O.jsx)("button", {
@@ -70232,7 +70248,7 @@ function nDe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a
id: "gate",
"data-item-gate": "metered",
onClick: () => s("clicked"),
- children: [/* @__PURE__ */ (0, O.jsx)(z2, { html: y }), /* @__PURE__ */ (0, O.jsxs)("span", { children: ["点此开始拉流 · ", B2(e.size)] })]
+ children: [/* @__PURE__ */ (0, O.jsx)(R2, { html: y }), /* @__PURE__ */ (0, O.jsxs)("span", { children: ["点此开始拉流 · ", z2(e.size)] })]
}) : null
]
});
@@ -70248,7 +70264,7 @@ function rDe({ item: e, badge: t, helpers: n, actions: r }) {
role: "status",
"data-item-gate": "offline",
children: [
- /* @__PURE__ */ (0, O.jsx)(z2, { html: t }),
+ /* @__PURE__ */ (0, O.jsx)(R2, { html: t }),
/* @__PURE__ */ (0, O.jsx)("b", { children: "媒体目录无法访问" }),
/* @__PURE__ */ (0, O.jsx)("span", { children: n.offlineReason(String(e.root_id || e.location || "")) }),
/* @__PURE__ */ (0, O.jsx)("button", {
@@ -70290,7 +70306,7 @@ function iDe({ queue: e, itemId: t, helpers: n, actions: r }) {
seedId: e.seedId,
playlistId: e.playlistId
};
- return /* @__PURE__ */ (0, O.jsx)(GG, {
+ return /* @__PURE__ */ (0, O.jsx)(WG, {
kind: e.kind,
title: i.title,
summary: i.summary,
@@ -70302,8 +70318,8 @@ function iDe({ queue: e, itemId: t, helpers: n, actions: r }) {
className: `javedition ${Ase[i.edition_label] || "censored"}`,
"data-queue-edition": "",
children: i.edition_label
- }) : null, s = e.kind === "playlist" && QM(i);
- return /* @__PURE__ */ (0, O.jsxs)(KG, {
+ }) : null, s = e.kind === "playlist" && ZM(i);
+ return /* @__PURE__ */ (0, O.jsxs)(GG, {
current: i.id === t,
"data-queue-item": i.id,
row: { "data-queue-row": i.id },
@@ -70313,25 +70329,25 @@ function iDe({ queue: e, itemId: t, helpers: n, actions: r }) {
onClick: () => {
s || r.openQueueItem(d, i.id);
},
- pic: /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(z2, { html: Ja(i, n.javImage()) }), /* @__PURE__ */ (0, O.jsx)("i", {
+ pic: /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(R2, { html: Ja(i, n.javImage()) }), /* @__PURE__ */ (0, O.jsx)("i", {
className: "mono",
"data-mix-item-duration": "",
children: hn(i.duration)
})] }),
- lead: /* @__PURE__ */ (0, O.jsx)(z2, { html: Za(i) }),
+ lead: /* @__PURE__ */ (0, O.jsx)(R2, { html: Za(i) }),
after: e.kind === "playlist" ? /* @__PURE__ */ (0, O.jsxs)("span", {
"data-queue-edit": "",
children: [/* @__PURE__ */ (0, O.jsx)("i", {
"data-queue-grip": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, O.jsx)(R2, { name: "grip-vertical" })
+ children: /* @__PURE__ */ (0, O.jsx)(L2, { name: "grip-vertical" })
}), /* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
"data-queue-remove": i.id,
title: "移出播放列表",
"aria-label": "移出播放列表",
onClick: () => o.remove(i.id),
- children: /* @__PURE__ */ (0, O.jsx)(R2, { name: "x" })
+ children: /* @__PURE__ */ (0, O.jsx)(L2, { name: "x" })
})]
}) : null,
children: [/* @__PURE__ */ (0, O.jsxs)("span", {
@@ -70342,14 +70358,14 @@ function iDe({ queue: e, itemId: t, helpers: n, actions: r }) {
})]
}), /* @__PURE__ */ (0, O.jsx)("span", {
"data-truncate-end": "",
- children: s ? "已消失 · 文件已不在盘上" : e.kind === "parts" || e.kind === "editions" && i.part_label ? sN(i.part_label) : Qa(i, n.tagLabel)
+ children: s ? "已消失 · 文件已不在盘上" : e.kind === "parts" || e.kind === "editions" && i.part_label ? oN(i.part_label) : Qa(i, n.tagLabel)
})]
}, i.id);
})
});
}
function aDe(e, t) {
- let n = Ct({ mutationFn: (t) => H(HM, {
+ let n = Ct({ mutationFn: (t) => H(VM, {
action: "create",
name: t,
asset_ids: e.items.map((e) => e.id),
@@ -70363,10 +70379,10 @@ function aDe(e, t) {
});
}
function oDe(e, t, n) {
- let r = BM({
+ let r = zM({
kind: "playlist",
playlistId: e.playlistId
- }), i = (e) => (U.setQueryData(r, ZM(e)), e), a = (t) => H(HM, {
+ }), i = (e) => (U.setQueryData(r, XM(e)), e), a = (t) => H(VM, {
id: e.playlistId,
...t
}).then((e) => e.playlist), o = Ct({
@@ -70456,7 +70472,7 @@ function sDe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
children: [
e.width && e.height ? /* @__PURE__ */ (0, O.jsxs)("span", {
"data-spec-item": "",
- children: [/* @__PURE__ */ (0, O.jsx)(R2, { name: "monitor" }), /* @__PURE__ */ (0, O.jsxs)("span", { children: [
+ children: [/* @__PURE__ */ (0, O.jsx)(L2, { name: "monitor" }), /* @__PURE__ */ (0, O.jsxs)("span", { children: [
e.width,
"×",
e.height
@@ -70464,11 +70480,11 @@ function sDe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
}) : null,
/* @__PURE__ */ (0, O.jsxs)("span", {
"data-spec-item": "",
- children: [/* @__PURE__ */ (0, O.jsx)(R2, { name: "hard-drive" }), /* @__PURE__ */ (0, O.jsx)("span", { children: B2(e.size) })]
+ children: [/* @__PURE__ */ (0, O.jsx)(L2, { name: "hard-drive" }), /* @__PURE__ */ (0, O.jsx)("span", { children: z2(e.size) })]
}),
e.release_date ? /* @__PURE__ */ (0, O.jsxs)("span", {
"data-spec-item": "",
- children: [/* @__PURE__ */ (0, O.jsx)(R2, { name: "calendar" }), /* @__PURE__ */ (0, O.jsx)("span", { children: e.release_date })]
+ children: [/* @__PURE__ */ (0, O.jsx)(L2, { name: "calendar" }), /* @__PURE__ */ (0, O.jsx)("span", { children: e.release_date })]
}) : null,
e.region_label ? /* @__PURE__ */ (0, O.jsxs)("button", {
type: "button",
@@ -70476,7 +70492,7 @@ function sDe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"data-open-region": e.region || "",
title: e.region_settled ? "已判定的产地;打开同产地的作品" : "按番号或厂牌推断的产地,批量判定后不再变;打开同产地的作品",
onClick: () => i.openRegion(e.region || ""),
- children: [/* @__PURE__ */ (0, O.jsx)(R2, { name: "globe" }), /* @__PURE__ */ (0, O.jsxs)("span", { children: [e.region_label, e.region_settled ? "" : "(推断)"] })]
+ children: [/* @__PURE__ */ (0, O.jsx)(L2, { name: "globe" }), /* @__PURE__ */ (0, O.jsxs)("span", { children: [e.region_label, e.region_settled ? "" : "(推断)"] })]
}) : null
]
}),
@@ -70491,14 +70507,14 @@ function sDe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
helpers: r,
actions: i
}),
- /* @__PURE__ */ (0, O.jsx)(lK, {
- assetIds: cK([e], r.javImage()),
+ /* @__PURE__ */ (0, O.jsx)(cK, {
+ assetIds: sK([e], r.javImage()),
onComplete: () => {
- U.invalidateQueries({ queryKey: zM(e.id) });
+ U.invalidateQueries({ queryKey: RM(e.id) });
}
}),
/* @__PURE__ */ (0, O.jsx)(mDe, { item: e }),
- e.medium === "video" && e.location !== "online" ? /* @__PURE__ */ (0, O.jsx)(F2, { id: e.id }, e.id) : null,
+ e.medium === "video" && e.location !== "online" ? /* @__PURE__ */ (0, O.jsx)(P2, { id: e.id }, e.id) : null,
/* @__PURE__ */ (0, O.jsxs)("div", {
"data-stage-actions": "",
"data-item-feedback": "",
@@ -70512,7 +70528,7 @@ function sDe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": !!e.liked,
...o("like"),
onClick: () => n.preference({ liked: !e.liked }),
- children: /* @__PURE__ */ (0, O.jsx)(R2, { name: "thumbs-up" })
+ children: /* @__PURE__ */ (0, O.jsx)(L2, { name: "thumbs-up" })
}),
/* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
@@ -70524,7 +70540,7 @@ function sDe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-controls": "preferencePanel",
"data-has-reason": String(!!e.like_reason),
onClick: () => c((e) => !e),
- children: /* @__PURE__ */ (0, O.jsx)(R2, { name: "notebook-pen" })
+ children: /* @__PURE__ */ (0, O.jsx)(L2, { name: "notebook-pen" })
}),
/* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
@@ -70535,7 +70551,7 @@ function sDe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": e.feedback === "dislike",
...o("dislike"),
onClick: () => n.feedback("dislike"),
- children: /* @__PURE__ */ (0, O.jsx)(R2, { name: "thumbs-down" })
+ children: /* @__PURE__ */ (0, O.jsx)(L2, { name: "thumbs-down" })
}),
/* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
@@ -70546,7 +70562,7 @@ function sDe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": e.feedback === "seen",
...o("seen"),
onClick: () => n.feedback("seen"),
- children: /* @__PURE__ */ (0, O.jsx)(R2, { name: "eye" })
+ children: /* @__PURE__ */ (0, O.jsx)(L2, { name: "eye" })
}),
/* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
@@ -70557,7 +70573,7 @@ function sDe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": !!e.watch_later,
...o("later"),
onClick: n.later,
- children: /* @__PURE__ */ (0, O.jsx)(R2, { name: e.watch_later ? "check" : "bookmark-plus" })
+ children: /* @__PURE__ */ (0, O.jsx)(L2, { name: e.watch_later ? "check" : "bookmark-plus" })
}),
/* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
@@ -70566,7 +70582,7 @@ function sDe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-label": "加入播放列表",
title: "加入播放列表",
onClick: () => i.addToPlaylist(e),
- children: /* @__PURE__ */ (0, O.jsx)(R2, { name: "playlist" })
+ children: /* @__PURE__ */ (0, O.jsx)(L2, { name: "playlist" })
}),
/* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
@@ -70577,7 +70593,7 @@ function sDe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": !!e.better_version,
...o("quality"),
onClick: n.quality,
- children: /* @__PURE__ */ (0, O.jsx)(R2, { name: "sparkles" })
+ children: /* @__PURE__ */ (0, O.jsx)(L2, { name: "sparkles" })
}),
/* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
@@ -70588,7 +70604,7 @@ function sDe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": e.disposal === "trash",
...o("dispose"),
onClick: () => n.feedback("dispose"),
- children: /* @__PURE__ */ (0, O.jsx)(R2, { name: "trash" })
+ children: /* @__PURE__ */ (0, O.jsx)(L2, { name: "trash" })
})
]
}),
@@ -70603,7 +70619,7 @@ function sDe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
...o("o"),
onClick: () => n.feedback("o"),
children: [
- /* @__PURE__ */ (0, O.jsx)(R2, { name: "sperm" }),
+ /* @__PURE__ */ (0, O.jsx)(L2, { name: "sperm" }),
/* @__PURE__ */ (0, O.jsx)("span", { children: "记一次高潮" }),
/* @__PURE__ */ (0, O.jsx)("b", {
className: "mono",
@@ -70617,7 +70633,7 @@ function sDe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
});
}
function cDe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
- let { text: a, expanded: o, foldable: s, toggle: c } = O2(String(e.title || e.name || "")), l = n.badgeHtml(e.location || "", e.cost || "", "srcbig") + n.titleHtml(e) + Nse(e, t);
+ let { text: a, expanded: o, foldable: s, toggle: c } = D2(String(e.title || e.name || "")), l = n.badgeHtml(e.location || "", e.cost || "", "srcbig") + n.titleHtml(e) + Nse(e, t);
return /* @__PURE__ */ (0, O.jsx)("div", {
"data-item-title": "",
children: /* @__PURE__ */ (0, O.jsxs)("div", {
@@ -70644,7 +70660,7 @@ function cDe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
"aria-label": o ? "收起标题" : "展开标题",
title: o ? "收起标题" : "展开完整标题",
onClick: c,
- children: /* @__PURE__ */ (0, O.jsx)(BH, {})
+ children: /* @__PURE__ */ (0, O.jsx)(zH, {})
}),
e.has_cover && (e.cover_key || e.code) ? /* @__PURE__ */ (0, O.jsx)("span", {
"data-cover-crop-host": "",
@@ -70654,9 +70670,9 @@ function cDe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
box: e.poster_box || null,
onSaved: (t) => {
U.invalidateQueries({
- queryKey: zM(e.id),
+ queryKey: RM(e.id),
exact: !0
- }), PM((t) => (t.cover_key || t.code) === (e.cover_key || e.code), { poster_box: t });
+ }), NM((t) => (t.cover_key || t.code) === (e.cover_key || e.code), { poster_box: t });
}
})
}) : null,
@@ -70700,18 +70716,18 @@ function lDe({ id: e, actions: t, onStatus: n }) {
"aria-disabled": !0
} : {},
onClick: () => void o(),
- children: /* @__PURE__ */ (0, O.jsx)(R2, { name: "folder-sync" })
+ children: /* @__PURE__ */ (0, O.jsx)(L2, { name: "folder-sync" })
})] });
}
function uDe({ item: e, write: t }) {
- let n = IM(e.rating);
+ let n = FM(e.rating);
return /* @__PURE__ */ (0, O.jsxs)("div", {
id: "detailRating",
role: "group",
"data-item-rating": "",
"aria-label": "评分",
- "data-value": FM(e.rating),
- children: [/* @__PURE__ */ (0, O.jsx)(mY, {
+ "data-value": PM(e.rating),
+ children: [/* @__PURE__ */ (0, O.jsx)(pY, {
value: n,
onRate: (e) => t.rate(e),
busyStar: [
@@ -70725,14 +70741,14 @@ function uDe({ item: e, write: t }) {
}), /* @__PURE__ */ (0, O.jsx)("span", {
"data-rating-value": "",
"aria-live": "polite",
- children: LM(e.rating)
+ children: IM(e.rating)
})]
});
}
function dDe({ item: e, actions: t }) {
let n = (0, D.useMemo)(() => Ese(e), [e]), [r, i] = (0, D.useState)(!1), a = Math.max(0, n.cast.length - 8), o = (e, n, i) => {
let a = e === "performer" && i >= 8 && !r;
- return /* @__PURE__ */ (0, O.jsx)(E2, {
+ return /* @__PURE__ */ (0, O.jsx)(T2, {
kind: e,
person: n,
onOpen: t.openEntity,
@@ -70764,19 +70780,19 @@ function dDe({ item: e, actions: t }) {
onClick: t.openUnowned,
children: [/* @__PURE__ */ (0, O.jsx)("span", {
"data-id-face": "",
- children: /* @__PURE__ */ (0, O.jsx)(R2, { name: "user-round" })
+ children: /* @__PURE__ */ (0, O.jsx)(L2, { name: "user-round" })
}), /* @__PURE__ */ (0, O.jsx)("span", {
"data-id-name": "",
children: "未归属"
})]
})
})]
- }, "unowned") : s(Fa(e), "performer", n.cast, a && !r ? /* @__PURE__ */ (0, O.jsxs)(q, {
+ }, "unowned") : s(Fa(e), "performer", n.cast, a && !r ? /* @__PURE__ */ (0, O.jsxs)(J, {
variant: "secondary",
size: "small",
id: "castMore",
"data-cast-more": "",
- trailingIcon: uz,
+ trailingIcon: lz,
"aria-expanded": !1,
onClick: () => i(!0),
children: [
@@ -70795,7 +70811,7 @@ function dDe({ item: e, actions: t }) {
children: [c.length ? /* @__PURE__ */ (0, O.jsx)("div", {
"data-identity-primary": "",
children: c
- }) : null, /* @__PURE__ */ (0, O.jsx)(D2, {
+ }) : null, /* @__PURE__ */ (0, O.jsx)(E2, {
people: n.series,
onOpen: t.openEntity
})]
@@ -70822,7 +70838,7 @@ function fDe({ item: e, write: t, helpers: n, actions: r }) {
"aria-label": `删除标签 ${n.tagLabel(e.k)}`,
...t.busyAttrs(`tag:${e.k}`),
onClick: () => t.removeTag(e),
- children: /* @__PURE__ */ (0, O.jsx)(R2, { name: "x" })
+ children: /* @__PURE__ */ (0, O.jsx)(L2, { name: "x" })
})]
}, e.k)), /* @__PURE__ */ (0, O.jsx)(pDe, {
item: e,
@@ -70845,7 +70861,7 @@ function pDe({ item: e, write: t, helpers: n }) {
clearTimeout(t), document.removeEventListener("pointerdown", e, !0);
};
}, [s, h]);
- let g = s ? kse(d, n.tagCandidates(), oN()) : {
+ let g = s ? kse(d, n.tagCandidates(), aN()) : {
recent: [],
results: [],
create: ""
@@ -70868,12 +70884,12 @@ function pDe({ item: e, write: t, helpers: n }) {
} else if (n.key === "Enter") {
n.preventDefault();
let r = p >= 0 ? _[p] : null;
- r ? v(r, r.n !== -1 && nN(e, r.k)) : l.trim() && (h(), t.addTag(l.trim()));
+ r ? v(r, r.n !== -1 && tN(e, r.k)) : l.trim() && (h(), t.addTag(l.trim()));
}
}
}, b = -1, x = (t) => {
b += 1;
- let r = b, i = nN(e, t.k);
+ let r = b, i = tN(e, t.k);
return /* @__PURE__ */ (0, O.jsxs)("button", {
type: "button",
"data-pick": t.k,
@@ -70881,7 +70897,7 @@ function pDe({ item: e, write: t, helpers: n }) {
"aria-pressed": i,
onClick: () => v(t, i),
children: [
- /* @__PURE__ */ (0, O.jsx)(R2, { name: i ? "check" : "tags" }),
+ /* @__PURE__ */ (0, O.jsx)(L2, { name: i ? "check" : "tags" }),
/* @__PURE__ */ (0, O.jsx)("span", {
"data-pick-name": "",
children: n.tagLabel(t.k)
@@ -70904,7 +70920,7 @@ function pDe({ item: e, write: t, helpers: n }) {
onClick: () => {
i.current && (wo(i.current), c(!0), u(""), f(""), m(-1), requestAnimationFrame(() => a.current?.focus()));
},
- children: /* @__PURE__ */ (0, O.jsx)(R2, { name: "plus" })
+ children: /* @__PURE__ */ (0, O.jsx)(L2, { name: "plus" })
}), /* @__PURE__ */ (0, O.jsxs)("div", {
ref: i,
id: "tagPicker",
@@ -70914,7 +70930,7 @@ function pDe({ item: e, write: t, helpers: n }) {
hidden: !0,
children: [/* @__PURE__ */ (0, O.jsxs)("label", {
"data-tag-search": "",
- children: [/* @__PURE__ */ (0, O.jsx)(R2, { name: "search" }), /* @__PURE__ */ (0, O.jsx)("input", {
+ children: [/* @__PURE__ */ (0, O.jsx)(L2, { name: "search" }), /* @__PURE__ */ (0, O.jsx)("input", {
ref: a,
id: "tagPickSearch",
maxLength: 80,
@@ -70955,7 +70971,7 @@ function pDe({ item: e, write: t, helpers: n }) {
onClick: () => {
h(), t.addTag(g.create);
},
- children: [/* @__PURE__ */ (0, O.jsx)(R2, { name: "plus" }), /* @__PURE__ */ (0, O.jsxs)("span", {
+ children: [/* @__PURE__ */ (0, O.jsx)(L2, { name: "plus" }), /* @__PURE__ */ (0, O.jsxs)("span", {
"data-pick-name": "",
children: [
"新建“",
@@ -71046,10 +71062,10 @@ function hDe({ item: e, open: t, write: n }) {
}
function gDe(e) {
let { item: t, relatedLimit: n, helpers: r, grid: i } = e, a = St({
- queryKey: VM(t.id, n),
+ queryKey: BM(t.id, n),
queryFn: async ({ signal: e }) => (await V(wse(t.id, n), e)).items || []
}), [o] = (0, D.useState)(() => r.relatedSkeletonHtml());
- return /* @__PURE__ */ (0, O.jsx)(h2, {
+ return /* @__PURE__ */ (0, O.jsx)(m2, {
wireDrag: r.wireDrag,
busy: a.isPending,
empty: a.data?.length === 0,
@@ -71057,7 +71073,7 @@ function gDe(e) {
onRetry: () => {
a.refetch();
},
- children: a.data ? /* @__PURE__ */ (0, O.jsx)(xY, {
+ children: a.data ? /* @__PURE__ */ (0, O.jsx)(bY, {
mode: "items",
variant: "next",
items: a.data,
@@ -71070,11 +71086,11 @@ function gDe(e) {
revision: 0,
wireDrag: r.wireDrag,
skeletonHtml: () => ""
- }) : /* @__PURE__ */ (0, O.jsx)(z2, { html: o })
+ }) : /* @__PURE__ */ (0, O.jsx)(R2, { html: o })
});
}
function _De(e, t, n) {
- let r = e.id, i = zM(r), [a, o] = (0, D.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, D.useState)(""), [l, u] = (0, D.useState)(""), d = (e, t) => o((n) => {
+ let r = e.id, i = RM(r), [a, o] = (0, D.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, D.useState)(""), [l, u] = (0, D.useState)(""), d = (e, t) => o((n) => {
let r = new Set(n);
return t ? r.add(e) : r.delete(e), r;
}), f = () => U.getQueryData(i) || e, p = (e) => {
@@ -71090,7 +71106,7 @@ function _De(e, t, n) {
rating: t.rating,
o_count: t.o_count
};
- return NM(r, n), t;
+ return MM(r, n), t;
}, m = (e, t) => H(e, {
id: r,
...t
@@ -71105,7 +71121,7 @@ function _De(e, t, n) {
run: n
}));
}, _ = async (e, t) => {
- let n = await m(UM, t === void 0 ? { kind: e } : {
+ let n = await m(HM, t === void 0 ? { kind: e } : {
kind: e,
value: t
});
@@ -71125,21 +71141,21 @@ function _De(e, t, n) {
"aria-disabled": !0
} : {},
rate: (e) => g(`rate:${e}`, "评分", async () => {
- let n = f().rating || 0, r = RM(n, e);
- await _("rate", r), t.toast(r ? `已评 ${IM(r)} 星` : "已取消评分", { undo: async () => {
+ let n = f().rating || 0, r = LM(n, e);
+ await _("rate", r), t.toast(r ? `已评 ${FM(r)} 星` : "已取消评分", { undo: async () => {
await _("rate", n);
} });
}),
feedback: (e) => g(e, "操作", async () => {
let n = { feedback: f().feedback || null }, r = await _(e);
- t.toast(cN(e, r), { undo: async () => {
+ t.toast(sN(e, r), { undo: async () => {
e === "o" ? await _("o-undo") : e === "dispose" ? await _("dispose") : (r.feedback && await _(r.feedback), n.feedback && await _(n.feedback)), await t.trashChanged(f().disposal || null, !0);
} }), e === "dispose" && await t.trashChanged(r.disposal || null, !1);
}),
later: () => g("later", "更新稍后看", async () => {
- let e = await m(GM, {});
+ let e = await m(WM, {});
p({ watch_later: e.watch_later }), t.toast(e.watch_later ? "已加入稍后看" : "已移出稍后看", { undo: async () => {
- p({ watch_later: (await m(GM, {})).watch_later });
+ p({ watch_later: (await m(WM, {})).watch_later });
} });
}),
quality: () => g("quality", "更新版本需求", async () => {
@@ -71149,9 +71165,9 @@ function _De(e, t, n) {
}, n = (e) => p({
better_version: e.better_version,
better_version_reason: e.better_version_reason || ""
- }), r = await m(KM, { wanted: !e.wanted });
+ }), r = await m(GM, { wanted: !e.wanted });
n(r), t.toast(r.better_version ? "已标记寻找更好版本" : "已取消寻找更好版本", { undo: async () => {
- n(await m(KM, e));
+ n(await m(GM, e));
} });
}),
preference: ({ liked: e, reason: n }) => {
@@ -71165,7 +71181,7 @@ function _De(e, t, n) {
});
u("保存中…");
try {
- o(await m(qM, {
+ o(await m(KM, {
liked: a,
reason: i
}));
@@ -71175,7 +71191,7 @@ function _De(e, t, n) {
u("已保存"), setTimeout(() => u((e) => e === "已保存" ? "" : e), 1400);
let s = f();
t.toast(s.liked ? "已保存喜欢偏好" : "已取消喜欢", { undo: async () => {
- o(await m(qM, r));
+ o(await m(KM, r));
} });
});
},
@@ -71184,30 +71200,30 @@ function _De(e, t, n) {
operation: "remove",
tag: e.k
})).ok) throw Error("标签未删除");
- p((t) => rN(t, e.k)), t.toast(`已删除标签「${n(e.k)}」`, { undo: async () => {
- await m(WM, {
+ p((t) => nN(t, e.k)), t.toast(`已删除标签「${n(e.k)}」`, { undo: async () => {
+ await m(UM, {
operation: "add",
tag: e.k
- }), p((t) => iN(t, e));
+ }), p((t) => rN(t, e));
} });
}),
addTag: (e) => {
let r = e.trim();
r && g(`add:${r}`, "添加标签", async () => {
- let e = await m(WM, {
+ let e = await m(UM, {
operation: "add",
tag: r
});
if (!e.ok) return;
let i = e.tag || r;
- nN(f(), i) ? t.toast(`标签「${n(i)}」已存在`) : (p((e) => iN(e, {
+ tN(f(), i) ? t.toast(`标签「${n(i)}」已存在`) : (p((e) => rN(e, {
k: i,
cat: "general"
})), Ose(i), t.toast(`已添加标签「${n(i)}」`, { undo: async () => {
- await m(WM, {
+ await m(UM, {
operation: "remove",
tag: i
- }), p((e) => rN(e, i));
+ }), p((e) => nN(e, i));
} }));
});
}
@@ -71215,7 +71231,7 @@ function _De(e, t, n) {
}
//#endregion
//#region src/react/activity/downloads-panel.tsx
-var H2 = "/api/downloads", U2 = ["downloads"], vDe = "/api/downloads/cancel", yDe = "/api/downloads/postprocess", W2 = (e) => e?.tasks.some((e) => e.cancellable || e.postprocess_active) ? 5e3 : 3e4, bDe = {
+var V2 = "/api/downloads", H2 = ["downloads"], vDe = "/api/downloads/cancel", yDe = "/api/downloads/postprocess", U2 = (e) => e?.tasks.some((e) => e.cancellable || e.postprocess_active) ? 5e3 : 3e4, bDe = {
ingested: "lime",
failed: "rose",
cancelled: "neutral",
@@ -71224,21 +71240,21 @@ var H2 = "/api/downloads", U2 = ["downloads"], vDe = "/api/downloads/cancel", yD
remote_done: "lime",
landed: "lime",
submitted: "neutral"
-}, G2 = (e) => {
- let t = e.display_code || e.code || "", { title: n } = cF({
+}, W2 = (e) => {
+ let t = e.display_code || e.code || "", { title: n } = sF({
is_jav: !!t,
code: t,
name: e.display_title ?? e.title ?? e.display_name ?? e.remote_name
});
return [t, n].filter(Boolean).join(" · ") || `磁力 ${e.info_hash?.slice(0, 8) ?? e.id}`;
-}, K2 = (e) => e.failure_label ? [e.failure_label, e.failure_detail].filter(Boolean).join(":") : "", xDe = (e) => (e.postprocess_detail || "").replace("正片已绑定", "已确认主视频对应的作品").replace("整理跳过:", "未整理文件:");
+}, G2 = (e) => e.failure_label ? [e.failure_label, e.failure_detail].filter(Boolean).join(":") : "", xDe = (e) => (e.postprocess_detail || "").replace("正片已绑定", "已确认主视频对应的作品").replace("整理跳过:", "未整理文件:");
function SDe() {
let e = (0, D.useId)(), t = wt({
- queryKey: [...U2, "pages"],
+ queryKey: [...H2, "pages"],
initialPageParam: null,
- queryFn: ({ signal: e, pageParam: t }) => V(`${H2}?limit=20${t === null ? "" : `&before_id=${t}`}`, e),
+ queryFn: ({ signal: e, pageParam: t }) => V(`${V2}?limit=20${t === null ? "" : `&before_id=${t}`}`, e),
getNextPageParam: (e) => e.has_more ? e.next_before_id ?? void 0 : void 0,
- refetchInterval: (e) => e.state.data?.pages.some((e) => W2(e) === 5e3) ? 5e3 : 3e4
+ refetchInterval: (e) => e.state.data?.pages.some((e) => U2(e) === 5e3) ? 5e3 : 3e4
}), n = t.data?.pages || [], r = [...new Map(n.flatMap((e) => e.tasks).map((e) => [e.id, e])).values()];
return !r.length && !t.error ? null : /* @__PURE__ */ (0, O.jsxs)("section", {
id: "cloudDownloads",
@@ -71250,7 +71266,7 @@ function SDe() {
className: "text-title-2-medium text-text-primary",
children: "云下载"
}),
- t.error ? /* @__PURE__ */ (0, O.jsx)(Iz, {
+ t.error ? /* @__PURE__ */ (0, O.jsx)(Fz, {
tone: "error",
children: An(t.error)
}) : null,
@@ -71262,12 +71278,12 @@ function SDe() {
writable: n[0]?.available ?? !1
}, e.id))
}) : null,
- t.hasNextPage ? /* @__PURE__ */ (0, O.jsx)(q, {
+ t.hasNextPage ? /* @__PURE__ */ (0, O.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: uz,
+ leadingIcon: lz,
className: "self-start",
- ...Vz(t.isFetchingNextPage),
+ ...Bz(t.isFetchingNextPage),
onClick: () => {
t.isFetching || t.fetchNextPage();
},
@@ -71277,12 +71293,12 @@ function SDe() {
});
}
function CDe({ task: e, writable: t }) {
- let n = A(), r = jH(), [i, a] = (0, D.useState)(!1), [o, s] = (0, D.useState)(!1), c = (0, D.useId)(), l = K2(e) || (e.cancellable && e.failure_detail ? `稍后自动重试 · ${e.failure_detail}` : ""), u = e.artwork, d = u?.performer_entities || [], f = e.state === "ingested" && e.asset_id ? `/assets/${e.asset_id}` : void 0, p = e.state === "failed" || e.postprocess_state === "failed", m = [
+ let n = A(), r = AH(), [i, a] = (0, D.useState)(!1), [o, s] = (0, D.useState)(!1), c = (0, D.useId)(), l = G2(e) || (e.cancellable && e.failure_detail ? `稍后自动重试 · ${e.failure_detail}` : ""), u = e.artwork, d = u?.performer_entities || [], f = e.state === "ingested" && e.asset_id ? `/assets/${e.asset_id}` : void 0, p = e.state === "failed" || e.postprocess_state === "failed", m = [
e.display_code || e.code ? "" : "番号未识别",
e.target,
- DF(e.submitted_at)
+ EF(e.submitted_at)
].filter(Boolean).join(" · "), h = () => {
- n.invalidateQueries({ queryKey: U2 });
+ n.invalidateQueries({ queryKey: H2 });
}, g = () => {
r.run("cancel", (t) => H(vDe, { id: e.id }, "POST", t), h);
}, _ = () => {
@@ -71294,7 +71310,7 @@ function CDe({ task: e, writable: t }) {
title: e.title,
origin: e.origin
};
- r.run("resubmit", (e) => H(H2, t, "POST", e), h);
+ r.run("resubmit", (e) => H(V2, t, "POST", e), h);
}, v = () => {
navigator.clipboard.writeText(e.source_uri).then(() => a(!0), () => a(!1));
}, y = () => {
@@ -71303,7 +71319,7 @@ function CDe({ task: e, writable: t }) {
return /* @__PURE__ */ (0, O.jsxs)("li", {
"data-download-state": e.state,
"data-download-id": e.id,
- className: NH({
+ className: MH({
padding: "none",
bordered: "line",
className: p ? "flex flex-col border-border-error-default" : "flex flex-col"
@@ -71314,14 +71330,14 @@ function CDe({ task: e, writable: t }) {
children: [/* @__PURE__ */ (0, O.jsxs)("div", {
"data-download-cover": "",
"data-media-pic": "",
- style: { "--card-ratio": String(mA) },
+ style: { "--card-ratio": String(pA) },
className: "w-20 shrink-0 self-start text-caption-1-regular text-text-secondary sm:w-32",
children: [
u?.has_cover ? null : /* @__PURE__ */ (0, O.jsx)("span", {
"data-media-nopic": "",
children: "无封面"
}),
- u?.has_cover ? /* @__PURE__ */ (0, O.jsx)(fW, {
+ u?.has_cover ? /* @__PURE__ */ (0, O.jsx)(dW, {
artwork: {
kind: "cover",
html: Ha(u, "big")
@@ -71331,7 +71347,7 @@ function CDe({ task: e, writable: t }) {
f ? /* @__PURE__ */ (0, O.jsx)("a", {
"data-download-cover-link": "",
href: f,
- "aria-label": `打开作品详情:${G2(e)}`,
+ "aria-label": `打开作品详情:${W2(e)}`,
className: "absolute inset-0 z-1 rounded-lg outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-border-focus-ring"
}) : null
]
@@ -71342,19 +71358,19 @@ function CDe({ task: e, writable: t }) {
className: "flex min-w-0 flex-col items-start gap-1 sm:flex-row sm:items-center sm:gap-2",
children: [/* @__PURE__ */ (0, O.jsx)("strong", {
className: "min-w-0 w-full flex-1 truncate text-title-1-medium text-text-primary sm:w-auto",
- title: G2(e),
+ title: W2(e),
children: f ? /* @__PURE__ */ (0, O.jsx)("a", {
"data-download-title-link": "",
href: f,
className: "block truncate rounded-sm outline-none hover:underline focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-border-focus-ring",
- children: G2(e)
- }) : G2(e)
+ children: W2(e)
+ }) : W2(e)
}), /* @__PURE__ */ (0, O.jsxs)("div", {
className: "flex shrink-0 items-center gap-2",
- children: [/* @__PURE__ */ (0, O.jsx)(gZ, {
+ children: [/* @__PURE__ */ (0, O.jsx)(hZ, {
color: bDe[e.state] ?? "neutral",
children: e.state_label
- }), e.state === "ingested" ? /* @__PURE__ */ (0, O.jsx)(gZ, {
+ }), e.state === "ingested" ? /* @__PURE__ */ (0, O.jsx)(hZ, {
color: e.postprocess_state === "complete" ? "lime" : e.postprocess_state === "failed" ? "rose" : e.postprocess_state === "running" ? "blue" : "neutral",
children: e.postprocess_label
}) : null]
@@ -71364,7 +71380,7 @@ function CDe({ task: e, writable: t }) {
className: "flex min-w-0 items-center gap-2 text-caption-1-regular text-text-secondary",
children: [/* @__PURE__ */ (0, O.jsx)("span", {
className: "flex shrink-0",
- children: /* @__PURE__ */ (0, O.jsx)(ZH, {
+ children: /* @__PURE__ */ (0, O.jsx)(XH, {
source: e.provider,
label: e.provider_label
})
@@ -71391,7 +71407,7 @@ function CDe({ task: e, writable: t }) {
children: [d.map((e) => e.name).join("、"), (u?.performer_total || 0) > d.length ? ` 等 ${u.performer_total} 人` : ""]
})]
}) : null,
- e.state === "remote_running" && e.progress != null ? /* @__PURE__ */ (0, O.jsx)(IH, {
+ e.state === "remote_running" && e.progress != null ? /* @__PURE__ */ (0, O.jsx)(FH, {
label: "远端下载进度",
value: Math.round(e.progress * 100),
max: 100
@@ -71401,12 +71417,12 @@ function CDe({ task: e, writable: t }) {
title: e.ledger_path,
children: e.ledger_path
}) : null,
- r.error ? /* @__PURE__ */ (0, O.jsx)(GH, { children: r.error }) : null,
+ r.error ? /* @__PURE__ */ (0, O.jsx)(WH, { children: r.error }) : null,
/* @__PURE__ */ (0, O.jsxs)("div", {
"data-download-actions": "",
className: "flex flex-wrap items-center gap-2 pt-1 sm:mt-auto",
children: [
- /* @__PURE__ */ (0, O.jsx)(q, {
+ /* @__PURE__ */ (0, O.jsx)(J, {
variant: "ghost",
size: "small",
"aria-expanded": o,
@@ -71414,7 +71430,7 @@ function CDe({ task: e, writable: t }) {
onClick: () => s(!o),
children: o ? "收起标题" : "展开标题"
}),
- /* @__PURE__ */ (0, O.jsx)(q, {
+ /* @__PURE__ */ (0, O.jsx)(J, {
variant: "ghost",
size: "small",
onClick: v,
@@ -71423,24 +71439,24 @@ function CDe({ task: e, writable: t }) {
t && (e.cancellable || e.resubmittable || e.postprocess_retryable) ? /* @__PURE__ */ (0, O.jsxs)("div", {
className: "ml-auto flex flex-wrap items-center gap-2",
children: [
- e.cancellable ? /* @__PURE__ */ (0, O.jsx)(q, {
+ e.cancellable ? /* @__PURE__ */ (0, O.jsx)(J, {
variant: "secondary",
size: "small",
- ...Vz(r.busy === "cancel"),
+ ...Bz(r.busy === "cancel"),
onClick: g,
children: "取消"
}) : null,
- e.resubmittable ? /* @__PURE__ */ (0, O.jsx)(q, {
+ e.resubmittable ? /* @__PURE__ */ (0, O.jsx)(J, {
variant: "secondary",
size: "small",
- ...Vz(r.busy === "resubmit"),
+ ...Bz(r.busy === "resubmit"),
onClick: _,
children: "重新提交"
}) : null,
- e.postprocess_retryable ? /* @__PURE__ */ (0, O.jsx)(q, {
+ e.postprocess_retryable ? /* @__PURE__ */ (0, O.jsx)(J, {
variant: "secondary",
size: "small",
- ...Vz(r.busy === "postprocess"),
+ ...Bz(r.busy === "postprocess"),
onClick: y,
children: "重试入库后整理"
}) : null
@@ -71455,7 +71471,7 @@ function CDe({ task: e, writable: t }) {
id: c,
"data-download-title-full": !0,
className: "wrap-anywhere px-5 pb-4 text-body-2-regular text-text-secondary",
- children: G2(e)
+ children: W2(e)
}) : null,
l || e.postprocess_detail ? /* @__PURE__ */ (0, O.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",
@@ -71469,7 +71485,7 @@ function CDe({ task: e, writable: t }) {
}
//#endregion
//#region src/react/activity/work-code.ts
-var q2 = (e) => (e || "").toUpperCase().replace(/[^A-Z0-9]/g, ""), J2 = (e, t) => !!q2(e) && q2(e) === q2(t);
+var K2 = (e) => (e || "").toUpperCase().replace(/[^A-Z0-9]/g, ""), q2 = (e, t) => !!K2(e) && K2(e) === K2(t);
//#endregion
//#region src/react/activity/resource-search.tsx
function wDe({ className: e }) {
@@ -71483,7 +71499,7 @@ function TDe(e) {
return ["中字", "中文字幕"].includes(e?.trim() ?? "") ? "chinese" : ["无码", "无码破解"].includes(e?.trim() ?? "") ? "uncensored" : "quality";
}
function EDe({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
- let [a, o] = (0, D.useState)(e), [s, c] = (0, D.useState)(() => TDe(t)), [l, u] = (0, D.useState)(""), [d, f] = (0, D.useState)(""), [p, m] = (0, D.useState)(null), [h, g] = (0, D.useState)(""), [_, v] = (0, D.useState)(""), y = jH(), b = (0, D.useRef)(null);
+ let [a, o] = (0, D.useState)(e), [s, c] = (0, D.useState)(() => TDe(t)), [l, u] = (0, D.useState)(""), [d, f] = (0, D.useState)(""), [p, m] = (0, D.useState)(null), [h, g] = (0, D.useState)(""), [_, v] = (0, D.useState)(""), y = AH(), b = (0, D.useRef)(null);
(0, D.useEffect)(() => () => b.current?.abort(), []);
let x = () => {
if (!a.trim() || y.busy) return;
@@ -71499,7 +71515,7 @@ function EDe({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
let e = new AbortController();
b.current = e, V(`/api/items?jav=1&q=${encodeURIComponent(t)}&limit=10`, e.signal).then((n) => {
if (e.signal.aborted) return;
- let r = (n.items || []).find((e) => J2(e.code, t));
+ let r = (n.items || []).find((e) => q2(e.code, t));
i(r ? {
code: r.code,
title: String(r.catalog_title || r.name || ""),
@@ -71520,18 +71536,18 @@ function EDe({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
"aria-busy": !!y.busy,
className: "flex min-w-0 flex-col gap-4",
children: [
- t ? /* @__PURE__ */ (0, O.jsxs)(WH, { children: [
+ t ? /* @__PURE__ */ (0, O.jsxs)(UH, { children: [
"版本目标:",
t,
"。可在下方调整搜索优先项;完整度与水印需要逐条复核。"
] }) : null,
- /* @__PURE__ */ (0, O.jsx)(Nz, {
+ /* @__PURE__ */ (0, O.jsx)(Mz, {
label: "按番号查找资源",
value: a,
maxLength: 80,
placeholder: "输入番号,按回车搜索",
enterKeyHint: "search",
- leadingIcon: y.busy ? wDe : wz,
+ leadingIcon: y.busy ? wDe : Cz,
isReadOnly: !!y.busy,
"aria-busy": !!y.busy,
onChange: o,
@@ -71541,7 +71557,7 @@ function EDe({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
}),
/* @__PURE__ */ (0, O.jsxs)("div", {
className: "flex flex-col gap-1",
- children: [/* @__PURE__ */ (0, O.jsx)(KH, { children: "优先寻找" }), /* @__PURE__ */ (0, O.jsxs)(fU, {
+ children: [/* @__PURE__ */ (0, O.jsx)(GH, { children: "优先寻找" }), /* @__PURE__ */ (0, O.jsxs)(dU, {
"aria-label": "优先寻找",
selectedKey: s,
isDisabled: !!y.busy,
@@ -71549,15 +71565,15 @@ function EDe({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
e !== null && c(String(e));
},
children: [
- /* @__PURE__ */ (0, O.jsx)(pU, {
+ /* @__PURE__ */ (0, O.jsx)(fU, {
id: "quality",
children: "高清"
}),
- /* @__PURE__ */ (0, O.jsx)(pU, {
+ /* @__PURE__ */ (0, O.jsx)(fU, {
id: "chinese",
children: "中字"
}),
- /* @__PURE__ */ (0, O.jsx)(pU, {
+ /* @__PURE__ */ (0, O.jsx)(fU, {
id: "uncensored",
children: "无码"
})
@@ -71566,32 +71582,32 @@ function EDe({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
}),
/* @__PURE__ */ (0, O.jsxs)("div", {
className: "flex gap-3 max-sm:flex-col",
- children: [/* @__PURE__ */ (0, O.jsx)(Nz, {
+ children: [/* @__PURE__ */ (0, O.jsx)(Mz, {
label: "最小体积(GiB)",
inputMode: "decimal",
value: l,
onChange: u
- }), /* @__PURE__ */ (0, O.jsx)(Nz, {
+ }), /* @__PURE__ */ (0, O.jsx)(Mz, {
label: "最大体积(GiB)",
inputMode: "decimal",
value: d,
onChange: f
})]
}),
- y.busy ? /* @__PURE__ */ (0, O.jsx)(WH, {
+ y.busy ? /* @__PURE__ */ (0, O.jsx)(UH, {
role: "status",
children: "正在搜索资源"
}) : null,
- y.error ? /* @__PURE__ */ (0, O.jsx)(GH, { children: y.error }) : null,
- p?.error ? /* @__PURE__ */ (0, O.jsx)(WH, {
+ y.error ? /* @__PURE__ */ (0, O.jsx)(WH, { children: y.error }) : null,
+ p?.error ? /* @__PURE__ */ (0, O.jsx)(UH, {
role: "status",
children: p.error
}) : null,
- p?.state === "ready" && !p.items.length ? /* @__PURE__ */ (0, O.jsx)(WH, {
+ p?.state === "ready" && !p.items.length ? /* @__PURE__ */ (0, O.jsx)(UH, {
role: "status",
children: "没有符合条件的资源。"
}) : null,
- p?.warnings.map((e) => /* @__PURE__ */ (0, O.jsx)(WH, { children: e }, e)),
+ p?.warnings.map((e) => /* @__PURE__ */ (0, O.jsx)(UH, { children: e }, e)),
p?.items.length ? /* @__PURE__ */ (0, O.jsx)("ul", {
className: "flex min-w-0 flex-col gap-4",
children: p.items.map((e) => /* @__PURE__ */ (0, O.jsxs)("li", {
@@ -71601,7 +71617,7 @@ function EDe({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
className: "break-words text-body-2-medium text-text-primary",
children: e.name
}),
- /* @__PURE__ */ (0, O.jsx)(WH, { children: [
+ /* @__PURE__ */ (0, O.jsx)(UH, { children: [
e.size > 0 ? `${(e.size / 1024 ** 3).toFixed(2)} GiB` : "体积未取得",
e.seeders >= 0 ? `${e.seeders} 个做种` : "做种未取得",
e.resolution ? `${e.resolution}p` : "",
@@ -71610,7 +71626,7 @@ function EDe({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
e.uncensored ? "无码" : "",
e.origins.join("、")
].filter(Boolean).join(" · ") }),
- /* @__PURE__ */ (0, O.jsx)("div", { children: /* @__PURE__ */ (0, O.jsx)(q, {
+ /* @__PURE__ */ (0, O.jsx)("div", { children: /* @__PURE__ */ (0, O.jsx)(J, {
type: "button",
variant: "secondary",
onClick: () => {
@@ -71631,8 +71647,8 @@ var DDe = {
adopted: "这个磁力已有任务,没有重复提交",
adopted_remote: "网盘中已有相同的下载任务,Peach 已开始跟踪进度"
};
-function Y2({ prefill: e, close: t, receipt: n, provider: r }) {
- return /* @__PURE__ */ (0, O.jsx)(Pz, {
+function J2({ prefill: e, close: t, receipt: n, provider: r }) {
+ return /* @__PURE__ */ (0, O.jsx)(Nz, {
isOpen: !!e,
onOpenChange: (e) => {
e || t();
@@ -71648,19 +71664,19 @@ function Y2({ prefill: e, close: t, receipt: n, provider: r }) {
}
function ODe({ prefill: e, close: t, receipt: n, provider: r }) {
let i = St({
- queryKey: U2,
- queryFn: ({ signal: e }) => V(`${H2}?limit=50`, e),
- refetchInterval: (e) => W2(e.state.data)
+ queryKey: H2,
+ queryFn: ({ signal: e }) => V(`${V2}?limit=50`, e),
+ refetchInterval: (e) => U2(e.state.data)
}), a = i.data, o = /* @__PURE__ */ (0, O.jsxs)("div", {
className: "flex items-center justify-between gap-4 px-5 pt-5",
- children: [/* @__PURE__ */ (0, O.jsx)(SI, {
+ children: [/* @__PURE__ */ (0, O.jsx)(xI, {
slot: "title",
className: "text-title-2-semibold text-text-primary",
children: "查找资源"
- }), /* @__PURE__ */ (0, O.jsx)(q, {
+ }), /* @__PURE__ */ (0, O.jsx)(J, {
variant: "ghost",
iconOnly: !0,
- leadingIcon: pz,
+ leadingIcon: fz,
"aria-label": "关闭资源面板",
onClick: t
})]
@@ -71678,14 +71694,14 @@ function ODe({ prefill: e, close: t, receipt: n, provider: r }) {
o,
/* @__PURE__ */ (0, O.jsx)("div", {
className: "flex min-h-0 flex-col gap-4 overflow-y-auto p-5",
- children: i.error ? /* @__PURE__ */ (0, O.jsx)(Iz, {
+ children: i.error ? /* @__PURE__ */ (0, O.jsx)(Fz, {
tone: "error",
children: An(i.error)
}) : null
}),
/* @__PURE__ */ (0, O.jsx)("div", {
className: "flex justify-end p-3",
- children: /* @__PURE__ */ (0, O.jsx)(q, {
+ children: /* @__PURE__ */ (0, O.jsx)(J, {
variant: "secondary",
onClick: t,
children: "关闭"
@@ -71695,7 +71711,7 @@ function ODe({ prefill: e, close: t, receipt: n, provider: r }) {
});
}
function kDe({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provider: a }) {
- let o = A(), s = t.providers.filter((e) => e.configured), c = s.find((e) => e.key === a) ?? s[0], [l, u] = (0, D.useState)(c?.key || ""), [d, f] = (0, D.useState)(""), [p, m] = (0, D.useState)(n.code ?? ""), [h, g] = (0, D.useState)(c?.target || ""), [_, v] = (0, D.useState)(n.code ? n : null), [y, b] = (0, D.useState)(""), x = t.available && s.some((e) => e.key === l), S = jH(), C = (0, D.useRef)(null), w = (e) => {
+ let o = A(), s = t.providers.filter((e) => e.configured), c = s.find((e) => e.key === a) ?? s[0], [l, u] = (0, D.useState)(c?.key || ""), [d, f] = (0, D.useState)(""), [p, m] = (0, D.useState)(n.code ?? ""), [h, g] = (0, D.useState)(c?.target || ""), [_, v] = (0, D.useState)(n.code ? n : null), [y, b] = (0, D.useState)(""), x = t.available && s.some((e) => e.key === l), S = AH(), C = (0, D.useRef)(null), w = (e) => {
u(e), g(s.find((t) => t.key === e)?.target ?? "");
};
return /* @__PURE__ */ (0, O.jsxs)("form", {
@@ -71711,14 +71727,14 @@ function kDe({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
title: _?.title,
origin: _?.origin
};
- b(""), S.run("submit", (e) => H(H2, t, "POST", e), (e) => {
- o.invalidateQueries({ queryKey: U2 });
+ b(""), S.run("submit", (e) => H(V2, t, "POST", e), (e) => {
+ o.invalidateQueries({ queryKey: H2 });
let t = DDe[e.outcome];
if (e.ok && t) {
i(t), r();
return;
}
- let n = K2(e.task);
+ let n = G2(e.task);
b(e.outcome === "refused" ? "这个资源被判为违规,不再提交。" : n ? `提交没有成功:${n}` : "提交没有成功。");
});
},
@@ -71742,7 +71758,7 @@ function kDe({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
children: [/* @__PURE__ */ (0, O.jsx)("p", {
className: "break-words text-body-medium text-text-primary",
children: _ ? [_.code, _.title].filter(Boolean).join(" · ") : "作品资料未取得"
- }), _ ? /* @__PURE__ */ (0, O.jsx)(WH, { children: [
+ }), _ ? /* @__PURE__ */ (0, O.jsx)(UH, { children: [
_.performers,
_.studio,
_.release_date,
@@ -71754,18 +71770,18 @@ function kDe({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
initialCode: n.code ?? "",
reason: n.searchReason,
onSearch: (e) => {
- J2(e, _?.code) || (v(J2(e, n.code) ? n : null), f("")), m(e);
+ q2(e, _?.code) || (v(q2(e, n.code) ? n : null), f("")), m(e);
},
- onWork: (e) => v((t) => e ? J2(t?.code, e.code) ? {
+ onWork: (e) => v((t) => e ? q2(t?.code, e.code) ? {
...t,
...e,
origin: t?.origin || e.origin
- } : e : J2(t?.code, n.code) ? t : null),
+ } : e : q2(t?.code, n.code) ? t : null),
choose: (e, t) => {
f(e), m(t), C.current?.focus();
}
}),
- /* @__PURE__ */ (0, O.jsx)(Nz, {
+ /* @__PURE__ */ (0, O.jsx)(Mz, {
ref: C,
label: "磁力链接",
placeholder: "magnet:?xt=urn:btih:…",
@@ -71777,38 +71793,38 @@ function kDe({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
/* @__PURE__ */ (0, O.jsxs)("div", {
className: "flex flex-col gap-1",
children: [
- /* @__PURE__ */ (0, O.jsx)(KH, { children: "下载到" }),
- /* @__PURE__ */ (0, O.jsx)(fU, {
+ /* @__PURE__ */ (0, O.jsx)(GH, { children: "下载到" }),
+ /* @__PURE__ */ (0, O.jsx)(dU, {
"aria-label": "下载到",
selectedKey: l || null,
isDisabled: !s.length,
onSelectionChange: (e) => {
e !== null && w(String(e));
},
- children: s.map((e) => /* @__PURE__ */ (0, O.jsx)(pU, {
+ children: s.map((e) => /* @__PURE__ */ (0, O.jsx)(fU, {
id: e.key,
textValue: e.label,
- children: /* @__PURE__ */ (0, O.jsx)(ZH, {
+ children: /* @__PURE__ */ (0, O.jsx)(XH, {
source: e.key,
label: e.label
})
}, e.key))
}),
- l === "115" ? /* @__PURE__ */ (0, O.jsx)(WH, { children: "每提交一次扣一条离线配额,重新提交也算。" }) : null
+ l === "115" ? /* @__PURE__ */ (0, O.jsx)(UH, { children: "每提交一次扣一条离线配额,重新提交也算。" }) : null
]
}),
- t.available ? null : /* @__PURE__ */ (0, O.jsx)(Iz, {
+ t.available ? null : /* @__PURE__ */ (0, O.jsx)(Fz, {
tone: "neutral",
children: "云下载只在允许修改数据库的设备上可用。"
}),
- s.length ? null : /* @__PURE__ */ (0, O.jsxs)(Iz, {
+ s.length ? null : /* @__PURE__ */ (0, O.jsxs)(Fz, {
tone: "neutral",
children: ["尚未配置下载渠道。", /* @__PURE__ */ (0, O.jsx)("a", {
href: "/settings/library?section=%E4%B8%8B%E8%BD%BD%E6%B8%A0%E9%81%93",
children: "下载渠道设置"
})]
}),
- /* @__PURE__ */ (0, O.jsx)(Nz, {
+ /* @__PURE__ */ (0, O.jsx)(Mz, {
label: "目标目录",
placeholder: "/云下载",
autoComplete: "off",
@@ -71816,29 +71832,29 @@ function kDe({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
value: h,
onChange: g
}),
- n.code ? null : /* @__PURE__ */ (0, O.jsx)(Nz, {
+ n.code ? null : /* @__PURE__ */ (0, O.jsx)(Mz, {
label: "番号",
placeholder: "可不填",
autoComplete: "off",
maxLength: 60,
value: p,
onChange: (e) => {
- m(e), J2(e, _?.code) || v(null);
+ m(e), q2(e, _?.code) || v(null);
}
}),
- y || S.error ? /* @__PURE__ */ (0, O.jsx)(GH, { children: y || S.error }) : null
+ y || S.error ? /* @__PURE__ */ (0, O.jsx)(WH, { children: y || S.error }) : null
]
}),
/* @__PURE__ */ (0, O.jsxs)("div", {
className: "flex justify-between gap-4 p-3",
- children: [/* @__PURE__ */ (0, O.jsx)(q, {
+ children: [/* @__PURE__ */ (0, O.jsx)(J, {
variant: "secondary",
onClick: r,
children: "取消"
- }), /* @__PURE__ */ (0, O.jsx)(q, {
+ }), /* @__PURE__ */ (0, O.jsx)(J, {
type: "submit",
disabled: !d.trim() || !x,
- ...Vz(S.busy === "submit"),
+ ...Bz(S.busy === "submit"),
children: "提交下载"
})]
})
@@ -71847,11 +71863,11 @@ function kDe({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
}
//#endregion
//#region src/react/publication-cache.ts
-var X2 = 864e5, Z2 = (e) => {
+var Y2 = 864e5, X2 = (e) => {
let t = new Date(e);
return Date.UTC(t.getFullYear(), t.getMonth(), t.getDate());
};
-function Q2(e) {
+function Z2(e) {
let t = /^(\d{4})-(\d{2})-(\d{2})(?:$|T)/.exec(e || "");
if (!t) return;
let n = Number(t[1]), r = Number(t[2]) - 1, i = Number(t[3]), a = new Date(Date.UTC(n, r, i));
@@ -71860,25 +71876,25 @@ function Q2(e) {
return Date.UTC(n, r + 1, Math.min(i, o));
}
function ADe(e, t = Date.now()) {
- let n = Q2(e);
- return n !== void 0 && Z2(t) > n ? Infinity : X2;
+ let n = Z2(e);
+ return n !== void 0 && X2(t) > n ? Infinity : Y2;
}
-function $2(e, t, n = Date.now()) {
- return !Number.isFinite(e) || e <= 0 || e > n ? !1 : ADe(t, n) === Infinity ? Z2(e) > Q2(t) : n - e < X2;
+function Q2(e, t, n = Date.now()) {
+ return !Number.isFinite(e) || e <= 0 || e > n ? !1 : ADe(t, n) === Infinity ? X2(e) > Z2(t) : n - e < Y2;
}
//#endregion
//#region src/react/wants/resource-cache.ts
-var e4 = "peach.want-resources.v1";
-function t4(e) {
+var $2 = "peach.want-resources.v1";
+function e4(e) {
return !e.cache_stale && (e.complete === !0 || !e.warnings?.length);
}
-function n4(e, t, n) {
- return !!e && !e.cache_stale && (e.state === "error" || !t4(e) ? Date.now() - t < 6e4 : $2(t, n));
+function t4(e, t, n) {
+ return !!e && !e.cache_stale && (e.state === "error" || !e4(e) ? Date.now() - t < 6e4 : Q2(t, n));
}
-function r4() {
+function n4() {
try {
- let e = JSON.parse(localStorage.getItem(e4) || "[]");
- return Array.isArray(e) ? e.filter((e) => typeof e?.code == "string" && Number.isFinite(e.saved) && e.result?.state === "ready" && Array.isArray(e.result.items) && t4(e.result) && e.result.items.every((e) => e && [
+ let e = JSON.parse(localStorage.getItem($2) || "[]");
+ return Array.isArray(e) ? e.filter((e) => typeof e?.code == "string" && Number.isFinite(e.saved) && e.result?.state === "ready" && Array.isArray(e.result.items) && e4(e.result) && e.result.items.every((e) => e && [
"magnet",
"ed2k",
"url"
@@ -71888,22 +71904,22 @@ function r4() {
}
}
function jDe(e, t) {
- let n = r4().find((t) => t.code === e);
- return n && $2(n.saved, t) ? n : void 0;
+ let n = n4().find((t) => t.code === e);
+ return n && Q2(n.saved, t) ? n : void 0;
}
function MDe(e) {
- let t = new Map(r4().map((e) => [e.code, e])), n = /* @__PURE__ */ new Map();
+ let t = new Map(n4().map((e) => [e.code, e])), n = /* @__PURE__ */ new Map();
for (let r of e) {
if (!r.code) continue;
let e = t.get(`all-sources:${r.code}`);
- e && $2(e.saved, r.release_date) && n.set(r.code, e.result.items.some((e) => e.protocol === "magnet"));
+ e && Q2(e.saved, r.release_date) && n.set(r.code, e.result.items.some((e) => e.protocol === "magnet"));
}
return n;
}
function NDe(e, t) {
- if (t.state === "ready" && t4(t)) try {
- let n = r4().filter((t) => t.code !== e), r = Date.parse(t.checked_at || "");
- localStorage.setItem(e4, JSON.stringify([{
+ if (t.state === "ready" && e4(t)) try {
+ let n = n4().filter((t) => t.code !== e), r = Date.parse(t.checked_at || "");
+ localStorage.setItem($2, JSON.stringify([{
code: e,
saved: Number.isFinite(r) ? r : Date.now(),
result: t
@@ -71921,7 +71937,7 @@ function FDe(e) {
}
//#endregion
//#region src/react/wants/want-magnets.tsx
-function i4({ icon: e, children: t, title: n }) {
+function r4({ icon: e, children: t, title: n }) {
return /* @__PURE__ */ (0, O.jsxs)("span", {
title: n,
className: "inline-flex items-center gap-1",
@@ -71931,8 +71947,8 @@ function i4({ icon: e, children: t, title: n }) {
}), t]
});
}
-function a4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSource: a, queryUrl: o }) {
- let s = (0, D.useRef)(null), [c, l] = (0, D.useState)(typeof IntersectionObserver > "u"), [u, d] = (0, D.useState)([]), f = jH(), p = A(), m = (0, D.useRef)(!1), h = o ? `comment-resources:${o}:${e.code}` : `all-sources:${e.code || ""}`, g = (0, D.useMemo)(() => jDe(h, e.release_date), [h, e.release_date]);
+function i4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSource: a, queryUrl: o }) {
+ let s = (0, D.useRef)(null), [c, l] = (0, D.useState)(typeof IntersectionObserver > "u"), [u, d] = (0, D.useState)([]), f = AH(), p = A(), m = (0, D.useRef)(!1), h = o ? `comment-resources:${o}:${e.code}` : `all-sources:${e.code || ""}`, g = (0, D.useMemo)(() => jDe(h, e.release_date), [h, e.release_date]);
(0, D.useEffect)(() => {
if (!s.current || c) return;
let e = new IntersectionObserver((t) => {
@@ -71958,9 +71974,9 @@ function a4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
initialDataUpdatedAt: g?.saved,
enabled: c,
retry: !1,
- staleTime: (t) => n4(t.state.data, Date.parse(t.state.data?.checked_at || "") || t.state.dataUpdatedAt, e.release_date) ? Infinity : 0,
+ staleTime: (t) => t4(t.state.data, Date.parse(t.state.data?.checked_at || "") || t.state.dataUpdatedAt, e.release_date) ? Infinity : 0,
gcTime: 864e5,
- refetchOnMount: (t) => !n4(t.state.data, Date.parse(t.state.data?.checked_at || "") || t.state.dataUpdatedAt, e.release_date) && "always",
+ refetchOnMount: (t) => !t4(t.state.data, Date.parse(t.state.data?.checked_at || "") || t.state.dataUpdatedAt, e.release_date) && "always",
refetchOnWindowFocus: !1,
refetchInterval: (e) => e.state.data?.state === "busy" && 3e3
});
@@ -71975,7 +71991,7 @@ function a4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
]);
let v = n?.providers.find((e) => e.key === r && e.configured), y = (r) => {
!t && n?.available && v && r.protocol === "magnet" && f.run(r.id, async (t) => {
- let n = await H(H2, {
+ let n = await H(V2, {
magnet: r.uri,
provider: v.key,
target: v.target,
@@ -71986,7 +72002,7 @@ function a4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
if (!n.ok) throw Error(n.task.failure_detail || n.task.failure_label || "添加下载失败");
return n;
}, (e) => {
- d((e) => [...e, r.id]), i(e.outcome === "submitted" ? `已添加下载:${r.name}` : `已关联现有下载:${r.name}`), p.invalidateQueries({ queryKey: U2 });
+ d((e) => [...e, r.id]), i(e.outcome === "submitted" ? `已添加下载:${r.name}` : `已关联现有下载:${r.name}`), p.invalidateQueries({ queryKey: H2 });
});
}, b = (e) => {
f.run(`copy:${e.id}`, () => navigator.clipboard.writeText(e.uri), () => i("已复制链接"));
@@ -72001,42 +72017,42 @@ function a4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
children: [/* @__PURE__ */ (0, O.jsxs)("h4", {
className: "text-body-medium text-text-primary",
children: ["资源链接", _.data?.items.length ? ` · ${_.data.items.length}` : ""]
- }), /* @__PURE__ */ (0, O.jsx)(q, {
+ }), /* @__PURE__ */ (0, O.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: Cz,
- ...Vz(x),
+ leadingIcon: Sz,
+ ...Bz(x),
onClick: () => {
x || (m.current = !0, _.refetch());
},
children: "重新查询"
})]
}),
- x ? /* @__PURE__ */ (0, O.jsx)(PH, { label: "正在查找资源链接" }) : null,
- S ? /* @__PURE__ */ (0, O.jsx)(Iz, {
+ x ? /* @__PURE__ */ (0, O.jsx)(NH, { label: "正在查找资源链接" }) : null,
+ S ? /* @__PURE__ */ (0, O.jsx)(Fz, {
tone: "error",
title: "资源链接未取得",
children: S
}) : null,
- _.data?.warnings?.map((e) => /* @__PURE__ */ (0, O.jsx)(Iz, {
+ _.data?.warnings?.map((e) => /* @__PURE__ */ (0, O.jsx)(Fz, {
tone: "neutral",
children: FDe(e)
}, e)),
- _.data?.warnings?.length && _.data.source_url ? /* @__PURE__ */ (0, O.jsx)(YF, {
+ _.data?.warnings?.length && _.data.source_url ? /* @__PURE__ */ (0, O.jsx)(JF, {
variant: "secondary",
size: "small",
className: "self-start",
- trailingIcon: mz,
+ trailingIcon: pz,
href: _.data.source_url,
target: "_blank",
rel: "noopener noreferrer",
children: "查看来源页"
}) : null,
- _.data?.state === "ready" && !_.data.items.length && !_.data.warnings?.length ? /* @__PURE__ */ (0, O.jsx)(Iz, {
+ _.data?.state === "ready" && !_.data.items.length && !_.data.warnings?.length ? /* @__PURE__ */ (0, O.jsx)(Fz, {
tone: "neutral",
children: "暂未找到资源链接。"
}) : null,
- f.error ? /* @__PURE__ */ (0, O.jsx)(Iz, {
+ f.error ? /* @__PURE__ */ (0, O.jsx)(Fz, {
tone: "error",
title: "操作未完成",
children: f.error
@@ -72051,7 +72067,7 @@ function a4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
className: "flex min-w-0 flex-col gap-1",
children: [/* @__PURE__ */ (0, O.jsxs)("div", {
className: "flex min-w-0 flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, O.jsx)(gZ, {
+ children: [/* @__PURE__ */ (0, O.jsx)(hZ, {
variant: "caption",
color: e.protocol === "magnet" ? "blue" : e.protocol === "ed2k" ? "purple" : "neutral",
children: e.protocol === "magnet" ? "磁链" : e.protocol === "ed2k" ? "ED2K" : "网页链接"
@@ -72065,26 +72081,26 @@ function a4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
"data-resource-facts": "",
className: "flex flex-wrap gap-x-2 gap-y-1 text-caption-1-regular text-text-secondary",
children: [
- /* @__PURE__ */ (0, O.jsx)(i4, {
+ /* @__PURE__ */ (0, O.jsx)(r4, {
icon: wfe,
children: e.source
}),
- /* @__PURE__ */ (0, O.jsx)(i4, {
- icon: vz,
+ /* @__PURE__ */ (0, O.jsx)(r4, {
+ icon: _z,
title: `来源大小:${e.size}`,
children: PDe(e.size)
}),
- e.files ? /* @__PURE__ */ (0, O.jsx)(i4, {
+ e.files ? /* @__PURE__ */ (0, O.jsx)(r4, {
icon: hfe,
children: e.files.replaceAll("個", "个")
}) : null,
- /* @__PURE__ */ (0, O.jsx)(i4, {
+ /* @__PURE__ */ (0, O.jsx)(r4, {
icon: tfe,
title: e.source === "JavDB 评论" ? "评论日期" : "收录日期",
children: e.date ? e.date.slice(0, 10) : "日期未知"
}),
- e.attributes.filter((e) => e !== "高清").map((e) => /* @__PURE__ */ (0, O.jsx)(i4, {
- icon: Sz,
+ e.attributes.filter((e) => e !== "高清").map((e) => /* @__PURE__ */ (0, O.jsx)(r4, {
+ icon: xz,
children: e
}, e))
]
@@ -72093,31 +72109,31 @@ function a4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
"data-resource-actions": "",
className: "flex flex-wrap gap-2",
children: [
- /* @__PURE__ */ (0, O.jsx)(YF, {
+ /* @__PURE__ */ (0, O.jsx)(JF, {
"data-button-link": "",
variant: "secondary",
size: "small",
- trailingIcon: mz,
+ trailingIcon: pz,
href: e.source_url,
target: "_blank",
rel: "noopener noreferrer",
children: "链接来源"
}),
- /* @__PURE__ */ (0, O.jsx)(q, {
+ /* @__PURE__ */ (0, O.jsx)(J, {
variant: "secondary",
size: "small",
leadingIcon: pfe,
- ...Vz(f.busy === `copy:${e.id}`),
+ ...Bz(f.busy === `copy:${e.id}`),
onClick: () => b(e),
children: "复制链接"
}),
- e.protocol === "magnet" ? /* @__PURE__ */ (0, O.jsx)(q, {
+ e.protocol === "magnet" ? /* @__PURE__ */ (0, O.jsx)(J, {
variant: "primary",
size: "small",
- leadingIcon: v ? XH(v.key) : sfe,
+ leadingIcon: v ? YH(v.key) : sfe,
title: v ? `下载到 ${v.label}` : void 0,
disabled: t || !n?.available || !v || r,
- ...Vz(f.busy === e.id),
+ ...Bz(f.busy === e.id),
onClick: () => y(e),
children: r ? "已添加" : "添加下载"
}) : null
@@ -72128,7 +72144,7 @@ function a4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)("ul", {
className: "flex min-w-0 flex-col gap-4",
children: e.slice(0, 3)
- }), e.length > 3 ? /* @__PURE__ */ (0, O.jsx)(qH, {
+ }), e.length > 3 ? /* @__PURE__ */ (0, O.jsx)(KH, {
summary: `更多资源(${e.length - 3} 条)`,
children: /* @__PURE__ */ (0, O.jsx)("ul", {
className: "flex min-w-0 flex-col gap-4",
@@ -72141,10 +72157,10 @@ function a4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
}
//#endregion
//#region src/react/jav-detail/review-cache.ts
-var o4 = "peach.jav-reviews.v1";
-function s4() {
+var a4 = "peach.jav-reviews.v1";
+function o4() {
try {
- let e = localStorage.getItem(o4) || "[]";
+ let e = localStorage.getItem(a4) || "[]";
if (e.length > 2e6) return [];
let t = JSON.parse(e);
return Array.isArray(t) ? t.filter((e) => typeof e?.code == "string" && Number.isFinite(e.saved) && e.result?.ok === !0 && !e.result.cache_stale && Number.isInteger(e.result.page) && e.result.page >= 1 && e.result.page <= 8 && Array.isArray(e.result.items) && e.result.items.length <= 10 && e.result.items.every((e) => typeof e?.id == "string" && typeof e.content == "string" && typeof e.username == "string" && typeof e.created_at == "string")) : [];
@@ -72158,15 +72174,15 @@ function IDe(e, t) {
code: e,
saved: Number.isFinite(n) ? n : Date.now(),
result: t
- }, ...s4().filter((n) => n.code !== e || n.result.page !== t.page)].slice(0, 128), i = JSON.stringify(r);
- i.length <= 2e6 && localStorage.setItem(o4, i);
+ }, ...o4().filter((n) => n.code !== e || n.result.page !== t.page)].slice(0, 128), i = JSON.stringify(r);
+ i.length <= 2e6 && localStorage.setItem(a4, i);
} catch {}
}
function LDe(e, t) {
- let n = s4(), r = [], i = Infinity;
+ let n = o4(), r = [], i = Infinity;
for (let a = 1; a <= 8; a++) {
let o = n.find((t) => t.code === e && t.result.page === a);
- if (!o || !$2(o.saved, t) || (r.push(o.result), i = Math.min(i, o.saved), !o.result.more)) break;
+ if (!o || !Q2(o.saved, t) || (r.push(o.result), i = Math.min(i, o.saved), !o.result.more)) break;
}
return r.length ? {
pages: r,
@@ -72175,16 +72191,16 @@ function LDe(e, t) {
} : void 0;
}
function RDe(e, t, n) {
- return e.length > 0 && e.every((e) => e.ok && !e.cache_stale && $2(Date.parse(e.checked_at || "") || t, n));
+ return e.length > 0 && e.every((e) => e.ok && !e.cache_stale && Q2(Date.parse(e.checked_at || "") || t, n));
}
//#endregion
//#region src/react/jav-detail/jav-detail-page.tsx
function zDe(e) {
let t = (0, D.useRef)(!1), n = St({
- queryKey: A2(e.code),
+ queryKey: k2(e.code),
queryFn: ({ signal: n }) => {
let r = t.current;
- return t.current = !1, j2(e.code, n, r);
+ return t.current = !1, A2(e.code, n, r);
},
staleTime: 216e5
}), r = () => {
@@ -72201,14 +72217,14 @@ function zDe(e) {
retrying: n.isFetching
}, e.code) : /* @__PURE__ */ (0, O.jsxs)("div", {
"data-jav-failure": "",
- children: [/* @__PURE__ */ (0, O.jsx)(c4, { close: e.actions.close }), n.error ? /* @__PURE__ */ (0, O.jsx)(dW, {
+ children: [/* @__PURE__ */ (0, O.jsx)(s4, { close: e.actions.close }), n.error ? /* @__PURE__ */ (0, O.jsx)(uW, {
message: An(n.error),
onRetry: r
}) : null]
})
});
}
-var c4 = ({ close: e }) => /* @__PURE__ */ (0, O.jsx)("button", {
+var s4 = ({ close: e }) => /* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
"data-stage-close": "",
id: "closeStage",
@@ -72237,13 +72253,13 @@ function BDe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
label: "视频预览",
video: !0
}] : []
- ], [l, u] = (0, D.useState)(null), [d, f] = (0, D.useState)(t.want_id), p = jH(), m = () => {
- p.run("want", async (e) => d ? (await S$([d], e), null) : (await x$({ code: t.code }, e)).want.id, (t) => {
- f(t), U.setQueryData(A2(e), (e) => e && {
+ ], [l, u] = (0, D.useState)(null), [d, f] = (0, D.useState)(t.want_id), p = AH(), m = () => {
+ p.run("want", async (e) => d ? (await x$([d], e), null) : (await b$({ code: t.code }, e)).want.id, (t) => {
+ f(t), U.setQueryData(k2(e), (e) => e && {
...e,
wanted: !!t,
want_id: t
- }), n.receipt(t ? "已加入想要" : "已取消想要"), C$(), U.invalidateQueries({ queryKey: ["feed-new"] }), U.invalidateQueries({ queryKey: ["jav-discoveries"] });
+ }), n.receipt(t ? "已加入想要" : "已取消想要"), S$(), U.invalidateQueries({ queryKey: ["feed-new"] }), U.invalidateQueries({ queryKey: ["jav-discoveries"] });
});
};
return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [
@@ -72252,24 +72268,24 @@ function BDe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
"data-jav-art": "",
"data-jav-playing": o === -2 ? "" : void 0,
children: [
- /* @__PURE__ */ (0, O.jsx)(c4, { close: n.close }),
+ /* @__PURE__ */ (0, O.jsx)(s4, { close: n.close }),
t.preview_video_url ? /* @__PURE__ */ (0, O.jsxs)("button", {
type: "button",
"data-jav-preview-toggle": "",
"aria-pressed": o === -2,
onClick: () => s(o === -2 ? -1 : -2),
- children: [/* @__PURE__ */ (0, O.jsx)(l4, { name: o === -2 ? "image" : "play" }), o === -2 ? "查看图片" : "视频预览"]
+ children: [/* @__PURE__ */ (0, O.jsx)(c4, { name: o === -2 ? "image" : "play" }), o === -2 ? "查看图片" : "视频预览"]
}) : null,
- o === -2 && t.preview_video_url ? /* @__PURE__ */ (0, O.jsx)(UDe, { src: t.preview_video_url }, t.preview_video_url) : /* @__PURE__ */ (0, O.jsx)(xQ, {
+ o === -2 && t.preview_video_url ? /* @__PURE__ */ (0, O.jsx)(UDe, { src: t.preview_video_url }, t.preview_video_url) : /* @__PURE__ */ (0, O.jsx)(bQ, {
item: t,
image: o === -1 ? "cover" : String(o)
}, o),
- /* @__PURE__ */ (0, O.jsx)(_2, {
+ /* @__PURE__ */ (0, O.jsx)(g2, {
items: c,
position: Math.max(0, c.findIndex((e) => e.index === o)),
onSelect: s,
below: !0,
- renderThumbnail: (e) => /* @__PURE__ */ (0, O.jsx)(xQ, {
+ renderThumbnail: (e) => /* @__PURE__ */ (0, O.jsx)(bQ, {
item: t,
image: e.index < 0 ? "cover" : String(e.index),
thumbnail: !0
@@ -72284,16 +72300,16 @@ function BDe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
"data-jav-info": "",
children: [
/* @__PURE__ */ (0, O.jsx)(VDe, { item: t }),
- Number(t.score) > 0 ? /* @__PURE__ */ (0, O.jsx)(d4, { score: Number(t.score) }) : null,
+ Number(t.score) > 0 ? /* @__PURE__ */ (0, O.jsx)(u4, { score: Number(t.score) }) : null,
/* @__PURE__ */ (0, O.jsxs)("div", {
className: "mono",
"data-stage-meta": "",
"data-reveal-line": "",
- children: [/* @__PURE__ */ (0, O.jsx)(u4, {
+ children: [/* @__PURE__ */ (0, O.jsx)(l4, {
glyph: "calendar",
label: "发行日期",
value: t.release_date
- }), /* @__PURE__ */ (0, O.jsx)(u4, {
+ }), /* @__PURE__ */ (0, O.jsx)(l4, {
glyph: "clock",
label: "时长",
value: t.duration ? `${t.duration} 分钟` : void 0
@@ -72305,11 +72321,11 @@ function BDe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
}),
/* @__PURE__ */ (0, O.jsxs)("div", {
"data-jav-facts": "",
- children: [/* @__PURE__ */ (0, O.jsx)(u4, {
+ children: [/* @__PURE__ */ (0, O.jsx)(l4, {
glyph: "briefcase",
label: "发行商",
value: t.publisher
- }), /* @__PURE__ */ (0, O.jsx)(u4, {
+ }), /* @__PURE__ */ (0, O.jsx)(l4, {
glyph: "clapperboard",
label: "导演",
value: t.director
@@ -72338,11 +72354,11 @@ function BDe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
"data-jav-summary": "",
children: t.summary
}) : null,
- t.message ? /* @__PURE__ */ (0, O.jsx)(Iz, {
+ t.message ? /* @__PURE__ */ (0, O.jsx)(Fz, {
tone: "neutral",
- action: /* @__PURE__ */ (0, O.jsx)(q, {
+ action: /* @__PURE__ */ (0, O.jsx)(J, {
variant: "secondary",
- ...Vz(a),
+ ...Bz(a),
onClick: i,
children: "立即重试"
}),
@@ -72351,24 +72367,24 @@ function BDe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
/* @__PURE__ */ (0, O.jsxs)("div", {
"data-jav-actions": "",
children: [
- t.source_url ? /* @__PURE__ */ (0, O.jsx)(YF, {
+ t.source_url ? /* @__PURE__ */ (0, O.jsx)(JF, {
"data-button-link": "",
variant: "secondary",
- trailingIcon: mz,
+ trailingIcon: pz,
href: t.source_url,
target: "_blank",
rel: "noopener noreferrer",
children: "作品来源"
}) : null,
- /* @__PURE__ */ (0, O.jsx)(q, {
+ /* @__PURE__ */ (0, O.jsx)(J, {
variant: "secondary",
disabled: r,
"aria-pressed": !!d,
- ...Vz(!!p.busy),
+ ...Bz(!!p.busy),
onClick: m,
children: d ? "取消想要" : "想要"
}),
- /* @__PURE__ */ (0, O.jsx)(q, {
+ /* @__PURE__ */ (0, O.jsx)(J, {
variant: "primary",
onClick: () => u({
code: t.code,
@@ -72382,7 +72398,7 @@ function BDe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
})
]
}),
- p.error ? /* @__PURE__ */ (0, O.jsx)(Iz, {
+ p.error ? /* @__PURE__ */ (0, O.jsx)(Fz, {
tone: "error",
children: p.error
}) : null,
@@ -72399,24 +72415,24 @@ function BDe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
]
})
}),
- /* @__PURE__ */ (0, O.jsx)(Y2, {
+ /* @__PURE__ */ (0, O.jsx)(J2, {
prefill: l,
close: () => u(null),
receipt: n.receipt
})
] });
}
-var l4 = ({ name: e }) => /* @__PURE__ */ (0, O.jsx)("span", {
+var c4 = ({ name: e }) => /* @__PURE__ */ (0, O.jsx)("span", {
className: "contents",
"aria-hidden": "true",
dangerouslySetInnerHTML: { __html: R(e) }
-}), u4 = ({ glyph: e, label: t, value: n }) => n ? /* @__PURE__ */ (0, O.jsxs)("span", {
+}), l4 = ({ glyph: e, label: t, value: n }) => n ? /* @__PURE__ */ (0, O.jsxs)("span", {
"data-spec-item": "",
title: t,
- children: [/* @__PURE__ */ (0, O.jsx)(l4, { name: e }), /* @__PURE__ */ (0, O.jsx)("span", { children: n })]
+ children: [/* @__PURE__ */ (0, O.jsx)(c4, { name: e }), /* @__PURE__ */ (0, O.jsx)("span", { children: n })]
}) : null;
function VDe({ item: e }) {
- let { text: t, expanded: n, foldable: r, toggle: i } = O2(e.title), a = e.title === e.code ? "" : e.title;
+ let { text: t, expanded: n, foldable: r, toggle: i } = D2(e.title), a = e.title === e.code ? "" : e.title;
return /* @__PURE__ */ (0, O.jsxs)("div", {
"data-item-title": "",
children: [/* @__PURE__ */ (0, O.jsx)("h1", {
@@ -72443,19 +72459,19 @@ function VDe({ item: e }) {
"aria-label": n ? "收起标题" : "展开标题",
title: n ? "收起标题" : "展开完整标题",
onClick: i,
- children: /* @__PURE__ */ (0, O.jsx)(BH, {})
+ children: /* @__PURE__ */ (0, O.jsx)(zH, {})
})
})]
});
}
-function d4({ score: e, review: t = !1 }) {
+function u4({ score: e, review: t = !1 }) {
return /* @__PURE__ */ (0, O.jsxs)("div", {
"data-item-rating": "",
"data-jav-rating": "",
"data-review-rating": t ? "" : void 0,
role: "img",
"aria-label": `${t ? "评论" : "JavDB"}评分 ${e} / 5`,
- children: [/* @__PURE__ */ (0, O.jsx)(mY, { value: e }), /* @__PURE__ */ (0, O.jsxs)("span", {
+ children: [/* @__PURE__ */ (0, O.jsx)(pY, { value: e }), /* @__PURE__ */ (0, O.jsxs)("span", {
"data-rating-value": "",
children: [e.toFixed(1), " / 5"]
})]
@@ -72470,14 +72486,14 @@ function HDe({ item: e, navigate: t }) {
children: r
}), /* @__PURE__ */ (0, O.jsx)("div", {
"data-id-row": "",
- children: i.map((r) => /* @__PURE__ */ (0, O.jsx)(E2, {
+ children: i.map((r) => /* @__PURE__ */ (0, O.jsx)(T2, {
kind: t,
person: {
...r,
id: r.id ?? null
},
onOpen: n,
- face: t === "performer" && !r.has_image && !r.has_avatar && r.source_avatar && r.source_actor_id ? /* @__PURE__ */ (0, O.jsx)(SQ, {
+ face: t === "performer" && !r.has_image && !r.has_avatar && r.source_avatar && r.source_actor_id ? /* @__PURE__ */ (0, O.jsx)(xQ, {
code: e.code,
person: r,
detail: !0
@@ -72494,7 +72510,7 @@ function HDe({ item: e, navigate: t }) {
r("performer", "出演者", e.performer_refs.filter((e) => !e.gender || e.gender === "unknown"), "unknown"),
r("studio", "厂牌", e.studio_refs)
]
- }), /* @__PURE__ */ (0, O.jsx)(D2, {
+ }), /* @__PURE__ */ (0, O.jsx)(E2, {
people: e.series_refs.map((e) => ({
...e,
id: e.id ?? null
@@ -72514,9 +72530,9 @@ function UDe({ src: e }) {
}, [e, i]), /* @__PURE__ */ (0, O.jsx)("div", {
ref: t,
"data-jav-video": "",
- children: n ? /* @__PURE__ */ (0, O.jsx)(Iz, {
+ children: n ? /* @__PURE__ */ (0, O.jsx)(Fz, {
tone: "neutral",
- action: /* @__PURE__ */ (0, O.jsx)(q, {
+ action: /* @__PURE__ */ (0, O.jsx)(J, {
variant: "secondary",
onClick: () => {
r(!1), a((e) => e + 1);
@@ -72560,7 +72576,7 @@ function WDe({ code: e, count: t, released: n }) {
let l = c.data?.pages || [], u = [...new Map(l.flatMap((e) => e.items).map((e) => [e.id, e])).values()], d = c.error ? An(c.error) : l.find((e) => !e.ok || e.cache_stale)?.message;
return /* @__PURE__ */ (0, O.jsx)("section", {
"data-jav-reviews": "",
- children: /* @__PURE__ */ (0, O.jsxs)(qH, {
+ children: /* @__PURE__ */ (0, O.jsxs)(KH, {
trailing: !0,
summary: /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [
/* @__PURE__ */ (0, O.jsx)(nfe, { "aria-hidden": !0 }),
@@ -72600,7 +72616,7 @@ function WDe({ code: e, count: t, released: n }) {
"data-jav-review-meta": "",
children: [
/* @__PURE__ */ (0, O.jsx)("b", { children: e.username }),
- Number(e.score) > 0 ? /* @__PURE__ */ (0, O.jsx)(d4, {
+ Number(e.score) > 0 ? /* @__PURE__ */ (0, O.jsx)(u4, {
score: Number(e.score),
review: !0
}) : null,
@@ -72612,38 +72628,38 @@ function WDe({ code: e, count: t, released: n }) {
]
}), /* @__PURE__ */ (0, O.jsx)("p", { children: e.content })]
}, e.id)),
- d ? /* @__PURE__ */ (0, O.jsx)(Iz, {
+ d ? /* @__PURE__ */ (0, O.jsx)(Fz, {
tone: "neutral",
- action: /* @__PURE__ */ (0, O.jsx)(q, {
+ action: /* @__PURE__ */ (0, O.jsx)(J, {
variant: "secondary",
- ...Vz(c.isFetching),
+ ...Bz(c.isFetching),
onClick: () => {
s.current = !0, c.refetch();
},
children: "立即重试"
}),
children: d
- }) : !c.isPending && !u.length ? /* @__PURE__ */ (0, O.jsx)(Iz, {
+ }) : !c.isPending && !u.length ? /* @__PURE__ */ (0, O.jsx)(Fz, {
tone: "neutral",
children: "暂无评论"
}) : null,
- !d && l.length ? /* @__PURE__ */ (0, O.jsx)(q, {
+ !d && l.length ? /* @__PURE__ */ (0, O.jsx)(J, {
variant: "secondary",
- ...Vz(c.isFetching),
+ ...Bz(c.isFetching),
onClick: () => {
s.current = !0, c.refetch();
},
children: "刷新评论"
}) : null,
- c.hasNextPage ? /* @__PURE__ */ (0, O.jsx)(q, {
+ c.hasNextPage ? /* @__PURE__ */ (0, O.jsx)(J, {
variant: "secondary",
- ...Vz(c.isFetchingNextPage),
+ ...Bz(c.isFetchingNextPage),
onClick: () => {
c.isFetchingNextPage || c.fetchNextPage();
},
children: "更多评论"
}) : null,
- !d && l.at(-1)?.page === 8 && t > u.length ? /* @__PURE__ */ (0, O.jsxs)(Iz, {
+ !d && l.at(-1)?.page === 8 && t > u.length ? /* @__PURE__ */ (0, O.jsxs)(Fz, {
tone: "neutral",
children: [
"已显示 ",
@@ -72657,19 +72673,19 @@ function WDe({ code: e, count: t, released: n }) {
}
function GDe({ item: e, actions: t, readOnly: n }) {
let [r, i] = (0, D.useState)(!1), a = St({
- queryKey: U2,
+ queryKey: H2,
enabled: r,
- queryFn: ({ signal: e }) => V(`${H2}?limit=50`, e)
+ queryFn: ({ signal: e }) => V(`${V2}?limit=50`, e)
}), o = a.data?.providers.find((e) => e.configured)?.key || "", [s, c] = (0, D.useState)(!1);
return /* @__PURE__ */ (0, O.jsx)("section", {
"data-jav-resources": "",
- children: /* @__PURE__ */ (0, O.jsx)(qH, {
+ children: /* @__PURE__ */ (0, O.jsx)(KH, {
trailing: !0,
- summary: /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(l4, { name: "link" }), "资源"] }),
+ summary: /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(c4, { name: "link" }), "资源"] }),
onOpenChange: (e) => {
i(e), e && c(!0);
},
- children: s ? /* @__PURE__ */ (0, O.jsx)(a4, {
+ children: s ? /* @__PURE__ */ (0, O.jsx)(i4, {
want: {
id: 0,
code: e.code,
@@ -72687,31 +72703,31 @@ function GDe({ item: e, actions: t, readOnly: n }) {
}
//#endregion
//#region src/react/stage/stage-player.ts
-var f4 = null, p4 = null, m4 = null, h4 = null, g4 = null, _4 = !1, v4 = 0, y4 = null, b4 = () => !1, x4 = (e, t, n) => `${e}:${t}:${n ?? ""}`;
+var d4 = null, f4 = null, p4 = null, m4 = null, h4 = null, g4 = !1, _4 = 0, v4 = null, y4 = () => !1, b4 = (e, t, n) => `${e}:${t}:${n ?? ""}`;
function KDe(e, t) {
- f4 = e, b4 = () => t.isOpen(), y4 = () => t.requestClose(), Koe({
+ d4 = e, y4 = () => t.isOpen(), v4 = () => t.requestClose(), Koe({
...e.player,
stage: () => document.getElementById("stage")
- }), qA({
- inMiniplayer: (e) => p4?.player === e,
- kind: (e) => p4?.player === e ? p4.kind : m4?.kind ?? h4?.kind ?? "item",
- expand: () => V4(),
- toMiniplayer: () => H4()
- }), S4 || (S4 = !0, addEventListener("pagehide", () => Yj()));
-}
-var S4 = !1;
-function C4() {
- if (!f4) throw Error("舞台播放器还没有接上宿主(configureStagePlayer)");
- return f4;
-}
-function w4(e) {
- h4 = e;
-}
-var qDe = () => h4;
-function T4(e, t) {
- let { kind: n, item: r, media: i = null } = t, a = x4(n, r.id, i?.index ?? null);
- if (p4 && p4.key === a) return YDe(e, p4);
- p4 && B4();
+ }), KA({
+ inMiniplayer: (e) => f4?.player === e,
+ kind: (e) => f4?.player === e ? f4.kind : p4?.kind ?? m4?.kind ?? "item",
+ expand: () => B4(),
+ toMiniplayer: () => V4()
+ }), x4 || (x4 = !0, addEventListener("pagehide", () => Jj()));
+}
+var x4 = !1;
+function S4() {
+ if (!d4) throw Error("舞台播放器还没有接上宿主(configureStagePlayer)");
+ return d4;
+}
+function C4(e) {
+ m4 = e;
+}
+var qDe = () => m4;
+function w4(e, t) {
+ let { kind: n, item: r, media: i = null } = t, a = b4(n, r.id, i?.index ?? null);
+ if (f4 && f4.key === a) return YDe(e, f4);
+ f4 && z4();
let o = {
player: null,
kind: n,
@@ -72719,23 +72735,23 @@ function T4(e, t) {
mediaIndex: i?.index ?? null,
key: a
};
- m4 = o;
+ p4 = o;
let s = document.createElement("video");
t.id && (s.id = t.id), s.className = "video-js vjs-big-play-centered", s.controls = !1, s.setAttribute("playsinline", ""), s.preload = "metadata", t.poster && (s.poster = t.poster), t.onError && s.addEventListener("error", t.onError), e.append(s);
- let c = oM(s, {
+ let c = aM(s, {
kind: n,
item: r,
media: i,
autoplay: t.autoplay,
resume: t.resume ?? null,
onPlayer: (e) => {
- m4 === o && (o.player = e);
+ p4 === o && (o.player = e);
},
- handedOff: (e) => p4?.player === e
+ handedOff: (e) => f4?.player === e
});
return () => {
- let e = !!o.player && p4?.player === o.player;
- m4 === o && (m4 = null), c(), !e && (o.player || (s.pause(), s.removeAttribute("src"), s.load()), Yj());
+ let e = !!o.player && f4?.player === o.player;
+ p4 === o && (p4 = null), c(), !e && (o.player || (s.pause(), s.removeAttribute("src"), s.load()), Jj());
};
}
async function JDe(e, t, n) {
@@ -72744,27 +72760,27 @@ async function JDe(e, t, n) {
if (r.medium && r.medium !== "video") throw Error("这条作品没有可播放的视频");
if (r.location === "online") throw Error("请打开详情播放在线作品");
if (r.cost === "metered") throw Error("请打开详情确认计费来源");
- let i = await C4().player.loadSourceStatus();
- if (n.throwIfAborted(), i[String(r.root_id || r.location || "")] === !1) throw Error(C4().player.offlineReason(String(r.root_id || r.location || "")));
+ let i = await S4().player.loadSourceStatus();
+ if (n.throwIfAborted(), i[String(r.root_id || r.location || "")] === !1) throw Error(S4().player.offlineReason(String(r.root_id || r.location || "")));
let a = {
kind: "item",
item: r,
title: String(r.title || r.name || ""),
sub: String(r.performers?.[0] || r.creator || "未归属")
};
- w4(a);
- let o = T4(t, {
+ C4(a);
+ let o = w4(t, {
kind: "item",
item: r,
autoplay: !0
}), s = !1;
return (e = !1) => {
- s || (s = !0, e && h4 === a && D4(!0), o(), h4 === a && w4(null));
+ s || (s = !0, e && m4 === a && E4(!0), o(), m4 === a && C4(null));
};
}
function YDe(e, t) {
let { player: n } = t;
- R4(t), p4 = null, z4(), n.el().classList.remove("vjs-peach-mini"), iM(e), e.append(n.el()), rj(n);
+ L4(t), f4 = null, R4(), n.el().classList.remove("vjs-peach-mini"), rM(e), e.append(n.el()), nj(n);
let r = {
player: n,
kind: t.kind,
@@ -72772,22 +72788,22 @@ function YDe(e, t) {
mediaIndex: t.mediaIndex,
key: t.key
};
- m4 = r;
- let i = aM(n, e);
- return ij(n), () => {
- m4 === r && (m4 = null), i(), p4?.player !== n && (nj() === n && rj(null), Bj(n), Yj());
+ p4 = r;
+ let i = iM(n, e);
+ return rj(n), () => {
+ p4 === r && (p4 = null), i(), f4?.player !== n && (tj() === n && nj(null), zj(n), Jj());
};
}
-var E4 = () => {
- let e = m4?.player;
+var T4 = () => {
+ let e = p4?.player;
return e && !e.isDisposed() ? e : null;
};
-function D4(e) {
- let t = _4;
- _4 = !1, p4?.pending && B4();
- let n = m4, r = n?.player, i = h4;
- if (!n || !r || r.isDisposed() || !i || !g4) return;
- let a = C4().player.settings();
+function E4(e) {
+ let t = g4;
+ g4 = !1, f4?.pending && z4();
+ let n = p4, r = n?.player, i = m4;
+ if (!n || !r || r.isDisposed() || !i || !h4) return;
+ let a = S4().player.settings();
(t || e && a.miniplayer && !r.paused() && !r.ended() && !r.error()) && $De({
player: r,
kind: n.kind,
@@ -72796,46 +72812,46 @@ function D4(e) {
key: n.key
}, i);
}
-function O4(e, t) {
- _4 = !1, p4 && (p4.kind === e && p4.item.id === t ? (p4.pending = !0, z4()) : B4());
+function D4(e, t) {
+ g4 = !1, f4 && (f4.kind === e && f4.item.id === t ? (f4.pending = !0, R4()) : z4());
}
-function k4(e) {
- g4 = e, g4 && I4();
+function O4(e) {
+ h4 = e, h4 && F4();
}
-var A4 = () => !!p4 && !p4.pending && !p4.player.isDisposed();
+var k4 = () => !!f4 && !f4.pending && !f4.player.isDisposed();
function XDe() {
- return A4() ? g4?.frame.querySelector("video") ?? null : null;
+ return k4() ? h4?.frame.querySelector("video") ?? null : null;
}
function ZDe() {
- return b4() ? document.getElementById("stage")?.querySelector("video") ?? null : E4()?.el().querySelector("video") ?? XDe();
+ return y4() ? document.getElementById("stage")?.querySelector("video") ?? null : T4()?.el().querySelector("video") ?? XDe();
}
-function j4(e) {
- g4 && (g4.title.textContent = e.title || "", g4.sub.textContent = e.sub || "", g4.info.setAttribute("aria-label", e.title ? `展开到详情:${e.title}` : "展开到详情"));
+function A4(e) {
+ h4 && (h4.title.textContent = e.title || "", h4.sub.textContent = e.sub || "", h4.info.setAttribute("aria-label", e.title ? `展开到详情:${e.title}` : "展开到详情"));
}
-function M4(e = p4?.item) {
- if (!g4) return;
- let t = g4.frame.querySelector("video"), n = t?.videoWidth || Number(e?.width) || 16, r = t?.videoHeight || Number(e?.height) || 9;
- g4.frame.style.setProperty("--miniplayer-aspect", `${Math.max(n, r)}/${r}`);
+function j4(e = f4?.item) {
+ if (!h4) return;
+ let t = h4.frame.querySelector("video"), n = t?.videoWidth || Number(e?.width) || 16, r = t?.videoHeight || Number(e?.height) || 9;
+ h4.frame.style.setProperty("--miniplayer-aspect", `${Math.max(n, r)}/${r}`);
}
-function N4() {
- let e = p4?.player;
- if (!e || e.isDisposed() || !g4) return;
+function M4() {
+ let e = f4?.player;
+ if (!e || e.isDisposed() || !h4) return;
let t = e.paused();
- g4.play.setAttribute("aria-label", t ? "播放" : "暂停"), g4.play.querySelector("[data-icon-swap]") || (g4.play.innerHTML = cs("player-pause", "player-play", t ? "b" : "a")), ls(g4.play, t ? "b" : "a");
-}
-function P4() {
- let e = p4?.player;
- if (!e || e.isDisposed() || !g4) return;
- let t = mn(p4?.item.duration) || mn(e.duration());
- g4.time.textContent = `${gn(e.currentTime())} / ${t ? gn(t) : "0:00"}`;
-}
-var F4 = () => Math.max(1, Number(C4().player.settings().seekSeconds) || 10);
-function I4() {
- if (!g4 || !f4) return;
- let e = F4();
- for (let [t, n] of [[g4.back, `后退 ${e} 秒`], [g4.ahead, `前进 ${e} 秒`]]) t.setAttribute("aria-label", n), t.title = n;
+ h4.play.setAttribute("aria-label", t ? "播放" : "暂停"), h4.play.querySelector("[data-icon-swap]") || (h4.play.innerHTML = cs("player-pause", "player-play", t ? "b" : "a")), ls(h4.play, t ? "b" : "a");
}
-function L4(e) {
+function N4() {
+ let e = f4?.player;
+ if (!e || e.isDisposed() || !h4) return;
+ let t = mn(f4?.item.duration) || mn(e.duration());
+ h4.time.textContent = `${gn(e.currentTime())} / ${t ? gn(t) : "0:00"}`;
+}
+var P4 = () => Math.max(1, Number(S4().player.settings().seekSeconds) || 10);
+function F4() {
+ if (!h4 || !d4) return;
+ let e = P4();
+ for (let [t, n] of [[h4.back, `后退 ${e} 秒`], [h4.ahead, `前进 ${e} 秒`]]) t.setAttribute("aria-label", n), t.title = n;
+}
+function I4(e) {
let t = (t, n) => {
e.player.on(t, n), e.off.push(() => {
try {
@@ -72847,17 +72863,17 @@ function L4(e) {
"play",
"pause",
"ended"
- ], N4), t([
+ ], M4), t([
"timeupdate",
"durationchange",
"loadedmetadata"
- ], P4), t("loadedmetadata", () => M4()), N4(), P4(), M4(), I4();
+ ], N4), t("loadedmetadata", () => j4()), M4(), N4(), j4(), F4();
}
-function R4(e) {
+function L4(e) {
e.off.forEach((e) => e()), e.off = [];
}
function QDe() {
- let e = g4?.root;
+ let e = h4?.root;
if (!e) return;
let t = e.hidden;
if (e.hidden = !1, !t) return;
@@ -72865,8 +72881,8 @@ function QDe() {
let n = () => e.removeAttribute("data-miniplayer-enter");
e.addEventListener("animationend", n, { once: !0 }), setTimeout(n, 500);
}
-function z4() {
- let e = g4?.root;
+function R4() {
+ let e = h4?.root;
if (e) {
e.hidden = !0;
for (let t of [
@@ -72878,72 +72894,72 @@ function z4() {
}
}
function $De(e, t) {
- if (!g4) return;
+ if (!h4) return;
let n = {
...e,
meta: t,
off: [],
pending: !1
};
- p4 = n, v4++, e.player.el().classList.add("vjs-peach-mini"), g4.frame.prepend(e.player.el()), j4(t), L4(n), QDe(), ij(e.player);
+ f4 = n, _4++, e.player.el().classList.add("vjs-peach-mini"), h4.frame.prepend(e.player.el()), A4(t), I4(n), QDe(), rj(e.player);
}
-function B4() {
- let e = p4;
- e && R4(e), p4 = null, v4++;
+function z4() {
+ let e = f4;
+ e && L4(e), f4 = null, _4++;
let t = e?.player ?? null;
- t && nj() === t && rj(null), Bj(t), t && Yj(), g4?.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove()), ZA(), z4();
+ t && tj() === t && nj(null), zj(t), t && Jj(), h4?.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove()), XA(), R4();
}
-function V4() {
- if (!A4() || !p4) return;
- let { kind: e, item: t, mediaIndex: n } = p4;
- C4().expand(e, t.id, n);
+function B4() {
+ if (!k4() || !f4) return;
+ let { kind: e, item: t, mediaIndex: n } = f4;
+ S4().expand(e, t.id, n);
}
-function H4() {
- A4() && !b4() ? V4() : b4() && E4() && y4 && (_4 = !0, y4());
+function V4() {
+ k4() && !y4() ? B4() : y4() && T4() && v4 && (g4 = !0, v4());
}
function eOe() {
- let e = p4?.player;
+ let e = f4?.player;
e && !e.isDisposed() && (e.paused() ? e.play()?.catch(() => {}) : e.pause());
}
-function U4(e) {
- let t = p4?.player;
+function H4(e) {
+ let t = f4?.player;
if (!t || t.isDisposed()) return;
- let n = mn(t.duration()) || mn(p4?.item.duration) || 0, r = Math.max(0, (Number(t.currentTime()) || 0) + F4() * e);
+ let n = mn(t.duration()) || mn(f4?.item.duration) || 0, r = Math.max(0, (Number(t.currentTime()) || 0) + P4() * e);
t.currentTime(n ? Math.min(n, r) : r);
}
-function W4(e) {
- return !(!A4() || !e || e.part_group || e.edition_group || e.medium && e.medium !== "video" || e.cost === "metered" && e.location !== "online" || e.location === "online" && !e.follow_item_id || C4().sourceOffline(String(e.root_id || e.location || "")));
+function U4(e) {
+ return !(!k4() || !e || e.part_group || e.edition_group || e.medium && e.medium !== "video" || e.cost === "metered" && e.location !== "online" || e.location === "online" && !e.follow_item_id || S4().sourceOffline(String(e.root_id || e.location || "")));
}
async function tOe(e) {
- if (!A4() || !p4 || !g4) return;
- let t = ++v4, n = await z(`/api/item?id=${e}`).catch(() => null);
- if (t !== v4 || !A4() || !p4 || !g4 || !n || n.error) return;
- if (!W4(n)) {
- C4().openItem(e);
+ if (!k4() || !f4 || !h4) return;
+ let t = ++_4, n = await z(`/api/item?id=${e}`).catch(() => null);
+ if (t !== _4 || !k4() || !f4 || !h4 || !n || n.error) return;
+ if (!U4(n)) {
+ S4().openItem(e);
return;
}
- let r = p4;
- R4(r), nj() === r.player && rj(null), Bj(r.player), Yj(), g4.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove());
+ let r = f4;
+ L4(r), tj() === r.player && nj(null), zj(r.player), Jj(), h4.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove());
let i = document.createElement("video");
- i.className = "video-js", i.setAttribute("playsinline", ""), i.preload = "metadata", g4.frame.prepend(i);
+ i.className = "video-js", i.setAttribute("playsinline", ""), i.preload = "metadata", h4.frame.prepend(i);
let a = {
kind: "item",
item: n,
title: String(n.title || n.name || ""),
sub: String(n.performers?.[0] || n.creator || "未归属")
};
- j4(a), oM(i, {
+ A4(a), aM(i, {
kind: "item",
item: n,
autoplay: !0,
chrome: !1,
onPlayer: (r) => {
- if (t !== v4) {
- r && nj() === r && rj(null), Bj(r);
+ if (t !== _4) {
+ r && tj() === r && nj(null), zj(r);
return;
}
if (!r) {
- B4(), C4().openItem(e);
+ z4(), S4().openItem(e);
return;
}
r.el().classList.add("vjs-peach-mini");
@@ -72952,26 +72968,26 @@ async function tOe(e) {
kind: "item",
item: n,
mediaIndex: null,
- key: x4("item", n.id, null),
+ key: b4("item", n.id, null),
meta: a,
off: [],
pending: !1
};
- p4 = i, L4(i);
+ f4 = i, I4(i);
}
- }), M4(n);
+ }), j4(n);
}
//#endregion
//#region src/react/stage/miniplayer.tsx
-var G4 = ({ name: e }) => /* @__PURE__ */ (0, O.jsx)("svg", {
+var W4 = ({ name: e }) => /* @__PURE__ */ (0, O.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, O.jsx)("use", { href: `#i-${e}` })
-}), nOe = { __html: "<svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#i-player-pause\"/></svg>" }, K4 = (e) => (t) => {
+}), nOe = { __html: "<svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#i-player-pause\"/></svg>" }, G4 = (e) => (t) => {
t.stopPropagation(), e();
}, rOe = (0, D.memo)(function() {
let e = (0, D.useRef)(null), t = (0, D.useRef)(null), n = (0, D.useRef)(null), r = (0, D.useRef)(null), i = (0, D.useRef)(null), a = (0, D.useRef)(null), o = (0, D.useRef)(null), s = (0, D.useRef)(null), c = (0, D.useRef)(null), l = (0, D.useRef)(null);
- return (0, D.useLayoutEffect)(() => (k4({
+ return (0, D.useLayoutEffect)(() => (O4({
root: e.current,
frame: n.current,
play: r.current,
@@ -72981,7 +72997,7 @@ var G4 = ({ name: e }) => /* @__PURE__ */ (0, O.jsx)("svg", {
title: s.current,
sub: c.current,
info: l.current
- }), () => k4(null)), []), (0, D.useEffect)(() => aOe(e.current, t.current), []), /* @__PURE__ */ (0, O.jsx)("aside", {
+ }), () => O4(null)), []), (0, D.useEffect)(() => aOe(e.current, t.current), []), /* @__PURE__ */ (0, O.jsx)("aside", {
ref: e,
"data-miniplayer": "",
id: "miniplayer",
@@ -73005,24 +73021,24 @@ var G4 = ({ name: e }) => /* @__PURE__ */ (0, O.jsx)("svg", {
id: "miniplayerExpand",
"aria-label": "展开到详情",
"aria-keyshortcuts": "i",
- onClick: K4(V4),
- children: /* @__PURE__ */ (0, O.jsx)(G4, { name: "maximize-2" })
+ onClick: G4(B4),
+ children: /* @__PURE__ */ (0, O.jsx)(W4, { name: "maximize-2" })
}),
/* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
"data-miniplayer-button": "close",
id: "miniplayerClose",
"aria-label": "关闭小窗",
- onClick: K4(B4),
- children: /* @__PURE__ */ (0, O.jsx)(G4, { name: "x" })
+ onClick: G4(z4),
+ children: /* @__PURE__ */ (0, O.jsx)(W4, { name: "x" })
}),
/* @__PURE__ */ (0, O.jsx)("button", {
ref: a,
type: "button",
"data-miniplayer-seek": "",
id: "miniplayerBack",
- onClick: K4(() => U4(-1)),
- children: /* @__PURE__ */ (0, O.jsx)(G4, { name: "rotate-ccw" })
+ onClick: G4(() => H4(-1)),
+ children: /* @__PURE__ */ (0, O.jsx)(W4, { name: "rotate-ccw" })
}),
/* @__PURE__ */ (0, O.jsx)("button", {
ref: r,
@@ -73031,7 +73047,7 @@ var G4 = ({ name: e }) => /* @__PURE__ */ (0, O.jsx)("svg", {
id: "miniplayerPlay",
"aria-label": "暂停",
"aria-keyshortcuts": "k",
- onClick: K4(eOe),
+ onClick: G4(eOe),
dangerouslySetInnerHTML: nOe
}),
/* @__PURE__ */ (0, O.jsx)("button", {
@@ -73039,8 +73055,8 @@ var G4 = ({ name: e }) => /* @__PURE__ */ (0, O.jsx)("svg", {
type: "button",
"data-miniplayer-seek": "",
id: "miniplayerAhead",
- onClick: K4(() => U4(1)),
- children: /* @__PURE__ */ (0, O.jsx)(G4, { name: "rotate-cw" })
+ onClick: G4(() => H4(1)),
+ children: /* @__PURE__ */ (0, O.jsx)(W4, { name: "rotate-cw" })
}),
/* @__PURE__ */ (0, O.jsx)("span", {
ref: i,
@@ -73057,7 +73073,7 @@ var G4 = ({ name: e }) => /* @__PURE__ */ (0, O.jsx)("svg", {
"data-miniplayer-info": "",
id: "miniplayerInfo",
"aria-label": "展开到详情",
- onClick: () => V4(),
+ onClick: () => B4(),
children: [/* @__PURE__ */ (0, O.jsx)("span", {
ref: s,
"data-miniplayer-title": "",
@@ -73131,35 +73147,35 @@ function aOe(e, t) {
}
//#endregion
//#region src/react/stage/stage.tsx
-var q4 = null, J4 = null, Y4 = /* @__PURE__ */ new Set(), X4 = 0, Z4 = null, Q4 = !1, $4 = !1, e3 = () => {
+var K4 = null, q4 = null, J4 = /* @__PURE__ */ new Set(), Y4 = 0, X4 = null, Z4 = !1, Q4 = !1, $4 = () => {
let e = document.getElementById("stage");
return e instanceof HTMLDialogElement ? e : null;
};
-function t3() {
- if (!q4) throw Error("舞台还没有接上宿主(configureStage)");
- return q4;
+function e3() {
+ if (!K4) throw Error("舞台还没有接上宿主(configureStage)");
+ return K4;
}
function oOe(e) {
- return Y4.add(e), () => {
- Y4.delete(e);
+ return J4.add(e), () => {
+ J4.delete(e);
};
}
function sOe() {
- for (let e of [...Y4]) e();
+ for (let e of [...J4]) e();
}
-function n3() {
+function t3() {
(0, Tt.flushSync)(sOe);
}
function cOe({ view: e }) {
return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [e ? /* @__PURE__ */ (0, O.jsx)(lOe, { view: e }, e.generation) : null, /* @__PURE__ */ (0, O.jsx)(rOe, {})] });
}
-var r3 = () => /* @__PURE__ */ (0, O.jsx)("div", {
+var n3 = () => /* @__PURE__ */ (0, O.jsx)("div", {
"data-skeleton": "detail",
role: "status",
"aria-label": "正在读取作品详情",
dangerouslySetInnerHTML: { __html: sEe() }
});
-function i3(e) {
+function r3(e) {
let t = e.currentTarget;
if (e.target !== t) return !1;
let n = t.getBoundingClientRect();
@@ -73169,7 +73185,7 @@ function lOe({ view: e }) {
let t = (0, D.useRef)(null);
(0, D.useLayoutEffect)(() => {
let e = t.current, n = (t) => {
- t.target === e && (t.preventDefault(), a3());
+ t.target === e && (t.preventDefault(), i3());
};
return e.addEventListener("cancel", n), () => e.removeEventListener("cancel", n);
}, []);
@@ -73181,27 +73197,27 @@ function lOe({ view: e }) {
"data-stage-kind": r.kind,
"aria-label": "作品详情",
onKeyDown: (e) => {
- e.key !== "Escape" || e.defaultPrevented || (e.preventDefault(), a3());
+ e.key !== "Escape" || e.defaultPrevented || (e.preventDefault(), i3());
},
onPointerDown: (e) => {
- $4 = i3(e);
+ Q4 = r3(e);
},
onClick: (e) => {
- $4 && i3(e) && a3();
+ Q4 && r3(e) && i3();
},
children: [
- n === "skeleton" ? /* @__PURE__ */ (0, O.jsx)(r3, {}, "skeleton") : null,
+ n === "skeleton" ? /* @__PURE__ */ (0, O.jsx)(n3, {}, "skeleton") : null,
n === "reveal" ? /* @__PURE__ */ (0, O.jsx)("div", {
"data-stage-fade": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, O.jsx)(r3, {})
+ children: /* @__PURE__ */ (0, O.jsx)(n3, {})
}, "fade") : null,
n === "skeleton" ? null : /* @__PURE__ */ (0, O.jsx)("div", {
"data-stage-scroll": "",
children: /* @__PURE__ */ (0, O.jsx)("div", {
className: "peach-react",
- children: /* @__PURE__ */ (0, O.jsx)(ST, {
- getContainer: () => e2(t.current),
+ children: /* @__PURE__ */ (0, O.jsx)(xT, {
+ getContainer: () => $0(t.current),
children: i
})
})
@@ -73209,14 +73225,14 @@ function lOe({ view: e }) {
]
});
}
-function a3() {
- J4 && !Q4 && (Q4 = !0, J4.request.actions.close());
+function i3() {
+ q4 && !Z4 && (Z4 = !0, q4.request.actions.close());
}
-function o3(e, t) {
- let n = e3();
+function a3(e, t) {
+ let n = $4();
n?.toggleAttribute("data-ambient", e), n?.toggleAttribute("data-theater", t);
}
-function s3(e) {
+function o3(e) {
if (e.kind === "jav") return {
kind: "jav",
props: {
@@ -73224,30 +73240,30 @@ function s3(e) {
readOnly: e.readOnly,
actions: {
...e.actions,
- close: a3
+ close: i3
}
}
};
let t = e.resume ?? null, n = (n) => {
let r = t && (e.id == null || e.id === n) ? t : null;
return t = null, r;
- }, r = () => t3().player.settings(), i = () => J4?.request === e;
+ }, r = () => e3().player.settings(), i = () => q4?.request === e;
if (e.kind === "item") {
let { kind: t, resume: a, actions: o, ...s } = e, c = {
...o,
- close: a3,
+ close: i3,
present: (e, t) => {
let n = e.performers;
- w4({
+ C4({
kind: "item",
item: e,
title: String(e.title || e.name || ""),
sub: String(n?.[0] || e.creator || "未归属")
- }), o3(r().ambientMode, r().theaterMode), queueMicrotask(() => {
+ }), a3(r().ambientMode, r().theaterMode), queueMicrotask(() => {
i() && o.present(e, t);
});
},
- mountPlayer: (e, t, r, i) => T4(e, {
+ mountPlayer: (e, t, r, i) => w4(e, {
kind: "item",
item: t,
autoplay: i?.autoplay,
@@ -73265,18 +73281,18 @@ function s3(e) {
}
let { kind: a, resume: o, actions: s, ...c } = e, l = {
...s,
- close: a3,
+ close: i3,
present: (e, t) => {
- w4({
+ C4({
kind: "follow",
item: e,
title: e.title || "",
sub: e.author || e.source_label || ""
- }), o3(t === "video" && r().ambientMode, t === "video" && r().theaterMode), queueMicrotask(() => {
+ }), a3(t === "video" && r().ambientMode, t === "video" && r().theaterMode), queueMicrotask(() => {
i() && s.present(e, t);
});
},
- mountPlayer: (e, t, r, i) => T4(e, {
+ mountPlayer: (e, t, r, i) => w4(e, {
kind: "follow",
item: t,
media: r,
@@ -73297,97 +73313,97 @@ function uOe(e, t) {
let n = e.querySelector(":scope > [data-stage-fade]");
e.setAttribute("data-stage-reveal", ""), e.getBoundingClientRect(), e.setAttribute("data-stage-revealing", "");
let r = 0, i = () => {
- clearTimeout(r), n?.removeEventListener("transitionend", a), e.removeAttribute("data-stage-reveal"), e.removeAttribute("data-stage-revealing"), J4?.generation === t && J4.phase === "reveal" && (J4 = {
- ...J4,
+ clearTimeout(r), n?.removeEventListener("transitionend", a), e.removeAttribute("data-stage-reveal"), e.removeAttribute("data-stage-revealing"), q4?.generation === t && q4.phase === "reveal" && (q4 = {
+ ...q4,
phase: "content"
- }, n3());
+ }, t3());
}, a = (e) => {
e.target === n && i();
};
n?.addEventListener("transitionend", a), r = window.setTimeout(i, 1e3);
}
-function c3(e) {
- let t = e3();
- return !J4 || J4.content.kind !== e || Q4 || !t?.open || t.hasAttribute("data-closing") ? null : t;
+function s3(e) {
+ let t = $4();
+ return !q4 || q4.content.kind !== e || Z4 || !t?.open || t.hasAttribute("data-closing") ? null : t;
}
async function dOe(e) {
- let t = c3(e.kind);
+ let t = s3(e.kind);
if (t) {
await pOe(e, t);
return;
}
- J4 && l3({ miniplayer: !1 });
- let n = ++X4, r = new AbortController();
- Z4 = r, Q4 = !1, $4 = !1, e.kind === "jav" ? B4() : O4(e.kind, e.id ?? NaN);
- let i = s3(e);
- J4 = {
+ q4 && c3({ miniplayer: !1 });
+ let n = ++Y4, r = new AbortController();
+ X4 = r, Z4 = !1, Q4 = !1, e.kind === "jav" ? z4() : D4(e.kind, e.id ?? NaN);
+ let i = o3(e);
+ q4 = {
generation: n,
request: e,
content: i,
phase: "skeleton"
};
- let a = i.kind === "item" ? tN(i.props, r.signal) : i.kind === "jav" ? M2(i.props, r.signal) : a2(i.props, r.signal);
- if (n !== X4 || J4?.request !== e) {
+ let a = i.kind === "item" ? eN(i.props, r.signal) : i.kind === "jav" ? j2(i.props, r.signal) : i2(i.props, r.signal);
+ if (n !== Y4 || q4?.request !== e) {
await a.catch(() => {});
return;
}
let o = fOe(i);
- J4 = {
- ...J4,
+ q4 = {
+ ...q4,
phase: o ? "content" : "skeleton"
- }, n3();
- let s = e3();
+ }, t3();
+ let s = $4();
if (!s) {
await a.catch(() => {});
return;
}
- o || Ts(s), document.body.setAttribute("data-detail-open", ""), s.open || s.showModal(), t2(s);
+ o || Ts(s), document.body.setAttribute("data-detail-open", ""), s.open || s.showModal(), e2(s);
try {
await a;
} catch {
if (r.signal.aborted) return;
}
- if (n !== X4 || !J4 || o) return;
+ if (n !== Y4 || !q4 || o) return;
let c = !!s.querySelector(".skeleton-awaiting");
- J4 = {
- ...J4,
+ q4 = {
+ ...q4,
phase: c ? "content" : "reveal"
- }, n3(), c || uOe(s, n), hs(s, ":scope>:not([data-stage-fade]) [data-reveal-line]");
+ }, t3(), c || uOe(s, n), hs(s, ":scope>:not([data-stage-fade]) [data-reveal-line]");
let l = document.activeElement;
(l === s || !s.contains(l)) && s.querySelector("#closeStage")?.focus();
}
function fOe(e) {
- if (e.kind === "jav") return !!U.getQueryData(A2(e.props.code));
- if (e.kind === "follow") return !!U.getQueryData(n2(e.props.id));
- let { queue: t, id: n } = e.props, r = t ? U.getQueryData(BM(t)) : null;
+ if (e.kind === "jav") return !!U.getQueryData(k2(e.props.code));
+ if (e.kind === "follow") return !!U.getQueryData(t2(e.props.id));
+ let { queue: t, id: n } = e.props, r = t ? U.getQueryData(zM(t)) : null;
if (t && !r) return !1;
- let i = r ? $M(r, n) : n;
- return i != null && !!U.getQueryData(zM(i));
+ let i = r ? QM(r, n) : n;
+ return i != null && !!U.getQueryData(RM(i));
}
async function pOe(e, t) {
- let n = ++X4;
- Z4?.abort();
+ let n = ++Y4;
+ X4?.abort();
let r = new AbortController();
- Z4 = r, $4 = !1;
- let i = s3(e);
+ X4 = r, Q4 = !1;
+ let i = o3(e);
try {
- i.kind === "item" ? await tN(i.props, r.signal) : i.kind === "jav" ? await M2(i.props, r.signal) : await a2(i.props, r.signal);
+ i.kind === "item" ? await eN(i.props, r.signal) : i.kind === "jav" ? await j2(i.props, r.signal) : await i2(i.props, r.signal);
} catch {
if (r.signal.aborted) return;
}
- if (n !== X4 || !J4 || c3(e.kind) !== t) return;
- e.kind === "jav" ? B4() : O4(e.kind, e.id ?? NaN), cl(t), ZA(), J4 = {
- ...J4,
+ if (n !== Y4 || !q4 || s3(e.kind) !== t) return;
+ e.kind === "jav" ? z4() : D4(e.kind, e.id ?? NaN), cl(t), XA(), q4 = {
+ ...q4,
request: e,
content: i,
phase: "content"
- }, n3(), t.removeAttribute("data-stage-reveal"), t.removeAttribute("data-stage-revealing"), t.querySelector(":scope > [data-stage-scroll]")?.scrollTo({ top: 0 }), hs(t, ":scope>:not([data-stage-fade]) [data-reveal-line]");
+ }, t3(), t.removeAttribute("data-stage-reveal"), t.removeAttribute("data-stage-revealing"), t.querySelector(":scope > [data-stage-scroll]")?.scrollTo({ top: 0 }), hs(t, ":scope>:not([data-stage-fade]) [data-reveal-line]");
let a = document.activeElement;
(a === t || !t.contains(a)) && (t.querySelector("[data-mix-item][aria-current=\"true\"]") || t.querySelector("#closeStage"))?.focus({ preventScroll: !0 });
}
function mOe() {
- t2(null);
- let e = e3();
+ e2(null);
+ let e = $4();
return !e?.open || e.hasAttribute("data-closing") || matchMedia("(prefers-reduced-motion: reduce)").matches ? Promise.resolve() : (e.setAttribute("data-closing", ""), new Promise((t) => {
let n = 0, r = () => {
clearTimeout(n), e.removeEventListener("animationend", i), t();
@@ -73397,84 +73413,84 @@ function mOe() {
e.addEventListener("animationend", i), n = window.setTimeout(r, 380);
}));
}
-function l3({ miniplayer: e = !0 } = {}) {
- if (X4++, Z4?.abort(), Z4 = null, D4(e), !J4) return;
- let t = e3();
- t && cl(t), ZA(), t2(null), t?.open && t.close(), J4 = null, Q4 = !1, $4 = !1, n3(), w4(null), document.body.removeAttribute("data-detail-open");
+function c3({ miniplayer: e = !0 } = {}) {
+ if (Y4++, X4?.abort(), X4 = null, E4(e), !q4) return;
+ let t = $4();
+ t && cl(t), XA(), e2(null), t?.open && t.close(), q4 = null, Z4 = !1, Q4 = !1, t3(), C4(null), document.body.removeAttribute("data-detail-open");
}
function hOe(e) {
- J4 && (J4 = {
- ...J4,
- content: J4.content.kind === "item" ? {
+ q4 && (q4 = {
+ ...q4,
+ content: q4.content.kind === "item" ? {
kind: "item",
props: {
- ...J4.content.props,
+ ...q4.content.props,
...e
}
- } : J4.content.kind === "jav" ? J4.content : {
+ } : q4.content.kind === "jav" ? q4.content : {
kind: "follow",
props: {
- ...J4.content.props,
+ ...q4.content.props,
...e.relatedLimit === void 0 ? {} : { relatedLimit: e.relatedLimit }
}
}
- }, n3());
+ }, t3());
}
function gOe() {
- let e = qDe(), t = e?.kind === "item" ? e.item : null, n = t ? Ya(t, t3().player.settings().javImage) : "";
+ let e = qDe(), t = e?.kind === "item" ? e.item : null, n = t ? Ya(t, e3().player.settings().javImage) : "";
if (!n) return;
- let r = E4();
+ let r = T4();
r ? r.poster(n) : document.getElementById("vid")?.setAttribute("poster", n);
}
var _Oe = {
open: dOe,
update: hOe,
exit: mOe,
- dispose: l3,
- requestClose: a3,
+ dispose: c3,
+ requestClose: i3,
repaintPoster: gOe,
- isOpen: () => !!J4,
- showing: () => J4 && c3(J4.content.kind) ? J4.content.kind : null,
+ isOpen: () => !!q4,
+ showing: () => q4 && s3(q4.content.kind) ? q4.content.kind : null,
activeVideo: () => ZDe(),
mountWallPlayer: JDe,
toggleTheater: () => {
- J4 && Dj(!t3().player.settings().theaterMode);
+ q4 && Ej(!e3().player.settings().theaterMode);
},
- toggleMiniplayer: () => H4(),
- closeMiniplayer: () => B4(),
- miniplayerActive: () => A4(),
- miniplayerTakesCard: (e) => W4(e),
+ toggleMiniplayer: () => V4(),
+ closeMiniplayer: () => z4(),
+ miniplayerActive: () => k4(),
+ miniplayerTakesCard: (e) => U4(e),
miniplayerPlay: (e) => {
tOe(e);
}
};
function vOe(e) {
- return q4 = e, KDe(e, {
- isOpen: () => !!J4,
- requestClose: a3
+ return K4 = e, KDe(e, {
+ isOpen: () => !!q4,
+ requestClose: i3
}), _Oe;
}
function yOe() {
- let e = (0, D.useSyncExternalStore)(oOe, () => J4);
- return q4 ? /* @__PURE__ */ (0, O.jsx)(cOe, { view: e }) : null;
+ let e = (0, D.useSyncExternalStore)(oOe, () => q4);
+ return K4 ? /* @__PURE__ */ (0, O.jsx)(cOe, { view: e }) : null;
}
//#endregion
//#region src/react/stats/stats.ts
-var bOe = "/api/stats", u3 = ["stats"], d3 = (e) => V(bOe, e);
+var bOe = "/api/stats", l3 = ["stats"], u3 = (e) => V(bOe, e);
async function xOe(e) {
await U.fetchQuery({
- queryKey: u3,
- queryFn: () => d3(e)
+ queryKey: l3,
+ queryFn: () => u3(e)
});
}
-var f3 = (e) => e != null && Number.isFinite(e), SOe = (e) => f3(e) ? e.toLocaleString() : "未取得", COe = (e, t) => f3(e) && f3(t) && t > 0 ? Math.min(100, Math.max(0, Math.round(e / t * 100))) : 0, wOe = (e, t) => {
+var d3 = (e) => e != null && Number.isFinite(e), SOe = (e) => d3(e) ? e.toLocaleString() : "未取得", COe = (e, t) => d3(e) && d3(t) && t > 0 ? Math.min(100, Math.max(0, Math.round(e / t * 100))) : 0, wOe = (e, t) => {
let n = COe(e, t);
- return !n && f3(e) && e > 0 && f3(t) && t > 0 ? "<1%" : `${n}%`;
-}, p3 = (e) => {
- if (!f3(e)) return "未取得";
+ return !n && d3(e) && e > 0 && d3(t) && t > 0 ? "<1%" : `${n}%`;
+}, f3 = (e) => {
+ if (!d3(e)) return "未取得";
let t = Math.max(0, e);
return t >= 172800 ? `${(t / 86400).toLocaleString(void 0, { maximumFractionDigits: 1 })} 天` : t >= 3600 ? `${(t / 3600).toFixed(1)} 小时` : `${Math.round(t / 60)} 分钟`;
-}, m3 = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, h3 = (e) => (e.max_reached || 0) * 100, TOe = (e) => e.kind === "online" ? "在线直接观看" : m3(e) < h3(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", EOe = (e) => `${e.kind === "online" ? "/posts/" : "/assets/"}${e.id}`;
+}, p3 = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, m3 = (e) => (e.max_reached || 0) * 100, TOe = (e) => e.kind === "online" ? "在线直接观看" : p3(e) < m3(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", EOe = (e) => `${e.kind === "online" ? "/posts/" : "/assets/"}${e.id}`;
function DOe(e, t = 6) {
let n = e.filter((e) => Number.isFinite(e.value) && e.value >= 0);
if (n.length <= t) return n;
@@ -73501,10 +73517,10 @@ var OOe = (e) => Math.max(1, ...e) * 1.1, kOe = (e, t) => e > 0 ? Math.max(e, t
短: "5–15 分钟",
中: "15–40 分钟",
长: ">40 分钟"
-}, g3 = (e, t = {}) => e.map((e) => ({
+}, h3 = (e, t = {}) => e.map((e) => ({
name: t[e.k] ?? e.k,
value: e.n
-})), POe = (e) => g3(e, NOe), FOe = [
+})), POe = (e) => h3(e, NOe), FOe = [
[
1,
1,
@@ -73546,7 +73562,7 @@ var OOe = (e) => Math.max(1, ...e) * 1.1, kOe = (e, t) => e > 0 ? Math.max(e, t
}));
//#endregion
//#region node_modules/d3-array/src/max.js
-function _3(e, t) {
+function g3(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 {
@@ -73557,7 +73573,7 @@ function _3(e, t) {
}
//#endregion
//#region node_modules/d3-array/src/min.js
-function v3(e, t) {
+function _3(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 {
@@ -73568,7 +73584,7 @@ function v3(e, t) {
}
//#endregion
//#region node_modules/d3-array/src/sum.js
-function y3(e, t) {
+function v3(e, t) {
let n = 0;
if (t === void 0) for (let t of e) (t = +t) && (n += t);
else {
@@ -73584,23 +73600,23 @@ function LOe(e, t) {
}
//#endregion
//#region node_modules/d3-sankey/src/constant.js
-function b3(e) {
+function y3(e) {
return function() {
return e;
};
}
//#endregion
//#region node_modules/d3-sankey/src/sankey.js
+function b3(e, t) {
+ return S3(e.source, t.source) || e.index - t.index;
+}
function x3(e, t) {
- return C3(e.source, t.source) || e.index - t.index;
+ return S3(e.target, t.target) || e.index - t.index;
}
function S3(e, t) {
- return C3(e.target, t.target) || e.index - t.index;
-}
-function C3(e, t) {
return e.y0 - t.y0;
}
-function w3(e) {
+function C3(e) {
return e.value;
}
function ROe(e) {
@@ -73612,12 +73628,12 @@ function zOe(e) {
function BOe(e) {
return e.links;
}
-function T3(e, t) {
+function w3(e, t) {
let n = e.get(t);
if (!n) throw Error("missing: " + t);
return n;
}
-function E3({ nodes: e }) {
+function T3({ 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;
@@ -73631,14 +73647,14 @@ function VOe() {
nodes: d.apply(null, arguments),
links: f.apply(null, arguments)
};
- return h(e), g(e), _(e), v(e), x(e), E3(e), e;
+ return h(e), g(e), _(e), v(e), x(e), T3(e), e;
}
m.update = function(e) {
- return E3(e), e;
+ return T3(e), e;
}, m.nodeId = function(e) {
- return arguments.length ? (s = typeof e == "function" ? e : b3(e), m) : s;
+ return arguments.length ? (s = typeof e == "function" ? e : y3(e), m) : s;
}, m.nodeAlign = function(e) {
- return arguments.length ? (c = typeof e == "function" ? e : b3(e), m) : c;
+ return arguments.length ? (c = typeof e == "function" ? e : y3(e), m) : c;
}, m.nodeSort = function(e) {
return arguments.length ? (l = e, m) : l;
}, m.nodeWidth = function(e) {
@@ -73646,9 +73662,9 @@ function VOe() {
}, m.nodePadding = function(e) {
return arguments.length ? (a = o = +e, m) : a;
}, m.nodes = function(e) {
- return arguments.length ? (d = typeof e == "function" ? e : b3(e), m) : d;
+ return arguments.length ? (d = typeof e == "function" ? e : y3(e), m) : d;
}, m.links = function(e) {
- return arguments.length ? (f = typeof e == "function" ? e : b3(e), m) : f;
+ return arguments.length ? (f = typeof e == "function" ? e : y3(e), m) : f;
}, m.linkSort = function(e) {
return arguments.length ? (u = e, m) : u;
}, m.size = function(i) {
@@ -73664,12 +73680,12 @@ function VOe() {
for (let [e, r] of t.entries()) {
r.index = e;
let { source: t, target: i } = r;
- typeof t != "object" && (t = r.source = T3(n, t)), typeof i != "object" && (i = r.target = T3(n, i)), t.sourceLinks.push(r), i.targetLinks.push(r);
+ typeof t != "object" && (t = r.source = w3(n, t)), typeof i != "object" && (i = r.target = w3(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(y3(t.sourceLinks, w3), y3(t.targetLinks, w3)) : t.fixedValue;
+ for (let t of e) t.value = t.fixedValue === void 0 ? Math.max(v3(t.sourceLinks, C3), v3(t.targetLinks, C3)) : t.fixedValue;
}
function _({ nodes: e }) {
let t = e.length, n = new Set(e), r = /* @__PURE__ */ new Set(), i = 0;
@@ -73694,7 +73710,7 @@ function VOe() {
}
}
function y({ nodes: t }) {
- let r = _3(t, (e) => e.depth) + 1, a = (n - e - i) / (r - 1), o = Array(r);
+ let r = g3(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];
@@ -73703,7 +73719,7 @@ function VOe() {
return o;
}
function b(e) {
- let n = v3(e, (e) => (r - t - (e.length - 1) * o) / y3(e, w3));
+ let n = _3(e, (e) => (r - t - (e.length - 1) * o) / v3(e, C3));
for (let i of e) {
let e = t;
for (let t of i) {
@@ -73720,7 +73736,7 @@ function VOe() {
}
function x(e) {
let n = y(e);
- o = Math.min(a, (r - t) / (_3(n, (e) => e.length) - 1)), b(n);
+ o = Math.min(a, (r - t) / (g3(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);
@@ -73739,7 +73755,7 @@ function VOe() {
let i = (n / r - e.y0) * t;
e.y0 += i, e.y1 += i, D(e);
}
- l === void 0 && i.sort(C3), w(i, n);
+ l === void 0 && i.sort(S3), w(i, n);
}
}
function C(e, t, n) {
@@ -73755,7 +73771,7 @@ function VOe() {
let i = (n / r - e.y0) * t;
e.y0 += i, e.y1 += i, D(e);
}
- l === void 0 && i.sort(C3), w(i, n);
+ l === void 0 && i.sort(S3), w(i, n);
}
}
function w(e, n) {
@@ -73776,12 +73792,12 @@ function VOe() {
}
function D({ sourceLinks: e, targetLinks: t }) {
if (u === void 0) {
- for (let { source: { sourceLinks: e } } of t) e.sort(S3);
- for (let { target: { targetLinks: t } } of e) t.sort(x3);
+ for (let { source: { sourceLinks: e } } of t) e.sort(x3);
+ for (let { target: { targetLinks: t } } of e) t.sort(b3);
}
}
function O(e) {
- if (u === void 0) for (let { sourceLinks: t, targetLinks: n } of e) t.sort(S3), n.sort(x3);
+ if (u === void 0) for (let { sourceLinks: t, targetLinks: n } of e) t.sort(x3), n.sort(b3);
}
function k(e, t) {
let n = e.y0 - (e.sourceLinks.length - 1) * o / 2;
@@ -73811,15 +73827,15 @@ function VOe() {
}
//#endregion
//#region node_modules/d3-path/src/path.js
-var D3 = Math.PI, O3 = 2 * D3, k3 = 1e-6, HOe = O3 - k3;
-function A3() {
+var E3 = Math.PI, D3 = 2 * E3, O3 = 1e-6, HOe = D3 - O3;
+function k3() {
this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "";
}
-function j3() {
- return new A3();
+function A3() {
+ return new k3();
}
-A3.prototype = j3.prototype = {
- constructor: A3,
+k3.prototype = A3.prototype = {
+ constructor: k3,
moveTo: function(e, t) {
this._ += "M" + (this._x0 = this._x1 = +e) + "," + (this._y0 = this._y1 = +t);
},
@@ -73840,11 +73856,11 @@ A3.prototype = j3.prototype = {
var a = this._x1, o = this._y1, s = n - e, c = r - t, l = a - e, u = o - t, d = l * l + u * u;
if (i < 0) throw Error("negative radius: " + i);
if (this._x1 === null) this._ += "M" + (this._x1 = e) + "," + (this._y1 = t);
- else if (d > k3) {
- if (!(Math.abs(u * s - c * l) > k3) || !i) this._ += "L" + (this._x1 = e) + "," + (this._y1 = t);
+ else if (d > O3) {
+ if (!(Math.abs(u * s - c * l) > O3) || !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((D3 - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
- Math.abs(y - 1) > k3 && (this._ += "L" + (e + y * l) + "," + (t + y * u)), this._ += "A" + i + "," + i + ",0,0," + +(u * f > l * p) + "," + (this._x1 = e + b * s) + "," + (this._y1 = t + b * c);
+ var f = n - a, p = r - o, m = s * s + c * c, h = f * f + p * p, g = Math.sqrt(m), _ = Math.sqrt(d), v = i * Math.tan((E3 - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
+ Math.abs(y - 1) > O3 && (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);
}
}
},
@@ -73852,7 +73868,7 @@ A3.prototype = j3.prototype = {
e = +e, t = +t, n = +n, a = !!a;
var o = n * Math.cos(r), s = n * Math.sin(r), c = e + o, l = t + s, u = 1 ^ a, d = a ? r - i : i - r;
if (n < 0) throw Error("negative radius: " + n);
- this._x1 === null ? this._ += "M" + c + "," + l : (Math.abs(this._x1 - c) > k3 || Math.abs(this._y1 - l) > k3) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % O3 + O3), d > HOe ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > k3 && (this._ += "A" + n + "," + n + ",0," + +(d >= D3) + "," + 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) > O3 || Math.abs(this._y1 - l) > O3) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % D3 + D3), d > HOe ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > O3 && (this._ += "A" + n + "," + n + ",0," + +(d >= E3) + "," + 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";
@@ -73863,7 +73879,7 @@ A3.prototype = j3.prototype = {
};
//#endregion
//#region node_modules/d3-shape/src/constant.js
-function M3(e) {
+function j3(e) {
return function() {
return e;
};
@@ -73891,16 +73907,16 @@ function JOe(e) {
var t = KOe, n = qOe, r = UOe, i = WOe, a = null;
function o() {
var o, s = GOe.call(arguments), c = t.apply(this, s), l = n.apply(this, s);
- if (a ||= o = j3(), e(a, +r.apply(this, (s[0] = c, s)), +i.apply(this, s), +r.apply(this, (s[0] = l, s)), +i.apply(this, s)), o) return a = null, o + "" || null;
+ if (a ||= o = A3(), 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 : M3(+e), o) : r;
+ return arguments.length ? (r = typeof e == "function" ? e : j3(+e), o) : r;
}, o.y = function(e) {
- return arguments.length ? (i = typeof e == "function" ? e : M3(+e), o) : i;
+ return arguments.length ? (i = typeof e == "function" ? e : j3(+e), o) : i;
}, o.context = function(e) {
return arguments.length ? (a = e ?? null, o) : a;
}, o;
@@ -73924,7 +73940,7 @@ function $Oe() {
}
//#endregion
//#region src/react/taste/taste.ts
-var eke = "/api/taste", N3 = "/api/taste/refresh", tke = "/api/taste/import", P3 = "/api/taste/source", F3 = (e) => ["taste", e], nke = ["taste", "refresh"], rke = [
+var eke = "/api/taste", M3 = "/api/taste/refresh", tke = "/api/taste/import", N3 = "/api/taste/source", P3 = (e) => ["taste", e], nke = ["taste", "refresh"], rke = [
["7d", "最近 7 天"],
["30d", "最近 30 天"],
["90d", "最近 90 天"],
@@ -73935,20 +73951,20 @@ var eke = "/api/taste", N3 = "/api/taste/refresh", tke = "/api/taste/import", P3
day: "numeric",
hour: "2-digit",
minute: "2-digit"
-}) : "—", ske = (e, t) => H(P3, {
+}) : "—", ske = (e, t) => H(N3, {
...e,
window: t
-}), I3 = (e, t, n = !1) => V(`${eke}?window=${e}${n ? "&retry=1" : ""}`, t), cke = (e) => V(N3, e);
+}), F3 = (e, t, n = !1) => V(`${eke}?window=${e}${n ? "&retry=1" : ""}`, t), cke = (e) => V(M3, e);
async function lke(e, t) {
await U.fetchQuery({
- queryKey: F3(e),
- queryFn: () => I3(e, t)
+ queryKey: P3(e),
+ queryFn: () => F3(e, t)
});
}
-var uke = (e) => H(N3, {
+var uke = (e) => H(M3, {
window: e,
background: !0
-}), dke = (e, t) => H(P3, {
+}), dke = (e, t) => H(N3, {
operation: "remove",
source_key: e,
window: t
@@ -73972,17 +73988,17 @@ async function fke(e) {
}
return n;
}
-var pke = 1e4, L3 = (e) => e ? new Date(e).toLocaleDateString("zh-CN") : "—";
+var pke = 1e4, I3 = (e) => e ? new Date(e).toLocaleDateString("zh-CN") : "—";
function mke(e) {
let t = `${Number(e.history_sources || 0).toLocaleString()} 个数据源`;
if (!e.range_start && !e.range_end) return t;
let n = e.range_start?.slice(0, 4) === e.range_end?.slice(0, 4), r = (e) => e && n ? new Date(e).toLocaleDateString("zh-CN", {
month: "numeric",
day: "numeric"
- }) : L3(e);
+ }) : I3(e);
return `${t} · ${r(e.range_start)}–${r(e.range_end)}`;
}
-var hke = p3, gke = (e) => e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).sort((e, t) => Number(t.score) - Number(e.score)), _ke = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);
+var hke = f3, gke = (e) => e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).sort((e, t) => Number(t.score) - Number(e.score)), _ke = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);
function vke(e) {
if (e.web_visits == null && !e.web_bookmarks) return Number(e.score || e.visits || 0).toLocaleString();
let t = [], n = Number(e.web_bookmarks || 0), r = Number(e.web_visits ?? e.visits ?? 0) - n;
@@ -73992,22 +74008,22 @@ function yke(e) {
let t = e.map(_ke), n = Math.max(1, ...t);
return t.map((e) => Math.max(0, Math.min(100, e / n * 100)));
}
-var R3 = (e, t) => e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).map((e) => ({
+var L3 = (e, t) => e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).map((e) => ({
name: e.name,
value: Number(e.score)
})).sort((e, t) => t.value - e.value).slice(0, t);
function bke(e) {
- let t = R3(e, 6);
+ let t = L3(e, 6);
return t.length < 3 ? [] : t;
}
-var z3 = {
+var R3 = {
width: 720,
height: 435
}, xke = {
source: 145,
target: 545
-}, B3 = 30, Ske = 240;
-function V3(e, t, n) {
+}, z3 = 30, Ske = 240;
+function B3(e, t, n) {
let r = /* @__PURE__ */ new Map();
for (let n of e) r.set(n[t], (r.get(n[t]) ?? 0) + n.value);
if (r.size <= 12) return (e) => e;
@@ -74017,7 +74033,7 @@ function V3(e, t, n) {
function Cke(e = []) {
let t = e.filter((e) => e.source && e.target && Number.isFinite(e.value) && e.value > 0);
if (!t.length) return null;
- let n = V3(t, "source", (e) => `其余 ${e.toLocaleString()} 个网站`), r = V3(t, "target", (e) => `其余 ${e.toLocaleString()} 位创作者`), i = /* @__PURE__ */ new Map();
+ let n = B3(t, "source", (e) => `其余 ${e.toLocaleString()} 个网站`), r = B3(t, "target", (e) => `其余 ${e.toLocaleString()} 位创作者`), i = /* @__PURE__ */ new Map();
for (let e of t) {
let t = n(e.source), a = r(e.target), o = JSON.stringify([t, a]), s = i.get(o);
s ? s.value += e.value : i.set(o, {
@@ -74026,7 +74042,7 @@ function Cke(e = []) {
value: e.value
});
}
- let a = [...i.values()], o = [...new Set(a.map((e) => e.source))], s = [...new Set(a.map((e) => e.target))], c = Math.max(o.length, s.length), l = Math.max(404, 16 + (c - 1) * B3 + Ske), u = VOe().nodeId((e) => e.id).nodeWidth(10).nodePadding(B3).extent([[155, 16], [535, l]])({
+ let a = [...i.values()], o = [...new Set(a.map((e) => e.source))], s = [...new Set(a.map((e) => e.target))], c = Math.max(o.length, s.length), l = Math.max(404, 16 + (c - 1) * z3 + Ske), u = VOe().nodeId((e) => e.id).nodeWidth(10).nodePadding(z3).extent([[155, 16], [535, l]])({
nodes: [...o.map((e) => ({
id: `source:${e}`,
name: e,
@@ -74069,10 +74085,10 @@ function Cke(e = []) {
};
}),
total: d,
- height: l + z3.height - 404
+ height: l + R3.height - 404
};
}
-var wke = (e) => Sn(e, 17), H3 = {
+var wke = (e) => Sn(e, 17), V3 = {
performers: "艺人",
creators: "卖家",
studios: "厂牌",
@@ -74134,8 +74150,8 @@ var wke = (e) => Sn(e, 17), H3 = {
"alphabet",
"字母表",
"text-aa"
-]], U3 = (e) => e === "compact" ? "compact" : "big";
-function W3(e, t) {
+]], H3 = (e) => e === "compact" ? "compact" : "big";
+function U3(e, t) {
let n = new URLSearchParams(t);
return {
kind: e,
@@ -74145,7 +74161,7 @@ function W3(e, t) {
category: n.get("category") || "all"
};
}
-var G3 = (e, t, n) => as(e.map(([e, t, n]) => ({
+var W3 = (e, t, n) => as(e.map(([e, t, n]) => ({
value: e,
label: t,
symbol: n
@@ -74158,7 +74174,7 @@ var G3 = (e, t, n) => as(e.map(([e, t, n]) => ({
<div class="count" data-filter-row="bottom"><span class="mono"><span class="countskeleton"></span></span>
${dc("tag-view", "标签视图", Ake, e)}</div></div>`;
function Mke({ kind: e, q: t, scope: n, view: r, category: i }, a) {
- let o = H3[e] || "标签", s = e !== "tags", c = e === "studios" || e === "agencies", l = s ? dc("people-layout", o + "索引版式", c ? Eke : Tke, a) : "";
+ let o = V3[e] || "标签", s = e !== "tags", c = e === "studios" || e === "agencies", l = s ? dc("people-layout", o + "索引版式", c ? Eke : Tke, a) : "";
return `<div class="ihead peach-react" data-index-head>
<h2 class="disp indexheading">${o}</h2>
${s ? "<span class=\"mono\" id=\"indexCount\"><span class=\"countskeleton\"></span></span>" : ""}${l}
@@ -74170,7 +74186,7 @@ function Mke({ kind: e, q: t, scope: n, view: r, category: i }, a) {
}) : ""}
<div data-index-search class="ml-auto min-w-0 max-w-80 flex-1">${Uo("", t, "过滤" + o)}</div>
</div>
- ${e === "tags" ? G3(Oke, n, "词表") : e === "performers" || e === "creators" ? G3(kke, e === "performers" && n === "online" ? "online" : e, "人物名册") : c ? G3(Dke, e, "公司类型") : ""}
+ ${e === "tags" ? W3(Oke, n, "词表") : e === "performers" || e === "creators" ? W3(kke, e === "performers" && n === "online" ? "online" : e, "人物名册") : c ? W3(Dke, e, "公司类型") : ""}
${e === "tags" ? jke(r) : ""}
${e === "performers" && n !== "online" ? Ebe(i) : ""}
${vs({
@@ -74180,17 +74196,17 @@ function Mke({ kind: e, q: t, scope: n, view: r, category: i }, a) {
})}`;
}
var Nke = (e) => e.match(/data-skeleton="([^"]*)"/)?.[1] || "";
-function K3(e, t, n) {
+function G3(e, t, n) {
let r = Mke(t, n);
e.querySelector("[data-skeleton]")?.dataset.skeleton !== Nke(r) && (e.innerHTML = r, Ts(e));
}
//#endregion
//#region src/react/router/pages/index-entity.tsx
-var Pke = () => Hl, Fke = () => Dl, q3 = () => document.getElementById("index");
-function J3(e, t, n = {}) {
+var Pke = () => Hl, Fke = () => Dl, K3 = () => document.getElementById("index");
+function q3(e, t, n = {}) {
let r = (0, D.useSyncExternalStore)($l, Pke);
- RB();
- let i = _V(XV.navigation.location.pathname), a = (0, D.useRef)({
+ LB();
+ let i = gV(YV.navigation.location.pathname), a = (0, D.useRef)({
mounted: !0,
epoch: -1,
opens: -1,
@@ -74215,7 +74231,7 @@ function J3(e, t, n = {}) {
let t = a.current;
if (!t.mounted) return;
let n = t.epoch !== e || t.opens !== Hl, r = t.opens !== Hl;
- if (t.epoch = e, t.opens = Hl, _V(XV.navigation.location.pathname)) {
+ if (t.epoch = e, t.opens = Hl, gV(YV.navigation.location.pathname)) {
n && o.current.options.onCovered?.();
return;
}
@@ -74237,12 +74253,12 @@ function J3(e, t, n = {}) {
]);
}
async function Ike(e, t, n, r) {
- let i = q3();
+ let i = K3();
if (!i) return;
let a = `/${t}`;
e.surfaceChanged("index", a);
- let o = W3(t, n), s = U3(aA().value.peopleLayout);
- K3(i, o, s), await zV(a, {
+ let o = U3(t, n), s = H3(iA().value.peopleLayout);
+ G3(i, o, s), await RV(a, {
...o,
layout: s,
selectMode: Dl,
@@ -74253,22 +74269,22 @@ async function Ike(e, t, n, r) {
}) && r() && e.surfaceShown?.("index", a);
}
function Lke(e) {
- let t = q3(), n = t ? FV(t) : null;
+ let t = K3(), n = t ? PV(t) : null;
return !!t && !t.hidden && !!n && n.path === e && n.host.isConnected;
}
function Rke({ epoch: e }) {
- let t = (0, D.useContext)(uU), n = RB(), r = n.pathname.split("/").filter(Boolean)[0];
- return J3(e, (e, i) => {
+ let t = (0, D.useContext)(lU), n = LB(), r = n.pathname.split("/").filter(Boolean)[0];
+ return q3(e, (e, i) => {
t && Ike(t, r, n.search, i);
}, { shown: () => Lke(`/${r}`) }), null;
}
function zke() {
- let e = lU(), t = (0, D.useSyncExternalStore)($l, Fke), n = (0, D.useRef)(t);
+ let e = cU(), t = (0, D.useSyncExternalStore)($l, Fke), n = (0, D.useRef)(t);
return (0, D.useEffect)(() => {
- n.current !== t && (n.current = t, window.location.pathname === "/tags" && BV(q3(), { selectMode: t }));
+ n.current !== t && (n.current = t, window.location.pathname === "/tags" && zV(K3(), { selectMode: t }));
}, [t]), /* @__PURE__ */ (0, O.jsx)(Rke, { epoch: e }, e);
}
-function Y3(e) {
+function J3(e) {
let t;
try {
t = decodeURIComponent(e);
@@ -74282,9 +74298,9 @@ function Y3(e) {
name: a
} : null;
}
-var X3 = /* @__PURE__ */ new WeakMap();
+var Y3 = /* @__PURE__ */ new WeakMap();
function Bke(e) {
- let t = X3.get(e);
+ let t = Y3.get(e);
return t || (t = {
helpers: {
...e.grid.helpers,
@@ -74294,14 +74310,14 @@ function Bke(e) {
...e.grid.actions,
revealSource: e.revealSource
}
- }, X3.set(e, t)), t;
+ }, Y3.set(e, t)), t;
}
-function Z3() {
- let e = q3(), t = e ? FV(e) : null;
+function X3() {
+ let e = K3(), t = e ? PV(e) : null;
return !!t && t.path.endsWith("/*") && t.host.isConnected;
}
async function Vke(e, t, n, r, i, a, o) {
- let s = q3();
+ let s = K3();
if (!s) return;
let { segment: c, kind: l, name: u } = n;
if (e.surfaceChanged("entity", r), await t.loading(l, u, a), !a()) return;
@@ -74324,18 +74340,18 @@ async function Vke(e, t, n, r, i, a, o) {
}
}
};
- await zV(`/${c}/*`, g, {
+ await RV(`/${c}/*`, g, {
container: s,
isCurrent: a,
place: (e) => (e.replaceChildren(...f), p.firstElementChild)
- }) && a() && Z3() && (e.surfaceShown?.("entity", r), window.scrollTo({
+ }) && a() && X3() && (e.surfaceShown?.("entity", r), window.scrollTo({
top: 0,
behavior: "smooth"
}));
}
function Hke({ target: e }) {
- let t = (0, D.useContext)(uU), n = lU(), r = RB();
- return J3(n, (n, i) => {
+ let t = (0, D.useContext)(lU), n = cU(), r = LB();
+ return q3(n, (n, i) => {
let a = t?.entity;
t && a && (async () => {
let o = new URLSearchParams({ kind: e.kind });
@@ -74351,9 +74367,9 @@ function Hke({ target: e }) {
}).catch(() => null);
if (!i()) return;
if (s?.redirect) {
- ZV(en(s.redirect.kind, s.redirect.name, s.redirect.id) + r.search + r.hash, {
+ XV(en(s.redirect.kind, s.redirect.name, s.redirect.id) + r.search + r.hash, {
replace: !0,
- state: XV.navigation.location.state
+ state: YV.navigation.location.state
});
return;
}
@@ -74365,20 +74381,20 @@ function Hke({ target: e }) {
l === r.pathname ? (n || !a.refresh(e.kind, c, r.search)) && Vke(t, a, {
...e,
name: c
- }, r.pathname, r.search, i, s) : ZV(l + r.search + r.hash, {
+ }, r.pathname, r.search, i, s) : XV(l + r.search + r.hash, {
replace: !0,
- state: XV.navigation.location.state
+ state: YV.navigation.location.state
});
})();
- }, { shown: () => Z3() && !q3()?.hidden }), null;
+ }, { shown: () => X3() && !K3()?.hidden }), null;
}
function Uke() {
- let e = Y3(RB().pathname);
+ let e = J3(LB().pathname);
return e ? /* @__PURE__ */ (0, O.jsx)(Hke, { target: e }, JSON.stringify([e.kind, e.name])) : null;
}
//#endregion
//#region src/react/jav/jav-header.tsx
-function Q3({ tab: e, navigate: t, find: n }) {
+function Z3({ tab: e, navigate: t, find: n }) {
return /* @__PURE__ */ (0, O.jsxs)("div", {
className: "flex w-full flex-col gap-4",
children: [/* @__PURE__ */ (0, O.jsxs)("div", {
@@ -74387,13 +74403,13 @@ function Q3({ tab: e, navigate: t, find: n }) {
"data-page-title": "",
className: "text-display-4-medium text-text-primary max-board-narrow:text-title-1-medium",
children: "JAV"
- }), /* @__PURE__ */ (0, O.jsx)(q, {
+ }), /* @__PURE__ */ (0, O.jsx)(J, {
variant: "primary",
onClick: n,
children: "查找资源"
})]
- }), /* @__PURE__ */ (0, O.jsx)(HQ, {
- tabs: w$.map(([e, t]) => ({
+ }), /* @__PURE__ */ (0, O.jsx)(VQ, {
+ tabs: C$.map(([e, t]) => ({
value: e,
label: t
})),
@@ -74406,11 +74422,11 @@ function Q3({ tab: e, navigate: t, find: n }) {
}
function Wke({ navigate: e, receipt: t }) {
let [n, r] = (0, D.useState)(null);
- return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(Q3, {
+ return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(Z3, {
tab: "library",
navigate: e,
find: () => r({})
- }), /* @__PURE__ */ (0, O.jsx)(Y2, {
+ }), /* @__PURE__ */ (0, O.jsx)(J2, {
prefill: n,
close: () => r(null),
receipt: t
@@ -74418,21 +74434,21 @@ function Wke({ navigate: e, receipt: t }) {
}
//#endregion
//#region src/react/router/pages/catalog.tsx
-var Gke = () => Hl, $3 = XV.navigation.seq, e6 = XV.navigation.openEpoch, t6 = XV.navigation.location.pathname, n6 = {
- seq: $3,
+var Gke = () => Hl, Q3 = YV.navigation.seq, $3 = YV.navigation.openEpoch, e6 = YV.navigation.location.pathname, t6 = {
+ seq: Q3,
claimed: !0,
- from: t6
+ from: e6
};
-XV.listen((e) => {
- n6 = {
+YV.listen((e) => {
+ t6 = {
seq: e.seq,
- claimed: e.openEpoch === e6,
- from: t6
- }, e6 = e.openEpoch, t6 = e.location.pathname;
+ claimed: e.openEpoch === $3,
+ from: e6
+ }, $3 = e.openEpoch, e6 = e.location.pathname;
});
-var r6 = !1;
-function i6(e) {
- let { seq: t, openEpoch: n, location: r } = XV.navigation, i = _V(r.pathname), a = $V() ?? r, o = W ?? {};
+var n6 = !1;
+function r6(e) {
+ let { seq: t, openEpoch: n, location: r } = YV.navigation, i = gV(r.pathname), a = QV() ?? r, o = W ?? {};
return {
seq: t,
epoch: n,
@@ -74454,7 +74470,7 @@ function Kke(e, t, n, r) {
state: "trash",
q: ""
};
- let a = new URLSearchParams(t), { defaultSort: o, defaultSortDirection: s } = aA().value;
+ let a = new URLSearchParams(t), { defaultSort: o, defaultSortDirection: s } = iA().value;
return {
...i,
loc: a.get("loc") ?? r.defaultLoc(),
@@ -74468,7 +74484,7 @@ function Kke(e, t, n, r) {
dur_max: a.get("dur_max") || "",
orient: a.get("orient") || "",
state: Yt[e] || a.get("state") || "",
- ...Lk(a.get("sort"), a.get("dir"), o, s),
+ ...Ik(a.get("sort"), a.get("dir"), o, s),
seed: a.get("seed") || (n ? Tn() : i.seed || Tn()),
q: a.get("q") || "",
jav: a.get("jav") || "",
@@ -74480,12 +74496,12 @@ function Kke(e, t, n, r) {
};
}
function qke(e, t) {
- let n = { ...e }, r = i6(n.opened);
+ let n = { ...e }, r = r6(n.opened);
Object.assign(e, r);
let i = t.catalog;
if (!i || r.opens === 0) return;
if (r.covered) {
- $V() || i.fill();
+ QV() || i.fill();
return;
}
let a = !1;
@@ -74495,35 +74511,35 @@ function qke(e, t) {
i.load();
return;
}
- r.epoch !== n.epoch && (a = XV.navigation.action === "POP" && n6.from !== "/");
+ r.epoch !== n.epoch && (a = YV.navigation.action === "POP" && t6.from !== "/");
}
- let { pathname: o, search: s } = XV.navigation.location;
+ let { pathname: o, search: s } = YV.navigation.location;
if (o === "/" && new URLSearchParams(s).get("state") === "ads") {
- let { kind: e, view: t } = u$(s);
- r6 = !0, ZV(d$(e, t), { replace: !0 });
+ let { kind: e, view: t } = l$(s);
+ n6 = !0, XV(u$(e, t), { replace: !0 });
return;
}
- let c = r6;
- r6 = !1, a &&= o === "/", e.opened = !0, Zl({ state: Kke(o, s, a, i) }), i.open(o, {
+ let c = n6;
+ n6 = !1, a &&= o === "/", e.opened = !0, Zl({ state: Kke(o, s, a, i) }), i.open(o, {
entering: a,
retitle: c
});
}
function Jke(e) {
- return Zt(e) || e === "/trash" || _V(e) || e === "/immerse" || !!Y3(e);
+ return Zt(e) || e === "/trash" || gV(e) || e === "/immerse" || !!J3(e);
}
function Yke() {
- let e = (0, D.useContext)(uU), t = lU(), n = (0, D.useSyncExternalStore)($l, Gke), r = RB(), i = (0, D.useRef)(null), a = (0, D.useRef)({
+ let e = (0, D.useContext)(lU), t = cU(), n = (0, D.useSyncExternalStore)($l, Gke), r = LB(), i = (0, D.useRef)(null), a = (0, D.useRef)({
mounted: !0,
queued: !1
});
return (0, D.useEffect)(() => {
let t = a.current;
t.mounted = !0;
- let n = i6(!_V(XV.navigation.location.pathname));
- return !n.covered && n.opens > 0 && (r6 || n6.seq === $3 ? n.opens = -1 : n6.claimed ? n.seq = -1 : n.epoch = -1), i.current = n, () => {
+ let n = r6(!gV(YV.navigation.location.pathname));
+ return !n.covered && n.opens > 0 && (n6 || t6.seq === Q3 ? n.opens = -1 : t6.claimed ? n.seq = -1 : n.epoch = -1), i.current = n, () => {
t.mounted = !1, queueMicrotask(() => {
- e?.catalog && !Jke(XV.navigation.location.pathname) && e.catalog.release();
+ e?.catalog && !Jke(YV.navigation.location.pathname) && e.catalog.release();
});
};
}, []), (0, D.useEffect)(() => {
@@ -74538,8 +74554,8 @@ function Yke() {
e
]), null;
}
-function a6() {
- let { pathname: e, search: t } = RB();
+function i6() {
+ let { pathname: e, search: t } = LB();
(0, D.useLayoutEffect)(() => {
if (e !== "/wall") return;
document.body.setAttribute("data-wall-open", ""), document.documentElement.removeAttribute("data-wall-entry");
@@ -74552,14 +74568,14 @@ function a6() {
});
};
}, [e]);
- let n = (0, D.useContext)(uU), r = document.getElementById("javLibraryHeader"), i = Zt(e) && new URLSearchParams(t).get("jav") === "1";
+ let n = (0, D.useContext)(lU), r = document.getElementById("javLibraryHeader"), i = Zt(e) && new URLSearchParams(t).get("jav") === "1";
return (0, D.useLayoutEffect)(() => {
if (r) return r.hidden = !i, () => {
r.hidden = !0;
};
- }, [r, i]), _V(e) && !gV(e) ? null : /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [
+ }, [r, i]), gV(e) && !hV(e) ? null : /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [
/* @__PURE__ */ (0, O.jsx)(Yke, {}, e === "/junk-files" ? "/junk-files" : "/"),
- Zt(e) ? /* @__PURE__ */ (0, O.jsx)(vU, {}) : null,
+ Zt(e) ? /* @__PURE__ */ (0, O.jsx)(_U, {}) : null,
i && r && n ? (0, Tt.createPortal)(/* @__PURE__ */ (0, O.jsx)(Wke, {
navigate: n.navigate,
receipt: (e) => n.receipt(e)
@@ -74568,7 +74584,7 @@ function a6() {
}
//#endregion
//#region src/react/router/pages/follow.tsx
-var o6 = () => document.getElementById("stats"), Xke = () => Jl;
+var a6 = () => document.getElementById("stats"), Xke = () => Jl;
function Zke(e) {
let t = document.createElement("div");
return t.className = "peach-react", gs(e, () => {
@@ -74576,10 +74592,10 @@ function Zke(e) {
}), t;
}
async function Qke(e, t) {
- let n = o6(), r = e.follow;
+ let n = a6(), r = e.follow;
if (!n || !r || r.refresh()) return;
let i = ql;
- e.surfaceChanged("follow", "/follow"), m2(n, r.skeleton()), await zV("/follow", r.props(), {
+ e.surfaceChanged("follow", "/follow"), p2(n, r.skeleton()), await RV("/follow", r.props(), {
container: n,
isCurrent: t,
place: Zke
@@ -74592,31 +74608,31 @@ async function Qke(e, t) {
});
}
function $ke() {
- let e = o6(), t = e ? FV(e) : null;
+ let e = a6(), t = e ? PV(e) : null;
return !!e && !e.hidden && !!t && t.path === "/follow" && t.host.isConnected;
}
function eAe() {
- let e = (0, D.useContext)(uU);
- return J3(lU(), (t, n) => {
+ let e = (0, D.useContext)(lU);
+ return q3(cU(), (t, n) => {
e && Qke(e, n);
}, {
shown: $ke,
onCovered: () => {
- XV.navigation.location.pathname.startsWith("/posts/") && e?.follow?.ground();
+ YV.navigation.location.pathname.startsWith("/posts/") && e?.follow?.ground();
}
}), null;
}
-function s6(e) {
- let t = e ? FV(e) : null;
+function o6(e) {
+ let t = e ? PV(e) : null;
return !!t && t.path === "/playlists" && t.host.isConnected;
}
async function tAe(e, t) {
- let n = o6();
- n && (e.surfaceChanged("playlists", "/playlists"), m2(n, f2("/playlists", {
+ let n = a6();
+ n && (e.surfaceChanged("playlists", "/playlists"), p2(n, d2("/playlists", {
followLayout: "",
followSort: "",
followDir: ""
- })), await zV("/playlists", { revision: Jl }, {
+ })), await RV("/playlists", { revision: Jl }, {
container: n,
isCurrent: t
}), t() && window.scrollTo({
@@ -74625,38 +74641,38 @@ async function tAe(e, t) {
}));
}
function nAe() {
- let e = (0, D.useContext)(uU), t = (0, D.useSyncExternalStore)($l, Xke), n = (0, D.useRef)(t);
+ let e = (0, D.useContext)(lU), t = (0, D.useSyncExternalStore)($l, Xke), n = (0, D.useRef)(t);
return (0, D.useEffect)(() => {
if (n.current === t) return;
n.current = t;
- let e = o6();
- s6(e) && BV(e, { revision: t });
- }, [t]), J3(lU(), (t, n) => {
+ let e = a6();
+ o6(e) && zV(e, { revision: t });
+ }, [t]), q3(cU(), (t, n) => {
e && tAe(e, n);
}, { shown: () => {
- let e = o6();
- return s6(e) && !e.hidden;
+ let e = a6();
+ return o6(e) && !e.hidden;
} }), null;
}
//#endregion
//#region src/react/router/pages/immerse.tsx
function rAe() {
- let e = new URLSearchParams(XV.navigation.location.search).get("id");
+ let e = new URLSearchParams(YV.navigation.location.search).get("id");
return /^\d+$/.test(e || "") ? Number(e) : void 0;
}
function iAe() {
- let e = (0, D.useContext)(uU);
- return sU(() => {
+ let e = (0, D.useContext)(lU);
+ return oU(() => {
e?.openImmerse(rAe());
}, !0), null;
}
function aAe() {
- return /* @__PURE__ */ (0, O.jsx)(iAe, {}, lU());
+ return /* @__PURE__ */ (0, O.jsx)(iAe, {}, cU());
}
//#endregion
//#region src/ui-kit/anchor-scroll.ts
-var c6 = () => window.matchMedia("(prefers-reduced-motion: reduce)").matches ? "instant" : "smooth";
-async function l6(e, t) {
+var s6 = () => window.matchMedia("(prefers-reduced-motion: reduce)").matches ? "instant" : "smooth";
+async function c6(e, t) {
let n;
try {
n = decodeURIComponent(e.slice(1));
@@ -74671,7 +74687,7 @@ async function l6(e, t) {
let r = document.getElementById(n);
r?.getClientRects().length && r.scrollIntoView({
block: "start",
- behavior: c6()
+ behavior: s6()
});
}
//#endregion
@@ -74680,22 +74696,22 @@ var oAe = [
"list",
"add",
"feeds"
-], sAe = () => Hl > 0, u6 = () => (0, D.useSyncExternalStore)($l, sAe), d6 = () => aA().value.followLayout === "table" ? "table" : "default", f6 = () => new URLSearchParams(window.location.search);
+], sAe = () => Hl > 0, l6 = () => (0, D.useSyncExternalStore)($l, sAe), u6 = () => iA().value.followLayout === "table" ? "table" : "default", d6 = () => new URLSearchParams(window.location.search);
function cAe(e) {
- let t = f6();
- return f2(e, {
- followLayout: d6(),
+ let t = d6();
+ return d2(e, {
+ followLayout: u6(),
followSort: t.get("sort") || "",
followDir: t.get("dir") || ""
});
}
-function p6(e) {
+function f6(e) {
return z("/healthz", { signal: e.controller.signal }).catch((e) => {
if (Kt(e)) return null;
throw e;
});
}
-function m6(e, t) {
+function p6(e, t) {
return {
readOnly: !!e?.ledger_read_only,
readOnlyMessage: e?.ledger_read_only_message || "本机当前只能浏览",
@@ -74704,9 +74720,9 @@ function m6(e, t) {
}
async function lAe(e, t) {
if (e === "/jav") {
- let e = await p6(t);
+ let e = await f6(t);
return t.live ? {
- tab: T$(f6().get("tab")),
+ tab: w$(d6().get("tab")),
readOnly: !!e?.ledger_read_only
} : null;
}
@@ -74717,30 +74733,30 @@ async function lAe(e, t) {
}
if (e.startsWith("/settings/")) {
window.location.hash === "#peachProxy" && Zl({ configurationRequestedSection: "网络与访问" });
- let t = f6().get("section") || zl || cV(e);
+ let t = d6().get("section") || zl || sV(e);
return t ? { section: t } : {};
}
if (e === "/review") {
- let e = f6().get("category") || "", n = await p6(t);
+ let e = d6().get("category") || "", n = await f6(t);
return t.live ? {
- category: VY(e) ? e : "",
- ...m6(n, "/review")
+ category: BY(e) ? e : "",
+ ...p6(n, "/review")
} : null;
}
if (e === "/subscriptions") {
- let e = f6(), n = e.get("tab") || "", r = {
+ let e = d6(), n = e.get("tab") || "", r = {
tab: oAe.includes(n) ? n : "list",
page: Math.max(1, Math.floor(Number(e.get("page"))) || 1),
sort: e.get("sort") || "",
dir: e.get("dir") || ""
- }, i = await p6(t);
+ }, i = await f6(t);
if (!t.live) return null;
- let a = aA().value;
+ let a = iA().value;
return {
...r,
pageSize: Number(a.followPageSize) || 20,
- layout: d6(),
- ...m6(i, "/subscriptions")
+ layout: u6(),
+ ...p6(i, "/subscriptions")
};
}
return {};
@@ -74748,7 +74764,7 @@ async function lAe(e, t) {
var uAe = () => {
window.scrollTo({
top: 0,
- behavior: c6()
+ behavior: s6()
});
}, dAe = /* @__PURE__ */ new Set([
"/stats",
@@ -74759,17 +74775,17 @@ var uAe = () => {
"/subscriptions"
]);
async function fAe(e, t, n) {
- let r = XV.navigation.seq, i = () => n.live && XV.navigation.seq === r;
- if (e === "/jav" && T$(f6().get("tab")) === "library") {
- XV.replace(ICe(window.location.search));
+ let r = YV.navigation.seq, i = () => n.live && YV.navigation.seq === r;
+ if (e === "/jav" && w$(d6().get("tab")) === "library") {
+ YV.replace(ICe(window.location.search));
return;
}
- if (e === "/subscriptions" && f6().get("tab") === "wants") {
- ZV("/jav?tab=wants", { replace: !0 });
+ if (e === "/subscriptions" && d6().get("tab") === "wants") {
+ XV("/jav?tab=wants", { replace: !0 });
return;
}
- if (e === "/subscriptions" && f6().get("tab") === "source") {
- ZV("/settings/subscriptions", { replace: !0 });
+ if (e === "/subscriptions" && d6().get("tab") === "source") {
+ XV("/settings/subscriptions", { replace: !0 });
return;
}
let a = document.getElementById("stats");
@@ -74791,27 +74807,27 @@ async function fAe(e, t, n) {
state: "",
q: "",
jav: ""
- } }), t.clearSearch()), m2(a, cAe(e));
+ } }), t.clearSearch()), p2(a, cAe(e));
let o = await lAe(e, n);
if (!o) return;
- let s = await zV(e, o, {
+ let s = await RV(e, o, {
container: a,
isCurrent: () => n.live
});
- if (s && (n.revision = FV(a)?.revision ?? 0), e.startsWith("/settings/") && s && Zl({ configurationRequestedSection: "" }), s && i()) {
+ if (s && (n.revision = PV(a)?.revision ?? 0), e.startsWith("/settings/") && s && Zl({ configurationRequestedSection: "" }), s && i()) {
let { hash: t } = window.location;
e === "/settings/library" && t === "#libraryProcessing" ? queueMicrotask(() => {
- i() && ZV("/data-cleanup#libraryProcessing", {
+ i() && XV("/data-cleanup#libraryProcessing", {
replace: !0,
state: null
});
- }) : t ? l6(t, i) : (dAe.has(e) || e === "/settings/library") && uAe();
+ }) : t ? c6(t, i) : (dAe.has(e) || e === "/settings/library") && uAe();
}
}
-function h6({ path: e }) {
- let t = lU();
- RB();
- let n = _V(XV.navigation.location.pathname), r = (0, D.useRef)(n ? null : t), i = (0, D.useRef)(n);
+function m6({ path: e }) {
+ let t = cU();
+ LB();
+ let n = gV(YV.navigation.location.pathname), r = (0, D.useRef)(n ? null : t), i = (0, D.useRef)(n);
!n && (!i.current || r.current === null) && (r.current = t), i.current = n;
let a = e.startsWith("/settings/") ? "/settings/configuration" : e;
return /* @__PURE__ */ (0, O.jsx)(pAe, {
@@ -74820,9 +74836,9 @@ function h6({ path: e }) {
}, `${a} ${r.current ?? "covered"}`);
}
function pAe({ path: e, covered: t }) {
- let n = (0, D.useContext)(uU), r = u6(), i = (0, D.useRef)(null);
+ let n = (0, D.useContext)(lU), r = l6(), i = (0, D.useRef)(null);
return (0, D.useEffect)(() => {
- e.startsWith("/settings/") && BV(document.getElementById("stats"), { section: cV(e) });
+ e.startsWith("/settings/") && zV(document.getElementById("stats"), { section: sV(e) });
}, [e]), (0, D.useEffect)(() => {
if (t || !n || !r || i.current) return;
let a = {
@@ -74839,18 +74855,18 @@ function pAe({ path: e, covered: t }) {
e.live = !1, e.controller.abort();
let t = document.getElementById("stats");
queueMicrotask(() => {
- t && e.revision && !t.hidden && FV(t)?.revision === e.revision && VV(t);
+ t && e.revision && !t.hidden && PV(t)?.revision === e.revision && BV(t);
});
}, []), null;
}
function mAe() {
- let e = u6(), t = (0, D.useRef)(!1);
+ let e = l6(), t = (0, D.useRef)(!1);
return (0, D.useEffect)(() => {
- if (!e || t.current || _V(XV.navigation.location.pathname)) return;
+ if (!e || t.current || gV(YV.navigation.location.pathname)) return;
t.current = !0;
let n = !0;
return queueMicrotask(() => {
- n && ZV("/data-cleanup#resource-sync", { replace: !0 });
+ n && XV("/data-cleanup#resource-sync", { replace: !0 });
}), () => {
n = !1;
};
@@ -74858,22 +74874,22 @@ function mAe() {
}
//#endregion
//#region src/react/router/route-chunk.ts
-var g6 = [], _6 = "peach.chunkReloadAt", hAe = 3e4;
+var h6 = [], g6 = "peach.chunkReloadAt", hAe = 3e4;
async function gAe() {
try {
- let e = Number(sessionStorage.getItem(_6) || 0);
+ let e = Number(sessionStorage.getItem(g6) || 0);
if (Date.now() - e < hAe || !(await fetch("/healthz", {
cache: "no-store",
credentials: "same-origin"
})).ok) return;
- sessionStorage.setItem(_6, String(Date.now())), location.reload();
+ sessionStorage.setItem(g6, String(Date.now())), location.reload();
} catch {}
}
-function v6(e) {
+function _6(e) {
let t = null, n = null, r = () => n ??= e().then((e) => (t = { module: e }, e), (e) => {
throw n = null, e;
});
- return g6.push(r), {
+ return h6.push(r), {
preload: () => r().catch(async (e) => {
throw await gAe(), e;
}),
@@ -74886,7 +74902,7 @@ function v6(e) {
function _Ae() {
let e = globalThis.requestIdleCallback;
if (typeof e != "function") return;
- let t = [...g6], n = () => {
+ let t = [...h6], n = () => {
let r = t.shift();
r && e(() => {
r().catch(() => {}).finally(n);
@@ -74896,31 +74912,31 @@ function _Ae() {
}
//#endregion
//#region src/react/router/managed-routes.tsx
-async function y6(e, t) {
+async function v6(e, t) {
let [n, r] = await Promise.allSettled([e.preload(), t]);
if (r.status === "rejected") throw r.reason;
if (n.status === "rejected") throw n.reason;
}
-var b6 = v6(() => import("./peach-app.jav-page-BylXQgrV.js")), x6 = v6(() => import("./peach-app.stats-page-Dl0lm7Yt.js")), S6 = v6(() => import("./peach-app.taste-page-CidGJvZ7.js")), C6 = v6(() => import("./peach-app.review-page-CPsgIxd6.js")), w6 = v6(() => import("./peach-app.data-cleanup-page-DPCNx1GU.js")), T6 = v6(() => import("./peach-app.duplicates-page-CoHPntSW.js")), E6 = v6(() => import("./peach-app.quality-goals-page-CjcBIXAC.js")), D6 = v6(() => import("./peach-app.scraping-page-DM0a_K9-.js")), O6 = v6(async () => {
+var y6 = _6(() => import("./peach-app.jav-page-BylXQgrV.js")), b6 = _6(() => import("./peach-app.stats-page-Dl0lm7Yt.js")), x6 = _6(() => import("./peach-app.taste-page-CidGJvZ7.js")), S6 = _6(() => import("./peach-app.review-page-CPsgIxd6.js")), C6 = _6(() => import("./peach-app.data-cleanup-page-DPCNx1GU.js")), w6 = _6(() => import("./peach-app.duplicates-page-CoHPntSW.js")), T6 = _6(() => import("./peach-app.quality-goals-page-CjcBIXAC.js")), E6 = _6(() => import("./peach-app.scraping-page-DM0a_K9-.js")), D6 = _6(async () => {
let [{ ConfigurationPage: e }, { DiagnosticsPage: t }] = await Promise.all([import("./peach-app.configuration-page-Bxq5ZZc_.js"), import("./peach-app.diagnostics-page-bdA2qUuj.js")]);
return {
ConfigurationPage: e,
DiagnosticsPage: t
};
-}), k6 = v6(() => import("./peach-app.activity-page-ClyZLUeQ.js")), A6 = v6(() => import("./peach-app.follow-manage-page-K8kzYRBb.js")), j6 = v6(() => import("./peach-app.playlists-page-DKMNf-v5.js"));
+}), O6 = _6(() => import("./peach-app.activity-page-ClyZLUeQ.js")), k6 = _6(() => import("./peach-app.follow-manage-page-K8kzYRBb.js")), A6 = _6(() => import("./peach-app.playlists-page-DKMNf-v5.js"));
function vAe(e, t, n) {
if (e === "duplicates") {
n("/duplicates");
return;
}
let r = t.managePath(e);
- P6(r) ? n(r) : t.openManage(e);
+ N6(r) ? n(r) : t.openManage(e);
}
-var M6 = (e) => ({
- element: /* @__PURE__ */ (0, O.jsx)(h6, { path: e }),
- prefetch: (t, n) => y6(O6, Promise.all([wwe(n), ...e === "/settings/diagnostics" ? [GSe(n)] : []]).then(() => {})),
+var j6 = (e) => ({
+ element: /* @__PURE__ */ (0, O.jsx)(m6, { path: e }),
+ prefetch: (t, n) => v6(D6, Promise.all([wwe(n), ...e === "/settings/diagnostics" ? [GSe(n)] : []]).then(() => {})),
page: (t, n) => {
- let { ConfigurationPage: r, DiagnosticsPage: i } = O6.get();
+ let { ConfigurationPage: r, DiagnosticsPage: i } = D6.get();
return /* @__PURE__ */ (0, O.jsx)(r, {
receipt: (e) => n.receipt(e),
reopenTutorial: n.reopenTutorial,
@@ -74931,12 +74947,12 @@ var M6 = (e) => ({
})
});
}
-}), N6 = {
+}), M6 = {
"/jav": {
- element: /* @__PURE__ */ (0, O.jsx)(h6, { path: "/jav" }),
- prefetch: (e, t) => y6(b6, RCe(e.tab, t)),
+ element: /* @__PURE__ */ (0, O.jsx)(m6, { path: "/jav" }),
+ prefetch: (e, t) => v6(y6, RCe(e.tab, t)),
page: (e, t) => {
- let { JavPage: n } = b6.get();
+ let { JavPage: n } = y6.get();
return /* @__PURE__ */ (0, O.jsx)(n, {
...e,
navigate: t.navigate,
@@ -74945,10 +74961,10 @@ var M6 = (e) => ({
}
},
"/stats": {
- element: /* @__PURE__ */ (0, O.jsx)(h6, { path: "/stats" }),
- prefetch: (e, t) => y6(x6, xOe(t)),
+ element: /* @__PURE__ */ (0, O.jsx)(m6, { path: "/stats" }),
+ prefetch: (e, t) => v6(b6, xOe(t)),
page: (e, t) => {
- let { StatsPage: n } = x6.get();
+ let { StatsPage: n } = b6.get();
return /* @__PURE__ */ (0, O.jsx)(n, {
tagLabel: fl,
onTag: t.openTag
@@ -74956,10 +74972,10 @@ var M6 = (e) => ({
}
},
"/taste": {
- element: /* @__PURE__ */ (0, O.jsx)(h6, { path: "/taste" }),
- prefetch: (e, t) => y6(S6, lke("all", t)),
+ element: /* @__PURE__ */ (0, O.jsx)(m6, { path: "/taste" }),
+ prefetch: (e, t) => v6(x6, lke("all", t)),
page: (e, t, n) => {
- let { TastePage: r } = S6.get();
+ let { TastePage: r } = x6.get();
return /* @__PURE__ */ (0, O.jsx)(r, {
onSignal: t.openTasteSignal,
navigate: n,
@@ -74969,10 +74985,10 @@ var M6 = (e) => ({
}
},
"/review": {
- element: /* @__PURE__ */ (0, O.jsx)(h6, { path: "/review" }),
- prefetch: (e, t) => y6(C6, lye(t)),
+ element: /* @__PURE__ */ (0, O.jsx)(m6, { path: "/review" }),
+ prefetch: (e, t) => v6(S6, lye(t)),
page: (e, t) => {
- let { ReviewPage: n } = C6.get();
+ let { ReviewPage: n } = S6.get();
return /* @__PURE__ */ (0, O.jsx)(n, {
...e,
route: t.routeReview,
@@ -74984,10 +75000,10 @@ var M6 = (e) => ({
}
},
"/data-cleanup": {
- element: /* @__PURE__ */ (0, O.jsx)(h6, { path: "/data-cleanup" }),
- prefetch: (e, t) => y6(w6, gbe(t)),
+ element: /* @__PURE__ */ (0, O.jsx)(m6, { path: "/data-cleanup" }),
+ prefetch: (e, t) => v6(C6, gbe(t)),
page: (e, t, n) => {
- let { DataCleanupPage: r } = w6.get();
+ let { DataCleanupPage: r } = C6.get();
return /* @__PURE__ */ (0, O.jsx)(r, {
failure: t.failure,
open: (e) => vAe(e, t, n),
@@ -74996,10 +75012,10 @@ var M6 = (e) => ({
}
},
"/duplicates": {
- element: /* @__PURE__ */ (0, O.jsx)(h6, { path: "/duplicates" }),
- prefetch: (e, t) => y6(T6, Dve(t)),
+ element: /* @__PURE__ */ (0, O.jsx)(m6, { path: "/duplicates" }),
+ prefetch: (e, t) => v6(w6, Dve(t)),
page: (e, t) => {
- let { DuplicatesPage: n } = T6.get();
+ let { DuplicatesPage: n } = w6.get();
return /* @__PURE__ */ (0, O.jsx)(n, {
openItem: t.openItem,
failure: t.failure,
@@ -75008,46 +75024,46 @@ var M6 = (e) => ({
}
},
"/quality-goals": {
- element: /* @__PURE__ */ (0, O.jsx)(h6, { path: "/quality-goals" }),
- prefetch: (e, t) => y6(E6, zve(t)),
+ element: /* @__PURE__ */ (0, O.jsx)(m6, { path: "/quality-goals" }),
+ prefetch: (e, t) => v6(T6, zve(t)),
page: (e, t) => {
- let { QualityGoalsPage: n } = E6.get();
+ let { QualityGoalsPage: n } = T6.get();
return /* @__PURE__ */ (0, O.jsx)(n, {
openItem: t.openItem,
- javTitleHtml: uF,
- javDisplayName: lF,
+ javTitleHtml: lF,
+ javDisplayName: cF,
toast: (e) => t.receipt(e),
srcBadge: t.srcBadge
});
}
},
"/sources": {
- element: /* @__PURE__ */ (0, O.jsx)(h6, { path: "/sources" }),
- prefetch: (e, t) => y6(D6, mwe(t)),
+ element: /* @__PURE__ */ (0, O.jsx)(m6, { path: "/sources" }),
+ prefetch: (e, t) => v6(E6, mwe(t)),
page: (e, t) => {
- let { ScrapingPage: n } = D6.get();
+ let { ScrapingPage: n } = E6.get();
return /* @__PURE__ */ (0, O.jsx)(n, { toast: (e) => t.toast(e) });
}
},
- "/settings/library": M6("/settings/library"),
- "/settings/subscriptions": M6("/settings/subscriptions"),
- "/settings/downloads": M6("/settings/downloads"),
- "/settings/network": M6("/settings/network"),
- "/settings/maintenance": M6("/settings/maintenance"),
- "/settings/diagnostics": M6("/settings/diagnostics"),
+ "/settings/library": j6("/settings/library"),
+ "/settings/subscriptions": j6("/settings/subscriptions"),
+ "/settings/downloads": j6("/settings/downloads"),
+ "/settings/network": j6("/settings/network"),
+ "/settings/maintenance": j6("/settings/maintenance"),
+ "/settings/diagnostics": j6("/settings/diagnostics"),
"/tasks": {
- element: /* @__PURE__ */ (0, O.jsx)(h6, { path: "/tasks" }),
- prefetch: (e, t) => y6(k6, Fle(t)),
+ element: /* @__PURE__ */ (0, O.jsx)(m6, { path: "/tasks" }),
+ prefetch: (e, t) => v6(O6, Fle(t)),
page: () => {
- let { ActivityPage: e } = k6.get();
+ let { ActivityPage: e } = O6.get();
return /* @__PURE__ */ (0, O.jsx)(e, {});
}
},
"/subscriptions": {
- element: /* @__PURE__ */ (0, O.jsx)(h6, { path: "/subscriptions" }),
- prefetch: (e, t) => y6(A6, ai(t, e.tab)),
+ element: /* @__PURE__ */ (0, O.jsx)(m6, { path: "/subscriptions" }),
+ prefetch: (e, t) => v6(k6, ai(t, e.tab)),
page: (e, t) => {
- let { FollowManagePage: n } = A6.get();
+ let { FollowManagePage: n } = k6.get();
return /* @__PURE__ */ (0, O.jsx)(n, {
...e,
route: t.routeFollowManage,
@@ -75057,12 +75073,12 @@ var M6 = (e) => ({
});
}
}
-}, P6 = (e) => Object.hasOwn(N6, e), yAe = { "/resource-sync": { element: /* @__PURE__ */ (0, O.jsx)(mAe, {}) } }, bAe = { "/immerse": { element: /* @__PURE__ */ (0, O.jsx)(aAe, {}) } }, F6 = {
+}, N6 = (e) => Object.hasOwn(M6, e), yAe = { "/resource-sync": { element: /* @__PURE__ */ (0, O.jsx)(mAe, {}) } }, bAe = { "/immerse": { element: /* @__PURE__ */ (0, O.jsx)(aAe, {}) } }, P6 = {
"/playlists": {
element: /* @__PURE__ */ (0, O.jsx)(nAe, {}),
- prefetch: (e, t) => y6(j6, QCe(t)),
+ prefetch: (e, t) => v6(A6, QCe(t)),
page: (e, t) => {
- let { PlaylistsPage: n } = j6.get();
+ let { PlaylistsPage: n } = A6.get();
return /* @__PURE__ */ (0, O.jsx)(n, {
revision: e.revision,
openPlaylist: t.openPlaylist,
@@ -75077,7 +75093,7 @@ var M6 = (e) => ({
prefetch: (e, t) => Di(e, t),
page: (e) => /* @__PURE__ */ (0, O.jsx)(Txe, { ...e })
}
-}, I6 = (e) => Object.hasOwn(F6, e), L6 = {
+}, F6 = (e) => Object.hasOwn(P6, e), I6 = {
element: /* @__PURE__ */ (0, O.jsx)(zke, {}),
prefetch: (e, t) => Lbe(e, t),
page: (e, t) => /* @__PURE__ */ (0, O.jsx)(lCe, {
@@ -75093,52 +75109,52 @@ var M6 = (e) => ({
openFollowAuthor: t.openFollowAuthor,
openFollowTag: t.openFollowTag
})
+}, L6 = {
+ "/performers": I6,
+ "/creators": I6,
+ "/studios": I6,
+ "/agencies": I6,
+ "/tags": I6
}, R6 = {
- "/performers": L6,
- "/creators": L6,
- "/studios": L6,
- "/agencies": L6,
- "/tags": L6
-}, z6 = {
element: /* @__PURE__ */ (0, O.jsx)(Uke, {}),
prefetch: (e) => Tbe(e),
page: (e) => /* @__PURE__ */ (0, O.jsx)(BSe, { ...e })
+}, z6 = {
+ "/performers/*": R6,
+ "/studios/*": R6,
+ "/creators/*": R6,
+ "/series/*": R6,
+ "/agencies/*": R6,
+ "/tags/*": R6
}, B6 = {
- "/performers/*": z6,
- "/studios/*": z6,
- "/creators/*": z6,
- "/series/*": z6,
- "/agencies/*": z6,
- "/tags/*": z6
-}, V6 = {
"/": {
- element: /* @__PURE__ */ (0, O.jsx)(a6, {}),
- prefetch: (e, t) => wM(e, t),
- page: (e) => /* @__PURE__ */ (0, O.jsx)(xY, { ...e })
+ element: /* @__PURE__ */ (0, O.jsx)(i6, {}),
+ prefetch: (e, t) => CM(e, t),
+ page: (e) => /* @__PURE__ */ (0, O.jsx)(bY, { ...e })
},
"/junk-files": {
- element: /* @__PURE__ */ (0, O.jsx)(a6, {}),
+ element: /* @__PURE__ */ (0, O.jsx)(i6, {}),
prefetch: async () => {},
page: (e) => /* @__PURE__ */ (0, O.jsx)(wCe, { ...e })
}
-}, H6 = (e) => Object.hasOwn(V6, e), xAe = (e) => e.mode === "notice" ? /* @__PURE__ */ (0, O.jsx)(The, { ...e }) : /* @__PURE__ */ (0, O.jsx)(U$, { ...e }), U6 = {
+}, V6 = (e) => Object.hasOwn(B6, e), xAe = (e) => e.mode === "notice" ? /* @__PURE__ */ (0, O.jsx)(The, { ...e }) : /* @__PURE__ */ (0, O.jsx)(H$, { ...e }), H6 = {
"catalog-filter": {
prefetch: async () => {},
- page: (e) => /* @__PURE__ */ (0, O.jsx)($U, { ...e })
+ page: (e) => /* @__PURE__ */ (0, O.jsx)(QU, { ...e })
},
"feed-new": {
prefetch: (e) => xbe(e),
page: (e) => /* @__PURE__ */ (0, O.jsx)(KSe, { ...e })
},
"library-processing": {
- prefetch: (e, t) => hH(t),
+ prefetch: (e, t) => mH(t),
page: (e) => /* @__PURE__ */ (0, O.jsx)(xAe, { ...e })
},
search: {
prefetch: async () => {},
page: (e) => /* @__PURE__ */ (0, O.jsx)(bwe, { ...e })
}
-}, W6 = (e) => Object.hasOwn(U6, e), G6 = {
+}, U6 = (e) => Object.hasOwn(H6, e), W6 = {
"batch-dock": {
prefetch: async () => {},
page: () => /* @__PURE__ */ (0, O.jsx)(foe, {})
@@ -75167,7 +75183,7 @@ var M6 = (e) => ({
prefetch: async () => {},
page: () => /* @__PURE__ */ (0, O.jsx)(yOe, {})
}
-}, K6 = (e) => Object.hasOwn(G6, e), q6 = [
+}, G6 = (e) => Object.hasOwn(W6, e), K6 = [
"/",
"/wall",
"/unseen",
@@ -75177,101 +75193,101 @@ var M6 = (e) => ({
"/junk-files"
];
[
- ...Object.keys(N6),
- ...Object.keys(F6),
- ...Object.keys(R6),
- ...Object.keys(B6),
- ...q6
+ ...Object.keys(M6),
+ ...Object.keys(P6),
+ ...Object.keys(L6),
+ ...Object.keys(z6),
+ ...K6
];
-var J6 = (e) => P6(e) || I6(e) || Object.hasOwn(R6, e) || Object.hasOwn(B6, e) || H6(e) || W6(e) || K6(e);
-function Y6(e) {
- return P6(e) ? N6[e] : I6(e) ? F6[e] : H6(e) ? V6[e] : W6(e) ? U6[e] : K6(e) ? G6[e] : Object.hasOwn(R6, e) ? R6[e] : B6[e];
+var q6 = (e) => N6(e) || F6(e) || Object.hasOwn(L6, e) || Object.hasOwn(z6, e) || V6(e) || U6(e) || G6(e);
+function J6(e) {
+ return N6(e) ? M6[e] : F6(e) ? P6[e] : V6(e) ? B6[e] : U6(e) ? H6[e] : G6(e) ? W6[e] : Object.hasOwn(L6, e) ? L6[e] : z6[e];
}
function SAe(e, t, n) {
- return J6(e) ? Y6(e).prefetch(t, n) : Promise.reject(/* @__PURE__ */ Error(`路由树里没有这一页:${e}`));
+ return q6(e) ? J6(e).prefetch(t, n) : Promise.reject(/* @__PURE__ */ Error(`路由树里没有这一页:${e}`));
}
function CAe(e, t, n, r) {
- return Y6(e).page(t, n, r);
+ return J6(e).page(t, n, r);
}
//#endregion
//#region src/react/application-residents.ts
-var X6 = null, Z6 = null, Q6 = 0, $6 = /* @__PURE__ */ new Set();
+var Y6 = null, X6 = null, Z6 = 0, Q6 = /* @__PURE__ */ new Set();
function wAe(e) {
- return X6 = e, Z6 && e(Z6), () => {
- X6 === e && (X6 = null);
+ return Y6 = e, X6 && e(X6), () => {
+ Y6 === e && (Y6 = null);
};
}
function TAe(e) {
- return X6 && (Z6 = e, X6(e), ume(Promise.resolve(SAe)), _Ae()), Promise.resolve();
+ return Y6 && (X6 = e, Y6(e), ume(Promise.resolve(SAe)), _Ae()), Promise.resolve();
}
-async function e8(e, t, n = (e) => e) {
- let r = Q6;
- if (t.isConnected || $6.add(t), !await zV(e, {}, {
+async function $6(e, t, n = (e) => e) {
+ let r = Z6;
+ if (t.isConnected || Q6.add(t), !await RV(e, {}, {
container: t,
resident: !0,
- isCurrent: () => !!X6 && r === Q6,
+ isCurrent: () => !!Y6 && r === Z6,
place: () => n(t)
- }) || r !== Q6 || !X6) throw new DOMException("应用已卸载", "AbortError");
+ }) || r !== Z6 || !Y6) throw new DOMException("应用已卸载", "AbortError");
}
function EAe() {
- Q6 += 1, X6 = null, Z6 = null, t8 = null, n8 = null, a8 = null, o8 = null, c8 = null, l8 = null, d8 = null, f8 = null, m8 = null, h8 = null, _8 = null, v8 = null, b8 = null;
- for (let e of $6) e.remove();
- $6.clear(), QQ();
+ Z6 += 1, Y6 = null, X6 = null, e8 = null, t8 = null, i8 = null, a8 = null, s8 = null, c8 = null, u8 = null, d8 = null, p8 = null, m8 = null, g8 = null, _8 = null, y8 = null;
+ for (let e of Q6) e.remove();
+ Q6.clear(), ZQ();
}
-var t8 = null, n8 = null;
-function r8(e) {
- return t8 ??= (async () => {
+var e8 = null, t8 = null;
+function n8(e) {
+ return e8 ??= (async () => {
let t = vOe(e), n = document.createElement("div");
- return n.dataset.stageHost = "", await e8("stage", n, (e) => (document.body.append(e), e)), n8 = t, t;
- })(), t8;
+ return n.dataset.stageHost = "", await $6("stage", n, (e) => (document.body.append(e), e)), t8 = t, t;
+ })(), e8;
}
-var i8 = () => n8, a8 = null, o8 = null;
+var r8 = () => t8, i8 = null, a8 = null;
function DAe(e) {
- return a8 ??= (async () => {
+ return i8 ??= (async () => {
let t = gce(e), n = document.createElement("div");
- return n.dataset.immerseHost = "", await e8("immerse", n, (e) => (document.body.append(e), e)), o8 = t, t;
- })(), a8;
+ return n.dataset.immerseHost = "", await $6("immerse", n, (e) => (document.body.append(e), e)), a8 = t, t;
+ })(), i8;
}
-var s8 = () => o8, c8 = null, l8 = null;
+var o8 = () => a8, s8 = null, c8 = null;
function OAe(e) {
- return c8 ??= (async () => {
+ return s8 ??= (async () => {
let t = Hwe(e), n = document.createElement("div");
- return n.dataset.settingsHost = "", await e8("settings-panel", n, (e) => (document.body.append(e), e)), l8 = t, t;
- })(), c8;
+ return n.dataset.settingsHost = "", await $6("settings-panel", n, (e) => (document.body.append(e), e)), c8 = t, t;
+ })(), s8;
}
-var u8 = () => l8, d8 = null, f8 = null;
+var l8 = () => c8, u8 = null, d8 = null;
function kAe(e) {
- return d8 ??= (async () => {
+ return u8 ??= (async () => {
let t = nTe(e);
- return await e8("sidebar", e.scroll, (e) => (e.replaceChildren(), e)), e.attached(), f8 = t, t;
- })(), d8;
+ return await $6("sidebar", e.scroll, (e) => (e.replaceChildren(), e)), e.attached(), d8 = t, t;
+ })(), u8;
}
-var p8 = () => f8, m8 = null, h8 = null;
+var f8 = () => d8, p8 = null, m8 = null;
function AAe(e) {
- return m8 ??= (async () => {
+ return p8 ??= (async () => {
let t = ble(e);
- return await e8("manage-header", e.root, (e) => (e.replaceChildren(), e)), h8 = t, t;
- })(), m8;
+ return await $6("manage-header", e.root, (e) => (e.replaceChildren(), e)), m8 = t, t;
+ })(), p8;
}
-var g8 = () => h8, _8 = null, v8 = null;
+var h8 = () => m8, g8 = null, _8 = null;
function jAe(e) {
- return _8 ??= (async () => {
+ return g8 ??= (async () => {
let t = doe(e);
- return await e8("batch-dock", e.root), v8 = t, t;
- })(), _8;
+ return await $6("batch-dock", e.root), _8 = t, t;
+ })(), g8;
}
-var y8 = () => v8, b8 = null;
+var v8 = () => _8, y8 = null;
function MAe(e) {
- return b8 ??= (async () => {
- Uoe(e), await e8("glow-picker", e.root);
- })(), b8;
+ return y8 ??= (async () => {
+ Uoe(e), await $6("glow-picker", e.root);
+ })(), y8;
}
-function x8(e, t, n, r) {
- $Q(e, t), e$(n, r);
+function b8(e, t, n, r) {
+ QQ(e, t), $Q(n, r);
}
//#endregion
//#region src/application/effects.ts
-var S8 = class {
+var x8 = class {
cleanups = /* @__PURE__ */ new Set();
active = !0;
disposed = !1;
@@ -75352,13 +75368,13 @@ var S8 = class {
}
if (e.length) throw AggregateError(e, "应用资源清理未全部完成");
}
-}, J = new S8();
+}, Y = new x8();
function NAe() {
- return J.dispose(), J = new S8(), J;
+ return Y.dispose(), Y = new x8(), Y;
}
//#endregion
//#region src/application/receipts.js
-var C8 = {
+var S8 = {
toastBody: void 0,
toastSeq: void 0,
toast: void 0,
@@ -75369,12 +75385,12 @@ var C8 = {
seededSample: void 0
};
function PAe() {
- $Q(L("#toasts"), {
+ QQ(L("#toasts"), {
success: R("check"),
error: R("circle-alert")
- }), C8.toastBody = (e) => e && typeof e == "object" && "html" in e ? String(e.html) : B(e && typeof e == "object" ? e.text ?? "" : e ?? ""), C8.toastSeq = 0, C8.toast = (e, { timeout: t = 6e3, warn: n = !1, action: r = null, sound: i = null } = {}) => {
- let a = `toast-${++C8.toastSeq}`, o = (e, t, n, r) => {
- mo(i || (t ? "error" : "success")), x8(L("#toasts"), {
+ }), S8.toastBody = (e) => e && typeof e == "object" && "html" in e ? String(e.html) : B(e && typeof e == "object" ? e.text ?? "" : e ?? ""), S8.toastSeq = 0, S8.toast = (e, { timeout: t = 6e3, warn: n = !1, action: r = null, sound: i = null } = {}) => {
+ let a = `toast-${++S8.toastSeq}`, o = (e, t, n, r) => {
+ mo(i || (t ? "error" : "success")), b8(L("#toasts"), {
success: R("check"),
error: R("circle-alert")
}, a, {
@@ -75389,13 +75405,13 @@ function PAe() {
} : null
});
};
- return o(C8.toastBody(e), n, t, r), { replaceMessage: (e, { warn: t = !1, timeout: n = 4e3 } = {}) => o(C8.toastBody(e), t, n, null) };
- }, C8.liftToastsOverTutorial = () => {
+ return o(S8.toastBody(e), n, t, r), { replaceMessage: (e, { warn: t = !1, timeout: n = 4e3 } = {}) => o(S8.toastBody(e), t, n, null) };
+ }, S8.liftToastsOverTutorial = () => {
let e = L("#postSetupTutorial"), t = L("#toasts"), n = e.hidden ? innerHeight : e.getBoundingClientRect().top;
e.hidden || !e.offsetHeight || n < 160 ? t.style.removeProperty("--toast-bottom") : t.style.setProperty("--toast-bottom", `${Math.round(innerHeight - n + 12)}px`);
- }, J.resize(C8.liftToastsOverTutorial).observe(L("#postSetupTutorial")), J.listen.bind(J, window)("resize", C8.liftToastsOverTutorial), C8.actionReceipt = (e, { undo: t = null, timeout: n = t ? 8e3 : 6e3 } = {}) => {
+ }, Y.resize(S8.liftToastsOverTutorial).observe(L("#postSetupTutorial")), Y.listen.bind(Y, window)("resize", S8.liftToastsOverTutorial), S8.actionReceipt = (e, { undo: t = null, timeout: n = t ? 8e3 : 6e3 } = {}) => {
let r = null;
- return r = C8.toast({ text: e }, {
+ return r = S8.toast({ text: e }, {
timeout: n,
action: t ? {
label: "撤销",
@@ -75408,7 +75424,7 @@ function PAe() {
}
} : null
}), r;
- }, C8.actionFailure = (e, t) => C8.toast({ text: `${e}失败:${t?.message || "请重试"}` }, { warn: !0 }), C8.rollSeed = () => Tn(), C8.seededSample = (e, t, n, r = (e) => e.k) => {
+ }, S8.actionFailure = (e, t) => S8.toast({ text: `${e}失败:${t?.message || "请重试"}` }, { warn: !0 }), S8.rollSeed = () => Tn(), S8.seededSample = (e, t, n, r = (e) => e.k) => {
if (e.length <= t) return e;
let i = new Set([...e].sort((e, t) => wn(n, r(e)) - wn(n, r(t))).slice(0, t).map(r));
return e.filter((e) => i.has(r(e)));
@@ -75436,8 +75452,8 @@ var FAe = [
"folder",
"folder_recursive"
];
-function w8(e, t, n, r = n.defaultSort) {
- return Lk(e, t, n.defaultSort, n.defaultSortDirection, r);
+function C8(e, t, n, r = n.defaultSort) {
+ return Ik(e, t, n.defaultSort, n.defaultSortDirection, r);
}
function IAe(e, t, n) {
let r = decodeURIComponent(e.pathname), i = new URLSearchParams(e.search), a = Zt(r) || r === "/trash", o = (e) => a ? i.get(e) : null;
@@ -75454,7 +75470,7 @@ function IAe(e, t, n) {
orient: o("orient") || "",
region: o("region") || "",
state: Yt[r] || o("state") || "",
- ...w8(o("sort"), o("dir"), t),
+ ...C8(o("sort"), o("dir"), t),
seed: o("seed") || n(),
q: o("q") || "",
jav: o("jav") || "",
@@ -75471,7 +75487,7 @@ function RAe(e) {
let t = Jt[e.state ?? ""] || "/", n = new URLSearchParams();
for (let t of FAe) {
let r = e[t];
- r && (t !== "tag_match" || r !== "all") && (t !== "dir" || r !== Pk(e.sort ?? "")) && n.set(t, r);
+ r && (t !== "tag_match" || r !== "all") && (t !== "dir" || r !== Nk(e.sort ?? "")) && n.set(t, r);
}
return !Jt[e.state ?? ""] && e.state && n.set("state", e.state), t + (n.size ? `?${n}` : "");
}
@@ -75490,7 +75506,7 @@ function zAe(e, t, n) {
region: "",
state: "",
sort: t.defaultSort,
- dir: Ik(t.defaultSort, t.defaultSort, t.defaultSortDirection),
+ dir: Fk(t.defaultSort, t.defaultSort, t.defaultSortDirection),
seed: n(),
q: "",
jav: "",
@@ -75500,7 +75516,7 @@ function zAe(e, t, n) {
folder_recursive: ""
};
}
-function T8(e) {
+function w8(e) {
return {
state: e,
barsContext: {
@@ -75557,21 +75573,21 @@ var BAe = class {
let e = [...this.waiters.values()];
this.waiters.clear(), e.forEach((e) => e());
}
-}, E8 = 3e4, D8 = 0, VAe = (e, t = D8) => [
+}, T8 = 3e4, E8 = 0, VAe = (e, t = E8) => [
"facets",
e,
t
-], HAe = (e, t, n = D8) => [
+], HAe = (e, t, n = E8) => [
"tops",
e,
t,
n
-], UAe = (e, t = D8) => [
+], UAe = (e, t = E8) => [
"tops",
e,
t
];
-async function O8(e) {
+async function D8(e) {
let t = String(e), n = await z(`/api/tops?${t}`), r = new URLSearchParams(t);
return n.performers.length || n.studios.length || !r.has("state") ? n : (r.delete("state"), await z(`/api/tops?${r}`));
}
@@ -75579,22 +75595,22 @@ function WAe(e, t) {
return Promise.all([U.fetchQuery({
queryKey: VAe(e),
queryFn: () => z(`/api/facets${e ? `?${e}` : ""}`),
- staleTime: E8
+ staleTime: T8
}), U.fetchQuery({
queryKey: HAe(t, e),
- queryFn: () => O8(t),
- staleTime: E8
+ queryFn: () => D8(t),
+ staleTime: T8
})]);
}
function GAe(e) {
return U.fetchQuery({
queryKey: UAe(e),
- queryFn: () => O8(e),
- staleTime: E8
+ queryFn: () => D8(e),
+ staleTime: T8
});
}
-function k8() {
- D8 += 1;
+function O8() {
+ E8 += 1;
let e = (e) => e.state.fetchStatus === "idle";
U.removeQueries({
queryKey: ["facets"],
@@ -75606,7 +75622,7 @@ function k8() {
}
//#endregion
//#region src/application/navigation-items.ts
-var A8 = [
+var k8 = [
[
"",
"首页",
@@ -75657,7 +75673,7 @@ var A8 = [
"管理",
"wrench"
]
-], j8 = [
+], A8 = [
[
"stats",
"统计",
@@ -75703,18 +75719,18 @@ var A8 = [
"Peach 配置",
"folder-cog"
]
-], M8 = [
+], j8 = [
"stats",
"taste",
"cleanup",
"follow",
"activity",
"configuration"
-], KAe = (e) => j8.filter(([t]) => M8.includes(t) && (t !== "configuration" || e)), N8 = j8.flatMap(([e, t, n]) => e === "configuration" ? [] : [[
+], KAe = (e) => A8.filter(([t]) => j8.includes(t) && (t !== "configuration" || e)), M8 = A8.flatMap(([e, t, n]) => e === "configuration" ? [] : [[
e === "follow" ? "follow-manage" : e === "cleanup" ? "data-cleanup" : e,
t,
n
-]]), qAe = [...A8, ...N8], JAe = {
+]]), qAe = [...k8, ...M8], JAe = {
stats: "stats",
review: "review",
"data-cleanup": "cleanup",
@@ -75722,7 +75738,7 @@ var A8 = [
"follow-manage": "follow",
quality: "quality",
activity: "activity"
-}, P8 = [
+}, N8 = [
["0", "不限时间"],
["7", "最近 7 天"],
["30", "最近 30 天"],
@@ -75730,11 +75746,11 @@ var A8 = [
];
//#endregion
//#region src/react/index/index-controller.ts
-function F8({ kind: e, q: t, scope: n, view: r, category: i }) {
+function P8({ kind: e, q: t, scope: n, view: r, category: i }) {
let a = new URLSearchParams();
return t && a.set("q", t), e === "tags" && (a.set("view", r), n === "online" && a.set("scope", n), i !== "all" && a.set("category", i)), e === "performers" && n === "online" && a.set("scope", n), e === "performers" && n !== "online" && i !== "all" && a.set("category", i), `/${e}` + (a.size ? `?${a}` : "");
}
-function I8(e, t, n) {
+function F8(e, t, n) {
let r = e.entity_id || e.id, i = t === "studio" || t === "agency";
return {
html: La(e.k, r ? {
@@ -75747,7 +75763,7 @@ function I8(e, t, n) {
face: za(e.avatar_focus)
};
}
-function L8(e) {
+function I8(e) {
let t = String(e.k || ""), n = (t.match(/[A-Za-z0-9]/)?.[0] || Array.from(t)[0] || "?").toUpperCase(), r = e.avatar ? `<img src="${B(e.avatar)}" alt="" loading="lazy" referrerpolicy="no-referrer" ${ca({ fallbacks: [e.avatar_fallback || ""] })}>` : "";
return `<span class="ini">${B(n)}</span>${r}`;
}
@@ -75757,10 +75773,10 @@ function YAe(e) {
};
return {
route(t, { replace: n = !1 } = {}) {
- e.route(F8(t), n);
+ e.route(P8(t), n);
},
- personAvatar: I8,
- authorAvatar: L8,
+ personAvatar: F8,
+ authorAvatar: I8,
openFollowAuthor(n) {
t(Zi(e.followView(), n));
},
@@ -75787,33 +75803,33 @@ function XAe(e) {
}
//#endregion
//#region src/react/entity-page/entity-route.ts
-var R8 = () => Object.fromEntries(UX.map((e) => [e, e === "sort" ? "new" : e === "dir" ? "desc" : ""]));
-function z8(e, t) {
- let n = new URLSearchParams(e), r = R8();
- for (let e of UX) e !== "sort" && e !== "dir" && (r[e] = n.get(e) || "");
+var L8 = () => Object.fromEntries(HX.map((e) => [e, e === "sort" ? "new" : e === "dir" ? "desc" : ""]));
+function R8(e, t) {
+ let n = new URLSearchParams(e), r = L8();
+ for (let e of HX) e !== "sort" && e !== "dir" && (r[e] = n.get(e) || "");
return {
...r,
- ...Lk(n.get("sort"), n.get("dir"), t.sort, t.dir, "new")
+ ...Ik(n.get("sort"), n.get("dir"), t.sort, t.dir, "new")
};
}
-function B8(e) {
+function z8(e) {
let t = new URLSearchParams();
- for (let n of UX) e[n] && (n !== "sort" || e[n] !== "new") && (n !== "dir" || e[n] !== Pk(e.sort || "")) && t.set(n, e[n]);
+ for (let n of HX) e[n] && (n !== "sort" || e[n] !== "new") && (n !== "dir" || e[n] !== Nk(e.sort || "")) && t.set(n, e[n]);
return t.toString();
}
-function V8(e) {
+function B8(e) {
let t = new URLSearchParams(e), n = t.get("set") || "", r = t.get("media");
return {
media: r === "photos" || r === "online" ? r : "videos",
set: r === "photos" && /^\d+$/.test(n) ? Number(n) : 0
};
}
-function H8(e, t) {
- let n = new URLSearchParams(B8(e));
+function V8(e, t) {
+ let n = new URLSearchParams(z8(e));
return t?.media === "photos" ? (n.set("media", "photos"), t.set && n.set("set", String(t.set))) : t?.media === "online" && n.set("media", "online"), n.toString();
}
function ZAe(e, t, n, r) {
- let i = H8(n, r);
+ let i = V8(n, r);
return en(e, t) + (i ? `?${i}` : "");
}
function QAe() {
@@ -75825,13 +75841,13 @@ function QAe() {
read(t, n, r, i) {
let a = e === en(t, n) && !r;
e = "";
- let o = a ? R8() : { ...z8(r, i) };
+ let o = a ? L8() : { ...R8(r, i) };
return t === "creator" && (o.creator = ""), {
filters: o,
media: a ? {
media: "videos",
set: 0
- } : V8(r)
+ } : B8(r)
};
}
};
@@ -75883,7 +75899,7 @@ function tje(e, t, n) {
if (s) return s;
let c = () => {
let n = e.context();
- return n?.kind === t && n.name === a ? n.filters : R8();
+ return n?.kind === t && n.name === a ? n.filters : L8();
}, l = {
...n,
route: (e, n) => {
@@ -75896,7 +75912,7 @@ function tje(e, t, n) {
e.tag = "", e.creator = "", e.studio = "", e.owner = "";
}),
setSort: (e) => {
- let n = c(), i = Fk(e, n.sort || "new", n.dir || "");
+ let n = c(), i = Pk(e, n.sort || "new", n.dir || "");
i && r(t, a, {
...n,
...i
@@ -76008,7 +76024,7 @@ function aje(e) {
}
//#endregion
//#region src/application/feed.js
-var U8 = {
+var H8 = {
FEED_SKELETON_CARDS: void 0,
feedNewSkeletonHtml: void 0,
entityShapes: void 0,
@@ -76024,18 +76040,18 @@ var U8 = {
feedNewActions: void 0,
HERO_WIDE_PX: void 0
};
-function W8(e) {
+function U8(e) {
return e.has_cover ? Ha(e, "big") : !e.cover_url || !e.code ? e.cover_fetching ? `<span class="nopic" data-feed-cover-state="fetching">${is("抓取中")}</span>` : "<span class=\"nopic\" data-feed-cover-state=\"missing\">无封面</span>" : Ha(e, "big").replace(/ src="[^"]*"/, ` src="${B(Ma(e))}" data-panel-prior="1"`).replace("data-drop=\"self\"", "data-drop=\"initial\" data-initial=\"封面未取得\" data-drop-class=\"nopic\"");
}
function oje(e) {
- let t = [e.performers && `<span class="feednewperformers" title="${B(e.performers)}">${B(e.performers)}</span>`, e.release_date && `<span>${B(e.release_date)}</span>`].filter(Boolean).join(""), n = W8(e), r = e.code || String(e.title || "").trim() || "未命名新作", i = e.code ? uF({
+ let t = [e.performers && `<span class="feednewperformers" title="${B(e.performers)}">${B(e.performers)}</span>`, e.release_date && `<span>${B(e.release_date)}</span>`].filter(Boolean).join(""), n = U8(e), r = e.code || String(e.title || "").trim() || "未命名新作", i = e.code ? lF({
is_jav: !0,
code: e.code,
name: e.code,
display_title: e.title || ""
}) : B(r), a = e.code ? `<a class="feednewopen" href="/works/${encodeURIComponent(e.code)}" aria-label="打开 ${B(r)} 的作品详情"></a>` : "";
return `<article class="card feednewcard${e.read ? " isread" : ""}" data-feed-id="${e.id}">
- ${a}<div class="pic" style="--card-ratio:${mA}">${n}
+ ${a}<div class="pic" style="--card-ratio:${pA}">${n}
<div class="hovertools feednewtools">
<button type="button" data-feed-action="${e.wanted ? "unwant" : "want"}" aria-pressed="${!!e.wanted}" title="${e.wanted ? "取消想要" : "想要"}" aria-label="想要 ${B(r)}">${R("star")}</button>
<button type="button" data-feed-action="ignore" title="不想看" aria-label="不想看 ${B(r)}">${R("x")}</button>
@@ -76048,30 +76064,30 @@ function sje() {
if (e) try {
let t = JSON.parse(e.textContent || "null");
if (!t?.id || typeof t.kind != "string" || !Array.isArray(t.names) || !Array.isArray(t.parts)) return;
- U8.entityShapes = new Map([String(t.id), ...t.names].map((e) => [`${t.kind}/${un(e)}`, t.parts]));
+ H8.entityShapes = new Map([String(t.id), ...t.names].map((e) => [`${t.kind}/${un(e)}`, t.parts]));
} catch {}
}
-async function G8() {
- let e = J, t = await z("/api/entity/shapes", { signal: e.signal }).catch(() => null);
- return e.isActive && t && !t.error && (U8.entityShapesComplete = !0, U8.entityShapes = new Map((t.entities || []).flatMap((e) => [String(e.id), ...e.names].map((t) => [`${e.kind}/${un(t)}`, e.parts]))), typeof t.home?.feed == "boolean" && q8(t.home.feed), Z8(location.pathname) && J8(L("#feedNew"))), U8.entityShapes;
+async function W8() {
+ let e = Y, t = await z("/api/entity/shapes", { signal: e.signal }).catch(() => null);
+ return e.isActive && t && !t.error && (H8.entityShapesComplete = !0, H8.entityShapes = new Map((t.entities || []).flatMap((e) => [String(e.id), ...e.names].map((t) => [`${e.kind}/${un(t)}`, e.parts]))), typeof t.home?.feed == "boolean" && K8(t.home.feed), X8(location.pathname) && q8(L("#feedNew"))), H8.entityShapes;
}
-var K8 = "peach.home-feed.v1";
-function q8(e) {
+var G8 = "peach.home-feed.v1";
+function K8(e) {
X.homeHasFeed = e;
try {
- localStorage.setItem(K8, e ? "1" : "0");
+ localStorage.setItem(G8, e ? "1" : "0");
} catch {}
}
function cje() {
try {
- let e = localStorage.getItem(K8);
+ let e = localStorage.getItem(G8);
return e === "1" || e !== "0" && null;
} catch {
return null;
}
}
-function J8(e) {
- !e || IV(e) || e.querySelector("[data-feed-id]") || (e.hidden = X.homeHasFeed !== !0, X.homeHasFeed === !0 && (e.setAttribute("aria-busy", "true"), e.querySelector(".feednewskeleton") || (e.innerHTML = U8.feedNewSkeletonHtml())));
+function q8(e) {
+ !e || FV(e) || e.querySelector("[data-feed-id]") || (e.hidden = X.homeHasFeed !== !0, X.homeHasFeed === !0 && (e.setAttribute("aria-busy", "true"), e.querySelector(".feednewskeleton") || (e.innerHTML = H8.feedNewSkeletonHtml())));
}
function lje(e, t) {
return !(e > 0) || !t.some((e) => !e.has_cover) ? "" : ts(`${e} 部新作的封面连不上 DMM 图片主机,中国移动宽带常见。把 DMM / FANZA 的连接方式设成 Peach 代理,下一轮会自动重取。`, {
@@ -76081,52 +76097,52 @@ function lje(e, t) {
actionHref: "/sources"
});
}
-function Y8(e) {
+function J8(e) {
let t = e && !e.error && e.items || [];
return lje(e?.cover_network, t) + `<div class="feednewrow srow">${t.map(oje).join("")}</div>`;
}
-function X8(e) {
+function Y8(e) {
e && (e9(e), Z.appSettings.feedAutoScroll && Qs(e));
}
-function Z8(e) {
+function X8(e) {
return Zt(e) && e !== "/junk-files";
}
function uje() {
let e = L("#feedNew");
- IV(e) ? BV(e, { revision: ++U8.feedRevision }) : (J8(e), zV("feed-new", {
+ FV(e) ? zV(e, { revision: ++H8.feedRevision }) : (q8(e), RV("feed-new", {
host: e,
- revision: U8.feedRevision,
- helpers: U8.feedNewHelpers,
- actions: U8.feedNewActions
+ revision: H8.feedRevision,
+ helpers: H8.feedNewHelpers,
+ actions: H8.feedNewActions
}, {
container: e,
- isCurrent: () => Z8(location.pathname)
+ isCurrent: () => X8(location.pathname)
}));
}
-function Q8() {
+function Z8() {
let e = L("#feedNew");
- e.querySelectorAll(".feednewrow").forEach($s), VV(e), e.hidden = !0, e.innerHTML = "", e.removeAttribute("aria-busy");
+ e.querySelectorAll(".feednewrow").forEach($s), BV(e), e.hidden = !0, e.innerHTML = "", e.removeAttribute("aria-busy");
}
-function $8() {
- U8.feedRevision += 1, BV(L("#feedNew"), { revision: U8.feedRevision }), o5({ feedRevision: U8.feedRevision });
+function Q8() {
+ H8.feedRevision += 1, zV(L("#feedNew"), { revision: H8.feedRevision }), o5({ feedRevision: H8.feedRevision });
}
function dje() {
document.querySelectorAll(".feednewrow").forEach((e) => Z.appSettings.feedAutoScroll ? Qs(e) : $s(e));
}
-var e5 = 0;
+var $8 = 0;
function fje([e]) {
- let t = e.contentRect.width >= U8.HERO_WIDE_PX;
- cancelAnimationFrame(e5), e5 = requestAnimationFrame(() => {
- e5 = 0, L("#index")?.toggleAttribute("data-hero-wide", t);
+ let t = e.contentRect.width >= H8.HERO_WIDE_PX;
+ cancelAnimationFrame($8), $8 = requestAnimationFrame(() => {
+ $8 = 0, L("#index")?.toggleAttribute("data-hero-wide", t);
});
}
function pje() {
- U8.FEED_SKELETON_CARDS = 8, U8.feedNewSkeletonHtml = () => `<div class="feednewrow srow" aria-hidden="true">${`<article class="card feednewcard feednewskeleton"><div class="pic imgwait" style="--card-ratio:${mA}"></div>
+ H8.FEED_SKELETON_CARDS = 8, H8.feedNewSkeletonHtml = () => `<div class="feednewrow srow" aria-hidden="true">${`<article class="card feednewcard feednewskeleton"><div class="pic imgwait" style="--card-ratio:${pA}"></div>
<div class="meta"><div class="mtext"><span class="t"><span class="skeleton"></span></span>
- <div class="s mono"><span class="skeleton">&#8203;</span></div></div></div></article>`.repeat(U8.FEED_SKELETON_CARDS)}</div>`, U8.entityShapes = null, U8.entityShapesComplete = !1, U8.hasEntityShape = (e, t) => U8.entityShapesComplete || !!U8.entityShapes?.has(`${e}/${un(t)}`), U8.hasEntityPart = (e, t, n) => !!t && !!U8.entityShapes?.get(`${e}/${un(t)}`)?.includes(n), U8.feedNewSkeletonSection = () => `<section class="feednew">${U8.feedNewSkeletonHtml()}</section>`, U8.COSTAR_SKELETON_PEOPLE = 12, U8.costarSkeletonFoot = () => `<div class="entityfoot" data-entity-foot><div class="relatedpeople" data-related-people>${"<button type=\"button\" disabled tabindex=\"-1\"><span class=\"skeleton\" data-hero-ring></span><span class=\"skeleton\" data-hero-costar-name>&#8203;</span></button>".repeat(U8.COSTAR_SKELETON_PEOPLE)}</div></div>`, U8.factsSkeleton = () => `<dl class="entityfacts" data-entity-facts>${"<dt><span class=\"skeleton\"></span></dt><dd><span class=\"skeleton\"></span></dd>".repeat(5)}</dl>`, U8.feedRevision = 0, U8.feedNewHelpers = {
- feedRowHtml: Y8,
- wireFeedRow: (e) => X8(e)
- }, U8.feedNewActions = { settled: (e) => q8(e) }, U8.HERO_WIDE_PX = 900, J.resize(fje).observe(L("#index"));
+ <div class="s mono"><span class="skeleton">&#8203;</span></div></div></div></article>`.repeat(H8.FEED_SKELETON_CARDS)}</div>`, H8.entityShapes = null, H8.entityShapesComplete = !1, H8.hasEntityShape = (e, t) => H8.entityShapesComplete || !!H8.entityShapes?.has(`${e}/${un(t)}`), H8.hasEntityPart = (e, t, n) => !!t && !!H8.entityShapes?.get(`${e}/${un(t)}`)?.includes(n), H8.feedNewSkeletonSection = () => `<section class="feednew">${H8.feedNewSkeletonHtml()}</section>`, H8.COSTAR_SKELETON_PEOPLE = 12, H8.costarSkeletonFoot = () => `<div class="entityfoot" data-entity-foot><div class="relatedpeople" data-related-people>${"<button type=\"button\" disabled tabindex=\"-1\"><span class=\"skeleton\" data-hero-ring></span><span class=\"skeleton\" data-hero-costar-name>&#8203;</span></button>".repeat(H8.COSTAR_SKELETON_PEOPLE)}</div></div>`, H8.factsSkeleton = () => `<dl class="entityfacts" data-entity-facts>${"<dt><span class=\"skeleton\"></span></dt><dd><span class=\"skeleton\"></span></dd>".repeat(5)}</dl>`, H8.feedRevision = 0, H8.feedNewHelpers = {
+ feedRowHtml: J8,
+ wireFeedRow: (e) => Y8(e)
+ }, H8.feedNewActions = { settled: (e) => K8(e) }, H8.HERO_WIDE_PX = 900, Y.resize(fje).observe(L("#index"));
}
//#endregion
//#region src/entity-skeleton.ts
@@ -76145,10 +76161,10 @@ function mje(e, t, n, r = "") {
}
//#endregion
//#region src/filter-controls-skeleton.ts
-var t5 = (e) => e.startsWith("ri-") ? `<svg class="size-4 shrink-0" viewBox="0 0 24 24" fill="currentColor" stroke="none" aria-hidden="true"><use href="#${e}"/></svg>` : Vo(e, "size-4 shrink-0"), n5 = "inert aria-disabled=\"true\" tabindex=\"-1\" data-skeleton-control", r5 = (e, t, n) => `<span data-entity-layout="" class="${SU}" role="radiogroup" aria-label="${B(e)}">${n.map(([e, n, r]) => `<span class="${CU}" role="radio" aria-label="${B(n)}" aria-checked="${e === t}" data-glass-segment=""${e === t ? " data-selected=\"\"" : ""} ${n5}>${t5(r)}</span>`).join("")}</span>`;
-function i5(e, t) {
- let n = fM(), r = new URLSearchParams(location.search), i = t && n === "cards" ? r5(t.label, t.value, t.options) : "";
- return `<span data-entity-sorts=""><button type="button" data-entity-batch="" data-filter-action="" aria-label="换一批" ${n5}>${t5("shuffle")}</button>${i}${r5("馆藏显示方式", n, [[
+var e5 = (e) => e.startsWith("ri-") ? `<svg class="size-4 shrink-0" viewBox="0 0 24 24" fill="currentColor" stroke="none" aria-hidden="true"><use href="#${e}"/></svg>` : Vo(e, "size-4 shrink-0"), t5 = "inert aria-disabled=\"true\" tabindex=\"-1\" data-skeleton-control", n5 = (e, t, n) => `<span data-entity-layout="" class="${xU}" role="radiogroup" aria-label="${B(e)}">${n.map(([e, n, r]) => `<span class="${SU}" role="radio" aria-label="${B(n)}" aria-checked="${e === t}" data-glass-segment=""${e === t ? " data-selected=\"\"" : ""} ${t5}>${e5(r)}</span>`).join("")}</span>`;
+function r5(e, t) {
+ let n = dM(), r = new URLSearchParams(location.search), i = t && n === "cards" ? n5(t.label, t.value, t.options) : "";
+ return `<span data-entity-sorts=""><button type="button" data-entity-batch="" data-filter-action="" aria-label="换一批" ${t5}>${e5("shuffle")}</button>${i}${n5("馆藏显示方式", n, [[
"cards",
"卡片",
"ri-layout-grid-line"
@@ -76156,11 +76172,11 @@ function i5(e, t) {
"list",
"列表",
"ri-list-unordered"
- ]])}<button type="button" data-folder-mode-toggle="" aria-label="文件夹模式" aria-pressed="${r.get("browse") === "folders" || !!r.get("folder")}" ${n5}>${t5("ri-folder-3-line")}</button>${e.map((e) => `<button type="button" data-entity-sort="${B(e.key)}" aria-pressed="${e.pressed}" ${n5}>${B(e.label)}${e.dir ? t5(e.dir === "asc" ? "arrow-up" : "arrow-down") : ""}</button>`).join("")}</span>`;
+ ]])}<button type="button" data-folder-mode-toggle="" aria-label="文件夹模式" aria-pressed="${r.get("browse") === "folders" || !!r.get("folder")}" ${t5}>${e5("ri-folder-3-line")}</button>${e.map((e) => `<button type="button" data-entity-sort="${B(e.key)}" aria-pressed="${e.pressed}" ${t5}>${B(e.label)}${e.dir ? e5(e.dir === "asc" ? "arrow-up" : "arrow-down") : ""}</button>`).join("")}</span>`;
}
//#endregion
//#region src/application/entity.js
-var Y = {
+var i5 = {
ENTITY_FILTER_KEYS: void 0,
emptyEntityFilters: void 0,
parseEntityFilters: void 0,
@@ -76186,11 +76202,11 @@ var Y = {
application: void 0
};
function a5() {
- let e = FV(L("#index"));
+ let e = PV(L("#index"));
return e && e.path.endsWith("/*") && e.host.isConnected ? e : null;
}
function o5(e) {
- Y.entityPageCurrent() && BV(L("#index"), e);
+ i5.entityPageCurrent() && zV(L("#index"), e);
}
function s5() {
if (Cl.type === "item") return Cl;
@@ -76208,23 +76224,23 @@ function s5() {
}
function c5(e, t, n = t7()) {
return cMe(n).map(([n, r]) => {
- let i = e === n, a = Fk(n, e, t);
+ let i = e === n, a = Pk(n, e, t);
return {
key: n,
label: r,
pressed: i,
- dir: i && Nk(n, t) ? t === "asc" ? "asc" : "desc" : "",
- ariaLabel: a ? `按${r}${a.dir ? Nk(a.sort, a.dir) : ""}排序` : ""
+ dir: i && Mk(n, t) ? t === "asc" ? "asc" : "desc" : "",
+ ariaLabel: a ? `按${r}${a.dir ? Mk(a.sort, a.dir) : ""}排序` : ""
};
});
}
-function l5(e, t, n, r = Y.EMPTY_ENTITY_MEDIA, i = {}) {
- return Y.application.route(e, t, n, r, i);
+function l5(e, t, n, r = i5.EMPTY_ENTITY_MEDIA, i = {}) {
+ return i5.application.route(e, t, n, r, i);
}
function u5() {
return $Ae({
- entityWall: Y.entityPageWall,
- entityCurrent: Y.entityPageCurrent(),
+ entityWall: i5.entityPageWall,
+ entityCurrent: i5.entityPageCurrent(),
indexVisible: !L("#index").hidden,
pathname: location.pathname,
followMedia: $.followMediaView,
@@ -76232,21 +76248,21 @@ function u5() {
}, () => [...document.querySelectorAll(".followphotowall")].some((e) => e.getClientRects().length > 0));
}
function d5() {
- Y.photos.sync();
+ i5.photos.sync();
}
function f5() {
- u5() ? Loe(bA()) : NA();
+ u5() ? Loe(yA()) : MA();
}
function hje(e) {
- Y.photos.setSize(e);
+ i5.photos.setSize(e);
}
var p5 = XAe({
request: (e) => z("/api/reveal", {
method: "POST",
body: JSON.stringify({ id: e })
}),
- success: () => C8.toast({ text: "已在资源管理器中显示" }),
- failureText: (e) => Y.sourceHint(e instanceof Error ? e.message : String(e))
+ success: () => S8.toast({ text: "已在资源管理器中显示" }),
+ failureText: (e) => i5.sourceHint(e instanceof Error ? e.message : String(e))
});
async function m5(e) {
let t = { textContent: "" };
@@ -76269,12 +76285,12 @@ async function h5(e, t, n) {
body: JSON.stringify({ id: e })
});
if (r.ok === !1) {
- t.textContent = Y.sourceHint(r.error);
+ t.textContent = i5.sourceHint(r.error);
return;
}
- if (t.textContent = r.removed ? `${Y.syncedText(r)}(核对 ${r.checked} 项${r.unreadable ? `,${r.unreadable} 项未能读取` : ""})` : r.unreadable ? `目录有 ${r.unreadable} 项暂时无法读取,本次未改动` : `目录内 ${r.checked} 项都还在,无需改动`, r.removed) {
+ if (t.textContent = r.removed ? `${i5.syncedText(r)}(核对 ${r.checked} 项${r.unreadable ? `,${r.unreadable} 项未能读取` : ""})` : r.unreadable ? `目录有 ${r.unreadable} 项暂时无法读取,本次未改动` : `目录内 ${r.checked} 项都还在,无需改动`, r.removed) {
let e = (r.items || []).filter((e) => e.disposal !== "reattached").map((e) => e.id);
- n && n(r), C8.actionReceipt(Y.syncedText(r), { undo: e.length ? async () => {
+ n && n(r), S8.actionReceipt(i5.syncedText(r), { undo: e.length ? async () => {
await z("/api/batch", {
method: "POST",
body: JSON.stringify({
@@ -76286,20 +76302,20 @@ async function h5(e, t, n) {
restored: e.length
});
} : null });
- } else C8.actionReceipt("目录核对完成,无需改动");
+ } else S8.actionReceipt("目录核对完成,无需改动");
} catch (e) {
- t.textContent = Y.sourceHint(e.message), C8.actionFailure("核对目录", e);
+ t.textContent = i5.sourceHint(e.message), S8.actionFailure("核对目录", e);
}
}
function _je(e) {
- return `<div class="srctools">${Y.sourceToolButtons(e)}
+ return `<div class="srctools">${i5.sourceToolButtons(e)}
<span class="srcstate" aria-live="polite"></span></div>`;
}
function vje(e, t) {
let n = e.querySelector(".srcstate");
if (!n) return;
let r = e.querySelector("[data-reveal]"), i = e.querySelector("[data-sync]");
- r && J.handler(r, "onclick", () => p5(Number(r.dataset.reveal), n, { button: r })), i && J.handler(i, "onclick", () => h5(Number(i.dataset.sync), n, t));
+ r && Y.handler(r, "onclick", () => p5(Number(r.dataset.reveal), n, { button: r })), i && Y.handler(i, "onclick", () => h5(Number(i.dataset.sync), n, t));
}
async function yje(e, t) {
let n = yc({
@@ -76313,9 +76329,9 @@ async function yje(e, t) {
confirmDisabled: !0,
onConfirm: () => t({ alias: r.value.trim() })
}), r = n.dialog.querySelector("[name=alias]");
- J.handler(r, "oninput", () => {
+ Y.handler(r, "oninput", () => {
n.confirmButton.disabled = !r.value.trim();
- }), n.dialog.querySelectorAll("[data-alias-drop]").forEach((e) => J.handler(e, "onclick", async () => {
+ }), n.dialog.querySelectorAll("[data-alias-drop]").forEach((e) => Y.handler(e, "onclick", async () => {
let r = e.dataset.aliasDrop;
n.close();
try {
@@ -76324,31 +76340,31 @@ async function yje(e, t) {
remove: !0
});
} catch (e) {
- C8.actionFailure("撤销别名", e);
+ S8.actionFailure("撤销别名", e);
return;
}
- C8.actionReceipt(`已撤销别名 ${r}`, { undo: async () => {
+ S8.actionReceipt(`已撤销别名 ${r}`, { undo: async () => {
await t({ alias: r });
} });
}));
let { confirmed: i, result: a } = await n.done;
- i && (a?.added ? C8.actionReceipt(`已添加别名 ${a.alias}`, { undo: async () => {
+ i && (a?.added ? S8.actionReceipt(`已添加别名 ${a.alias}`, { undo: async () => {
await t({
alias: a.alias,
remove: !0
});
- } }) : C8.actionReceipt(`${a?.alias} 已经是这份档案中的名字`));
+ } }) : S8.actionReceipt(`${a?.alias} 已经是这份档案中的名字`));
}
function g5(e, t) {
- let n = ["performer", "studio"].includes(e) && U8.hasEntityPart(e, t, "jav"), r = `<div data-filter-row="bottom" class="flex min-w-0 items-center gap-3 px-3 py-2 min-h-12"><h3 data-entity-readout><span data-skeleton="count" class="relative inline-block h-3.5 w-24 rounded-md align-middle skeleton-sheen"></span></h3>${Ho()}${e === "agency" ? "" : i5(c5(W.sort, W.dir, n), n ? {
+ let n = ["performer", "studio"].includes(e) && H8.hasEntityPart(e, t, "jav"), r = `<div data-filter-row="bottom" class="flex min-w-0 items-center gap-3 px-3 py-2 min-h-12"><h3 data-entity-readout><span data-skeleton="count" class="relative inline-block h-3.5 w-24 rounded-md align-middle skeleton-sheen"></span></h3>${Ho()}${e === "agency" ? "" : r5(c5(W.sort, W.dir, n), n ? {
name: "jav-layout",
label: "JAV 卡片版式",
- value: gA(),
- options: dA
- } : null)}</div>`, i = e === "agency" ? "" : `<div data-entity-media><button type="button" data-media-view="videos" aria-label="视频" aria-pressed="true" ${n5}>${R("play")}</button><button type="button" data-media-view="photos" data-media-icon="image" aria-label="照片" ${n5}>${R("pics")}</button></div><span data-entity-sep></span><div data-entity-scroll><div data-entity-states>${X.catalogViews().map((e) => `<button type="button" data-entity-state="${B(e.k)}" aria-pressed="${W.state === e.k}" ${n5}>${B(e.label)}</button>`).join("")}<span data-entity-sep></span></div>`, a = mje(e, r, e === "agency" ? vs({
+ value: hA(),
+ options: uA
+ } : null)}</div>`, i = e === "agency" ? "" : `<div data-entity-media><button type="button" data-media-view="videos" aria-label="视频" aria-pressed="true" ${t5}>${R("play")}</button><button type="button" data-media-view="photos" data-media-icon="image" aria-label="照片" ${t5}>${R("pics")}</button></div><span data-entity-sep></span><div data-entity-scroll><div data-entity-states>${X.catalogViews().map((e) => `<button type="button" data-entity-state="${B(e.k)}" aria-pressed="${W.state === e.k}" ${t5}>${B(e.label)}</button>`).join("")}<span data-entity-sep></span></div>`, a = mje(e, r, e === "agency" ? vs({
kind: "performers",
layout: M5.peopleIndexLayout()
- }) : iY("正在读取作品", wA(CA({
+ }) : rY("正在读取作品", CA(SA({
active: n,
home: !1,
portrait: !1
@@ -76361,17 +76377,17 @@ function _5(e, t) {
let r = (e, t, n) => {
t && !e ? n() : !t && e && e.remove();
};
- r(n.querySelector(".entityfoot"), e !== "agency" && U8.hasEntityPart(e, t, "costars"), () => n.querySelector(".entityhero")?.insertAdjacentHTML("beforeend", U8.costarSkeletonFoot())), r(n.querySelector(".feednew"), U8.hasEntityPart(e, t, "feed"), () => n.querySelector(".entitysection")?.insertAdjacentHTML("beforebegin", U8.feedNewSkeletonSection())), r(n.querySelector(".entityfacts"), e === "performer" && U8.hasEntityPart(e, t, "facts"), () => n.querySelector(".entityprofile")?.insertAdjacentHTML("beforeend", U8.factsSkeleton()));
+ r(n.querySelector(".entityfoot"), e !== "agency" && H8.hasEntityPart(e, t, "costars"), () => n.querySelector(".entityhero")?.insertAdjacentHTML("beforeend", H8.costarSkeletonFoot())), r(n.querySelector(".feednew"), H8.hasEntityPart(e, t, "feed"), () => n.querySelector(".entitysection")?.insertAdjacentHTML("beforebegin", H8.feedNewSkeletonSection())), r(n.querySelector(".entityfacts"), e === "performer" && H8.hasEntityPart(e, t, "facts"), () => n.querySelector(".entityprofile")?.insertAdjacentHTML("beforeend", H8.factsSkeleton()));
}
function v5(e) {
- let t = Qt[e] || e, n = H3[t] || "条目", r = H3[t] ? `<a class="geist-button primary" href="/${t}">返回${n}列表</a>` : "";
+ let t = Qt[e] || e, n = V3[t] || "条目", r = V3[t] ? `<a class="geist-button primary" href="/${t}">返回${n}列表</a>` : "";
L("#index").innerHTML = Z.emptyState("search-x", `找不到这个${n}`, "名字可能拼错了,或者已经合并到别的名字下;回列表里重新找。", { actions: r });
}
function y5(e, t) {
- b9(Y.application.fresh(e, t));
+ b9(i5.application.fresh(e, t));
}
function bje() {
- Y.ENTITY_FILTER_KEYS = [
+ i5.ENTITY_FILTER_KEYS = [
"loc",
"creator",
"tag",
@@ -76381,71 +76397,71 @@ function bje() {
"orient",
"sort",
"dir"
- ], Y.emptyEntityFilters = R8, Y.parseEntityFilters = (e) => z8(e, {
+ ], i5.emptyEntityFilters = L8, i5.parseEntityFilters = (e) => R8(e, {
sort: Z.appSettings.defaultSort,
dir: Z.appSettings.defaultSortDirection
- }), Y.entityFilterSearch = B8, Y.cloneBarsContext = (e) => e && e.type === "entity" ? {
+ }), i5.entityFilterSearch = z8, i5.cloneBarsContext = (e) => e && e.type === "entity" ? {
...e,
filters: { ...e.filters }
- } : e, Y.activeFilterState = () => {
+ } : e, i5.activeFilterState = () => {
let e = s5();
return e.type === "home" ? W : e.filters;
}, L("#q").value = W.q, X.rememberSearchValue();
}
function xje() {
- Y.entityPageView = "", Y.entityPageWall = !1, Y.entityPageRevision = 0, Y.entityPageCurrent = () => !!a5(), Y.entityPageLive = (e, t) => {
+ i5.entityPageView = "", i5.entityPageWall = !1, i5.entityPageRevision = 0, i5.entityPageCurrent = () => !!a5(), i5.entityPageLive = (e, t) => {
let n = a5();
return !!n && !L("#index").hidden && n.props.kind === e && n.props.name === t;
- }, Y.EMPTY_ENTITY_MEDIA = {
+ }, i5.EMPTY_ENTITY_MEDIA = {
media: "videos",
set: 0
- }, Y.parseMediaView = V8, Y.entityViewSearch = H8, Y.entityBodyCanLoadMore = () => !L("#index").hidden && L("#stats").hidden, Y.entityBodySkeleton = () => K7(), Y.entityPageHelpers = {
+ }, i5.parseMediaView = B8, i5.entityViewSearch = V8, i5.entityBodyCanLoadMore = () => !L("#index").hidden && L("#stats").hidden, i5.entityBodySkeleton = () => K7(), i5.entityPageHelpers = {
wireDrag: (e) => {
e && e9(e);
},
wireScroller: (e) => {
e && Hs(e);
},
- wireFeedRow: (e) => X8(e),
- feedRowHtml: Y8,
- receipt: (e, t) => C8.actionReceipt(e, t),
- failure: (e, t) => C8.actionFailure(e, t),
+ wireFeedRow: (e) => Y8(e),
+ feedRowHtml: J8,
+ receipt: (e, t) => S8.actionReceipt(e, t),
+ failure: (e, t) => S8.actionFailure(e, t),
aliasForm: (e, t) => yje(e, t),
sourceToolsHtml: (e) => _je(e),
wireSourceTools: (e, t) => vje(e, t),
comboItems: (e) => F7(e),
sortKeys: (e, t, n) => c5(e, t, n)
- }, Y.entityFollowActions = {
+ }, i5.entityFollowActions = {
...$.followFeedActions,
route: () => {},
shuffle: () => {},
loaded: () => {},
toggleSelection: () => {}
- }, Y.SOURCE_HINTS = {
+ }, i5.SOURCE_HINTS = {
"source offline": "媒体库无法访问,暂时无法核对文件;恢复连接后重试",
"source not mapped": "本机没有映射这个来源的盘符",
"file missing": "找不到源文件;点击右侧的扫描按钮,重新检查目录并更新数据库记录",
"unsupported platform": "当前服务端系统不支持直接定位文件",
"reveal failed": "打开文件管理器失败,请重试"
- }, Y.sourceHint = (e) => Y.SOURCE_HINTS[e] || e, Y.syncedText = (e) => [
+ }, i5.sourceHint = (e) => i5.SOURCE_HINTS[e] || e, i5.syncedText = (e) => [
e.trashed ? `已把 ${e.trashed} 项移入回收站` : "",
e.vanished ? `${e.vanished} 项带个人记录,已标为已消失` : "",
e.reattached ? `${e.reattached} 项的记录已接到库里的另一个版本` : ""
- ].filter(Boolean).join(","), Y.sourceToolButtons = (e) => `
+ ].filter(Boolean).join(","), i5.sourceToolButtons = (e) => `
<button type="button" data-reveal="${e}" title="在文件管理器里打开源文件所在目录"
aria-label="定位源文件">${R("folder-open")}</button>
<button type="button" data-sync="${e}" title="核对该目录:磁盘上已删除的移入 Peach 回收站,带个人记录的标为已消失"
aria-label="同步删除">${R("folder-sync")}</button>`;
}
function Sje() {
- Y.application = ije({
+ i5.application = ije({
controller: {
context: () => {
let e = s5();
return e.type === "entity" ? e : null;
},
- live: (e, t) => Y.entityPageLive(e, t),
- current: () => Y.entityPageCurrent(),
+ live: (e, t) => i5.entityPageLive(e, t),
+ current: () => i5.entityPageCurrent(),
route: (e, t = !1) => Q.route(e, t),
suffix: () => location.search + location.hash,
restoreHomeContext: () => Zl({ barsContext: {
@@ -76459,14 +76475,14 @@ function Sje() {
jav: W.jav === "1"
}),
preferences: () => ({
- revision: Y.entityPageRevision,
- feedRevision: U8.feedRevision,
- photoSize: bA(),
- photoLayout: xA(),
- photoLayouts: pA,
+ revision: i5.entityPageRevision,
+ feedRevision: H8.feedRevision,
+ photoSize: yA(),
+ photoLayout: bA(),
+ photoLayouts: fA,
followImagesOnly: !!Z.appSettings.followImagesOnly,
- javLayout: gA(),
- javLayouts: dA,
+ javLayout: hA(),
+ javLayouts: uA,
states: X.VIEW_PILLS,
peopleLayout: M5.peopleIndexLayout(),
layout: G7(),
@@ -76475,47 +76491,47 @@ function Sje() {
seekSeconds: Z.appSettings.seekSeconds,
groupCollapse: Z.appSettings.groupCollapse,
wireDrag: e9,
- skeletonHtml: Y.entityBodySkeleton,
- canLoadMore: Y.entityBodyCanLoadMore,
+ skeletonHtml: i5.entityBodySkeleton,
+ canLoadMore: i5.entityBodyCanLoadMore,
follow: {
helpers: $.followFeedHelpers,
- actions: Y.entityFollowActions
+ actions: i5.entityFollowActions
}
}),
changeFilter: C7,
- rollSeed: () => C8.rollSeed(),
+ rollSeed: () => S8.rollSeed(),
writeSeed: (e) => {
W.seed = e, Ql();
},
setJavLayout: i7,
- javLayout: gA,
- setPhotoLayout: EA,
+ javLayout: hA,
+ setPhotoLayout: TA,
syncPhotoWalls: d5,
openEntity: y5,
photoViewActive: u5,
recordPainted: (e, t) => {
- Y.entityPageView = e, Y.entityPageWall = t;
+ i5.entityPageView = e, i5.entityPageWall = t;
},
syncDensity: f5,
scheduleSticky: d7,
- releasePage: () => VV(L("#index")),
+ releasePage: () => BV(L("#index")),
showMissing: v5,
- dropBars: k8
+ dropBars: O8
},
loading: {
- shapesReady: (e, t) => U8.hasEntityShape(e, t),
+ shapesReady: (e, t) => H8.hasEntityShape(e, t),
waitShapes: z5,
paintSkeleton: g5,
resetView: () => {
- Zl({ detailReturnBarsContext: null }), Y.entityPageView = "", Y.entityPageWall = !1;
+ Zl({ detailReturnBarsContext: null }), i5.entityPageView = "", i5.entityPageWall = !1;
},
- loadShapes: G8,
+ loadShapes: W8,
syncParts: _5
},
photos: {
preferences: () => ({
- size: bA(),
- layout: xA(),
+ size: yA(),
+ layout: bA(),
imagesOnly: !!Z.appSettings.followImagesOnly
}),
walls: () => document.querySelectorAll(".followphotowall"),
@@ -76524,7 +76540,7 @@ function Sje() {
syncDensity: f5,
storeSize: Foe
},
- helpers: Y.entityPageHelpers,
+ helpers: i5.entityPageHelpers,
actions: {
toggleTag: P7,
openFollowAuthor: F5,
@@ -76534,7 +76550,7 @@ function Sje() {
sort: Z.appSettings.defaultSort,
dir: Z.appSettings.defaultSortDirection
})
- }), Y.photos = Y.application.photos, Y.entityPageHelpers = Y.application.helpers;
+ }), i5.photos = i5.application.photos, i5.entityPageHelpers = i5.application.helpers;
}
//#endregion
//#region src/application/playlists.js
@@ -76569,7 +76585,7 @@ async function wje({ title: e, count: t, save: n }) {
});
r.dialog.querySelector("[name=\"name\"]").select();
let { confirmed: i, result: a } = await r.done;
- i && (await o9(a.id, a.current_asset_id, !0), C8.actionReceipt("已保存为播放列表", { undo: async () => {
+ i && (await o9(a.id, a.current_asset_id, !0), S8.actionReceipt("已保存为播放列表", { undo: async () => {
await b5.playlistWrite({
action: "delete",
id: a.id
@@ -76604,11 +76620,11 @@ async function Tje(e) {
let e = n.dialog.querySelector("[name=\"name\"]").value.trim();
n.confirmButton.disabled = !e && !n.dialog.querySelector("[data-pick-playlist]:checked");
};
- J.listen(n.dialog, "input", r), J.listen(n.dialog, "change", r);
+ Y.listen(n.dialog, "input", r), Y.listen(n.dialog, "change", r);
let { confirmed: i, result: a } = await n.done;
if (!i) return;
let o = +!!a.created + a.added.length;
- C8.actionReceipt(`已加入 ${o} 个播放列表`, { undo: async () => {
+ S8.actionReceipt(`已加入 ${o} 个播放列表`, { undo: async () => {
for (let t of a.added) await b5.playlistWrite({
action: "remove",
id: t,
@@ -76622,14 +76638,14 @@ async function Tje(e) {
}
function S5() {
cl(), i9(!1), U5();
- let e = FV(L("#stats"));
+ let e = PV(L("#stats"));
e?.path !== "/playlists" || !e.host.isConnected ? Zl({ pageOpens: Hl + 1 }) : (H5({ manage: !1 }), Zl({ playlistsRevision: Jl + 1 }));
}
function Eje(e) {
Q.route("/review" + (e.category ? "?category=" + encodeURIComponent(e.category) : ""));
}
function C5(e) {
- Zl({ configurationRequestedSection: e }), Q.navigatePath(fV(e));
+ Zl({ configurationRequestedSection: e }), Q.navigatePath(dV(e));
}
function Dje() {
b5.playlistWrite = (e) => z("/api/playlist", {
@@ -76651,7 +76667,7 @@ function T5(e, t, n, r, i = !1) {
};
}
function E5(e, t, n, r, i, a = !1) {
- let o = n === "follow", s = RY(o ? e.followSelected : e.selected, r, o ? t.followLastSelectedId : t.lastSelectedId, i, a);
+ let o = n === "follow", s = LY(o ? e.followSelected : e.selected, r, o ? t.followLastSelectedId : t.lastSelectedId, i, a);
return {
...T5(e, t, n, !0),
...o ? { followLastSelectedId: s } : { lastSelectedId: s }
@@ -76662,7 +76678,7 @@ function Oje(e, t, n, r) {
return {
count: (i === "follow" ? e.followSelected : e.selected).size,
context: i === "catalog" && r === "trash" ? "trash" : i,
- junkDismissed: u$(n).view === "dismissed"
+ junkDismissed: l$(n).view === "dismissed"
};
}
//#endregion
@@ -76685,7 +76701,7 @@ function O5() {
}), T9({
selected: new Set(El),
selectMode: Dl
- }), D5.batchDockProps = Rje(), y8() && (y8().render(D5.batchDockProps), Z.syncGlassOptics());
+ }), D5.batchDockProps = Rje(), v8() && (v8().render(D5.batchDockProps), Z.syncGlassOptics());
}
function k5(e, t = !1) {
Zl(T5({
@@ -76745,7 +76761,7 @@ async function Mje(e, t) {
if (t.blocked && t.blocked.length) throw Error(`已永久删除 ${t.purged} 项;${t.blocked.length} 项未能删除,仍在回收站:\n` + t.blocked.slice(0, 5).map((e) => `${e.path}(${e.reason})`).join("\n"));
k5(!1, !0), await o7();
let r = e === "dispose" ? "restore" : e === "restore" ? "dispose" : null;
- C8.actionReceipt(`已${n[e]} ${i.length} 项`, { undo: r ? async () => {
+ S8.actionReceipt(`已${n[e]} ${i.length} 项`, { undo: r ? async () => {
if (r === "dispose" && t.restored_reasons) for (let e of [
null,
"manual",
@@ -76806,11 +76822,11 @@ async function Nje() {
};
}
});
- t.dialog.querySelectorAll("[data-region-pick]").forEach((e) => J.handler(e, "onclick", () => {
+ t.dialog.querySelectorAll("[data-region-pick]").forEach((e) => Y.handler(e, "onclick", () => {
t.dialog.querySelectorAll("[data-region-pick]").forEach((t) => t.setAttribute("aria-pressed", String(t === e))), t.confirmButton.disabled = !1;
}));
let { confirmed: n, result: r } = await t.done;
- n && (k5(!1, !0), await o7(), C8.actionReceipt(r.region === "none" ? `已撤回 ${e.length} 项的产地判定` : `已判为${r.label}:${e.length} 项`));
+ n && (k5(!1, !0), await o7(), S8.actionReceipt(r.region === "none" ? `已撤回 ${e.length} 项的产地判定` : `已判为${r.label}:${e.length} 项`));
}
async function Pje(e, t) {
let n = [...El];
@@ -76838,7 +76854,7 @@ async function Pje(e, t) {
items: n,
to: e
})
- }), k5(!1, !0), location.pathname === "/follow" && Zl({ pageOpens: Hl + 1 }), C8.actionReceipt(`已${r[e]} ${n.length} 项`);
+ }), k5(!1, !0), location.pathname === "/follow" && Zl({ pageOpens: Hl + 1 }), S8.actionReceipt(`已${r[e]} ${n.length} 项`);
} catch (e) {
throw cc(t, !1), e;
} finally {
@@ -76876,7 +76892,7 @@ async function Fje(e, t) {
})
}), k5(!1, !0), await L7();
let t = e === "dispose" ? "restore" : e === "dismiss-junk" ? "reconsider-junk" : e === "reconsider-junk" ? "dismiss-junk" : null;
- C8.actionReceipt(`已批量${r[e]}:${n.length} 项`, { undo: t ? async () => {
+ S8.actionReceipt(`已批量${r[e]}:${n.length} 项`, { undo: t ? async () => {
await z("/api/batch", {
method: "POST",
body: JSON.stringify({
@@ -76908,7 +76924,7 @@ function Lje() {
count: 0,
context: "catalog",
junkDismissed: !1
- }, D5.trashCount = null, D5.currentSelectSurface = () => w5(location.pathname), J.handler(L("#selectMode"), "onclick", () => k5(!Dl, !!Dl)), D5.REGION_CHOICES = [
+ }, D5.trashCount = null, D5.currentSelectSurface = () => w5(location.pathname), Y.handler(L("#selectMode"), "onclick", () => k5(!Dl, !!Dl)), D5.REGION_CHOICES = [
["jp", "日本"],
["kr", "韩国"],
["cn", "国产"],
@@ -76921,16 +76937,16 @@ function Lje() {
follow: Pje,
junk: Fje,
clear: () => k5(!1, !0)
- }, J.handler(L("#density"), "onclick", () => {
- u5() ? hje(bA() === "big" ? "small" : "big") : Ioe();
- }), NA(), ol({
+ }, Y.handler(L("#density"), "onclick", () => {
+ u5() ? hje(yA() === "big" ? "small" : "big") : Ioe();
+ }), MA(), ol({
selecting: () => Dl,
censored: () => Q7(),
delaySeconds: () => Z.appSettings.hoverDelaySeconds
- }), J.listen(window, "pagehide", () => cl()), J.listen(document, "visibilitychange", () => {
+ }), Y.listen(window, "pagehide", () => cl()), Y.listen(document, "visibilitychange", () => {
document.hidden && cl();
- }), rl(), D5.coverRecheck = 0, J.listen(window, "resize", () => {
- el(L("#index")), clearTimeout(D5.coverRecheck), D5.coverRecheck = J.delay(() => L("#index").querySelectorAll("img.cover").forEach((e) => {
+ }), rl(), D5.coverRecheck = 0, Y.listen(window, "resize", () => {
+ el(L("#index")), clearTimeout(D5.coverRecheck), D5.coverRecheck = Y.delay(() => L("#index").querySelectorAll("img.cover").forEach((e) => {
e.complete && Gc(e);
}), 200);
}, { passive: !0 });
@@ -76959,22 +76975,22 @@ function zje() {
return Z.appSettings.followLayout === "table" ? "table" : "default";
}
function Bje() {
- return WZ(location.search);
+ return UZ(location.search);
}
function Vje(e) {
- return GZ(e);
+ return WZ(e);
}
function Hje(e) {
Q.route(Vje(e));
}
function Uje(e = "") {
- return KZ(location.search, e);
+ return GZ(location.search, e);
}
function Wje(e) {
- return L8(e);
+ return I8(e);
}
function N5(e) {
- return F8(e);
+ return P8(e);
}
function P5() {
L("#stats").hidden = !0, L("#index").hidden = !1, z7(), X.hideCatalogCombo(), L("#count").textContent = "", L("#loadSentinel").hidden = !0;
@@ -76998,9 +77014,9 @@ function qje() {
"list",
"add",
"feeds"
- ], J.listen(document, "click", (e) => {
+ ], Y.listen(document, "click", (e) => {
e.target.closest?.("[data-empty-settings]") && C5("媒体库与入库");
- }), M5.peopleIndexLayout = () => U3(Z.appSettings.peopleLayout), M5.personAvatar = I8;
+ }), M5.peopleIndexLayout = () => H3(Z.appSettings.peopleLayout), M5.personAvatar = F8;
}
function Jje() {
M5.controller = YAe({
@@ -77030,12 +77046,12 @@ function L5(e = "正在读取作品") {
return;
}
let t = L("#count"), n = decodeURIComponent(location.pathname) === "/junk-files";
- if (t.classList.toggle("manage-static", n), t.classList.toggle("junkcount", n), n ? (t.setAttribute("aria-busy", "true"), t.setAttribute("aria-label", e), t.innerHTML = bCe(u$(location.search)), Ts(t)) : (t.removeAttribute("aria-busy"), t.removeAttribute("aria-label"), t.textContent = "", W && T7({
+ if (t.classList.toggle("manage-static", n), t.classList.toggle("junkcount", n), n ? (t.setAttribute("aria-busy", "true"), t.setAttribute("aria-label", e), t.innerHTML = bCe(l$(location.search)), Ts(t)) : (t.removeAttribute("aria-busy"), t.removeAttribute("aria-label"), t.textContent = "", W && T7({
count: null,
...O7()
})), L("#loadSentinel").hidden = !0, H7()) return;
let r = L("#grid"), i = K7(e), a = r.querySelector(".catalog-skeleton");
- (a?.dataset.skeleton !== p2(i) || Number(a.querySelector("[style]")?.style.getPropertyValue("--skeleton-card-ratio")) !== q7()) && (a ? r.innerHTML = `<div class="grid">${i}</div>` : I5.setGridCards(i), Ts(L("#grid")));
+ (a?.dataset.skeleton !== f2(i) || Number(a.querySelector("[style]")?.style.getPropertyValue("--skeleton-card-ratio")) !== q7()) && (a ? r.innerHTML = `<div class="grid">${i}</div>` : I5.setGridCards(i), Ts(L("#grid")));
}
function R5() {
L("#catalogFilter").style.display = "none", w7();
@@ -77044,11 +77060,11 @@ function z5() {
let e = new Promise((e) => {
let t = I5.ENTITY_SHAPES_WAIT, n = performance.now(), r = () => {
let i = performance.now();
- t -= Math.min(i - n, 50), n = i, t > 0 ? J.delay(r, Math.min(t, 50)) : e();
+ t -= Math.min(i - n, 50), n = i, t > 0 ? Y.delay(r, Math.min(t, 50)) : e();
};
- J.delay(r, 50);
+ Y.delay(r, 50);
});
- return Promise.race([I5.entityShapesReady ||= G8(), e]);
+ return Promise.race([I5.entityShapesReady ||= W8(), e]);
}
function Yje() {
let e = decodeURIComponent(location.pathname);
@@ -77056,26 +77072,26 @@ function Yje() {
else if (/^\/assets\/\d+$/.test(e)) R5();
else if (e === "/settings" || /^\/settings\/(appearance|playback|jav|search|content)$/.test(e) || e.startsWith("/posts/") || e.startsWith("/works/")) R5();
else if (e === "/junk-files") L5("正在读取垃圾文件");
- else if (e === "/jav" && T$(new URLSearchParams(location.search).get("tab")) === "library") L5("正在读取馆藏");
+ else if (e === "/jav" && w$(new URLSearchParams(location.search).get("tab")) === "library") L5("正在读取馆藏");
else if (Q.managedPagePath(e)) {
R5();
let t = L("#stats");
t.hidden = !1, z7(), t.innerHTML = e.startsWith("/follow") && e !== "/subscriptions" ? $.followSkeletonHtml("正在读取关注内容") : I5.managementPlaceholder(e), Ts(t);
- } else if (/^\/(performers|creators|studios|agencies|tags)$/.test(e)) R5(), P5(), K3(L("#index"), W3(e.slice(1), location.search), M5.peopleIndexLayout());
+ } else if (/^\/(performers|creators|studios|agencies|tags)$/.test(e)) R5(), P5(), G3(L("#index"), U3(e.slice(1), location.search), M5.peopleIndexLayout());
else if (/^\/(?:performers|creators|studios|agencies|series|tags)\//.test(e)) {
R5(), L("#index").hidden = !1, z7();
let t = $t[e.split("/")[1]], n = e.split("/").slice(2).join("/");
- (U8.hasEntityShape(t, n) ? Promise.resolve() : z5()).then(() => {
+ (H8.hasEntityShape(t, n) ? Promise.resolve() : z5()).then(() => {
L("#index").firstElementChild || decodeURIComponent(location.pathname) !== e || (g5(t, n), Ts(L("#index")));
});
} else Q.routeMeta(e) ? L5() : (z7(), L("#count").textContent = "", L("#loadSentinel").hidden = !0);
}
function Xje() {
- $.followContentSkeletonHtml = (e = new URLSearchParams(location.search).get("media") === "images" ? "images" : "videos", t = "正在读取关注内容") => d2(t, {
+ $.followContentSkeletonHtml = (e = new URLSearchParams(location.search).get("media") === "images" ? "images" : "videos", t = "正在读取关注内容") => u2(t, {
cards: !0,
className: "follow-content-skeleton postercard-skeleton",
gridClass: e === "images" ? "followlist followphotowall" : "",
- gridSize: bA()
+ gridSize: yA()
}), $.followSkeletonHtml = (e = "正在读取关注内容") => `<div class="peach-react"><div class="follow" data-follow-feed>
<div data-follow-head><h2 data-follow-title>关注</h2></div>
<div class="tier followauthors" data-skeleton-tier="av"></div>
@@ -77085,7 +77101,7 @@ function Xje() {
<div class="count followcount" data-filter-row="bottom"><span class="mono"><span class="countskeleton"></span></span></div></div>
${$.followContentSkeletonHtml(void 0, e)}</div></div>`, L("#loadSentinel").innerHTML = is(rs), I5.setGridCards = (e) => gs(L("#grid"), () => {
L("#grid").innerHTML = `<div class="grid">${e}</div>`;
- }), I5.gridCards = () => document.querySelectorAll(":is(#grid,#index [data-entity-grid]) :is([data-media-grid] > [data-media-card][data-id],[data-catalog-row][data-id])"), I5.managementPlaceholder = (e) => f2(e, {
+ }), I5.gridCards = () => document.querySelectorAll(":is(#grid,#index [data-entity-grid]) :is([data-media-grid] > [data-media-card][data-id],[data-catalog-row][data-id])"), I5.managementPlaceholder = (e) => d2(e, {
followLayout: zje(),
...(({ sort: e, dir: t, tab: n }) => ({
followSort: e,
@@ -77093,7 +77109,7 @@ function Xje() {
followTab: n
}))(Bje())
}), I5.wantsDiscoveryBars = () => L("#catalogFilter").style.display !== "none", I5.entityShapesReady = null, I5.ENTITY_SHAPES_WAIT = 400, I5.syncPageTitle = (e) => {
- let t = new URL(e, location.origin), n = DV(decodeURIComponent(t.pathname))?.title;
+ let t = new URL(e, location.origin), n = EV(decodeURIComponent(t.pathname))?.title;
document.title = n ? `${n} · Peach` : "Peach · 蜜桃", document.body.dataset.surface = t.pathname, m9();
};
}
@@ -77157,13 +77173,13 @@ var V5 = {
mobileFilterPath: void 0
};
function H5({ manage: e = !0, placeholder: t = "" } = {}) {
- L("#stats").hidden = !1, L("#index").hidden = !0, z7(), L("#count").textContent = "", L("#loadSentinel").hidden = !0, e ? Z5() : (Q5(""), g9()), t && m2(L("#stats"), t);
+ L("#stats").hidden = !1, L("#index").hidden = !0, z7(), L("#count").textContent = "", L("#loadSentinel").hidden = !0, e ? Z5() : (Q5(""), g9()), t && p2(L("#stats"), t);
}
function U5() {
X.hideCatalogCombo(), R5(), document.body.classList.remove("entity-open", "index-open");
}
function W5() {
- document.body.classList.remove("entity-open", "index-open"), VV(L("#index")), L("#stats").hidden = !0, L("#index").hidden = !0, Z8(location.pathname) || (L("#feedNew").hidden = !0), L("#catalogFilter").style.display = "", w7(), Z5(), $5();
+ document.body.classList.remove("entity-open", "index-open"), BV(L("#index")), L("#stats").hidden = !0, L("#index").hidden = !0, X8(location.pathname) || (L("#feedNew").hidden = !0), L("#catalogFilter").style.display = "", w7(), Z5(), $5();
}
function $je() {
Q.route("/"), W5();
@@ -77214,22 +77230,22 @@ function tMe() {
}).catch(() => {}));
}
function Y5(e = "", t = !1) {
- if (!t && !uV(location.pathname)) {
- let t = XV.navigation;
- XV.push(fV(e), { settingsBackground: {
+ if (!t && !lV(location.pathname)) {
+ let t = YV.navigation;
+ YV.push(dV(e), { settingsBackground: {
pathname: location.pathname,
search: location.search,
state: t.location.state,
seq: t.seq
} });
- } else !t && e && ZV(fV(e), {
+ } else !t && e && XV(dV(e), {
replace: !0,
- state: XV.navigation.location.state
+ state: YV.navigation.location.state
});
- return e ||= dV(location.pathname), OAe(V5.settingsHost()).then((t) => (t.open(e), t));
+ return e ||= uV(location.pathname), OAe(V5.settingsHost()).then((t) => (t.open(e), t));
}
function nMe() {
- uV(location.pathname) && (pV(XV.navigation.location.state) ? XV.go(-1) : Q.navigatePath("/", !0));
+ lV(location.pathname) && (fV(YV.navigation.location.state) ? YV.go(-1) : Q.navigatePath("/", !0));
}
function rMe() {
return {
@@ -77265,20 +77281,20 @@ function rMe() {
}
function iMe() {
let e = L("#drawerScroll"), t = [...e.querySelector("[data-sidebar-head]")?.children || []];
- e.innerHTML = Zje(Z.appSettings.sidebarOrder, V5.NAV_CATALOG, c7), e.querySelector("[data-sidebar-head]").append(...t), J.listen(e, "click", (e) => {
- if (p8()) return;
+ e.innerHTML = Zje(Z.appSettings.sidebarOrder, V5.NAV_CATALOG, c7), e.querySelector("[data-sidebar-head]").append(...t), Y.listen(e, "click", (e) => {
+ if (f8()) return;
let t = e.target.closest?.("[data-nav]");
t && l7(t.dataset.nav);
}), kAe(rMe()).then((e) => e.render(V5.sidebarProps)).catch(() => {});
}
async function aMe() {
- let e = J, t = null;
+ let e = Y, t = null;
try {
t = await z("/api/settings", { signal: e.signal });
} catch {
return;
}
- e.isActive && oA(t, (e) => Z.settingsEffects[e]?.());
+ e.isActive && aA(t, (e) => Z.settingsEffects[e]?.());
}
function X5() {
return Q.routeMeta(decodeURIComponent(location.pathname))?.route.section || (W.state === "ads" ? "cleanup" : "");
@@ -77298,19 +77314,19 @@ function oMe(e) {
}
function Q5(e = X5()) {
$5();
- let t = oMe(e), n = g8();
+ let t = oMe(e), n = h8();
if (n) n.render(t);
else {
let e = xce(t);
e !== V5.manageHeaderSkeleton && (V5.manageHeaderSkeleton = e, V5.manageHeaderRoot().innerHTML = e);
}
- let r = oP(t)?.title || "";
+ let r = aP(t)?.title || "";
r !== V5.lastManagePageLabel && (V5.lastManagePageLabel = r, r && hs(V5.manageHeaderRoot(), "[data-manage-title],[data-manage-lede]"));
}
function sMe() {
let e = V5.manageHeaderRoot();
- J.listen(e, "click", (e) => {
- if (g8()) return;
+ Y.listen(e, "click", (e) => {
+ if (h8()) return;
let t = e.target.closest?.("[data-manage]");
if (t) e7(t.dataset.manage);
else if (e.target.closest?.("[data-manage-crumb] a[href]")) {
@@ -77332,27 +77348,27 @@ function $5() {
}
function e7(e = "stats") {
let t = Q.routePathOf("section", e);
- t ? Q.openRoutePath(t) : (W.orient = "", W.state = "ads", Ql(), Q.route(d$()), W5(), g9(), M7());
+ t ? Q.openRoutePath(t) : (W.orient = "", W.state = "ads", Ql(), Q.route(u$()), W5(), g9(), M7());
}
function t7() {
let e = decodeURIComponent(location.pathname);
return e === "/" ? W.jav === "1" : e.startsWith("/performers/") || e.startsWith("/studios/") ? W.jav === "1" || Wl : !1;
}
function cMe(e = t7()) {
- let t = Ok.filter(([e]) => e !== "seed");
- return e ? [kk, ...t] : t;
+ let t = Dk.filter(([e]) => e !== "seed");
+ return e ? [Ok, ...t] : t;
}
function n7() {
return decodeURIComponent(location.pathname) === "/" && W.jav !== "1";
}
function r7() {
- return _A(n7());
+ return gA(n7());
}
function lMe(e) {
Noe(e), a7(), L("#grid").hidden || J7();
}
function i7(e) {
- TA(e), a7(), J7();
+ wA(e), a7(), J7();
}
function a7() {
document.querySelectorAll("[data-video-layout]").forEach((e) => {
@@ -77363,15 +77379,15 @@ function uMe(e) {
Poe(e), a7(), J7();
}
async function o7() {
- k8(), X.mixRelatedCache.clear(), await Promise.all([s7(), M7()]);
+ O8(), X.mixRelatedCache.clear(), await Promise.all([s7(), M7()]);
}
async function s7() {
- if (Y.entityPageCurrent() && !L("#index").hidden) {
- o5({ revision: ++Y.entityPageRevision });
+ if (i5.entityPageCurrent() && !L("#index").hidden) {
+ o5({ revision: ++i5.entityPageRevision });
return;
}
let e = decodeURIComponent(location.pathname);
- if (DV(e)?.reload === "reopen" || e === "/follow") {
+ if (EV(e)?.reload === "reopen" || e === "/follow") {
Zl({ pageOpens: Hl + 1 });
return;
}
@@ -77438,7 +77454,7 @@ function fMe() {
});
}
function d7() {
- V5.stickyFrame ||= J.frame(() => {
+ V5.stickyFrame ||= Y.frame(() => {
V5.stickyFrame = 0, fMe();
});
}
@@ -77447,10 +77463,10 @@ function pMe() {
provider: [...$.followProviders][0] || "",
dur_min: $.followDurMin || "",
dur_max: $.followDurMax || ""
- }), J.handler(L("#filterBtn"), "onclick", () => J5(!L("#drawer").classList.contains("open"))), V5.SIDEBAR_ITEMS = A8, V5.MANAGE_SECTIONS = j8, V5.MANAGE_MENU_SECTIONS = M8, V5.manageMenuSections = () => KAe(Bl === !0), V5.OPTIONAL_SIDEBAR_ITEMS = N8, V5.NAV_CATALOG = qAe, V5.DIRECT_MANAGE_NAV = JAe, V5.settingsHost = () => ({
- selectSection: (e) => ZV(fV(e), {
+ }), Y.handler(L("#filterBtn"), "onclick", () => J5(!L("#drawer").classList.contains("open"))), V5.SIDEBAR_ITEMS = k8, V5.MANAGE_SECTIONS = A8, V5.MANAGE_MENU_SECTIONS = j8, V5.manageMenuSections = () => KAe(Bl === !0), V5.OPTIONAL_SIDEBAR_ITEMS = M8, V5.NAV_CATALOG = qAe, V5.DIRECT_MANAGE_NAV = JAe, V5.settingsHost = () => ({
+ selectSection: (e) => XV(dV(e), {
replace: !0,
- state: XV.navigation.location.state
+ state: YV.navigation.location.state
}),
closed: nMe,
store: Z.settingsStore,
@@ -77458,25 +77474,25 @@ function pMe() {
sound: (e) => mo(e),
navCatalog: V5.NAV_CATALOG,
themeOptions: Ooe,
- videoLayouts: dA,
- followInitialRanges: P8,
+ videoLayouts: uA,
+ followInitialRanges: N8,
videoLayout: () => r7(),
setVideoLayout: uMe,
censored: Q7,
setCensored: IMe,
highContrast: () => document.documentElement.classList.contains("board-high-contrast"),
setHighContrast: LMe,
- receipt: (e) => C8.actionReceipt(e),
- failure: C8.actionFailure,
- syncRemote: (e) => oA(e, (e) => Z.settingsEffects[e]?.()),
+ receipt: (e) => S8.actionReceipt(e),
+ failure: S8.actionFailure,
+ syncRemote: (e) => aA(e, (e) => Z.settingsEffects[e]?.()),
openConfiguration: () => Q.navigatePath("/settings/library"),
attached: () => Z.syncGlassOptics(),
configurable: () => z("/healthz").then((e) => (Zl({ runtimeConfigurable: !!e.configurable }), Bl)).catch(() => null)
- }), J.handler(L("#settingsBtn"), "onclick", () => void Y5()), V5.lastManagePageLabel = "", V5.manageHeaderSkeleton = "", V5.manageHeaderRoot = () => L("[data-manage-header]"), window.__scrolling = !1, V5.scrollT = null, V5.stickyFrame = 0, V5.mobileFilterScroll = null, V5.mobileFilterHost = null, V5.mobileFilterPath = "", J.listen(document, "focusin", d7), J.listen(document, "focusout", d7), J.listen(window, "scroll", () => {
- d7(), location.pathname === "/follow" && w9() && Zl({ followScrollY: scrollY }), window.__scrolling = !0, cl(), clearTimeout(V5.scrollT), V5.scrollT = J.delay(() => {
+ }), Y.handler(L("#settingsBtn"), "onclick", () => void Y5()), V5.lastManagePageLabel = "", V5.manageHeaderSkeleton = "", V5.manageHeaderRoot = () => L("[data-manage-header]"), window.__scrolling = !1, V5.scrollT = null, V5.stickyFrame = 0, V5.mobileFilterScroll = null, V5.mobileFilterHost = null, V5.mobileFilterPath = "", Y.listen(document, "focusin", d7), Y.listen(document, "focusout", d7), Y.listen(window, "scroll", () => {
+ d7(), location.pathname === "/follow" && w9() && Zl({ followScrollY: scrollY }), window.__scrolling = !0, cl(), clearTimeout(V5.scrollT), V5.scrollT = Y.delay(() => {
window.__scrolling = !1;
}, 180);
- }, { passive: !0 }), J.listen(window, "resize", d7, { passive: !0 }), J.handler(L("#scrim"), "onclick", () => J5(!1));
+ }, { passive: !0 }), Y.listen(window, "resize", d7, { passive: !0 }), Y.handler(L("#scrim"), "onclick", () => J5(!1));
}
//#endregion
//#region src/catalog-filter-skeleton.ts
@@ -77488,7 +77504,7 @@ var f7 = 64, p7 = (e) => e.replace(/[&<>"]/g, (e) => ({
})[e]), m7 = (e) => e.repeat(f7);
function mMe(e, t, n) {
let r = e.map((e) => `<a href="${p7(e.href)}" data-catalog-view="${p7(e.k)}" data-entity-press="" aria-pressed="${t === e.k}">${p7(e.label)}</a>`).join("");
- return "<div class=\"peach-react\"><div class=\"contents\" data-catalog-root=\"\" data-loading=\"\"><div data-catalog-tiers=\"\" aria-busy=\"true\"><div data-catalog-tier=\"performers\" data-skeleton=\"tiers\">" + m7("<span data-catalog-placeholder=\"performer\" aria-hidden=\"true\"><span></span><span>&nbsp;</span></span>") + "</div><div data-catalog-tier=\"studios\">" + m7("<span data-catalog-placeholder=\"studio\" aria-hidden=\"true\"><span></span><span>&nbsp;</span></span>") + `</div></div><div role="group" aria-label="筛选与排序" data-filter-glass="" data-glass-pane="" data-filter-frame="" data-catalog-frame="" class="sticky top-topbar z-10 mb-5.5 flex flex-col mx-4"><div role="group" aria-label="视图与标签" data-filter-row="top" class="flex h-12 min-w-0 items-center overscroll-x-contain px-3 py-2 gap-1.5 overflow-visible"><div data-catalog-scroll=""><div role="group" aria-label="视图" data-catalog-views="">${r}<span data-entity-sep="" aria-hidden="true"></span></div><div data-catalog-tags=""><span data-catalog-placeholder="tag" aria-hidden="true">` + "<span></span>".repeat(f7) + `</span></div></div></div><div data-filter-row="bottom" aria-busy="true" class="flex min-w-0 items-center gap-3 px-3 py-2 min-h-12"><span data-catalog-summary=""><span data-catalog-readout=""><span data-skeleton="count" aria-hidden="true" class="relative inline-block h-3.5 w-37.5 rounded-md align-middle skeleton-sheen"></span></span>${Ho()}</span>` + (n ? i5(n.sorts, n.layout) : "") + "</div></div></div></div>";
+ return "<div class=\"peach-react\"><div class=\"contents\" data-catalog-root=\"\" data-loading=\"\"><div data-catalog-tiers=\"\" aria-busy=\"true\"><div data-catalog-tier=\"performers\" data-skeleton=\"tiers\">" + m7("<span data-catalog-placeholder=\"performer\" aria-hidden=\"true\"><span></span><span>&nbsp;</span></span>") + "</div><div data-catalog-tier=\"studios\">" + m7("<span data-catalog-placeholder=\"studio\" aria-hidden=\"true\"><span></span><span>&nbsp;</span></span>") + `</div></div><div role="group" aria-label="筛选与排序" data-filter-glass="" data-glass-pane="" data-filter-frame="" data-catalog-frame="" class="sticky top-topbar z-10 mb-5.5 flex flex-col mx-4"><div role="group" aria-label="视图与标签" data-filter-row="top" class="flex h-12 min-w-0 items-center overscroll-x-contain px-3 py-2 gap-1.5 overflow-visible"><div data-catalog-scroll=""><div role="group" aria-label="视图" data-catalog-views="">${r}<span data-entity-sep="" aria-hidden="true"></span></div><div data-catalog-tags=""><span data-catalog-placeholder="tag" aria-hidden="true">` + "<span></span>".repeat(f7) + `</span></div></div></div><div data-filter-row="bottom" aria-busy="true" class="flex min-w-0 items-center gap-3 px-3 py-2 min-h-12"><span data-catalog-summary=""><span data-catalog-readout=""><span data-skeleton="count" aria-hidden="true" class="relative inline-block h-3.5 w-37.5 rounded-md align-middle skeleton-sheen"></span></span>${Ho()}</span>` + (n ? r5(n.sorts, n.layout) : "") + "</div></div></div></div>";
}
//#endregion
//#region src/application/catalog.js
@@ -77537,7 +77553,7 @@ function g7(e = W) {
return RAe(e);
}
function gMe() {
- Zl(T8(zAe(W, Z.appSettings, C8.rollSeed))), k8();
+ Zl(w8(zAe(W, Z.appSettings, S8.rollSeed))), O8();
}
function _7(e = null, t = !1) {
gMe(), e && (Object.assign(W, e), Ql()), Q.route(e ? g7() : "/"), X.clearSearchField(), i9(!1), W5(), g9(), M7(), t && window.scrollTo({
@@ -77555,7 +77571,7 @@ function v7(e) {
})), X.mixRelatedCache.get(e);
}
function vMe(e, t) {
- i8()?.miniplayerTakesCard(e) ? i8().miniplayerPlay(e.id) : y7(e, t);
+ r8()?.miniplayerTakesCard(e) ? r8().miniplayerPlay(e.id) : y7(e, t);
}
function y7(e, t) {
e.edition_group ? WMe(e.edition_group.seed_id, e.id, !0, t) : e.part_group ? GMe(e.part_group.seed_id, e.id, !0, t) : c9(e.id, !0, null, t);
@@ -77566,7 +77582,7 @@ async function yMe(e, t) {
method: "POST",
body: JSON.stringify({ id: e.id })
});
- e.watch_later = n.watch_later, t(!!n.watch_later), C8.actionReceipt(n.watch_later ? "已加入稍后看" : "已移出稍后看", { undo: async () => {
+ e.watch_later = n.watch_later, t(!!n.watch_later), S8.actionReceipt(n.watch_later ? "已加入稍后看" : "已移出稍后看", { undo: async () => {
let n = await z("/api/watch-later", {
method: "POST",
body: JSON.stringify({ id: e.id })
@@ -77574,7 +77590,7 @@ async function yMe(e, t) {
e.watch_later = n.watch_later, t(!!n.watch_later);
} });
} catch (e) {
- C8.actionFailure("更新稍后看", e);
+ S8.actionFailure("更新稍后看", e);
}
}
async function bMe(e, t) {
@@ -77587,7 +77603,7 @@ async function bMe(e, t) {
})
}), await L7();
let n = t === "restore" ? "dispose" : "restore";
- C8.actionReceipt(t === "restore" ? "已还原" : "已移入回收站", { undo: async () => {
+ S8.actionReceipt(t === "restore" ? "已还原" : "已移入回收站", { undo: async () => {
await z("/api/batch", {
method: "POST",
body: JSON.stringify({
@@ -77598,11 +77614,11 @@ async function bMe(e, t) {
}), await L7();
} });
} catch (e) {
- throw C8.actionFailure("操作", e), e;
+ throw S8.actionFailure("操作", e), e;
}
}
async function xMe(e, t, n, r) {
- let i = Number(e.rating) || 0, a = RM(i, t), o = async (t, r) => {
+ let i = Number(e.rating) || 0, a = LM(i, t), o = async (t, r) => {
let i = (await z("/api/feedback", {
method: "POST",
body: JSON.stringify({
@@ -77616,15 +77632,15 @@ async function xMe(e, t, n, r) {
};
try {
let e = await o(a, r);
- C8.actionReceipt(e ? `已评 ${IM(e)} 星` : "已取消评分", { undo: () => o(i) });
+ S8.actionReceipt(e ? `已评 ${FM(e)} 星` : "已取消评分", { undo: () => o(i) });
} catch (e) {
- throw r?.aborted || C8.actionFailure("评分", e), e;
+ throw r?.aborted || S8.actionFailure("评分", e), e;
}
}
async function b7(e) {
let t = new URLSearchParams();
if (t7() && t.set("jav", "1"), e.type === "entity" ? (t.set("scope_kind", e.kind), t.set("scope_name", e.name)) : e.type === "item" && t.set("id", String(e.id)), e.type === "home" && W.state && t.set("state", W.state), e.type !== "item") {
- let e = Y.activeFilterState();
+ let e = i5.activeFilterState();
[
"loc",
"creator",
@@ -77653,7 +77669,7 @@ function SMe() {
let t = () => {
e.classList.remove("refiltering"), removeEventListener("scrollend", t);
};
- J.listen.bind(J, window)("scrollend", t), J.delay(t, 1200), scrollTo({
+ Y.listen.bind(Y, window)("scrollend", t), Y.delay(t, 1200), scrollTo({
top: 0,
behavior: matchMedia("(prefers-reduced-motion: reduce)").matches ? "auto" : "smooth"
});
@@ -77672,7 +77688,7 @@ function C7(e) {
let n = { ...t.filters };
e(n), l5(t.kind, t.name, n), x7(n), S7(s5());
} else if (t.type === "item") {
- let t = Y.cloneBarsContext(wl);
+ let t = i5.cloneBarsContext(wl);
if (i9(!1), Zl({ detailReturnBarsContext: null }), t && t.type === "entity") {
e(t.filters), l5(t.kind, t.name, t.filters) ? M7() : Zl({ pageOpens: Hl + 1 });
return;
@@ -77720,10 +77736,10 @@ function T7(e) {
}, X.catalogFilterProps = {
...X.catalogFilterProps || CMe(),
...e
- }, !X.catalogFilterMounting && (IV(t) ? BV(t, e) : (!t.firstChild && !n && (t.innerHTML = mMe(X.catalogViews(), X.catalogFilterProps.state, O7()), Ts(t)), X.catalogFilterMounting = zV("catalog-filter", X.catalogFilterProps, {
+ }, !X.catalogFilterMounting && (FV(t) ? zV(t, e) : (!t.firstChild && !n && (t.innerHTML = mMe(X.catalogViews(), X.catalogFilterProps.state, O7()), Ts(t)), X.catalogFilterMounting = RV("catalog-filter", X.catalogFilterProps, {
container: t,
isCurrent: () => !0
- }).then(() => BV(t, X.catalogFilterProps)).finally(() => {
+ }).then(() => zV(t, X.catalogFilterProps)).finally(() => {
X.catalogFilterMounting = null;
})));
}
@@ -77745,7 +77761,7 @@ function E7() {
e.tag = "", e.creator = "", e.studio = "", e.owner = "";
}),
setSort: (e) => {
- let t = Fk(e, W.sort, W.dir);
+ let t = Pk(e, W.sort, W.dir);
t && (W.sort = t.sort, W.dir = t.dir, Ql(), X7());
},
reshuffle: () => FMe(),
@@ -77764,13 +77780,13 @@ function D7() {
return t7() ? {
name: "jav-layout",
label: "JAV 卡片版式",
- value: gA(),
- options: dA
+ value: hA(),
+ options: uA
} : n7() ? {
name: "home-layout",
label: "首页卡片版式",
value: r7(),
- options: dA
+ options: uA
} : null;
}
function O7() {
@@ -77817,7 +77833,7 @@ function wMe(e) {
async function M7() {
let e = ++X.barsRequestSeq;
if (h9(), !bl(location.pathname) || Cl.type === "item") return;
- let t = s5(), n = Y.activeFilterState(), r = JSON.stringify([
+ let t = s5(), n = i5.activeFilterState(), r = JSON.stringify([
t,
n,
W.state || "",
@@ -77844,7 +77860,7 @@ async function M7() {
performers: 0,
studios: 0
};
- let l = X.tagList(n.tag), u = new Map(s.map((e) => [e.k, e])), d = l.map((e) => u.get(e) || { k: e }), f = s.filter((e) => !l.includes(e.k)), p = C8.seededSample(f, X.TAGS_FIRST, `tags:${W.seed || ""}`), m = new Set(p.map((e) => e.k));
+ let l = X.tagList(n.tag), u = new Map(s.map((e) => [e.k, e])), d = l.map((e) => u.get(e) || { k: e }), f = s.filter((e) => !l.includes(e.k)), p = S8.seededSample(f, X.TAGS_FIRST, `tags:${W.seed || ""}`), m = new Set(p.map((e) => e.k));
X.catalogTagRows = d.concat(p, f.filter((e) => !m.has(e.k))).map((e) => ({
k: e.k,
label: fl(e.k),
@@ -77889,7 +77905,7 @@ function N7() {
try {
let e = await z("/api/trash/empty", { method: "POST" });
if (e.blocked && e.blocked.length) throw Error(`已永久删除 ${e.purged} 项;${e.blocked.length} 项未能删除,仍在回收站:\n` + e.blocked.slice(0, 5).map((e) => `${e.path}(${e.reason})`).join("\n"));
- C8.actionReceipt(`已永久删除 ${e.purged} 项`);
+ S8.actionReceipt(`已永久删除 ${e.purged} 项`);
} finally {
await L7();
}
@@ -77936,10 +77952,10 @@ async function L7() {
},
detailReturnBarsContext: null
}), i9(!1), W.state === "ads") return OMe(e);
- if (X.controller.page === "/junk-files" && z7(), L5(), W5(), Z8(location.pathname) && W.browse !== "folders") {
+ if (X.controller.page === "/junk-files" && z7(), L5(), W5(), X8(location.pathname) && W.browse !== "folders") {
if (await I5.entityShapesReady, !Q.surfaceCurrent(e)) return;
uje();
- } else Q8();
+ } else Z8();
return I7(), L("#count").classList.remove("manage-static", "junkcount"), B7(e);
}
function R7(e) {
@@ -77947,7 +77963,7 @@ function R7(e) {
}
function z7() {
let e = L("#grid");
- cl(e), VV(e), X.controller.clear(), e.innerHTML = "";
+ cl(e), BV(e), X.controller.clear(), e.innerHTML = "";
}
function B7(e) {
return W7("/", DMe, e, { place: sNe });
@@ -77956,13 +77972,13 @@ function EMe(e) {
return W7("/junk-files", AMe, e);
}
function V7() {
- return !!FV(L("#grid"));
+ return !!PV(L("#grid"));
}
function H7() {
return X.controller.taken(V7());
}
function U7(e) {
- BV(L("#grid"), e);
+ zV(L("#grid"), e);
}
function W7(e, t, n, r = {}) {
let i = L("#grid");
@@ -77970,8 +77986,8 @@ function W7(e, t, n, r = {}) {
let a = X.controller.begin(e, V7()), o = t();
if (!a.mount) return U7(o), a.settled;
cl(i);
- let s = () => VV(i);
- return a.signal.addEventListener("abort", s, { once: !0 }), zV(e, o, {
+ let s = () => BV(i);
+ return a.signal.addEventListener("abort", s, { once: !0 }), RV(e, o, {
...r,
container: i,
isCurrent: () => Q.surfaceCurrent(n) && a.isCurrent()
@@ -77981,23 +77997,23 @@ function W7(e, t, n, r = {}) {
}
function G7() {
let e = n7();
- return CA({
+ return SA({
active: t7() || e,
home: e,
portrait: W.orient === "竖屏"
});
}
function K7(e = "正在读取作品") {
- return iY(e, q7());
+ return rY(e, q7());
}
function q7() {
- return W ? wA(G7()) : 16 / 9;
+ return W ? CA(G7()) : 16 / 9;
}
function J7() {
H7() && (cl(L("#grid")), U7({
layout: G7(),
seekSeconds: Z.appSettings.seekSeconds
- })), Y.entityPageCurrent() && (cl(L("#index [data-entity-hero]")), o5({
+ })), i5.entityPageCurrent() && (cl(L("#index [data-entity-hero]")), o5({
layout: G7(),
seekSeconds: Z.appSettings.seekSeconds
}));
@@ -78026,7 +78042,7 @@ function DMe() {
countRow: L("#count"),
onCount: TMe,
onCountFailed: () => T7({ count: !1 }),
- emptyHtml: ({ trash: e, libraryEmpty: t }) => e ? Z.emptyState("trash", "回收站是空的", "删掉的内容会先到这里;确认不再需要后再清空。") : iK({
+ emptyHtml: ({ trash: e, libraryEmpty: t }) => e ? Z.emptyState("trash", "回收站是空的", "删掉的内容会先到这里;确认不再需要后再清空。") : rK({
jav: t7() && !t,
configurable: Bl,
filtered: !t
@@ -78050,7 +78066,7 @@ async function kMe(e, t) {
})
}), await L7();
let e = r ? "restore" : i ? "dismiss-junk" : "reconsider-junk";
- C8.actionReceipt(r ? "已移入回收站" : i ? "已重新加入垃圾判断" : "已标记为不是垃圾", { undo: async () => {
+ S8.actionReceipt(r ? "已移入回收站" : i ? "已重新加入垃圾判断" : "已标记为不是垃圾", { undo: async () => {
await z("/api/batch", {
method: "POST",
body: JSON.stringify({
@@ -78060,12 +78076,12 @@ async function kMe(e, t) {
}), await L7();
} });
} catch (e) {
- throw C8.actionFailure("操作", e), e;
+ throw S8.actionFailure("操作", e), e;
}
}
function AMe() {
return {
- ...u$(location.search),
+ ...l$(location.search),
helpers: X.junkQueueHelpers,
actions: X.junkQueueActions,
batchSize: Z.appSettings.batchSize,
@@ -78074,7 +78090,7 @@ function AMe() {
selected: new Set(Tl),
countRow: L("#count"),
settled: R7,
- skeletonHtml: () => d2("正在读取垃圾文件", {
+ skeletonHtml: () => u2("正在读取垃圾文件", {
cards: !0,
className: "catalog-skeleton postercard-skeleton"
}),
@@ -78082,7 +78098,7 @@ function AMe() {
};
}
function jMe() {
- X.initialParams = new URLSearchParams(location.search), X.resolveSort = (e, t, n = Z.appSettings.defaultSort) => w8(e, t, Z.appSettings, n), Zl(T8(IAe(location, Z.appSettings, C8.rollSeed))), X.searchValueSnapshot = {
+ X.initialParams = new URLSearchParams(location.search), X.resolveSort = (e, t, n = Z.appSettings.defaultSort) => C8(e, t, Z.appSettings, n), Zl(w8(IAe(location, Z.appSettings, S8.rollSeed))), X.searchValueSnapshot = {
text: "",
scrollLeft: 0
}, X.cancelSearchDissolve = () => {}, X.rememberSearchValue = (e = L("#q")) => {
@@ -78104,30 +78120,30 @@ function jMe() {
};
}
function MMe() {
- J.handler(L("#wallBtn"), "onclick", () => {
+ Y.handler(L("#wallBtn"), "onclick", () => {
k5(!1, !0);
let e = s5(), t = {
- ...Y.activeFilterState(),
+ ...i5.activeFilterState(),
jav: t7() ? "1" : ""
};
- e.type === "entity" && e.kind !== "tag" && (t[e.kind] = e.name), Q.navigatePath(YG(void 0, t));
+ e.type === "entity" && e.kind !== "tag" && (t[e.kind] = e.name), Q.navigatePath(JG(void 0, t));
}), X.mixRelatedCache = /* @__PURE__ */ new Map(), X.reduceMotion = () => matchMedia("(prefers-reduced-motion:reduce)").matches, X.tagList = (e = W.tag) => String(e || "").split(",").filter(Boolean), X.tagPressed = (e, t) => X.tagList(e).includes(String(t)), X.withTagToggled = (e, t) => {
let n = X.tagList(e), r = n.indexOf(t);
return r >= 0 ? n.splice(r, 1) : n.push(t), n.join(",");
}, X.gridHelpers = {
badgeHtml: (e, t) => Z.srcBadge(e, t),
- titleHtml: (e, t) => uF(e, t),
- displayName: (e, t) => lF(e, t),
+ titleHtml: (e, t) => lF(e, t),
+ displayName: (e, t) => cF(e, t),
tagLabel: (e) => fl(e)
}, X.gridActions = {
wallPlayer: async (e, t, n) => {
- let r = await r8(t9.stageHost);
+ let r = await n8(t9.stageHost);
return n.throwIfAborted(), r.mountWallPlayer(e, t, n);
},
wallDetails: y7,
open: (e, t) => vMe(e, t),
- openResource: (e, t) => i8()?.miniplayerTakesCard(e) ? i8().miniplayerPlay(e.id) : _Me(e, t),
- openShort: (e) => i8()?.miniplayerTakesCard(e) ? i8().miniplayerPlay(e.id) : d9(e.id),
+ openResource: (e, t) => r8()?.miniplayerTakesCard(e) ? r8().miniplayerPlay(e.id) : _Me(e, t),
+ openShort: (e) => r8()?.miniplayerTakesCard(e) ? r8().miniplayerPlay(e.id) : d9(e.id),
openShorts: () => d9(),
openMix: (e, t) => UMe(e, e, !0, t),
openEntity: (e, t) => y5(e, t),
@@ -78172,7 +78188,7 @@ function MMe() {
], X.catalogViews = () => X.VIEW_PILLS.map((e) => ({
...e,
href: e.k ? Jt[e.k] : "/"
- })), X.TAGS_FIRST = 26, J.listen(L("#catalogFilter"), "click", (e) => {
+ })), X.TAGS_FIRST = 26, Y.listen(L("#catalogFilter"), "click", (e) => {
let t = e.target.closest?.("[data-catalog-view]");
t && !e.defaultPrevented && (e.preventDefault(), E7().setView(t.dataset.catalogView));
}), X.catalogOnScreen = () => L("#index").hidden && L("#stats").hidden, X.COMBO_LABELS = {
@@ -78195,9 +78211,9 @@ function NMe() {
return await z("/api/reveal", {
method: "POST",
body: JSON.stringify({ id: e.id })
- }), C8.toast({ text: "已在资源管理器中显示" }), "";
+ }), S8.toast({ text: "已在资源管理器中显示" }), "";
} catch (e) {
- return Y.sourceHint(e.message);
+ return i5.sourceHint(e.message);
}
},
operate: (e, t) => kMe(e, t)
@@ -78228,7 +78244,7 @@ var Z = {
CENSOR_KEY: void 0
};
async function Y7() {
- let e = J;
+ let e = Y;
try {
let t = await Un(e.signal);
if (!e.isActive) return Z.sourceOnline;
@@ -78244,9 +78260,9 @@ function X7() {
let e = Q.surfacePath();
if (!Zt(e) || e === "/junk-files") return L7();
let t = Z.nextCatalogLoad();
- return ZV(g7(), {
+ return XV(g7(), {
replace: !0,
- state: XV.navigation.location.state
+ state: YV.navigation.location.state
}), t;
}
function PMe(e) {
@@ -78303,9 +78319,9 @@ async function FMe(e = !1) {
return;
}
let n = t === "reopen" ? e : "/stats";
- n === e ? Q.navigatePath(location.pathname + location.search + location.hash, !0, XV.navigation.location.state) : Q.navigatePath(n);
+ n === e ? Q.navigatePath(location.pathname + location.search + location.hash, !0, YV.navigation.location.state) : Q.navigatePath(n);
} else if (L("#index").hidden) {
- W.sort = "seed", W.dir = "", W.seed = C8.rollSeed(), Ql(), k8(), T7({ refreshing: !0 });
+ W.sort = "seed", W.dir = "", W.seed = S8.rollSeed(), Ql(), O8(), T7({ refreshing: !0 });
try {
let e = X7();
await null, await Promise.all([e, M7()]);
@@ -78345,23 +78361,23 @@ function BMe() {
local: "无法读取媒体目录,请检查目录是否存在及读取权限。",
115: "无法读取 115 媒体目录,请检查目录权限及网盘挂载工具是否正常运行。",
pikpak: "无法读取 PikPak 媒体目录,请检查目录权限及网盘挂载工具是否正常运行。"
- }, Z.offlineReason = (e) => Z.sourceProblems[e] || Z.OFFLINE_REASON[e] || "无法读取这个来源的媒体目录,请检查目录权限及挂载状态。", Z.settingsStore = aA(), Z.appSettings = Z.settingsStore.value, Z.saveSettings = () => Z.settingsStore.save(), document.documentElement.style.setProperty("--hover-delay", `${Z.appSettings.hoverDelaySeconds}s`), po(Z.appSettings.uiSounds), yo(), lA(), joe(), PA(), LA(), RA(), Z.catalogLoadWaiters = [], Z.nextCatalogLoad = () => new Promise((e) => Z.catalogLoadWaiters.push(e)), Z.handOff = (e) => (Z.catalogLoadWaiters.splice(0).forEach((t) => t(e)), e), Z.settingsEffects = {
- theme: () => lA(),
+ }, Z.offlineReason = (e) => Z.sourceProblems[e] || Z.OFFLINE_REASON[e] || "无法读取这个来源的媒体目录,请检查目录权限及挂载状态。", Z.settingsStore = iA(), Z.appSettings = Z.settingsStore.value, Z.saveSettings = () => Z.settingsStore.save(), document.documentElement.style.setProperty("--hover-delay", `${Z.appSettings.hoverDelaySeconds}s`), po(Z.appSettings.uiSounds), yo(), cA(), joe(), NA(), IA(), LA(), Z.catalogLoadWaiters = [], Z.nextCatalogLoad = () => new Promise((e) => Z.catalogLoadWaiters.push(e)), Z.handOff = (e) => (Z.catalogLoadWaiters.splice(0).forEach((t) => t(e)), e), Z.settingsEffects = {
+ theme: () => cA(),
uiSounds: () => {
po(Z.appSettings.uiSounds), Z.appSettings.uiSounds && mo("toggle-on");
},
- glowFrame: () => IA(),
+ glowFrame: () => FA(),
glow: () => {
- IA(), LA();
+ FA(), IA();
},
batchSize: () => {
location.pathname === "/" && L7();
},
defaultSort: () => {
- W.sort = Z.appSettings.defaultSort, W.dir = Ik(W.sort, Z.appSettings.defaultSort, Z.appSettings.defaultSortDirection), Ql(), location.pathname === "/" && X7();
+ W.sort = Z.appSettings.defaultSort, W.dir = Fk(W.sort, Z.appSettings.defaultSort, Z.appSettings.defaultSortDirection), Ql(), location.pathname === "/" && X7();
},
sortDirection: () => {
- W.dir = Ik(W.sort, Z.appSettings.defaultSort, Z.appSettings.defaultSortDirection), Ql(), location.pathname === "/" && X7();
+ W.dir = Fk(W.sort, Z.appSettings.defaultSort, Z.appSettings.defaultSortDirection), Ql(), location.pathname === "/" && X7();
},
hoverDelay: () => {
Z.appSettings.hoverDelaySeconds || document.querySelectorAll("[data-previewing],[data-longhover]").forEach((e) => {
@@ -78371,15 +78387,15 @@ function BMe() {
seekSeconds: () => J7(),
groupCollapse: () => s7(),
feedAutoScroll: () => dje(),
- feedLimit: () => $8(),
- feedCompilations: () => $8(),
+ feedLimit: () => Q8(),
+ feedCompilations: () => Q8(),
miniplayer: () => {
- Z.appSettings.miniplayer || i8()?.closeMiniplayer();
+ Z.appSettings.miniplayer || r8()?.closeMiniplayer();
},
javImage: () => {
Ea(document, Z.appSettings.javImage), J7(), document.querySelectorAll("img[data-jav-image].cover").forEach(Vc), HMe();
},
- searchHistoryLimit: () => BV(L("#searchMenu"), { historyLimit: Z.appSettings.searchHistoryLimit })
+ searchHistoryLimit: () => zV(L("#searchMenu"), { historyLimit: Z.appSettings.searchHistoryLimit })
}, Z.syncGlassOptics = () => {}, Z.placeSidebarHead = () => {}, Z.SRCICON = {
...Object.fromEntries(Object.entries(No).map(([e, t]) => [e, t.startsWith("data:") ? `<img class="source-icon" src="${t}" alt="">` : R(t)])),
online: R("rss")
@@ -78412,10 +78428,10 @@ function n9() {
} : null;
}
function r9() {
- return i8()?.exit() || Promise.resolve();
+ return r8()?.exit() || Promise.resolve();
}
function i9(e = !1, t = !1, { miniplayer: n = !0, preserveQueueRequest: r = null } = {}) {
- Q.queueOpenRequest !== r && _9(), i8()?.dispose({ miniplayer: n }), Zl({
+ Q.queueOpenRequest !== r && _9(), r8()?.dispose({ miniplayer: n }), Zl({
activeQueue: null,
pendingQueueRoute: null,
presentedItem: null
@@ -78426,12 +78442,12 @@ function i9(e = !1, t = !1, { miniplayer: n = !0, preserveQueueRequest: r = null
}), d7(), e && Q.route(jl || "/");
}
function HMe() {
- i8()?.repaintPoster();
+ r8()?.repaintPoster();
}
function a9(e, t, n, r, i = null, a = {}) {
t = +t;
let o = Fl?.kind === e && (e === "playlist" ? Fl.playlistId : Fl.seedId) === t;
- r && !o && Zl({ detailReturnPath: location.pathname + location.search }), r && xV();
+ r && !o && Zl({ detailReturnPath: location.pathname + location.search }), r && bV();
let s = e === "playlist" ? {
kind: e,
playlistId: t,
@@ -78444,7 +78460,7 @@ function a9(e, t, n, r, i = null, a = {}) {
if (a.autoplay && (s.autoplay = !0), r) {
_9();
let e = Q.queueOpenRequest = {
- seq: XV.navigation.seq,
+ seq: YV.navigation.seq,
cancelled: !1
};
Q.requestedQueue = () => c9(n == null ? null : +n, !1, s, i, !0, e), Zl({ queueOpens: Ul + 1 });
@@ -78472,8 +78488,8 @@ async function c9(e, t = !0, n = null, r = null, i = !1, a = null) {
return;
}
cl(), e = e == null ? null : +e;
- let o = r?.isConnected ? r : Ml?.isConnected ? Ml : null, s = r?.isConnected ? r.getBoundingClientRect().top + r.getBoundingClientRect().height / 2 > window.innerHeight / 2 : Nl, c = s9(), l = Pl || !t && !c, u = Cl.type === "item" ? wl : Y.cloneBarsContext(s5());
- t ? Zl({ detailReturnPath: location.pathname + location.search }) : i || Zl({ detailReturnPath: CV() || jl }), t && xV(), i8()?.showing() !== "item" && i9(!1, !0, {
+ let o = r?.isConnected ? r : Ml?.isConnected ? Ml : null, s = r?.isConnected ? r.getBoundingClientRect().top + r.getBoundingClientRect().height / 2 > window.innerHeight / 2 : Nl, c = s9(), l = Pl || !t && !c, u = Cl.type === "item" ? wl : i5.cloneBarsContext(s5());
+ t ? Zl({ detailReturnPath: location.pathname + location.search }) : i || Zl({ detailReturnPath: SV() || jl }), t && bV(), r8()?.showing() !== "item" && i9(!1, !0, {
miniplayer: !1,
preserveQueueRequest: a
}), Zl({
@@ -78484,8 +78500,8 @@ async function c9(e, t = !0, n = null, r = null, i = !1, a = null) {
kind: n.kind,
seedId: n.seedId,
playlistId: n.playlistId
- } }), Zl({ pendingQueueRoute: n && i ? `${n.kind}=${n.kind === "playlist" ? n.playlistId : n.seedId}` : null }), t && !n && Q.route("/assets/" + e, !1, wV("item"));
- let d = await r8(t9.stageHost);
+ } }), Zl({ pendingQueueRoute: n && i ? `${n.kind}=${n.kind === "playlist" ? n.playlistId : n.seedId}` : null }), t && !n && Q.route("/assets/" + e, !1, CV("item"));
+ let d = await n8(t9.stageHost);
if (a?.cancelled) return;
let f = a ? {
...t9.itemDetailActions,
@@ -78515,8 +78531,8 @@ async function c9(e, t = !0, n = null, r = null, i = !1, a = null) {
}), d7();
}
async function l9() {
- let e = Y.cloneBarsContext(wl), t = jl || "/", n = Pl;
- await r9(), i9(!1, !1, { miniplayer: !1 }), Zl({ detailReturnBarsContext: null }), SV(), Zl({ barsContext: e || {
+ let e = i5.cloneBarsContext(wl), t = jl || "/", n = Pl;
+ await r9(), i9(!1, !1, { miniplayer: !1 }), Zl({ detailReturnBarsContext: null }), xV(), Zl({ barsContext: e || {
type: "home",
filters: W
} }), n && Q.managedPagePath(new URL(t, location.href).pathname) ? Q.navigatePath(t) : (Q.route(t), n ? Zl({ pageOpens: Hl + 1 }) : (M7(), location.pathname === "/playlists" && Zl({ pageOpens: Hl + 1 })));
@@ -78526,14 +78542,14 @@ async function u9(e, t = !0) {
Zl({ detailReturnPath: location.pathname + location.search }), v9("/works/" + encodeURIComponent(e), "jav", () => u9(e, !1));
return;
}
- let n = XV.navigation.seq, r = Y.cloneBarsContext(s5()), i = !s9(), a = CV() || (i ? "/jav?tab=discover" : jl) || "/jav?tab=discover";
- i8()?.showing() !== "jav" && i9(!1, !0, { miniplayer: !1 }), Zl({
+ let n = YV.navigation.seq, r = i5.cloneBarsContext(s5()), i = !s9(), a = SV() || (i ? "/jav?tab=discover" : jl) || "/jav?tab=discover";
+ r8()?.showing() !== "jav" && i9(!1, !0, { miniplayer: !1 }), Zl({
detailReturnPath: a,
detailReturnBarsContext: r,
detailReturnNeedsRestore: i
}), cl();
- let [o, s] = await Promise.all([r8(t9.stageHost), V("/healthz")]);
- XV.navigation.seq === n && (await o.open({
+ let [o, s] = await Promise.all([n8(t9.stageHost), V("/healthz")]);
+ YV.navigation.seq === n && (await o.open({
kind: "jav",
code: e,
readOnly: !!s.ledger_read_only,
@@ -78541,9 +78557,9 @@ async function u9(e, t = !0) {
close: () => void l9(),
navigate: (e) => Q.navigatePath(e),
canonicalCode: (t) => {
- XV.navigation.seq === n && t && t !== e && ZV("/works/" + encodeURIComponent(t) + location.search + location.hash, {
+ YV.navigation.seq === n && t && t !== e && XV("/works/" + encodeURIComponent(t) + location.search + location.hash, {
replace: !0,
- state: XV.navigation.location.state
+ state: YV.navigation.location.state
});
},
openTag: (e) => {
@@ -78554,19 +78570,19 @@ async function u9(e, t = !0) {
behavior: "smooth"
});
},
- receipt: (e) => C8.toast({ text: e })
+ receipt: (e) => S8.toast({ text: e })
}
}), d7());
}
async function d9(e = null, t = !0) {
- t ? (t9.requestedImmerseId = e, Q.route("/immerse")) : (i8()?.closeMiniplayer(), await (await DAe(t9.immerseHost)).open(e));
+ t ? (t9.requestedImmerseId = e, Q.route("/immerse")) : (r8()?.closeMiniplayer(), await (await DAe(t9.immerseHost)).open(e));
}
function KMe() {
t9.total = 0, t9.facets = null, t9.stageHost = {
player: {
settings: () => Z.appSettings,
saveSettings: () => Z.saveSettings(),
- toast: (e, t) => C8.toast({ text: e }, t),
+ toast: (e, t) => S8.toast({ text: e }, t),
loadSourceStatus: () => Y7(),
offlineReason: (e) => Z.offlineReason(e)
},
@@ -78575,20 +78591,20 @@ function KMe() {
e === "follow" ? D9(t, !0, n) : c9(t, !0);
},
openItem: (e) => void c9(e)
- }, t9.stageOpen = () => !!i8()?.isOpen();
+ }, t9.stageOpen = () => !!r8()?.isOpen();
}
function qMe() {
t9.itemDetailHelpers = {
badgeHtml: (e, t, n) => Z.srcBadge(e, t, n),
- titleHtml: (e) => uF(e),
- displayName: (e) => lF(e),
+ titleHtml: (e) => lF(e),
+ displayName: (e) => cF(e),
javImage: () => Z.appSettings.javImage,
tagLabel: (e) => fl(e),
isDurationTag: (e) => En.has(e),
tagCandidates: () => t9.facets && t9.facets.tags || [],
sourceOffline: (e) => Z.sourceOffline(e),
offlineReason: (e) => Z.offlineReason(e),
- relatedSkeletonHtml: () => d2("正在读取推荐", {
+ relatedSkeletonHtml: () => u2("正在读取推荐", {
cards: !0,
className: "related-skeleton"
}),
@@ -78603,15 +78619,15 @@ function qMe() {
Zl({ barsContext: {
type: "item",
id: e.id,
- filters: t?.type === "entity" ? { ...t.filters } : Y.emptyEntityFilters()
- } }), Il && (Q.queueOpenRequest = null, Q.route(`/assets/${e.id}?${Il}`, !1, wV("item")), Zl({ pendingQueueRoute: null })), M7();
+ filters: t?.type === "entity" ? { ...t.filters } : i5.emptyEntityFilters()
+ } }), Il && (Q.queueOpenRequest = null, Q.route(`/assets/${e.id}?${Il}`, !1, CV("item")), Zl({ pendingQueueRoute: null })), M7();
},
redirect: (e) => {
let t = !!Il;
e.kind === "follow" ? (Q.queueOpenRequest = null, Zl({
pendingQueueRoute: null,
followDetailReturnPath: jl || "/"
- }), Q.route(`/posts/${e.id}`, !t, wV("follow")), D9(e.id, !1, null, !0)) : e.kind === "item" ? c9(e.id, !0) : e.kind === "playlists" ? t || location.pathname !== "/playlists" ? b9("/playlists") : S5() : i9(!1);
+ }), Q.route(`/posts/${e.id}`, !t, CV("follow")), D9(e.id, !1, null, !0)) : e.kind === "item" ? c9(e.id, !0) : e.kind === "playlists" ? t || location.pathname !== "/playlists" ? b9("/playlists") : S5() : i9(!1);
},
openQueueItem: (e, t, n = !0) => void a9(e.kind, e.kind === "playlist" ? e.playlistId : e.seedId, t, n, null, { autoplay: e.autoplay }),
reopen: () => {
@@ -78642,24 +78658,24 @@ function qMe() {
reveal: (e) => m5(e),
sync: (e) => gje(e),
trashChanged: async (e, t) => {
- W.state === "ads" && (t || e === "trash") && (t || (SV(), i9(!0, !1, { miniplayer: !1 })), await L7());
+ W.state === "ads" && (t || e === "trash") && (t || (xV(), i9(!0, !1, { miniplayer: !1 })), await L7());
},
- toast: (e, { undo: t } = {}) => C8.actionReceipt(e, { undo: t }),
- failure: (e, t) => C8.actionFailure(e, t)
+ toast: (e, { undo: t } = {}) => S8.actionReceipt(e, { undo: t }),
+ failure: (e, t) => S8.actionFailure(e, t)
}, t9.immerseHost = {
filters: () => W,
seekSeconds: () => Z.appSettings.seekSeconds,
sourceOffline: (e) => Z.sourceOffline(e),
- displayName: (e) => lF(e),
+ displayName: (e) => cF(e),
route: (e) => Q.route("/immerse?id=" + e, !0),
closed: () => _7(),
openItem: (e) => void c9(e),
openEntity: (e, t) => y5(e, t),
openUnowned: () => _7({ owner: "none" }, !0),
- toast: (e, { undo: t } = {}) => C8.actionReceipt(e, { undo: t }),
- warn: (e) => C8.toast({ text: e }, { sound: "warning" }),
- failure: (e, t) => C8.actionFailure(e, t)
- }, t9.immerseOpen = () => !!s8()?.isOpen(), J.handler(L("#immerseBtn"), "onclick", () => d9());
+ toast: (e, { undo: t } = {}) => S8.actionReceipt(e, { undo: t }),
+ warn: (e) => S8.toast({ text: e }, { sound: "warning" }),
+ failure: (e, t) => S8.actionFailure(e, t)
+ }, t9.immerseOpen = () => !!o8()?.isOpen(), Y.handler(L("#immerseBtn"), "onclick", () => d9());
}
//#endregion
//#region src/application/tutorial.js
@@ -78704,42 +78720,42 @@ async function p9() {
}
e.innerHTML = f9.postSetupTutorialHtml(o, a.size, r.length), e.dataset.tutorialSignature = c, e.removeAttribute("aria-busy");
let l = s[0], u = e.querySelector("[data-tutorial-collapse]"), d = e.querySelector(".post-setup-collapse-body");
- d.inert = kc(), d.classList.toggle("ui-fcollapse-settled", !d.inert), J.handler(u, "onclick", () => {
+ d.inert = kc(), d.classList.toggle("ui-fcollapse-settled", !d.inert), Y.handler(u, "onclick", () => {
let t = e.querySelector(".post-setup-notification"), n = t.dataset.collapsed !== "true";
t.dataset.collapsed = String(n), Ac(n), u.setAttribute("aria-expanded", String(!n)), u.setAttribute("aria-label", n ? "展开安装教程" : "折叠安装教程"), no(d, !n);
- }), e.querySelectorAll("[data-tutorial-skip]").forEach((e) => J.handler(e, "onclick", () => {
+ }), e.querySelectorAll("[data-tutorial-skip]").forEach((e) => Y.handler(e, "onclick", () => {
let t = jc(), n = e.dataset.tutorialSkip;
- t.add(n), Mc(t), C8.actionReceipt(`已跳过「${e.dataset.tutorialLabel}」`, { undo: async () => {
+ t.add(n), Mc(t), S8.actionReceipt(`已跳过「${e.dataset.tutorialLabel}」`, { undo: async () => {
let e = jc();
e.delete(n), Mc(e), Oc("pending"), await p9();
} }), p9();
}));
let f = new Map(o.map((e) => [e.key, e]));
- e.querySelectorAll("[data-tutorial-task]").forEach((e) => J.handler(e, "onclick", (t) => {
+ e.querySelectorAll("[data-tutorial-task]").forEach((e) => Y.handler(e, "onclick", (t) => {
let n = f.get(e.dataset.tutorialTask);
!n || t.metaKey || t.ctrlKey || t.shiftKey || t.button || (t.preventDefault(), f9.openTutorialTarget(n));
- })), J.handler(e.querySelector("[data-tutorial-action]"), "onclick", () => f9.openTutorialTarget(l));
+ })), Y.handler(e.querySelector("[data-tutorial-action]"), "onclick", () => f9.openTutorialTarget(l));
} catch {
if (!Ic(n)) return;
- e.innerHTML = Rc(R("alert")), e.removeAttribute("aria-busy"), J.handler(e.querySelector("[data-tutorial-retry]"), "onclick", () => {
+ e.innerHTML = Rc(R("alert")), e.removeAttribute("aria-busy"), Y.handler(e.querySelector("[data-tutorial-retry]"), "onclick", () => {
delete e.dataset.tutorialSignature, e.innerHTML = "", p9();
- }), J.handler(e.querySelector("[data-tutorial-dismiss]"), "onclick", t);
+ }), Y.handler(e.querySelector("[data-tutorial-dismiss]"), "onclick", t);
}
}
function YMe() {
if (Zl({ cameFromSetup: new URLSearchParams(location.search).get("onboarding") === "1" }), f9.postSetupTutorialDone = null, f9.postSetupTutorialNeedsReopen = !1, Vl) {
Oc("pending"), f9.postSetupTutorialDone = !1, f9.postSetupTutorialNeedsReopen = !0;
let e = new URL(location.href);
- e.searchParams.delete("onboarding"), ZV(e, {
+ e.searchParams.delete("onboarding"), XV(e, {
replace: !0,
- state: XV.navigation.location.state
+ state: YV.navigation.location.state
});
}
{
let e = new URL(location.href), t = e.searchParams.get("agentation");
- localStorage.removeItem("peach.agentation"), t !== null && (e.searchParams.delete("agentation"), ZV(e, {
+ localStorage.removeItem("peach.agentation"), t !== null && (e.searchParams.delete("agentation"), XV(e, {
replace: !0,
- state: XV.navigation.location.state
+ state: YV.navigation.location.state
})), t === "on" && import("/dev/agentation.js").catch(() => {});
}
f9.postSetupTutorialTasks = async () => {
@@ -78854,7 +78870,7 @@ var Q = {
initialOverlayOpened: void 0
};
function m9() {
- let e = p8();
+ let e = f8();
e ? e.navChanged() : L("#drawerScroll")?.querySelectorAll("[data-nav]").forEach((e) => e.setAttribute("aria-pressed", String(c7(e.dataset.nav))));
}
function h9(e = {}) {
@@ -78866,7 +78882,7 @@ function h9(e = {}) {
}), V5.sidebarProps = {
...V5.sidebarProps,
...e
- }, p8()?.render(V5.sidebarProps);
+ }, f8()?.render(V5.sidebarProps);
}
function g9() {
h9(), m9(), u7();
@@ -78875,24 +78891,24 @@ function _9() {
Q.queueOpenRequest && (Q.queueOpenRequest.cancelled = !0), Q.queueOpenRequest = null, Q.requestedQueue = null, Zl({ pendingQueueRoute: null });
}
function v9(e, t, n) {
- _9(), xV(), Q.requestedOverlay = {
+ _9(), bV(), Q.requestedOverlay = {
path: e,
open: n
- }, Q.route(e, !1, wV(t));
+ }, Q.route(e, !1, CV(t));
}
function y9() {
- Q.surfaceEpoch++, X.barsRequestSeq++, I5.syncPageTitle(location.href), h9(), SV(), p9();
+ Q.surfaceEpoch++, X.barsRequestSeq++, I5.syncPageTitle(location.href), h9(), xV(), p9();
}
function b9(e) {
Q.route(e), Zl({ pageOpens: Hl + 1 });
}
function XMe() {
Q.routeMeta = (e) => {
- let t = DV(e);
+ let t = EV(e);
return t ? { route: t } : null;
- }, Q.routePathOf = (e, t) => Object.keys(EV).find((n) => EV[n][e] === t), Q.catalogPage = (e) => Zt(e) || e === "/trash", Q.managedPagePath = (e) => {
- let t = DV(e);
- return !!t && t.reload !== "reopen" && !Q.catalogPage(e) && !_V(e) && e !== "/immerse";
+ }, Q.routePathOf = (e, t) => Object.keys(TV).find((n) => TV[n][e] === t), Q.catalogPage = (e) => Zt(e) || e === "/trash", Q.managedPagePath = (e) => {
+ let t = EV(e);
+ return !!t && t.reload !== "reopen" && !Q.catalogPage(e) && !gV(e) && e !== "/immerse";
}, Q.openRoutePath = (e) => {
e === "/immerse" ? d9(zMe()) : e === "/follow" ? E9() : e === "/playlists" || Q.catalogPage(e) ? b9(e) : Q.managedPagePath(e) ? Q.navigatePath(e === "/subscriptions" ? Uje() : e) : (k5(!1, !0), b9(N5({
kind: e.slice(1),
@@ -78908,15 +78924,15 @@ function ZMe() {
epoch: Q.surfaceEpoch,
path: e,
signal: Q.surfaceRequests?.signal
- }), Q.surfaceCurrent = (e) => e.epoch === Q.surfaceEpoch && Q.surfacePath() === e.path, Q.claimSurface = (e) => (Z8(e) || Q8(), VV(L("#stats"), L("#index")), !Zt(e) && e !== "/trash" && z7(), Q.surfaceRequests?.abort(), Q.surfaceRequests = new AbortController(), Q.surfaceEpoch++, Q.surfaceToken(e)), Q.route = (e, t = !1, n) => {
- Q.surfaceEpoch++, X.barsRequestSeq++, ZV(e, {
+ }), Q.surfaceCurrent = (e) => e.epoch === Q.surfaceEpoch && Q.surfacePath() === e.path, Q.claimSurface = (e) => (X8(e) || Z8(), BV(L("#stats"), L("#index")), !Zt(e) && e !== "/trash" && z7(), Q.surfaceRequests?.abort(), Q.surfaceRequests = new AbortController(), Q.surfaceEpoch++, Q.surfaceToken(e)), Q.route = (e, t = !1, n) => {
+ Q.surfaceEpoch++, X.barsRequestSeq++, XV(e, {
replace: t,
state: n
}), I5.syncPageTitle(e), queueMicrotask(() => {
u7(), $5(), h9(), p9();
});
}, Q.navigatePath = (e, t = !1, n) => {
- t ? XV.replace(e, n) : XV.push(e, n), queueMicrotask(() => {
+ t ? YV.replace(e, n) : YV.push(e, n), queueMicrotask(() => {
u7(), $5();
});
}, Q.requestedOverlay = null, Q.requestedQueue = null, Q.queueOpenRequest = null, Q.initialOverlayOpened = !1;
@@ -79005,7 +79021,7 @@ var $ = {
};
function nNe(e) {
let t = (e.results || []).filter((e) => !e.ok).length;
- C8.toast({ text: li(e) }, {
+ S8.toast({ text: li(e) }, {
warn: !!t,
timeout: t ? 8e3 : 6e3,
sound: t ? "warning" : "success",
@@ -79040,14 +79056,14 @@ function C9(e) {
$.followFilter = e.status, $.followMediaView = e.media, $.followAuthors = new Set(e.author ? [e.author] : []), $.followProviders = new Set(e.provider ? [e.provider] : []), $.followWorks = new Set(e.work ? [e.work] : []), $.followTags = new Set(e.tags), $.followDurMin = e.durMin || 0, $.followDurMax = e.durMax || 0, $.followSort = e.sort, $.followDir = e.dir, $.followSeed = e.seed;
}
function iNe() {
- let e = FV(L("#stats"));
+ let e = PV(L("#stats"));
return e && e.path === "/follow" && e.host.isConnected ? e : null;
}
function w9() {
return !!iNe();
}
function T9(e) {
- w9() && BV(L("#stats"), e);
+ w9() && zV(L("#stats"), e);
}
function aNe(e, t = {}) {
return $.controller.route(e, t);
@@ -79062,7 +79078,7 @@ async function D9(e, t = !0, n = null, r = !1) {
}
cl(), e = +e;
let i = !location.pathname.startsWith("/posts/");
- t && i && !r && Zl({ followDetailReturnPath: location.pathname + location.search }), !t && !r && Zl({ followDetailReturnPath: CV() || "/follow" }), t && xV(), i8()?.showing() !== "follow" && i9(!1, !1, { miniplayer: !1 }), t && Q.route(`/posts/${e}`, !1, wV("follow")), await (await r8(t9.stageHost)).open({
+ t && i && !r && Zl({ followDetailReturnPath: location.pathname + location.search }), !t && !r && Zl({ followDetailReturnPath: SV() || "/follow" }), t && bV(), r8()?.showing() !== "follow" && i9(!1, !1, { miniplayer: !1 }), t && Q.route(`/posts/${e}`, !1, CV("follow")), await (await n8(t9.stageHost)).open({
kind: "follow",
id: e,
mediaIndex: n,
@@ -79074,7 +79090,7 @@ async function D9(e, t = !0, n = null, r = !1) {
}), d7();
}
async function oNe() {
- await r9(), i9(!1, !1, { miniplayer: !1 }), SV(), Q.route(Rl || "/follow"), !(Y.entityPageView && Y.entityPageCurrent() && !L("#index").hidden) && (location.pathname === "/follow" && w9() ? (rNe(), T9({ view: S9() })) : Zl({ pageOpens: Hl + 1 }));
+ await r9(), i9(!1, !1, { miniplayer: !1 }), xV(), Q.route(Rl || "/follow"), !(i5.entityPageView && i5.entityPageCurrent() && !L("#index").hidden) && (location.pathname === "/follow" && w9() ? (rNe(), T9({ view: S9() })) : Zl({ pageOpens: Hl + 1 }));
}
function sNe(e) {
let t = document.createElement("div");
@@ -79101,16 +79117,16 @@ function cNe() {
Z.appSettings.followImagesOnly = !!e, Z.saveSettings(), d5();
},
setPhotoLayout: (e) => {
- EA(e), d5();
+ TA(e), d5();
},
canFlip: () => !Dl && !Q7() && !window.__scrolling && !X.reduceMotion(),
- toast: (e, { undo: t } = {}) => C8.actionReceipt(e, { undo: t }),
- failure: (e, t) => C8.actionFailure(e, t),
+ toast: (e, { undo: t } = {}) => S8.actionReceipt(e, { undo: t }),
+ failure: (e, t) => S8.actionFailure(e, t),
checkReport: (e) => nNe(e)
}, $.followFeedShell = {
skeleton: () => $.followSkeletonHtml("正在读取关注内容"),
ground: () => {
- i8()?.showing() !== "follow" && (cl(), i9(!1), U5(), !w9() && (Q.claimSurface(Q.surfacePath()), H5({ manage: !1 }), L("#stats").querySelector(".peach-react") && VV(L("#stats")), L("#stats").replaceChildren()));
+ r8()?.showing() !== "follow" && (cl(), i9(!1), U5(), !w9() && (Q.claimSurface(Q.surfacePath()), H5({ manage: !1 }), L("#stats").querySelector(".peach-react") && BV(L("#stats")), L("#stats").replaceChildren()));
}
}, $.followDetailActions = Sl({
view: S9,
@@ -79121,8 +79137,8 @@ function cNe() {
drawer: G5,
openAuthor: (e) => Q.navigatePath(en("creator", e))
}, {
- toast: (e, { undo: t } = {}) => C8.actionReceipt(e, { undo: t }),
- failure: C8.actionFailure
+ toast: (e, { undo: t } = {}) => S8.actionReceipt(e, { undo: t }),
+ failure: S8.actionFailure
});
}
function lNe() {
@@ -79143,15 +79159,15 @@ function lNe() {
preferences: () => ({
selectMode: Dl,
selected: El,
- photoSize: bA(),
- photoLayout: xA(),
+ photoSize: yA(),
+ photoLayout: bA(),
imagesOnly: !!Z.appSettings.followImagesOnly
}),
live: w9,
push: T9,
route: Q.route,
openPage: b9,
- rollSeed: () => Number(C8.rollSeed()),
+ rollSeed: () => Number(S8.rollSeed()),
enterSeed: () => Math.floor(Math.random() * 4294967295),
revealFeed: () => {
cl(), U5(), H5({ manage: !1 });
@@ -79167,8 +79183,8 @@ function lNe() {
//#region src/application/lifecycle.js
var O9 = { overlayScan: void 0 };
function uNe() {
- Kbe(), uc(document), $a(document.documentElement, { variant: "page" }), $a(L("#drawerScroll")), O9.overlayScan = 0, J.mutation(() => {
- O9.overlayScan ||= J.delay(() => {
+ Kbe(), uc(document), $a(document.documentElement, { variant: "page" }), $a(L("#drawerScroll")), O9.overlayScan = 0, Y.mutation(() => {
+ O9.overlayScan ||= Y.delay(() => {
O9.overlayScan = 0, sc();
});
}).observe(document.body, {
@@ -79210,9 +79226,9 @@ async function dNe(e) {
let t = Ii(e);
for (let n of ["videos", "images"]) {
if (n === "images" ? !t.has("image") : t.size && !t.has("video")) continue;
- let r = Li(e, n), i = l.sources.find((e) => e.id === r.source_id), a = FU(r, i?.author_key ? l.sources.filter((e) => e.author_key === i.author_key) : i ? [i] : [], l), o = n === "images" ? r.media_items?.find((e) => e.media_kind === "image") : void 0;
+ let r = Li(e, n), i = l.sources.find((e) => e.id === r.source_id), a = PU(r, i?.author_key ? l.sources.filter((e) => e.author_key === i.author_key) : i ? [i] : [], l), o = n === "images" ? r.media_items?.find((e) => e.media_kind === "image") : void 0;
(n === "images" ? c : s).push({
- value: jU(r),
+ value: AU(r),
id: r.id,
who: a.author,
href: `/posts/${r.id}`,
@@ -79228,7 +79244,7 @@ async function dNe(e) {
let u = (t[4]?.items || []).map((e) => ({
value: e.k,
href: e.entity_id ? `/creators/${e.entity_id}` : `/follow?author=${encodeURIComponent(e.key)}`,
- avatarHtml: PU(l.sources.filter((t) => t.author_key === e.key), e.k),
+ avatarHtml: NU(l.sources.filter((t) => t.author_key === e.key), e.k),
subtitle: "关注中的作者"
})), d = /* @__PURE__ */ new Map();
for (let e of r) for (let t of e.performer_refs || []) t.id && !d.has(t.name) && d.set(t.name, {
@@ -79349,12 +79365,12 @@ function M9(e) {
easing: "linear",
fill: "both"
});
- k9.searchMorph = h, J.handler(h, "onfinish", () => {
+ k9.searchMorph = h, Y.handler(h, "onfinish", () => {
k9.searchMorph === h && j9();
});
}
function mNe() {
- return t9.immerseOpen() ? s8().activeVideo() : i8()?.activeVideo() || null;
+ return t9.immerseOpen() ? o8().activeVideo() : r8()?.activeVideo() || null;
}
function hNe(e) {
return !!e && (e.tagName === "INPUT" || e.tagName === "TEXTAREA" || e.isContentEditable);
@@ -79371,9 +79387,9 @@ function gNe() {
$.followMediaView = t, D9(e, !0, n);
}
}, k9.searchHelpers = {
- pool: () => rK(W, z),
+ pool: () => nK(W, z),
recommendations: () => dNe(z),
- coverHtml: (e) => `<span class="pic">${e?.thumb_url ? `<img src="${B(e.thumb_url)}" width="640" height="360" alt="" loading="lazy" referrerpolicy="no-referrer" data-drop="self">` : e?.sourceWork ? W8(e) : pNe(e)}</span>`,
+ coverHtml: (e) => `<span class="pic">${e?.thumb_url ? `<img src="${B(e.thumb_url)}" width="640" height="360" alt="" loading="lazy" referrerpolicy="no-referrer" data-drop="self">` : e?.sourceWork ? U8(e) : pNe(e)}</span>`,
present: (e) => wo(e),
dismiss: (e) => To(e),
wireScroller: (e) => Hs(e),
@@ -79388,7 +79404,7 @@ function gNe() {
text: e.value,
scrollLeft: e.scrollLeft || X.searchValueSnapshot.scrollLeft
})
- }, zV("search", {
+ }, RV("search", {
input: L("#q"),
historyLimit: Z.appSettings.searchHistoryLimit,
actions: k9.searchActions,
@@ -79399,30 +79415,30 @@ function gNe() {
}, {
container: L("#searchMenu"),
isCurrent: () => !0
- }), J.listen(L("#q"), "beforeinput", (e) => {
+ }), Y.listen(L("#q"), "beforeinput", (e) => {
e.isComposing || X.rememberSearchValue(e.currentTarget);
- }), J.listen(L("#q"), "scroll", (e) => {
+ }), Y.listen(L("#q"), "scroll", (e) => {
e.currentTarget.value && X.rememberSearchValue(e.currentTarget);
- }), J.listen(L("#q"), "pointerdown", (e) => {
+ }), Y.listen(L("#q"), "pointerdown", (e) => {
e.currentTarget.value && X.rememberSearchValue(e.currentTarget);
});
}
function _Ne() {
- k9.searchMorph = null, k9.searchMorphViewport = innerWidth, J.listen.bind(J, window)("resize", () => {
+ k9.searchMorph = null, k9.searchMorphViewport = innerWidth, Y.listen.bind(Y, window)("resize", () => {
innerWidth !== k9.searchMorphViewport && (k9.searchMorphViewport = innerWidth, j9());
- }, { passive: !0 }), J.listen(matchMedia("(prefers-reduced-motion:reduce)"), "change", j9), J.handler(L("#searchBtn"), "onclick", () => {
+ }, { passive: !0 }), Y.listen(matchMedia("(prefers-reduced-motion:reduce)"), "change", j9), Y.handler(L("#searchBtn"), "onclick", () => {
M9(!0), L("#q").focus({ preventScroll: !0 });
- }), J.handler(L("#searchBack"), "onclick", () => {
+ }), Y.handler(L("#searchBack"), "onclick", () => {
M9(!1), A9(), L("#q").blur(), L("#searchBtn").focus({ preventScroll: !0 });
});
let e = (e) => {
e.target.closest(".search") || (e.type !== "focusin" || e.target !== document.body && e.target !== document.documentElement) && (L("#q").value || M9(!1), A9());
};
- J.listen(document, "pointerdown", e, !0), J.listen(document, "focusin", e), J.handler(L("#brandHome"), "onclick", (e) => {
+ Y.listen(document, "pointerdown", e, !0), Y.listen(document, "focusin", e), Y.handler(L("#brandHome"), "onclick", (e) => {
e.preventDefault(), _7(null, !0);
- }), J.listen(document, "keydown", (e) => {
+ }), Y.listen(document, "keydown", (e) => {
if (e.key === "Escape") {
- let t = u8();
+ let t = l8();
if (t?.isOpen()) {
t.close();
return;
@@ -79432,11 +79448,11 @@ function _Ne() {
return;
}
if (t9.immerseOpen()) {
- s8().close();
+ o8().close();
return;
}
if (t9.stageOpen()) {
- e.defaultPrevented || (e.preventDefault(), i8().requestClose());
+ e.defaultPrevented || (e.preventDefault(), r8().requestClose());
return;
}
if (L("#drawer").classList.contains("open")) {
@@ -79460,27 +79476,27 @@ function _Ne() {
let t = mNe();
if (t) {
if (e.key === "t" || e.key === "T") {
- e.preventDefault(), i8()?.toggleTheater();
+ e.preventDefault(), r8()?.toggleTheater();
return;
}
if (e.key === "ArrowLeft" || e.key === "ArrowRight") {
- e.preventDefault(), cM(t, Z.appSettings.seekSeconds * (e.key === "ArrowRight" ? 1 : -1));
+ e.preventDefault(), sM(t, Z.appSettings.seekSeconds * (e.key === "ArrowRight" ? 1 : -1));
return;
}
if (e.key === " " || e.key === "k" || e.key === "K") {
- e.preventDefault(), sM(t);
+ e.preventDefault(), oM(t);
return;
}
if (e.key === "m" || e.key === "M") {
- e.preventDefault(), wj(t, ".vjs-mute-control");
+ e.preventDefault(), Cj(t, ".vjs-mute-control");
return;
}
if (e.key === "f" || e.key === "F") {
- e.preventDefault(), wj(t, ".vjs-fullscreen-control");
+ e.preventDefault(), Cj(t, ".vjs-fullscreen-control");
return;
}
if (e.key === "i" || e.key === "I") {
- e.preventDefault(), i8()?.toggleMiniplayer();
+ e.preventDefault(), r8()?.toggleMiniplayer();
return;
}
}
@@ -79502,9 +79518,9 @@ function vNe(e) {
} catch {
return null;
}
- if (i.origin !== window.location.origin || n.startsWith("#") && _V(i.pathname)) return null;
- let a = DV(i.pathname);
- return n.startsWith("#") && !a?.section || !gV(i.pathname, i.search) && !a ? null : i.pathname + i.search + i.hash;
+ if (i.origin !== window.location.origin || n.startsWith("#") && gV(i.pathname)) return null;
+ let a = EV(i.pathname);
+ return n.startsWith("#") && !a?.section || !hV(i.pathname, i.search) && !a ? null : i.pathname + i.search + i.hash;
}
//#endregion
//#region src/application/composition.js
@@ -79513,16 +79529,16 @@ var N9 = {
routing: void 0
};
function yNe() {
- let e = J, t = (e) => {
+ let e = Y, t = (e) => {
e.kind === "item" ? c9(e.id, !1) : e.kind === "jav" ? u9(e.code, !1) : e.kind === "follow" ? D9(e.id, !1) : a9(e.queue, e.key, e.item, !1);
};
- if (sje(), I5.entityShapesReady = G8(), Yje(), location.pathname === "/") {
+ if (sje(), I5.entityShapesReady = W8(), Yje(), location.pathname === "/") {
let e = new URLSearchParams(location.search);
!e.has("state") && e.get("jav") !== "1" && (L("#catalogPageHeading").hidden = !1);
}
- Z8(decodeURIComponent(location.pathname)) && J8(L("#feedNew")), iMe(), N9.shellActions = {
+ X8(decodeURIComponent(location.pathname)) && q8(L("#feedNew")), iMe(), N9.shellActions = {
openSettings: (e) => Y5(e, !0),
- closeSettings: () => u8()?.close(!1),
+ closeSettings: () => l8()?.close(!1),
openItem: (e) => void c9(e),
openEntity: (e, t) => void y5(e, t),
openTag: (e) => {
@@ -79530,22 +79546,22 @@ function yNe() {
},
openTasteSignal: Cje,
navigate: (e) => {
- let n = new URL(e, location.href), r = gV(n.pathname, n.search);
+ let n = new URL(e, location.href), r = hV(n.pathname, n.search);
if (r) {
let e = r.kind === "queue" ? "item" : r.kind;
v9(n.pathname + n.search + n.hash, e, () => t(r));
- } else if (n.hash && n.pathname === location.pathname && n.search === location.search && !_V(location.pathname)) {
+ } else if (n.hash && n.pathname === location.pathname && n.search === location.search && !gV(location.pathname)) {
Q.route(e);
- let t = XV.navigation.seq;
- l6(n.hash, () => XV.navigation.seq === t);
+ let t = YV.navigation.seq;
+ c6(n.hash, () => YV.navigation.seq === t);
} else Q.navigatePath(e);
},
openManage: e7,
managePath: (e) => Q.routePathOf("section", e) || "",
openFollow: () => E9(),
- receipt: (e, t) => C8.actionReceipt(e, t),
- toast: (e, t) => C8.toast(e, t),
- failure: C8.actionFailure,
+ receipt: (e, t) => S8.actionReceipt(e, t),
+ toast: (e, t) => S8.toast(e, t),
+ failure: S8.actionFailure,
revealSource: m5,
reopenTutorial: JMe,
routeReview: Eje,
@@ -79583,7 +79599,7 @@ function yNe() {
},
openOverlay: (e) => {
let n = Q.requestedOverlay;
- Q.requestedOverlay = null, XV.navigation.claimed && (!QV() || Q.initialOverlayOpened) ? n?.path === location.pathname + location.search + location.hash && n.open() : (QV() && (Q.initialOverlayOpened = !0), t(e));
+ Q.requestedOverlay = null, YV.navigation.claimed && (!ZV() || Q.initialOverlayOpened) ? n?.path === location.pathname + location.search + location.hash && n.open() : (ZV() && (Q.initialOverlayOpened = !0), t(e));
},
closeStage: () => {
t9.stageOpen() && i9(!1);
@@ -79600,38 +79616,38 @@ function yNe() {
missing: (e) => {
N9.shellActions.surfaceChanged("entity", location.pathname), v5(e);
},
- loading: (e, t, n) => Y.application.loading(e, t, n),
- props: (e, t, n) => Y.application.addressProps(e, t, n),
+ loading: (e, t, n) => i5.application.loading(e, t, n),
+ props: (e, t, n) => i5.application.addressProps(e, t, n),
refresh: (e, t, n) => {
- let r = Y.parseEntityFilters(n);
+ let r = i5.parseEntityFilters(n);
e === "creator" && (r.creator = "");
let i = s5();
- return i.type !== "entity" || i.kind !== e || i.name !== t || !l5(e, t, r, Y.parseMediaView(n), { push: !1 }) ? !1 : (x7(r), S7(s5()), !0);
+ return i.type !== "entity" || i.kind !== e || i.name !== t || !l5(e, t, r, i5.parseMediaView(n), { push: !1 }) ? !1 : (x7(r), S7(s5()), !0);
}
},
follow: $.followFeedShell,
catalog: {
defaultLoc: () => h7("local,115"),
open: (e, { entering: t = !1, retitle: n = !1 } = {}) => {
- n && (y9(), u7(), $5()), t && k8(), e === "/trash" ? (X.clearSearchField(), W5()) : (L("#q").value = W.q, X.rememberSearchValue()), g9(), M7(), Z.handOff(L7());
+ n && (y9(), u7(), $5()), t && O8(), e === "/trash" ? (X.clearSearchField(), W5()) : (L("#q").value = W.q, X.rememberSearchValue()), g9(), M7(), Z.handOff(L7());
},
load: () => {
Z.handOff(L7());
},
fill: () => {
- if (H7() || !QV() && !L("#grid").querySelector(".catalog-skeleton")) return;
+ if (H7() || !ZV() && !L("#grid").querySelector(".catalog-skeleton")) return;
let e = L("#count");
e.removeAttribute("aria-busy"), e.removeAttribute("aria-label"), B7(Q.surfaceToken(Q.surfacePath()));
},
release: () => {
- z7(), Q8();
+ z7(), Z8();
}
}
}, N9.routing = !1, e.listen(document, "click", (e) => {
let t = vNe(e);
t && (e.preventDefault(), N9.shellActions.navigate(t));
- }), J.own(XV.listen((e) => {
- Q.queueOpenRequest && e.seq !== Q.queueOpenRequest.seq && !_V(e.location.pathname) && i9(!1), N9.routing && !e.claimed && y9();
+ }), Y.own(YV.listen((e) => {
+ Q.queueOpenRequest && e.seq !== Q.queueOpenRequest.seq && !gV(e.location.pathname) && i9(!1), N9.routing && !e.claimed && y9();
})), TAe(N9.shellActions).catch((e) => console.error("客户端导航装载失败", e)), sMe(), Ije(), Z5(), Promise.all([
Y7(),
aMe(),
@@ -79670,7 +79686,7 @@ async function bNe(e, t) {
//#region src/application/chrome.js
function xNe() {
(() => {
- let e = J, t = [
+ let e = Y, t = [
"#brandHome",
"#filterBtn",
"#settingsBtn"
@@ -79730,7 +79746,7 @@ function xNe() {
e.key === "Escape" && (e.stopPropagation(), u.setOpen(!1), c.focus());
}), z("/api/libraries", { signal: e.signal }).then((t) => {
if (!e.isActive) return;
- _W(t.libraries);
+ gW(t.libraries);
let n = [[
"",
"全部媒体库",
@@ -79769,9 +79785,9 @@ function xNe() {
let g = document.createElement("div");
g.className = "board-sidebar-foot", e.own(() => g.remove()), g.innerHTML = `<div class="board-theme-toggle" role="group" aria-label="明暗主题"><span class="board-theme-thumb" aria-hidden="true"></span><button type="button" data-board-theme="light" aria-label="浅色主题">${R("sun")}</button><button type="button" data-board-theme="dark" aria-label="深色主题">${R("moon")}</button></div>`, g.insertAdjacentHTML("beforeend", "<div class=\"board-foot-actions\"><button type=\"button\" class=\"board-glow-toggle\" id=\"boardGlowBtn\" aria-label=\"光晕配色\" aria-haspopup=\"dialog\" aria-expanded=\"false\" aria-controls=\"boardGlowMenu\"><svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#ri-palette-line\"/></svg><span class=\"board-glow-mark\" aria-hidden=\"true\"><span class=\"board-glow-mark-glow\"></span><span class=\"board-glow-mark-accent\"></span></span></button></div>"), g.querySelector(".board-foot-actions").append(document.querySelector("#settingsBtn")), document.querySelector("#drawer").append(g), g.querySelectorAll("[data-board-theme]").forEach((t) => e.handler(t, "onclick", () => {
t.getAttribute("aria-pressed") !== "true" && bNe(t, () => {
- Z.appSettings.theme = t.dataset.boardTheme, Z.saveSettings(), lA();
+ Z.appSettings.theme = t.dataset.boardTheme, Z.saveSettings(), cA();
});
- })), lA();
+ })), cA();
let _ = document.createElement("div");
_.className = "popmenu board-glow-menu", _.id = "boardGlowMenu", _.hidden = !0, _.setAttribute("popover", "manual"), _.setAttribute("role", "dialog"), _.setAttribute("aria-label", "配色"), document.body.append(_), e.own(() => _.remove());
let v = g.querySelector("#boardGlowBtn"), y = Oo(g, v, _);
@@ -79794,14 +79810,14 @@ function xNe() {
let r = n.classList.contains("open"), i = !q5();
i || r ? m.parentElement !== t && t.append(m) : m.parentElement !== h.parentElement && h.after(m), n.inert = !i && !r;
}
- Z.placeSidebarHead = b, b(), e.listen(document, "board:sidebar", b), e.listen.bind(J, window)("resize", b);
+ Z.placeSidebarHead = b, b(), e.listen(document, "board:sidebar", b), e.listen.bind(Y, window)("resize", b);
let x = !1;
function S() {
x = !1, document.body.classList.toggle("board-scrolled", scrollY > 8);
}
- if (e.listen.bind(J, window)("scroll", () => {
+ if (e.listen.bind(Y, window)("scroll", () => {
x || (x = !0, e.frame(S));
- }, { passive: !0 }), e.listen.bind(J, window)("resize", S), S(), /Chrome|Chromium|Edg\//.test(navigator.userAgent)) {
+ }, { passive: !0 }), e.listen.bind(Y, window)("resize", S), S(), /Chrome|Chromium|Edg\//.test(navigator.userAgent)) {
let t = "http://www.w3.org/2000/svg", n = document.createElementNS(t, "svg");
n.setAttribute("width", "0"), n.setAttribute("height", "0"), n.setAttribute("aria-hidden", "true"), n.style.position = "fixed", n.style.pointerEvents = "none";
let r = document.createElementNS(t, "defs");
@@ -79920,7 +79936,7 @@ function xNe() {
//#endregion
//#region src/application/initialize.js
function SNe() {
- uNe(), XMe(), Xje(), ZMe(), BMe(), PAe(), jMe(), YMe(), bje(), KMe(), Lje(), MMe(), pje(), Dje(), cNe(), qje(), xje(), lNe(), Jje(), Sje(), pMe(), NMe(), gNe(), qMe(), _Ne(), VMe(), yNe(), xNe(), J.own(z7), J.own(_9);
+ uNe(), XMe(), Xje(), ZMe(), BMe(), PAe(), jMe(), YMe(), bje(), KMe(), Lje(), MMe(), pje(), Dje(), cNe(), qje(), xje(), lNe(), Jje(), Sje(), pMe(), NMe(), gNe(), qMe(), _Ne(), VMe(), yNe(), xNe(), Y.own(z7), Y.own(_9);
}
//#endregion
//#region src/ui-kit/middle-truncate.ts
@@ -80090,9 +80106,9 @@ function ONe() {
}
function kNe() {
let e = St({
- queryKey: fF,
- queryFn: ({ signal: e }) => mF(e),
- refetchInterval: (e) => pF(e.state.data)
+ queryKey: dF,
+ queryFn: ({ signal: e }) => pF(e),
+ refetchInterval: (e) => fF(e.state.data)
}), t = (0, D.useRef)(void 0), [n] = (0, D.useState)(ONe), r = e.data?.result_versions;
return (0, D.useEffect)(() => {
r && (t.current && n(t.current, r), t.current = r);
@@ -80152,6 +80168,6 @@ var $9 = document.getElementById("appRoot");
if (!$9) throw Error("主界面宿主缺失");
MNe($9);
//#endregion
-export { SI as $2ec61d1d4f780267$export$a8a3e93435678ff9, FI as $3a442827418ebe87$export$eb2fcfdbd7ba97d4, iR as $542a13ca2fa5b484$export$5b6b19405a83ff9d, ST as $72abaeab4d80592f$export$78efe591171d7d45, XR as $76d00c5a4edb230a$export$76ccd210b9029917, qR as $76d00c5a4edb230a$export$816b5d811295e6bc, $R as $76d00c5a4edb230a$export$b59bdbef9ce70de2, tz as $76d00c5a4edb230a$export$f6f0c3fe4ec306ea, KR as $76d00c5a4edb230a$export$f850895b287ef28e, Mde as $b4f18e3395fe64d7$export$3d96ec278d3efce4, jde as $b4f18e3395fe64d7$export$3e41faf802a29e71, Ode as $b4f18e3395fe64d7$export$b2539bed5023c21c, az as $b4f18e3395fe64d7$export$e51a686c67fdaa2d, Fde as $bd263d78e9bf3c56$export$f5c9f3c2c4054eec, lw as $ea3928288112382f$export$439d29a4e110a164, _R as $f2ff30fde7b014be$export$3ddf2d174ce01153, wR as $fe21c36db05242bb$export$a98f0dcb43a68a25, TR as $fe21c36db05242bb$export$d7b12c4107be0d61, _fe as $l, BA as ACCENT_CHOICES, dwe as AMANE_BRIDGE_CHECK_URL, $$ as AMANE_BRIDGE_KEY, fwe as AMANE_BRIDGE_REBUILD_URL, On as ApiError, fW as ArtSlot, q as Button, YF as ButtonLink, Efe as Bx, Bt as CLOUD_LOCATIONS, $1 as CLOUD_PROXY_HELP, pr as COLUMN_SORT, d1 as CONFIGURATION_KEY, nX as CONFIGURATION_URL, pwe as COOKIE_TEXT_LIMIT, Q$ as COVER_JOB_KEY, gi as CREDENTIAL_STATE, J$ as CUSTOM_SOURCES_KEY, q$ as CUSTOM_SOURCES_URL, iV as Checkbox, rV as CheckboxGlyph, JB as ChevronSortDown, gZ as Chip, Y2 as CloudDownloadDialog, BH as CollapseChevron, zH as CollapseRegion, h$ as CollectionSummary, Gve as DEFAULT_CATEGORY, Mn as DEFAULT_SORT, zQ as DIAGNOSTICS_KEY, Hye as DIRECTORY_TEMPLATE_ERROR, P0 as DISCOVERY_SORTS, U2 as DOWNLOADS_KEY, H2 as DOWNLOADS_URL, EY as DUPLICATES_KEY, lY as DataTableFooter, aY as DataTableFrame, cY as DataTableSort, qH as Disclosure, SDe as DownloadsPanel, cfe as E3, Kve as ENTITY_REVIEW_KINDS, Z1 as ENTRY_LINKS_HELP, Q1 as ENTRY_LINKS_HINT, bfe as Ea, Lfe as EmptyFocusButton, Lz as EmptyState, GH as ErrorText, ghe as ExternalLink, cr as FEEDS_KEY, uX as FEED_SCHEDULE_KEY, xke as FLOW_LABEL_X, z3 as FLOW_VIEWBOX, or as FOLLOW_CHECK_KEY, ar as FOLLOW_CREDENTIALS_KEY, P8 as FOLLOW_INITIAL_RANGE_OPTIONS, ir as FOLLOW_MANAGE_KEY, sr as FOLLOW_RESOLVE_KEY, lX as FOLLOW_SCHEDULE_KEY, vhe as Fact, _he as FactList, KH as FieldLabel, B$ as Fieldset, z$ as FieldsetTitle, zF as FilterGlass, BF as FilterGlassRows, RF as FilterIconButton, HF as FilterPill, hhe as Footer, xz as Gg, WF as GlassPill, WH as Help, Oz as HintText, pke as IDLE_POLL_MS, Pve as IDLE_REPAIR, NF as IconButton, Nz as Input, Mz as InputBase, dA as JAV_LAYOUTS, I0 as JAV_RECOMMENDATION_GRID, NX as JUNK_KEY, Q3 as JavHeader, Ove as KEEP_LABELS, ur as LAYOUTS, X1 as LIBRARY_FOLDER_HELP, dH as LIBRARY_PROCESSING_KEY, JY as LINKS_KEY, YY as LINK_CHECK_KEY, mye as LINK_KINDS, XY as LINK_PRUNE_KEY, Cn as LOC, Dz as Label, U$ as LibraryProcessingCard, eB as LibraryShortcuts, SH as LinkButton, PH as LoadingDots, ufe as M6, yye as MEDIA_PROCESSING_KEY, fX as MEDIA_PROCESSING_URL, jY as MEDIA_REPAIR_KEY, AY as MEDIA_REPAIR_URL, Bn as MEDIA_SOURCES_KEY, No as MEDIA_SOURCE_ICONS, Rt as MEDIA_SOURCE_OPTIONS, QB as MENU_ITEM, $B as MENU_ITEM_INTERACTIVE, ZB as MENU_POPOVER_SURFACE, wH as MenuDialog, cG as MixCard, Pz as ModalFrame, Dv as MotionConfigContext, Ez as NR, Iz as Note, Nfe as OA, hX as ORGANIZE_KEY, vX as ORPHAN_RECORDS_KEY, bz as OV, pz as P7, kCe as PHASES, rX as PICK_FOLDER_URL, G$ as PLAYLISTS_KEY, pTe as POLICY_COLUMNS, hTe as POLICY_COVER_NOTE, mTe as POLICY_MATRIX, Y1 as POLICY_SUMMARY, sY as Pagination, H$ as PathLine, iF as PillTabList, IH as Progress, IY as QUALITY_GOALS_KEY, N$ as REPAIR_CARD_TEXT, MY as REPAIR_LIBRARIES_KEY, CX as RESOURCE_APPLY_KEY, SX as RESOURCE_SCAN_KEY, HCe as RESULT_PANEL, UCe as RESULT_SECTION, Wve as REVIEW_CATEGORIES, MX as REVIEW_COUNTS_KEY, zY as REVIEW_KEY, BY as REVIEW_LABELS, dW as RetryNote, Mfe as Rf, phe as Rows, lwe as SCRAPING_CHECK_URL, X$ as SCRAPING_COVER_URL, Z$ as SCRAPING_KEY, cwe as SCRAPING_SETTINGS_URL, xU as SEGMENT, bU as SEGMENTED_TRACK, cX as SETTINGS_KEY, iX as SETTINGS_URL, Nn as SORT_DEFAULT_DIR, jn as SORT_OPTIONS, Vt as SOURCE_LABELS, u3 as STATS_KEY, fhe as Section, mhe as SectionSkeleton, yU as SegmentedRadioGroup, nge as SegmentedTabList, qU as Segments, oY as Select, fU as Select$1, h1 as SelectField, pU as SelectItem, Sk as SelectionDock, VH as SettingsCard, dhe as SettingsRow, HH as SettingsSectionLabel, She as SiteLabel, EU as SortDirectionIcon, YU as SortKeys, SQ as SourceAvatar, ZH as SourceLabel, JH as SourceMark, UH as Stack, V$ as StatusLabel, I2 as Switch, fF as TASKS_KEY, nke as TASTE_REFRESH_KEY, rke as TASTE_WINDOWS, dX as THUMBNAIL_JOBS_KEY, FX as TRASH_KEY, Ile as TRIGGER_LABELS, XJ as Table, gY as TableColumnControls, _Y as TableColumnResizer, yY as TableSelectionHeader, LH as TaskProgress, Az as TextField, kz as TextFieldContext, yz as Un, y$ as WANTS_KEY, a4 as WantMagnets, Yf as WithPromise, mz as Wt, vz as Xc, Tz as Xf, ffe as Xt, lfe as _8, o as __commonJSMin, s as __exportAll, l as __toESM, jfe as aB, qr as addAlias, Kr as addSource, x$ as addWant, V as apiGet, H as apiSend, aA as appSettingsStore, sbe as applyConfirmText, jX as applyLeftovers, obe as applyPlanText, lbe as applyText, lA as applyTheme, Qg as asNumber, Yye as attachOrphan, kr as authorAvatar, jr as authorGroups, Or as authorInitial, Dr as authorName, Tq as autoResetPageIndex, La as avatarInner, g3 as bandRows, Uye as baseName, Nve as batchOperate, Dk as boundedPreference, Ave as bulkCloudPreferences, Vz as busyProps, Afe as cB, MDe as cachedMagnetStates, zf as calcGeneratorVelocity, Qve as canApprove, uf as cancelFrame, ebe as candidateText, NH as cardClass, wA as cardRatio, _z as cc, fi as checkEvidenceGap, di as checkFailures, ni as checkFeeds, vye as checkLine, li as checkReceipt, ui as checkSummary, hwe as checkText, pi as checkedText, PW as clickedBlank, Sve as cloudLocations, A0 as cloudProxySkeleton, Tx as clsx, Cfe as cn, Gm as collectMotionValues, iJ as columnVisibilityFeature, GJ as column_getCanSort, VJ as column_getSortFn, Xve as commonReviewSources, cV as configurationSection, ske as configureTasteBrowser, xc as confirmModal, JK as copyInstancePropertiesWithoutMemos, Aa as coverUrl, Yq as createColumnHelper, nwe as createPlaylist, _i as credentialDone, E0 as credentialsSkeleton, sye as currentReviewRow, tF as cx, Cz as dZ, iye as decisionPayload, aye as decisionReceipt, rye as defaultChoice, iwe as deletePlaylist, J1 as diagnosticsSkeleton, LCe as discoveryArtwork, E$ as discoveryKey, zTe as discoveryScore, Eve as distinctName, uye as dropReviewRows, si as dropSources, kfe as du, jve as duplicateVictims, yF as elapsedText, Ia as entityFaceImg, en as entityPath, Sr as errorHeadline, An as errorMessage, B as esc, Cq as expandRowModel, uz as f1, xr as feedIntervalText, n1 as fetchAmaneBridge, zr as fetchCheckJob, f1 as fetchConfiguration, t1 as fetchCoverJob, Rr as fetchCredentials, Y$ as fetchCustomSources, BQ as fetchDiagnostics, D$ as fetchDiscoveries, OY as fetchDuplicates, jle as fetchEarlier, Sye as fetchFeedSchedule, $r as fetchFeeds, Lr as fetchFollow, xye as fetchFollowSchedule, LX as fetchJunkSummary, $Y as fetchLinkCheck, eX as fetchLinkPrune, QY as fetchLinkStats, bye as fetchMediaProcessing, NY as fetchMediaRepair, Vn as fetchMediaSources, gX as fetchOrganize, Fye as fetchOrganizeExample, yX as fetchOrphanRecords, Qr as fetchPending, K$ as fetchPlaylists, LY as fetchQualityGoals, PY as fetchRepairLibraries, Br as fetchResolveJob, TX as fetchResourceApply, wX as fetchResourceScan, GY as fetchReview, IX as fetchReviewCounts, pX as fetchSettings, e1 as fetchSources, d3 as fetchStats, Vr as fetchSuggestions, mF as fetchTasks, I3 as fetchTaste, cke as fetchTasteJob, Cye as fetchThumbnailJobs, RX as fetchTrashSummary, b$ as fetchWants, Jve as filterReviewRows, xn as firstGrapheme, mK as flexRender, Cke as flowGraph, wke as flowLabel, SOe as fmtCount, hn as fmtDur, _n as fmtSize, Gle as foldRoutine, ii as followFeedByName, lr as followSuggestKey, qle as followupDetail, lf as frame, $de as g4, sJ as getDefaultPaginationState, CA as gridLayout, Ar as groupByAuthor, Wle as groupFollowups, HY as groupReviewRows, ibe as hasChanges, EX as hasResourceRoots, gF as hasResultProblems, mke as historySpan, dz as i2, fke as importTasteExport, D0 as indexersSkeleton, jf as interpolate, C$ as invalidateWants, vF as isActive, br as isBroken, mr as isLayout, gh as isMotionValue, VY as isReviewCategory, Kle as isRoutine, O0 as javBrowserSkeleton, R0 as javContentSkeleton, gA as javLayout, L0 as javTagSkeleton, mbe as junkBreakdown, awe as keepPlaylist, _e as keepPreviousData, Pr as keepSelected, f3 as known, rfe as l7, Ule as latestOfKind, POe as lengthRows, Wn as localTime, ri as lookupFeedActor, ofe as m7, Sz as mM, qt as mapLimit, Zr as markItem, _3 as max, MOe as mediumRows, Mle as mergeFinished, v3 as min, fye as mirrorText, Lve as missingToolText, kY as mixedCloudPreferences, DF as momentText, Iy as motion, qm as motionValue, Gye as organizeOutcome, e2 as overlayHost, hr as pageSizeOf, Nr as pageWindow, In as paginationRange, oi as patchSource, XV as peachHistory, XV as peachHistory$1, nye as pendingGenres, wOe as percentText, Rye as pickOrganizeFolder, Wye as planSummary, p3 as playedFor, EOe as playedItemUrl, pF as pollInterval, ds as popCount, twe as posterUrl, AW as previewLibraryColor, Lye as previewOrganize, Bve as previewUrl, Hle as problemDestination, bF as progressText, XH as providerIcon, _ye as pruneText, OX as purgeCount, Xye as purgeOrphan, wz as pv, Ofe as qE, U as queryClient, fz as r2, bke as radarRows, kOe as radialArc, AOe as radialBarSize, OOe as radialCeiling, DOe as radialSlices, Vj as randomId, vke as rankDetail, yke as rankShares, h3 as reachedShare, SF as readableErrorHeadline, BTe as recommendationScore, cye as recordGenre, Qye as recordsText, owe as recreatePlaylist, $Ce as refreshPlaylists, tl as relayoutCovers, ci as reloadFollowManage, dye as reloadReview, vTe as rememberShape, Bye as rememberTemplates, Jr as removeAlias, ti as removeFeed, Gr as removeSource, dke as removeTasteSource, S$ as removeWants, Yr as renameAliasGroup, rwe as renamePlaylist, IOe as replayRows, E as require_jsx_runtime, v as require_react, S as require_react_dom, LK as require_with_selector, MCe as resetWants, Fn as resolveFollowSort, Gf as resolveStartTime, ewe as resumeAssetId, qve as reviewGroupingOptions, pbe as reviewSummary, Yve as reviewWindow, eye as rowEvidence, WY as rowFieldName, mJ as rowPaginationFeature, FJ as rowSelectionFeature, JJ as rowSortingFeature, UY as rowSubject, tye as rowTags, $ve as rowTitle, efe as s5, Xr as saveCredential, abe as scanLine, Oye as schedulePollInterval, PCe as searchNote, Zve as selectReviewRange, Fr as selectionState, ei as setFeedEnabled, Wr as setSourceEnabled, fV as settingsPath, Tve as sharedNamePrefix, ZV as shellNavigate, x8 as showToast, sn as siteMarkUrl, sq as skipFirstRun, nF as sortCx, _r as sortLabel, Ht as sourceDefaultCost, hi as sourceIconUrl, cbe as sourceMeta, ns as spinnerHtml, Of as spring, zz as spriteGlyph, Hr as startCheck, hye as startLinkCheck, gye as startLinkPrune, zye as startOrganize, Ur as startResolve, nbe as startResourceApply, tbe as startResourceScan, uke as startTasteRefresh, Rle as statusLabel, Ive as statusLine, yr as statusText, TA as storeJavLayout, oye as submitDecision, kF as summaryItems, Xq as tableFeatures, cq as tableMemo, Mr as tableRows, Vle as taskIssues, L3 as tasteDate, gke as tasteDimensions, hke as tasteHours, F3 as tasteKey, ake as tasteRefetchInterval, oke as tasteTime, Uu as time, gfe as tl, Ir as toggleGroup, R3 as topScores, yfe as uo, jH as useAction, zZ as useBackgroundJob, tu as useConstant, IF as useHorizontalScroller, nu as useIsomorphicLayoutEffect, MW as useLibraryTints, Ct as useMutation, aV as useOverlayScrollbar, St as useQuery, A as useQueryClient, Oy as useReducedMotion, Dye as useRunSchedule, Tye as useSaveFollowSchedule, mX as useSaveSettings, kye as useSaveThumbnailMode, YJ as useTable, fY as useTablePreferences, Mve as victimBytes, NCe as wantName, TOe as watchNote, m3 as watchedShare, Hs as wireHorizontalScroller, Vye as withOrganizeJob };
+export { xI as $2ec61d1d4f780267$export$a8a3e93435678ff9, PI as $3a442827418ebe87$export$eb2fcfdbd7ba97d4, rR as $542a13ca2fa5b484$export$5b6b19405a83ff9d, xT as $72abaeab4d80592f$export$78efe591171d7d45, YR as $76d00c5a4edb230a$export$76ccd210b9029917, KR as $76d00c5a4edb230a$export$816b5d811295e6bc, QR as $76d00c5a4edb230a$export$b59bdbef9ce70de2, ez as $76d00c5a4edb230a$export$f6f0c3fe4ec306ea, GR as $76d00c5a4edb230a$export$f850895b287ef28e, Mde as $b4f18e3395fe64d7$export$3d96ec278d3efce4, jde as $b4f18e3395fe64d7$export$3e41faf802a29e71, Ode as $b4f18e3395fe64d7$export$b2539bed5023c21c, iz as $b4f18e3395fe64d7$export$e51a686c67fdaa2d, Fde as $bd263d78e9bf3c56$export$f5c9f3c2c4054eec, cw as $ea3928288112382f$export$439d29a4e110a164, gR as $f2ff30fde7b014be$export$3ddf2d174ce01153, CR as $fe21c36db05242bb$export$a98f0dcb43a68a25, wR as $fe21c36db05242bb$export$d7b12c4107be0d61, _fe as $l, zA as ACCENT_CHOICES, dwe as AMANE_BRIDGE_CHECK_URL, Q$ as AMANE_BRIDGE_KEY, fwe as AMANE_BRIDGE_REBUILD_URL, On as ApiError, dW as ArtSlot, J as Button, JF as ButtonLink, Efe as Bx, Bt as CLOUD_LOCATIONS, Q1 as CLOUD_PROXY_HELP, pr as COLUMN_SORT, u1 as CONFIGURATION_KEY, tX as CONFIGURATION_URL, pwe as COOKIE_TEXT_LIMIT, Z$ as COVER_JOB_KEY, gi as CREDENTIAL_STATE, q$ as CUSTOM_SOURCES_KEY, K$ as CUSTOM_SOURCES_URL, rV as Checkbox, nV as CheckboxGlyph, qB as ChevronSortDown, hZ as Chip, J2 as CloudDownloadDialog, zH as CollapseChevron, RH as CollapseRegion, m$ as CollectionSummary, Gve as DEFAULT_CATEGORY, Mn as DEFAULT_SORT, RQ as DIAGNOSTICS_KEY, Hye as DIRECTORY_TEMPLATE_ERROR, N0 as DISCOVERY_SORTS, H2 as DOWNLOADS_KEY, V2 as DOWNLOADS_URL, TY as DUPLICATES_KEY, cY as DataTableFooter, iY as DataTableFrame, sY as DataTableSort, KH as Disclosure, SDe as DownloadsPanel, cfe as E3, Kve as ENTITY_REVIEW_KINDS, X1 as ENTRY_LINKS_HELP, Z1 as ENTRY_LINKS_HINT, bfe as Ea, Lfe as EmptyFocusButton, Iz as EmptyState, WH as ErrorText, ghe as ExternalLink, cr as FEEDS_KEY, lX as FEED_SCHEDULE_KEY, xke as FLOW_LABEL_X, R3 as FLOW_VIEWBOX, or as FOLLOW_CHECK_KEY, ar as FOLLOW_CREDENTIALS_KEY, N8 as FOLLOW_INITIAL_RANGE_OPTIONS, ir as FOLLOW_MANAGE_KEY, sr as FOLLOW_RESOLVE_KEY, cX as FOLLOW_SCHEDULE_KEY, vhe as Fact, _he as FactList, GH as FieldLabel, z$ as Fieldset, R$ as FieldsetTitle, RF as FilterGlass, zF as FilterGlassRows, LF as FilterIconButton, VF as FilterPill, hhe as Footer, bz as Gg, UF as GlassPill, UH as Help, Dz as HintText, pke as IDLE_POLL_MS, Pve as IDLE_REPAIR, MF as IconButton, Mz as Input, jz as InputBase, uA as JAV_LAYOUTS, F0 as JAV_RECOMMENDATION_GRID, MX as JUNK_KEY, Z3 as JavHeader, Ove as KEEP_LABELS, ur as LAYOUTS, Y1 as LIBRARY_FOLDER_HELP, uH as LIBRARY_PROCESSING_KEY, qY as LINKS_KEY, JY as LINK_CHECK_KEY, mye as LINK_KINDS, YY as LINK_PRUNE_KEY, Cn as LOC, Ez as Label, H$ as LibraryProcessingCard, $z as LibraryShortcuts, xH as LinkButton, NH as LoadingDots, ufe as M6, yye as MEDIA_PROCESSING_KEY, dX as MEDIA_PROCESSING_URL, AY as MEDIA_REPAIR_KEY, kY as MEDIA_REPAIR_URL, Bn as MEDIA_SOURCES_KEY, No as MEDIA_SOURCE_ICONS, Rt as MEDIA_SOURCE_OPTIONS, ZB as MENU_ITEM, QB as MENU_ITEM_INTERACTIVE, XB as MENU_POPOVER_SURFACE, CH as MenuDialog, sG as MixCard, Nz as ModalFrame, Ev as MotionConfigContext, Tz as NR, Fz as Note, Nfe as OA, mX as ORGANIZE_KEY, _X as ORPHAN_RECORDS_KEY, yz as OV, fz as P7, kCe as PHASES, nX as PICK_FOLDER_URL, W$ as PLAYLISTS_KEY, pTe as POLICY_COLUMNS, hTe as POLICY_COVER_NOTE, mTe as POLICY_MATRIX, J1 as POLICY_SUMMARY, oY as Pagination, V$ as PathLine, rF as PillTabList, FH as Progress, FY as QUALITY_GOALS_KEY, M$ as REPAIR_CARD_TEXT, jY as REPAIR_LIBRARIES_KEY, SX as RESOURCE_APPLY_KEY, xX as RESOURCE_SCAN_KEY, HCe as RESULT_PANEL, UCe as RESULT_SECTION, Wve as REVIEW_CATEGORIES, jX as REVIEW_COUNTS_KEY, RY as REVIEW_KEY, zY as REVIEW_LABELS, uW as RetryNote, Mfe as Rf, phe as Rows, lwe as SCRAPING_CHECK_URL, Y$ as SCRAPING_COVER_URL, X$ as SCRAPING_KEY, cwe as SCRAPING_SETTINGS_URL, bU as SEGMENT, yU as SEGMENTED_TRACK, sX as SETTINGS_KEY, rX as SETTINGS_URL, Nn as SORT_DEFAULT_DIR, jn as SORT_OPTIONS, Vt as SOURCE_LABELS, l3 as STATS_KEY, fhe as Section, mhe as SectionSkeleton, vU as SegmentedRadioGroup, nge as SegmentedTabList, KU as Segments, aY as Select, dU as Select$1, m1 as SelectField, fU as SelectItem, xk as SelectionDock, BH as SettingsCard, dhe as SettingsRow, VH as SettingsSectionLabel, She as SiteLabel, TU as SortDirectionIcon, JU as SortKeys, xQ as SourceAvatar, XH as SourceLabel, qH as SourceMark, HH as Stack, B$ as StatusLabel, F2 as Switch, dF as TASKS_KEY, nke as TASTE_REFRESH_KEY, rke as TASTE_WINDOWS, uX as THUMBNAIL_JOBS_KEY, PX as TRASH_KEY, Ile as TRIGGER_LABELS, YJ as Table, hY as TableColumnControls, gY as TableColumnResizer, vY as TableSelectionHeader, IH as TaskProgress, kz as TextField, Oz as TextFieldContext, vz as Un, v$ as WANTS_KEY, i4 as WantMagnets, Jf as WithPromise, pz as Wt, _z as Xc, wz as Xf, ffe as Xt, lfe as _8, o as __commonJSMin, s as __exportAll, l as __toESM, jfe as aB, qr as addAlias, Kr as addSource, b$ as addWant, V as apiGet, H as apiSend, iA as appSettingsStore, sbe as applyConfirmText, AX as applyLeftovers, obe as applyPlanText, lbe as applyText, cA as applyTheme, Zg as asNumber, Yye as attachOrphan, kr as authorAvatar, jr as authorGroups, Or as authorInitial, Dr as authorName, wq as autoResetPageIndex, La as avatarInner, h3 as bandRows, Uye as baseName, Nve as batchOperate, Ek as boundedPreference, Ave as bulkCloudPreferences, Bz as busyProps, Afe as cB, MDe as cachedMagnetStates, Rf as calcGeneratorVelocity, Qve as canApprove, lf as cancelFrame, ebe as candidateText, MH as cardClass, CA as cardRatio, gz as cc, fi as checkEvidenceGap, di as checkFailures, ni as checkFeeds, vye as checkLine, li as checkReceipt, ui as checkSummary, hwe as checkText, pi as checkedText, NW as clickedBlank, Sve as cloudLocations, k0 as cloudProxySkeleton, wx as clsx, Cfe as cn, Wm as collectMotionValues, rJ as columnVisibilityFeature, WJ as column_getCanSort, BJ as column_getSortFn, Xve as commonReviewSources, sV as configurationSection, ske as configureTasteBrowser, xc as confirmModal, qK as copyInstancePropertiesWithoutMemos, Aa as coverUrl, Jq as createColumnHelper, nwe as createPlaylist, _i as credentialDone, T0 as credentialsSkeleton, sye as currentReviewRow, eF as cx, Sz as dZ, iye as decisionPayload, aye as decisionReceipt, rye as defaultChoice, iwe as deletePlaylist, q1 as diagnosticsSkeleton, LCe as discoveryArtwork, T$ as discoveryKey, zTe as discoveryScore, Eve as distinctName, uye as dropReviewRows, si as dropSources, kfe as du, jve as duplicateVictims, vF as elapsedText, Ia as entityFaceImg, en as entityPath, Sr as errorHeadline, An as errorMessage, B as esc, Sq as expandRowModel, lz as f1, xr as feedIntervalText, t1 as fetchAmaneBridge, zr as fetchCheckJob, d1 as fetchConfiguration, e1 as fetchCoverJob, Rr as fetchCredentials, J$ as fetchCustomSources, zQ as fetchDiagnostics, E$ as fetchDiscoveries, DY as fetchDuplicates, jle as fetchEarlier, Sye as fetchFeedSchedule, $r as fetchFeeds, Lr as fetchFollow, xye as fetchFollowSchedule, IX as fetchJunkSummary, QY as fetchLinkCheck, $Y as fetchLinkPrune, ZY as fetchLinkStats, bye as fetchMediaProcessing, MY as fetchMediaRepair, Vn as fetchMediaSources, hX as fetchOrganize, Fye as fetchOrganizeExample, vX as fetchOrphanRecords, Qr as fetchPending, G$ as fetchPlaylists, IY as fetchQualityGoals, NY as fetchRepairLibraries, Br as fetchResolveJob, wX as fetchResourceApply, CX as fetchResourceScan, WY as fetchReview, FX as fetchReviewCounts, fX as fetchSettings, $$ as fetchSources, u3 as fetchStats, Vr as fetchSuggestions, pF as fetchTasks, F3 as fetchTaste, cke as fetchTasteJob, Cye as fetchThumbnailJobs, LX as fetchTrashSummary, y$ as fetchWants, Jve as filterReviewRows, xn as firstGrapheme, pK as flexRender, Cke as flowGraph, wke as flowLabel, SOe as fmtCount, hn as fmtDur, _n as fmtSize, Gle as foldRoutine, ii as followFeedByName, lr as followSuggestKey, qle as followupDetail, cf as frame, $de as g4, oJ as getDefaultPaginationState, SA as gridLayout, Ar as groupByAuthor, Wle as groupFollowups, VY as groupReviewRows, ibe as hasChanges, TX as hasResourceRoots, hF as hasResultProblems, mke as historySpan, uz as i2, fke as importTasteExport, E0 as indexersSkeleton, Af as interpolate, S$ as invalidateWants, _F as isActive, br as isBroken, mr as isLayout, hh as isMotionValue, BY as isReviewCategory, Kle as isRoutine, D0 as javBrowserSkeleton, L0 as javContentSkeleton, hA as javLayout, I0 as javTagSkeleton, mbe as junkBreakdown, awe as keepPlaylist, _e as keepPreviousData, Pr as keepSelected, d3 as known, rfe as l7, Ule as latestOfKind, POe as lengthRows, Wn as localTime, ri as lookupFeedActor, ofe as m7, xz as mM, qt as mapLimit, Zr as markItem, g3 as max, MOe as mediumRows, Mle as mergeFinished, _3 as min, fye as mirrorText, Lve as missingToolText, OY as mixedCloudPreferences, EF as momentText, Fy as motion, Km as motionValue, Gye as organizeOutcome, $0 as overlayHost, hr as pageSizeOf, Nr as pageWindow, In as paginationRange, oi as patchSource, YV as peachHistory, YV as peachHistory$1, nye as pendingGenres, wOe as percentText, Rye as pickOrganizeFolder, Wye as planSummary, f3 as playedFor, EOe as playedItemUrl, fF as pollInterval, ds as popCount, twe as posterUrl, kW as previewLibraryColor, Lye as previewOrganize, Bve as previewUrl, Hle as problemDestination, yF as progressText, YH as providerIcon, _ye as pruneText, DX as purgeCount, Xye as purgeOrphan, Cz as pv, Ofe as qE, U as queryClient, dz as r2, bke as radarRows, kOe as radialArc, AOe as radialBarSize, OOe as radialCeiling, DOe as radialSlices, Bj as randomId, vke as rankDetail, yke as rankShares, m3 as reachedShare, xF as readableErrorHeadline, BTe as recommendationScore, cye as recordGenre, Qye as recordsText, owe as recreatePlaylist, $Ce as refreshPlaylists, tl as relayoutCovers, ci as reloadFollowManage, dye as reloadReview, vTe as rememberShape, Bye as rememberTemplates, Jr as removeAlias, ti as removeFeed, Gr as removeSource, dke as removeTasteSource, x$ as removeWants, Yr as renameAliasGroup, rwe as renamePlaylist, IOe as replayRows, E as require_jsx_runtime, v as require_react, S as require_react_dom, IK as require_with_selector, MCe as resetWants, Fn as resolveFollowSort, Wf as resolveStartTime, ewe as resumeAssetId, qve as reviewGroupingOptions, pbe as reviewSummary, Yve as reviewWindow, eye as rowEvidence, UY as rowFieldName, pJ as rowPaginationFeature, PJ as rowSelectionFeature, qJ as rowSortingFeature, HY as rowSubject, tye as rowTags, $ve as rowTitle, efe as s5, Xr as saveCredential, abe as scanLine, Oye as schedulePollInterval, PCe as searchNote, Zve as selectReviewRange, Fr as selectionState, ei as setFeedEnabled, Wr as setSourceEnabled, dV as settingsPath, Tve as sharedNamePrefix, XV as shellNavigate, b8 as showToast, sn as siteMarkUrl, oq as skipFirstRun, tF as sortCx, _r as sortLabel, Ht as sourceDefaultCost, hi as sourceIconUrl, cbe as sourceMeta, ns as spinnerHtml, Df as spring, Rz as spriteGlyph, Hr as startCheck, hye as startLinkCheck, gye as startLinkPrune, zye as startOrganize, Ur as startResolve, nbe as startResourceApply, tbe as startResourceScan, uke as startTasteRefresh, Rle as statusLabel, Ive as statusLine, yr as statusText, wA as storeJavLayout, oye as submitDecision, OF as summaryItems, Yq as tableFeatures, sq as tableMemo, Mr as tableRows, Vle as taskIssues, I3 as tasteDate, gke as tasteDimensions, hke as tasteHours, P3 as tasteKey, ake as tasteRefetchInterval, oke as tasteTime, Uu as time, gfe as tl, Ir as toggleGroup, L3 as topScores, yfe as uo, AH as useAction, RZ as useBackgroundJob, tu as useConstant, FF as useHorizontalScroller, nu as useIsomorphicLayoutEffect, jW as useLibraryTints, Ct as useMutation, iV as useOverlayScrollbar, St as useQuery, A as useQueryClient, Dy as useReducedMotion, Dye as useRunSchedule, Tye as useSaveFollowSchedule, pX as useSaveSettings, kye as useSaveThumbnailMode, JJ as useTable, dY as useTablePreferences, Mve as victimBytes, NCe as wantName, TOe as watchNote, p3 as watchedShare, Hs as wireHorizontalScroller, Vye as withOrganizeJob };
-//# debugId=a6ce9c81-2e06-429f-9d24-89ad890ebc74
\ No newline at end of file
+//# debugId=996b4e20-fb58-48de-b2f7-54a3417ab481
\ No newline at end of file